From 07e400d46c2e137929c2fced8633ff40fce4d209 Mon Sep 17 00:00:00 2001 From: Simon Fischer Date: Sat, 6 Jun 2026 21:57:45 +0200 Subject: [PATCH 1/7] add rootPath option to support running web behind reverse proxy (tell clients correct websocket path) --- io-package.json | 1 + src-admin/src/Tabs/Additionally.tsx | 9 +++++++++ src-admin/src/i18n/de.json | 2 ++ src-admin/src/i18n/en.json | 2 ++ src-admin/src/i18n/es.json | 2 ++ src-admin/src/i18n/fr.json | 2 ++ src-admin/src/i18n/it.json | 2 ++ src-admin/src/i18n/nl.json | 2 ++ src-admin/src/i18n/pl.json | 2 ++ src-admin/src/i18n/pt.json | 2 ++ src-admin/src/i18n/ru.json | 2 ++ src-admin/src/i18n/uk.json | 2 ++ src-admin/src/i18n/zh-cn.json | 2 ++ src/main.ts | 15 +++++++++++++++ src/types.d.ts | 1 + 15 files changed, 48 insertions(+) diff --git a/io-package.json b/io-package.json index 8de45eb4..1adb934f 100644 --- a/io-package.json +++ b/io-package.json @@ -207,6 +207,7 @@ "loginBackgroundImage": false, "loginOauth2": false, "port": 8082, + "rootPath": "", "secure": false, "showAdminInstances": false, "showFolderIndex": false, diff --git a/src-admin/src/Tabs/Additionally.tsx b/src-admin/src/Tabs/Additionally.tsx index c098d177..28a2304a 100644 --- a/src-admin/src/Tabs/Additionally.tsx +++ b/src-admin/src/Tabs/Additionally.tsx @@ -151,6 +151,15 @@ class Additionally extends Component { helperText={I18n.t('This path will be opened if no path specified')} /> +
+ onChange('rootPath', e.target.value)} + label={I18n.t('rootPath')} + helperText={I18n.t('rootPath_hint')} + /> +

{I18n.t('Cache options')}

Date: Sat, 6 Jun 2026 22:05:05 +0200 Subject: [PATCH 2/7] build output --- admin/assets/index-BjzFuPMB.js | 707 ------------------------- admin/assets/index-DMt_aucS.js | 707 +++++++++++++++++++++++++ admin/index_m.html | 2 +- build/main.d.ts | 1 + build/main.js | 14 + build/main.js.map | 2 +- src-login/build/index.html | 104 ++-- src-www/build/assets/index-DqtpjWjP.js | 277 ++++++++++ src-www/build/assets/index-O6PSQUbV.js | 277 ---------- src-www/build/index.html | 2 +- www/assets/index-DqtpjWjP.js | 277 ++++++++++ www/index.html | 2 +- www/login/index.html | 104 ++-- 13 files changed, 1384 insertions(+), 1092 deletions(-) delete mode 100644 admin/assets/index-BjzFuPMB.js create mode 100644 admin/assets/index-DMt_aucS.js create mode 100644 src-www/build/assets/index-DqtpjWjP.js delete mode 100644 src-www/build/assets/index-O6PSQUbV.js create mode 100644 www/assets/index-DqtpjWjP.js diff --git a/admin/assets/index-BjzFuPMB.js b/admin/assets/index-BjzFuPMB.js deleted file mode 100644 index 53219f96..00000000 --- a/admin/assets/index-BjzFuPMB.js +++ /dev/null @@ -1,707 +0,0 @@ -var _R=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Lmt=_R((Mn,An)=>{function aT(t,e){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var zp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ca(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var q_={exports:{}},Jl={},H_={exports:{}},ht={};var V5;function gR(){if(V5)return ht;V5=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator;function m(N){return N===null||typeof N!="object"?null:(N=d&&N[d]||N["@@iterator"],typeof N=="function"?N:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function x(N,B,ne){this.props=N,this.context=B,this.refs=b,this.updater=ne||y}x.prototype.isReactComponent={},x.prototype.setState=function(N,B){if(typeof N!="object"&&typeof N!="function"&&N!=null)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,N,B,"setState")},x.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function k(){}k.prototype=x.prototype;function O(N,B,ne){this.props=N,this.context=B,this.refs=b,this.updater=ne||y}var T=O.prototype=new k;T.constructor=O,v(T,x.prototype),T.isPureReactComponent=!0;var M=Array.isArray,A=Object.prototype.hasOwnProperty,E={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function j(N,B,ne){var ae,re={},ie=null,he=null;if(B!=null)for(ae in B.ref!==void 0&&(he=B.ref),B.key!==void 0&&(ie=""+B.key),B)A.call(B,ae)&&!D.hasOwnProperty(ae)&&(re[ae]=B[ae]);var me=arguments.length-2;if(me===1)re.children=ne;else if(1>>1,B=Z[N];if(0>>1;No(re,te))ieo(he,re)?(Z[N]=he,Z[ie]=te,N=ie):(Z[N]=re,Z[ae]=te,N=ae);else if(ieo(he,te))Z[N]=he,Z[ie]=te,N=ie;else break e}}return X}function o(Z,X){var te=Z.sortIndex-X.sortIndex;return te!==0?te:Z.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],f=[],h=1,d=null,m=3,y=!1,v=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(Z){for(var X=r(f);X!==null;){if(X.callback===null)n(f);else if(X.startTime<=Z)n(f),X.sortIndex=X.expirationTime,e(u,X);else break;X=r(f)}}function M(Z){if(b=!1,T(Z),!v)if(r(u)!==null)v=!0,J(A);else{var X=r(f);X!==null&&ee(M,X.startTime-Z)}}function A(Z,X){v=!1,b&&(b=!1,k(j),j=-1),y=!0;var te=m;try{for(T(X),d=r(u);d!==null&&(!(d.expirationTime>X)||Z&&!L());){var N=d.callback;if(typeof N=="function"){d.callback=null,m=d.priorityLevel;var B=N(d.expirationTime<=X);X=t.unstable_now(),typeof B=="function"?d.callback=B:d===r(u)&&n(u),T(X)}else n(u);d=r(u)}if(d!==null)var ne=!0;else{var ae=r(f);ae!==null&&ee(M,ae.startTime-X),ne=!1}return ne}finally{d=null,m=te,y=!1}}var E=!1,D=null,j=-1,P=5,$=-1;function L(){return!(t.unstable_now()-$Z||125N?(Z.sortIndex=te,e(f,Z),r(u)===null&&Z===r(f)&&(b?(k(j),j=-1):b=!0,ee(M,te-N))):(Z.sortIndex=B,e(u,Z),v||y||(v=!0,J(A))),Z},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(Z){var X=m;return function(){var te=m;m=X;try{return Z.apply(this,arguments)}finally{m=te}}}})(X_)),X_}var K5;function wR(){return K5||(K5=1,G_.exports=bR()),G_.exports}var Z5;function SR(){if(Z5)return dn;Z5=1;var t=us(),e=wR();function r(i){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+i,p=1;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[: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={},d={};function m(i){return u.call(d,i)?!0:u.call(h,i)?!1:f.test(i)?d[i]=!0:(h[i]=!0,!1)}function y(i,c,p,g){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function v(i,c,p,g){if(c===null||typeof c>"u"||y(i,c,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function b(i,c,p,g,w,S,I){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=g,this.attributeNamespace=w,this.mustUseProperty=p,this.propertyName=i,this.type=c,this.sanitizeURL=S,this.removeEmptyString=I}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){x[i]=new b(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var c=i[0];x[c]=new b(c,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){x[i]=new b(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){x[i]=new b(i,2,!1,i,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(i){x[i]=new b(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){x[i]=new b(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){x[i]=new b(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){x[i]=new b(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){x[i]=new b(i,5,!1,i.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function O(i){return i[1].toUpperCase()}"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(i){var c=i.replace(k,O);x[c]=new b(c,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var c=i.replace(k,O);x[c]=new b(c,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var c=i.replace(k,O);x[c]=new b(c,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){x[i]=new b(i,1,!1,i.toLowerCase(),null,!1,!1)}),x.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){x[i]=new b(i,1,!1,i.toLowerCase(),null,!0,!0)});function T(i,c,p,g){var w=x.hasOwnProperty(c)?x[c]:null;(w!==null?w.type!==0:g||!(2F||w[I]!==S[F]){var U=` -`+w[I].replace(" at new "," at ");return i.displayName&&U.includes("")&&(U=U.replace("",i.displayName)),U}while(1<=I&&0<=F);break}}}finally{ne=!1,Error.prepareStackTrace=p}return(i=i?i.displayName||i.name:"")?B(i):""}function re(i){switch(i.tag){case 5:return B(i.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return i=ae(i.type,!1),i;case 11:return i=ae(i.type.render,!1),i;case 1:return i=ae(i.type,!0),i;default:return""}}function ie(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case D:return"Fragment";case E:return"Portal";case P:return"Profiler";case j:return"StrictMode";case H:return"Suspense";case V:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case L:return(i.displayName||"Context")+".Consumer";case $:return(i._context.displayName||"Context")+".Provider";case W:var c=i.render;return i=i.displayName,i||(i=c.displayName||c.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case q:return c=i.displayName||null,c!==null?c:ie(i.type)||"Memo";case J:c=i._payload,i=i._init;try{return ie(i(c))}catch{}}return null}function he(i){var c=i.type;switch(i.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=c.render,i=i.displayName||i.name||"",c.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ie(c);case 8:return c===j?"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(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function me(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ge(i){var c=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function be(i){var c=ge(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,c),g=""+i[c];if(!i.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var w=p.get,S=p.set;return Object.defineProperty(i,c,{configurable:!0,get:function(){return w.call(this)},set:function(I){g=""+I,S.call(this,I)}}),Object.defineProperty(i,c,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(I){g=""+I},stopTracking:function(){i._valueTracker=null,delete i[c]}}}}function Ie(i){i._valueTracker||(i._valueTracker=be(i))}function Re(i){if(!i)return!1;var c=i._valueTracker;if(!c)return!0;var p=c.getValue(),g="";return i&&(g=ge(i)?i.checked?"true":"false":i.value),i=g,i!==p?(c.setValue(i),!0):!1}function Ge(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function xe(i,c){var p=c.checked;return te({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??i._wrapperState.initialChecked})}function Te(i,c){var p=c.defaultValue==null?"":c.defaultValue,g=c.checked!=null?c.checked:c.defaultChecked;p=me(c.value!=null?c.value:p),i._wrapperState={initialChecked:g,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function gt(i,c){c=c.checked,c!=null&&T(i,"checked",c,!1)}function ke(i,c){gt(i,c);var p=me(c.value),g=c.type;if(p!=null)g==="number"?(p===0&&i.value===""||i.value!=p)&&(i.value=""+p):i.value!==""+p&&(i.value=""+p);else if(g==="submit"||g==="reset"){i.removeAttribute("value");return}c.hasOwnProperty("value")?lt(i,c.type,p):c.hasOwnProperty("defaultValue")&<(i,c.type,me(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(i.defaultChecked=!!c.defaultChecked)}function Ae(i,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var g=c.type;if(!(g!=="submit"&&g!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+i._wrapperState.initialValue,p||c===i.value||(i.value=c),i.defaultValue=c}p=i.name,p!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,p!==""&&(i.name=p)}function lt(i,c,p){(c!=="number"||Ge(i.ownerDocument)!==i)&&(p==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+p&&(i.defaultValue=""+p))}var tt=Array.isArray;function Xe(i,c,p,g){if(i=i.options,c){c={};for(var w=0;w"+c.valueOf().toString()+"",c=Le.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;c.firstChild;)i.appendChild(c.firstChild)}});function bt(i,c){if(c){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=c;return}}i.textContent=c}var Fe={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},Xt=["Webkit","ms","Moz","O"];Object.keys(Fe).forEach(function(i){Xt.forEach(function(c){c=c+i.charAt(0).toUpperCase()+i.substring(1),Fe[c]=Fe[i]})});function kt(i,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||Fe.hasOwnProperty(i)&&Fe[i]?(""+c).trim():c+"px"}function Ce(i,c){i=i.style;for(var p in c)if(c.hasOwnProperty(p)){var g=p.indexOf("--")===0,w=kt(p,c[p],g);p==="float"&&(p="cssFloat"),g?i.setProperty(p,w):i[p]=w}}var ft=te({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 Ct(i,c){if(c){if(ft[i]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function Cr(i,c){if(i.indexOf("-")===-1)return typeof c.is=="string";switch(i){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 $r=null;function nn(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ea=null,ko=null,zn=null;function ks(i){if(i=Nl(i)){if(typeof ea!="function")throw Error(r(280));var c=i.stateNode;c&&(c=Qd(c),ea(i.stateNode,i.type,c))}}function Cs(i){ko?zn?zn.push(i):zn=[i]:ko=i}function $s(){if(ko){var i=ko,c=zn;if(zn=ko=null,ks(i),c)for(i=0;i>>=0,i===0?32:31-(MO(i)/AO|0)|0}var Id=64,Pd=4194304;function _l(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function jd(i,c){var p=i.pendingLanes;if(p===0)return 0;var g=0,w=i.suspendedLanes,S=i.pingedLanes,I=p&268435455;if(I!==0){var F=I&~w;F!==0?g=_l(F):(S&=I,S!==0&&(g=_l(S)))}else I=p&~w,I!==0?g=_l(I):S!==0&&(g=_l(S));if(g===0)return 0;if(c!==0&&c!==g&&(c&w)===0&&(w=g&-g,S=c&-c,w>=S||w===16&&(S&4194240)!==0))return c;if((g&4)!==0&&(g|=p&16),c=i.entangledLanes,c!==0)for(i=i.entanglements,c&=g;0p;p++)c.push(i);return c}function gl(i,c,p){i.pendingLanes|=c,c!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,c=31-ro(c),i[c]=p}function jO(i,c){var p=i.pendingLanes&~c;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=c,i.mutableReadLanes&=c,i.entangledLanes&=c,c=i.entanglements;var g=i.eventTimes;for(i=i.expirationTimes;0=Cl),Lw=" ",Fw=!1;function Bw(i,c){switch(i){case"keyup":return dD.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ww(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Rs=!1;function fD(i,c){switch(i){case"compositionend":return Ww(c);case"keypress":return c.which!==32?null:(Fw=!0,Lw);case"textInput":return i=c.data,i===Lw&&Fw?null:i;default:return null}}function hD(i,c){if(Rs)return i==="compositionend"||!km&&Bw(i,c)?(i=Aw(),Wd=ym=Na=null,Rs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Jw(p)}}function Kw(i,c){return i&&c?i===c?!0:i&&i.nodeType===3?!1:c&&c.nodeType===3?Kw(i,c.parentNode):"contains"in i?i.contains(c):i.compareDocumentPosition?!!(i.compareDocumentPosition(c)&16):!1:!1}function Zw(){for(var i=window,c=Ge();c instanceof i.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)i=c.contentWindow;else break;c=Ge(i.document)}return c}function Em(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c&&(c==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||c==="textarea"||i.contentEditable==="true")}function xD(i){var c=Zw(),p=i.focusedElem,g=i.selectionRange;if(c!==p&&p&&p.ownerDocument&&Kw(p.ownerDocument.documentElement,p)){if(g!==null&&Em(p)){if(c=g.start,i=g.end,i===void 0&&(i=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(i,p.value.length);else if(i=(c=p.ownerDocument||document)&&c.defaultView||window,i.getSelection){i=i.getSelection();var w=p.textContent.length,S=Math.min(g.start,w);g=g.end===void 0?S:Math.min(g.end,w),!i.extend&&S>g&&(w=g,g=S,S=w),w=Yw(p,S);var I=Yw(p,g);w&&I&&(i.rangeCount!==1||i.anchorNode!==w.node||i.anchorOffset!==w.offset||i.focusNode!==I.node||i.focusOffset!==I.offset)&&(c=c.createRange(),c.setStart(w.node,w.offset),i.removeAllRanges(),S>g?(i.addRange(c),i.extend(I.node,I.offset)):(c.setEnd(I.node,I.offset),i.addRange(c)))}}for(c=[],i=p;i=i.parentNode;)i.nodeType===1&&c.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,Ms=null,Tm=null,Ol=null,Om=!1;function Qw(i,c,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Om||Ms==null||Ms!==Ge(g)||(g=Ms,"selectionStart"in g&&Em(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Ol&&Tl(Ol,g)||(Ol=g,g=Yd(Tm,"onSelect"),0js||(i.current=Bm[js],Bm[js]=null,js--)}function Lt(i,c){js++,Bm[js]=i.current,i.current=c}var za={},Fr=ja(za),an=ja(!1),Ci=za;function zs(i,c){var p=i.type.contextTypes;if(!p)return za;var g=i.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===c)return g.__reactInternalMemoizedMaskedChildContext;var w={},S;for(S in p)w[S]=c[S];return g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=c,i.__reactInternalMemoizedMaskedChildContext=w),w}function sn(i){return i=i.childContextTypes,i!=null}function ep(){Ut(an),Ut(Fr)}function hS(i,c,p){if(Fr.current!==za)throw Error(r(168));Lt(Fr,c),Lt(an,p)}function mS(i,c,p){var g=i.stateNode;if(c=c.childContextTypes,typeof g.getChildContext!="function")return p;g=g.getChildContext();for(var w in g)if(!(w in c))throw Error(r(108,he(i)||"Unknown",w));return te({},p,g)}function tp(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||za,Ci=Fr.current,Lt(Fr,i),Lt(an,an.current),!0}function _S(i,c,p){var g=i.stateNode;if(!g)throw Error(r(169));p?(i=mS(i,c,Ci),g.__reactInternalMemoizedMergedChildContext=i,Ut(an),Ut(Fr),Lt(Fr,i)):Ut(an),Lt(an,p)}var ra=null,rp=!1,Wm=!1;function gS(i){ra===null?ra=[i]:ra.push(i)}function ID(i){rp=!0,gS(i)}function La(){if(!Wm&&ra!==null){Wm=!0;var i=0,c=Nt;try{var p=ra;for(Nt=1;i>=I,w-=I,na=1<<32-ro(c)+w|p<rt?(Or=Ye,Ye=null):Or=Ye.sibling;var xt=ue(Y,Ye,K[rt],ye);if(xt===null){Ye===null&&(Ye=Or);break}i&&Ye&&xt.alternate===null&&c(Y,Ye),G=S(xt,G,rt),Je===null?Pe=xt:Je.sibling=xt,Je=xt,Ye=Or}if(rt===K.length)return p(Y,Ye),Jt&&Ei(Y,rt),Pe;if(Ye===null){for(;rtrt?(Or=Ye,Ye=null):Or=Ye.sibling;var Xa=ue(Y,Ye,xt.value,ye);if(Xa===null){Ye===null&&(Ye=Or);break}i&&Ye&&Xa.alternate===null&&c(Y,Ye),G=S(Xa,G,rt),Je===null?Pe=Xa:Je.sibling=Xa,Je=Xa,Ye=Or}if(xt.done)return p(Y,Ye),Jt&&Ei(Y,rt),Pe;if(Ye===null){for(;!xt.done;rt++,xt=K.next())xt=fe(Y,xt.value,ye),xt!==null&&(G=S(xt,G,rt),Je===null?Pe=xt:Je.sibling=xt,Je=xt);return Jt&&Ei(Y,rt),Pe}for(Ye=g(Y,Ye);!xt.done;rt++,xt=K.next())xt=Ee(Ye,Y,rt,xt.value,ye),xt!==null&&(i&&xt.alternate!==null&&Ye.delete(xt.key===null?rt:xt.key),G=S(xt,G,rt),Je===null?Pe=xt:Je.sibling=xt,Je=xt);return i&&Ye.forEach(function(mR){return c(Y,mR)}),Jt&&Ei(Y,rt),Pe}function ur(Y,G,K,ye){if(typeof K=="object"&&K!==null&&K.type===D&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case A:e:{for(var Pe=K.key,Je=G;Je!==null;){if(Je.key===Pe){if(Pe=K.type,Pe===D){if(Je.tag===7){p(Y,Je.sibling),G=w(Je,K.props.children),G.return=Y,Y=G;break e}}else if(Je.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===J&&xS(Pe)===Je.type){p(Y,Je.sibling),G=w(Je,K.props),G.ref=Il(Y,Je,K),G.return=Y,Y=G;break e}p(Y,Je);break}else c(Y,Je);Je=Je.sibling}K.type===D?(G=Ii(K.props.children,Y.mode,ye,K.key),G.return=Y,Y=G):(ye=Dp(K.type,K.key,K.props,null,Y.mode,ye),ye.ref=Il(Y,G,K),ye.return=Y,Y=ye)}return I(Y);case E:e:{for(Je=K.key;G!==null;){if(G.key===Je)if(G.tag===4&&G.stateNode.containerInfo===K.containerInfo&&G.stateNode.implementation===K.implementation){p(Y,G.sibling),G=w(G,K.children||[]),G.return=Y,Y=G;break e}else{p(Y,G);break}else c(Y,G);G=G.sibling}G=L_(K,Y.mode,ye),G.return=Y,Y=G}return I(Y);case J:return Je=K._init,ur(Y,G,Je(K._payload),ye)}if(tt(K))return Me(Y,G,K,ye);if(X(K))return Ne(Y,G,K,ye);ip(Y,K)}return typeof K=="string"&&K!==""||typeof K=="number"?(K=""+K,G!==null&&G.tag===6?(p(Y,G.sibling),G=w(G,K),G.return=Y,Y=G):(p(Y,G),G=z_(K,Y.mode,ye),G.return=Y,Y=G),I(Y)):p(Y,G)}return ur}var Ws=kS(!0),CS=kS(!1),sp=ja(null),cp=null,Us=null,Xm=null;function Jm(){Xm=Us=cp=null}function Ym(i){var c=sp.current;Ut(sp),i._currentValue=c}function Km(i,c,p){for(;i!==null;){var g=i.alternate;if((i.childLanes&c)!==c?(i.childLanes|=c,g!==null&&(g.childLanes|=c)):g!==null&&(g.childLanes&c)!==c&&(g.childLanes|=c),i===p)break;i=i.return}}function qs(i,c){cp=i,Xm=Us=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&c)!==0&&(cn=!0),i.firstContext=null)}function Wn(i){var c=i._currentValue;if(Xm!==i)if(i={context:i,memoizedValue:c,next:null},Us===null){if(cp===null)throw Error(r(308));Us=i,cp.dependencies={lanes:0,firstContext:i}}else Us=Us.next=i;return c}var Ti=null;function Zm(i){Ti===null?Ti=[i]:Ti.push(i)}function $S(i,c,p,g){var w=c.interleaved;return w===null?(p.next=p,Zm(c)):(p.next=w.next,w.next=p),c.interleaved=p,aa(i,g)}function aa(i,c){i.lanes|=c;var p=i.alternate;for(p!==null&&(p.lanes|=c),p=i,i=i.return;i!==null;)i.childLanes|=c,p=i.alternate,p!==null&&(p.childLanes|=c),p=i,i=i.return;return p.tag===3?p.stateNode:null}var Fa=!1;function Qm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ES(i,c){i=i.updateQueue,c.updateQueue===i&&(c.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function ia(i,c){return{eventTime:i,lane:c,tag:0,payload:null,callback:null,next:null}}function Ba(i,c,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(St&2)!==0){var w=g.pending;return w===null?c.next=c:(c.next=w.next,w.next=c),g.pending=c,aa(i,p)}return w=g.interleaved,w===null?(c.next=c,Zm(g)):(c.next=w.next,w.next=c),g.interleaved=c,aa(i,p)}function lp(i,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var g=c.lanes;g&=i.pendingLanes,p|=g,c.lanes=p,fm(i,p)}}function TS(i,c){var p=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var w=null,S=null;if(p=p.firstBaseUpdate,p!==null){do{var I={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};S===null?w=S=I:S=S.next=I,p=p.next}while(p!==null);S===null?w=S=c:S=S.next=c}else w=S=c;p={baseState:g.baseState,firstBaseUpdate:w,lastBaseUpdate:S,shared:g.shared,effects:g.effects},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=c:i.next=c,p.lastBaseUpdate=c}function up(i,c,p,g){var w=i.updateQueue;Fa=!1;var S=w.firstBaseUpdate,I=w.lastBaseUpdate,F=w.shared.pending;if(F!==null){w.shared.pending=null;var U=F,Q=U.next;U.next=null,I===null?S=Q:I.next=Q,I=U;var de=i.alternate;de!==null&&(de=de.updateQueue,F=de.lastBaseUpdate,F!==I&&(F===null?de.firstBaseUpdate=Q:F.next=Q,de.lastBaseUpdate=U))}if(S!==null){var fe=w.baseState;I=0,de=Q=U=null,F=S;do{var ue=F.lane,Ee=F.eventTime;if((g&ue)===ue){de!==null&&(de=de.next={eventTime:Ee,lane:0,tag:F.tag,payload:F.payload,callback:F.callback,next:null});e:{var Me=i,Ne=F;switch(ue=c,Ee=p,Ne.tag){case 1:if(Me=Ne.payload,typeof Me=="function"){fe=Me.call(Ee,fe,ue);break e}fe=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Ne.payload,ue=typeof Me=="function"?Me.call(Ee,fe,ue):Me,ue==null)break e;fe=te({},fe,ue);break e;case 2:Fa=!0}}F.callback!==null&&F.lane!==0&&(i.flags|=64,ue=w.effects,ue===null?w.effects=[F]:ue.push(F))}else Ee={eventTime:Ee,lane:ue,tag:F.tag,payload:F.payload,callback:F.callback,next:null},de===null?(Q=de=Ee,U=fe):de=de.next=Ee,I|=ue;if(F=F.next,F===null){if(F=w.shared.pending,F===null)break;ue=F,F=ue.next,ue.next=null,w.lastBaseUpdate=ue,w.shared.pending=null}}while(!0);if(de===null&&(U=fe),w.baseState=U,w.firstBaseUpdate=Q,w.lastBaseUpdate=de,c=w.shared.interleaved,c!==null){w=c;do I|=w.lane,w=w.next;while(w!==c)}else S===null&&(w.shared.lanes=0);Ri|=I,i.lanes=I,i.memoizedState=fe}}function OS(i,c,p){if(i=c.effects,c.effects=null,i!==null)for(c=0;cp?p:4,i(!0);var g=o_.transition;o_.transition={};try{i(!1),c()}finally{Nt=p,o_.transition=g}}function XS(){return Un().memoizedState}function LD(i,c,p){var g=Ha(i);if(p={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null},JS(i))YS(c,p);else if(p=$S(i,c,p,g),p!==null){var w=Qr();co(p,i,g,w),KS(p,c,g)}}function FD(i,c,p){var g=Ha(i),w={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null};if(JS(i))YS(c,w);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=c.lastRenderedReducer,S!==null))try{var I=c.lastRenderedState,F=S(I,p);if(w.hasEagerState=!0,w.eagerState=F,no(F,I)){var U=c.interleaved;U===null?(w.next=w,Zm(c)):(w.next=U.next,U.next=w),c.interleaved=w;return}}catch{}p=$S(i,c,w,g),p!==null&&(w=Qr(),co(p,i,g,w),KS(p,c,g))}}function JS(i){var c=i.alternate;return i===tr||c!==null&&c===tr}function YS(i,c){Ll=fp=!0;var p=i.pending;p===null?c.next=c:(c.next=p.next,p.next=c),i.pending=c}function KS(i,c,p){if((p&4194240)!==0){var g=c.lanes;g&=i.pendingLanes,p|=g,c.lanes=p,fm(i,p)}}var _p={readContext:Wn,useCallback:Br,useContext:Br,useEffect:Br,useImperativeHandle:Br,useInsertionEffect:Br,useLayoutEffect:Br,useMemo:Br,useReducer:Br,useRef:Br,useState:Br,useDebugValue:Br,useDeferredValue:Br,useTransition:Br,useMutableSource:Br,useSyncExternalStore:Br,useId:Br,unstable_isNewReconciler:!1},BD={readContext:Wn,useCallback:function(i,c){return Oo().memoizedState=[i,c===void 0?null:c],i},useContext:Wn,useEffect:FS,useImperativeHandle:function(i,c,p){return p=p!=null?p.concat([i]):null,hp(4194308,4,US.bind(null,c,i),p)},useLayoutEffect:function(i,c){return hp(4194308,4,i,c)},useInsertionEffect:function(i,c){return hp(4,2,i,c)},useMemo:function(i,c){var p=Oo();return c=c===void 0?null:c,i=i(),p.memoizedState=[i,c],i},useReducer:function(i,c,p){var g=Oo();return c=p!==void 0?p(c):c,g.memoizedState=g.baseState=c,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:c},g.queue=i,i=i.dispatch=LD.bind(null,tr,i),[g.memoizedState,i]},useRef:function(i){var c=Oo();return i={current:i},c.memoizedState=i},useState:zS,useDebugValue:d_,useDeferredValue:function(i){return Oo().memoizedState=i},useTransition:function(){var i=zS(!1),c=i[0];return i=zD.bind(null,i[1]),Oo().memoizedState=i,[c,i]},useMutableSource:function(){},useSyncExternalStore:function(i,c,p){var g=tr,w=Oo();if(Jt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Tr===null)throw Error(r(349));(Di&30)!==0||AS(g,c,p)}w.memoizedState=p;var S={value:p,getSnapshot:c};return w.queue=S,FS(IS.bind(null,g,S,i),[i]),g.flags|=2048,Wl(9,NS.bind(null,g,S,p,c),void 0,null),p},useId:function(){var i=Oo(),c=Tr.identifierPrefix;if(Jt){var p=oa,g=na;p=(g&~(1<<32-ro(g)-1)).toString(32)+p,c=":"+c+"R"+p,p=Fl++,0<\/script>",i=i.removeChild(i.firstChild)):typeof g.is=="string"?i=I.createElement(p,{is:g.is}):(i=I.createElement(p),p==="select"&&(I=i,g.multiple?I.multiple=!0:g.size&&(I.size=g.size))):i=I.createElementNS(i,p),i[Eo]=c,i[Al]=g,g5(i,c,!1,!1),c.stateNode=i;e:{switch(I=Cr(p,g),p){case"dialog":Wt("cancel",i),Wt("close",i),w=g;break;case"iframe":case"object":case"embed":Wt("load",i),w=g;break;case"video":case"audio":for(w=0;wJs&&(c.flags|=128,g=!0,Ul(S,!1),c.lanes=4194304)}else{if(!g)if(i=dp(I),i!==null){if(c.flags|=128,g=!0,p=i.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),Ul(S,!0),S.tail===null&&S.tailMode==="hidden"&&!I.alternate&&!Jt)return Wr(c),null}else 2*lr()-S.renderingStartTime>Js&&p!==1073741824&&(c.flags|=128,g=!0,Ul(S,!1),c.lanes=4194304);S.isBackwards?(I.sibling=c.child,c.child=I):(p=S.last,p!==null?p.sibling=I:c.child=I,S.last=I)}return S.tail!==null?(c=S.tail,S.rendering=c,S.tail=c.sibling,S.renderingStartTime=lr(),c.sibling=null,p=er.current,Lt(er,g?p&1|2:p&1),c):(Wr(c),null);case 22:case 23:return I_(),g=c.memoizedState!==null,i!==null&&i.memoizedState!==null!==g&&(c.flags|=8192),g&&(c.mode&1)!==0?(En&1073741824)!==0&&(Wr(c),c.subtreeFlags&6&&(c.flags|=8192)):Wr(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function JD(i,c){switch(qm(c),c.tag){case 1:return sn(c.type)&&ep(),i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 3:return Hs(),Ut(an),Ut(Fr),n_(),i=c.flags,(i&65536)!==0&&(i&128)===0?(c.flags=i&-65537|128,c):null;case 5:return t_(c),null;case 13:if(Ut(er),i=c.memoizedState,i!==null&&i.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Bs()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 19:return Ut(er),null;case 4:return Hs(),null;case 10:return Ym(c.type._context),null;case 22:case 23:return I_(),null;case 24:return null;default:return null}}var bp=!1,Ur=!1,YD=typeof WeakSet=="function"?WeakSet:Set,De=null;function Gs(i,c){var p=i.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(g){ar(i,c,g)}else p.current=null}function x_(i,c,p){try{p()}catch(g){ar(i,c,g)}}var b5=!1;function KD(i,c){if(Im=Fd,i=Zw(),Em(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var w=g.anchorOffset,S=g.focusNode;g=g.focusOffset;try{p.nodeType,S.nodeType}catch{p=null;break e}var I=0,F=-1,U=-1,Q=0,de=0,fe=i,ue=null;t:for(;;){for(var Ee;fe!==p||w!==0&&fe.nodeType!==3||(F=I+w),fe!==S||g!==0&&fe.nodeType!==3||(U=I+g),fe.nodeType===3&&(I+=fe.nodeValue.length),(Ee=fe.firstChild)!==null;)ue=fe,fe=Ee;for(;;){if(fe===i)break t;if(ue===p&&++Q===w&&(F=I),ue===S&&++de===g&&(U=I),(Ee=fe.nextSibling)!==null)break;fe=ue,ue=fe.parentNode}fe=Ee}p=F===-1||U===-1?null:{start:F,end:U}}else p=null}p=p||{start:0,end:0}}else p=null;for(Pm={focusedElem:i,selectionRange:p},Fd=!1,De=c;De!==null;)if(c=De,i=c.child,(c.subtreeFlags&1028)!==0&&i!==null)i.return=c,De=i;else for(;De!==null;){c=De;try{var Me=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(Me!==null){var Ne=Me.memoizedProps,ur=Me.memoizedState,Y=c.stateNode,G=Y.getSnapshotBeforeUpdate(c.elementType===c.type?Ne:ao(c.type,Ne),ur);Y.__reactInternalSnapshotBeforeUpdate=G}break;case 3:var K=c.stateNode.containerInfo;K.nodeType===1?K.textContent="":K.nodeType===9&&K.documentElement&&K.removeChild(K.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ye){ar(c,c.return,ye)}if(i=c.sibling,i!==null){i.return=c.return,De=i;break}De=c.return}return Me=b5,b5=!1,Me}function ql(i,c,p){var g=c.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var w=g=g.next;do{if((w.tag&i)===i){var S=w.destroy;w.destroy=void 0,S!==void 0&&x_(c,p,S)}w=w.next}while(w!==g)}}function wp(i,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&i)===i){var g=p.create;p.destroy=g()}p=p.next}while(p!==c)}}function k_(i){var c=i.ref;if(c!==null){var p=i.stateNode;i.tag,i=p,typeof c=="function"?c(i):c.current=i}}function w5(i){var c=i.alternate;c!==null&&(i.alternate=null,w5(c)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(c=i.stateNode,c!==null&&(delete c[Eo],delete c[Al],delete c[Fm],delete c[AD],delete c[ND])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function S5(i){return i.tag===5||i.tag===3||i.tag===4}function x5(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||S5(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function C_(i,c,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(i,c):p.insertBefore(i,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(i,p)):(c=p,c.appendChild(i)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Zd));else if(g!==4&&(i=i.child,i!==null))for(C_(i,c,p),i=i.sibling;i!==null;)C_(i,c,p),i=i.sibling}function $_(i,c,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,c?p.insertBefore(i,c):p.appendChild(i);else if(g!==4&&(i=i.child,i!==null))for($_(i,c,p),i=i.sibling;i!==null;)$_(i,c,p),i=i.sibling}var Mr=null,io=!1;function Wa(i,c,p){for(p=p.child;p!==null;)k5(i,c,p),p=p.sibling}function k5(i,c,p){if($o&&typeof $o.onCommitFiberUnmount=="function")try{$o.onCommitFiberUnmount(Nd,p)}catch{}switch(p.tag){case 5:Ur||Gs(p,c);case 6:var g=Mr,w=io;Mr=null,Wa(i,c,p),Mr=g,io=w,Mr!==null&&(io?(i=Mr,p=p.stateNode,i.nodeType===8?i.parentNode.removeChild(p):i.removeChild(p)):Mr.removeChild(p.stateNode));break;case 18:Mr!==null&&(io?(i=Mr,p=p.stateNode,i.nodeType===8?Lm(i.parentNode,p):i.nodeType===1&&Lm(i,p),Sl(i)):Lm(Mr,p.stateNode));break;case 4:g=Mr,w=io,Mr=p.stateNode.containerInfo,io=!0,Wa(i,c,p),Mr=g,io=w;break;case 0:case 11:case 14:case 15:if(!Ur&&(g=p.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){w=g=g.next;do{var S=w,I=S.destroy;S=S.tag,I!==void 0&&((S&2)!==0||(S&4)!==0)&&x_(p,c,I),w=w.next}while(w!==g)}Wa(i,c,p);break;case 1:if(!Ur&&(Gs(p,c),g=p.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=p.memoizedProps,g.state=p.memoizedState,g.componentWillUnmount()}catch(F){ar(p,c,F)}Wa(i,c,p);break;case 21:Wa(i,c,p);break;case 22:p.mode&1?(Ur=(g=Ur)||p.memoizedState!==null,Wa(i,c,p),Ur=g):Wa(i,c,p);break;default:Wa(i,c,p)}}function C5(i){var c=i.updateQueue;if(c!==null){i.updateQueue=null;var p=i.stateNode;p===null&&(p=i.stateNode=new YD),c.forEach(function(g){var w=iR.bind(null,i,g);p.has(g)||(p.add(g),g.then(w,w))})}}function so(i,c){var p=c.deletions;if(p!==null)for(var g=0;gw&&(w=I),g&=~S}if(g=w,g=lr()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*QD(g/1960))-g,10i?16:i,qa===null)var g=!1;else{if(i=qa,qa=null,$p=0,(St&6)!==0)throw Error(r(331));var w=St;for(St|=4,De=i.current;De!==null;){var S=De,I=S.child;if((De.flags&16)!==0){var F=S.deletions;if(F!==null){for(var U=0;Ulr()-O_?Ai(i,0):T_|=p),un(i,c)}function z5(i,c){c===0&&((i.mode&1)===0?c=1:(c=Pd,Pd<<=1,(Pd&130023424)===0&&(Pd=4194304)));var p=Qr();i=aa(i,c),i!==null&&(gl(i,c,p),un(i,p))}function aR(i){var c=i.memoizedState,p=0;c!==null&&(p=c.retryLane),z5(i,p)}function iR(i,c){var p=0;switch(i.tag){case 13:var g=i.stateNode,w=i.memoizedState;w!==null&&(p=w.retryLane);break;case 19:g=i.stateNode;break;default:throw Error(r(314))}g!==null&&g.delete(c),z5(i,p)}var L5;L5=function(i,c,p){if(i!==null)if(i.memoizedProps!==c.pendingProps||an.current)cn=!0;else{if((i.lanes&p)===0&&(c.flags&128)===0)return cn=!1,GD(i,c,p);cn=(i.flags&131072)!==0}else cn=!1,Jt&&(c.flags&1048576)!==0&&yS(c,op,c.index);switch(c.lanes=0,c.tag){case 2:var g=c.type;vp(i,c),i=c.pendingProps;var w=zs(c,Fr.current);qs(c,p),w=i_(null,c,g,i,w,p);var S=s_();return c.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,sn(g)?(S=!0,tp(c)):S=!1,c.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,Qm(c),w.updater=gp,c.stateNode=w,w._reactInternals=c,f_(c,g,i,p),c=g_(null,c,g,!0,S,p)):(c.tag=0,Jt&&S&&Um(c),Zr(null,c,w,p),c=c.child),c;case 16:g=c.elementType;e:{switch(vp(i,c),i=c.pendingProps,w=g._init,g=w(g._payload),c.type=g,w=c.tag=cR(g),i=ao(g,i),w){case 0:c=__(null,c,g,i,p);break e;case 1:c=d5(null,c,g,i,p);break e;case 11:c=i5(null,c,g,i,p);break e;case 14:c=s5(null,c,g,ao(g.type,i),p);break e}throw Error(r(306,g,""))}return c;case 0:return g=c.type,w=c.pendingProps,w=c.elementType===g?w:ao(g,w),__(i,c,g,w,p);case 1:return g=c.type,w=c.pendingProps,w=c.elementType===g?w:ao(g,w),d5(i,c,g,w,p);case 3:e:{if(p5(c),i===null)throw Error(r(387));g=c.pendingProps,S=c.memoizedState,w=S.element,ES(i,c),up(c,g,null,p);var I=c.memoizedState;if(g=I.element,S.isDehydrated)if(S={element:g,isDehydrated:!1,cache:I.cache,pendingSuspenseBoundaries:I.pendingSuspenseBoundaries,transitions:I.transitions},c.updateQueue.baseState=S,c.memoizedState=S,c.flags&256){w=Vs(Error(r(423)),c),c=f5(i,c,g,p,w);break e}else if(g!==w){w=Vs(Error(r(424)),c),c=f5(i,c,g,p,w);break e}else for($n=Pa(c.stateNode.containerInfo.firstChild),Cn=c,Jt=!0,oo=null,p=CS(c,null,g,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Bs(),g===w){c=sa(i,c,p);break e}Zr(i,c,g,p)}c=c.child}return c;case 5:return DS(c),i===null&&Vm(c),g=c.type,w=c.pendingProps,S=i!==null?i.memoizedProps:null,I=w.children,jm(g,w)?I=null:S!==null&&jm(g,S)&&(c.flags|=32),u5(i,c),Zr(i,c,I,p),c.child;case 6:return i===null&&Vm(c),null;case 13:return h5(i,c,p);case 4:return e_(c,c.stateNode.containerInfo),g=c.pendingProps,i===null?c.child=Ws(c,null,g,p):Zr(i,c,g,p),c.child;case 11:return g=c.type,w=c.pendingProps,w=c.elementType===g?w:ao(g,w),i5(i,c,g,w,p);case 7:return Zr(i,c,c.pendingProps,p),c.child;case 8:return Zr(i,c,c.pendingProps.children,p),c.child;case 12:return Zr(i,c,c.pendingProps.children,p),c.child;case 10:e:{if(g=c.type._context,w=c.pendingProps,S=c.memoizedProps,I=w.value,Lt(sp,g._currentValue),g._currentValue=I,S!==null)if(no(S.value,I)){if(S.children===w.children&&!an.current){c=sa(i,c,p);break e}}else for(S=c.child,S!==null&&(S.return=c);S!==null;){var F=S.dependencies;if(F!==null){I=S.child;for(var U=F.firstContext;U!==null;){if(U.context===g){if(S.tag===1){U=ia(-1,p&-p),U.tag=2;var Q=S.updateQueue;if(Q!==null){Q=Q.shared;var de=Q.pending;de===null?U.next=U:(U.next=de.next,de.next=U),Q.pending=U}}S.lanes|=p,U=S.alternate,U!==null&&(U.lanes|=p),Km(S.return,p,c),F.lanes|=p;break}U=U.next}}else if(S.tag===10)I=S.type===c.type?null:S.child;else if(S.tag===18){if(I=S.return,I===null)throw Error(r(341));I.lanes|=p,F=I.alternate,F!==null&&(F.lanes|=p),Km(I,p,c),I=S.sibling}else I=S.child;if(I!==null)I.return=S;else for(I=S;I!==null;){if(I===c){I=null;break}if(S=I.sibling,S!==null){S.return=I.return,I=S;break}I=I.return}S=I}Zr(i,c,w.children,p),c=c.child}return c;case 9:return w=c.type,g=c.pendingProps.children,qs(c,p),w=Wn(w),g=g(w),c.flags|=1,Zr(i,c,g,p),c.child;case 14:return g=c.type,w=ao(g,c.pendingProps),w=ao(g.type,w),s5(i,c,g,w,p);case 15:return c5(i,c,c.type,c.pendingProps,p);case 17:return g=c.type,w=c.pendingProps,w=c.elementType===g?w:ao(g,w),vp(i,c),c.tag=1,sn(g)?(i=!0,tp(c)):i=!1,qs(c,p),QS(c,g,w),f_(c,g,w,p),g_(null,c,g,!0,i,p);case 19:return _5(i,c,p);case 22:return l5(i,c,p)}throw Error(r(156,c.tag))};function F5(i,c){return vw(i,c)}function sR(i,c,p,g){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hn(i,c,p,g){return new sR(i,c,p,g)}function j_(i){return i=i.prototype,!(!i||!i.isReactComponent)}function cR(i){if(typeof i=="function")return j_(i)?1:0;if(i!=null){if(i=i.$$typeof,i===W)return 11;if(i===q)return 14}return 2}function Ga(i,c){var p=i.alternate;return p===null?(p=Hn(i.tag,c,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=c,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&14680064,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,c=i.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p}function Dp(i,c,p,g,w,S){var I=2;if(g=i,typeof i=="function")j_(i)&&(I=1);else if(typeof i=="string")I=5;else e:switch(i){case D:return Ii(p.children,w,S,c);case j:I=8,w|=8;break;case P:return i=Hn(12,p,c,w|2),i.elementType=P,i.lanes=S,i;case H:return i=Hn(13,p,c,w),i.elementType=H,i.lanes=S,i;case V:return i=Hn(19,p,c,w),i.elementType=V,i.lanes=S,i;case ee:return Rp(p,w,S,c);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case $:I=10;break e;case L:I=9;break e;case W:I=11;break e;case q:I=14;break e;case J:I=16,g=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return c=Hn(I,p,c,w),c.elementType=i,c.type=g,c.lanes=S,c}function Ii(i,c,p,g){return i=Hn(7,i,g,c),i.lanes=p,i}function Rp(i,c,p,g){return i=Hn(22,i,g,c),i.elementType=ee,i.lanes=p,i.stateNode={isHidden:!1},i}function z_(i,c,p){return i=Hn(6,i,null,c),i.lanes=p,i}function L_(i,c,p){return c=Hn(4,i.children!==null?i.children:[],i.key,c),c.lanes=p,c.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},c}function lR(i,c,p,g,w){this.tag=c,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pm(0),this.expirationTimes=pm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pm(0),this.identifierPrefix=g,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function F_(i,c,p,g,w,S,I,F,U){return i=new lR(i,c,p,F,U),c===1?(c=1,S===!0&&(c|=8)):c=0,S=Hn(3,null,null,c),i.current=S,S.stateNode=i,S.memoizedState={element:g,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qm(S),i}function uR(i,c,p){var g=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),V_.exports=SR(),V_.exports}var ex;function xR(){if(ex)return Lp;ex=1;var t=sT();return Lp.createRoot=t.createRoot,Lp.hydrateRoot=t.hydrateRoot,Lp}var kR=xR();function wa(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const mo="$$material";function Qv(){return Qv=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Pr(rl,--vn):0,qc--,_r===10&&(qc=1,dh--),_r}function Nn(){return _r=vn2||Wu(_r)>3?"":" "}function BR(t,e){for(;--e&&Nn()&&!(_r<48||_r>102||_r>57&&_r<65||_r>70&&_r<97););return ld(t,vf()+(e<6&&Wo()==32&&Nn()==32))}function t1(t){for(;Nn();)switch(_r){case t:return vn;case 34:case 39:t!==34&&t!==39&&t1(_r);break;case 40:t===41&&t1(t);break;case 92:Nn();break}return vn}function WR(t,e){for(;Nn()&&t+_r!==57;)if(t+_r===84&&Wo()===47)break;return"/*"+ld(e,vn-1)+"*"+uh(t===47?t:Nn())}function UR(t){for(;!Wu(Wo());)Nn();return ld(t,vn)}function qR(t){return fT(wf("",null,null,null,[""],t=pT(t),0,[0],t))}function wf(t,e,r,n,o,a,s,l,u){for(var f=0,h=0,d=s,m=0,y=0,v=0,b=1,x=1,k=1,O=0,T="",M=o,A=a,E=n,D=T;x;)switch(v=O,O=Nn()){case 40:if(v!=108&&Pr(D,d-1)==58){e1(D+=Tt(bf(O),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:D+=bf(O);break;case 9:case 10:case 13:case 32:D+=FR(v);break;case 92:D+=BR(vf()-1,7);continue;case 47:switch(Wo()){case 42:case 47:Fp(HR(WR(Nn(),vf()),e,r),u);break;default:D+="/"}break;case 123*b:l[f++]=Io(D)*k;case 125*b:case 59:case 0:switch(O){case 0:case 125:x=0;case 59+h:k==-1&&(D=Tt(D,/\f/g,"")),y>0&&Io(D)-d&&Fp(y>32?ax(D+";",n,r,d-1):ax(Tt(D," ","")+";",n,r,d-2),u);break;case 59:D+=";";default:if(Fp(E=ox(D,e,r,f,h,o,l,T,M=[],A=[],d),a),O===123)if(h===0)wf(D,e,E,E,M,a,d,l,A);else switch(m===99&&Pr(D,3)===110?100:m){case 100:case 108:case 109:case 115:wf(t,E,E,n&&Fp(ox(t,E,E,0,0,o,l,T,o,M=[],d),A),o,A,d,l,n?M:A);break;default:wf(D,E,E,E,[""],A,0,l,A)}}f=h=y=0,b=k=1,T=D="",d=s;break;case 58:d=1+Io(D),y=v;default:if(b<1){if(O==123)--b;else if(O==125&&b++==0&&LR()==125)continue}switch(D+=uh(O),O*b){case 38:k=h>0?1:(D+="\f",-1);break;case 44:l[f++]=(Io(D)-1)*k,k=1;break;case 64:Wo()===45&&(D+=bf(Nn())),m=Wo(),h=d=Io(T=D+=UR(vf())),O++;break;case 45:v===45&&Io(D)==2&&(b=0)}}return a}function ox(t,e,r,n,o,a,s,l,u,f,h){for(var d=o-1,m=o===0?a:[""],y=yb(m),v=0,b=0,x=0;v0?m[k]+" "+O:Tt(O,/&\f/g,m[k])))&&(u[x++]=T);return ph(t,e,r,o===0?_b:l,u,f,h)}function HR(t,e,r){return ph(t,e,r,cT,uh(zR()),Bu(t,2,-2),0)}function ax(t,e,r,n){return ph(t,e,r,gb,Bu(t,0,n),Bu(t,n+1,-1),n)}function zc(t,e){for(var r="",n=yb(t),o=0;o6)switch(Pr(t,e+1)){case 109:if(Pr(t,e+4)!==45)break;case 102:return Tt(t,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Nf+(Pr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~e1(t,"stretch")?mT(Tt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Pr(t,e+1)!==115)break;case 6444:switch(Pr(t,Io(t)-3-(~e1(t,"!important")&&10))){case 107:return Tt(t,":",":"+$t)+t;case 101:return Tt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(Pr(t,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+Hr+"$2box$3")+t}break;case 5936:switch(Pr(t,e+11)){case 114:return $t+t+Hr+Tt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return $t+t+Hr+Tt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return $t+t+Hr+Tt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return $t+t+Hr+t+t}return t}var eM=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case gb:e.return=mT(e.value,e.length);break;case lT:return zc([Yl(e,{value:Tt(e.value,"@","@"+$t)})],o);case _b:if(e.length)return jR(e.props,function(a){switch(PR(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zc([Yl(e,{props:[Tt(a,/:(read-\w+)/,":"+Nf+"$1")]})],o);case"::placeholder":return zc([Yl(e,{props:[Tt(a,/:(plac\w+)/,":"+$t+"input-$1")]}),Yl(e,{props:[Tt(a,/:(plac\w+)/,":"+Nf+"$1")]}),Yl(e,{props:[Tt(a,/:(plac\w+)/,Hr+"input-$1")]})],o)}return""})}},tM=[eM],rM=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=e.stylisPlugins||tM,a={},s,l=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),k=1;k=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var cM={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},lM=/[A-Z]|^ms/g,uM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gT=function(e){return e.charCodeAt(1)===45},ux=function(e){return e!=null&&typeof e!="boolean"},Z_=hT(function(t){return gT(t)?t:t.replace(lM,"-$&").toLowerCase()}),dx=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(uM,function(n,o,a){return Po={name:o,styles:a,next:Po},o})}return cM[e]!==1&&!gT(e)&&typeof r=="number"&&r!==0?r+"px":r};function Uu(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Po={name:o.name,styles:o.styles,next:Po},o.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Po={name:s.name,styles:s.styles,next:Po},s=s.next;var l=a.styles+";";return l}return dM(t,e,r)}case"function":{if(t!==void 0){var u=Po,f=r(t);return Po=u,Uu(t,e,f)}break}}var h=r;if(e==null)return h;var d=e[h];return d!==void 0?d:h}function dM(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?wM:SM},_x=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(s){return e.__emotion_forwardProp(s)&&a(s)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},xM=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return vb(r,n,o),vT(function(){return bb(r,n,o)}),null},kM=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,s;r!==void 0&&(a=r.label,s=r.target);var l=_x(e,r,n),u=l||mx(o),f=!u("as");return function(){var h=arguments,d=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)d.push.apply(d,h);else{var m=h[0];d.push(m[0]);for(var y=h.length,v=1;v=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var EM={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 TM(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var OM=/[A-Z]|^ms/g,DM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wT=function(e){return e.charCodeAt(1)===45},gx=function(e){return e!=null&&typeof e!="boolean"},Q_=TM(function(t){return wT(t)?t:t.replace(OM,"-$&").toLowerCase()}),yx=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(DM,function(n,o,a){return ni={name:o,styles:a,next:ni},o})}return EM[e]!==1&&!wT(e)&&typeof r=="number"&&r!==0?r+"px":r};function If(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ni={name:o.name,styles:o.styles,next:ni},o.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)ni={name:s.name,styles:s.styles,next:ni},s=s.next;var l=a.styles+";";return l}return RM(t,e,r)}}var u=r;return u}function RM(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o0?jr(ol,--bn):0,Hc--,gr===10&&(Hc=1,mh--),gr}function In(){return gr=bn<$T?jr(ol,bn++):0,Hc++,gr===10&&(Hc=1,mh++),gr}function Uo(){return jr(ol,bn)}function Sf(){return bn}function dd(t,e){return qu(ol,t,e)}function Hu(t){switch(t){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 ET(t){return mh=Hc=1,$T=jo(ol=t),bn=0,[]}function TT(t){return ol="",t}function xf(t){return CT(dd(bn-1,a1(t===91?t+2:t===40?t+1:t)))}function XM(t){for(;(gr=Uo())&&gr<33;)In();return Hu(t)>2||Hu(gr)>3?"":" "}function JM(t,e){for(;--e&&In()&&!(gr<48||gr>102||gr>57&&gr<65||gr>70&&gr<97););return dd(t,Sf()+(e<6&&Uo()==32&&In()==32))}function a1(t){for(;In();)switch(gr){case t:return bn;case 34:case 39:t!==34&&t!==39&&a1(gr);break;case 40:t===41&&a1(t);break;case 92:In();break}return bn}function YM(t,e){for(;In()&&t+gr!==57;)if(t+gr===84&&Uo()===47)break;return"/*"+dd(e,bn-1)+"*"+hh(t===47?t:In())}function KM(t){for(;!Hu(Uo());)In();return dd(t,bn)}function ZM(t){return TT(kf("",null,null,null,[""],t=ET(t),0,[0],t))}function kf(t,e,r,n,o,a,s,l,u){for(var f=0,h=0,d=s,m=0,y=0,v=0,b=1,x=1,k=1,O=0,T="",M=o,A=a,E=n,D=T;x;)switch(v=O,O=In()){case 40:if(v!=108&&jr(D,d-1)==58){o1(D+=Ot(xf(O),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:D+=xf(O);break;case 9:case 10:case 13:case 32:D+=XM(v);break;case 92:D+=JM(Sf()-1,7);continue;case 47:switch(Uo()){case 42:case 47:Bp(QM(YM(In(),Sf()),e,r),u);break;default:D+="/"}break;case 123*b:l[f++]=jo(D)*k;case 125*b:case 59:case 0:switch(O){case 0:case 125:x=0;case 59+h:k==-1&&(D=Ot(D,/\f/g,"")),y>0&&jo(D)-d&&Bp(y>32?kx(D+";",n,r,d-1):kx(Ot(D," ","")+";",n,r,d-2),u);break;case 59:D+=";";default:if(Bp(E=xx(D,e,r,f,h,o,l,T,M=[],A=[],d),a),O===123)if(h===0)kf(D,e,E,E,M,a,d,l,A);else switch(m===99&&jr(D,3)===110?100:m){case 100:case 108:case 109:case 115:kf(t,E,E,n&&Bp(xx(t,E,E,0,0,o,l,T,o,M=[],d),A),o,A,d,l,n?M:A);break;default:kf(D,E,E,E,[""],A,0,l,A)}}f=h=y=0,b=k=1,T=D="",d=s;break;case 58:d=1+jo(D),y=v;default:if(b<1){if(O==123)--b;else if(O==125&&b++==0&&GM()==125)continue}switch(D+=hh(O),O*b){case 38:k=h>0?1:(D+="\f",-1);break;case 44:l[f++]=(jo(D)-1)*k,k=1;break;case 64:Uo()===45&&(D+=xf(In())),m=Uo(),h=d=jo(T=D+=KM(Sf())),O++;break;case 45:v===45&&jo(D)==2&&(b=0)}}return a}function xx(t,e,r,n,o,a,s,l,u,f,h){for(var d=o-1,m=o===0?a:[""],y=Cb(m),v=0,b=0,x=0;v0?m[k]+" "+O:Ot(O,/&\f/g,m[k])))&&(u[x++]=T);return _h(t,e,r,o===0?xb:l,u,f,h)}function QM(t,e,r){return _h(t,e,r,xT,hh(VM()),qu(t,2,-2),0)}function kx(t,e,r,n){return _h(t,e,r,kb,qu(t,0,n),qu(t,n+1,-1),n)}function Lc(t,e){for(var r="",n=Cb(t),o=0;o6)switch(jr(t,e+1)){case 109:if(jr(t,e+4)!==45)break;case 102:return Ot(t,/(.+:)(.+)-([^]+)/,"$1"+Et+"$2-$3$1"+Pf+(jr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~o1(t,"stretch")?OT(Ot(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(jr(t,e+1)!==115)break;case 6444:switch(jr(t,jo(t)-3-(~o1(t,"!important")&&10))){case 107:return Ot(t,":",":"+Et)+t;case 101:return Ot(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Et+(jr(t,14)===45?"inline-":"")+"box$3$1"+Et+"$2$3$1"+Vr+"$2box$3")+t}break;case 5936:switch(jr(t,e+11)){case 114:return Et+t+Vr+Ot(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Et+t+Vr+Ot(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Et+t+Vr+Ot(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Et+t+Vr+t+t}return t}var cA=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case kb:e.return=OT(e.value,e.length);break;case kT:return Lc([Kl(e,{value:Ot(e.value,"@","@"+Et)})],o);case xb:if(e.length)return HM(e.props,function(a){switch(qM(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lc([Kl(e,{props:[Ot(a,/:(read-\w+)/,":"+Pf+"$1")]})],o);case"::placeholder":return Lc([Kl(e,{props:[Ot(a,/:(plac\w+)/,":"+Et+"input-$1")]}),Kl(e,{props:[Ot(a,/:(plac\w+)/,":"+Pf+"$1")]}),Kl(e,{props:[Ot(a,/:(plac\w+)/,Vr+"input-$1")]})],o)}return""})}},lA=[cA],uA=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=e.stylisPlugins||lA,a={},s,l=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),k=1;k{const r=uA(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let ei;if(typeof document=="object"&&(ei=document.querySelector('[name="emotion-insertion-point"]'),!ei)){ei=document.createElement("meta"),ei.setAttribute("name","emotion-insertion-point"),ei.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(ei)}function pA(t,e){if(t||e){class r extends ST{insert(a,s){return this.key&&this.key.endsWith("global")&&(this.before=ei),super.insert(a,s)}}const n=dA({key:"css",insertionPoint:t?ei:void 0},r);if(e){const o=n.insert;n.insert=(...a)=>(a[1].styles.match(/^@layer\s+[^{]*$/)||(a[1].styles=`@layer mui {${a[1].styles}}`),o(...a))}return n}}function $x(t){const{injectFirst:e,enableCssLayer:r,children:n}=t,o=R.useMemo(()=>{const a=`${e}-${r}`;if(typeof document=="object"&&ng.has(a))return ng.get(a);const s=pA(e,r);return ng.set(a,s),s},[e,r]);return o?C.jsx(fM,{value:o,children:n}):n}function fA(t){return t==null||Object.keys(t).length===0}function DT(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(fA(o)?r:o):e;return C.jsx(yM,{styles:n})}function RT(t,e){return n1(t,e)}function hA(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Ex=[];function si(t){return Ex[0]=t,MM(Ex)}var og={exports:{}},It={};var Tx;function mA(){if(Tx)return It;Tx=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function v(b){if(typeof b=="object"&&b!==null){var x=b.$$typeof;switch(x){case t:switch(b=b.type,b){case r:case o:case n:case u:case f:case m:return b;default:switch(b=b&&b.$$typeof,b){case s:case l:case d:case h:return b;case a:return b;default:return x}}case e:return x}}}return It.ContextConsumer=a,It.ContextProvider=s,It.Element=t,It.ForwardRef=l,It.Fragment=r,It.Lazy=d,It.Memo=h,It.Portal=e,It.Profiler=o,It.StrictMode=n,It.Suspense=u,It.SuspenseList=f,It.isContextConsumer=function(b){return v(b)===a},It.isContextProvider=function(b){return v(b)===s},It.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},It.isForwardRef=function(b){return v(b)===l},It.isFragment=function(b){return v(b)===r},It.isLazy=function(b){return v(b)===d},It.isMemo=function(b){return v(b)===h},It.isPortal=function(b){return v(b)===e},It.isProfiler=function(b){return v(b)===o},It.isStrictMode=function(b){return v(b)===n},It.isSuspense=function(b){return v(b)===u},It.isSuspenseList=function(b){return v(b)===f},It.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===u||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===h||b.$$typeof===s||b.$$typeof===a||b.$$typeof===l||b.$$typeof===y||b.getModuleId!==void 0)},It.typeOf=v,It}var Ox;function _A(){return Ox||(Ox=1,og.exports=mA()),og.exports}var MT=_A();function Fo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function AT(t){if(R.isValidElement(t)||MT.isValidElementType(t)||!Fo(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=AT(t[r])}),e}function Yr(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return Fo(t)&&Fo(e)&&Object.keys(e).forEach(o=>{R.isValidElement(e[o])||MT.isValidElementType(e[o])?n[o]=e[o]:Fo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Fo(t[o])?n[o]=Yr(t[o],e[o],r):r.clone?n[o]=Fo(e[o])?AT(e[o]):e[o]:n[o]=e[o]}),n}const gA=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function yA(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,a=gA(e),s=Object.keys(a);function l(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r})`}function u(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-n/100}${r})`}function f(m,y){const v=s.indexOf(y);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r}) and (max-width:${(v!==-1&&typeof e[s[v]]=="number"?e[s[v]]:y)-n/100}${r})`}function h(m){return s.indexOf(m)+1n.startsWith("@container")).sort((n,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return r.length?r.reduce((n,o)=>{const a=e[o];return delete n[o],n[o]=a,n},{...e}):e}function vA(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function bA(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(a)}function wA(t){const e=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function r(a,s){a.up=(...l)=>e(t.breakpoints.up(...l),s),a.down=(...l)=>e(t.breakpoints.down(...l),s),a.between=(...l)=>e(t.breakpoints.between(...l),s),a.only=(...l)=>e(t.breakpoints.only(...l),s),a.not=(...l)=>{const u=e(t.breakpoints.not(...l),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=a=>(r(n,a),n);return r(o),{...t,containerQueries:o}}const SA={borderRadius:4};function Du(t,e){return e?Yr(t,e,{clone:!1}):t}const gh={xs:0,sm:600,md:900,lg:1200,xl:1536},Rx={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${gh[t]}px)`},xA={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:gh[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Sa(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||Rx;return e.reduce((s,l,u)=>(s[a.up(a.keys[u])]=r(e[u]),s),{})}if(typeof e=="object"){const a=n.breakpoints||Rx;return Object.keys(e).reduce((s,l)=>{if(vA(a.keys,l)){const u=bA(n.containerQueries?n:xA,l);u&&(s[u]=r(e[l],l))}else if(Object.keys(a.values||gh).includes(l)){const u=a.up(l);s[u]=r(e[l],l)}else{const u=l;s[u]=e[u]}return s},{})}return r(e)}function kA(t={}){return t.keys?.reduce((r,n)=>{const o=t.up(n);return r[o]={},r},{})||{}}function Mx(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function _e(t){if(typeof t!="string")throw new Error(wa(7));return t.charAt(0).toUpperCase()+t.slice(1)}function yh(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function jf(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=yh(t,r)||n,e&&(o=e(o,n,t)),o}function pr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,a=s=>{if(s[e]==null)return null;const l=s[e],u=s.theme,f=yh(u,n)||{};return Sa(s,l,d=>{let m=jf(f,o,d);return d===m&&typeof d=="string"&&(m=jf(f,o,`${e}${d==="default"?"":_e(d)}`,d)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[e],a}function CA(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const $A={m:"margin",p:"padding"},EA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ax={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},TA=CA(t=>{if(t.length>2)if(Ax[t])t=Ax[t];else return[t];const[e,r]=t.split(""),n=$A[e],o=EA[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),$b=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Eb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...$b,...Eb];function pd(t,e,r,n){const o=yh(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),l=o[s];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function Tb(t){return pd(t,"spacing",8)}function fd(t,e){return typeof e=="string"||e==null?e:t(e)}function OA(t,e){return r=>t.reduce((n,o)=>(n[o]=fd(e,r),n),{})}function DA(t,e,r,n){if(!e.includes(r))return null;const o=TA(r),a=OA(o,n),s=t[r];return Sa(t,s,a)}function NT(t,e){const r=Tb(t.theme);return Object.keys(t).map(n=>DA(t,e,n,r)).reduce(Du,{})}function ir(t){return NT(t,$b)}ir.propTypes={};ir.filterProps=$b;function sr(t){return NT(t,Eb)}sr.propTypes={};sr.filterProps=Eb;function IT(t=8,e=Tb({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const s=e(a);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function vh(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>e[a]?Du(o,e[a](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Jn(t){return typeof t!="number"?t:`${t}px solid`}function to(t,e){return pr({prop:t,themeKey:"borders",transform:e})}const RA=to("border",Jn),MA=to("borderTop",Jn),AA=to("borderRight",Jn),NA=to("borderBottom",Jn),IA=to("borderLeft",Jn),PA=to("borderColor"),jA=to("borderTopColor"),zA=to("borderRightColor"),LA=to("borderBottomColor"),FA=to("borderLeftColor"),BA=to("outline",Jn),WA=to("outlineColor"),bh=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=pd(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:fd(e,n)});return Sa(t,t.borderRadius,r)}return null};bh.propTypes={};bh.filterProps=["borderRadius"];vh(RA,MA,AA,NA,IA,PA,jA,zA,LA,FA,bh,BA,WA);const wh=t=>{if(t.gap!==void 0&&t.gap!==null){const e=pd(t.theme,"spacing",8),r=n=>({gap:fd(e,n)});return Sa(t,t.gap,r)}return null};wh.propTypes={};wh.filterProps=["gap"];const Sh=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=pd(t.theme,"spacing",8),r=n=>({columnGap:fd(e,n)});return Sa(t,t.columnGap,r)}return null};Sh.propTypes={};Sh.filterProps=["columnGap"];const xh=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=pd(t.theme,"spacing",8),r=n=>({rowGap:fd(e,n)});return Sa(t,t.rowGap,r)}return null};xh.propTypes={};xh.filterProps=["rowGap"];const UA=pr({prop:"gridColumn"}),qA=pr({prop:"gridRow"}),HA=pr({prop:"gridAutoFlow"}),VA=pr({prop:"gridAutoColumns"}),GA=pr({prop:"gridAutoRows"}),XA=pr({prop:"gridTemplateColumns"}),JA=pr({prop:"gridTemplateRows"}),YA=pr({prop:"gridTemplateAreas"}),KA=pr({prop:"gridArea"});vh(wh,Sh,xh,UA,qA,HA,VA,GA,XA,JA,YA,KA);function Fc(t,e){return e==="grey"?e:t}const ZA=pr({prop:"color",themeKey:"palette",transform:Fc}),QA=pr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fc}),eN=pr({prop:"backgroundColor",themeKey:"palette",transform:Fc});vh(ZA,QA,eN);function On(t){return t<=1&&t!==0?`${t*100}%`:t}const tN=pr({prop:"width",transform:On}),Ob=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{const n=t.theme?.breakpoints?.values?.[r]||gh[r];return n?t.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:On(r)}};return Sa(t,t.maxWidth,e)}return null};Ob.filterProps=["maxWidth"];const rN=pr({prop:"minWidth",transform:On}),nN=pr({prop:"height",transform:On}),oN=pr({prop:"maxHeight",transform:On}),aN=pr({prop:"minHeight",transform:On});pr({prop:"size",cssProperty:"width",transform:On});pr({prop:"size",cssProperty:"height",transform:On});const iN=pr({prop:"boxSizing"});vh(tN,Ob,rN,nN,oN,aN,iN);const hd={border:{themeKey:"borders",transform:Jn},borderTop:{themeKey:"borders",transform:Jn},borderRight:{themeKey:"borders",transform:Jn},borderBottom:{themeKey:"borders",transform:Jn},borderLeft:{themeKey:"borders",transform:Jn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Jn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bh},color:{themeKey:"palette",transform:Fc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fc},backgroundColor:{themeKey:"palette",transform:Fc},p:{style:sr},pt:{style:sr},pr:{style:sr},pb:{style:sr},pl:{style:sr},px:{style:sr},py:{style:sr},padding:{style:sr},paddingTop:{style:sr},paddingRight:{style:sr},paddingBottom:{style:sr},paddingLeft:{style:sr},paddingX:{style:sr},paddingY:{style:sr},paddingInline:{style:sr},paddingInlineStart:{style:sr},paddingInlineEnd:{style:sr},paddingBlock:{style:sr},paddingBlockStart:{style:sr},paddingBlockEnd:{style:sr},m:{style:ir},mt:{style:ir},mr:{style:ir},mb:{style:ir},ml:{style:ir},mx:{style:ir},my:{style:ir},margin:{style:ir},marginTop:{style:ir},marginRight:{style:ir},marginBottom:{style:ir},marginLeft:{style:ir},marginX:{style:ir},marginY:{style:ir},marginInline:{style:ir},marginInlineStart:{style:ir},marginInlineEnd:{style:ir},marginBlock:{style:ir},marginBlockStart:{style:ir},marginBlockEnd:{style:ir},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wh},rowGap:{style:xh},columnGap:{style:Sh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:On},maxWidth:{style:Ob},minWidth:{transform:On},height:{transform:On},maxHeight:{transform:On},minHeight:{transform:On},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function sN(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function cN(t,e){return typeof t=="function"?t(e):t}function lN(){function t(r,n,o,a){const s={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:h,style:d}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const m=yh(o,f)||{};return d?d(s):Sa(s,n,v=>{let b=jf(m,h,v);return v===b&&typeof v=="string"&&(b=jf(m,h,`${r}${v==="default"?"":_e(v)}`,v)),u===!1?b:{[u]:b}})}function e(r){const{sx:n,theme:o={},nested:a}=r||{};if(!n)return null;const s=o.unstable_sxConfig??hd;function l(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const h=kA(o.breakpoints),d=Object.keys(h);let m=h;return Object.keys(f).forEach(y=>{const v=cN(f[y],o);if(v!=null)if(typeof v=="object")if(s[y])m=Du(m,t(y,v,o,s));else{const b=Sa({theme:o},v,x=>({[y]:x}));sN(b,v)?m[y]=e({sx:v,theme:o,nested:!0}):m=Du(m,b)}else m=Du(m,t(y,v,o,s))}),!a&&o.modularCssLayers?{"@layer sx":Dx(o,Mx(d,m))}:Dx(o,Mx(d,m))}return Array.isArray(n)?n.map(l):l(n)}return e}const ci=lN();ci.filterProps=["sx"];function uN(t,e){const r=this;if(r.vars){if(!r.colorSchemes?.[t]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(t);return n==="&"?e:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:e})}return r.palette.mode===t?e:{}}function kh(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...s}=t,l=yA(r),u=IT(o);let f=Yr({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...SA,...a}},s);return f=wA(f),f.applyStyles=uN,f=e.reduce((h,d)=>Yr(h,d),f),f.unstable_sxConfig={...hd,...s?.unstable_sxConfig},f.unstable_sx=function(d){return ci({sx:d,theme:this})},f}function dN(t){return Object.keys(t).length===0}function Ch(t=null){const e=R.useContext(ud);return!e||dN(e)?t:e}const pN=kh();function md(t=pN){return Ch(t)}function ag(t){const e=si(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function PT({styles:t,themeId:e,defaultTheme:r={}}){const n=md(r),o=e&&n[e]||n;let a=typeof t=="function"?t(o):t;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>ag(typeof s=="function"?s(o):s)):a=ag(a)),C.jsx(DT,{styles:a})}const fN=t=>{const e={systemProps:{},otherProps:{}},r=t?.theme?.unstable_sxConfig??hd;return Object.keys(t).forEach(n=>{r[n]?e.systemProps[n]=t[n]:e.otherProps[n]=t[n]}),e};function Db(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=fN(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...s)=>{const l=e(...s);return Fo(l)?{...n,...l}:n}:a={...n,...e},{...o,sx:a}}const Nx=t=>t,hN=()=>{let t=Nx;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Nx}}},jT=hN();function zT(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;el!=="theme"&&l!=="sx"&&l!=="as"})(ci);return R.forwardRef(function(u,f){const h=md(r),{className:d,component:m="div",...y}=Db(u);return C.jsx(a,{as:m,ref:f,className:Se(d,o?o(n):n),theme:e&&h[e]||h,...y})})}const _N={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qe(t,e,r="Mui"){const n=_N[e];return n?`${r}-${n}`:`${jT.generate(t)}-${e}`}function We(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=qe(t,o,r)}),n}function LT(t){const{variants:e,...r}=t,n={variants:e,style:si(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=si(o.style))}),n}const gN=kh();function ig(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Ki(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function yN(t){return t?(e,r)=>r[t]:null}function vN(t,e,r){t.theme=wN(t.theme)?r:t.theme[e]||t.theme}function Cf(t,e,r){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>Cf(t,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?Ki(n.style,r):n.style;else{const{variants:a,...s}=n;o=r?Ki(si(s),r):s}return FT(t,n.variants,[o],r)}return n?.isProcessed?r?Ki(si(n.style),r):n.style:r?Ki(si(n),r):n}function FT(t,e,r=[],n=void 0){let o;e:for(let a=0;a{hA(l,E=>E.filter(D=>D!==ci));const{name:f,slot:h,skipVariantsResolver:d,skipSx:m,overridesResolver:y=yN(xN(h)),...v}=u,b=f&&f.startsWith("Mui")||h?"components":"custom",x=d!==void 0?d:h&&h!=="Root"&&h!=="root"||!1,k=m||!1;let O=ig;h==="Root"||h==="root"?O=n:h?O=o:SN(l)&&(O=void 0);const T=RT(l,{shouldForwardProp:O,label:bN(),...v}),M=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(j){return Cf(j,E,j.theme.modularCssLayers?b:void 0)};if(Fo(E)){const D=LT(E);return function(P){return D.variants?Cf(P,D,P.theme.modularCssLayers?b:void 0):P.theme.modularCssLayers?Ki(D.style,b):D.style}}return E},A=(...E)=>{const D=[],j=E.map(M),P=[];if(D.push(a),f&&y&&P.push(function(H){const q=H.theme.components?.[f]?.styleOverrides;if(!q)return null;const J={};for(const ee in q)J[ee]=Cf(H,q[ee],H.theme.modularCssLayers?"theme":void 0);return y(H,J)}),f&&!x&&P.push(function(H){const q=H.theme?.components?.[f]?.variants;return q?FT(H,q,[],H.theme.modularCssLayers?"theme":void 0):null}),k||P.push(ci),Array.isArray(j[0])){const W=j.shift(),H=new Array(D.length).fill(""),V=new Array(P.length).fill("");let q;q=[...H,...W,...V],q.raw=[...H,...W.raw,...V],D.unshift(q)}const $=[...D,...j,...P],L=T(...$);return l.muiName&&(L.muiName=l.muiName),L};return T.withConfig&&(A.withConfig=T.withConfig),A}}function bN(t,e){return void 0}function wN(t){for(const e in t)return!1;return!0}function SN(t){return typeof t=="string"&&t.charCodeAt(0)>96}function xN(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const kN=BT();function Vu(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=n;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=t[o],s=e[o];if(!s)r[o]=a||{};else if(!a)r[o]=s;else{r[o]={...s};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;r[o][u]=Vu(a[u],s[u])}}}else r[o]===void 0&&(r[o]=t[o])}return r}function WT(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:Vu(e.components[r].defaultProps,n)}function CN({props:t,name:e,defaultTheme:r,themeId:n}){let o=md(r);return n&&(o=o[n]||o),WT({theme:o,name:e,props:t})}const wn=typeof window<"u"?R.useLayoutEffect:R.useEffect;function $N(t,e,r,n,o){const[a,s]=R.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return wn(()=>{if(!r)return;const l=r(t),u=()=>{s(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[t,r]),a}const EN={...iT},UT=EN.useSyncExternalStore;function TN(t,e,r,n,o){const a=R.useCallback(()=>e,[e]),s=R.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:h}=n(t);return()=>h}return a},[a,t,n,o,r]),[l,u]=R.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const h=r(t);return[()=>h.matches,d=>(h.addEventListener("change",d),()=>{h.removeEventListener("change",d)})]},[a,r,t]);return UT(u,l,s)}function qT(t={}){const{themeId:e}=t;return function(n,o={}){let a=Ch();a&&e&&(a=a[e]||a);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:u=s?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=WT({name:"MuiUseMediaQuery",props:o,theme:a});let d=typeof n=="function"?n(a):n;return d=d.replace(/^@media( ?)/m,""),d.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` -`)),(UT!==void 0?TN:$N)(d,l,u,f,h)}}qT();function ON(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function Rb(t,e=0,r=1){return ON(t,e,r)}function DN(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function li(t){if(t.type)return t;if(t.charAt(0)==="#")return li(DN(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(wa(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(wa(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const RN=t=>{const e=li(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},gu=(t,e)=>{try{return RN(t)}catch{return t}};function $h(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function HT(t){t=li(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,a=n*Math.min(o,1-o),s=(f,h=(f+r/30)%12)=>o-a*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(l+="a",u.push(e[3])),$h({type:l,values:u})}function i1(t){t=li(t);let e=t.type==="hsl"||t.type==="hsla"?li(HT(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function MN(t,e){const r=i1(t),n=i1(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Bt(t,e){return t=li(t),e=Rb(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,$h(t)}function Wp(t,e,r){try{return Bt(t,e)}catch{return t}}function _d(t,e){if(t=li(t),e=Rb(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return $h(t)}function jt(t,e,r){try{return _d(t,e)}catch{return t}}function gd(t,e){if(t=li(t),e=Rb(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return $h(t)}function zt(t,e,r){try{return gd(t,e)}catch{return t}}function zf(t,e=.15){return i1(t)>.5?_d(t,e):gd(t,e)}function Up(t,e,r){try{return zf(t,e)}catch{return t}}function s1(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function Eh(t,e=166){let r;function n(...o){const a=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function $f(t,e){return R.isValidElement(t)&&e.indexOf(t.type.muiName??t.type?._payload?.value?.muiName)!==-1}function zr(t){return t&&t.ownerDocument||document}function go(t){return zr(t).defaultView||window}function Ix(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let Px=0;function AN(t){const[e,r]=R.useState(t),n=t||e;return R.useEffect(()=>{e==null&&(Px+=1,r(`mui-${Px}`))},[e]),n}const NN={...iT},jx=NN.useId;function ds(t){if(jx!==void 0){const e=jx();return t??e}return AN(t)}function Lf({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=R.useRef(t!==void 0),[a,s]=R.useState(e),l=o?t:a,u=R.useCallback(f=>{o||s(f)},[]);return[l,u]}function rn(t){const e=R.useRef(t);return wn(()=>{e.current=t}),R.useRef((...r)=>(0,e.current)(...r)).current}function kr(...t){const e=R.useRef(void 0),r=R.useCallback(n=>{const o=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(n);return typeof l=="function"?l:()=>{s(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},t);return R.useMemo(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}const zx={};function VT(t,e){const r=R.useRef(zx);return r.current===zx&&(r.current=t(e)),r}const IN=[];function PN(t){R.useEffect(t,IN)}class Th{static create(){return new Th}currentId=null;start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Zi(){const t=VT(Th.create).current;return PN(t.disposeEffect),t}function Ff(t){try{return t.matches(":focus-visible")}catch{}return!1}function GT(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function He(t,e,r=void 0){const n={};for(const o in t){const a=t[o];let s="",l=!0;for(let u=0;un.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Lx(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function JT(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=t;if(!e){const y=Se(r?.className,a,o?.className,n?.className),v={...r?.style,...o?.style,...n?.style},b={...r,...o,...n};return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const s=Bf({...o,...n}),l=Lx(n),u=Lx(o),f=e(s),h=Se(f?.className,r?.className,a,o?.className,n?.className),d={...f?.style,...r?.style,...o?.style,...n?.style},m={...f,...r,...u,...l};return h.length>0&&(m.className=h),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:f.ref}}function YT(t,e,r){return typeof t=="function"?t(e,r):t}function ns(t){const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=t,s=o?{}:YT(r,n),{props:l,internalRef:u}=JT({...a,externalSlotProps:s}),f=kr(u,s?.ref,t.additionalProps?.ref);return XT(e,{...l,ref:f},n)}function ps(t){return parseInt(R.version,10)>=19?t?.props?.ref||null:t?.ref||null}const KT=R.createContext(null);function Mb(){return R.useContext(KT)}const zN=typeof Symbol=="function"&&Symbol.for,LN=zN?Symbol.for("mui.nested"):"__THEME_NESTED__";function FN(t,e){return typeof e=="function"?e(t):{...t,...e}}function BN(t){const{children:e,theme:r}=t,n=Mb(),o=R.useMemo(()=>{const a=n===null?{...r}:FN(n,r);return a!=null&&(a[LN]=n!==null),a},[r,n]);return C.jsx(KT.Provider,{value:o,children:e})}const ZT=R.createContext();function WN({value:t,...e}){return C.jsx(ZT.Provider,{value:t??!0,...e})}const al=()=>R.useContext(ZT)??!1,QT=R.createContext(void 0);function UN({value:t,children:e}){return C.jsx(QT.Provider,{value:t,children:e})}function qN(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?Vu(o.defaultProps,n):!o.styleOverrides&&!o.variants?Vu(o,n):n}function HN({props:t,name:e}){const r=R.useContext(QT);return qN({props:t,name:e,theme:{components:r}})}function VN(t){const e=Ch(),r=ds()||"",{modularCssLayers:n}=t;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,wn(()=>{const a=document.querySelector("head");if(!a)return;const s=a.firstChild;if(o){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===r)return;const l=document.createElement("style");l.setAttribute("data-mui-layer-order",r),l.textContent=o,a.prepend(l)}else a.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[o,r]),o?C.jsx(PT,{styles:o}):null}const Fx={};function Bx(t,e,r,n=!1){return R.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const a=r(o),s=t?{...e,[t]:a}:a;return n?()=>s:s}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function e8(t){const{children:e,theme:r,themeId:n}=t,o=Ch(Fx),a=Mb()||Fx,s=Bx(n,o,r),l=Bx(n,a,r,!0),u=(n?s[n]:s).direction==="rtl",f=VN(s);return C.jsx(BN,{theme:l,children:C.jsx(ud.Provider,{value:s,children:C.jsx(WN,{value:u,children:C.jsxs(UN,{value:n?s[n].components:s.components,children:[f,e]})})})})}const Wx={theme:void 0};function GN(t){let e,r;return function(o){let a=e;return(a===void 0||o.theme!==r)&&(Wx.theme=o.theme,a=LT(t(Wx)),e=a,r=o.theme),a}}const Ab="mode",Nb="color-scheme",XN="data-color-scheme";function JN(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=Ab,colorSchemeStorageKey:a=Nb,attribute:s=XN,colorSchemeNode:l="document.documentElement",nonce:u}=t||{};let f="",h=s;if(s==="class"&&(h=".%s"),s==="data"&&(h="[data-%s]"),h.startsWith(".")){const m=h.substring(1);f+=`${l}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark)); - ${l}.classList.add('${m}'.replace('%s', colorScheme));`}const d=h.match(/\[([^\]]+)\]/);if(d){const[m,y]=d[1].split("=");y||(f+=`${l}.removeAttribute('${m}'.replace('%s', light)); - ${l}.removeAttribute('${m}'.replace('%s', dark));`),f+=` - ${l}.setAttribute('${m}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else f+=`${l}.setAttribute('${h}', colorScheme);`;return C.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() { -try { - let colorScheme = ''; - const mode = localStorage.getItem('${o}') || '${e}'; - const dark = localStorage.getItem('${a}-dark') || '${n}'; - const light = localStorage.getItem('${a}-light') || '${r}'; - if (mode === 'system') { - // handle system mode - const mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = dark - } else { - colorScheme = light - } - } - if (mode === 'light') { - colorScheme = light; - } - if (mode === 'dark') { - colorScheme = dark; - } - if (colorScheme) { - ${f} - } -} catch(e){}})();`}},"mui-color-scheme-init")}function YN(){}const KN=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let n;try{n=e.localStorage.getItem(t)}catch{}return n||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return YN;const n=o=>{const a=o.newValue;o.key===t&&r(a)};return e.addEventListener("storage",n),()=>{e.removeEventListener("storage",n)}}});function sg(){}function Ux(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function t8(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function ZN(t){return t8(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function QN(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=Ab,colorSchemeStorageKey:s=Nb,storageWindow:l=typeof window>"u"?void 0:window,storageManager:u=KN,noSsr:f=!1}=t,h=o.join(","),d=o.length>1,m=R.useMemo(()=>u?.({key:a,storageWindow:l}),[u,a,l]),y=R.useMemo(()=>u?.({key:`${s}-light`,storageWindow:l}),[u,s,l]),v=R.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:l}),[u,s,l]),[b,x]=R.useState(()=>{const j=m?.get(e)||e,P=y?.get(r)||r,$=v?.get(n)||n;return{mode:j,systemMode:Ux(j),lightColorScheme:P,darkColorScheme:$}}),[k,O]=R.useState(f||!d);R.useEffect(()=>{O(!0)},[]);const T=ZN(b),M=R.useCallback(j=>{x(P=>{if(j===P.mode)return P;const $=j??e;return m?.set($),{...P,mode:$,systemMode:Ux($)}})},[m,e]),A=R.useCallback(j=>{j?typeof j=="string"?j&&!h.includes(j)?console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`):x(P=>{const $={...P};return t8(P,L=>{L==="light"&&(y?.set(j),$.lightColorScheme=j),L==="dark"&&(v?.set(j),$.darkColorScheme=j)}),$}):x(P=>{const $={...P},L=j.light===null?r:j.light,W=j.dark===null?n:j.dark;return L&&(h.includes(L)?($.lightColorScheme=L,y?.set(L)):console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)),W&&(h.includes(W)?($.darkColorScheme=W,v?.set(W)):console.error(`\`${W}\` does not exist in \`theme.colorSchemes\`.`)),$}):x(P=>(y?.set(r),v?.set(n),{...P,lightColorScheme:r,darkColorScheme:n}))},[h,y,v,r,n]),E=R.useCallback(j=>{b.mode==="system"&&x(P=>{const $=j?.matches?"dark":"light";return P.systemMode===$?P:{...P,systemMode:$}})},[b.mode]),D=R.useRef(E);return D.current=E,R.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const j=(...$)=>D.current(...$),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(j),j(P),()=>{P.removeListener(j)}},[d]),R.useEffect(()=>{if(d){const j=m?.subscribe(L=>{(!L||["light","dark","system"].includes(L))&&M(L||e)})||sg,P=y?.subscribe(L=>{(!L||h.match(L))&&A({light:L})})||sg,$=v?.subscribe(L=>{(!L||h.match(L))&&A({dark:L})})||sg;return()=>{j(),P(),$()}}},[A,M,h,e,l,d,m,y,v]),{...b,mode:k?b.mode:void 0,systemMode:k?b.systemMode:void 0,colorScheme:k?T:void 0,setMode:M,setColorScheme:A}}const eI="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function tI(t){const{themeId:e,theme:r={},modeStorageKey:n=Ab,colorSchemeStorageKey:o=Nb,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=t,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=R.createContext(void 0),h=()=>R.useContext(f)||u,d={},m={};function y(k){const{children:O,theme:T,modeStorageKey:M=n,colorSchemeStorageKey:A=o,disableTransitionOnChange:E=a,storageManager:D,storageWindow:j=typeof window>"u"?void 0:window,documentNode:P=typeof document>"u"?void 0:document,colorSchemeNode:$=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:W=!1,defaultMode:H="system",noSsr:V}=k,q=R.useRef(!1),J=Mb(),ee=R.useContext(f),Z=!!ee&&!L,X=R.useMemo(()=>T||(typeof r=="function"?r():r),[T]),te=X[e],N=te||X,{colorSchemes:B=d,components:ne=m,cssVarPrefix:ae}=N,re=Object.keys(B).filter(Qe=>!!B[Qe]).join(","),ie=R.useMemo(()=>re.split(","),[re]),he=typeof s=="string"?s:s.light,me=typeof s=="string"?s:s.dark,ge=B[he]&&B[me]?H:B[N.defaultColorScheme]?.palette?.mode||N.palette?.mode,{mode:be,setMode:Ie,systemMode:Re,lightColorScheme:Ge,darkColorScheme:xe,colorScheme:Te,setColorScheme:gt}=QN({supportedColorSchemes:ie,defaultLightColorScheme:he,defaultDarkColorScheme:me,modeStorageKey:M,colorSchemeStorageKey:A,defaultMode:ge,storageManager:D,storageWindow:j,noSsr:V});let ke=be,Ae=Te;Z&&(ke=ee.mode,Ae=ee.colorScheme);const lt=R.useMemo(()=>{const Qe=Ae||N.defaultColorScheme,se=N.generateThemeVars?.()||N.vars,ve={...N,components:ne,colorSchemes:B,cssVarPrefix:ae,vars:se};if(typeof ve.generateSpacing=="function"&&(ve.spacing=ve.generateSpacing()),Qe){const Ue=B[Qe];Ue&&typeof Ue=="object"&&Object.keys(Ue).forEach(Le=>{Ue[Le]&&typeof Ue[Le]=="object"?ve[Le]={...ve[Le],...Ue[Le]}:ve[Le]=Ue[Le]})}return l?l(ve):ve},[N,Ae,ne,B,ae]),tt=N.colorSchemeSelector;wn(()=>{if(Ae&&$&&tt&&tt!=="media"){const Qe=tt;let se=tt;if(Qe==="class"&&(se=".%s"),Qe==="data"&&(se="[data-%s]"),Qe?.startsWith("data-")&&!Qe.includes("%s")&&(se=`[${Qe}="%s"]`),se.startsWith("."))$.classList.remove(...ie.map(ve=>se.substring(1).replace("%s",ve))),$.classList.add(se.substring(1).replace("%s",Ae));else{const ve=se.replace("%s",Ae).match(/\[([^\]]+)\]/);if(ve){const[Ue,Le]=ve[1].split("=");Le||ie.forEach(pt=>{$.removeAttribute(Ue.replace(Ae,pt))}),$.setAttribute(Ue,Le?Le.replace(/"|'/g,""):"")}else $.setAttribute(se,Ae)}}},[Ae,tt,$,ie]),R.useEffect(()=>{let Qe;if(E&&q.current&&P){const se=P.createElement("style");se.appendChild(P.createTextNode(eI)),P.head.appendChild(se),window.getComputedStyle(P.body),Qe=setTimeout(()=>{P.head.removeChild(se)},1)}return()=>{clearTimeout(Qe)}},[Ae,E,P]),R.useEffect(()=>(q.current=!0,()=>{q.current=!1}),[]);const Xe=R.useMemo(()=>({allColorSchemes:ie,colorScheme:Ae,darkColorScheme:xe,lightColorScheme:Ge,mode:ke,setColorScheme:gt,setMode:Ie,systemMode:Re}),[ie,Ae,xe,Ge,ke,gt,Ie,Re,lt.colorSchemeSelector]);let we=!0;(W||N.cssVariables===!1||Z&&J?.cssVarPrefix===ae)&&(we=!1);const dt=C.jsxs(R.Fragment,{children:[C.jsx(e8,{themeId:te?e:void 0,theme:lt,children:O}),we&&C.jsx(DT,{styles:lt.generateStyleSheets?.()||[]})]});return Z?dt:C.jsx(f.Provider,{value:Xe,children:dt})}const v=typeof s=="string"?s:s.light,b=typeof s=="string"?s:s.dark;return{CssVarsProvider:y,useColorScheme:h,getInitColorSchemeScript:k=>JN({colorSchemeStorageKey:o,defaultLightColorScheme:v,defaultDarkColorScheme:b,modeStorageKey:n,...k})}}function rI(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const qx=(t,e,r,n=[])=>{let o=t;e.forEach((a,s)=>{s===e.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},nI=(t,e,r)=>{function n(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!r||r&&!r([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,l],Array.isArray(u)?[...s,l]:s):e([...a,l],u,s))})}n(t)},oI=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function cg(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},a={},s={};return nI(t,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const h=`--${r?`${r}-`:""}${l.join("-")}`,d=oI(l,u);Object.assign(o,{[h]:d}),qx(a,l,`var(${h})`,f),qx(s,l,`var(${h}, ${d})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function aI(t,e={}){const{getSelector:r=x,disableCssColorScheme:n,colorSchemeSelector:o}=e,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...u}=t,{vars:f,css:h,varsWithDefaults:d}=cg(u,e);let m=d;const y={},{[l]:v,...b}=a;if(Object.entries(b||{}).forEach(([T,M])=>{const{vars:A,css:E,varsWithDefaults:D}=cg(M,e);m=Yr(m,D),y[T]={css:E,vars:A}}),v){const{css:T,vars:M,varsWithDefaults:A}=cg(v,e);m=Yr(m,A),y[l]={css:T,vars:M}}function x(T,M){let A=o;if(o==="class"&&(A=".%s"),o==="data"&&(A="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(A=`[${o}="%s"]`),T){if(A==="media")return t.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${a[T]?.palette?.mode||T})`]:{":root":M}};if(A)return t.defaultColorScheme===T?`:root, ${A.replace("%s",String(T))}`:A.replace("%s",String(T))}return":root"}return{vars:m,generateThemeVars:()=>{let T={...f};return Object.entries(y).forEach(([,{vars:M}])=>{T=Yr(T,M)}),T},generateStyleSheets:()=>{const T=[],M=t.defaultColorScheme||"light";function A(j,P){Object.keys(P).length&&T.push(typeof j=="string"?{[j]:{...P}}:j)}A(r(void 0,{...h}),h);const{[M]:E,...D}=y;if(E){const{css:j}=E,P=a[M]?.palette?.mode,$=!n&&P?{colorScheme:P,...j}:{...j};A(r(M,{...$}),$)}return Object.entries(D).forEach(([j,{css:P}])=>{const $=a[j]?.palette?.mode,L=!n&&$?{colorScheme:$,...P}:{...P};A(r(j,{...L}),L)}),T}}}function iI(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const sI=(t,e)=>t.filter(r=>e.includes(r)),il=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((o,a)=>{r((s,l)=>{a<=t.keys.length-1&&(a===0?Object.assign(s,l):s[t.up(t.keys[a])]=l)},o)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:sI(t.keys,Object.keys(e))).forEach(a=>{if(t.keys.includes(a)){const s=e[a];s!==void 0&&r((l,u)=>{n===a?Object.assign(l,u):l[t.up(a)]=u},s)}}):(typeof e=="number"||typeof e=="string")&&r((o,a)=>{Object.assign(o,a)},e)};function Wf(t){return`--Grid-${t}Spacing`}function Oh(t){return`--Grid-parent-${t}Spacing`}const Hx="--Grid-columns",Bc="--Grid-parent-columns",cI=({theme:t,ownerState:e})=>{const r={};return il(t.breakpoints,e.size,(n,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Bc}) - (var(${Bc}) - ${o}) * (var(${Oh("column")}) / var(${Bc})))`}),n(r,a)}),r},lI=({theme:t,ownerState:e})=>{const r={};return il(t.breakpoints,e.offset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Bc}) + var(${Oh("column")}) * ${o} / var(${Bc}))`}),n(r,a)}),r},uI=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={[Hx]:12};return il(t.breakpoints,e.columns,(n,o)=>{const a=o??12;n(r,{[Hx]:a,"> *":{[Bc]:a}})}),r},dI=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return il(t.breakpoints,e.rowSpacing,(n,o)=>{const a=typeof o=="string"?o:t.spacing?.(o);n(r,{[Wf("row")]:a,"> *":{[Oh("row")]:a}})}),r},pI=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return il(t.breakpoints,e.columnSpacing,(n,o)=>{const a=typeof o=="string"?o:t.spacing?.(o);n(r,{[Wf("column")]:a,"> *":{[Oh("column")]:a}})}),r},fI=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return il(t.breakpoints,e.direction,(n,o)=>{n(r,{flexDirection:o})}),r},hI=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${Wf("row")}) var(${Wf("column")})`}}),mI=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},_I=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},gI=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`];function yI(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(r=>{t[r]!==void 0&&delete t[r]})}const vI=kh(),bI=kN("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function wI(t){return CN({props:t,name:"MuiGrid",defaultTheme:vI})}function SI(t={}){const{createStyledComponent:e=bI,useThemeProps:r=wI,useTheme:n=md,componentName:o="MuiGrid"}=t,a=(f,h)=>{const{container:d,direction:m,spacing:y,wrap:v,size:b}=f,x={root:["root",d&&"container",v!=="wrap"&&`wrap-xs-${String(v)}`,...gI(m),...mI(b),...d?_I(y,h.breakpoints.keys[0]):[]]};return He(x,k=>qe(o,k),{})};function s(f,h,d=()=>!0){const m={};return f===null||(Array.isArray(f)?f.forEach((y,v)=>{y!==null&&d(y)&&h.keys[v]&&(m[h.keys[v]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const v=f[y];v!=null&&d(v)&&(m[y]=v)}):m[h.keys[0]]=f),m}const l=e(uI,pI,dI,cI,fI,hI,lI),u=R.forwardRef(function(h,d){const m=n(),y=r(h),v=Db(y);yI(v,m.breakpoints);const{className:b,children:x,columns:k=12,container:O=!1,component:T="div",direction:M="row",wrap:A="wrap",size:E={},offset:D={},spacing:j=0,rowSpacing:P=j,columnSpacing:$=j,unstable_level:L=0,...W}=v,H=s(E,m.breakpoints,N=>N!==!1),V=s(D,m.breakpoints),q=h.columns??(L?void 0:k),J=h.spacing??(L?void 0:j),ee=h.rowSpacing??h.spacing??(L?void 0:P),Z=h.columnSpacing??h.spacing??(L?void 0:$),X={...v,level:L,columns:q,container:O,direction:M,wrap:A,spacing:J,rowSpacing:ee,columnSpacing:Z,size:H,offset:V},te=a(X,m);return C.jsx(l,{ref:d,as:T,ownerState:X,className:Se(te.root,b),...W,children:R.Children.map(x,N=>R.isValidElement(N)&&$f(N,["Grid"])&&O&&N.props.container?R.cloneElement(N,{unstable_level:N.props?.unstable_level??L+1}):N)})});return u.muiName="Grid",u}const Gu={black:"#000",white:"#fff"},c1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ks={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Zs={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ir={100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Qs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ec={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},tc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function r8(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Gu.white,default:Gu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const xI=r8();function n8(){return{text:{primary:Gu.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Gu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Vx=n8();function Gx(t,e,r,n){const o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=gd(t.main,o):e==="dark"&&(t.dark=_d(t.main,a)))}function kI(t="light"){return t==="dark"?{main:Qs[200],light:Qs[50],dark:Qs[400]}:{main:Qs[700],light:Qs[400],dark:Qs[800]}}function CI(t="light"){return t==="dark"?{main:Ks[200],light:Ks[50],dark:Ks[400]}:{main:Ks[500],light:Ks[300],dark:Ks[700]}}function $I(t="light"){return t==="dark"?{main:Zs[500],light:Zs[300],dark:Zs[700]}:{main:Zs[700],light:Zs[400],dark:Zs[800]}}function EI(t="light"){return t==="dark"?{main:ec[400],light:ec[300],dark:ec[700]}:{main:ec[700],light:ec[500],dark:ec[900]}}function TI(t="light"){return t==="dark"?{main:tc[400],light:tc[300],dark:tc[700]}:{main:tc[800],light:tc[500],dark:tc[900]}}function OI(t="light"){return t==="dark"?{main:Ir[400],light:Ir[300],dark:Ir[700]}:{main:"#ed6c02",light:Ir[500],dark:Ir[900]}}function Ib(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=t,a=t.primary||kI(e),s=t.secondary||CI(e),l=t.error||$I(e),u=t.info||EI(e),f=t.success||TI(e),h=t.warning||OI(e);function d(b){return MN(b,Vx.text.primary)>=r?Vx.text.primary:xI.text.primary}const m=({color:b,name:x,mainShade:k=500,lightShade:O=300,darkShade:T=700})=>{if(b={...b},!b.main&&b[k]&&(b.main=b[k]),!b.hasOwnProperty("main"))throw new Error(wa(11,x?` (${x})`:"",k));if(typeof b.main!="string")throw new Error(wa(12,x?` (${x})`:"",JSON.stringify(b.main)));return Gx(b,"light",O,n),Gx(b,"dark",T,n),b.contrastText||(b.contrastText=d(b.main)),b};let y;return e==="light"?y=r8():e==="dark"&&(y=n8()),Yr({common:{...Gu},mode:e,primary:m({color:a,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:h,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:f,name:"success"}),grey:c1,contrastThreshold:r,getContrastText:d,augmentColor:m,tonalOffset:n,...y},o)}function DI(t){const e={};return Object.entries(t).forEach(n=>{const[o,a]=n;typeof a=="object"&&(e[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function RI(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function MI(t){return Math.round(t*1e5)/1e5}const Xx={textTransform:"uppercase"},Jx='"Roboto", "Helvetica", "Arial", sans-serif';function o8(t,e){const{fontFamily:r=Jx,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:h,...d}=typeof e=="function"?e(t):e,m=n/14,y=h||(x=>`${x/u*m}rem`),v=(x,k,O,T,M)=>({fontFamily:r,fontWeight:x,fontSize:y(k),lineHeight:O,...r===Jx?{letterSpacing:`${MI(T/k)}em`}:{},...M,...f}),b={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,Xx),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,Xx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yr({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...b},d,{clone:!1})}const AI=.2,NI=.14,II=.12;function Yt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${AI})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${NI})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${II})`].join(",")}const PI=["none",Yt(0,2,1,-1,0,1,1,0,0,1,3,0),Yt(0,3,1,-2,0,2,2,0,0,1,5,0),Yt(0,3,3,-2,0,3,4,0,0,1,8,0),Yt(0,2,4,-1,0,4,5,0,0,1,10,0),Yt(0,3,5,-1,0,5,8,0,0,1,14,0),Yt(0,3,5,-1,0,6,10,0,0,1,18,0),Yt(0,4,5,-2,0,7,10,1,0,2,16,1),Yt(0,5,5,-3,0,8,10,1,0,3,14,2),Yt(0,5,6,-3,0,9,12,1,0,3,16,2),Yt(0,6,6,-3,0,10,14,1,0,4,18,3),Yt(0,6,7,-4,0,11,15,1,0,4,20,3),Yt(0,7,8,-4,0,12,17,2,0,5,22,4),Yt(0,7,8,-4,0,13,19,2,0,5,24,4),Yt(0,7,9,-4,0,14,21,2,0,5,26,4),Yt(0,8,9,-5,0,15,22,2,0,6,28,5),Yt(0,8,10,-5,0,16,24,2,0,6,30,5),Yt(0,8,11,-5,0,17,26,2,0,6,32,5),Yt(0,9,11,-5,0,18,28,2,0,7,34,6),Yt(0,9,12,-6,0,19,29,2,0,7,36,6),Yt(0,10,13,-6,0,20,31,3,0,8,38,7),Yt(0,10,13,-6,0,21,33,3,0,8,40,7),Yt(0,10,14,-6,0,22,35,3,0,8,42,7),Yt(0,11,14,-7,0,23,36,3,0,9,44,8),Yt(0,11,15,-7,0,24,38,3,0,9,46,8)],jI={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},zI={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Yx(t){return`${Math.round(t)}ms`}function LI(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function FI(t){const e={...jI,...t.easing},r={...zI,...t.duration};return{getAutoHeightDuration:LI,create:(o=["all"],a={})=>{const{duration:s=r.standard,easing:l=e.easeInOut,delay:u=0,...f}=a;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof s=="string"?s:Yx(s)} ${l} ${typeof u=="string"?u:Yx(u)}`).join(",")},...t,easing:e,duration:r}}const BI={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function WI(t){return Fo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function a8(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let a=0;aYr(y,v),m),m.unstable_sxConfig={...hd,...f?.unstable_sxConfig},m.unstable_sx=function(v){return ci({sx:v,theme:this})},m.toRuntimeSource=a8,m}function u1(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const UI=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=u1(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function i8(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function s8(t){return t==="dark"?UI:[]}function qI(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,a=Ib(e);return{palette:a,opacity:{...i8(a.mode),...r},overlays:n||s8(a.mode),...o}}function HI(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const VI=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],GI=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const s={};return VI(t.cssVarPrefix).forEach(l=>{s[l]=r[l],delete r[l]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:a?{[a.replace("%s",e)]:s,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...s}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function XI(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function oe(t,e,r){!t[e]&&r&&(t[e]=r)}function yu(t){return typeof t!="string"||!t.startsWith("hsl")?t:HT(t)}function la(t,e){`${e}Channel`in t||(t[`${e}Channel`]=gu(yu(t[e])))}function JI(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ro=t=>{try{return t()}catch{}},YI=(t="mui")=>rI(t);function lg(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=qI({...e,palette:{mode:o,...e?.palette}});return}const{palette:a,...s}=l1({...r,palette:{mode:o,...e?.palette}});return t[n]={...e,palette:a,opacity:{...i8(o),...e?.opacity},overlays:e?.overlays||s8(o)},s}function KI(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=HI,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...f}=t,h=Object.keys(r)[0],d=n||(r.light&&h!=="light"?"light":h),m=YI(a),{[d]:y,light:v,dark:b,...x}=r,k={...x};let O=y;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(O=!0),!O)throw new Error(wa(21,d));const T=lg(k,O,f,d);v&&!k.light&&lg(k,v,void 0,"light"),b&&!k.dark&&lg(k,b,void 0,"dark");let M={defaultColorScheme:d,...T,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:m,colorSchemes:k,font:{...DI(T.typography),...T.font},spacing:JI(f.spacing)};Object.keys(M.colorSchemes).forEach(P=>{const $=M.colorSchemes[P].palette,L=W=>{const H=W.split("-"),V=H[1],q=H[2];return m(W,$[V][q])};if($.mode==="light"&&(oe($.common,"background","#fff"),oe($.common,"onBackground","#000")),$.mode==="dark"&&(oe($.common,"background","#000"),oe($.common,"onBackground","#fff")),XI($,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),$.mode==="light"){oe($.Alert,"errorColor",jt($.error.light,.6)),oe($.Alert,"infoColor",jt($.info.light,.6)),oe($.Alert,"successColor",jt($.success.light,.6)),oe($.Alert,"warningColor",jt($.warning.light,.6)),oe($.Alert,"errorFilledBg",L("palette-error-main")),oe($.Alert,"infoFilledBg",L("palette-info-main")),oe($.Alert,"successFilledBg",L("palette-success-main")),oe($.Alert,"warningFilledBg",L("palette-warning-main")),oe($.Alert,"errorFilledColor",Ro(()=>$.getContrastText($.error.main))),oe($.Alert,"infoFilledColor",Ro(()=>$.getContrastText($.info.main))),oe($.Alert,"successFilledColor",Ro(()=>$.getContrastText($.success.main))),oe($.Alert,"warningFilledColor",Ro(()=>$.getContrastText($.warning.main))),oe($.Alert,"errorStandardBg",zt($.error.light,.9)),oe($.Alert,"infoStandardBg",zt($.info.light,.9)),oe($.Alert,"successStandardBg",zt($.success.light,.9)),oe($.Alert,"warningStandardBg",zt($.warning.light,.9)),oe($.Alert,"errorIconColor",L("palette-error-main")),oe($.Alert,"infoIconColor",L("palette-info-main")),oe($.Alert,"successIconColor",L("palette-success-main")),oe($.Alert,"warningIconColor",L("palette-warning-main")),oe($.AppBar,"defaultBg",L("palette-grey-100")),oe($.Avatar,"defaultBg",L("palette-grey-400")),oe($.Button,"inheritContainedBg",L("palette-grey-300")),oe($.Button,"inheritContainedHoverBg",L("palette-grey-A100")),oe($.Chip,"defaultBorder",L("palette-grey-400")),oe($.Chip,"defaultAvatarColor",L("palette-grey-700")),oe($.Chip,"defaultIconColor",L("palette-grey-700")),oe($.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe($.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe($.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe($.LinearProgress,"primaryBg",zt($.primary.main,.62)),oe($.LinearProgress,"secondaryBg",zt($.secondary.main,.62)),oe($.LinearProgress,"errorBg",zt($.error.main,.62)),oe($.LinearProgress,"infoBg",zt($.info.main,.62)),oe($.LinearProgress,"successBg",zt($.success.main,.62)),oe($.LinearProgress,"warningBg",zt($.warning.main,.62)),oe($.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.11)`),oe($.Slider,"primaryTrack",zt($.primary.main,.62)),oe($.Slider,"secondaryTrack",zt($.secondary.main,.62)),oe($.Slider,"errorTrack",zt($.error.main,.62)),oe($.Slider,"infoTrack",zt($.info.main,.62)),oe($.Slider,"successTrack",zt($.success.main,.62)),oe($.Slider,"warningTrack",zt($.warning.main,.62));const W=Up($.background.default,.8);oe($.SnackbarContent,"bg",W),oe($.SnackbarContent,"color",Ro(()=>$.getContrastText(W))),oe($.SpeedDialAction,"fabHoverBg",Up($.background.paper,.15)),oe($.StepConnector,"border",L("palette-grey-400")),oe($.StepContent,"border",L("palette-grey-400")),oe($.Switch,"defaultColor",L("palette-common-white")),oe($.Switch,"defaultDisabledColor",L("palette-grey-100")),oe($.Switch,"primaryDisabledColor",zt($.primary.main,.62)),oe($.Switch,"secondaryDisabledColor",zt($.secondary.main,.62)),oe($.Switch,"errorDisabledColor",zt($.error.main,.62)),oe($.Switch,"infoDisabledColor",zt($.info.main,.62)),oe($.Switch,"successDisabledColor",zt($.success.main,.62)),oe($.Switch,"warningDisabledColor",zt($.warning.main,.62)),oe($.TableCell,"border",zt(Wp($.divider,1),.88)),oe($.Tooltip,"bg",Wp($.grey[700],.92))}if($.mode==="dark"){oe($.Alert,"errorColor",zt($.error.light,.6)),oe($.Alert,"infoColor",zt($.info.light,.6)),oe($.Alert,"successColor",zt($.success.light,.6)),oe($.Alert,"warningColor",zt($.warning.light,.6)),oe($.Alert,"errorFilledBg",L("palette-error-dark")),oe($.Alert,"infoFilledBg",L("palette-info-dark")),oe($.Alert,"successFilledBg",L("palette-success-dark")),oe($.Alert,"warningFilledBg",L("palette-warning-dark")),oe($.Alert,"errorFilledColor",Ro(()=>$.getContrastText($.error.dark))),oe($.Alert,"infoFilledColor",Ro(()=>$.getContrastText($.info.dark))),oe($.Alert,"successFilledColor",Ro(()=>$.getContrastText($.success.dark))),oe($.Alert,"warningFilledColor",Ro(()=>$.getContrastText($.warning.dark))),oe($.Alert,"errorStandardBg",jt($.error.light,.9)),oe($.Alert,"infoStandardBg",jt($.info.light,.9)),oe($.Alert,"successStandardBg",jt($.success.light,.9)),oe($.Alert,"warningStandardBg",jt($.warning.light,.9)),oe($.Alert,"errorIconColor",L("palette-error-main")),oe($.Alert,"infoIconColor",L("palette-info-main")),oe($.Alert,"successIconColor",L("palette-success-main")),oe($.Alert,"warningIconColor",L("palette-warning-main")),oe($.AppBar,"defaultBg",L("palette-grey-900")),oe($.AppBar,"darkBg",L("palette-background-paper")),oe($.AppBar,"darkColor",L("palette-text-primary")),oe($.Avatar,"defaultBg",L("palette-grey-600")),oe($.Button,"inheritContainedBg",L("palette-grey-800")),oe($.Button,"inheritContainedHoverBg",L("palette-grey-700")),oe($.Chip,"defaultBorder",L("palette-grey-700")),oe($.Chip,"defaultAvatarColor",L("palette-grey-300")),oe($.Chip,"defaultIconColor",L("palette-grey-300")),oe($.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe($.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe($.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe($.LinearProgress,"primaryBg",jt($.primary.main,.5)),oe($.LinearProgress,"secondaryBg",jt($.secondary.main,.5)),oe($.LinearProgress,"errorBg",jt($.error.main,.5)),oe($.LinearProgress,"infoBg",jt($.info.main,.5)),oe($.LinearProgress,"successBg",jt($.success.main,.5)),oe($.LinearProgress,"warningBg",jt($.warning.main,.5)),oe($.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.13)`),oe($.Slider,"primaryTrack",jt($.primary.main,.5)),oe($.Slider,"secondaryTrack",jt($.secondary.main,.5)),oe($.Slider,"errorTrack",jt($.error.main,.5)),oe($.Slider,"infoTrack",jt($.info.main,.5)),oe($.Slider,"successTrack",jt($.success.main,.5)),oe($.Slider,"warningTrack",jt($.warning.main,.5));const W=Up($.background.default,.98);oe($.SnackbarContent,"bg",W),oe($.SnackbarContent,"color",Ro(()=>$.getContrastText(W))),oe($.SpeedDialAction,"fabHoverBg",Up($.background.paper,.15)),oe($.StepConnector,"border",L("palette-grey-600")),oe($.StepContent,"border",L("palette-grey-600")),oe($.Switch,"defaultColor",L("palette-grey-300")),oe($.Switch,"defaultDisabledColor",L("palette-grey-600")),oe($.Switch,"primaryDisabledColor",jt($.primary.main,.55)),oe($.Switch,"secondaryDisabledColor",jt($.secondary.main,.55)),oe($.Switch,"errorDisabledColor",jt($.error.main,.55)),oe($.Switch,"infoDisabledColor",jt($.info.main,.55)),oe($.Switch,"successDisabledColor",jt($.success.main,.55)),oe($.Switch,"warningDisabledColor",jt($.warning.main,.55)),oe($.TableCell,"border",jt(Wp($.divider,1),.68)),oe($.Tooltip,"bg",Wp($.grey[700],.92))}la($.background,"default"),la($.background,"paper"),la($.common,"background"),la($.common,"onBackground"),la($,"divider"),Object.keys($).forEach(W=>{const H=$[W];W!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&oe($[W],"mainChannel",gu(yu(H.main))),H.light&&oe($[W],"lightChannel",gu(yu(H.light))),H.dark&&oe($[W],"darkChannel",gu(yu(H.dark))),H.contrastText&&oe($[W],"contrastTextChannel",gu(yu(H.contrastText))),W==="text"&&(la($[W],"primary"),la($[W],"secondary")),W==="action"&&(H.active&&la($[W],"active"),H.selected&&la($[W],"selected")))})}),M=e.reduce((P,$)=>Yr(P,$),M);const A={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:GI(M)},{vars:E,generateThemeVars:D,generateStyleSheets:j}=aI(M,A);return M.vars=E,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([P,$])=>{M[P]=$}),M.generateThemeVars=D,M.generateStyleSheets=j,M.generateSpacing=function(){return IT(f.spacing,Tb(this))},M.getColorSchemeSelector=iI(l),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=s,M.unstable_sxConfig={...hd,...f?.unstable_sxConfig},M.unstable_sx=function($){return ci({sx:$,theme:this})},M.toRuntimeSource=a8,M}function Kx(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:Ib({...r===!0?{}:r.palette,mode:e})})}function Xu(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...s}=t,l=a||"light",u=o?.[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return l1(t,...e);let h=r;"palette"in t||f[l]&&(f[l]!==!0?h=f[l].palette:l==="dark"&&(h={mode:"dark"}));const d=l1({...t,palette:h},...e);return d.defaultColorScheme=l,d.colorSchemes=f,d.palette.mode==="light"&&(d.colorSchemes.light={...f.light!==!0&&f.light,palette:d.palette},Kx(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},Kx(d,"light",f.light)),d}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),KI({...s,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...e)}const Pb=Xu();function $a(){const t=md(Pb);return t[mo]||t}function c8(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Rr=t=>c8(t)&&t!=="classes",le=BT({themeId:mo,defaultTheme:Pb,rootShouldForwardProp:Rr});function ZI({theme:t,...e}){const r=mo in t?t[mo]:void 0;return C.jsx(e8,{...e,themeId:r?mo:void 0,theme:r||t})}const qp={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:QI}=tI({themeId:mo,theme:()=>Xu({cssVariables:!0}),colorSchemeStorageKey:qp.colorSchemeStorageKey,modeStorageKey:qp.modeStorageKey,defaultColorScheme:{light:qp.defaultLightColorScheme,dark:qp.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:o8(t.palette,t.typography)};return e.unstable_sx=function(n){return ci({sx:n,theme:this})},e}}),eP=QI;function Zx({theme:t,...e}){const r=R.useMemo(()=>{if(typeof t=="function")return t;const n=mo in t?t[mo]:t;return"colorSchemes"in n?null:"vars"in n?t:{...t,vars:null}},[t]);return r?C.jsx(ZI,{theme:r,...e}):C.jsx(eP,{theme:t,...e})}function tP(t){return C.jsx(PT,{...t,defaultTheme:Pb,themeId:mo})}function rP(t){return function(r){return C.jsx(tP,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function nP(){return Db}const Ke=GN;function Ve(t){return HN(t)}function oP(t){return qe("MuiSvgIcon",t)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const aP=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${_e(e)}`,`fontSize${_e(r)}`]};return He(o,oP,n)},iP=le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${_e(r.color)}`],e[`fontSize${_e(r.fontSize)}`]]}})(Ke(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),d1=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:m="0 0 24 24",...y}=n,v=R.isValidElement(o)&&o.type==="svg",b={...n,color:s,component:l,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:v},x={};h||(x.viewBox=m);const k=aP(b);return C.jsxs(iP,{as:l,className:Se(k.root,a),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...x,...y,...v&&o.props,ownerState:b,children:[v?o.props.children:o,d?C.jsx("title",{children:d}):null]})});d1.muiName="SvgIcon";function Ze(t,e){function r(n,o){return C.jsx(d1,{"data-testid":`${e}Icon`,ref:o,...n,children:t})}return r.muiName=d1.muiName,R.memo(R.forwardRef(r))}function l8(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const a=typeof e=="function"?e(o):e,s=typeof t=="function"?t({...o,...a}):t,l=Se(o?.className,a?.className,s?.className);return{...a,...s,...!!l&&{className:l},...a?.style&&s?.style&&{style:{...a.style,...s.style}},...a?.sx&&s?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const r=e,n=Se(r?.className,t?.className);return{...e,...t,...!!n&&{className:n},...r?.style&&t?.style&&{style:{...r.style,...t.style}},...r?.sx&&t?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function p1(){return p1=Object.assign?Object.assign.bind():function(t){for(var e=1;et.scrollTop;function qf(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function hP(t){return qe("MuiPaper",t)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const mP=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return He(a,hP,o)},_P=le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Ke(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ui=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiPaper"}),o=$a(),{className:a,component:s="div",elevation:l=1,square:u=!1,variant:f="elevation",...h}=n,d={...n,component:s,elevation:l,square:u,variant:f},m=mP(d);return C.jsx(_P,{as:s,ownerState:d,className:Se(m.root,a),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Bt("#fff",u1(l))}, ${Bt("#fff",u1(l))})`}},...h.style}})});function ct(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=e,{component:f,slots:h={[t]:void 0},slotProps:d={[t]:void 0},...m}=a,y=h[t]||n,v=YT(d[t],o),{props:{component:b,...x},internalRef:k}=JT({className:r,...u,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:v}),O=kr(k,v?.ref,e.ref),T=t==="root"?b||f:b,M=XT(y,{...t==="root"&&!f&&!h[t]&&s,...t!=="root"&&!h[t]&&s,...x,...T&&!l&&{as:T},...T&&l&&{component:T},ref:O},o);return[y,M]}class Hf{static create(){return new Hf}static use(){const e=VT(Hf.create).current,[r,n]=R.useState(!1);return e.shouldMount=r,e.setShouldMount=n,R.useEffect(e.mountEffect,[r]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=yP(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function gP(){return Hf.use()}function yP(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function vP(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:f}=t,[h,d]=R.useState(!1),m=Se(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},v=Se(r.child,h&&r.childLeaving,n&&r.childPulsate);return!l&&!h&&d(!0),R.useEffect(()=>{if(!l&&u!=null){const b=setTimeout(u,f);return()=>{clearTimeout(b)}}},[u,l,f]),C.jsx("span",{className:m,style:y,children:C.jsx("span",{className:v})})}const Xn=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),m1=550,bP=80,wP=gi` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,SP=gi` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,xP=gi` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,kP=le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),CP=le(vP,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${Xn.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${wP}; - animation-duration: ${m1}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - &.${Xn.ripplePulsate} { - animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; - } - - & .${Xn.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${Xn.childLeaving} { - opacity: 0; - animation-name: ${SP}; - animation-duration: ${m1}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - & .${Xn.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${xP}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,$P=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...l}=n,[u,f]=R.useState([]),h=R.useRef(0),d=R.useRef(null);R.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const m=R.useRef(!1),y=Zi(),v=R.useRef(null),b=R.useRef(null),x=R.useCallback(M=>{const{pulsate:A,rippleX:E,rippleY:D,rippleSize:j,cb:P}=M;f($=>[...$,C.jsx(CP,{classes:{ripple:Se(a.ripple,Xn.ripple),rippleVisible:Se(a.rippleVisible,Xn.rippleVisible),ripplePulsate:Se(a.ripplePulsate,Xn.ripplePulsate),child:Se(a.child,Xn.child),childLeaving:Se(a.childLeaving,Xn.childLeaving),childPulsate:Se(a.childPulsate,Xn.childPulsate)},timeout:m1,pulsate:A,rippleX:E,rippleY:D,rippleSize:j},h.current)]),h.current+=1,d.current=P},[a]),k=R.useCallback((M={},A={},E=()=>{})=>{const{pulsate:D=!1,center:j=o||A.pulsate,fakeElement:P=!1}=A;if(M?.type==="mousedown"&&m.current){m.current=!1;return}M?.type==="touchstart"&&(m.current=!0);const $=P?null:b.current,L=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,H,V;if(j||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)W=Math.round(L.width/2),H=Math.round(L.height/2);else{const{clientX:q,clientY:J}=M.touches&&M.touches.length>0?M.touches[0]:M;W=Math.round(q-L.left),H=Math.round(J-L.top)}if(j)V=Math.sqrt((2*L.width**2+L.height**2)/3),V%2===0&&(V+=1);else{const q=Math.max(Math.abs(($?$.clientWidth:0)-W),W)*2+2,J=Math.max(Math.abs(($?$.clientHeight:0)-H),H)*2+2;V=Math.sqrt(q**2+J**2)}M?.touches?v.current===null&&(v.current=()=>{x({pulsate:D,rippleX:W,rippleY:H,rippleSize:V,cb:E})},y.start(bP,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:D,rippleX:W,rippleY:H,rippleSize:V,cb:E})},[o,x,y]),O=R.useCallback(()=>{k({},{pulsate:!0})},[k]),T=R.useCallback((M,A)=>{if(y.clear(),M?.type==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{T(M,A)});return}v.current=null,f(E=>E.length>0?E.slice(1):E),d.current=A},[y]);return R.useImperativeHandle(r,()=>({pulsate:O,start:k,stop:T}),[O,k,T]),C.jsx(kP,{className:Se(Xn.root,a.root,s),ref:b,...l,children:C.jsx(zb,{component:null,exit:!0,children:u})})});function EP(t){return qe("MuiButtonBase",t)}const TP=We("MuiButtonBase",["root","disabled","focusVisible"]),OP=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,s=He({root:["root",e&&"disabled",r&&"focusVisible"]},EP,o);return r&&n&&(s.root+=` ${n}`),s},DP=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${TP.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yi=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,component:u="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:d=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:b,onClick:x,onContextMenu:k,onDragLeave:O,onFocus:T,onFocusVisible:M,onKeyDown:A,onKeyUp:E,onMouseDown:D,onMouseLeave:j,onMouseUp:P,onTouchEnd:$,onTouchMove:L,onTouchStart:W,tabIndex:H=0,TouchRippleProps:V,touchRippleRef:q,type:J,...ee}=n,Z=R.useRef(null),X=gP(),te=kr(X.ref,q),[N,B]=R.useState(!1);f&&N&&B(!1),R.useImperativeHandle(o,()=>({focusVisible:()=>{B(!0),Z.current.focus()}}),[]);const ne=X.shouldMount&&!h&&!f;R.useEffect(()=>{N&&m&&!h&&X.pulsate()},[h,m,N,X]);const ae=ua(X,"start",D,d),re=ua(X,"stop",k,d),ie=ua(X,"stop",O,d),he=ua(X,"stop",P,d),me=ua(X,"stop",we=>{N&&we.preventDefault(),j&&j(we)},d),ge=ua(X,"start",W,d),be=ua(X,"stop",$,d),Ie=ua(X,"stop",L,d),Re=ua(X,"stop",we=>{Ff(we.target)||B(!1),b&&b(we)},!1),Ge=rn(we=>{Z.current||(Z.current=we.currentTarget),Ff(we.target)&&(B(!0),M&&M(we)),T&&T(we)}),xe=()=>{const we=Z.current;return u&&u!=="button"&&!(we.tagName==="A"&&we.href)},Te=rn(we=>{m&&!we.repeat&&N&&we.key===" "&&X.stop(we,()=>{X.start(we)}),we.target===we.currentTarget&&xe()&&we.key===" "&&we.preventDefault(),A&&A(we),we.target===we.currentTarget&&xe()&&we.key==="Enter"&&!f&&(we.preventDefault(),x&&x(we))}),gt=rn(we=>{m&&we.key===" "&&N&&!we.defaultPrevented&&X.stop(we,()=>{X.pulsate(we)}),E&&E(we),x&&we.target===we.currentTarget&&xe()&&we.key===" "&&!we.defaultPrevented&&x(we)});let ke=u;ke==="button"&&(ee.href||ee.to)&&(ke=v);const Ae={};ke==="button"?(Ae.type=J===void 0?"button":J,Ae.disabled=f):(!ee.href&&!ee.to&&(Ae.role="button"),f&&(Ae["aria-disabled"]=f));const lt=kr(r,Z),tt={...n,centerRipple:a,component:u,disabled:f,disableRipple:h,disableTouchRipple:d,focusRipple:m,tabIndex:H,focusVisible:N},Xe=OP(tt);return C.jsxs(DP,{as:ke,className:Se(Xe.root,l),ownerState:tt,onBlur:Re,onClick:x,onContextMenu:re,onFocus:Ge,onKeyDown:Te,onKeyUp:gt,onMouseDown:ae,onMouseLeave:me,onMouseUp:he,onDragLeave:ie,onTouchEnd:be,onTouchMove:Ie,onTouchStart:ge,ref:lt,tabIndex:f?-1:H,type:J,...Ae,...ee,children:[s,ne?C.jsx($P,{ref:te,center:a,...V}):null]})});function ua(t,e,r,n=!1){return rn(o=>(r&&r(o),n||t[e](o),!0))}function RP(t){return typeof t.main=="string"}function MP(t,e=[]){if(!RP(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function vr(t=[]){return([,e])=>e&&MP(e,t)}function AP(t){return qe("MuiCircularProgress",t)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ja=44,_1=gi` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`,g1=gi` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: -126px; - } -`,NP=typeof _1!="string"?nl` - animation: ${_1} 1.4s linear infinite; - `:null,IP=typeof g1!="string"?nl` - animation: ${g1} 1.4s ease-in-out infinite; - `:null,PP=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,a={root:["root",r,`color${_e(n)}`],svg:["svg"],circle:["circle",`circle${_e(r)}`,o&&"circleDisableShrink"]};return He(a,AP,e)},jP=le("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${_e(r.color)}`]]}})(Ke(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:NP||{animation:`${_1} 1.4s linear infinite`}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),zP=le("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),LP=le("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${_e(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Ke(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:IP||{animation:`${g1} 1.4s ease-in-out infinite`}}]}))),Dh=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:l=40,style:u,thickness:f=3.6,value:h=0,variant:d="indeterminate",...m}=n,y={...n,color:a,disableShrink:s,size:l,thickness:f,value:h,variant:d},v=PP(y),b={},x={},k={};if(d==="determinate"){const O=2*Math.PI*((Ja-f)/2);b.strokeDasharray=O.toFixed(3),k["aria-valuenow"]=Math.round(h),b.strokeDashoffset=`${((100-h)/100*O).toFixed(3)}px`,x.transform="rotate(-90deg)"}return C.jsx(jP,{className:Se(v.root,o),style:{width:l,height:l,...x,...u},ownerState:y,ref:r,role:"progressbar",...k,...m,children:C.jsx(zP,{className:v.svg,ownerState:y,viewBox:`${Ja/2} ${Ja/2} ${Ja} ${Ja}`,children:C.jsx(LP,{className:v.circle,style:b,ownerState:y,cx:Ja,cy:Ja,r:(Ja-f)/2,fill:"none",strokeWidth:f})})})});function FP(t){return qe("MuiIconButton",t)}const e3=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),BP=t=>{const{classes:e,disabled:r,color:n,edge:o,size:a,loading:s}=t,l={root:["root",s&&"loading",r&&"disabled",n!=="default"&&`color${_e(n)}`,o&&`edge${_e(o)}`,`size${_e(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return He(l,FP,e)},WP=le(yi,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${_e(r.color)}`],r.edge&&e[`edge${_e(r.edge)}`],e[`size${_e(r.size)}`]]}})(Ke(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ke(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${e3.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${e3.loading}`]:{color:"transparent"}}))),UP=le("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),hr=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:h="medium",id:d,loading:m=null,loadingIndicator:y,...v}=n,b=ds(d),x=y??C.jsx(Dh,{"aria-labelledby":b,color:"inherit",size:16}),k={...n,edge:o,color:l,disabled:u,disableFocusRipple:f,loading:m,loadingIndicator:x,size:h},O=BP(k);return C.jsxs(WP,{id:m?b:d,className:Se(O.root,s),centerRipple:!0,focusRipple:!f,disabled:u||m,ref:r,...v,ownerState:k,children:[typeof m=="boolean"&&C.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:C.jsx(UP,{className:O.loadingIndicator,ownerState:k,children:m&&x})}),a]})});function qP(t){return qe("MuiTypography",t)}const t3=We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),HP={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},VP=nP(),GP=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:s}=t,l={root:["root",a,t.align!=="inherit"&&`align${_e(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return He(l,qP,s)},XP=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${_e(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Ke(({theme:t})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([e,r])=>e!=="inherit"&&r&&typeof r=="object").map(([e,r])=>({props:{variant:e},style:r})),...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette?.text||{}).filter(([,e])=>typeof e=="string").map(([e])=>({props:{color:`text${_e(e)}`},style:{color:(t.vars||t).palette.text[e]}})),{props:({ownerState:e})=>e.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),r3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Bo=R.forwardRef(function(e,r){const{color:n,...o}=Ve({props:e,name:"MuiTypography"}),a=!HP[n],s=VP({...o,...a&&{color:n}}),{align:l="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:m=!1,variant:y="body1",variantMapping:v=r3,...b}=s,x={...s,align:l,color:n,className:u,component:f,gutterBottom:h,noWrap:d,paragraph:m,variant:y,variantMapping:v},k=f||(m?"p":v[y]||r3[y])||"span",O=GP(x);return C.jsx(XP,{as:k,ref:r,className:Se(O.root,u),...b,ownerState:x,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...b.style}})});function JP(t){return qe("MuiAppBar",t)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const YP=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${_e(e)}`,`position${_e(r)}`]};return He(o,JP,n)},n3=(t,e)=>t?`${t?.replace(")","")}, ${e})`:e,KP=le(ui,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${_e(r.position)}`],e[`color${_e(r.color)}`]]}})(Ke(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(vr(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].contrastText}})),{props:e=>e.enableColorOnDark===!0&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>e.enableColorOnDark===!1&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?n3(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?n3(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),h8=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:s=!1,position:l="fixed",...u}=n,f={...n,color:a,position:l,enableColorOnDark:s},h=YP(f);return C.jsx(KP,{square:!0,component:"header",ownerState:f,elevation:4,className:Se(h.root,o,l==="fixed"&&"mui-fixed"),ref:r,...u})});var gn="top",Zn="bottom",Qn="right",yn="left",Lb="auto",yd=[gn,Zn,Qn,yn],Vc="start",Ju="end",ZP="clippingParents",m8="viewport",Zl="popper",QP="reference",o3=yd.reduce(function(t,e){return t.concat([e+"-"+Vc,e+"-"+Ju])},[]),_8=[].concat(yd,[Lb]).reduce(function(t,e){return t.concat([e,e+"-"+Vc,e+"-"+Ju])},[]),ej="beforeRead",tj="read",rj="afterRead",nj="beforeMain",oj="main",aj="afterMain",ij="beforeWrite",sj="write",cj="afterWrite",lj=[ej,tj,rj,nj,oj,aj,ij,sj,cj];function Go(t){return t?(t.nodeName||"").toLowerCase():null}function Pn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function os(t){var e=Pn(t).Element;return t instanceof e||t instanceof Element}function Yn(t){var e=Pn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Fb(t){if(typeof ShadowRoot>"u")return!1;var e=Pn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function uj(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},a=e.elements[r];!Yn(a)||!Go(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function dj(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],a=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),l=s.reduce(function(u,f){return u[f]="",u},{});!Yn(o)||!Go(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const pj={name:"applyStyles",enabled:!0,phase:"write",fn:uj,effect:dj,requires:["computeStyles"]};function qo(t){return t.split("-")[0]}var es=Math.max,Vf=Math.min,Gc=Math.round;function y1(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function g8(){return!/^((?!chrome|android).)*safari/i.test(y1())}function Xc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&Yn(t)&&(o=t.offsetWidth>0&&Gc(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Gc(n.height)/t.offsetHeight||1);var s=os(t)?Pn(t):window,l=s.visualViewport,u=!g8()&&r,f=(n.left+(u&&l?l.offsetLeft:0))/o,h=(n.top+(u&&l?l.offsetTop:0))/a,d=n.width/o,m=n.height/a;return{width:d,height:m,top:h,right:f+d,bottom:h+m,left:f,x:f,y:h}}function Bb(t){var e=Xc(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function y8(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Fb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function xa(t){return Pn(t).getComputedStyle(t)}function fj(t){return["table","td","th"].indexOf(Go(t))>=0}function vi(t){return((os(t)?t.ownerDocument:t.document)||window.document).documentElement}function Rh(t){return Go(t)==="html"?t:t.assignedSlot||t.parentNode||(Fb(t)?t.host:null)||vi(t)}function a3(t){return!Yn(t)||xa(t).position==="fixed"?null:t.offsetParent}function hj(t){var e=/firefox/i.test(y1()),r=/Trident/i.test(y1());if(r&&Yn(t)){var n=xa(t);if(n.position==="fixed")return null}var o=Rh(t);for(Fb(o)&&(o=o.host);Yn(o)&&["html","body"].indexOf(Go(o))<0;){var a=xa(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function vd(t){for(var e=Pn(t),r=a3(t);r&&fj(r)&&xa(r).position==="static";)r=a3(r);return r&&(Go(r)==="html"||Go(r)==="body"&&xa(r).position==="static")?e:r||hj(t)||e}function Wb(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ru(t,e,r){return es(t,Vf(e,r))}function mj(t,e,r){var n=Ru(t,e,r);return n>r?r:n}function v8(){return{top:0,right:0,bottom:0,left:0}}function b8(t){return Object.assign({},v8(),t)}function w8(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var _j=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,b8(typeof e!="number"?e:w8(e,yd))};function gj(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,l=qo(r.placement),u=Wb(l),f=[yn,Qn].indexOf(l)>=0,h=f?"height":"width";if(!(!a||!s)){var d=_j(o.padding,r),m=Bb(a),y=u==="y"?gn:yn,v=u==="y"?Zn:Qn,b=r.rects.reference[h]+r.rects.reference[u]-s[u]-r.rects.popper[h],x=s[u]-r.rects.reference[u],k=vd(a),O=k?u==="y"?k.clientHeight||0:k.clientWidth||0:0,T=b/2-x/2,M=d[y],A=O-m[h]-d[v],E=O/2-m[h]/2+T,D=Ru(M,E,A),j=u;r.modifiersData[n]=(e={},e[j]=D,e.centerOffset=D-E,e)}}function yj(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||y8(e.elements.popper,o)&&(e.elements.arrow=o))}const vj={name:"arrow",enabled:!0,phase:"main",fn:gj,effect:yj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jc(t){return t.split("-")[1]}var bj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wj(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Gc(r*o)/o||0,y:Gc(n*o)/o||0}}function i3(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,s=t.offsets,l=t.position,u=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,d=t.isFixed,m=s.x,y=m===void 0?0:m,v=s.y,b=v===void 0?0:v,x=typeof h=="function"?h({x:y,y:b}):{x:y,y:b};y=x.x,b=x.y;var k=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),T=yn,M=gn,A=window;if(f){var E=vd(r),D="clientHeight",j="clientWidth";if(E===Pn(r)&&(E=vi(r),xa(E).position!=="static"&&l==="absolute"&&(D="scrollHeight",j="scrollWidth")),E=E,o===gn||(o===yn||o===Qn)&&a===Ju){M=Zn;var P=d&&E===A&&A.visualViewport?A.visualViewport.height:E[D];b-=P-n.height,b*=u?1:-1}if(o===yn||(o===gn||o===Zn)&&a===Ju){T=Qn;var $=d&&E===A&&A.visualViewport?A.visualViewport.width:E[j];y-=$-n.width,y*=u?1:-1}}var L=Object.assign({position:l},f&&bj),W=h===!0?wj({x:y,y:b},Pn(r)):{x:y,y:b};if(y=W.x,b=W.y,u){var H;return Object.assign({},L,(H={},H[M]=O?"0":"",H[T]=k?"0":"",H.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",H))}return Object.assign({},L,(e={},e[M]=O?b+"px":"",e[T]=k?y+"px":"",e.transform="",e))}function Sj(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,l=r.roundOffsets,u=l===void 0?!0:l,f={placement:qo(e.placement),variation:Jc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,i3(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,i3(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const xj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Sj,data:{}};var Vp={passive:!0};function kj(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,l=s===void 0?!0:s,u=Pn(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",r.update,Vp)}),l&&u.addEventListener("resize",r.update,Vp),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Vp)}),l&&u.removeEventListener("resize",r.update,Vp)}}const Cj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kj,data:{}};var $j={left:"right",right:"left",bottom:"top",top:"bottom"};function Ef(t){return t.replace(/left|right|bottom|top/g,function(e){return $j[e]})}var Ej={start:"end",end:"start"};function s3(t){return t.replace(/start|end/g,function(e){return Ej[e]})}function Ub(t){var e=Pn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function qb(t){return Xc(vi(t)).left+Ub(t).scrollLeft}function Tj(t,e){var r=Pn(t),n=vi(t),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var f=g8();(f||!f&&e==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+qb(t),y:u}}function Oj(t){var e,r=vi(t),n=Ub(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=es(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=es(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+qb(t),u=-n.scrollTop;return xa(o||r).direction==="rtl"&&(l+=es(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function Hb(t){var e=xa(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function S8(t){return["html","body","#document"].indexOf(Go(t))>=0?t.ownerDocument.body:Yn(t)&&Hb(t)?t:S8(Rh(t))}function Mu(t,e){var r;e===void 0&&(e=[]);var n=S8(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),a=Pn(n),s=o?[a].concat(a.visualViewport||[],Hb(n)?n:[]):n,l=e.concat(s);return o?l:l.concat(Mu(Rh(s)))}function v1(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Dj(t,e){var r=Xc(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function c3(t,e,r){return e===m8?v1(Tj(t,r)):os(e)?Dj(e,r):v1(Oj(vi(t)))}function Rj(t){var e=Mu(Rh(t)),r=["absolute","fixed"].indexOf(xa(t).position)>=0,n=r&&Yn(t)?vd(t):t;return os(n)?e.filter(function(o){return os(o)&&y8(o,n)&&Go(o)!=="body"}):[]}function Mj(t,e,r,n){var o=e==="clippingParents"?Rj(t):[].concat(e),a=[].concat(o,[r]),s=a[0],l=a.reduce(function(u,f){var h=c3(t,f,n);return u.top=es(h.top,u.top),u.right=Vf(h.right,u.right),u.bottom=Vf(h.bottom,u.bottom),u.left=es(h.left,u.left),u},c3(t,s,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function x8(t){var e=t.reference,r=t.element,n=t.placement,o=n?qo(n):null,a=n?Jc(n):null,s=e.x+e.width/2-r.width/2,l=e.y+e.height/2-r.height/2,u;switch(o){case gn:u={x:s,y:e.y-r.height};break;case Zn:u={x:s,y:e.y+e.height};break;case Qn:u={x:e.x+e.width,y:l};break;case yn:u={x:e.x-r.width,y:l};break;default:u={x:e.x,y:e.y}}var f=o?Wb(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case Vc:u[f]=u[f]-(e[h]/2-r[h]/2);break;case Ju:u[f]=u[f]+(e[h]/2-r[h]/2);break}}return u}function Yu(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,a=r.strategy,s=a===void 0?t.strategy:a,l=r.boundary,u=l===void 0?ZP:l,f=r.rootBoundary,h=f===void 0?m8:f,d=r.elementContext,m=d===void 0?Zl:d,y=r.altBoundary,v=y===void 0?!1:y,b=r.padding,x=b===void 0?0:b,k=b8(typeof x!="number"?x:w8(x,yd)),O=m===Zl?QP:Zl,T=t.rects.popper,M=t.elements[v?O:m],A=Mj(os(M)?M:M.contextElement||vi(t.elements.popper),u,h,s),E=Xc(t.elements.reference),D=x8({reference:E,element:T,placement:o}),j=v1(Object.assign({},T,D)),P=m===Zl?j:E,$={top:A.top-P.top+k.top,bottom:P.bottom-A.bottom+k.bottom,left:A.left-P.left+k.left,right:P.right-A.right+k.right},L=t.modifiersData.offset;if(m===Zl&&L){var W=L[o];Object.keys($).forEach(function(H){var V=[Qn,Zn].indexOf(H)>=0?1:-1,q=[gn,Zn].indexOf(H)>=0?"y":"x";$[H]+=W[q]*V})}return $}function Aj(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?_8:u,h=Jc(n),d=h?l?o3:o3.filter(function(v){return Jc(v)===h}):yd,m=d.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=d);var y=m.reduce(function(v,b){return v[b]=Yu(t,{placement:b,boundary:o,rootBoundary:a,padding:s})[qo(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function Nj(t){if(qo(t)===Lb)return[];var e=Ef(t);return[s3(t),e,s3(e)]}function Ij(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,l=s===void 0?!0:s,u=r.fallbackPlacements,f=r.padding,h=r.boundary,d=r.rootBoundary,m=r.altBoundary,y=r.flipVariations,v=y===void 0?!0:y,b=r.allowedAutoPlacements,x=e.options.placement,k=qo(x),O=k===x,T=u||(O||!v?[Ef(x)]:Nj(x)),M=[x].concat(T).reduce(function(ae,re){return ae.concat(qo(re)===Lb?Aj(e,{placement:re,boundary:h,rootBoundary:d,padding:f,flipVariations:v,allowedAutoPlacements:b}):re)},[]),A=e.rects.reference,E=e.rects.popper,D=new Map,j=!0,P=M[0],$=0;$=0,q=V?"width":"height",J=Yu(e,{placement:L,boundary:h,rootBoundary:d,altBoundary:m,padding:f}),ee=V?H?Qn:yn:H?Zn:gn;A[q]>E[q]&&(ee=Ef(ee));var Z=Ef(ee),X=[];if(a&&X.push(J[W]<=0),l&&X.push(J[ee]<=0,J[Z]<=0),X.every(function(ae){return ae})){P=L,j=!1;break}D.set(L,X)}if(j)for(var te=v?3:1,N=function(re){var ie=M.find(function(he){var me=D.get(he);if(me)return me.slice(0,re).every(function(ge){return ge})});if(ie)return P=ie,"break"},B=te;B>0;B--){var ne=N(B);if(ne==="break")break}e.placement!==P&&(e.modifiersData[n]._skip=!0,e.placement=P,e.reset=!0)}}const Pj={name:"flip",enabled:!0,phase:"main",fn:Ij,requiresIfExists:["offset"],data:{_skip:!1}};function l3(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function u3(t){return[gn,Qn,Zn,yn].some(function(e){return t[e]>=0})}function jj(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,s=Yu(e,{elementContext:"reference"}),l=Yu(e,{altBoundary:!0}),u=l3(s,n),f=l3(l,o,a),h=u3(u),d=u3(f);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const zj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jj};function Lj(t,e,r){var n=qo(t),o=[yn,gn].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[yn,Qn].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function Fj(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=o===void 0?[0,0]:o,s=_8.reduce(function(h,d){return h[d]=Lj(d,e.rects,a),h},{}),l=s[e.placement],u=l.x,f=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=s}const Bj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fj};function Wj(t){var e=t.state,r=t.name;e.modifiersData[r]=x8({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Uj={name:"popperOffsets",enabled:!0,phase:"read",fn:Wj,data:{}};function qj(t){return t==="x"?"y":"x"}function Hj(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,l=s===void 0?!1:s,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.padding,m=r.tether,y=m===void 0?!0:m,v=r.tetherOffset,b=v===void 0?0:v,x=Yu(e,{boundary:u,rootBoundary:f,padding:d,altBoundary:h}),k=qo(e.placement),O=Jc(e.placement),T=!O,M=Wb(k),A=qj(M),E=e.modifiersData.popperOffsets,D=e.rects.reference,j=e.rects.popper,P=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,$=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,W={x:0,y:0};if(E){if(a){var H,V=M==="y"?gn:yn,q=M==="y"?Zn:Qn,J=M==="y"?"height":"width",ee=E[M],Z=ee+x[V],X=ee-x[q],te=y?-j[J]/2:0,N=O===Vc?D[J]:j[J],B=O===Vc?-j[J]:-D[J],ne=e.elements.arrow,ae=y&&ne?Bb(ne):{width:0,height:0},re=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:v8(),ie=re[V],he=re[q],me=Ru(0,D[J],ae[J]),ge=T?D[J]/2-te-me-ie-$.mainAxis:N-me-ie-$.mainAxis,be=T?-D[J]/2+te+me+he+$.mainAxis:B+me+he+$.mainAxis,Ie=e.elements.arrow&&vd(e.elements.arrow),Re=Ie?M==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,Ge=(H=L?.[M])!=null?H:0,xe=ee+ge-Ge-Re,Te=ee+be-Ge,gt=Ru(y?Vf(Z,xe):Z,ee,y?es(X,Te):X);E[M]=gt,W[M]=gt-ee}if(l){var ke,Ae=M==="x"?gn:yn,lt=M==="x"?Zn:Qn,tt=E[A],Xe=A==="y"?"height":"width",we=tt+x[Ae],dt=tt-x[lt],Qe=[gn,yn].indexOf(k)!==-1,se=(ke=L?.[A])!=null?ke:0,ve=Qe?we:tt-D[Xe]-j[Xe]-se+$.altAxis,Ue=Qe?tt+D[Xe]+j[Xe]-se-$.altAxis:dt,Le=y&&Qe?mj(ve,tt,Ue):Ru(y?ve:we,tt,y?Ue:dt);E[A]=Le,W[A]=Le-tt}e.modifiersData[n]=W}}const Vj={name:"preventOverflow",enabled:!0,phase:"main",fn:Hj,requiresIfExists:["offset"]};function Gj(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Xj(t){return t===Pn(t)||!Yn(t)?Ub(t):Gj(t)}function Jj(t){var e=t.getBoundingClientRect(),r=Gc(e.width)/t.offsetWidth||1,n=Gc(e.height)/t.offsetHeight||1;return r!==1||n!==1}function Yj(t,e,r){r===void 0&&(r=!1);var n=Yn(e),o=Yn(e)&&Jj(e),a=vi(e),s=Xc(t,o,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Go(e)!=="body"||Hb(a))&&(l=Xj(e)),Yn(e)?(u=Xc(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=qb(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function Kj(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var u=e.get(l);u&&o(u)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||o(a)}),n}function Zj(t){var e=Kj(t);return lj.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function Qj(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function ez(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var d3={placement:"bottom",modifiers:[],strategy:"absolute"};function p3(){for(var t=arguments.length,e=new Array(t),r=0;r{a||l(oz(o)||document.body)},[o,a]),wn(()=>{if(s&&!a)return Ix(r,s),()=>{Ix(r,null)}},[r,s,a]),a){if(R.isValidElement(n)){const f={ref:u};return R.cloneElement(n,f)}return n}return s&&p8.createPortal(n,s)});function az(t){return qe("MuiPopper",t)}We("MuiPopper",["root"]);function iz(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function b1(t){return typeof t=="function"?t():t}function sz(t){return t.nodeType!==void 0}const cz=t=>{const{classes:e}=t;return He({root:["root"]},az,e)},lz={},uz=R.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:f,popperOptions:h,popperRef:d,slotProps:m={},slots:y={},TransitionProps:v,ownerState:b,...x}=e,k=R.useRef(null),O=kr(k,r),T=R.useRef(null),M=kr(T,d),A=R.useRef(M);wn(()=>{A.current=M},[M]),R.useImperativeHandle(d,()=>T.current,[]);const E=iz(f,a),[D,j]=R.useState(E),[P,$]=R.useState(b1(n));R.useEffect(()=>{T.current&&T.current.forceUpdate()}),R.useEffect(()=>{n&&$(b1(n))},[n]),wn(()=>{if(!P||!u)return;const q=Z=>{j(Z.placement)};let J=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{q(Z)}}];l!=null&&(J=J.concat(l)),h&&h.modifiers!=null&&(J=J.concat(h.modifiers));const ee=nz(P,k.current,{placement:E,...h,modifiers:J});return A.current(ee),()=>{ee.destroy(),A.current(null)}},[P,s,l,u,h,E]);const L={placement:D};v!==null&&(L.TransitionProps=v);const W=cz(e),H=y.root??"div",V=ns({elementType:H,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:W.root});return C.jsx(H,{...V,children:typeof o=="function"?o(L):o})}),dz=R.forwardRef(function(e,r){const{anchorEl:n,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:f,open:h,placement:d="bottom",popperOptions:m=lz,popperRef:y,style:v,transition:b=!1,slotProps:x={},slots:k={},...O}=e,[T,M]=R.useState(!0),A=()=>{M(!1)},E=()=>{M(!0)};if(!u&&!h&&(!b||T))return null;let D;if(a)D=a;else if(n){const $=b1(n);D=$&&sz($)?zr($).body:zr(null).body}const j=!h&&u&&(!b||T)?"none":void 0,P=b?{in:h,onEnter:A,onExited:E}:void 0;return C.jsx(k8,{disablePortal:l,container:D,children:C.jsx(uz,{anchorEl:n,direction:s,disablePortal:l,modifiers:f,ref:r,open:b?!T:h,placement:d,popperOptions:m,popperRef:y,slotProps:x,slots:k,...O,style:{position:"fixed",top:0,left:0,display:j,...v},TransitionProps:P,children:o})})}),pz=le(dz,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),C8=R.forwardRef(function(e,r){const n=al(),o=Ve({props:e,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:f,disablePortal:h,keepMounted:d,modifiers:m,open:y,placement:v,popperOptions:b,popperRef:x,transition:k,slots:O,slotProps:T,...M}=o,A=O?.root??l?.Root,E={anchorEl:a,container:f,disablePortal:h,keepMounted:d,modifiers:m,open:y,placement:v,popperOptions:b,popperRef:x,transition:k,...M};return C.jsx(pz,{as:s,direction:n?"rtl":"ltr",slots:{root:A},slotProps:T??u,...E,ref:r})});function Gp(t){return parseInt(t,10)||0}const fz={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function hz(t){for(const e in t)return!1;return!0}function f3(t){return hz(t)||t.outerHeightStyle===0&&!t.overflowing}const mz=R.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:s,value:l,...u}=e,{current:f}=R.useRef(l!=null),h=R.useRef(null),d=kr(r,h),m=R.useRef(null),y=R.useRef(null),v=R.useCallback(()=>{const T=h.current,M=y.current;if(!T||!M)return;const E=go(T).getComputedStyle(T);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};M.style.width=E.width,M.value=T.value||e.placeholder||"x",M.value.slice(-1)===` -`&&(M.value+=" ");const D=E.boxSizing,j=Gp(E.paddingBottom)+Gp(E.paddingTop),P=Gp(E.borderBottomWidth)+Gp(E.borderTopWidth),$=M.scrollHeight;M.value="x";const L=M.scrollHeight;let W=$;a&&(W=Math.max(Number(a)*L,W)),o&&(W=Math.min(Number(o)*L,W)),W=Math.max(W,L);const H=W+(D==="border-box"?j+P:0),V=Math.abs(W-$)<=1;return{outerHeightStyle:H,overflowing:V}},[o,a,e.placeholder]),b=rn(()=>{const T=h.current,M=v();if(!T||!M||f3(M))return!1;const A=M.outerHeightStyle;return m.current!=null&&m.current!==A}),x=R.useCallback(()=>{const T=h.current,M=v();if(!T||!M||f3(M))return;const A=M.outerHeightStyle;m.current!==A&&(m.current=A,T.style.height=`${A}px`),T.style.overflow=M.overflowing?"hidden":""},[v]),k=R.useRef(-1);wn(()=>{const T=Eh(x),M=h?.current;if(!M)return;const A=go(M);A.addEventListener("resize",T);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{b()&&(E.unobserve(M),cancelAnimationFrame(k.current),x(),k.current=requestAnimationFrame(()=>{E.observe(M)}))}),E.observe(M)),()=>{T.clear(),cancelAnimationFrame(k.current),A.removeEventListener("resize",T),E&&E.disconnect()}},[v,x,b]),wn(()=>{x()});const O=T=>{f||x(),n&&n(T)};return C.jsxs(R.Fragment,{children:[C.jsx("textarea",{value:l,onChange:O,ref:d,rows:a,style:s,...u}),C.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...fz.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function w1(t){return typeof t=="string"}function bi({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const Vb=R.createContext(void 0);function Yo(){return R.useContext(Vb)}function h3(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Gf(t,e=!1){return t&&(h3(t.value)&&t.value!==""||e&&h3(t.defaultValue)&&t.defaultValue!=="")}function _z(t){return t.startAdornment}function gz(t){return qe("MuiInputBase",t)}const Yc=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var m3;const Mh=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${_e(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Ah=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},yz=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:u,hiddenLabel:f,multiline:h,readOnly:d,size:m,startAdornment:y,type:v}=t,b={root:["root",`color${_e(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",l&&"formControl",m&&m!=="medium"&&`size${_e(m)}`,h&&"multiline",y&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",v==="search"&&"inputTypeSearch",h&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return He(b,gz,e)},Nh=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mh})(Ke(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Yc.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Ih=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ah})(Ke(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Yc.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Yc.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),_3=rP({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Gb=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,color:u,components:f={},componentsProps:h={},defaultValue:d,disabled:m,disableInjectingGlobalStyles:y,endAdornment:v,error:b,fullWidth:x=!1,id:k,inputComponent:O="input",inputProps:T={},inputRef:M,margin:A,maxRows:E,minRows:D,multiline:j=!1,name:P,onBlur:$,onChange:L,onClick:W,onFocus:H,onKeyDown:V,onKeyUp:q,placeholder:J,readOnly:ee,renderSuffix:Z,rows:X,size:te,slotProps:N={},slots:B={},startAdornment:ne,type:ae="text",value:re,...ie}=n,he=T.value!=null?T.value:re,{current:me}=R.useRef(he!=null),ge=R.useRef(),be=R.useCallback(Fe=>{},[]),Ie=kr(ge,M,T.ref,be),[Re,Ge]=R.useState(!1),xe=Yo(),Te=bi({props:n,muiFormControl:xe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=xe?xe.focused:Re,R.useEffect(()=>{!xe&&m&&Re&&(Ge(!1),$&&$())},[xe,m,Re,$]);const gt=xe&&xe.onFilled,ke=xe&&xe.onEmpty,Ae=R.useCallback(Fe=>{Gf(Fe)?gt&>():ke&&ke()},[gt,ke]);wn(()=>{me&&Ae({value:he})},[he,Ae,me]);const lt=Fe=>{H&&H(Fe),T.onFocus&&T.onFocus(Fe),xe&&xe.onFocus?xe.onFocus(Fe):Ge(!0)},tt=Fe=>{$&&$(Fe),T.onBlur&&T.onBlur(Fe),xe&&xe.onBlur?xe.onBlur(Fe):Ge(!1)},Xe=(Fe,...Xt)=>{if(!me){const kt=Fe.target||ge.current;if(kt==null)throw new Error(wa(1));Ae({value:kt.value})}T.onChange&&T.onChange(Fe,...Xt),L&&L(Fe,...Xt)};R.useEffect(()=>{Ae(ge.current)},[]);const we=Fe=>{ge.current&&Fe.currentTarget===Fe.target&&ge.current.focus(),W&&W(Fe)};let dt=O,Qe=T;j&&dt==="input"&&(X?Qe={type:void 0,minRows:X,maxRows:X,...Qe}:Qe={type:void 0,maxRows:E,minRows:D,...Qe},dt=mz);const se=Fe=>{Ae(Fe.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};R.useEffect(()=>{xe&&xe.setAdornedStart(!!ne)},[xe,ne]);const ve={...n,color:Te.color||"primary",disabled:Te.disabled,endAdornment:v,error:Te.error,focused:Te.focused,formControl:xe,fullWidth:x,hiddenLabel:Te.hiddenLabel,multiline:j,size:Te.size,startAdornment:ne,type:ae},Ue=yz(ve),Le=B.root||f.Root||Nh,pt=N.root||h.root||{},bt=B.input||f.Input||Ih;return Qe={...Qe,...N.input??h.input},C.jsxs(R.Fragment,{children:[!y&&typeof _3=="function"&&(m3||(m3=C.jsx(_3,{}))),C.jsxs(Le,{...pt,ref:r,onClick:we,...ie,...!w1(Le)&&{ownerState:{...ve,...pt.ownerState}},className:Se(Ue.root,pt.className,l,ee&&"MuiInputBase-readOnly"),children:[ne,C.jsx(Vb.Provider,{value:null,children:C.jsx(bt,{"aria-invalid":Te.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Te.disabled,id:k,onAnimationStart:se,name:P,placeholder:J,readOnly:ee,required:Te.required,rows:X,value:he,onKeyDown:V,onKeyUp:q,type:ae,...Qe,...!w1(bt)&&{as:dt,ownerState:{...ve,...Qe.ownerState}},ref:Ie,className:Se(Ue.input,Qe.className,ee&&"MuiInputBase-readOnly"),onBlur:tt,onChange:Xe,onFocus:lt})}),v,Z?Z({...Te,startAdornment:ne}):null]})]})});function vz(t){return qe("MuiInput",t)}const Ql={...Yc,...We("MuiInput",["root","underline","input"])};function bz(t){return qe("MuiOutlinedInput",t)}const Mo={...Yc,...We("MuiOutlinedInput",["root","notchedOutline","input"])};function wz(t){return qe("MuiFilledInput",t)}const Pi={...Yc,...We("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Sz=Ze(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),xz={entering:{opacity:1},entered:{opacity:1}},S1=R.forwardRef(function(e,r){const n=$a(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:u,in:f,onEnter:h,onEntered:d,onEntering:m,onExit:y,onExited:v,onExiting:b,style:x,timeout:k=o,TransitionComponent:O=Jo,...T}=e,M=R.useRef(null),A=kr(M,ps(l),r),E=V=>q=>{if(V){const J=M.current;q===void 0?V(J):V(J,q)}},D=E(m),j=E((V,q)=>{f8(V);const J=qf({style:x,timeout:k,easing:u},{mode:"enter"});V.style.webkitTransition=n.transitions.create("opacity",J),V.style.transition=n.transitions.create("opacity",J),h&&h(V,q)}),P=E(d),$=E(b),L=E(V=>{const q=qf({style:x,timeout:k,easing:u},{mode:"exit"});V.style.webkitTransition=n.transitions.create("opacity",q),V.style.transition=n.transitions.create("opacity",q),y&&y(V)}),W=E(v),H=V=>{a&&a(M.current,V)};return C.jsx(O,{appear:s,in:f,nodeRef:M,onEnter:j,onEntered:P,onEntering:D,onExit:L,onExited:W,onExiting:$,addEndListener:H,timeout:k,...T,children:(V,{ownerState:q,...J})=>R.cloneElement(l,{style:{opacity:0,visibility:V==="exited"&&!f?"hidden":void 0,...xz[V],...x,...l.props.style},ref:A,...J})})});function kz(t){return qe("MuiBackdrop",t)}We("MuiBackdrop",["root","invisible"]);const Cz=t=>{const{classes:e,invisible:r}=t;return He({root:["root",r&&"invisible"]},kz,e)},$z=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),$8=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:u,components:f={},componentsProps:h={},slotProps:d={},slots:m={},TransitionComponent:y,transitionDuration:v,...b}=n,x={...n,component:s,invisible:l},k=Cz(x),O={transition:y,root:f.Root,...m},T={...h,...d},M={slots:O,slotProps:T},[A,E]=ct("root",{elementType:$z,externalForwardedProps:M,className:Se(k.root,a),ownerState:x}),[D,j]=ct("transition",{elementType:S1,externalForwardedProps:M,ownerState:x});return C.jsx(D,{in:u,timeout:v,...b,...j,children:C.jsx(A,{"aria-hidden":!0,...E,classes:k,ref:r,children:o})})}),Ez=We("MuiBox",["root"]),Tz=Xu(),st=mN({themeId:mo,defaultTheme:Tz,defaultClassName:Ez.root,generateClassName:jT.generate}),Oz=Ze(C.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Dz=le(yi,{name:"MuiBreadcrumbCollapsed"})(Ke(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:zf(t.palette.grey[200],.12)}:{backgroundColor:zf(t.palette.grey[600],.12)}}}))),Rz=le(Oz)({width:24,height:16});function Mz(t){const{slots:e={},slotProps:r={},...n}=t,o=t;return C.jsx("li",{children:C.jsx(Dz,{focusRipple:!0,...n,ownerState:o,children:C.jsx(Rz,{as:e.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function Az(t){return qe("MuiBreadcrumbs",t)}const Nz=We("MuiBreadcrumbs",["root","ol","li","separator"]),Iz=t=>{const{classes:e}=t;return He({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Az,e)},Pz=le(Bo,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${Nz.li}`]:e.li},e.root]})({}),jz=le("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),zz=le("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Lz(t,e,r,n){return t.reduce((o,a,s)=>(s{const j=()=>{x(!0);const P=M.current.querySelector("a[href],button,[tabindex]");P&&P.focus()};return d+h>=D.length?D:[...D.slice(0,d),C.jsx(Mz,{"aria-label":f,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:T},onClick:j},"ellipsis"),...D.slice(D.length-h,D.length)]},E=R.Children.toArray(o).filter(D=>R.isValidElement(D)).map((D,j)=>C.jsx("li",{className:O.li,children:D},`child-${j}`));return C.jsx(Pz,{ref:r,component:s,color:"textSecondary",className:Se(O.root,a),ownerState:k,...v,children:C.jsx(jz,{className:O.ol,ref:M,ownerState:k,children:Lz(b||m&&E.length<=m?E:A(E),O.separator,y,k)})})});function Bz(t){return qe("MuiButton",t)}const ji=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Wz=R.createContext({}),Uz=R.createContext(void 0),qz=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:a,loading:s,loadingPosition:l,classes:u}=t,f={root:["root",s&&"loading",a,`${a}${_e(e)}`,`size${_e(o)}`,`${a}Size${_e(o)}`,`color${_e(e)}`,r&&"disableElevation",n&&"fullWidth",s&&`loadingPosition${_e(l)}`],startIcon:["icon","startIcon",`iconSize${_e(o)}`],endIcon:["icon","endIcon",`iconSize${_e(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=He(f,Bz,u);return{...u,...h}},E8=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Hz=le(yi,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${_e(r.color)}`],e[`size${_e(r.size)}`],e[`${r.variant}Size${_e(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(Ke(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ji.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${ji.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${ji.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ji.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(vr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:Bt(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ji.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ji.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${ji.loading}`]:{color:"transparent"}}}]}})),Vz=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${_e(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...E8]})),Gz=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${_e(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...E8]})),Xz=le("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),g3=le("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Pt=R.forwardRef(function(e,r){const n=R.useContext(Wz),o=R.useContext(Uz),a=Vu(n,e),s=Ve({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:h,disabled:d=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:b,fullWidth:x=!1,id:k,loading:O=null,loadingIndicator:T,loadingPosition:M="center",size:A="medium",startIcon:E,type:D,variant:j="text",...P}=s,$=ds(k),L=T??C.jsx(Dh,{"aria-labelledby":$,color:"inherit",size:16}),W={...s,color:u,component:f,disabled:d,disableElevation:m,disableFocusRipple:y,fullWidth:x,loading:O,loadingIndicator:L,loadingPosition:M,size:A,type:D,variant:j},H=qz(W),V=(E||O&&M==="start")&&C.jsx(Vz,{className:H.startIcon,ownerState:W,children:E||C.jsx(g3,{className:H.loadingIconPlaceholder,ownerState:W})}),q=(v||O&&M==="end")&&C.jsx(Gz,{className:H.endIcon,ownerState:W,children:v||C.jsx(g3,{className:H.loadingIconPlaceholder,ownerState:W})}),J=o||"",ee=typeof O=="boolean"?C.jsx("span",{className:H.loadingWrapper,style:{display:"contents"},children:O&&C.jsx(Xz,{className:H.loadingIndicator,ownerState:W,children:L})}):null;return C.jsxs(Hz,{ownerState:W,className:Se(n.className,H.root,h,J),component:f,disabled:d||O,focusRipple:!y,focusVisibleClassName:Se(H.focusVisible,b),ref:r,type:D,id:O?$:k,...P,classes:H,children:[V,M!=="end"&&ee,l,M==="end"&&ee,q]})});function Jz(t){return qe("PrivateSwitchBase",t)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Yz=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${_e(o)}`],input:["input"]};return He(a,Jz,e)},Kz=le(yi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),Zz=le("input",{name:"MuiSwitchBase",shouldForwardProp:Rr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),T8=R.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:f=!1,icon:h,id:d,inputProps:m,inputRef:y,name:v,onBlur:b,onChange:x,onFocus:k,readOnly:O,required:T=!1,tabIndex:M,type:A,value:E,slots:D={},slotProps:j={},...P}=e,[$,L]=Lf({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),W=Yo(),H=re=>{k&&k(re),W&&W.onFocus&&W.onFocus(re)},V=re=>{b&&b(re),W&&W.onBlur&&W.onBlur(re)},q=re=>{if(re.nativeEvent.defaultPrevented)return;const ie=re.target.checked;L(ie),x&&x(re,ie)};let J=l;W&&typeof J>"u"&&(J=W.disabled);const ee=A==="checkbox"||A==="radio",Z={...e,checked:$,disabled:J,disableFocusRipple:u,edge:f},X=Yz(Z),te={slots:D,slotProps:{input:m,...j}},[N,B]=ct("root",{ref:r,elementType:Kz,className:X.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...P},getSlotProps:re=>({...re,onFocus:ie=>{re.onFocus?.(ie),H(ie)},onBlur:ie=>{re.onBlur?.(ie),V(ie)}}),ownerState:Z,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:J,role:void 0,tabIndex:null}}),[ne,ae]=ct("input",{ref:y,elementType:Zz,className:X.input,externalForwardedProps:te,getSlotProps:re=>({onChange:ie=>{re.onChange?.(ie),q(ie)}}),ownerState:Z,additionalProps:{autoFocus:n,checked:o,defaultChecked:s,disabled:J,id:ee?d:void 0,name:v,readOnly:O,required:T,tabIndex:M,type:A,...A==="checkbox"&&E===void 0?{}:{value:E}}});return C.jsxs(N,{...B,children:[C.jsx(ne,{...ae}),$?a:h]})}),Qz=Ze(C.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),eL=Ze(C.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),tL=Ze(C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function rL(t){return qe("MuiCheckbox",t)}const ug=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),nL=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,a={root:["root",r&&"indeterminate",`color${_e(n)}`,`size${_e(o)}`]},s=He(a,rL,e);return{...e,...s}},oL=le(T8,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${_e(r.size)}`],r.color!=="default"&&e[`color${_e(r.color)}`]]}})(Ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{[`&.${ug.checked}, &.${ug.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${ug.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),aL=C.jsx(eL,{}),iL=C.jsx(Qz,{}),sL=C.jsx(tL,{}),mr=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCheckbox"}),{checkedIcon:o=aL,color:a="primary",icon:s=iL,indeterminate:l=!1,indeterminateIcon:u=sL,inputProps:f,size:h="medium",disableRipple:d=!1,className:m,slots:y={},slotProps:v={},...b}=n,x=l?u:s,k=l?u:o,O={...n,disableRipple:d,color:a,indeterminate:l,size:h},T=nL(O),M=v.input??f,[A,E]=ct("root",{ref:r,elementType:oL,className:Se(T.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:v,...b},ownerState:O,additionalProps:{type:"checkbox",icon:R.cloneElement(x,{fontSize:x.props.fontSize??h}),checkedIcon:R.cloneElement(k,{fontSize:k.props.fontSize??h}),disableRipple:d,slots:y,slotProps:{input:l8(typeof M=="function"?M(O):M,{"data-indeterminate":l})}}});return C.jsx(A,{...E,classes:T})});function y3(t){return t.substring(2).toLowerCase()}function cL(t,e){return e.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const h=kr(ps(e),l),d=rn(v=>{const b=f.current;f.current=!1;const x=zr(l.current);if(!u.current||!l.current||"clientX"in v&&cL(v,x))return;if(s.current){s.current=!1;return}let k;v.composedPath?k=v.composedPath().includes(l.current):k=!x.documentElement.contains(v.target)||l.current.contains(v.target),!k&&(r||!b)&&o(v)}),m=v=>b=>{f.current=!0;const x=e.props[v];x&&x(b)},y={ref:h};return a!==!1&&(y[a]=m(a)),R.useEffect(()=>{if(a!==!1){const v=y3(a),b=zr(l.current),x=()=>{s.current=!0};return b.addEventListener(v,d),b.addEventListener("touchmove",x),()=>{b.removeEventListener(v,d),b.removeEventListener("touchmove",x)}}},[d,a]),n!==!1&&(y[n]=m(n)),R.useEffect(()=>{if(n!==!1){const v=y3(n),b=zr(l.current);return b.addEventListener(v,d),()=>{b.removeEventListener(v,d)}}},[d,n]),R.cloneElement(e,y)}function uL(t){const e=zr(t);return e.body===t?go(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Au(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function v3(t){return parseInt(go(t).getComputedStyle(t).paddingRight,10)||0}function dL(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function b3(t,e,r,n,o){const a=[e,r,...n];[].forEach.call(t.children,s=>{const l=!a.includes(s),u=!dL(s);l&&u&&Au(s,o)})}function dg(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function pL(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(uL(n)){const s=GT(go(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${v3(n)+s}px`;const l=zr(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${v3(u)+s}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=zr(n).body;else{const s=n.parentElement,l=go(n);a=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:s,property:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function fL(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class hL{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Au(e.modalRef,!1);const o=fL(r);b3(r,e.mount,e.modalRef,o,!0);const a=dg(this.containers,s=>s.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=dg(this.containers,a=>a.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=pL(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=dg(this.containers,s=>s.modals.includes(e)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&Au(e.modalRef,r),b3(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Au(s.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const mL=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _L(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function gL(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function yL(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||gL(t))}function vL(t){const e=[],r=[];return Array.from(t.querySelectorAll(mL)).forEach((n,o)=>{const a=_L(n);a===-1||!yL(n)||(a===0?e.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function bL(){return!0}function wL(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=vL,isEnabled:s=bL,open:l}=t,u=R.useRef(!1),f=R.useRef(null),h=R.useRef(null),d=R.useRef(null),m=R.useRef(null),y=R.useRef(!1),v=R.useRef(null),b=kr(ps(e),v),x=R.useRef(null);R.useEffect(()=>{!l||!v.current||(y.current=!r)},[r,l]),R.useEffect(()=>{if(!l||!v.current)return;const T=zr(v.current);return v.current.contains(T.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[l]),R.useEffect(()=>{if(!l||!v.current)return;const T=zr(v.current),M=D=>{x.current=D,!(n||!s()||D.key!=="Tab")&&T.activeElement===v.current&&D.shiftKey&&(u.current=!0,h.current&&h.current.focus())},A=()=>{const D=v.current;if(D===null)return;if(!T.hasFocus()||!s()||u.current){u.current=!1;return}if(D.contains(T.activeElement)||n&&T.activeElement!==f.current&&T.activeElement!==h.current)return;if(T.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let j=[];if((T.activeElement===f.current||T.activeElement===h.current)&&(j=a(v.current)),j.length>0){const P=!!(x.current?.shiftKey&&x.current?.key==="Tab"),$=j[0],L=j[j.length-1];typeof $!="string"&&typeof L!="string"&&(P?L.focus():$.focus())}else D.focus()};T.addEventListener("focusin",A),T.addEventListener("keydown",M,!0);const E=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(E),T.removeEventListener("focusin",A),T.removeEventListener("keydown",M,!0)}},[r,n,o,s,l,a]);const k=T=>{d.current===null&&(d.current=T.relatedTarget),y.current=!0,m.current=T.target;const M=e.props.onFocus;M&&M(T)},O=T=>{d.current===null&&(d.current=T.relatedTarget),y.current=!0};return C.jsxs(R.Fragment,{children:[C.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:f,"data-testid":"sentinelStart"}),R.cloneElement(e,{ref:b,onFocus:k}),C.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:h,"data-testid":"sentinelEnd"})]})}function SL(t){return typeof t=="function"?t():t}function xL(t){return t?t.props.hasOwnProperty("in"):!1}const w3=()=>{},Xp=new hL;function kL(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:f,rootRef:h}=t,d=R.useRef({}),m=R.useRef(null),y=R.useRef(null),v=kr(y,h),[b,x]=R.useState(!f),k=xL(l);let O=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(O=!1);const T=()=>zr(m.current),M=()=>(d.current.modalRef=y.current,d.current.mount=m.current,d.current),A=()=>{Xp.mount(M(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},E=rn(()=>{const q=SL(e)||T().body;Xp.add(M(),q),y.current&&A()}),D=()=>Xp.isTopModal(M()),j=rn(q=>{m.current=q,q&&(f&&D()?A():y.current&&Au(y.current,O))}),P=R.useCallback(()=>{Xp.remove(M(),O)},[O]);R.useEffect(()=>()=>{P()},[P]),R.useEffect(()=>{f?E():(!k||!o)&&P()},[f,P,k,o,E]);const $=q=>J=>{q.onKeyDown?.(J),!(J.key!=="Escape"||J.which===229||!D())&&(r||(J.stopPropagation(),u&&u(J,"escapeKeyDown")))},L=q=>J=>{q.onClick?.(J),J.target===J.currentTarget&&u&&u(J,"backdropClick")};return{getRootProps:(q={})=>{const J=Bf(t);delete J.onTransitionEnter,delete J.onTransitionExited;const ee={...J,...q};return{role:"presentation",...ee,onKeyDown:$(ee),ref:v}},getBackdropProps:(q={})=>{const J=q;return{"aria-hidden":!0,...J,onClick:L(J),open:f}},getTransitionProps:()=>{const q=()=>{x(!1),a&&a()},J=()=>{x(!0),s&&s(),o&&P()};return{onEnter:s1(q,l?.props.onEnter??w3),onExited:s1(J,l?.props.onExited??w3)}},rootRef:v,portalRef:j,isTopModal:D,exited:b,hasTransition:k}}function CL(t){return qe("MuiModal",t)}We("MuiModal",["root","hidden","backdrop"]);const $L=t=>{const{open:e,exited:r,classes:n}=t;return He({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},CL,n)},EL=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Ke(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),TL=le($8,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),O8=R.forwardRef(function(e,r){const n=Ve({name:"MuiModal",props:e}),{BackdropComponent:o=TL,BackdropProps:a,classes:s,className:l,closeAfterTransition:u=!1,children:f,container:h,component:d,components:m={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:k=!1,disableRestoreFocus:O=!1,disableScrollLock:T=!1,hideBackdrop:M=!1,keepMounted:A=!1,onBackdropClick:E,onClose:D,onTransitionEnter:j,onTransitionExited:P,open:$,slotProps:L={},slots:W={},theme:H,...V}=n,q={...n,closeAfterTransition:u,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:k,disableRestoreFocus:O,disableScrollLock:T,hideBackdrop:M,keepMounted:A},{getRootProps:J,getBackdropProps:ee,getTransitionProps:Z,portalRef:X,isTopModal:te,exited:N,hasTransition:B}=kL({...q,rootRef:r}),ne={...q,exited:N},ae=$L(ne),re={};if(f.props.tabIndex===void 0&&(re.tabIndex="-1"),B){const{onEnter:Ie,onExited:Re}=Z();re.onEnter=Ie,re.onExited=Re}const ie={slots:{root:m.Root,backdrop:m.Backdrop,...W},slotProps:{...y,...L}},[he,me]=ct("root",{ref:r,elementType:EL,externalForwardedProps:{...ie,...V,component:d},getSlotProps:J,ownerState:ne,className:Se(l,ae?.root,!ne.open&&ne.exited&&ae?.hidden)}),[ge,be]=ct("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Ie=>ee({...Ie,onClick:Re=>{E&&E(Re),Ie?.onClick&&Ie.onClick(Re)}}),className:Se(a?.className,ae?.backdrop),ownerState:ne});return!A&&!$&&(!B||N)?null:C.jsx(k8,{ref:X,container:h,disablePortal:k,children:C.jsxs(he,{...me,children:[!M&&o?C.jsx(ge,{...be}):null,C.jsx(wL,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:O,isEnabled:te,open:$,children:R.cloneElement(f,re)})]})})});function OL(t){return qe("MuiDialog",t)}const pg=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),D8=R.createContext({}),DL=le($8,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),RL=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=t,s={root:["root"],container:["container",`scroll${_e(r)}`],paper:["paper",`paperScroll${_e(r)}`,`paperWidth${_e(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return He(s,OL,e)},ML=le(O8,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),AL=le("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${_e(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),NL=le(ui,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${_e(r.scroll)}`],e[`paperWidth${_e(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Ke(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${pg.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${pg.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${pg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),yo=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialog"}),o=$a(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:h,children:d,className:m,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:x="sm",onBackdropClick:k,onClick:O,onClose:T,open:M,PaperComponent:A=ui,PaperProps:E={},scroll:D="paper",slots:j={},slotProps:P={},TransitionComponent:$=S1,transitionDuration:L=a,TransitionProps:W,...H}=n,V={...n,disableEscapeKeyDown:y,fullScreen:v,fullWidth:b,maxWidth:x,scroll:D},q=RL(V),J=R.useRef(),ee=xe=>{J.current=xe.target===xe.currentTarget},Z=xe=>{O&&O(xe),J.current&&(J.current=null,k&&k(xe),T&&T(xe,"backdropClick"))},X=ds(l),te=R.useMemo(()=>({titleId:X}),[X]),N={transition:$,...j},B={transition:W,paper:E,backdrop:h,...P},ne={slots:N,slotProps:B},[ae,re]=ct("root",{elementType:ML,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:V,className:Se(q.root,m),ref:r}),[ie,he]=ct("backdrop",{elementType:DL,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:V}),[me,ge]=ct("paper",{elementType:NL,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:V,className:Se(q.paper,E.className)}),[be,Ie]=ct("container",{elementType:AL,externalForwardedProps:ne,ownerState:V,className:Se(q.container)}),[Re,Ge]=ct("transition",{elementType:S1,externalForwardedProps:ne,ownerState:V,additionalProps:{appear:!0,in:M,timeout:L,role:"presentation"}});return C.jsx(ae,{closeAfterTransition:!0,slots:{backdrop:ie},slotProps:{backdrop:{transitionDuration:L,as:f,...he}},disableEscapeKeyDown:y,onClose:T,open:M,onClick:Z,...re,...H,children:C.jsx(Re,{...Ge,children:C.jsx(be,{onMouseDown:ee,...Ie,children:C.jsx(me,{as:A,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":X,"aria-modal":u,...ge,children:C.jsx(D8.Provider,{value:te,children:d})})})})})});function IL(t){return qe("MuiDialogActions",t)}We("MuiDialogActions",["root","spacing"]);const PL=t=>{const{classes:e,disableSpacing:r}=t;return He({root:["root",!r&&"spacing"]},IL,e)},jL=le("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),vo=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=n,l={...n,disableSpacing:a},u=PL(l);return C.jsx(jL,{className:Se(u.root,o),ownerState:l,ref:r,...s})});function zL(t){return qe("MuiDialogContent",t)}We("MuiDialogContent",["root","dividers"]);function LL(t){return qe("MuiDialogTitle",t)}const FL=We("MuiDialogTitle",["root"]),BL=t=>{const{classes:e,dividers:r}=t;return He({root:["root",r&&"dividers"]},zL,e)},WL=le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Ke(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${FL.root} + &`]:{paddingTop:0}}}]}))),bo=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=n,l={...n,dividers:a},u=BL(l);return C.jsx(WL,{className:Se(u.root,o),ownerState:l,ref:r,...s})});function UL(t){return qe("MuiDialogContentText",t)}We("MuiDialogContentText",["root"]);const qL=t=>{const{classes:e}=t,n=He({root:["root"]},UL,e);return{...e,...n}},HL=le(Bo,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Ph=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialogContentText"}),{children:o,className:a,...s}=n,l=qL(s);return C.jsx(HL,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:s,className:Se(l.root,a),...n,classes:l})}),VL=t=>{const{classes:e}=t;return He({root:["root"]},LL,e)},GL=le(Bo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),wo=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialogTitle"}),{className:o,id:a,...s}=n,l=n,u=VL(l),{titleId:f=a}=R.useContext(D8);return C.jsx(GL,{component:"h2",className:Se(u.root,o),ownerState:l,ref:r,variant:"h6",id:a??f,...s})}),S3=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function XL(t){return qe("MuiFab",t)}const x3=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),JL=t=>{const{color:e,variant:r,classes:n,size:o}=t,a={root:["root",r,`size${_e(o)}`,e==="inherit"?"colorInherit":e]},s=He(a,XL,n);return{...n,...s}},YL=le(yi,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>Rr(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${_e(r.size)}`],r.color==="inherit"&&e.colorInherit,e[_e(r.size)],e[r.color]]}})(Ke(({theme:t})=>({...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:t.palette.getContrastText?.(t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${x3.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),Ke(({theme:t})=>({variants:[...Object.entries(t.palette).filter(vr(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Ke(({theme:t})=>({[`&.${x3.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),ts=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFab"}),{children:o,className:a,color:s="default",component:l="button",disabled:u=!1,disableFocusRipple:f=!1,focusVisibleClassName:h,size:d="large",variant:m="circular",...y}=n,v={...n,color:s,component:l,disabled:u,disableFocusRipple:f,size:d,variant:m},b=JL(v);return C.jsx(YL,{className:Se(b.root,a),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:Se(b.focusVisible,h),ownerState:v,ref:r,...y,classes:b,children:o})}),KL=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=t,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${_e(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=He(u,wz,e);return{...e,...f}},ZL=le(Nh,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Mh(t,e),!r.disableUnderline&&e.underline]}})(Ke(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${Pi.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${Pi.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Pi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pi.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Pi.disabled}, .${Pi.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Pi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(vr()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),QL=le(Ih,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ah})(Ke(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Xb=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:u,inputComponent:f="input",multiline:h=!1,slotProps:d,slots:m={},type:y="text",...v}=n,b={...n,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:h,type:y},x=KL(n),k={root:{ownerState:b},input:{ownerState:b}},O=d??s?Yr(k,d??s):k,T=m.root??a.Root??ZL,M=m.input??a.Input??QL;return C.jsx(Gb,{slots:{root:T,input:M},slotProps:O,fullWidth:l,inputComponent:f,multiline:h,ref:r,type:y,...v,classes:x})});Xb.muiName="Input";function eF(t){return qe("MuiFormControl",t)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const tF=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${_e(r)}`,n&&"fullWidth"]};return He(o,eF,e)},rF=le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${_e(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ya=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:l="div",disabled:u=!1,error:f=!1,focused:h,fullWidth:d=!1,hiddenLabel:m=!1,margin:y="none",required:v=!1,size:b="medium",variant:x="outlined",...k}=n,O={...n,color:s,component:l,disabled:u,error:f,fullWidth:d,hiddenLabel:m,margin:y,required:v,size:b,variant:x},T=tF(O),[M,A]=R.useState(()=>{let q=!1;return o&&R.Children.forEach(o,J=>{if(!$f(J,["Input","Select"]))return;const ee=$f(J,["Select"])?J.props.input:J;ee&&_z(ee.props)&&(q=!0)}),q}),[E,D]=R.useState(()=>{let q=!1;return o&&R.Children.forEach(o,J=>{$f(J,["Input","Select"])&&(Gf(J.props,!0)||Gf(J.props.inputProps,!0))&&(q=!0)}),q}),[j,P]=R.useState(!1);u&&j&&P(!1);const $=h!==void 0&&!u?h:j;let L;R.useRef(!1);const W=R.useCallback(()=>{D(!0)},[]),H=R.useCallback(()=>{D(!1)},[]),V=R.useMemo(()=>({adornedStart:M,setAdornedStart:A,color:s,disabled:u,error:f,filled:E,focused:$,fullWidth:d,hiddenLabel:m,size:b,onBlur:()=>{P(!1)},onFocus:()=>{P(!0)},onEmpty:H,onFilled:W,registerEffect:L,required:v,variant:x}),[M,s,u,f,E,$,d,m,L,H,W,v,b,x]);return C.jsx(Vb.Provider,{value:V,children:C.jsx(rF,{as:l,ownerState:O,className:Se(T.root,a),ref:r,...k,children:o})})});function nF(t){return qe("MuiFormControlLabel",t)}const bu=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),oF=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:a}=t,s={root:["root",r&&"disabled",`labelPlacement${_e(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return He(s,nF,e)},aF=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bu.label}`]:e.label},e.root,e[`labelPlacement${_e(r.labelPlacement)}`]]}})(Ke(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bu.disabled}`]:{cursor:"default"},[`& .${bu.label}`]:{[`&.${bu.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),iF=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Ke(({theme:t})=>({[`&.${bu.error}`]:{color:(t.vars||t).palette.error.main}}))),ut=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:l,disabled:u,disableTypography:f,inputRef:h,label:d,labelPlacement:m="end",name:y,onChange:v,required:b,slots:x={},slotProps:k={},value:O,...T}=n,M=Yo(),A=u??l.props.disabled??M?.disabled,E=b??l.props.required,D={disabled:A,required:E};["checked","name","onChange","value","inputRef"].forEach(q=>{typeof l.props[q]>"u"&&typeof n[q]<"u"&&(D[q]=n[q])});const j=bi({props:n,muiFormControl:M,states:["error"]}),P={...n,disabled:A,labelPlacement:m,required:E,error:j.error},$=oF(P),L={slots:x,slotProps:{...s,...k}},[W,H]=ct("typography",{elementType:Bo,externalForwardedProps:L,ownerState:P});let V=d;return V!=null&&V.type!==Bo&&!f&&(V=C.jsx(W,{component:"span",...H,className:Se($.label,H?.className),children:V})),C.jsxs(aF,{className:Se($.root,a),ownerState:P,ref:r,...T,children:[R.cloneElement(l,D),E?C.jsxs("div",{children:[V,C.jsxs(iF,{ownerState:P,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):V]})});function sF(t){return qe("MuiFormGroup",t)}We("MuiFormGroup",["root","row","error"]);const cF=t=>{const{classes:e,row:r,error:n}=t;return He({root:["root",r&&"row",n&&"error"]},sF,e)},lF=le("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Tf=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormGroup"}),{className:o,row:a=!1,...s}=n,l=Yo(),u=bi({props:n,muiFormControl:l,states:["error"]}),f={...n,row:a,error:u.error},h=cF(f);return C.jsx(lF,{className:Se(h.root,o),ownerState:f,ref:r,...s})});function uF(t){return qe("MuiFormHelperText",t)}const k3=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var C3;const dF=t=>{const{classes:e,contained:r,size:n,disabled:o,error:a,filled:s,focused:l,required:u}=t,f={root:["root",o&&"disabled",a&&"error",n&&`size${_e(n)}`,r&&"contained",l&&"focused",s&&"filled",u&&"required"]};return He(f,uF,e)},pF=le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${_e(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${k3.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${k3.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),bd=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:l,error:u,filled:f,focused:h,margin:d,required:m,variant:y,...v}=n,b=Yo(),x=bi({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),k={...n,component:s,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete k.ownerState;const O=dF(k);return C.jsx(pF,{as:s,className:Se(O.root,a),ref:r,...v,ownerState:k,children:o===" "?C3||(C3=C.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function fF(t){return qe("MuiFormLabel",t)}const Nu=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hF=t=>{const{classes:e,color:r,focused:n,disabled:o,error:a,filled:s,required:l}=t,u={root:["root",`color${_e(r)}`,o&&"disabled",a&&"error",s&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return He(u,fF,e)},mF=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{[`&.${Nu.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${Nu.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Nu.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),_F=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Ke(({theme:t})=>({[`&.${Nu.error}`]:{color:(t.vars||t).palette.error.main}}))),gF=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:l="label",disabled:u,error:f,filled:h,focused:d,required:m,...y}=n,v=Yo(),b=bi({props:n,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),x={...n,color:b.color||"primary",component:l,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},k=hF(x);return C.jsxs(mF,{as:l,ownerState:x,className:Se(k.root,a),ref:r,...y,children:[o,b.required&&C.jsxs(_F,{ownerState:x,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})}),yF=SI({createStyledComponent:le("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.container&&e.container]}}),componentName:"MuiGrid2",useThemeProps:t=>Ve({props:t,name:"MuiGrid2"}),useTheme:$a});function x1(t){return`scale(${t}, ${t**2})`}const vF={entering:{opacity:1,transform:x1(1)},entered:{opacity:1,transform:"none"}},fg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ku=R.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:f,onEntering:h,onExit:d,onExited:m,onExiting:y,style:v,timeout:b="auto",TransitionComponent:x=Jo,...k}=e,O=Zi(),T=R.useRef(),M=$a(),A=R.useRef(null),E=kr(A,ps(a),r),D=q=>J=>{if(q){const ee=A.current;J===void 0?q(ee):q(ee,J)}},j=D(h),P=D((q,J)=>{f8(q);const{duration:ee,delay:Z,easing:X}=qf({style:v,timeout:b,easing:s},{mode:"enter"});let te;b==="auto"?(te=M.transitions.getAutoHeightDuration(q.clientHeight),T.current=te):te=ee,q.style.transition=[M.transitions.create("opacity",{duration:te,delay:Z}),M.transitions.create("transform",{duration:fg?te:te*.666,delay:Z,easing:X})].join(","),u&&u(q,J)}),$=D(f),L=D(y),W=D(q=>{const{duration:J,delay:ee,easing:Z}=qf({style:v,timeout:b,easing:s},{mode:"exit"});let X;b==="auto"?(X=M.transitions.getAutoHeightDuration(q.clientHeight),T.current=X):X=J,q.style.transition=[M.transitions.create("opacity",{duration:X,delay:ee}),M.transitions.create("transform",{duration:fg?X:X*.666,delay:fg?ee:ee||X*.333,easing:Z})].join(","),q.style.opacity=0,q.style.transform=x1(.75),d&&d(q)}),H=D(m),V=q=>{b==="auto"&&O.start(T.current||0,q),n&&n(A.current,q)};return C.jsx(x,{appear:o,in:l,nodeRef:A,onEnter:P,onEntered:$,onEntering:j,onExit:W,onExited:H,onExiting:L,addEndListener:V,timeout:b==="auto"?null:b,...k,children:(q,{ownerState:J,...ee})=>R.cloneElement(a,{style:{opacity:0,transform:x1(.75),visibility:q==="exited"&&!l?"hidden":void 0,...vF[q],...v,...a.props.style},ref:E,...ee})})});Ku&&(Ku.muiSupportAuto=!0);const bF=qT({themeId:mo}),wF=t=>{const{classes:e,disableUnderline:r}=t,o=He({root:["root",!r&&"underline"],input:["input"]},vz,e);return{...e,...o}},SF=le(Nh,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Mh(t,e),!r.disableUnderline&&e.underline]}})(Ke(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ql.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ql.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ql.disabled}, .${Ql.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ql.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(vr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),xF=le(Ih,{name:"MuiInput",slot:"Input",overridesResolver:Ah})({}),fo=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:u="input",multiline:f=!1,slotProps:h,slots:d={},type:m="text",...y}=n,v=wF(n),x={root:{ownerState:{disableUnderline:o}}},k=h??s?Yr(h??s,x):x,O=d.root??a.Root??SF,T=d.input??a.Input??xF;return C.jsx(Gb,{slots:{root:O,input:T},slotProps:k,fullWidth:l,inputComponent:u,multiline:f,ref:r,type:m,...y,classes:v})});fo.muiName="Input";function kF(t){return qe("MuiInputLabel",t)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const CF=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:a,variant:s,required:l}=t,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${_e(n)}`,s],asterisk:[l&&"asterisk"]},f=He(u,kF,e);return{...e,...f}},$F=le(gF,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Nu.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Ke(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Iu=R.forwardRef(function(e,r){const n=Ve({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:s,variant:l,className:u,...f}=n,h=Yo();let d=s;typeof d>"u"&&h&&(d=h.filled||h.focused||h.adornedStart);const m=bi({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:h,shrink:d,size:m.size,variant:m.variant,required:m.required,focused:m.focused},v=CF(y);return C.jsx($F,{"data-shrink":d,ref:r,className:Se(v.root,u),...f,ownerState:y,classes:v})});function EF(t){return qe("MuiLinearProgress",t)}We("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const k1=4,C1=gi` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`,TF=typeof C1!="string"?nl` - animation: ${C1} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `:null,$1=gi` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`,OF=typeof $1!="string"?nl` - animation: ${$1} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `:null,E1=gi` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`,DF=typeof E1!="string"?nl` - animation: ${E1} 3s infinite linear; - `:null,RF=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${_e(n)}`,r],dashed:["dashed",`dashedColor${_e(n)}`],bar1:["bar","bar1",`barColor${_e(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${_e(n)}`,r==="buffer"&&`color${_e(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return He(o,EF,e)},Jb=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?gd(t.palette[e].main,.62):_d(t.palette[e].main,.5),MF=le("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${_e(r.color)}`],e[r.variant]]}})(Ke(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{backgroundColor:Jb(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),AF=le("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${_e(r.color)}`]]}})(Ke(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(vr()).map(([e])=>{const r=Jb(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),DF||{animation:`${E1} 3s infinite linear`}),NF=le("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${_e(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Ke(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${k1}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${k1}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:TF||{animation:`${C1} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),IF=le("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${_e(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Ke(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:Jb(t,e),transition:`transform .${k1}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:OF||{animation:`${$1} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),R8=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:s,valueBuffer:l,variant:u="indeterminate",...f}=n,h={...n,color:a,variant:u},d=RF(h),m=al(),y={},v={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&s!==void 0){y["aria-valuenow"]=Math.round(s),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let b=s-100;m&&(b=-b),v.bar1.transform=`translateX(${b}%)`}if(u==="buffer"&&l!==void 0){let b=(l||0)-100;m&&(b=-b),v.bar2.transform=`translateX(${b}%)`}return C.jsxs(MF,{className:Se(d.root,o),ownerState:h,role:"progressbar",...y,ref:r,...f,children:[u==="buffer"?C.jsx(AF,{className:d.dashed,ownerState:h}):null,C.jsx(NF,{className:d.bar1,ownerState:h,style:v.bar1}),u==="determinate"?null:C.jsx(IF,{className:d.bar2,ownerState:h,style:v.bar2})]})}),Zu=R.createContext({});function PF(t){return qe("MuiList",t)}We("MuiList",["root","padding","dense","subheader"]);const jF=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return He({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},PF,e)},zF=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),LF=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:u=!1,subheader:f,...h}=n,d=R.useMemo(()=>({dense:l}),[l]),m={...n,component:s,dense:l,disablePadding:u},y=jF(m);return C.jsx(Zu.Provider,{value:d,children:C.jsxs(zF,{as:s,className:Se(y.root,a),ref:r,ownerState:m,...h,children:[f,o]})})});function FF(t){return qe("MuiListItemIcon",t)}const $3=We("MuiListItemIcon",["root","alignItemsFlexStart"]),BF=t=>{const{alignItems:e,classes:r}=t;return He({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},FF,r)},WF=le("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Ke(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),UF=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,s=R.useContext(Zu),l={...n,alignItems:s.alignItems},u=BF(l);return C.jsx(WF,{className:Se(u.root,o),ownerState:l,ref:r,...a})});function qF(t){return qe("MuiListItemText",t)}const Ac=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),HF=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return He({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},qF,e)},VF=le("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ac.primary}`]:e.primary},{[`& .${Ac.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${t3.root}:where(& .${Ac.primary})`]:{display:"block"},[`.${t3.root}:where(& .${Ac.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),GF=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:l=!1,primary:u,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:d,slots:m={},slotProps:y={},...v}=n,{dense:b}=R.useContext(Zu);let x=u??o,k=h;const O={...n,disableTypography:s,inset:l,primary:!!x,secondary:!!k,dense:b},T=HF(O),M={slots:m,slotProps:{primary:f,secondary:d,...y}},[A,E]=ct("root",{className:Se(T.root,a),elementType:VF,externalForwardedProps:{...M,...v},ownerState:O,ref:r}),[D,j]=ct("primary",{className:T.primary,elementType:Bo,externalForwardedProps:M,ownerState:O}),[P,$]=ct("secondary",{className:T.secondary,elementType:Bo,externalForwardedProps:M,ownerState:O});return x!=null&&x.type!==Bo&&!s&&(x=C.jsx(D,{variant:b?"body2":"body1",component:j?.variant?void 0:"span",...j,children:x})),k!=null&&k.type!==Bo&&!s&&(k=C.jsx(P,{variant:"body2",color:"textSecondary",...$,children:k})),C.jsxs(A,{...E,children:[x,k]})});function hg(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function E3(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function M8(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function eu(t,e,r,n,o,a){let s=!1,l=o(t,e,e?r:!1);for(;l;){if(l===t.firstChild){if(s)return!1;s=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!M8(l,a)||u)l=o(t,l,r);else return l.focus(),!0}return!1}const XF=R.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:h,variant:d="selectedMenu",...m}=e,y=R.useRef(null),v=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wn(()=>{o&&y.current.focus()},[o]),R.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:M})=>{const A=!y.current.style.width;if(T.clientHeight{const M=y.current,A=T.key;if(T.ctrlKey||T.metaKey||T.altKey){h&&h(T);return}const D=zr(M).activeElement;if(A==="ArrowDown")T.preventDefault(),eu(M,D,f,u,hg);else if(A==="ArrowUp")T.preventDefault(),eu(M,D,f,u,E3);else if(A==="Home")T.preventDefault(),eu(M,null,f,u,hg);else if(A==="End")T.preventDefault(),eu(M,null,f,u,E3);else if(A.length===1){const j=v.current,P=A.toLowerCase(),$=performance.now();j.keys.length>0&&($-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&P!==j.keys[0]&&(j.repeating=!1)),j.lastTime=$,j.keys.push(P);const L=D&&!j.repeating&&M8(D,j);j.previousKeyMatched&&(L||eu(M,D,!1,u,hg,j))?T.preventDefault():j.previousKeyMatched=!1}h&&h(T)},x=kr(y,r);let k=-1;R.Children.forEach(s,(T,M)=>{if(!R.isValidElement(T)){k===M&&(k+=1,k>=s.length&&(k=-1));return}T.props.disabled||(d==="selectedMenu"&&T.props.selected||k===-1)&&(k=M),k===M&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(k+=1,k>=s.length&&(k=-1))});const O=R.Children.map(s,(T,M)=>{if(M===k){const A={};return a&&(A.autoFocus=!0),T.props.tabIndex===void 0&&d==="selectedMenu"&&(A.tabIndex=0),R.cloneElement(T,A)}return T});return C.jsx(LF,{role:"menu",ref:x,className:l,onKeyDown:b,tabIndex:o?0:-1,...m,children:O})});function JF(t){return qe("MuiPopover",t)}We("MuiPopover",["root","paper"]);function T3(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function O3(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function D3(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Jp(t){return typeof t=="function"?t():t}const YF=t=>{const{classes:e}=t;return He({root:["root"],paper:["paper"]},JF,e)},KF=le(O8,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),A8=le(ui,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ZF=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:f,className:h,container:d,elevation:m=8,marginThreshold:y=16,open:v,PaperProps:b={},slots:x={},slotProps:k={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:M="auto",TransitionProps:A={},disableScrollLock:E=!1,...D}=n,j=R.useRef(),P={...n,anchorOrigin:s,anchorReference:u,elevation:m,marginThreshold:y,transformOrigin:O,TransitionComponent:T,transitionDuration:M,TransitionProps:A},$=YF(P),L=R.useCallback(()=>{if(u==="anchorPosition")return l;const be=Jp(a),Re=(be&&be.nodeType===1?be:zr(j.current).body).getBoundingClientRect();return{top:Re.top+T3(Re,s.vertical),left:Re.left+O3(Re,s.horizontal)}},[a,s.horizontal,s.vertical,l,u]),W=R.useCallback(be=>({vertical:T3(be,O.vertical),horizontal:O3(be,O.horizontal)}),[O.horizontal,O.vertical]),H=R.useCallback(be=>{const Ie={width:be.offsetWidth,height:be.offsetHeight},Re=W(Ie);if(u==="none")return{top:null,left:null,transformOrigin:D3(Re)};const Ge=L();let xe=Ge.top-Re.vertical,Te=Ge.left-Re.horizontal;const gt=xe+Ie.height,ke=Te+Ie.width,Ae=go(Jp(a)),lt=Ae.innerHeight-y,tt=Ae.innerWidth-y;if(y!==null&&xelt){const Xe=gt-lt;xe-=Xe,Re.vertical+=Xe}if(y!==null&&Tett){const Xe=ke-tt;Te-=Xe,Re.horizontal+=Xe}return{top:`${Math.round(xe)}px`,left:`${Math.round(Te)}px`,transformOrigin:D3(Re)}},[a,u,L,W,y]),[V,q]=R.useState(v),J=R.useCallback(()=>{const be=j.current;if(!be)return;const Ie=H(be);Ie.top!==null&&be.style.setProperty("top",Ie.top),Ie.left!==null&&(be.style.left=Ie.left),be.style.transformOrigin=Ie.transformOrigin,q(!0)},[H]);R.useEffect(()=>(E&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[a,E,J]);const ee=()=>{J()},Z=()=>{q(!1)};R.useEffect(()=>{v&&J()}),R.useImperativeHandle(o,()=>v?{updatePosition:()=>{J()}}:null,[v,J]),R.useEffect(()=>{if(!v)return;const be=Eh(()=>{J()}),Ie=go(Jp(a));return Ie.addEventListener("resize",be),()=>{be.clear(),Ie.removeEventListener("resize",be)}},[a,v,J]);let X=M;const te={slots:{transition:T,...x},slotProps:{transition:A,paper:b,...k}},[N,B]=ct("transition",{elementType:Ku,externalForwardedProps:te,ownerState:P,getSlotProps:be=>({...be,onEntering:(Ie,Re)=>{be.onEntering?.(Ie,Re),ee()},onExited:Ie=>{be.onExited?.(Ie),Z()}}),additionalProps:{appear:!0,in:v}});M==="auto"&&!N.muiSupportAuto&&(X=void 0);const ne=d||(a?zr(Jp(a)).body:void 0),[ae,{slots:re,slotProps:ie,...he}]=ct("root",{ref:r,elementType:KF,externalForwardedProps:{...te,...D},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:l8(typeof k.backdrop=="function"?k.backdrop(P):k.backdrop,{invisible:!0})},container:ne,open:v},ownerState:P,className:Se($.root,h)}),[me,ge]=ct("paper",{ref:j,className:$.paper,elementType:A8,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:V?void 0:{opacity:0}},ownerState:P});return C.jsx(ae,{...he,...!w1(ae)&&{slots:re,slotProps:ie,disableScrollLock:E},children:C.jsx(N,{...B,timeout:X,children:C.jsx(me,{...ge,children:f})})})});function QF(t){return qe("MuiMenu",t)}We("MuiMenu",["root","paper","list"]);const eB={vertical:"top",horizontal:"right"},tB={vertical:"top",horizontal:"left"},rB=t=>{const{classes:e}=t;return He({root:["root"],paper:["paper"],list:["list"]},QF,e)},nB=le(ZF,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),oB=le(A8,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),aB=le(XF,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),N8=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:d={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:v,...b}={},variant:x="selectedMenu",slots:k={},slotProps:O={},...T}=n,M=al(),A={...n,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:v,PaperProps:d,transitionDuration:y,TransitionProps:b,variant:x},E=rB(A),D=o&&!l&&h,j=R.useRef(null),P=(X,te)=>{j.current&&j.current.adjustStyleForScrollbar(X,{direction:M?"rtl":"ltr"}),v&&v(X,te)},$=X=>{X.key==="Tab"&&(X.preventDefault(),f&&f(X,"tabKeyDown"))};let L=-1;R.Children.map(a,(X,te)=>{R.isValidElement(X)&&(X.props.disabled||(x==="selectedMenu"&&X.props.selected||L===-1)&&(L=te))});const W={slots:k,slotProps:{list:u,transition:b,paper:d,...O}},H=ns({elementType:k.root,externalSlotProps:O.root,ownerState:A,className:[E.root,s]}),[V,q]=ct("paper",{className:E.paper,elementType:oB,externalForwardedProps:W,shouldForwardComponentProp:!0,ownerState:A}),[J,ee]=ct("list",{className:Se(E.list,u.className),elementType:aB,shouldForwardComponentProp:!0,externalForwardedProps:W,getSlotProps:X=>({...X,onKeyDown:te=>{$(te),X.onKeyDown?.(te)}}),ownerState:A}),Z=typeof W.slotProps.transition=="function"?W.slotProps.transition(A):W.slotProps.transition;return C.jsx(nB,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?eB:tB,slots:{root:k.root,paper:V,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:H,paper:q,backdrop:typeof O.backdrop=="function"?O.backdrop(A):O.backdrop,transition:{...Z,onEntering:(...X)=>{P(...X),Z?.onEntering?.(...X)}}},open:h,ref:r,transitionDuration:y,ownerState:A,...T,classes:m,children:C.jsx(J,{actions:j,autoFocus:o&&(L===-1||l),autoFocusItem:D,variant:x,...ee,children:a})})});function iB(t){return qe("MuiMenuItem",t)}const tu=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sB=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},cB=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:s}=t,u=He({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},iB,s);return{...s,...u}},lB=le(yi,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:sB})(Ke(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tu.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Bt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${tu.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Bt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${tu.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Bt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Bt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${tu.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${tu.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${S3.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${S3.inset}`]:{marginLeft:52},[`& .${Ac.root}`]:{marginTop:0,marginBottom:0},[`& .${Ac.inset}`]:{paddingLeft:36},[`& .${$3.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${$3.root} svg`]:{fontSize:"1.25rem"}}}]}))),rr=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:d,className:m,...y}=n,v=R.useContext(Zu),b=R.useMemo(()=>({dense:s||v.dense||!1,disableGutters:u}),[v.dense,s,u]),x=R.useRef(null);wn(()=>{o&&x.current&&x.current.focus()},[o]);const k={...n,dense:b.dense,divider:l,disableGutters:u},O=cB(n),T=kr(x,r);let M;return n.disabled||(M=d!==void 0?d:-1),C.jsx(Zu.Provider,{value:b,children:C.jsx(lB,{ref:T,role:h,tabIndex:M,component:a,focusVisibleClassName:Se(O.focusVisible,f),className:Se(O.root,m),...y,ownerState:k,classes:O})})});function uB(t){return qe("MuiNativeSelect",t)}const Yb=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dB=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:s}=t,l={select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${_e(r)}`,a&&"iconOpen",n&&"disabled"]};return He(l,uB,e)},I8=le("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Yb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),pB=le(I8,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Rr,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${Yb.multiple}`]:e.multiple}]}})({}),P8=le("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Yb.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),fB=le(P8,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${_e(r.variant)}`],r.open&&e.iconOpen]}})({}),hB=R.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:s,inputRef:l,variant:u="standard",...f}=e,h={...e,disabled:o,variant:u,error:a},d=dB(h);return C.jsxs(R.Fragment,{children:[C.jsx(pB,{ownerState:h,className:Se(d.select,n),disabled:o,ref:l||r,...f}),e.multiple?null:C.jsx(fB,{as:s,ownerState:h,className:d.icon})]})});var R3;const mB=le("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Rr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),_B=le("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Rr})(Ke(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function gB(t){const{children:e,classes:r,className:n,label:o,notched:a,...s}=t,l=o!=null&&o!=="",u={...t,notched:a,withLabel:l};return C.jsx(mB,{"aria-hidden":!0,className:n,ownerState:u,...s,children:C.jsx(_B,{ownerState:u,children:l?C.jsx("span",{children:o}):R3||(R3=C.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const yB=t=>{const{classes:e}=t,n=He({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bz,e);return{...e,...n}},vB=le(Nh,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mh})(Ke(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${Mo.focused} .${Mo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(vr()).map(([r])=>({props:{color:r},style:{[`&.${Mo.focused} .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Mo.error} .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Mo.disabled} .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),bB=le(gB,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Ke(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),wB=le(Ih,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ah})(Ke(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Kb=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:u=!1,notched:f,slots:h={},slotProps:d={},type:m="text",...y}=n,v=yB(n),b=Yo(),x=bi({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:a,hiddenLabel:x.hiddenLabel,multiline:u,size:x.size,type:m},O=h.root??o.Root??vB,T=h.input??o.Input??wB,[M,A]=ct("notchedOutline",{elementType:bB,className:v.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:h,slotProps:d},additionalProps:{label:l!=null&&l!==""&&x.required?C.jsxs(R.Fragment,{children:[l," ","*"]}):l}});return C.jsx(Gb,{slots:{root:O,input:T},slotProps:d,renderSuffix:E=>C.jsx(M,{...A,notched:typeof f<"u"?f:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:r,type:m,...y,classes:{...v,notchedOutline:null}})});Kb.muiName="Input";const SB=Ze(C.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),xB=Ze(C.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),kB=le("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Rr})({position:"relative",display:"flex"}),CB=le(SB,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),$B=le(xB,{name:"MuiRadioButtonIcon"})(Ke(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function j8(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return C.jsxs(kB,{className:r.root,ownerState:o,children:[C.jsx(CB,{fontSize:n,className:r.background,ownerState:o}),C.jsx($B,{fontSize:n,className:r.dot,ownerState:o})]})}const EB=R.createContext(void 0);function TB(){return R.useContext(EB)}function OB(t){return qe("MuiRadio",t)}const M3=We("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),DB=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${_e(r)}`,n!=="medium"&&`size${_e(n)}`]};return{...e,...He(o,OB,e)}},RB=le(T8,{shouldForwardProp:t=>Rr(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${_e(r.size)}`],e[`color${_e(r.color)}`]]}})(Ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${M3.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Bt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${M3.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function MB(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const AB=C.jsx(j8,{checked:!0}),NB=C.jsx(j8,{}),Ft=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=AB,color:s="primary",icon:l=NB,name:u,onChange:f,size:h="medium",className:d,disabled:m,disableRipple:y=!1,slots:v={},slotProps:b={},inputProps:x,...k}=n,O=Yo();let T=m;O&&typeof T>"u"&&(T=O.disabled),T??=!1;const M={...n,disabled:T,disableRipple:y,color:s,size:h},A=DB(M),E=TB();let D=o;const j=s1(f,E&&E.onChange);let P=u;E&&(typeof D>"u"&&(D=MB(E.value,n.value)),typeof P>"u"&&(P=E.name));const $=b.input??x,[L,W]=ct("root",{ref:r,elementType:RB,className:Se(A.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:b,...k},getSlotProps:H=>({...H,onChange:(V,...q)=>{H.onChange?.(V,...q),j(V,...q)}}),ownerState:M,additionalProps:{type:"radio",icon:R.cloneElement(l,{fontSize:l.props.fontSize??h}),checkedIcon:R.cloneElement(a,{fontSize:a.props.fontSize??h}),disabled:T,name:P,checked:D,slots:v,slotProps:{input:typeof $=="function"?$(M):$}}});return C.jsx(L,{...W,classes:A})});function z8(t){return qe("MuiSelect",t)}const ru=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var A3;const IB=le(I8,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${ru.select}`]:e.select},{[`&.${ru.select}`]:e[r.variant]},{[`&.${ru.error}`]:e.error},{[`&.${ru.multiple}`]:e.multiple}]}})({[`&.${ru.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),PB=le(P8,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${_e(r.variant)}`],r.open&&e.iconOpen]}})({}),jB=le("input",{shouldForwardProp:t=>c8(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function N3(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function zB(t){return t==null||typeof t=="string"&&!t.trim()}const LB=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:s}=t,l={select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${_e(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return He(l,z8,e)},FB=R.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:f,defaultValue:h,disabled:d,displayEmpty:m,error:y=!1,IconComponent:v,inputRef:b,labelId:x,MenuProps:k={},multiple:O,name:T,onBlur:M,onChange:A,onClose:E,onFocus:D,onOpen:j,open:P,readOnly:$,renderValue:L,required:W,SelectDisplayProps:H={},tabIndex:V,type:q,value:J,variant:ee="standard",...Z}=e,[X,te]=Lf({controlled:J,default:h,name:"Select"}),[N,B]=Lf({controlled:P,default:f,name:"Select"}),ne=R.useRef(null),ae=R.useRef(null),[re,ie]=R.useState(null),{current:he}=R.useRef(P!=null),[me,ge]=R.useState(),be=kr(r,b),Ie=R.useCallback(Ce=>{ae.current=Ce,Ce&&ie(Ce)},[]),Re=re?.parentNode;R.useImperativeHandle(be,()=>({focus:()=>{ae.current.focus()},node:ne.current,value:X}),[X]),R.useEffect(()=>{f&&N&&re&&!he&&(ge(s?null:Re.clientWidth),ae.current.focus())},[re,s]),R.useEffect(()=>{a&&ae.current.focus()},[a]),R.useEffect(()=>{if(!x)return;const Ce=zr(ae.current).getElementById(x);if(Ce){const ft=()=>{getSelection().isCollapsed&&ae.current.focus()};return Ce.addEventListener("click",ft),()=>{Ce.removeEventListener("click",ft)}}},[x]);const Ge=(Ce,ft)=>{Ce?j&&j(ft):E&&E(ft),he||(ge(s?null:Re.clientWidth),B(Ce))},xe=Ce=>{Ce.button===0&&(Ce.preventDefault(),ae.current.focus(),Ge(!0,Ce))},Te=Ce=>{Ge(!1,Ce)},gt=R.Children.toArray(l),ke=Ce=>{const ft=gt.find(Ct=>Ct.props.value===Ce.target.value);ft!==void 0&&(te(ft.props.value),A&&A(Ce,ft))},Ae=Ce=>ft=>{let Ct;if(ft.currentTarget.hasAttribute("tabindex")){if(O){Ct=Array.isArray(X)?X.slice():[];const Cr=X.indexOf(Ce.props.value);Cr===-1?Ct.push(Ce.props.value):Ct.splice(Cr,1)}else Ct=Ce.props.value;if(Ce.props.onClick&&Ce.props.onClick(ft),X!==Ct&&(te(Ct),A)){const Cr=ft.nativeEvent||ft,$r=new Cr.constructor(Cr.type,Cr);Object.defineProperty($r,"target",{writable:!0,value:{value:Ct,name:T}}),A($r,Ce)}O||Ge(!1,ft)}},lt=Ce=>{$||[" ","ArrowUp","ArrowDown","Enter"].includes(Ce.key)&&(Ce.preventDefault(),Ge(!0,Ce))},tt=re!==null&&N,Xe=Ce=>{!tt&&M&&(Object.defineProperty(Ce,"target",{writable:!0,value:{value:X,name:T}}),M(Ce))};delete Z["aria-invalid"];let we,dt;const Qe=[];let se=!1;(Gf({value:X})||m)&&(L?we=L(X):se=!0);const ve=gt.map(Ce=>{if(!R.isValidElement(Ce))return null;let ft;if(O){if(!Array.isArray(X))throw new Error(wa(2));ft=X.some(Ct=>N3(Ct,Ce.props.value)),ft&&se&&Qe.push(Ce.props.children)}else ft=N3(X,Ce.props.value),ft&&se&&(dt=Ce.props.children);return R.cloneElement(Ce,{"aria-selected":ft?"true":"false",onClick:Ae(Ce),onKeyUp:Ct=>{Ct.key===" "&&Ct.preventDefault(),Ce.props.onKeyUp&&Ce.props.onKeyUp(Ct)},role:"option",selected:ft,value:void 0,"data-value":Ce.props.value})});se&&(O?Qe.length===0?we=null:we=Qe.reduce((Ce,ft,Ct)=>(Ce.push(ft),Ct{const{classes:e}=t,n=He({root:["root"]},z8,e);return{...e,...n}},Zb={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Rr(t)&&t!=="variant",slot:"Root"},WB=le(fo,Zb)(""),UB=le(Kb,Zb)(""),qB=le(Xb,Zb)(""),Dn=R.forwardRef(function(e,r){const n=Ve({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:s={},className:l,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:h=Sz,id:d,input:m,inputProps:y,label:v,labelId:b,MenuProps:x,multiple:k=!1,native:O=!1,onClose:T,onOpen:M,open:A,renderValue:E,SelectDisplayProps:D,variant:j="outlined",...P}=n,$=O?hB:FB,L=Yo(),W=bi({props:n,muiFormControl:L,states:["variant","error"]}),H=W.variant||j,V={...n,variant:H,classes:s},q=BB(V),{root:J,...ee}=q,Z=m||{standard:C.jsx(WB,{ownerState:V}),outlined:C.jsx(UB,{label:v,ownerState:V}),filled:C.jsx(qB,{ownerState:V})}[H],X=kr(r,ps(Z));return C.jsx(R.Fragment,{children:R.cloneElement(Z,{inputComponent:$,inputProps:{children:a,error:W.error,IconComponent:h,variant:H,type:void 0,multiple:k,...O?{id:d}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:b,MenuProps:x,onClose:T,onOpen:M,open:A,renderValue:E,SelectDisplayProps:{id:d,...D}},...y,classes:y?Yr(ee,y.classes):ee,...m?m.props.inputProps:{}},...(k&&O||f)&&H==="outlined"?{notched:!0}:{},ref:X,className:Se(Z.props.className,l,q.root),...!m&&{variant:H},...P})})});Dn.muiName="Select";function HB(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=t,s=Zi();R.useEffect(()=>{if(!o)return;function k(O){O.defaultPrevented||O.key==="Escape"&&n?.(O,"escapeKeyDown")}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[o,n]);const l=rn((k,O)=>{n?.(k,O)}),u=rn(k=>{!n||k==null||s.start(k,()=>{l(null,"timeout")})});R.useEffect(()=>(o&&u(e),s.clear),[o,e,u,s]);const f=k=>{n?.(k,"clickaway")},h=s.clear,d=R.useCallback(()=>{e!=null&&u(a??e*.5)},[e,a,u]),m=k=>O=>{const T=k.onBlur;T?.(O),d()},y=k=>O=>{const T=k.onFocus;T?.(O),h()},v=k=>O=>{const T=k.onMouseEnter;T?.(O),h()},b=k=>O=>{const T=k.onMouseLeave;T?.(O),d()};return R.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",h)}},[r,o,d,h]),{getRootProps:(k={})=>{const O={...Bf(t),...Bf(k)};return{role:"presentation",...k,...O,onBlur:m(O),onFocus:y(O),onMouseEnter:v(O),onMouseLeave:b(O)}},onClickAway:f}}function VB(t){return qe("MuiSnackbarContent",t)}We("MuiSnackbarContent",["root","message","action"]);const GB=t=>{const{classes:e}=t;return He({root:["root"],action:["action"],message:["message"]},VB,e)},XB=le(ui,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(Ke(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98,r=zf(t.palette.background.default,e);return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),JB=le("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),YB=le("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),KB=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:s,role:l="alert",...u}=n,f=n,h=GB(f);return C.jsxs(XB,{role:l,square:!0,elevation:6,className:Se(h.root,a),ownerState:f,ref:r,...u,children:[C.jsx(JB,{className:h.message,ownerState:f,children:s}),o?C.jsx(YB,{className:h.action,ownerState:f,children:o}):null]})});function ZB(t){return qe("MuiSnackbar",t)}We("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const QB=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${_e(r.vertical)}${_e(r.horizontal)}`]};return He(n,ZB,e)},eW=le("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${_e(r.anchorOrigin.vertical)}${_e(r.anchorOrigin.horizontal)}`]]}})(Ke(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),T1=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSnackbar"}),o=$a(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:d,ClickAwayListenerProps:m,ContentProps:y,disableWindowBlurListener:v=!1,message:b,onBlur:x,onClose:k,onFocus:O,onMouseEnter:T,onMouseLeave:M,open:A,resumeHideDuration:E,slots:D={},slotProps:j={},TransitionComponent:P,transitionDuration:$=a,TransitionProps:{onEnter:L,onExited:W,...H}={},...V}=n,q={...n,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:f,disableWindowBlurListener:v,TransitionComponent:P,transitionDuration:$},J=QB(q),{getRootProps:ee,onClickAway:Z}=HB({...q}),[X,te]=R.useState(!0),N=Ge=>{te(!0),W&&W(Ge)},B=(Ge,xe)=>{te(!1),L&&L(Ge,xe)},ne={slots:{transition:P,...D},slotProps:{content:y,clickAwayListener:m,transition:H,...j}},[ae,re]=ct("root",{ref:r,className:[J.root,d],elementType:eW,getSlotProps:ee,externalForwardedProps:{...ne,...V},ownerState:q}),[ie,{ownerState:he,...me}]=ct("clickAwayListener",{elementType:lL,externalForwardedProps:ne,getSlotProps:Ge=>({onClickAway:(...xe)=>{Ge.onClickAway?.(...xe),Z(...xe)}}),ownerState:q}),[ge,be]=ct("content",{elementType:KB,shouldForwardComponentProp:!0,externalForwardedProps:ne,additionalProps:{message:b,action:s},ownerState:q}),[Ie,Re]=ct("transition",{elementType:Ku,externalForwardedProps:ne,getSlotProps:Ge=>({onEnter:(...xe)=>{Ge.onEnter?.(...xe),B(...xe)},onExited:(...xe)=>{Ge.onExited?.(...xe),N(...xe)}}),additionalProps:{appear:!0,in:A,timeout:$,direction:l==="top"?"down":"up"},ownerState:q});return!A&&X?null:C.jsx(ie,{...me,...D.clickAwayListener&&{ownerState:he},children:C.jsx(ae,{...re,children:C.jsx(Ie,{...Re,children:h||C.jsx(ge,{...be})})})})});function tW(t){return qe("MuiTooltip",t)}const cr=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function rW(t){return Math.round(t*1e5)/1e5}const nW=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${_e(a.split("-")[0])}`],arrow:["arrow"]};return He(s,tW,e)},oW=le(C8,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Ke(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${cr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${cr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${cr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${cr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${cr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${cr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${cr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${cr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),aW=le("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${_e(r.placement.split("-")[0])}`]]}})(Ke(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Bt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${cr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${cr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${cr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${rW(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${cr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${cr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${cr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${cr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${cr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${cr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),iW=le("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Ke(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Bt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Yp=!1;const I3=new Th;let nu={x:0,y:0};function Kp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const mg=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:l={},componentsProps:u={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:d=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:v=100,enterNextDelay:b=0,enterTouchDelay:x=700,followCursor:k=!1,id:O,leaveDelay:T=0,leaveTouchDelay:M=1500,onClose:A,onOpen:E,open:D,placement:j="bottom",PopperComponent:P,PopperProps:$={},slotProps:L={},slots:W={},title:H,TransitionComponent:V,TransitionProps:q,...J}=n,ee=R.isValidElement(a)?a:C.jsx("span",{children:a}),Z=$a(),X=al(),[te,N]=R.useState(),[B,ne]=R.useState(null),ae=R.useRef(!1),re=m||k,ie=Zi(),he=Zi(),me=Zi(),ge=Zi(),[be,Ie]=Lf({controlled:D,default:!1,name:"Tooltip",state:"open"});let Re=be;const Ge=ds(O),xe=R.useRef(),Te=rn(()=>{xe.current!==void 0&&(document.body.style.WebkitUserSelect=xe.current,xe.current=void 0),ge.clear()});R.useEffect(()=>Te,[Te]);const gt=ot=>{I3.clear(),Yp=!0,Ie(!0),E&&!Re&&E(ot)},ke=rn(ot=>{I3.start(800+T,()=>{Yp=!1}),Ie(!1),A&&Re&&A(ot),ie.start(Z.transitions.duration.shortest,()=>{ae.current=!1})}),Ae=ot=>{ae.current&&ot.type!=="touchstart"||(te&&te.removeAttribute("title"),he.clear(),me.clear(),v||Yp&&b?he.start(Yp?b:v,()=>{gt(ot)}):gt(ot))},lt=ot=>{he.clear(),me.start(T,()=>{ke(ot)})},[,tt]=R.useState(!1),Xe=ot=>{Ff(ot.target)||(tt(!1),lt(ot))},we=ot=>{te||N(ot.currentTarget),Ff(ot.target)&&(tt(!0),Ae(ot))},dt=ot=>{ae.current=!0;const on=ee.props;on.onTouchStart&&on.onTouchStart(ot)},Qe=ot=>{dt(ot),me.clear(),ie.clear(),Te(),xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ge.start(x,()=>{document.body.style.WebkitUserSelect=xe.current,Ae(ot)})},se=ot=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(ot),Te(),me.start(M,()=>{ke(ot)})};R.useEffect(()=>{if(!Re)return;function ot(on){on.key==="Escape"&&ke(on)}return document.addEventListener("keydown",ot),()=>{document.removeEventListener("keydown",ot)}},[ke,Re]);const ve=kr(ps(ee),N,r);!H&&H!==0&&(Re=!1);const Ue=R.useRef(),Le=ot=>{const on=ee.props;on.onMouseMove&&on.onMouseMove(ot),nu={x:ot.clientX,y:ot.clientY},Ue.current&&Ue.current.update()},pt={},bt=typeof H=="string";f?(pt.title=!Re&&bt&&!d?H:null,pt["aria-describedby"]=Re?Ge:null):(pt["aria-label"]=bt?H:null,pt["aria-labelledby"]=Re&&!bt?Ge:null);const Fe={...pt,...J,...ee.props,className:Se(J.className,ee.props.className),onTouchStart:dt,ref:ve,...k?{onMouseMove:Le}:{}},Xt={};y||(Fe.onTouchStart=Qe,Fe.onTouchEnd=se),d||(Fe.onMouseOver=Kp(Ae,Fe.onMouseOver),Fe.onMouseLeave=Kp(lt,Fe.onMouseLeave),re||(Xt.onMouseOver=Ae,Xt.onMouseLeave=lt)),h||(Fe.onFocus=Kp(we,Fe.onFocus),Fe.onBlur=Kp(Xe,Fe.onBlur),re||(Xt.onFocus=we,Xt.onBlur=Xe));const kt={...n,isRtl:X,arrow:o,disableInteractive:re,placement:j,PopperComponentProp:P,touch:ae.current},Ce=typeof L.popper=="function"?L.popper(kt):L.popper,ft=R.useMemo(()=>{let ot=[{name:"arrow",enabled:!!B,options:{element:B,padding:4}}];return $.popperOptions?.modifiers&&(ot=ot.concat($.popperOptions.modifiers)),Ce?.popperOptions?.modifiers&&(ot=ot.concat(Ce.popperOptions.modifiers)),{...$.popperOptions,...Ce?.popperOptions,modifiers:ot}},[B,$.popperOptions,Ce?.popperOptions]),Ct=nW(kt),Cr=typeof L.transition=="function"?L.transition(kt):L.transition,$r={slots:{popper:l.Popper,transition:l.Transition??V,tooltip:l.Tooltip,arrow:l.Arrow,...W},slotProps:{arrow:L.arrow??u.arrow,popper:{...$,...Ce??u.popper},tooltip:L.tooltip??u.tooltip,transition:{...q,...Cr??u.transition}}},[nn,ea]=ct("popper",{elementType:oW,externalForwardedProps:$r,ownerState:kt,className:Se(Ct.popper,$?.className)}),[ko,zn]=ct("transition",{elementType:Ku,externalForwardedProps:$r,ownerState:kt}),[ks,Cs]=ct("tooltip",{elementType:aW,className:Ct.tooltip,externalForwardedProps:$r,ownerState:kt}),[$s,Es]=ct("arrow",{elementType:iW,className:Ct.arrow,externalForwardedProps:$r,ownerState:kt,ref:ne});return C.jsxs(R.Fragment,{children:[R.cloneElement(ee,Fe),C.jsx(nn,{as:P??C8,placement:j,anchorEl:k?{getBoundingClientRect:()=>({top:nu.y,left:nu.x,right:nu.x,bottom:nu.y,width:0,height:0})}:te,popperRef:Ue,open:te?Re:!1,id:Ge,transition:!0,...Xt,...ea,popperOptions:ft,children:({TransitionProps:ot})=>C.jsx(ko,{timeout:Z.transitions.duration.shorter,...ot,...zn,children:C.jsxs(ks,{...Cs,children:[H,o?C.jsx($s,{...Es}):null]})})})]})});function sW(t){return qe("MuiTab",t)}const Vn=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),cW=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:s,selected:l,disabled:u}=t,f={root:["root",a&&s&&"labelIcon",`textColor${_e(r)}`,n&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return He(f,sW,e)},lW=le(yi,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${_e(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Vn.iconWrapper}`]:e.iconWrapper},{[`& .${Vn.icon}`]:e.icon}]}})(Ke(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Vn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Vn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Vn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Vn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Vn.selected}`]:{opacity:1},[`&.${Vn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Vn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Vn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Vn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Vn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Vi=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:l,icon:u,iconPosition:f="top",indicator:h,label:d,onChange:m,onClick:y,onFocus:v,selected:b,selectionFollowsFocus:x,textColor:k="inherit",value:O,wrapped:T=!1,...M}=n,A={...n,disabled:a,disableFocusRipple:s,selected:b,icon:!!u,iconPosition:f,label:!!d,fullWidth:l,textColor:k,wrapped:T},E=cW(A),D=u&&d&&R.isValidElement(u)?R.cloneElement(u,{className:Se(E.icon,u.props.className)}):u,j=$=>{!b&&m&&m($,O),y&&y($)},P=$=>{x&&!b&&m&&m($,O),v&&v($)};return C.jsxs(lW,{focusRipple:!s,className:Se(E.root,o),ref:r,role:"tab","aria-selected":b,disabled:a,onClick:j,onFocus:P,ownerState:A,tabIndex:b?0:-1,...M,children:[f==="top"||f==="start"?C.jsxs(R.Fragment,{children:[D,d]}):C.jsxs(R.Fragment,{children:[d,D]}),h]})}),L8=R.createContext();function uW(t){return qe("MuiTable",t)}We("MuiTable",["root","stickyHeader"]);const dW=t=>{const{classes:e,stickyHeader:r}=t;return He({root:["root",r&&"stickyHeader"]},uW,e)},pW=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.stickyHeader&&e.stickyHeader]}})(Ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),P3="table",j3=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTable"}),{className:o,component:a=P3,padding:s="normal",size:l="medium",stickyHeader:u=!1,...f}=n,h={...n,component:a,padding:s,size:l,stickyHeader:u},d=dW(h),m=R.useMemo(()=>({padding:s,size:l,stickyHeader:u}),[s,l,u]);return C.jsx(L8.Provider,{value:m,children:C.jsx(pW,{as:a,role:a===P3?null:"table",ref:r,className:Se(d.root,o),ownerState:h,...f})})}),jh=R.createContext();function fW(t){return qe("MuiTableBody",t)}We("MuiTableBody",["root"]);const hW=t=>{const{classes:e}=t;return He({root:["root"]},fW,e)},mW=le("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),_W={variant:"body"},z3="tbody",L3=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableBody"}),{className:o,component:a=z3,...s}=n,l={...n,component:a},u=hW(l);return C.jsx(jh.Provider,{value:_W,children:C.jsx(mW,{className:Se(u.root,o),as:a,ref:r,role:a===z3?null:"rowgroup",ownerState:l,...s})})});function gW(t){return qe("MuiTableCell",t)}const yW=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),vW=t=>{const{classes:e,variant:r,align:n,padding:o,size:a,stickyHeader:s}=t,l={root:["root",r,s&&"stickyHeader",n!=="inherit"&&`align${_e(n)}`,o!=="normal"&&`padding${_e(o)}`,`size${_e(a)}`]};return He(l,gW,e)},bW=le("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${_e(r.size)}`],r.padding!=="normal"&&e[`padding${_e(r.padding)}`],r.align!=="inherit"&&e[`align${_e(r.align)}`],r.stickyHeader&&e.stickyHeader]}})(Ke(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid - ${t.palette.mode==="light"?gd(Bt(t.palette.divider,1),.88):_d(Bt(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${yW.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),pn=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:l,scope:u,size:f,sortDirection:h,variant:d,...m}=n,y=R.useContext(L8),v=R.useContext(jh),b=v&&v.variant==="head";let x;s?x=s:x=b?"th":"td";let k=u;x==="td"?k=void 0:!k&&b&&(k="col");const O=d||v&&v.variant,T={...n,align:o,component:x,padding:l||(y&&y.padding?y.padding:"normal"),size:f||(y&&y.size?y.size:"medium"),sortDirection:h,stickyHeader:O==="head"&&y&&y.stickyHeader,variant:O},M=vW(T);let A=null;return h&&(A=h==="asc"?"ascending":"descending"),C.jsx(bW,{as:x,ref:r,className:Se(M.root,a),"aria-sort":A,scope:k,ownerState:T,...m})});function wW(t){return qe("MuiTableContainer",t)}We("MuiTableContainer",["root"]);const SW=t=>{const{classes:e}=t;return He({root:["root"]},wW,e)},xW=le("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),kW=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=n,l={...n,component:a},u=SW(l);return C.jsx(xW,{ref:r,as:a,className:Se(u.root,o),ownerState:l,...s})});function CW(t){return qe("MuiTableHead",t)}We("MuiTableHead",["root"]);const $W=t=>{const{classes:e}=t;return He({root:["root"]},CW,e)},EW=le("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),TW={variant:"head"},F3="thead",B3=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableHead"}),{className:o,component:a=F3,...s}=n,l={...n,component:a},u=$W(l);return C.jsx(jh.Provider,{value:TW,children:C.jsx(EW,{as:a,className:Se(u.root,o),ref:r,role:a===F3?null:"rowgroup",ownerState:l,...s})})});function OW(t){return qe("MuiToolbar",t)}We("MuiToolbar",["root","gutters","regular","dense"]);const DW=t=>{const{classes:e,disableGutters:r,variant:n}=t;return He({root:["root",!r&&"gutters",n]},OW,e)},RW=le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Ke(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),F8=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:s=!1,variant:l="regular",...u}=n,f={...n,component:a,disableGutters:s,variant:l},h=DW(f);return C.jsx(RW,{as:a,className:Se(h.root,o),ref:r,ownerState:f,...u})}),MW=Ze(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),AW=Ze(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function NW(t){return qe("MuiTableRow",t)}const W3=We("MuiTableRow",["root","selected","hover","head","footer"]),IW=t=>{const{classes:e,selected:r,hover:n,head:o,footer:a}=t;return He({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},NW,e)},PW=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(Ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${W3.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${W3.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Bt(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Bt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),U3="tr",nc=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableRow"}),{className:o,component:a=U3,hover:s=!1,selected:l=!1,...u}=n,f=R.useContext(jh),h={...n,component:a,hover:s,selected:l,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},d=IW(h);return C.jsx(PW,{as:a,ref:r,className:Se(d.root,o),role:a===U3?null:"row",ownerState:h,...u})});function jW(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function zW(t,e,r,n={},o=()=>{}){const{ease:a=jW,duration:s=300}=n;let l=null;const u=e[t];let f=!1;const h=()=>{f=!0},d=m=>{if(f){o(new Error("Animation cancelled"));return}l===null&&(l=m);const y=Math.min(1,(m-l)/s);if(e[t]=a(y)*(r-u)+u,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return u===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(d),h)}const LW={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function FW(t){const{onChange:e,...r}=t,n=R.useRef(),o=R.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return wn(()=>{const s=Eh(()=>{const u=n.current;a(),u!==n.current&&e(n.current)}),l=go(o.current);return l.addEventListener("resize",s),()=>{s.clear(),l.removeEventListener("resize",s)}},[e]),R.useEffect(()=>{a(),e(n.current)},[e]),C.jsx("div",{style:LW,...r,ref:o})}function BW(t){return qe("MuiTabScrollButton",t)}const WW=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),UW=t=>{const{classes:e,orientation:r,disabled:n}=t;return He({root:["root",r,n&&"disabled"]},BW,e)},qW=le(yi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${WW.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),HW=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:l,orientation:u,disabled:f,...h}=n,d=al(),m={isRtl:d,...n},y=UW(m),v=a.StartScrollButtonIcon??MW,b=a.EndScrollButtonIcon??AW,x=ns({elementType:v,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),k=ns({elementType:b,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return C.jsx(qW,{component:"div",className:Se(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...h,style:{...h.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:l==="left"?C.jsx(v,{...x}):C.jsx(b,{...k})})});function VW(t){return qe("MuiTabs",t)}const _g=We("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),q3=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,H3=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,Zp=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},GW=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:l,classes:u}=t;return He({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},VW,u)},XW=le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${_g.scrollButtons}`]:e.scrollButtons},{[`& .${_g.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Ke(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${_g.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),JW=le("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),YW=le("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),KW=le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Ke(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),ZW=le(FW)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),V3={},B8=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTabs"}),o=$a(),a=al(),{"aria-label":s,"aria-labelledby":l,action:u,centered:f=!1,children:h,className:d,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:b,orientation:x="horizontal",ScrollButtonComponent:k,scrollButtons:O="auto",selectionFollowsFocus:T,slots:M={},slotProps:A={},TabIndicatorProps:E={},TabScrollButtonProps:D={},textColor:j="primary",value:P,variant:$="standard",visibleScrollbar:L=!1,...W}=n,H=$==="scrollable",V=x==="vertical",q=V?"scrollTop":"scrollLeft",J=V?"top":"left",ee=V?"bottom":"right",Z=V?"clientHeight":"clientWidth",X=V?"height":"width",te={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:v,orientation:x,vertical:V,scrollButtons:O,textColor:j,variant:$,visibleScrollbar:L,fixed:!H,hideScrollbar:H&&!L,scrollableX:H&&!V,scrollableY:H&&V,centered:f&&!H,scrollButtonsHideMobile:!y},N=GW(te),B=ns({elementType:M.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:te}),ne=ns({elementType:M.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:te}),[ae,re]=R.useState(!1),[ie,he]=R.useState(V3),[me,ge]=R.useState(!1),[be,Ie]=R.useState(!1),[Re,Ge]=R.useState(!1),[xe,Te]=R.useState({overflow:"hidden",scrollbarWidth:0}),gt=new Map,ke=R.useRef(null),Ae=R.useRef(null),lt={slots:M,slotProps:{indicator:E,scrollButton:D,...A}},tt=()=>{const Oe=ke.current;let Be;if(Oe){const _t=Oe.getBoundingClientRect();Be={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollWidth:Oe.scrollWidth,top:_t.top,bottom:_t.bottom,left:_t.left,right:_t.right}}let wt;if(Oe&&P!==!1){const _t=Ae.current.children;if(_t.length>0){const or=_t[gt.get(P)];wt=or?or.getBoundingClientRect():null}}return{tabsMeta:Be,tabMeta:wt}},Xe=rn(()=>{const{tabsMeta:Oe,tabMeta:Be}=tt();let wt=0,_t;V?(_t="top",Be&&Oe&&(wt=Be.top-Oe.top+Oe.scrollTop)):(_t=a?"right":"left",Be&&Oe&&(wt=(a?-1:1)*(Be[_t]-Oe[_t]+Oe.scrollLeft)));const or={[_t]:wt,[X]:Be?Be[X]:0};if(typeof ie[_t]!="number"||typeof ie[X]!="number")he(or);else{const Lr=Math.abs(ie[_t]-or[_t]),Ln=Math.abs(ie[X]-or[X]);(Lr>=1||Ln>=1)&&he(or)}}),we=(Oe,{animation:Be=!0}={})=>{Be?zW(q,ke.current,Oe,{duration:o.transitions.duration.standard}):ke.current[q]=Oe},dt=Oe=>{let Be=ke.current[q];V?Be+=Oe:Be+=Oe*(a?-1:1),we(Be)},Qe=()=>{const Oe=ke.current[Z];let Be=0;const wt=Array.from(Ae.current.children);for(let _t=0;_tOe){_t===0&&(Be=Oe);break}Be+=or[Z]}return Be},se=()=>{dt(-1*Qe())},ve=()=>{dt(Qe())},[Ue,{onChange:Le,...pt}]=ct("scrollbar",{className:Se(N.scrollableX,N.hideScrollbar),elementType:ZW,shouldForwardComponentProp:!0,externalForwardedProps:lt,ownerState:te}),bt=R.useCallback(Oe=>{Le?.(Oe),Te({overflow:null,scrollbarWidth:Oe})},[Le]),[Fe,Xt]=ct("scrollButtons",{className:Se(N.scrollButtons,D.className),elementType:HW,externalForwardedProps:lt,ownerState:te,additionalProps:{orientation:x,slots:{StartScrollButtonIcon:M.startScrollButtonIcon||M.StartScrollButtonIcon,EndScrollButtonIcon:M.endScrollButtonIcon||M.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:B,endScrollButtonIcon:ne}}}),kt=()=>{const Oe={};Oe.scrollbarSizeListener=H?C.jsx(Ue,{...pt,onChange:bt}):null;const wt=H&&(O==="auto"&&(me||be)||O===!0);return Oe.scrollButtonStart=wt?C.jsx(Fe,{direction:a?"right":"left",onClick:se,disabled:!me,...Xt}):null,Oe.scrollButtonEnd=wt?C.jsx(Fe,{direction:a?"left":"right",onClick:ve,disabled:!be,...Xt}):null,Oe},Ce=rn(Oe=>{const{tabsMeta:Be,tabMeta:wt}=tt();if(!(!wt||!Be)){if(wt[J]Be[ee]){const _t=Be[q]+(wt[ee]-Be[ee]);we(_t,{animation:Oe})}}}),ft=rn(()=>{H&&O!==!1&&Ge(!Re)});R.useEffect(()=>{const Oe=Eh(()=>{ke.current&&Xe()});let Be;const wt=Lr=>{Lr.forEach(Ln=>{Ln.removedNodes.forEach(Co=>{Be?.unobserve(Co)}),Ln.addedNodes.forEach(Co=>{Be?.observe(Co)})}),Oe(),ft()},_t=go(ke.current);_t.addEventListener("resize",Oe);let or;return typeof ResizeObserver<"u"&&(Be=new ResizeObserver(Oe),Array.from(Ae.current.children).forEach(Lr=>{Be.observe(Lr)})),typeof MutationObserver<"u"&&(or=new MutationObserver(wt),or.observe(Ae.current,{childList:!0})),()=>{Oe.clear(),_t.removeEventListener("resize",Oe),or?.disconnect(),Be?.disconnect()}},[Xe,ft]),R.useEffect(()=>{const Oe=Array.from(Ae.current.children),Be=Oe.length;if(typeof IntersectionObserver<"u"&&Be>0&&H&&O!==!1){const wt=Oe[0],_t=Oe[Be-1],or={root:ke.current,threshold:.99},Lr=ml=>{ge(!ml[0].isIntersecting)},Ln=new IntersectionObserver(Lr,or);Ln.observe(wt);const Co=ml=>{Ie(!ml[0].isIntersecting)},Ts=new IntersectionObserver(Co,or);return Ts.observe(_t),()=>{Ln.disconnect(),Ts.disconnect()}}},[H,O,Re,h?.length]),R.useEffect(()=>{re(!0)},[]),R.useEffect(()=>{Xe()}),R.useEffect(()=>{Ce(V3!==ie)},[Ce,ie]),R.useImperativeHandle(u,()=>({updateIndicator:Xe,updateScrollButtons:ft}),[Xe,ft]);const[Ct,Cr]=ct("indicator",{className:Se(N.indicator,E.className),elementType:KW,externalForwardedProps:lt,ownerState:te,additionalProps:{style:ie}}),$r=C.jsx(Ct,{...Cr});let nn=0;const ea=R.Children.map(h,Oe=>{if(!R.isValidElement(Oe))return null;const Be=Oe.props.value===void 0?nn:Oe.props.value;gt.set(Be,nn);const wt=Be===P;return nn+=1,R.cloneElement(Oe,{fullWidth:$==="fullWidth",indicator:wt&&!ae&&$r,selected:wt,selectionFollowsFocus:T,onChange:b,textColor:j,value:Be,...nn===1&&P===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}})}),ko=Oe=>{if(Oe.altKey||Oe.shiftKey||Oe.ctrlKey||Oe.metaKey)return;const Be=Ae.current,wt=zr(Be).activeElement;if(wt.getAttribute("role")!=="tab")return;let or=x==="horizontal"?"ArrowLeft":"ArrowUp",Lr=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(or="ArrowRight",Lr="ArrowLeft"),Oe.key){case or:Oe.preventDefault(),Zp(Be,wt,H3);break;case Lr:Oe.preventDefault(),Zp(Be,wt,q3);break;case"Home":Oe.preventDefault(),Zp(Be,null,q3);break;case"End":Oe.preventDefault(),Zp(Be,null,H3);break}},zn=kt(),[ks,Cs]=ct("root",{ref:r,className:Se(N.root,d),elementType:XW,externalForwardedProps:{...lt,...W,component:m},ownerState:te}),[$s,Es]=ct("scroller",{ref:ke,className:N.scroller,elementType:JW,externalForwardedProps:lt,ownerState:te,additionalProps:{style:{overflow:xe.overflow,[V?`margin${a?"Left":"Right"}`:"marginBottom"]:L?void 0:-xe.scrollbarWidth}}}),[ot,on]=ct("list",{ref:Ae,className:Se(N.list,N.flexContainer),elementType:YW,externalForwardedProps:lt,ownerState:te,getSlotProps:Oe=>({...Oe,onKeyDown:Be=>{ko(Be),Oe.onKeyDown?.(Be)}})});return C.jsxs(ks,{...Cs,children:[zn.scrollButtonStart,zn.scrollbarSizeListener,C.jsxs($s,{...Es,children:[C.jsx(ot,{"aria-label":s,"aria-labelledby":l,"aria-orientation":x==="vertical"?"vertical":null,role:"tablist",...on,children:ea}),ae&&$r]}),zn.scrollButtonEnd]})});function QW(t){return qe("MuiTextField",t)}We("MuiTextField",["root"]);const eU={standard:fo,filled:Xb,outlined:Kb},tU=t=>{const{classes:e}=t;return He({root:["root"]},QW,e)},rU=le(ya,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Vt=R.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:l,color:u="primary",defaultValue:f,disabled:h=!1,error:d=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:x,inputProps:k,InputProps:O,inputRef:T,label:M,maxRows:A,minRows:E,multiline:D=!1,name:j,onBlur:P,onChange:$,onFocus:L,placeholder:W,required:H=!1,rows:V,select:q=!1,SelectProps:J,slots:ee={},slotProps:Z={},type:X,value:te,variant:N="outlined",...B}=n,ne={...n,autoFocus:a,color:u,disabled:h,error:d,fullWidth:y,multiline:D,required:H,select:q,variant:N},ae=tU(ne),re=ds(b),ie=v&&re?`${re}-helper-text`:void 0,he=M&&re?`${re}-label`:void 0,me=eU[N],ge={slots:ee,slotProps:{input:O,inputLabel:x,htmlInput:k,formHelperText:m,select:J,...Z}},be={},Ie=ge.slotProps.inputLabel;N==="outlined"&&(Ie&&typeof Ie.shrink<"u"&&(be.notched=Ie.shrink),be.label=M),q&&((!J||!J.native)&&(be.id=void 0),be["aria-describedby"]=void 0);const[Re,Ge]=ct("root",{elementType:rU,shouldForwardComponentProp:!0,externalForwardedProps:{...ge,...B},ownerState:ne,className:Se(ae.root,l),ref:r,additionalProps:{disabled:h,error:d,fullWidth:y,required:H,color:u,variant:N}}),[xe,Te]=ct("input",{elementType:me,externalForwardedProps:ge,additionalProps:be,ownerState:ne}),[gt,ke]=ct("inputLabel",{elementType:Iu,externalForwardedProps:ge,ownerState:ne}),[Ae,lt]=ct("htmlInput",{elementType:"input",externalForwardedProps:ge,ownerState:ne}),[tt,Xe]=ct("formHelperText",{elementType:bd,externalForwardedProps:ge,ownerState:ne}),[we,dt]=ct("select",{elementType:Dn,externalForwardedProps:ge,ownerState:ne}),Qe=C.jsx(xe,{"aria-describedby":ie,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:y,multiline:D,name:j,rows:V,maxRows:A,minRows:E,type:X,value:te,id:re,inputRef:T,onBlur:P,onChange:$,onFocus:L,placeholder:W,inputProps:lt,slots:{input:ee.htmlInput?Ae:void 0},...Te});return C.jsxs(Re,{...Ge,children:[M!=null&&M!==""&&C.jsx(gt,{htmlFor:re,id:he,...ke,children:M}),q?C.jsx(we,{"aria-describedby":ie,id:re,labelId:he,value:te,input:Qe,...dt,children:s}):Qe,v&&C.jsx(tt,{id:ie,...Xe,children:v})]})}),gg=11/23/100;function G3(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substring(1,3),16),e.g=parseInt(t.substring(3,5),16),e.b=parseInt(t.substring(5,7),16);else if(t.length===4){const r=t[1],n=t[2],o=t[3];e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function nU(t){return`#${Math.round(t.r).toString(16).padStart(2,"0")}${Math.round(t.g).toString(16).padStart(2,"0")}${Math.round(t.b).toString(16).padStart(2,"0")}`}function oU(t,e,r){const n=G3(t),o=G3(e);return n.r+=o.r*(.05+gg*(r-1)),n.g+=o.g*(.05+gg*(r-1)),n.b+=o.b*(.05+gg*(r-1)),nU(n)}function Qp(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:oU(t,e,n)};return r}function aU(t,e){let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Ir[200],"&:hover":{color:Ir[100]}}},MuiPaper:Qp("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Ir[400],"&:hover":{color:Ir[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Ir[200],"&:hover":{color:Ir[100]}}},MuiPaper:Qp("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Ir[400],"&:hover":{color:Ir[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="NW"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Ir[400],"&:hover":{color:Ir[300]}}},MuiPaper:Qp("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#00af78"},secondary:{main:"#005a40"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="HA"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:"#db0a33","&:hover":{color:"#FF0a33"}}},MuiPaper:Qp("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#970720"},secondary:{main:"#db0a33"},expert:"#db0a33",text:{primary:"#ffffff",secondary:"#ffffff"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Ir[400],"&:hover":{color:Ir[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:r.palette?.primary?.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:c1[300],dark:c1[400]});const o=Xu(r),a=o.palette;return Xu(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:a.grey?.[300],color:a.getContrastText&&a.grey?.[300]?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:a.text?.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${a.action?.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Bt(a.text?.primary||"",a.action?.hoverOpacity||.04)}}},{props:{variant:"text",color:"grey"},style:{color:a.text?.primary,"&:hover":{backgroundColor:Bt(a.text?.primary||"",a.action?.hoverOpacity||.04)}}}]}}})}function iU(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function O1(t){return t?.rows.map(e=>e.value).filter(e=>!!e)??[]}function _a(t){return t?.startsWith("system.host.")||(t=`system.host.${t}`),t}function ou(t){return t?.startsWith("system.host.")&&(t=t.substring(12)),t}function X3(t){return new Promise(e=>{setTimeout(e,t)})}function ef(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}typeof globalThis.process<"u"&&(globalThis.location||={href:"http://localhost:8081/",protocol:"http:",host:"localhost:8081",pathname:"/",hostname:"localhost",reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(t,e)=>{globalThis.localStorage._keys[t]=e},getItem:t=>t in globalThis.localStorage._keys?globalThis.localStorage._keys[t]:null,removeItem:t=>{t in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[t]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:"en"});var zo;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(zo||(zo={}));var Jr;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Jr||(Jr={}));Jr.PERMISSION_ERROR;Jr.NOT_CONNECTED;const sU=["material","echarts","vis"];class en{props;connId;lastAccessToken=null;ignoreState="";connected=!1;subscribed=!1;firstConnect=!0;waitForRestart=!1;loaded=!1;simStates={};objectViewCached;constructor(e){this.props=this.applyDefaultProps(e),this.connId=`${this.props.name?`${this.props.name}-`:""}${Math.round(Math.random()*1e6).toString().padStart(6,"0")}`,this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||globalThis.location.protocol,host:e.host||globalThis.location.hostname,port:e.port||(globalThis.location.port==="3000"?8081:globalThis.location.port),ioTimeout:Math.max(e.ioTimeout||2e4,2e4),cmdTimeout:Math.max(e.cmdTimeout||5e3,5e3),admin5only:e.admin5only||!1,autoSubscribes:e.autoSubscribes??[],autoSubscribeLog:e.autoSubscribeLog??!1,doNotLoadACL:e.doNotLoadACL??!0,doNotLoadAllObjects:e.doNotLoadAllObjects??!0}}statesSubscribes={};filesSubscribes={};objectsSubscribes={};objects={};states={};acl=null;isSecure=!1;onReadyDone=!1;onConnectionHandlers=[];onLogHandlers=[];onCmdStdoutHandler;onCmdStderrHandler;onCmdExitHandler;onError(e){(this.props.onError??console.error)(e)}_socket;_waitForSocketPromise;_waitForFirstConnectionPromise=iU();_instanceSubscriptions={};_promises={};_authTimer=null;_refreshTimer=null;_systemConfig;get systemConfig(){return this._systemConfig}systemLang="en";static isWeb(){return globalThis.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(this.props.connect){e();return}if(typeof globalThis.io>"u"&&typeof globalThis.iob>"u")if(typeof globalThis.registerSocketOnLoad=="function")globalThis.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(globalThis.io||globalThis.iob)return e();await X3(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||globalThis.location.protocol).replace(":",""),o=globalThis.location.pathname;if(globalThis.location.hostname==="iobroker.net"||globalThis.location.hostname==="iobroker.pro")o="";else{if(globalThis.socketUrl){const u=new globalThis.URL(globalThis.socketUrl);e=u.hostname,r=u.port,n=u.protocol.replace(":","")}const l=o.lastIndexOf("/");if(l!==-1&&(o=o.substring(0,l+1)),en.isWeb()){const u=o.split("/");u.length>2&&(u.pop(),u.pop(),sU.includes(u[u.length-1])&&u.pop(),o=u.join("/"),o.endsWith("/")||(o+="/"))}}const a=r?`${n}://${e}:${r}`:`${n}://${e}`,s=this.props.connect||(globalThis.io||globalThis.iob).connect;return this._socket=s(a,{path:o.endsWith("/")?`${o}socket.io`:`${o}/socket.io`,query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on("connect",l=>{globalThis.addEventListener?.("storage",this.onAccessTokenUpdated);const u=en.readTokens();if(u&&!u.owner){const f=Date.now();this.saveTokens({access_token:u.access_token,refresh_token:u.refresh_token,expires_in:Math.round((u.expires_in.getTime()-f)/1e3),refresh_token_expires_in:Math.round((u.refresh_token_expires_in.getTime()-f)/1e3),token_type:"Bearer"},u.stayLoggedIn)}this.onReadyDone=!1,l!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(f=>{const[h,d,m]=f.version.split(".");parseInt(h,10)*1e4+parseInt(d,10)*100+parseInt(m,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(v,b)=>this.onPreConnect(v,b))}).catch(f=>this.onError({message:f.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(f,h)=>{this.onPreConnect(f,h)})}),this._socket.on("reconnect",()=>{this.onReadyDone=!1,this.props.onProgress?.(zo.READY),this.connected=!0,this.waitForRestart?globalThis.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(l=>l(!0)))}),this._socket.on("disconnect",()=>{this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,this.props.onProgress?.(zo.CONNECTING),this.onConnectionHandlers.forEach(l=>l(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",l=>{this.props.onLog?.(l),this.onLogHandlers.forEach(u=>u(l))}),this._socket.on("error",l=>{let u;l==null?u="":typeof l.toString=="function"?u=l.toString():(u=JSON.stringify(l),console.error(`Received strange error: ${u}`)),u.includes("User not authorized")?this.authenticate():u.includes("websocket error")?(console.error(`Socket Error => reload: ${l}`),globalThis.location.reload()):console.error(`Socket Error: ${l}`)}),this._socket.on("connect_error",l=>console.error(`Connect error: ${l}`)),this._socket.on("permissionError",l=>this.onError({message:"no permission",operation:l.operation,type:l.type,id:l.id||""})),this._socket.on("objectChange",(l,u)=>{setTimeout(()=>this.objectChange(l,u),0)}),this._socket.on("stateChange",(l,u)=>{setTimeout(()=>this.stateChange(l,u),0)}),this._socket.on("im",(l,u,f)=>{setTimeout(()=>this.instanceMessage(l,u,f),0)}),this._socket.on("fileChange",(l,u,f)=>{setTimeout(()=>this.fileChange(l,u,f),0)}),this._socket.on("cmdStdout",(l,u)=>{this.onCmdStdoutHandler?.(l,u)}),this._socket.on("cmdStderr",(l,u)=>{this.onCmdStderrHandler?.(l,u)}),this._socket.on("cmdExit",(l,u)=>{this.onCmdExitHandler?.(l,u)}),Promise.resolve()}onPreConnect(e,r){this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?globalThis.location.reload():(this.firstConnect?this.loadData().catch(n=>{console.error(`Cannot load data: ${n}`)}):this.props.onProgress?.(zo.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(n=>n(!0)),this.checkAccessTokenExpire()),this._waitForFirstConnectionPromise.resolve()}static readTokens(){let e=globalThis.sessionStorage.getItem("iob_tokens");const r=!e;if(e||(e=globalThis.localStorage.getItem("iob_tokens")),!e)return null;const[n,o,a,s,l]=e.split(";"),u=new Date(o);return u.getTime(){if(e.key==="iob_tokens"){const r=en.readTokens();r&&(console.log(`Tab ${this.connId} received updated token: ${r.access_token}`),this.updateTokenExpiration(r.access_token))}};updateTokenExpiration(e){this.lastAccessToken!==e&&(this.lastAccessToken=e,this._socket.emit("updateTokenExpiration",e,(r,n)=>{r?(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token: ${r}`),globalThis.location.reload()):n?console.log(`[UPDATE/${new Date().toISOString()}] server accepted new token: ${e}`):(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token`),globalThis.location.reload())})),this.checkAccessTokenExpire()}refreshTokens(e,r){if(!e){console.log(`[REFRESH/${new Date().toISOString()}] No token structure found => reloading the page`),setTimeout(()=>globalThis.location.reload(),500);return}r||!e.owner||e.owner===this.connId?(console.log(`[REFRESH/${new Date().toISOString()}] claim ownership of the token`),this.acquireTokenLock()?(console.log(`[REFRESH/${new Date().toISOString()}] refreshing token`),fetch("./oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&refresh_token=${e.refresh_token}&client_id=ioBroker&stayloggedin=${e.stayLoggedIn}`}).then(n=>{if(n.ok)return n.json();throw new Error("Cannot refresh access token")}).then(n=>{if(n.access_token)console.log(`[REFRESH/${new Date().toISOString()}] received new token: ${n.access_token}`),this.saveTokens(n,e.stayLoggedIn),this.releaseTokenLock(),this.updateTokenExpiration(n.access_token);else throw new Error("Cannot get access token")}).catch(n=>{console.warn(`[REFRESH/${new Date().toISOString()}] cannot refresh token: ${n}`),this.releaseTokenLock(),this.deleteTokens(e.stayLoggedIn),console.error(n),globalThis.location.reload()})):(console.log(`[REFRESH/${new Date().toISOString()}] Someone else is updating the token, so wait for the next check`),this.checkAccessTokenExpire())):this.lastAccessToken!==e.access_token&&this.updateTokenExpiration(e.access_token)}acquireTokenLock(){const e=Date.now(),r=globalThis.localStorage.getItem("iob_token_semaphore");if(r)try{const o=JSON.parse(r);if(e{o?(console.log(`[TOKEN/${new Date().toISOString()}] Token will be prolonged`),this.refreshTokens(e,n)):(console.log(`[TOKEN/${new Date().toISOString()}] Token will not be prolonged. Reloading the page`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))})):(console.log(`[TOKEN/${new Date().toISOString()}] No tokenTimeoutHandler defined. Prolonging the token`),this.refreshTokens(e,n))):this.lastAccessToken!==e.access_token?(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token, but we will inform the server about new token`),this.refreshTokens(e)):(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token and the token did not change. Check in 3 seconds if the owner updated the token`),this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},3e3)):(console.log(`[TOKEN/${new Date().toISOString()}] We do not have a refresh token, so we need to reauthenticate`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))}else this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},r-Date.now()-3e4>12e4?12e4:r-Date.now()-3e4)}}}static isCloud(){return globalThis.location.hostname.includes("amazonaws.com")||globalThis.location.hostname.includes("iobroker.in")?!0:typeof globalThis.socketUrl>"u"?!1:globalThis.socketUrl.includes("iobroker.in")||globalThis.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o||null)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await X3(en.isCloud()?5e3:1e3)}}async doLoadData(){if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(e){this.onError(`Cannot read user permissions: ${e}`);return}try{this.props.admin5only&&!en.isWeb()&&(!globalThis.vendorPrefix||globalThis.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(e){this.onError(`Cannot read system config: ${e}`);return}this._systemConfig&&(this.systemLang=this._systemConfig.common?.language,this.systemLang||(this.systemLang=globalThis.navigator.userLanguage||globalThis.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang="en"),this._systemConfig.common.language=this.systemLang)),this.props.onLanguage?.(this.systemLang),this.loaded=!0,this.props.onProgress?.(zo.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),this.props.onProgress?.(zo.READY),this.onReadyDone||(this.onReadyDone=!0,this.props.onReady?.(this.objects))}}authenticate(){globalThis.location.search.includes("&href=")?globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}${globalThis.location.search}`:globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}?login&href=${encodeURIComponent(globalThis.location.search+globalThis.location.hash)}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let a;if(Array.isArray(r)?a=r:a=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const s=[];for(let l=0;ll.includes("*"))){let l;for(let u=0;uconsole.error(`Cannot call state change handler: ${m}`))}}}else try{const l=await(en.isWeb()?this.getStates(a):this.getForeignStates(a));if(l)for(const[u,f]of Object.entries(l)){const h=o(u,f);h instanceof Promise&&h.catch(d=>console.error(`Cannot call state change handler: ${d}`))}}catch(l){console.error(`Cannot getState "${a.join(", ")}": ${l.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let a=0;a{try{const u=l(e,r,n);u instanceof Promise&&u.catch(f=>console.error(`Cannot call object change handler: ${f}`))}catch(u){console.error(`Error by callback of objectChange: ${u}`)}});if(o){const a=this.props.onObjectChange?.(e,r);a instanceof Promise&&a.catch(s=>console.error(`Cannot call object change handler: ${s}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const a=o(e,r??null);a instanceof Promise&&a.catch(s=>console.error(`Cannot call state change handler: ${s}`))}catch(a){console.error(`Error by callback of stateChanged: ${a}`)}}instanceMessage(e,r,n){this._instanceSubscriptions[r]?.forEach(o=>{if(o.messageType===e){const a=o.callback(n,r,e);a instanceof Promise&&a.catch(s=>console.error(`Cannot call instance message handler: ${s}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const a of o.cbs)try{a(e,r,n)}catch(s){console.error(`Error by callback of fileChange: ${s}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const a=[];for(let s=0;s{const d={elapsed:!1,clearTimeout:()=>{}};let m;n!==!1&&(m=setTimeout(()=>{d.elapsed=!0,o?.(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(Jr.TIMEOUT))},n??this.props.cmdTimeout),d.clearTimeout=()=>{clearTimeout(m)});try{await l(f,h,d)}catch(y){e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(y.toString()))}});return e&&(this._promises[e]=u),u}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,a)=>{this.states=a??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,a)=>{o?n(o):r(a)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,a)=>{o?n(o):r(a)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,a=>{a?o(a):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,a)=>{if(e&&e===this.ignoreState){let s;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?s=r:s={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=s,this.statesSubscribes[e])for(const l of this.statesSubscribes[e].cbs)try{const u=l(e,s);u instanceof Promise&&u.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(u){console.error(`Error by callback of stateChanged: ${u}`)}o();return}this._socket.emit("setState",e,r,s=>{s?a(s):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(en.isWeb()?"getObjects":"getAllObjects",(a,s)=>{r||this.props.onProgress?.(zo.OBJECTS_LOADED),a?o(a):(this.objects=s??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,a)=>{o?n(o):r(a)})}})}_subscribe(e){if(e&&!this.subscribed){this.subscribed=!0,this.props.autoSubscribes?.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("subscribeObjects",r),Object.keys(this.objectsSubscribes).forEach(n=>this._socket.emit("subscribeObjects",n)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("subscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,a]=n.split("$%$");this._socket.emit("subscribeFiles",o,a)})}else if(!e&&this.subscribed){this.subscribed=!1,this.props.autoSubscribes?.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("unsubscribeObjects",r),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("unsubscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,a]=n.split("$%$");this._socket.emit("unsubscribeFiles",o,a)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},a=>{a?o(a):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},a=>{a?o(a):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,a)=>{o?n(o):r(a)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,a=>{o(a)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,1)}registerCmdStdoutHandler(e){this.onCmdStdoutHandler=e}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(e){this.onCmdStderrHandler=e}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(e){this.onCmdExitHandler=e}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(e,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(a,s)=>{if(a)o(a);else{const l={};if(s)for(let u=0;u{n||="",o||="香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(l,u)=>{if(l)s(l);else{const f={};if(u&&u.rows)for(let h=0;h{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{n?r(n):e(o.rows?.map(a=>a.value).filter(a=>!!a))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(a,s)=>{a?o(a):n(s)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(s,l,u)=>{s?a(s):o({file:l,mimeType:u})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,s=>{s?a(s):o()});else{const s=btoa(new Uint8Array(n).reduce((l,u)=>l+String.fromCharCode(u),""));this._socket.emit("writeFile64",e,r,s,l=>{l?a(l):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a?o(a):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a?o(a):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,s=>{s?a(s):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,s=>{s?a(s):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,s,l)=>{e=_a(e),this._socket.emit("cmdExec",e,n,r,u=>{l.elapsed||(l.clearTimeout(),u?s(u):a())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??={},n.common??={},n.native??={},r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,a)=>{o?n(o):(a??={},a.common??={},a.native??={},r(a))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,a)=>{o?n(o):r(a??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(a,s)=>{a?o(a):n(s)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,s)=>{a?o(a):n(s)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,s,l,u)=>{a?o(a):n({values:s,sessionId:u,step:l})})}})}getIpAddresses(e,r){return e=_a(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n(o?.common.address??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,a,s)=>{o&&!a&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:a,serverName:s})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(a,s)=>{a?o(a):n(!!s)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{const r=await this.getObject("system.meta.uuid");e(r?.native?.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(a,s)=>{a?o(a):n(s)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",a=`${o}香`,s=await this.getObjectViewSystem("instance",o,a),l=Object.values(s);n(e?l.filter(u=>u.common.name===e):l)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),a=Object.values(o);n(e?a.filter(s=>s.common.name===e):a)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,a)=>{o?n(o):r(O1(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(a,s)=>{this._socket.emit("clientSubscribe",e,r,n,(l,u)=>{l?s(l):u&&(u.error?s(u.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),a(u)))})}})}unsubscribeFromInstance(e,r,n){e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const a=[];do{o=!1;const s=this._instanceSubscriptions[e]?.findIndex(l=>(!r||l.messageType===r)&&(!n||l.callback===n));if(s!=null&&s!==-1){o=!0;const l=this._instanceSubscriptions[e][s].messageType;this._instanceSubscriptions[e].splice(s,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(f=>f.messageType===l)||a.push(this.request({commandTimeout:!1,executor:(f,h)=>{this._socket.emit("clientUnsubscribe",e,r,(d,m)=>d?h(d):f(m))}}))}}while(o&&(!n||!r));return a.length?Promise.all(a).then(s=>!!s.find(l=>l)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}destroy(){if(this._socket){const e=this._socket;try{typeof e.destroy=="function"?e.destroy():typeof e.close=="function"&&e.close(!0)}catch{}}globalThis.removeEventListener?.("storage",this.onAccessTokenUpdated),this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this._refreshTimer&&(clearTimeout(this._refreshTimer),this._refreshTimer=null),this.onConnectionHandlers.length=0,this.onLogHandlers.length=0;for(const e of Object.keys(this.statesSubscribes))delete this.statesSubscribes[e];for(const e of Object.keys(this.objectsSubscribes))delete this.objectsSubscribes[e];for(const e of Object.keys(this.filesSubscribes))delete this.filesSubscribes[e];this._instanceSubscriptions={},this.connected=!1,this.onReadyDone=!1}}function cU(t,e){if(!e)return;let r;if(e.length<700&&(e.indexOf("/")!==-1||e.indexOf("\\")!==-1))if(t.toLowerCase().includes("private"))r="private";else if(e.toLowerCase().includes("private"))r="private";else if(t.toLowerCase().includes("public"))r="public";else if(e.toLowerCase().includes("public"))r="public";else if(t.toLowerCase().includes("chain"))r="chained";else if(e.toLowerCase().includes("chain"))r="chained";else return;else r=e.substring(0,26)==="-----BEGIN RSA PRIVATE KEY"||e.substring(0,22)==="-----BEGIN PRIVATE KEY"?"private":"public",r==="public"&&e.split("-----END CERTIFICATE-----").filter(o=>o.replace(/\r\n|\r|\n/,"").trim()).length>1&&(r="chained");return{name:t,type:r}}function lU(t){const e=[{name:"[IPv4] 0.0.0.0 - Listen on all IPs",address:"0.0.0.0",family:"ipv4"}],r=[{name:"[IPv6] :: - Listen on all IPs",address:"::",family:"ipv6"}];if(t.native?.hardware?.networkInterfaces){const n=t.native?.hardware?.networkInterfaces;Object.keys(n).forEach(o=>{n[o]?.forEach(a=>{a.family!=="IPv6"?e.push({name:`[${a.family}] ${a.address} - ${o}`,address:a.address,family:"ipv4"}):r.push({name:`[${a.family}] ${a.address} - ${o}`,address:a.address,family:"ipv6"})})})}return{IPs4:e,IPs6:r}}class uU extends en{constructor(e){super(e)}request(e){return super.request({requireAdmin:!0,...e})}getCertificates(e){return this.request({cacheKey:"cert",forceUpdate:e,commandTimeout:!1,executor:async r=>{const n=await this.getObject("system.certificates");n?.native?.certificates?r(Object.entries(n.native.certificates).map(([o,a])=>cU(o,a)).filter(o=>!!o)):r([])}})}getLogs(e,r=200){return this.request({commandTimeout:!1,executor:n=>{this._socket.emit("sendToHost",e,"getLogs",r||200,o=>{n(o)})}})}upgradeAdapterWithWebserver(e,r){return this.request({commandTimeout:!1,executor:n=>{this._socket.emit("sendToHost",e,"upgradeAdapterWithWebserver",r,o=>{n(o)})}})}upgradeController(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("sendToHost",e,"upgradeController",{version:r,adminInstance:n},s=>{const l=s;l.error?a(l.error):o(l.result)})}})}updateLicenses(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("updateLicenses",e,r,(a,s)=>{a?o(a):n(s)})}})}upgradeOsPackages(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendToHost",e,"upgradeOsPackages",{packages:r,restart:!!n},a=>{o(a)})}})}getLogsFiles(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("readLogs",e,(o,a)=>{o&&n(o),r(a)})}})}delLogs(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("sendToHost",e,"delLogs",null,o=>{o&&n(o),r()})}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a&&o(a),n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a&&o(a),n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,s=>{s&&a(s),o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,s=>{s&&a(s),o()})}})}getHosts(e){return this.request({cacheKey:"hosts",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","host",{startkey:"system.host.",endkey:"system.host.香"},(o,a)=>{o?n(o):r(O1(a))})}})}getUsers(e){return this.request({cacheKey:"users",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","user",{startkey:"system.user.",endkey:"system.user.香"},(o,a)=>{o?n(o):r(O1(a))})}})}renameGroup(e,r,n){return this.request({commandTimeout:!1,executor:async o=>{const a=await this.getGroups(!0),s=a.filter(u=>u._id.startsWith(`${e}.`));for(const u of s){const f=u._id,h=r+u._id.substring(e.length);u._id=h,await this.setObject(h,u),await this.delObject(f)}const l=a.find(u=>u._id===e);if(l){const u=l._id;l._id=r,n!==void 0&&(l.common??={},l.common.name=n),await this.setObject(r,l),await this.delObject(u)}o()}})}getHostInfo(e,r,n){return e=_a(e),this.request({cacheKey:`hostInfo_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("sendToHost",e,"getHostInfo",null,l=>{s.elapsed||(s.clearTimeout(),l===Jr.PERMISSION_ERROR?a('May not read "getHostInfo"'):l?o(l):a('Cannot read "getHostInfo"'))})}})}getHostInfoShort(e,r,n){return e=_a(e),this.request({cacheKey:`hostInfoShort_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("sendToHost",e,"getHostInfoShort",null,l=>{s.elapsed||(s.clearTimeout(),l===Jr.PERMISSION_ERROR?a('May not read "getHostInfoShort"'):l?o(l):a('Cannot read "getHostInfoShort"'))})}})}getRepository(e,r,n,o){return this.request({cacheKey:`repository_${e}`,forceUpdate:n,commandTimeout:o,executor:(a,s,l)=>{this._socket.emit("sendToHost",e,"getRepository",r,u=>{l.elapsed||(l.clearTimeout(),u===Jr.PERMISSION_ERROR?s('May not read "getRepository"'):u?a(u):s('Cannot read "getRepository"'))})}})}getInstalled(e,r,n){return e=_a(e),this.request({cacheKey:`installed_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("sendToHost",e,"getInstalled",null,l=>{s.elapsed||(s.clearTimeout(),l===Jr.PERMISSION_ERROR?a('May not read "getInstalled"'):l?o(l):a('Cannot read "getInstalled"'))})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,s,l)=>{e=_a(e),this._socket.emit("cmdExec",e,n,r,u=>{l.elapsed||(l.clearTimeout(),u&&s(u),a())})}})}readBaseSettings(e){return e=ou(e),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(r,n,o)=>{this._socket.emit("sendToHost",e,"readBaseSettings",null,a=>{o.elapsed||(o.clearTimeout(),a===Jr.PERMISSION_ERROR?n('May not read "BaseSettings"'):a?a.error?n(new Error(a.error)):r(a):n('Cannot read "BaseSettings"'))})}})}writeBaseSettings(e,r){return e=ou(e),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(n,o,a)=>{this._socket.emit("sendToHost",e,"writeBaseSettings",r,s=>{a.elapsed||(a.clearTimeout(),s===Jr.PERMISSION_ERROR?o('May not write "BaseSettings"'):s?n(s):o('Cannot write "BaseSettings"'))})}})}restartController(e){return e=ou(e),this.request({executor:(r,n,o)=>{this._socket.emit("sendToHost",e,"restartController",null,()=>{o.elapsed||(o.clearTimeout(),r(!0))})}})}getDiagData(e,r){return e=ou(e),this.request({executor:(n,o,a)=>{this._socket.emit("sendToHost",e,"getDiagData",r,s=>{a.elapsed||(a.clearTimeout(),n(s||null))})}})}changePassword(e,r){return this.request({executor:(n,o,a)=>{this._socket.emit("changePassword",e,r,s=>{a.elapsed||(a.clearTimeout(),s&&o(s),n())})}})}getIpAddresses(e,r){return e=_a(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n(o?.common.address??[])}})}getHostByIp(e,r){return e=ou(e),this.request({cacheKey:`rIPs_${e}`,forceUpdate:r,executor:(n,o,a)=>{this._socket.emit("getHostByIp",e,(s,l)=>{if(a.elapsed)return;a.clearTimeout();const{IPs4:u,IPs6:f}=lU(l);n([...u,...f])})}})}encrypt(e){return this.request({executor:(r,n,o)=>{this._socket.emit("encrypt",e,(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}decrypt(e){return this.request({executor:(r,n,o)=>{this._socket.emit("decrypt",e,(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}chmodFile(e,r,n){return this.request({executor:(o,a,s)=>{this._socket.emit("chmodFile",e,r,n,(l,u)=>{s.elapsed||(s.clearTimeout(),l&&a(l),o(u))})}})}chownFile(e,r,n){return this.request({executor:(o,a,s)=>{this._socket.emit("chownFile",e,r,n,(l,u)=>{s.elapsed||(s.clearTimeout(),l&&a(l),o(u))})}})}getNotifications(e,r){return this.request({executor:(n,o,a)=>{this._socket.emit("sendToHost",e,"getNotifications",{category:r},s=>{a.elapsed||(a.clearTimeout(),n(s))})}})}clearNotifications(e,r){return this.request({executor:(n,o,a)=>{this._socket.emit("sendToHost",e,"clearNotifications",{category:r},s=>{a.elapsed||(a.clearTimeout(),n(s))})}})}getIsEasyModeStrict(){return this.request({executor:(e,r,n)=>{this._socket.emit("getIsEasyModeStrict",(o,a)=>{n.elapsed||(n.clearTimeout(),o&&r(o),e(!!a))})}})}getEasyMode(){return this.request({executor:(e,r,n)=>{this._socket.emit("getEasyMode",(o,a)=>{n.elapsed||(n.clearTimeout(),o?r(new Error(o)):e(a))})}})}getRatings(e){return this.request({executor:(r,n,o)=>{this._socket.emit("getRatings",!!e,(a,s)=>{o.elapsed||(o.clearTimeout(),a?n(new Error(a)):r(s))})}})}getCurrentSession(e){const r=new AbortController;return this.request({commandTimeout:e||5e3,onTimeout:()=>{r.abort()},executor:async(n,o,a)=>{try{const s=await fetch("./session",{signal:r.signal});if(a.elapsed)return;a.clearTimeout();const l=await s.json();n(l)}catch(s){o(`getCurrentSession: ${s}`)}}})}getCurrentInstance(){return this.request({cacheKey:"currentInstance",executor:(e,r,n)=>{this._socket.emit("getCurrentInstance",(o,a)=>{n.elapsed||(n.clearTimeout(),o?r(o):e(a))})}})}getAdapterInstances(e,r){let n;return typeof e=="boolean"?(r=e,n=""):n=e||"",this.request({cacheKey:`instances_${n}`,forceUpdate:r,executor:(o,a,s)=>{this._socket.emit("getAdapterInstances",n,(l,u)=>{s.elapsed||(s.clearTimeout(),l&&a(l),o(u))})}})}getAdapters(e,r){let n;return typeof e=="boolean"?(r=e,n=""):n=e||"",this.request({cacheKey:`adapter_${n}`,forceUpdate:r,executor:(o,a,s)=>{this._socket.emit("getAdapters",n,(l,u)=>{s.elapsed||(s.clearTimeout(),l&&a(l),o(u))})}})}getCompactAdapters(e){return this.request({cacheKey:"compactAdapters",forceUpdate:e,executor:(r,n,o)=>{this._socket.emit("getCompactAdapters",(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}getAdaptersResetCache(e){e=e??"",this.resetCache(`adapter_${e}`),this.resetCache("compactAdapters")}getCompactInstances(e){return this.request({cacheKey:"compactInstances",forceUpdate:e,executor:(r,n,o)=>{this._socket.emit("getCompactInstances",(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}getAdapterInstancesResetCache(e){e=e??"",this.resetCache(`instances_${e}`),this.resetCache("compactInstances")}getCompactInstalled(e,r,n){return e=_a(e),this.request({cacheKey:`installedCompact_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("getCompactInstalled",e,l=>{s.elapsed||(s.clearTimeout(),l===Jr.PERMISSION_ERROR?a('May not read "getCompactInstalled"'):l?o(l):a('Cannot read "getCompactInstalled"'))})}})}getInstalledResetCache(e){e?(this.resetCache(`installedCompact_${e}`),this.resetCache(`installed_${e}`)):(this.resetCache("installedCompact_",!0),this.resetCache("installed_",!0))}getCompactRepository(e,r,n){return e=_a(e),this.request({cacheKey:`repositoryCompact_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("getCompactRepository",e,l=>{s.elapsed||(s.clearTimeout(),l===Jr.PERMISSION_ERROR?a('May not read "getCompactRepository"'):l?o(l):a('Cannot read "getCompactRepository"'))})}})}getRepositoryResetCache(e){e?(this.resetCache(`repositoryCompact_${e}`),this.resetCache(`repository_${e}`)):(this.resetCache("repositoryCompact_",!0),this.resetCache("repository_",!0))}getCompactHosts(e){return this.request({cacheKey:"hostsCompact",forceUpdate:e,executor:(r,n,o)=>{this._socket.emit("getCompactHosts",(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}getCompactSystemRepositories(e){return this.request({cacheKey:"repositoriesCompact",forceUpdate:e,executor:(r,n,o)=>{this._socket.emit("getCompactSystemRepositories",(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}}const at=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,At=globalThis,rs="10.53.1";function zh(){return Lh(At),At}function Lh(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||rs,e[rs]=e[rs]||{}}function sl(t,e,r=At){const n=r.__SENTRY__=r.__SENTRY__||{},o=n[rs]=n[rs]||{};return o[t]||(o[t]=e())}const dU=["debug","info","warn","error","log","assert","trace"],pU="Sentry Logger ",Xf={};function cl(t){if(!("console"in At))return t();const e=At.console,r={},n=Object.keys(Xf);n.forEach(o=>{const a=Xf[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function fU(){e2().enabled=!0}function hU(){e2().enabled=!1}function W8(){return e2().enabled}function mU(...t){Qb("log",...t)}function _U(...t){Qb("warn",...t)}function gU(...t){Qb("error",...t)}function Qb(t,...e){at&&W8()&&cl(()=>{At.console[t](`${pU}[${t}]:`,...e)})}function e2(){return at?sl("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const et={enable:fU,disable:hU,isEnabled:W8,log:mU,warn:_U,error:gU},U8=50,as="?",J3=/\(error: (.*)\)/,Y3=/captureMessage|captureException/;function q8(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{const a=[],s=r.split(` -`);for(let l=n;l1024&&(u=u.slice(0,1024));const f=J3.test(u)?u.replace(J3,"$1"):u;if(!f.includes("Error: ")){for(const h of e){const d=h(f);if(d){a.push(d);break}}if(a.length>=U8+o)break}}return vU(a.slice(o))}}function yU(t){return Array.isArray(t)?q8(...t):t}function vU(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(tf(e).function||"")&&e.pop(),e.reverse(),Y3.test(tf(e).function||"")&&(e.pop(),Y3.test(tf(e).function||"")&&e.pop()),e.slice(0,U8).map(r=>({...r,filename:r.filename||tf(e).filename,function:r.function||as}))}function tf(t){return t[t.length-1]||{}}const yg="";function di(t){try{return!t||typeof t!="function"?yg:t.name||yg}catch{return yg}}function K3(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}function H8(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const wu={},Z3={};function fs(t,e){return wu[t]=wu[t]||[],wu[t].push(e),()=>{const r=wu[t];if(r){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}}}function hs(t,e){if(!Z3[t]){Z3[t]=!0;try{e()}catch(r){at&&et.error(`Error while instrumenting ${t}`,r)}}}function _o(t,e){const r=t&&wu[t];if(r)for(const n of r)try{n(e)}catch(o){at&&et.error(`Error while triggering instrumentation handler. -Type: ${t} -Name: ${di(n)} -Error:`,o)}}let vg=null;function bU(t){const e="error";fs(e,t),hs(e,wU)}function wU(){vg=At.onerror,At.onerror=function(t,e,r,n,o){return _o("error",{column:n,error:o,line:r,msg:t,url:e}),vg?vg.apply(this,arguments):!1},At.onerror.__SENTRY_INSTRUMENTED__=!0}let bg=null;function SU(t){const e="unhandledrejection";fs(e,t),hs(e,xU)}function xU(){bg=At.onunhandledrejection,At.onunhandledrejection=function(t){return _o("unhandledrejection",t),bg?bg.apply(this,arguments):!0},At.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const V8=Object.prototype.toString;function Fh(t){switch(V8.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return pi(t,Error)}}function ll(t,e){return V8.call(t)===`[object ${e}]`}function G8(t){return ll(t,"ErrorEvent")}function Q3(t){return ll(t,"DOMError")}function kU(t){return ll(t,"DOMException")}function va(t){return ll(t,"String")}function t2(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Bh(t){return t===null||t2(t)||typeof t!="object"&&typeof t!="function"}function Qu(t){return ll(t,"Object")}function Wh(t){return typeof Event<"u"&&pi(t,Event)}function CU(t){return typeof Element<"u"&&pi(t,Element)}function $U(t){return ll(t,"RegExp")}function wd(t){return!!(t?.then&&typeof t.then=="function")}function EU(t){return Qu(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function pi(t,e){try{return t instanceof e}catch{return!1}}function X8(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function J8(t){return typeof Request<"u"&&pi(t,Request)}const r2=At,TU=80;function Y8(t,e={}){if(!t)return"";try{let r=t;const n=5,o=[];let a=0,s=0;const l=" > ",u=l.length;let f;const h=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||TU;for(;r&&a++1&&s+o.length*u+f.length>=d));)o.push(f),s+=f.length,r=r.parentNode;return o.reverse().join(l)}catch{return""}}function OU(t,e){const r=t,n=[];if(!r?.tagName)return"";if(r2.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=e?.length?e.filter(a=>r.getAttribute(a)).map(a=>[a,r.getAttribute(a)]):null;if(o?.length)o.forEach(a=>{n.push(`[${a[0]}="${a[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const a=r.className;if(a&&va(a)){const s=a.split(/\s+/);for(const l of s)n.push(`.${l}`)}}for(const a of["aria-label","type","name","title","alt"]){const s=r.getAttribute(a);s&&n.push(`[${a}="${s}"]`)}return n.join("")}function n2(){try{return r2.document.location.href}catch{return""}}function DU(t,e=5){if(!r2.HTMLElement)return null;let r=t;for(let n=0;n"}}function t4(t){return typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t)):{}}function RU(t){const e=Object.keys(Z8(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let oc;function Uh(t){if(oc!==void 0)return oc?oc(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=At;return e in r&&typeof r[e]=="function"?(oc=r[e],oc(t)):(oc=null,t())}function Jf(){return Uh(()=>Math.random())}function qh(){return Uh(()=>Date.now())}function D1(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function r4(t,e){if(!Array.isArray(t))return"";const r=[];for(let n=0;nt.randomUUID()).replace(/-/g,"")}catch{}return wg||(wg="10000000100040008000"+1e11),wg.replace(/[018]/g,e=>(e^(AU()&15)>>e/4).toString(16))}function Q8(t){return t.exception?.values?.[0]}function Xi(t){const{message:e,event_id:r}=t;if(e)return e;const n=Q8(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function R1(t,e,r){const n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function Kc(t,e){const r=Q8(t);if(!r)return;const n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){const a={...o?.data,...e.data};r.mechanism.data=a}}function n4(t){if(NU(t))return!0;try{fi(t,"__sentry_captured__",!0)}catch{}return!1}function NU(t){try{return t.__sentry_captured__}catch{}}const e9=1e3;function xd(){return qh()/e9}function IU(){const{performance:t}=At;if(!t?.now||!t.timeOrigin)return xd;const e=t.timeOrigin;return()=>(e+Uh(()=>t.now()))/e9}let o4;function ba(){return(o4??(o4=IU()))()}function PU(t){const e=ba(),r={sid:Kn(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>zU(r)};return t&&Zc(r,t),r}function Zc(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||ba(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Kn()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function jU(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),Zc(t,r)}function zU(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function kd(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&Object.keys(e).length===0)return t;const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=kd(n[o],e[o],r-1));return n}function a4(){return Kn()}function t9(){return Kn().substring(16)}const M1="_sentrySpan";function i4(t,e){e?fi(t,M1,e):delete t[M1]}function s4(t){return t[M1]}const LU=100;class ka{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:a4(),sampleRand:Jf()}}clone(){const e=new ka;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,i4(e,s4(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Zc(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this.setTags({[e]:r})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,r){return this.setAttributes({[e]:r})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,n=r instanceof ka?r.getScopeData():Qu(r)?e:void 0,{tags:o,attributes:a,extra:s,user:l,contexts:u,level:f,fingerprint:h=[],propagationContext:d,conversationId:m}=n||{};return this._tags={...this._tags,...o},this._attributes={...this._attributes,...a},this._extra={...this._extra,...s},this._contexts={...this._contexts,...u},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),h.length&&(this._fingerprint=h),d&&(this._propagationContext=d),m&&(this._conversationId=m),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,i4(this,void 0),this._attachments=[],this.setPropagationContext({traceId:a4(),sampleRand:Jf()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:LU;if(n<=0)return this;const o={timestamp:xd(),...e,message:e.message?D1(e.message,2048):e.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:s4(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=kd(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r?.event_id||Kn();if(!this._client)return at&&et.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){const o=n?.event_id||Kn();if(!this._client)return at&&et.warn("No client configured on scope - will not capture message!"),o;const a=n?.syntheticException??new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){const n=e.event_id||r?.event_id||Kn();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(at&&et.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function FU(){return sl("defaultCurrentScope",()=>new ka)}function BU(){return sl("defaultIsolationScope",()=>new ka)}const c4=t=>t instanceof Promise&&!t[r9],r9=Symbol("chained PromiseLike"),WU=(t,e,r)=>{const n=t.then(o=>(e(o),o),o=>{throw r(o),o});return c4(n)&&c4(t)?n:UU(t,n)},UU=(t,e)=>{if(!e)return t;let r=!1;for(const n in t){if(n in e)continue;r=!0;const o=t[n];typeof o=="function"?Object.defineProperty(e,n,{value:(...a)=>o.apply(t,a),enumerable:!0,configurable:!0,writable:!0}):e[n]=o}return r&&Object.assign(e,{[r9]:!0}),e};class qU{constructor(e,r){let n;e?n=e:n=new ka;let o;r?o=r:o=new ka,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(o){throw this._popScope(),o}return wd(n)?WU(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Qc(){const t=zh(),e=Lh(t);return e.stack=e.stack||new qU(FU(),BU())}function HU(t){return Qc().withScope(t)}function VU(t,e){const r=Qc();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function l4(t){return Qc().withScope(()=>t(Qc().getIsolationScope()))}function GU(){return{withIsolationScope:l4,withScope:HU,withSetScope:VU,withSetIsolationScope:(t,e)=>l4(e),getCurrentScope:()=>Qc().getScope(),getIsolationScope:()=>Qc().getIsolationScope()}}function a2(t){const e=Lh(t);return e.acs?e.acs:GU()}function XU(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)&&Object.keys(t).includes("value")}function JU(t,e){const{value:r,unit:n}=XU(t)?t:{value:t,unit:void 0},o=YU(r),a=n&&typeof n=="string"?{unit:n}:{};if(o)return{...o,...a};if(!e||e==="skip-undefined"&&r===void 0)return;let s="";try{s=JSON.stringify(r)??""}catch{}return{value:s,type:"string",...a}}function u4(t,e=!1){const r={};for(const[n,o]of Object.entries(t??{})){const a=JU(o,e);a&&(r[n]=a)}return r}function YU(t){const e=typeof t=="string"?"string":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?Number.isInteger(t)?"integer":"double":null;if(e)return{value:t,type:e}}function Ko(){const t=zh();return a2(t).getCurrentScope()}function ms(){const t=zh();return a2(t).getIsolationScope()}function KU(){return sl("globalScope",()=>new ka)}function ZU(...t){const e=zh(),r=a2(e);if(t.length===2){const[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Kr(){return Ko().getClient()}function QU(t){const e=t.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:o}=e,a={trace_id:r,span_id:o||t9()};return n&&(a.parent_span_id=n),a}const eq="sentry.source",tq="sentry.sample_rate",rq="sentry.previous_trace_sample_rate",nq="sentry.op",oq="sentry.origin",n9="sentry.profile_id",o9="sentry.exclusive_time",aq="gen_ai.conversation.id",iq=0,sq=1;function cq(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}const lq="_sentryScope",uq="_sentryIsolationScope";function a9(t){const e=t;return{scope:e[lq],isolationScope:cq(e[uq])}}const d4="sentry-";function dq(t){const e=pq(t);if(!e)return;const r=Object.entries(e).reduce((n,[o,a])=>{if(o.startsWith(d4)){const s=o.slice(d4.length);n[s]=a}return n},{});if(Object.keys(r).length>0)return r}function pq(t){if(!(!t||!va(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=p4(r);return Object.entries(n).forEach(([o,a])=>{e[o]=a}),e},{}):p4(t)}function p4(t){return t.split(",").map(e=>{const r=e.indexOf("=");if(r===-1)return[];const n=e.slice(0,r),o=e.slice(r+1);return[n,o].map(a=>{try{return decodeURIComponent(a.trim())}catch{return}})}).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const fq=/^o(\d+)\./,hq=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function mq(t){return t==="http"||t==="https"}function Cd(t,e=!1){const{host:r,path:n,pass:o,port:a,projectId:s,protocol:l,publicKey:u}=t;return`${l}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${s}`}function _q(t){const e=hq.exec(t);if(!e){cl(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,o="",a="",s="",l=""]=e.slice(1);let u="",f=l;const h=f.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),f=h.pop()),f){const d=f.match(/^\d+/);d&&(f=d[0])}return i9({host:a,pass:o,path:u,projectId:f,port:s,protocol:r,publicKey:n})}function i9(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function gq(t){if(!at)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(et.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?mq(n)?e&&isNaN(parseInt(e,10))?(et.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(et.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(et.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function yq(t){return t.match(fq)?.[1]}function vq(t){const e=t.getOptions(),{host:r}=t.getDsn()||{};let n;return e.orgId?n=String(e.orgId):r&&(n=yq(r)),n}function bq(t){const e=typeof t=="string"?_q(t):i9(t);if(!(!e||!gq(e)))return e}function wq(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const s9=1;let f4=!1;function Sq(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),o=n?e:Hh(t).parent_span_id,a=a9(t).scope,s=n?a?.getPropagationContext().propagationSpanId||t9():e;return{parent_span_id:o,span_id:s,trace_id:r}}function xq(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:r,traceFlags:n,...o},attributes:a})=>({span_id:e,trace_id:r,sampled:n===s9,attributes:a,...o}))}function h4(t){return typeof t=="number"?m4(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?m4(t.getTime()):ba()}function m4(t){return t>9999999999?t/1e3:t}function Hh(t){if(Eq(t))return t.getSpanJSON();const{spanId:e,traceId:r}=t.spanContext();if($q(t)){const{attributes:n,startTime:o,name:a,endTime:s,status:l,links:u}=t;return{span_id:e,trace_id:r,data:n,description:a,parent_span_id:kq(t),start_timestamp:h4(o),timestamp:h4(s)||void 0,status:Oq(l),op:n[nq],origin:n[oq],links:xq(u)}}return{span_id:e,trace_id:r,start_timestamp:0,data:{}}}function kq(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function Cq(t){return{...t,attributes:u4(t.attributes),links:t.links?.map(e=>({...e,attributes:u4(e.attributes)}))}}function $q(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Eq(t){return typeof t.getSpanJSON=="function"}function Tq(t){const{traceFlags:e}=t.spanContext();return e===s9}function Oq(t){if(!(!t||t.code===iq))return t.code===sq?"ok":t.message||"internal_error"}const Dq="_sentryRootSpan",c9=Rq;function Rq(t){return t[Dq]||t}function _4(){f4||(cl(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),f4=!0)}function Mq(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Kr()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function g4(t){et.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function y4(t,e){if(!e?.length)return!1;for(const r of e){if(Iq(r)){if(t.description&&Pu(t.description,r))return at&&g4(t),!0;continue}const n=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!n)continue;const o=r.name?t.description&&Pu(t.description,r.name):!0,a=r.op?t.op&&Pu(t.op,r.op):!0,s=r.attributes?Object.entries(r.attributes).every(([l,u])=>Aq(t.attributes?.[l],u)):!0;if(o&&a&&s)return at&&g4(t),!0}return!1}function Aq(t,e){return typeof t=="string"&&(typeof e=="string"||e instanceof RegExp)?Pu(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t===e}function Nq(t,e){const r=e.parent_span_id,n=e.span_id;if(r)for(const o of t)o.parent_span_id===n&&(o.parent_span_id=r)}function Iq(t){return typeof t=="string"||t instanceof RegExp}const i2="production",Pq="_frozenDsc";function l9(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o={environment:r.environment||i2,release:r.release,public_key:n,trace_id:t,org_id:vq(e)};return e.emit("createDsc",o),o}function jq(t,e){const r=e.getPropagationContext();return r.dsc||l9(r.traceId,t)}function zq(t){const e=Kr();if(!e)return{};const r=c9(t),n=Hh(r),o=n.data,a=r.spanContext().traceState,s=a?.get("sentry.sample_rate")??o[tq]??o[rq];function l(v){return(typeof s=="number"||typeof s=="string")&&(v.sample_rate=`${s}`),v}const u=r[Pq];if(u)return l(u);const f=a?.get("sentry.dsc"),h=f&&dq(f);if(h)return l(h);const d=l9(t.spanContext().traceId,e),m=o[eq]??o["sentry.span.source"],y=n.description;return m!=="url"&&y&&(d.transaction=y),Mq()&&(d.sampled=String(Tq(r)),d.sample_rand=a?.get("sentry.sample_rand")??a9(r).scope?.getPropagationContext().sampleRand.toString()),l(d),e.emit("createDsc",d,r),d}function Lq(t){return!!t&&typeof t=="function"&&"_streamed"in t&&!!t._streamed}const Fq=Symbol.for("sentry.skipNormalization"),Bq=Symbol.for("sentry.overrideNormalizationDepth");function Wq(t){return!!t[Fq]}function Uq(t){const e=t[Bq];return typeof e=="number"?e:void 0}function ga(t,e=100,r=1/0){try{return A1("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function u9(t,e=3,r=100*1024){const n=ga(t,e);return Gq(n)>r?u9(t,e-1,r):n}function A1(t,e,r=1/0,n=1/0,o=Xq()){const[a,s]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const l=qq(t,e);if(!l.startsWith("[object "))return l;if(Wq(e))return e;const u=Uq(e),f=u!==void 0?u:r;if(f===0)return l.replace("object ","");if(a(e))return"[Circular ~]";const h=e;if(h&&typeof h.toJSON=="function")try{const v=h.toJSON();return A1("",v,f-1,n,o)}catch{}const d=Array.isArray(e)?[]:{};let m=0;const y=Z8(e);for(const v in y){if(!Object.prototype.hasOwnProperty.call(y,v))continue;if(m>=n){d[v]="[MaxProperties ~]";break}const b=y[v];d[v]=A1(v,b,f-1,n,o),m++}return s(e),d}function qq(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(X8(e))return H8(e);if(EU(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${di(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=Hq(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function Hq(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function Vq(t){return~-encodeURI(t).split(/%..|./).length}function Gq(t){return Vq(JSON.stringify(t))}function Xq(){const t=new WeakSet;function e(n){return t.has(n)?!0:(t.add(n),!1)}function r(n){t.delete(n)}return[e,r]}function ul(t,e=[]){return[t,e]}function v4(t,e){const[r,n]=t;return[r,[...n,e]]}function N1(t,e){const r=t[1];for(const n of r){const o=n[0].type;if(e(n,o))return!0}return!1}function Jq(t,e){return N1(t,(r,n)=>e.includes(n))}function I1(t){const e=Lh(At);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function Yq(t){const[e,r]=t;let n=JSON.stringify(e);function o(a){typeof n=="string"?n=typeof a=="string"?n+a:[I1(n),a]:n.push(typeof a=="string"?I1(a):a)}for(const a of r){const[s,l]=a;if(o(` -${JSON.stringify(s)} -`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(ga(l))}o(u)}}return typeof n=="string"?n:Kq(n)}function Kq(t){const e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e);let n=0;for(const o of t)r.set(o,n),n+=o.length;return r}function Zq(t){const e=typeof t.data=="string"?I1(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const d9={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Qq(t){return t in d9}function b4(t){return Qq(t)?d9[t]:t}function p9(t){if(!t?.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function eH(t,e,r,n){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:Cd(n)},...o&&{trace:o}}}function tH(t,e){if(!e)return t;const r=t.sdk||{};return t.sdk={...r,name:r.name||e.name,version:r.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0},t}function rH(t,e,r,n){const o=p9(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:Cd(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ul(a,[s])}function nH(t,e,r,n){const o=p9(r),a=t.type&&t.type!=="replay_event"?t.type:"event";tH(t,r?.sdk);const s=eH(t,o,n,e);return delete t.sdkProcessingMetadata,ul(s,[[{type:a},t]])}function oH(t){return t.getOptions().traceLifecycle==="stream"}function aH(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;iH(t,e),n&&lH(t,n),uH(t,r),sH(t,o),cH(t,a)}function w4(t,e){const{extra:r,tags:n,attributes:o,user:a,contexts:s,level:l,sdkProcessingMetadata:u,breadcrumbs:f,fingerprint:h,eventProcessors:d,attachments:m,propagationContext:y,transactionName:v,span:b}=e;au(t,"extra",r),au(t,"tags",n),au(t,"attributes",o),au(t,"user",a),au(t,"contexts",s),t.sdkProcessingMetadata=kd(t.sdkProcessingMetadata,u,2),l&&(t.level=l),v&&(t.transactionName=v),b&&(t.span=b),f.length&&(t.breadcrumbs=[...t.breadcrumbs,...f]),h.length&&(t.fingerprint=[...t.fingerprint,...h]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),m.length&&(t.attachments=[...t.attachments,...m]),t.propagationContext={...t.propagationContext,...y}}function au(t,e,r){t[e]=kd(t[e],r,1)}function f9(t,e){const r=KU().getScopeData();return t&&w4(r,t.getScopeData()),e&&w4(r,e.getScopeData()),r}function iH(t,e){const{extra:r,tags:n,user:o,contexts:a,level:s,transactionName:l}=e;Object.keys(r).length&&(t.extra={...r,...t.extra}),Object.keys(n).length&&(t.tags={...n,...t.tags}),Object.keys(o).length&&(t.user={...o,...t.user}),Object.keys(a).length&&(t.contexts={...a,...t.contexts}),s&&(t.level=s),l&&t.type!=="transaction"&&(t.transaction=l)}function sH(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function cH(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function lH(t,e){t.contexts={trace:Sq(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:zq(e),...t.sdkProcessingMetadata};const r=c9(e),n=Hh(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function uH(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}function Sg(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function dH(t,e=!0){if(t.startsWith("data:")){const r=t.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",o=t.includes(";base64,"),a=t.indexOf(",");let s="";if(e&&a!==-1){const l=t.slice(a+1);s=l.length>10?`${l.slice(0,10)}... [truncated]`:l}return`data:${n}${o?",base64":""}${s?`,${s}`:""}`}return t}function h9(t,e){const r=t.attributes??(t.attributes={});Object.entries(e).forEach(([n,o])=>{o!=null&&!(n in r)&&(r[n]=o)})}const xg=0,S4=1,x4=2;function $d(t){return new ed(e=>{e(t)})}function s2(t){return new ed((e,r)=>{r(t)})}class ed{constructor(e){this._state=xg,this._handlers=[],this._runExecutor(e)}then(e,r){return new ed((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(s){o(s)}},a=>{if(!r)o(a);else try{n(r(a))}catch(s){o(s)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new ed((r,n)=>{let o,a;return this.then(s=>{a=!1,o=s,e&&e()},s=>{a=!0,o=s,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}_executeHandlers(){if(this._state===xg)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===S4&&r[1](this._value),this._state===x4&&r[2](this._value),r[0]=!0)})}_runExecutor(e){const r=(a,s)=>{if(this._state===xg){if(wd(s)){s.then(n,o);return}this._state=a,this._value=s,this._executeHandlers()}},n=a=>{r(S4,a)},o=a=>{r(x4,a)};try{e(n,o)}catch(a){o(a)}}}function pH(t,e,r,n=0){try{const o=P1(e,r,t,n);return wd(o)?o:$d(o)}catch(o){return s2(o)}}function P1(t,e,r,n){const o=r[n];if(!t||!o)return t;const a=o({...t},e);return at&&a===null&&et.log(`Event processor "${o.id||"?"}" dropped event`),wd(a)?a.then(s=>P1(s,e,r,n+1)):P1(a,e,r,n+1)}let zi,k4,C4,Ya;function fH(t){const e=At._sentryDebugIds,r=At._debugIds;if(!e&&!r)return{};const n=e?Object.keys(e):[],o=r?Object.keys(r):[];if(Ya&&n.length===k4&&o.length===C4)return Ya;k4=n.length,C4=o.length,Ya={},zi||(zi={});const a=(s,l)=>{for(const u of s){const f=l[u],h=zi?.[u];if(h&&Ya&&f)Ya[h[0]]=f,zi&&(zi[u]=[h[0],f]);else if(f){const d=t(u);for(let m=d.length-1;m>=0;m--){const v=d[m]?.filename;if(v&&Ya&&zi){Ya[v]=f,zi[u]=[v,f];break}}}}};return e&&a(n,e),r&&a(o,r),Ya}function hH(t,e,r,n,o,a){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=t,u={...e,event_id:e.event_id||r.event_id||Kn(),timestamp:e.timestamp||xd()},f=r.integrations||t.integrations.map(k=>k.name);mH(u,t),yH(u,f),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&_H(u,t.stackParser);const h=bH(n,r.captureContext);r.mechanism&&Kc(u,r.mechanism);const d=o?o.getEventProcessors():[],m=f9(a,h),y=[...r.attachments||[],...m.attachments];y.length&&(r.attachments=y),aH(u,m);const v=[...d,...m.eventProcessors];return(r.data&&r.data.__sentry__===!0?$d(u):pH(v,u,r)).then(k=>(k&&gH(k),typeof s=="number"&&s>0?vH(k,s,l):k))}function mH(t,e){const{environment:r,release:n,dist:o,maxValueLength:a}=e;t.environment=t.environment||r||i2,!t.release&&n&&(t.release=n),!t.dist&&o&&(t.dist=o);const s=t.request;s?.url&&a&&(s.url=D1(s.url,a)),a&&t.exception?.values?.forEach(l=>{l.value&&(l.value=D1(l.value,a))})}function _H(t,e){const r=fH(e);t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=r[o.filename])})})}function gH(t){const e={};if(t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function yH(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function vH(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:ga(o.data,e,r)}}))},...t.user&&{user:ga(t.user,e,r)},...t.contexts&&{contexts:ga(t.contexts,e,r)},...t.extra&&{extra:ga(t.extra,e,r)}};return t.contexts?.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=ga(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:ga(o.data,e,r)}}))),t.contexts?.flags&&n.contexts&&(n.contexts.flags=ga(t.contexts.flags,3,r)),n}function bH(t,e){if(!e)return t;const r=t?t.clone():new ka;return r.update(e),r}function wH(t,e){return Ko().captureException(t,void 0)}function m9(t,e){return Ko().captureEvent(t,e)}function $4(t){const e=ms(),{user:r}=f9(e,Ko()),{userAgent:n}=At.navigator||{},o=PU({user:r,...n&&{userAgent:n},...t}),a=e.getSession();return a?.status==="ok"&&Zc(a,{status:"exited"}),_9(),e.setSession(o),o}function _9(){const t=ms(),r=Ko().getSession()||t.getSession();r&&jU(r),g9(),t.setSession()}function g9(){const t=ms(),e=Kr(),r=t.getSession();r&&e&&e.captureSession(r)}function kg(t=!1){if(t){_9();return}g9()}const SH="7";function xH(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function kH(t){return`${xH(t)}${t.projectId}/envelope/`}function CH(t,e){const r={sentry_version:SH};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function $H(t,e,r){return e||`${kH(t)}?${CH(t,r)}`}const E4=[];function EH(t){const e={};return t.forEach(r=>{const{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function TH(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(o=>{o.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const o=r(e);n=Array.isArray(o)?o:[o]}else n=e;return EH(n)}function OH(t,e){const r={};return e.forEach(n=>{n?.beforeSetup&&n.beforeSetup(t)}),e.forEach(n=>{n&&y9(t,n,r)}),r}function T4(t,e){for(const r of e)r?.afterAllSetup&&r.afterAllSetup(t)}function y9(t,e,r){if(r[e.name]){at&&et.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,!E4.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),E4.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),o=Object.assign((a,s)=>n(a,s,t),{id:e.name});t.addEventProcessor(o)}["processSpan","processSegmentSpan"].forEach(n=>{const o=e[n];typeof o=="function"&&t.on(n,a=>o.call(e,a,t))}),at&&et.log(`Integration installed: ${e.name}`)}function DH(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function RH(){return"npm"}function MH(){return!DH()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function c2(){return typeof window<"u"&&(!MH()||AH())}function AH(){return At.process?.type==="renderer"}function NH(t,e){const r=e?"auto":"never";return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...c2()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:t}]}function IH(t,e,r,n,o){const a={};return e?.sdk&&(a.sdk={name:e.sdk.name,version:e.sdk.version}),r&&n&&(a.dsn=Cd(n)),ul(a,[NH(t,o)])}function j1(t,e){const r=e??PH(t)??[];if(r.length===0)return;const n=t.getOptions(),o=IH(r,n._metadata,n.tunnel,t.getDsn(),n.sendDefaultPii);v9().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(o)}function PH(t){return v9().get(t)}function v9(){return sl("clientToLogBufferMap",()=>new WeakMap)}function jH(t,e){const r=e?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...c2()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:t}]}function zH(t,e,r,n,o){const a={};return e?.sdk&&(a.sdk={name:e.sdk.name,version:e.sdk.version}),r&&n&&(a.dsn=Cd(n)),ul(a,[jH(t,o)])}function b9(t,e){const r=e??LH(t)??[];if(r.length===0)return;const n=t.getOptions(),o=zH(r,n._metadata,n.tunnel,t.getDsn(),n.sendDefaultPii);w9().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(o)}function LH(t){return w9().get(t)}function w9(){return sl("clientToMetricBufferMap",()=>new WeakMap)}function FH(t){const e={trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp||t.start_timestamp,status:!t.status||t.status==="ok"||t.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...t.data},links:t.links};return Cq(e)}function BH(t,e){if(t.type!=="transaction"||!t.spans?.length||!t.sdkProcessingMetadata?.hasGenAiSpans||!e.getOptions().streamGenAiSpans||oH(e))return;const r=[],n=[];for(const a of t.spans)a.op?.startsWith("gen_ai.")?r.push(FH(a)):n.push(a);if(r.length===0)return;t.spans=n;const o=e.getOptions().sendDefaultPii?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...c2()&&{ingest_settings:{infer_ip:o,infer_user_agent:o}},items:r}]}function S9(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}const l2=Symbol.for("SentryBufferFullError");function u2(t=100){const e=new Set;function r(){return e.sizen(l),()=>n(l)),l}function a(s){if(!e.size)return $d(!0);const l=Promise.allSettled(Array.from(e)).then(()=>!0);if(!s)return l;const u=[l,new Promise(f=>S9(setTimeout(()=>f(!1),s)))];return Promise.race(u)}return{get $(){return Array.from(e)},add:o,drain:a}}const WH=60*1e3;function UH(t,e=qh()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?WH:n-e}function qH(t,e){return t[e]||t.all||0}function HH(t,e,r=qh()){return qH(t,e)>r}function VH(t,{statusCode:e,headers:r},n=qh()){const o={...t},a=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(a)for(const l of a.trim().split(",")){const[u,f,,,h]=l.split(":",5),d=parseInt(u,10),m=(isNaN(d)?60:d)*1e3;if(!f)o.all=n+m;else for(const y of f.split(";"))y==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(o[y]=n+m):o[y]=n+m}else s?o.all=n+UH(s,n):e===429&&(o.all=n+60*1e3);return o}const x9=64;function GH(t,e,r=u2(t.bufferSize||x9)){let n={};const o=s=>r.drain(s);function a(s){const l=[];if(N1(s,(d,m)=>{const y=b4(m);HH(n,y)?t.recordDroppedEvent("ratelimit_backoff",y):l.push(d)}),l.length===0)return Promise.resolve({});const u=ul(s[0],l),f=d=>{if(Jq(u,["client_report"])){at&&et.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}N1(u,(m,y)=>{t.recordDroppedEvent(d,b4(y))})},h=()=>e({body:Yq(u)}).then(d=>d.statusCode===413?(at&&et.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),f("send_error"),d):(at&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&et.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=VH(n,d),d),d=>{throw f("network_error"),at&&et.error("Encountered error running transport request:",d),d});return r.add(h).then(d=>d,d=>{if(d===l2)return at&&et.error("Skipped sending event because buffer is full."),f("queue_overflow"),Promise.resolve({});throw d})}return{send:a,flush:o}}function XH(t,e,r){const n=[{type:"client_report"},{timestamp:xd(),discarded_events:t}];return ul(e?{dsn:e}:{},[n])}function k9(t){const e=[];t.message&&e.push(t.message);try{const r=t.exception.values[t.exception.values.length-1];r?.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`))}catch{}return e}function JH(t){const{trace_id:e,parent_span_id:r,span_id:n,status:o,origin:a,data:s,op:l}=t.contexts?.trace??{};return{data:s??{},description:t.transaction,op:l,parent_span_id:r,span_id:n??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:e??"",origin:a,profile_id:s?.[n9],exclusive_time:s?.[o9],measurements:t.measurements,is_segment:!0}}function YH(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[n9]:t.profile_id},...t.exclusive_time&&{[o9]:t.exclusive_time}}}},measurements:t.measurements}}const O4="Not capturing exception because it's already been captured.",D4="Discarded session because of missing or non-string release",C9=Symbol.for("SentryInternalError"),$9=Symbol.for("SentryDoNotSendEventError"),KH=5e3;function Of(t){return{message:t,[C9]:!0}}function Cg(t){return{message:t,[$9]:!0}}function R4(t){return!!t&&typeof t=="object"&&C9 in t}function M4(t){return!!t&&typeof t=="object"&&$9 in t}function A4(t,e,r,n,o){let a=0,s,l=!1;t.on(r,()=>{a=0,clearTimeout(s),l=!1}),t.on(e,u=>{a+=n(u),a>=8e5?o(t):l||(l=!0,s=S9(setTimeout(()=>{o(t)},KH)))}),t.on("flush",()=>{o(t)})}class ZH{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=u2(e.transportOptions?.bufferSize??x9),e.dsn?this._dsn=bq(e.dsn):at&&et.warn("No DSN provided, client will not send events."),this._dsn){const n=$H(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&A4(this,"afterCaptureLog","flushLogs",rV,j1),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&A4(this,"afterCaptureMetric","flushMetrics",tV,b9)}captureException(e,r,n){const o=Kn();if(n4(e))return at&&et.log(O4),o;const a={event_id:o,...r};return this._process(()=>this.eventFromException(e,a).then(s=>this._captureEvent(s,a,n)).then(s=>s),"error"),a.event_id}captureMessage(e,r,n,o){const a={event_id:Kn(),...n},s=t2(e)?e:String(e),l=Bh(e),u=l?this.eventFromMessage(s,r,a):this.eventFromException(e,a);return this._process(()=>u.then(f=>this._captureEvent(f,a,o)),l?"unknown":"error"),a.event_id}captureEvent(e,r,n){const o=Kn();if(r?.originalException&&n4(r.originalException))return at&&et.log(O4),o;const a={event_id:o,...r},s=e.sdkProcessingMetadata||{},l=s.capturedSpanScope,u=s.capturedSpanIsolationScope,f=N4(e.type);return this._process(()=>this._captureEvent(e,a,l||n,u),f),a.event_id}captureSession(e){this.sendSession(e),Zc(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const r=this._transport;if(this.emit("flush"),!r)return!0;const n=await this._isClientDoneProcessing(e),o=await r.flush(e);return n&&o}async close(e){j1(this);const r=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),r}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const r=this._integrations[e.name];!r&&e.beforeSetup&&e.beforeSetup(this),y9(this,e,this._integrations),r||T4(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);const n=BH(e,this);let o=nH(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])o=v4(o,Zq(a));n&&(o=v4(o,n)),this.sendEnvelope(o).then(a=>this.emit("afterSendEvent",e,a))}sendSession(e){const{release:r,environment:n=i2}=this._options;if("aggregates"in e){const a=e.attrs||{};if(!a.release&&!r){at&&et.warn(D4);return}a.release=a.release||r,a.environment=a.environment||n,e.attrs=a}else{if(!e.release&&!r){at&&et.warn(D4);return}e.release=e.release||r,e.environment=e.environment||n}this.emit("beforeSendSession",e);const o=rH(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(e,r,n=1){if(this._options.sendClientReports){const o=`${e}:${r}`;at&&et.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(e,r){const n=this._hooks[e]=this._hooks[e]||new Set,o=(...a)=>r(...a);return n.add(o),()=>{n.delete(o)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(o=>o(...r))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(r){return at&&et.error("Error while sending envelope:",r),{}}return at&&et.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=OH(this,e),T4(this,e)}_updateSessionFromEvent(e,r){let n=r.level==="fatal",o=!1;const a=r.exception?.values;if(a){o=!0,n=!1;for(const u of a)if(u.mechanism?.handled===!1){n=!0;break}}const s=e.status==="ok";(s&&e.errors===0||s&&n)&&(Zc(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let r=0;for(;!e||rsetTimeout(n,1)),!this._numProcessing)return!0;r++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n,o){const a=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&s?.length&&(r.integrations=s),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),hH(a,e,r,n,this,o).then(l=>{if(l===null)return l;this.emit("postprocessEvent",l,r),l.contexts={trace:{...l.contexts?.trace,...QU(n)},...l.contexts};const u=jq(this,n);return l.sdkProcessingMetadata={dynamicSamplingContext:u,...l.sdkProcessingMetadata},l})}_captureEvent(e,r={},n=Ko(),o=ms()){return at&&z1(e)&&et.log(`Captured error event \`${k9(e)[0]||""}\``),this._processEvent(e,r,n,o).then(a=>a.event_id,a=>{at&&(M4(a)?et.log(a.message):R4(a)?et.warn(a.message):et.warn(a))})}_processEvent(e,r,n,o){const a=this.getOptions(),{sampleRate:s}=a,l=E9(e),u=z1(e),h=`before send for type \`${e.type||"error"}\``,d=typeof s>"u"?void 0:wq(s);if(u&&typeof d=="number"&&Jf()>d)return this.recordDroppedEvent("sample_rate","error"),s2(Cg(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const m=N4(e.type);return this._prepareEvent(e,r,n,o).then(y=>{if(y===null)throw this.recordDroppedEvent("event_processor",m),Cg("An event processor returned `null`, will not send event.");if(r.data?.__sentry__===!0)return y;const b=eV(this,a,y,r);return QH(b,h)}).then(y=>{if(y===null){if(this.recordDroppedEvent("before_send",m),l){const k=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",k)}throw Cg(`${h} returned \`null\`, will not send event.`)}const v=n.getSession()||o.getSession();if(u&&v&&this._updateSessionFromEvent(v,y),l){const x=y.sdkProcessingMetadata?.spanCountBeforeProcessing||0,k=y.spans?y.spans.length:0,O=x-k;O>0&&this.recordDroppedEvent("before_send","span",O)}const b=y.transaction_info;if(l&&b&&y.transaction!==e.transaction){const x="custom";y.transaction_info={...b,source:x}}return this.sendEvent(y,r),y}).then(null,y=>{throw M4(y)||R4(y)?y:(this.captureException(y,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:y}),Of(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${y}`))})}_process(e,r){this._numProcessing++,this._promiseBuffer.add(e).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===l2&&this.recordDroppedEvent("queue_overflow",r),n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[o,a]=r.split(":");return{reason:o,category:a,quantity:n}})}_flushOutcomes(){at&&et.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){at&&et.log("No outcomes to send");return}if(!this._dsn){at&&et.log("No dsn provided, will not send outcomes");return}at&&et.log("Sending outcomes:",e);const r=XH(e,this._options.tunnel&&Cd(this._dsn));this.sendEnvelope(r)}}function N4(t){return t==="replay_event"?"replay":t||"error"}function QH(t,e){const r=`${e} must return \`null\` or a valid event.`;if(wd(t))return t.then(n=>{if(!Qu(n)&&n!==null)throw Of(r);return n},n=>{throw Of(`${e} rejected with ${n}`)});if(!Qu(t)&&t!==null)throw Of(r);return t}function eV(t,e,r,n){const{beforeSend:o,beforeSendTransaction:a,ignoreSpans:s}=e,l=!Lq(e.beforeSendSpan)&&e.beforeSendSpan;let u=r;if(z1(u)&&o)return o(u,n);if(E9(u)){if(l||s){const f=JH(u);if(s?.length&&y4({description:f.description,op:f.op,attributes:f.data},s))return null;if(l){const h=l(f);h?u=kd(r,YH(h)):_4()}if(u.spans){const h=[],d=u.spans;for(const y of d){if(s?.length&&y4({description:y.description,op:y.op,attributes:y.data},s)){Nq(d,y);continue}if(l){const v=l(y);v?h.push(v):(_4(),h.push(y))}else h.push(y)}const m=u.spans.length-h.length;m&&t.recordDroppedEvent("before_send","span",m),u.spans=h}}if(a){if(u.spans){const f=u.spans.length;u.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:f}}return a(u,n)}}return u}function z1(t){return t.type===void 0}function E9(t){return t.type==="transaction"}function tV(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+T9(t.attributes)}function rV(t){let e=0;return t.message&&(e+=t.message.length*2),e+T9(t.attributes)}function T9(t){if(!t)return 0;let e=0;return Object.values(t).forEach(r=>{Array.isArray(r)?e+=r.length*I4(r[0]):Bh(r)?e+=I4(r):e+=100}),e}function I4(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function nV(t,e){e.debug===!0&&(at?et.enable():cl(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Ko().update(e.initialScope);const n=new t(e);return oV(n),n.init(),n}function oV(t){Ko().setClient(t)}function aV(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function iV(t,e,r=[e],n="npm"){const o=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${e}`,o.packages=r.map(a=>({name:`${n}:@sentry/${a}`,version:rs})),o.version=rs)}const sV=100;function is(t,e){const r=Kr(),n=ms();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=sV}=r.getOptions();if(a<=0)return;const l={timestamp:xd(),...t},u=o?cl(()=>o(l,e)):l;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,a))}let P4;const cV="FunctionToString",j4=new WeakMap,lV=(()=>({name:cV,setupOnce(){P4=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=o2(this),r=j4.has(Kr())&&e!==void 0?e:this;return P4.apply(r,t)}}catch{}},setup(t){j4.set(t,!0)}})),uV=lV,dV=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],pV="EventFilters",fV=(t={})=>{let e;return{name:pV,setup(r){const n=r.getOptions();e=z4(t,n)},processEvent(r,n,o){if(!e){const a=o.getOptions();e=z4(t,a)}return mV(r,e)?null:r}}},hV=((t={})=>({...fV(t),name:"InboundFilters"}));function z4(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:dV],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function mV(t,e){if(t.type){if(t.type==="transaction"&&gV(t,e.ignoreTransactions))return at&&et.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${Xi(t)}`),!0}else{if(_V(t,e.ignoreErrors))return at&&et.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${Xi(t)}`),!0;if(wV(t))return at&&et.warn(`Event dropped due to not having an error message, error type or stacktrace. -Event: ${Xi(t)}`),!0;if(yV(t,e.denyUrls))return at&&et.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${Xi(t)}. -Url: ${Yf(t)}`),!0;if(!vV(t,e.allowUrls))return at&&et.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${Xi(t)}. -Url: ${Yf(t)}`),!0}return!1}function _V(t,e){return e?.length?k9(t).some(r=>Sd(r,e)):!1}function gV(t,e){if(!e?.length)return!1;const r=t.transaction;return r?Sd(r,e):!1}function yV(t,e){if(!e?.length)return!1;const r=Yf(t);return r?Sd(r,e):!1}function vV(t,e){if(!e?.length)return!0;const r=Yf(t);return r?Sd(r,e):!0}function bV(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function Yf(t){try{const r=[...t.exception?.values??[]].reverse().find(n=>n.mechanism?.parent_id===void 0&&n.stacktrace?.frames?.length)?.stacktrace?.frames;return r?bV(r):null}catch{return at&&et.error(`Cannot extract url for event ${Xi(t)}`),null}}function wV(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function SV(t,e,r,n,o,a){if(!o.exception?.values||!a||!pi(a.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=L1(t,e,n,a.originalException,r,o.exception.values,s,0))}function L1(t,e,r,n,o,a,s,l){if(a.length>=r+1)return a;let u=[...a];if(pi(n[o],Error)){L4(s,l,n);const f=t(e,n[o]),h=u.length;F4(f,o,h,l),u=L1(t,e,r,n[o],o,[f,...u],f,h)}return O9(n)&&n.errors.forEach((f,h)=>{if(pi(f,Error)){L4(s,l,n);const d=t(e,f),m=u.length;F4(d,`errors[${h}]`,m,l),u=L1(t,e,r,f,o,[d,...u],d,m)}}),u}function O9(t){return Array.isArray(t.errors)}function L4(t,e,r){t.mechanism={handled:!0,type:"auto.core.linked_errors",...O9(r)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function F4(t,e,r,n){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function xV(t){return Fh(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function B4(t){return xV(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}const W4=new Set([]);function kV(t){const e="console",r=fs(e,t);return hs(e,CV),r}function CV(){"console"in At&&dU.forEach(function(t){t in At.console&&Rn(At.console,t,function(e){return Xf[t]=e,function(...r){const n=r[0],o=Xf[t],a=W4.size&&typeof n=="string"&&Sd(n,W4);a||_o("console",{args:r,level:t}),(!a||at&&et.isEnabled())&&o?.apply(At.console,r)}})})}function $V(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const EV="Dedupe",TV=(()=>{let t;return{name:EV,processEvent(e){if(e.type)return e;try{if(OV(e,t))return at&&et.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}}),D9=TV;function OV(t,e){return e?!!(DV(t,e)||RV(t,e)):!1}function DV(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!M9(t,e)||!R9(t,e))}function RV(t,e){const r=U4(e),n=U4(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!M9(t,e)||!R9(t,e))}function R9(t,e){let r=K3(t),n=K3(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o({name:MV,setup(t){t.on("spanStart",e=>{const r=Ko().getScopeData(),n=ms().getScopeData(),o=r.conversationId||n.conversationId;if(o){const{op:a,data:s,description:l}=Hh(e);if(!a?.startsWith("gen_ai.")&&!s["ai.operationId"]&&!l?.startsWith("ai."))return;e.setAttribute(aq,o)}})}})),NV=AV;function A9(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const td=At;function IV(){return"history"in td&&!!td.history}function PV(){if(!("fetch"in td))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function F1(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function jV(){if(typeof EdgeRuntime=="string")return!0;if(!PV())return!1;if(F1(td.fetch))return!0;let t=!1;const e=td.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow?.fetch&&(t=F1(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){at&&et.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function zV(t,e){const r="fetch",n=fs(r,t);return hs(r,()=>LV(void 0,e)),n}function LV(t,e=!1){e&&!jV()||Rn(At,"fetch",function(r){return function(...n){const o=new Error,{method:a,url:s}=FV(n),l={args:n,fetchData:{method:a,url:s},startTimestamp:ba()*1e3,virtualError:o,headers:BV(n)};return _o("fetch",{...l}),r.apply(At,n).then(async u=>(_o("fetch",{...l,endTimestamp:ba()*1e3,response:u}),u),u=>{_o("fetch",{...l,endTimestamp:ba()*1e3,error:u}),Fh(u)&&u.stack===void 0&&(u.stack=o.stack,fi(u,"framesToPop",1));const h=Kr()?.getOptions().enhanceFetchErrorMessages??"always";if(h!==!1&&u instanceof TypeError&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const y=new URL(l.fetchData.url).host;h==="always"?u.message=`${u.message} (${y})`:fi(u,"__sentry_fetch_url_host__",y)}catch{}throw u})}})}function Df(t,e){return!!t&&typeof t=="object"&&!!t[e]}function q4(t){return typeof t=="string"?t:t?Df(t,"url")?t.url:t.toString?t.toString():"":""}function FV(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:q4(r),method:Df(n,"method")?String(n.method).toUpperCase():J8(r)&&Df(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:q4(e),method:Df(e,"method")?String(e.method).toUpperCase():"GET"}}function BV(t){const[e,r]=t;try{if(typeof r=="object"&&r!==null&&"headers"in r&&r.headers)return new Headers(r.headers);if(J8(e))return new Headers(e.headers)}catch{}}const Gt=At;let B1=0;function N9(){return B1>0}function WV(){B1++,setTimeout(()=>{B1--})}function el(t,e={}){function r(o){return typeof o=="function"}if(!r(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(o2(t))return t}catch{return t}const n=function(...o){try{const a=o.map(s=>el(s,e));return t.apply(this,a)}catch(a){throw WV(),ZU(s=>{s.addEventProcessor(l=>(e.mechanism&&(R1(l,void 0),Kc(l,e.mechanism)),l.extra={...l.extra,arguments:o},l)),wH(a)}),a}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}K8(n,t),fi(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}function H4(){const t=n2(),{referrer:e}=Gt.document||{},{userAgent:r}=Gt.navigator||{},n={...e&&{Referer:e},...r&&{"User-Agent":r}};return{url:t,headers:n}}function d2(t,e){const r=p2(t,e),n={type:GV(e),value:XV(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function UV(t,e,r,n){const a=Kr()?.getOptions().normalizeDepth,s=QV(e),l={__serialized__:u9(e,a)};if(s)return{exception:{values:[d2(t,s)]},extra:l};const u={exception:{values:[{type:Wh(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:KV(e,{isUnhandledRejection:n})}]},extra:l};if(r){const f=p2(t,r);f.length&&(u.exception.values[0].stacktrace={frames:f})}return u}function $g(t,e){return{exception:{values:[d2(t,e)]}}}function p2(t,e){const r=e.stacktrace||e.stack||"",n=HV(e),o=VV(e);try{return t(r,n,o)}catch{}return[]}const qV=/Minified React error #\d+;/i;function HV(t){return t&&qV.test(t.message)?1:0}function VV(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function I9(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function GV(t){const e=t?.name;return!e&&I9(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function XV(t){const e=t?.message;return I9(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?B4(e.error):B4(t):"No error message"}function JV(t,e,r,n){const o=r?.syntheticException||void 0,a=f2(t,e,o,n);return Kc(a),a.level="error",r?.event_id&&(a.event_id=r.event_id),$d(a)}function YV(t,e,r="info",n,o){const a=n?.syntheticException||void 0,s=W1(t,e,a,o);return s.level=r,n?.event_id&&(s.event_id=n.event_id),$d(s)}function f2(t,e,r,n,o){let a;if(G8(e)&&e.error)return $g(t,e.error);if(Q3(e)||kU(e)){const s=e;if("stack"in e)a=$g(t,e);else{const l=s.name||(Q3(s)?"DOMError":"DOMException"),u=s.message?`${l}: ${s.message}`:l;a=W1(t,u,r,n),R1(a,u)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return Fh(e)?$g(t,e):Qu(e)||Wh(e)?(a=UV(t,e,r,o),Kc(a,{synthetic:!0}),a):(a=W1(t,e,r,n),R1(a,`${e}`),Kc(a,{synthetic:!0}),a)}function W1(t,e,r,n){const o={};if(n&&r){const a=p2(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]}),Kc(o,{synthetic:!0})}if(t2(e)){const{__sentry_template_string__:a,__sentry_template_values__:s}=e;return o.logentry={message:a,params:s},o}return o.message=e,o}function KV(t,{isUnhandledRejection:e}){const r=RU(t),n=e?"promise rejection":"exception";return G8(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:Wh(t)?`Event \`${ZV(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function ZV(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function QV(t){return Object.values(t).find(e=>e instanceof Error)}class eG extends ZH{constructor(e){const r=tG(e),n=Gt.SENTRY_SDK_SOURCE||RH();iV(r,"browser",["browser"],n),r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:r.sendDefaultPii?"auto":"never",...r._metadata.sdk.settings}),super(r);const{sendDefaultPii:o,sendClientReports:a,enableLogs:s,_experiments:l,enableMetrics:u}=this._options,f=u??l?.enableMetrics??!0;Gt.document&&(a||s||f)&&Gt.document.addEventListener("visibilitychange",()=>{Gt.document.visibilityState==="hidden"&&(a&&this._flushOutcomes(),s&&j1(this),f&&b9(this))}),o&&this.on("beforeSendSession",aV)}eventFromException(e,r){return JV(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return YV(this._options.stackParser,e,r,n,this._options.attachStacktrace)}_prepareEvent(e,r,n,o){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n,o)}}function tG(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Gt.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const rG=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,tn=At,nG=1e3;let V4,U1,q1;function oG(t){fs("dom",t),hs("dom",aG)}function aG(){if(!tn.document)return;const t=_o.bind(null,"dom"),e=G4(t,!0);tn.document.addEventListener("click",e,!1),tn.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const o=tn[r]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(Rn(o,"addEventListener",function(a){return function(s,l,u){if(s==="click"||s=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},h=f[s]=f[s]||{refCount:0};if(!h.handler){const d=G4(t);h.handler=d,a.call(this,s,d,u)}h.refCount++}catch{}return a.call(this,s,l,u)}}),Rn(o,"removeEventListener",function(a){return function(s,l,u){if(s==="click"||s=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},h=f[s];h&&(h.refCount--,h.refCount<=0&&(a.call(this,s,h.handler,u),h.handler=void 0,delete f[s]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,s,l,u)}}))})}function iG(t){if(t.type!==U1)return!1;try{if(!t.target||t.target._sentryId!==q1)return!1}catch{}return!0}function sG(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function G4(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=cG(r);if(sG(r.type,n))return;fi(r,"_sentryCaptured",!0),n&&!n._sentryId&&fi(n,"_sentryId",Kn());const o=r.type==="keypress"?"input":r.type;iG(r)||(t({event:r,name:o,global:e}),U1=r.type,q1=n?n._sentryId:void 0),clearTimeout(V4),V4=tn.setTimeout(()=>{q1=void 0,U1=void 0},nG)}}function cG(t){try{return t.target}catch{return null}}let rf;function P9(t){const e="history";fs(e,t),hs(e,lG)}function lG(){if(tn.addEventListener("popstate",()=>{const e=tn.location.href,r=rf;if(rf=e,r===e)return;_o("history",{from:r,to:e})}),!IV())return;function t(e){return function(...r){const n=r.length>2?r[2]:void 0;if(n){const o=rf,a=uG(String(n));if(rf=a,o===a)return e.apply(this,r);_o("history",{from:o,to:a})}return e.apply(this,r)}}Rn(tn.history,"pushState",t),Rn(tn.history,"replaceState",t)}function uG(t){try{return new URL(t,tn.location.origin).toString()}catch{return t}}const Rf={};function dG(t){const e=Rf[t];if(e)return e;let r=tn[t];if(F1(r))return Rf[t]=r.bind(tn);const n=tn.document;if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a?.[t]&&(r=a[t]),n.head.removeChild(o)}catch(o){rG&&et.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return r&&(Rf[t]=r.bind(tn))}function pG(t){Rf[t]=void 0}const Su="__sentry_xhr_v3__";function fG(t){fs("xhr",t),hs("xhr",hG)}function hG(){if(!tn.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const o=new Error,a=ba()*1e3,s=va(n[0])?n[0].toUpperCase():void 0,l=mG(n[1]);if(!s||!l)return e.apply(r,n);r[Su]={method:s,url:l,request_headers:{}},s==="POST"&&l.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const u=()=>{const f=r[Su];if(f&&r.readyState===4){try{f.status_code=r.status}catch{}const h={endTimestamp:ba()*1e3,startTimestamp:a,xhr:r,virtualError:o};_o("xhr",h)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(f,h,d){return u(),f.apply(h,d)}}):r.addEventListener("readystatechange",u),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(f,h,d){const[m,y]=d,v=h[Su];return v&&va(m)&&va(y)&&(v.request_headers[m.toLowerCase()]=y),f.apply(h,d)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const o=r[Su];if(!o)return e.apply(r,n);n[0]!==void 0&&(o.body=n[0]);const a={startTimestamp:ba()*1e3,xhr:r};return _o("xhr",a),e.apply(r,n)}})}function mG(t){if(va(t))return t;try{return t.toString()}catch{}}const _G=40;function gG(t,e=dG("fetch")){let r=0,n=0;async function o(a){const s=a.body.length;r+=s,n++;const l={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};try{const u=await e(t.url,l);return{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}}catch(u){throw pG("fetch"),u}finally{r-=s,n--}}return GH(t,o,u2(t.bufferSize||_G))}const Vh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,yG=30,vG=50;function H1(t,e,r,n){const o={filename:t,function:e===""?as:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}const bG=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,wG=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,SG=/\((\S*)(?::(\d+))(?::(\d+))\)/,xG=/at (.+?) ?\(data:(.+?),/,kG=t=>{const e=t.match(xG);if(e)return{filename:``,function:e[1]};const r=bG.exec(t);if(r){const[,o,a,s]=r;return H1(o,as,+a,+s)}const n=wG.exec(t);if(n){if(n[2]?.indexOf("eval")===0){const l=SG.exec(n[2]);l&&(n[2]=l[1],n[3]=l[2],n[4]=l[3])}const[a,s]=j9(n[1]||as,n[2]);return H1(s,a,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},CG=[yG,kG],$G=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,EG=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,TG=t=>{const e=$G.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=EG.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||as;return[o,n]=j9(o,n),H1(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},OG=[vG,TG],DG=[CG,OG],RG=q8(...DG),j9=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:as,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},nf=1024,MG="Breadcrumbs",AG=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:MG,setup(r){e.console&&kV(jG(r)),e.dom&&oG(PG(r,e.dom)),e.xhr&&fG(zG(r)),e.fetch&&zV(LG(r)),e.history&&P9(FG(r)),e.sentry&&r.on("beforeSendEvent",IG(r))}}}),NG=AG;function IG(t){return function(r){Kr()===t&&is({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Xi(r)},{event:r})}}function PG(t,e){return function(n){if(Kr()!==t)return;let o,a,s=typeof e=="object"?e.serializeAttribute:void 0,l=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;l&&l>nf&&(Vh&&et.warn(`\`dom.maxStringLength\` cannot exceed ${nf}, but a value of ${l} was configured. Sentry will use ${nf} instead.`),l=nf),typeof s=="string"&&(s=[s]);try{const f=n.event,h=BG(f)?f.target:f;o=Y8(h,{keyAttrs:s,maxStringLength:l}),a=DU(h)}catch{o=""}if(o.length===0)return;const u={category:`ui.${n.name}`,message:o};a&&(u.data={"ui.component_name":a}),is(u,{event:n.event,name:n.name,global:n.global})}}function jG(t){return function(r){if(Kr()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:$V(r.level),message:r4(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${r4(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;is(n,{input:r.args,level:r.level})}}function zG(t){return function(r){if(Kr()!==t)return;const{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[Su];if(!n||!o||!a)return;const{method:s,url:l,status_code:u,body:f}=a,h={method:s,url:l,status_code:u},d={xhr:r.xhr,input:f,startTimestamp:n,endTimestamp:o},m={category:"xhr",data:h,type:"http",level:A9(u)};t.emit("beforeOutgoingRequestBreadcrumb",m,d),is(m,d)}}function LG(t){return function(r){if(Kr()!==t)return;const{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o},s={category:"fetch",data:r.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",s,a),is(s,a)}else{const a=r.response,s={...r.fetchData,status_code:a?.status},l={input:r.args,response:a,startTimestamp:n,endTimestamp:o},u={category:"fetch",data:s,type:"http",level:A9(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",u,l),is(u,l)}}}function FG(t){return function(r){if(Kr()!==t)return;let n=r.from,o=r.to;const a=Sg(Gt.location.href);let s=n?Sg(n):void 0;const l=Sg(o);s?.path||(s=a),a.protocol===l.protocol&&a.host===l.host&&(o=l.relative),a.protocol===s.protocol&&a.host===s.host&&(n=s.relative),is({category:"navigation",data:{from:n,to:o}})}}function BG(t){return!!t&&!!t.target}const WG="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),UG="BrowserApiErrors",qG=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:UG,setupOnce(){e.setTimeout&&Rn(Gt,"setTimeout",X4),e.setInterval&&Rn(Gt,"setInterval",X4),e.requestAnimationFrame&&Rn(Gt,"requestAnimationFrame",VG),e.XMLHttpRequest&&"XMLHttpRequest"in Gt&&Rn(XMLHttpRequest.prototype,"send",GG);const r=e.eventTarget;r&&(Array.isArray(r)?r:WG).forEach(o=>XG(o,e))}}}),HG=qG;function X4(t){return function(...e){const r=e[0];return e[0]=el(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${di(t)}`}}),t.apply(this,e)}}function VG(t){return function(e){return t.apply(this,[el(e,{mechanism:{data:{handler:di(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function GG(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&Rn(r,o,function(a){const s={mechanism:{data:{handler:di(a)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},l=o2(a);return l&&(s.mechanism.data.handler=di(l)),el(a,s)})}),t.apply(this,e)}}function XG(t,e){const n=Gt[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(Rn(n,"addEventListener",function(o){return function(a,s,l){try{JG(s)&&(s.handleEvent=el(s.handleEvent,{mechanism:{data:{handler:di(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&YG(this,a,s),o.apply(this,[a,el(s,{mechanism:{data:{handler:di(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),l])}}),Rn(n,"removeEventListener",function(o){return function(a,s,l){try{const u=s.__sentry_wrapped__;u&&o.call(this,a,u,l)}catch{}return o.call(this,a,s,l)}}))}function JG(t){return typeof t.handleEvent=="function"}function YG(t,e,r){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,r)}const KG=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof Gt.document>"u"){Vh&&et.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}$4({ignoreDuration:!0}),kg();const r=ms();let n=r.getUser();r.addScopeListener(o=>{const a=o.getUser();(n?.id!==a?.id||n?.ip_address!==a?.ip_address)&&(kg(),n=a)}),e==="route"&&P9(({from:o,to:a})=>{o!==a&&($4({ignoreDuration:!0}),kg())})}}},ZG="CultureContext",QG=(()=>({name:ZG,preprocessEvent(t){const e=J4();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})},processSegmentSpan(t){const e=J4();e&&h9(t,{"culture.locale":e.locale,"culture.timezone":e.timezone,"culture.calendar":e.calendar})}})),eX=QG;function J4(){try{const t=Gt.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const tX="GlobalHandlers",rX=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:tX,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(oX(r),Y4("onerror")),e.onunhandledrejection&&(aX(r),Y4("onunhandledrejection"))}}}),nX=rX;function oX(t){bU(e=>{const{stackParser:r,attachStacktrace:n}=z9();if(Kr()!==t||N9())return;const{msg:o,url:a,line:s,column:l,error:u}=e,f=cX(f2(r,u||o,void 0,n,!1),a,s,l);f.level="error",m9(f,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function aX(t){SU(e=>{const{stackParser:r,attachStacktrace:n}=z9();if(Kr()!==t||N9())return;const o=iX(e),a=Bh(o)?sX(o):f2(r,o,void 0,n,!0);a.level="error",m9(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function iX(t){if(Bh(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function sX(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function cX(t,e,r,n){const o=t.exception=t.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[];return u.length===0&&u.push({colno:n,lineno:r,filename:lX(e)??n2(),function:as,in_app:!0}),t}function Y4(t){Vh&&et.log(`Global Handler attached: ${t}`)}function z9(){return Kr()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function lX(t){if(!(!va(t)||t.length===0))return t.startsWith("data:")?`<${dH(t,!1)}>`:t}const uX=()=>({name:"HttpContext",preprocessEvent(t){if(!Gt.navigator&&!Gt.location&&!Gt.document)return;const e=H4(),r={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:r}},processSegmentSpan(t){if(!Gt.navigator&&!Gt.location&&!Gt.document)return;const e=H4();h9(t,{"url.full":e.url||void 0,"http.request.header.user_agent":e.headers["User-Agent"],"http.request.header.referer":e.headers.Referer})}}),dX="cause",pX=5,fX="LinkedErrors",hX=((t={})=>{const e=t.limit||pX,r=t.key||dX;return{name:fX,preprocessEvent(n,o,a){const s=a.getOptions();SV(d2,s.stackParser,r,e,n,o)}}}),mX=hX;function _X(){return gX()?(Vh&&cl(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function gX(){if(typeof Gt.window>"u")return!1;const t=Gt;if(t.nw||!(t.chrome||t.browser)?.runtime?.id)return!1;const r=n2();return!(Gt===Gt.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}function yX(t){return[hV(),uV(),NV(),HG(),NG(),nX(),mX(),D9(),uX(),eX(),KG()]}function vX(t={}){const e=!t.skipBrowserExtensionCheck&&_X();let r=t.defaultIntegrations==null?yX():t.defaultIntegrations;const n={...t,enabled:e?!1:t.enabled,stackParser:yU(t.stackParser||RG),integrations:TH({integrations:t.integrations,defaultIntegrations:r}),transport:t.transport||gG};return nV(eG,n)}const bX=Ze(C.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddCircle"),wX=Ze(C.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),SX=Ze(C.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),xX=Ze(C.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),kX=Ze(C.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),L9=Ze(C.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),CX=Ze(C.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Gh=Ze(C.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),wi=Ze(C.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),hi=Ze(C.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),h2=Ze(C.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),$X=Ze(C.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),EX=Ze(C.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),ju=Ze(C.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),F9=Ze(C.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),TX=Ze(C.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),OX=Ze(C.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),DX=Ze(C.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),RX=Ze(C.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),MX=Ze(C.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),AX=Ze(C.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),NX=Ze(C.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),B9=Ze(C.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),IX=Ze(C.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),PX=Ze(C.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),jX=Ze(C.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),zX=Ze(C.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),LX=Ze(C.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),K4=Ze(C.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),FX=Ze(C.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),BX=Ze(C.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),V1=Ze(C.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),WX=Ze(C.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),UX=Ze(C.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"}),"Security"),qX=Ze(C.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),HX=Ze(C.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),VX=Ze(C.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),GX=Ze(C.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),XX=Ze(C.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),JX=Ze(C.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),YX=Ze(C.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),KX=Ze(C.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),ZX=Ze(C.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");function QX(){console.log(` -██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗ -██║██╔═══██╗██╔══██╗██╔══██╗██╔═══██╗██║ ██╔╝██╔════╝██╔══██╗ -██║██║ ██║██████╔╝██████╔╝██║ ██║█████╔╝ █████╗ ██████╔╝ -██║██║ ██║██╔══██╗██╔══██╗██║ ██║██╔═██╗ ██╔══╝ ██╔══██╗ -██║╚██████╔╝██████╔╝██║ ██║╚██████╔╝██║ ██╗███████╗██║ ██║ -╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ -`),console.log("Nice to see you here! :) Join our dev community here https://github.com/ioBroker/ioBroker or here https://github.com/iobroker-community-adapters"),console.log("Help us to create open source project with reactJS!"),console.log("See you :)")}function eJ(t){const e=t.themeType||"light",r=t.size||300;return _.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:e==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("div",{style:{width:r,height:r,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",zIndex:2}},_.createElement("svg",{viewBox:"0 0 500 500",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%"},_.createElement("circle",{strokeWidth:"5",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"200"}),_.createElement("circle",{strokeWidth:"5",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"133"}),_.createElement("circle",{strokeWidth:"5",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"83"}),_.createElement("circle",{strokeWidth:"5",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"66"}),_.createElement("circle",{strokeWidth:"15",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"15"}),_.createElement("g",null,_.createElement("line",{y2:"185",x2:"250",y1:"240",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"}),_.createElement("line",{y2:"315",x2:"250",y1:"260",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"}),_.createElement("g",{transform:"rotate(60, 250, 250)"},_.createElement("line",{y2:"185",x2:"250",y1:"240",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"}),_.createElement("line",{y2:"315",x2:"250",y1:"260",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"})),_.createElement("g",{transform:"rotate(120, 250, 250)"},_.createElement("line",{y2:"185",x2:"250",y1:"240",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"}),_.createElement("line",{y2:"315",x2:"250",y1:"260",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"})),[0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345].map(n=>_.createElement("line",{key:n,transform:`rotate(${n}, 250, 250)`,y2:"250",x2:"115",y1:"240",x1:"135",strokeWidth:"5",stroke:"#01BBF5",fill:"none"})),_.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 250 250",to:"360 250 250",dur:"10s",additive:"sum",repeatCount:"indefinite"})),_.createElement("path",{d:"M 56.089 160.250 C 55.077 162.588, 46.037 182.950, 36 205.500 C 25.963 228.050, 16.923 248.412, 15.911 250.750 L 14.071 255 28.286 254.976 L 42.500 254.952 47.931 242.226 C 50.918 235.227, 54.366 227.250, 55.592 224.500 L 57.822 219.500 66.383 237.250 L 74.945 255 88.973 255 C 96.688 255, 103 254.841, 103 254.646 C 103 254.452, 100.043 248.071, 96.430 240.466 L 89.859 226.638 91.603 222.771 C 92.563 220.644, 93.660 218.710, 94.043 218.473 C 94.426 218.237, 108.609 246.609, 125.562 281.522 L 156.384 345 166.071 345 C 175.705 345, 175.763 344.985, 176.856 342.250 C 179.911 334.602, 208 260.765, 208 260.383 C 208 260.138, 202.546 260.065, 195.879 260.219 L 183.759 260.500 174.629 285.244 C 169.608 298.853, 165.254 309.990, 164.952 309.994 C 164.651 309.997, 148.901 277.389, 129.952 237.532 C 111.004 197.674, 95.275 165.057, 95 165.049 C 94.725 165.041, 90.685 172.415, 86.022 181.435 C 81.358 190.455, 77.308 197.689, 77.022 197.510 C 76.735 197.331, 72.675 187.920, 68 176.598 C 63.325 165.275, 59.147 156.008, 58.714 156.005 C 58.282 156.002, 57.101 157.912, 56.089 160.250 M 55.294 168.694 C 52.241 175.842, 52.166 176.323, 53.718 178.692 L 55.349 181.182 56.706 178.591 C 57.453 177.166, 58.406 176, 58.825 176 C 59.244 176, 60.777 178.363, 62.232 181.250 C 64.829 186.403, 64.879 186.440, 64.939 183.250 C 64.973 181.463, 65.422 180, 65.937 180 C 66.724 180, 60.176 162.824, 58.920 161.596 C 58.689 161.370, 57.057 164.564, 55.294 168.694 M 91.698 175.542 C 89.205 180.626, 89.099 181.308, 90.410 183.792 L 91.840 186.500 92.926 183.669 C 94.349 179.961, 96.024 180.653, 98.588 186.009 L 100.676 190.370 101.324 187.132 C 101.832 184.592, 101.217 182.395, 98.473 176.947 C 96.549 173.126, 94.849 170, 94.696 170 C 94.542 170, 93.193 172.494, 91.698 175.542 M 157.005 192.607 C 143.168 197.636, 134.999 209.202, 135.001 223.761 C 135.002 232.756, 138.710 240.755, 145.856 247.180 C 152.159 252.848, 158.121 255, 167.518 255 C 173.509 255, 175.684 254.499, 180.811 251.936 C 200.823 241.936, 205.088 216.155, 189.337 200.403 C 181.479 192.546, 166.868 189.022, 157.005 192.607 M 206 223 L 206 255 215.472 255 L 224.944 255 225.222 241.419 L 225.500 227.837 230.500 234.660 C 233.250 238.412, 238.002 244.636, 241.060 248.491 L 246.620 255.500 253.810 255.168 L 261 254.836 261 222.918 L 261 191 251.528 191 L 242.056 191 241.778 204.552 L 241.500 218.104 231.111 204.552 L 220.722 191 213.361 191 L 206 191 206 223 M 285.821 192.331 C 276.229 195.045, 270.010 202.130, 270.004 210.349 C 269.995 221.957, 275.913 226.925, 295.801 232.006 C 300.753 233.271, 302.228 235.609, 299.412 237.730 C 296.739 239.746, 288.369 238.774, 281.563 235.657 L 276.132 233.171 272.469 239.320 C 268.119 246.621, 268.341 247.287, 276.524 251.500 C 281.399 254.010, 283.761 254.556, 290.977 254.842 C 302.365 255.294, 307.420 253.846, 312.603 248.649 C 317.383 243.855, 319.463 236.989, 318.043 230.693 C 316.210 222.562, 311.258 218.610, 297.878 214.599 C 288.025 211.645, 285.443 209.631, 288.538 207.315 C 291.104 205.394, 302.270 205.946, 306.769 208.217 L 310.039 209.866 313.104 203.794 C 316.516 197.035, 316.622 197.304, 309.167 193.844 C 303.663 191.289, 292.140 190.542, 285.821 192.331 M 322 199 L 322 207 330 207 L 338 207 338 231 L 338 255 347.500 255 L 357 255 357 231.044 L 357 207.088 364.250 206.794 L 371.500 206.500 371.792 198.750 L 372.084 191 347.042 191 L 322 191 322 199 M 379 223 L 379 255 401 255 L 423 255 423 247.500 L 423 240 409.500 240 L 396 240 396 235 L 396 230 407.500 230 L 419 230 419 222 L 419 214 407.500 214 L 396 214 396 210.529 L 396 207.058 409.250 206.779 L 422.500 206.500 422.792 198.750 L 423.084 191 401.042 191 L 379 191 379 223 M 433 223 L 433 255 442 255 L 451 255 451 247 L 451 239 454.800 239 C 458.555 239, 458.645 239.092, 462.469 246.937 L 466.339 254.874 476.172 255.187 C 481.580 255.359, 486.003 255.111, 486.002 254.636 C 486.001 254.160, 483.277 249.264, 479.949 243.754 C 473.914 233.765, 473.903 233.732, 475.836 231.619 C 480.222 226.824, 482.359 220.791, 482.431 213 C 482.512 204.192, 480.272 198.822, 475.031 195.260 C 469.795 191.703, 465.527 191.012, 448.750 191.006 L 433 191 433 223 M 448.210 213.250 L 448.500 221.500 455.338 221.500 C 461.319 221.500, 462.417 221.204, 464.088 219.139 C 465.995 216.785, 466.556 212.613, 465.379 209.545 C 464.356 206.879, 459.449 205, 453.509 205 L 447.919 205 448.210 213.250 M 163.169 209.017 C 156.337 210.583, 151.176 218.533, 152.339 225.701 C 154.672 240.077, 175.040 242.355, 180.446 228.844 C 184.978 217.516, 175.176 206.267, 163.169 209.017 M 216.676 271.715 C 216.037 272.750, 188 344.021, 188 344.612 C 188 344.863, 192.811 344.940, 198.691 344.784 L 209.381 344.500 211.894 336.750 L 214.406 329 226.550 329 L 238.694 329 242.097 336.992 L 245.500 344.983 255.250 344.992 C 262.399 344.998, 264.994 344.667, 264.979 343.750 C 264.968 343.063, 258.477 326.525, 250.555 307 L 236.150 271.500 226.656 271.215 C 221.434 271.058, 216.943 271.283, 216.676 271.715 M 273 307 C 273 326.800, 272.887 343.337, 272.750 343.750 C 272.613 344.163, 277.102 344.628, 282.727 344.785 L 292.954 345.069 293.227 327.379 L 293.500 309.689 307 327.336 L 320.500 344.982 328.262 344.991 L 336.025 345 335.762 308.250 L 335.500 271.500 326.750 271.211 L 318 270.922 317.882 286.711 C 317.816 295.395, 317.816 302.837, 317.882 303.250 C 317.947 303.663, 317.808 304, 317.574 304 C 317.340 304, 310.809 296.575, 303.060 287.500 L 288.971 271 280.985 271 L 273 271 273 307 M 223.254 303.048 L 220.078 312 226.539 312 C 230.093 312, 233 311.861, 233 311.691 C 233 311.257, 226.886 294.553, 226.636 294.302 C 226.522 294.189, 225.001 298.125, 223.254 303.048",stroke:"none",fill:t.themeType==="dark"?"#EEE":"#111",fillRule:"evenodd"}))))}function tJ(t){const e=t.themeType||"dark",r=t.size||300;return _.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:e==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("div",{style:{width:r,height:r,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",zIndex:2}},_.createElement("svg",{viewBox:"0 0 2000 1728",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#00af78"}},_.createElement("style",null,` - @keyframes jump { - 0% { fill: #00af78; } - 25% { fill: #00af78; } - 25.01% { fill: #00785A; } - 100% { fill: #00785A; } - } - .bar { animation: jump 2s linear infinite; } - .bar.bar1 { animation-delay: 0s; } - .bar.bar2 { animation-delay: 0.5s; } - .bar.bar3 { animation-delay: 1s; } - .bar.bar4 { animation-delay: 1.5s; } - `),_.createElement("path",{d:"M944.5 76.5a852 852 0 0 1 129 6.5 598 598 0 0 1 51 9c19.36 5.344 38.69 10.677 58 16a834 834 0 0 1 117 52 698 698 0 0 1 95 69c2.67 2 5.33 2 8 0a410 410 0 0 1 37-28 18.4 18.4 0 0 1 6-.5q.495 10.51 4.5 20a3200 3200 0 0 0 18 73 3553 3553 0 0 0 19 66 48.8 48.8 0 0 0 2.5 11 4.94 4.94 0 0 1-1 2.5c-2.33.667-4.67.667-7 0a19 19 0 0 0-5-3 209 209 0 0 0-24-7 292 292 0 0 0-20-8c-8.68-2.341-17.34-4.674-26-7a221 221 0 0 0-21-8 337 337 0 0 1-34-11 1272 1272 0 0 1-43-13q-2.91-3.23-1.5-7.5a671 671 0 0 0 42.5-35l-1.5-3a289 289 0 0 0-21.5-18.5c-9.31-6.637-18.65-13.304-28-20a731 731 0 0 1-44-26 175 175 0 0 1-30-15 568 568 0 0 0-50-20 1038 1038 0 0 1-53-16 1070 1070 0 0 0-48-10 1087 1087 0 0 1-55-6 1379 1379 0 0 0-99 1 203.5 203.5 0 0 1-35 5Q629.152 192.558 494 414.5a132 132 0 0 1-10 17 1277 1277 0 0 0-21 43l-11 27a637 637 0 0 1-14 41 8191 8191 0 0 1-16 67 50.7 50.7 0 0 0-1 15 11.3 11.3 0 0 0 1.5 3.5 327 327 0 0 1 40 8q62.273 18.89 115 56 70.252 53.736 113.5 130.5 59.461 114.478 41 243c-.667 1.33-1.333 2.67-2 4a335 335 0 0 1-3 18 507 507 0 0 1-20 53 309 309 0 0 1-10 17c-1.699.91-3.533 1.24-5.5 1 .377-40.1-3.456-79.77-11.5-119l-3-6a154.4 154.4 0 0 0-7-27Q629.1 886.514 525.5 812a44.5 44.5 0 0 1-9.5-5.5l-1.5.5q69.98 79.772 110.5 177.5a684 684 0 0 1 21 74c.389 8.51 1.722 16.84 4 25q1.302 30.765 2.5 61.5-2.217 6.885.5 13.5l17.5 13.5a1597 1597 0 0 0 61 36 3333 3333 0 0 1 61 26q25.04 7.53 50 15a771 771 0 0 0 51 10 526.7 526.7 0 0 0 120 5c15.24-2.5 30.57-4.17 46-5 154.49-25.8 278.99-100.96 373.5-225.5 36-49.308 63.67-102.974 83-161 .29-5.821 1.96-11.154 5-16q7.2-33.086 15-66a343 343 0 0 1 4-30c-5.29 5.217-9.62 11.217-13 18-26.71 37.032-60.54 65.866-101.5 86.5a471 471 0 0 1-27 11 50.1 50.1 0 0 0-17 5q-13.77 1.158-27 5-33 2.977-66 0a153 153 0 0 0-29-5c-52.38-14.072-96.21-41.572-131.5-82.5q-58.935-72.777-58.5-167.5.345-16.269 1.5-32.5 10.89-72.278 57-128c66.33-75.505 149.5-104.339 249.5-86.5a700 700 0 0 1 48 16c4.24 2.853 8.57 5.52 13 8l6 2c20.5 12.068 38.84 26.735 55 44q2.37 1.06 4.5 2.5a442 442 0 0 0 25.5-24.5c2.59-1.601 5.26-1.767 8-.5a1168 1168 0 0 0 25.5 55 1221 1221 0 0 0 16 45c.41 6.057 2.08 11.724 5 17 .58 6.637 2.24 12.97 5 19a778 778 0 0 1 10 55c18.69 162.392-18.64 309.725-112 442-15.67 19-31.33 38-47 57-34.61 35.92-72.44 68.42-113.5 97.5q-16.53 10.545-33 21a516 516 0 0 1-35 18l-3 3c-14.49 6.96-29.16 13.63-44 20-26.02 9.5-52.35 18.17-79 26q-132.478 31.62-267 9a1979 1979 0 0 0-61-14 421 421 0 0 1-25-9c-3.333-.67-6.667-1.33-10-2-20.636-8.65-41.303-17.32-62-26-124.377-64.5-220.21-158.33-287.5-281.5a1010 1010 0 0 1-17-39l-3-4a395 395 0 0 0-15-41 374 374 0 0 1-11-36l-9-39a366 366 0 0 0-6-36 1642 1642 0 0 1-5.5-92.5q5.24-279.871 211-466 61.788-53.755 135-91a1492 1492 0 0 1 47-21l28-10 37-11a1956 1956 0 0 1 46-10 1145 1145 0 0 1 87-10.5m367 359c12.69-.014 25.35.486 38 1.5a399 399 0 0 1 39 10c56.18 22.509 95.34 62.009 117.5 118.5 21.9 63.822 14.57 123.822-22 180-20.98 28.71-47.15 51.21-78.5 67.5-37.69 16.585-77.02 21.585-118 15-69.62-14.983-118.78-54.816-147.5-119.5a284 284 0 0 1-11-39q-15.24-126.17 85.5-201.5c29.7-18.676 62.04-29.509 97-32.5"}),_.createElement("path",{d:"M899.5 258.5a2829 2829 0 0 0 135 0c5.33.53 10.66 1.03 16 1.5l1.5 1.5q.255 125.792 1.5 251.5c-.56 6.766-2.73 12.932-6.5 18.5a587 587 0 0 0-9.5 25.5 71.8 71.8 0 0 1-5.5 20.5 575 575 0 0 0-5.5 52.5 587 587 0 0 0 5.5 55.5 515 515 0 0 0 18.5 58.5c-.24.873-.57 1.707-1 2.5a4183 4183 0 0 1-152 .5 11.3 11.3 0 0 1-1.5-3.5 58052 58052 0 0 1 0-482 30 30 0 0 1 3.5-3"}),_.createElement("path",{d:"M717.5 423.5q71.002-.25 142 .5l1.5 1.5q.713 154.588.5 309 .27 6.043-2 11.5a2513 2513 0 0 1-141 1 6.98 6.98 0 0 1-3.5-2.5 37080 37080 0 0 1-1.5-314.5q-.099-4.63 4-6.5"}),_.createElement("path",{d:"M1360.5 487.5c2.13-.353 3.47.48 4 2.5-.74 4.181-1.57 8.348-2.5 12.5a13569 13569 0 0 1-34 102 27.2 27.2 0 0 0-1 8c1.33 1.838 3.16 2.838 5.5 3a937 937 0 0 1 86 0 4.95 4.95 0 0 1-.5 3 820 820 0 0 0-27 29q-50.445 59.205-100.5 119-5.535 6.54-12 12a3.6 3.6 0 0 1-1.5-1q-1.005-3 0-6a1048 1048 0 0 0 16-61c2.94-5.581 4.6-11.581 5-18l3-6a156.5 156.5 0 0 1 5-24 11.3 11.3 0 0 0-3.5-1.5l-90-1a3.6 3.6 0 0 1-1-1.5c49.72-57.045 99.38-114.045 149-171"},_.createElement("animate",{attributeName:"fill",values:`#00af78;${e==="dark"?"#ffffff":"#00785A"};#00af78`,dur:"2s",repeatCount:"indefinite"})),_.createElement("path",{className:"bar bar1",d:"M544.5 537.5q68.283-.426 136.5 1a2379 2379 0 0 1 1.5 96.5l-.5 92.5q-.918 3.798-4.5 2.5-50.249-64.14-122-103-8.75-1.76-14.5-8.5-1-39 0-78a30 30 0 0 1 3.5-3M721.5 777.5q60.628-.732 121 1.5 37.233 79.24 74.5 158.5 1 2 0 4a3116 3116 0 0 1-136.5.5 417 417 0 0 1-8.5-38.5 962 962 0 0 1-15-47 713 713 0 0 0-21-46 732 732 0 0 1-16-27q-1.122-3.51 1.5-6"}),_.createElement("path",{className:"bar bar2",d:"M879.5 777.5q93-.25 186 .5c18.83 33.513 43.5 62.179 74 86a144.6 144.6 0 0 1 23 16q13.5 5.88 25.5 14.5a574 574 0 0 1 22.5 45c-.33 1-.67 2-1 3-84.63-.161-169.3.006-254 .5q-3.752-3.208-6.5-7.5a2804 2804 0 0 1-8-20 252 252 0 0 1-13-24 3463 3463 0 0 0-23-53 1506 1506 0 0 1-27-55q-1.122-3.51 1.5-6"}),_.createElement("path",{className:"bar bar3",d:"M786.5 971.5q68.56.08 137 0a29.2 29.2 0 0 1 7 2.5 9467 9467 0 0 0 68.5 141.5c4 11.67 9.34 22.67 16 33 1.47 4.53-.2 6.87-5 7-86.772-.2-173.606-.37-260.5-.5-1.754-4.38-.921-8.22 2.5-11.5a411 411 0 0 1 10-25 578 578 0 0 0 10-32 99.6 99.6 0 0 1 5-22q2.12-21.06 5-42l1-48q1.478-1.971 3.5-3"}),_.createElement("path",{className:"bar bar4",d:"M970.5 971.5c83.58.74 167.25.74 251 0 2.73.182 5.39.682 8 1.5 18.09 35.51 36.26 71.01 54.5 106.5 7.67 13.67 15.33 27.33 23 41 2.16 3.76 2.82 7.76 2 12-10.9 7.75-22.4 14.59-34.5 20.5-2.92.99-5.92 1.65-9 2-68.48.48-136.82.65-205 .5-4.11-.08-7.28-1.74-9.5-5a3780 3780 0 0 0-67-140 71388 71388 0 0 1-12-28q-5.977-4.855-1.5-11"}),_.createElement("path",{d:"M83.5 1377.5a332.5 332.5 0 0 0 50.5 0c3.056.58 6.056 1.24 9 2a31209 31209 0 0 1 126.5 194 3.6 3.6 0 0 0 1.5-1c.652-63.71.652-127.37 0-191 .51-2.76 2.177-4.09 5-4a279.4 279.4 0 0 0 47 0c2.145-.1 3.979.56 5.5 2 .529 54.71.862 109.54 1 164.5l-.5 116.5c-.575 3.3-2.575 4.96-6 5a490 490 0 0 0-52 0q-5.74-1.74-10-6a14653 14653 0 0 0-125.5-193q-2.01 1.785-2 4.5a6168 6168 0 0 1 .5 191.5q-2.794 3.675-7.5 3a219.4 219.4 0 0 0-41 0q-5.057-.81-5.5-6c-.667-93.33-.667-186.67 0-280a19.2 19.2 0 0 0 3.5-2"}),_.createElement("path",{d:"M986.5 1377.5c17.32 1.09 34.66 1.25 52 .5 3.23 1.94 5.4 4.78 6.5 8.5 9.36 38.7 18.7 77.37 28 116 3.05 6.64 4.72 13.64 5 21 2.95 5.96 4.62 12.29 5 19 4.15 16.12 8.49 32.12 13 48 2.04-1.08 3.38-2.75 4-5 4.23-19.04 8.56-38.04 13-57 4.55-15.3 8.88-30.64 13-46 .76-4.32 1.43-8.65 2-13 4.33-15.33 8.66-30.66 13-46 2.08-12.15 4.75-24.15 8-36 .85-3.2 2.35-6.03 4.5-8.5 19.85-.22 39.68-.72 59.5-1.5 2.3-.01 4.47.49 6.5 1.5 6.53 21.92 12.37 44.09 17.5 66.5 2.94 6.32 4.61 12.99 5 20 3.56 15.24 7.89 30.24 13 45 2.47 11.74 5.14 23.41 8 35a7.4 7.4 0 0 0 2 3c2.38 11.75 5.04 23.41 8 35 1.33 3.33 3.16 6.33 5.5 9a2872 2872 0 0 1 27.5-111c.39-7.01 2.06-13.68 5-20 .39-7.01 2.06-13.68 5-20 .57-4.35 1.24-8.68 2-13 4.34-16 8.67-32 13-48l1.5-1.5c16.17-.29 32.34-.79 48.5-1.5q5.385-.045 10.5 1.5c.58.89.91 1.89 1 3-2.02 4.57-3.18 9.4-3.5 14.5-2.84 6-4.5 12.34-5 19a351 351 0 0 0-8 25c-2.97 11.6-5.63 23.27-8 35-2.56 8.31-5.23 16.65-8 25-.39 6.38-2.06 12.38-5 18a8809 8809 0 0 1-38 144q-4.725 2.91-10.5 3a410 410 0 0 0-56.5 0c-3.08-.44-5.91-1.44-8.5-3-8.05-31.19-16.88-62.19-26.5-93-.67-4-1.33-8-2-12-9.67-32.85-18.5-65.85-26.5-99-3.92 8.2-6.42 16.87-7.5 26-.72 2.45-1.72 4.78-3 7a2343 2343 0 0 1-28 109c-.72 2.45-1.72 4.78-3 7-4.17 18.07-8.51 36.07-13 54-4.52 3.47-9.69 4.8-15.5 4a685 685 0 0 0-55.5 0c-1.63-.38-3.13-1.04-4.5-2q-6-17.88-10.5-36c-10.91-43.39-21.91-86.73-33-130-2.88-5.97-4.54-12.31-5-19a32 32 0 0 1-3-7 4792 4792 0 0 0-18-75c-3.031-5.25-4.031-10.92-3-17 .995-.57 1.828-1.23 2.5-2"}),_.createElement("path",{d:"M1648.5 1406.5c16.35.64 32.68 1.3 49 2 1.4 1.35 2.06 3.02 2 5a255 255 0 0 0-.5 38c.5 1.17 1.33 2 2.5 2.5 16.33.33 32.67.67 49 1 .92.37 1.75.87 2.5 1.5.82 13.58.66 27.08-.5 40.5-17 .33-34 .67-51 1-1.17.5-2 1.33-2.5 2.5-.67 31.33-.67 62.67 0 94 2.29 23.73 15.12 33.23 38.5 28.5 4.85-3.25 10.02-4.08 15.5-2.5.64 13.67.98 27.34 1 41a11.4 11.4 0 0 1-4.5 3.5c-22.63 5.41-45.29 5.75-68 1-13.91-4.18-24.08-12.68-30.5-25.5-4.8-11.14-7.13-22.81-7-35-.65-34.59-.65-69.25 0-104-.32-1.56-1.15-2.73-2.5-3.5-9-.33-18-.67-27-1-.92-.37-1.75-.87-2.5-1.5-.21-11.69-.71-23.36-1.5-35 .19-3.23 1.85-5.06 5-5.5 9-.33 18-.67 27-1l1.5-1.5c.33-14.33.67-28.67 1-43 .98-1.31 2.15-2.31 3.5-3M1807.5 1406.5c9.18.78 18.35.78 27.5 0 7.6.35 15.1 1.18 22.5 2.5a980 980 0 0 1 1.5 43.5l1.5 1.5c15 .33 30 .67 45 1 1.17.5 2 1.33 2.5 2.5-.77 11.49-.61 22.99.5 34.5a23 23 0 0 1-2 5c-15 .33-30 .67-45 1-.92.37-1.75.87-2.5 1.5-.67 32.67-.67 65.33 0 98 1.84 19.84 12.68 28.67 32.5 26.5 4.83-.18 9.33-1.35 13.5-3.5 1.44.06 2.77.39 4 1a673 673 0 0 0 3.5 36c.38 2.82-.62 4.99-3 6.5-23.81 6.5-47.81 7.17-72 2-12.46-5.13-21.63-13.63-27.5-25.5-1.1-4.87-2.77-9.54-5-14-.33-3.33-.67-6.67-1-10-.33-39-.67-78-1-117l-1.5-1.5c-10.43-.05-20.77-.71-31-2-.66-6.59-.99-13.26-1-20 .01-6.74.34-13.41 1-20 10.26-1.26 20.59-1.93 31-2l1.5-1.5c.33-14 .67-28 1-42 .69-1.85 1.86-3.18 3.5-4"}),_.createElement("path",{d:"M878.5 1446.5c27.433-1.66 52.433 5.01 75 20 21.826 18.58 34.326 42.24 37.5 71 3.595 25.23 1.262 49.9-7 74-16.274 34.06-43.107 53.89-80.5 59.5q-48.019 5.13-88-21-30.077-28.71-35.5-70.5a400 400 0 0 1 0-40q13.828-84.585 98.5-93m1 47c25.457-.37 42.623 11.3 51.5 35q9.63 36.765-4 72-17.011 26.355-48.5 22.5a61.5 61.5 0 0 0-14-5c-7.087-4.96-12.92-11.13-17.5-18.5a28.9 28.9 0 0 0-5-11c-3.333-19.33-3.333-38.67 0-58 4.098-14.4 12.598-25.23 25.5-32.5q6.626-1.05 12-4.5"}),_.createElement("path",{d:"M447.5 1447.5c21.766-2.21 42.766.62 63 8.5 21.067 11.41 35.234 28.57 42.5 51.5q1.39 10.62 4 21a229.3 229.3 0 0 1 1 40c-1.171 1.39-2.671 2.23-4.5 2.5q-65.505.255-131 1.5c-2.062 4.18-2.229 8.51-.5 13 2.366 8.1 5.7 15.77 10 23 15.264 15.93 33.764 20.77 55.5 14.5 3.87-2.52 7.87-4.85 12-7 3.262-2.59 5.762-5.76 7.5-9.5a39.7 39.7 0 0 1 8-7 965 965 0 0 0 21.5 8.5q10.12 1.62 18.5 7.5c.667 1.67.667 3.33 0 5q-9.276 20.79-27.5 34.5c-23.698 14.22-49.365 19.55-77 16-51.283-10.29-80.116-41.45-86.5-93.5-.894-14.71-.56-29.37 1-44a86 86 0 0 0 4-18 125.3 125.3 0 0 1 10.5-23c7.797-11.96 17.464-22.13 29-30.5 12.242-7.13 25.242-11.96 39-14.5m14 42c25.166 1.33 39.166 14.5 42 39.5q-1.824 2.61-5 3a719 719 0 0 1-75-1q2.218-22.395 21-36a123 123 0 0 1 17-5.5"}),_.createElement("path",{d:"M1482.5 1447.5c14.73-.22 29.39.61 44 2.5 37.88 7.55 57.72 30.72 59.5 69.5.33 38 .67 76 1 114 1.99 9.92 2.66 19.92 2 30-.75.63-1.58 1.13-2.5 1.5-15.66-.53-31.33-.53-47 0-2.44-2.29-3.94-5.13-4.5-8.5-1.06-4.6-1.73-9.27-2-14a7.2 7.2 0 0 0-2.5-2c-4.34 5.21-9.01 10.04-14 14.5-26.31 16.05-54.31 19.72-84 11q-44.205-19.29-37.5-67.5a124 124 0 0 0 5-17c8.22-13.88 19.38-24.72 33.5-32.5 9.71-4.13 19.71-7.46 30-10 21.1-4.3 42.44-6.63 64-7 1.8-.64 3.14-1.8 4-3.5-1.04-7.84-2.88-15.5-5.5-23a34.4 34.4 0 0 1-6.5-7.5 31.4 31.4 0 0 1-8-5c-6.73-.84-13.4-2.01-20-3.5-5.98 1.27-11.98 2.44-18 3.5q-3.72 4.11-9 6c-1.8 3.1-3.97 5.94-6.5 8.5-1.37 5.77-3.7 11.1-7 16-.8 1.3-1.97 1.97-3.5 2a426 426 0 0 0-34-13.5c-3.12-1.97-6.28-3.81-9.5-5.5-.65-3.09-.32-6.09 1-9 9.52-23.19 26.36-38.35 50.5-45.5a221 221 0 0 1 27-4.5m28 122c6.92-.31 13.76.02 20.5 1 2.47 19.95-4.37 35.78-20.5 47.5-4.04.9-7.7 2.57-11 5q-16.545 4.515-33 0c-16.58-9.72-18.91-22.05-7-37 2.29-1.29 4.29-2.96 6-5 14.59-5.91 29.59-9.74 45-11.5"}),_.createElement("path",{d:"M578.5 1454.5q29.139-.72 58 1.5c1.167 1.17 2.333 2.33 3.5 3.5a800 800 0 0 0 34 54c1.667-1.33 3.333-2.67 5-4a337 337 0 0 1 18-30 182 182 0 0 0 16.5-23.5 222 222 0 0 1 29-1.5c8.667.17 17.333.33 26 .5q3.726 3.42.5 7.5a2217 2217 0 0 0-63.5 93.5 103.5 103.5 0 0 0 8.5 15.5 5919 5919 0 0 1 59 85c2.155 3.04 1.988 5.87-.5 8.5a457 457 0 0 0-51 .5q-3.55-.51-7-1.5a728 728 0 0 1-40-60.5c-2.341-1.21-4.507-.88-6.5 1a926 926 0 0 1-28 45 120 120 0 0 1-11.5 14.5l-7.5 1.5c-16.734-.89-33.4-1.23-50-1q-.411-4.725 2-9a2463 2463 0 0 0 67.5-97.5 9.6 9.6 0 0 0-1.5-4.5 1263 1263 0 0 1-46-69l-18-24q-1.615-5.115 3.5-6"}))))}const rJ=` -.logo-background-light, .logo-background-colored { - background: white; -} -.logo-background-dark, .logo-background-blue { - background: black; -} -`;function nJ(t){R.useEffect(()=>{if(!window.document.getElementById("vendor-iobroker-component")){const r=window.document.createElement("style");r.setAttribute("id","vendor-iobroker-component"),r.innerHTML=rJ,window.document.head.appendChild(r)}},[]);const e=t.themeType||t.themeName||"light";return _.createElement("div",{className:`vendor-logo-back logo-background-${e}`,style:{display:"flex",flexDirection:"column",height:"100%",width:"10%",margin:"auto",backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:t.themeType==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("div",{style:{flexGrow:1}}),_.createElement(Dh,{color:"secondary",size:t.size||200,thickness:5}),_.createElement("div",{style:{flexGrow:1}}))}const oJ=` -/** - * Copyright 2018-2024 Denis Haev (bluefox) - * - * MIT License - * - **/ - -.logo-background-light, .logo-background-colored { - background: white; -} -.logo-background-dark, .logo-background-blue { - background: black; -} -.logo-div { - position: absolute; - top: 50%; - left: 50%; - -ms-transform: translateX(-50%) translateY(-50%); - -webkit-transform: translate(-50%,-50%); - transform: translate(-50%,-50%); - overflow: hidden; - border-radius: 50%; - z-index: 2; -} -.logo-border { - /*border-color: #164477;*/ - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - border-radius: 50%; - border-style: solid; - box-sizing: border-box; - width: 100%; - height: 100%; - position: absolute; -} -.logo-top { - position: absolute; - width: 4.5%; - height: 16%; - top: 0; - z-index: 2; -} -.logo-i { - position: absolute; - width: 14.5%; - height: 60%; - top: 20%; - left: 42%; - background: #3399CC; -} -.logo-i-top { - position: absolute; - width: 14.5%; - height: 4%; - left: 42%; - background: #3399CC; - border-radius: 100%; -} -.logo-back { - width: 100%; - height: 100%; - z-index: 0; - overflow: hidden; -} -@keyframes logo-grow { - 0% { - width: 230px; - height: 230px; - transform: translate(-50%,-50%) scale(1); - opacity: 1 - } - 99% { - width: 230px; - height: 230px; - transform: translate(-50%,-50%) scale(10); - opacity: 0; - } - 100% { - width: 0; - height: 0; - opacity: 0; - } -} -@keyframes logo-spin { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } -@keyframes logo-color-inside-light { - 0% { - background: #FEFEFE; - } - 100% { - background: #3399CC; - } -} -@keyframes logo-color-inside-dark { - 0% { - background: #030303; - } - 100% { - background: #3399CC; - } -} -@keyframes logo-color-inside-colored { - 0% { - background: #FEFEFE; - } - 100% { - background: #3399CC; - } -} -@keyframes logo-color-inside-blue { - 0% { - background: #030303; - } - 100% { - background: #3399CC; - } -} - -@keyframes logo-color-outside-light { - 0% { - border-color: #FEFEFE; - } - 100% { - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - } -} -@keyframes logo-color-outside-dark { - 0% { - border-color: #040404; - } - 100% { - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - } -} -@keyframes logo-color-outside-colored { - 0% { - border-color: #FEFEFE; - } - 100% { - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - } -} -@keyframes logo-color-outside-blue { - 0% { - border-color: #040404; - } - 100% { - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - } -} - -.logo-animate-wait { - animation: logo-color-outside 1.5s, logo-spin 1.5s linear infinite; -} - -.logo-animate-grow-light { - background: #DDD; -} -.logo-animate-grow-dark { - background: #1d1d1d; -} -.logo-animate-grow-colored { - background: #DDD; -} -.logo-animate-grow-blue { - background: #1d1d1d; -} - -.logo-animate-grow { - display: inline-block; - text-align: center; - z-index: 1; - top: 50%; - left: 50%; - -ms-transform: translateX(-50%) translateY(-50%); - -webkit-transform: translate(-50%,-50%); - transform: translate(-50%,-50%); - width: 245px; - height: 245px; - border-radius: 50%; - position: absolute; - animation: logo-grow 1s 1 ease forwards; -} - -.logo-animate-color-inside-light { - animation: logo-color-inside-light 2.5s; -} -.logo-animate-color-inside-dark { - animation: logo-color-inside-dark 2.5s; -} -.logo-animate-color-inside-colored { - animation: logo-color-inside-colored 2.5s; -} -.logo-animate-color-inside-blue { - animation: logo-color-inside-blue 2.5s; -} - -.logo-animate-color-outside-light { - animation: logo-color-outside-light 1.5s; -} -.logo-animate-color-outside-dark { - animation: logo-color-outside-dark 1.5s; -} -.logo-animate-color-outside-colored { - animation: logo-color-outside-colored 1.5s; -} -.logo-animate-color-outside-blue { - animation: logo-color-outside-blue 1.5s; -} -`;function aJ(t){R.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=oJ,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return _.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:_.createElement(_.Fragment,null,_.createElement("div",{className:"logo-div",style:{width:e,height:e}},_.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),_.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),_.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),_.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),_.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),_.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),_.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}const iJ=` -.logo-background-light, .logo-background-colored { - background: white; -} -.logo-background-dark, .logo-background-blue { - background: black; -} -.pt-logo-div { - position: absolute; - top: 50%; - left: 50%; - -ms-transform: translateX(-50%) translateY(-50%); - -webkit-transform: translate(-50%,-50%); - transform: translate(-50%,-50%); - z-index: 2; -} -.pt-logo-border { - border-style: solid; - box-sizing: border-box; - width: 100%; - height: 100%; - position: absolute; -} -.pt-loader-block { - height: 65px; - width: 74px; - border-radius: 15px; - position: absolute; - box-sizing: content-box; -} -.pt-loader-blue { - border: 9px solid #0F99DE; - transform: rotate(5grad); - left: 93px; - top: 0; - animation: spin-blue 5s ease-in-out infinite; -} -.pt-loader-green { - border: 9px solid #88A536; - transform: rotate(-6grad); - left: 70px; - top: 58px; - animation: spin-green 5s ease-in-out infinite; -} -.pt-loader-red { - border: 9px solid #BD1B24; - transform: rotate(-15grad); - left: 24px; - top: 100px; - animation: spin-red 5s ease-in-out infinite; -} - -@keyframes spin-blue { - 0% { - transform: rotate(5deg); - } - 25% { - transform: rotate(185deg); - } - 50% { - transform: rotate(185deg); - } - 75% { - transform: rotate(185deg); - } - 100% { - transform: rotate(185deg); - } -} -@keyframes spin-green { - 0% { - transform: rotate(-6deg); - } - 25% { - transform: rotate(-6deg); - } - 50% { - transform: rotate(174deg); - } - 75% { - transform: rotate(174deg); - } - 100% { - transform: rotate(-6deg); - } -} -@keyframes spin-red { - 0% { - transform: rotate(-15deg); - } - 25% { - transform: rotate(-15deg); - } - 50% { - transform: rotate(-15deg); - } - 75% { - transform: rotate(165deg); - } - 100% { - transform: rotate(165deg); - } -} -`;function sJ(t){const e=t.size||200;R.useEffect(()=>{if(!window.document.getElementById("pt-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","pt-iobroker-component"),n.innerHTML=iJ,window.document.head.appendChild(n)}},[]);const r=t.themeType||t.themeName||"light";return _.createElement("div",{className:`pt-logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:t.themeType==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("div",{className:"pt-logo-div",style:{width:e,height:e}},_.createElement("div",{style:{width:200,height:200}},_.createElement("div",{className:"pt-loader-blue pt-loader-block"}),_.createElement("div",{className:"pt-loader-green pt-loader-block"}),_.createElement("div",{className:"pt-loader-red pt-loader-block"}))))}const Z4="loader-ha-flicker-keyframes",cJ=` -@keyframes loaderHA-flicker { - 0% { filter: drop-shadow(0 0 4px #db0a33); opacity: 1; } - 15% { filter: drop-shadow(0 0 10px #db0a33) hue-rotate(-2deg); opacity: 0.97; } - 30% { filter: drop-shadow(0 0 6px #db0a33); opacity: 1; } - 45% { filter: drop-shadow(0 0 14px #e61a38) hue-rotate(-3deg); opacity: 0.94; } - 60% { filter: drop-shadow(0 0 7px #db0a33) hue-rotate(-1deg); opacity: 1; } - 75% { filter: drop-shadow(0 0 11px #e61a38) hue-rotate(-2deg); opacity: 0.98; } - 90% { filter: drop-shadow(0 0 5px #db0a33); opacity: 1; } - 100% { filter: drop-shadow(0 0 4px #db0a33); opacity: 1; } -}`;function lJ(t){const e=t.themeType||"dark",r=t.size||300;return _.useEffect(()=>{if(!window.document.getElementById(Z4)){const n=window.document.createElement("style");n.setAttribute("id",Z4),n.innerHTML=cJ,window.document.head.appendChild(n)}},[]),_.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:e==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("svg",{width:r,height:r,viewBox:"0 0 69.6 148.1",style:{fill:"#db0a33",animation:"loaderHA-flicker 5s ease-in-out infinite",willChange:"filter, opacity"}},_.createElement("path",{d:"M69.5,100.6c0-.4,0-.8-.2-1.1v-.7c-.2-.4-.3-.8-.5-1.2,0-.2-.2-.5-.3-.7,0,0,0-.2,0-.2,0-.2,0-.3-.2-.5l-.4-.7-.4-.6c-1-1.6-2.4-3-4.2-4.3-.3-.2-.6-.4-.9-.6,0,0-.2,0-.3-.2-.3-.2-.6-.3-.9-.5-.2,0-.3-.2-.5-.3-.3-.2-.6-.3-.9-.5,0,0-.2,0-.3-.2-1-2.7-2.4-4.9-3.8-6.7h0c2.5,0,6.6-.3,7.5-3,3.5-3,2.5-9.7,2.5-10,0-.6-.2-1.1-.4-1.7h0v-.3c.5-3-.4-7.1-.5-7.7h0l-.3-1.1c0-.3-.2-.7-.4-1,0-.4-.3-.7-.4-1,0-.3-.3-.7-.5-1s-.4-.7-.6-1c-.2-.3-.4-.6-.6-.9l-.4-.4-.4-.4-.4-.4c0,0-.3-.3-.5-.4-.3-.2-.6-.4-1-.6-.2,0-.4-.2-.5-.2-.2,0-.4,0-.6-.2-.2,0-.4,0-.6,0h-1.8c-.4,0-.8,0-1.1.2-.4,0-.7.2-1.1.4h0c-1.6-.2-2.6-1-3.1-1.7h0c2-.9,3.5-1.9,4.6-3,2.6-2.2,4-5.1,4.7-7.2,3.4-1.1,5.4-4,5.4-4h0c4.6-5.3,1.2-15.1,1.2-15.1,0,0-.8,4.2-4,5.5,0-.3-.2-.6-.3-1.1s-.3-1.1-.6-1.7c-.2-.7-.5-1.4-.9-2.2-.4-.8-.8-1.6-1.4-2.4-.5-.8-1.2-1.7-1.9-2.5h0C59.2,6.6,49.2.3,49.2.3c0,0,3.3,5.8,1.3,9.9,0,0-3.5-.8-5.7-.8s-2.4.1-3.5.3c-.5.1-1.1.2-1.6.3-.3,0-.5.1-.8.2-.2,0-.5.1-.7.2-.5.1-.9.2-1.3.4-.4.1-.8.3-1.2.4-.4.1-.7.2-1,.3s-.6.2-.9.3h-.2c-2-2.8-3.7-7.5,1.8-11.9,0,0-13,5.3-8.2,17,0,0,0,.2-.1.4h0c-.3.3-.6.7-1,1.3-.3.6-.7,1.3-.9,2.1-.1.4-.2.8-.2,1.3v1.5c-.2-.1-.5-.2-.9-.4-1.7-.8-1.7-2.8-1.7-2.8-1.1,8.3,4.2,13.3,5.2,14.1,0,.4,0,.7-.2,1v.4c-.2,0-.3.3-.4.5-.1.4-.2.7-.3,1.1-.1.7-.1,1.5,0,2.2s.3,1.4.5,2c.3.6.6,1.2.9,1.7,0,0,0,0,.1.2.4.6,1,1.4,2,2h.1c.2,0,.8.5,1.7.7.2.2,1.5,1.7,3.1,2.1-.2,1.1-1,2.8-3.4,3.7,0,0-14.2-.4-13.2,13.5-6.6,8.7-3.8,13.4-3.8,13.4-.9.6-.9,1.9-.5,3,0,0,0,.3.2.5,0,0,0,0,.3.4.3.4.6.7,1,.8,1.1.7,3.1,1.5,6.4,1.1.2.3,1.3,1.8,1.3,2.2.5,2.3,1.2,4.5,1.3,6.8l.2,1.3c-2.2-.2-11-.2-16.6,9.1,0,0-.2.2-.2.4l-.5.9-.6,1.2h0c-.3.7-.7,1.7-1.1,2.8-.5.4-1.2,0-1.7-.3-.4-.4-.7-.7-.9-1.1,0,0,0-.2,0-.3v-.2s0-.2-.2-.2h0c0,0,0,0-.2-.2h-.4s-.2,0-.2,0c-.2,0-.2.2-.3.3,0,0-.1.2-.2.2,0,.2-.2.3-.2.5-.2.6-.4,1.2-.6,1.8-.6,2.4-.6,4.9-.1,7.3.2,1.2.6,2.4,1.1,3.5.5,1.1,1.2,2.1,2,3.1.8.9,1.7,1.8,2.7,2.5s2,1.3,3.1,1.8h0l.6.4-.3-.7c-.2-.4-.3-.9-.5-1.3-.1-.4-.2-.9-.3-1.3-.1-.9-.2-1.8,0-2.7,0-.4.2-.8.4-1.2.2-.4.4-.7.7-1.1.6-.8,1-1.6,1.5-2.5.4-.9.8-1.8,1.1-2.7.1-.5.3-1,.3-1.5v-.9h0c.1-2.3-1.9-3-3-2.9-.9,0-1.7.2-2,.2.7-1.3,1.3-2.4,2-3.4h0c.2-.4.4-.6.6-.9.4-.5.8-1,1.2-1.5.1,0,.2-.3.3-.4h0c.1,0,.2-.2.3-.4.1,0,.2-.3.4-.4,6.5-6.5,12.5-2.9,12.5-2.9,0,0,1.1,3.7,1.6,4.6h0c1,2.3,2.7,4.6,4.1,6.9h0c0,0,0,4.8,2.2,7.2.5.6,1.1,1.3,1.7,2.2.3.5.5,1,.7,1.4.2.3.3.6.4.9.3.4.5.8.8,1.3s.6,1,.8,1.6c.2.5.4,1,.6,1.5,0,0,1,5.1.7,7.4-3.3.9-5.5,2.4-7.4,3.2-1,.3-3.4,2-5.5,1.9h-.5c0,.1-3.6.3-2.7,3.1,0,0,.2,3.6,5.8,2.9,1.8-.1,7.5-.5,9.1-.3,1.6.2,2.8.2,3.7.1,1.3,0,3.8,0,5.3-.4.4,1.8,3.2,2.4,6,1.5,3.6,1.6,13.5,2,15.6-1.6,2.4-4.1-2.4-8.6-4.1-12.6-3.8-9.3-.8-14-1.6-16.8,0-.7-.2-1.8-.4-3.2.8-.4,1.5-.8,2.2-1.3,1-.7,1.7-1.4,2.3-2.1l.2-.2c0,0,.2-.3.3-.4l.6-.9.6-1.2.4-1.1.3-1.2v-.8c0-.3,0-.5,0-.7h0v-2.4h.2ZM52.6,131.9c-.3.4-.7.9-1.2,1.6-1-.6-2.7-2.2-3.3-4.3,0-.2,0-.3-.2-.5-1.1-6.9-2.6-9.7-3.2-10.6-1-3.7-1.7-7.4-1.3-9.6,0,0,3.6,8.2,6.4,10,0,0,3.7,8.5,4.5,9.9.6,1-.9,2.3-1.7,3.5ZM63.6,102.7h0v.2h0v.9c0,0-.3.4-.3.4,0,0,0,.2,0,.3v.2h0v.2h0l-.2.2c-.3.6-.8,1.1-1.3,1.5h0c-.3-2.4-.6-5.1-.8-8.2.2-.5.3-1.1.4-1.7l.2.2c.2.2.4.4.5.6.2.2.3.4.5.7,0,.2.3.4.4.7h0c0,.3.2.5.3.7,0,.2.2.5.2.7h0v.3c0,.2,0,.4,0,.6v.7h0v.7h0Z"})))}function W9(t){const e=window.vendorPrefix;return e==="PT"?_.createElement(sJ,{themeType:t.themeType}):e==="MV"?_.createElement(eJ,{themeType:t.themeType}):e==="NW"?_.createElement(tJ,{themeType:"dark"}):e==="HA"?_.createElement(lJ,{themeType:"dark"}):e&&e!=="@@vendorPrefix@@"?_.createElement(nJ,{themeType:t.themeType}):_.createElement(aJ,{themeType:t.themeType})}class zu extends R.Component{onHashChangedBound;constructor(e){super(e),this.onHashChangedBound=this.onHashChanged.bind(this)}componentDidMount(){window.addEventListener("hashchange",this.onHashChangedBound)}componentWillUnmount(){window.removeEventListener("hashchange",this.onHashChangedBound)}onHashChanged(){}static getLocation(){let e=window.location.hash;e=e.replace(/^#/,"");const r=e.split("/").map(n=>{try{return n?decodeURIComponent(n):""}catch{return console.error(`Router: Cannot decode ${n}`),n}});return{tab:r[0]||"",dialog:r[1]||"",id:r[2]||"",arg:r[3]||""}}static doNavigate(e,r,n,o){let a="";const s=zu.getLocation();o!==void 0&&!n&&(n=s.id),n&&!r&&(r=s.dialog),(r&&!e||e===null)&&(e=s.tab),e&&(a=`#${e}`,r&&(a+=`/${r}`,n&&(a+=`/${n}`,o!==void 0&&(a+=`/${o}`)))),window.location.hash!==a&&(window.location.hash=a)}}function uJ(){const t=document.getSelection();if(!t?.rangeCount)return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const Q4={"text/plain":"Text","text/html":"Url",default:"Text"},dJ="Copy to clipboard: #{key}, Enter";function pJ(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function fJ(t,e){let r,n,o,a,s=!1;e=e||{};const l=e.debug||!1;try{if(r=uJ(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top="0px",a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.userSelect="text",a.addEventListener("copy",f=>{if(f.stopPropagation(),e?.format)if(f.preventDefault(),typeof f.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData?.clearData();const h=Q4[e.format]||Q4.default;window.clipboardData?.setData(h,t)}else f.clipboardData?.clearData(),f.clipboardData?.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o?.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(u){l&&console.error("unable to copy using execCommand: ",u),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),s=!0}catch(f){l&&console.error("unable to copy using clipboardData: ",f),l&&console.error("falling back to prompt");const h=pJ("message"in e?e.message||"":dJ);window.prompt(h,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return s}class z{static translations={};static unknownTranslations=[];static lang=window.sysLang||"en";static _disableWarning=!1;static setLanguage(e){e&&(z.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const s=a,l={},u=n[s];Object.keys(u).forEach(f=>{f&&u&&(f.startsWith(o)?l[f]=u[f]:l[`${o}${f}`]=u[f])}),e[s]=l})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;z.translations[o]||={},Object.assign(z.translations[o],e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const s=a,l=z.translations[s];l?l[n]?l[n]!==o[s]&&console.warn(`Translation for word "${n}" in "${s}" was ignored: existing = "${l[n]}", new = ${o[s]}`):l[n]=o[s]:console.warn(`Used unknown language: ${s}`)})});else{z.translations[r]||console.warn(`Used unknown language: ${r}`),z.translations[r]||={};const n=z.translations[r];Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(z.translations=e)}static getLanguage(){return z.lang}static t(e,...r){const n=z.translations[z.lang];if(n){const o=n[e];if(o)e=o;else if(z.unknownTranslations.includes(e)||(z.unknownTranslations.push(e),!z._disableWarning&&console.log(`Translate: ${e}`)),z.lang!=="en"&&z.translations.en){const a=z.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(z.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):e&&typeof e=="object"&&(z.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(z.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){z._disableWarning=!!e}}window.i18nShow=z.i18nShow;window.i18nDisableWarning=z.disableWarning;const Ao="material",hJ=["Su","Mo","Tu","We","Th","Fr","Sa"],mJ=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Eg={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},ek={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"};class je{static namespace=Ao;static INSTANCES="instances";static dateFormat=["DD","MM"];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let s="";return r&&(s+=`${r} ${z.t("ra_daysShortText")} `),s+=`${n}:${o}:${a}`,s}static getObjectName(e,r,n,o,a){const s=e[r];let l;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n?.name){const u=n.name;typeof u=="object"?l=o.language&&u[o.language]||u.en:l=u}else if(a&&s?.common?.desc){const u=s.common.desc;typeof u=="object"?l=o.language&&u[o.language]||u.en||u.de||u.ru||"":l=u,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!a&&s?.common){const u=s.common.name||s.common.desc;u&&typeof u=="object"?l=o.language&&u[o.language]||u.en||u.de||u.ru||"":l=u,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else{const u=r.lastIndexOf(".");l=r.substring(u+1).replace(/[_.]/g," "),l=je.CapitalWords(l)}return l?.trim()||""}static getObjectNameFromObj(e,r,n,o,a){const s=e;let l=e?._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r?.name){const u=r.name;typeof u=="object"?l=n.language&&u[n.language]||u.en:l=u}else if(o&&s?.common?.desc){const u=s.common.desc;typeof u=="object"?l=n.language&&u[n.language]||u.en:l=u,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!o&&s?.common?.name){let u=s.common.name;!u&&s.common.desc&&(u=s.common.desc),typeof u=="object"?l=n.language&&u[n.language]||u.en:l=u,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}return a?l:l.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o?.custom){a=o.custom[Ao];const s=n.user||"admin";if(a&&a[s]){if(r){if(a[s].subOrder&&a[s].subOrder[r])return JSON.parse(JSON.stringify(a[s].subOrder[r]))}else if(a[s].order)return JSON.parse(JSON.stringify(a[s].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o?.custom){a=o.custom[Ao];const s=n.user||"admin";if(a&&a[s]){if(r){if(a[s].subURLs&&a[s].subURLs[r])return JSON.parse(JSON.stringify(a[s].subURLs[r]))}else if(a[s].URLs)return JSON.parse(JSON.stringify(a[s].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=e?._id||r?.id;let s;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?s=e.common:s=e,s?.custom?(o=s.custom,o=o[Ao]&&o[Ao][r.user||"admin"]?JSON.parse(JSON.stringify(o[Ao][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),s&&(!o.color&&s.color&&(o.color=s.color),!o.icon&&s.icon&&(o.icon=s.icon),!o.name&&s.name&&(o.name=s.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const l=a.lastIndexOf(".");o.name=a.substring(l+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=je.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[Ao]=e.common.custom[Ao]||{},e.common.custom[Ao][n.user||"admin"]=r;const o=e.common.custom[Ao][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e?.icon?e.icon.length<=2?_.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?_.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):_.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){if(typeof e=="object"&&(r=e,e=r?._id),r?.common?.icon){let n=r.common.icon;if(typeof n=="string"&&n.length<=2||n.startsWith("data:image"))return n;const o=e.split(".");return o[0]==="system"?n=`adapter/${o[2]}${n.startsWith("/")?"":"/"}${n}`:n=`adapter/${o[0]}${n.startsWith("/")?"":"/"}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?n=`../../${n}`:window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(e){return e?je.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const s=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(s&&s.length===4)n=parseInt(s[1],10),o=parseInt(s[2],10),a=parseInt(s[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}static getWindDirection(e){return e>=0&&e<11.25?"N":e>=11.25&&e<33.75?"NNE":e>=33.75&&e<56.25?"NE":e>=56.25&&e<78.75?"ENE":e>=78.75&&e<101.25?"E":e>=101.25&&e<123.75?"ESE":e>=123.75&&e<146.25?"SE":e>=146.25&&e<168.75?"SSE":e>=168.75&&e<191.25?"S":e>=191.25&&e<213.75?"SSW":e>=213.75&&e<236.25?"SW":e>=236.25&&e<258.75?"WSW":e>=258.75&&e<281.25?"W":e>=281.25&&e<303.75?"WNW":e>=303.75&&e<326.25?"NW":e>=326.25&&e<348.75?"NNW":"N"}static padding(e){return typeof e=="string"?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(e){e&&(je.dateFormat=e.toUpperCase().split(/[.-/]/),je.dateFormat.splice(je.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(s=>s>31);if(a!==void 0){o.splice(o.indexOf(a),1);const s=o.find(l=>l>12);s?(o.splice(o.indexOf(s),1),e=new Date(a,o[0]-1,s)):je.dateFormat[0][0]==="M"&&je.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):je.dateFormat[0][0]==="D"&&je.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=z.t(`ra_dow_${hJ[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${z.t(`ra_month_${mJ[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(_.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(_.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(_.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(_.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const s=e;return s?.common?.custom&&s.common.custom[n]?s.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return a?.common?.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=e?.common?.custom?.[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName={}):o.common.smartName={}}static removeSmartName(e,r,n){const o=e;n?o?.common?.custom?.[r]&&(o.common.custom[r]=null):o.common.smartName=null}static updateSmartName(e,r,n,o,a,s){const l=z.getLanguage(),u=e;if(typeof u.common.smartName=="string"){const f=u.common.smartName;u.common.smartName={},u.common.smartName[l]=f}if(u.native?.byON){delete u.native.byON;let f=u.common.smartName;f&&typeof f!="object"&&(f={en:f,[l]:f}),u.common.smartName=f}if(o!==void 0&&(s?(u.common.custom||={},u.common.custom[a]||={},u.common.custom[a].smartName||={},o?u.common.custom[a].smartName.smartType=o:delete u.common.custom[a].smartName.smartType):(u.common.smartName||={},o?u.common.smartName.smartType=o:delete u.common.smartName.smartType)),n!==void 0&&(s?(u.common.custom||={},u.common.custom[a]||={},u.common.custom[a].smartName||={},u.common.custom[a].smartName.byON=n):(u.common.smartName||={},u.common.smartName.byON=n)),r!==void 0){let f;if(s?(u.common.custom||={},u.common.custom[a]||={},u.common.custom[a].smartName||={},f=u.common.custom[a].smartName):(u.common.smartName||={},f=u.common.smartName),f[l]=r,f&&(!f[l]||f[l]===u.common.name&&!u.common.role)){delete f[l];let h=!0;for(const d in f)if(Object.prototype.hasOwnProperty.call(f,d)){h=!1;break}if(h)if(s&&u.common.custom?.[a])u.common.custom[a].smartName.byON===void 0?delete u.common.custom[a]:(delete u.common.custom[a].en,delete u.common.custom[a].de,delete u.common.custom[a].ru,delete u.common.custom[a].nl,delete u.common.custom[a].pl,delete u.common.custom[a].it,delete u.common.custom[a].fr,delete u.common.custom[a].pt,delete u.common.custom[a].es,delete u.common.custom[a].uk,delete u.common.custom[a]["zh-cn"]);else if(u.common.smartName&&u.common.smartName.byON!==void 0){const d=u.common.smartName;delete d.en,delete d.de,delete d.ru,delete d.nl,delete d.pl,delete d.it,delete d.fr,delete d.pt,delete d.es,delete d.uk,delete d["zh-cn"]}else u.common.smartName=null}}}static updateSmartNameEx(e,r){const n=z.getLanguage(),o=e;if(typeof o.common.smartName=="string"){const a=o.common.smartName;o.common.smartName={},o.common.smartName[n]=a}if(o.native?.byON){delete o.native.byON;let a=o.common.smartName;a&&typeof a!="object"&&(a={en:a,[n]:a}),o.common.smartName=a}if(r.smartType!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},r.smartType?o.common.custom[r.instanceId].smartName.smartType=r.smartType:delete o.common.custom[r.instanceId].smartName.smartType):(o.common.smartName||={},r.smartType?o.common.smartName.smartType=r.smartType:delete o.common.smartName.smartType)),r.byON!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.byON=r.byON):(o.common.smartName||={},o.common.smartName.byON=r.byON)),r.noAutoDetect!==void 0&&(r.noCommon?r.noAutoDetect?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.noAutoDetect=r.noAutoDetect):o.common.custom?.[r.instanceId]?.smartName&&delete o.common.custom[r.instanceId].smartName.noAutoDetect:!r.noAutoDetect&&o.common.smartName?delete o.common.smartName.noAutoDetect:(o.common.smartName||={},o.common.smartName.noAutoDetect=r.noAutoDetect)),r.smartName!==void 0){let a;if(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},a=o.common.custom[r.instanceId].smartName):(o.common.smartName||={},a=o.common.smartName),a[n]=r.smartName,a&&(!a[n]||a[n]===o.common.name&&!o.common.role)){delete a[n];let s=!0;for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){s=!1;break}if(s)if(r.noCommon&&o.common.custom?.[r.instanceId])o.common.custom[r.instanceId].smartName.byON===void 0?delete o.common.custom[r.instanceId]:(delete o.common.custom[r.instanceId].en,delete o.common.custom[r.instanceId].de,delete o.common.custom[r.instanceId].ru,delete o.common.custom[r.instanceId].nl,delete o.common.custom[r.instanceId].pl,delete o.common.custom[r.instanceId].it,delete o.common.custom[r.instanceId].fr,delete o.common.custom[r.instanceId].pt,delete o.common.custom[r.instanceId].es,delete o.common.custom[r.instanceId].uk,delete o.common.custom[r.instanceId]["zh-cn"]);else if(o.common.smartName&&o.common.smartName.byON!==void 0){const l=o.common.smartName;delete l.en,delete l.de,delete l.ru,delete l.nl,delete l.pl,delete l.it,delete l.fr,delete l.pt,delete l.es,delete l.uk,delete l["zh-cn"]}else o.common.smartName=null}}}static disableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName=!1):o.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),fJ(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const l=(255-o).toString(16),u=(255-a).toString(16),f=(255-s).toString(16);return`#${l.padStart(2,"0")}${u.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else e.startsWith("#")&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,s=r*.2126+n*.7152+o*.0722,l=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,s=s>.008856?s**.33333333:7.787*s+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,[116*s-16,500*(a-s),200*(s-l)]}static colorDistance(e,r){const n=je.color2rgb(e),o=je.color2rgb(r);if(!n||!o)return 0;const a=je.rgb2lab(n),s=je.rgb2lab(o),l=a[0]-s[0],u=a[1]-s[1],f=a[2]-s[2],h=Math.sqrt(a[1]*a[1]+a[2]*a[2]),d=Math.sqrt(s[1]*s[1]+s[2]*s[2]),m=h-d;let y=u*u+f*f-m*m;y=y<0?0:Math.sqrt(y);const v=1+.045*h,b=1+.015*h,x=l,k=m/v,O=y/b,T=x*x+k*k+O*O;return T<0?0:T}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const s=decodeURIComponent(o[1]);if(s==="true")r[a]=!0;else if(s==="false")r[a]=!1;else{const l=parseFloat(s);l.toString()===s?r[a]=l:r[a]=s}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,n+=` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`,n}static formatTime(e){if(e){e=Math.round(e);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){const r=je.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const a=o.replace(/\r/g,"").split(` -`);for(let s=0;s{if(!s.trim())return;const l=s.indexOf(":");if(l!==-1){const u=s.substring(0,l).trim();let f=s.substring(l+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[u]=!0:f==="false"?r[u]=!1:parseFloat(f).toString()===r[u]?r[u]=parseFloat(f):r[u]=f}else r[s.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=Eg[e];let o;return n?o=[n]:e&1?o=[Eg[1],`0x${(e&65534).toString(16)}`]:e&2?o=[Eg[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){const r=e?.common?.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const o=r.split(";");n={};for(let a=0;an[a]=o):e?.common.type==="string"?r.forEach(o=>n[o]=o):e?.common.type==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>o(a.result?.toString()||""),a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(ek).find(n=>e.startsWith(n));return r?ek[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.toLowerCase().startsWith("stable")))}static isStringInteger(e){return typeof e=="number"?Math.round(e)===e:parseInt(e,10).toString()===e}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getStyle(e,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const s=r[o][a];n[a]={},Object.keys(s).forEach(l=>{typeof s[l]=="function"?n[a][l]=s(e):(s[l]||s[l]===0)&&(n[a][l]=s[l])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}}const Tg={buttonIcon:{marginRight:8}};class _J extends _.Component{isIFrame;constructor(e){super(e);const r=e.newReact===void 0?!0:e.newReact;if(e.isIFrame!==void 0)this.isIFrame=e.isIFrame;else try{this.isIFrame=!r&&window.self!==window.top}catch{this.isIFrame=!r}}render(){const e=this.props.noTextOnButtons,r={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},n={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(n.minHeight=48),this.props.error&&(r.border="1px solid red"),_.createElement(F8,{style:n},_.createElement(ts,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:r},_.createElement(V1,{style:e?void 0:Tg.buttonIcon}),!e&&z.t("ra_Save")),_.createElement(ts,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...r,marginLeft:10}},_.createElement(V1,{style:e?void 0:Tg.buttonIcon}),e?"+":z.t("ra_Save and close"),e&&_.createElement(hi,null)),_.createElement("div",{style:{flexGrow:1}}),_.createElement(ts,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:r},_.createElement(hi,{style:e?void 0:Tg.buttonIcon}),!e&&z.t("ra_Close")))}}const tk={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class U9 extends R.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}handleOk(){this.state.suppress&&(window._localStorage||window.localStorage).setItem(this.props.dialogName,Date.now()+(this.props.suppressQuestionMinutes||2)*6e4),this.props.onClose&&this.props.onClose(!0)}handleCancel(){this.props.onClose&&this.props.onClose(!1)}render(){return typeof this.state.suppress=="number"?(setTimeout(()=>this.props.onClose&&this.props.onClose(!0),100),null):_.createElement(yo,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},_.createElement(wo,{id:"ar_confirmation_dialog_title"},this.props.title||z.t("ra_Are you sure?")),_.createElement(bo,null,_.createElement(Ph,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?_.createElement("br",null):null,this.props.suppressQuestionMinutes?_.createElement(ut,{sx:{"& .FormControlLabel-label":tk.suppress,"&.FormControlLabel-root":tk.suppressRoot},control:_.createElement(mr,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||z.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),_.createElement(vo,null,_.createElement(Pt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:_.createElement(wi,null)},this.props.ok||z.t("ra_Ok")),_.createElement(Pt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:_.createElement(hi,null)},this.props.cancel||z.t("ra_Cancel"))))}}class q9 extends R.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return _.createElement(yo,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},_.createElement(wo,{id:"ar_alert_dialog_title"},this.props.title||z.t("ra_Error")),_.createElement(bo,null,_.createElement(Ph,{id:"ar_alert_dialog_description"},this.props.text||z.t("ra_Unknown error!"))),_.createElement(vo,null,_.createElement(Pt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:_.createElement(wi,null)},z.t("ra_Ok"))))}}const gJ="Actions",yJ="Append",vJ="Cancel",bJ="Categories",wJ="Checked",SJ="Delete",xJ="Close",kJ="Commercial",CJ="Configure",$J="Connected",EJ="Continue",TJ="Copied",OJ="Create",DJ="Crop",RJ="Delete",MJ="Delete",AJ="Discard",NJ="Disconnected",IJ="Error",PJ="Filter",jJ="Friday",zJ="Latitude",LJ="Logout",FJ="Longitude",BJ="Message",WJ="Monday",UJ="Name",qJ="Objects",HJ="Ok",VJ="Product",GJ="Rename/Move/Copy",XJ="Repeat",JJ="Replace",YJ="Root",KJ="Saturday",ZJ="Save",QJ="Selected",eY="States",tY="Sunday",rY="Thursday",nY="Timestamp",oY="Tuesday",aY="Update",iY="Valid till",sY="Value",cY="Version",lY="Wednesday",uY="Width",dY="Yes",pY="different",fY="Everyone can read object",hY="Everyone can read state",mY="Everyone can write object",_Y="Everyone can write state",gY="Group can read object",yY="Group can read state",vY="Group can write object",bY="Group can write state",wY="Owner can read object",SY="Owner can read state",xY="Owner can write object",kY="Owner can write state",CY="Buttons",$Y="Changed from",EY="close",TY="Create boolean state",OY="Create channel",DY="Create device",RY="Create number state",MY="Create state",AY="Create string state",NY="days",IY="Fr",PY="Mo",jY="Sa",zY="Su",LY="Th",FY="Tu",BY="We",WY="Expert mode",UY="FALSE",qY="All files",HY="Audio",VY="Code/JSON",GY="Images",XY="Text",JY="Video",YY="Settings",KY="without",ZY="Function",QY="ID",eK="Name",tK="Role",rK="Room",nK="Type",oK="Invalid settings",aK="Last change",iK="locally",sK="Apr",cK="Aug",lK="Dec",uK="Feb",dK="Jan",pK="Jul",fK="Jun",hK="Mai",mK="Mar",_K="Nov",gK="Oct",yK="Sep",vK="Apr",bK="Aug",wK="Dec",SK="Feb",xK="Jan",kK="Jul",CK="Jun",$K="Mai",EK="Mar",TK="Nov",OK="Oct",DK="Sep",RK="none",MK="Object changed by",AK="Object last changed at",NK="Settings from other adapter %s",IK="Quality code",PK="repeat",jK='To select folder, just hold the key "shift" by clicking the folder.',zK="Show all",LK="State changed by",FK="Object changed from",BK="Timestamp",WK="Acknowledged",UK="Comment",qK="Copy the state value",HK="Hold Cltr/⌘ key to open the link",VK="Custom settings",GK="Delete object",XK="Edit object",JK="Edit the state value",YK="Expires in",KK="From",ZK="Last changed",QK="Quality",eZ="Time stamp",tZ="User",rZ="Value",nZ="TRUE",oZ="Value",aZ="Warning: The CRON job will run every minute during the specified period!",iZ="Warning: The CRON job will run every second during the specified period!",sZ="CRON",cZ="Date",lZ="Dates",uZ="Day",dZ="Day of week",pZ="Every",fZ="every N days",hZ="every Nth day of the week",mZ="every N day of week",_Z="every N hours",gZ="every N minutes",yZ="every N months",vZ="every N seconds",bZ="every day",wZ="every day of the week",SZ="every day of the week",xZ="every hour",kZ="every minute",CZ="every month",$Z="every second",EZ="From",TZ="Hours",OZ="Interval",DZ="Interval between",RZ="Invalid CRON",MZ="Minutes",AZ="months",NZ="Once",IZ="Period",PZ="Seconds",jZ="Simple",zZ="Specific time",LZ="specific dates",FZ="specific day(s) of the week",BZ="specific day of weeks",WZ="specific hours",UZ="specific minutes",qZ="specific months",HZ="specific seconds",VZ="Time",GZ="To",XZ="Wizard",JZ="all",YZ="Astro day",KZ="Astro night",ZZ="Dawn",QZ="Dusk",eQ="Golden hour",tQ="Golden hour end",rQ="Nadir",nQ="Nautical dawn",oQ="Nautical dusk",aQ="Night",iQ="Night end",sQ="Solar noon",cQ="Sunrise",lQ="Sunrise end",uQ="Sunset",dQ="Sunset start",pQ="at",fQ="at %s",hQ="every day",mQ="every hour",_Q="every minute",gQ="every month",yQ="every %s day",vQ="every %s hours",bQ="every %s minutes",wQ="every %s months",SQ="every %s weeks",xQ="every %s years",kQ="every week",CQ="every year",$Q="from %s to %s",EQ="never",TQ="on %s of %s",OQ="on %s and %s of",DQ="on every date of",RQ="%s",MQ="%s and %s",AQ="on %s",NQ="on %s and %s",IQ="on weekends",PQ="on working days",jQ="will ne be not executed any more, because start is in the past",zQ="on %s",LQ="from %s",FQ="Execute from to",BQ="to %s",WQ="every",UQ="Specific time",qQ="from",HQ="From-to",VQ="Interval time",GQ="invert",XQ="none",JQ="on",YQ="Period",KQ="Daily",ZQ="Dates",QQ="Day",eee="Every",tee="Every day",ree="Every month",nee="Every week",oee="Every year",aee="Hours",iee="Minutes",see="month",cee="Monthly",lee="Once",uee="Specific months",dee="Week",pee="Weekdays",fee="Weekend",hee="Weekly",mee="Workdays",_ee="Year",gee="Yearly",yee="Specific time",vee="Time",bee="to",wee="Valid",See="from",xee="to",kee="Whole day",Cee="every month",$ee={"ra_%s links from aliases":"%s links from aliases","ra_%s object(s) processed":"%s object(s) processed","ra_%s was imported":"%s was imported","ra_Accept license":"Accept license",ra_Actions:gJ,"ra_Add new child object to selected parent":"Add new child object to selected parent","ra_Add objects tree from JSON file":"Add objects tree from JSON file","ra_Add row":"Add row","ra_Advanced options":"Advanced options","ra_All items are filtered out":"All items are filtered out","ra_All objects":"All objects",ra_Append:yJ,"ra_Append %s entries or replace existing?":"Append %s entries or replace existing?","ra_Append or replace?":"Append or replace?","ra_Are you sure?":"Are you sure?","ra_Auto (no custom columns)":"Auto (no custom columns)","ra_Back to %s":"Back to %s","ra_Background image":"Background image",ra_Cancel:vJ,"ra_Cannot add items with set filter":"Cannot add items with set filter","ra_Cannot decode license":"Cannot decode license","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Cannot determine position: System settings are empty and GPS detection is disabled in browser",'ra_Cannot find "%s"':'Cannot find "%s"','ra_Cannot read "%s"':'Cannot read "%s"',"ra_Cannot read licenses: %s":"Cannot read licenses: %s","ra_Cannot retrieve options, as instance is offline":"Cannot retrieve options, as instance is offline","ra_Cannot update attribute, because not found in the object":"Cannot update attribute, because not found in the object","ra_Cannot upload":"Cannot upload",ra_Categories:bJ,"ra_Chained certificate":"Chained certificate","ra_Change color theme":"Change color theme","ra_Changed from":"Changed from","ra_Channel → State":"Channel → State","ra_Check license":"Check license",ra_Checked:wJ,ra_Clear:SJ,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Click to see in full size":"Click to see in full size","ra_Click to show":"Click to show","ra_Clone current row":"Clone current row",ra_Close:xJ,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:kJ,ra_Configure:CJ,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:$J,ra_Continue:EJ,ra_Copied:TJ,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:OJ,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:DJ,"ra_Define CRON...":"Define CRON...","ra_Define functions":"Define functions","ra_Define rooms":"Define rooms","ra_Define schedule":"Define schedule","ra_Define schedule...":"Define schedule...",ra_Del:RJ,ra_Delete:MJ,"ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State","ra_Disable/Enable translation":"Disable/Enable translation",ra_Discard:AJ,ra_Disconnected:NJ,"ra_Do not ask for next 2 hours in this session":"Do not ask for next 2 hours in this session","ra_Do not export values of states":"Do not export values of states","ra_Do not use let's encrypt":"Do not use let's encrypt","ra_Docker is not available":"Docker is not available","ra_Docker is not installed or not running":"Docker is not installed or not running","ra_Double click to reset table layout":"Double click to reset table layout","ra_Drag 'n' drop some files here, or click to select files":"Drag 'n' drop some files here, or click to select files","ra_Drop file here":"Drop file here","ra_Drop the files here...":"Drop the file here...","ra_Duplicate name":"Duplicate name","ra_Edit ACL":"Edit ACL","ra_Edit alias":"Edit alias","ra_Edit custom config":"Edit custom config","ra_Edit full path":"Edit full path","ra_Edit function":"Edit function","ra_Edit object field":"Edit object field","ra_Edit role":"Edit role","ra_Edit room":"Edit room","ra_Edit value":"Edit value","ra_Enter the code from that page here":"Enter the code from that page here",ra_Error:IJ,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","ra_Expand/Collapse card":"Expand/Collapse card","ra_Export configuration section":"Export configuration section","ra_Export data to %s file":"Export data to %s file","ra_Failed to open JSON File":"Failed to open JSON File","ra_Fallback custom certificates":"Fallback custom certificates","ra_File is too big. Max %sk allowed. Try use SVG.":"File is too big. Max %sk allowed. Try use SVG.",ra_Filter:PJ,"ra_Filter and Data Actions":"Filter and Data Actions","ra_Filter files":"Filter files","ra_Folder name":"Folder name","ra_Folder → Channel → State":"Folder → Channel → State","ra_Folder → Device → Channel → State":"Folder → Device → Channel → State","ra_Folder → State":"Folder → State","ra_Folders always first":"Folders always first",ra_Friday:jJ,"ra_From file":"From file","ra_From text":"From text","ra_Get %s access":"Get %s access","ra_Good luck":"Good luck","ra_Hide empty folders":"Hide empty folders","ra_If no file will be created in the folder, it will disappear after the browser closed":"If no file will be created in the folder, it will disappear after the browser closed","ra_If the button above does not work, you can authorize manually this app by visiting this url":"If the button above does not work, you can authorize manually this app by visiting this url","ra_Import and add configuration section":"Import and add configuration section","ra_Import and replace configuration section":"Import and replace configuration section","ra_Import data from %s file":"Import data from %s file","ra_Import from %s":"Import from %s","ra_Instance %s is alive":"Instance %s is alive","ra_Instance %s is not alive":"Instance %s is not alive","ra_Instance is not alive":"Instance is not alive","ra_Invalid CRON":"Invalid CRON","ra_Invalid JSON":"Invalid JSON","ra_Invalid JSON file.":"Invalid JSON file.","ra_Invalid JSON format. Expected an array.":"Invalid JSON format. Expected an array.","ra_Invalid answer from server":"Invalid answer from server","ra_Invalid parent folder!":"Invalid parent folder!","ra_Invalid structure":"Invalid structure","ra_JSON editor":"JSON editor","ra_Last change":"Last change",ra_Latitude:zJ,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist","ra_License expired on %s":"License expired on %s",'ra_License for other product "%s"':'License for other product "%s"',"ra_License is for version %s, but required version is %s.":"License is for version %s, but required version is %s.","ra_License must be converted":"License must be converted to newer version. You can do it in your iobroker.net profile.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"License not found in the license manager. Do you want to update licenses from iobroker.net?","ra_Listen on all IPs":"Listen on all IPs","ra_Load configuration from file":"Load configuration from file",ra_Logout:LJ,ra_Longitude:FJ,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:BJ,ra_Monday:WJ,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:UJ,"ra_No data found in file":"No data found in file","ra_No one license found in license manager":"No one license found in license manager","ra_No response from admin":"No response from admin","ra_No response from the backend":"No response from the backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Non-experts may create new objects only in "0_userdata.0" or "alias.0".',"ra_Not a number":"Not a number","ra_OAuth Client ID":"OAuth Client ID","ra_OAuth Client secret":"OAuth Client secret",ra_Objects:qJ,ra_Ok:HJ,"ra_On weekdays":"On weekdays","ra_Only following structures of objects are available:":"Only following structures of objects are available:","ra_Only selected":"Only selected","ra_Owner group":"Owner group","ra_Owner user":"Owner user","ra_Passwords are not equal!":"Passwords are not equal!","ra_Place your files here or click here to open the browse dialog":"Place your files here or click here to open the browse dialog","ra_Please allow popups in your browser for this page!":"Please allow popups in your browser for this page!","ra_Please confirm":"Please confirm","ra_Please create license":"Please create license","ra_Please enter the license":"Please enter the license","ra_Please select file...":"Please select file...","ra_Please select object ID...":"Please select object ID...","ra_Port could be used by %s":"Port could be used by %s","ra_Port is already used by %s":"Port is already used by %s","ra_Press ENTER Key to add new item":"Press ENTER Key to add new item","ra_Private certificate":"Private certificate",ra_Product:VJ,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Rename_Move_Copy:GJ,"ra_Renew %s access":"Renew %s access",ra_Repeat:XJ,ra_Replace:JJ,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:YJ,ra_Saturday:KJ,ra_Save:ZJ,"ra_Save and close":"Save and close","ra_Save configuration to file":"Save configuration to file","ra_Save objects tree as JSON file":"Save objects tree as JSON file","ra_Select all":"Select all","ra_Select color":"Select color","ra_Select predefined icon":"Select predefined icon","ra_Select type of export":"Select type of export",ra_Selected:QJ,"ra_Selected %s object(s)":"Selected %s object(s)","ra_Serial number (UUID)":"Serial number (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Serial number (UUID) "%s" in license is for other device.',"ra_Session will expire in %s seconds. Continue?":"Session will expire in %s seconds. Continue?","ra_Show all folders":"Show all folders","ra_Show lines between rows":"Show lines between rows","ra_Show/Hide object descriptions":"Show/Hide object descriptions","ra_Show/hide filter input":"Show/hide filter input","ra_Some data are not stored. Discard?":"Some data are not stored. Discard?",ra_States:eY,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Successfully authorized. Token valid till %s and will be automatically renewed.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Successfully authorized. Token valid till %s but it can expire as the instance is not running.","ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:tY,"ra_Suppress question for next %s minutes":"Suppress question for next %s minutes","ra_System language":"System language","ra_Take browser position":"Take position from browser","ra_Take position from system settings":"Take position from system settings",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").',"ra_The page you are looking for was not found":"The page you are looking for was not found","ra_The schedule will be executed every minute. Are you sure?":"The schedule will be executed every minute. Are you sure?","ra_The schedule will be executed every second. Are you sure?":"The schedule will be executed every second. Are you sure?",ra_Thursday:rY,ra_Timestamp:nY,"ra_Toggle expert mode":"Toggle expert mode","ra_Toggle the states view":"Toggle the states view","ra_Toggle view mode":"Toggle view mode","ra_Too big":"Too big","ra_Too small":"Too small","ra_Transparent dialog":"Transparent dialog",ra_Tuesday:oY,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:aY,"ra_Upload file":"Upload file","ra_Use all available let's encrypt certificates":"Use all available let's encrypt certificates","ra_Use iobroker.acme adapter for letsencrypt certificates":"Use iobroker.acme adapter for letsencrypt certificates","ra_Use system settings for position":"Use system settings for position","ra_Used system settings":"Used system settings","ra_User files":"User files",ra_ValidTill:iY,ra_Value:sY,ra_Version:cY,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:lY,ra_Width:uY,"ra_YAML editor":"YAML editor",ra_Yes:dY,"ra_You can export all objects or just the selected branch.":"You can export all objects or just the selected branch.","ra_You can filter entries by entering here some text":"You can filter entries by entering here some text","ra_You can use * as wildcard":"You can use * as wildcard",ra___different__:pY,ra_aclEveryone_read_object:fY,ra_aclEveryone_read_state:hY,ra_aclEveryone_write_object:mY,ra_aclEveryone_write_state:_Y,ra_aclGroup_read_object:gY,ra_aclGroup_read_state:yY,ra_aclGroup_write_object:vY,ra_aclGroup_write_state:bY,ra_aclOwner_read_object:wY,ra_aclOwner_read_state:SY,ra_aclOwner_write_object:xY,ra_aclOwner_write_state:kY,ra_buttons:CY,ra_changedFrom:$Y,ra_close:EY,ra_create_boolean_state:TY,ra_create_channel:OY,ra_create_device:DY,ra_create_number_state:RY,ra_create_state:MY,ra_create_string_state:AY,ra_daysShortText:NY,ra_dow_Fr:IY,ra_dow_Mo:PY,ra_dow_Sa:jY,ra_dow_Su:zY,ra_dow_Th:LY,ra_dow_Tu:FY,ra_dow_We:BY,ra_expertMode:WY,ra_false:UY,ra_fileType_all:qY,ra_fileType_audio:HY,ra_fileType_code:VY,ra_fileType_images:GY,ra_fileType_txt:XY,ra_fileType_video:JY,"ra_fileType_video,":"Video",ra_filter_customs:YY,ra_filter_customs_without:KY,ra_filter_func:ZY,ra_filter_id:QY,ra_filter_name:eK,ra_filter_role:tK,ra_filter_room:rK,ra_filter_type:nK,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:oK,ra_lastChange:aK,ra_locally:iK,ra_month_Apr:sK,ra_month_Aug:cK,ra_month_Dec:lK,ra_month_Feb:uK,ra_month_Jan:dK,ra_month_Jul:pK,ra_month_Jun:fK,ra_month_Mai:hK,ra_month_Mar:mK,ra_month_Nov:_K,ra_month_Oct:gK,ra_month_Sep:yK,ra_months_Apr:vK,ra_months_Aug:bK,ra_months_Dec:wK,ra_months_Feb:SK,ra_months_Jan:xK,ra_months_Jul:kK,ra_months_Jun:CK,ra_months_Mai:$K,ra_months_Mar:EK,ra_months_Nov:TK,ra_months_Oct:OK,ra_months_Sep:DK,"ra_no confirm for 5 mins":"no confirm for 5 mins",ra_none:RK,ra_object_changed_by:MK,ra_object_changed_by_user:AK,ra_otherConfig:NK,ra_qualityCode:IK,ra_repeat:PK,ra_select_folder_hint:jK,ra_show_all:zK,ra_state_changed_by:LK,ra_state_changed_from:FK,ra_timestamp:BK,ra_tooltip_ack:WK,ra_tooltip_comment:UK,ra_tooltip_copyState:qK,ra_tooltip_ctrlForLink:HK,ra_tooltip_customConfig:VK,ra_tooltip_deleteObject:GK,ra_tooltip_editObject:XK,ra_tooltip_editState:JK,ra_tooltip_expire:YK,ra_tooltip_from:KK,ra_tooltip_lc:ZK,ra_tooltip_quality:QK,ra_tooltip_ts:eZ,ra_tooltip_user:tZ,ra_tooltip_value:rZ,ra_true:nZ,"ra_use seconds":"use seconds",ra_val:oZ,"ra_via internet":"via internet",ra_warning_every_minute:aZ,ra_warning_every_second:iZ,sc_cron:sZ,sc_date:cZ,sc_dates:lZ,sc_dow:uZ,sc_dows:dZ,sc_every:pZ,sc_everyN_dates:fZ,sc_everyN_dow:hZ,sc_everyN_dows:mZ,sc_everyN_hours:_Z,sc_everyN_minutes:gZ,sc_everyN_months:yZ,sc_everyN_seconds:vZ,sc_every_dates:bZ,sc_every_dow:wZ,sc_every_dows:SZ,sc_every_hours:xZ,sc_every_minutes:kZ,sc_every_months:CZ,sc_every_seconds:$Z,sc_from:EZ,sc_hours:TZ,sc_interval:OZ,sc_intervalBetween:DZ,sc_invalid_cron:RZ,sc_minutes:MZ,sc_months:AZ,sc_once:NZ,sc_period:IZ,sc_seconds:PZ,sc_simple:jZ,sc_specific:zZ,sc_specific_dates:LZ,sc_specific_dow:FZ,sc_specific_dows:BZ,sc_specific_hours:WZ,sc_specific_minutes:UZ,sc_specific_months:qZ,sc_specific_seconds:HZ,sc_time:VZ,sc_to:GZ,sc_wizard:XZ,sch_all:JZ,sch_astroDay:YZ,sch_astroNight:KZ,sch_astro_dawn:ZZ,sch_astro_dusk:QZ,sch_astro_goldenHour:eQ,sch_astro_goldenHourEnd:tQ,sch_astro_nadir:rQ,sch_astro_nauticalDawn:nQ,sch_astro_nauticalDusk:oQ,sch_astro_night:aQ,sch_astro_nightEnd:iQ,sch_astro_solarNoon:sQ,sch_astro_sunrise:cQ,sch_astro_sunriseEnd:lQ,sch_astro_sunset:uQ,sch_astro_sunsetStart:dQ,sch_at:pQ,sch_desc_atTime:fQ,sch_desc_everyDay:hQ,sch_desc_everyHour:mQ,sch_desc_everyMinute:_Q,sch_desc_everyMonth:gQ,sch_desc_everyNDay:yQ,sch_desc_everyNHours:vQ,sch_desc_everyNMinutes:bQ,sch_desc_everyNMonths:wQ,sch_desc_everyNWeeks:SQ,sch_desc_everyNYears:xQ,sch_desc_everyWeek:kQ,sch_desc_everyYear:CQ,sch_desc_intervalFromTo:$Q,sch_desc_never:EQ,sch_desc_onDate:TQ,sch_desc_onDates:OQ,sch_desc_onEveryDate:DQ,sch_desc_onMonth:RQ,sch_desc_onMonths:MQ,sch_desc_onWeekday:AQ,sch_desc_onWeekdays:NQ,sch_desc_onWeekends:IQ,sch_desc_onWorkdays:PQ,sch_desc_onceInPast:jQ,sch_desc_once_on:zQ,sch_desc_validFrom:LQ,sch_desc_validFromTo:FQ,sch_desc_validTo:BQ,sch_every:WQ,sch_exactTime:UQ,sch_from:qQ,sch_fromTo:HQ,sch_intervalTime:VQ,sch_invert:GQ,sch_no_one:XQ,sch_on:JQ,sch_period:YQ,sch_periodDaily:KQ,sch_periodDates:ZQ,sch_periodDay:QQ,sch_periodEvery:eee,sch_periodEveryDay:tee,sch_periodEveryMonth:ree,sch_periodEveryWeek:nee,sch_periodEveryYear:oee,sch_periodHours:aee,sch_periodMinutes:iee,sch_periodMonth:see,sch_periodMonthly:cee,sch_periodOnce:lee,sch_periodSpecificMonths:uee,sch_periodWeek:dee,sch_periodWeekdays:pee,sch_periodWeekend:fee,sch_periodWeekly:hee,sch_periodWorkdays:mee,sch_periodYear:_ee,sch_periodYearly:gee,sch_specificTime:yee,sch_time:vee,sch_to:bee,sch_valid:wee,sch_validFrom:See,sch_validTo:xee,sch_wholeDay:kee,sch_yearEveryMonth:Cee},Eee="Aktionen",Tee="Anhängen",Oee="Abbrechen",Dee="Kategorien",Ree="Geprüft",Mee="Löschen",Aee="Schließen",Nee="Kommerziell",Iee="Konfigurieren",Pee="Verbunden",jee="Weitermachen",zee="Kopiert",Lee="Erstellen",Fee="Ernte",Bee="Entf",Wee="Löschen",Uee="Verwerfen",qee="Getrennt",Hee="Fehler",Vee="Filter",Gee="Freitag",Xee="Breite",Jee="Ausloggen",Yee="Längengrad",Kee="Meldung",Zee="Montag",Qee="Name",ete="Objekte",tte="OK",rte="Produkt",nte="Umbenennen/Verschieben/Kopieren",ote="Wiederholen",ate="Ersetzen",ite="Anfang",ste="Samstag",cte="Speichern",lte="Ausgewählt",ute="Zustände",dte="Sonntag",pte="Donnerstag",fte="Zeitstempel",hte="Dienstag",mte="Aktualisieren",_te="Gültig bis",gte="Wert",yte="Ausführung",vte="Mittwoch",bte="Breite",wte="Ja",Ste="unterschiedlich",xte="Jeder kann Objekt lesen",kte="Jeder kann Zustand lesen",Cte="Jeder kann ein Objekt schreiben",$te="Jeder kann Zustand schreiben",Ete="Gruppe kann Objekt lesen",Tte="Gruppe kann Status lesen",Ote="Gruppe kann Objekt schreiben",Dte="Gruppe kann Status schreiben",Rte="Besitzer kann Objekt lesen",Mte="Besitzer kann Zustand lesen",Ate="Besitzer kann Objekt schreiben",Nte="Besitzer kann Zustand schreiben",Ite="Tasten",Pte="Geändert von",jte="Schließen",zte="Booleschen Zustand erstellen",Lte="Kanal erstellen",Fte="Gerät erstellen",Bte="Nummern-Zustand erstellen",Wte="Zustand erstellen",Ute="String-Zustand erstellen",qte="T.",Hte="Fr",Vte="Mo",Gte="Sa",Xte="So",Jte="Do",Yte="Di",Kte="Mi",Zte="Expertenmodus",Qte="FALSCH",ere="Alle Dateien",tre="Audio",rre="Code/JSON",nre="Bilder",ore="Text",are="Video",ire="Einstellungen",sre="ohne",cre="Funktion",lre="ID",ure="Name",dre="Rolle",pre="Raum",fre="Typ",hre="Ungültige Einstellungen",mre="Letzte Änderung",_re="örtlich",gre="Apr",yre="Aug",vre="Dez",bre="Feb",wre="Jan",Sre="Jul",xre="Jun",kre="Mai",Cre="Mär",$re="Nov",Ere="Okt",Tre="Sep",Ore="Apr",Dre="Aug",Rre="Dez",Mre="Feb",Are="Jan",Nre="Jul",Ire="Jun",Pre="Mai",jre="Mär",zre="Nov",Lre="Okt",Fre="Sep",Bre="kein",Wre="Objekt geändert von",Ure="Objekt zuletzt geändert um",qre="Einstellungen von anderen Adaptern %s",Hre="Qualitätscode",Vre="wiederholen",Gre='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',Xre="Alle anzeigen",Jre="Zustand geändert durch",Yre="Objekt geändert von",Kre="Zeitstempel",Zre="Bestätigt",Qre="Kommentar",ene="Statuswert kopieren",tne="Strg/⌘-Taste gedrückt halten, um den Link zu öffnen",rne="Benutzerdefinierte Einstellungen",nne="Objekt löschen",one="Objekt bearbeiten",ane="Statuswert bearbeiten",ine="Läuft ab in",sne="Von",cne="Zuletzt geändert",lne="Qualität",une="Zeitstempel",dne="Benutzer",pne="Wert",fne="WAHR",hne="Wert",mne="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",_ne="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",gne="CRON",yne="Datum",vne="Tage",bne="Tag",wne="Wochentage",Sne="Jeden",xne="alle N Tage",kne="jeden x-ten Tag der Woche",Cne="alle N Wochentage",$ne="alle N Stunden",Ene="alle N Minuten",Tne="alle N Monate",One="alle N Sekunden",Dne="jeden Tag",Rne="jeden Tag der Woche",Mne="jeden Tag der Woche",Ane="jede Stunde",Nne="jede Minute",Ine="jeden Monat",Pne="jede Sekunde",jne="Von",zne="Stunden",Lne="Intervall",Fne="Intervall zwischen",Bne="Ungültiger CRON",Wne="Minuten",Une="Monate",qne="Einmal",Hne="Zeitraum",Vne="Sekunden",Gne="Einfach",Xne="Bestimmte Zeit",Jne="bestimmte Tage",Yne="bestimmte(r) Tag(e) der Woche",Kne="bestimmten Wochentag",Zne="bestimmte Stunden",Qne="bestimmte Minuten",eoe="bestimmte Monate",toe="bestimmte Sekunden",roe="Zeit",noe="Bis",ooe="Wizard",aoe="alle",ioe="Astronomischer Tag",soe="Astronomische Nacht",coe="Morgendämmerung",loe="Abenddämmerung",uoe="Goldene Stunde",doe="Goldene Stundenende",poe="Nadir",foe="Nautische Morgendämmerung",hoe="Nautische Abenddämmerung",moe="Nacht",_oe="Nachtende",goe="Sonnenmittag",yoe="Sonnenaufgang",voe="Sonnenaufgangende",boe="Sonnenuntergang",woe="Sonnenuntergangstart",Soe="am",xoe="um %s",koe="jeden Tag",Coe="jede Stunde",$oe="jede Minute",Eoe="jeden Monat",Toe="jeden %s Tag",Ooe="alle %s Stunden",Doe="alle %s Minuten",Roe="alle %s Monate",Moe="alle %s Wochen",Aoe="alle %s Jahre",Noe="jede Woche",Ioe="jedes Jahr",Poe="von %s bis %s",joe="noch nie",zoe="am %s von %s",Loe="am %s und %s von",Foe="an jedem Datum von",Boe="%s",Woe="%s und %s",Uoe="auf %s",qoe="auf %s und %s",Hoe="an Wochenenden",Voe="an Werktagen",Goe="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",Xoe="auf %s",Joe="von %s",Yoe="Ausführen von bis",Koe="bis %s",Zoe="jeden",Qoe="Bestimmte Zeit",eae="von",tae="Von bis",rae="Zeitintervall",nae="umkehren",oae="keiner",aae="am",iae="Zeitraum",sae="Täglich",cae="Daten",lae="Tag",uae="Jeden",dae="Jeden Tag",pae="Jeden Monat",fae="Jede Woche",hae="Jedes Jahr",mae="Stunden",_ae="Minuten",gae="Monat",yae="Monatlich",vae="Einmal",bae="Bestimmte Monate",wae="Woche",Sae="Wochentage",xae="Wochenende",kae="Wöchentlich",Cae="Arbeitstage",$ae="Jahr",Eae="Jährlich",Tae="Bestimmte Zeit",Oae="Zeit",Dae="zu",Rae="Gültigkeit",Mae="von",Aae="bis",Nae="Ganzer Tag",Iae="jeden Monat",Pae={"ra_%s links from aliases":"%s Links von Aliasen","ra_%s object(s) processed":"%s Objekt(e) verarbeitet","ra_%s was imported":"%s wurde importiert","ra_Accept license":"Lizenz akzeptieren",ra_Actions:Eee,"ra_Add new child object to selected parent":"Dem ausgewählten übergeordneten Objekt ein neues untergeordnetes Objekt hinzufügen","ra_Add objects tree from JSON file":"Objektbaum aus JSON-Datei hinzufügen","ra_Add row":"Zeile hinzufügen","ra_Advanced options":"Erweiterte Optionen","ra_All items are filtered out":"Alle Elemente sind herausgefiltert","ra_All objects":"Alle Objekte",ra_Append:Tee,"ra_Append %s entries or replace existing?":"%s Einträge anhängen oder vorhandene ersetzen?","ra_Append or replace?":"Anhängen oder ersetzen?","ra_Are you sure?":"Bist du sicher?","ra_Auto (no custom columns)":"Auto (keine benutzerdefinierten Spalten)","ra_Back to %s":"Zurück zu %s","ra_Background image":"Hintergrundbild",ra_Cancel:Oee,"ra_Cannot add items with set filter":"Elemente mit festgelegtem Filter können nicht hinzugefügt werden","ra_Cannot decode license":"Lizenz kann nicht entschlüsselt werden","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Position kann nicht bestimmt werden: Die Systemeinstellungen sind leer und die GPS-Erkennung ist im Browser deaktiviert",'ra_Cannot find "%s"':'Kann "%s" nicht finden','ra_Cannot read "%s"':'"%s" kann nicht gelesen werden',"ra_Cannot read licenses: %s":"Lizenzen können nicht gelesen werden: %s","ra_Cannot retrieve options, as instance is offline":"Optionen können nicht abgerufen werden, da die Instanz offline ist","ra_Cannot update attribute, because not found in the object":"Attribut kann nicht aktualisiert werden, da es nicht im Objekt gefunden wurde","ra_Cannot upload":"Kann nicht hochladen",ra_Categories:Dee,"ra_Chained certificate":"Chained Zertifikat","ra_Change color theme":"Farbthema ändern","ra_Changed from":"Geändert von","ra_Channel → State":"Kanal → Zustand","ra_Check license":"Lizenz prüfen",ra_Checked:Ree,ra_Clear:Mee,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Click to see in full size":"Klicken Sie hier, um die Vollbildansicht zu öffnen.","ra_Click to show":"Zum Anzeigen klicken","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:Aee,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:Nee,ra_Configure:Iee,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:Pee,ra_Continue:jee,ra_Copied:zee,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:Lee,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:Fee,"ra_Define CRON...":"Definieren Sie CRON ...","ra_Define functions":"Funktionen definieren","ra_Define rooms":"Räume definieren","ra_Define schedule":"Zeitplan definieren","ra_Define schedule...":"Zeitplan definieren ...",ra_Del:Bee,ra_Delete:Wee,"ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand","ra_Disable/Enable translation":"Übersetzung deaktivieren/aktivieren",ra_Discard:Uee,ra_Disconnected:qee,"ra_Do not ask for next 2 hours in this session":"Fragen Sie nicht nach den nächsten 2 Stunden in dieser Sitzung","ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","ra_Docker is not available":"Docker ist nicht verfügbar","ra_Docker is not installed or not running":"Docker ist nicht installiert oder läuft nicht","ra_Double click to reset table layout":"Doppelklicken, um das Tabellenlayout zurückzusetzen","ra_Drag 'n' drop some files here, or click to select files":"Die Datei hierher ziehen und ablegen, oder klicken, um die Datei auszuwählen","ra_Drop file here":"Datei hier ablegen","ra_Drop the files here...":"Datei hier ablegen...","ra_Duplicate name":"Doppelter Name","ra_Edit ACL":"ACL bearbeiten","ra_Edit alias":"Alias bearbeiten","ra_Edit custom config":"Bearbeite Benutzerdefinierte Konfiguration","ra_Edit full path":"Vollständigen Pfad bearbeiten","ra_Edit function":"Funktion bearbeiten","ra_Edit object field":"Objektfeld bearbeiten","ra_Edit role":"Rolle bearbeiten","ra_Edit room":"Raum bearbeiten","ra_Edit value":"Wert bearbeiten","ra_Enter the code from that page here":"Geben Sie den Code von dieser Seite hier ein",ra_Error:Hee,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","ra_Expand/Collapse card":"Karte ein-/ausklappen","ra_Export configuration section":"Konfigurationsabschnitt exportieren","ra_Export data to %s file":"Daten in %s-Datei exportieren","ra_Failed to open JSON File":"Fehler beim Öffnen der JSON-Datei","ra_Fallback custom certificates":"Benutzerdefinierte Fallback-Zertifikate","ra_File is too big. Max %sk allowed. Try use SVG.":"Datei ist zu groß. Max %sk erlaubt. Versuchen Sie, SVG zu verwenden.",ra_Filter:Vee,"ra_Filter and Data Actions":"Filter- und Datenaktionen","ra_Filter files":"Dateien filtern","ra_Folder name":"Ordnernamen","ra_Folder → Channel → State":"Ordner → Kanal → Zustand","ra_Folder → Device → Channel → State":"Ordner → Gerät → Kanal → Zustand","ra_Folder → State":"Ordner → Zustand","ra_Folders always first":"Ordner immer zuerst",ra_Friday:Gee,"ra_From file":"Aus der Datei","ra_From text":"Aus dem Text","ra_Get %s access":"%s Zugriff erhalten","ra_Good luck":"Viel Glück","ra_Hide empty folders":"Leere Ordner ausblenden","ra_If no file will be created in the folder, it will disappear after the browser closed":"Wenn im Ordner keine Datei erstellt wird, verschwindet dieser nach dem Schließen des Browsers","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Wenn die Schaltfläche oben nicht funktioniert, können Sie diese App manuell autorisieren, indem Sie diese URL besuchen","ra_Import and add configuration section":"Konfigurationsabschnitt importieren und hinzufügen","ra_Import and replace configuration section":"Konfigurationsabschnitt importieren und ersetzen","ra_Import data from %s file":"Daten aus %s-Datei importieren","ra_Import from %s":"Von %s importieren","ra_Instance %s is alive":"Instanz %s ist aktiv","ra_Instance %s is not alive":"Instanz %s ist nicht aktiv","ra_Instance is not alive":"Instanz ist nicht am Leben","ra_Invalid CRON":"Ungültiger CRON","ra_Invalid JSON":"Ungültiges JSON","ra_Invalid JSON file.":"Ungültige JSON-Datei.","ra_Invalid JSON format. Expected an array.":"Ungültiges JSON-Format. Array erwartet.","ra_Invalid answer from server":"Ungültige Antwort vom Server","ra_Invalid parent folder!":"Ungültiger übergeordneter Ordner!","ra_Invalid structure":"Ungültige Struktur","ra_JSON editor":"JSON-Editor","ra_Last change":"Letzte Änderung",ra_Latitude:Xee,"ra_License %s":"Lizenz %s","ra_License agreement":"Lizenzvereinbarung","ra_License does not exist":"Lizenz existiert nicht","ra_License expired on %s":"Lizenz am %s abgelaufen",'ra_License for other product "%s"':"Lizenz für anderes Produkt „%s“","ra_License is for version %s, but required version is %s.":"Lizenz ist für Version %s, aber erforderliche Version ist %s.","ra_License must be converted":"Die Lizenz muss auf eine neuere Version konvertiert werden. Sie können dies in Ihrem iobroker.net-Profil tun.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Lizenz im Lizenzmanager nicht gefunden. Möchten Sie Lizenzen von iobroker.net aktualisieren?","ra_Listen on all IPs":"Zugriff von allen IPs zulassen","ra_Load configuration from file":"Konfiguration aus Datei laden",ra_Logout:Jee,ra_Longitude:Yee,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:Kee,ra_Monday:Zee,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:Qee,"ra_No data found in file":"Keine Daten in der Datei gefunden","ra_No one license found in license manager":"Im Lizenzmanager wurde keine Lizenz gefunden","ra_No response from admin":"Keine Antwort vom Administrator","ra_No response from the backend":"Keine Antwort vom Backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Nicht-Experten dürfen neue Objekte nur in "0_userdata.0" oder "alias.0" erstellen.',"ra_Not a number":"Keine Nummer","ra_OAuth Client ID":"OAuth-Client-ID","ra_OAuth Client secret":"OAuth-Client-Secret",ra_Objects:ete,ra_Ok:tte,"ra_On weekdays":"An Wochentagen","ra_Only following structures of objects are available:":"Es stehen nur folgende Objektstrukturen zur Verfügung:","ra_Only selected":"Nur ausgewählt","ra_Owner group":"Besitzergruppe","ra_Owner user":"Besitzer Benutzer","ra_Passwords are not equal!":"Passwörter sind nicht gleich!","ra_Place your files here or click here to open the browse dialog":"Die Dateien hier platzieren oder hier klicken, um den Suchdialog zu öffnen","ra_Please allow popups in your browser for this page!":"Bitte lassen Sie Popups für diese Seite in Ihrem Browser zu!","ra_Please confirm":"Bitte bestätigen","ra_Please create license":"Bitte erstellen Sie eine Lizenz","ra_Please enter the license":"Bitte die Lizenz eingeben","ra_Please select file...":"Bitte Datei auswählen...","ra_Please select object ID...":"Bitte Objekt-ID auswählen...","ra_Port could be used by %s":"Port könnte von %s verwendet werden","ra_Port is already used by %s":"Port wird bereits von %s verwendet","ra_Press ENTER Key to add new item":"Die Eingabetaste drücken, um ein neues Element hinzuzufügen","ra_Private certificate":"Privates Zertifikat",ra_Product:rte,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Rename_Move_Copy:nte,"ra_Renew %s access":"%s Zugriff erneuern",ra_Repeat:ote,ra_Replace:ate,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:ite,ra_Saturday:ste,ra_Save:cte,"ra_Save and close":"Speichern und schließen","ra_Save configuration to file":"Konfiguration in Datei speichern","ra_Save objects tree as JSON file":"Objektbaum als JSON-Datei speichern","ra_Select all":"Alle auswählen","ra_Select color":"Wähle Farbe","ra_Select predefined icon":"Vordefiniertes Symbol auswählen","ra_Select type of export":"Die Art des Exports auswählen ",ra_Selected:lte,"ra_Selected %s object(s)":"Ausgewählt %s Objekt(en)","ra_Serial number (UUID)":"Seriennummer (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':"Seriennummer (UUID) „%s“ in der Lizenz gilt für ein anderes Gerät.","ra_Session will expire in %s seconds. Continue?":"Die Sitzung läuft in %s Sekunden ab. Fortfahren?","ra_Show all folders":"Alle Ordner anzeigen","ra_Show lines between rows":"Linien zwischen Zeilen anzeigen","ra_Show/Hide object descriptions":"Objektbeschreibungen ein-/ausblenden","ra_Show/hide filter input":"Filtereingabe ein-/ausblenden","ra_Some data are not stored. Discard?":"Einige Daten werden nicht gespeichert. Verwerfen?",ra_States:ute,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Erfolgreich autorisiert. Token gültig bis %s und wird automatisch erneuert.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Erfolgreich autorisiert. Token gültig bis %s, kann aber ablaufen, da die Instanz nicht ausgeführt wird.","ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:dte,"ra_Suppress question for next %s minutes":"Frage für die nächsten %s Minuten unterdrücken","ra_System language":"Systemsprache","ra_Take browser position":"Position vom Browser einnehmen","ra_Take position from system settings":"Position aus den Systemeinstellungen übernehmen",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Die Experten können Objekte überall erstellen, außer auf der zweiten Ebene (z. B. "vis.0" oder "javascript.0").',"ra_The page you are looking for was not found":"Die gesuchte Seite wurde nicht gefunden","ra_The schedule will be executed every minute. Are you sure?":"Der Zeitplan wird jede Minute ausgeführt. Sind Sie sicher?","ra_The schedule will be executed every second. Are you sure?":"Der Zeitplan wird jede Sekunde ausgeführt. Sind Sie sicher?",ra_Thursday:pte,ra_Timestamp:fte,"ra_Toggle expert mode":"Expertenmodus umschalten","ra_Toggle the states view":"Statusansicht umschalten","ra_Toggle view mode":"Ansichtsmodus umschalten","ra_Too big":"Zu groß","ra_Too small":"Zu klein","ra_Transparent dialog":"Transparenter Dialog",ra_Tuesday:hte,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:mte,"ra_Upload file":"Datei hochladen","ra_Use all available let's encrypt certificates":"Alle verfügbaren Zertifikate von Let's encrypt benutzen","ra_Use iobroker.acme adapter for letsencrypt certificates":"ioBroker.acme-Adapter für letsencrypt-Zertifikate verwenden","ra_Use system settings for position":"Systemeinstellungen für die Position verwenden","ra_Used system settings":"Systemeinstellungen","ra_User files":"Benutzerdaten",ra_ValidTill:_te,ra_Value:gte,ra_Version:yte,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:vte,ra_Width:bte,"ra_YAML editor":"YAML-Editor",ra_Yes:wte,"ra_You can export all objects or just the selected branch.":"Sie können alle Objekte oder nur den ausgewählten Zweig exportieren.","ra_You can filter entries by entering here some text":"Sie können Einträge filtern, indem Sie hier Text eingeben","ra_You can use * as wildcard":"Sie können * als Platzhalter verwenden",ra___different__:Ste,ra_aclEveryone_read_object:xte,ra_aclEveryone_read_state:kte,ra_aclEveryone_write_object:Cte,ra_aclEveryone_write_state:$te,ra_aclGroup_read_object:Ete,ra_aclGroup_read_state:Tte,ra_aclGroup_write_object:Ote,ra_aclGroup_write_state:Dte,ra_aclOwner_read_object:Rte,ra_aclOwner_read_state:Mte,ra_aclOwner_write_object:Ate,ra_aclOwner_write_state:Nte,ra_buttons:Ite,ra_changedFrom:Pte,ra_close:jte,ra_create_boolean_state:zte,ra_create_channel:Lte,ra_create_device:Fte,ra_create_number_state:Bte,ra_create_state:Wte,ra_create_string_state:Ute,ra_daysShortText:qte,ra_dow_Fr:Hte,ra_dow_Mo:Vte,ra_dow_Sa:Gte,ra_dow_Su:Xte,ra_dow_Th:Jte,ra_dow_Tu:Yte,ra_dow_We:Kte,ra_expertMode:Zte,ra_false:Qte,ra_fileType_all:ere,ra_fileType_audio:tre,ra_fileType_code:rre,ra_fileType_images:nre,ra_fileType_txt:ore,ra_fileType_video:are,"ra_fileType_video,":"Video",ra_filter_customs:ire,ra_filter_customs_without:sre,ra_filter_func:cre,ra_filter_id:lre,ra_filter_name:ure,ra_filter_role:dre,ra_filter_room:pre,ra_filter_type:fre,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:hre,ra_lastChange:mre,ra_locally:_re,ra_month_Apr:gre,ra_month_Aug:yre,ra_month_Dec:vre,ra_month_Feb:bre,ra_month_Jan:wre,ra_month_Jul:Sre,ra_month_Jun:xre,ra_month_Mai:kre,ra_month_Mar:Cre,ra_month_Nov:$re,ra_month_Oct:Ere,ra_month_Sep:Tre,ra_months_Apr:Ore,ra_months_Aug:Dre,ra_months_Dec:Rre,ra_months_Feb:Mre,ra_months_Jan:Are,ra_months_Jul:Nre,ra_months_Jun:Ire,ra_months_Mai:Pre,ra_months_Mar:jre,ra_months_Nov:zre,ra_months_Oct:Lre,ra_months_Sep:Fre,"ra_no confirm for 5 mins":"5 Minuten lang keine Bestätigung",ra_none:Bre,ra_object_changed_by:Wre,ra_object_changed_by_user:Ure,ra_otherConfig:qre,ra_qualityCode:Hre,ra_repeat:Vre,ra_select_folder_hint:Gre,ra_show_all:Xre,ra_state_changed_by:Jre,ra_state_changed_from:Yre,ra_timestamp:Kre,ra_tooltip_ack:Zre,ra_tooltip_comment:Qre,ra_tooltip_copyState:ene,ra_tooltip_ctrlForLink:tne,ra_tooltip_customConfig:rne,ra_tooltip_deleteObject:nne,ra_tooltip_editObject:one,ra_tooltip_editState:ane,ra_tooltip_expire:ine,ra_tooltip_from:sne,ra_tooltip_lc:cne,ra_tooltip_quality:lne,ra_tooltip_ts:une,ra_tooltip_user:dne,ra_tooltip_value:pne,ra_true:fne,"ra_use seconds":"Sekunden benutzen",ra_val:hne,"ra_via internet":"übers Internet",ra_warning_every_minute:mne,ra_warning_every_second:_ne,sc_cron:gne,sc_date:yne,sc_dates:vne,sc_dow:bne,sc_dows:wne,sc_every:Sne,sc_everyN_dates:xne,sc_everyN_dow:kne,sc_everyN_dows:Cne,sc_everyN_hours:$ne,sc_everyN_minutes:Ene,sc_everyN_months:Tne,sc_everyN_seconds:One,sc_every_dates:Dne,sc_every_dow:Rne,sc_every_dows:Mne,sc_every_hours:Ane,sc_every_minutes:Nne,sc_every_months:Ine,sc_every_seconds:Pne,sc_from:jne,sc_hours:zne,sc_interval:Lne,sc_intervalBetween:Fne,sc_invalid_cron:Bne,sc_minutes:Wne,sc_months:Une,sc_once:qne,sc_period:Hne,sc_seconds:Vne,sc_simple:Gne,sc_specific:Xne,sc_specific_dates:Jne,sc_specific_dow:Yne,sc_specific_dows:Kne,sc_specific_hours:Zne,sc_specific_minutes:Qne,sc_specific_months:eoe,sc_specific_seconds:toe,sc_time:roe,sc_to:noe,sc_wizard:ooe,sch_all:aoe,sch_astroDay:ioe,sch_astroNight:soe,sch_astro_dawn:coe,sch_astro_dusk:loe,sch_astro_goldenHour:uoe,sch_astro_goldenHourEnd:doe,sch_astro_nadir:poe,sch_astro_nauticalDawn:foe,sch_astro_nauticalDusk:hoe,sch_astro_night:moe,sch_astro_nightEnd:_oe,sch_astro_solarNoon:goe,sch_astro_sunrise:yoe,sch_astro_sunriseEnd:voe,sch_astro_sunset:boe,sch_astro_sunsetStart:woe,sch_at:Soe,sch_desc_atTime:xoe,sch_desc_everyDay:koe,sch_desc_everyHour:Coe,sch_desc_everyMinute:$oe,sch_desc_everyMonth:Eoe,sch_desc_everyNDay:Toe,sch_desc_everyNHours:Ooe,sch_desc_everyNMinutes:Doe,sch_desc_everyNMonths:Roe,sch_desc_everyNWeeks:Moe,sch_desc_everyNYears:Aoe,sch_desc_everyWeek:Noe,sch_desc_everyYear:Ioe,sch_desc_intervalFromTo:Poe,sch_desc_never:joe,sch_desc_onDate:zoe,sch_desc_onDates:Loe,sch_desc_onEveryDate:Foe,sch_desc_onMonth:Boe,sch_desc_onMonths:Woe,sch_desc_onWeekday:Uoe,sch_desc_onWeekdays:qoe,sch_desc_onWeekends:Hoe,sch_desc_onWorkdays:Voe,sch_desc_onceInPast:Goe,sch_desc_once_on:Xoe,sch_desc_validFrom:Joe,sch_desc_validFromTo:Yoe,sch_desc_validTo:Koe,sch_every:Zoe,sch_exactTime:Qoe,sch_from:eae,sch_fromTo:tae,sch_intervalTime:rae,sch_invert:nae,sch_no_one:oae,sch_on:aae,sch_period:iae,sch_periodDaily:sae,sch_periodDates:cae,sch_periodDay:lae,sch_periodEvery:uae,sch_periodEveryDay:dae,sch_periodEveryMonth:pae,sch_periodEveryWeek:fae,sch_periodEveryYear:hae,sch_periodHours:mae,sch_periodMinutes:_ae,sch_periodMonth:gae,sch_periodMonthly:yae,sch_periodOnce:vae,sch_periodSpecificMonths:bae,sch_periodWeek:wae,sch_periodWeekdays:Sae,sch_periodWeekend:xae,sch_periodWeekly:kae,sch_periodWorkdays:Cae,sch_periodYear:$ae,sch_periodYearly:Eae,sch_specificTime:Tae,sch_time:Oae,sch_to:Dae,sch_valid:Rae,sch_validFrom:Mae,sch_validTo:Aae,sch_wholeDay:Nae,sch_yearEveryMonth:Iae},jae="Действия",zae="Добавить",Lae="Отмена",Fae="Категории",Bae="Проверено",Wae="Удалить",Uae="Закрыть",qae="Коммерческая",Hae="Настроить",Vae="Соединение установлено",Gae="Продолжать",Xae="скопировано",Jae="Создать",Yae="Обрезать",Kae="Delete",Zae="Удалить",Qae="Отказаться",eie="Отключено",tie="Ошибка",rie="Фильтр",nie="Пятница",oie="Широта",aie="Выйти",iie="Долгота",sie="Сообщение",cie="Понедельник",lie="Имя",uie="Объекты",die="Ok",pie="Продукт",fie="Переименовать/Переместить/Копировать",hie="Повторение",mie="Заменять",_ie="Начало",gie="Суббота",yie="Сохранить",vie="выбранный",bie="Состояния",wie="Воскресенье",Sie="Четверг",xie="Времени",kie="Вторник",Cie="Обновить",$ie="Годен до",Eie="Значение",Tie="Версия",Oie="Среда",Die="Ширина",Rie="Да",Mie="разное",Aie="Каждый может читать объект",Nie="Каждый может читать состояние",Iie="Каждый может написать объект",Pie="Каждый может написать состояние",jie="Группа может читать объект",zie="Группа может читать состояние",Lie="Группа может писать объект",Fie="Группа может записывать состояние",Bie="Владелец может читать объект",Wie="Владелец может читать состояние",Uie="Владелец может писать объект",qie="Владелец может писать состояние",Hie="Кнопки",Vie="Изменено с",Gie="Закрыть",Xie="Создать логическое состояние",Jie="Создать канал",Yie="Создать устройство",Kie="Создать состояние номера",Zie="Создать состояние",Qie="Создать состояние строки",ese="д.",tse="Пт",rse="Пн",nse="Сб",ose="Вс",ase="Чт",ise="Вт",sse="Ср",cse="Экспертный режим",lse="ЛОЖЬ",use="Все файлы",dse="Аудио",pse="Код/JSON",fse="Картинки",hse="Текст",mse="видео",_se="настройки",gse="без",yse="функция",vse="ID",bse="Имя",wse="роль",Sse="комната",xse="Тип",kse="Неверные настройки",Cse="Последнее изменение",$se="локально",Ese="Апр",Tse="Авг",Ose="Дек",Dse="Фев",Rse="Янв",Mse="Июл",Ase="Июн",Nse="Май",Ise="Мрт",Pse="Ноя",jse="Окт",zse="Сен",Lse="Апр",Fse="Авг",Bse="Дек",Wse="Фев",Use="Янв",qse="Июнь",Hse="Июль",Vse="Май",Gse="Март",Xse="Ноя",Jse="Окт",Yse="Сен",Kse="ничего",Zse="Объект изменен",Qse="Последний раз объект изменен в",ece="Настройки из другого адаптера %s",tce="Код качества",rce="повтор",nce="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",oce="Показать все",ace="Состояние изменено",ice="Объект изменен с",sce="Отметка времени",cce="Подтверждено",lce="Комментарий",uce="Скопируйте значение состояния",dce="Удерживайте клавишу Cltr/⌘, чтобы открыть ссылку",pce="Пользовательские настройки",fce="Удалить объект",hce="Редактировать объект",mce="Изменить значение состояния",_ce="Истекает через",gce="От",yce="Последнее изменение",vce="Качество",bce="Отметка времени",wce="пользователь",Sce="Значение",xce="истинный",kce="Значение",Cce="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",$ce="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",Ece="CRON",Tce="Дата",Oce="Даты",Dce="День",Rce="День недели",Mce="каждый(ую/ые)",Ace="каждый N день",Nce="каждый N-й день недели",Ice="каждый N день недели",Pce="каждые N часов",jce="каждые N минут",zce="каждые N месяцев",Lce="каждые N секунд",Fce="каждый день",Bce="Каждый день недели",Wce="каждый день недели",Uce="каждый час",qce="каждую минуту",Hce="каждый месяц",Vce="каждую секунду",Gce="От",Xce="часы",Jce="Интервал",Yce="Интервал между",Kce="Неверный CRON",Zce="минуты",Qce="Месяцы",ele="один раз",tle="Период",rle="секунды",nle="Просто",ole="Конкретное время",ale="конкретные даты",ile="конкретный день(а) недели",sle="конкретный день недели",cle="конкретные часы",lle="конкретные минуты",ule="конкретные месяцы",dle="конкретные секунды",ple="Время",fle="До",hle="Форма",mle="все",_le="днём",gle="ночью",yle="Рассвет",vle="Сумерки",ble="Золотой час",wle="Конец золотого часа",Sle="Надир",xle="Морской рассвет",kle="Морские сумерки",Cle="Ночь",$le="Конец ночи",Ele="Солнечный полдень",Tle="Восход",Ole="Восход солнца",Dle="Заход солнца",Rle="Начало заката",Mle="дата",Ale="в %s",Nle="каждый день",Ile="каждый час",Ple="каждую минуту",jle="каждый месяц",zle="каждый %s день",Lle="каждый %s часов",Fle="каждые %s минут",Ble="каждые %s месяцев",Wle="каждые %s недель",Ule="каждые %s лет",qle="каждую неделю",Hle="каждый год",Vle="от %s до %s",Gle="никогда",Xle="%s %s",Jle="%s и %s",Yle="в каждый день",Kle="%s",Zle="%s и %s",Qle="%s",eue="%s и %s",tue="на выходных",rue="в рабочие дни",nue="не будет больше выполняться, потому что начало в прошлом",oue="%s",aue="%s",iue="Выполнить с",sue="%s",cue="каждый",lue="Конкретное время",uue="от",due="От и до",pue="Интервал времени",fue="инвертировать",hue="никакой",mue="на",_ue="период",gue="Ежедневно",yue="Даты",vue="День",bue="каждый",wue="Каждый день",Sue="Каждый месяц",xue="Каждую неделю",kue="Каждый год",Cue="часов",$ue="минут",Eue="месяц",Tue="ежемесячно",Oue="однажды",Due="Конкретные месяцы",Rue="Неделю",Mue="Будние дни",Aue="выходные",Nue="еженедельно",Iue="Рабочие дни",Pue="Год",jue="каждый год",zue="Конкретное время",Lue="Время",Fue="в",Bue="действительный",Wue="от",Uue="в",que="Весь день",Hue="каждый месяц",Vue={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию",ra_Actions:jae,"ra_Add new child object to selected parent":"Добавить новый дочерний объект к выбранному родительскому объекту","ra_Add objects tree from JSON file":"Добавить дерево объектов из файла JSON","ra_Add row":"Добавить ряд","ra_Advanced options":"Расширенные настройки","ra_All items are filtered out":"Все элементы отфильтрованы","ra_All objects":"Все объекты",ra_Append:zae,"ra_Append %s entries or replace existing?":"Добавить записи %s или заменить существующие?","ra_Append or replace?":"Дополнить или заменить?","ra_Are you sure?":"Вы уверены?","ra_Auto (no custom columns)":"Авто (без настраиваемых столбцов)","ra_Back to %s":"Вернуться к %s","ra_Background image":"Фоновая картинка",ra_Cancel:Lae,"ra_Cannot add items with set filter":"Невозможно добавить элементы с установленным фильтром","ra_Cannot decode license":"Не могу декодировать лицензию","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Невозможно определить местоположение: системные настройки пусты, а обнаружение GPS отключено в браузере.",'ra_Cannot find "%s"':'Не могу найти "%s"','ra_Cannot read "%s"':'Не могу прочитать "%s"',"ra_Cannot read licenses: %s":"Невозможно прочитать лицензии: %s","ra_Cannot retrieve options, as instance is offline":"Невозможно получить параметры, так как экземпляр находится в автономном режиме.","ra_Cannot update attribute, because not found in the object":"Невозможно обновить атрибут, потому что он не найден в объекте","ra_Cannot upload":"Невозможно загрузить",ra_Categories:Fae,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:Bae,ra_Clear:Wae,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Click to see in full size":"Нажмите, чтобы посмотреть в полном размере","ra_Click to show":"Нажмите, чтобы показать","ra_Clone current row":"Клонировать текущую строку",ra_Close:Uae,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:qae,ra_Configure:Hae,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:Vae,ra_Continue:Gae,ra_Copied:Xae,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:Jae,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:Yae,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:Kae,ra_Delete:Zae,"ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние","ra_Disable/Enable translation":"Включить/отключить перевод",ra_Discard:Qae,ra_Disconnected:eie,"ra_Do not ask for next 2 hours in this session":"Не спрашивайте о следующих 2 часах в этом сеансе","ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","ra_Docker is not available":"Докер недоступен","ra_Docker is not installed or not running":"Docker не установлен или не запущен","ra_Double click to reset table layout":"Дважды щелкните, чтобы сбросить макет таблицы","ra_Drag 'n' drop some files here, or click to select files":"Перетащите сюда несколько файлов или щелкните, чтобы выбрать файлы","ra_Drop file here":"Перетащите файл сюда","ra_Drop the files here...":"Перетащите файл сюда ...","ra_Duplicate name":"Повторяющееся имя","ra_Edit ACL":"Изменить ACL-список","ra_Edit alias":"Изменить псевдоним","ra_Edit custom config":"Редактировать настраиваемую конфигурацию","ra_Edit full path":"Изменить полный путь","ra_Edit function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение","ra_Enter the code from that page here":"Введите код с этой страницы здесь",ra_Error:tie,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","ra_Expand/Collapse card":"Развернуть/Свернуть карточку","ra_Export configuration section":"Раздел конфигурации экспорта","ra_Export data to %s file":"Экспорт данных в файл %s","ra_Failed to open JSON File":"Не удалось открыть файл JSON","ra_Fallback custom certificates":"Резервные пользовательские сертификаты","ra_File is too big. Max %sk allowed. Try use SVG.":"Файл слишком большой. Разрешено максимальное количество %sk. Попробуйте использовать SVG.",ra_Filter:rie,"ra_Filter and Data Actions":"Фильтрация и действия с данными","ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:nie,"ra_From file":"Из файла","ra_From text":"Из текста","ra_Get %s access":"Получить %s доступ","ra_Good luck":"Удачи","ra_Hide empty folders":"Скрыть пустые папки","ra_If no file will be created in the folder, it will disappear after the browser closed":"Если в папке не будет создан файл, он исчезнет после закрытия браузера.","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Если кнопка выше не работает, вы можете вручную авторизовать это приложение, перейдя по этой ссылке.","ra_Import and add configuration section":"Импорт и добавление раздела конфигурации","ra_Import and replace configuration section":"Импорт и замена раздела конфигурации","ra_Import data from %s file":"Импорт данных из файла %s","ra_Import from %s":"Импорт из %s","ra_Instance %s is alive":"Экземпляр %s работает","ra_Instance %s is not alive":"Экземпляр %s не работает","ra_Instance is not alive":"Экземпляр не живой","ra_Invalid CRON":"Неверный CRON","ra_Invalid JSON":"Неверный JSON","ra_Invalid JSON file.":"Неверный файл JSON.","ra_Invalid JSON format. Expected an array.":"Недопустимый формат JSON. Ожидается массив.","ra_Invalid answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:oie,"ra_License %s":"Лицензия %s","ra_License agreement":"Лицензионное соглашение","ra_License does not exist":"Лицензия не существует","ra_License expired on %s":"Срок действия лицензии истек %s",'ra_License for other product "%s"':'Лицензия на другой продукт "%s"',"ra_License is for version %s, but required version is %s.":"Лицензия предназначена для версии %s, но необходима версия %s.","ra_License must be converted":"Лицензия должна быть преобразована в более новую версию. Вы можете сделать это в своем профиле на iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Лицензия не найдена в диспетчере лицензий. Вы хотите обновить лицензии от iobroker.net?","ra_Listen on all IPs":"Слушать на всех IP","ra_Load configuration from file":"Загрузить конфигурацию из файла",ra_Logout:aie,ra_Longitude:iie,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:sie,ra_Monday:cie,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:lie,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","ra_No response from admin":"Нет ответа от администратора","ra_No response from the backend":"Нет ответа от бэкэнда",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Не-эксперты могут создавать новые объекты только в «0_userdata.0» или «alias.0».","ra_Not a number":"Не число","ra_OAuth Client ID":"Идентификатор клиента OAuth","ra_OAuth Client secret":"Секрет клиента OAuth",ra_Objects:uie,ra_Ok:die,"ra_On weekdays":"На выходных","ra_Only following structures of objects are available:":"Доступны только следующие структуры объектов:","ra_Only selected":"Только выбранные","ra_Owner group":"Группа владельцев","ra_Owner user":"Пользователь-владелец","ra_Passwords are not equal!":"Пароли не равны!","ra_Place your files here or click here to open the browse dialog":"Поместите свои файлы сюда или щелкните здесь, чтобы открыть диалоговое окно выбора","ra_Please allow popups in your browser for this page!":"Пожалуйста, разрешите всплывающие окна в вашем браузере для этой страницы!","ra_Please confirm":"Пожалуйста подтвердите","ra_Please create license":"Пожалуйста, создайте лицензию","ra_Please enter the license":"Пожалуйста, введите лицензию","ra_Please select file...":"Пожалуйста, выберите файл...","ra_Please select object ID...":"Пожалуйста, выберите идентификатор объекта ...","ra_Port could be used by %s":"Порт может использоваться %s","ra_Port is already used by %s":"Порт уже используется %s","ra_Press ENTER Key to add new item":"Нажмите клавишу ENTER, чтобы добавить новый элемент.","ra_Private certificate":"Частный сертификат",ra_Product:pie,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Rename_Move_Copy:fie,"ra_Renew %s access":"Продлить доступ %s",ra_Repeat:hie,ra_Replace:mie,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:_ie,ra_Saturday:gie,ra_Save:yie,"ra_Save and close":"Сохранить и закрыть","ra_Save configuration to file":"Сохранить конфигурацию в файл","ra_Save objects tree as JSON file":"Сохранить дерево объектов как файл JSON","ra_Select all":"Выбрать все","ra_Select color":"Выберите цвет","ra_Select predefined icon":"Выберите предопределенный значок","ra_Select type of export":"Выберите тип экспорта",ra_Selected:vie,"ra_Selected %s object(s)":"Объектов: %s","ra_Serial number (UUID)":"Серийный номер (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':"Серийный номер (UUID) «%s» в лицензии предназначен для другого устройства.","ra_Session will expire in %s seconds. Continue?":"Сессия истечет через %s секунд. Продолжить?","ra_Show all folders":"Показать все папки","ra_Show lines between rows":"Показать линии между строками","ra_Show/Hide object descriptions":"Показать/скрыть описания объектов","ra_Show/hide filter input":"Показать/скрыть ввод фильтра","ra_Some data are not stored. Discard?":"Некоторые данные не сохранились. Отказаться?",ra_States:bie,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Авторизация выполнена успешно. Токен действителен до %s и будет автоматически продлен.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Авторизация выполнена успешно. Токен действителен до %s, но его срок действия может истечь, так как экземпляр не запущен.","ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:wie,"ra_Suppress question for next %s minutes":"Скрыть вопрос на следующие %s минут(ы)","ra_System language":"Язык системы","ra_Take browser position":"Взять позицию из браузера","ra_Take position from system settings":"Занять позицию из системных настроек",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Эксперты могут создавать объекты везде, кроме второго уровня (например, «vis.0» или «javascript.0»).","ra_The page you are looking for was not found":"Страница, которую вы ищете, не найдена","ra_The schedule will be executed every minute. Are you sure?":"Расписание будет выполняться каждую минуту. Вы уверены?","ra_The schedule will be executed every second. Are you sure?":"Расписание будет выполняться каждую секунду. Вы уверены?",ra_Thursday:Sie,ra_Timestamp:xie,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:kie,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:Cie,"ra_Upload file":"Загрузить файл","ra_Use all available let's encrypt certificates":"Использовать все доступные сертификаты Let’s encrypt","ra_Use iobroker.acme adapter for letsencrypt certificates":"Используйте адаптер iobroker.acme для сертификатов letsencrypt","ra_Use system settings for position":"Использовать системные настройки для позиции","ra_Used system settings":"Системные настройки","ra_User files":"Файлы пользователя",ra_ValidTill:$ie,ra_Value:Eie,ra_Version:Tie,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:Oie,ra_Width:Die,"ra_YAML editor":"Редактор YAML",ra_Yes:Rie,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст","ra_You can use * as wildcard":"Вы можете использовать * в качестве подстановочного знака",ra___different__:Mie,ra_aclEveryone_read_object:Aie,ra_aclEveryone_read_state:Nie,ra_aclEveryone_write_object:Iie,ra_aclEveryone_write_state:Pie,ra_aclGroup_read_object:jie,ra_aclGroup_read_state:zie,ra_aclGroup_write_object:Lie,ra_aclGroup_write_state:Fie,ra_aclOwner_read_object:Bie,ra_aclOwner_read_state:Wie,ra_aclOwner_write_object:Uie,ra_aclOwner_write_state:qie,ra_buttons:Hie,ra_changedFrom:Vie,ra_close:Gie,ra_create_boolean_state:Xie,ra_create_channel:Jie,ra_create_device:Yie,ra_create_number_state:Kie,ra_create_state:Zie,ra_create_string_state:Qie,ra_daysShortText:ese,ra_dow_Fr:tse,ra_dow_Mo:rse,ra_dow_Sa:nse,ra_dow_Su:ose,ra_dow_Th:ase,ra_dow_Tu:ise,ra_dow_We:sse,ra_expertMode:cse,ra_false:lse,ra_fileType_all:use,ra_fileType_audio:dse,ra_fileType_code:pse,ra_fileType_images:fse,ra_fileType_txt:hse,ra_fileType_video:mse,"ra_fileType_video,":"видео",ra_filter_customs:_se,ra_filter_customs_without:gse,ra_filter_func:yse,ra_filter_id:vse,ra_filter_name:bse,ra_filter_role:wse,ra_filter_room:Sse,ra_filter_type:xse,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:kse,ra_lastChange:Cse,ra_locally:$se,ra_month_Apr:Ese,ra_month_Aug:Tse,ra_month_Dec:Ose,ra_month_Feb:Dse,ra_month_Jan:Rse,ra_month_Jul:Mse,ra_month_Jun:Ase,ra_month_Mai:Nse,ra_month_Mar:Ise,ra_month_Nov:Pse,ra_month_Oct:jse,ra_month_Sep:zse,ra_months_Apr:Lse,ra_months_Aug:Fse,ra_months_Dec:Bse,ra_months_Feb:Wse,ra_months_Jan:Use,ra_months_Jul:qse,ra_months_Jun:Hse,ra_months_Mai:Vse,ra_months_Mar:Gse,ra_months_Nov:Xse,ra_months_Oct:Jse,ra_months_Sep:Yse,"ra_no confirm for 5 mins":"не спрашивать подтверждения в течение 5 минут",ra_none:Kse,ra_object_changed_by:Zse,ra_object_changed_by_user:Qse,ra_otherConfig:ece,ra_qualityCode:tce,ra_repeat:rce,ra_select_folder_hint:nce,ra_show_all:oce,ra_state_changed_by:ace,ra_state_changed_from:ice,ra_timestamp:sce,ra_tooltip_ack:cce,ra_tooltip_comment:lce,ra_tooltip_copyState:uce,ra_tooltip_ctrlForLink:dce,ra_tooltip_customConfig:pce,ra_tooltip_deleteObject:fce,ra_tooltip_editObject:hce,ra_tooltip_editState:mce,ra_tooltip_expire:_ce,ra_tooltip_from:gce,ra_tooltip_lc:yce,ra_tooltip_quality:vce,ra_tooltip_ts:bce,ra_tooltip_user:wce,ra_tooltip_value:Sce,ra_true:xce,"ra_use seconds":"секунды",ra_val:kce,"ra_via internet":"через интернет",ra_warning_every_minute:Cce,ra_warning_every_second:$ce,sc_cron:Ece,sc_date:Tce,sc_dates:Oce,sc_dow:Dce,sc_dows:Rce,sc_every:Mce,sc_everyN_dates:Ace,sc_everyN_dow:Nce,sc_everyN_dows:Ice,sc_everyN_hours:Pce,sc_everyN_minutes:jce,sc_everyN_months:zce,sc_everyN_seconds:Lce,sc_every_dates:Fce,sc_every_dow:Bce,sc_every_dows:Wce,sc_every_hours:Uce,sc_every_minutes:qce,sc_every_months:Hce,sc_every_seconds:Vce,sc_from:Gce,sc_hours:Xce,sc_interval:Jce,sc_intervalBetween:Yce,sc_invalid_cron:Kce,sc_minutes:Zce,sc_months:Qce,sc_once:ele,sc_period:tle,sc_seconds:rle,sc_simple:nle,sc_specific:ole,sc_specific_dates:ale,sc_specific_dow:ile,sc_specific_dows:sle,sc_specific_hours:cle,sc_specific_minutes:lle,sc_specific_months:ule,sc_specific_seconds:dle,sc_time:ple,sc_to:fle,sc_wizard:hle,sch_all:mle,sch_astroDay:_le,sch_astroNight:gle,sch_astro_dawn:yle,sch_astro_dusk:vle,sch_astro_goldenHour:ble,sch_astro_goldenHourEnd:wle,sch_astro_nadir:Sle,sch_astro_nauticalDawn:xle,sch_astro_nauticalDusk:kle,sch_astro_night:Cle,sch_astro_nightEnd:$le,sch_astro_solarNoon:Ele,sch_astro_sunrise:Tle,sch_astro_sunriseEnd:Ole,sch_astro_sunset:Dle,sch_astro_sunsetStart:Rle,sch_at:Mle,sch_desc_atTime:Ale,sch_desc_everyDay:Nle,sch_desc_everyHour:Ile,sch_desc_everyMinute:Ple,sch_desc_everyMonth:jle,sch_desc_everyNDay:zle,sch_desc_everyNHours:Lle,sch_desc_everyNMinutes:Fle,sch_desc_everyNMonths:Ble,sch_desc_everyNWeeks:Wle,sch_desc_everyNYears:Ule,sch_desc_everyWeek:qle,sch_desc_everyYear:Hle,sch_desc_intervalFromTo:Vle,sch_desc_never:Gle,sch_desc_onDate:Xle,sch_desc_onDates:Jle,sch_desc_onEveryDate:Yle,sch_desc_onMonth:Kle,sch_desc_onMonths:Zle,sch_desc_onWeekday:Qle,sch_desc_onWeekdays:eue,sch_desc_onWeekends:tue,sch_desc_onWorkdays:rue,sch_desc_onceInPast:nue,sch_desc_once_on:oue,sch_desc_validFrom:aue,sch_desc_validFromTo:iue,sch_desc_validTo:sue,sch_every:cue,sch_exactTime:lue,sch_from:uue,sch_fromTo:due,sch_intervalTime:pue,sch_invert:fue,sch_no_one:hue,sch_on:mue,sch_period:_ue,sch_periodDaily:gue,sch_periodDates:yue,sch_periodDay:vue,sch_periodEvery:bue,sch_periodEveryDay:wue,sch_periodEveryMonth:Sue,sch_periodEveryWeek:xue,sch_periodEveryYear:kue,sch_periodHours:Cue,sch_periodMinutes:$ue,sch_periodMonth:Eue,sch_periodMonthly:Tue,sch_periodOnce:Oue,sch_periodSpecificMonths:Due,sch_periodWeek:Rue,sch_periodWeekdays:Mue,sch_periodWeekend:Aue,sch_periodWeekly:Nue,sch_periodWorkdays:Iue,sch_periodYear:Pue,sch_periodYearly:jue,sch_specificTime:zue,sch_time:Lue,sch_to:Fue,sch_valid:Bue,sch_validFrom:Wue,sch_validTo:Uue,sch_wholeDay:que,sch_yearEveryMonth:Hue},Gue="Ações",Xue="Acrescentar",Jue="Cancelar",Yue="Categorias",Kue="Verificado",Zue="Excluir",Que="Perto",ede="Comercial",tde="Configurar",rde="Conectado",nde="Continuar",ode="Copiado",ade="Crio",ide="Colheita",sde="Delete",cde="Excluir",lde="Descartar",ude="Desconectado",dde="Erro",pde="Filtro",fde="Sexta-feira",hde="Latitude",mde="Sair",_de="Longitude",gde="mensagem",yde="Segunda-feira",vde="Nome",bde="Objetos",wde="Está bem",Sde="produtos",xde="Renomear/Mover/Copiar",kde="Repita",Cde="Substituir",$de="Raiz",Ede="Sábado",Tde="Salve ",Ode="Selecionado",Dde="Estados",Rde="Domingo",Mde="Quinta-feira",Ade="Timestamp",Nde="Terça-feira",Ide="Atualizar",Pde="Válida até",jde="Valor",zde="Versão",Lde="Quarta-feira",Fde="Largura",Bde="Sim",Wde="diferente",Ude="Todos podem ler objetos",qde="Todos podem ler o estado",Hde="Todos podem escrever objetos",Vde="Todos podem escrever o estado",Gde="O grupo pode ler o objeto",Xde="O grupo pode ler o estado",Jde="O grupo pode escrever o objeto",Yde="O grupo pode escrever o estado",Kde="O proprietário pode ler o objeto",Zde="O proprietário pode ler o estado",Qde="O proprietário pode escrever o objeto",epe="O proprietário pode escrever o estado",tpe="Botões",rpe="Mudou de",npe="fechar",ope="Criar estado booleano",ape="Criar canal",ipe="Criar dispositivo",spe="Criar estado numérico",cpe="Criar estado",lpe="Criar estado de string",upe="d.",dpe="Fr",ppe="Mo",fpe="Sa",hpe="Su",mpe="º",_pe="Tu",gpe="Nós",ype="Modo especialista",vpe="FALSO",bpe="Todos os arquivos",wpe="áudio",Spe="Código/JSON",xpe="Imagens",kpe="Texto",Cpe="Vídeo",$pe="Configurações",Epe="sem",Tpe="Função",Ope="ID",Dpe="Nome",Rpe="Papel (Função)",Mpe="Quarto",Ape="Tipo",Npe="Configurações inválidas",Ipe="Última mudança",Ppe="localmente",jpe="abril",zpe="agosto",Lpe="dezembro",Fpe="fevereiro",Bpe="janeiro",Wpe="julho",Upe="junho",qpe="Mai",Hpe="março",Vpe="novembro",Gpe="outubro",Xpe="setembro",Jpe="abril",Ype="agosto",Kpe="dezembro",Zpe="fevereiro",Qpe="janeiro",efe="julho",tfe="junho",rfe="Mai",nfe="março",ofe="novembro",afe="outubro",ife="setembro",sfe="Nenhum",cfe="Objeto alterado por",lfe="Objeto alterado pela última vez em",ufe="Configurações de outro adaptador %s",dfe="Código de qualidade",pfe="repetir",ffe='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',hfe="Mostrar tudo",mfe="Estado alterado por",_fe="Objeto alterado de",gfe="Timestamp",yfe="Confirmado",vfe="Comente",bfe="Copie o valor do estado",wfe="Segure a tecla Ctrl/⌘ para abrir o link",Sfe="Opções customizadas",xfe="Excluir objeto",kfe="Editar objeto",Cfe="Edite o valor do estado",$fe="Expira em",Efe="De",Tfe="Última alteração",Ofe="Qualidade",Dfe="Timestamp",Rfe="Usuário",Mfe="Valor",Afe="verdadeiro",Nfe="Valor",Ife="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",Pfe="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",jfe="CRON",zfe="Data",Lfe="Dias",Ffe="Dia",Bfe="Dia da semana",Wfe="todos",Ufe="a cada N dias",qfe="todo enésimo dia da semana",Hfe="todos os N dias da semana",Vfe="a cada N horas",Gfe="a cada N minutos",Xfe="a cada N meses",Jfe="a cada N segundos",Yfe="todo dia",Kfe="todos os dias da semana",Zfe="todos os dias da semana",Qfe="toda hora",ehe="todo minuto",the="todo mês",rhe="todo segundo",nhe="de",ohe="horas",ahe="intervalo",ihe="intervalo entre",she="CRON inválido",che="minutos",lhe="meses",uhe="uma vez",dhe="período",phe="segundos",fhe="simples",hhe="tempo específico",mhe="datas específicas",_he="dia(s) específico(s) da semana",ghe="dia específico de semanas",yhe="horas específicas",vhe="minutos específicos",bhe="meses específicos",whe="segundos específicos",She="tempo",xhe="para",khe="assistente",Che="tudo",$he="dia astral",Ehe="noite astral",The="amanhecer",Ohe="anoitecer",Dhe="hora dourada",Rhe="Fim da hora dourada",Mhe="nadir",Ahe="Amanhecer náutico",Nhe="Anoitecer náutico",Ihe="noite",Phe="fim da noite",jhe="meio-dia solar",zhe="nascer do sol",Lhe="fim do nascer do sol",Fhe="pôr do sol",Bhe="início do pôr do sol",Whe="às",Uhe="em %s",qhe="todo dia",Hhe="toda hora",Vhe="todo minuto",Ghe="todo mês",Xhe="a cada %s dias",Jhe="a cada %s horas",Yhe="a cada %s minutos",Khe="a cada %s meses",Zhe="a cada %s semanas",Qhe="a cada %s anos",eme="toda semana",tme="todo ano",rme="de %s para %s",nme="nunca",ome="em %s de %s",ame="em %s e %s de",ime="em toda data de",sme="%s",cme="%s e %s",lme="em %s",ume="em %s e %s",dme="nos fins de semana",pme="em dias úteis",fme="não será mais executado, porque o começo está no passado",hme="em %s",mme="de %s",_me="Executar de até",gme="até %s",yme="cada",vme="tempo específico",bme="de",wme="de a´t",Sme="tempo de intervalo",xme="invertido",kme="nenhum",Cme="em",$me="período",Eme="diariamente",Tme="datas",Ome="dia",Dme="todos",Rme="todo dia",Mme="todo mês",Ame="toda semana",Nme="todo ano",Ime="horas",Pme="minutos",jme="mês",zme="por mês",Lme="uma vez",Fme="meses específicos",Bme="semana",Wme="dias úteis",Ume="final de semana",qme="semanal",Hme="dias úteis",Vme="ano",Gme="anual",Xme="tempo específico",Jme="tempo",Yme="para",Kme="válido",Zme="de",Qme="para",e_e="dia inteiro",t_e="todo mês",r_e={"ra_%s links from aliases":"%s links de aliases","ra_%s object(s) processed":"%s objeto(s) processado(s)","ra_%s was imported":"%s foi importado","ra_Accept license":"Aceitar licença",ra_Actions:Gue,"ra_Add new child object to selected parent":"Adicionar novo objeto filho ao pai selecionado","ra_Add objects tree from JSON file":"Adicionar árvore de objetos do arquivo JSON","ra_Add row":"Adicionar linha","ra_Advanced options":"Opções avançadas","ra_All items are filtered out":"Todos os itens são filtrados","ra_All objects":"Todos os objetos",ra_Append:Xue,"ra_Append %s entries or replace existing?":"Acrescentar %s entradas ou substituir as existentes?","ra_Append or replace?":"Acrescentar ou substituir?","ra_Are you sure?":"Você tem certeza?","ra_Auto (no custom columns)":"Auto (sem colunas personalizadas)","ra_Back to %s":"Voltar para %s","ra_Background image":"Imagem de fundo",ra_Cancel:Jue,"ra_Cannot add items with set filter":"Não é possível adicionar itens com filtro definido","ra_Cannot decode license":"Não é possível decodificar a licença","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Não é possível determinar a posição: as configurações do sistema estão vazias e a detecção de GPS está desativada no navegador",'ra_Cannot find "%s"':'Não foi possível encontrar "%s"','ra_Cannot read "%s"':'Não é possível ler "%s"',"ra_Cannot read licenses: %s":"Não é possível ler licenças: %s","ra_Cannot retrieve options, as instance is offline":"Não é possível recuperar opções, pois a instância está off-line","ra_Cannot update attribute, because not found in the object":"Não é possível atualizar o atributo, porque não foi encontrado no objeto","ra_Cannot upload":"Não é possível fazer upload",ra_Categories:Yue,"ra_Chained certificate":"certificado encadeado","ra_Change color theme":"Alterar tema de cores","ra_Changed from":"Mudou de","ra_Channel → State":"Canal → Estado","ra_Check license":"Verifique a licença",ra_Checked:Kue,ra_Clear:Zue,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Click to see in full size":"Clique para ver em tamanho real.","ra_Click to show":"Clique para mostrar","ra_Clone current row":"Clonar linha atual",ra_Close:Que,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:ede,ra_Configure:tde,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:rde,ra_Continue:nde,ra_Copied:ode,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:ade,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:ide,"ra_Define CRON...":"Defina CRON...","ra_Define functions":"Definir funções","ra_Define rooms":"Definir quartos","ra_Define schedule":"Definir cronograma","ra_Define schedule...":"Definir programação ...",ra_Del:sde,ra_Delete:cde,"ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado","ra_Disable/Enable translation":"Desativar/Ativar tradução",ra_Discard:lde,ra_Disconnected:ude,"ra_Do not ask for next 2 hours in this session":"Não peça as próximas 2 horas nesta sessão","ra_Do not export values of states":"Não exporte valores de estados","ra_Do not use let's encrypt":"Não use vamos criptografar","ra_Docker is not available":"O Docker não está disponível","ra_Docker is not installed or not running":"O Docker não está instalado ou não está em execução","ra_Double click to reset table layout":"Clique duas vezes para redefinir o layout da tabela","ra_Drag 'n' drop some files here, or click to select files":"Arraste e solte alguns arquivos aqui ou clique para selecionar arquivos","ra_Drop file here":"Solte o arquivo aqui","ra_Drop the files here...":"Solte o arquivo aqui ...","ra_Duplicate name":"Nome duplicado","ra_Edit ACL":"Editar ACL","ra_Edit alias":"Editar alias","ra_Edit custom config":"Editar configuração personalizada","ra_Edit full path":"Editar caminho completo","ra_Edit function":"Função de edição","ra_Edit object field":"Editar campo de objeto","ra_Edit role":"Editar papel","ra_Edit room":"Sala de edição","ra_Edit value":"Editar valor","ra_Enter the code from that page here":"Digite o código dessa página aqui",ra_Error:dde,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","ra_Expand/Collapse card":"Expandir/Recolher cartão","ra_Export configuration section":"Seção de configuração de exportação","ra_Export data to %s file":"Exportar dados para o arquivo %s","ra_Failed to open JSON File":"Falha ao abrir arquivo JSON","ra_Fallback custom certificates":"Certificados personalizados alternativos","ra_File is too big. Max %sk allowed. Try use SVG.":"O arquivo é muito grande. Max %sk permitido. Tente usar SVG.",ra_Filter:pde,"ra_Filter and Data Actions":"Ações de filtro e dados","ra_Filter files":"Filtrar arquivos","ra_Folder name":"Nome da pasta","ra_Folder → Channel → State":"Pasta → Canal → Estado","ra_Folder → Device → Channel → State":"Pasta → Dispositivo → Canal → Estado","ra_Folder → State":"Pasta → Estado","ra_Folders always first":"Pastas sempre primeiro",ra_Friday:fde,"ra_From file":"Do arquivo","ra_From text":"Do texto","ra_Get %s access":"Obtenha acesso %s","ra_Good luck":"Boa sorte","ra_Hide empty folders":"Esconder pastas vazias","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nenhum arquivo for criado na pasta, ele desaparecerá depois que o navegador for fechado","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Se o botão acima não funcionar, você pode autorizar manualmente este aplicativo visitando esta url","ra_Import and add configuration section":"Seção de importação e adição de configuração","ra_Import and replace configuration section":"Seção de configuração de importação e substituição","ra_Import data from %s file":"Importar dados do arquivo %s","ra_Import from %s":"Importar de %s","ra_Instance %s is alive":"O %s da instância está ativo","ra_Instance %s is not alive":"O %s da instância não está ativo","ra_Instance is not alive":"A instância não está ativa","ra_Invalid CRON":"CRON inválido","ra_Invalid JSON":"JSON inválido","ra_Invalid JSON file.":"Arquivo JSON inválido.","ra_Invalid JSON format. Expected an array.":"Formato JSON inválido. Esperava-se uma matriz.","ra_Invalid answer from server":"Resposta inválida do servidor","ra_Invalid parent folder!":"Pasta pai inválida!","ra_Invalid structure":"Estrutura inválida","ra_JSON editor":"Editor JSON","ra_Last change":"Última mudança",ra_Latitude:hde,"ra_License %s":"Licença %s","ra_License agreement":"Contrato de licença","ra_License does not exist":"A licença não existe","ra_License expired on %s":"A licença expirou em %s",'ra_License for other product "%s"':'Licença para outro produto "%s"',"ra_License is for version %s, but required version is %s.":"A licença é para a versão %s, mas a versão necessária é %s.","ra_License must be converted":"A licença deve ser convertida para uma versão mais recente. Você pode fazê-lo em seu perfil iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licença não encontrada no gerenciador de licenças. Deseja atualizar as licenças do iobroker.net?","ra_Listen on all IPs":"Ouça em todos os IPs","ra_Load configuration from file":"Carregar configuração do arquivo",ra_Logout:mde,ra_Longitude:_de,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:gde,ra_Monday:yde,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:vde,"ra_No data found in file":"Nenhum dado encontrado no arquivo","ra_No one license found in license manager":"Nenhuma licença encontrada no gerenciador de licenças","ra_No response from admin":"Nenhuma resposta do administrador","ra_No response from the backend":"Nenhuma resposta do backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Os não especialistas podem criar novos objetos apenas em "0_userdata.0" ou "alias.0".',"ra_Not a number":"Não é um número","ra_OAuth Client ID":"ID do cliente OAuth","ra_OAuth Client secret":"Segredo do cliente OAuth",ra_Objects:bde,ra_Ok:wde,"ra_On weekdays":"Nos dias úteis","ra_Only following structures of objects are available:":"Apenas as seguintes estruturas de objetos estão disponíveis:","ra_Only selected":"Apenas selecionado","ra_Owner group":"Grupo proprietário","ra_Owner user":"Usuário proprietário","ra_Passwords are not equal!":"As senhas não são iguais!","ra_Place your files here or click here to open the browse dialog":"Coloque seus arquivos aqui ou clique aqui para abrir a janela de navegação","ra_Please allow popups in your browser for this page!":"Por favor, permita pop-ups no seu navegador para esta página!","ra_Please confirm":"Por favor confirme","ra_Please create license":"Crie uma licença","ra_Please enter the license":"Por favor, insira a licença","ra_Please select file...":"Selecione o arquivo...","ra_Please select object ID...":"Selecione o ID do objeto ...","ra_Port could be used by %s":"A porta pode ser usada por %s","ra_Port is already used by %s":"A porta já está sendo usada por %s","ra_Press ENTER Key to add new item":"Pressione a tecla ENTER para adicionar um novo item","ra_Private certificate":"certificado privado",ra_Product:Sde,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Rename_Move_Copy:xde,"ra_Renew %s access":"Renovar acesso %s",ra_Repeat:kde,ra_Replace:Cde,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:$de,ra_Saturday:Ede,ra_Save:Tde,"ra_Save and close":"Salvar e fechar","ra_Save configuration to file":"Salvar configuração em arquivo","ra_Save objects tree as JSON file":"Salvar árvore de objetos como arquivo JSON","ra_Select all":"Selecionar tudo","ra_Select color":"Selecione a cor","ra_Select predefined icon":"Selecione o ícone predefinido","ra_Select type of export":"Selecione o tipo de exportação",ra_Selected:Ode,"ra_Selected %s object(s)":"%s objeto(s) selecionado(s)","ra_Serial number (UUID)":"Número de série (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'O número de série (UUID) "%s" na licença é para outro dispositivo.',"ra_Session will expire in %s seconds. Continue?":"A sessão irá expirar em %s segundos. Continuar?","ra_Show all folders":"Mostrar todas as pastas","ra_Show lines between rows":"Mostrar linhas entre as linhas","ra_Show/Hide object descriptions":"Mostrar/ocultar descrições de objetos","ra_Show/hide filter input":"Mostrar/ocultar entrada de filtro","ra_Some data are not stored. Discard?":"Alguns dados não são armazenados. Descartar?",ra_States:Dde,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Autorizado com sucesso. Token válido até %s e será renovado automaticamente.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Autorizado com sucesso. Token válido até %s, mas pode expirar, pois a instância não está em execução.","ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:Rde,"ra_Suppress question for next %s minutes":"Suprimir pergunta nos próximos %s minutos","ra_System language":"Idioma do sistema","ra_Take browser position":"Tomar posição do navegador","ra_Take position from system settings":"Tomar posição a partir das configurações do sistema",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Os especialistas podem criar objetos em qualquer lugar, exceto no segundo nível (por exemplo, "vis.0" ou "javascript.0").',"ra_The page you are looking for was not found":"A página que você está procurando não foi encontrada","ra_The schedule will be executed every minute. Are you sure?":"O agendamento será executado a cada minuto. Tem certeza?","ra_The schedule will be executed every second. Are you sure?":"O agendamento será executado a cada segundo. Tem certeza?",ra_Thursday:Mde,ra_Timestamp:Ade,"ra_Toggle expert mode":"Alternar modo especialista","ra_Toggle the states view":"Alternar a visualização dos estados","ra_Toggle view mode":"Alternar modo de visualização","ra_Too big":"Muito grande","ra_Too small":"Muito pequeno","ra_Transparent dialog":"Diálogo transparente",ra_Tuesday:Nde,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:Ide,"ra_Upload file":"Subir arquivo","ra_Use all available let's encrypt certificates":"Use todos os certificados disponíveis vamos criptografar","ra_Use iobroker.acme adapter for letsencrypt certificates":"Use o adaptador iobroker.acme para certificados letsencrypt","ra_Use system settings for position":"Use as configurações do sistema para a posição","ra_Used system settings":"Configurações do sistema usadas","ra_User files":"Arquivos do usuário",ra_ValidTill:Pde,ra_Value:jde,ra_Version:zde,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:Lde,ra_Width:Fde,"ra_YAML editor":"Editor YAML",ra_Yes:Bde,"ra_You can export all objects or just the selected branch.":"Você pode exportar todos os objetos ou apenas a ramificação selecionada.","ra_You can filter entries by entering here some text":"Você pode filtrar as entradas digitando aqui algum texto","ra_You can use * as wildcard":"Você pode usar * como curinga",ra___different__:Wde,ra_aclEveryone_read_object:Ude,ra_aclEveryone_read_state:qde,ra_aclEveryone_write_object:Hde,ra_aclEveryone_write_state:Vde,ra_aclGroup_read_object:Gde,ra_aclGroup_read_state:Xde,ra_aclGroup_write_object:Jde,ra_aclGroup_write_state:Yde,ra_aclOwner_read_object:Kde,ra_aclOwner_read_state:Zde,ra_aclOwner_write_object:Qde,ra_aclOwner_write_state:epe,ra_buttons:tpe,ra_changedFrom:rpe,ra_close:npe,ra_create_boolean_state:ope,ra_create_channel:ape,ra_create_device:ipe,ra_create_number_state:spe,ra_create_state:cpe,ra_create_string_state:lpe,ra_daysShortText:upe,ra_dow_Fr:dpe,ra_dow_Mo:ppe,ra_dow_Sa:fpe,ra_dow_Su:hpe,ra_dow_Th:mpe,ra_dow_Tu:_pe,ra_dow_We:gpe,ra_expertMode:ype,ra_false:vpe,ra_fileType_all:bpe,ra_fileType_audio:wpe,ra_fileType_code:Spe,ra_fileType_images:xpe,ra_fileType_txt:kpe,ra_fileType_video:Cpe,"ra_fileType_video,":"Vídeo",ra_filter_customs:$pe,ra_filter_customs_without:Epe,ra_filter_func:Tpe,ra_filter_id:Ope,ra_filter_name:Dpe,ra_filter_role:Rpe,ra_filter_room:Mpe,ra_filter_type:Ape,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:Npe,ra_lastChange:Ipe,ra_locally:Ppe,ra_month_Apr:jpe,ra_month_Aug:zpe,ra_month_Dec:Lpe,ra_month_Feb:Fpe,ra_month_Jan:Bpe,ra_month_Jul:Wpe,ra_month_Jun:Upe,ra_month_Mai:qpe,ra_month_Mar:Hpe,ra_month_Nov:Vpe,ra_month_Oct:Gpe,ra_month_Sep:Xpe,ra_months_Apr:Jpe,ra_months_Aug:Ype,ra_months_Dec:Kpe,ra_months_Feb:Zpe,ra_months_Jan:Qpe,ra_months_Jul:efe,ra_months_Jun:tfe,ra_months_Mai:rfe,ra_months_Mar:nfe,ra_months_Nov:ofe,ra_months_Oct:afe,ra_months_Sep:ife,"ra_no confirm for 5 mins":"sem confirmação por 5 minutos",ra_none:sfe,ra_object_changed_by:cfe,ra_object_changed_by_user:lfe,ra_otherConfig:ufe,ra_qualityCode:dfe,ra_repeat:pfe,ra_select_folder_hint:ffe,ra_show_all:hfe,ra_state_changed_by:mfe,ra_state_changed_from:_fe,ra_timestamp:gfe,ra_tooltip_ack:yfe,ra_tooltip_comment:vfe,ra_tooltip_copyState:bfe,ra_tooltip_ctrlForLink:wfe,ra_tooltip_customConfig:Sfe,ra_tooltip_deleteObject:xfe,ra_tooltip_editObject:kfe,ra_tooltip_editState:Cfe,ra_tooltip_expire:$fe,ra_tooltip_from:Efe,ra_tooltip_lc:Tfe,ra_tooltip_quality:Ofe,ra_tooltip_ts:Dfe,ra_tooltip_user:Rfe,ra_tooltip_value:Mfe,ra_true:Afe,"ra_use seconds":"use segundos",ra_val:Nfe,"ra_via internet":"via internet",ra_warning_every_minute:Ife,ra_warning_every_second:Pfe,sc_cron:jfe,sc_date:zfe,sc_dates:Lfe,sc_dow:Ffe,sc_dows:Bfe,sc_every:Wfe,sc_everyN_dates:Ufe,sc_everyN_dow:qfe,sc_everyN_dows:Hfe,sc_everyN_hours:Vfe,sc_everyN_minutes:Gfe,sc_everyN_months:Xfe,sc_everyN_seconds:Jfe,sc_every_dates:Yfe,sc_every_dow:Kfe,sc_every_dows:Zfe,sc_every_hours:Qfe,sc_every_minutes:ehe,sc_every_months:the,sc_every_seconds:rhe,sc_from:nhe,sc_hours:ohe,sc_interval:ahe,sc_intervalBetween:ihe,sc_invalid_cron:she,sc_minutes:che,sc_months:lhe,sc_once:uhe,sc_period:dhe,sc_seconds:phe,sc_simple:fhe,sc_specific:hhe,sc_specific_dates:mhe,sc_specific_dow:_he,sc_specific_dows:ghe,sc_specific_hours:yhe,sc_specific_minutes:vhe,sc_specific_months:bhe,sc_specific_seconds:whe,sc_time:She,sc_to:xhe,sc_wizard:khe,sch_all:Che,sch_astroDay:$he,sch_astroNight:Ehe,sch_astro_dawn:The,sch_astro_dusk:Ohe,sch_astro_goldenHour:Dhe,sch_astro_goldenHourEnd:Rhe,sch_astro_nadir:Mhe,sch_astro_nauticalDawn:Ahe,sch_astro_nauticalDusk:Nhe,sch_astro_night:Ihe,sch_astro_nightEnd:Phe,sch_astro_solarNoon:jhe,sch_astro_sunrise:zhe,sch_astro_sunriseEnd:Lhe,sch_astro_sunset:Fhe,sch_astro_sunsetStart:Bhe,sch_at:Whe,sch_desc_atTime:Uhe,sch_desc_everyDay:qhe,sch_desc_everyHour:Hhe,sch_desc_everyMinute:Vhe,sch_desc_everyMonth:Ghe,sch_desc_everyNDay:Xhe,sch_desc_everyNHours:Jhe,sch_desc_everyNMinutes:Yhe,sch_desc_everyNMonths:Khe,sch_desc_everyNWeeks:Zhe,sch_desc_everyNYears:Qhe,sch_desc_everyWeek:eme,sch_desc_everyYear:tme,sch_desc_intervalFromTo:rme,sch_desc_never:nme,sch_desc_onDate:ome,sch_desc_onDates:ame,sch_desc_onEveryDate:ime,sch_desc_onMonth:sme,sch_desc_onMonths:cme,sch_desc_onWeekday:lme,sch_desc_onWeekdays:ume,sch_desc_onWeekends:dme,sch_desc_onWorkdays:pme,sch_desc_onceInPast:fme,sch_desc_once_on:hme,sch_desc_validFrom:mme,sch_desc_validFromTo:_me,sch_desc_validTo:gme,sch_every:yme,sch_exactTime:vme,sch_from:bme,sch_fromTo:wme,sch_intervalTime:Sme,sch_invert:xme,sch_no_one:kme,sch_on:Cme,sch_period:$me,sch_periodDaily:Eme,sch_periodDates:Tme,sch_periodDay:Ome,sch_periodEvery:Dme,sch_periodEveryDay:Rme,sch_periodEveryMonth:Mme,sch_periodEveryWeek:Ame,sch_periodEveryYear:Nme,sch_periodHours:Ime,sch_periodMinutes:Pme,sch_periodMonth:jme,sch_periodMonthly:zme,sch_periodOnce:Lme,sch_periodSpecificMonths:Fme,sch_periodWeek:Bme,sch_periodWeekdays:Wme,sch_periodWeekend:Ume,sch_periodWeekly:qme,sch_periodWorkdays:Hme,sch_periodYear:Vme,sch_periodYearly:Gme,sch_specificTime:Xme,sch_time:Jme,sch_to:Yme,sch_valid:Kme,sch_validFrom:Zme,sch_validTo:Qme,sch_wholeDay:e_e,sch_yearEveryMonth:t_e},n_e="Acties",o_e="toevoegen",a_e="Annuleer",i_e="Categorieën",s_e="Gecontroleerd",c_e="Verwijderen",l_e="Dichtbij",u_e="Reclame",d_e="Configureren",p_e="Verbonden",f_e="Doorgaan",h_e="Gekopieerd",m_e="Creëer",__e="Bijsnijden",g_e="Delete",y_e="Verwijderen",v_e="Weggooien",b_e="Verbinding verbroken",w_e="Fout",S_e="Filter",x_e="Vrijdag",k_e="Breedtegraad",C_e="Uitloggen",$_e="Lengtegraad",E_e="Bericht",T_e="Maandag",O_e="Naam",D_e="Voorwerpen",R_e="OK",M_e="Product",A_e="Hernoemen/Verplaatsen/Kopiëren",N_e="Herhaling",I_e="Vervangen",P_e="Wortel",j_e="Zaterdag",z_e="Sparen",L_e="Geselecteerd",F_e="Staten",B_e="Zondag",W_e="Donderdag",U_e="Tijdstempel",q_e="Dinsdag",H_e="Bijwerken",V_e="Geldig tot",G_e="Waarde",X_e="Versie",J_e="Woensdag",Y_e="Breedte",K_e="Ja",Z_e="verschillend",Q_e="Iedereen kan object lezen",ege="Iedereen kan staat lezen",tge="Iedereen kan object schrijven",rge="Iedereen kan staat schrijven",nge="Groep kan object lezen",oge="Groep kan status lezen",age="Groep kan object schrijven",ige="Groep kan staat schrijven",sge="Eigenaar kan object lezen",cge="Eigenaar kan staat lezen",lge="Eigenaar kan object schrijven",uge="Eigenaar kan staat schrijven",dge="Toetsen",pge="Veranderd van",fge="dichtbij",hge="Creëer een Booleaanse status",mge="Kanaal maken",_ge="Apparaat maken",gge="Nummerstatus maken",yge="Staat creëren",vge="Tekenreeksstatus maken",bge="d.",wge="Fr",Sge="Mo",xge="Za",kge="Zo",Cge="Th",$ge="Tu",Ege="Wij",Tge="Expert modus",Oge="ONWAAR",Dge="Alle bestanden",Rge="Audio",Mge="Code/JSON",Age="Afbeeldingen",Nge="Tekst",Ige="Video",Pge="Instellingen",jge="zonder",zge="Functie",Lge="ID",Fge="Naam",Bge="Rol",Wge="Kamer",Uge="Type",qge="Ongeldige instellingen",Hge="Laatste wijziging",Vge="plaatselijk",Gge="april",Xge="aug",Jge="dec",Yge="februari",Kge="jan",Zge="jul",Qge="juni",eye="Mei",tye="mrt",rye="nov",nye="Okt",oye="sept",aye="april",iye="aug",sye="dec",cye="februari",lye="jan",uye="jul",dye="juni",pye="Mei",fye="mrt",hye="nov",mye="Okt",_ye="sept",gye="geen",yye="Object veranderd door",vye="Object voor het laatst gewijzigd om",bye="Instellingen van andere adapter %s",wye="Kwaliteitscode",Sye="herhalen",xye='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',kye="Alles weergeven",Cye="Staat veranderd door",$ye="Object veranderd van",Eye="Tijdstempel",Tye="Erkende vlag",Oye="Opmerking",Dye="Kopieer de statuswaarde",Rye="Houd de Cltr/⌘-toets ingedrukt om de link te openen",Mye="Aangepaste instellingen",Aye="Object verwijderen",Nye="Object bewerken",Iye="Bewerk de statuswaarde",Pye="Verloopt over",jye="Van",zye="Laatst gewijzigd",Lye="Kwaliteit",Fye="Tijdstempel",Bye="Gebruiker",Wye="Waarde",Uye="WAAR",qye="Waarde",Hye="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",Vye="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",Gye="CRON",Xye="Datum",Jye="data",Yye="Dag",Kye="Dag van de week",Zye="elk",Qye="elke N dagen",e0e="elke N-de dag van de week",t0e="elke N dag van de week",r0e="elke N uur",n0e="elke N minuten",o0e="elke N maanden",a0e="elke N seconden",i0e="elke dag",s0e="elke dag van de week",c0e="elke dag van de week",l0e="elk uur",u0e="elke minuut",d0e="elke maand",p0e="elke seconde",f0e="Van",h0e="uren",m0e="Interval",_0e="Interval tussen",g0e="Ongeldige CRON",y0e="Notulen",v0e="maanden",b0e="Een keer",w0e="Periode",S0e="seconden",x0e="Gemakkelijk",k0e="Specifieke tijd",C0e="specifieke data",$0e="specifieke dag(en) van de week",E0e="specifieke dag van weken",T0e="specifieke uren",O0e="specifieke minuten",D0e="specifieke maanden",R0e="specifieke seconden",M0e="Tijd",A0e="Naar",N0e="tovenaar",I0e="allemaal",P0e="Astro-dag",j0e="Astro-nacht",z0e="Dageraad",L0e="Schemer",F0e="gouden uur",B0e="Gouden uur einde",W0e="Nadir",U0e="Nautische dageraad",q0e="Nautische schemering",H0e="Nacht",V0e="Nacht einde",G0e="Zonne middag",X0e="zonsopkomst",J0e="Sunrise einde",Y0e="Zonsondergang",K0e="Zonsondergang start",Z0e="Bij",Q0e="op %s",eve="elke dag",tve="elk uur",rve="elke minuut",nve="elke maand",ove="elke %s dag",ave="elke %s uur",ive="elke %s minuten",sve="elke %s maanden",cve="elke %s weken",lve="elke %s jaar",uve="elke week",dve="elk jaar",pve="van %s tot %s",fve="nooit",hve="op %s van %s",mve="op %s en %s van",_ve="op elke datum van",gve="%s",yve="%s en %s",vve="op %s",bve="op %s en %s",wve="in het weekend",Sve="op werkdagen",xve="zal niet meer worden uitgevoerd, omdat start verleden tijd is",kve="op %s",Cve="van %s",$ve="Uitvoeren van tot",Eve="tot %s",Tve="elk",Ove="Specifieke tijd",Dve="van",Rve="Van naar",Mve="Interval tijd",Ave="omkeren",Nve="geen",Ive="Aan",Pve="Periode",jve="Dagelijks",zve="data",Lve="Dag",Fve="elk",Bve="Elke dag",Wve="Elke maand",Uve="Elke week",qve="Elk jaar",Hve="uren",Vve="Notulen",Gve="maand",Xve="Maandelijks",Jve="Een keer",Yve="Specifieke maanden",Kve="Week",Zve="Doordeweekse dagen",Qve="Weekend",e1e="Wekelijks",t1e="werkdagen",r1e="Jaar",n1e="jaar-",o1e="Specifieke tijd",a1e="Tijd",i1e="naar",s1e="Geldig",c1e="van",l1e="naar",u1e="Hele dag",d1e="elke maand",p1e={"ra_%s links from aliases":"%s links van aliassen","ra_%s object(s) processed":"%s object(en) verwerkt","ra_%s was imported":"%s is geïmporteerd","ra_Accept license":"Accepteer licentie",ra_Actions:n_e,"ra_Add new child object to selected parent":"Voeg een nieuw kindobject toe aan het geselecteerde bovenliggende object","ra_Add objects tree from JSON file":"Objectenboom toevoegen vanuit JSON-bestand","ra_Add row":"Voeg een rij toe","ra_Advanced options":"Geavanceerde mogelijkheden","ra_All items are filtered out":"Alle items zijn uitgefilterd","ra_All objects":"Alle objecten",ra_Append:o_e,"ra_Append %s entries or replace existing?":"%s ingangen toevoegen of bestaande vervangen?","ra_Append or replace?":"Toevoegen of vervangen?","ra_Are you sure?":"Weet je het zeker?","ra_Auto (no custom columns)":"Auto (geen aangepaste kolommen)","ra_Back to %s":"Terug naar %s","ra_Background image":"Achtergrond afbeelding",ra_Cancel:a_e,"ra_Cannot add items with set filter":"Kan geen items toevoegen met ingestelde filter","ra_Cannot decode license":"Kan licentie niet decoderen","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Kan positie niet bepalen: systeeminstellingen zijn leeg en GPS-detectie is uitgeschakeld in browser",'ra_Cannot find "%s"':'Kan "%s" niet vinden','ra_Cannot read "%s"':'Kan "%s" niet lezen',"ra_Cannot read licenses: %s":"Kan licenties niet lezen: %s","ra_Cannot retrieve options, as instance is offline":"Kan opties niet ophalen, omdat instantie offline is","ra_Cannot update attribute, because not found in the object":"Kan kenmerk niet bijwerken, omdat het niet in het object is gevonden","ra_Cannot upload":"Kan niet uploaden",ra_Categories:i_e,"ra_Chained certificate":"Geketend certificaat","ra_Change color theme":"Kleurthema wijzigen","ra_Changed from":"Veranderd van","ra_Channel → State":"Kanaal → Staat","ra_Check license":"Licentie controleren",ra_Checked:s_e,ra_Clear:c_e,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Click to see in full size":"Klik om de afbeelding op volledige grootte te bekijken.","ra_Click to show":"Klik om te tonen","ra_Clone current row":"Kloon de huidige rij",ra_Close:l_e,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:u_e,ra_Configure:d_e,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:p_e,ra_Continue:f_e,ra_Copied:h_e,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:m_e,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:__e,"ra_Define CRON...":"Definieer CRON...","ra_Define functions":"Definieer functies","ra_Define rooms":"Definieer kamers","ra_Define schedule":"Definieer schema","ra_Define schedule...":"Schema definiëren ...",ra_Del:g_e,ra_Delete:y_e,"ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat","ra_Disable/Enable translation":"Vertaling uitschakelen/inschakelen",ra_Discard:v_e,ra_Disconnected:b_e,"ra_Do not ask for next 2 hours in this session":"Vraag niet om de volgende 2 uur in deze sessie","ra_Do not export values of states":"Exporteer geen waarden van staten","ra_Do not use let's encrypt":"Gebruik geen let's encrypt","ra_Docker is not available":"Docker is niet beschikbaar","ra_Docker is not installed or not running":"Docker is niet geïnstalleerd of draait niet","ra_Double click to reset table layout":"Dubbelklik om de tafelindeling te resetten","ra_Drag 'n' drop some files here, or click to select files":"Sleep enkele bestanden hierheen, of klik om bestanden te selecteren","ra_Drop file here":"Zet het bestand hier neer","ra_Drop the files here...":"Zet het bestand hier neer...","ra_Duplicate name":"Dubbele naam","ra_Edit ACL":"ACL bewerken","ra_Edit alias":"Alias bewerken","ra_Edit custom config":"Bewerk aangepaste config","ra_Edit full path":"Volledig pad bewerken","ra_Edit function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken","ra_Enter the code from that page here":"Voer hier de code van die pagina in",ra_Error:w_e,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","ra_Expand/Collapse card":"Kaart uit-/inklappen","ra_Export configuration section":"Sectie Exportconfiguratie","ra_Export data to %s file":"Exporteer gegevens naar %s bestand","ra_Failed to open JSON File":"JSON-bestand kan niet worden geopend","ra_Fallback custom certificates":"Fallback aangepaste certificaten","ra_File is too big. Max %sk allowed. Try use SVG.":"Bestand is te groot. Max. %sk toegestaan. Probeer SVG te gebruiken.",ra_Filter:S_e,"ra_Filter and Data Actions":"Filter- en gegevensacties","ra_Filter files":"Bestanden filteren","ra_Folder name":"Naam van de map","ra_Folder → Channel → State":"Map → Kanaal → Staat","ra_Folder → Device → Channel → State":"Map → Apparaat → Kanaal → Staat","ra_Folder → State":"Map → Staat","ra_Folders always first":"Mappen altijd eerst",ra_Friday:x_e,"ra_From file":"Van bestand","ra_From text":"Van tekst","ra_Get %s access":"Krijg %s toegang","ra_Good luck":"Veel geluk","ra_Hide empty folders":"Verberg lege mappen","ra_If no file will be created in the folder, it will disappear after the browser closed":"Als er geen bestand in de map wordt gemaakt, verdwijnt het nadat de browser is gesloten","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Als de bovenstaande knop niet werkt, kunt u deze app handmatig autoriseren door deze url te bezoeken","ra_Import and add configuration section":"Configuratiesectie importeren en toevoegen","ra_Import and replace configuration section":"Configuratiesectie importeren en vervangen","ra_Import data from %s file":"Importeer gegevens uit %s bestand","ra_Import from %s":"Importeren uit %s","ra_Instance %s is alive":"Instantie %s leeft","ra_Instance %s is not alive":"Instantie %s is niet actief","ra_Instance is not alive":"Instantie leeft niet","ra_Invalid CRON":"Ongeldige CRON","ra_Invalid JSON":"Ongeldige JSON","ra_Invalid JSON file.":"Ongeldig JSON-bestand.","ra_Invalid JSON format. Expected an array.":"Ongeldige JSON-indeling. Er werd een array verwacht.","ra_Invalid answer from server":"Ongeldig antwoord van de server","ra_Invalid parent folder!":"Ongeldige bovenliggende map!","ra_Invalid structure":"Ongeldige structuur","ra_JSON editor":"JSON-editor","ra_Last change":"Laatste wijziging",ra_Latitude:k_e,"ra_License %s":"Licentie %s","ra_License agreement":"Licentieovereenkomst","ra_License does not exist":"Licentie bestaat niet","ra_License expired on %s":"Licentie verlopen op %s",'ra_License for other product "%s"':'Licentie voor ander product "%s"',"ra_License is for version %s, but required version is %s.":"Licentie is voor versie %s, maar vereiste versie is %s.","ra_License must be converted":"Licentie moet worden omgezet naar nieuwere versie. U kunt dit doen in uw iobroker.net-profiel.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licentie niet gevonden in licentiebeheer. Wilt u licenties van iobroker.net bijwerken?","ra_Listen on all IPs":"Luister op alle IP's","ra_Load configuration from file":"Laad configuratie uit bestand",ra_Logout:C_e,ra_Longitude:$_e,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:E_e,ra_Monday:T_e,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:O_e,"ra_No data found in file":"Geen gegevens gevonden in bestand","ra_No one license found in license manager":"Geen enkele licentie gevonden in licentiebeheer","ra_No response from admin":"Geen reactie van de beheerder","ra_No response from the backend":"Geen reactie van de backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Niet-experts mogen alleen nieuwe objecten maken in "0_userdata.0" of "alias.0".',"ra_Not a number":"Geen nummer","ra_OAuth Client ID":"OAuth-client-ID","ra_OAuth Client secret":"OAuth-clientgeheim",ra_Objects:D_e,ra_Ok:R_e,"ra_On weekdays":"Op weekdagen","ra_Only following structures of objects are available:":"Alleen de volgende structuren van objecten zijn beschikbaar:","ra_Only selected":"Alleen geselecteerd","ra_Owner group":"Eigenaarsgroep","ra_Owner user":"Eigenaar gebruiker","ra_Passwords are not equal!":"Wachtwoorden zijn niet gelijk!","ra_Place your files here or click here to open the browse dialog":"Plaats uw bestanden hier of klik hier om het bladervenster te openen","ra_Please allow popups in your browser for this page!":"Sta pop-ups toe in uw browser voor deze pagina!","ra_Please confirm":"Bevestig alstublieft","ra_Please create license":"Maak een licentie aan","ra_Please enter the license":"Voer de licentie in","ra_Please select file...":"Selecteer bestand...","ra_Please select object ID...":"Selecteer object-ID ...","ra_Port could be used by %s":"Poort kan worden gebruikt door %s","ra_Port is already used by %s":"Poort wordt al gebruikt door %s","ra_Press ENTER Key to add new item":"Druk op de ENTER-toets om een nieuw item toe te voegen","ra_Private certificate":"Privé certificaat",ra_Product:M_e,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Rename_Move_Copy:A_e,"ra_Renew %s access":"%s toegang verlengen",ra_Repeat:N_e,ra_Replace:I_e,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:P_e,ra_Saturday:j_e,ra_Save:z_e,"ra_Save and close":"Opslaan en afsluiten","ra_Save configuration to file":"Sla de configuratie op in een bestand","ra_Save objects tree as JSON file":"Sla de objectenboom op als JSON-bestand","ra_Select all":"Selecteer alles","ra_Select color":"Selecteer kleur","ra_Select predefined icon":"Selecteer voorgedefinieerd pictogram","ra_Select type of export":"Selecteer het type export",ra_Selected:L_e,"ra_Selected %s object(s)":"Geselecteerde %s object(en)","ra_Serial number (UUID)":"Serienummer (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Serienummer (UUID) "%s" in licentie is voor ander apparaat.',"ra_Session will expire in %s seconds. Continue?":"Sessie verloopt over %s seconden. Doorgaan?","ra_Show all folders":"Toon alle mappen","ra_Show lines between rows":"Toon lijnen tussen rijen","ra_Show/Hide object descriptions":"Toon/verberg objectbeschrijvingen","ra_Show/hide filter input":"Filterinvoer weergeven/verbergen","ra_Some data are not stored. Discard?":"Sommige gegevens worden niet opgeslagen. Weggooien?",ra_States:F_e,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Succesvol geautoriseerd. Token geldig tot %s en wordt automatisch verlengd.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Succesvol geautoriseerd. Token geldig tot %s, maar kan verlopen omdat de instantie niet actief is.","ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:B_e,"ra_Suppress question for next %s minutes":"Vraag de volgende %s minuten onderdrukken","ra_System language":"Systeemtaal","ra_Take browser position":"Positie innemen vanuit de browser","ra_Take position from system settings":"Neem positie over van systeeminstellingen",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'De experts kunnen overal objecten maken, behalve vanaf het tweede niveau (bijv. "Vis.0" of "javascript.0").',"ra_The page you are looking for was not found":"De pagina die u zoekt is niet gevonden","ra_The schedule will be executed every minute. Are you sure?":"Het schema wordt elke minuut uitgevoerd. Weet u het zeker?","ra_The schedule will be executed every second. Are you sure?":"Het schema wordt elke seconde uitgevoerd. Weet je het zeker?",ra_Thursday:W_e,ra_Timestamp:U_e,"ra_Toggle expert mode":"Schakel tussen expertmodus","ra_Toggle the states view":"Schakel de statusweergave in of uit","ra_Toggle view mode":"Schakelen tussen weergavemodus","ra_Too big":"Te groot","ra_Too small":"Te klein","ra_Transparent dialog":"Transparant dialoogvenster",ra_Tuesday:q_e,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:H_e,"ra_Upload file":"Upload bestand","ra_Use all available let's encrypt certificates":"Gebruik alle beschikbare Let's Encrypt-certificaten","ra_Use iobroker.acme adapter for letsencrypt certificates":"Gebruik de iobroker.acme-adapter voor letsencrypt-certificaten","ra_Use system settings for position":"Gebruik systeeminstellingen voor positie","ra_Used system settings":"Gebruikte systeeminstellingen","ra_User files":"Gebruikersbestanden",ra_ValidTill:V_e,ra_Value:G_e,ra_Version:X_e,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:J_e,ra_Width:Y_e,"ra_YAML editor":"YAML-editor",ra_Yes:K_e,"ra_You can export all objects or just the selected branch.":"U kunt alle objecten of alleen de geselecteerde tak exporteren.","ra_You can filter entries by entering here some text":"U kunt items filteren door hier wat tekst in te voeren","ra_You can use * as wildcard":"U kunt * als joker gebruiken",ra___different__:Z_e,ra_aclEveryone_read_object:Q_e,ra_aclEveryone_read_state:ege,ra_aclEveryone_write_object:tge,ra_aclEveryone_write_state:rge,ra_aclGroup_read_object:nge,ra_aclGroup_read_state:oge,ra_aclGroup_write_object:age,ra_aclGroup_write_state:ige,ra_aclOwner_read_object:sge,ra_aclOwner_read_state:cge,ra_aclOwner_write_object:lge,ra_aclOwner_write_state:uge,ra_buttons:dge,ra_changedFrom:pge,ra_close:fge,ra_create_boolean_state:hge,ra_create_channel:mge,ra_create_device:_ge,ra_create_number_state:gge,ra_create_state:yge,ra_create_string_state:vge,ra_daysShortText:bge,ra_dow_Fr:wge,ra_dow_Mo:Sge,ra_dow_Sa:xge,ra_dow_Su:kge,ra_dow_Th:Cge,ra_dow_Tu:$ge,ra_dow_We:Ege,ra_expertMode:Tge,ra_false:Oge,ra_fileType_all:Dge,ra_fileType_audio:Rge,ra_fileType_code:Mge,ra_fileType_images:Age,ra_fileType_txt:Nge,ra_fileType_video:Ige,"ra_fileType_video,":"Video",ra_filter_customs:Pge,ra_filter_customs_without:jge,ra_filter_func:zge,ra_filter_id:Lge,ra_filter_name:Fge,ra_filter_role:Bge,ra_filter_room:Wge,ra_filter_type:Uge,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:qge,ra_lastChange:Hge,ra_locally:Vge,ra_month_Apr:Gge,ra_month_Aug:Xge,ra_month_Dec:Jge,ra_month_Feb:Yge,ra_month_Jan:Kge,ra_month_Jul:Zge,ra_month_Jun:Qge,ra_month_Mai:eye,ra_month_Mar:tye,ra_month_Nov:rye,ra_month_Oct:nye,ra_month_Sep:oye,ra_months_Apr:aye,ra_months_Aug:iye,ra_months_Dec:sye,ra_months_Feb:cye,ra_months_Jan:lye,ra_months_Jul:uye,ra_months_Jun:dye,ra_months_Mai:pye,ra_months_Mar:fye,ra_months_Nov:hye,ra_months_Oct:mye,ra_months_Sep:_ye,"ra_no confirm for 5 mins":"geen bevestiging gedurende 5 minuten",ra_none:gye,ra_object_changed_by:yye,ra_object_changed_by_user:vye,ra_otherConfig:bye,ra_qualityCode:wye,ra_repeat:Sye,ra_select_folder_hint:xye,ra_show_all:kye,ra_state_changed_by:Cye,ra_state_changed_from:$ye,ra_timestamp:Eye,ra_tooltip_ack:Tye,ra_tooltip_comment:Oye,ra_tooltip_copyState:Dye,ra_tooltip_ctrlForLink:Rye,ra_tooltip_customConfig:Mye,ra_tooltip_deleteObject:Aye,ra_tooltip_editObject:Nye,ra_tooltip_editState:Iye,ra_tooltip_expire:Pye,ra_tooltip_from:jye,ra_tooltip_lc:zye,ra_tooltip_quality:Lye,ra_tooltip_ts:Fye,ra_tooltip_user:Bye,ra_tooltip_value:Wye,ra_true:Uye,"ra_use seconds":"gebruik seconden",ra_val:qye,"ra_via internet":"via internet",ra_warning_every_minute:Hye,ra_warning_every_second:Vye,sc_cron:Gye,sc_date:Xye,sc_dates:Jye,sc_dow:Yye,sc_dows:Kye,sc_every:Zye,sc_everyN_dates:Qye,sc_everyN_dow:e0e,sc_everyN_dows:t0e,sc_everyN_hours:r0e,sc_everyN_minutes:n0e,sc_everyN_months:o0e,sc_everyN_seconds:a0e,sc_every_dates:i0e,sc_every_dow:s0e,sc_every_dows:c0e,sc_every_hours:l0e,sc_every_minutes:u0e,sc_every_months:d0e,sc_every_seconds:p0e,sc_from:f0e,sc_hours:h0e,sc_interval:m0e,sc_intervalBetween:_0e,sc_invalid_cron:g0e,sc_minutes:y0e,sc_months:v0e,sc_once:b0e,sc_period:w0e,sc_seconds:S0e,sc_simple:x0e,sc_specific:k0e,sc_specific_dates:C0e,sc_specific_dow:$0e,sc_specific_dows:E0e,sc_specific_hours:T0e,sc_specific_minutes:O0e,sc_specific_months:D0e,sc_specific_seconds:R0e,sc_time:M0e,sc_to:A0e,sc_wizard:N0e,sch_all:I0e,sch_astroDay:P0e,sch_astroNight:j0e,sch_astro_dawn:z0e,sch_astro_dusk:L0e,sch_astro_goldenHour:F0e,sch_astro_goldenHourEnd:B0e,sch_astro_nadir:W0e,sch_astro_nauticalDawn:U0e,sch_astro_nauticalDusk:q0e,sch_astro_night:H0e,sch_astro_nightEnd:V0e,sch_astro_solarNoon:G0e,sch_astro_sunrise:X0e,sch_astro_sunriseEnd:J0e,sch_astro_sunset:Y0e,sch_astro_sunsetStart:K0e,sch_at:Z0e,sch_desc_atTime:Q0e,sch_desc_everyDay:eve,sch_desc_everyHour:tve,sch_desc_everyMinute:rve,sch_desc_everyMonth:nve,sch_desc_everyNDay:ove,sch_desc_everyNHours:ave,sch_desc_everyNMinutes:ive,sch_desc_everyNMonths:sve,sch_desc_everyNWeeks:cve,sch_desc_everyNYears:lve,sch_desc_everyWeek:uve,sch_desc_everyYear:dve,sch_desc_intervalFromTo:pve,sch_desc_never:fve,sch_desc_onDate:hve,sch_desc_onDates:mve,sch_desc_onEveryDate:_ve,sch_desc_onMonth:gve,sch_desc_onMonths:yve,sch_desc_onWeekday:vve,sch_desc_onWeekdays:bve,sch_desc_onWeekends:wve,sch_desc_onWorkdays:Sve,sch_desc_onceInPast:xve,sch_desc_once_on:kve,sch_desc_validFrom:Cve,sch_desc_validFromTo:$ve,sch_desc_validTo:Eve,sch_every:Tve,sch_exactTime:Ove,sch_from:Dve,sch_fromTo:Rve,sch_intervalTime:Mve,sch_invert:Ave,sch_no_one:Nve,sch_on:Ive,sch_period:Pve,sch_periodDaily:jve,sch_periodDates:zve,sch_periodDay:Lve,sch_periodEvery:Fve,sch_periodEveryDay:Bve,sch_periodEveryMonth:Wve,sch_periodEveryWeek:Uve,sch_periodEveryYear:qve,sch_periodHours:Hve,sch_periodMinutes:Vve,sch_periodMonth:Gve,sch_periodMonthly:Xve,sch_periodOnce:Jve,sch_periodSpecificMonths:Yve,sch_periodWeek:Kve,sch_periodWeekdays:Zve,sch_periodWeekend:Qve,sch_periodWeekly:e1e,sch_periodWorkdays:t1e,sch_periodYear:r1e,sch_periodYearly:n1e,sch_specificTime:o1e,sch_time:a1e,sch_to:i1e,sch_valid:s1e,sch_validFrom:c1e,sch_validTo:l1e,sch_wholeDay:u1e,sch_yearEveryMonth:d1e},f1e="Actes",h1e="Ajouter",m1e="Annuler",_1e="Catégories",g1e="Vérifié",y1e="Effacer",v1e="Fermer",b1e="Commercial",w1e="Configurer",S1e="Lié",x1e="Continuer",k1e="Copié",C1e="Créer",$1e="Recadrer",E1e="Delete",T1e="Supprimer",O1e="Jeter",D1e="Débranché",R1e="Erreur",M1e="Filtre",A1e="Vendredi",N1e="Latitude",I1e="Déconnexion",P1e="Longitude",j1e="Message",z1e="Lundi",L1e="Nom",F1e="Objets",B1e="D'accord",W1e="Produit",U1e="Renommer/Déplacer/Copier",q1e="Répéter",H1e="Remplacer",V1e="Racine",G1e="Samedi",X1e="sauver",J1e="Choisi",Y1e="États",K1e="Dimanche",Z1e="Jeudi",Q1e="Horodatage",ebe="Mardi",tbe="Mise à jour",rbe="Valable jusqu'au",nbe="Valeur",obe="Version",abe="Mercredi",ibe="Largeur",sbe="Oui",cbe="différent",lbe="Tout le monde peut lire un objet",ube="Tout le monde peut lire l'état",dbe="Tout le monde peut écrire un objet",pbe="Tout le monde peut écrire l'état",fbe="Le groupe peut lire l'objet",hbe="Le groupe peut lire l'état",mbe="Le groupe peut écrire un objet",_be="Le groupe peut écrire l'état",gbe="Le propriétaire peut lire l'objet",ybe="Le propriétaire peut lire l'état",vbe="Le propriétaire peut écrire un objet",bbe="Le propriétaire peut écrire l'état",wbe="Boutons",Sbe="Changé de",xbe="Fermer",kbe="Créer un état booléen",Cbe="Créer une chaîne",$be="Créer un appareil",Ebe="Créer un état de numéro",Tbe="Créer un état",Obe="Créer un état de chaîne",Dbe="j.",Rbe="Fr",Mbe="Mo",Abe="Sa",Nbe="Su",Ibe="Th",Pbe="Tu",jbe="Nous",zbe="Mode expert",Lbe="FAUX",Fbe="Tous les fichiers",Bbe="l'audio",Wbe="Code/JSON",Ube="Images",qbe="Texte",Hbe="Vidéo",Vbe="Paramètres",Gbe="sans",Xbe="Une fonction",Jbe="ID",Ybe="Prénom",Kbe="Rôle",Zbe="Pièce",Qbe="Type",e2e="Paramètres invalides",t2e="Dernier changement",r2e="localement",n2e="Avr",o2e="Août",a2e="Déc",i2e="Fév",s2e="Jan",c2e="Juil",l2e="Juin",u2e="Mai",d2e="Mar",p2e="Nov",f2e="Oct",h2e="Sep",m2e="Avr",_2e="Août",g2e="Déc",y2e="Fév",v2e="Jan",b2e="Juil",w2e="Juin",S2e="Mai",x2e="Mar",k2e="Nov",C2e="Oct",$2e="Sep",E2e="rien",T2e="Objet modifié par",O2e="Objet modifié pour la dernière fois à",D2e="Paramètres d'un autre adaptateur %s",R2e="Code de qualité",M2e="répéter",A2e='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',N2e="Tout afficher",I2e="État modifié par",P2e="Objet changé de",j2e="Horodatage",z2e="Drapeau reconnu",L2e="Commentaire",F2e="Copiez la valeur d'état",B2e="Maintenez la touche Cltr/⌘ enfoncée pour ouvrir le lien",W2e="Paramètres personnalisés",U2e="Supprimer un objet",q2e="Modifier l'objet",H2e="Modifier la valeur d'état",V2e="Expire dans",G2e="De",X2e="Dernière modification",J2e="Qualité",Y2e="Horodatage",K2e="Utilisateur",Z2e="Valeur",Q2e="VRAI",ewe="Valeur",twe="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",rwe="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",nwe="CRON",owe="Date",awe="Rendez-vous",iwe="Jour",swe="Jour de la semaine",cwe="Chaque",lwe="tous les N jours",uwe="chaque Nième jour de la semaine",dwe="tous les N jours de la semaine",pwe="toutes les N heures",fwe="toutes les N minutes",hwe="tous les N mois",mwe="toutes les N secondes",_we="tous les jours",gwe="Chaque jour de la semaine",ywe="Chaque jour de la semaine",vwe="Toutes les heures",bwe="chaque minute",wwe="chaque mois",Swe="chaque seconde",xwe="De",kwe="Heures",Cwe="Intervalle",$we="Intervalle entre",Ewe="CRON non valide",Twe="Minutes",Owe="mois",Dwe="Une fois que",Rwe="Période",Mwe="Secondes",Awe="Facile",Nwe="Temps spécifique",Iwe="dates spécifiques",Pwe="jour(s) spécifique(s) de la semaine",jwe="jour spécifique de semaines",zwe="heures spécifiques",Lwe="minutes spécifiques",Fwe="mois spécifiques",Bwe="secondes spécifiques",Wwe="Temps",Uwe="À",qwe="sorcier",Hwe="tout",Vwe="Journée astronomique",Gwe="Nuit astronomique",Xwe="Aube",Jwe="Crépuscule",Ywe="Heure d'or",Kwe="Fin de l'heure d'or",Zwe="Nadir",Qwe="Aube nautique",eSe="Crépuscule nautique",tSe="Nuit",rSe="Fin de nuit",nSe="Midi solaire",oSe="lever du soleil",aSe="Fin du lever du soleil",iSe="Le coucher du soleil",sSe="Coucher du soleil",cSe="à",lSe="à %s",uSe="tous les jours",dSe="Toutes les heures",pSe="chaque minute",fSe="chaque mois",hSe="chaque %s jour",mSe="chaque %s heures",_Se="toutes les %s minutes",gSe="tous les %s mois",ySe="chaque %s semaines",vSe="tous les %s ans",bSe="toutes les semaines",wSe="chaque année",SSe="de %s à %s",xSe="jamais",kSe="sur %s de %s",CSe="sur %s et %s de",$Se="à chaque date de",ESe="%s",TSe="%s et %s",OSe="sur %s",DSe="sur %s et %s",RSe="les weekends",MSe="les jours ouvrables",ASe="ne sera plus exécuté, car start est dans le passé",NSe="sur %s",ISe="de %s",PSe="Exécuter de à",jSe="à %s",zSe="chaque",LSe="Temps spécifique",FSe="de",BSe="De à",WSe="Temps d'interval",USe="inverser",qSe="aucun",HSe="sur",VSe="Période",GSe="du quotidien",XSe="Rendez-vous",JSe="journée",YSe="Chaque",KSe="Tous les jours",ZSe="Chaque mois",QSe="Toutes les semaines",e5e="Chaque année",t5e="Heures",r5e="Minutes",n5e="mois",o5e="Mensuel",a5e="Une fois que",i5e="Mois spécifiques",s5e="La semaine",c5e="Jours de la semaine",l5e="Weekend",u5e="Hebdomadaire",d5e="Jours ouvrables",p5e="Année",f5e="Annuel",h5e="Temps spécifique",m5e="Temps",_5e="à",g5e="Valide",y5e="de",v5e="à",b5e="Toute la journée",w5e="chaque mois",S5e={"ra_%s links from aliases":"%s liens provenant d'alias","ra_%s object(s) processed":"%s objet(s) traité(s)","ra_%s was imported":"%s a été importé","ra_Accept license":"Accepter la licence",ra_Actions:f1e,"ra_Add new child object to selected parent":"Ajouter un nouvel objet enfant au parent sélectionné","ra_Add objects tree from JSON file":"Ajouter une arborescence d'objets à partir d'un fichier JSON","ra_Add row":"Ajouter une rangée","ra_Advanced options":"Options avancées","ra_All items are filtered out":"Tous les éléments sont filtrés","ra_All objects":"Tous les objets",ra_Append:h1e,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","ra_Are you sure?":"Êtes-vous sûr?","ra_Auto (no custom columns)":"Auto (pas de colonnes personnalisées)","ra_Back to %s":"Retour à %s","ra_Background image":"Image de fond",ra_Cancel:m1e,"ra_Cannot add items with set filter":"Impossible d'ajouter des éléments avec le filtre défini","ra_Cannot decode license":"Impossible de décoder la licence","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Impossible de déterminer la position : les paramètres système sont vides et la détection GPS est désactivée dans le navigateur",'ra_Cannot find "%s"':'Impossible de trouver "%s"','ra_Cannot read "%s"':'Impossible de lire "%s"',"ra_Cannot read licenses: %s":"Impossible de lire les licences : %s","ra_Cannot retrieve options, as instance is offline":"Impossible de récupérer les options, car l'instance est hors ligne","ra_Cannot update attribute, because not found in the object":"Impossible de mettre à jour l'attribut, car il est introuvable dans l'objet","ra_Cannot upload":"Impossible de télécharger",ra_Categories:_1e,"ra_Chained certificate":"Certificat chaîné","ra_Change color theme":"Changer le thème de couleur","ra_Changed from":"Changé de","ra_Channel → State":"Canal → État","ra_Check license":"Vérifier la licence",ra_Checked:g1e,ra_Clear:y1e,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Click to see in full size":"Cliquez pour afficher en taille réelle","ra_Click to show":"Cliquez pour afficher","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:v1e,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:b1e,ra_Configure:w1e,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:S1e,ra_Continue:x1e,ra_Copied:k1e,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:C1e,"ra_Create alias":"Créer un alias","ra_Create folder":"Créer le dossier","ra_Create new folder in %s":"Créer un nouveau dossier dans %s",ra_Crop:$1e,"ra_Define CRON...":"Définir CRON...","ra_Define functions":"Définir des fonctions","ra_Define rooms":"Définir des pièces","ra_Define schedule":"Définir le calendrier","ra_Define schedule...":"Définir le calendrier ...",ra_Del:E1e,ra_Delete:T1e,"ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État","ra_Disable/Enable translation":"Activer/Désactiver la traduction",ra_Discard:O1e,ra_Disconnected:D1e,"ra_Do not ask for next 2 hours in this session":"Ne demandez pas les 2 prochaines heures de cette session","ra_Do not export values of states":"Ne pas exporter les valeurs des états","ra_Do not use let's encrypt":"Ne pas utiliser let's encrypt","ra_Docker is not available":"Docker n'est pas disponible","ra_Docker is not installed or not running":"Docker n'est pas installé ou n'est pas en cours d'exécution","ra_Double click to reset table layout":"Double-cliquez pour réinitialiser la disposition du tableau","ra_Drag 'n' drop some files here, or click to select files":"Glissez-déposez des fichiers ici, ou cliquez pour sélectionner des fichiers","ra_Drop file here":"Déposer le fichier ici","ra_Drop the files here...":"Déposez le fichier ici...","ra_Duplicate name":"Nom en double","ra_Edit ACL":"Modifier la LCA","ra_Edit alias":"Modifier l'alias","ra_Edit custom config":"Modifier la configuration personnalisée","ra_Edit full path":"Modifier le chemin complet","ra_Edit function":"Fonction d'édition","ra_Edit object field":"Modifier le champ d'objet","ra_Edit role":"Modifier le rôle","ra_Edit room":"Modifier la salle","ra_Edit value":"Modifier la valeur","ra_Enter the code from that page here":"Entrez le code de cette page ici",ra_Error:R1e,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","ra_Expand/Collapse card":"Carte Développer/Réduire","ra_Export configuration section":"Exporter la section de configuration","ra_Export data to %s file":"Exporter les données vers le fichier %s","ra_Failed to open JSON File":"Échec de l'ouverture du fichier JSON","ra_Fallback custom certificates":"Certificats personnalisés de secours","ra_File is too big. Max %sk allowed. Try use SVG.":"Le fichier est trop volumineux. Max %sk autorisé. Essayez d'utiliser SVG.",ra_Filter:M1e,"ra_Filter and Data Actions":"Actions sur les filtres et les données","ra_Filter files":"Filtrer les fichiers","ra_Folder name":"Nom de dossier","ra_Folder → Channel → State":"Dossier → Chaîne → État","ra_Folder → Device → Channel → State":"Dossier → Appareil → Canal → État","ra_Folder → State":"Dossier → État","ra_Folders always first":"Les dossiers toujours en premier",ra_Friday:A1e,"ra_From file":"À partir du fichier","ra_From text":"À partir du texte","ra_Get %s access":"Obtenir l'accès %s","ra_Good luck":"Bonne chance","ra_Hide empty folders":"Masquer les dossiers vides","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si aucun fichier ne sera créé dans le dossier, il disparaîtra après la fermeture du navigateur","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Si le bouton ci-dessus ne fonctionne pas, vous pouvez autoriser manuellement cette application en visitant cette URL","ra_Import and add configuration section":"Importer et ajouter la section de configuration","ra_Import and replace configuration section":"Importer et remplacer la section de configuration","ra_Import data from %s file":"Importer des données à partir du fichier %s","ra_Import from %s":"Importer depuis %s","ra_Instance %s is alive":"L'instance %s est active","ra_Instance %s is not alive":"L'instance %s n'est pas active","ra_Instance is not alive":"L'instance n'est pas active","ra_Invalid CRON":"CRON invalide","ra_Invalid JSON":"JSON invalide","ra_Invalid JSON file.":"Fichier JSON invalide.","ra_Invalid JSON format. Expected an array.":"Format JSON invalide. Tableau attendu.","ra_Invalid answer from server":"Réponse invalide du serveur","ra_Invalid parent folder!":"Dossier parent non valide!","ra_Invalid structure":"Structure invalide","ra_JSON editor":"Éditeur JSON","ra_Last change":"Dernier changement",ra_Latitude:N1e,"ra_License %s":"Licence %s","ra_License agreement":"Accord de licence","ra_License does not exist":"La licence n'existe pas","ra_License expired on %s":"Licence expirée le %s",'ra_License for other product "%s"':'Licence pour un autre produit "%s"',"ra_License is for version %s, but required version is %s.":"La licence est pour la version %s, mais la version requise est %s.","ra_License must be converted":"La licence doit être convertie en une version plus récente. Vous pouvez le faire dans votre profil iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licence introuvable dans le gestionnaire de licences. Voulez-vous mettre à jour les licences depuis iobroker.net ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Logout:I1e,ra_Longitude:P1e,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:j1e,ra_Monday:z1e,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:L1e,"ra_No data found in file":"Aucune donnée trouvée dans le fichier","ra_No one license found in license manager":"Aucune licence trouvée dans le gestionnaire de licences","ra_No response from admin":"Aucune réponse de l'administrateur","ra_No response from the backend":"Aucune réponse du backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Les non-experts ne peuvent créer de nouveaux objets que dans "0_userdata.0" ou "alias.0".',"ra_Not a number":"Pas un numéro","ra_OAuth Client ID":"ID client OAuth","ra_OAuth Client secret":"Secret client OAuth",ra_Objects:F1e,ra_Ok:B1e,"ra_On weekdays":"En semaine","ra_Only following structures of objects are available:":"Seules les structures d'objets suivantes sont disponibles:","ra_Only selected":"Uniquement sélectionné","ra_Owner group":"Groupe propriétaire","ra_Owner user":"Utilisateur propriétaire","ra_Passwords are not equal!":"Les mots de passe ne sont pas égaux !","ra_Place your files here or click here to open the browse dialog":"Placez vos fichiers ici ou cliquez ici pour ouvrir la boîte de dialogue de navigation","ra_Please allow popups in your browser for this page!":"Veuillez autoriser les popups dans votre navigateur pour cette page !","ra_Please confirm":"Veuillez confirmer","ra_Please create license":"Veuillez créer une licence","ra_Please enter the license":"Veuillez entrer la licence","ra_Please select file...":"Veuillez sélectionner le fichier...","ra_Please select object ID...":"Veuillez sélectionner l'ID d'objet ...","ra_Port could be used by %s":"Le port pourrait être utilisé par %s","ra_Port is already used by %s":"Le port est déjà utilisé par %s","ra_Press ENTER Key to add new item":"Appuyez sur la touche ENTRÉE pour ajouter un nouvel élément","ra_Private certificate":"Certificat privé",ra_Product:W1e,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Rename_Move_Copy:U1e,"ra_Renew %s access":"Renouveler l'accès %s",ra_Repeat:q1e,ra_Replace:H1e,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:V1e,ra_Saturday:G1e,ra_Save:X1e,"ra_Save and close":"Sauver et fermer","ra_Save configuration to file":"Enregistrer la configuration dans un fichier","ra_Save objects tree as JSON file":"Enregistrer l'arborescence des objets en tant que fichier JSON","ra_Select all":"Tout sélectionner","ra_Select color":"Choisissez la couleur","ra_Select predefined icon":"Sélectionnez l'icône prédéfinie","ra_Select type of export":"Sélectionnez le type d'exportation",ra_Selected:J1e,"ra_Selected %s object(s)":"Objet(s) %s sélectionné(s)","ra_Serial number (UUID)":"Numéro de série (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Le numéro de série (UUID) "%s" dans la licence est pour un autre appareil.',"ra_Session will expire in %s seconds. Continue?":"La session expirera dans %s secondes. Continuer ?","ra_Show all folders":"Afficher tous les dossiers","ra_Show lines between rows":"Afficher les lignes entre les lignes","ra_Show/Hide object descriptions":"Afficher/Masquer les descriptions d'objets","ra_Show/hide filter input":"Afficher/masquer l'entrée de filtre","ra_Some data are not stored. Discard?":"Certaines données ne sont pas stockées. Jeter?",ra_States:Y1e,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Autorisation réussie. Jeton valide jusqu'au %s et sera automatiquement renouvelé.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Autorisation réussie. Jeton valide jusqu'à %s, mais il peut expirer car l'instance n'est pas en cours d'exécution.","ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:K1e,"ra_Suppress question for next %s minutes":"Supprimer la question pour les %s prochaines minutes","ra_System language":"Langue du système","ra_Take browser position":"Prendre position depuis le navigateur","ra_Take position from system settings":"Prendre position à partir des paramètres système",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Les experts peuvent créer des objets partout mais à partir du deuxième niveau (par exemple "vis.0" ou "javascript.0").',"ra_The page you are looking for was not found":"La page que vous recherchez n'a pas été trouvée","ra_The schedule will be executed every minute. Are you sure?":"Le planning sera exécuté toutes les minutes. Êtes-vous sûr ?","ra_The schedule will be executed every second. Are you sure?":"Le planning sera exécuté toutes les secondes. Êtes-vous sûr ?",ra_Thursday:Z1e,ra_Timestamp:Q1e,"ra_Toggle expert mode":"Basculer en mode expert","ra_Toggle the states view":"Basculer la vue des états","ra_Toggle view mode":"Basculer le mode d'affichage","ra_Too big":"Trop grand","ra_Too small":"Trop petit","ra_Transparent dialog":"Dialogue transparent",ra_Tuesday:ebe,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:tbe,"ra_Upload file":"Téléverser un fichier","ra_Use all available let's encrypt certificates":"Utilisez tous les certificats let's encrypt disponibles","ra_Use iobroker.acme adapter for letsencrypt certificates":"Utiliser l'adaptateur iobroker.acme pour les certificats Letsencrypt","ra_Use system settings for position":"Utiliser les paramètres système pour la position","ra_Used system settings":"Paramètres système utilisés","ra_User files":"Fichiers utilisateurs",ra_ValidTill:rbe,ra_Value:nbe,ra_Version:obe,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:abe,ra_Width:ibe,"ra_YAML editor":"Éditeur YAML",ra_Yes:sbe,"ra_You can export all objects or just the selected branch.":"Vous pouvez exporter tous les objets ou uniquement la branche sélectionnée.","ra_You can filter entries by entering here some text":"Vous pouvez filtrer les entrées en saisissant ici du texte","ra_You can use * as wildcard":"Vous pouvez utiliser * comme caractère générique",ra___different__:cbe,ra_aclEveryone_read_object:lbe,ra_aclEveryone_read_state:ube,ra_aclEveryone_write_object:dbe,ra_aclEveryone_write_state:pbe,ra_aclGroup_read_object:fbe,ra_aclGroup_read_state:hbe,ra_aclGroup_write_object:mbe,ra_aclGroup_write_state:_be,ra_aclOwner_read_object:gbe,ra_aclOwner_read_state:ybe,ra_aclOwner_write_object:vbe,ra_aclOwner_write_state:bbe,ra_buttons:wbe,ra_changedFrom:Sbe,ra_close:xbe,ra_create_boolean_state:kbe,ra_create_channel:Cbe,ra_create_device:$be,ra_create_number_state:Ebe,ra_create_state:Tbe,ra_create_string_state:Obe,ra_daysShortText:Dbe,ra_dow_Fr:Rbe,ra_dow_Mo:Mbe,ra_dow_Sa:Abe,ra_dow_Su:Nbe,ra_dow_Th:Ibe,ra_dow_Tu:Pbe,ra_dow_We:jbe,ra_expertMode:zbe,ra_false:Lbe,ra_fileType_all:Fbe,ra_fileType_audio:Bbe,ra_fileType_code:Wbe,ra_fileType_images:Ube,ra_fileType_txt:qbe,ra_fileType_video:Hbe,"ra_fileType_video,":"Vidéo",ra_filter_customs:Vbe,ra_filter_customs_without:Gbe,ra_filter_func:Xbe,ra_filter_id:Jbe,ra_filter_name:Ybe,ra_filter_role:Kbe,ra_filter_room:Zbe,ra_filter_type:Qbe,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:e2e,ra_lastChange:t2e,ra_locally:r2e,ra_month_Apr:n2e,ra_month_Aug:o2e,ra_month_Dec:a2e,ra_month_Feb:i2e,ra_month_Jan:s2e,ra_month_Jul:c2e,ra_month_Jun:l2e,ra_month_Mai:u2e,ra_month_Mar:d2e,ra_month_Nov:p2e,ra_month_Oct:f2e,ra_month_Sep:h2e,ra_months_Apr:m2e,ra_months_Aug:_2e,ra_months_Dec:g2e,ra_months_Feb:y2e,ra_months_Jan:v2e,ra_months_Jul:b2e,ra_months_Jun:w2e,ra_months_Mai:S2e,ra_months_Mar:x2e,ra_months_Nov:k2e,ra_months_Oct:C2e,ra_months_Sep:$2e,"ra_no confirm for 5 mins":"pas de confirmation pendant 5 minutes",ra_none:E2e,ra_object_changed_by:T2e,ra_object_changed_by_user:O2e,ra_otherConfig:D2e,ra_qualityCode:R2e,ra_repeat:M2e,ra_select_folder_hint:A2e,ra_show_all:N2e,ra_state_changed_by:I2e,ra_state_changed_from:P2e,ra_timestamp:j2e,ra_tooltip_ack:z2e,ra_tooltip_comment:L2e,ra_tooltip_copyState:F2e,ra_tooltip_ctrlForLink:B2e,ra_tooltip_customConfig:W2e,ra_tooltip_deleteObject:U2e,ra_tooltip_editObject:q2e,ra_tooltip_editState:H2e,ra_tooltip_expire:V2e,ra_tooltip_from:G2e,ra_tooltip_lc:X2e,ra_tooltip_quality:J2e,ra_tooltip_ts:Y2e,ra_tooltip_user:K2e,ra_tooltip_value:Z2e,ra_true:Q2e,"ra_use seconds":"utiliser les secondes",ra_val:ewe,"ra_via internet":"par Internet",ra_warning_every_minute:twe,ra_warning_every_second:rwe,sc_cron:nwe,sc_date:owe,sc_dates:awe,sc_dow:iwe,sc_dows:swe,sc_every:cwe,sc_everyN_dates:lwe,sc_everyN_dow:uwe,sc_everyN_dows:dwe,sc_everyN_hours:pwe,sc_everyN_minutes:fwe,sc_everyN_months:hwe,sc_everyN_seconds:mwe,sc_every_dates:_we,sc_every_dow:gwe,sc_every_dows:ywe,sc_every_hours:vwe,sc_every_minutes:bwe,sc_every_months:wwe,sc_every_seconds:Swe,sc_from:xwe,sc_hours:kwe,sc_interval:Cwe,sc_intervalBetween:$we,sc_invalid_cron:Ewe,sc_minutes:Twe,sc_months:Owe,sc_once:Dwe,sc_period:Rwe,sc_seconds:Mwe,sc_simple:Awe,sc_specific:Nwe,sc_specific_dates:Iwe,sc_specific_dow:Pwe,sc_specific_dows:jwe,sc_specific_hours:zwe,sc_specific_minutes:Lwe,sc_specific_months:Fwe,sc_specific_seconds:Bwe,sc_time:Wwe,sc_to:Uwe,sc_wizard:qwe,sch_all:Hwe,sch_astroDay:Vwe,sch_astroNight:Gwe,sch_astro_dawn:Xwe,sch_astro_dusk:Jwe,sch_astro_goldenHour:Ywe,sch_astro_goldenHourEnd:Kwe,sch_astro_nadir:Zwe,sch_astro_nauticalDawn:Qwe,sch_astro_nauticalDusk:eSe,sch_astro_night:tSe,sch_astro_nightEnd:rSe,sch_astro_solarNoon:nSe,sch_astro_sunrise:oSe,sch_astro_sunriseEnd:aSe,sch_astro_sunset:iSe,sch_astro_sunsetStart:sSe,sch_at:cSe,sch_desc_atTime:lSe,sch_desc_everyDay:uSe,sch_desc_everyHour:dSe,sch_desc_everyMinute:pSe,sch_desc_everyMonth:fSe,sch_desc_everyNDay:hSe,sch_desc_everyNHours:mSe,sch_desc_everyNMinutes:_Se,sch_desc_everyNMonths:gSe,sch_desc_everyNWeeks:ySe,sch_desc_everyNYears:vSe,sch_desc_everyWeek:bSe,sch_desc_everyYear:wSe,sch_desc_intervalFromTo:SSe,sch_desc_never:xSe,sch_desc_onDate:kSe,sch_desc_onDates:CSe,sch_desc_onEveryDate:$Se,sch_desc_onMonth:ESe,sch_desc_onMonths:TSe,sch_desc_onWeekday:OSe,sch_desc_onWeekdays:DSe,sch_desc_onWeekends:RSe,sch_desc_onWorkdays:MSe,sch_desc_onceInPast:ASe,sch_desc_once_on:NSe,sch_desc_validFrom:ISe,sch_desc_validFromTo:PSe,sch_desc_validTo:jSe,sch_every:zSe,sch_exactTime:LSe,sch_from:FSe,sch_fromTo:BSe,sch_intervalTime:WSe,sch_invert:USe,sch_no_one:qSe,sch_on:HSe,sch_period:VSe,sch_periodDaily:GSe,sch_periodDates:XSe,sch_periodDay:JSe,sch_periodEvery:YSe,sch_periodEveryDay:KSe,sch_periodEveryMonth:ZSe,sch_periodEveryWeek:QSe,sch_periodEveryYear:e5e,sch_periodHours:t5e,sch_periodMinutes:r5e,sch_periodMonth:n5e,sch_periodMonthly:o5e,sch_periodOnce:a5e,sch_periodSpecificMonths:i5e,sch_periodWeek:s5e,sch_periodWeekdays:c5e,sch_periodWeekend:l5e,sch_periodWeekly:u5e,sch_periodWorkdays:d5e,sch_periodYear:p5e,sch_periodYearly:f5e,sch_specificTime:h5e,sch_time:m5e,sch_to:_5e,sch_valid:g5e,sch_validFrom:y5e,sch_validTo:v5e,sch_wholeDay:b5e,sch_yearEveryMonth:w5e},x5e="Azioni",k5e="Aggiungere",C5e="Annulla",$5e="Categorie",E5e="Controllato",T5e="Elimina",O5e="Vicino",D5e="Commerciale",R5e="Configura",M5e="Collegato",A5e="Continuare",N5e="Copiato",I5e="Creare",P5e="Raccolto",j5e="Delete",z5e="Elimina",L5e="Scartare",F5e="Disconnesso",B5e="Errore",W5e="Filtro",U5e="Venerdì",q5e="Latitudine",H5e="Esci",V5e="Longitudine",G5e="Messaggio",X5e="Lunedi",J5e="Nome",Y5e="Oggetti",K5e="Ok",Z5e="Prodotto",Q5e="Rinomina/Sposta/Copia",exe="Ripetere",txe="Sostituire",rxe="Radice",nxe="Sabato",oxe="Salva",axe="Selezionato",ixe="stati",sxe="Domenica",cxe="Giovedì",lxe="Timestamp",uxe="Martedì",dxe="Aggiornare",pxe="Valido fino a",fxe="Valore",hxe="Versione",mxe="Mercoledì",_xe="Larghezza",gxe="SÌ",yxe="diverso",vxe="Tutti possono leggere gli oggetti",bxe="Tutti possono leggere lo stato",wxe="Tutti possono scrivere oggetti",Sxe="Tutti possono scrivere stato",xxe="Il gruppo può leggere l'oggetto",kxe="Il gruppo può leggere lo stato",Cxe="Il gruppo può scrivere l'oggetto",$xe="Il gruppo può scrivere lo stato",Exe="Il proprietario può leggere l'oggetto",Txe="Il proprietario può leggere lo stato",Oxe="Il proprietario può scrivere l'oggetto",Dxe="Il proprietario può scrivere lo stato",Rxe="Bottoni",Mxe="Cambiato da",Axe="vicino",Nxe="Crea uno stato booleano",Ixe="Crea canale",Pxe="Crea dispositivo",jxe="Crea lo stato del numero",zxe="Crea stato",Lxe="Crea lo stato della stringa",Fxe="g.",Bxe="fr",Wxe="momento",Uxe="Sa",qxe="su",Hxe="th",Vxe="Tu",Gxe="Noi",Xxe="Modalità esperto",Jxe="FALSO",Yxe="Tutti i files",Kxe="Audio",Zxe="Codice/JSON",Qxe="immagini",e3e="Testo",t3e="video",r3e="impostazioni",n3e="senza",o3e="Funzione",a3e="ID",i3e="Nome",s3e="Ruolo",c3e="Camera",l3e="genere",u3e="Impostazioni non valide",d3e="Ultima modifica",p3e="localmente",f3e="apr",h3e="agosto",m3e="Dic",_3e="febbraio",g3e="gen",y3e="lug",v3e="giu",b3e="Mai",w3e="marzo",S3e="nov",x3e="ottobre",k3e="Sett",C3e="apr",$3e="agosto",E3e="Dic",T3e="febbraio",O3e="gen",D3e="lug",R3e="giu",M3e="Mai",A3e="marzo",N3e="nov",I3e="ottobre",P3e="Sett",j3e="nessuna",z3e="Oggetto modificato da",L3e="L'oggetto è stato modificato l'ultima volta alle",F3e="Impostazioni dall'altro adattatore %s",B3e="Codice di qualità",W3e="ripetere",U3e='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',q3e="Mostra tutto",H3e="Stato cambiato da",V3e="Oggetto cambiato da",G3e="Timestamp",X3e="Bandiera riconosciuta",J3e="Commento",Y3e="Copia il valore dello stato",K3e="Tieni premuto il tasto Cltr/⌘ per aprire il collegamento",Z3e="Impostazioni personalizzate",Q3e="Elimina oggetto",e4e="Modifica oggetto",t4e="Modifica il valore dello stato",r4e="Scade tra",n4e="A partire dal",o4e="Ultima modifica",a4e="Qualità",i4e="Data e ora",s4e="Utente",c4e="Valore",l4e="VERO",u4e="Valore",d4e="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",p4e="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",f4e="CRON",h4e="Data",m4e="Date",_4e="Giorno",g4e="Giorno della settimana",y4e="Ogni",v4e="ogni N giorni",b4e="ogni Nesimo giorno della settimana",w4e="ogni N giorno della settimana",S4e="ogni N ore",x4e="ogni N minuti",k4e="ogni N mesi",C4e="ogni N secondi",$4e="ogni giorno",E4e="Tutti i giorni della settimana",T4e="Tutti i giorni della settimana",O4e="ogni ora",D4e="ogni minuto",R4e="ogni mese",M4e="ogni secondo",A4e="A partire dal",N4e="Ore",I4e="Intervallo",P4e="Intervallo tra",j4e="CRON non valido",z4e="Minuti",L4e="mesi",F4e="Una volta",B4e="Periodo",W4e="secondi",U4e="Semplice",q4e="Orario preciso",H4e="date specifiche",V4e="giorno/i specifico/i della settimana",G4e="giorno specifico delle settimane",X4e="orari specifici",J4e="minuti specifici",Y4e="mesi specifici",K4e="secondi specifici",Z4e="Tempo",Q4e="Per",eke="procedura guidata",tke="tutti",rke="Astro day",nke="Astro night",oke="Alba",ake="Crepuscolo",ike="Ora d'oro",ske="Fine dell'ora d'oro",cke="Nadir",lke="Alba nautica",uke="Crepuscolo nautico",dke="Notte",pke="Fine della notte",fke="Mezzogiorno solare",hke="Alba",mke="Fine dell'alba",_ke="Tramonto",gke="Inizio del tramonto",yke="a",vke="a %s",bke="ogni giorno",wke="ogni ora",Ske="ogni minuto",xke="ogni mese",kke="ogni %s giorno",Cke="ogni %s ore",$ke="ogni %s minuti",Eke="ogni %s mesi",Tke="ogni %s settimane",Oke="ogni %s anni",Dke="ogni settimana",Rke="ogni anno",Mke="da %s a %s",Ake="mai",Nke="su %s di %s",Ike="su %s e %s di",Pke="in ogni data di",jke="%s",zke="%s e %s",Lke="su %s",Fke="su %s e %s",Bke="nei finesettimana",Wke="nei giorni lavorativi",Uke="non verrà più eseguito, perché start è nel passato",qke="su %s",Hke="da %s",Vke="Eseguire da a",Gke="a %s",Xke="ogni",Jke="Orario preciso",Yke="a partire dal",Kke="Da A",Zke="Intervallo di tempo",Qke="invertire",eCe="nessuna",tCe="sopra",rCe="Periodo",nCe="Quotidiano",oCe="Date",aCe="Giorno",iCe="Ogni",sCe="Ogni giorno",cCe="Ogni mese",lCe="Ogni settimana",uCe="Ogni anno",dCe="Ore",pCe="Minuti",fCe="mese",hCe="Mensile",mCe="Una volta",_Ce="Mesi specifici",gCe="Settimana",yCe="Giorni della settimana",vCe="Fine settimana",bCe="settimanalmente",wCe="giorni feriali",SCe="Anno",xCe="Annuale",kCe="Orario preciso",CCe="Tempo",$Ce="per",ECe="Valido",TCe="a partire dal",OCe="per",DCe="Giorno intero",RCe="ogni mese",MCe={"ra_%s links from aliases":"%s link da alias","ra_%s object(s) processed":"%s oggetti elaborati","ra_%s was imported":"%s è stato importato","ra_Accept license":"Accetta licenza",ra_Actions:x5e,"ra_Add new child object to selected parent":"Aggiungi un nuovo oggetto figlio al genitore selezionato","ra_Add objects tree from JSON file":"Aggiungi l'albero degli oggetti dal file JSON","ra_Add row":"Aggiungi riga","ra_Advanced options":"Opzioni avanzate","ra_All items are filtered out":"Tutti gli elementi vengono filtrati","ra_All objects":"Tutti gli oggetti",ra_Append:k5e,"ra_Append %s entries or replace existing?":"Aggiungi %s voci o sostituisci quelle esistenti?","ra_Append or replace?":"Aggiungere o sostituire?","ra_Are you sure?":"Sei sicuro?","ra_Auto (no custom columns)":"Auto (nessuna colonna personalizzata)","ra_Back to %s":"Torna a %s","ra_Background image":"Immagine di sfondo",ra_Cancel:C5e,"ra_Cannot add items with set filter":"Impossibile aggiungere elementi con il filtro impostato","ra_Cannot decode license":"Impossibile decodificare la licenza","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Impossibile determinare la posizione: le impostazioni di sistema sono vuote e il rilevamento GPS è disabilitato nel browser",'ra_Cannot find "%s"':'Impossibile trovare "%s"','ra_Cannot read "%s"':'Impossibile leggere "%s"',"ra_Cannot read licenses: %s":"Impossibile leggere le licenze: %s","ra_Cannot retrieve options, as instance is offline":"Impossibile recuperare le opzioni, poiché l'istanza è offline","ra_Cannot update attribute, because not found in the object":"Impossibile aggiornare l'attributo, perché non trovato nell'oggetto","ra_Cannot upload":"Impossibile caricare",ra_Categories:$5e,"ra_Chained certificate":"Certificato incatenato","ra_Change color theme":"Cambia tema colore","ra_Changed from":"Cambiato da","ra_Channel → State":"Canale → Stato","ra_Check license":"Controlla la licenza",ra_Checked:E5e,ra_Clear:T5e,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Click to see in full size":"Clicca per visualizzare l'immagine a dimensioni intere","ra_Click to show":"Clicca per mostrare","ra_Clone current row":"Clona riga corrente",ra_Close:O5e,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:D5e,ra_Configure:R5e,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:M5e,ra_Continue:A5e,ra_Copied:N5e,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:I5e,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:P5e,"ra_Define CRON...":"Definisci CRON...","ra_Define functions":"Definire le funzioni","ra_Define rooms":"Definisci le stanze","ra_Define schedule":"Definisci programma","ra_Define schedule...":"Definisci pianificazione ...",ra_Del:j5e,ra_Delete:z5e,"ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato","ra_Disable/Enable translation":"Disabilita/Abilita la traduzione",ra_Discard:L5e,ra_Disconnected:F5e,"ra_Do not ask for next 2 hours in this session":"Non chiedere per le prossime 2 ore in questa sessione","ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","ra_Docker is not available":"Docker non è disponibile","ra_Docker is not installed or not running":"Docker non è installato o non è in esecuzione","ra_Double click to reset table layout":"Fare doppio clic per ripristinare il layout della tabella","ra_Drag 'n' drop some files here, or click to select files":"Trascina e rilascia alcuni file qui o fai clic per selezionare i file","ra_Drop file here":"Trascina il file qui","ra_Drop the files here...":"Trascina qui il file...","ra_Duplicate name":"Nome duplicato","ra_Edit ACL":"Modifica ACL","ra_Edit alias":"Modifica alias","ra_Edit custom config":"Modifica configurazione personalizzata","ra_Edit full path":"Modifica percorso completo","ra_Edit function":"Funzione di modifica","ra_Edit object field":"Modifica campo oggetto","ra_Edit role":"Modifica ruolo","ra_Edit room":"Modifica stanza","ra_Edit value":"Modifica valore","ra_Enter the code from that page here":"Inserisci qui il codice da quella pagina",ra_Error:B5e,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","ra_Expand/Collapse card":"Espandi/Comprimi scheda","ra_Export configuration section":"Sezione di configurazione dell'esportazione","ra_Export data to %s file":"Esporta i dati nel file %s","ra_Failed to open JSON File":"Impossibile aprire il file JSON","ra_Fallback custom certificates":"Certificati personalizzati di fallback","ra_File is too big. Max %sk allowed. Try use SVG.":"Il file è troppo grande. Max %sk consentito. Prova a usare SVG.",ra_Filter:W5e,"ra_Filter and Data Actions":"Azioni sui filtri e sui dati","ra_Filter files":"Filtra i file","ra_Folder name":"Nome della cartella","ra_Folder → Channel → State":"Cartella → Canale → Stato","ra_Folder → Device → Channel → State":"Cartella → Dispositivo → Canale → Stato","ra_Folder → State":"Cartella → Stato","ra_Folders always first":"Le cartelle sono sempre al primo posto",ra_Friday:U5e,"ra_From file":"Dal file","ra_From text":"Dal testo","ra_Get %s access":"Ottieni l'accesso %s","ra_Good luck":"Buona fortuna","ra_Hide empty folders":"Nascondi cartelle vuote","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nessun file verrà creato nella cartella, scomparirà dopo la chiusura del browser","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Se il pulsante sopra non funziona, puoi autorizzare manualmente questa app visitando questo URL","ra_Import and add configuration section":"Importa e aggiungi la sezione di configurazione","ra_Import and replace configuration section":"Importa e sostituisci la sezione di configurazione","ra_Import data from %s file":"Importa i dati dal file %s","ra_Import from %s":"Importa da %s","ra_Instance %s is alive":"Il %s dell'istanza è vivo","ra_Instance %s is not alive":"Il TESTO dell'istanza non è vivo","ra_Instance is not alive":"L'istanza non è viva","ra_Invalid CRON":"CRON non valido","ra_Invalid JSON":"JSON non valido","ra_Invalid JSON file.":"File JSON non valido.","ra_Invalid JSON format. Expected an array.":"Formato JSON non valido. È previsto un array.","ra_Invalid answer from server":"Risposta non valida dal server","ra_Invalid parent folder!":"Cartella principale non valida!","ra_Invalid structure":"Struttura non valida","ra_JSON editor":"Editor JSON","ra_Last change":"Ultima modifica",ra_Latitude:q5e,"ra_License %s":"Licenza %s","ra_License agreement":"Contratto di licenza","ra_License does not exist":"La licenza non esiste","ra_License expired on %s":"Licenza scaduta il %s",'ra_License for other product "%s"':'Licenza per altro prodotto "%s"',"ra_License is for version %s, but required version is %s.":"La licenza è per la versione %s, ma la versione richiesta è %s.","ra_License must be converted":"La licenza deve essere convertita in una versione più recente. Puoi farlo nel tuo profilo iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licenza non trovata nel gestore delle licenze. Vuoi aggiornare le licenze da iobroker.net?","ra_Listen on all IPs":"Ascolta su tutti gli IP","ra_Load configuration from file":"Carica la configurazione dal file",ra_Logout:H5e,ra_Longitude:V5e,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:G5e,ra_Monday:X5e,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:J5e,"ra_No data found in file":"Nessun dato trovato nel file","ra_No one license found in license manager":"Nessuna licenza trovata nel gestore delle licenze","ra_No response from admin":"Nessuna risposta dall'amministratore","ra_No response from the backend":"Nessuna risposta dal backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'I non esperti possono creare nuovi oggetti solo in "0_userdata.0" o "alias.0".',"ra_Not a number":"Non un numero","ra_OAuth Client ID":"ID client OAuth","ra_OAuth Client secret":"Segreto del client OAuth",ra_Objects:Y5e,ra_Ok:K5e,"ra_On weekdays":"Nei giorni della settimana","ra_Only following structures of objects are available:":"Sono disponibili solo le seguenti strutture di oggetti:","ra_Only selected":"Solo selezionato","ra_Owner group":"Gruppo di proprietari","ra_Owner user":"Utente proprietario","ra_Passwords are not equal!":"Le password non sono uguali!","ra_Place your files here or click here to open the browse dialog":"Posiziona i file qui o fai clic qui per aprire la finestra di dialogo Sfoglia","ra_Please allow popups in your browser for this page!":"Si prega di abilitare i popup nel browser per questa pagina!","ra_Please confirm":"Si prega di confermare","ra_Please create license":"Si prega di creare la licenza","ra_Please enter the license":"Inserisci la licenza","ra_Please select file...":"Si prega di selezionare il file...","ra_Please select object ID...":"Seleziona l'ID oggetto ...","ra_Port could be used by %s":"La porta potrebbe essere utilizzata da %s","ra_Port is already used by %s":"La porta è già utilizzata da %s","ra_Press ENTER Key to add new item":"Premere il tasto INVIO per aggiungere un nuovo elemento","ra_Private certificate":"Certificato privato",ra_Product:Z5e,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Rename_Move_Copy:Q5e,"ra_Renew %s access":"Rinnova l'accesso %s",ra_Repeat:exe,ra_Replace:txe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:rxe,ra_Saturday:nxe,ra_Save:oxe,"ra_Save and close":"Salva e chiudi","ra_Save configuration to file":"Salva la configurazione su file","ra_Save objects tree as JSON file":"Salva l'albero degli oggetti come file JSON","ra_Select all":"Seleziona tutto","ra_Select color":"Seleziona il colore","ra_Select predefined icon":"Seleziona l'icona predefinita","ra_Select type of export":"Seleziona il tipo di esportazione",ra_Selected:axe,"ra_Selected %s object(s)":"%s oggetto/i selezionato/i","ra_Serial number (UUID)":"Numero di serie (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Il numero di serie (UUID) "%s" nella licenza è per un altro dispositivo.',"ra_Session will expire in %s seconds. Continue?":"La sessione scadrà tra %s secondi. Continuare?","ra_Show all folders":"Mostra tutte le cartelle","ra_Show lines between rows":"Mostra linee tra le righe","ra_Show/Hide object descriptions":"Mostra/Nascondi le descrizioni degli oggetti","ra_Show/hide filter input":"Mostra/nascondi input filtro","ra_Some data are not stored. Discard?":"Alcuni dati non vengono memorizzati. Scartare?",ra_States:ixe,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Autorizzazione completata. Il token è valido fino al %s e verrà rinnovato automaticamente.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Autorizzazione completata. Il token è valido fino al %s, ma potrebbe scadere perché l'istanza non è in esecuzione.","ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:sxe,"ra_Suppress question for next %s minutes":"Sopprimi la domanda per i prossimi %s minuti","ra_System language":"Linguaggio di sistema","ra_Take browser position":"Prendi posizione dal browser","ra_Take position from system settings":"Prendi posizione dalle impostazioni di sistema",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Gli esperti possono creare oggetti ovunque ma dal secondo livello (es. "Vis.0" o "javascript.0").',"ra_The page you are looking for was not found":"La pagina che stai cercando non è stata trovata","ra_The schedule will be executed every minute. Are you sure?":"La pianificazione verrà eseguita ogni minuto. Sei sicuro?","ra_The schedule will be executed every second. Are you sure?":"La pianificazione verrà eseguita ogni secondo. Sei sicuro?",ra_Thursday:cxe,ra_Timestamp:lxe,"ra_Toggle expert mode":"Attiva / disattiva la modalità esperto","ra_Toggle the states view":"Attiva o disattiva la visualizzazione degli stati","ra_Toggle view mode":"Attiva / disattiva la modalità di visualizzazione","ra_Too big":"Troppo grande","ra_Too small":"Troppo piccolo","ra_Transparent dialog":"Finestra di dialogo trasparente",ra_Tuesday:uxe,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:dxe,"ra_Upload file":"Caricare un file","ra_Use all available let's encrypt certificates":"Usa tutti i certificati Let's Encrypt disponibili","ra_Use iobroker.acme adapter for letsencrypt certificates":"Utilizzare l'adattatore iobroker.acme per i certificati letsencrypt","ra_Use system settings for position":"Usa le impostazioni di sistema per la posizione","ra_Used system settings":"Impostazioni di sistema utilizzate","ra_User files":"File utente",ra_ValidTill:pxe,ra_Value:fxe,ra_Version:hxe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:mxe,ra_Width:_xe,"ra_YAML editor":"Editor YAML",ra_Yes:gxe,"ra_You can export all objects or just the selected branch.":"Puoi esportare tutti gli oggetti o solo il ramo selezionato.","ra_You can filter entries by entering here some text":"Puoi filtrare le voci inserendo qui del testo","ra_You can use * as wildcard":"Puoi usare * come carattere jolly",ra___different__:yxe,ra_aclEveryone_read_object:vxe,ra_aclEveryone_read_state:bxe,ra_aclEveryone_write_object:wxe,ra_aclEveryone_write_state:Sxe,ra_aclGroup_read_object:xxe,ra_aclGroup_read_state:kxe,ra_aclGroup_write_object:Cxe,ra_aclGroup_write_state:$xe,ra_aclOwner_read_object:Exe,ra_aclOwner_read_state:Txe,ra_aclOwner_write_object:Oxe,ra_aclOwner_write_state:Dxe,ra_buttons:Rxe,ra_changedFrom:Mxe,ra_close:Axe,ra_create_boolean_state:Nxe,ra_create_channel:Ixe,ra_create_device:Pxe,ra_create_number_state:jxe,ra_create_state:zxe,ra_create_string_state:Lxe,ra_daysShortText:Fxe,ra_dow_Fr:Bxe,ra_dow_Mo:Wxe,ra_dow_Sa:Uxe,ra_dow_Su:qxe,ra_dow_Th:Hxe,ra_dow_Tu:Vxe,ra_dow_We:Gxe,ra_expertMode:Xxe,ra_false:Jxe,ra_fileType_all:Yxe,ra_fileType_audio:Kxe,ra_fileType_code:Zxe,ra_fileType_images:Qxe,ra_fileType_txt:e3e,ra_fileType_video:t3e,"ra_fileType_video,":"video",ra_filter_customs:r3e,ra_filter_customs_without:n3e,ra_filter_func:o3e,ra_filter_id:a3e,ra_filter_name:i3e,ra_filter_role:s3e,ra_filter_room:c3e,ra_filter_type:l3e,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:u3e,ra_lastChange:d3e,ra_locally:p3e,ra_month_Apr:f3e,ra_month_Aug:h3e,ra_month_Dec:m3e,ra_month_Feb:_3e,ra_month_Jan:g3e,ra_month_Jul:y3e,ra_month_Jun:v3e,ra_month_Mai:b3e,ra_month_Mar:w3e,ra_month_Nov:S3e,ra_month_Oct:x3e,ra_month_Sep:k3e,ra_months_Apr:C3e,ra_months_Aug:$3e,ra_months_Dec:E3e,ra_months_Feb:T3e,ra_months_Jan:O3e,ra_months_Jul:D3e,ra_months_Jun:R3e,ra_months_Mai:M3e,ra_months_Mar:A3e,ra_months_Nov:N3e,ra_months_Oct:I3e,ra_months_Sep:P3e,"ra_no confirm for 5 mins":"nessuna conferma per 5 minuti",ra_none:j3e,ra_object_changed_by:z3e,ra_object_changed_by_user:L3e,ra_otherConfig:F3e,ra_qualityCode:B3e,ra_repeat:W3e,ra_select_folder_hint:U3e,ra_show_all:q3e,ra_state_changed_by:H3e,ra_state_changed_from:V3e,ra_timestamp:G3e,ra_tooltip_ack:X3e,ra_tooltip_comment:J3e,ra_tooltip_copyState:Y3e,ra_tooltip_ctrlForLink:K3e,ra_tooltip_customConfig:Z3e,ra_tooltip_deleteObject:Q3e,ra_tooltip_editObject:e4e,ra_tooltip_editState:t4e,ra_tooltip_expire:r4e,ra_tooltip_from:n4e,ra_tooltip_lc:o4e,ra_tooltip_quality:a4e,ra_tooltip_ts:i4e,ra_tooltip_user:s4e,ra_tooltip_value:c4e,ra_true:l4e,"ra_use seconds":"usa i secondi",ra_val:u4e,"ra_via internet":"attraverso internet",ra_warning_every_minute:d4e,ra_warning_every_second:p4e,sc_cron:f4e,sc_date:h4e,sc_dates:m4e,sc_dow:_4e,sc_dows:g4e,sc_every:y4e,sc_everyN_dates:v4e,sc_everyN_dow:b4e,sc_everyN_dows:w4e,sc_everyN_hours:S4e,sc_everyN_minutes:x4e,sc_everyN_months:k4e,sc_everyN_seconds:C4e,sc_every_dates:$4e,sc_every_dow:E4e,sc_every_dows:T4e,sc_every_hours:O4e,sc_every_minutes:D4e,sc_every_months:R4e,sc_every_seconds:M4e,sc_from:A4e,sc_hours:N4e,sc_interval:I4e,sc_intervalBetween:P4e,sc_invalid_cron:j4e,sc_minutes:z4e,sc_months:L4e,sc_once:F4e,sc_period:B4e,sc_seconds:W4e,sc_simple:U4e,sc_specific:q4e,sc_specific_dates:H4e,sc_specific_dow:V4e,sc_specific_dows:G4e,sc_specific_hours:X4e,sc_specific_minutes:J4e,sc_specific_months:Y4e,sc_specific_seconds:K4e,sc_time:Z4e,sc_to:Q4e,sc_wizard:eke,sch_all:tke,sch_astroDay:rke,sch_astroNight:nke,sch_astro_dawn:oke,sch_astro_dusk:ake,sch_astro_goldenHour:ike,sch_astro_goldenHourEnd:ske,sch_astro_nadir:cke,sch_astro_nauticalDawn:lke,sch_astro_nauticalDusk:uke,sch_astro_night:dke,sch_astro_nightEnd:pke,sch_astro_solarNoon:fke,sch_astro_sunrise:hke,sch_astro_sunriseEnd:mke,sch_astro_sunset:_ke,sch_astro_sunsetStart:gke,sch_at:yke,sch_desc_atTime:vke,sch_desc_everyDay:bke,sch_desc_everyHour:wke,sch_desc_everyMinute:Ske,sch_desc_everyMonth:xke,sch_desc_everyNDay:kke,sch_desc_everyNHours:Cke,sch_desc_everyNMinutes:$ke,sch_desc_everyNMonths:Eke,sch_desc_everyNWeeks:Tke,sch_desc_everyNYears:Oke,sch_desc_everyWeek:Dke,sch_desc_everyYear:Rke,sch_desc_intervalFromTo:Mke,sch_desc_never:Ake,sch_desc_onDate:Nke,sch_desc_onDates:Ike,sch_desc_onEveryDate:Pke,sch_desc_onMonth:jke,sch_desc_onMonths:zke,sch_desc_onWeekday:Lke,sch_desc_onWeekdays:Fke,sch_desc_onWeekends:Bke,sch_desc_onWorkdays:Wke,sch_desc_onceInPast:Uke,sch_desc_once_on:qke,sch_desc_validFrom:Hke,sch_desc_validFromTo:Vke,sch_desc_validTo:Gke,sch_every:Xke,sch_exactTime:Jke,sch_from:Yke,sch_fromTo:Kke,sch_intervalTime:Zke,sch_invert:Qke,sch_no_one:eCe,sch_on:tCe,sch_period:rCe,sch_periodDaily:nCe,sch_periodDates:oCe,sch_periodDay:aCe,sch_periodEvery:iCe,sch_periodEveryDay:sCe,sch_periodEveryMonth:cCe,sch_periodEveryWeek:lCe,sch_periodEveryYear:uCe,sch_periodHours:dCe,sch_periodMinutes:pCe,sch_periodMonth:fCe,sch_periodMonthly:hCe,sch_periodOnce:mCe,sch_periodSpecificMonths:_Ce,sch_periodWeek:gCe,sch_periodWeekdays:yCe,sch_periodWeekend:vCe,sch_periodWeekly:bCe,sch_periodWorkdays:wCe,sch_periodYear:SCe,sch_periodYearly:xCe,sch_specificTime:kCe,sch_time:CCe,sch_to:$Ce,sch_valid:ECe,sch_validFrom:TCe,sch_validTo:OCe,sch_wholeDay:DCe,sch_yearEveryMonth:RCe},ACe="Comportamiento",NCe="Adjuntar",ICe="Cancelar",PCe="Categorías",jCe="Comprobado",zCe="Borrar",LCe="Cerca",FCe="Comercial",BCe="Configurar",WCe="Conectado",UCe="Continuar",qCe="Copiado",HCe="Crear",VCe="Cultivo",GCe="Delete",XCe="Eliminar",JCe="Desechar",YCe="Desconectado",KCe="Error",ZCe="Filtrar",QCe="Viernes",e$e="Latitud",t$e="Cerrar sesión",r$e="Longitud",n$e="Mensaje",o$e="Lunes",a$e="Nombre",i$e="Objetos",s$e="Okay",c$e="Producto",l$e="Cambiar nombre/Mover/Copiar",u$e="Repetir",d$e="Reemplazar",p$e="Raíz",f$e="Sábado",h$e="Salvar",m$e="Seleccionado",_$e="Estados",g$e="Domingo",y$e="Jueves",v$e="Marca de tiempo",b$e="Martes",w$e="Actualizar",S$e="Válida hasta",x$e="Valor",k$e="Versión",C$e="Miércoles",$$e="Anchura",E$e="Sí",T$e="diferente",O$e="Todo el mundo puede leer el objeto",D$e="Todos pueden leer el estado",R$e="Todos pueden escribir objetos",M$e="Todos pueden escribir el estado",A$e="El grupo puede leer el objeto",N$e="El grupo puede leer el estado",I$e="El grupo puede escribir un objeto",P$e="El grupo puede escribir el estado",j$e="El propietario puede leer el objeto",z$e="El propietario puede leer el estado",L$e="El propietario puede escribir el objeto",F$e="El propietario puede escribir el estado",B$e="Botones",W$e="Cambiaron desde",U$e="cerrar",q$e="Crear estado booleano",H$e="Crear canal",V$e="Crear dispositivo",G$e="Crear estado numérico",X$e="Crear estado",J$e="Crear estado de cadena",Y$e="d.",K$e="Fr",Z$e="Mes",Q$e="Sa",e6e="Su",t6e="Th",r6e="Tu",n6e="Nosotros",o6e="Modo experto",a6e="FALSO",i6e="Todos los archivos",s6e="Audio",c6e="Código/JSON",l6e="Imágenes",u6e="Texto",d6e="Video",p6e="Configuraciones",f6e="sin",h6e="Función",m6e="ID",_6e="Nombre",g6e="Papel",y6e="Habitación",v6e="Tipo",b6e="Configuraciones inválidas",w6e="Ultimo cambio",S6e="en la zona",x6e="Abr",k6e="Ago",C6e="Dic",$6e="Feb",E6e="Ene",T6e="Jul",O6e="Jun",D6e="Mai",R6e="Mar",M6e="Nov",A6e="Oct",N6e="Sep",I6e="Abr",P6e="Ago",j6e="Dic",z6e="Feb",L6e="Ene",F6e="Jul",B6e="Jun",W6e="Mai",U6e="Mar",q6e="Nov",H6e="Oct",V6e="Sep",G6e="ninguno",X6e="Objeto cambiado por",J6e="Objeto cambiado por última vez a las",Y6e="Configuraciones de otro adaptador %s",K6e="Código de calidad",Z6e="repetir",Q6e='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',eEe="Mostrar todo",tEe="Estado cambiado por",rEe="Objeto cambiado de",nEe="Marca de tiempo",oEe="Bandera reconocida",aEe="Comentario",iEe="Copie el valor del estado",sEe="Mantenga presionada la tecla Cltr/⌘ para abrir el enlace",cEe="Ajustes personalizados",lEe="Eliminar objeto",uEe="Editar objeto",dEe="Edite el valor del estado",pEe="Caduca en",fEe="Desde",hEe="Último cambio",mEe="Calidad",_Ee="Sello de tiempo",gEe="Usuario",yEe="Valor",vEe="VERDADERO",bEe="Valor",wEe="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",SEe="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",xEe="CRON",kEe="Fecha",CEe="fechas",$Ee="Día",EEe="Día de la semana",TEe="Cada",OEe="cada N días",DEe="cada enésimo día de la semana",REe="cada N día de la semana",MEe="cada N horas",AEe="cada N minutos",NEe="cada N meses",IEe="cada N segundos",PEe="cada día",jEe="Cada día de la semana",zEe="Cada día de la semana",LEe="cada hora",FEe="cada minuto",BEe="cada mes",WEe="cada segundo",UEe="De",qEe="Horas",HEe="Intervalo",VEe="Intervalo entre",GEe="CRON no válido",XEe="Minutos",JEe="meses",YEe="Una vez",KEe="Período",ZEe="Segundos",QEe="Sencillo",eTe="Tiempo específico",tTe="fechas especificas",rTe="día(s) específico(s) de la semana",nTe="día específico de semanas",oTe="horas específicas",aTe="minutos específicos",iTe="meses específicos",sTe="segundos específicos",cTe="Hora",lTe="A",uTe="Mago",dTe="todas",pTe="Día astro",fTe="Noche astro",hTe="Amanecer",mTe="Oscuridad",_Te="hora dorada",gTe="Fin de la hora dorada",yTe="Nadir",vTe="Amanecer náutico",bTe="Anochecer náutico",wTe="Noche",STe="Fin de la noche",xTe="Mediodía solar",kTe="amanecer",CTe="Fin del amanecer",$Te="Puesta de sol",ETe="Puesta de sol",TTe="a",OTe="en %s",DTe="cada día",RTe="cada hora",MTe="cada minuto",ATe="cada mes",NTe="cada %s días",ITe="cada %s horas",PTe="cada %s minutos",jTe="cada %s meses",zTe="cada %s semanas",LTe="cada %s años",FTe="cada semana",BTe="todos los años",WTe="de %s a %s",UTe="Nunca",qTe="en %s de %s",HTe="en %s y %s de",VTe="en cada fecha de",GTe="%s",XTe="%s y %s",JTe="en %s",YTe="en %s y %s",KTe="en los fines de semana",ZTe="en días laborables",QTe="ya no se ejecutará más, porque el inicio está en el pasado",e8e="en %s",t8e="de %s",r8e="Ejecutar desde hasta",n8e="a %s",o8e="cada",a8e="Tiempo específico",i8e="de",s8e="De-a",c8e="Tiempo de intervalo",l8e="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",u8e="ninguna",d8e="en",p8e="Período",f8e="Diario",h8e="fechas",m8e="Día",_8e="Cada",g8e="Cada día",y8e="Cada mes",v8e="Cada semana",b8e="Todos los años",w8e="Horas",S8e="Minutos",x8e="mes",k8e="Mensual",C8e="Una vez",$8e="Meses específicos",E8e="Semana",T8e="Días laborables",O8e="Fin de semana",D8e="Semanal",R8e="Días laborables",M8e="Año",A8e="Anual",N8e="Tiempo específico",I8e="Hora",P8e="a",j8e="Válido",z8e="de",L8e="a",F8e="Todo el dia",B8e="cada mes",W8e={"ra_%s links from aliases":"%s enlaces de alias","ra_%s object(s) processed":"%s objeto(s) procesados","ra_%s was imported":"%s fue importado","ra_Accept license":"Aceptar licencia",ra_Actions:ACe,"ra_Add new child object to selected parent":"Agregar nuevo objeto hijo al padre seleccionado","ra_Add objects tree from JSON file":"Agregar árbol de objetos desde el archivo JSON","ra_Add row":"Añadir fila","ra_Advanced options":"Opciones avanzadas","ra_All items are filtered out":"Todos los elementos se filtran","ra_All objects":"Todos los objetos",ra_Append:NCe,"ra_Append %s entries or replace existing?":"¿Agregar %s entradas o reemplazar las existentes?","ra_Append or replace?":"¿Agregar o reemplazar?","ra_Are you sure?":"¿Estás seguro?","ra_Auto (no custom columns)":"Automático (sin columnas personalizadas)","ra_Back to %s":"Volver a %s","ra_Background image":"Imagen de fondo",ra_Cancel:ICe,"ra_Cannot add items with set filter":"No se pueden agregar elementos con el filtro establecido","ra_Cannot decode license":"No se puede decodificar la licencia","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"No se puede determinar la posición: la configuración del sistema está vacía y la detección de GPS está deshabilitada en el navegador",'ra_Cannot find "%s"':'No se puede encontrar "%s"','ra_Cannot read "%s"':'No se puede leer "%s"',"ra_Cannot read licenses: %s":"No se pueden leer licencias: %s","ra_Cannot retrieve options, as instance is offline":"No se pueden recuperar las opciones, ya que la instancia está fuera de línea","ra_Cannot update attribute, because not found in the object":"No se puede actualizar el atributo porque no se encuentra en el objeto","ra_Cannot upload":"no se puede cargar",ra_Categories:PCe,"ra_Chained certificate":"certificado encadenado","ra_Change color theme":"Cambiar tema de color","ra_Changed from":"Cambiaron desde","ra_Channel → State":"Canal → Estado","ra_Check license":"Verificar licencia",ra_Checked:jCe,ra_Clear:zCe,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Click to see in full size":"Haz clic para ver en tamaño completo.","ra_Click to show":"Haga clic para mostrar","ra_Clone current row":"Clonar fila actual",ra_Close:LCe,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:FCe,ra_Configure:BCe,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:WCe,ra_Continue:UCe,ra_Copied:qCe,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:HCe,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:VCe,"ra_Define CRON...":"Definir CRON...","ra_Define functions":"Definir funciones","ra_Define rooms":"Definir habitaciones","ra_Define schedule":"Definir horario","ra_Define schedule...":"Definir horario ...",ra_Del:GCe,ra_Delete:XCe,"ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado","ra_Disable/Enable translation":"Deshabilitar/Habilitar traducción",ra_Discard:JCe,ra_Disconnected:YCe,"ra_Do not ask for next 2 hours in this session":"No preguntes por las siguientes 2 horas en esta sesión.","ra_Do not export values of states":"No exportar valores de estados.","ra_Do not use let's encrypt":"No use vamos a cifrar","ra_Docker is not available":"Docker no está disponible","ra_Docker is not installed or not running":"Docker no está instalado o no se está ejecutando","ra_Double click to reset table layout":"Haga doble clic para restablecer el diseño de la tabla","ra_Drag 'n' drop some files here, or click to select files":"Arrastre y suelte algunos archivos aquí, o haga clic para seleccionar archivos","ra_Drop file here":"Suelta el archivo aquí","ra_Drop the files here...":"Suelta el archivo aquí ...","ra_Duplicate name":"Nombre duplicado","ra_Edit ACL":"Editar LCA","ra_Edit alias":"Editar alias","ra_Edit custom config":"Editar configuración personalizada","ra_Edit full path":"Editar ruta completa","ra_Edit function":"Función de edición","ra_Edit object field":"Editar campo de objeto","ra_Edit role":"Editar rol","ra_Edit room":"Cuarto de edición","ra_Edit value":"Editar valor","ra_Enter the code from that page here":"Introduzca el código de esa página aquí",ra_Error:KCe,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","ra_Expand/Collapse card":"Expandir/Contraer tarjeta","ra_Export configuration section":"Exportar sección de configuración","ra_Export data to %s file":"Exportar datos al archivo %s","ra_Failed to open JSON File":"No se pudo abrir el archivo JSON","ra_Fallback custom certificates":"Certificados personalizados alternativos","ra_File is too big. Max %sk allowed. Try use SVG.":"El archivo es demasiado grande. Máximo de %sk permitido. Intenta usar SVG.",ra_Filter:ZCe,"ra_Filter and Data Actions":"Acciones de filtrado y datos","ra_Filter files":"Filtrar archivos","ra_Folder name":"Nombre de la carpeta","ra_Folder → Channel → State":"Carpeta → Canal → Estado","ra_Folder → Device → Channel → State":"Carpeta → Dispositivo → Canal → Estado","ra_Folder → State":"Carpeta → Estado","ra_Folders always first":"Carpetas siempre primero",ra_Friday:QCe,"ra_From file":"Desde archivo","ra_From text":"Del texto","ra_Get %s access":"Obtener %s acceso","ra_Good luck":"Buena suerte","ra_Hide empty folders":"Ocultar carpetas vacías","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si no se creará ningún archivo en la carpeta, desaparecerá después de que se cierre el navegador.","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Si el botón de arriba no funciona, puedes autorizar manualmente esta aplicación visitando esta URL","ra_Import and add configuration section":"Importar y agregar sección de configuración","ra_Import and replace configuration section":"Importar y reemplazar sección de configuración","ra_Import data from %s file":"Importar datos del archivo %s","ra_Import from %s":"Importar desde %s","ra_Instance %s is alive":"Instancia %s está vivo","ra_Instance %s is not alive":"Instancia %s no está vivo","ra_Instance is not alive":"La instancia no está viva","ra_Invalid CRON":"CRON no válido","ra_Invalid JSON":"JSON no válido","ra_Invalid JSON file.":"Archivo JSON inválido.","ra_Invalid JSON format. Expected an array.":"Formato JSON inválido. Se esperaba un array.","ra_Invalid answer from server":"Respuesta inválida del servidor","ra_Invalid parent folder!":"Carpeta principal no válida.","ra_Invalid structure":"Estructura inválida","ra_JSON editor":"editor JSON","ra_Last change":"Ultimo cambio",ra_Latitude:e$e,"ra_License %s":"Licencia %s","ra_License agreement":"Acuerdo de licencia","ra_License does not exist":"La licencia no existe","ra_License expired on %s":"La licencia venció el %s",'ra_License for other product "%s"':'Licencia para otro producto "%s"',"ra_License is for version %s, but required version is %s.":"La licencia es para la versión %s, pero la versión requerida es %s.","ra_License must be converted":"La licencia debe convertirse a una versión más reciente. Puedes hacerlo en tu perfil de iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licencia no encontrada en el administrador de licencias. ¿Quieres actualizar las licencias de iobroker.net?","ra_Listen on all IPs":"Escuche en todas las IP","ra_Load configuration from file":"Cargar configuración desde archivo",ra_Logout:t$e,ra_Longitude:r$e,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:n$e,ra_Monday:o$e,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:a$e,"ra_No data found in file":"No se encontraron datos en el archivo","ra_No one license found in license manager":"No se encontró ninguna licencia en el administrador de licencias","ra_No response from admin":"No hay respuesta del administrador","ra_No response from the backend":"No hay respuesta del backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Los no expertos pueden crear nuevos objetos solo en "0_userdata.0" o "alias.0".',"ra_Not a number":"No un número","ra_OAuth Client ID":"ID de cliente OAuth","ra_OAuth Client secret":"Secreto de cliente OAuth",ra_Objects:i$e,ra_Ok:s$e,"ra_On weekdays":"De lunes a viernes","ra_Only following structures of objects are available:":"Solo están disponibles las siguientes estructuras de objetos:","ra_Only selected":"Solo seleccionados","ra_Owner group":"Grupo propietario","ra_Owner user":"Usuario propietario","ra_Passwords are not equal!":"¡Las contraseñas no son iguales!","ra_Place your files here or click here to open the browse dialog":"Coloque sus archivos aquí o haga clic aquí para abrir el cuadro de diálogo de exploración","ra_Please allow popups in your browser for this page!":"¡Permita ventanas emergentes en su navegador para esta página!","ra_Please confirm":"Por favor confirmar","ra_Please create license":"Por favor cree una licencia","ra_Please enter the license":"Por favor ingrese la licencia","ra_Please select file...":"Seleccione el archivo...","ra_Please select object ID...":"Por favor seleccione ID de objeto ...","ra_Port could be used by %s":"El puerto podría ser utilizado por %s","ra_Port is already used by %s":"El puerto ya está en uso por %s","ra_Press ENTER Key to add new item":"Presione la tecla ENTER para agregar un nuevo elemento","ra_Private certificate":"certificado privado",ra_Product:c$e,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Rename_Move_Copy:l$e,"ra_Renew %s access":"Renovar el acceso a %s",ra_Repeat:u$e,ra_Replace:d$e,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:p$e,ra_Saturday:f$e,ra_Save:h$e,"ra_Save and close":"Guardar y cerrar","ra_Save configuration to file":"Guardar configuración en archivo","ra_Save objects tree as JSON file":"Guardar el árbol de objetos como archivo JSON","ra_Select all":"Seleccionar todo","ra_Select color":"Seleccionar el color","ra_Select predefined icon":"Seleccionar icono predefinido","ra_Select type of export":"Seleccione tipo de exportación",ra_Selected:m$e,"ra_Selected %s object(s)":"%s objetos seleccionados","ra_Serial number (UUID)":"Número de serie (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'El número de serie (UUID) "%s" en la licencia es para otro dispositivo.',"ra_Session will expire in %s seconds. Continue?":"La sesión expirará en %s segundos. ¿Continuar?","ra_Show all folders":"Mostrar todas las carpetas","ra_Show lines between rows":"Mostrar líneas entre filas","ra_Show/Hide object descriptions":"Mostrar/ocultar descripciones de objetos","ra_Show/hide filter input":"Mostrar/ocultar entrada de filtro","ra_Some data are not stored. Discard?":"Algunos datos no se almacenan. ¿Desechar?",ra_States:_$e,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Autorizado correctamente. El token es válido hasta el %s y se renovará automáticamente.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Autorizado correctamente. El token es válido hasta %s, pero puede caducar porque la instancia no está en ejecución.","ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:g$e,"ra_Suppress question for next %s minutes":"Suprimir pregunta durante los próximos %s minutos","ra_System language":"Lenguaje del sistema","ra_Take browser position":"Tomar posición desde el navegador","ra_Take position from system settings":"Tomar posición desde la configuración del sistema",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Los expertos pueden crear objetos en todas partes excepto desde el segundo nivel (por ejemplo, "vis.0" o "javascript.0").',"ra_The page you are looking for was not found":"No se encontró la página que busca","ra_The schedule will be executed every minute. Are you sure?":"El cronograma se ejecutará cada minuto. ¿Estás seguro?","ra_The schedule will be executed every second. Are you sure?":"El cronograma se ejecutará cada segundo. ¿Estás seguro?",ra_Thursday:y$e,ra_Timestamp:v$e,"ra_Toggle expert mode":"Alternar modo experto","ra_Toggle the states view":"Alternar la vista de estados","ra_Toggle view mode":"Alternar modo de vista","ra_Too big":"Demasiado grande","ra_Too small":"Demasiado pequeña","ra_Transparent dialog":"Diálogo transparente",ra_Tuesday:b$e,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:w$e,"ra_Upload file":"Subir archivo","ra_Use all available let's encrypt certificates":"Utilice todos los certificados let's encrypt disponibles","ra_Use iobroker.acme adapter for letsencrypt certificates":"Use el adaptador iobroker.acme para los certificados de letsencrypt","ra_Use system settings for position":"Usar la configuración del sistema para la posición","ra_Used system settings":"Configuraciones del sistema usadas","ra_User files":"Archivos de usuario",ra_ValidTill:S$e,ra_Value:x$e,ra_Version:k$e,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:C$e,ra_Width:$$e,"ra_YAML editor":"Editor YAML",ra_Yes:E$e,"ra_You can export all objects or just the selected branch.":"Puede exportar todos los objetos o solo la rama seleccionada.","ra_You can filter entries by entering here some text":"Puede filtrar las entradas ingresando aquí algún texto","ra_You can use * as wildcard":"Puedes utilizar * como comodín",ra___different__:T$e,ra_aclEveryone_read_object:O$e,ra_aclEveryone_read_state:D$e,ra_aclEveryone_write_object:R$e,ra_aclEveryone_write_state:M$e,ra_aclGroup_read_object:A$e,ra_aclGroup_read_state:N$e,ra_aclGroup_write_object:I$e,ra_aclGroup_write_state:P$e,ra_aclOwner_read_object:j$e,ra_aclOwner_read_state:z$e,ra_aclOwner_write_object:L$e,ra_aclOwner_write_state:F$e,ra_buttons:B$e,ra_changedFrom:W$e,ra_close:U$e,ra_create_boolean_state:q$e,ra_create_channel:H$e,ra_create_device:V$e,ra_create_number_state:G$e,ra_create_state:X$e,ra_create_string_state:J$e,ra_daysShortText:Y$e,ra_dow_Fr:K$e,ra_dow_Mo:Z$e,ra_dow_Sa:Q$e,ra_dow_Su:e6e,ra_dow_Th:t6e,ra_dow_Tu:r6e,ra_dow_We:n6e,ra_expertMode:o6e,ra_false:a6e,ra_fileType_all:i6e,ra_fileType_audio:s6e,ra_fileType_code:c6e,ra_fileType_images:l6e,ra_fileType_txt:u6e,ra_fileType_video:d6e,"ra_fileType_video,":"Video",ra_filter_customs:p6e,ra_filter_customs_without:f6e,ra_filter_func:h6e,ra_filter_id:m6e,ra_filter_name:_6e,ra_filter_role:g6e,ra_filter_room:y6e,ra_filter_type:v6e,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:b6e,ra_lastChange:w6e,ra_locally:S6e,ra_month_Apr:x6e,ra_month_Aug:k6e,ra_month_Dec:C6e,ra_month_Feb:$6e,ra_month_Jan:E6e,ra_month_Jul:T6e,ra_month_Jun:O6e,ra_month_Mai:D6e,ra_month_Mar:R6e,ra_month_Nov:M6e,ra_month_Oct:A6e,ra_month_Sep:N6e,ra_months_Apr:I6e,ra_months_Aug:P6e,ra_months_Dec:j6e,ra_months_Feb:z6e,ra_months_Jan:L6e,ra_months_Jul:F6e,ra_months_Jun:B6e,ra_months_Mai:W6e,ra_months_Mar:U6e,ra_months_Nov:q6e,ra_months_Oct:H6e,ra_months_Sep:V6e,"ra_no confirm for 5 mins":"Sin confirmación durante 5 minutos",ra_none:G6e,ra_object_changed_by:X6e,ra_object_changed_by_user:J6e,ra_otherConfig:Y6e,ra_qualityCode:K6e,ra_repeat:Z6e,ra_select_folder_hint:Q6e,ra_show_all:eEe,ra_state_changed_by:tEe,ra_state_changed_from:rEe,ra_timestamp:nEe,ra_tooltip_ack:oEe,ra_tooltip_comment:aEe,ra_tooltip_copyState:iEe,ra_tooltip_ctrlForLink:sEe,ra_tooltip_customConfig:cEe,ra_tooltip_deleteObject:lEe,ra_tooltip_editObject:uEe,ra_tooltip_editState:dEe,ra_tooltip_expire:pEe,ra_tooltip_from:fEe,ra_tooltip_lc:hEe,ra_tooltip_quality:mEe,ra_tooltip_ts:_Ee,ra_tooltip_user:gEe,ra_tooltip_value:yEe,ra_true:vEe,"ra_use seconds":"usar segundos",ra_val:bEe,"ra_via internet":"vía Internet",ra_warning_every_minute:wEe,ra_warning_every_second:SEe,sc_cron:xEe,sc_date:kEe,sc_dates:CEe,sc_dow:$Ee,sc_dows:EEe,sc_every:TEe,sc_everyN_dates:OEe,sc_everyN_dow:DEe,sc_everyN_dows:REe,sc_everyN_hours:MEe,sc_everyN_minutes:AEe,sc_everyN_months:NEe,sc_everyN_seconds:IEe,sc_every_dates:PEe,sc_every_dow:jEe,sc_every_dows:zEe,sc_every_hours:LEe,sc_every_minutes:FEe,sc_every_months:BEe,sc_every_seconds:WEe,sc_from:UEe,sc_hours:qEe,sc_interval:HEe,sc_intervalBetween:VEe,sc_invalid_cron:GEe,sc_minutes:XEe,sc_months:JEe,sc_once:YEe,sc_period:KEe,sc_seconds:ZEe,sc_simple:QEe,sc_specific:eTe,sc_specific_dates:tTe,sc_specific_dow:rTe,sc_specific_dows:nTe,sc_specific_hours:oTe,sc_specific_minutes:aTe,sc_specific_months:iTe,sc_specific_seconds:sTe,sc_time:cTe,sc_to:lTe,sc_wizard:uTe,sch_all:dTe,sch_astroDay:pTe,sch_astroNight:fTe,sch_astro_dawn:hTe,sch_astro_dusk:mTe,sch_astro_goldenHour:_Te,sch_astro_goldenHourEnd:gTe,sch_astro_nadir:yTe,sch_astro_nauticalDawn:vTe,sch_astro_nauticalDusk:bTe,sch_astro_night:wTe,sch_astro_nightEnd:STe,sch_astro_solarNoon:xTe,sch_astro_sunrise:kTe,sch_astro_sunriseEnd:CTe,sch_astro_sunset:$Te,sch_astro_sunsetStart:ETe,sch_at:TTe,sch_desc_atTime:OTe,sch_desc_everyDay:DTe,sch_desc_everyHour:RTe,sch_desc_everyMinute:MTe,sch_desc_everyMonth:ATe,sch_desc_everyNDay:NTe,sch_desc_everyNHours:ITe,sch_desc_everyNMinutes:PTe,sch_desc_everyNMonths:jTe,sch_desc_everyNWeeks:zTe,sch_desc_everyNYears:LTe,sch_desc_everyWeek:FTe,sch_desc_everyYear:BTe,sch_desc_intervalFromTo:WTe,sch_desc_never:UTe,sch_desc_onDate:qTe,sch_desc_onDates:HTe,sch_desc_onEveryDate:VTe,sch_desc_onMonth:GTe,sch_desc_onMonths:XTe,sch_desc_onWeekday:JTe,sch_desc_onWeekdays:YTe,sch_desc_onWeekends:KTe,sch_desc_onWorkdays:ZTe,sch_desc_onceInPast:QTe,sch_desc_once_on:e8e,sch_desc_validFrom:t8e,sch_desc_validFromTo:r8e,sch_desc_validTo:n8e,sch_every:o8e,sch_exactTime:a8e,sch_from:i8e,sch_fromTo:s8e,sch_intervalTime:c8e,sch_invert:l8e,sch_no_one:u8e,sch_on:d8e,sch_period:p8e,sch_periodDaily:f8e,sch_periodDates:h8e,sch_periodDay:m8e,sch_periodEvery:_8e,sch_periodEveryDay:g8e,sch_periodEveryMonth:y8e,sch_periodEveryWeek:v8e,sch_periodEveryYear:b8e,sch_periodHours:w8e,sch_periodMinutes:S8e,sch_periodMonth:x8e,sch_periodMonthly:k8e,sch_periodOnce:C8e,sch_periodSpecificMonths:$8e,sch_periodWeek:E8e,sch_periodWeekdays:T8e,sch_periodWeekend:O8e,sch_periodWeekly:D8e,sch_periodWorkdays:R8e,sch_periodYear:M8e,sch_periodYearly:A8e,sch_specificTime:N8e,sch_time:I8e,sch_to:P8e,sch_valid:j8e,sch_validFrom:z8e,sch_validTo:L8e,sch_wholeDay:F8e,sch_yearEveryMonth:B8e},U8e="Akcje",q8e="Dodać",H8e="Anuluj",V8e="Kategorie",G8e="Sprawdzony",X8e="Kasować",J8e="Blisko",Y8e="Handlowy",K8e="Konfiguruj",Z8e="Połączony",Q8e="Kontynuować",e9e="Skopiowano",t9e="Stwórz",r9e="Przyciąć",n9e="Delete",o9e="Usunąć",a9e="Wyrzucać",i9e="Niepowiązany",s9e="Błąd",c9e="Filtr",l9e="Piątek",u9e="Szerokość",d9e="Wyloguj",p9e="Długość geograficzna",f9e="Wiadomość",h9e="Poniedziałek",m9e="Nazwa",_9e="Obiekty",g9e="Dobrze",y9e="Produkt",v9e="Zmień nazwę/Przenieś/Kopiuj",b9e="Powtarzać",w9e="Zastępować",S9e="Korzeń",x9e="Sobota",k9e="Zapisać",C9e="Wybrany",$9e="Stany",E9e="Niedziela",T9e="Czwartek",O9e="Znak czasu",D9e="Wtorek",R9e="Aktualizacja",M9e="Obowiązuje do",A9e="Wartość",N9e="Wersja",I9e="Środa",P9e="Szerokość",j9e="Tak",z9e="różne",L9e="Każdy może czytać obiekt",F9e="Każdy może czytać stan",B9e="Każdy może pisać przedmiot",W9e="Każdy może pisać stan",U9e="Grupa może odczytać obiekt",q9e="Grupa może odczytać stan",H9e="Grupa może pisać obiekt",V9e="Grupa może pisać stan",G9e="Właściciel może czytać obiekt",X9e="Właściciel może odczytać stan",J9e="Właściciel może napisać obiekt",Y9e="Właściciel może pisać stan",K9e="guziki",Z9e="Zmieniony z",Q9e="blisko",e7e="Utwórz stan logiczny",t7e="Utwórz kanał",r7e="Utwórz urządzenie",n7e="Utwórz stan liczbowy",o7e="Utwórz stan",a7e="Utwórz stan ciągu",i7e="d.",s7e="Ks",c7e="Mo",l7e="Sa",u7e="Su",d7e="Th",p7e="Tu",f7e="My",h7e="Tryb ekspercki",m7e="FAŁSZ",_7e="Wszystkie pliki",g7e="Audio",y7e="Kod/JSON",v7e="Obrazy",b7e="Tekst",w7e="Wideo",S7e="Ustawienia",x7e="bez",k7e="Funkcjonować",C7e="ID",$7e="Imię",E7e="Rola",T7e="Sala",O7e="Rodzaj",D7e="Nieprawidłowe ustawienia",R7e="Ostatnia zmiana",M7e="lokalnie",A7e="kwiecień",N7e="sierpień",I7e="grudzień",P7e="luty",j7e="styczeń",z7e="lipiec",L7e="czerwiec",F7e="Mai",B7e="Zniszczyć",W7e="listopad",U7e="październik",q7e="wrzesień",H7e="kwiecień",V7e="sierpień",G7e="grudzień",X7e="luty",J7e="styczeń",Y7e="lipiec",K7e="czerwiec",Z7e="Mai",Q7e="Zniszczyć",eOe="listopad",tOe="październik",rOe="wrzesień",nOe="Żaden",oOe="Obiekt zmieniony przez",aOe="Obiekt ostatnio zmieniony o godz",iOe="Ustawienia z innego adaptera %s",sOe="Kod jakości",cOe="powtarzać",lOe="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",uOe="Pokaż wszystko",dOe="Stan zmieniony przez",pOe="Obiekt zmieniony z",fOe="Znak czasu",hOe="Potwierdzon",mOe="Komentarz",_Oe="Skopiuj wartość stanu",gOe="Przytrzymaj klawisz CTRL/⌘, aby otworzyć link",yOe="Własne ustawienia",vOe="Usuń obiekt",bOe="Edytuj obiekt",wOe="Edytuj wartość stanu",SOe="Wygasa za",xOe="Z",kOe="Ostatnia zmiana",COe="Jakość",$Oe="Znak czasu",EOe="Użytkownik",TOe="Wartość",OOe="PRAWDA",DOe="Wartość",ROe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",MOe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",AOe="CRON",NOe="Data",IOe="Daktyle",POe="Dzień",jOe="Dzień tygodnia",zOe="Każdy",LOe="co N dni",FOe="w każdy N-ty dzień tygodnia",BOe="co N dnia tygodnia",WOe="co N godzin",UOe="co N minut",qOe="co N miesięcy",HOe="co N sekund",VOe="codziennie",GOe="każdy dzień tygodnia",XOe="każdy dzień tygodnia",JOe="co godzinę",YOe="każda minuta",KOe="każdego miesiąca",ZOe="każda sekunda",QOe="Od",eDe="godziny",tDe="Interwał",rDe="Interwał między",nDe="Nieprawidłowy CRON",oDe="Minuty",aDe="miesięcy",iDe="Pewnego razu",sDe="Kropka",cDe="sekundy",lDe="Prosty",uDe="Określony czas",dDe="konkretne daty",pDe="określone dni tygodnia",fDe="określony dzień tygodni",hDe="określone godziny",mDe="określone minuty",_De="określone miesiące",gDe="określone sekundy",yDe="Czas",vDe="Do",bDe="Czarodziej",wDe="wszystko",SDe="Dzień Astro",xDe="Noc Astro",kDe="Świt",CDe="Zmierzch",$De="Złota godzina",EDe="Koniec złotej godziny",TDe="Północ",ODe="Morski świt",DDe="Morski zmierzch",RDe="Noc",MDe="Koniec nocy",ADe="Południe słoneczne",NDe="Wschód słońca",IDe="Koniec wschodu słońca",PDe="Zachód słońca",jDe="Początek zachodu słońca",zDe="w",LDe="na %s",FDe="codziennie",BDe="co godzinę",WDe="każda minuta",UDe="każdego miesiąca",qDe="każdego dnia %s",HDe="co %s godzin",VDe="co %s minut",GDe="co %s miesięcy",XDe="co %s tygodni",JDe="co %s lat",YDe="co tydzień",KDe="każdego roku",ZDe="od %s do %s",QDe="nigdy",eRe="na %s z %s",tRe="na %s i %s z",rRe="w każdą datę",nRe="%s",oRe="%s i %s",aRe="na %s",iRe="na %s i %s",sRe="w weekendy",cRe="w dni robocze",lRe="nie będzie już wykonywany, ponieważ start jest w przeszłości",uRe="na %s",dRe="z %s",pRe="Wykonaj od do",fRe="do %s",hRe="każdy",mRe="Określony czas",_Re="od",gRe="Od-do",yRe="Czas przerwy",vRe="odwracać",bRe="Żaden",wRe="na",SRe="Kropka",xRe="Codziennie",kRe="Daktyle",CRe="Dzień",$Re="Każdy",ERe="Codziennie",TRe="Każdego miesiąca",ORe="Co tydzień",DRe="Każdego roku",RRe="godziny",MRe="Minuty",ARe="miesiąc",NRe="Miesięczny",IRe="Pewnego razu",PRe="Określone miesiące",jRe="Tydzień",zRe="Dni powszednie",LRe="Weekend",FRe="Co tydzień",BRe="Dni robocze",WRe="Rok",URe="Rocznie",qRe="Określony czas",HRe="Czas",VRe="do",GRe="Ważny",XRe="od",JRe="do",YRe="Cały dzień",KRe="każdego miesiąca",ZRe={"ra_%s links from aliases":"%s linków z aliasów","ra_%s object(s) processed":"Przetworzono %s obiektów","ra_%s was imported":"%s został zaimportowany","ra_Accept license":"Zaakceptuj licencję",ra_Actions:U8e,"ra_Add new child object to selected parent":"Dodaj nowy obiekt potomny do wybranego rodzica","ra_Add objects tree from JSON file":"Dodaj drzewo obiektów z pliku JSON","ra_Add row":"Dodaj wiersz","ra_Advanced options":"Zaawansowane opcje","ra_All items are filtered out":"Wszystkie pozycje są odfiltrowane","ra_All objects":"Wszystkie obiekty",ra_Append:q8e,"ra_Append %s entries or replace existing?":"Dołączyć wpisy %s czy zastąpić istniejące?","ra_Append or replace?":"Dołączyć czy zastąpić?","ra_Are you sure?":"Jesteś pewny?","ra_Auto (no custom columns)":"Auto (bez kolumn niestandardowych)","ra_Back to %s":"Powrót do %s","ra_Background image":"Zdjęcie w tle",ra_Cancel:H8e,"ra_Cannot add items with set filter":"Nie można dodać elementów z ustawionym filtrem","ra_Cannot decode license":"Nie można zdekodować licencji","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Nie można określić pozycji: ustawienia systemu są puste, a wykrywanie GPS jest wyłączone w przeglądarce",'ra_Cannot find "%s"':"Nie można znaleźć „%s”",'ra_Cannot read "%s"':"Nie można odczytać „%s”","ra_Cannot read licenses: %s":"Nie można odczytać licencji: %s","ra_Cannot retrieve options, as instance is offline":"Nie można pobrać opcji, ponieważ instancja jest w trybie offline","ra_Cannot update attribute, because not found in the object":"Nie można zaktualizować atrybutu, ponieważ nie znaleziono go w obiekcie","ra_Cannot upload":"Nie można przesłać",ra_Categories:V8e,"ra_Chained certificate":"Certyfikat łańcuchowy","ra_Change color theme":"Zmień motyw kolorystyczny","ra_Changed from":"Zmieniony z","ra_Channel → State":"Kanał → Stan","ra_Check license":"Sprawdź licencję",ra_Checked:G8e,ra_Clear:X8e,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Click to see in full size":"Kliknij, aby zobaczyć w pełnym rozmiarze","ra_Click to show":"Kliknij, aby pokazać","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:J8e,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:Y8e,ra_Configure:K8e,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:Z8e,ra_Continue:Q8e,ra_Copied:e9e,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:t9e,"ra_Create alias":"Utwórz alias","ra_Create folder":"Utwórz folder","ra_Create new folder in %s":"Utwórz nowy folder w %s",ra_Crop:r9e,"ra_Define CRON...":"Zdefiniuj CRON...","ra_Define functions":"Zdefiniuj funkcje","ra_Define rooms":"Zdefiniuj pokoje","ra_Define schedule":"Zdefiniuj harmonogram","ra_Define schedule...":"Zdefiniuj harmonogram ...",ra_Del:n9e,ra_Delete:o9e,"ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan","ra_Disable/Enable translation":"Wyłącz/Włącz tłumaczenie",ra_Discard:a9e,ra_Disconnected:i9e,"ra_Do not ask for next 2 hours in this session":"Nie proś o kolejne 2 godziny w tej sesji","ra_Do not export values of states":"Nie eksportuj wartości stanów","ra_Do not use let's encrypt":"Nie używaj zaszyfrujmy","ra_Docker is not available":"Docker nie jest dostępny","ra_Docker is not installed or not running":"Docker nie jest zainstalowany lub nie działa","ra_Double click to reset table layout":"Kliknij dwukrotnie, aby zresetować układ tabeli","ra_Drag 'n' drop some files here, or click to select files":"Przeciągnij i upuść kilka plików tutaj lub kliknij, aby wybrać pliki","ra_Drop file here":"Upuść plik tutaj","ra_Drop the files here...":"Upuść plik tutaj...","ra_Duplicate name":"Zduplikowana nazwa","ra_Edit ACL":"Edytuj listy ACL","ra_Edit alias":"Edytuj alias","ra_Edit custom config":"Edytuj konfigurację niestandardową","ra_Edit full path":"Edytuj pełną ścieżkę","ra_Edit function":"Funkcja edycji","ra_Edit object field":"Edytuj pole obiektu","ra_Edit role":"Edytuj rolę","ra_Edit room":"Edytuj pokój","ra_Edit value":"Edytuj wartość","ra_Enter the code from that page here":"Wpisz kod z tej strony tutaj",ra_Error:s9e,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","ra_Expand/Collapse card":"Rozwiń/Zwiń kartę","ra_Export configuration section":"Sekcja konfiguracji eksportu","ra_Export data to %s file":"Eksportuj dane do pliku %s","ra_Failed to open JSON File":"Nie udało się otworzyć pliku JSON","ra_Fallback custom certificates":"Niestandardowe certyfikaty zastępcze","ra_File is too big. Max %sk allowed. Try use SVG.":"Plik jest za duży. Maksymalna dozwolona liczba %sk. Spróbuj użyć SVG.",ra_Filter:c9e,"ra_Filter and Data Actions":"Akcje filtrów i danych","ra_Filter files":"Filtruj pliki","ra_Folder name":"Nazwa folderu","ra_Folder → Channel → State":"Folder → Kanał → Stan","ra_Folder → Device → Channel → State":"Folder → Urządzenie → Kanał → Stan","ra_Folder → State":"Folder → Stan","ra_Folders always first":"Foldery zawsze na pierwszym miejscu",ra_Friday:l9e,"ra_From file":"Z pliku","ra_From text":"Z tekstu","ra_Get %s access":"Uzyskaj dostęp %s","ra_Good luck":"Powodzenia","ra_Hide empty folders":"Ukryj puste foldery","ra_If no file will be created in the folder, it will disappear after the browser closed":"Jeśli w folderze nie zostanie utworzony żaden plik, zniknie on po zamknięciu przeglądarki","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Jeśli przycisk powyżej nie działa, możesz autoryzować tę aplikację ręcznie, odwiedzając ten adres URL","ra_Import and add configuration section":"Importuj i dodaj sekcję konfiguracji","ra_Import and replace configuration section":"Importuj i zastąp sekcję konfiguracji","ra_Import data from %s file":"Importuj dane z pliku %s","ra_Import from %s":"Importuj z %s","ra_Instance %s is alive":"Instancja %s jest aktywna","ra_Instance %s is not alive":"Instancja TEKST nie jest aktywna","ra_Instance is not alive":"Instancja nie jest aktywna","ra_Invalid CRON":"Nieprawidłowy CRON","ra_Invalid JSON":"Nieprawidłowy JSON","ra_Invalid JSON file.":"Nieprawidłowy plik JSON.","ra_Invalid JSON format. Expected an array.":"Nieprawidłowy format JSON. Oczekiwano tablicy.","ra_Invalid answer from server":"Nieprawidłowa odpowiedź z serwera","ra_Invalid parent folder!":"Nieprawidłowy folder nadrzędny!","ra_Invalid structure":"Nieprawidłowa struktura","ra_JSON editor":"Edytor JSON","ra_Last change":"Ostatnia zmiana",ra_Latitude:u9e,"ra_License %s":"Licencja %s","ra_License agreement":"Umowa licencyjna","ra_License does not exist":"Licencja nie istnieje","ra_License expired on %s":"Licencja wygasła w dniu %s",'ra_License for other product "%s"':"Licencja na inny produkt „%s”","ra_License is for version %s, but required version is %s.":"Licencja dotyczy wersji %s, ale wymagana wersja to %s.","ra_License must be converted":"Licencja musi zostać przekonwertowana na nowszą wersję. Możesz to zrobić w swoim profilu iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Nie znaleziono licencji w menedżerze licencji. Chcesz zaktualizować licencje z iobroker.net?","ra_Listen on all IPs":"Słuchaj na wszystkich adresach IP","ra_Load configuration from file":"Załaduj konfigurację z pliku",ra_Logout:d9e,ra_Longitude:p9e,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:f9e,ra_Monday:h9e,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:m9e,"ra_No data found in file":"Nie znaleziono danych w pliku","ra_No one license found in license manager":"Nie znaleziono licencji w menedżerze licencji","ra_No response from admin":"Brak odpowiedzi od administratora","ra_No response from the backend":"Brak odpowiedzi z zaplecza",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Osoby nie będące ekspertami mogą tworzyć nowe obiekty tylko w „0_userdata.0” lub „alias.0”.","ra_Not a number":"Nie numer","ra_OAuth Client ID":"Identyfikator klienta OAuth","ra_OAuth Client secret":"Tajny klucz klienta OAuth",ra_Objects:_9e,ra_Ok:g9e,"ra_On weekdays":"W dni powszednie","ra_Only following structures of objects are available:":"Dostępne są tylko następujące struktury obiektów:","ra_Only selected":"Tylko wybrane","ra_Owner group":"Grupa właścicieli","ra_Owner user":"Właściciel użytkownika","ra_Passwords are not equal!":"Hasła nie są równe!","ra_Place your files here or click here to open the browse dialog":"Umieść swoje pliki tutaj lub kliknij tutaj, aby otworzyć okno dialogowe przeglądania","ra_Please allow popups in your browser for this page!":"Proszę zezwolić na wyświetlanie wyskakujących okienek w przeglądarce dla tej strony!","ra_Please confirm":"Proszę potwierdzić","ra_Please create license":"Utwórz licencję","ra_Please enter the license":"Proszę wprowadzić licencję","ra_Please select file...":"Wybierz plik...","ra_Please select object ID...":"Wybierz identyfikator obiektu ...","ra_Port could be used by %s":"Port może być używany przez %s","ra_Port is already used by %s":"Port jest już używany przez %s","ra_Press ENTER Key to add new item":"Naciśnij klawisz ENTER, aby dodać nowy element","ra_Private certificate":"Prywatny certyfikat",ra_Product:y9e,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Rename_Move_Copy:v9e,"ra_Renew %s access":"Odnów dostęp %s",ra_Repeat:b9e,ra_Replace:w9e,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:S9e,ra_Saturday:x9e,ra_Save:k9e,"ra_Save and close":"Zapisz i zamknij","ra_Save configuration to file":"Zapisz konfigurację do pliku","ra_Save objects tree as JSON file":"Zapisz drzewo obiektów jako plik JSON","ra_Select all":"Zaznacz wszystko","ra_Select color":"Wybierz kolor","ra_Select predefined icon":"Wybierz predefiniowaną ikonę","ra_Select type of export":"Wybierz rodzaj eksportu",ra_Selected:C9e,"ra_Selected %s object(s)":"Wybrane obiekty %s","ra_Serial number (UUID)":"Numer seryjny (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':"Numer seryjny (UUID) „%s” w licencji dotyczy innego urządzenia.","ra_Session will expire in %s seconds. Continue?":"Sesja wygaśnie za %s sekund. Kontynuować?","ra_Show all folders":"Pokaż wszystkie foldery","ra_Show lines between rows":"Pokaż linie między rzędami","ra_Show/Hide object descriptions":"Pokaż/ukryj opisy obiektów","ra_Show/hide filter input":"Pokaż/ukryj wejście filtra","ra_Some data are not stored. Discard?":"Niektóre dane nie są przechowywane. Wyrzucać?",ra_States:$9e,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Pomyślnie autoryzowano. Token ważny do %s i zostanie automatycznie odnowiony.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Pomyślnie autoryzowano. Token ważny do %s, ale może wygasnąć, ponieważ instancja nie jest uruchomiona.","ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:E9e,"ra_Suppress question for next %s minutes":"Ukryj pytanie przez następne %s minut","ra_System language":"Język systemu","ra_Take browser position":"Zajmij pozycję z przeglądarki","ra_Take position from system settings":"Zajmij pozycję z ustawień systemowych",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Eksperci mogą tworzyć obiekty wszędzie poza drugim poziomem (np. „Vis.0” lub „javascript.0”).","ra_The page you are looking for was not found":"Strona, której szukasz nie została znaleziona","ra_The schedule will be executed every minute. Are you sure?":"Harmonogram będzie wykonywany co minutę. Czy jesteś pewien?","ra_The schedule will be executed every second. Are you sure?":"Harmonogram będzie wykonywany co sekundę. Czy jesteś pewien?",ra_Thursday:T9e,ra_Timestamp:O9e,"ra_Toggle expert mode":"Przełącz tryb eksperta","ra_Toggle the states view":"Przełącz widok stanów","ra_Toggle view mode":"Przełącz tryb widoku","ra_Too big":"Za duży","ra_Too small":"Za mały","ra_Transparent dialog":"Przejrzyste okno dialogowe",ra_Tuesday:D9e,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:R9e,"ra_Upload file":"Przesyłanie pliku","ra_Use all available let's encrypt certificates":"Użyj wszystkich dostępnych certyfikatów Let's Encrypt","ra_Use iobroker.acme adapter for letsencrypt certificates":"Użyj adaptera iobroker.acme dla certyfikatów letsencrypt","ra_Use system settings for position":"Użyj ustawień systemowych dla pozycji","ra_Used system settings":"Używane ustawienia systemowe","ra_User files":"Pliki użytkownika",ra_ValidTill:M9e,ra_Value:A9e,ra_Version:N9e,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:I9e,ra_Width:P9e,"ra_YAML editor":"Edytor YAML",ra_Yes:j9e,"ra_You can export all objects or just the selected branch.":"Możesz wyeksportować wszystkie obiekty lub tylko wybraną gałąź.","ra_You can filter entries by entering here some text":"Możesz filtrować wpisy, wpisując tutaj jakiś tekst","ra_You can use * as wildcard":"Możesz użyć * jako symbolu wieloznacznego",ra___different__:z9e,ra_aclEveryone_read_object:L9e,ra_aclEveryone_read_state:F9e,ra_aclEveryone_write_object:B9e,ra_aclEveryone_write_state:W9e,ra_aclGroup_read_object:U9e,ra_aclGroup_read_state:q9e,ra_aclGroup_write_object:H9e,ra_aclGroup_write_state:V9e,ra_aclOwner_read_object:G9e,ra_aclOwner_read_state:X9e,ra_aclOwner_write_object:J9e,ra_aclOwner_write_state:Y9e,ra_buttons:K9e,ra_changedFrom:Z9e,ra_close:Q9e,ra_create_boolean_state:e7e,ra_create_channel:t7e,ra_create_device:r7e,ra_create_number_state:n7e,ra_create_state:o7e,ra_create_string_state:a7e,ra_daysShortText:i7e,ra_dow_Fr:s7e,ra_dow_Mo:c7e,ra_dow_Sa:l7e,ra_dow_Su:u7e,ra_dow_Th:d7e,ra_dow_Tu:p7e,ra_dow_We:f7e,ra_expertMode:h7e,ra_false:m7e,ra_fileType_all:_7e,ra_fileType_audio:g7e,ra_fileType_code:y7e,ra_fileType_images:v7e,ra_fileType_txt:b7e,ra_fileType_video:w7e,"ra_fileType_video,":"Wideo",ra_filter_customs:S7e,ra_filter_customs_without:x7e,ra_filter_func:k7e,ra_filter_id:C7e,ra_filter_name:$7e,ra_filter_role:E7e,ra_filter_room:T7e,ra_filter_type:O7e,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:D7e,ra_lastChange:R7e,ra_locally:M7e,ra_month_Apr:A7e,ra_month_Aug:N7e,ra_month_Dec:I7e,ra_month_Feb:P7e,ra_month_Jan:j7e,ra_month_Jul:z7e,ra_month_Jun:L7e,ra_month_Mai:F7e,ra_month_Mar:B7e,ra_month_Nov:W7e,ra_month_Oct:U7e,ra_month_Sep:q7e,ra_months_Apr:H7e,ra_months_Aug:V7e,ra_months_Dec:G7e,ra_months_Feb:X7e,ra_months_Jan:J7e,ra_months_Jul:Y7e,ra_months_Jun:K7e,ra_months_Mai:Z7e,ra_months_Mar:Q7e,ra_months_Nov:eOe,ra_months_Oct:tOe,ra_months_Sep:rOe,"ra_no confirm for 5 mins":"brak potwierdzenia przez 5 minut",ra_none:nOe,ra_object_changed_by:oOe,ra_object_changed_by_user:aOe,ra_otherConfig:iOe,ra_qualityCode:sOe,ra_repeat:cOe,ra_select_folder_hint:lOe,ra_show_all:uOe,ra_state_changed_by:dOe,ra_state_changed_from:pOe,ra_timestamp:fOe,ra_tooltip_ack:hOe,ra_tooltip_comment:mOe,ra_tooltip_copyState:_Oe,ra_tooltip_ctrlForLink:gOe,ra_tooltip_customConfig:yOe,ra_tooltip_deleteObject:vOe,ra_tooltip_editObject:bOe,ra_tooltip_editState:wOe,ra_tooltip_expire:SOe,ra_tooltip_from:xOe,ra_tooltip_lc:kOe,ra_tooltip_quality:COe,ra_tooltip_ts:$Oe,ra_tooltip_user:EOe,ra_tooltip_value:TOe,ra_true:OOe,"ra_use seconds":"użyj sekund",ra_val:DOe,"ra_via internet":"przez internet",ra_warning_every_minute:ROe,ra_warning_every_second:MOe,sc_cron:AOe,sc_date:NOe,sc_dates:IOe,sc_dow:POe,sc_dows:jOe,sc_every:zOe,sc_everyN_dates:LOe,sc_everyN_dow:FOe,sc_everyN_dows:BOe,sc_everyN_hours:WOe,sc_everyN_minutes:UOe,sc_everyN_months:qOe,sc_everyN_seconds:HOe,sc_every_dates:VOe,sc_every_dow:GOe,sc_every_dows:XOe,sc_every_hours:JOe,sc_every_minutes:YOe,sc_every_months:KOe,sc_every_seconds:ZOe,sc_from:QOe,sc_hours:eDe,sc_interval:tDe,sc_intervalBetween:rDe,sc_invalid_cron:nDe,sc_minutes:oDe,sc_months:aDe,sc_once:iDe,sc_period:sDe,sc_seconds:cDe,sc_simple:lDe,sc_specific:uDe,sc_specific_dates:dDe,sc_specific_dow:pDe,sc_specific_dows:fDe,sc_specific_hours:hDe,sc_specific_minutes:mDe,sc_specific_months:_De,sc_specific_seconds:gDe,sc_time:yDe,sc_to:vDe,sc_wizard:bDe,sch_all:wDe,sch_astroDay:SDe,sch_astroNight:xDe,sch_astro_dawn:kDe,sch_astro_dusk:CDe,sch_astro_goldenHour:$De,sch_astro_goldenHourEnd:EDe,sch_astro_nadir:TDe,sch_astro_nauticalDawn:ODe,sch_astro_nauticalDusk:DDe,sch_astro_night:RDe,sch_astro_nightEnd:MDe,sch_astro_solarNoon:ADe,sch_astro_sunrise:NDe,sch_astro_sunriseEnd:IDe,sch_astro_sunset:PDe,sch_astro_sunsetStart:jDe,sch_at:zDe,sch_desc_atTime:LDe,sch_desc_everyDay:FDe,sch_desc_everyHour:BDe,sch_desc_everyMinute:WDe,sch_desc_everyMonth:UDe,sch_desc_everyNDay:qDe,sch_desc_everyNHours:HDe,sch_desc_everyNMinutes:VDe,sch_desc_everyNMonths:GDe,sch_desc_everyNWeeks:XDe,sch_desc_everyNYears:JDe,sch_desc_everyWeek:YDe,sch_desc_everyYear:KDe,sch_desc_intervalFromTo:ZDe,sch_desc_never:QDe,sch_desc_onDate:eRe,sch_desc_onDates:tRe,sch_desc_onEveryDate:rRe,sch_desc_onMonth:nRe,sch_desc_onMonths:oRe,sch_desc_onWeekday:aRe,sch_desc_onWeekdays:iRe,sch_desc_onWeekends:sRe,sch_desc_onWorkdays:cRe,sch_desc_onceInPast:lRe,sch_desc_once_on:uRe,sch_desc_validFrom:dRe,sch_desc_validFromTo:pRe,sch_desc_validTo:fRe,sch_every:hRe,sch_exactTime:mRe,sch_from:_Re,sch_fromTo:gRe,sch_intervalTime:yRe,sch_invert:vRe,sch_no_one:bRe,sch_on:wRe,sch_period:SRe,sch_periodDaily:xRe,sch_periodDates:kRe,sch_periodDay:CRe,sch_periodEvery:$Re,sch_periodEveryDay:ERe,sch_periodEveryMonth:TRe,sch_periodEveryWeek:ORe,sch_periodEveryYear:DRe,sch_periodHours:RRe,sch_periodMinutes:MRe,sch_periodMonth:ARe,sch_periodMonthly:NRe,sch_periodOnce:IRe,sch_periodSpecificMonths:PRe,sch_periodWeek:jRe,sch_periodWeekdays:zRe,sch_periodWeekend:LRe,sch_periodWeekly:FRe,sch_periodWorkdays:BRe,sch_periodYear:WRe,sch_periodYearly:URe,sch_specificTime:qRe,sch_time:HRe,sch_to:VRe,sch_valid:GRe,sch_validFrom:XRe,sch_validTo:JRe,sch_wholeDay:YRe,sch_yearEveryMonth:KRe},QRe="Дії",eMe="Додайте",tMe="Скасувати",rMe="Категорії",nMe="Перевірено",oMe="Видалити",aMe="Закрити",iMe="Комерційний",sMe="Налаштувати",cMe="Підключено",lMe="Продовжити",uMe="Скопійовано",dMe="Створити",pMe="Урожай",fMe="Delete",hMe="Видалити",mMe="Відкинути",_Me="Відключено",gMe="Помилка",yMe="фільтр",vMe="П'ятниця",bMe="Широта",wMe="Вийти",SMe="Довгота",xMe="повідомлення",kMe="понеділок",CMe="Ім'я",$Me="Об'єкти",EMe="В порядку",TMe="Продукт",OMe="Перейменувати/Перемістити/Копіювати",DMe="Повторіть",RMe="Замінити",MMe="Корінь",AMe="Субота",NMe="зберегти",IMe="Вибране",PMe="держави",jMe="неділя",zMe="четвер",LMe="Мітка часу",FMe="вівторок",BMe="оновлення",WMe="Дійсний до",UMe="Значення",qMe="Версія",HMe="Середа",VMe="Ширина",GMe="Так",XMe="інший",JMe="Кожен може читати об'єкт",YMe="Кожен може читати стан",KMe="Кожен може написати об'єкт",ZMe="Кожен може написати стан",QMe="Група може читати об'єкт",eAe="Група може читати стан",tAe="Група може писати об'єкт",rAe="Група може писати стан",nAe="Власник може читати об'єкт",oAe="Власник може читати стан",aAe="Власник може написати об'єкт",iAe="Власник може написати стан",sAe="кнопки",cAe="Змінено з",lAe="закрити",uAe="Створіть логічний стан",dAe="Створити канал",pAe="Створити пристрій",fAe="Створити номерний стан",hAe="Створити состояние",mAe="Створити рядковий стан",_Ae="днів",gAe="О",yAe="пн",vAe="Sa",bAe="Нд",wAe="чт",SAe="вт",xAe="ми",kAe="Експертний режим",CAe="НЕПРАВДА",$Ae="Всі файли",EAe="Аудіо",TAe="Код/JSON",OAe="Зображення",DAe="текст",RAe="відео",MAe="Налаштування",AAe="без",NAe="функція",IAe="ID",PAe="Ім'я",jAe="Роль",zAe="Кімната",LAe="Тип",FAe="Недійсні налаштування",BAe="Остання зміна",WAe="локально",UAe="квіт",qAe="серп",HAe="груд",VAe="лютий",GAe="січня",XAe="лип",JAe="черв",YAe="травень",KAe="березень",ZAe="Листопад",QAe="жовт",eNe="вер",tNe="квіт",rNe="серп",nNe="груд",oNe="лютий",aNe="січня",iNe="лип",sNe="черв",cNe="травень",lNe="березень",uNe="Листопад",dNe="жовт",pNe="вер",fNe="немає",hNe="Об'єкт змінено",mNe="Об'єкт востаннє змінено о",_Ne="Налаштування з іншого адаптера %s",gNe="Код якості",yNe="повторити",vNe="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",bNe="Показати все",wNe="Стан змінено на",SNe="Об'єкт змінено з",xNe="Мітка часу",kNe="Визнано",CNe="коментар",$Ne="Скопіюйте значення стану",ENe="Утримуйте клавішу Cltr/⌘, щоб відкрити посилання",TNe="Спеціальні налаштування",ONe="Видалити об'єкт",DNe="Редагувати об'єкт",RNe="Відредагуйте значення стану",MNe="Термін дії закінчується через",ANe="Від",NNe="Востаннє змінено",INe="якість",PNe="Позначка часу",jNe="Користувач",zNe="Значення",LNe="ПРАВДА",FNe="Значення",BNe="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",WNe="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",UNe="CRON",qNe="Дата",HNe="дати",VNe="День",GNe="День тижня",XNe="кожен",JNe="кожні N днів",YNe="кожен N-й день тижня",KNe="кожні N днів тижня",ZNe="кожні N годин",QNe="кожні N хвилин",eIe="кожні N місяців",tIe="кожні N секунд",rIe="кожен день",nIe="кожен день тижня",oIe="кожен день тижня",aIe="щогодини",iIe="кожну хвилину",sIe="щомісяця",cIe="кожна секунда",lIe="Від",uIe="години",dIe="Інтервал",pIe="Інтервал між",fIe="Недійсний CRON",hIe="хвилин",mIe="місяців",_Ie="Один раз",gIe="Крапка",yIe="секунд",vIe="просто",bIe="Конкретний час",wIe="конкретні дати",SIe="конкретний день (дні) тижня",xIe="конкретний день тижня",kIe="конкретні години",CIe="конкретні хвилини",$Ie="конкретні місяці",EIe="конкретні секунди",TIe="час",OIe="до",DIe="майстер",RIe="все",MIe="Астродень",AIe="Астро ніч",NIe="Світанок",IIe="Сутінки",PIe="Золота година",jIe="Кінець золотої години",zIe="Надір",LIe="Морський світанок",FIe="Морські сутінки",BIe="ніч",WIe="Кінець ночі",UIe="Сонячний полудень",qIe="Схід сонця",HIe="Кінець сходу сонця",VIe="Захід сонця",GIe="Початок заходу сонця",XIe="в",JIe="в %s",YIe="кожен день",KIe="щогодини",ZIe="кожну хвилину",QIe="щомісяця",ePe="кожен %s день",tPe="кожні %s годин",rPe="кожні %s хвилин",nPe="кожні %s місяців",oPe="кожні %s тижнів",aPe="кожні %s років",iPe="щотижня",sPe="щороку",cPe="від %s до %s",lPe="ніколи",uPe="на %s з %s",dPe="на %s і %s з",pPe="на кожну дату",fPe="%s",hPe="%s і %s",mPe="на %s",_Pe="на %s і %s",gPe="на вихідних",yPe="в робочі дні",vPe="більше не виконуватиметься, оскільки запуск у минулому",bPe="на %s",wPe="від %s",SPe="Виконати від до",xPe="до %s",kPe="кожен",CPe="Конкретний час",$Pe="від",EPe="Від до",TPe="Час інтервалу",OPe="інвертувати",DPe="немає",RPe="на",MPe="Крапка",APe="Щодня",NPe="дати",IPe="День",PPe="кожен",jPe="Кожен день",zPe="Щомісяця",LPe="Щотижня",FPe="Щороку",BPe="години",WPe="хвилин",UPe="місяць",qPe="Щомісяця",HPe="Один раз",VPe="Конкретні місяці",GPe="тиждень",XPe="будні",JPe="Вихідні",YPe="Щотижня",KPe="робочі дні",ZPe="рік",QPe="щорічно",eje="Конкретний час",tje="час",rje="до",nje="Дійсний",oje="від",aje="до",ije="Цілий день",sje="щомісяця",cje={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію",ra_Actions:QRe,"ra_Add new child object to selected parent":"Додати новий дочірній об’єкт до вибраного батьківського","ra_Add objects tree from JSON file":"Додайте дерево об’єктів із файлу JSON","ra_Add row":"Додати рядок","ra_Advanced options":"Розширені опції","ra_All items are filtered out":"Усі елементи відфільтровано","ra_All objects":"Всі об'єкти",ra_Append:eMe,"ra_Append %s entries or replace existing?":"Додати %s записів чи замінити наявні?","ra_Append or replace?":"Додати чи замінити?","ra_Are you sure?":"Ти впевнений?","ra_Auto (no custom columns)":"Автоматично (без спеціальних стовпців)","ra_Back to %s":"Назад до %s","ra_Background image":"Фонове зображення",ra_Cancel:tMe,"ra_Cannot add items with set filter":"Неможливо додати елементи зі встановленим фільтром","ra_Cannot decode license":"Неможливо розшифрувати ліцензію","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Неможливо визначити положення: системні налаштування порожні, а визначення GPS вимкнено в браузері",'ra_Cannot find "%s"':'Не вдається знайти "%s"','ra_Cannot read "%s"':'Неможливо прочитати "%s"',"ra_Cannot read licenses: %s":"Неможливо прочитати ліцензії: %s","ra_Cannot retrieve options, as instance is offline":"Неможливо отримати параметри, оскільки екземпляр офлайн","ra_Cannot update attribute, because not found in the object":"Неможливо оновити атрибут, оскільки його не знайдено в об’єкті","ra_Cannot upload":"Неможливо завантажити",ra_Categories:rMe,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:nMe,ra_Clear:oMe,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Click to see in full size":"Натисніть, щоб побачити в повному розмірі","ra_Click to show":"Натисніть, щоб показати","ra_Clone current row":"Клонувати поточний рядок",ra_Close:aMe,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:iMe,ra_Configure:sMe,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:cMe,ra_Continue:lMe,ra_Copied:uMe,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:dMe,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:pMe,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:fMe,ra_Delete:hMe,"ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан","ra_Disable/Enable translation":"Вимкнути/Увімкнути переклад",ra_Discard:mMe,ra_Disconnected:_Me,"ra_Do not ask for next 2 hours in this session":"Не запитуйте про наступні 2 години цього сеансу","ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","ra_Docker is not available":"Докер недоступний","ra_Docker is not installed or not running":"Docker не встановлено або не працює","ra_Double click to reset table layout":"Двічі клацніть, щоб скинути макет таблиці","ra_Drag 'n' drop some files here, or click to select files":"Перетягніть деякі файли сюди або натисніть, щоб вибрати файли","ra_Drop file here":"Перетягніть файл сюди","ra_Drop the files here...":"Перетягніть файл сюди...","ra_Duplicate name":"Повторюване ім'я","ra_Edit ACL":"Редагувати ACL","ra_Edit alias":"Редагувати псевдонім","ra_Edit custom config":"Редагувати спеціальну конфігурацію","ra_Edit full path":"Редагувати повний шлях","ra_Edit function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення","ra_Enter the code from that page here":"Введіть тут код з цієї сторінки",ra_Error:gMe,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","ra_Expand/Collapse card":"Розгорнути/Згорнути картку","ra_Export configuration section":"Розділ конфігурації експорту","ra_Export data to %s file":"Експортувати дані у файл %s","ra_Failed to open JSON File":"Не вдалося відкрити файл JSON","ra_Fallback custom certificates":"Запасні спеціальні сертифікати","ra_File is too big. Max %sk allowed. Try use SVG.":"Файл завеликий. Максимально дозволено %sk. Спробуйте використовувати SVG.",ra_Filter:yMe,"ra_Filter and Data Actions":"Фільтр і дії з даними","ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:vMe,"ra_From file":"З файлу","ra_From text":"З тексту","ra_Get %s access":"Отримайте доступ %s","ra_Good luck":"Удачі","ra_Hide empty folders":"Приховати порожні папки","ra_If no file will be created in the folder, it will disappear after the browser closed":"Якщо в папці не буде створено файл, він зникне після закриття браузера","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Якщо кнопка вище не працює, ви можете авторизувати цю програму вручну, перейшовши за цим посиланням","ra_Import and add configuration section":"Розділ імпорту та додавання конфігурації","ra_Import and replace configuration section":"Розділ імпорту та заміни конфігурації","ra_Import data from %s file":"Імпортувати дані з файлу %s","ra_Import from %s":"Імпортувати з %s","ra_Instance %s is alive":"Примірник %s живий","ra_Instance %s is not alive":"Примірник %s не живий","ra_Instance is not alive":"Примірник не живий","ra_Invalid CRON":"Недійсний CRON","ra_Invalid JSON":"Недійсний JSON","ra_Invalid JSON file.":"Недійсний JSON-файл.","ra_Invalid JSON format. Expected an array.":"Недійсний формат JSON. Очікується масив.","ra_Invalid answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:bMe,"ra_License %s":"Ліцензія %s","ra_License agreement":"Ліцензійна угода","ra_License does not exist":"Ліцензії не існує","ra_License expired on %s":"Термін дії ліцензії закінчився %s",'ra_License for other product "%s"':'Ліцензія на інший продукт "%s"',"ra_License is for version %s, but required version is %s.":"Ліцензія для версії %s, але потрібна версія %s.","ra_License must be converted":"Ліцензію необхідно конвертувати до новішої версії. Ви можете зробити це у своєму профілі на iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Ліцензія не знайдена в менеджері ліцензій. Хочете оновити ліцензії з iobroker.net?","ra_Listen on all IPs":"Прослуховування на всіх IP","ra_Load configuration from file":"Завантажити конфігурацію з файлу",ra_Logout:wMe,ra_Longitude:SMe,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:xMe,ra_Monday:kMe,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:CMe,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","ra_No response from admin":"Немає відповіді від адміністратора","ra_No response from the backend":"Немає відповіді від сервера",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Неексперти можуть створювати нові об’єкти лише в «0_userdata.0» або «alias.0».","ra_Not a number":"Не номер","ra_OAuth Client ID":"Ідентифікатор клієнта OAuth","ra_OAuth Client secret":"Секрет клієнта OAuth",ra_Objects:$Me,ra_Ok:EMe,"ra_On weekdays":"В будні дні","ra_Only following structures of objects are available:":"Доступні тільки такі структури об'єктів:","ra_Only selected":"Тільки обрані","ra_Owner group":"Група власників","ra_Owner user":"Користувач-власник","ra_Passwords are not equal!":"Паролі не бувають рівними!","ra_Place your files here or click here to open the browse dialog":"Розмістіть свої файли тут або натисніть тут, щоб відкрити діалогове вікно перегляду","ra_Please allow popups in your browser for this page!":"Будь ласка, дозвольте спливаючі вікна у вашому браузері для цієї сторінки!","ra_Please confirm":"Будь-ласка підтвердіть","ra_Please create license":"Будь ласка, створіть ліцензію","ra_Please enter the license":"Будь ласка, введіть ліцензію","ra_Please select file...":"Виберіть файл...","ra_Please select object ID...":"Виберіть ідентифікатор об'єкта...","ra_Port could be used by %s":"Порт може використовуватися %s","ra_Port is already used by %s":"Порт уже використовується %s","ra_Press ENTER Key to add new item":"Натисніть клавішу ENTER, щоб додати новий елемент","ra_Private certificate":"Приватний сертифікат",ra_Product:TMe,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Rename_Move_Copy:OMe,"ra_Renew %s access":"Поновити доступ %s",ra_Repeat:DMe,ra_Replace:RMe,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:MMe,ra_Saturday:AMe,ra_Save:NMe,"ra_Save and close":"Зберегти та закрити","ra_Save configuration to file":"Зберегти конфігурацію у файл","ra_Save objects tree as JSON file":"Зберегти дерево об’єктів як файл JSON","ra_Select all":"Вибрати все","ra_Select color":"Виберіть колір","ra_Select predefined icon":"Виберіть попередньо визначений значок","ra_Select type of export":"Виберіть тип експорту",ra_Selected:IMe,"ra_Selected %s object(s)":"Вибрані об’єкти %s","ra_Serial number (UUID)":"Серійний номер (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Серійний номер (UUID) "%s" у ліцензії призначений для іншого пристрою.',"ra_Session will expire in %s seconds. Continue?":"Сеанс закінчиться через %s секунд. Продовжити?","ra_Show all folders":"Показати всі папки","ra_Show lines between rows":"Показувати лінії між рядками","ra_Show/Hide object descriptions":"Показати/Сховати описи об’єктів","ra_Show/hide filter input":"Показати/сховати введення фільтра","ra_Some data are not stored. Discard?":"Деякі дані не зберігаються. Відкинути?",ra_States:PMe,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Авторизацію успішно пройшло. Токен дійсний до %s та буде автоматично поновлено.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Авторизацію успішно виконано. Токен дійсний до %s, але його термін дії може закінчитися, оскільки екземпляр не запущено.","ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:jMe,"ra_Suppress question for next %s minutes":"Приховати запитання на наступні %s хвилин","ra_System language":"Системна мова","ra_Take browser position":"Займіть позицію з браузера","ra_Take position from system settings":"Займіть позицію в налаштуваннях системи",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Експерти можуть створювати об’єкти всюди, крім другого рівня (наприклад, «vis.0» або «javascript.0»).","ra_The page you are looking for was not found":"Сторінка, яку ви шукаєте, не знайдена","ra_The schedule will be executed every minute. Are you sure?":"Розклад буде виконуватися щохвилини. Ви впевнені?","ra_The schedule will be executed every second. Are you sure?":"Розклад буде виконуватися щосекунди. Ви впевнені?",ra_Thursday:zMe,ra_Timestamp:LMe,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:FMe,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:BMe,"ra_Upload file":"Завантажити файл","ra_Use all available let's encrypt certificates":"Використовуйте всі доступні сертифікати let's encrypt","ra_Use iobroker.acme adapter for letsencrypt certificates":"Використовуйте адаптер iobroker.acme для сертифікатів letsencrypt","ra_Use system settings for position":"Використовуйте системні налаштування для позиції","ra_Used system settings":"Використані системні налаштування","ra_User files":"Файли користувача",ra_ValidTill:WMe,ra_Value:UMe,ra_Version:qMe,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:HMe,ra_Width:VMe,"ra_YAML editor":"Редактор YAML",ra_Yes:GMe,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст","ra_You can use * as wildcard":"Ви можете використовувати * як символ підстановки",ra___different__:XMe,ra_aclEveryone_read_object:JMe,ra_aclEveryone_read_state:YMe,ra_aclEveryone_write_object:KMe,ra_aclEveryone_write_state:ZMe,ra_aclGroup_read_object:QMe,ra_aclGroup_read_state:eAe,ra_aclGroup_write_object:tAe,ra_aclGroup_write_state:rAe,ra_aclOwner_read_object:nAe,ra_aclOwner_read_state:oAe,ra_aclOwner_write_object:aAe,ra_aclOwner_write_state:iAe,ra_buttons:sAe,ra_changedFrom:cAe,ra_close:lAe,ra_create_boolean_state:uAe,ra_create_channel:dAe,ra_create_device:pAe,ra_create_number_state:fAe,ra_create_state:hAe,ra_create_string_state:mAe,ra_daysShortText:_Ae,ra_dow_Fr:gAe,ra_dow_Mo:yAe,ra_dow_Sa:vAe,ra_dow_Su:bAe,ra_dow_Th:wAe,ra_dow_Tu:SAe,ra_dow_We:xAe,ra_expertMode:kAe,ra_false:CAe,ra_fileType_all:$Ae,ra_fileType_audio:EAe,ra_fileType_code:TAe,ra_fileType_images:OAe,ra_fileType_txt:DAe,ra_fileType_video:RAe,"ra_fileType_video,":"відео",ra_filter_customs:MAe,ra_filter_customs_without:AAe,ra_filter_func:NAe,ra_filter_id:IAe,ra_filter_name:PAe,ra_filter_role:jAe,ra_filter_room:zAe,ra_filter_type:LAe,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:FAe,ra_lastChange:BAe,ra_locally:WAe,ra_month_Apr:UAe,ra_month_Aug:qAe,ra_month_Dec:HAe,ra_month_Feb:VAe,ra_month_Jan:GAe,ra_month_Jul:XAe,ra_month_Jun:JAe,ra_month_Mai:YAe,ra_month_Mar:KAe,ra_month_Nov:ZAe,ra_month_Oct:QAe,ra_month_Sep:eNe,ra_months_Apr:tNe,ra_months_Aug:rNe,ra_months_Dec:nNe,ra_months_Feb:oNe,ra_months_Jan:aNe,ra_months_Jul:iNe,ra_months_Jun:sNe,ra_months_Mai:cNe,ra_months_Mar:lNe,ra_months_Nov:uNe,ra_months_Oct:dNe,ra_months_Sep:pNe,"ra_no confirm for 5 mins":"без підтвердження протягом 5 хв",ra_none:fNe,ra_object_changed_by:hNe,ra_object_changed_by_user:mNe,ra_otherConfig:_Ne,ra_qualityCode:gNe,ra_repeat:yNe,ra_select_folder_hint:vNe,ra_show_all:bNe,ra_state_changed_by:wNe,ra_state_changed_from:SNe,ra_timestamp:xNe,ra_tooltip_ack:kNe,ra_tooltip_comment:CNe,ra_tooltip_copyState:$Ne,ra_tooltip_ctrlForLink:ENe,ra_tooltip_customConfig:TNe,ra_tooltip_deleteObject:ONe,ra_tooltip_editObject:DNe,ra_tooltip_editState:RNe,ra_tooltip_expire:MNe,ra_tooltip_from:ANe,ra_tooltip_lc:NNe,ra_tooltip_quality:INe,ra_tooltip_ts:PNe,ra_tooltip_user:jNe,ra_tooltip_value:zNe,ra_true:LNe,"ra_use seconds":"використовуйте секунди",ra_val:FNe,"ra_via internet":"через інтернет",ra_warning_every_minute:BNe,ra_warning_every_second:WNe,sc_cron:UNe,sc_date:qNe,sc_dates:HNe,sc_dow:VNe,sc_dows:GNe,sc_every:XNe,sc_everyN_dates:JNe,sc_everyN_dow:YNe,sc_everyN_dows:KNe,sc_everyN_hours:ZNe,sc_everyN_minutes:QNe,sc_everyN_months:eIe,sc_everyN_seconds:tIe,sc_every_dates:rIe,sc_every_dow:nIe,sc_every_dows:oIe,sc_every_hours:aIe,sc_every_minutes:iIe,sc_every_months:sIe,sc_every_seconds:cIe,sc_from:lIe,sc_hours:uIe,sc_interval:dIe,sc_intervalBetween:pIe,sc_invalid_cron:fIe,sc_minutes:hIe,sc_months:mIe,sc_once:_Ie,sc_period:gIe,sc_seconds:yIe,sc_simple:vIe,sc_specific:bIe,sc_specific_dates:wIe,sc_specific_dow:SIe,sc_specific_dows:xIe,sc_specific_hours:kIe,sc_specific_minutes:CIe,sc_specific_months:$Ie,sc_specific_seconds:EIe,sc_time:TIe,sc_to:OIe,sc_wizard:DIe,sch_all:RIe,sch_astroDay:MIe,sch_astroNight:AIe,sch_astro_dawn:NIe,sch_astro_dusk:IIe,sch_astro_goldenHour:PIe,sch_astro_goldenHourEnd:jIe,sch_astro_nadir:zIe,sch_astro_nauticalDawn:LIe,sch_astro_nauticalDusk:FIe,sch_astro_night:BIe,sch_astro_nightEnd:WIe,sch_astro_solarNoon:UIe,sch_astro_sunrise:qIe,sch_astro_sunriseEnd:HIe,sch_astro_sunset:VIe,sch_astro_sunsetStart:GIe,sch_at:XIe,sch_desc_atTime:JIe,sch_desc_everyDay:YIe,sch_desc_everyHour:KIe,sch_desc_everyMinute:ZIe,sch_desc_everyMonth:QIe,sch_desc_everyNDay:ePe,sch_desc_everyNHours:tPe,sch_desc_everyNMinutes:rPe,sch_desc_everyNMonths:nPe,sch_desc_everyNWeeks:oPe,sch_desc_everyNYears:aPe,sch_desc_everyWeek:iPe,sch_desc_everyYear:sPe,sch_desc_intervalFromTo:cPe,sch_desc_never:lPe,sch_desc_onDate:uPe,sch_desc_onDates:dPe,sch_desc_onEveryDate:pPe,sch_desc_onMonth:fPe,sch_desc_onMonths:hPe,sch_desc_onWeekday:mPe,sch_desc_onWeekdays:_Pe,sch_desc_onWeekends:gPe,sch_desc_onWorkdays:yPe,sch_desc_onceInPast:vPe,sch_desc_once_on:bPe,sch_desc_validFrom:wPe,sch_desc_validFromTo:SPe,sch_desc_validTo:xPe,sch_every:kPe,sch_exactTime:CPe,sch_from:$Pe,sch_fromTo:EPe,sch_intervalTime:TPe,sch_invert:OPe,sch_no_one:DPe,sch_on:RPe,sch_period:MPe,sch_periodDaily:APe,sch_periodDates:NPe,sch_periodDay:IPe,sch_periodEvery:PPe,sch_periodEveryDay:jPe,sch_periodEveryMonth:zPe,sch_periodEveryWeek:LPe,sch_periodEveryYear:FPe,sch_periodHours:BPe,sch_periodMinutes:WPe,sch_periodMonth:UPe,sch_periodMonthly:qPe,sch_periodOnce:HPe,sch_periodSpecificMonths:VPe,sch_periodWeek:GPe,sch_periodWeekdays:XPe,sch_periodWeekend:JPe,sch_periodWeekly:YPe,sch_periodWorkdays:KPe,sch_periodYear:ZPe,sch_periodYearly:QPe,sch_specificTime:eje,sch_time:tje,sch_to:rje,sch_valid:nje,sch_validFrom:oje,sch_validTo:aje,sch_wholeDay:ije,sch_yearEveryMonth:sje},lje="操作",uje="附加",dje="取消",pje="类别",fje="勾选",hje="删除",mje="关",_je="商业的",gje="配置",yje="连接的",vje="继续",bje="复制的",wje="创建",Sje="庄稼",xje="Delete",kje="删除",Cje="丢弃",$je="断开连接",Eje="错误",Tje="筛选",Oje="星期五",Dje="纬度",Rje="登出",Mje="经度",Aje="信息",Nje="周一",Ije="姓名",Pje="对象",jje="好",zje="产品",Lje="重命名/移动/复制",Fje="重复",Bje="代替",Wje="根",Uje="周六",qje="保存",Hje="已选",Vje="状态",Gje="星期日",Xje="周四",Jje="时间戳记",Yje="周二",Kje="更新资料",Zje="有效期至",Qje="值",eze="版本",tze="周三",rze="宽度",nze="是的",oze="不同的",aze="每个人都可以阅读对象",ize="每个人都可以阅读状态",sze="每个人都可以写对象",cze="每个人都可以写状态",lze="组可以读取对象",uze="群组可以读取状态",dze="组可以写对象",pze="组可以写状态",fze="所有者可以读取对象",hze="所有者可以读取状态",mze="所有者可以写对象",_ze="所有者可以写状态",gze="纽扣",yze="更改为",vze="关闭",bze="创建布尔状态",wze="创建频道",Sze="创建设备",xze="创建号码状态",kze="创建状态",Cze="创建字符串状态",$ze="天",Eze="r",Tze="莫",Oze="萨",Dze="苏",Rze="Th",Mze="Tu",Aze="我们",Nze="专家模式",Ize="错误的",Pze="所有文件",jze="声音的",zze="代码/JSON",Lze="图片",Fze="文本",Bze="视频",Wze="设定值",Uze="没有",qze="功能",Hze="ID",Vze="名称",Gze="角色",Xze="房间",Jze="类型",Yze="无效的设定",Kze="最后一次变更",Zze="本地",Qze="4月",eLe="八月",tLe="十二月",rLe="二月",nLe="简",oLe="七月",aLe="君",iLe="迈",sLe="三月",cLe="十一月",lLe="十月",uLe="九月",dLe="4月",pLe="八月",fLe="十二月",hLe="二月",mLe="简",_Le="七月",gLe="君",yLe="迈",vLe="三月",bLe="十一月",wLe="十月",SLe="九月",xLe="没有任何",kLe="物件变更者",CLe="对象上次更改时间为",$Le="来自其他适配器%s的设置",ELe="质量代码",TLe="重复",OLe="要选择文件夹,只需按住“shift”键单击文件夹即可。",DLe="显示全部",RLe="状态由",MLe="对象已从更改",ALe="时间戳记",NLe="致谢国旗",ILe="评论",PLe="复制状态值",jLe="按住 Cltr/⌘ 键打开链接",zLe="自定义设置",LLe="删除物件",FLe="编辑物件",BLe="编辑状态值",WLe="有效期:",ULe="从",qLe="最后改变了",HLe="质量",VLe="时间戳",GLe="用户",XLe="值",JLe="真的",YLe="值",KLe="警告:CRON 作业将在指定期间内每分钟运行一次!",ZLe="警告:CRON 作业将在指定期间内每秒运行一次!",QLe="周期任务",eFe="日期",tFe="日",rFe="天",nFe="星期",oFe="每",aFe="每N天",iFe="每周的第 N 天",sFe="每周N天",cFe="每N小时一次",lFe="每N分钟",uFe="每N个月",dFe="每N秒",pFe="每天",fFe="一周的每一天",hFe="一周的每一天",mFe="每小时",_Fe="每分钟",gFe="每月",yFe="每秒",vFe="从",bFe="小时",wFe="间隔",SFe="间隔时间",xFe="无效的 CRON",kFe="分钟",CFe="月",$Fe="一次",EFe="周期",TFe="秒",OFe="简单模式",DFe="特定的时间",RFe="特定的日子",MFe="一周中的特定日子",AFe="特定的一周",NFe="特定的小时",IFe="特定的分钟",PFe="特定的月份",jFe="特定的描述",zFe="时间",LFe="至",FFe="向导模式",BFe="全选",WFe="天文白天",UFe="天文夜晚",qFe="黎明",HFe="黄昏",VFe="黄金时段",GFe="黄金时段结束",XFe="天底",JFe="航海黎明",YFe="航海黄昏",KFe="夜晚",ZFe="夜晚结束",QFe="正午",eBe="日出",tBe="日出结束",rBe="日落",nBe="日落开始",oBe="在",aBe="的%s",iBe="每天",sBe="每小时",cBe="每分钟",lBe="每月",uBe="每%s天",dBe="每%s小时",pBe="每%s分钟",fBe="每%s月",hBe="每%s周",mBe="每%s年",_Be="每周",gBe="每年",yBe="从%s到%s",vBe="决不",bBe="在%s的%s上",wBe="在%s和%s上",SBe="在每天",xBe="%s",kBe="%s和%s",CBe="在%s上",$Be="在%s和%s上",EBe="在周末",TBe="在工作日",OBe="将不再执行,因为起始时间已经是过去的时间了。",DBe="在%s上",RBe="来自%s",MBe="从执行到",ABe="到%s",NBe="每",IBe="特定的时间",PBe="从",jBe="从到",zBe="间隔时间",LBe="倒置",FBe="取消全选",BBe="的",WBe="周期",UBe="每天",qBe="日期",HBe="天",VBe="每",GBe="每天",XBe="每月",JBe="每周",YBe="每年",KBe="小时",ZBe="分钟",QBe="月",eWe="每月一次",tWe="一次",rWe="特定的月份",nWe="周",oWe="工作日",aWe="周末",iWe="每周",sWe="工作日",cWe="年",lWe="每年",uWe="特定的时间",dWe="时间",pWe="至",fWe="生效",hWe="从",mWe="至",_We="一整天",gWe="每月",yWe={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可",ra_Actions:lje,"ra_Add new child object to selected parent":"将新的子对象添加到选定的父对象","ra_Add objects tree from JSON file":"从JSON文件添加对象树","ra_Add row":"添加行","ra_Advanced options":"高级选项","ra_All items are filtered out":"所有项目都被过滤掉","ra_All objects":"所有对象",ra_Append:uje,"ra_Append %s entries or replace existing?":"追加 %s 条目还是替换现有条目?","ra_Append or replace?":"追加还是替换?","ra_Are you sure?":"你确定吗?","ra_Auto (no custom columns)":"自动(无自定义列)","ra_Back to %s":"返回“%s”","ra_Background image":"背景图像",ra_Cancel:dje,"ra_Cannot add items with set filter":"无法使用设置过滤器添加项目","ra_Cannot decode license":"无法解码许可证","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"无法确定位置:系统设置为空且浏览器中禁用了 GPS 检测",'ra_Cannot find "%s"':"找不到“%s”",'ra_Cannot read "%s"':"无法阅读“%s”","ra_Cannot read licenses: %s":"无法读取许可证:%s","ra_Cannot retrieve options, as instance is offline":"无法检索选项,因为实例处于脱机状态","ra_Cannot update attribute, because not found in the object":"无法更新属性,因为在对象中找不到","ra_Cannot upload":"无法上传",ra_Categories:pje,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:fje,ra_Clear:hje,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Click to see in full size":"点击查看完整尺寸","ra_Click to show":"点击显示","ra_Clone current row":"克隆当前行",ra_Close:mje,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:_je,ra_Configure:gje,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:yje,ra_Continue:vje,ra_Copied:bje,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:wje,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:Sje,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:xje,ra_Delete:kje,"ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态","ra_Disable/Enable translation":"禁用/启用翻译",ra_Discard:Cje,ra_Disconnected:$je,"ra_Do not ask for next 2 hours in this session":"本次会话中不要询问接下来的 2 个小时","ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","ra_Docker is not available":"Docker 不可用","ra_Docker is not installed or not running":"Docker 未安装或未运行","ra_Double click to reset table layout":"双击重置表格布局","ra_Drag 'n' drop some files here, or click to select files":"将一些文件拖放到此处,或单击以选择文件","ra_Drop file here":"将档案放在这里","ra_Drop the files here...":"把文件放在这里...","ra_Duplicate name":"名称重复","ra_Edit ACL":"编辑访问控制列表","ra_Edit alias":"编辑别名","ra_Edit custom config":"编辑自定义配置","ra_Edit full path":"编辑完整路径","ra_Edit function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值","ra_Enter the code from that page here":"在此处输入该页面的代码",ra_Error:Eje,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","ra_Expand/Collapse card":"展开/折叠卡","ra_Export configuration section":"导出配置部分","ra_Export data to %s file":"将数据导出到 %s 文件","ra_Failed to open JSON File":"无法打开JSON文件","ra_Fallback custom certificates":"后备自定义证书","ra_File is too big. Max %sk allowed. Try use SVG.":"文件太大。允许的最大字节%s数。尝试使用 SVG。",ra_Filter:Tje,"ra_Filter and Data Actions":"过滤和数据操作","ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:Oje,"ra_From file":"从文件","ra_From text":"文本","ra_Get %s access":"获取 %s 访问权限","ra_Good luck":"祝你好运","ra_Hide empty folders":"隐藏空文件夹","ra_If no file will be created in the folder, it will disappear after the browser closed":"如果在该文件夹中未创建任何文件,则该文件将在浏览器关闭后消失","ra_If the button above does not work, you can authorize manually this app by visiting this url":"如果上面的按钮不起作用,您可以通过访问此网址手动授权此应用","ra_Import and add configuration section":"导入并添加配置部分","ra_Import and replace configuration section":"导入和替换配置部分","ra_Import data from %s file":"从 %s 文件导入数据","ra_Import from %s":"从 %s 导入","ra_Instance %s is alive":"实例 %s 是活动的","ra_Instance %s is not alive":"实例 %s 不存在","ra_Instance is not alive":"实例不存在","ra_Invalid CRON":"无效的 CRON","ra_Invalid JSON":"JSON 无效","ra_Invalid JSON file.":"无效的JSON文件。","ra_Invalid JSON format. Expected an array.":"JSON格式无效。应为数组。","ra_Invalid answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:Dje,"ra_License %s":"许可证 %s","ra_License agreement":"许可协议","ra_License does not exist":"许可证不存在","ra_License expired on %s":"许可证已于 %s 过期",'ra_License for other product "%s"':"其他产品“%s”的许可证","ra_License is for version %s, but required version is %s.":"许可证适用于版本 %s,但所需版本为 %s。","ra_License must be converted":"许可证必须转换为更新版本。您可以在 iobroker.net 个人资料中执行此操作。","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"在许可证管理器中找不到许可证。您要从 iobroker.net 更新许可证吗?","ra_Listen on all IPs":"监听所有IP","ra_Load configuration from file":"从文件加载配置",ra_Logout:Rje,ra_Longitude:Mje,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:Aje,ra_Monday:Nje,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:Ije,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","ra_No response from admin":"管理员没有回应","ra_No response from the backend":"后端无响应",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"非专家只能在“ 0_userdata.0”或“ alias.0”中创建新对象。","ra_Not a number":"不是数字","ra_OAuth Client ID":"OAuth客户端ID","ra_OAuth Client secret":"OAuth 客户端密钥",ra_Objects:Pje,ra_Ok:jje,"ra_On weekdays":"在工作日","ra_Only following structures of objects are available:":"仅以下对象结构可用:","ra_Only selected":"只选择","ra_Owner group":"所有者组","ra_Owner user":"所有者用户","ra_Passwords are not equal!":"密码不相等!","ra_Place your files here or click here to open the browse dialog":"将文件放在此处或单击此处打开浏览对话框","ra_Please allow popups in your browser for this page!":"请允许浏览器弹出此页面!","ra_Please confirm":"请确认","ra_Please create license":"请创建许可证","ra_Please enter the license":"请输入许可证","ra_Please select file...":"请选择文件...","ra_Please select object ID...":"请选择对象ID ...","ra_Port could be used by %s":"%s 可以使用端口","ra_Port is already used by %s":"端口已被 %s 使用","ra_Press ENTER Key to add new item":"按 ENTER 键添加新项目","ra_Private certificate":"私有证书",ra_Product:zje,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Rename_Move_Copy:Lje,"ra_Renew %s access":"续订 %s 访问权限",ra_Repeat:Fje,ra_Replace:Bje,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:Wje,ra_Saturday:Uje,ra_Save:qje,"ra_Save and close":"保存并关闭","ra_Save configuration to file":"将配置保存到文件","ra_Save objects tree as JSON file":"将对象树另存为JSON文件","ra_Select all":"全选","ra_Select color":"选择颜色","ra_Select predefined icon":"选择预定义图标","ra_Select type of export":"选择导出类型",ra_Selected:Hje,"ra_Selected %s object(s)":"选定的 %s 个对象","ra_Serial number (UUID)":"序列号 (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':"许可证中的序列号 (UUID)“%s”用于其他设备。","ra_Session will expire in %s seconds. Continue?":"会话将在 %s 秒后过期。是否继续?","ra_Show all folders":"显示所有文件夹","ra_Show lines between rows":"显示行之间的线","ra_Show/Hide object descriptions":"显示/隐藏对象描述","ra_Show/hide filter input":"显示/隐藏过滤器输入","ra_Some data are not stored. Discard?":"部分数据未存储。丢弃?",ra_States:Vje,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"授权成功。令牌有效期至 %s,并将自动续订。","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"授权成功。令牌有效期至 %s,但由于实例未运行,令牌可能会过期。","ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:Gje,"ra_Suppress question for next %s minutes":"在接下来的%s分钟内取消提问","ra_System language":"系统语言","ra_Take browser position":"从浏览器获取位置","ra_Take position from system settings":"从系统设置中获取位置",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"专家可以在任何地方创建对象,但要从第二层开始(例如“ vis.0”或“ javascript.0”)。","ra_The page you are looking for was not found":"未找到您要查找的页面","ra_The schedule will be executed every minute. Are you sure?":"该计划将每分钟执行一次。您确定吗?","ra_The schedule will be executed every second. Are you sure?":"该计划将每秒执行一次。你确定吗?",ra_Thursday:Xje,ra_Timestamp:Jje,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:Yje,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:Kje,"ra_Upload file":"上传文件","ra_Use all available let's encrypt certificates":"使用所有可用的让我们加密证书","ra_Use iobroker.acme adapter for letsencrypt certificates":"使用 iobroker.acme 适配器获取 letsencrypt 证书","ra_Use system settings for position":"使用系统设置定位","ra_Used system settings":"使用的系统设置","ra_User files":"用户档案",ra_ValidTill:Zje,ra_Value:Qje,ra_Version:eze,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:tze,ra_Width:rze,"ra_YAML editor":"YAML 编辑器",ra_Yes:nze,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目","ra_You can use * as wildcard":"您可以使用 * 作为通配符",ra___different__:oze,ra_aclEveryone_read_object:aze,ra_aclEveryone_read_state:ize,ra_aclEveryone_write_object:sze,ra_aclEveryone_write_state:cze,ra_aclGroup_read_object:lze,ra_aclGroup_read_state:uze,ra_aclGroup_write_object:dze,ra_aclGroup_write_state:pze,ra_aclOwner_read_object:fze,ra_aclOwner_read_state:hze,ra_aclOwner_write_object:mze,ra_aclOwner_write_state:_ze,ra_buttons:gze,ra_changedFrom:yze,ra_close:vze,ra_create_boolean_state:bze,ra_create_channel:wze,ra_create_device:Sze,ra_create_number_state:xze,ra_create_state:kze,ra_create_string_state:Cze,ra_daysShortText:$ze,ra_dow_Fr:Eze,ra_dow_Mo:Tze,ra_dow_Sa:Oze,ra_dow_Su:Dze,ra_dow_Th:Rze,ra_dow_Tu:Mze,ra_dow_We:Aze,ra_expertMode:Nze,ra_false:Ize,ra_fileType_all:Pze,ra_fileType_audio:jze,ra_fileType_code:zze,ra_fileType_images:Lze,ra_fileType_txt:Fze,ra_fileType_video:Bze,"ra_fileType_video,":"视频",ra_filter_customs:Wze,ra_filter_customs_without:Uze,ra_filter_func:qze,ra_filter_id:Hze,ra_filter_name:Vze,ra_filter_role:Gze,ra_filter_room:Xze,ra_filter_type:Jze,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:Yze,ra_lastChange:Kze,ra_locally:Zze,ra_month_Apr:Qze,ra_month_Aug:eLe,ra_month_Dec:tLe,ra_month_Feb:rLe,ra_month_Jan:nLe,ra_month_Jul:oLe,ra_month_Jun:aLe,ra_month_Mai:iLe,ra_month_Mar:sLe,ra_month_Nov:cLe,ra_month_Oct:lLe,ra_month_Sep:uLe,ra_months_Apr:dLe,ra_months_Aug:pLe,ra_months_Dec:fLe,ra_months_Feb:hLe,ra_months_Jan:mLe,ra_months_Jul:_Le,ra_months_Jun:gLe,ra_months_Mai:yLe,ra_months_Mar:vLe,ra_months_Nov:bLe,ra_months_Oct:wLe,ra_months_Sep:SLe,"ra_no confirm for 5 mins":"5分钟内无需确认",ra_none:xLe,ra_object_changed_by:kLe,ra_object_changed_by_user:CLe,ra_otherConfig:$Le,ra_qualityCode:ELe,ra_repeat:TLe,ra_select_folder_hint:OLe,ra_show_all:DLe,ra_state_changed_by:RLe,ra_state_changed_from:MLe,ra_timestamp:ALe,ra_tooltip_ack:NLe,ra_tooltip_comment:ILe,ra_tooltip_copyState:PLe,ra_tooltip_ctrlForLink:jLe,ra_tooltip_customConfig:zLe,ra_tooltip_deleteObject:LLe,ra_tooltip_editObject:FLe,ra_tooltip_editState:BLe,ra_tooltip_expire:WLe,ra_tooltip_from:ULe,ra_tooltip_lc:qLe,ra_tooltip_quality:HLe,ra_tooltip_ts:VLe,ra_tooltip_user:GLe,ra_tooltip_value:XLe,ra_true:JLe,"ra_use seconds":"用秒",ra_val:YLe,"ra_via internet":"通过互联网",ra_warning_every_minute:KLe,ra_warning_every_second:ZLe,sc_cron:QLe,sc_date:eFe,sc_dates:tFe,sc_dow:rFe,sc_dows:nFe,sc_every:oFe,sc_everyN_dates:aFe,sc_everyN_dow:iFe,sc_everyN_dows:sFe,sc_everyN_hours:cFe,sc_everyN_minutes:lFe,sc_everyN_months:uFe,sc_everyN_seconds:dFe,sc_every_dates:pFe,sc_every_dow:fFe,sc_every_dows:hFe,sc_every_hours:mFe,sc_every_minutes:_Fe,sc_every_months:gFe,sc_every_seconds:yFe,sc_from:vFe,sc_hours:bFe,sc_interval:wFe,sc_intervalBetween:SFe,sc_invalid_cron:xFe,sc_minutes:kFe,sc_months:CFe,sc_once:$Fe,sc_period:EFe,sc_seconds:TFe,sc_simple:OFe,sc_specific:DFe,sc_specific_dates:RFe,sc_specific_dow:MFe,sc_specific_dows:AFe,sc_specific_hours:NFe,sc_specific_minutes:IFe,sc_specific_months:PFe,sc_specific_seconds:jFe,sc_time:zFe,sc_to:LFe,sc_wizard:FFe,sch_all:BFe,sch_astroDay:WFe,sch_astroNight:UFe,sch_astro_dawn:qFe,sch_astro_dusk:HFe,sch_astro_goldenHour:VFe,sch_astro_goldenHourEnd:GFe,sch_astro_nadir:XFe,sch_astro_nauticalDawn:JFe,sch_astro_nauticalDusk:YFe,sch_astro_night:KFe,sch_astro_nightEnd:ZFe,sch_astro_solarNoon:QFe,sch_astro_sunrise:eBe,sch_astro_sunriseEnd:tBe,sch_astro_sunset:rBe,sch_astro_sunsetStart:nBe,sch_at:oBe,sch_desc_atTime:aBe,sch_desc_everyDay:iBe,sch_desc_everyHour:sBe,sch_desc_everyMinute:cBe,sch_desc_everyMonth:lBe,sch_desc_everyNDay:uBe,sch_desc_everyNHours:dBe,sch_desc_everyNMinutes:pBe,sch_desc_everyNMonths:fBe,sch_desc_everyNWeeks:hBe,sch_desc_everyNYears:mBe,sch_desc_everyWeek:_Be,sch_desc_everyYear:gBe,sch_desc_intervalFromTo:yBe,sch_desc_never:vBe,sch_desc_onDate:bBe,sch_desc_onDates:wBe,sch_desc_onEveryDate:SBe,sch_desc_onMonth:xBe,sch_desc_onMonths:kBe,sch_desc_onWeekday:CBe,sch_desc_onWeekdays:$Be,sch_desc_onWeekends:EBe,sch_desc_onWorkdays:TBe,sch_desc_onceInPast:OBe,sch_desc_once_on:DBe,sch_desc_validFrom:RBe,sch_desc_validFromTo:MBe,sch_desc_validTo:ABe,sch_every:NBe,sch_exactTime:IBe,sch_from:PBe,sch_fromTo:jBe,sch_intervalTime:zBe,sch_invert:LBe,sch_no_one:FBe,sch_on:BBe,sch_period:WBe,sch_periodDaily:UBe,sch_periodDates:qBe,sch_periodDay:HBe,sch_periodEvery:VBe,sch_periodEveryDay:GBe,sch_periodEveryMonth:XBe,sch_periodEveryWeek:JBe,sch_periodEveryYear:YBe,sch_periodHours:KBe,sch_periodMinutes:ZBe,sch_periodMonth:QBe,sch_periodMonthly:eWe,sch_periodOnce:tWe,sch_periodSpecificMonths:rWe,sch_periodWeek:nWe,sch_periodWeekdays:oWe,sch_periodWeekend:aWe,sch_periodWeekly:iWe,sch_periodWorkdays:sWe,sch_periodYear:cWe,sch_periodYearly:lWe,sch_specificTime:uWe,sch_time:dWe,sch_to:pWe,sch_valid:fWe,sch_validFrom:hWe,sch_validTo:mWe,sch_wholeDay:_We,sch_yearEveryMonth:gWe},vWe={en:$ee,de:Pae,ru:Vue,pt:r_e,nl:p1e,fr:S5e,it:MCe,es:W8e,pl:ZRe,uk:cje,"zh-cn":yWe},bWe=` -html { - height: 100%; -} - -body { - margin: 0; - padding: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - width: 100%; - height: 100%; - overflow: hidden; -} - -/* scrollbar */ -::-webkit-scrollbar-track { - background-color: #ccc; - border-radius: 5px; -} - -::-webkit-scrollbar { - width: 5px; - height: 5px; - background-color: #ccc; -} - -::-webkit-scrollbar-thumb { - background-color: #575757; - border-radius: 5px; -} - -#root { - height: 100%; -} - -.App { - height: 100%; -} - -@keyframes glow { - from { - background-color: initial; - } - to { - background-color: #58c458; - } -} -`;function wWe(){try{return window.self!==window.top}catch{return!0}}class ti extends zu{socket;isIFrame=wWe();instance;adapterName;instanceId;newReact;encryptedFields;sentryDSN;alertDialogRendered;_secret;_systemConfig;savedNative;common=null;sentryStarted=!1;sentryInited=!1;resizeTimer=null;constructor(e,r){const n=e.Connection||r?.Connection||en;if(!window.document.getElementById("generic-app-iobroker-component")){const h=window.document.createElement("style");h.setAttribute("id","generic-app-iobroker-component"),h.innerHTML=bWe,window.document.head.appendChild(h)}if(!ti.isWeb()&&window.io&&window.location.port==="3000")try{const h=new window.SocketClient;delete window.io,window.io=h}catch{}super(e),QX();const o=(window.location.search||"").replace(/^\?/,"").replace(/#.*$/,""),a={};o.trim().split("&").filter(h=>h.trim()).forEach(h=>{const d=h.split("="),[m,y]=d;a[m]=d.length===2?y:!0,a[m]==="true"?a[m]=!0:a[m]==="false"&&(a[m]=!1)}),this.instance=r?.instance??e.instance??(a.instance!==void 0?parseInt(a.instance,10)||0:parseInt(window.location.search.slice(1),10)||0);const s=window.location.pathname.split("/");this.adapterName=r?.adapterName||e.adapterName||window.adapterName||s[s.length-2]||"iot",this.instanceId=`system.adapter.${this.adapterName}.${this.instance}`,this.newReact=a.newReact===!0;const l=zu.getLocation();l.tab=l.tab||(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"";const u=this.createTheme(a.theme);this.state={...this.state,selectedTab:(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"",selectedTabNum:-1,native:{},errorText:"",changed:!1,connected:!1,loaded:!1,isConfigurationError:"",expertMode:!1,toast:"",theme:u,themeName:this.getThemeName(u),themeType:this.getThemeType(u),bottomButtons:(r&&r.bottomButtons)===!1?!1:e?.bottomButtons!==!1,width:ti.getWidth(),confirmClose:!1,_alert:!1,_alertType:"info",_alertMessage:""};const f=vWe;r?.translations?Object.keys(r.translations).forEach(h=>{r.translations&&(f[h]=Object.assign(f[h],r.translations[h]||{}))}):e.translations&&Object.keys(e.translations).forEach(h=>{e.translations&&(f[h]=Object.assign(f[h],e.translations[h]||{}))}),z.setTranslations(f),this.savedNative={},this.encryptedFields=e.encryptedFields||r?.encryptedFields||[],this.sentryDSN=r?.sentryDSN||e.sentryDSN,window.socketUrl&&(window.socketUrl.startsWith(":")?window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`:!window.socketUrl.startsWith("http://")&&!window.socketUrl.startsWith("https://")&&(window.socketUrl=`${window.location.protocol}//${window.socketUrl}`)),this.alertDialogRendered=!1,window.iobOldAlert||(window.iobOldAlert=window.alert),window.alert=h=>{if(!this.alertDialogRendered){window.iobOldAlert(h);return}h?.toString().toLowerCase().includes("error")?(console.error(h),this.showAlert(h.toString(),"error")):(console.log(h),this.showAlert(h.toString(),"info"))},this.socket=new n({...e?.socket||r?.socket,name:this.adapterName,doNotLoadAllObjects:r?.doNotLoadAllObjects,onProgress:h=>{h===zo.CONNECTING?this.setState({connected:!1}):h===zo.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:()=>{z.setLanguage(this.socket.systemLang),this.socket.subscribeObject("system.config",this.onSystemConfigChanged).then(()=>this.getSystemConfig()).then(h=>(this._secret=typeof h<"u"&&h.native&&h.native.secret||"Zgfr56gFe87jJOM",this._systemConfig=h?.common||{},this.socket.getObject(this.instanceId))).then(async h=>{let d;const m=h,v=(await this.socket.getState(`${this.instanceId}.plugins.sentry.enabled`))?.val!==!1&&this._systemConfig?.diag!=="none"&&m?.common&&m.common.name&&m.common.version&&!m.common.disableDataReporting&&window.location.host!=="localhost:3000";!this.sentryStarted&&this.sentryDSN&&v&&(this.sentryStarted=!0,vX({dsn:this.sentryDSN,release:`iobroker.${m.common.name}@${m.common.version}`,integrations:[D9()]}),console.log("Sentry initialized")),!this.sentryInited&&v&&(this.sentryInited=!0,d=this.socket.getObject("system.meta.uuid").then(b=>{b&&b.native&&b.native.uuid&&Ko().setUser({id:b.native.uuid})})),d=d instanceof Promise?d:Promise.resolve(),d.then(()=>{m?(this.common=m?.common,this.onPrepareLoad(m.native,m.encryptedNative),this.savedNative=JSON.parse(JSON.stringify(m.native)),this.setState({native:m.native,loaded:!0,expertMode:this.getExpertMode()},()=>this.onConnectionReady&&this.onConnectionReady())):(console.warn("Cannot load instance settings"),this.setState({native:{},loaded:!0,expertMode:this.getExpertMode()},()=>this.onConnectionReady&&this.onConnectionReady()))})}).catch(h=>window.alert(`Cannot settings: ${h}`))},onError:h=>{console.error(h),this.showError(h)}})}static isWeb(){return window.socketUrl!==void 0}showAlert(e,r){r!=="error"&&r!=="warning"&&r!=="info"&&r!=="success"&&(r="info"),this.setState({_alert:!0,_alertType:r,_alertMessage:e})}renderAlertSnackbar(){return this.alertDialogRendered=!0,_.createElement(T1,{style:this.state._alertType==="error"?{backgroundColor:"#f44336"}:this.state._alertType==="success"?{backgroundColor:"#4caf50"}:void 0,open:this.state._alert,autoHideDuration:6e3,onClose:(e,r)=>r!=="clickaway"&&this.setState({_alert:!1}),message:this.state._alertMessage})}onSystemConfigChanged=(e,r)=>{r&&e==="system.config"&&(this.socket.systemLang!==r?.common.language&&(this.socket.systemLang=r?.common.language||"en",z.setLanguage(this.socket.systemLang)),this._systemConfig?.expertMode!==!!r?.common?.expertMode?(this._systemConfig=r?.common||{},this.setState({expertMode:this.getExpertMode()})):this._systemConfig=r?.common||{})};componentDidMount(){window.addEventListener("resize",this.onResize,!0),window.addEventListener("message",this.onReceiveMessage,!1),super.componentDidMount()}componentWillUnmount(){window.removeEventListener("resize",this.onResize,!0),window.removeEventListener("message",this.onReceiveMessage,!1),this.resizeTimer&&(clearTimeout(this.resizeTimer),this.resizeTimer=null),window.iobOldAlert&&(window.alert=window.iobOldAlert,delete window.iobOldAlert),super.componentWillUnmount()}onReceiveMessage=e=>{if(e?.data)if(typeof e.data=="string"&&e.data==="updateTheme"||e.data&&typeof e.data=="object"&&e.data.type==="updateTheme"){const r=je.getThemeName();je.setThemeName(r);const n=this.createTheme(r);this.setState({theme:n,themeName:this.getThemeName(n),themeType:this.getThemeType(n)},()=>{this.props.onThemeChange&&this.props.onThemeChange(r),this.onThemeChanged&&this.onThemeChanged(r)})}else e.data==="updateExpertMode"?this.onToggleExpertMode&&this.onToggleExpertMode(this.getExpertMode()):e.data!=="chartReady"&&console.debug(`Received unknown message: "${JSON.stringify(e.data)}". May be it will be processed later`)};onResize=()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.resizeTimer=null,this.setState({width:ti.getWidth()})},200)};static getWidth(){const e={xs:0,sm:600,md:960,lg:1280,xl:1920},r=window.innerWidth;return Object.keys(e).reverse().find(a=>r>=e[a])||"xs"}createTheme(e){return aU(je.getThemeName(e))}getThemeName(e){return e.name}getThemeType(e){return e.palette.mode}onThemeChanged(e){}onToggleExpertMode(e){}toggleTheme(e){const r=this.state.themeName;if(e=e||(r==="dark"||r==="blue"||r==="colored"?"light":"dark"),e!==r){je.setThemeName(e);const n=this.createTheme(e);this.setState({theme:n,themeName:this.getThemeName(n),themeType:this.getThemeType(n)},()=>{this.props.onThemeChange&&this.props.onThemeChange(e||"light"),this.onThemeChanged&&this.onThemeChanged(e||"light")})}}getSystemConfig(){return this.socket.getSystemConfig()}getExpertMode(){return window.sessionStorage.getItem("App.expertMode")==="true"||!!this._systemConfig?.expertMode}onConnectionReady(){}encrypt(e){let r="";if(this._secret)for(let n=0;n{e[r]&&(e[r]=this.encrypt(e[r]))}),!0}onPrepareLoad(e,r){this.encryptedFields?.forEach(n=>{e[n]&&(e[n]=this.decrypt(e[n]))}),r?.forEach(n=>{this.encryptedFields=this.encryptedFields||[],!this.encryptedFields.includes(n)&&this.encryptedFields.push(n),e[n]&&(e[n]=this.decrypt(e[n]))})}async getExtendableInstances(){try{const e=await this.socket.getObjectViewSystem("instance","system.adapter.","system.adapter.香");return Object.values(e).filter(r=>!!r?.common?.webExtendable)}catch{return[]}}async getIpAddresses(e){const r=await this.socket.getHostByIp(e||this.common?.host||""),n=r.find(a=>a.address==="0.0.0.0");n&&(n.name=`[IPv4] 0.0.0.0 - ${z.t("ra_Listen on all IPs")}`);const o=r.find(a=>a.address==="::");return o&&(o.name=`[IPv6] :: - ${z.t("ra_Listen on all IPs")}`),r}onSave(e){let r;if(this.state.isConfigurationError){this.setState({errorText:this.state.isConfigurationError});return}this.socket.getObject(this.instanceId).then(n=>{r=n||{};for(const o in this.state.native)Object.prototype.hasOwnProperty.call(this.state.native,o)&&(this.state.native[o]===null?r.native[o]=null:this.state.native[o]!==void 0?r.native[o]=JSON.parse(JSON.stringify(this.state.native[o])):delete r.native[o]);if(this.state.common)for(const o in this.state.common)this.state.common[o]===null?r.common[o]=null:this.state.common[o]!==void 0?r.common[o]=JSON.parse(JSON.stringify(this.state.common[o])):delete r.common[o];return this.onPrepareSave(r.native)!==!1?this.socket.setObject(this.instanceId,r):Promise.reject(new Error("Invalid configuration"))}).then(()=>{this.savedNative=r.native,globalThis.changed=!1;try{window.parent.postMessage("nochange","*")}catch{}this.setState({changed:!1},()=>{e&&ti.onClose()})}).catch(n=>console.error(`Cannot save configuration: ${n}`))}renderToast(){return this.state.toast?_.createElement(T1,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:_.createElement("span",{id:"message-id"},this.state.toast),action:[_.createElement(hr,{key:"close","aria-label":"Close",color:"inherit",onClick:()=>this.setState({toast:""}),size:"large"},_.createElement(hi,null))]}):null}static onClose(){if(typeof window.parent<"u"&&window.parent)try{window.parent.$iframeDialog&&typeof window.parent.$iframeDialog.close=="function"?window.parent.$iframeDialog.close():window.parent.postMessage("close","*")}catch{window.parent.postMessage("close","*")}}renderError(){return this.state.errorText?_.createElement(q9,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}getIsChanged(e){e=e||this.state.native;const r=JSON.stringify(e)!==JSON.stringify(this.savedNative);return globalThis.changed=r,r}onLoadConfig(e){JSON.stringify(e)!==JSON.stringify(this.state.native)&&this.setState({native:e,changed:this.getIsChanged(e)})}setConfigurationError(e){this.state.isConfigurationError!==e&&this.setState({isConfigurationError:e})}renderSaveCloseButtons(){return!this.state.confirmClose&&!this.state.bottomButtons?null:_.createElement(_.Fragment,null,this.state.bottomButtons?_.createElement(_J,{theme:this.state.theme,newReact:this.newReact,noTextOnButtons:this.state.width==="xs"||this.state.width==="sm"||this.state.width==="md",changed:this.state.changed,onSave:e=>this.onSave(e),onClose:()=>{this.state.changed?this.setState({confirmClose:!0}):ti.onClose()},error:!!this.state.isConfigurationError}):null,this.state.confirmClose?_.createElement(U9,{title:z.t("ra_Please confirm"),text:z.t("ra_Some data are not stored. Discard?"),ok:z.t("ra_Discard"),cancel:z.t("ra_Cancel"),onClose:e=>this.setState({confirmClose:!1},()=>e&&ti.onClose())}):null)}_updateNativeValue(e,r,n){typeof r!="object"&&(r=r.split("."));const o=r.shift()||"";if(!r.length)return n&&typeof n=="object"?JSON.stringify(e[o])!==JSON.stringify(n)?(e[o]=n,!0):!1:e[o]!==n?(e[o]=n,!0):!1;if(e[o]=e[o]||{},typeof e[o]!="object")throw new Error(`attribute ${o} is no object, but ${typeof e[o]}`);return this._updateNativeValue(e[o],r,n)}updateNativeValue(e,r,n){const o=JSON.parse(JSON.stringify(this.state.native));if(this._updateNativeValue(o,e,r)){const a=this.getIsChanged(o);if(a!==this.state.changed)try{window.parent.postMessage(a?"change":"nochange","*")}catch{}this.setState({native:o,changed:a},n)}}showError(e){this.setState({errorText:e})}showToast(e){this.setState({toast:e})}renderHelperDialogs(){return _.createElement(_.Fragment,null,this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar())}render(){return this.state.loaded?_.createElement("div",{className:"App"},this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar()):_.createElement(W9,{themeType:this.state.themeType})}}var fn={},ac={},Og,rk;function H9(){if(rk)return Og;rk=1;var t=typeof zp=="object"&&zp&&zp.Object===Object&&zp;return Og=t,Og}var Dg,nk;function Zo(){if(nk)return Dg;nk=1;var t=H9(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return Dg=r,Dg}var Rg,ok;function Ed(){if(ok)return Rg;ok=1;var t=Zo(),e=t.Symbol;return Rg=e,Rg}var Mg,ak;function SWe(){if(ak)return Mg;ak=1;var t=Ed(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(s){var l=r.call(s,o),u=s[o];try{s[o]=void 0;var f=!0}catch{}var h=n.call(s);return f&&(l?s[o]=u:delete s[o]),h}return Mg=a,Mg}var Ag,ik;function xWe(){if(ik)return Ag;ik=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return Ag=r,Ag}var Ng,sk;function _s(){if(sk)return Ng;sk=1;var t=Ed(),e=SWe(),r=xWe(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function s(l){return l==null?l===void 0?o:n:a&&a in Object(l)?e(l):r(l)}return Ng=s,Ng}var Ig,ck;function So(){if(ck)return Ig;ck=1;var t=Array.isArray;return Ig=t,Ig}var Pg,lk;function Ea(){if(lk)return Pg;lk=1;function t(e){return e!=null&&typeof e=="object"}return Pg=t,Pg}var jg,uk;function kWe(){if(uk)return jg;uk=1;var t=_s(),e=So(),r=Ea(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return jg=o,jg}var zg,dk;function CWe(){if(dk)return zg;dk=1;function t(e){return function(r,n,o){for(var a=-1,s=Object(r),l=o(r),u=l.length;u--;){var f=l[e?u:++a];if(n(s[f],f,s)===!1)break}return r}}return zg=t,zg}var Lg,pk;function $We(){if(pk)return Lg;pk=1;var t=CWe(),e=t();return Lg=e,Lg}var Fg,fk;function EWe(){if(fk)return Fg;fk=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return Hg=e,Hg}var Vg,bk;function DWe(){if(bk)return Vg;bk=1;var t=_s(),e=_2(),r=Ea(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",m="[object RegExp]",y="[object Set]",v="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",k="[object DataView]",O="[object Float32Array]",T="[object Float64Array]",M="[object Int8Array]",A="[object Int16Array]",E="[object Int32Array]",D="[object Uint8Array]",j="[object Uint8ClampedArray]",P="[object Uint16Array]",$="[object Uint32Array]",L={};L[O]=L[T]=L[M]=L[A]=L[E]=L[D]=L[j]=L[P]=L[$]=!0,L[n]=L[o]=L[x]=L[a]=L[k]=L[s]=L[l]=L[u]=L[f]=L[h]=L[d]=L[m]=L[y]=L[v]=L[b]=!1;function W(H){return r(H)&&e(H.length)&&!!L[t(H)]}return Vg=W,Vg}var Gg,wk;function g2(){if(wk)return Gg;wk=1;function t(e){return function(r){return e(r)}}return Gg=t,Gg}var ku={exports:{}};ku.exports;var Sk;function y2(){return Sk||(Sk=1,(function(t,e){var r=H9(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,s=a&&r.process,l=(function(){try{var u=o&&o.require&&o.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}})();t.exports=l})(ku,ku.exports)),ku.exports}var Xg,xk;function X9(){if(xk)return Xg;xk=1;var t=DWe(),e=g2(),r=y2(),n=r&&r.isTypedArray,o=n?e(n):t;return Xg=o,Xg}var Jg,kk;function J9(){if(kk)return Jg;kk=1;var t=EWe(),e=V9(),r=So(),n=m2(),o=G9(),a=X9(),s=Object.prototype,l=s.hasOwnProperty;function u(f,h){var d=r(f),m=!d&&e(f),y=!d&&!m&&n(f),v=!d&&!m&&!y&&a(f),b=d||m||y||v,x=b?t(f.length,String):[],k=x.length;for(var O in f)(h||l.call(f,O))&&!(b&&(O=="length"||y&&(O=="offset"||O=="parent")||v&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||o(O,k)))&&x.push(O);return x}return Jg=u,Jg}var Yg,Ck;function v2(){if(Ck)return Yg;Ck=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return Yg=e,Yg}var Kg,$k;function Y9(){if($k)return Kg;$k=1;function t(e,r){return function(n){return e(r(n))}}return Kg=t,Kg}var Zg,Ek;function RWe(){if(Ek)return Zg;Ek=1;var t=Y9(),e=t(Object.keys,Object);return Zg=e,Zg}var Qg,Tk;function MWe(){if(Tk)return Qg;Tk=1;var t=v2(),e=RWe(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var s=[];for(var l in Object(a))n.call(a,l)&&l!="constructor"&&s.push(l);return s}return Qg=o,Qg}var ey,Ok;function dl(){if(Ok)return ey;Ok=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return ey=t,ey}var ty,Dk;function K9(){if(Dk)return ty;Dk=1;var t=_s(),e=dl(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function s(l){if(!e(l))return!1;var u=t(l);return u==n||u==o||u==r||u==a}return ty=s,ty}var ry,Rk;function Xh(){if(Rk)return ry;Rk=1;var t=K9(),e=_2();function r(n){return n!=null&&e(n.length)&&!t(n)}return ry=r,ry}var ny,Mk;function Td(){if(Mk)return ny;Mk=1;var t=J9(),e=MWe(),r=Xh();function n(o){return r(o)?t(o):e(o)}return ny=n,ny}var oy,Ak;function Z9(){if(Ak)return oy;Ak=1;var t=$We(),e=Td();function r(n,o){return n&&t(n,o,e)}return oy=r,oy}var ay,Nk;function Q9(){if(Nk)return ay;Nk=1;function t(e){return e}return ay=t,ay}var iy,Ik;function AWe(){if(Ik)return iy;Ik=1;var t=Q9();function e(r){return typeof r=="function"?r:t}return iy=e,iy}var sy,Pk;function b2(){if(Pk)return sy;Pk=1;var t=Z9(),e=AWe();function r(n,o){return n&&t(n,e(o))}return sy=r,sy}var cy,jk;function w2(){if(jk)return cy;jk=1;var t=Y9(),e=t(Object.getPrototypeOf,Object);return cy=e,cy}var ly,zk;function NWe(){if(zk)return ly;zk=1;var t=_s(),e=w2(),r=Ea(),n="[object Object]",o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,u=s.call(Object);function f(h){if(!r(h)||t(h)!=n)return!1;var d=e(h);if(d===null)return!0;var m=l.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&s.call(m)==u}return ly=f,ly}var uy,Lk;function e7(){if(Lk)return uy;Lk=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return _y=e,_y}var gy,Vk;function LWe(){if(Vk)return gy;Vk=1;var t=Jh();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return gy=e,gy}var yy,Gk;function Yh(){if(Gk)return yy;Gk=1;var t=IWe(),e=PWe(),r=jWe(),n=zWe(),o=LWe();function a(s){var l=-1,u=s==null?0:s.length;for(this.clear();++ly))return!1;var b=d.get(s),x=d.get(l);if(b&&x)return b==l&&x==s;var k=-1,O=!0,T=u&o?new t:void 0;for(d.set(s,l),d.set(l,s);++k0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,l.default)(d,function(y){Array.isArray(y)?h(y).map(function(v){return m.push(v)}):(0,a.default)(y)?(0,n.default)(y,function(v,b){v===!0&&m.push(b),m.push(b+"-"+v)}):(0,e.default)(y)&&m.push(y)}),m};return ac.default=f,ac}var ic={},H0,w$;function qUe(){if(w$)return H0;w$=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=u.default&&(0,n.default)(u.default)||{};return f.map(function(d){var m=u[d];return m&&(0,e.default)(m,function(y,v){h[v]||(h[v]={}),h[v]=o({},h[v],m[v])}),d}),h};return ic.default=s,ic}var sc={},Q$;function _qe(){if(Q$)return sc;Q$=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.autoprefix=void 0;var t=b2(),e=n(t),r=Object.assign||function(s){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:"span";return(function(d){s(m,d);function m(){var y,v,b,x;o(this,m);for(var k=arguments.length,O=Array(k),T=0;T1&&arguments[1]!==void 0?arguments[1]:"span";return(function(d){s(m,d);function m(){var y,v,b,x;o(this,m);for(var k=arguments.length,O=Array(k),T=0;T1&&arguments[1]!==void 0?arguments[1]:!0;o[l]=u};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return of.default=t,of}var n6;function bqe(){if(n6)return fn;n6=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.ReactCSS=fn.loop=fn.handleActive=fn.handleHover=fn.hover=void 0;var t=UUe(),e=m(t),r=mqe(),n=m(r),o=_qe(),a=m(o),s=gqe(),l=m(s),u=yqe(),f=m(u),h=vqe(),d=m(h);function m(v){return v&&v.__esModule?v:{default:v}}fn.hover=l.default,fn.handleHover=l.default,fn.handleActive=f.default,fn.loop=d.default;var y=fn.ReactCSS=function(b){for(var x=arguments.length,k=Array(x>1?x-1:0),O=1;Ol?m=1:m=Math.round(d*100/l)/100,r.a!==m)return{h:r.h,s:r.s,l:r.l,a:m,source:"rgb"}}else{var y=void 0;if(h<0?y=0:h>s?y=1:y=Math.round(h*100/s)/100,o!==y)return{h:r.h,s:r.s,l:r.l,a:y,source:"rgb"}}return null},wv={},Sqe=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var s=a.getContext("2d");return s?(s.fillStyle=e,s.fillRect(0,0,a.width,a.height),s.fillStyle=r,s.fillRect(0,0,n,n),s.translate(n,n),s.fillRect(0,0,n,n),a.toDataURL()):null},xqe=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(wv[a])return wv[a];var s=Sqe(e,r,n,o);return wv[a]=s,s},o6=Object.assign||function(t){for(var e=1;e-1},jqe=function(e){return Number(String(e).replace(/%/g,""))},zqe=1,vt=(function(t){Mqe(e,t);function e(r){Dqe(this,e);var n=Rqe(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var a=jqe(o.target.value);if(!isNaN(a)&&Pqe(o.keyCode)){var s=n.getArrowOffset(),l=o.keyCode===_7?a+s:a-s;n.setUpdatedValue(l,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var a=Math.round(n.props.value+o.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+zqe++,n}return Tqe(e,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return Oqe({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Aqe}},{key:"setUpdatedValue",value:function(n,o){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=nt({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return _.createElement("div",{style:o.wrap},_.createElement("input",{id:this.inputId,style:o.input,ref:function(s){return n.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?_.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e})(R.PureComponent||R.Component),Lqe=function(e,r,n,o){var a=o.clientWidth,s=o.clientHeight,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(o.getBoundingClientRect().left+window.pageXOffset),h=u-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var d=void 0;if(h<0)d=359;else if(h>s)d=0;else{var m=-(h*100/s)+100;d=360*m/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var y=void 0;if(f<0)y=0;else if(f>a)y=359;else{var v=f*100/a;y=360*v/100}if(n.h!==y)return{h:y,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},Fqe=(function(){function t(e,r){for(var n=0;n-1}function Jqe(t,e){var r=this.__data__,n=rm(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Ta(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=rVe}function hl(t){return t!=null&&P2(t.length)&&!A2(t)}function nVe(t){return _i(t)&&hl(t)}function oVe(){return!1}var k7=typeof Mn=="object"&&Mn&&!Mn.nodeType&&Mn,f6=k7&&typeof An=="object"&&An&&!An.nodeType&&An,aVe=f6&&f6.exports===k7,h6=aVe?xo.Buffer:void 0,iVe=h6?h6.isBuffer:void 0,eh=iVe||oVe,sVe="[object Object]",cVe=Function.prototype,lVe=Object.prototype,C7=cVe.toString,uVe=lVe.hasOwnProperty,dVe=C7.call(Object);function pVe(t){if(!_i(t)||ys(t)!=sVe)return!1;var e=S7(t);if(e===null)return!0;var r=uVe.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&C7.call(r)==dVe}var fVe="[object Arguments]",hVe="[object Array]",mVe="[object Boolean]",_Ve="[object Date]",gVe="[object Error]",yVe="[object Function]",vVe="[object Map]",bVe="[object Number]",wVe="[object Object]",SVe="[object RegExp]",xVe="[object Set]",kVe="[object String]",CVe="[object WeakMap]",$Ve="[object ArrayBuffer]",EVe="[object DataView]",TVe="[object Float32Array]",OVe="[object Float64Array]",DVe="[object Int8Array]",RVe="[object Int16Array]",MVe="[object Int32Array]",AVe="[object Uint8Array]",NVe="[object Uint8ClampedArray]",IVe="[object Uint16Array]",PVe="[object Uint32Array]",qt={};qt[TVe]=qt[OVe]=qt[DVe]=qt[RVe]=qt[MVe]=qt[AVe]=qt[NVe]=qt[IVe]=qt[PVe]=!0;qt[fVe]=qt[hVe]=qt[$Ve]=qt[mVe]=qt[EVe]=qt[_Ve]=qt[gVe]=qt[yVe]=qt[vVe]=qt[bVe]=qt[wVe]=qt[SVe]=qt[xVe]=qt[kVe]=qt[CVe]=!1;function jVe(t){return _i(t)&&P2(t.length)&&!!qt[ys(t)]}function zVe(t){return function(e){return t(e)}}var $7=typeof Mn=="object"&&Mn&&!Mn.nodeType&&Mn,Lu=$7&&typeof An=="object"&&An&&!An.nodeType&&An,LVe=Lu&&Lu.exports===$7,xv=LVe&&g7.process,m6=(function(){try{var t=Lu&&Lu.require&&Lu.require("util").types;return t||xv&&xv.binding&&xv.binding("util")}catch{}})(),_6=m6&&m6.isTypedArray,j2=_6?zVe(_6):jVe;function X1(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var FVe=Object.prototype,BVe=FVe.hasOwnProperty;function WVe(t,e,r){var n=t[e];(!(BVe.call(t,e)&&Od(n,r))||r===void 0&&!(e in t))&&N2(t,e,r)}function UVe(t,e,r,n){var o=!r;r||(r={});for(var a=-1,s=e.length;++a-1&&t%1==0&&t0){if(++e>=aGe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var lGe=cGe(oGe);function uGe(t,e){return lGe(rGe(t,e,om),t+"")}function dGe(t,e,r){if(!eo(r))return!1;var n=typeof e;return(n=="number"?hl(r)&&z2(e,r.length):n=="string"&&e in r)?Od(r[e],t):!1}function pGe(t){return uGe(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,s&&dGe(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++n=e||D<0||d&&j>=a}function k(){var E=kv();if(x(E))return O(E);l=setTimeout(k,b(E))}function O(E){return l=void 0,m&&n?y(E):(n=o=void 0,s)}function T(){l!==void 0&&clearTimeout(l),f=0,n=u=o=l=void 0}function M(){return l===void 0?s:O(kv())}function A(){var E=kv(),D=x(E);if(n=arguments,o=this,u=E,D){if(l===void 0)return v(u);if(d)return clearTimeout(l),l=setTimeout(k,e),y(u)}return l===void 0&&(l=setTimeout(k,e)),s}return A.cancel=T,A.flush=M,A}var CGe="Expected a function";function $Ge(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(CGe);return eo(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),D7(t,e,{leading:n,maxWait:e,trailing:o})}var EGe=function(e,r,n){var o=n.getBoundingClientRect(),a=o.width,s=o.height,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(n.getBoundingClientRect().left+window.pageXOffset),h=u-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),h<0?h=0:h>s&&(h=s);var d=f/a,m=1-h/s;return{h:r.h,s:d,v:m,a:r.a,source:"hsv"}},TGe=(function(){function t(e,r){for(var n=0;n=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return ze(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(KGe,arguments)},brighten:function(){return this._applyModification(ZGe,arguments)},darken:function(){return this._applyModification(QGe,arguments)},desaturate:function(){return this._applyModification(XGe,arguments)},saturate:function(){return this._applyModification(JGe,arguments)},greyscale:function(){return this._applyModification(YGe,arguments)},spin:function(){return this._applyModification(eXe,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(nXe,arguments)},complement:function(){return this._applyCombination(tXe,arguments)},monochromatic:function(){return this._applyCombination(oXe,arguments)},splitcomplement:function(){return this._applyCombination(rXe,arguments)},triad:function(){return this._applyCombination(k6,[3])},tetrad:function(){return this._applyCombination(k6,[4])}};ze.fromRatio=function(t,e){if(th(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=$u(t[n]));t=r}return ze(t,e)};function UGe(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,s=!1,l=!1;return typeof t=="string"&&(t=lXe(t)),th(t)=="object"&&(da(t.r)&&da(t.g)&&da(t.b)?(e=qGe(t.r,t.g,t.b),s=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):da(t.h)&&da(t.s)&&da(t.v)?(n=$u(t.s),o=$u(t.v),e=VGe(t.h,n,o),s=!0,l="hsv"):da(t.h)&&da(t.s)&&da(t.l)&&(n=$u(t.s),a=$u(t.l),e=HGe(t.h,n,a),s=!0,l="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=M7(r),{ok:s,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function qGe(t,e,r){return{r:Zt(t,255)*255,g:Zt(e,255)*255,b:Zt(r,255)*255}}function b6(t,e,r){t=Zt(t,255),e=Zt(e,255),r=Zt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,s,l=(n+o)/2;if(n==o)a=s=0;else{var u=n-o;switch(s=l>.5?u/(2-n-o):u/(n+o),n){case t:a=(e-r)/u+(e1&&(d-=1),d<1/6?f+(h-f)*6*d:d<1/2?h:d<2/3?f+(h-f)*(2/3-d)*6:f}if(e===0)n=o=a=r;else{var l=r<.5?r*(1+e):r+e-r*e,u=2*r-l;n=s(u,l,t+1/3),o=s(u,l,t),a=s(u,l,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function w6(t,e,r){t=Zt(t,255),e=Zt(e,255),r=Zt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,s,l=n,u=n-o;if(s=n===0?0:u/n,n==o)a=0;else{switch(n){case t:a=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(ze(n));return a}function oXe(t,e){e=e||6;for(var r=ze(t).toHsv(),n=r.h,o=r.s,a=r.v,s=[],l=1/e;e--;)s.push(ze({h:n,s:o,v:a})),a=(a+l)%1;return s}ze.mix=function(t,e,r){r=r===0?0:r||50;var n=ze(t).toRgb(),o=ze(e).toRgb(),a=r/100,s={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return ze(s)};ze.readability=function(t,e){var r=ze(t),n=ze(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};ze.isReadable=function(t,e,r){var n=ze.readability(t,e),o,a;switch(a=!1,o=uXe(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};ze.mostReadable=function(t,e,r){var n=null,o=0,a,s,l,u;r=r||{},s=r.includeFallbackColors,l=r.level,u=r.size;for(var f=0;fo&&(o=a,n=ze(e[f]));return ze.isReadable(t,n,{level:l,size:u})||!s?n:(r.includeFallbackColors=!1,ze.mostReadable(t,["#fff","#000"],r))};var J1=ze.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},aXe=ze.hexNames=iXe(J1);function iXe(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function M7(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Zt(t,e){sXe(t)&&(t="100%");var r=cXe(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function sm(t){return Math.min(1,Math.max(0,t))}function Tn(t){return parseInt(t,16)}function sXe(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function cXe(t){return typeof t=="string"&&t.indexOf("%")!=-1}function ho(t){return t.length==1?"0"+t:""+t}function $u(t){return t<=1&&(t=t*100+"%"),t}function A7(t){return Math.round(parseFloat(t)*255).toString(16)}function C6(t){return Tn(t)/255}var uo=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function da(t){return!!uo.CSS_UNIT.exec(t)}function lXe(t){t=t.replace(BGe,"").replace(WGe,"").toLowerCase();var e=!1;if(J1[t])t=J1[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=uo.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=uo.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=uo.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=uo.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=uo.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=uo.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=uo.hex8.exec(t))?{r:Tn(r[1]),g:Tn(r[2]),b:Tn(r[3]),a:C6(r[4]),format:e?"name":"hex8"}:(r=uo.hex6.exec(t))?{r:Tn(r[1]),g:Tn(r[2]),b:Tn(r[3]),format:e?"name":"hex"}:(r=uo.hex4.exec(t))?{r:Tn(r[1]+""+r[1]),g:Tn(r[2]+""+r[2]),b:Tn(r[3]+""+r[3]),a:C6(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=uo.hex3.exec(t))?{r:Tn(r[1]+""+r[1]),g:Tn(r[2]+""+r[2]),b:Tn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function uXe(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var $6=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return FGe(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var s=/^\d+%$/;s.test(e[a])&&(o+=1)}}),n===o?e:!1},Eu=function(e,r){var n=e.hex?ze(e.hex):ze(e),o=n.toHsl(),a=n.toHsv(),s=n.toRgb(),l=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var u=l==="000000"&&s.a===0;return{hsl:o,hex:u?"transparent":"#"+l,rgb:s,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Si=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&ze(e).isValid()},F2=function(e){if(!e)return"#fff";var r=Eu(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},Cv=function(e,r){var n=e.replace("°","");return ze(r+" ("+n+")")._ok},su=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return(function(n){yXe(o,n);function o(){var a,s,l,u;gXe(this,o);for(var f=arguments.length,h=Array(f),d=0;dl))return!1;var f=a.get(t),h=a.get(e);if(f&&h)return f==e&&h==t;var d=-1,m=!0,y=r&DXe?new rh:void 0;for(a.set(t,e),a.set(e,t);++d=0||Object.prototype.hasOwnProperty.call(s,f)&&(u[f]=s[f]);return u}var a=24;return sf.default=function(s){var l=s.fill,u=l===void 0?"currentColor":l,f=s.width,h=f===void 0?a:f,d=s.height,m=d===void 0?a:d,y=s.style,v=y===void 0?{}:y,b=o(s,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:m},v)},b),r.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},sf}var WJe=BJe();const UJe=Ca(WJe);var qJe=(function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(W6(o.s)?n.props.hsl.s:o.s),l:Number(W6(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return qJe(e,[{key:"render",value:function(){var n=this,o=nt({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),a=void 0;return this.state.view==="hex"?a=_.createElement("div",{style:o.fields,className:"flexbox-fix"},_.createElement("div",{style:o.field},_.createElement(vt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=_.createElement("div",{style:o.fields,className:"flexbox-fix"},_.createElement("div",{style:o.field},_.createElement(vt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),_.createElement("div",{style:o.field},_.createElement(vt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),_.createElement("div",{style:o.field},_.createElement(vt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),_.createElement("div",{style:o.alpha},_.createElement(vt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=_.createElement("div",{style:o.fields,className:"flexbox-fix"},_.createElement("div",{style:o.field},_.createElement(vt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),_.createElement("div",{style:o.field},_.createElement(vt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),_.createElement("div",{style:o.field},_.createElement(vt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),_.createElement("div",{style:o.alpha},_.createElement(vt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),_.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,_.createElement("div",{style:o.toggle},_.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(l){return n.icon=l}},_.createElement(UJe,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e})(_.Component);U7.defaultProps={view:"hex"};var q6=function(){var e=nt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return _.createElement("div",{style:e.picker})},XJe=function(){var e=nt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return _.createElement("div",{style:e.picker})},V2=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,s=e.hsl,l=e.hsv,u=e.hex,f=e.renderers,h=e.styles,d=h===void 0?{}:h,m=e.className,y=m===void 0?"":m,v=e.defaultView,b=nt(Sn({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},d),{disableAlpha:o});return _.createElement("div",{style:b.picker,className:"chrome-picker "+y},_.createElement("div",{style:b.saturation},_.createElement(im,{style:b.Saturation,hsl:s,hsv:l,pointer:XJe,onChange:n})),_.createElement("div",{style:b.body},_.createElement("div",{style:b.controls,className:"flexbox-fix"},_.createElement("div",{style:b.color},_.createElement("div",{style:b.swatch},_.createElement("div",{style:b.active}),_.createElement(pl,{renderers:f}))),_.createElement("div",{style:b.toggles},_.createElement("div",{style:b.hue},_.createElement(fl,{style:b.Hue,hsl:s,pointer:q6,onChange:n})),_.createElement("div",{style:b.alpha},_.createElement(M2,{style:b.Alpha,rgb:a,hsl:s,pointer:q6,renderers:f,onChange:n})))),_.createElement(U7,{rgb:a,hsl:s,hex:u,view:v,onChange:n,disableAlpha:o})))};V2.propTypes={width:ce.oneOfType([ce.string,ce.number]),disableAlpha:ce.bool,styles:ce.object,defaultView:ce.oneOf(["hex","rgb","hsl"])};V2.defaultProps={width:225,disableAlpha:!1,styles:{}};xn(V2);var JJe=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,s=e.active,l=nt({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:F2(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return _.createElement(ws,{style:l.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},_.createElement("div",{style:l.dot}))},YJe=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=nt({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(u,f){u.r||u.g||u.b?o({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},f):o({hex:u.hex,source:"hex"},f)};return _.createElement("div",{style:a.fields,className:"flexbox-fix"},_.createElement("div",{style:a.active}),_.createElement(vt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:s}),_.createElement(vt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),_.createElement(vt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),_.createElement(vt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}))},G2=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,s=e.rgb,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=nt(Sn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),m=function(v,b){v.hex?Si(v.hex)&&r({hex:v.hex,source:"hex"},b):r(v,b)};return _.createElement(Dd,{style:d.Compact,styles:u},_.createElement("div",{style:d.compact,className:"compact-picker "+h},_.createElement("div",null,Ss(o,function(y){return _.createElement(JJe,{key:y,color:y,active:y.toLowerCase()===a,onClick:m,onSwatchHover:n})}),_.createElement("div",{style:d.clear})),_.createElement(YJe,{hex:a,rgb:s,onChange:m})))};G2.propTypes={colors:ce.arrayOf(ce.string),styles:ce.object};G2.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};xn(G2);var KJe=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=nt({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:r});return _.createElement("div",{style:l.swatch},_.createElement(ws,{color:n,onClick:o,onHover:a,focusStyle:s}))};const ZJe=R2.handleHover(KJe);var X2=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,s=e.triangle,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=nt(Sn({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right","bottom-left-triangle":s==="bottom-left","bottom-right-triangle":s==="bottom-right"}),m=function(v,b){return o({hex:v,source:"hex"},b)};return _.createElement("div",{style:d.card,className:"github-picker "+h},_.createElement("div",{style:d.triangleShadow}),_.createElement("div",{style:d.triangle}),Ss(n,function(y){return _.createElement(ZJe,{color:y,key:y,onClick:m,onSwatchHover:a})}))};X2.propTypes={width:ce.oneOfType([ce.string,ce.number]),colors:ce.arrayOf(ce.string),triangle:ce.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:ce.object};X2.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};xn(X2);var QJe=function(e){var r=e.direction,n=nt({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return _.createElement("div",{style:n.picker})},eYe=Object.assign||function(t){for(var e=1;e.5});return _.createElement("div",{style:n.picker})},oYe=function(){var e=nt({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return _.createElement("div",{style:e.pointer},_.createElement("div",{style:e.left},_.createElement("div",{style:e.leftInside})),_.createElement("div",{style:e.right},_.createElement("div",{style:e.rightInside})))},H6=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,s=nt({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return _.createElement("div",{style:s.button,onClick:r},n||o)},aYe=function(e){var r=e.rgb,n=e.currentColor,o=nt({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return _.createElement("div",null,_.createElement("div",{style:o.label},"new"),_.createElement("div",{style:o.swatches},_.createElement("div",{style:o.new}),_.createElement("div",{style:o.current})),_.createElement("div",{style:o.label},"current"))},iYe=(function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},d))};return _.createElement("div",{style:l.fields,className:"flexbox-fix"},_.createElement("div",{style:l.double},_.createElement(vt,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:u})),_.createElement("div",{style:l.single},_.createElement(vt,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:l.single},_.createElement(vt,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:l.single},_.createElement(vt,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:l.alpha},_.createElement(vt,{style:{input:l.input,label:l.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},dYe=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(s,f)&&(u[f]=s[f]);return u}var a=24;return cf.default=function(s){var l=s.fill,u=l===void 0?"currentColor":l,f=s.width,h=f===void 0?a:f,d=s.height,m=d===void 0?a:d,y=s.style,v=y===void 0?{}:y,b=o(s,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:m},v)},b),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},cf}var _Ye=mYe();const gYe=Ca(_Ye);var yYe=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,s=e.first,l=e.last,u=e.active,f=nt({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:F2(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:l,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return _.createElement(ws,{color:r,style:f.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},_.createElement("div",{style:f.check},_.createElement(gYe,null)))},vYe=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,s=nt({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return _.createElement("div",{style:s.group},Ss(o,function(l,u){return _.createElement(yYe,{key:l,color:l,active:l.toLowerCase()===a,first:u===0,last:u===o.length-1,onClick:r,onSwatchHover:n})}))},Q2=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,s=e.colors,l=e.hex,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,m=nt(Sn({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),y=function(b,x){return o({hex:b,source:"hex"},x)};return _.createElement("div",{style:m.picker,className:"swatches-picker "+d},_.createElement(Dd,null,_.createElement("div",{style:m.overflow},_.createElement("div",{style:m.body},Ss(s,function(v){return _.createElement(vYe,{key:v.toString(),group:v,active:l,onClick:y,onSwatchHover:a})}),_.createElement("div",{style:m.clear})))))};Q2.propTypes={width:ce.oneOfType([ce.string,ce.number]),height:ce.oneOfType([ce.string,ce.number]),colors:ce.arrayOf(ce.arrayOf(ce.string)),styles:ce.object};Q2.defaultProps={width:320,height:240,colors:[[_c[900],_c[700],_c[500],_c[300],_c[100]],[gc[900],gc[700],gc[500],gc[300],gc[100]],[yc[900],yc[700],yc[500],yc[300],yc[100]],[vc[900],vc[700],vc[500],vc[300],vc[100]],[bc[900],bc[700],bc[500],bc[300],bc[100]],[wc[900],wc[700],wc[500],wc[300],wc[100]],[Sc[900],Sc[700],Sc[500],Sc[300],Sc[100]],[xc[900],xc[700],xc[500],xc[300],xc[100]],[kc[900],kc[700],kc[500],kc[300],kc[100]],["#194D33",Tu[700],Tu[500],Tu[300],Tu[100]],[Cc[900],Cc[700],Cc[500],Cc[300],Cc[100]],[$c[900],$c[700],$c[500],$c[300],$c[100]],[Ec[900],Ec[700],Ec[500],Ec[300],Ec[100]],[Tc[900],Tc[700],Tc[500],Tc[300],Tc[100]],[Oc[900],Oc[700],Oc[500],Oc[300],Oc[100]],[Dc[900],Dc[700],Dc[500],Dc[300],Dc[100]],[Rc[900],Rc[700],Rc[500],Rc[300],Rc[100]],[Mc[900],Mc[700],Mc[500],Mc[300],Mc[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};xn(Q2);var ew=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,s=e.width,l=e.triangle,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,m=nt(Sn({default:{card:{width:s,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},f),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right"}),y=function(b,x){Si(b)&&r({hex:b,source:"hex"},x)};return _.createElement("div",{style:m.card,className:"twitter-picker "+d},_.createElement("div",{style:m.triangleShadow}),_.createElement("div",{style:m.triangle}),_.createElement("div",{style:m.body},Ss(a,function(v,b){return _.createElement(ws,{key:b,color:v,hex:v,style:m.swatch,onClick:y,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),_.createElement("div",{style:m.hash},"#"),_.createElement(vt,{label:null,style:{input:m.input},value:o.replace("#",""),onChange:y}),_.createElement("div",{style:m.clear})))};ew.propTypes={width:ce.oneOfType([ce.string,ce.number]),triangle:ce.oneOf(["hide","top-left","top-right"]),colors:ce.arrayOf(ce.string),styles:ce.object};ew.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};xn(ew);var tw=function(e){var r=nt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(e.hsl.s*100)+"%, "+Math.round(e.hsl.l*100)+"%)"}}});return _.createElement("div",{style:r.picker})};tw.propTypes={hsl:ce.shape({h:ce.number,s:ce.number,l:ce.number,a:ce.number})};tw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var rw=function(e){var r=nt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return _.createElement("div",{style:r.picker})};rw.propTypes={hsl:ce.shape({h:ce.number,s:ce.number,l:ce.number,a:ce.number})};rw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var bYe=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,s=e.hsv,l=function(y,v){if(y.hex)Si(y.hex)&&r({hex:y.hex,source:"hex"},v);else if(y.rgb){var b=y.rgb.split(",");Cv(y.rgb,"rgb")&&r({r:b[0],g:b[1],b:b[2],a:1,source:"rgb"},v)}else if(y.hsv){var x=y.hsv.split(",");Cv(y.hsv,"hsv")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),x[1]==1?x[1]=.01:x[2]==1&&(x[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsv"},v))}else if(y.hsl){var k=y.hsl.split(",");Cv(y.hsl,"hsl")&&(k[2]=k[2].replace("%",""),k[1]=k[1].replace("%",""),k[0]=k[0].replace("°",""),d[1]==1?d[1]=.01:d[2]==1&&(d[2]=.01),r({h:Number(k[0]),s:Number(k[1]),v:Number(k[2]),source:"hsl"},v))}},u=nt({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),f=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",d=Math.round(s.h)+"°, "+Math.round(s.s*100)+"%, "+Math.round(s.v*100)+"%";return _.createElement("div",{style:u.wrap,className:"flexbox-fix"},_.createElement("div",{style:u.fields},_.createElement("div",{style:u.double},_.createElement(vt,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:l})),_.createElement("div",{style:u.column},_.createElement("div",{style:u.single},_.createElement(vt,{style:{input:u.input2,label:u.label2},label:"rgb",value:f,onChange:l})),_.createElement("div",{style:u.single},_.createElement(vt,{style:{input:u.input2,label:u.label2},label:"hsv",value:d,onChange:l})),_.createElement("div",{style:u.single},_.createElement(vt,{style:{input:u.input2,label:u.label2},label:"hsl",value:h,onChange:l})))))},nw=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,s=e.hsv,l=e.hex,u=e.header,f=e.styles,h=f===void 0?{}:f,d=e.className,m=d===void 0?"":d,y=nt(Sn({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+o.r+", "+o.g+", "+o.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return _.createElement("div",{style:y.picker,className:"google-picker "+m},_.createElement("div",{style:y.head},u),_.createElement("div",{style:y.swatch}),_.createElement("div",{style:y.saturation},_.createElement(im,{hsl:a,hsv:s,pointer:tw,onChange:n})),_.createElement("div",{style:y.body},_.createElement("div",{style:y.controls,className:"flexbox-fix"},_.createElement("div",{style:y.hue},_.createElement(fl,{style:y.Hue,hsl:a,radius:"4px",pointer:rw,onChange:n}))),_.createElement(bYe,{rgb:o,hsl:a,hex:l,hsv:s,onChange:n})))};nw.propTypes={width:ce.oneOfType([ce.string,ce.number]),styles:ce.object,header:ce.string};nw.defaultProps={width:652,styles:{},header:"Color picker"};xn(nw);var Ev={exports:{}},G6;function Qo(){return G6||(G6=1,(function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=u(515),h=(function(){function d(m,y,v){y===void 0&&(y=!0),v===void 0&&(v=!1),this.expression=m,this.dayOfWeekStartIndexZero=y,this.monthStartIndexZero=v}return d.prototype.parse=function(){var m,y,v=(m=this.expression)!==null&&m!==void 0?m:"";if(v==="@reboot")return y=["@reboot","","","","","",""],y;if(v.startsWith("@")){var b=this.parseSpecial(this.expression);y=this.extractParts(b)}else y=this.extractParts(this.expression);return this.normalize(y),this.validate(y),y},d.prototype.parseSpecial=function(m){var y={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},v=y[m];if(!v)throw new Error("Unknown special expression.");return v},d.prototype.extractParts=function(m){if(!this.expression)throw new Error("cron expression is empty");for(var y=m.trim().split(/[ ]+/),v=0;v7)throw new Error("Expression has ".concat(y.length," parts; too many!"));return y},d.prototype.normalize=function(m){var y=this;if(m[3]=m[3].replace("?","*"),m[5]=m[5].replace("?","*"),m[2]=m[2].replace("?","*"),m[0].indexOf("0/")==0&&(m[0]=m[0].replace("0/","*/")),m[1].indexOf("0/")==0&&(m[1]=m[1].replace("0/","*/")),m[2].indexOf("0/")==0&&(m[2]=m[2].replace("0/","*/")),m[3].indexOf("1/")==0&&(m[3]=m[3].replace("1/","*/")),m[4].indexOf("1/")==0&&(m[4]=m[4].replace("1/","*/")),m[6].indexOf("1/")==0&&(m[6]=m[6].replace("1/","*/")),m[5]=m[5].replace(/(^\d)|([^#/\s]\d)/g,function(A){var E=A.replace(/\D/,""),D=E;return y.dayOfWeekStartIndexZero?E=="7"&&(D="0"):D=(parseInt(E)-1).toString(),A.replace(E,D)}),m[5]=="L"&&(m[5]="6"),m[3]=="?"&&(m[3]="*"),m[3].indexOf("W")>-1&&(m[3].indexOf(",")>-1||m[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var v={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var b in v)m[5]=m[5].replace(new RegExp(b,"gi"),v[b].toString());m[4]=m[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(A){var E=A.replace(/\D/,""),D=E;return y.monthStartIndexZero&&(D=(parseInt(E)+1).toString()),A.replace(E,D)});var x={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var k in x)m[4]=m[4].replace(new RegExp(k,"gi"),x[k].toString());m[0]=="0"&&(m[0]=""),!/\*|\-|\,|\//.test(m[2])&&(/\*|\//.test(m[1])||/\*|\//.test(m[0]))&&(m[2]+="-".concat(m[2]));for(var O=0;O-1&&!/^\*|\-|\,/.test(m[O])){var T=null;switch(O){case 4:T="12";break;case 5:T="6";break;case 6:T="9999";break;default:T=null;break}if(T!==null){var M=m[O].split("/");m[O]="".concat(M[0],"-").concat(T,"/").concat(M[1])}}},d.prototype.validate=function(m){var y="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(m[0],y),this.validateOnlyExpectedCharactersFound(m[1],y),this.validateOnlyExpectedCharactersFound(m[2],y),this.validateOnlyExpectedCharactersFound(m[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(m[4],y),this.validateOnlyExpectedCharactersFound(m[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(m[6],y),this.validateAnyRanges(m)},d.prototype.validateAnyRanges=function(m){f.default.secondRange(m[0]),f.default.minuteRange(m[1]),f.default.hourRange(m[2]),f.default.dayOfMonthRange(m[3]),f.default.monthRange(m[4],this.monthStartIndexZero),f.default.dayOfWeekRange(m[5],this.dayOfWeekStartIndexZero)},d.prototype.validateOnlyExpectedCharactersFound=function(m,y){var v=m.match(new RegExp("[^".concat(y,"]+"),"gi"));if(v&&v.length)throw new Error("Expression contains invalid values: '".concat(v.toString(),"'"))},d})();l.CronParser=h},333(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=u(823),h=u(949),d=(function(){function m(y,v){if(this.expression=y,this.options=v,this.expressionParts=new Array(5),!this.options.locale&&m.defaultLocale&&(this.options.locale=m.defaultLocale),!m.locales[this.options.locale]){var b=Object.keys(m.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(b,"'.")),this.options.locale=b}this.i18n=m.locales[this.options.locale],v.use24HourTimeFormat===void 0&&(v.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return m.toString=function(y,v){var b=v===void 0?{}:v,x=b.throwExceptionOnParseError,k=x===void 0?!0:x,O=b.verbose,T=O===void 0?!1:O,M=b.dayOfWeekStartIndexZero,A=M===void 0?!0:M,E=b.monthStartIndexZero,D=E===void 0?!1:E,j=b.use24HourTimeFormat,P=b.trimHoursLeadingZero,$=P===void 0?!1:P,L=b.locale,W=L===void 0?null:L,H=b.logicalAndDayFields,V=H===void 0?!1:H,q={throwExceptionOnParseError:k,verbose:T,dayOfWeekStartIndexZero:A,monthStartIndexZero:D,use24HourTimeFormat:j,trimHoursLeadingZero:$,locale:W,logicalAndDayFields:V};q.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var J=new m(y,q);return J.getFullDescription()},m.initialize=function(y,v){v===void 0&&(v="en"),m.specialCharacters=["/","-",",","*"],m.defaultLocale=v,y.load(m.locales)},m.prototype.getFullDescription=function(){var y,v,b="";try{var x=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=x.parse(),this.expressionParts[0]==="@reboot")return((v=(y=this.i18n).atReboot)===null||v===void 0?void 0:v.call(y))||"Run once, at startup";var k=this.getTimeOfDayDescription(),O=this.getDayOfMonthDescription(),T=this.getMonthDescription(),M=this.getDayOfWeekDescription(),A=this.getYearDescription();b+=k+O+M+T+A,b=this.transformVerbosity(b,!!this.options.verbose),b=b.charAt(0).toLocaleUpperCase()+b.substr(1)}catch(E){if(!this.options.throwExceptionOnParseError)b=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(E)}return b},m.prototype.getTimeOfDayDescription=function(){var y=this.expressionParts[0],v=this.expressionParts[1],b=this.expressionParts[2],x="";if(!f.StringUtilities.containsAny(v,m.specialCharacters)&&!f.StringUtilities.containsAny(b,m.specialCharacters)&&!f.StringUtilities.containsAny(y,m.specialCharacters))x+=this.i18n.atSpace()+this.formatTime(b,v,y);else if(!y&&v.indexOf("-")>-1&&!(v.indexOf(",")>-1)&&!(v.indexOf("/")>-1)&&!f.StringUtilities.containsAny(b,m.specialCharacters)){var k=v.split("-");x+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(b,k[0],""),this.formatTime(b,k[1],""))}else if(!y&&b.indexOf(",")>-1&&b.indexOf("-")==-1&&b.indexOf("/")==-1&&!f.StringUtilities.containsAny(v,m.specialCharacters)){var O=b.split(",");x+=this.i18n.at();for(var T=0;T-1?O=x.substring(0,x.indexOf("#")):x.indexOf("L")>-1&&(O=O.replace("L",""));var T=parseInt(O),M=y.i18n.daysOfTheWeekInCase?y.i18n.daysOfTheWeekInCase(k)[T]:v[T];if(x.indexOf("#")>-1){var A=null,E=x.substring(x.indexOf("#")+1),D=x.substring(0,x.indexOf("#"));switch(E){case"1":A=y.i18n.first(D);break;case"2":A=y.i18n.second(D);break;case"3":A=y.i18n.third(D);break;case"4":A=y.i18n.fourth(D);break;case"5":A=y.i18n.fifth(D);break}M=A+" "+M}return M},function(x){return parseInt(x)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0DaysOfTheWeek(x),x)},function(x){var k=x.substring(0,x.indexOf("-")),O=y.expressionParts[3]!="*";return O?y.i18n.commaAndX0ThroughX1(k):y.i18n.commaX0ThroughX1(k)},function(x){var k=null;if(x.indexOf("#")>-1){var O=x.substring(x.indexOf("#")+1),T=x.substring(0,x.indexOf("#"));k=y.i18n.commaOnThe(O,T).trim()+y.i18n.spaceX0OfTheMonth()}else if(x.indexOf("L")>-1)k=y.i18n.commaOnTheLastX0OfTheMonth(x.replace("L",""));else{var M=y.expressionParts[3]!="*";M?y.options.logicalAndDayFields?k=y.i18n.commaOnlyOnX0(x):k=y.i18n.commaAndOnX0():k=y.i18n.commaOnlyOnX0(x)}return k}),b},m.prototype.getMonthDescription=function(){var y=this,v=this.i18n.monthsOfTheYear(),b=this.getSegmentDescription(this.expressionParts[4],"",function(x,k){return k&&y.i18n.monthsOfTheYearInCase?y.i18n.monthsOfTheYearInCase(k)[parseInt(x)-1]:v[parseInt(x)-1]},function(x){return parseInt(x)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0Months(x),x)},function(x){return y.i18n.commaMonthX0ThroughMonthX1()||y.i18n.commaX0ThroughX1()},function(x){return y.i18n.commaOnlyInMonthX0?y.i18n.commaOnlyInMonthX0():y.i18n.commaOnlyInX0()});return b},m.prototype.getDayOfMonthDescription=function(){var y=this,v=null,b=this.expressionParts[3];switch(b){case"L":v=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":v=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var x=b.match(/(\d{1,2}W)|(W\d{1,2})/);if(x){var k=parseInt(x[0].replace("W","")),O=k==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),k.toString());v=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),O);break}else{var T=b.match(/L-(\d{1,2})/);if(T){var M=T[1];v=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(M),M);break}else{if(b=="*"&&this.expressionParts[5]!="*")return"";v=this.getSegmentDescription(b,this.i18n.commaEveryDay(),function(A){return A=="L"?y.i18n.lastDay():y.i18n.dayX0?f.StringUtilities.format(y.i18n.dayX0(),A):A},function(A){return A=="1"?y.i18n.commaEveryDay():y.i18n.commaEveryX0Days(A)},function(A){return y.i18n.commaBetweenDayX0AndX1OfTheMonth(A)},function(A){return y.i18n.commaOnDayX0OfTheMonth(A)})}break}}return v},m.prototype.getYearDescription=function(){var y=this,v=this.getSegmentDescription(this.expressionParts[6],"",function(b){return/^\d+$/.test(b)?new Date(parseInt(b),1).getFullYear().toString():b},function(b){return f.StringUtilities.format(y.i18n.commaEveryX0Years(b),b)},function(b){return y.i18n.commaYearX0ThroughYearX1()||y.i18n.commaX0ThroughX1()},function(b){return y.i18n.commaOnlyInYearX0?y.i18n.commaOnlyInYearX0():y.i18n.commaOnlyInX0()});return v},m.prototype.getSegmentDescription=function(y,v,b,x,k,O){var T=null,M=y.indexOf("/")>-1,A=y.indexOf("-")>-1,E=y.indexOf(",")>-1;if(!y)T="";else if(y==="*")T=v;else if(!M&&!A&&!E)T=f.StringUtilities.format(O(y),b(y));else if(E){for(var D=y.split(","),j="",P=0;P0&&D.length>2&&(j+=",",P0&&D.length>1&&(P==D.length-1||D.length==2)&&(j+="".concat(this.i18n.spaceAnd()," ")),D[P].indexOf("/")>-1||D[P].indexOf("-")>-1){var $=D[P].indexOf("-")>-1&&D[P].indexOf("/")==-1,L=this.getSegmentDescription(D[P],v,b,x,$?this.i18n.commaX0ThroughX1:k,O);$&&(L=L.replace(", ","")),j+=L}else if(!M)j+=b(D[P]);else{var W=this.getSegmentDescription(D[P],v,b,x,k,O);W&&W.startsWith(", ")&&(W=W.substring(2)),j+=W}M?T=j:T=f.StringUtilities.format(O(y),j)}else if(M){var D=y.split("/");if(T=f.StringUtilities.format(x(D[1]),D[1]),D[0].indexOf("-")>-1){var H=this.generateRangeSegmentDescription(D[0],k,b);H.indexOf(", ")!=0&&(T+=", "),T+=H}else if(D[0].indexOf("*")==-1){var V=f.StringUtilities.format(O(D[0]),b(D[0]));V=V.replace(", ",""),T+=f.StringUtilities.format(this.i18n.commaStartingX0(),V)}}else A&&(T=this.generateRangeSegmentDescription(y,k,b));return T},m.prototype.generateRangeSegmentDescription=function(y,v,b){var x="",k=y.split("-"),O=b(k[0],1),T=b(k[1],2),M=v(y);return x+=f.StringUtilities.format(M,O,T),x},m.prototype.formatTime=function(y,v,b){var x=0,k=0,O=parseInt(y)+x,T=parseInt(v)+k;T>=60?(T-=60,O+=1):T<0&&(T+=60,O-=1),O>=24?O=O-24:O<0&&(O=24+O);var M="",A=!1;this.options.use24HourTimeFormat||(A=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),M=A?"".concat(this.getPeriod(O)," "):" ".concat(this.getPeriod(O)),O>12&&(O-=12),O===0&&(O=12));var E="";b&&(E=":".concat(("00"+b).substring(b.length)));var D=O.toString(),j=("00"+D).substring(D.length),P=T.toString(),$=("00"+P).substring(P.length),L=this.options.trimHoursLeadingZero?D:j;return"".concat(A?M:"").concat(L,":").concat($).concat(E).concat(A?"":M)},m.prototype.transformVerbosity=function(y,v){if(!v&&(y=y.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),y=y.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),y=y.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),y=y.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var b=0,x=Object.entries(this.i18n.conciseVerbosityReplacements());b=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},m.locales={},m})();l.ExpressionDescriptor=d},747(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=u(486),h=(function(){function d(){}return d.prototype.load=function(m){m.en=new f.en},d})();l.enLocaleLoader=h},486(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var u=(function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days in a month"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f.prototype.atReboot=function(){return"Run once, at startup"},f.prototype.onTheHour=function(){return"on the hour"},f})();l.en=u},515(s,l){Object.defineProperty(l,"__esModule",{value:!0});function u(h,d){if(!h)throw new Error(d)}var f=(function(){function h(){}return h.secondRange=function(d){for(var m=d.split(","),y=0;y=0&&v<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(d){for(var m=d.split(","),y=0;y=0&&v<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(d){for(var m=d.split(","),y=0;y=0&&v<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(d){for(var m=d.split(","),y=0;y=1&&v<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(d,m){for(var y=d.split(","),v=0;v=1&&b<=12,m?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(d,m){for(var y=d.split(","),v=0;v=0&&b<=6,m?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h})();l.default=f},823(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var u=(function(){function f(){}return f.format=function(h){for(var d=[],m=1;m-1})},f})();l.StringUtilities=u}},n={};function o(s){var l=n[s];if(l!==void 0)return l.exports;var u=n[s]={exports:{}};return r[s](u,u.exports,o),u.exports}var a={};return(()=>{var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0;var l=o(333),u=o(747);l.ExpressionDescriptor.initialize(new u.enLocaleLoader),s.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;s.toString=f})(),a})())})(Ev)),Ev.exports}var wYe=Qo();const SYe=Ca(wYe);var Tv={exports:{}},X6;function xYe(){return X6||(X6=1,(function(t,e){(function(n,o){t.exports=o(Qo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.fr=void 0;var h=(function(){function d(){}return d.prototype.conciseVerbosityReplacements=function(){return{"de le":"du"}},d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},d.prototype.everyMinute=function(){return"toutes les minutes"},d.prototype.everyHour=function(){return"toutes les heures"},d.prototype.atSpace=function(){return"À "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},d.prototype.at=function(){return"À"},d.prototype.spaceAnd=function(){return" et"},d.prototype.everySecond=function(){return"toutes les secondes"},d.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},d.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},d.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},d.prototype.everyX0Hours=function(){return"toutes les %s heures"},d.prototype.betweenX0AndX1=function(){return"de %s à %s"},d.prototype.atX0=function(){return"%s"},d.prototype.commaEveryDay=function(){return", tous les jours"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},d.prototype.commaX0ThroughX1=function(){return", de %s à %s"},d.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},d.prototype.first=function(){return"premier"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"troisième"},d.prototype.fourth=function(){return"quatrième"},d.prototype.fifth=function(){return"cinquième"},d.prototype.commaOnThe=function(){return", le "},d.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},d.prototype.lastDay=function(){return"le dernier jour"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},d.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},d.prototype.commaAndOnX0=function(){return", et %s"},d.prototype.commaEveryX0Months=function(){return", tous les %s mois"},d.prototype.commaOnlyInX0=function(){return", uniquement en %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},d.prototype.firstWeekday=function(){return"premier jour ouvrable"},d.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Days=function(){return", tous les %s jours"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},d.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryHour=function(){return", chaque heure"},d.prototype.commaEveryX0Years=function(){return", tous les %s ans"},d.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},d.prototype.commaStartingX0=function(){return", à partir de %s"},d.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},d.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},d.prototype.onTheHour=function(){return"à l'heure pile"},d})();return f.fr=h,u().locales.fr=new h,s})())})(Tv)),Tv.exports}xYe();var Ov={exports:{}},J6;function kYe(){return J6||(J6=1,(function(t,e){(function(n,o){t.exports=o(Qo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.es=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocurrió un error mientras se generaba la descripción de la expresión. Revise la sintaxis de la expresión de cron."},d.prototype.at=function(){return"A las"},d.prototype.atSpace=function(){return"A las "},d.prototype.atX0=function(){return"a las %s"},d.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},d.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},d.prototype.commaEveryDay=function(){return", cada día"},d.prototype.commaEveryX0Days=function(){return", cada %s días"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},d.prototype.commaEveryX0Months=function(){return", cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},d.prototype.commaOnlyInX0=function(){return", sólo en %s"},d.prototype.commaOnlyOnX0=function(){return", sólo el %s"},d.prototype.commaAndOnX0=function(){return", y el %s"},d.prototype.commaOnThe=function(){return", en el "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},d.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},d.prototype.everyHour=function(){return"cada hora"},d.prototype.everyMinute=function(){return"cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},d.prototype.everySecond=function(){return"cada segundo"},d.prototype.everyX0Hours=function(){return"cada %s horas"},d.prototype.everyX0Minutes=function(){return"cada %s minutos"},d.prototype.everyX0Seconds=function(){return"cada %s segundos"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primero"},d.prototype.firstWeekday=function(){return"primer día de la semana"},d.prototype.fourth=function(){return"cuarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},d.prototype.second=function(){return"segundo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},d.prototype.spaceAnd=function(){return" y"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},d.prototype.lastDay=function(){return"el último día"},d.prototype.third=function(){return"tercer"},d.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},d.prototype.commaEveryX0Years=function(){return", cada %s años"},d.prototype.commaStartingX0=function(){return", comenzando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},d.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},d.prototype.onTheHour=function(){return"en punto"},d})();return f.es=h,u().locales.es=new h,s})())})(Ov)),Ov.exports}kYe();var Dv={exports:{}},Y6;function CYe(){return Y6||(Y6=1,(function(t,e){(function(n,o){t.exports=o(Qo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.de=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"jede Minute"},d.prototype.everyHour=function(){return"jede Stunde"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},d.prototype.atSpace=function(){return"Um "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},d.prototype.at=function(){return"Um"},d.prototype.spaceAnd=function(){return" und"},d.prototype.everySecond=function(){return"Jede Sekunde"},d.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},d.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},d.prototype.everyX0Minutes=function(){return"alle %s Minuten"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},d.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},d.prototype.everyX0Hours=function(){return"alle %s Stunden"},d.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},d.prototype.atX0=function(){return"um %s"},d.prototype.commaEveryDay=function(){return", jeden Tag"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},d.prototype.commaX0ThroughX1=function(){return", %s bis %s"},d.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},d.prototype.first=function(){return"ersten"},d.prototype.second=function(){return"zweiten"},d.prototype.third=function(){return"dritten"},d.prototype.fourth=function(){return"vierten"},d.prototype.fifth=function(){return"fünften"},d.prototype.commaOnThe=function(){return", am "},d.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},d.prototype.lastDay=function(){return"der letzte Tag"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},d.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},d.prototype.commaAndOnX0=function(){return", und jeden %s"},d.prototype.commaEveryX0Months=function(){return", alle %s Monate"},d.prototype.commaOnlyInX0=function(){return", nur im %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},d.prototype.firstWeekday=function(){return"ersten Werktag"},d.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},d.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},d.prototype.commaEveryX0Days=function(){return", alle %s Tage"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},d.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},d.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},d.prototype.commaStartingX0=function(){return", beginnend %s"},d.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},d.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},d.prototype.onTheHour=function(){return"zur vollen Stunde"},d})();return f.de=h,u().locales.de=new h,s})())})(Dv)),Dv.exports}CYe();var Rv={exports:{}},K6;function $Ye(){return K6||(K6=1,(function(t,e){(function(n,o){t.exports=o(Qo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.it=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},d.prototype.at=function(){return"Alle"},d.prototype.atSpace=function(){return"Alle "},d.prototype.atX0=function(){return"alle %s"},d.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},d.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},d.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},d.prototype.commaEveryDay=function(){return", ogni giorno"},d.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},d.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},d.prototype.commaEveryX0Years=function(){return", ogni %s anni"},d.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},d.prototype.commaOnlyInX0=function(){return", solo in %s"},d.prototype.commaOnlyOnX0=function(){return", solo il %s"},d.prototype.commaAndOnX0=function(){return", e il %s"},d.prototype.commaOnThe=function(){return", il "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},d.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},d.prototype.commaX0ThroughX1=function(){return", %s al %s"},d.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},d.prototype.everyHour=function(){return"ogni ora"},d.prototype.everyMinute=function(){return"ogni minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},d.prototype.everySecond=function(){return"ogni secondo"},d.prototype.everyX0Hours=function(){return"ogni %s ore"},d.prototype.everyX0Minutes=function(){return"ogni %s minuti"},d.prototype.everyX0Seconds=function(){return"ogni %s secondi"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primo"},d.prototype.firstWeekday=function(){return"primo giorno della settimana"},d.prototype.fourth=function(){return"quarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},d.prototype.second=function(){return"secondo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},d.prototype.lastDay=function(){return"l'ultimo giorno"},d.prototype.third=function(){return"terzo"},d.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},d.prototype.commaStartingX0=function(){return", a partire %s"},d.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},d.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},d.prototype.onTheHour=function(){return"all'ora esatta"},d})();return f.it=h,u().locales.it=new h,s})())})(Rv)),Rv.exports}$Ye();var Mv={exports:{}},Z6;function EYe(){return Z6||(Z6=1,(function(t,e){(function(n,o){t.exports=o(Qo())})(globalThis,r=>(()=>{var n={93(y){y.exports=r}},o={};function a(y){var v=o[y];if(v!==void 0)return v.exports;var b=o[y]={exports:{}};return n[y](b,b.exports,a),b.exports}a.n=y=>{var v=y&&y.__esModule?()=>y.default:()=>y;return a.d(v,{a:v}),v},a.d=(y,v)=>{for(var b in v)a.o(v,b)&&!a.o(y,b)&&Object.defineProperty(y,b,{enumerable:!0,get:v[b]})},a.o=(y,v)=>Object.prototype.hasOwnProperty.call(y,v),a.r=y=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.ru=void 0;var h=function(y,v){var b=Number(y);return b!==void 0?v[b%100>4&&b%100<20?2:[2,0,1,1,1,2][b%10<5?Math.abs(b)%10:5]]:v[2]},d=function(y,v){var b=Number(y);return b!==void 0?v[b===0?0:b===1||b===2||b===4?1:2]:v[1]},m=(function(){function y(){}return y.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},y.prototype.atX0MinutesPastTheHourGt20=function(){return null},y.prototype.commaMonthX0ThroughMonthX1=function(){return null},y.prototype.commaYearX0ThroughYearX1=function(){return null},y.prototype.use24HourTimeFormatByDefault=function(){return!0},y.prototype.everyMinute=function(){return"каждую минуту"},y.prototype.everyHour=function(){return"каждый час"},y.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},y.prototype.atSpace=function(){return"В "},y.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},y.prototype.at=function(){return"В"},y.prototype.spaceAnd=function(){return" и"},y.prototype.everySecond=function(){return"каждую секунду"},y.prototype.everyX0Seconds=function(v){return h(v,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},y.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},y.prototype.atX0SecondsPastTheMinute=function(v){return h(v,["в %s секунду","в %s секунды","в %s секунд"])},y.prototype.everyX0Minutes=function(v){return h(v,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},y.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},y.prototype.atX0MinutesPastTheHour=function(v){return h(v,["в %s минуту","в %s минуты","в %s минут"])},y.prototype.everyX0Hours=function(v){return h(v,["каждый %s час","каждые %s часа","каждые %s часов"])},y.prototype.betweenX0AndX1=function(){return"с %s по %s"},y.prototype.atX0=function(){return"в %s"},y.prototype.commaEveryDay=function(){return", каждый день"},y.prototype.commaEveryX0DaysOfTheWeek=function(v){return h(v,[", каждый %s день недели",", каждые %s дня недели",", каждые %s дней недели"])},y.prototype.commaX0ThroughX1=function(v){return v&&(v[0]=="2"||v[0]=="3")?", со %s по %s":", с %s по %s"},y.prototype.commaAndX0ThroughX1=function(v){return v&&(v[0]=="2"||v[0]=="3")?" и со %s по %s":" и с %s по %s"},y.prototype.first=function(v){return d(v,["первое","первый","первую"])},y.prototype.second=function(v){return d(v,["второе","второй","вторую"])},y.prototype.third=function(v){return d(v,["третье","третий","третью"])},y.prototype.fourth=function(v){return d(v,["четвертое","четвертый","четвертую"])},y.prototype.fifth=function(v){return d(v,["пятое","пятый","пятую"])},y.prototype.commaOnThe=function(v){return v==="2"?", во ":", в "},y.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},y.prototype.lastDay=function(){return"последний день"},y.prototype.commaOnTheLastX0OfTheMonth=function(v){return d(v,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},y.prototype.commaOnlyOnX0=function(v){return v&&v[0]==="2"?", только во %s":", только в %s"},y.prototype.commaAndOnX0=function(){return", и %s"},y.prototype.commaEveryX0Months=function(v){return h(v,[""," каждые %s месяца"," каждые %s месяцев"])},y.prototype.commaOnlyInMonthX0=function(){return", только %s"},y.prototype.commaOnlyInX0=function(){return", только в %s"},y.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},y.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},y.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(v){return h(v,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},y.prototype.firstWeekday=function(){return"первый будний день"},y.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},y.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},y.prototype.commaEveryX0Days=function(v){return h(v,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},y.prototype.commaBetweenDayX0AndX1OfTheMonth=function(v){return v&&v.substring(0,v.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},y.prototype.commaOnDayX0OfTheMonth=function(v){return v&&v[0]=="2"?", во %s число месяца":", в %s число месяца"},y.prototype.commaEveryX0Years=function(v){return h(v,[", каждый %s год",", каждые %s года",", каждые %s лет"])},y.prototype.commaStartingX0=function(){return", начало %s"},y.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},y.prototype.daysOfTheWeekInCase=function(v){return v===void 0&&(v=2),v==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},y.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},y.prototype.monthsOfTheYearInCase=function(v){return v==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},y.prototype.onTheHour=function(){return"ровно в час"},y})();return f.ru=m,u().locales.ru=new m,s})())})(Mv)),Mv.exports}EYe();var Av={exports:{}},Q6;function TYe(){return Q6||(Q6=1,(function(t,e){(function(n,o){t.exports=o(Qo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.zh_CN=void 0;var h=(function(){function d(){}return d.prototype.setPeriodBeforeTime=function(){return!0},d.prototype.pm=function(){return"下午"},d.prototype.am=function(){return"上午"},d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},d.prototype.use24HourTimeFormatByDefault=function(){return!1},d.prototype.everyMinute=function(){return"每分钟"},d.prototype.everyHour=function(){return"每小时"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},d.prototype.atSpace=function(){return"在"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},d.prototype.at=function(){return"在"},d.prototype.spaceAnd=function(){return" 和"},d.prototype.everySecond=function(){return"每秒"},d.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分钟后的第 %s 到 %s 秒"},d.prototype.atX0SecondsPastTheMinute=function(){return"在一分钟后的第 %s 秒"},d.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整点后的第 %s 到 %s 分钟"},d.prototype.atX0MinutesPastTheHour=function(){return"在整点后的第 %s 分钟"},d.prototype.everyX0Hours=function(){return"每隔 %s 小时"},d.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},d.prototype.atX0=function(){return"在%s"},d.prototype.commaEveryDay=function(){return", 每天"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},d.prototype.commaX0ThroughX1=function(){return", %s至%s"},d.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},d.prototype.first=function(){return"第一个"},d.prototype.second=function(){return"第二个"},d.prototype.third=function(){return"第三个"},d.prototype.fourth=function(){return"第四个"},d.prototype.fifth=function(){return"第五个"},d.prototype.commaOnThe=function(){return", 限每月的"},d.prototype.spaceX0OfTheMonth=function(){return"%s"},d.prototype.lastDay=function(){return"本月最后一天"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},d.prototype.commaOnlyOnX0=function(){return", 仅%s"},d.prototype.commaAndOnX0=function(){return", 或者为%s"},d.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},d.prototype.commaOnlyInX0=function(){return", 仅限%s"},d.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},d.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},d.prototype.firstWeekday=function(){return"第一个工作日"},d.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},d.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},d.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},d.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},d.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},d.prototype.commaStartingX0=function(){return", %s开始"},d.prototype.dayX0=function(){return" %s 号"},d.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},d.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},d.prototype.onTheHour=function(){return"整点"},d})();return f.zh_CN=h,u().locales.zh_CN=new h,s})())})(Av)),Av.exports}TYe();var Nv={exports:{}},eE;function OYe(){return eE||(eE=1,(function(t,e){(function(n,o){t.exports=o(Qo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.uk=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"щохвилини"},d.prototype.everyHour=function(){return"щогодини"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},d.prototype.atSpace=function(){return"О "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},d.prototype.at=function(){return"О"},d.prototype.spaceAnd=function(){return" та"},d.prototype.everySecond=function(){return"Щосекунди"},d.prototype.everyX0Seconds=function(){return"кожні %s секунд"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},d.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},d.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},d.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},d.prototype.everyX0Hours=function(){return"кожні %s годин"},d.prototype.betweenX0AndX1=function(){return"між %s та %s"},d.prototype.atX0=function(){return"о %s"},d.prototype.commaEveryDay=function(){return", щоденно"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},d.prototype.commaX0ThroughX1=function(){return", %s по %s"},d.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},d.prototype.first=function(){return"перший"},d.prototype.second=function(){return"другий"},d.prototype.third=function(){return"третій"},d.prototype.fourth=function(){return"четвертий"},d.prototype.fifth=function(){return"п'ятий"},d.prototype.commaOnThe=function(){return", в "},d.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},d.prototype.lastDay=function(){return"останній день"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},d.prototype.commaOnlyOnX0=function(){return", тільки в %s"},d.prototype.commaAndOnX0=function(){return", і в %s"},d.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},d.prototype.commaOnlyInX0=function(){return", тільки в %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},d.prototype.firstWeekday=function(){return"перший будень"},d.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},d.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},d.prototype.commaEveryX0Days=function(){return", кожен %s день"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},d.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},d.prototype.commaEveryX0Years=function(){return", кожні %s роки"},d.prototype.commaStartingX0=function(){return", початок %s"},d.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},d.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},d.prototype.onTheHour=function(){return"рівно о годині"},d})();return f.uk=h,u().locales.uk=new h,s})())})(Nv)),Nv.exports}OYe();var Iv={exports:{}},tE;function DYe(){return tE||(tE=1,(function(t,e){(function(n,o){t.exports=o(Qo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.pt_BR=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},d.prototype.at=function(){return"às"},d.prototype.atSpace=function(){return"às "},d.prototype.atX0=function(){return"Às %s"},d.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},d.prototype.betweenX0AndX1=function(){return"entre %s e %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},d.prototype.commaEveryDay=function(){return", a cada dia"},d.prototype.commaEveryX0Days=function(){return", a cada %s dias"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},d.prototype.commaEveryX0Months=function(){return", a cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},d.prototype.commaOnlyInX0=function(m){return m&&m.length>1&&m[1]==="-"?"somente %s":", somente em %s"},d.prototype.commaOnlyOnX0=function(m){return m&&m.length>1&&m[1]==="-"?", somente %s":", somente de %s"},d.prototype.commaAndOnX0=function(){return", e de %s"},d.prototype.commaOnThe=function(m,y){return y==="6"||y==="0"?", no":", na "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},d.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},d.prototype.everyHour=function(){return"a cada hora"},d.prototype.everyMinute=function(){return"a cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},d.prototype.everySecond=function(){return"a cada segundo"},d.prototype.everyX0Hours=function(){return"a cada %s horas"},d.prototype.everyX0Minutes=function(){return"a cada %s minutos"},d.prototype.everyX0Seconds=function(){return"a cada %s segundos"},d.prototype.fifth=function(m){return m==="6"||m==="0"?"quinto":"quinta"},d.prototype.first=function(m){return m==="6"||m==="0"?"primeiro":"primeira"},d.prototype.firstWeekday=function(){return"primeiro dia da semana"},d.prototype.fourth=function(m){return m==="6"||m==="0"?"quarto":"quarta"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},d.prototype.second=function(m){return m==="6"||m==="0"?"segundo":"segunda"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},d.prototype.lastDay=function(){return"o último dia"},d.prototype.third=function(m){return m==="6"||m==="0"?"terceiro":"terceira"},d.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},d.prototype.commaEveryX0Years=function(){return", a cada %s anos"},d.prototype.commaStartingX0=function(){return", iniciando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},d.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},d.prototype.onTheHour=function(){return"na hora certa"},d})();return f.pt_BR=h,u().locales.pt_BR=new h,s})())})(Iv)),Iv.exports}DYe();var Pv={exports:{}},rE;function RYe(){return rE||(rE=1,(function(t,e){(function(n,o){t.exports=o(Qo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.pl=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},d.prototype.at=function(){return"O"},d.prototype.atSpace=function(){return"O "},d.prototype.atX0=function(){return"o %s"},d.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},d.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},d.prototype.betweenX0AndX1=function(){return"od %s do %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},d.prototype.commaEveryDay=function(){return", co dzień"},d.prototype.commaEveryX0Days=function(){return", co %s dni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},d.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},d.prototype.commaEveryX0Years=function(){return", co %s lat"},d.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},d.prototype.commaOnlyInX0=function(){return", tylko %s"},d.prototype.commaOnlyOnX0=function(){return", tylko %s"},d.prototype.commaAndOnX0=function(){return", i %s"},d.prototype.commaOnThe=function(){return", "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},d.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},d.prototype.commaX0ThroughX1=function(){return", od %s do %s"},d.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},d.prototype.everyHour=function(){return"co godzinę"},d.prototype.everyMinute=function(){return"co minutę"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},d.prototype.everySecond=function(){return"co sekundę"},d.prototype.everyX0Hours=function(){return"co %s godzin"},d.prototype.everyX0Minutes=function(){return"co %s minut"},d.prototype.everyX0Seconds=function(){return"co %s sekund"},d.prototype.fifth=function(){return"piąty"},d.prototype.first=function(){return"pierwszy"},d.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},d.prototype.fourth=function(){return"czwarty"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},d.prototype.second=function(){return"drugi"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},d.prototype.spaceAnd=function(){return" i"},d.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},d.prototype.lastDay=function(){return"ostatni dzień"},d.prototype.third=function(){return"trzeci"},d.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},d.prototype.commaStartingX0=function(){return", startowy %s"},d.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},d.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},d.prototype.onTheHour=function(){return"o pełnej godzinie"},d})();return f.pl=h,u().locales.pl=new h,s})())})(Pv)),Pv.exports}RYe();function H7(t,e){return SYe.toString(t,{locale:e})}const hn={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},MYe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],AYe=["January","February","March","April","May","June","July","August","September","October","November","December"];function nE(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const s=parseInt(a[1],10);for(let l=parseInt(a[0],10);l<=s;l++)r.push(l)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function oE(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,s)=>a-s);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=oi.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=nE(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,oE(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},z.t("ra_Deselect all")),_.createElement(Pt,{key:"addall",variant:"contained",style:hn.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},z.t("ra_Select all")),_.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?_.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,_.createElement(Pt,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:hn.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?z.t(MYe[a]):r===12?AYe[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),s;if(this.state.modes[e]===null){s=o?"every":a?"everyN":"specific";const u=JSON.parse(JSON.stringify(this.state.modes));return u[e]=s,setTimeout(()=>this.setState({modes:u},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",s=this.state.modes[e];let l=1;return a&&n&&(l=parseInt(n.replace("*/",""),10)||1),_.createElement("div",null,_.createElement(Dn,{variant:"standard",style:{...hn.periodSelect,verticalAlign:"bottom"},value:s,onChange:u=>{const f=JSON.parse(JSON.stringify(this.state.modes));if(f[e]=u.target.value,u.target.value==="every")this.setCronAttr(e,"*",f);else if(u.target.value==="everyN"){const h=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${h}`,f)}else if(u.target.value==="specific"){let h=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!h&&(e==="months"||e==="dates")&&(h=1),this.setCronAttr(e,oE(h,r),f)}}},_.createElement(rr,{key:"every",value:"every"},z.t(`sc_every_${e}`)),_.createElement(rr,{key:"everyN",value:"everyN"},z.t(`sc_everyN_${e}`)),_.createElement(rr,{key:"specific",value:"specific"},z.t(`sc_specific_${e}`))),a&&_.createElement(Vt,{variant:"standard",key:"interval",label:z.t(`sc_${e}`),value:l,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:u=>{this.setState({[e]:`*/${u.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?z.t("ra_Invalid CRON"):H7(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return _.createElement("div",{style:hn.mainDiv},_.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},_.createElement(Vt,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),_.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},oi.convertCronToText(this.state.cron,this.props.language||"en"),_.createElement("span",{style:hn.warning},n?z.t("ra_warning_every_second"):r?z.t("ra_warning_every_minute"):"")),_.createElement(ut,{control:_.createElement(mr,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:z.t("ra_use seconds")}),_.createElement(h8,{position:"static",sx:{"&.MuiAppBar-root":hn.appBar},color:"secondary"},_.createElement(B8,{value:this.state.tab,style:hn.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&_.createElement(Vi,{id:"sc_seconds",label:z.t("sc_seconds")}),_.createElement(Vi,{id:"minutes",label:z.t("sc_minutes")}),_.createElement(Vi,{id:"hours",label:z.t("sc_hours")}),_.createElement(Vi,{id:"dates",label:z.t("sc_dates")}),_.createElement(Vi,{id:"months",label:z.t("sc_months")}),_.createElement(Vi,{id:"dow",label:z.t("sc_dows")}))),e===0&&_.createElement("div",{style:hn.tabContent},this.getPeriodsTab("seconds",60)),e===1&&_.createElement("div",{style:hn.tabContent},this.getPeriodsTab("minutes",60)),e===2&&_.createElement("div",{style:hn.tabContent},this.getPeriodsTab("hours",24)),e===3&&_.createElement("div",{style:hn.tabContent},this.getPeriodsTab("dates",31)),e===4&&_.createElement("div",{style:hn.tabContent},this.getPeriodsTab("months",12)),e===5&&_.createElement("div",{style:hn.tabContent},this.getPeriodsTab("dow",7)))}}function xs(t,e,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(h){try{f(n.next(h))}catch(d){s(d)}}function u(h){try{f(n.throw(h))}catch(d){s(d)}}function f(h){h.done?a(h.value):o(h.value).then(l,u)}f((n=n.apply(t,e||[])).next())})}const NYe=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 tl(t,e,r){const n=IYe(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&aE(n,"path",a),aE(n,"relativePath",a),n}function IYe(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=NYe.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function aE(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const PYe=[".DS_Store","Thumbs.db"];function jYe(t){return xs(this,void 0,void 0,function*(){return nh(t)&&zYe(t.dataTransfer)?WYe(t.dataTransfer,t.type):LYe(t)?FYe(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?BYe(t):[]})}function zYe(t){return nh(t)}function LYe(t){return nh(t)&&nh(t.target)}function nh(t){return typeof t=="object"&&t!==null}function FYe(t){return eb(t.target.files).map(e=>tl(e))}function BYe(t){return xs(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>tl(r))})}function WYe(t,e){return xs(this,void 0,void 0,function*(){if(t.items){const r=eb(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(UYe));return iE(V7(n))}return iE(eb(t.files).map(r=>tl(r)))})}function iE(t){return t.filter(e=>PYe.indexOf(e.name)===-1)}function eb(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?V7(r):[r]],[])}function sE(t,e){return xs(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const s=yield a.getFile();return s.handle=a,tl(s)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return tl(n,(r=e?.fullPath)!==null&&r!==void 0?r:void 0)})}function qYe(t){return xs(this,void 0,void 0,function*(){return t.isDirectory?G7(t):HYe(t)})}function G7(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(s=>xs(this,void 0,void 0,function*(){if(s.length){const l=Promise.all(s.map(qYe));o.push(l),a()}else try{const l=yield Promise.all(o);r(l)}catch(l){n(l)}}),s=>{n(s)})}a()})}function HYe(t){return xs(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=tl(n,t.fullPath);e(o)},n=>{r(n)})})})}var lf={},cE;function VYe(){return cE||(cE=1,lf.__esModule=!0,lf.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):o===l})}return!0}),lf}var GYe=VYe();const jv=Ca(GYe);function lE(t){return YYe(t)||JYe(t)||J7(t)||XYe()}function XYe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JYe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function YYe(t){if(Array.isArray(t))return tb(t)}function uE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function dE(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:tKe,message:"File type must be ".concat(n)}},pE=function(e){return{code:rKe,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},fE=function(e){return{code:nKe,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},iKe={code:oKe,message:"Too many files"};function sKe(t){return t.type===""&&typeof t.getAsFile=="function"}function Y7(t,e){var r=t.type==="application/x-moz-file"||eKe(t,e)||sKe(t);return[r,r?null:aKe(e)]}function K7(t,e,r){if(Ji(t.size))if(Ji(e)&&Ji(r)){if(t.size>r)return[!1,pE(r)];if(t.sizer)return[!1,pE(r)]}return[!0,null]}function Ji(t){return t!=null}function cKe(t){var e=t.files,r=t.accept,n=t.minSize,o=t.maxSize,a=t.multiple,s=t.maxFiles,l=t.validator;return!a&&e.length>1||a&&s>=1&&e.length>s?!1:e.every(function(u){var f=Y7(u,r),h=od(f,1),d=h[0],m=K7(u,n,o),y=od(m,1),v=y[0],b=l?l(u):null;return d&&v&&!b})}function oh(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function lu(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function hE(t){t.preventDefault()}function lKe(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function uKe(t){return t.indexOf("Edge/")!==-1}function dKe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return lKe(t)||uKe(t)}function No(){for(var t=arguments.length,e=new Array(t),r=0;r1?o-1:0),s=1;st.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function EKe(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var Rd=R.forwardRef(function(t,e){var r=t.children,n=ah(t,gKe),o=TKe(n),a=o.open,s=ah(o,yKe);return R.useImperativeHandle(e,function(){return{open:a}},[a]),_.createElement(R.Fragment,null,r(Ht(Ht({},s),{},{open:a})))});Rd.displayName="Dropzone";var tO={disabled:!1,getFilesFromEvent:jYe,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};Rd.defaultProps=tO;Rd.propTypes={children:ce.func,accept:ce.objectOf(ce.arrayOf(ce.string)),multiple:ce.bool,preventDropOnDocument:ce.bool,noClick:ce.bool,noKeyboard:ce.bool,noDrag:ce.bool,noDragEventsBubbling:ce.bool,minSize:ce.number,maxSize:ce.number,maxFiles:ce.number,disabled:ce.bool,getFilesFromEvent:ce.func,onFileDialogCancel:ce.func,onFileDialogOpen:ce.func,useFsAccessApi:ce.bool,autoFocus:ce.bool,onDragEnter:ce.func,onDragLeave:ce.func,onDragOver:ce.func,onDrop:ce.func,onDropAccepted:ce.func,onDropRejected:ce.func,onError:ce.func,validator:ce.func};var ob={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function TKe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Ht(Ht({},tO),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,s=e.minSize,l=e.multiple,u=e.maxFiles,f=e.onDragEnter,h=e.onDragLeave,d=e.onDragOver,m=e.onDrop,y=e.onDropAccepted,v=e.onDropRejected,b=e.onFileDialogCancel,x=e.onFileDialogOpen,k=e.useFsAccessApi,O=e.autoFocus,T=e.preventDropOnDocument,M=e.noClick,A=e.noKeyboard,E=e.noDrag,D=e.noDragEventsBubbling,j=e.onError,P=e.validator,$=R.useMemo(function(){return hKe(r)},[r]),L=R.useMemo(function(){return fKe(r)},[r]),W=R.useMemo(function(){return typeof x=="function"?x:gE},[x]),H=R.useMemo(function(){return typeof b=="function"?b:gE},[b]),V=R.useRef(null),q=R.useRef(null),J=R.useReducer(OKe,ob),ee=zv(J,2),Z=ee[0],X=ee[1],te=Z.isFocused,N=Z.isFileDialogActive,B=R.useRef(typeof window<"u"&&window.isSecureContext&&k&&pKe()),ne=function(){!B.current&&N&&setTimeout(function(){if(q.current){var ve=q.current.files;ve.length||(X({type:"closeDialog"}),H())}},300)};R.useEffect(function(){return window.addEventListener("focus",ne,!1),function(){window.removeEventListener("focus",ne,!1)}},[q,N,H,B]);var ae=R.useRef([]),re=R.useRef([]),ie=function(ve){V.current&&V.current.contains(ve.target)||(ve.preventDefault(),ae.current=[])};R.useEffect(function(){return T&&(document.addEventListener("dragover",hE,!1),document.addEventListener("drop",ie,!1)),function(){T&&(document.removeEventListener("dragover",hE),document.removeEventListener("drop",ie))}},[V,T]),R.useEffect(function(){var se=function(bt){re.current=[].concat(mE(re.current),[bt.target]),lu(bt)&&X({isDragGlobal:!0,type:"setDragGlobal"})},ve=function(bt){re.current=re.current.filter(function(Fe){return Fe!==bt.target&&Fe!==null}),!(re.current.length>0)&&X({isDragGlobal:!1,type:"setDragGlobal"})},Ue=function(){re.current=[],X({isDragGlobal:!1,type:"setDragGlobal"})},Le=function(){re.current=[],X({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",se,!1),document.addEventListener("dragleave",ve,!1),document.addEventListener("dragend",Ue,!1),document.addEventListener("drop",Le,!1),function(){document.removeEventListener("dragenter",se),document.removeEventListener("dragleave",ve),document.removeEventListener("dragend",Ue),document.removeEventListener("drop",Le)}},[V]),R.useEffect(function(){return!n&&O&&V.current&&V.current.focus(),function(){}},[V,O,n]);var he=R.useCallback(function(se){j?j(se):console.error(se)},[j]),me=R.useCallback(function(se){se.preventDefault(),se.persist(),Xe(se),ae.current=[].concat(mE(ae.current),[se.target]),lu(se)&&Promise.resolve(o(se)).then(function(ve){if(!(oh(se)&&!D)){var Ue=ve.length,Le=Ue>0&&cKe({files:ve,accept:$,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:P}),pt=Ue>0&&!Le;X({isDragAccept:Le,isDragReject:pt,isDragActive:!0,type:"setDraggedFiles"}),f&&f(se)}}).catch(function(ve){return he(ve)})},[o,f,he,D,$,s,a,l,u,P]),ge=R.useCallback(function(se){se.preventDefault(),se.persist(),Xe(se);var ve=lu(se);if(ve&&se.dataTransfer)try{se.dataTransfer.dropEffect="copy"}catch{}return ve&&d&&d(se),!1},[d,D]),be=R.useCallback(function(se){se.preventDefault(),se.persist(),Xe(se);var ve=ae.current.filter(function(Le){return V.current&&V.current.contains(Le)}),Ue=ve.indexOf(se.target);Ue!==-1&&ve.splice(Ue,1),ae.current=ve,!(ve.length>0)&&(X({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),lu(se)&&h&&h(se))},[V,h,D]),Ie=R.useCallback(function(se,ve){var Ue=[],Le=[];se.forEach(function(pt){var bt=Y7(pt,$),Fe=zv(bt,2),Xt=Fe[0],kt=Fe[1],Ce=K7(pt,s,a),ft=zv(Ce,2),Ct=ft[0],Cr=ft[1],$r=P?P(pt):null;if(Xt&&Ct&&!$r)Ue.push(pt);else{var nn=[kt,Cr];$r&&(nn=nn.concat($r)),Le.push({file:pt,errors:nn.filter(function(ea){return ea})})}}),(!l&&Ue.length>1||l&&u>=1&&Ue.length>u)&&(Ue.forEach(function(pt){Le.push({file:pt,errors:[iKe]})}),Ue.splice(0)),X({acceptedFiles:Ue,fileRejections:Le,type:"setFiles"}),m&&m(Ue,Le,ve),Le.length>0&&v&&v(Le,ve),Ue.length>0&&y&&y(Ue,ve)},[X,l,$,s,a,u,m,y,v,P]),Re=R.useCallback(function(se){se.preventDefault(),se.persist(),Xe(se),ae.current=[],lu(se)&&Promise.resolve(o(se)).then(function(ve){oh(se)&&!D||Ie(ve,se)}).catch(function(ve){return he(ve)}),X({type:"reset"})},[o,Ie,he,D]),Ge=R.useCallback(function(){if(B.current){X({type:"openDialog"}),W();var se={multiple:l,types:L};window.showOpenFilePicker(se).then(function(ve){return o(ve)}).then(function(ve){Ie(ve,null),X({type:"closeDialog"})}).catch(function(ve){mKe(ve)?(H(ve),X({type:"closeDialog"})):_Ke(ve)?(B.current=!1,q.current?(q.current.value=null,q.current.click()):he(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 was provided."))):he(ve)});return}q.current&&(X({type:"openDialog"}),W(),q.current.value=null,q.current.click())},[X,W,H,k,Ie,he,L,l]),xe=R.useCallback(function(se){!V.current||!V.current.isEqualNode(se.target)||(se.key===" "||se.key==="Enter"||se.keyCode===32||se.keyCode===13)&&(se.preventDefault(),Ge())},[V,Ge]),Te=R.useCallback(function(){X({type:"focus"})},[]),gt=R.useCallback(function(){X({type:"blur"})},[]),ke=R.useCallback(function(){M||(dKe()?setTimeout(Ge,0):Ge())},[M,Ge]),Ae=function(ve){return n?null:ve},lt=function(ve){return A?null:Ae(ve)},tt=function(ve){return E?null:Ae(ve)},Xe=function(ve){D&&ve.stopPropagation()},we=R.useMemo(function(){return function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=se.refKey,Ue=ve===void 0?"ref":ve,Le=se.role,pt=se.onKeyDown,bt=se.onFocus,Fe=se.onBlur,Xt=se.onClick,kt=se.onDragEnter,Ce=se.onDragOver,ft=se.onDragLeave,Ct=se.onDrop,Cr=ah(se,vKe);return Ht(Ht(nb({onKeyDown:lt(No(pt,xe)),onFocus:lt(No(bt,Te)),onBlur:lt(No(Fe,gt)),onClick:Ae(No(Xt,ke)),onDragEnter:tt(No(kt,me)),onDragOver:tt(No(Ce,ge)),onDragLeave:tt(No(ft,be)),onDrop:tt(No(Ct,Re)),role:typeof Le=="string"&&Le!==""?Le:"presentation"},Ue,V),!n&&!A?{tabIndex:0}:{}),Cr)}},[V,xe,Te,gt,ke,me,ge,be,Re,A,E,n]),dt=R.useCallback(function(se){se.stopPropagation()},[]),Qe=R.useMemo(function(){return function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=se.refKey,Ue=ve===void 0?"ref":ve,Le=se.onChange,pt=se.onClick,bt=ah(se,bKe),Fe=nb({accept:$,multiple:l,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:Ae(No(Le,Re)),onClick:Ae(No(pt,dt)),tabIndex:-1},Ue,q);return Ht(Ht({},Fe),bt)}},[q,r,l,Re,n]);return Ht(Ht({},Z),{},{isFocused:te&&!n,getRootProps:we,getInputProps:Qe,rootRef:V,inputRef:q,open:Ae(Ge)})}function OKe(t,e){switch(e.type){case"focus":return Ht(Ht({},t),{},{isFocused:!0});case"blur":return Ht(Ht({},t),{},{isFocused:!1});case"openDialog":return Ht(Ht({},ob),{},{isFileDialogActive:!0});case"closeDialog":return Ht(Ht({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ht(Ht({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Ht(Ht({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:!1});case"setDragGlobal":return Ht(Ht({},t),{},{isDragGlobal:e.isDragGlobal});case"reset":return Ht({},ob);default:return t}}function gE(){}function DKe(){const t=$a();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=bF(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function ow(){return t=>function(r){const n=DKe();return _.createElement(t,{...r,width:n})}}function RKe(t){const[e,r]=_.useState(t.input||t.value||""),[n,o]=_.useState("");return _.createElement(yo,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},_.createElement(wo,{id:"form-dialog-title"},t.titleText),_.createElement(bo,null,_.createElement(Ph,null,t.promptText),_.createElement(Vt,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let s="";t.verify&&(s=t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(s)},fullWidth:!0})),_.createElement(vo,null,_.createElement(Pt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:_.createElement(wi,null)},t.applyText||z.t("ra_Ok")),_.createElement(Pt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:_.createElement(hi,null)},t.cancelText||z.t("ra_Cancel"))))}const MKe=ow()(RKe);function AKe(t){return _.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"m414.928297,149.715165 c-2.639376,-57.222555 -35.669446,-106.505345 -83.345894,-132.039151 c-3.758948,-2.049842 -7.636885,-3.932022 -11.590542,-5.641125 c-19.303146,-8.394083 -40.607459,-13.050853 -63.004303,-13.050853 c-84.113909,0 -152.791790,65.703174 -157.718988,148.605566 l0.043268,-0.010816 v0.281245 c0,3.061243 -0.146031,16.750306 -0.146031,16.750306 l-2.352723,5.224668 h15.744315 c5.916964,-19.384275 24.078904,-32.635245 45.513024,-32.635245 c26.231510,0 47.573684,21.915481 47.573684,48.146991 c0,26.226103 -21.342174,47.146409 -47.573684,47.146409 c-25.111939,0 -45.734774,-19.735831 -47.443879,-44.658471 h-18.789334 c-0.400232,0 -0.778832,0.638209 -1.162839,0.584122 l-19.762875,55.199753 c-2.774590,7.696379 2.926030,16.214860 11.103771,16.214860 h17.020735 l-0.129805,87.899899 c0,17.356066 14.073071,31.174935 31.429136,31.174935 h56.205745 v82.648189 c0,12.877778 12.937273,22.580734 25.815051,22.580734 h144.597825 c12.877778,0 23.429877,-9.702955 23.429877,-22.580734 v-166.037352 c0,-22.645636 5.976457,-44.761234 16.561008,-64.789128 c11.055093,-20.925714 17.523731,-44.620611 18.129489,-69.792045 c0.027042,-1.260193 0.037858,-2.552839 0.037858,-3.845485 c0,-2.466302 -0.070310,-4.938014 -0.183890,-7.377273 zm-155.393308,-11.731165 h-13.456494 v13.559257 c0,4.732489 -4.267352,8.567157 -8.999842,8.567157 c-4.727079,0 -8.999842,-3.834667 -8.999842,-8.567157 v-13.559257 h-12.185483 c-4.732489,0 -8.567157,-4.267352 -8.567157,-8.999842 c0,-4.727079 3.834667,-8.999842 8.567157,-8.999842 h12.185483 v-12.077311 c0,-4.732489 4.272762,-8.567157 8.999842,-8.567157 c4.732489,0 8.999842,3.834667 8.999842,8.567157 v12.077311 h13.456494 c4.727079,0 8.567157,4.272762 8.567157,8.999842 c0,4.732489 -3.840077,8.999842 -8.567157,8.999842 zm0,0"}),_.createElement("path",{fill:"currentColor",d:"m187.695312 285.875c3.9375-3.980469 6.414063-9.449219 6.414063-15.523438 0-12.128906-9.855469-21.980468-21.984375-21.980468-6.007812 0-11.472656 2.410156-15.457031 6.347656-4.023438 4.003906-6.523438 9.539062-6.523438 15.636719 0 12.125 9.855469 21.980469 21.980469 21.980469 6.078125 0 11.585938-2.476563 15.570312-6.460938zm0 0"}))}function ab(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"m524,128l-192,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,288c0,26.51 21.49,48 48,48l416,0c26.51,0 48,-21.49 48,-48l0,-224c0,-26.51 -21.49,-48 -48,-48z"}))}function NKe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"m631.75617,292.093l-72.424,124.155a63.997,63.997 0 0 1 -55.281,31.752l-399.964,0c-18.523,0 -30.064,-20.093 -20.731,-36.093l72.424,-124.155a64,64 0 0 1 55.282,-31.752l399.964,0c18.523,0 30.064,20.093 20.73,36.093zm-420.694,-68.093l328,0l0,-48c0,-26.51 -21.49,-48 -48,-48l-160,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,278.046l69.077,-118.418c17.137,-29.378 48.912,-47.628 82.923,-47.628z"}))}function aw(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"#EE3333",d:"M256,0C114.844,0,0,114.844,0,256s114.844,256,256,256s256-114.844,256-256S397.156,0,256,0z M256,448 c-105.865,0-192-86.135-192-192c0-40.406,12.25-78.604,35.542-111.198l267.656,267.656C334.604,435.75,296.406,448,256,448z M412.458,367.198L144.802,99.542C177.396,76.25,215.594,64,256,64c105.865,0,192,86.135,192,192 C448,296.406,435.75,334.604,412.458,367.198z"}))}var IKe=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,s)=>s===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(l,u,f)=>`${u}${f.toUpperCase()}`);let s=o.trim();Number.isNaN(Number(o))||(s=Number(o)),e[n.startsWith("-")?n:a]=s}return e},{});function PKe(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var jKe=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],yE={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function zKe(t,e){const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return R.createElement(FKe(t.nodeName),LKe(t,r),vE(t.childNodes,n,o));case 3:{const a=t.nodeValue?.toString()??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(a)&&!/[\u00A0\u202F]/.test(a))return null;if(!t.parentNode)return a;const s=t.parentNode.nodeName.toLowerCase();return jKe.includes(s)?(/\S/.test(a)&&console.warn(`A textNode is not allowed inside '${s}'. Your text "${a}" will be ignored`),null):a}case 8:return null;case 11:return vE(t.childNodes,n,e);default:return null}}function LKe(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=IKe(o.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[yE[o.name]||o.name]=!0;break;default:r[yE[o.name]||o.name]=o.value}})}return r}function vE(t,e,r){const n=[...t].map((o,a)=>ih(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function FKe(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function rO(t,e={}){return typeof t=="string"?BKe(t,e):t instanceof Node?ih(t,e):null}function ih(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let s=t,l=`${o}-${n}`;const u=[];return a&&o===0&&(l=`${PKe()}-${l}`),Array.isArray(r)&&r.forEach(f=>{f.condition(s,l,o)&&(typeof f.pre=="function"&&(s=f.pre(s,l,o),s instanceof Node||(s=t)),typeof f.post=="function"&&u.push(f.post(s,l,o)))}),u.length?u:zKe(s,{key:l,level:o,...e})}function BKe(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const l=new DOMParser().parseFromString(t,a);if(r){const{childNodes:f}=l.body;return n?f:[...f].map(h=>ih(h,e))}const u=l.querySelector(o)||l.body.childNodes[0];if(!(u instanceof Node))throw new TypeError("Error parsing input");return n?u:ih(u,e)}catch{}return null}var WKe=Object.defineProperty,UKe=(t,e,r)=>e in t?WKe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,uf=(t,e,r)=>UKe(t,typeof e!="symbol"?e+"":e,r),bE="react-inlinesvg",qKe=10,Mt={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function HKe(t){return t[Math.floor(Math.random()*t.length)]}function Ou(){return!!(typeof window<"u"&&window.document?.createElement)}function VKe(){return YKe()&&typeof window<"u"&&window!==null}function GKe(t,...e){const r={};for(const n in t)({}).hasOwnProperty.call(t,n)&&(e.includes(n)||(r[n]=t[n]));return r}function XKe(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function JKe(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function YKe(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}var KKe=class{constructor(){uf(this,"cacheApi"),uf(this,"cacheStore"),uf(this,"subscribers",[]),uf(this,"isReady",!1),this.cacheStore=new Map;let t=bE,e=!1;Ou()&&(t=window.REACT_INLINESVG_CACHE_NAME??bE,e=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),e?caches.open(t).then(r=>{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;const r=[...this.subscribers];this.subscribers.length=0,r.forEach(n=>{try{n()}catch(o){console.error(`Error in CacheStore subscriber callback: ${o.message}`)}})}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),this.cacheStore.get(t)?.content??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){return this.cacheStore.get(t)?.status===Mt.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!r?.content){this.cacheStore.set(t,{content:"",status:Mt.LOADING});try{const n=await nO(t,e);this.cacheStore.set(t,{content:n,status:Mt.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Mt.LOADED)return;if(r?.status===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Mt.LOADING});const n=await this.cacheApi?.match(t);if(n){const o=await n.text();this.cacheStore.set(t,{content:o,status:Mt.LOADED});return}try{await this.cacheApi?.add(new Request(t,e));const a=await(await this.cacheApi?.match(t))?.text()??"";this.cacheStore.set(t,{content:a,status:Mt.LOADED})}catch(o){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),o}}async handleLoading(t,e){for(let r=0;r({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();await Promise.allSettled(t.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function wE(t){const e=R.useRef(void 0);return R.useEffect(()=>{e.current=t}),e.current}function ZKe(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:s,title:l,uniquifyIDs:u=!1}=t;try{const f=QKe(r,s),h=rO(f,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const d=oO(h,{baseURL:e,hash:a,uniquifyIDs:u});if(n){const m=d.querySelector("desc");m?.parentNode&&m.parentNode.removeChild(m);const y=document.createElementNS("http://www.w3.org/2000/svg","desc");y.innerHTML=n,d.prepend(y)}if(typeof l<"u"){const m=d.querySelector("title");if(m?.parentNode&&m.parentNode.removeChild(m),l){const y=document.createElementNS("http://www.w3.org/2000/svg","title");y.innerHTML=l,d.prepend(y)}}return d}catch(f){return o(f)}}function QKe(t,e){return e?e(t):t}function oO(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],s=["href","xlink:href"],l=(u,f)=>s.includes(u)&&(f?!f.includes("#"):!1);return o&&[...t.children].forEach(u=>{if(u.attributes?.length){const f=Object.values(u.attributes).map(h=>{const d=h,m=/url\((.*?)\)/.exec(h.value);return m?.[1]&&(d.value=h.value.replace(m[0],`url(${r}${m[1]}__${n})`)),d});a.forEach(h=>{const d=f.find(m=>m.name===h);d&&!l(h,d.value)&&(d.value=`${d.value}__${n}`)})}return u.children.length?oO(u,e):u}),t}var Nc;function eZe(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:s=null,onError:l,onLoad:u,src:f,title:h,uniqueHash:d}=t,[m,y]=R.useReducer((V,q)=>({...V,...q}),{content:"",element:null,isCached:e&&Nc.isCached(t.src),status:Mt.IDLE}),{content:v,element:b,isCached:x,status:k}=m,O=wE(t),T=wE(m),M=R.useRef(d??XKe(8)),A=R.useRef(!1),E=R.useRef(!1),D=R.useCallback(V=>{A.current&&(y({status:V.message==="Browser does not support SVG"?Mt.UNSUPPORTED:Mt.FAILED}),l?.(V))},[l]),j=R.useCallback((V,q=!1)=>{A.current&&y({content:V,isCached:q,status:Mt.LOADED})},[]),P=R.useCallback(async()=>{const V=await nO(f,o);j(V)},[o,j,f]),$=R.useCallback(()=>{try{const V=ZKe({...t,handleError:D,hash:M.current,content:v}),q=rO(V);if(!q||!R.isValidElement(q))throw new Error("Could not convert the src to a React element");y({element:q,status:Mt.READY})}catch(V){D(V)}},[v,D,t]),L=R.useCallback(async()=>{const V=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(f);let q;if(V?q=V[1]?window.atob(V[2]):decodeURIComponent(V[2]):f.includes("{A.current&&y({content:"",element:null,isCached:!1,status:Mt.LOADING})},[]);R.useEffect(()=>{if(A.current=!0,!(!Ou()||E.current)){try{if(k===Mt.IDLE){if(!VKe())throw new Error("Browser does not support SVG");if(!f)throw new Error("Missing src");W()}}catch(V){D(V)}return E.current=!0,()=>{A.current=!1}}},[]),R.useEffect(()=>{if(!(!Ou()||!O)&&O.src!==f){if(!f){D(new Error("Missing src"));return}W()}},[D,W,O,f]),R.useEffect(()=>{k===Mt.LOADED&&$()},[k,$]),R.useEffect(()=>{!Ou()||!O||O.src!==f||(O.title!==h||O.description!==n)&&$()},[n,$,O,f,h]),R.useEffect(()=>{if(T)switch(k){case Mt.LOADING:{T.status!==Mt.LOADING&&L();break}case Mt.LOADED:{T.status!==Mt.LOADED&&$();break}case Mt.READY:{T.status!==Mt.READY&&u?.(f,x);break}}},[L,$,x,u,T,f,k]);const H=GKe(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Ou()?b?R.cloneElement(b,{ref:a,...H}):[Mt.UNSUPPORTED,Mt.FAILED].includes(k)?r:s:s}function tZe(t){Nc||(Nc=new KKe);const{loader:e}=t,[r,n]=R.useState(Nc.isReady);return R.useEffect(()=>{r||Nc.onReady(()=>{n(!0)})},[r]),r?_.createElement(eZe,{...t}):e}const rZe=window.location.hostname.endsWith("iobroker.in"),SE=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1),cs=_.forwardRef(function(e,r){if(e.src){if(typeof e.src=="string"){if(e.src.length<3)return e.sx?_.createElement(st,{component:"span",sx:e.sx,ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src):_.createElement("span",{ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src);if(e.src.startsWith("data:image/svg"))return _.createElement(tZe,{title:e.title||void 0,src:e.src,className:e.className?`iconOwn ${e.className}`:"iconOwn",width:e.style?.width||28,height:e.style?.height||e.style?.width||28,style:e.style||void 0});if(rZe&&!e.src.startsWith("http://")&&!e.src.startsWith("https://")){let n=e.src;return n.startsWith("./")?n=SE+n.substring(2):n.startsWith("/")||(n=SE+n),e.sx?_.createElement(st,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)}):_.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)})}return e.sx?_.createElement(st,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError}):_.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError})}return e.src}return null});cs.displayName="Icon";const Li={dialog:{height:"100%"},paper:{height:"calc(100% - 64px)"},content:{textAlign:"center"},textarea:{width:"100%",height:"100%"},img:{width:"auto",height:"calc(100% - 5px)",objectFit:"contain"},dialogTitle:{justifyContent:"space-between",display:"flex"}},Gr={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics","csv"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function xE(t,e){let r="";const n=new Uint8Array(t?.data||t),o=n.byteLength;for(let a=0;a{let a="";o.file!==void 0&&(a=o.file);const s={copyPossible:this.state.copyPossible,ext:this.state.ext};if(a.type==="Buffer")if(n.toLowerCase().endsWith(".json5")){s.ext="json5",s.copyPossible=!0;try{a=atob(xE(a,!0))}catch{console.error("Cannot convert base64 to string"),a=""}}else{const l=je.detectMimeType(xE(a));l&&(s.ext=l,s.copyPossible=Gr.code.includes(l)||Gr.txt.includes(l))}s.copyPossible&&(s.ext&&Gr.txt.includes(s.ext)?(s.text=a,s.editingValue=a):s.ext&&Gr.code.includes(s.ext)&&(s.code=a,s.editingValue=a)),this.setState(s)}).catch(o=>window.alert(`Cannot read file: ${o}`))}}componentDidMount(){this.readFile();const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(r,n,this.onFileChanged).catch(o=>window.alert(`Cannot subscribe on file: ${o}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.unsubscribeFiles(r,n,this.onFileChanged)}onFileChanged=(e,r,n)=>{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,n===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))};getEditorOrViewer(){return _.createElement(Vt,{variant:"standard",style:Li.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&Gr.images.includes(this.state.ext)?this.state.imgError?_.createElement(aw,{style:{...Li.img,...this.props.getStyleBackgroundImage()}}):_.createElement(cs,{onError:e=>{e.target.onerror=null,this.setState({imgError:!0})},style:{...Li.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Gr.audio.includes(this.state.ext)?_.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},_.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Gr.video.includes(this.state.ext)?_.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},_.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},_.createElement("source",{src:this.props.href,type:`video/${this.state.ext}`}))):this.state.code!==null||this.state.text!==null||this.state.editing?this.getEditorOrViewer():null}onSave(){}render(){return _.createElement(yo,{sx:{"&.MuiDialog-scrollPaper":Li.dialog,"& .MuiDialog-paper":Li.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},_.createElement("div",{style:Li.dialogTitle},_.createElement(wo,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Gr.images.includes(this.state.ext)&&_.createElement("div",null,_.createElement(hr,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},_.createElement(L9,null)))),_.createElement(bo,{style:Li.content},this.getContent()),_.createElement(vo,null,this.state.copyPossible?_.createElement(Pt,{color:"grey",onClick:e=>{e.stopPropagation(),e.preventDefault(),je.copyToClipboard(this.state.text||this.state.code||"")},startIcon:_.createElement($X,null)},this.props.t("Copy content")):null,this.state.editing?_.createElement(Pt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:_.createElement(V1,null)},this.props.t("Save")):null,_.createElement(Pt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:_.createElement(hi,null)},this.props.t("Close"))))}}const oZe=ow()(nZe),uc=32,pa=32,df=120,kE=64,CE="Not found",pf={all:B9,images:AX,code:h2,txt:RX,audio:SX,video:JX},$e={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 8px)",overflowX:"hidden",overflowY:"auto",padding:8},filesDivHint:{position:"absolute",bottom:0,left:20,opacity:.7,fontStyle:"italic",fontSize:12},filesDivTable:{height:"calc(100% - 56px)"},filesDivTile:{height:"calc(100% - 104px)",display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${kE}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:df,width:kE,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:je.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:df-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:(t.palette.mode==="dark","#FFF")}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:df-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:df-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:je.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:uc,display:"inline-flex",lineHeight:`${uc}px`,"&:hover":{background:t.palette.secondary.light,color:je.invertColor(t.palette.secondary.main,!0)}}),itemNameTable:{display:"inline-block",pl:"10px",fontSize:"1rem",verticalAlign:"top",flexGrow:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden","@media screen and (max-width: 500px)":{textAlign:"end",direction:"rtl"}},itemNameFolderTable:{fontWeight:"bold"},itemSizeTable:{display:"inline-block",width:60,verticalAlign:"top",textAlign:"right",whiteSpace:"nowrap"},itemAccessTable:{verticalAlign:"top",width:60,textAlign:"right",paddingRight:5,display:"flex",justifyContent:"center"},itemImageTable:{display:"inline-block",width:30,marginTop:1,objectFit:"contain",maxHeight:30},itemNoImageTable:{marginTop:6},itemIconTable:{display:"inline-block",marginTop:1,width:30,height:30},itemFolderTable:{},itemFolderTemp:{opacity:.4},itemFolderIconTable:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:pa,height:uc,minWidth:pa,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${pa/2}px`,"&:hover":{backgroundColor:t.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.08)"},"& span":{pt:"9px"},"& svg":{width:14,height:14,fontSize:"1rem",mt:"-3px",verticalAlign:"middle",color:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:pa,height:uc,minWidth:pa,padding:0},itemAclButtonTable:{width:pa,height:uc,minWidth:pa,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:pa,height:uc,minWidth:pa,verticalAlign:"top",padding:0,"& svg":{width:18,height:18,fontSize:"1.5rem"}},uploadDiv:{top:0,zIndex:1,bottom:0,left:0,right:0,position:"absolute",opacity:.9,textAlign:"center",background:"#FFFFFF"},uploadDivDragging:{opacity:1},uploadCenterDiv:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.palette.mode==="dark"?"#222":"#CCC",display:"flex",alignItems:"center",justifyContent:"center"}),uploadCenterIcon:{width:"25%",height:"25%"},uploadCenterText:{fontSize:24,fontWeight:"bold"},uploadCloseButton:{zIndex:2,position:"absolute",top:30,right:30},uploadCenterTextAndIcon:{position:"absolute",height:"30%",width:"100%",margin:"auto",opacity:.3},menuButtonExpertActive:{color:"#c00000"},menuButtonRestrictActive:{color:"#c05000"},pathDiv:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText,borderRadius:"4px 4px 0 0"}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer",color:"white","&:hover":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:"#FFF"},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},Ka="0_userdata.0";function dc(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function Lv(t){const e=je.getFileExtension(t);return!!(e?.toLowerCase().match(/[a-z]+/)&&e.length<5)}const Rt="Table",Fv="Tile";function $E(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.nameu.startsWith(`${this.limitToPath}/`)||u===this.limitToPath||this.limitToPath?.startsWith(`${u}/`)))}catch{n=[]}let o;this.props.showViewTypeButton?o=this.localStorage.getItem("files.viewType")||Rt:o=Rt;let a=this.props.selected||this.localStorage.getItem("files.selected")||Ka,s;if(e.restrictToFolder){a=e.restrictToFolder,s=e.restrictToFolder;const u=e.restrictToFolder.split("/");n=[];let f="";for(let h=0;h{if(this.state.viewType===Rt&&!this.findItem(this.state.selected)){const r=this.state.selected.split("/");for(;r.length&&!this.findItem(r.join("/"));)r.pop();let n;r.length?n=r.join("/"):n=Ka,this.setState({selected:n,path:n,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){this.mounted&&document.getElementById(this.state.selected)?.scrollIntoView()}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`)),this.browseList=[],this.browseListRunning=!1,this.supportSubscribes=await this.props.socket.checkFeatureSupported("BINARY_STATE_EVENT"),this.supportSubscribes&&await this.props.socket.subscribeFiles("*","*",this.onFileChange)}componentWillUnmount(){this.supportSubscribes&&this.props.socket.unsubscribeFiles("*","*",this.onFileChange),this.mounted=!1,this.browseList=null,this.browseListRunning=!1,Object.values(this._tempTimeout).forEach(e=>{e&&clearTimeout(e)}),this._tempTimeout={}}browseFoldersCb(e,r,n){if(!e?.length)n(r);else{const o=e.shift();o?this.browseFolder(o,r).catch(a=>console.error(`Cannot read folder ${o}: ${a.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(e,r,n),0)}):setTimeout(()=>this.browseFoldersCb(e,r,n),0)}}browseFolders(e,r){let n;return r?n=r:(n={},Object.keys(this.state.folders).forEach(o=>n[o]=this.state.folders[o])),e?.length?new Promise(o=>{this.browseFoldersCb(e,n,o)}):Promise.resolve(n)}readDirSerial(e,r){return new Promise((n,o)=>{this.browseList&&(this.browseList.push({resolve:n,reject:o,adapter:e,relPath:r}),this.browseListRunning||this.processBrowseList())})}processBrowseList(e=0){!this.browseListRunning&&this.browseList&&this.browseList.length&&(this.browseListRunning=!0,this.browseList.length>10?this.browseList.length%10||this.setState({queueLength:this.browseList.length}):this.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath||"").then(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.resolve;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.reject;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(e,r,n,o){let a;if(r?a=r:(a={},Object.keys(this.state.folders).forEach(d=>{a[d]=this.state.folders[d]})),a[e]&&!o)return n?Promise.resolve(a):new Promise((d,m)=>{Promise.all(a[e].filter(y=>y.folder).map(y=>this.browseFolder(y.id,a,!0).catch(()=>{}))).then(()=>d(a)).catch(y=>m(new Error(y)))});if(!e||e==="/"){try{let d=await this.props.socket.readMetaItems();const m=[];let y=null;if(this.state.restrictToFolder){const b=this.state.restrictToFolder.split("/")[0];d=d.filter(x=>x._id===b)}else this.state.expertMode||(d=d.filter(b=>!b._id.endsWith(".admin")));const v=d.findIndex(b=>b._id==="system.meta.uuid");if(v!==-1&&d.splice(v,1),d.forEach(b=>{if(this.limitToObjectID&&this.limitToObjectID!==b._id)return;const x={id:b._id,name:b._id,title:b.common&&b.common.name||b._id,meta:!0,from:b.from,ts:b.ts,color:b.common&&b.common.color,icon:b.common&&b.common.icon,folder:!0,acl:b.acl,level:0};x.id===Ka?y=x:m.push(x)}),m.sort((b,x)=>b.id>x.id?1:b.idb.folder).map(b=>this.browseFolder(b.id,a,!0).catch(()=>{}))).then(()=>a)}catch(d){const m=d;this.initialReadFinished&&window.alert(`Cannot read meta items: ${m.message}`),a[e||"/"]=[]}return a}const s=e.split("/"),l=s.length,u=s.shift(),f=s.join("/");let h;try{h=await this.readDirSerial(u||"",f)}catch(d){if(d==="Not exists"&&u==="0_userdata.0")h=[];else throw d}try{const d=[];if(h.forEach(m=>{const y={id:`${e}/${m.file}`,ext:je.getFileExtension(m.file),folder:m.isDir,name:m.file,size:m.stats?.size,modified:m.modifiedAt,acl:m.acl,level:l};this.state.restrictToFolder?(y.folder&&(y.id.startsWith(`${this.state.restrictToFolder}/`)||y.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${y.id}/`))||y.id.startsWith(`${this.state.restrictToFolder}/`))&&d.push(y):this.limitToPath?(y.folder&&(y.id.startsWith(`${this.limitToPath}/`)||y.id===this.limitToPath||this.limitToPath.startsWith(`${y.id}/`))||y.id.startsWith(`${this.limitToPath}/`))&&d.push(y):d.push(y)}),d.sort($E),a[e]=d,!n)return Promise.all(d.filter(m=>m.folder).map(m=>this.browseFolder(m.id,a,!0))).then(()=>a)}catch(d){const m=d;this.initialReadFinished&&window.alert(`Cannot read ${u}${f?`/${f}`:""}: ${m?.message}`),a[e]=[]}return a}toggleFolder(e,r){r?.stopPropagation();const n=[...this.state.expanded],o=n.indexOf(e.id);o===-1?(n.push(e.id),n.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(n)),e.temp?this.setState({expanded:n}):this.browseFolder(e.id).then(a=>this.setState({expanded:n,folders:a})).catch(a=>window.alert(a===CE?this.props.t('ra_Cannot find "%s"',e.id):this.props.t('ra_Cannot read "%s"',e.id)))):(n.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(n)),this.setState({expanded:n}))}onFileChange=(e,r,n)=>{const o=`${e}/${r}`,a=o.lastIndexOf("/"),s=o.substring(0,a);console.log(`File changed ${o}[${n}]`),this.state.folders[s]&&(this._tempTimeout[s]&&clearTimeout(this._tempTimeout[s]),this._tempTimeout[s]=setTimeout(()=>{delete this._tempTimeout[s],this.browseFolder(s,null,!1,!0).then(l=>this.setState({folders:l})).catch(l=>console.error(`Cannot read folder: ${l.message}`))},300))};changeFolder(e,r){e?.stopPropagation(),this.lastSelect=Date.now();let n=r||dc(this.state.currentDir);if(n==="/"&&(n=""),this.state.viewType==="Tile"&&this.refFileDiv.current?.scrollTop&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem("files.currentDir",n),r&&e&&(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)){this.setState({selected:n});return}if(n&&!this.state.folders[n]){this.browseFolder(n).then(o=>this.setState({folders:o,path:n,currentDir:n,selected:n,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(o=>console.error(`Cannot read folder: ${o.message}`));return}this.setState({currentDir:n,selected:n,path:n,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(""),this.state.viewType==="Tile"&&this.scrollPositions[this.state.currentDir]){const o=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=o)}})}select(e,r,n){r&&r.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",e),this.setState({selected:e,path:e,pathFocus:!1},()=>{if(this.props.onSelect){const o=je.getFileExtension(e);(!this.props.filterFiles||o&&this.props.filterFiles.includes(o))&&(!this.state.filterByType||o&&Gr[this.state.filterByType].includes(o))?this.props.onSelect(e,!1,!!this.state.folders[e]):this.props.onSelect("")}n&&n()})}getText(e){if(e)return typeof e=="object"?e[this.props.lang]||e.en||void 0:e}renderFolder(e,r){if(this.state.filterEmpty&&!this.state.folders[e.id]?.length&&e.id!==Ka&&!e.temp)return null;const n=r?NKe:ab,o=this.state.viewType===Rt?e.level*this.levelPadding:0,a=e.name===Ka,s=a||e.name==="vis.0"||e.name==="vis-2.0",l=je.getStyle(this.props.theme,$e[`itemFolderIcon${this.state.viewType}`],s&&$e.specialFolder);return _.createElement(st,{component:"div",key:e.id,id:e.id,style:this.state.viewType===Rt?{marginLeft:o,width:`calc(100% - ${o}px)`}:void 0,onClick:u=>this.state.viewType===Rt?this.select(e.id,u):this.changeFolder(u,e.id),onDoubleClick:u=>this.state.viewType===Rt&&this.toggleFolder(e,u),title:this.getText(e.title),className:"browserItem",sx:je.getStyle(this.props.theme,$e[`item${this.state.viewType}`],$e[`itemFolder${this.state.viewType}`],this.state.selected===e.id?$e.itemSelected:{},e.temp?$e.itemFolderTemp:{})},_.createElement(n,{style:l,onClick:this.state.viewType===Rt?u=>this.toggleFolder(e,u):void 0}),_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,$e[`itemName${this.state.viewType}`],$e[`itemNameFolder${this.state.viewType}`])},a?this.props.t("ra_User files"):e.name),_.createElement(st,{component:"div",style:$e[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Rt&&this.state.folders[e.id]?this.state.folders[e.id].length:""),_.createElement(st,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Rt&&this.props.expertMode?this.formatAcl(e.acl):null),this.state.viewType===Rt&&this.props.expertMode?_.createElement(st,{component:"div",sx:{...$e.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===Rt&&this.props.allowDownload?_.createElement("div",{style:$e[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===Rt&&this.props.allowDelete&&this.state.folders[e.id]&&this.state.folders[e.id].length?_.createElement(hr,{"aria-label":"delete",onClick:u=>{u.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:$e[`itemDeleteButton${this.state.viewType}`],size:"large"},_.createElement(ju,{fontSize:"small"})):this.state.viewType===Rt&&this.props.allowDelete?_.createElement(st,{component:"div",sx:$e[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return _.createElement(st,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:e=>this.changeFolder(e),title:this.props.t("ra_Back to %s",dc(this.state.currentDir)),className:"browserItem",sx:je.getStyle(this.props.theme,$e[`item${this.state.viewType}`],$e[`itemFolder${this.state.viewType}`])},_.createElement(ab,{style:je.getStyle(this.props.theme,$e[`itemFolderIcon${this.state.viewType}`])}),_.createElement(wX,{sx:$e.itemFolderIconBack}),_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,$e[`itemName${this.state.viewType}`],$e[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(e){return _.createElement("div",{style:$e[`itemSize${this.state.viewType}`]},e||e===0?je.formatBytes(e):"")}formatAcl(e){const r=e?e.permissions||e.file:0;let n;return r?n=r.toString(16).padStart(3,"0"):n="",_.createElement("div",{style:$e[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?_.createElement(hr,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:$e[`itemAclButton${this.state.viewType}`]},n||"---"):n||"---")}getFileIcon(e){switch(e){case"json":case"json5":return _.createElement(xX,{style:$e[`itemIcon${this.state.viewType}`]});case"css":return _.createElement(kX,{style:$e[`itemIcon${this.state.viewType}`]});case"js":case"ts":return _.createElement(h2,{style:$e[`itemIcon${this.state.viewType}`]});case"html":case"md":return _.createElement(F9,{style:$e[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return _.createElement(zX,{style:$e[`itemIcon${this.state.viewType}`]});default:return _.createElement(B9,{style:$e[`itemIcon${this.state.viewType}`]})}}static getEditFile(e){switch(e){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":case"csv":return!0;default:return!1}}setStateBackgroundImage=()=>{const e=["light","dark","colored","delete"];this.setState(({backgroundImage:r})=>r&&e.indexOf(r)!==-1&&e.length-1!==e.indexOf(r)?(this.localStorage.setItem("files.backgroundImage",e[e.indexOf(r)+1]),{backgroundImage:e[e.indexOf(r)+1]}):(this.localStorage.setItem("files.backgroundImage",e[0]),{backgroundImage:e[0]}))};getStyleBackgroundImage=()=>{switch(this.state.backgroundImage){case"light":return $e.backgroundImageLight;case"dark":return $e.backgroundImageDark;case"colored":return $e.backgroundImageColored;case"delete":return null;default:return null}};renderFile(e){const r=this.state.viewType===Rt?e.level*this.levelPadding:0,n=je.getFileExtension(e.name);return _.createElement(st,{component:"div",key:e.id,id:e.id,onDoubleClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Gr[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},onClick:o=>this.select(e.id,o),style:this.state.viewType===Rt?{marginLeft:r,width:`calc(100% - ${r}px)`}:void 0,className:"browserItem",sx:je.getStyle(this.props.theme,$e[`item${this.state.viewType}`],$e[`itemFile${this.state.viewType}`],this.state.selected===e.id?$e.itemSelected:void 0)},n&&Gr.images.includes(n)?this.state.fileErrors.includes(e.id)?_.createElement(aw,{style:{...$e[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...$e[`itemNoImage${this.state.viewType}`]}}):_.createElement(cs,{onError:o=>{o.target.onerror=null;const a=[...this.state.fileErrors];a.includes(e.id)||(a.push(e.id),this.setState({fileErrors:a}))},style:{...$e[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+e.id,alt:e.name}):this.getFileIcon(n),_.createElement(st,{component:"div",sx:$e[`itemName${this.state.viewType}`]},e.name),_.createElement(st,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(e.size)),_.createElement(st,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Rt&&this.props.expertMode?this.formatAcl(e.acl):null),_.createElement(st,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Rt&&this.props.expertMode&&iw.getEditFile(n)?_.createElement(hr,{"aria-label":"edit",onClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Gr[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},sx:$e.itemDeleteButtonTable,size:"large"},_.createElement(TX,{fontSize:"small"})):_.createElement(st,{component:"div",sx:$e[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===Rt&&this.props.allowDownload?_.createElement(st,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:$e.itemDownloadButtonTable,tabIndex:0,download:e.id,href:this.imagePrefix+e.id,onClick:o=>o.stopPropagation()},_.createElement(WX,null)):null,this.state.viewType===Rt&&this.props.allowDelete&&e.id!=="vis.0/"&&e.id!=="vis-2.0/"&&e.id!==Ka?_.createElement(hr,{"aria-label":"delete",onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:$e[`itemDeleteButton${this.state.viewType}`],size:"large"},_.createElement(ju,{fontSize:"small"})):this.state.viewType===Rt&&this.props.allowDelete?_.createElement(st,{component:"div",sx:$e[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(e){if(this.state.folders?.[e]){if(this.state.viewType===Fv){const n=[];return e&&e!=="/"&&n.push(this.renderBackFolder()),this.state.folders[e].forEach(o=>{o.folder?n.push(this.renderFolder(o)):(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&Gr[this.state.filterByType].includes(o.ext))&&n.push(this.renderFile(o))}),n}const r=[];return this.state.folders[e].forEach(n=>{if(n.folder){const o=this.state.expanded.includes(n.id),a=this.renderFolder(n,o);if(Array.isArray(a)?a.forEach(s=>r.push(s)):r.push(a),this.state.folders[n.id]&&o){const s=this.renderItems(n.id);Array.isArray(s)?s.forEach(l=>r.push(l)):r.push(s)}}else(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Gr[this.state.filterByType].includes(n.ext))&&r.push(this.renderFile(n))}),r}return _.createElement("div",{style:{position:"relative"}},_.createElement(Dh,{key:e,color:"secondary",size:24}),_.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const e=this.props.showTypeSelector?pf[this.state.filterByType||"all"]||pf.all:null,r=this.findFirstFolder(this.state.selected);return _.createElement(F8,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?_.createElement(hr,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...$e.menuButton,...this.state.restrictToFolder?$e.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},_.createElement(DX,{fontSize:"small"})):null,this.props.showExpertButton?_.createElement(hr,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...$e.menuButton,...this.state.expertMode?$e.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},_.createElement(AKe,null)):null,this.props.showViewTypeButton?_.createElement(hr,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:$e.menuButton,"aria-label":"view mode",onClick:()=>{const n=this.state.viewType===Rt?Fv:Rt;this.localStorage.setItem("files.viewType",n);let o=this.state.selected;Lv(o)&&(o=dc(o)),this.setState({viewType:n,currentDir:o},()=>{this.state.viewType===Rt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==Rt?_.createElement(PX,{fontSize:"small"}):_.createElement(YX,{fontSize:"small"})):null,_.createElement(hr,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:$e.menuButton,color:this.state.filterEmpty?"secondary":"inherit","aria-label":"filter empty",onClick:()=>{this.localStorage.setItem("file.empty",this.state.filterEmpty?"false":"true"),this.setState({filterEmpty:!this.state.filterEmpty})},size:"small"},_.createElement(OX,{fontSize:"small"})),_.createElement(hr,{edge:"start",title:this.props.t("ra_Reload files"),style:$e.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},_.createElement(FX,{fontSize:"small"})),this.props.allowCreateFolder?_.createElement(hr,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:$e.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},_.createElement(EX,{fontSize:"small"})):null,this.props.allowUpload?_.createElement(hr,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:$e.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},_.createElement(K4,{fontSize:"small"})):null,this.props.showTypeSelector&&e?_.createElement(mg,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:$e.tooltip}}},_.createElement(hr,{size:"small",onClick:n=>this.setState({showTypesMenu:n.target})},_.createElement(e,{fontSize:"small"}))):null,this.state.showTypesMenu?_.createElement(N8,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(pf).map(n=>{const o=pf[n];return _.createElement(rr,{key:n,selected:this.state.filterByType===n,onClick:()=>{n==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",n),this.setState({filterByType:n,showTypesMenu:null}))}},_.createElement(UF,null,_.createElement(o,{fontSize:"small"})),_.createElement(GF,null,this.props.t(`ra_fileType_${n}`)))})):null,_.createElement(mg,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:$e.tooltip}}},_.createElement(hr,{color:"inherit",edge:"start",style:$e.menuButton,onClick:this.setStateBackgroundImage,size:"small"},_.createElement(L9,{fontSize:"small"}))),this.state.viewType!==Rt&&this.props.allowDelete?_.createElement(mg,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:$e.tooltip}}},_.createElement("span",null,_.createElement(hr,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===Ka,color:"inherit",edge:"start",style:$e.menuButton,onClick:n=>{n.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},_.createElement(ju,{fontSize:"small"})))):null)}findItem(e,r){if(r=r||this.state.folders,!r)return null;const n=e.split("/");n.pop();const o=n.join("/")||"/";return r[o]&&r[o].find(a=>a.id===e)||null}renderInputDialog(){if(this.state.addFolder){const e=this.findFirstFolder(this.state.selected);return e?_.createElement(MKe,{key:"inputDialog",applyText:this.props.t("ra_Create"),cancelText:this.props.t("ra_Cancel"),titleText:this.props.t("ra_Create new folder in %s",this.state.selected),promptText:this.props.t("ra_If no file will be created in the folder, it will disappear after the browser closed"),labelText:this.props.t("ra_Folder name"),verify:r=>this.state.folders[e].find(n=>n.name===r)?"":this.props.t("ra_Duplicate name"),onClose:r=>{if(r){const n={};Object.keys(this.state.folders).forEach(l=>n[l]=this.state.folders[l]);const o=this.findItem(e),a=`${e}/${r}`;n[e].push({id:a,level:(o?.level||0)+1,name:r,folder:!0,temp:!0}),n[e].sort($E),n[a]=[];const s=[...this.state.expanded];s.includes(e)||(s.push(e),s.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(s)),this.setState({addFolder:!1,folders:n,expanded:s},()=>this.select(a))}else this.setState({addFolder:!1})},replace:r=>r.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const e=window.document.getElementsByClassName("browserItem");for(let r=0;rthis.setState({uploadFile:!1})},_.createElement(hi,null)),_.createElement(Rd,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:e=>{let r=e.length;e.forEach(n=>{const o=new FileReader;o.onabort=()=>console.log("file reading was aborted"),o.onerror=()=>console.log("file reading has failed"),o.onload=()=>{const a=this.findFirstFolder(this.state.selected);if(!a)window.alert(this.props.t("ra_Invalid parent folder!"));else{const s=`${a}/${n.name}`;this.uploadFile(s,o.result).then(()=>{--r||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const l=[...this.state.expanded];l.includes(a)||(l.push(a),l.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(l))),this.setState({expanded:l},()=>this.select(s))}else setTimeout(()=>this.browseFolder(a,null,!1,!0).then(l=>{const u=[...this.state.expanded];u.includes(a)||(u.push(a),u.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(u))),this.setState({folders:l,expanded:u},()=>this.select(s))}),500)})})}},o.readAsArrayBuffer(n)})}},({getRootProps:e,getInputProps:r})=>_.createElement("div",{style:{...$e.uploadDiv,...this.state.uploadFile==="dragging"?$e.uploadDivDragging:void 0},...e()},_.createElement("input",{...r()}),_.createElement(st,{component:"div",sx:$e.uploadCenterDiv},_.createElement("div",{style:$e.uploadCenterTextAndIcon},_.createElement(K4,{style:$e.uploadCenterIcon}),_.createElement("div",{style:$e.uploadCenterText},this.state.uploadFile==="dragging"?this.props.t("ra_Drop file here"):this.props.t("ra_Place your files here or click here to open the browse dialog"))))))]:null}deleteRecursive(e){const r=this.findItem(e);if(r?.folder)return(this.state.folders[e]?Promise.all(this.state.folders[e].map(a=>this.deleteRecursive(a.id))):Promise.resolve()).then(()=>{if(r.level>=1){const a=e.split("/"),s=a.shift();this.props.socket.deleteFolder(s||"",a.join("/")).then(()=>{const l=JSON.parse(JSON.stringify(this.state.folders));delete l[r.id];const u=dc(r.id),f=l[u];if(f){const h=f.findIndex(d=>d.id===r.id);h!==-1&&f.splice(h,1),this.select(u,null,()=>this.setState({folders:l}))}})}});const n=e.split("/"),o=n.shift();return n.length?this.props.socket.deleteFile(o||"",n.join("/")).catch(a=>window.alert(`Cannot delete file: ${a}`)):Promise.resolve()}deleteItem(e){e=e||this.state.deleteItem,this.state.suppressDeleteConfirm&&(this.suppressDeleteConfirm=Date.now()+6e4*5),this.setState({deleteItem:"",suppressDeleteConfirm:!1},()=>this.deleteRecursive(e).then(()=>{const r={},n=this.state.expanded.indexOf(e);if(n!==-1){const o=[...this.state.expanded];o.splice(n,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.expanded=o}if(this.state.selected===e){const o=this.state.selected.split("/");o.pop(),r.selected=o.join("/")}if(this.supportSubscribes)this.setState(r);else{const o=this.findFirstFolder(e),a={};Object.keys(this.state.folders).forEach(s=>{s!==o&&!s.startsWith(`${o}/`)&&(a[s]=this.state.folders[s])}),r.folders=a,this.setState(r,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],a).then(s=>this.setState({folders:s})).catch(s=>console.error(s))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?_.createElement(yo,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},_.createElement(wo,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),_.createElement(bo,null,_.createElement(Ph,null,this.props.t("ra_Are you sure?")),_.createElement(ut,{control:_.createElement(mr,{checked:this.state.suppressDeleteConfirm,onChange:()=>{this.setState({suppressDeleteConfirm:!this.state.suppressDeleteConfirm})}}),label:this.props.t("ra_no confirm for 5 mins")})),_.createElement(vo,null,_.createElement(Pt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),_.createElement(Pt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const e=this.props.FileViewer||oZe;return this.state.viewer?_.createElement(e,{supportSubscribes:this.supportSubscribes||void 0,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile||void 0,themeType:this.props.themeType||"light",setStateBackgroundImage:this.setStateBackgroundImage,getStyleBackgroundImage:this.getStyleBackgroundImage,t:this.props.t,socket:this.props.socket,onClose:()=>this.setState({viewer:"",formatEditFile:""})}):null}renderError(){return this.state.errorText?_.createElement(q9,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(e){this.cacheFolders||=JSON.parse(JSON.stringify(this.state.folders));let r;e.forEach(n=>{const o=this.findItem(n.id,this.cacheFolders);o&&JSON.stringify(o.acl)!==JSON.stringify(n.acl)&&(o.acl=n.acl,r=!0)}),r&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const n=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:n})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let e=this.state.path;Lv(this.state.path)&&(e=dc(this.state.path)),new Promise(r=>{this.state.folders[e]?r(!0):this.browseFolder(e).then(n=>this.setState({folders:n},()=>r(!0))).catch(n=>this.setState({errorText:n===CE?this.props.t('ra_Cannot find "%s"',e):this.props.t('ra_Cannot read "%s"',e)}))}).then(r=>r&&this.setState({selected:this.state.path,currentDir:e,pathFocus:!1})).catch(r=>console.error(r))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const e=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),r=[];return _.createElement(Fz,{style:{paddingLeft:8,color:"#FFF"}},e.map((n,o)=>{n&&r.push(n);const a=r.join("/");return othis.changeFolder(s,a||"/")},n||this.props.t("ra_Root")):_.createElement("div",{style:$e.pathDivBreadcrumbSelected,key:`${this.state.selected}_${o}`,onClick:()=>this.setState({pathFocus:!0})},n)}))}renderPath(){return _.createElement(st,{component:"div",key:"path",sx:$e.pathDiv},this.state.pathFocus?_.createElement(fo,{value:this.state.path,onKeyDown:e=>{e.key==="Enter"?this.changeToPath():e.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:_.createElement(hr,{size:"small",onClick:()=>this.changeToPath()},_.createElement(IX,null)),onBlur:()=>this.changeToPath(),onChange:e=>this.setState({path:e.target.value}),style:$e.pathDivInput}):this.renderBreadcrumb())}render(){return this.props.ready?(this.state.loadAllFolders&&!this.foldersLoading&&(this.foldersLoading=!0,setTimeout(()=>{this.setState({loadAllFolders:!1,folders:{}},()=>{this.foldersLoading=!1,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`))})},300)),_.createElement("div",{style:{...$e.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===Fv?this.renderPath():null,_.createElement("div",{style:{...$e.filesDiv,...$e[`filesDiv${this.state.viewType}`]},onClick:e=>{this.state.viewType!==Rt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(e,this.state.currentDir||"/"):e.stopPropagation())},id:"dev",ref:this.refFileDiv},this.state.viewType===Rt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==Rt?_.createElement("div",{style:$e.filesDivHint},this.props.t("ra_select_folder_hint")):null),this.props.allowUpload?this.renderInputDialog():null,this.props.allowUpload?this.renderUpload():null,this.props.allowDelete?this.renderDeleteDialog():null,this.props.allowView?this.renderViewDialog():null,this.state.modalEditOfAccess&&this.props.modalEditOfAccessControl?this.props.modalEditOfAccessControl(this):null,this.renderError())):_.createElement(R8,null)}}const aZe=ow()(iw);function iZe(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r?.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function sZe(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}class Mf extends R.Component{svg;static REMOTE_SERVER=window.location.hostname.includes("iobroker.in");static REMOTE_PREFIX=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);constructor(e){super(e),this.state={svg:!!this.props.src?.startsWith("data:"),created:!0,color:this.props.color||"",src:this.props.src||"",imgError:!1,showError:!!this.props.showError},this.svg=this.state.svg&&this.state.src?this.getSvgFromData(this.state.src):null}static getDerivedStateFromProps(e,r){const n={};let o=!1;return e&&r&&e.src!==r.src&&(n.src=e.src,n.svg=e.src?.startsWith("data:"),n.created=!1,o=!0),e&&r&&e.color!==r.color&&(n.color=e.color,n.created=!1,o=!0),e&&r&&e.showError!==r.showError&&(n.showError=e.showError,o=!0),o?n:null}getSvgFromData(e){const r="data:image/svg+xml;base64,";if(!e.startsWith(r))return null;e=e.substring(r.length);try{e=atob(e);const n=iZe(e),o=n.innerHTML,a=sZe(n.attributes);return n.remove(),_.createElement(st,{component:"svg",sx:this.props.sx,className:this.props.className,style:this.state.color?{color:this.state.color}:void 0,...a,dangerouslySetInnerHTML:{__html:o}})}catch{}return null}render(){if(this.state.svg)return this.state.created||setTimeout(()=>{this.svg=this.state.src?this.getSvgFromData(this.state.src):null,this.setState({created:!0})},50),this.svg;if(this.state.src){if(this.state.imgError||!this.state.src)return _.createElement(aw,{className:this.props.className});if(Mf.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let e=(this.props.imagePrefix||"")+this.state.src;return e.startsWith("./")?e=Mf.REMOTE_PREFIX+e.substring(2):e.startsWith("/")||(e=Mf.REMOTE_PREFIX+e),_.createElement(st,{component:"img",sx:this.props.sx,className:this.props.className,src:`https://remote-files.iobroker.in${e}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return _.createElement(st,{component:"img",sx:this.props.sx,className:this.props.className,src:(this.props.imagePrefix||"")+this.state.src,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return null}}var Bv={},uu={},Fi={},EE;function sw(){if(EE)return Fi;EE=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.StateType=Fi.Types=void 0;var t;(function(r){r.unknown="unknown",r.airCondition="airCondition",r.blind="blind",r.blindButtons="blindButtons",r.button="button",r.buttonSensor="buttonSensor",r.camera="camera",r.chart="chart",r.cie="cie",r.ct="ct",r.dimmer="dimmer",r.door="door",r.fireAlarm="fireAlarm",r.floodAlarm="floodAlarm",r.gate="gate",r.hue="hue",r.humidity="humidity",r.illuminance="illuminance",r.image="image",r.info="info",r.instance="instance",r.light="light",r.location="location",r.locationOne="locationOne",r.lock="lock",r.media="media",r.motion="motion",r.percentage="percentage",r.rgb="rgb",r.rgbSingle="rgbSingle",r.rgbwSingle="rgbwSingle",r.slider="slider",r.socket="socket",r.temperature="temperature",r.thermostat="thermostat",r.vacuumCleaner="vacuumCleaner",r.volume="volume",r.volumeGroup="volumeGroup",r.warning="warning",r.weatherCurrent="weatherCurrent",r.weatherForecast="weatherForecast",r.window="window",r.windowTilt="windowTilt"})(t||(Fi.Types=t={}));var e;return(function(r){r.Number="number",r.String="string",r.Boolean="boolean"})(e||(Fi.StateType=e={})),Fi}var qr={},TE;function cw(){if(TE)return qr;TE=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.checkEnum=t,qr.roleOrEnum=e,qr.roleOrEnumLight=o,qr.roleOrEnumBlind=l,qr.roleOrEnumGate=h,qr.roleOrEnumWindow=m,qr.roleOrEnumDoor=b,qr.getEnums=x,qr.getAllStatesInChannel=k,qr.getAllStatesInDevice=O,qr.getObjectsBelowId=T,qr.getFunctionEnums=M,qr.getParentId=A;function t(E,D){let j=!1;return E&&E.forEach(P=>{const $=P.lastIndexOf(".");$!==-1&&(P=P.substring($+1));for(const L in D)if(Object.prototype.hasOwnProperty.call(D,L)&&D[L].find(W=>W.test(P)))return j=!0,!1}),j}function e(E,D,j,P){return E.common.role&&j?.includes(E.common.role)?!0:t(D,P)}const r={en:[/lights?/i,/lamps?/i,/ceilings?/i],de:[/licht(er)?/i,/lampen?/i,/beleuchtung(en)?/i],ru:[/свет/i,/ламп[аы]/i,/торшеры?/,/подсветк[аи]/i,/лампочк[аи]/i,/светильники?/i]},n=["switch.light","dimmer","value.dimmer","level.dimmer","sensor.light","state.light"];function o(E,D){return e(E,D,n,r)}const a={en:[/blinds?/i,/windows?/i,/shutters?/i],de:[/rollladen?/i,/fenstern?/i,/beschattung(en)?/i,/jalousien?/i],ru:[/ставни/i,/рольставни/i,/окна|окно/,/жалюзи/i]},s=["blind","level.blind","value.blind","action.stop","button.stop","button.stop.blind","button.open.blind","button.close.blind","level.tilt","value.tilt","button.tilt.open","button.tilt.close","button.tilt.stop"];function l(E,D){return e(E,D,s,a)}const u={en:[/gates?/i],de:[/^toren$/i,/^tor$/i],ru:[/ворота/i]},f=["gate","value.gate","switch.gate","action.stop","button.stop"];function h(E,D){return e(E,D,f,u)}const d=["window","state.window","sensor.window","value.window"];function m(E,D){return e(E,D,d,a)}const y={en:[/doors?/i,/gates?/i,/wickets?/i,/entry|entries/i],de:[/^türe?/i,/^tuere?/i,/^tore?$/i,/einfahrt(en)?/i,/pforten?/i],ru:[/двери|дверь/i,/ворота/i,/калитка|калитки/,/въезды?/i,/входы?/i]},v=["door","state.door","sensor.door"];function b(E,D){return e(E,D,v,y)}function x(){return{door:{roles:v,words:y},window:{roles:d,words:a},blind:{roles:s,words:a},gate:{roles:f,words:u},light:{roles:n,words:r}}}function k(E,D){const j=[],P=new RegExp(`^${D.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+$`);return E.forEach($=>P.test($)&&j.push($)),j}function O(E,D){const j=[],P=new RegExp(`^${D.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+\\.[^.]+$`);return E.forEach($=>P.test($)&&j.push($)),j}function T(E,D){const j=[];D+=".";let P=0,$=E.length-1,L=-1;for(;P<=$;){const W=Math.floor((P+$)/2);E[W]=E.length)return j;for(let W=L;W{a[h].common.members.includes(s)&&f.push(h)}),!f.length&&((u=a[s])===null||u===void 0?void 0:u.type)==="state"){const h=(0,e.getParentId)(s);a[h]&&(a[h].type==="channel"||a[h].type==="device")&&this.enums.forEach(d=>{a[d].common.members.includes(h)&&f.push(d)})}return f.length?f:null}static copyState(a,s){const l=s||JSON.parse(JSON.stringify(a));return l.original=a.original||a,"enums"in a&&a.enums&&(l.enums=a.enums),"role"in a&&a.role&&(l.role=a.role),"channelRole"in a&&a.channelRole&&(l.channelRole=a.channelRole),l}_testOneState(a){var s,l,u,f,h,d;const m=a.objects,y=a.pattern,v=a.state,b=a.channelStates,x=a.usedIds,k=a.usedInCurrentDevice,O=a.ignoreIndicators,T=a.ignoreEnums,M=a.sortedKeys;let A=a.result,E=!1;for(const D of b)if(!(v.name==="COVER"&&A?.states.find(j=>j.id&&j.name==="COVER"))){if(v.indicator&&O){const P=D.split(".").pop()||"";if(P&&O.includes(P))continue}if(!v.indicator){if(k.includes(D))continue;if(!v.notSingle){if(!a.detectAllPossibleDevices){if(x.includes(D))continue}}}if(this._applyPattern(m,D,v,T,M)){if(A||(A=JSON.parse(JSON.stringify(r.patterns[y])),a.result=A,A?.states.forEach((j,P)=>po.copyState(r.patterns[y].states[P],j))),A.states.find(({id:j})=>j===D))E=!0;else for(const j of A.states)if(j.name===v.name){if(j.id){let P;a.favorId&&(D===a.favorId?P=!0:j.id===a.favorId&&(P=!1));const $=(u=(l=(s=m[j.id])===null||s===void 0?void 0:s.common)===null||l===void 0?void 0:l.role)!==null&&u!==void 0?u:"",L=(d=(h=(f=m[D])===null||f===void 0?void 0:f.common)===null||h===void 0?void 0:h.role)!==null&&d!==void 0?d:"",W=j.defaultRole;if(W&&P===void 0&&(L===W?P=!0:$===W&&(P=!1)),P===void 0){const H=L.split("."),V=H.length,q=$.split("."),J=q.length;L===""||H[0]==="state"&&q[0]!=="state"?P=!1:H[0]!=="state"&&q[0]==="state"||V>J?P=!0:V1)){for(const j of b)if(j!==D&&(v.indicator||!k.includes(j)&&(v.notSingle||!x.includes(j)))&&this._applyPattern(m,j,v,T,M))if(v.indicator||k.push(j),Array.isArray(v)){const P=po.copyState(v[0]);P.id=j,A.states.push(P)}else{const P=po.copyState(v);P.id=j,A.states.push(P)}}}}return E}static findParentChannelOrDevice(a,s,l){if(!a[s])return;const u=s.split("."),f=s;if(a[s].type==="state"&&(u.pop(),s=u.join(".")),u.length<=2)return s;const h=a[s];if(h?.type==="device"||l&&h?.type==="channel")return s;if(l)return;u.pop();const d=u.join("."),m=a[d];if(!m)return h?s:f;if(m.type==="device"||u.length<=2)return d;if(h?.type==="channel")return s;u.pop();const y=u.join("."),v=a[y];return!v||v.type!=="device"&&v.type!=="channel"?d:y}static getChannelOrDeviceStates(a,s,l,u=!1,f=!1){var h;const d=(h=a[s])===null||h===void 0?void 0:h.type;switch(d){case void 0:return[...(0,e.getObjectsBelowId)(l,s)];case"state":case"channel":case"device":case"folder":if(u&&d!=="device"){const m=po.findParentChannelOrDevice(a,s);return m&&m!==s?[...(0,e.getObjectsBelowId)(l,m)]:[s]}if(d!=="state")return[...(0,e.getObjectsBelowId)(l,s)];if(f){const m=po.findParentChannelOrDevice(a,s,!0);return m&&m!==s?[...(0,e.getObjectsBelowId)(l,m)]:[s]}return[s];default:return[s]}}static patternIsAllowed(a,s,l){if(!a)return!1;if(Array.isArray(a.type)){for(let u=0;u{const f=a.indexOf(l),h=a.indexOf(u);if(f===-1||h===-1)return;const d=a.splice(f,1);a.splice(h,0,...d)}),a}_detectNext(a){var s,l,u,f;const{objects:h,id:d,_usedIdsOptional:m=[],ignoreIndicators:y,prioritizedTypes:v,detectParent:b,detectOnlyChannel:x,allowedTypes:k,excludedTypes:O,_keysOptional:T,detectAllPossibleDevices:M}=a;let{_patternList:A}=a;a._usedIdsOptional=m;const E=po.getChannelOrDeviceStates(h,d,T||[],b,x);if(!(!((s=h[d])===null||s===void 0)&&s.common)&&!E.length)return null;if((l=a._checkedPatterns)!==null&&l!==void 0||(a._checkedPatterns=[]),!A){const P=Object.keys(r.patterns).filter($=>po.patternIsAllowed(r.patterns[$],k,O));A=v?this.sortTypes(P,v):P,a._patternList=A}const D={objects:h,channelStates:E,usedIds:m,ignoreIndicators:y||[],pattern:"unknown",usedInCurrentDevice:[],state:{},ignoreEnums:!!a.ignoreEnums,sortedKeys:T,favorId:a.detectParent?void 0:d,detectAllPossibleDevices:M},j=(u=h[d])===null||u===void 0?void 0:u.type;for(const P of A){if(a._checkedPatterns.includes(P))continue;a._checkedPatterns.push(P),delete D.result,D.pattern=P,D.usedInCurrentDevice=[];for(const L of r.patterns[P].states){let W=!1;if(D.state=L,this._testOneState(D)&&(W=!0),L.required&&!W){delete D.result;break}}if(!po.allRequiredStatesFound(D))continue;D.usedInCurrentDevice.forEach(L=>m.push(L));let $;if(j!=="device"){const L=(f=po.findParentChannelOrDevice(h,d))!==null&&f!==void 0?f:d;if(h[L]&&(h[L].type==="channel"||h[L].type==="device")){$=(0,e.getObjectsBelowId)(T,L);for(const W of $)D.result.states.forEach((H,V)=>{!H.id&&(H.indicator||H.searchInParent)&&!H.noDeviceDetection&&this._applyPattern(h,W,H.original,!!a.ignoreEnums,D.sortedKeys)&&D.result&&(D.result.states[V].id=W)})}}if(D.result.states.forEach(L=>po.cleanState(L,D.objects)),a.limitTypesToOneOf){for(const L of a.limitTypesToOneOf)if(L.includes(P))for(const W of L)W===P||a._checkedPatterns.includes(W)||a._checkedPatterns.push(W)}return D.result}return null}detect(a){var s;const{objects:l,id:u,ignoreCache:f,detectAllPossibleDevices:h}=a;let{_keysOptional:d,_usedIdsOptional:m}=a;if(!f&&this.cache[u]){const{allowedTypes:b=[],excludedTypes:x=[]}=a;if(!b.length&&!x.length)return this.cache[u];const k=this.cache[u].filter(({type:O})=>b.includes(O)&&!x.includes(O));if(k.length)return k}d?a._keysOptionalSorted||d.sort():(d=Object.keys(l),d.sort(),a._keysOptional=d),m&&!a.detectParent&&(m=[],a._usedIdsOptional=m),a.ignoreEnums===void 0&&((s=a.allowedTypes)===null||s===void 0?void 0:s.length)===1&&(a.ignoreEnums=!0),h&&(a.excludedTypes||(a.excludedTypes=[]),a.excludedTypes.includes(t.Types.info)||a.excludedTypes.push(t.Types.info)),a._checkedPatterns=[];const y=[];let v;for(;v=this._detectNext(a);)y.push(v),a.detectAllPossibleDevices&&(a._usedIdsOptional=[]);return y.sort((b,x)=>{if(b.type===t.Types.info&&x.type!==t.Types.info)return 1;if(x.type===t.Types.info&&b.type!==t.Types.info)return-1;const k=b.states.find(A=>A.id===u&&A.required)?1:0,O=x.states.find(A=>A.id===u&&A.required)?1:0;if(k!==O)return O-k;if(!k){const A=b.states.find(D=>D.id===u)?1:0,E=x.states.find(D=>D.id===u)?1:0;if(A!==E)return E-A}const T=b.states.filter(A=>A.id).length;return x.states.filter(A=>A.id).length-T}),this.cache[u]=y.length?y:null,this.cache[u]}static getPatterns(){const a={};return Object.keys(r.patterns).forEach(s=>{const l=JSON.parse(JSON.stringify(r.patterns[s]));l.states.forEach((u,f)=>{const h=r.patterns[s].states[f];h.role&&(l.states[f].role=h.role.toString()),h.enums&&(l.states[f].enums=!0)}),a[s]=l}),a}};return uu.ChannelDetector=n,n.getEnums=e.getEnums,uu}var RE;function uZe(){return RE||(RE=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.StateType=t.Types=t.roleOrEnumGate=t.roleOrEnumDoor=t.roleOrEnumWindow=t.roleOrEnumBlind=t.roleOrEnumLight=void 0;const e=lZe();var r=cw();Object.defineProperty(t,"roleOrEnumLight",{enumerable:!0,get:function(){return r.roleOrEnumLight}}),Object.defineProperty(t,"roleOrEnumBlind",{enumerable:!0,get:function(){return r.roleOrEnumBlind}}),Object.defineProperty(t,"roleOrEnumWindow",{enumerable:!0,get:function(){return r.roleOrEnumWindow}}),Object.defineProperty(t,"roleOrEnumDoor",{enumerable:!0,get:function(){return r.roleOrEnumDoor}}),Object.defineProperty(t,"roleOrEnumGate",{enumerable:!0,get:function(){return r.roleOrEnumGate}}),t.default=e.ChannelDetector;var n=sw();Object.defineProperty(t,"Types",{enumerable:!0,get:function(){return n.Types}}),Object.defineProperty(t,"StateType",{enumerable:!0,get:function(){return n.StateType}})})(Bv)),Bv}var it=uZe(),aO={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ME=_.createContext&&_.createContext(aO),dZe=["attr","size","title"];function pZe(t,e){if(t==null)return{};var r,n,o=fZe(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n_.createElement(e.tag,ch({key:r},e.attr),iO(e.child)))}function nr(t){return e=>_.createElement(gZe,sh({attr:ch({},t.attr)},e),iO(t.child))}function gZe(t){var e=r=>{var{attr:n,size:o,title:a}=t,s=pZe(t,dZe),l=o||r.size||"1em",u;return r.className&&(u=r.className),t.className&&(u=(u?u+" ":"")+t.className),_.createElement("svg",sh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:u,style:ch(ch({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&_.createElement("title",null,a),t.children)};return ME!==void 0?_.createElement(ME.Consumer,null,r=>e(r)):e(aO)}function yZe(t){return nr({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3l39.5 39.7z"},child:[]}]})(t)}function vZe(t){return nr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M24 5.25v13a.75.75 0 0 1-1.136.643L16.5 15.075v2.175A1.75 1.75 0 0 1 14.75 19h-13A1.75 1.75 0 0 1 0 17.25v-11C0 5.284.784 4.5 1.75 4.5h13c.966 0 1.75.784 1.75 1.75v2.175l6.364-3.818A.75.75 0 0 1 24 5.25Zm-9 1a.25.25 0 0 0-.25-.25h-13a.25.25 0 0 0-.25.25v11c0 .138.112.25.25.25h13a.25.25 0 0 0 .25-.25v-11Zm1.5 7.075 6 3.6V6.575l-6 3.6Z"},child:[]}]})(t)}function bZe(t){return nr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},child:[]}]})(t)}function wZe(t){return nr({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(t)}function SZe(t){return nr({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},child:[]}]})(t)}function xZe(t){return nr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"},child:[]}]})(t)}function kZe(t){return nr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"},child:[]}]})(t)}function NE(t){return nr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"},child:[]}]})(t)}function CZe(t){return nr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(t)}function $Ze(t){return nr({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(t)}function EZe(t){return nr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(t)}function TZe(t){return nr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"},child:[]}]})(t)}function OZe(t){return nr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352.57 128c-28.09 0-54.09 4.52-77.06 12.86l12.41-123.11C289 7.31 279.81-1.18 269.33.13 189.63 10.13 128 77.64 128 159.43c0 28.09 4.52 54.09 12.86 77.06L17.75 224.08C7.31 223-1.18 232.19.13 242.67c10 79.7 77.51 141.33 159.3 141.33 28.09 0 54.09-4.52 77.06-12.86l-12.41 123.11c-1.05 10.43 8.11 18.93 18.59 17.62 79.7-10 141.33-77.51 141.33-159.3 0-28.09-4.52-54.09-12.86-77.06l123.11 12.41c10.44 1.05 18.93-8.11 17.62-18.59-10-79.7-77.51-141.33-159.3-141.33zM256 288a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"},child:[]}]})(t)}function DZe(t){return nr({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"},child:[]}]})(t)}function RZe(t){return nr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(t)}function IE(t){return nr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 0 0 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10 10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z"},child:[]}]})(t)}function MZe(t){return nr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(t)}function AZe(t){return nr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(t)}function NZe(t){return nr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"},child:[]}]})(t)}function PE(t){return nr({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M3.89,17.6c0-0.99,0.31-1.88,0.93-2.65s1.41-1.27,2.38-1.49c0.26-1.17,0.85-2.14,1.78-2.88c0.93-0.75,2-1.12,3.22-1.12 - c1.18,0,2.24,0.36,3.16,1.09c0.93,0.73,1.53,1.66,1.8,2.8h0.27c1.18,0,2.18,0.41,3.01,1.24s1.25,1.83,1.25,3 - c0,1.18-0.42,2.18-1.25,3.01s-1.83,1.25-3.01,1.25H8.16c-0.58,0-1.13-0.11-1.65-0.34S5.52,21,5.14,20.62 - c-0.38-0.38-0.68-0.84-0.91-1.36S3.89,18.17,3.89,17.6z M5.34,17.6c0,0.76,0.28,1.42,0.82,1.96s1.21,0.82,1.99,0.82h9.28 - c0.77,0,1.44-0.27,1.99-0.82c0.55-0.55,0.83-1.2,0.83-1.96c0-0.76-0.27-1.42-0.83-1.96c-0.55-0.54-1.21-0.82-1.99-0.82h-1.39 - c-0.1,0-0.15-0.05-0.15-0.15l-0.07-0.49c-0.1-0.94-0.5-1.73-1.19-2.35s-1.51-0.93-2.45-0.93c-0.94,0-1.76,0.31-2.46,0.94 - c-0.7,0.62-1.09,1.41-1.18,2.34l-0.07,0.42c0,0.1-0.05,0.15-0.16,0.15l-0.45,0.07c-0.72,0.06-1.32,0.36-1.81,0.89 - C5.59,16.24,5.34,16.87,5.34,17.6z M14.19,8.88c-0.1,0.09-0.08,0.16,0.07,0.21c0.43,0.19,0.79,0.37,1.08,0.55 - c0.11,0.03,0.19,0.02,0.22-0.03c0.61-0.57,1.31-0.86,2.12-0.86c0.81,0,1.5,0.27,2.1,0.81c0.59,0.54,0.92,1.21,0.99,2l0.09,0.64h1.42 - c0.65,0,1.21,0.23,1.68,0.7c0.47,0.47,0.7,1.02,0.7,1.66c0,0.6-0.21,1.12-0.62,1.57s-0.92,0.7-1.53,0.77c-0.1,0-0.15,0.05-0.15,0.16 - v1.13c0,0.11,0.05,0.16,0.15,0.16c1.01-0.06,1.86-0.46,2.55-1.19s1.04-1.6,1.04-2.6c0-1.06-0.37-1.96-1.12-2.7 - c-0.75-0.75-1.65-1.12-2.7-1.12h-0.15c-0.26-1-0.81-1.82-1.65-2.47c-0.83-0.65-1.77-0.97-2.8-0.97C16.28,7.29,15.11,7.82,14.19,8.88 - z`},child:[]}]})(t)}function IZe(t){return nr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]},{tag:"path",attr:{d:"M363.5 148.5C334.8 119.8 296.6 104 256 104c-40.6 0-78.8 15.8-107.5 44.5C119.8 177.2 104 215.4 104 256s15.8 78.8 44.5 107.5C177.2 392.2 215.4 408 256 408c40.6 0 78.8-15.8 107.5-44.5C392.2 334.8 408 296.6 408 256s-15.8-78.8-44.5-107.5z"},child:[]}]})(t)}function PZe(t){return nr({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 12a4 4 0 0 0 4 4m0 -8a4 4 0 0 0 -4 4"},child:[]},{tag:"path",attr:{d:"M3 12h1"},child:[]},{tag:"path",attr:{d:"M12 3v1"},child:[]},{tag:"path",attr:{d:"M12 20v1"},child:[]},{tag:"path",attr:{d:"M5.6 5.6l.7 .7"},child:[]},{tag:"path",attr:{d:"M6.3 17.7l-.7 .7"},child:[]},{tag:"path",attr:{d:"M20 7l-3 5h4l-3 5"},child:[]}]})(t)}function jZe(t){return nr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"},child:[]},{tag:"path",attr:{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"},child:[]}]})(t)}function zZe(t){return _.createElement("svg",{viewBox:"0 0 512 512",...t},_.createElement("g",{fill:"currentColor"},_.createElement("path",{d:"M296,320H216a24,24,0,0,0,0,48h80a24,24,0,0,0,0-48Zm0,32H216a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}),_.createElement("path",{d:"M68.071,123.492c22.578-13.918,52.2-25.229,85.674-32.71l-3.49-15.615c-35.688,7.977-66.163,19.653-90.58,34.705-17.914,11.043-32.041,23.643-41.99,37.451l12.98,9.354C39.376,144.588,51.961,133.423,68.071,123.492Z"}),_.createElement("path",{d:"M435.533,137.112C409.439,121.027,374,108.967,332.845,102.144,322.474,87,288.213,80,256,80s-66.474,7-76.845,22.144C138,108.967,102.561,121.027,76.467,137.112,47.376,155.045,32,176.792,32,200v96c0,29,24.155,55.7,68.016,75.193C141.813,389.77,197.209,400,256,400s114.187-10.23,155.984-28.807C455.845,351.7,480,325,480,296V200C480,176.792,464.624,155.045,435.533,137.112ZM177.64,151.23C185.676,168.192,221.98,176,256,176s70.324-7.808,78.36-24.77c21.862,4.212,41.832,10.19,58.13,17.44C422.343,181.941,432,195.509,432,200s-9.657,18.059-39.51,31.33C357.224,247.008,307.475,256,256,256s-101.224-8.992-136.49-24.67C89.657,218.059,80,204.491,80,200s9.657-18.059,39.512-31.331C135.808,161.42,155.778,155.442,177.64,151.23Zm14.36-19c15.6,8,40.35,11.773,64,11.773s48.4-3.775,64-11.773V144c0,.687-2.715,5.08-15.618,9.381C291.577,157.649,274.4,160,256,160s-35.577-2.351-48.382-6.619C194.715,149.08,192,144.687,192,144Zm15.618-29.608C220.423,98.351,237.605,96,256,96s35.577,2.351,48.382,6.619C317.285,106.92,320,111.313,320,112s-2.715,5.08-15.618,9.381C291.577,125.649,274.4,128,256,128s-35.577-2.351-48.382-6.619C194.715,117.08,192,112.687,192,112S194.715,106.92,207.618,102.619ZM176,118.937v16.319c-23.589,4.453-45.254,10.9-62.99,18.794C82.779,167.489,64,185.1,64,200s18.779,32.511,49.01,45.95C150.249,262.505,202.367,272,256,272s105.751-9.5,142.99-26.05C429.221,232.511,448,214.9,448,200s-18.779-32.511-49.008-45.95c-17.738-7.89-39.4-14.341-62.992-18.794V118.937C411.852,132.7,464,165.41,464,200c0,21.967-21.328,44.044-58.516,60.572C365.688,278.259,312.6,288,256,288s-109.688-9.741-149.484-27.428C69.328,244.044,48,221.967,48,200,48,165.41,100.148,132.7,176,118.937ZM464,296c0,21.967-21.327,44.044-58.514,60.572C365.689,374.259,312.6,384,256,384s-109.689-9.741-149.486-27.428C69.327,340.044,48,317.967,48,296V239.371c11.522,13.444,29.066,25.621,52.018,35.822C141.814,293.77,197.211,304,256,304s114.186-10.23,155.982-28.807c22.952-10.2,40.5-22.378,52.018-35.822Z"}),_.createElement("path",{d:"M418.482,385.814C374.684,405.28,316.979,416,256,416a488.01,488.01,0,0,1-78.705-6.23l-2.59,15.789A504.064,504.064,0,0,0,256,432c63.169,0,123.181-11.21,168.981-31.565q1.3-.576,2.572-1.16l-6.655-14.55Q419.7,385.274,418.482,385.814Z"}),_.createElement("path",{d:"M436.123,377.062l7.754,14c5.883-3.259,11.492-6.728,16.674-10.31l-9.1-13.161C446.7,370.871,441.546,374.059,436.123,377.062Z"}),_.createElement("rect",{x:"248",y:"192",width:"16",height:"16"}),_.createElement("rect",{x:"280",y:"192",width:"16",height:"16"}),_.createElement("rect",{x:"216",y:"192",width:"16",height:"16"})))}function LZe(t){return _.createElement("svg",{viewBox:"0 0 512 512",...t},_.createElement("path",{fill:"currentColor",d:"M298.667 298.667c17.643 0 32-14.357 32-32s-14.357-32-32-32-32 14.357-32 32c0 17.642 14.357 32 32 32zm0-42.667c5.867 0 10.667 4.779 10.667 10.667s-4.8 10.667-10.667 10.667S288 272.555 288 266.667 292.8 256 298.667 256z"}),_.createElement("path",{fill:"currentColor",d:"M448 490.667h-32v-480C416 4.779 411.221 0 405.333 0H106.667c-.597 0-1.131.256-1.707.341-.555.085-1.088.149-1.621.32-.939.32-1.749.789-2.56 1.344-.32.213-.704.277-1.003.533-.107.085-.149.213-.256.32-.768.704-1.365 1.579-1.899 2.496-.213.341-.512.619-.661.981-.597 1.345-.96 2.774-.96 4.332v480H64c-5.888 0-10.667 4.779-10.667 10.667C53.333 507.221 58.112 512 64 512h42.667c.576 0 1.173-.043 1.749-.149l256-42.667a10.672 10.672 0 0 0 8.917-10.517V53.333c0-5.227-3.776-9.664-8.917-10.517L235.541 21.333h159.125v480c0 5.888 4.779 10.667 10.667 10.667H448c5.888 0 10.667-4.779 10.667-10.667s-4.779-10.666-10.667-10.666zm-96-428.31v387.264l-234.667 39.125V23.253L352 62.357z"}))}function FZe(t){return _.createElement("svg",{viewBox:"0 0 512.006 512.006",...t},_.createElement("path",{d:"M502.379 211.249c0 74.656-60.52 135.176-135.176 135.176-6.469.01-12.919-.473-19.311-1.448-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825a142.128 142.128 0 0 1 19.311-1.352c74.656 0 135.176 60.521 135.176 135.177z",fill:"#c52828"}),_.createElement("path",{d:"M463.757 211.249c-.029 67.173-49.378 124.131-115.865 133.728-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825 66.516 9.598 115.875 66.613 115.865 133.825z",fill:"#f44335"}),_.createElement("g",{fill:"#fdd834"},_.createElement("path",{d:"M380.527 230.56h-26.649a8.208 8.208 0 0 1-8.4-7.242l-7.242-90.472c-.212-4.47 3.235-8.275 7.705-8.497.232-.01.463-.01.695 0h41.036a8.105 8.105 0 0 1 8.4 7.802c.01.232.01.463 0 .695l-7.242 90.472c-.501 4.181-4.093 7.319-8.303 7.242zM362.085 269.181h10.235c7.84 0 14.194 6.353 14.194 14.194v10.235c0 7.84-6.353 14.194-14.194 14.194h-10.235c-7.84 0-14.194-6.353-14.194-14.194v-10.235c.001-7.84 6.354-14.194 14.194-14.194z"})),_.createElement("path",{d:"M308.015 332.714a132.057 132.057 0 0 1-24.332-15.256 138.367 138.367 0 0 1-25.587-26.456 134.123 134.123 0 0 1-26.07-79.754 136.453 136.453 0 0 1 3.09-28.966 129.801 129.801 0 0 1 9.655-28.966c-24.428-39.201-50.691-78.113-85.547-108.334-2.607-2.221-5.214-4.442-7.917-6.566a161.051 161.051 0 0 0-14.387-10.621 80.965 80.965 0 0 0-13.807-7.145c1.641 7.338 3.476 14.773 4.731 22.208a180.355 180.355 0 0 1 2.993 26.939v7.145a192.012 192.012 0 0 1-60.829 139.521 202.647 202.647 0 0 0-43.836 52.719 149.063 149.063 0 0 0-6.566 120.017 152.006 152.006 0 0 0 22.208 40.167 164.926 164.926 0 0 0 106.21 61.891 86.874 86.874 0 0 1-44.801-32.249 51.315 51.315 0 0 1-3.669-5.6 77.46 77.46 0 0 1-6.469-13.325 79.464 79.464 0 0 1 3.766-63.726 111.914 111.914 0 0 1 23.463-28.387 101.983 101.983 0 0 0 32.442-74.25v-3.862a97.875 97.875 0 0 0-4.731-27.132 112.539 112.539 0 0 1 10.911 6.566 108.053 108.053 0 0 1 30.222 30.801 100.963 100.963 0 0 1 15.835 46.443v8.4a100.92 100.92 0 0 1-18.249 57.933c22.98 13.035 38.622-8.593 44.994-28.966a60.067 60.067 0 0 0 2.51-12.842 88.458 88.458 0 0 1 28.966 61.312v5.214c-2.704 33.678-25.346 62.451-57.45 72.995 73.353-11.789 128.717-72.889 133.245-147.053a131.977 131.977 0 0 1-30.994-10.815z",fill:"#f57c00"}),_.createElement("path",{d:"M263.117 417.489v-5.214a88.462 88.462 0 0 0-28.966-61.312 60.129 60.129 0 0 1-2.51 12.842c-5.986 20.47-22.014 42.098-44.994 28.966a100.923 100.923 0 0 0 18.249-57.933v-.966-7.338a100.971 100.971 0 0 0-15.835-46.443 108.027 108.027 0 0 0-30.222-30.801 108.949 108.949 0 0 0-39.877-35.532 97.838 97.838 0 0 1 4.731 27.132v3.862a101.988 101.988 0 0 1-32.442 74.25 111.924 111.924 0 0 0-23.366 28.387 79.491 79.491 0 0 0-3.573 63.726 83.948 83.948 0 0 0 35.436 42.291 51.315 51.315 0 0 0 3.669 5.6 86.886 86.886 0 0 0 44.415 32.249 164.927 164.927 0 0 1-106.21-61.892 152.082 152.082 0 0 1-22.014-40.167 149.055 149.055 0 0 1 6.564-120.015 202.714 202.714 0 0 1 44.029-53.202A192.012 192.012 0 0 0 131.03 76.458v-7.145a180.486 180.486 0 0 0-2.993-26.939c-1.255-7.435-3.09-14.869-4.731-22.208a80.965 80.965 0 0 1 13.807 7.145 159.446 159.446 0 0 1 14.773 10.718c2.704 2.124 5.311 4.345 7.917 6.566 34.856 30.222 61.119 69.133 85.547 108.334a129.75 129.75 0 0 0-9.655 28.966 136.634 136.634 0 0 0-3.669 29.353 134.116 134.116 0 0 0 26.07 79.754 138.396 138.396 0 0 0 25.587 26.456 132.164 132.164 0 0 0 24.332 15.256 152.203 152.203 0 0 1-44.898 84.775z",fill:"#ff9801"}),_.createElement("path",{d:"M147.831 500.912h-1.448c-61.756-8.7-113.963-50.15-136.432-108.334a158.725 158.725 0 0 1 7.338-127.355 212.528 212.528 0 0 1 45.96-55.809 181.787 181.787 0 0 0 57.933-132.473v-6.759a171.298 171.298 0 0 0-2.8-25.587c-.966-5.697-2.221-11.2-3.476-16.704l-1.159-5.117c-1.178-5.204 2.076-10.37 7.28-11.548a9.663 9.663 0 0 1 5.948.541 89.473 89.473 0 0 1 15.449 8.014 172.47 172.47 0 0 1 15.449 11.2c41.036 32.732 70.871 77.244 95.589 117.314a9.673 9.673 0 0 1 .483 9.655 121.056 121.056 0 0 0-9.655 26.842 128.158 128.158 0 0 0-2.607 26.456c.01 59.198 41.374 110.333 99.258 122.721a9.655 9.655 0 0 1 7.628 9.655c-3.186 77.244-61.216 141.742-141.163 156.129-5.253.927-10.254-2.588-11.181-7.84a9.65 9.65 0 0 1 6.353-10.795c29.99-9.8 50.517-37.492 51.174-69.037a67.618 67.618 0 0 0-14.387-40.746 56.78 56.78 0 0 1-24.139 31.091 33.122 33.122 0 0 1-33.408-1.448c-4.644-2.626-6.276-8.516-3.659-13.16.145-.261.299-.502.473-.743a91.187 91.187 0 0 0 16.511-52.429v-.772a90.743 90.743 0 0 0-14.58-48.277 98.107 98.107 0 0 0-19.311-21.532v9.945a111.13 111.13 0 0 1-35.436 81.299 103.445 103.445 0 0 0-21.532 25.78 69.873 69.873 0 0 0-3.09 56.002 76.304 76.304 0 0 0 49.533 44.512c5.33.801 9.009 5.774 8.207 11.104-.801 5.328-5.774 8.997-11.103 8.205zM137.113 39.478v1.738a188.136 188.136 0 0 1 3.09 28.194v7.435A200.926 200.926 0 0 1 76.38 223.318a192.998 192.998 0 0 0-42.098 50.498 139.414 139.414 0 0 0-6.469 111.907 148.682 148.682 0 0 0 65.561 76.568 89.522 89.522 0 0 1-15.159-49.726 91.25 91.25 0 0 1 9.655-40.167 119.46 119.46 0 0 1 25.394-31.091 92.026 92.026 0 0 0 29.449-67.588v-3.09a88.799 88.799 0 0 0-4.248-24.911 9.653 9.653 0 0 1 6.237-12.147 9.638 9.638 0 0 1 7.473.657 119.392 119.392 0 0 1 44.705 40.649 110.062 110.062 0 0 1 17.669 58.898v1.159a110.343 110.343 0 0 1-13.035 52.139 12.555 12.555 0 0 0 4.731-1.448c9.655-5.31 17.283-22.497 18.345-35.436.434-5.31 5.088-9.269 10.409-8.844a9.61 9.61 0 0 1 6.006 2.761 95.586 95.586 0 0 1 32.153 68.168 89.528 89.528 0 0 1-13.711 47.408 146.774 146.774 0 0 0 69.133-108.817c-62.77-17.37-106.22-74.492-106.21-139.618a146.655 146.655 0 0 1 3.283-30.994 139.876 139.876 0 0 1 8.497-26.263c-23.27-37.077-51.27-78.402-88.541-108.045a113.049 113.049 0 0 0-8.496-6.467z"}),_.createElement("path",{d:"M367.203 356.081a144.841 144.841 0 0 1-89.506-30.994 143.882 143.882 0 0 1-55.326-113.838 146.655 146.655 0 0 1 3.283-30.994 140.652 140.652 0 0 1 10.814-31.091c23.965-50.498 74.839-82.699 130.735-82.747 79.986.019 144.813 64.875 144.803 144.861a144.848 144.848 0 0 1-55.297 113.809 143.543 143.543 0 0 1-89.506 30.994zm0-270.353c-48.47.019-92.586 27.943-113.355 71.74a121.83 121.83 0 0 0-9.655 26.939 127.805 127.805 0 0 0-2.51 26.842c.01 59.198 41.374 110.333 99.258 122.721a125.763 125.763 0 0 0 26.263 2.8c69.326 0 125.521-56.195 125.521-125.521S436.519 85.728 367.203 85.728z"}),_.createElement("path",{d:"M380.527 240.215h-26.649c-9.279.097-17.109-6.894-18.056-16.125l-7.242-90.085a17.201 17.201 0 0 1 4.538-13.035 18.38 18.38 0 0 1 13.518-5.89h41.036a18.375 18.375 0 0 1 13.518 5.89 17.204 17.204 0 0 1 4.635 13.035l-7.242 90.472c-1.139 9.076-8.912 15.854-18.056 15.738zm-25.49-19.311h24.525l6.952-86.899h-38.622l7.145 86.899zM372.32 317.459h-10.235c-13.151-.048-23.801-10.698-23.849-23.849v-10.235c.048-13.151 10.698-23.801 23.849-23.849h10.138c13.189 0 23.888 10.66 23.946 23.849v10.138c0 13.18-10.669 23.888-23.849 23.946zm-10.138-38.622a4.635 4.635 0 0 0-4.538 4.538v10.138a4.635 4.635 0 0 0 4.538 4.538h10.138a4.635 4.635 0 0 0 4.538-4.538v-10.138a4.635 4.635 0 0 0-4.538-4.538h-10.138z"}))}function BZe(t){return _.createElement("svg",{viewBox:"0 0 512.002 512.002",...t},_.createElement("path",{d:"M481.929 324.35c0 65.951-53.464 119.415-119.415 119.415a111.938 111.938 0 0 1-17.059-1.279c-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221a125.333 125.333 0 0 1 17.059-1.194c65.951-.001 119.415 53.462 119.415 119.414z",fill:"#c52828"}),_.createElement("path",{d:"M447.81 324.35c-.026 59.341-43.621 109.657-102.356 118.135-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221 58.77 8.487 102.373 58.846 102.356 118.221z",fill:"#f44335"}),_.createElement("g",{fill:"#fdd834"},_.createElement("path",{d:"M374.285 341.409h-23.542a7.251 7.251 0 0 1-7.421-6.397l-6.397-79.923a7.174 7.174 0 0 1 6.807-7.506c.205-.009.409-.009.614 0h36.251a7.16 7.16 0 0 1 7.421 6.892c.009.205.009.409 0 .614l-6.397 79.923a7.249 7.249 0 0 1-7.336 6.397zM357.993 375.527h9.041c6.926 0 12.539 5.612 12.539 12.539v9.041c0 6.926-5.612 12.539-12.539 12.539h-9.041c-6.926 0-12.539-5.612-12.539-12.539v-9.041c0-6.926 5.621-12.539 12.539-12.539z"})),_.createElement("path",{d:"M318.415 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 159.575 159.575 0 0 1-61.413 12.283 149.268 149.268 0 0 1-20.556-1.365 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.753 152.753 0 0 1-12.368-60.219 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504 7.335-11.771c4.504-7.353 14.117-9.656 21.469-5.143a15.525 15.525 0 0 1 5.143 5.143l34.716 55.869c-2.644 4.18-5.032 8.53-7.335 12.709a96.424 96.424 0 0 0-11.515 44.439 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.344 115.344 0 0 0-11.6 31.048 120.546 120.546 0 0 0-2.729 25.589c.041 48.9 29.878 92.828 75.315 110.885z",fill:"#0377bc"}),_.createElement("path",{d:"M277.217 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 158.847 158.847 0 0 1-40.772 10.833 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.657 152.657 0 0 1-12.368-60.134 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504c9.212 14.671 18.339 29.427 27.465 44.098-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.323 115.323 0 0 0-12.283 31.133 120.546 120.546 0 0 0-2.729 25.589c.043 48.9 29.88 92.828 75.317 110.885z",fill:"#02a9f4"}),_.createElement("path",{d:"M411.388 144.545a477.911 477.911 0 0 0-27.636-43.842c-9.894-14.586-19.192-29.598-28.489-44.525L328.395 13.53c-3.037-4.708-9.323-6.065-14.031-3.028a10.259 10.259 0 0 0-3.028 3.028l-12.794 20.215-14.074 22.433c-9.297 14.927-18.595 29.939-28.489 44.525-6.994 10.236-13.989 20.471-20.301 31.133-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.758 98.758 0 0 0 29.939 70.284 106.83 106.83 0 0 0 9.98 8.53 119.423 119.423 0 0 1 84.017-60.902 114.9 114.9 0 0 1 21.068-1.877c5.186.009 10.372.324 15.524.938a119.369 119.369 0 0 1 39.578 12.539 96.462 96.462 0 0 0-6.228-73.866z",fill:"#0377bc"}),_.createElement("path",{d:"M379.573 188.899a93.046 93.046 0 0 1-1.535 17.059 131.537 131.537 0 0 0-15.524-1.024 114.797 114.797 0 0 0-21.068 1.877 119.425 119.425 0 0 0-84.017 60.902 106.96 106.96 0 0 1-9.98-8.53c-31.099-29.743-38.878-76.417-19.106-114.638 2.303-4.35 4.691-8.53 7.335-12.709 6.312-10.662 13.306-20.898 20.301-31.133 9.894-14.586 19.192-29.598 28.489-44.525l14.074-22.433 14.074 22.433c9.297 14.927 18.595 29.939 28.489 44.525a477.911 477.911 0 0 1 27.636 43.842 96.401 96.401 0 0 1 10.832 44.354z",fill:"#02a9f4"}),_.createElement("path",{d:"M187.656 512.002a167.398 167.398 0 0 1-64.655-12.88 165.226 165.226 0 0 1-88.623-86.746 160.466 160.466 0 0 1-13.05-63.631 158.81 158.81 0 0 1 17.656-72.928 698.388 698.388 0 0 1 39.663-63.887l3.412-5.032c12.027-17.998 23.627-36.677 34.886-54.76L167.1 71.531c6.986-11.353 21.861-14.893 33.214-7.898a24.1 24.1 0 0 1 7.898 7.898l17.059 27.38 17.827 28.404a8.521 8.521 0 0 1 0 9.383c-2.559 4.009-4.777 8.018-6.994 12.112a87.69 87.69 0 0 0-10.065 40.089 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83 99.608 99.608 0 0 0 9.212 7.847 8.534 8.534 0 0 1 2.303 10.918 106.955 106.955 0 0 0-10.747 28.745 112.483 112.483 0 0 0-2.559 23.712c.009 45.429 27.721 86.26 69.943 103.038 4.393 1.706 6.559 6.653 4.853 11.046a8.584 8.584 0 0 1-.93 1.749 162.407 162.407 0 0 1-20.301 24.139 164.29 164.29 0 0 1-52.884 34.886 167.489 167.489 0 0 1-64.653 12.795zm0-435.012a6.99 6.99 0 0 0-6.056 3.412l-50.154 80.69c-11.344 18.168-23.03 37.019-35.227 55.187l-3.412 5.032a687.543 687.543 0 0 0-38.725 62.266 141.613 141.613 0 0 0-15.695 65.166 143.56 143.56 0 0 0 11.686 56.893 148.16 148.16 0 0 0 79.411 77.79 152.855 152.855 0 0 0 116.344 0 147.616 147.616 0 0 0 47.425-31.133 143.446 143.446 0 0 0 12.027-13.306c-43.322-21.802-70.668-66.139-70.711-114.638a129.576 129.576 0 0 1 2.9-27.38 124.357 124.357 0 0 1 9.212-26.954 136.293 136.293 0 0 1-5.203-4.691 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 1.621-3.071 3.241-5.971 4.862-8.53l-14.927-24.054-17.059-27.38a7.087 7.087 0 0 0-6.141-3.837z"}),_.createElement("path",{d:"M99.971 442.4A8.521 8.521 0 0 1 94 439.926a129.631 129.631 0 0 1-28.318-41.113 126.28 126.28 0 0 1-10.236-50.069 124.503 124.503 0 0 1 13.818-57.234c1.868-4.325 6.883-6.32 11.208-4.452s6.32 6.883 4.452 11.208c-.162.375-.35.742-.563 1.092a107.494 107.494 0 0 0-11.856 49.387 109.211 109.211 0 0 0 8.53 43.331 112.626 112.626 0 0 0 24.565 35.739c3.344 3.318 3.369 8.717.051 12.061a8.549 8.549 0 0 1-6.022 2.525l.342-.001zM257.428 276.242a8.526 8.526 0 0 1-5.118-1.706 115.222 115.222 0 0 1-10.747-9.212 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 2.559-4.862 5.118-9.212 7.677-13.306 6.312-10.662 13.392-21.068 20.386-31.218 9.041-13.903 17.912-27.807 26.442-41.881L304 8.753c5.485-8.734 17.017-11.379 25.751-5.894a18.698 18.698 0 0 1 5.894 5.894l28.574 45.634c8.53 13.733 17.059 27.977 26.612 41.539l1.706 2.474a457.473 457.473 0 0 1 26.442 42.136 104.968 104.968 0 0 1 6.824 80.434c-1.433 4.487-6.235 6.969-10.722 5.536a8.282 8.282 0 0 1-1.39-.589 112.612 112.612 0 0 0-106.535 2.388 110.28 110.28 0 0 0-42.136 43.416 8.52 8.52 0 0 1-5.715 4.265l-1.877.256zm62.437-258.959a1.541 1.541 0 0 0-1.365.768l-28.489 45.378c-8.53 13.903-17.571 28.233-26.954 42.051-6.909 10.065-13.903 20.301-20.045 30.707-2.644 4.18-4.947 8.53-7.165 12.368a87.722 87.722 0 0 0-9.809 40.345 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83l1.791 1.706a127.216 127.216 0 0 1 43.331-41.369 129.73 129.73 0 0 1 113.359-7.25 87.904 87.904 0 0 0-8.53-57.831 444.102 444.102 0 0 0-25.589-40.516l-1.706-2.474c-9.383-13.818-18.339-28.148-26.954-42.051L321.23 18.05a1.532 1.532 0 0 0-1.365-.767z"}),_.createElement("path",{d:"M271.246 243.233a8.519 8.519 0 0 1-5.971-2.388 75.502 75.502 0 0 1-16.292-23.456 71.923 71.923 0 0 1-5.885-28.489 70.537 70.537 0 0 1 7.933-32.498c1.877-3.582 4.009-7.25 6.227-10.833l.512-.768a8.538 8.538 0 0 1 11.609-3.284 8.538 8.538 0 0 1 3.284 11.609 6.997 6.997 0 0 1-.392.631l-.512.853c-2.132 3.327-3.924 6.568-5.63 9.724a53.307 53.307 0 0 0-5.971 24.565 54.816 54.816 0 0 0 4.435 21.665 58.198 58.198 0 0 0 12.624 18.083c3.395 3.267 3.489 8.666.222 12.061a8.518 8.518 0 0 1-6.193 2.61v-.085z"}),_.createElement("path",{d:"M362.514 452.294c-70.66 0-127.945-57.285-127.945-127.945a129.576 129.576 0 0 1 2.9-27.38 123.98 123.98 0 0 1 12.453-33.351 127.15 127.15 0 0 1 48.619-50.154c37.94-21.495 84.136-22.518 122.997-2.729 62.744 32.489 87.275 109.7 54.777 172.452-22.005 42.512-65.916 69.184-113.801 69.107zm0-238.83c-40.763.009-78.234 22.382-97.579 58.257a107.238 107.238 0 0 0-10.747 28.83 112.818 112.818 0 0 0-2.559 23.798c0 61.243 49.643 110.885 110.885 110.885s110.885-49.642 110.885-110.885-49.643-110.885-110.885-110.885z"}),_.createElement("path",{d:"M374.285 349.939h-23.542c-8.231.085-15.157-6.141-15.95-14.33l-6.397-79.496a15.26 15.26 0 0 1 4.009-11.515 16.312 16.312 0 0 1 11.942-5.203h36.251a16.31 16.31 0 0 1 11.941 5.203 15.27 15.27 0 0 1 4.094 11.515l-6.397 79.923c-.999 8.026-7.865 14.013-15.951 13.903zm-22.519-17.06h21.665l6.141-76.767h-34.119l6.313 76.767zM367.034 418.176h-9.041c-11.617-.043-21.026-9.451-21.068-21.068v-9.041c.043-11.617 9.451-21.026 21.068-21.068h8.956c11.651 0 21.102 9.417 21.153 21.068v8.956c.001 11.651-9.416 21.11-21.068 21.153zm-8.956-34.119a4.095 4.095 0 0 0-4.009 4.009v8.956a4.095 4.095 0 0 0 4.009 4.009h8.956a4.095 4.095 0 0 0 4.009-4.009v-8.956a4.095 4.095 0 0 0-4.009-4.009h-8.956z"}))}function WZe(t){return _.createElement("svg",{viewBox:"0 0 512 512",...t},_.createElement("path",{fill:"currentColor",d:"M462,226c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.52,0,10-4.48,10-10S467.52,226,462,226z"}),_.createElement("path",{fill:"currentColor",d:"M50,226c-5.52,0-10,4.48-10,10s4.48,10,10,10s10-4.48,10-10S55.52,226,50,226z"}),_.createElement("path",{fill:"currentColor",d:`M502,126h-0.027C508.265,117.637,512,107.248,512,96c0-27.57-22.43-50-50-50s-50,22.43-50,50 - c0,11.248,3.735,21.637,10.027,30H422c-5.522,0-10,4.478-10,10v50.03c-7.399,0.025-17.158,0.065-23,0.113V166.63 - c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.435c-0.931-0.964-1.899-2.045-2.923-3.258 - c-10.745-12.754-24.515-23.761-40.077-32.106V121.83c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.983 - c-12.92-4.643-26.438-7.5-40-8.448V96c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v30.365 - c-13.565,0.948-27.084,3.807-40,8.452V120.17c0-5.522-4.477-10-10-10s-10,4.478-10,10v23.542 - c-15.764,8.457-29.695,19.652-40.55,32.652c-0.758,0.908-1.587,1.755-2.45,2.566v-12.3c0-5.522-4.477-10-10-10s-10,4.478-10,10 - v20.385c-4.189,0.067-14.913,0.05-23,0.024V136c0-5.522-4.477-10-10-10h-0.027C96.265,117.637,100,107.248,100,96 - c0-27.57-22.43-50-50-50S0,68.43,0,96c0,11.248,3.735,21.637,10.027,30H10c-5.523,0-10,4.478-10,10v320c0,5.522,4.477,10,10,10h80 - c5.523,0,10-4.478,10-10v-11h312v11c0,5.522,4.478,10,10,10h80c5.522,0,10-4.478,10-10V136C512,130.478,507.522,126,502,126z - M80,446H20V146h20v50c0,5.522,4.477,10,10,10s10-4.478,10-10v-50h20V446z M50,126c-16.542,0-30-13.458-30-30s13.458-30,30-30 - s30,13.458,30,30S66.542,126,50,126z M123,425h-23v-19h23V425z M123,386h-23V247h23V386z M123,227h-23v-19.959 - c3.808,0.011,8.197,0.022,12.244,0.022c4.378,0,8.351-0.012,10.756-0.046V227z M186,425h-43v-19h43V425z M186,276v40v70h-43 - V244.817c16.149-3.513,31.29-11.046,43-21.321V276z M186,194.605c-2.373,2.327-4.659,4.785-6.815,7.365 - c-8.521,10.2-21.771,18.214-36.185,22.224v-21.525c6.846-3.098,13.007-7.736,17.806-13.49c7.006-8.391,15.56-15.917,25.194-22.232 - V194.605z M206,156.285c12.757-5.415,26.344-8.765,40-9.871v20.099c-14.162,1.416-27.777,5.83-40,12.895V156.285z M206,203.562 - c11.538-9.26,25.37-15.088,40-16.922V266h-40V203.562z M246,425h-40v-19h40V425z M246,386h-40v-60h40V386z M306,425h-40v-19h40 - V425z M306,386h-40v-60h40V386z M306,306H206v-20h100V306z M306,266h-40v-79.359c14.617,1.835,28.449,7.664,40,16.924V266z - M306,179.418c-12.232-7.071-25.847-11.487-40-12.904v-20.1c13.651,1.106,27.238,4.454,40,9.865V179.418z M369,425h-43v-19h43V425 - z M369,386h-43v-70v-40v-52.635c11.722,10.137,26.674,17.329,43,20.634V386z M369,223.458 - c-14.663-3.788-27.83-11.575-36.517-21.887c-2.039-2.417-4.216-4.742-6.483-6.965v-27.672c9.465,6.201,17.88,13.567,24.789,21.767 - c4.64,5.496,10.324,11.234,18.211,14.57V223.458z M412,425h-23v-19h23V425z M412,386h-23V246h23V386z M412,226h-23v-19.856 - c5.683-0.048,15.526-0.088,23-0.113V226z M492,446h-60V146h20v50c0,5.522,4.478,10,10,10c5.522,0,10-4.478,10-10v-50h20V446z - M462,126c-16.542,0-30-13.458-30-30s13.458-30,30-30s30,13.458,30,30S478.542,126,462,126z`}))}function UZe(t){return _.createElement("svg",{viewBox:"0 0 511.448 511.448",...t},_.createElement("path",{d:"M344.556 112.216C318.38 78.84 291.34 44.344 269.516 7.32c-5.76-9.76-21.824-9.76-27.552 0-21.856 37.024-48.896 71.52-75.072 104.896-53.056 67.68-103.168 131.616-103.168 207.232 0 105.888 86.112 192 192 192s192-86.112 192-192c0-75.616-50.112-139.552-103.168-207.232z",fill:"#2196f3"}),_.createElement("g",{fill:"#fafafa"},_.createElement("path",{d:"M207.724 287.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.832 0-16 7.168-16 16s7.168 16 16 16 16-7.168 16-16-7.168-16-16-16zM303.724 447.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zM175.724 415.448a16.07 16.07 0 0 1-11.328-4.672c-6.24-6.24-6.24-16.384 0-22.624l160-160c6.24-6.24 16.384-6.24 22.624 0s6.24 16.384 0 22.624l-160 160a15.943 15.943 0 0 1-11.296 4.672z"})))}function jE(t){return _.createElement("svg",{viewBox:"0 0 508.16 508.16",...t},_.createElement("path",{d:"M504.18 13.67a3.924 3.924 0 0 0-.42.02H4a4 4 0 0 0-4 4v47.28a4 4 0 0 0 4 4h19.72l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.16a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h479.8a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.64-42.08h9.84a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h19.72a4 4 0 0 0 4-4V17.69a4 4 0 0 0-3.98-4.02zM99.08 486.49H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm26.8 378.24h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm.16-47.28h-18.96V68.97h18.96v39.28zm247.84 378.24h-240v-39.28h240v39.28zm-240-47.28v-39.28h239.68v39.28H133.88zm240-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm-240-47.28V68.97h239.84v39.28H133.88zm266.64 378.24h-18.64l-.32-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm.32-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm-18.96-47.28V68.97h18.8v39.28h-18.8zm63.56 8v39.28h-36.92v-39.28h36.92zm-36.76-8V68.97h36.92v39.28h-36.92zm36.76 55.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.76l-.16-39.28h36.92zm42.68 181.12h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h36.92v17.44a4 4 0 0 0 8 0v-17.44h22.04l12.48 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6V68.97h22.04l12.56 39.28zm11.56-47.28H8V21.69h491.76l-.08 39.28z",fill:"currentColor"}),_.createElement("path",{d:"M454.32 37.33h-13.76a4 4 0 0 0 0 8h13.76a4 4 0 0 0 0-8zM414.84 37.33h-96a4 4 0 0 0 0 8h96a4 4 0 0 0 0-8z",fill:"currentColor"}))}function qZe(t){return _.createElement("svg",{viewBox:"0 0 63.907 63.907",fill:"currentColor",...t},_.createElement("circle",{fill:"currentColor",cx:30.515,cy:6.136,r:6.136}),_.createElement("path",{fill:"currentColor",d:"M47.399 27.455C42.346 24.53 38.2 20.579 34.71 15.931c-2.193-3.084-7.991-2.923-10.347-.097-3.584 3.487-6.625 7.081-9.037 10.677a3.209 3.209 0 0 0 5.329 3.573 54.205 54.205 0 0 1 3.59-4.734c-.051 3.333.116 9.347.2 12.05.028.9-.177 1.78-.595 2.579-3.308 6.317-5.424 12.294-7.572 19.606a3.37 3.37 0 1 0 6.465 1.901c1.982-6.742 3.897-12.201 6.884-17.981.152.006.304.006.458-.001 1.907 5.69 3.815 11.383 5.725 17.073 1.387 4.147 7.822 1.993 6.431-2.155-2.087-6.221-4.171-12.439-6.251-18.659-.121-.357-.414-1.755-.455-2.211-.344-3.832-.469-7.652-.432-11.477a51.027 51.027 0 0 0 9.782 7.328c3.597 2.088 6.063-3.891 2.514-5.948z"}))}function HZe(t){return _.createElement("svg",{viewBox:"0 0 285 285",...t},_.createElement("g",null,_.createElement("path",{fill:"currentColor",d:`M88.4,87.996c2.525-2.146,2.832-5.933,0.687-8.458C82.801,72.144,79.34,62.719,79.34,53c0-22.607,18.393-41,41-41 - c22.607,0,41,18.393,41,41c0,9.729-3.467,19.161-9.761,26.557c-2.148,2.523-1.843,6.311,0.681,8.458 - c1.129,0.961,2.511,1.431,3.886,1.431c1.698,0,3.386-0.717,4.572-2.111C168.858,77.77,173.34,65.576,173.34,53 - c0-29.225-23.775-53-53-53c-29.225,0-53,23.775-53,53c0,12.563,4.476,24.748,12.602,34.31C82.089,89.835,85.873,90.141,88.4,87.996 - z`}),_.createElement("path",{fill:"currentColor",d:`M120.186,41.201c13.228,0,23.812,8.105,27.313,19.879c0.761-2.562,1.176-5.271,1.176-8.08 - c0-15.649-12.685-28.335-28.335-28.335c-15.648,0-28.334,12.686-28.334,28.335c0,2.623,0.364,5.16,1.031,7.571 - C96.691,49.076,107.152,41.201,120.186,41.201z`}),_.createElement("path",{fill:"currentColor",d:`M234.21,169.856c-3.769-22.452-19.597-26.04-27.034-26.462c-2.342-0.133-4.516-1.32-5.801-3.282 - c-5.388-8.225-12.609-10.4-18.742-10.4c-4.405,0-8.249,1.122-10.449,1.932c-0.275,0.102-0.559,0.15-0.837,0.15 - c-0.87,0-1.701-0.47-2.163-1.262c-5.472-9.387-13.252-11.809-19.822-11.809c-3.824,0-7.237,0.82-9.548,1.564 - c-0.241,0.077-0.764,0.114-1.001,0.114c-1.256,0-2.637-1.03-2.637-2.376V69.753c0-11.035-8.224-16.552-16.5-16.552 - c-8.276,0-16.5,5.517-16.5,16.552v84.912c0,4.989-3.811,8.074-7.918,8.074c-2.495,0-4.899-1.138-6.552-3.678l-7.937-12.281 - c-3.508-5.788-8.576-8.188-13.625-8.189c-11.412-0.001-22.574,12.258-14.644,25.344l62.491,119.692 - c0.408,0.782,1.225,1.373,2.108,1.373h87.757c1.253,0,2.289-1.075,2.365-2.325l2.196-35.816c0.025-0.413,0.162-0.84,0.39-1.186 - C231.591,212.679,237.828,191.414,234.21,169.856z`})))}function Wv(t){return _.createElement("svg",{viewBox:"1 -10 511.99999 511",...t},_.createElement("g",{fill:"currentColor"},_.createElement("path",{d:"M 405.5 150 C 405.5 232.566406 338.566406 299.5 256 299.5 C 173.433594 299.5 106.5 232.566406 106.5 150 C 106.5 67.433594 173.433594 0.5 256 0.5 C 338.566406 0.5 405.5 67.433594 405.5 150 Z M 405.5 150 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(25.882353%,75.294118%,88.627451%)",fillOpacity:1}}),_.createElement("path",{d:"M 512 342.921875 C 512 425.488281 445.066406 492.421875 362.5 492.421875 C 279.933594 492.421875 213 425.488281 213 342.921875 C 213 260.355469 279.933594 193.421875 362.5 193.421875 C 445.066406 193.421875 512 260.355469 512 342.921875 Z M 512 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,81.568627%,38.039216%)",fillOpacity:1}}),_.createElement("path",{d:"M 220.746094 295.308594 C 232.050781 298.039062 243.855469 299.5 256 299.5 C 321.917969 299.5 377.871094 256.835938 397.753906 197.613281 C 386.449219 194.878906 374.644531 193.421875 362.5 193.421875 C 296.582031 193.421875 240.628906 236.085938 220.746094 295.308594 Z M 220.746094 295.308594 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(28.627451%,74.117647%,56.470588%)",fillOpacity:1}}),_.createElement("path",{d:"M 299 342.921875 C 299 425.488281 232.066406 492.421875 149.5 492.421875 C 66.933594 492.421875 0 425.488281 0 342.921875 C 0 260.355469 66.933594 193.421875 149.5 193.421875 C 232.066406 193.421875 299 260.355469 299 342.921875 Z M 299 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(98.039216%,43.921569%,69.803922%)",fillOpacity:1}}),_.createElement("path",{d:"M 114.246094 197.613281 C 134.128906 256.835938 190.082031 299.5 256 299.5 C 268.144531 299.5 279.949219 298.039062 291.253906 295.308594 C 271.371094 236.085938 215.417969 193.421875 149.5 193.421875 C 137.355469 193.421875 125.550781 194.878906 114.246094 197.613281 Z M 114.246094 197.613281 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(68.627451%,48.235294%,77.647059%)",fillOpacity:1}}),_.createElement("path",{d:"M 213 342.921875 C 213 383.800781 229.414062 420.839844 256 447.828125 C 282.585938 420.839844 299 383.800781 299 342.921875 C 299 302.042969 282.585938 265.003906 256 238.015625 C 229.414062 265.003906 213 302.042969 213 342.921875 Z M 213 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(93.72549%,38.039216%,13.333333%)",fillOpacity:1}}),_.createElement("path",{d:"M 291.253906 295.320312 C 279.949219 298.046875 268.140625 299.5 256 299.5 C 243.859375 299.5 232.050781 298.046875 220.746094 295.320312 C 228.058594 273.542969 240.242188 254.015625 256 238.015625 C 271.757812 254.015625 283.941406 273.542969 291.253906 295.320312 Z M 291.253906 295.320312 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1}})))}function VZe(t){return _.createElement("svg",{width:32,height:32,viewBox:"0 0 365.445 365.445",...t},_.createElement("g",{fill:"currentColor"},_.createElement("path",{d:"M146.7 162.775h-26.8a6.655 6.655 0 0 0-6.647 6.647v26.602a6.653 6.653 0 0 0 6.647 6.646h26.8a6.654 6.654 0 0 0 6.647-6.646v-26.602a6.655 6.655 0 0 0-6.647-6.647zM245.547 162.775h-26.801a6.653 6.653 0 0 0-6.646 6.647v26.602a6.652 6.652 0 0 0 6.646 6.646h26.801a6.654 6.654 0 0 0 6.646-6.646v-26.602a6.655 6.655 0 0 0-6.646-6.647z"})),_.createElement("path",{d:"M345.445 1.204H20c-11.046 0-20 8.954-20 20v323.037c0 11.045 8.954 20 20 20h325.445c11.045 0 20-8.955 20-20V21.204c0-11.045-8.953-20-20-20zM182.723 287.66c-57.955 0-104.937-46.981-104.937-104.937 0-57.957 46.982-104.938 104.937-104.938S287.66 124.767 287.66 182.723 240.678 287.66 182.723 287.66z",fill:"currentColor"}))}function GZe(t){return _.createElement("svg",{width:32,height:32,viewBox:"0 0 45.659 45.659",...t},_.createElement("path",{fill:"currentColor",d:"M30.619 27.309V7.781C30.619 3.49 27.124 0 22.833 0c-4.29 0-7.785 3.491-7.785 7.78v19.528a10.722 10.722 0 0 0-3.05 7.522c0 5.972 4.857 10.828 10.829 10.828 5.97 0 10.834-4.856 10.834-10.828 0-2.918-1.141-5.572-3.042-7.521zM22.825 42.66c-4.316 0-7.824-3.512-7.824-7.828 0-2.527 1.174-4.779 3.077-6.211V16.237h3.372c.552 0 1-.47 1-1.022 0-.553-.448-1.021-1-1.021h-3.372v-2.466h3.372c.552 0 1-.434 1-.986a.989.989 0 0 0-1-.986h-3.372V7.78c0-2.636 2.119-4.78 4.754-4.78 2.637 0 4.756 2.144 4.756 4.781v20.871c1.903 1.434 3.047 3.671 3.047 6.18 0 4.316-3.494 7.828-7.81 7.828z"}),_.createElement("path",{fill:"currentColor",d:"M25.334 30.463V18.632h-5.002v11.831a4.973 4.973 0 0 0-2.537 4.369 5.038 5.038 0 0 0 5.038 5.046 5.034 5.034 0 0 0 5.034-5.046c0-1.866-.982-3.495-2.533-4.369z"}))}function XZe(t){return _.createElement("svg",{viewBox:"0 0 297 297",...t},_.createElement("g",null,_.createElement("path",{fill:"currentColor",d:"m243.404,138.042c-5.775,0-10.458,4.683-10.458,10.458 0,46.564-37.883,84.446-84.446,84.446s-84.446-37.882-84.446-84.446 37.883-84.446 84.446-84.446c5.775,0 10.458-4.683 10.458-10.458s-4.683-10.457-10.458-10.457c-58.097,0-105.361,47.265-105.361,105.361s47.264,105.361 105.361,105.361 105.361-47.264 105.361-105.361c0-5.775-4.681-10.458-10.457-10.458z"}),_.createElement("path",{fill:"currentColor",d:"m142.963,121.344l-20.272-30.41c-3.203-4.807-9.695-6.104-14.502-2.9-4.805,3.202-6.104,9.695-2.9,14.502l20.279,30.422c-3.015,4.436-4.78,9.787-4.78,15.543 0,15.281 12.432,27.713 27.713,27.713 15.281,0 27.713-12.432 27.713-27.713 0-15.281-12.432-27.713-27.713-27.713-1.897-0.001-3.749,0.191-5.538,0.556zm12.335,27.156c0,3.748-3.05,6.798-6.798,6.798s-6.798-3.05-6.798-6.798 3.05-6.798 6.798-6.798 6.798,3.05 6.798,6.798z"}),_.createElement("path",{fill:"currentColor",d:"M148.5,0C66.617,0,0,66.617,0,148.5S66.617,297,148.5,297S297,230.383,297,148.5S230.383,0,148.5,0z M158.958,275.653 v-6.366c0-5.775-4.683-10.458-10.458-10.458c-5.775,0-10.458,4.683-10.458,10.458v6.366 c-62.027-5.056-111.64-54.668-116.695-116.695h6.366c5.775,0,10.458-4.683,10.458-10.458s-4.683-10.458-10.458-10.458h-6.366 c5.056-62.027,54.668-111.64,116.695-116.695v6.366c0,5.775,4.683,10.458,10.458,10.458c5.775,0,10.458-4.683,10.458-10.458v-6.366 c62.027,5.056,111.64,54.668,116.695,116.695h-6.366c-5.775,0-10.458,4.683-10.458,10.458s4.683,10.458,10.458,10.458h6.366 C270.598,220.985,220.985,270.598,158.958,275.653z"})))}function JZe(t){return _.createElement("svg",{viewBox:"0 0 361 361",...t},_.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),_.createElement("path",{d:"M228.5 205.584h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5H228.5c-2.726 0-5 2.274-5 5s2.274 5 5 5z",fill:"currentColor"}),_.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),_.createElement("path",{d:"M232.826 280.905c-.339 3.356-18.813-.782-20.919-1.06l-45.073-5.94-45.074-5.94-14.507-1.912c-1.456-.192-6.201-.055-6.412-2.147-.621-6.157 0-12.699 0-18.878v-43.5-82.076-5.13c0-2.551 5.184-1.015 6.412-.853l35.438 4.67 83.723 11.035c1.457.192 6.201.055 6.412 2.147.169 1.673 0 3.451 0 5.13v144.454c0 6.448 10 6.448 10 0V136.451v-5.13c0-7.619-6.137-10.793-12.673-11.655l-28.531-3.76-88.411-11.652-9.897-1.304c-6.555-.864-12.473 4.9-12.473 11.38v144.832c0 2.023-.071 4.04.132 6.053.717 7.111 6.606 9.563 12.759 10.374l76.827 10.125 39.896 5.259 9.697 1.278c7.063.931 12.011-4.778 12.673-11.346.648-6.415-9.358-6.352-9.999 0z",fill:"currentColor"}))}function YZe(t){return _.createElement("svg",{width:361,height:361,viewBox:"0 0 361 361",...t},_.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),_.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9zM265.732 265.178c.584 2.887-1.629 5.228-4.942 5.228H103.457c-3.313 0-6.474-2.341-7.058-5.228L75.24 130.633c-.584-2.887 1.628-5.228 4.942-5.228h157.333c3.313 0 6.474 2.34 7.058 5.228l21.159 134.545z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),_.createElement("path",{d:"M247.194 199.667h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5h-6.639c-2.726 0-5 2.274-5 5s2.275 5 5 5z",fill:"currentColor"}))}it.Types.airCondition+"",it.Types.blind+"",it.Types.blindButtons+"",it.Types.button+"",it.Types.buttonSensor+"",it.Types.camera+"",it.Types.chart+"",it.Types.image+"",it.Types.dimmer+"",it.Types.door+"",it.Types.fireAlarm+"",it.Types.floodAlarm+"",it.Types.gate+"",it.Types.humidity+"",it.Types.illuminance+"",it.Types.info+"",it.Types.light+"",it.Types.lock+"",it.Types.location+"",it.Types.locationOne+"",it.Types.media+"",it.Types.motion+"",it.Types.ct+"",it.Types.percentage+"",it.Types.rgb+"",it.Types.rgbSingle+"",it.Types.rgbwSingle+"",it.Types.hue+"",it.Types.cie+"",it.Types.slider+"",it.Types.socket+"",it.Types.temperature+"",it.Types.thermostat+"",it.Types.vacuumCleaner+"",it.Types.volume+"",it.Types.volumeGroup+"",it.Types.window+"",it.Types.windowTilt+"",it.Types.weatherCurrent+"",it.Types.weatherForecast+"",it.Types.warning+"",it.Types.unknown+"",it.Types.instance+"";class lw extends _.Component{static generateFile(e,r){const n=window.document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",window.document.body.appendChild(n),n.click(),window.document.body.removeChild(n)}handleFileSelect=e=>{const n=e.target?.files;if(!n||!n.length){console.error("No files found. Please report to developers");return}const o=n[0];if(o){const a=new window.FileReader;a.onload=()=>{const s=a.result?.toString()||"";try{const l=JSON.parse(s);l.native&&l.common?l.common.name!==this.props.common.name?this.props.onError&&this.props.onError(z.t("ra_otherConfig",l.common.name)):this.props.onLoad&&this.props.onLoad(l.native):this.props.onError&&this.props.onError(z.t("ra_invalidConfig"))}catch(l){this.props.onError&&this.props.onError(l?.toString())}},a.readAsText(o)}else alert("Failed to open JSON File")};download(){const e={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};e.common.news&&delete e.common.news,e.common.titleLang&&delete e.common.titleLang,e.common.desc&&delete e.common.desc,lw.generateFile(`${e._id}.json`,e)}upload(){const e=window.document.createElement("input");e.setAttribute("type","file"),e.setAttribute("id","files"),e.setAttribute("opacity","0"),e.addEventListener("change",this.handleFileSelect,!1),e.click()}render(){return _.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?_.createElement(cs,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?_.createElement(ts,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{window.open(this.props.common.readme,"_blank")?.focus()}},_.createElement(MX,null)):null,_.createElement(ts,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Load configuration from file"),onClick:()=>this.upload()},_.createElement(XX,null)),_.createElement(ts,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Save configuration to file"),onClick:()=>this.download()},_.createElement(GX,null)))}}function KZe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function ZZe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("g",{fill:"currentColor"},_.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),_.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function QZe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("g",{fill:"currentColor"},_.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),_.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),_.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),_.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),_.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),_.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function eQe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function tQe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),_.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}))}const zE={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};_.forwardRef(function(e,r){return _.createElement(yF,{sx:{...zE.root,...e?.style||void 0,...e.overflow==="auto"?zE.overflowAuto:void 0},ref:r},e.children)});_.createElement(tQe,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(ZZe,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(QZe,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(KZe,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(F9,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(eQe,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),_.createElement(jX,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(HX,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(qX,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(VX,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(LX,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(BX,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(CX,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(h2,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(ab,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});class ff extends _.Component{refTypo;height;width;constructor(e){super(e),this.state={closed:this.props.storeId?window.localStorage.getItem(this.props.storeId)==="true":!1},this.height=0,this.width=0,this.refTypo=_.createRef()}componentDidMount(){this.detectHeight()}onClick(){this.props.storeId&&this.props.closed===void 0&&(this.state.closed?window.localStorage.removeItem(this.props.storeId):window.localStorage.setItem(this.props.storeId,"true")),this.props.closed===void 0?this.setState({closed:!this.state.closed},()=>{this.props.onClose&&this.props.onClose(this.state.closed)}):this.props.onClose&&this.props.onClose(!this.props.closed)}detectHeight(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed;this.props.closeable&&!e&&this.refTypo.current&&window.requestAnimationFrame(()=>{(this.props.closed!==void 0?this.props.closed:this.state.closed)||this.refTypo.current&&(!this.height||this.width!==this.refTypo.current.clientWidth)&&(this.height=this.refTypo.current.clientHeight,this.width=this.refTypo.current.clientWidth,this.forceUpdate())})}componentDidUpdate(){this.detectHeight()}render(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed,r=e?KX:hi;return _.createElement(st,{className:"iom-info-box",style:{whiteSpace:"preserve",display:"flex",gap:8,alignItems:e||this.props.iconPosition==="top"?"flex-start":"center",borderWidth:1,borderStyle:"solid",padding:4,borderRadius:5,marginBottom:8,maxWidth:"100%",transition:"height 0.5s",height:this.props.closeable?e?30:this.height||void 0:void 0,overflow:this.props.closeable?"hidden":void 0,position:"relative",...this.props.style},sx:{borderColor:n=>this.props.type==="ok"?n.palette.info.main:n.palette[this.props.type].main}},this.props.type==="ok"?_.createElement(wi,{style:{color:"#0F0"}}):this.props.type==="info"?_.createElement(NX,{color:"primary"}):_.createElement(ZX,{color:this.props.type}),_.createElement(Bo,{ref:this.refTypo},this.props.children),this.props.closeable?_.createElement(r,{sx:{color:n=>n.palette.mode==="dark"?"lightgray":"gray",cursor:"pointer",position:"absolute",top:4,right:4},onClick:()=>this.onClick()}):null,this.props.closeable?_.createElement("div",{style:{width:22}}):null,e?_.createElement(st,{component:"div",sx:n=>{const o=n.palette[this.props.type==="ok"?"info":this.props.type].main;return{background:`linear-gradient(${o}00 0%, ${o}10 60%, ${o}90 100%)`}},style:{bottom:0,position:"absolute",left:0,right:0,height:10}}):null)}}const pe={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},Uv=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],hf=["January","February","March","April","May","June","July","August","September","October","November","December"],qv={minutes:"minutes",hours:"hours"},pu=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function fa(t){return t<10?`0${t}`:`${t}`}const LE={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function Hv(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class Nr extends R.Component{refFrom;refTo;refOnce;timerOnce=null;timerFrom=null;timerTo=null;constructor(e){super(e);let r;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{r=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(r=this.props.schedule);(!r||!Object.keys(r).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),r=LE),r={...LE,...r},r.valid.from||=Nr.now2string(),this.refFrom=_.createRef(),this.refTo=_.createRef(),this.refOnce=_.createRef(),this.state={schedule:r,desc:Nr.state2text(r)},JSON.stringify(r)!==this.props.schedule&&setTimeout(()=>this.props.onChange?.(JSON.stringify(r)),100)}componentWillUnmount(){this.timerOnce&&(clearTimeout(this.timerOnce),this.timerOnce=null),this.timerFrom&&(clearTimeout(this.timerFrom),this.timerFrom=null),this.timerTo&&(clearTimeout(this.timerTo),this.timerTo=null)}onChange(e,r){const n=JSON.stringify(e)!==JSON.stringify(this.state.schedule);if(r||n){n&&this.setState({schedule:e,desc:Nr.state2text(e)});const o=JSON.parse(JSON.stringify(e));if(o.period.once){const a=o.period.once;delete o.period,o.period={once:a},delete o.valid}else if(o.period.days){const a=o.period.days,s=o.period.dows;delete o.period,o.period={days:a},s&&s!=="[]"&&(o.period.dows=s)}else if(o.period.weeks){const a=o.period.weeks,s=o.period.dows;delete o.period,o.period={weeks:a},s&&s!=="[]"&&(o.period.dows=s)}else if(o.period.months){const a=o.period.months,s=o.period.dates;delete o.period,o.period={months:a},s&&s!=="[]"&&(o.period.dates=s)}else if(o.period.years){const a=o.period.years,s=o.period.yearMonth,l=o.period.yearDate;delete o.period,o.period={years:a,yearDate:l},s&&(o.period.yearMonth=s)}if(o.time.exactTime?(delete o.time.end,delete o.time.mode,delete o.time.interval):delete o.time.exactTime,o.valid){if(o.valid.to||delete o.valid.to,o.period.days===1||o.period.weeks===1||o.period.months===1||o.period.years===1){const a=Nr.string2date(o.valid.from),s=new Date;s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),a<=s&&delete o.valid.from}!o.valid.from&&!o.valid.to&&delete o.valid}this.props.onChange?.(JSON.stringify(o),Nr.state2text(e))}}static state2text(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{return""}const r=[],n=Nr.string2date(e.valid.from);if(e.period.once){const o=Nr.string2date(e.period.once),a=new Date;if(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),oz.t(Uv[s]));if(a.length===1)r.push(z.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(z.t("sch_desc_everyDay"));else{const s=a.pop();r.push(z.t("sch_desc_onWeekdays",a.join(", "),s))}}}else r.push(z.t("sch_desc_everyDay"));else r.push(z.t("sch_desc_everyNDay",e.period.days.toString()));else if(e.period.weeks)if(e.period.weeks===1?r.push(z.t("sch_desc_everyWeek")):r.push(z.t("sch_desc_everyNWeeks",e.period.weeks.toString())),e.period.dows){const o=JSON.parse(e.period.dows);if(o.length===2&&o[0]===0&&o[1]===6)r.push(z.t("sch_desc_onWeekends"));else if(o.length===5&&o[0]===1&&o[1]===2&&o[2]===3&&o[3]===4&&o[4]===5)r.push(z.t("sch_desc_onWorkdays"));else{const a=o.map(s=>z.t(Uv[s]));if(a.length===1)r.push(z.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(z.t("sch_desc_everyDay"));else{const s=a.pop();r.push(z.t("sch_desc_onWeekdays",a.join(", "),s))}}}else return z.t("sch_desc_never");else if(e.period.months){if(e.period.dates){const o=JSON.parse(e.period.dates);if(o.length===1)r.push(z.t("sch_desc_onDate",o[0]));else if(o.length===31)r.push(z.t("sch_desc_onEveryDate"));else if(o.length){const a=o.pop();r.push(z.t("sch_desc_onDates",o.join(", "),a))}else return z.t("sch_desc_never")}else r.push(z.t("sch_desc_onEveryDate"));if(e.period.months===1)r.push(z.t("sch_desc_everyMonth"));else if(typeof e.period.months=="number")r.push(z.t("sch_desc_everyNMonths",e.period.months.toString()));else{const a=JSON.parse(e.period.months).map(s=>z.t(hf[s-1]));if(!a.length)return z.t("sch_desc_never");if(a.length===1)r.push(z.t("sch_desc_onMonth",a[0]));else if(a.length===12)r.push(z.t("sch_desc_everyMonth"));else{const s=a.pop();r.push(z.t("sch_desc_onMonths",a.join(", "),s))}}}else e.period.years&&(e.period.years===1?r.push(z.t("sch_desc_everyYear")):r.push(z.t("sch_desc_everyNYears",e.period.years.toString())),r.push(z.t("sch_desc_onDate",e.period.yearDate.toString(),e.period.yearMonth?z.t(hf[e.period.yearMonth-1]):z.t("sch_desc_everyMonth"))));if(e.time.exactTime)pu.includes(e.time.start)?r.push(z.t("sch_desc_atTime",z.t(`sch_astro_${e.time.start}`))):r.push(z.t("sch_desc_atTime",e.time.start));else{e.time.mode===qv.minutes?e.time.interval===1?r.push(z.t("sch_desc_everyMinute")):r.push(z.t("sch_desc_everyNMinutes",e.time.interval.toString())):e.time.interval===1?r.push(z.t("sch_desc_everyHour")):r.push(z.t("sch_desc_everyNHours",e.time.interval.toString()));const o=pu.indexOf(e.time.start)!==-1?z.t(`sch_astro_${e.time.start}`):e.time.start,a=pu.indexOf(e.time.end)!==-1?z.t(`sch_astro_${e.time.end}`):e.time.end;(o!=="00:00"||a!=="24:00"&&a!=="23:59")&&r.push(z.t("sch_desc_intervalFromTo",o,a))}return e.period.once||(n.getTime()>Date.now()&&e.valid.to?r.push(z.t("sch_desc_validFromTo",e.valid.from,e.valid.to)):n.getTime()>Date.now()?r.push(z.t("sch_desc_validFrom",e.valid.from)):e.valid.to&&r.push(z.t("sch_desc_validTo",e.valid.to))),r.join(" ")}getTimePeriodElements(){const e=this.state.schedule;let r=!1,n=!1,o=!1,a=!0;return e.time.start==="00:00"&&e.time.end==="24:00"?(r=!0,a=!1):e.time.start==="sunrise"?(n=!0,a=!1):e.time.start==="sunset"&&(o=!0,a=!1),_.createElement("div",{key:"timePeriod",style:pe.rowDiv},_.createElement("div",{style:pe.modeDiv},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!e.time.exactTime,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.exactTime=!1,this.onChange(s)}}),label:z.t("sch_intervalTime")})),_.createElement("div",{style:pe.settingsDiv},_.createElement("div",{style:pe.settingsDiv},!e.time.exactTime&&_.createElement("div",null,_.createElement("div",null,_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!a,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="23:59",this.onChange(s)}}),label:a?"":z.t("sch_fromTo")}),a&&[_.createElement(Vt,{variant:"standard",style:{...pe.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_from"),margin:"normal"}),_.createElement(Vt,{variant:"standard",style:pe.inputTime,key:"exactTimeTo",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.end=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_to"),margin:"normal"})])),!e.time.exactTime&&_.createElement("div",null,_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!r,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="24:00",this.onChange(s)}}),label:z.t("sch_wholeDay")})),!e.time.exactTime&&_.createElement("div",null,_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!n,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunrise",s.time.end="sunset",this.onChange(s)}}),label:z.t("sch_astroDay")})),!e.time.exactTime&&_.createElement("div",null,_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!o,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunset",s.time.end="sunrise",this.onChange(s)}}),label:z.t("sch_astroNight")}))),!e.time.exactTime&&this.getPeriodSettingsMinutes(a)))}getTimeExactElements(){const e=pu.includes(this.state.schedule.time.start);return _.createElement("div",{key:"timeExact",style:pe.rowDiv},_.createElement("div",{style:pe.modeDiv},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.exactTime=!0,this.onChange(r)}}),label:z.t("sch_exactTime")})),this.state.schedule.time.exactTime&&_.createElement(Dn,{variant:"standard",value:e?this.state.schedule.time.start:"00:00",onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)}},_.createElement(rr,{key:"specific",value:"00:00"},z.t("sch_specificTime")),pu.map(r=>_.createElement(rr,{key:r,value:r},z.t(`sch_astro_${r}`)))),this.state.schedule.time.exactTime&&!e&&_.createElement("div",{style:pe.settingsDiv},_.createElement(Vt,{variant:"standard",style:pe.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:r=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:r.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return _.createElement("hr",{style:pe.hr})}getPeriodModes(){const e=this.state.schedule,r=!e.period.dows&&!e.period.months&&!e.period.dates&&!e.period.years&&!e.period.days&&!e.period.weeks;return r&&!e.period.once&&(e.period.once=Nr.now2string(!0)),[_.createElement("div",{key:"once",style:{...pe.rowDiv,...pe.rowOnce}},_.createElement("div",{style:pe.modeDiv},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.once||=Nr.now2string(!0),n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,this.onChange(n)}}),label:z.t("sch_periodOnce")})),r&&_.createElement("div",{style:pe.settingsDiv},_.createElement(Vt,{variant:"standard",style:pe.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:Hv(e.period.once),onChange:n=>{this.timerOnce&&clearTimeout(this.timerOnce),this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(o=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),s=Nr.string2date(o);s.toString()!=="Invalid Date"&&(a.period.once=`${fa(s.getDate())}.${fa(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_at"),margin:"normal"}))),_.createElement(st,{component:"div",key:"days",sx:je.getStyle(this.props.theme,pe.rowDiv,pe.rowDays)},_.createElement("div",{style:pe.modeDiv},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!e.period.days,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDaily")})),_.createElement("div",{style:pe.settingsDiv},this.getPeriodSettingsDaily(),e.period.days?this.getPeriodSettingsWeekdays():null)),_.createElement(st,{component:"div",key:"weeks",sx:je.getStyle(this.props.theme,pe.rowDiv,pe.rowDows)},_.createElement("div",{style:pe.modeDiv},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!e.period.weeks,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=e.period.weeks?0:1,n.period.dows||="[0]",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodWeekly")})),_.createElement(st,{component:"div",style:pe.settingsDiv},_.createElement("div",{style:pe.settingsDiv},this.getPeriodSettingsWeekly()),_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,pe.settingsDiv,pe.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),_.createElement(st,{component:"div",key:"months",sx:je.getStyle(this.props.theme,pe.rowDiv,pe.rowMonths)},_.createElement("div",{style:pe.modeDiv},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!e.period.months,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,n.period.dows="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodMonthly")})),_.createElement("div",{style:pe.settingsDiv},this.getPeriodSettingsMonthly(),e.period.months?_.createElement(st,null,_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,pe.settingsDiv,pe.rowMonthsDates)},_.createElement(ut,{control:_.createElement(mr,{style:pe.inputRadio,checked:!!e.period.dates,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months||=1;const o=[];for(let a=1;a<=31;a++)o.push(a);n.period.dates||=JSON.stringify(o),n.period.dows="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDates")})),_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,pe.settingsDiv,pe.rowMonthsDates)},this.getPeriodSettingsDates())):null)),_.createElement(st,{component:"div",key:"years",sx:je.getStyle(this.props.theme,pe.rowDiv,pe.rowYears)},_.createElement("div",{style:pe.modeDiv},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:!!e.period.years,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,n.period.yearDate=1,n.period.yearMonth=1,n.period.dows="",n.period.months=0,n.period.dates="",n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodYearly")})),_.createElement("div",{style:pe.settingsDiv},_.createElement("div",{style:pe.settingsDiv},this.getPeriodSettingsYearly()),!!e.period.years&&_.createElement("div",{style:pe.settingsDiv},_.createElement("span",null,z.t("sch_on")),_.createElement(fo,{key:"input",value:this.state.schedule.period.yearDate,style:pe.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearDate=parseInt(n.target.value,10),o.period.yearDate<1&&(o.period.yearDate=31),o.period.yearDate>31&&(o.period.yearDate=1),this.onChange(o)}}),_.createElement(Dn,{variant:"standard",value:e.period.yearMonth,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearMonth=n.target.value,this.onChange(o)}},_.createElement(rr,{key:"every",value:0},z.t("sch_yearEveryMonth")),hf.map((n,o)=>_.createElement(rr,{key:n,value:o+1},z.t(n)))))))]}getPeriodSettingsMinutes(e){return _.createElement("div",{style:{display:"inline-block",marginTop:e?15:"inherit"}},_.createElement("label",{style:{marginLeft:4,marginRight:4}},z.t("sch_every")),_.createElement(fo,{value:this.state.schedule.time.interval,style:{...pe.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.interval=parseInt(r.target.value,10),this.onChange(n)}}),_.createElement(Dn,{variant:"standard",value:this.state.schedule.time.mode,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.mode=r.target.value,this.onChange(n)}},_.createElement(rr,{value:qv.minutes},z.t("sch_periodMinutes")),_.createElement(rr,{value:qv.hours},z.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const e=this.state.schedule,r=e.period.dows&&e.period.dows!=="[1, 2, 3, 4, 5]"&&e.period.dows!=="[0, 6]";return[_.createElement("div",{key:"workdays"},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:e.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[1, 2, 3, 4, 5]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWorkdays")})),_.createElement("div",{key:"weekend"},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:e.period.dows==="[0, 6]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekend")})),_.createElement("div",{key:"specific",style:{verticalAlign:"top"}},_.createElement(ut,{style:{verticalAlign:"top"},control:_.createElement(Ft,{style:pe.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 1, 2, 3, 4, 5, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekdays")}),r&&(e.period.days===1||e.period.weeks)&&_.createElement(Tf,{row:!0,style:{...pe.inputGroup,width:150}},[1,2,3,4,5,6,0].map(n=>_.createElement(ut,{key:`specific_${n}`,style:pe.inputGroupElement,control:_.createElement(mr,{style:pe.inputSmallCheck,checked:e.period.dows.includes(n.toString()),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));let s;try{s=JSON.parse(a.period.dows)}catch{s=[]}o.target.checked&&!s.includes(n)?s.push(n):!o.target.checked&&s.includes(n)&&s.splice(s.indexOf(n),1),s.sort((l,u)=>l-u),a.period.dows=JSON.stringify(s),a.period.days&&(a.period.days=1),this.onChange(a)}}),label:z.t(Uv[n])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const e=this.state.schedule;return[_.createElement("div",{key:"every_day"},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:e.period.days===1&&!e.period.dows,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEveryDay")})),_.createElement("div",{key:"everyN_day"},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:e.period.days>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=2,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.days>1&&[_.createElement(fo,{key:"input",value:this.state.schedule.period.days,style:pe.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=parseInt(r.target.value,10),n.period.dows="",this.onChange(n)}}),_.createElement("span",{key:"span",style:{paddingRight:10}},z.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const e=this.state.schedule;return[_.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},_.createElement("div",null,_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:e.period.weeks===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=1,this.onChange(r)}}),label:z.t("sch_periodEveryWeek")})),_.createElement("div",null,_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:e.period.weeks>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.weeks>1&&[_.createElement(fo,{key:"input",value:this.state.schedule.period.weeks,style:pe.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=parseInt(r.target.value,10),this.onChange(n)}}),_.createElement("span",{key:"text"},z.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const e=this.state.schedule,r=[];for(let o=1;o<=31;o++)r.push(o);const n=JSON.parse(e.period.dates);return _.createElement(Tf,{row:!0,style:{...pe.inputGroup,maxWidth:620}},_.createElement(ut,{style:pe.inputDateDay,control:_.createElement(mr,{style:pe.inputDateDayCheck,checked:n.length===31,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let s=1;s<=31;s++)a.push(s);o.period.dates=JSON.stringify(a),this.onChange(o)}}),label:z.t("sch_all")}),_.createElement(ut,{style:pe.inputDateDay,control:_.createElement(mr,{style:pe.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dates="[]",this.onChange(o)}}),label:z.t("sch_no_one")}),n.length!==31&&!!n.length&&_.createElement(ut,{style:pe.inputDateDay,control:_.createElement(mr,{style:pe.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],s=JSON.parse(o.period.dates);for(let l=1;l<=31;l++)s.includes(l)||a.push(l);a.sort((l,u)=>l-u),o.period.dates=JSON.stringify(a),this.onChange(o)}}),label:z.t("sch_invert")}),_.createElement("div",null),r.map(o=>_.createElement(ut,{key:`date_${o}`,style:o?pe.inputDateDay:{...pe.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:_.createElement(mr,{style:pe.inputDateDayCheck,checked:JSON.parse(e.period.dates).includes(o),onChange:a=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.dates)}catch{l=[]}a.target.checked&&!l.includes(o)?l.push(o):!a.target.checked&&l.includes(o)&&l.splice(l.indexOf(o),1),l.sort((u,f)=>u-f),s.period.dates=JSON.stringify(l),this.onChange(s)}}),label:o<10?[_.createElement("span",{key:"0",style:{opacity:0}},"0"),_.createElement("span",{key:"num"},o)]:o})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const e=this.state.schedule,r=typeof e.period.months=="string"?JSON.parse(e.period.months):[];return[_.createElement("div",{key:"every"},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:typeof e.period.months=="number"&&e.period.months===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,this.onChange(e)}}),label:z.t("sch_periodEveryMonth")})),_.createElement("div",{key:"everyN"},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:typeof e.period.months=="number"&&e.period.months>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=2,this.onChange(n)}}),label:z.t("sch_periodEvery")}),typeof e.period.months=="number"&&e.period.months>1&&[_.createElement(fo,{key:"input",value:e.period.months,style:pe.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=parseInt(n.target.value,10),o.period.months<1&&(o.period.months=1),this.onChange(o)}}),_.createElement("span",{key:"text"},z.t("sch_periodMonth"))]),_.createElement("div",{key:"specific",style:{verticalAlign:"top"}},_.createElement(ut,{style:{verticalAlign:"top"},control:_.createElement(Ft,{style:pe.inputRadio,checked:typeof e.period.months=="string",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(n)}}),label:z.t("sch_periodSpecificMonths")}),typeof e.period.months=="string"&&_.createElement(Tf,{row:!0,style:pe.inputGroup},_.createElement(ut,{style:pe.inputDateDay,control:_.createElement(mr,{style:pe.inputDateDayCheck,checked:r.length===12,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[];for(let a=1;a<=12;a++)o.push(a);n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_all")}),_.createElement(ut,{style:pe.inputDateDay,control:_.createElement(mr,{style:pe.inputDateDayCheck,checked:!r.length,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[]",this.onChange(n)}}),label:z.t("sch_no_one")}),r.length!==12&&!!r.length&&_.createElement(ut,{style:pe.inputDateDay,control:_.createElement(mr,{style:pe.inputDateDayCheck,checked:!1,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[],a=JSON.parse(n.period.months);for(let s=1;s<=12;s++)a.includes(s)||o.push(s);o.sort((s,l)=>s-l),n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_invert")}),_.createElement("div",null),hf.map((n,o)=>_.createElement(ut,{key:`month_${o}`,style:pe.inputGroupElement,control:_.createElement(mr,{style:pe.inputSmallCheck,checked:typeof e.period.months=="string"?JSON.parse(e.period.months).includes(o+1):e.period.months===o,onChange:a=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.months)}catch{l=[]}a.target.checked&&!l.includes(o+1)?l.push(o+1):!a.target.checked&&l.includes(o+1)&&l.splice(l.indexOf(o+1),1),l.sort((u,f)=>u-f),s.period.months=JSON.stringify(l),this.onChange(s)}}),label:z.t(n)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const e=this.state.schedule;return[_.createElement("div",{key:"year"},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:e.period.years===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,this.onChange(r)}}),label:z.t("sch_periodEveryYear")})),_.createElement("div",{key:"every"},_.createElement(ut,{control:_.createElement(Ft,{style:pe.inputRadio,checked:e.period.years>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.years>1&&[_.createElement(fo,{key:"input",value:this.state.schedule.period.years,style:pe.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=parseInt(r.target.value,10),n.period.years<1&&(n.period.years=1),this.onChange(n)}}),_.createElement("span",{key:"text"},z.t("sch_periodYear"))])]}static now2string(e){const r=new Date;return r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0),e&&(r.setDate(r.getDate()+2),r.setMilliseconds(r.getMilliseconds()-1)),`${fa(r.getDate())}.${fa(r.getMonth()+1)}.${fa(r.getFullYear())}`}static string2date(e){let r=e.split(".");return r.length===1?(r=e.split("-"),new Date(parseInt(r[0],10),parseInt(r[1],10)-1,parseInt(r[2],10))):new Date(parseInt(r[2],10),parseInt(r[1],10)-1,parseInt(r[0],10))}getValidSettings(){const e=this.state.schedule;return _.createElement("div",{style:pe.rowDiv},_.createElement("div",{style:{...pe.modeDiv,verticalAlign:"middle"}},_.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},z.t("sch_valid")),_.createElement("span",null,z.t("sch_validFrom"))),_.createElement("div",{style:pe.settingsDiv},_.createElement(Vt,{variant:"standard",style:{...pe.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:Hv(e.valid.from),type:"date",onChange:r=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(n=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),a=Nr.string2date(n);a.toString()!=="Invalid Date"&&(o.valid.from=`${fa(a.getDate())}.${fa(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),_.createElement(ut,{control:_.createElement(mr,{style:pe.inputRadio,checked:!!e.valid.to,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.valid.to=r.valid.to?"":Nr.now2string(!0),this.onChange(r)}}),label:z.t("sch_validTo")}),!!e.valid.to&&_.createElement(Vt,{variant:"standard",inputRef:this.refTo,style:{...pe.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:Hv(e.valid.to),onChange:r=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(n=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),a=Nr.string2date(n);a.toString()!=="Invalid Date"&&(o.valid.to=`${fa(a.getDate())}.${fa(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return _.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},_.createElement("div",null,this.state.desc),_.createElement("div",{style:pe.scrollWindow},_.createElement("h5",null,z.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),Nr.getDivider(),_.createElement("h5",null,z.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&Nr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}const Vv={div:{borderRadius:3,padding:"0 3px",lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center"},icon:{width:16,height:16,marginRight:8,verticalAlign:"middle"},text:{display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}};function pc(t){const e=t.value;let r;const n=t.removePrefix||"";if(typeof e=="string"){const a=t.list;if(a)if(Array.isArray(a)){const s=a.find(l=>l?._id===n+e);s?r={name:je.getObjectNameFromObj(s,t.lang).replace("system.group.",""),value:s._id,icon:t.icon||s.common?.icon,color:t.color||s.common?.color}:r={name:e,value:n+e}}else if(a[n+e]){const s=a[n+e];r={name:je.getObjectNameFromObj(s,t.lang).replace("system.group.",""),value:s._id,icon:t.icon||s.common?.icon,color:t.color||s.common?.color}}else r={name:e,value:n+e,icon:t.icon,color:t.color};else r={name:e,value:n+e,icon:t.icon,color:t.color}}else if(!e||typeof e!="object")r={name:"",value:"",icon:t.icon,color:t.color};else{const a=e;r={name:je.getObjectNameFromObj(a,t.lang).replace("system.group.","").replace("system.user.","").replace("enum.rooms.","").replace("enum.functions.",""),value:a._id,icon:t.icon||a.common?.icon,color:t.color||a.common?.color}}const o=r?.color?{border:`1px solid ${je.invertColor(r?.color)}`,color:je.getInvertedColor(r?.color,t.themeType||"light",!0)||void 0,backgroundColor:r?.color}:{};return _.createElement("div",{style:{...t.style||void 0,...Vv.div,...o||void 0},className:je.clsx(t.className,t.moreClasses?.root),title:t.title||r.value},r?.icon?_.createElement(cs,{src:r?.icon,className:t.moreClasses?.icon,style:Vv.icon}):null,_.createElement("div",{style:Vv.text,className:t.moreClasses?.text},r?.name))}function FE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function sO(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',vQe=Number.isNaN||Xo.isNaN;function yt(t){return typeof t=="number"&&!vQe(t)}var QE=function(e){return e>0&&e<1/0};function Gv(t){return typeof t>"u"}function ls(t){return ib(t)==="object"&&t!==null}var bQe=Object.prototype.hasOwnProperty;function Ic(t){if(!ls(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&bQe.call(r,"isPrototypeOf")}catch{return!1}}function mn(t){return typeof t=="function"}var wQe=Array.prototype.slice;function gO(t){return Array.from?Array.from(t):wQe.call(t)}function yr(t,e){return t&&mn(e)&&(Array.isArray(t)||yt(t.length)?gO(t).forEach(function(r,n){e.call(t,r,n,t)}):ls(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Qt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){ls(a)&&Object.keys(a).forEach(function(s){e[s]=a[s]})}),e},SQe=/\.\d*(?:0|9){12}\d*$/;function Wc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return SQe.test(t)?Math.round(t*e)/e:t}var xQe=/^width|height|left|top|marginLeft|marginTop$/;function ai(t,e){var r=t.style;yr(e,function(n,o){xQe.test(o)&&yt(n)&&(n="".concat(n,"px")),r[o]=n})}function kQe(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function Dr(t,e){if(e){if(yt(t.length)){yr(t,function(n){Dr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function Vo(t,e){if(e){if(yt(t.length)){yr(t,function(r){Vo(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function Pc(t,e,r){if(e){if(yt(t.length)){yr(t,function(n){Pc(n,e,r)});return}r?Dr(t,e):Vo(t,e)}}var CQe=/([a-z\d])([A-Z])/g;function hw(t){return t.replace(CQe,"$1-$2").toLowerCase()}function mb(t,e){return ls(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(hw(e)))}function id(t,e,r){ls(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(hw(e)),r)}function $Qe(t,e){if(ls(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(hw(e)))}var yO=/\s\s*/,vO=(function(){var t=!1;if(lm){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});Xo.addEventListener("test",r,n),Xo.removeEventListener("test",r,n)}return t})();function lo(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(yO).forEach(function(a){if(!vO){var s=t.listeners;s&&s[a]&&s[a][r]&&(o=s[a][r],delete s[a][r],Object.keys(s[a]).length===0&&delete s[a],Object.keys(s).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function Gn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(yO).forEach(function(a){if(n.once&&!vO){var s=t.listeners,l=s===void 0?{}:s;o=function(){delete l[a][r],t.removeEventListener(a,o,n);for(var f=arguments.length,h=new Array(f),d=0;dMath.abs(r)&&(r=m)})}),r}function _f(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:sO({startX:r,startY:n},o)}function OQe(t){var e=0,r=0,n=0;return yr(t,function(o){var a=o.startX,s=o.startY;e+=a,r+=s,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function ii(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=QE(n),s=QE(r);if(a&&s){var l=r*e;o==="contain"&&l>n||o==="cover"&&l90?{width:u,height:l}:{width:l,height:u}}function RQe(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,s=e.naturalHeight,l=e.rotate,u=l===void 0?0:l,f=e.scaleX,h=f===void 0?1:f,d=e.scaleY,m=d===void 0?1:d,y=r.aspectRatio,v=r.naturalWidth,b=r.naturalHeight,x=n.fillColor,k=x===void 0?"transparent":x,O=n.imageSmoothingEnabled,T=O===void 0?!0:O,M=n.imageSmoothingQuality,A=M===void 0?"low":M,E=n.maxWidth,D=E===void 0?1/0:E,j=n.maxHeight,P=j===void 0?1/0:j,$=n.minWidth,L=$===void 0?0:$,W=n.minHeight,H=W===void 0?0:W,V=document.createElement("canvas"),q=V.getContext("2d"),J=ii({aspectRatio:y,width:D,height:P}),ee=ii({aspectRatio:y,width:L,height:H},"cover"),Z=Math.min(J.width,Math.max(ee.width,v)),X=Math.min(J.height,Math.max(ee.height,b)),te=ii({aspectRatio:o,width:D,height:P}),N=ii({aspectRatio:o,width:L,height:H},"cover"),B=Math.min(te.width,Math.max(N.width,a)),ne=Math.min(te.height,Math.max(N.height,s)),ae=[-B/2,-ne/2,B,ne];return V.width=Wc(Z),V.height=Wc(X),q.fillStyle=k,q.fillRect(0,0,Z,X),q.save(),q.translate(Z/2,X/2),q.rotate(u*Math.PI/180),q.scale(h,m),q.imageSmoothingEnabled=T,q.imageSmoothingQuality=A,q.drawImage.apply(q,[t].concat(lO(ae.map(function(re){return Math.floor(Wc(re))})))),q.restore(),V}var wO=String.fromCharCode;function MQe(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(wO.apply(null,gO(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function PQe(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var s=e.byteLength,l=2;l+1=8&&(a=f+d)}}}if(a){var m=e.getUint16(a,n),y,v;for(v=0;v=0?a:mO),height:Math.max(n.offsetHeight,s>=0?s:_O)};this.containerData=l,ai(o,{width:l.width,height:l.height}),Dr(e,_n),Vo(o,_n)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,s=o?r.naturalWidth:r.naturalHeight,l=a/s,u=e.width,f=e.height;e.height*l>e.width?n===3?u=e.height*l:f=e.width/l:n===3?f=e.width/l:u=e.height*l;var h={aspectRatio:l,naturalWidth:a,naturalHeight:s,width:u,height:f};this.canvasData=h,this.limited=n===1||n===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(e.width-h.width)/2,h.top=(e.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=Qt({},h)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,s=this.cropBoxData,l=n.viewMode,u=a.aspectRatio,f=this.cropped&&s;if(e){var h=Number(n.minCanvasWidth)||0,d=Number(n.minCanvasHeight)||0;l>1?(h=Math.max(h,o.width),d=Math.max(d,o.height),l===3&&(d*u>h?h=d*u:d=h/u)):l>0&&(h?h=Math.max(h,f?s.width:0):d?d=Math.max(d,f?s.height:0):f&&(h=s.width,d=s.height,d*u>h?h=d*u:d=h/u));var m=ii({aspectRatio:u,width:h,height:d});h=m.width,d=m.height,a.minWidth=h,a.minHeight=d,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(l>(f?0:1)){var y=o.width-a.width,v=o.height-a.height;a.minLeft=Math.min(0,y),a.minTop=Math.min(0,v),a.maxLeft=Math.max(0,y),a.maxTop=Math.max(0,v),f&&this.limited&&(a.minLeft=Math.min(s.left,s.left+(s.width-a.width)),a.minTop=Math.min(s.top,s.top+(s.height-a.height)),a.maxLeft=s.left,a.maxTop=s.top,l===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,y),a.maxLeft=Math.max(0,y)),a.height>=o.height&&(a.minTop=Math.min(0,v),a.maxTop=Math.max(0,v))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=DQe({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),s=a.width,l=a.height,u=n.width*(s/n.naturalWidth),f=n.height*(l/n.naturalHeight);n.left-=(u-n.width)/2,n.top-=(f-n.height)/2,n.width=u,n.height=f,n.aspectRatio=s/l,n.naturalWidth=s,n.naturalHeight=l,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Qt({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,s=this.cropBoxData,l=this.limited,u=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,h=Number(n.minCropBoxHeight)||0,d=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,m=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;f=Math.min(f,o.width),h=Math.min(h,o.height),u&&(f&&h?h*u>f?h=f/u:f=h*u:f?h=f/u:h&&(f=h*u),m*u>d?m=d/u:d=m*u),s.minWidth=Math.min(f,d),s.minHeight=Math.min(h,m),s.maxWidth=d,s.maxHeight=m}r&&(l?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(o.width,a.left+a.width)-s.width,s.maxTop=Math.min(o.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=o.width-s.width,s.maxTop=o.height-s.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?dO:pw),ai(this.cropBox,Qt({width:n.width,height:n.height},Fu({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Uc(this.element,ub,this.getData())}},LQe={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",s=document.createElement("img");if(r&&(s.crossOrigin=r),s.src=o,s.alt=a,this.viewBox.appendChild(s),this.viewBoxImage=s,!!n){var l=n;typeof n=="string"?l=e.ownerDocument.querySelectorAll(n):n.querySelector&&(l=[n]),this.previews=l,yr(l,function(u){var f=document.createElement("img");id(u,mf,{width:u.offsetWidth,height:u.offsetHeight,html:u.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=a,f.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',u.innerHTML="",u.appendChild(f)})}},resetPreview:function(){yr(this.previews,function(e){var r=mb(e,mf);ai(e,{width:r.width,height:r.height}),e.innerHTML=r.html,$Qe(e,mf)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,s=e.width,l=e.height,u=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(ai(this.viewBoxImage,Qt({width:s,height:l},Fu(Qt({translateX:-u,translateY:-f},e)))),yr(this.previews,function(h){var d=mb(h,mf),m=d.width,y=d.height,v=m,b=y,x=1;o&&(x=m/o,b=a*x),a&&b>y&&(x=y/a,v=o*x,b=y),ai(h,{width:v,height:b}),ai(h.getElementsByTagName("img")[0],Qt({width:s*x,height:l*x},Fu(Qt({translateX:-u*x,translateY:-f*x},e))))}))}},FQe={bind:function(){var e=this.element,r=this.options,n=this.cropper;mn(r.cropstart)&&Gn(e,fb,r.cropstart),mn(r.cropmove)&&Gn(e,pb,r.cropmove),mn(r.cropend)&&Gn(e,db,r.cropend),mn(r.crop)&&Gn(e,ub,r.crop),mn(r.zoom)&&Gn(e,hb,r.zoom),Gn(n,HE,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&Gn(n,YE,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Gn(n,qE,this.onDblclick=this.dblclick.bind(this)),Gn(e.ownerDocument,VE,this.onCropMove=this.cropMove.bind(this)),Gn(e.ownerDocument,GE,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&Gn(window,JE,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;mn(r.cropstart)&&lo(e,fb,r.cropstart),mn(r.cropmove)&&lo(e,pb,r.cropmove),mn(r.cropend)&&lo(e,db,r.cropend),mn(r.crop)&&lo(e,ub,r.crop),mn(r.zoom)&&lo(e,hb,r.zoom),lo(n,HE,this.onCropStart),r.zoomable&&r.zoomOnWheel&&lo(n,YE,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&lo(n,qE,this.onDblclick),lo(e.ownerDocument,VE,this.onCropMove),lo(e.ownerDocument,GE,this.onCropEnd),r.responsive&&lo(window,JE,this.onResize)}},BQe={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,s=Math.abs(o-1)>Math.abs(a-1)?o:a;if(s!==1){var l,u;e.restore&&(l=this.getCanvasData(),u=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(yr(l,function(f,h){l[h]=f*s})),this.setCropBoxData(yr(u,function(f,h){u[h]=f*s})))}}},dblclick:function(){this.disabled||this.options.dragMode===hO||this.setDragMode(kQe(this.dragBox,cb)?fO:fw)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(yt(r)&&r!==1||yt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,s;e.changedTouches?yr(e.changedTouches,function(l){a[l.identifier]=_f(l)}):a[e.pointerId||0]=_f(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?s=pO:s=mb(e.target,ad),hQe.test(s)&&Uc(this.element,fb,{originalEvent:e,action:s})!==!1&&(e.preventDefault(),this.action=s,this.cropping=!1,s===uO&&(this.cropping=!0,Dr(this.dragBox,lh)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),Uc(this.element,pb,{originalEvent:e,action:r})!==!1&&(e.changedTouches?yr(e.changedTouches,function(o){Qt(n[o.identifier]||{},_f(o,!0))}):Qt(n[e.pointerId||0]||{},_f(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?yr(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Pc(this.dragBox,lh,this.cropped&&this.options.modal)),Uc(this.element,db,{originalEvent:e,action:r}))}}},WQe={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,s=this.pointers,l=this.action,u=r.aspectRatio,f=a.left,h=a.top,d=a.width,m=a.height,y=f+d,v=h+m,b=0,x=0,k=o.width,O=o.height,T=!0,M;!u&&e.shiftKey&&(u=d&&m?d/m:1),this.limited&&(b=a.minLeft,x=a.minTop,k=b+Math.min(o.width,n.width,n.left+n.width),O=x+Math.min(o.height,n.height,n.top+n.height));var A=s[Object.keys(s)[0]],E={x:A.endX-A.startX,y:A.endY-A.startY},D=function(P){switch(P){case Bi:y+E.x>k&&(E.x=k-y);break;case Wi:f+E.xO&&(E.y=O-v);break}};switch(l){case pw:f+=E.x,h+=E.y;break;case Bi:if(E.x>=0&&(y>=k||u&&(h<=x||v>=O))){T=!1;break}D(Bi),d+=E.x,d<0&&(l=Wi,d=-d,f-=d),u&&(m=d/u,h+=(a.height-m)/2);break;case Za:if(E.y<=0&&(h<=x||u&&(f<=b||y>=k))){T=!1;break}D(Za),m-=E.y,h+=E.y,m<0&&(l=fc,m=-m,h-=m),u&&(d=m*u,f+=(a.width-d)/2);break;case Wi:if(E.x<=0&&(f<=b||u&&(h<=x||v>=O))){T=!1;break}D(Wi),d-=E.x,f+=E.x,d<0&&(l=Bi,d=-d,f-=d),u&&(m=d/u,h+=(a.height-m)/2);break;case fc:if(E.y>=0&&(v>=O||u&&(f<=b||y>=k))){T=!1;break}D(fc),m+=E.y,m<0&&(l=Za,m=-m,h-=m),u&&(d=m*u,f+=(a.width-d)/2);break;case fu:if(u){if(E.y<=0&&(h<=x||y>=k)){T=!1;break}D(Za),m-=E.y,h+=E.y,d=m*u}else D(Za),D(Bi),E.x>=0?yx&&(m-=E.y,h+=E.y):(m-=E.y,h+=E.y);d<0&&m<0?(l=_u,m=-m,d=-d,h-=m,f-=d):d<0?(l=hu,d=-d,f-=d):m<0&&(l=mu,m=-m,h-=m);break;case hu:if(u){if(E.y<=0&&(h<=x||f<=b)){T=!1;break}D(Za),m-=E.y,h+=E.y,d=m*u,f+=a.width-d}else D(Za),D(Wi),E.x<=0?f>b?(d-=E.x,f+=E.x):E.y<=0&&h<=x&&(T=!1):(d-=E.x,f+=E.x),E.y<=0?h>x&&(m-=E.y,h+=E.y):(m-=E.y,h+=E.y);d<0&&m<0?(l=mu,m=-m,d=-d,h-=m,f-=d):d<0?(l=fu,d=-d,f-=d):m<0&&(l=_u,m=-m,h-=m);break;case _u:if(u){if(E.x<=0&&(f<=b||v>=O)){T=!1;break}D(Wi),d-=E.x,f+=E.x,m=d/u}else D(fc),D(Wi),E.x<=0?f>b?(d-=E.x,f+=E.x):E.y>=0&&v>=O&&(T=!1):(d-=E.x,f+=E.x),E.y>=0?v=0&&(y>=k||v>=O)){T=!1;break}D(Bi),d+=E.x,m=d/u}else D(fc),D(Bi),E.x>=0?y=0&&v>=O&&(T=!1):d+=E.x,E.y>=0?v0?l=E.y>0?mu:fu:E.x<0&&(f-=d,l=E.y>0?_u:hu),E.y<0&&(h-=m),this.cropped||(Vo(this.cropBox,_n),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}T&&(a.width=d,a.height=m,a.left=f,a.top=h,this.action=l,this.renderCropBox()),yr(s,function(j){j.startX=j.endX,j.startY=j.endY})}},UQe={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Dr(this.dragBox,lh),Vo(this.cropBox,_n),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Qt({},this.initialImageData),this.canvasData=Qt({},this.initialCanvasData),this.cropBoxData=Qt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Qt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Vo(this.dragBox,lh),Dr(this.cropBox,_n)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,yr(this.previews,function(n){n.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Vo(this.cropper,WE)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Dr(this.cropper,WE)),this},destroy:function(){var e=this.element;return e[Kt]?(e[Kt]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(Gv(e)?e:o+Number(e),Gv(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(yt(e)&&(n.left=e,o=!0),yt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,s=a.width,l=a.height,u=a.naturalWidth,f=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var h=u*e,d=f*e;if(Uc(this.element,hb,{ratio:e,oldRatio:s/u,originalEvent:n})===!1)return this;if(n){var m=this.pointers,y=bO(this.cropper),v=m&&Object.keys(m).length?OQe(m):{pageX:n.pageX,pageY:n.pageY};a.left-=(h-s)*((v.pageX-y.left-a.left)/s),a.top-=(d-l)*((v.pageY-y.top-a.top)/l)}else Ic(r)&&yt(r.x)&&yt(r.y)?(a.left-=(h-s)*((r.x-a.left)/s),a.top-=(d-l)*((r.y-a.top)/l)):(a.left-=(h-s)/2,a.top-=(d-l)/2);a.width=h,a.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),yt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,yt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(yt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(yt(e)&&(n.scaleX=e,o=!0),yt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,s;if(this.ready&&this.cropped){s={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var l=n.width/n.naturalWidth;if(yr(s,function(h,d){s[d]=h/l}),e){var u=Math.round(s.y+s.height),f=Math.round(s.x+s.width);s.x=Math.round(s.x),s.y=Math.round(s.y),s.width=f-s.x,s.height=u-s.y}}else s={x:0,y:0,width:0,height:0};return r.rotatable&&(s.rotate=n.rotate||0),r.scalable&&(s.scaleX=n.scaleX||1,s.scaleY=n.scaleY||1),s},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&Ic(e)){var s=!1;r.rotatable&&yt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,s=!0),r.scalable&&(yt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,s=!0),yt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var l=n.width/n.naturalWidth;yt(e.x)&&(a.left=e.x*l+o.left),yt(e.y)&&(a.top=e.y*l+o.top),yt(e.width)&&(a.width=e.width*l),yt(e.height)&&(a.height=e.height*l),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Qt({},this.containerData):{}},getImageData:function(){return this.sized?Qt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&yr(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&Ic(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)?(r.width=e.width,r.height=e.width/n):yt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&Ic(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),yt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var r=this.canvasData,n=RQe(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,s=o.y,l=o.width,u=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(a*=f,s*=f,l*=f,u*=f);var h=l/u,d=ii({aspectRatio:h,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),m=ii({aspectRatio:h,width:e.minWidth||0,height:e.minHeight||0},"cover"),y=ii({aspectRatio:h,width:e.width||(f!==1?n.width:l),height:e.height||(f!==1?n.height:u)}),v=y.width,b=y.height;v=Math.min(d.width,Math.max(m.width,v)),b=Math.min(d.height,Math.max(m.height,b));var x=document.createElement("canvas"),k=x.getContext("2d");x.width=Wc(v),x.height=Wc(b),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,v,b);var O=e.imageSmoothingEnabled,T=O===void 0?!0:O,M=e.imageSmoothingQuality;k.imageSmoothingEnabled=T,M&&(k.imageSmoothingQuality=M);var A=n.width,E=n.height,D=a,j=s,P,$,L,W,H,V;D<=-l||D>A?(D=0,P=0,L=0,H=0):D<=0?(L=-D,D=0,P=Math.min(A,l+D),H=P):D<=A&&(L=0,P=Math.min(l,A-D),H=P),P<=0||j<=-u||j>E?(j=0,$=0,W=0,V=0):j<=0?(W=-j,j=0,$=Math.min(E,u+j),V=$):j<=E&&(W=0,$=Math.min(u,E-j),V=$);var q=[D,j,P,$];if(H>0&&V>0){var J=v/l;q.push(L*J,W*J,H*J,V*J)}return k.drawImage.apply(k,[n].concat(lO(q.map(function(ee){return Math.floor(Wc(ee))})))),x},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!Gv(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===fw,s=r.movable&&e===fO;e=a||s?e:hO,r.dragMode=e,id(n,ad,e),Pc(n,cb,a),Pc(n,lb,s),r.cropBoxMovable||(id(o,ad,e),Pc(o,cb,a),Pc(o,lb,s))}return this}},qQe=Xo.Cropper,SO=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(nQe(this,t),!e||!gQe.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Qt({},ZE,Ic(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return oQe(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Kt]){if(r[Kt]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(mQe.test(r)){_Qe.test(r)?this.read(NQe(r)):this.clone();return}var s=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=l,s.onerror=l,s.ontimeout=l,s.onprogress=function(){s.getResponseHeader("content-type")!==KE&&s.abort()},s.onload=function(){n.read(s.response)},s.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&eT(r)&&o.crossOrigin&&(r=tT(r)),s.open("GET",r,!0),s.responseType="arraybuffer",s.withCredentials=o.crossOrigin==="use-credentials",s.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=PQe(r),s=0,l=1,u=1;if(a>1){this.url=IQe(r,KE);var f=jQe(a);s=f.rotate,l=f.scaleX,u=f.scaleY}n.rotatable&&(o.rotate=s),n.scalable&&(o.scaleX=l,o.scaleY=u),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&eT(n)&&(o||(o="anonymous"),a=tT(n)),this.crossOrigin=o,this.crossOriginUrl=a;var s=document.createElement("img");o&&(s.crossOrigin=o),s.src=a||n,s.alt=r.alt||"The image to crop",this.image=s,s.onload=this.start.bind(this),s.onerror=this.stop.bind(this),Dr(s,UE),r.parentNode.insertBefore(s,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=Xo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Xo.navigator.userAgent),a=function(f,h){Qt(r.imageData,{naturalWidth:f,naturalHeight:h,aspectRatio:f/h}),r.initialImageData=Qt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var s=document.createElement("img"),l=document.body||document.documentElement;this.sizingImage=s,s.onload=function(){a(s.width,s.height),o||l.removeChild(s)},s.src=n.src,o||(s.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",l.appendChild(s))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,s=document.createElement("div");s.innerHTML=yQe;var l=s.querySelector(".".concat(Kt,"-container")),u=l.querySelector(".".concat(Kt,"-canvas")),f=l.querySelector(".".concat(Kt,"-drag-box")),h=l.querySelector(".".concat(Kt,"-crop-box")),d=h.querySelector(".".concat(Kt,"-face"));this.container=a,this.cropper=l,this.canvas=u,this.dragBox=f,this.cropBox=h,this.viewBox=l.querySelector(".".concat(Kt,"-view-box")),this.face=d,u.appendChild(o),Dr(r,_n),a.insertBefore(l,r.nextSibling),Vo(o,UE),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,Dr(h,_n),n.guides||Dr(h.getElementsByClassName("".concat(Kt,"-dashed")),_n),n.center||Dr(h.getElementsByClassName("".concat(Kt,"-center")),_n),n.background&&Dr(l,"".concat(Kt,"-bg")),n.highlight||Dr(d,uQe),n.cropBoxMovable&&(Dr(d,lb),id(d,ad,pw)),n.cropBoxResizable||(Dr(h.getElementsByClassName("".concat(Kt,"-line")),_n),Dr(h.getElementsByClassName("".concat(Kt,"-point")),_n)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),mn(n.ready)&&Gn(r,XE,n.ready,{once:!0}),Uc(r,XE)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),Vo(this.element,_n)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=qQe,t}},{key:"setDefaults",value:function(r){Qt(ZE,Ic(r)&&r)}}])})();Qt(SO.prototype,zQe,LQe,FQe,BQe,WQe,UQe);var Yi=function(){return Yi=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&j.zoomTo(ee)})(D.currentTarget.cropper,T),x&&x(D)}}));k&&k(E)}return function(){var D,j;(j=(D=M.current)===null||D===void 0?void 0:D.cropper)===null||j===void 0||j.destroy()}}),[M]);var A=(function(E){return HQe.reduce((function(D,j){var P=D,$=j;return P[$],Jv(P,[typeof $=="symbol"?$:$+""])}),E)})(Yi(Yi({},O),{crossOrigin:u,src:a,alt:b}));return _.createElement("div",{style:s,className:l},_.createElement("img",Yi({},A,{style:VQe,ref:M})))}));const Qa={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},GQe={once:"once"},Xr={seconds:"seconds",minutes:"minutes"},rT=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function Lo(t){return t<10?`0${t}`:`${t}`}const XQe={mode:"interval",interval:{period:1,unit:Xr.minutes}};function Af(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),s=parseInt(o[1],10);for(let l=a;l<=s;l++)r.includes(l===7?0:l)||r.push(l===7?0:l)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function xO(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Xr.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Xr.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Xr.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Xr.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Xr.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Af(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Xr.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Af(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${Lo(parseInt(n.hours,10))}:${Lo(parseInt(n.minutes,10))}`,weekdays:Af(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${Lo(parseInt(n.hours,10))}:${Lo(parseInt(n.minutes,10))}`,date:`${Lo(parseInt(n.date,10))}.${Lo(parseInt(n.months,10))}`}}),o}class sd extends _.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=xO(r||"* * * * *",!0)||XQe;this.state={extended:!1,cron:sd.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Xr.minutes},intervalBetween:{period:1,unit:Xr.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let s=0;s60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Xr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Xr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Xr.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Xr.minutes,n.unit){case Xr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Xr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let s=parseInt(o[0],10)||0;s>23&&(s=23),s<0&&(s=0),r=`${a} ${s} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${Lo(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let s=parseInt(o[1],10)||0;s>59&&(s=59),s<0&&(s=0);let l=parseInt(o[0],10)||0;l>23&&(l=23),l<0&&(l=0);let u=parseInt(a[0],10)||1;u>31&&(u=31),u<1&&(u=1);let f=parseInt(a[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${s} ${l} ${u} ${f} *`}return r}recalcCron(){this.onChange(sd.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return _.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},_.createElement("h5",null,z.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>_.createElement(ut,{key:rT[n],control:_.createElement(mr,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),s=a.weekdays.indexOf(n);o.target.checked?s===-1&&a.weekdays.push(n):s!==-1&&a.weekdays.splice(s,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:z.t(rT[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?_.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},_.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),_.createElement(Vt,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),_.createElement(Vt,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):_.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},_.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),_.createElement(Vt,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),_.createElement(Dn,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},_.createElement(rr,{value:"seconds"},z.t("sc_seconds")),")",_.createElement(rr,{value:"minutes"},z.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return _.createElement(ya,{variant:"standard",sx:{...Qa.formControl,"&.MuiFormControl-root":Qa.formControlMarginRight}},_.createElement(Vt,{variant:"standard",key:"at",label:z.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${Lo(r.getMonth()+1)}`}return _.createElement(ya,{variant:"standard",style:Qa.formControl},_.createElement(Vt,{variant:"standard",key:"date",label:z.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:Qa.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return _.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),_.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},_.createElement("h5",{style:{marginBottom:5}},z.t("sc_hours")),_.createElement(ya,{variant:"standard",style:Qa.formControl},_.createElement(Iu,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_from")),_.createElement(Dn,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>_.createElement(rr,{key:`B_${r}`,value:r},`${Lo(r)}:00`)))),_.createElement(ya,{variant:"standard",style:Qa.formControl},_.createElement(Iu,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_to")),_.createElement(Dn,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>_.createElement(rr,{key:`A_${r}`,value:r},`${Lo(r)}:00`)),!e.timeFrom&&_.createElement(rr,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[_.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return _.createElement("div",{style:Qa.mainDiv},_.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},_.createElement(Vt,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),_.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?z.t("sc_invalid_cron"):H7(this.state.cron,this.props.language||"en")),_.createElement("div",null,_.createElement(ya,{variant:"standard",style:{...Qa.formControl,marginLeft:8,marginTop:8}},_.createElement(Iu,null,z.t("ra_Repeat")),_.createElement(Dn,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},_.createElement(rr,{value:"once"},z.t("sc_once")),_.createElement(rr,{value:"interval"},z.t("sc_interval")),_.createElement(rr,{value:"intervalBetween"},z.t("sc_intervalBetween")),_.createElement(rr,{value:"specific"},z.t("sc_specific"))))),this.state.mode===GQe.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const JQe={dialogPaper:{height:"calc(100% - 96px)"}};class Bmt extends _.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=oi.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?_.createElement(U9,{title:z.t("ra_Please confirm"),text:z.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return _.createElement(yo,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":JQe.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),_.createElement(wo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),_.createElement(bo,{style:{height:"100%",overflow:"hidden"}},_.createElement(oi,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),_.createElement(vo,null,!!this.props.clearButton&&_.createElement(Pt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:_.createElement(ju,null)},this.props.clear||z.t("ra_Clear")),_.createElement(Pt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:_.createElement(wi,null)},this.props.ok||z.t("ra_Ok")),_.createElement(Pt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:_.createElement(Gh,null)},this.props.cancel||z.t("ra_Cancel"))))}}const YQe={dialogPaper:{height:"calc(100% - 96px)"}};class Wmt extends _.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":xO(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return _.createElement(yo,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":YQe.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},_.createElement(wo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),_.createElement(bo,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?_.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&_.createElement(_.Fragment,null,_.createElement(Ft,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),_.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},z.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&_.createElement(_.Fragment,null,_.createElement(Ft,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),_.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},z.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&_.createElement(_.Fragment,null,_.createElement(Ft,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),_.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},z.t("sc_cron")))):null,this.state.mode==="simple"&&_.createElement(sd,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()}),this.state.mode==="wizard"&&_.createElement(Nr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&_.createElement(oi,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),_.createElement(vo,null,_.createElement(Pt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:_.createElement(wi,null)},this.props.ok||z.t("ra_Ok")),_.createElement(Pt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:_.createElement(Gh,null)},this.props.cancel||z.t("ra_Cancel"))))}}const Ui={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class Umt extends _.Component{dialogName;filters;constructor(e){super(e),this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const r=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(r)}catch{this.filters={}}e.filters&&(this.filters={...this.filters,...e.filters});let n=this.props.selected||[];typeof n!="object"?n=[n]:n=[...n],n=n.filter(o=>o),this.state={selected:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let e;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?e=[_.createElement("span",{key:"selected"},z.t("ra_Selected")," "),_.createElement("span",{key:"id",style:Ui.headerID},this.state.selected)]:e=[_.createElement("span",{key:"selected"},z.t("ra_Selected")," "),_.createElement("span",{key:"id",style:Ui.headerID},z.t("%s items",this.state.selected.length))]:e=this.props.title||z.t("ra_Please select file..."),_.createElement(yo,{onClose:()=>{},maxWidth:!1,style:{zIndex:this.props.zIndex||void 0},sx:{"& .MuiDialog-paper":{...Ui.dialog,...Ui.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},_.createElement(wo,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":Ui.titleRoot}},e),_.createElement(bo,{style:{...Ui.content,...Ui.contentMobile}},_.createElement(aZe,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(r,n,o)=>{this.setState({selected:Array.isArray(r)?r:[r]},()=>n&&(!this.props.selectOnlyFolders||o)&&this.handleOk())},t:this.props.t||z.t,lang:this.props.lang||z.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),_.createElement(vo,null,_.createElement(Pt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:_.createElement(wi,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||z.t("ra_Ok")),_.createElement(Pt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:_.createElement(Gh,null)},this.props.cancel||z.t("ra_Cancel"))))}}const KQe={dialogPaper:{height:"calc(100% - 96px)"}};class qmt extends _.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return _.createElement(yo,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":KQe.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},_.createElement(wo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define CRON...")),_.createElement(bo,{style:{height:"100%",overflow:"hidden"}},_.createElement(sd,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),_.createElement(vo,null,_.createElement(Pt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:_.createElement(wi,null)},this.props.ok||z.t("ra_Ok")),_.createElement(Pt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:_.createElement(Gh,null)},this.props.cancel||z.t("ra_Cancel"))))}}function Md(t){const{message:e,onClose:r}=t;return e?C.jsx(T1,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:!0,autoHideDuration:6e3,onClose:r,ContentProps:{"aria-describedby":"message-id"},message:C.jsx("span",{id:"message-id",children:z.t(e)}),action:[C.jsx(hr,{"aria-label":"Close",color:"inherit",onClick:r,children:C.jsx(RZe,{})},"close")]}):null}function ZQe(t){const{open:e,close:r,children:n,titleButton:o,titleButton2:a,buttonClick:s}=t;return C.jsxs(yo,{open:e,maxWidth:"md",onClose:r,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[C.jsx(wo,{id:"alert-dialog-title",children:z.t("Warning")}),C.jsx(bo,{children:n}),C.jsxs(vo,{children:[o&&C.jsx(Pt,{color:"grey",variant:"contained",onClick:s,children:o}),a&&C.jsx(Pt,{variant:"contained",onClick:r,color:"primary",autoFocus:!0,children:a})]})]})}const Yv={input:{minWidth:300},icon:{width:24,height:24,marginRight:8}};function Gi(t){const{table:e,value:r,title:n,attr:o,options:a,style:s,native:l,onChange:u,noTranslate:f,themeType:h,sx:d}=t;return C.jsxs(ya,{style:{paddingTop:5,...s},sx:{...d,...Yv.input},children:[C.jsx(Dn,{variant:"standard",value:e?r:o&&l[o]||"_",onChange:m=>{e?u(m.target.value):u(o,m.target.value==="_"?"":m.target.value)},renderValue:m=>{const y=a.find(v=>v.value===m);return y?C.jsxs(C.Fragment,{children:[C.jsx(cs,{src:y.icon||"",style:Yv.icon}),f?y.title:z.t(y.title)]}):m},input:C.jsx(fo,{name:o,id:`${o}-helper`}),children:a.map(m=>C.jsxs(rr,{value:m.value||"_",style:m.color?{color:m.color,backgroundColor:je.getInvertedColor?je.getInvertedColor(m.color,h):void 0}:{},children:[C.jsx(cs,{src:m.icon||"",style:Yv.icon}),f?m.title:z.t(m.title)]},`key-${m.value}`))}),C.jsx(bd,{children:n?z.t(n):""})]})}const Kv={input:{minWidth:300},inputNumber:{minWidth:150},heightInput:{height:30}};function cd(t){const{styleComponentBlock:e,component:r,size:n,variant:o,table:a,value:s,title:l,attr:u,type:f,style:h,native:d,onChange:m}=t;return C.jsxs(ya,{style:{...f==="number"?Kv.inputNumber:Kv.input,paddingTop:5,...h},children:[C.jsx(Vt,{variant:o||"standard",value:a?s:u?d[u]:"",type:f||"text",style:{...Kv.heightInput,...h},onChange:y=>{a?m(y.target.value):m(u,y.target.value)},margin:"normal",size:n||"medium"}),C.jsxs("div",{style:e,children:[C.jsx(bd,{style:{marginTop:-3},children:l?z.t(l):""}),r]})]})}function xr(t){const{title:e,attr:r,style:n,native:o,sx:a,onChange:s,table:l,checked:u,disabled:f,help:h}=t;let d=l?u:o[r];return r==="whiteListEnabled"&&o.socketio&&(d=!1),C.jsxs(Tf,{style:t.groupStyle,children:[C.jsx(ut,{style:{paddingTop:5,...n},sx:a,control:C.jsx(mr,{disabled:!!f,checked:!!d,onChange:m=>{l?s(m.target.checked):s(r,!o[r])},color:"primary"}),label:e?z.t(e):""},r),h?C.jsx(bd,{children:h}):null]})}const ha={blockWrapper:{display:"flex",flexDirection:"column",mr:"20px","@media screen and (max-width: 360px)":{mr:0}},tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnSettings:{width:"calc(100% - 10px)"},blockWrapperCheckbox:{display:"flex",flexFlow:"wrap"},ipInputStyle:{mt:"10px",width:600,mr:"20px","@media screen and (max-width: 940px)":{width:"100%"}},blockWarningContent:{flexFlow:"wrap",display:"flex",alignItems:"flex-end"}};class QQe extends R.Component{constructor(e){super(e),this.state={toast:"",ipAddressOptions:[],certificatesOptions:[],usersOptions:[],socketioOptions:[{title:z.t("nothing"),value:"none"},{title:z.t("built_in"),value:"_"}],openModal:!1,ready:!1,confirmSocketIO:!1,confirmValue:""}}async componentDidMount(){const e=this.props.common.host,{socketioOptions:r}=this.state;let n=await this.props.socket.getAdapterInstances("socketio");const o=await this.props.socket.getAdapterInstances("ws");o&&(n=n.concat(o));const a={ready:!0,socketioOptions:[...r,...n.map(({_id:u,common:{name:f}})=>({title:`${f} [${f}.${u.split(".").pop()}]`,value:u}))]},s=await this.props.socket.getHostByIp(e),l=[];s.forEach(u=>{let f=u.name;f.includes("Listen on all IPs")&&(f=f.replace("Listen on all IPs",z.t("open_ip"))),l.push({title:f,value:u.address})}),a.ipAddressOptions=l,a.certificatesOptions=await this.props.socket.getCertificates(),a.usersOptions=await this.props.socket.getUsers(),this.setState(a)}componentDidUpdate(e){const{native:{auth:r,secure:n}}=e,{native:{defaultUser:o,whiteListSettings:a},onChange:s}=this.props;!this.props.native.auth&&r!==this.props.native.auth?s("whiteListSettings.default.user",o):a&&a.default.user!=="auth"&&r!==this.props.native.auth&&s("whiteListSettings.default.user","auth"),o!==e.native.defaultUser&&s("whiteListSettings.default.user",o),!this.props.native.secure&&this.props.native.auth&&!this.state.openModal&&(r!==this.props.native.auth||n!==this.props.native.secure)&&this.setState({openModal:!0})}renderConfirmDialog(){return C.jsxs(yo,{open:this.state.confirmSocketIO,maxWidth:"md",onClose:()=>this.setState({confirmSocketIO:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[C.jsx(wo,{id:"alert-dialog-title",children:z.t("Warning")}),C.jsxs(bo,{children:[z.t("whitelist_only_with_integrated_socket"),C.jsx("br",{}),z.t("White list will be disabled. Please confirm.")]}),C.jsxs(vo,{children:[C.jsx(Pt,{variant:"contained",color:"primary",autoFocus:!0,onClick:()=>{this.props.onChange("whiteListEnabled",!1,()=>this.props.onChange("socketio",this.state.confirmValue,()=>this.setState({confirmSocketIO:!1})))},children:z.t("Ok")}),C.jsx(Pt,{color:"grey",variant:"contained",onClick:()=>this.setState({confirmSocketIO:!1}),children:z.t("Cancel")})]})]})}render(){const{instance:e,common:r,native:n,onLoad:o,onChange:a}=this.props,{certificatesOptions:s,ipAddressOptions:l,usersOptions:u,openModal:f,toast:h,socketioOptions:d,ready:m}=this.state;if(!m)return C.jsx(R8,{});const y=JSON.parse(JSON.stringify(r));return y.icon=y.extIcon,C.jsxs("form",{style:ha.tab,children:[C.jsx(Md,{message:h,onClose:()=>this.setState({toast:""})}),this.renderConfirmDialog(),C.jsx(ZQe,{open:f,buttonClick:()=>{a("auth",!1),this.setState({openModal:!f,toast:"Authentication_deactivated"})},close:()=>this.setState({openModal:!f}),titleButton:z.t("button_title"),titleButton2:z.t("button_title2"),children:C.jsxs("div",{style:ha.blockWarningContent,children:[C.jsx(UX,{style:{width:32,height:32}}),z.t("modal_title")]})}),C.jsx(lw,{instance:e,common:y,native:n,onError:v=>console.error(v),onLoad:o}),C.jsxs("div",{style:{...ha.column,...ha.columnSettings},children:[C.jsxs("div",{children:[C.jsx(Gi,{title:"IP address",attr:"bind",noTranslate:!0,sx:ha.ipInputStyle,options:l,native:n,onChange:a,themeType:this.props.themeType}),C.jsx(cd,{title:"port",attr:"port",type:"number",style:{marginTop:5},native:n,onChange:a})]}),C.jsxs("div",{style:ha.blockWrapperCheckbox,children:[C.jsxs(st,{component:"div",sx:ha.blockWrapper,children:[C.jsxs("div",{style:{display:"flex",flexFlow:"wrap",marginBottom:20},children:[C.jsx(xr,{title:"encryption",attr:"secure",style:{marginTop:10},native:n,onChange:a}),C.jsx(xr,{title:"authentication",attr:"auth",style:{marginTop:10},native:n,onChange:a})]}),n.auth?C.jsx(ff,{type:"info",closeable:!0,storeId:"web.basic_auth",children:z.t("basic_authentication_info").split(` -`).map((v,b)=>C.jsx("div",{children:v},b))}):null,n.auth?C.jsx(xr,{title:"basic_authentication",attr:"basicAuth",style:{marginTop:10},native:n,onChange:a}):null,n.auth&&!n.basicAuth?C.jsx(ff,{style:{marginTop:20},type:"info",closeable:!0,storeId:"web.basic_auth",children:z.t("legacy_authentication_info").split(` -`).map((v,b)=>C.jsx("div",{children:v},b))}):null,n.auth&&!n.basicAuth?C.jsx(xr,{title:"oauth2_authentication",attr:"loginOauth2",style:{marginTop:10},native:n,onChange:a}):null,C.jsx(xr,{title:"cache",attr:"cache",style:{marginTop:10},native:n,onChange:a}),C.jsx(Gi,{title:"socket",attr:"socketio",noTranslate:!0,options:d,style:{marginTop:10},native:n,onChange:(v,b,x)=>{b&&n.whiteListEnabled?this.setState({confirmSocketIO:!0,confirmValue:b}):a(v,b,x)},themeType:this.props.themeType}),n.socketio?null:C.jsx(ff,{type:"info",closeable:!0,storeId:"web.usePureWebSockets",children:z.t("usePureWebSockets_info").split(` -`).map((v,b)=>C.jsx("div",{children:v},b))}),n.socketio?null:C.jsx(xr,{title:"usePureWebSockets",attr:"usePureWebSockets",style:{marginTop:10},native:n,onChange:a}),(!n.socketio||n.socketio.startsWith("system.adapter.socket"))&&!n.usePureWebSockets?C.jsx(ff,{type:"info",closeable:!0,storeId:"web.forceWebSockets",children:z.t("forceWebSockets_info").split(` -`).map((v,b)=>C.jsx("div",{children:v},b))}):null,(!n.socketio||n.socketio.startsWith("system.adapter.socket"))&&!n.usePureWebSockets?C.jsx(xr,{title:"web_sockets",help:n.socketio?.startsWith("system.adapter.socket")?z.t("Same settings must be set in socketio instance"):"",attr:"forceWebSockets",style:{marginTop:10},native:n,onChange:a}):null]}),C.jsxs(st,{component:"div",sx:ha.blockWrapper,children:[n.secure?C.jsxs("div",{style:ha.blockWrapperCheckbox,children:[C.jsx(Gi,{title:"public_certificate",attr:"certPublic",noTranslate:!0,options:[{title:z.t("nothing"),value:""},...s.filter(({type:v})=>!v||v==="public").map(({name:v})=>({title:v,value:v}))],style:{marginTop:10,marginRight:20},native:n,onChange:a,themeType:this.props.themeType}),C.jsx(Gi,{title:"private_certificate",attr:"certPrivate",noTranslate:!0,options:[{title:z.t("nothing"),value:""},...s.filter(({type:v})=>!v||v==="private").map(({name:v})=>({title:v,value:v}))],style:{marginTop:10,marginRight:20},native:n,onChange:a,themeType:this.props.themeType}),C.jsx(Gi,{title:"chained_certificate",attr:"certChained",noTranslate:!0,options:[{title:z.t("nothing"),value:""},...s.filter(({type:v})=>!v||v==="chained").map(({name:v})=>({title:v,value:v}))],style:{marginTop:10},native:n,onChange:a,themeType:this.props.themeType})]}):null,n.auth?null:C.jsx(Gi,{title:"users",attr:"defaultUser",themeType:this.props.themeType,noTranslate:!0,options:u.map(({_id:v,common:{name:b,color:x,icon:k}})=>({title:typeof b=="object"?b[this.props.lang]||b.end||v.replace(/^system\.user\./,""):b,value:v.replace(/^system\.user\./,""),color:x,icon:k})),style:{marginTop:10,width:300},native:n,onChange:a}),n.auth?C.jsx(cd,{title:"time_out",attr:"ttl",type:"number",style:{marginTop:-1,width:300},native:n,onChange:a}):null,C.jsx("div",{style:{marginTop:20},children:z.t("Simple API is now working as Web-Extension. Please create an instance and make settings there.")}),C.jsx(xr,{title:"Do not check if this instance is available from internet",attr:"doNotCheckPublicIP",style:{marginTop:10},native:n,onChange:a})]})]})]})]})}}const Sr={backgroundTheme:t=>({background:t.palette.mode==="dark"?"#3e3838":"#dcdcdc"}),tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top"},columnSettings:{width:"100%"},table:{minWidth:700,"& td":{p:"2px"},"@media screen and (max-width: 1700px)":{"& th":{p:"2px"}},"@media screen and (max-width: 1280px)":{minWidth:300}},displayNone:{display:"none"},checkBoxStyle:{marginLeft:0,marginRight:0},miniTable:{display:"none","@media screen and (max-width: 1280px)":{display:"block"}},card:{padding:1,margin:"20px 0",border:"1px solid",borderRadius:"10px",display:"flex",flexDirection:"column",justifyContent:"left",alignItems:"center"},maxTable:{"@media screen and (max-width: 1280px)":{display:"none"}},miniTableSelect:{"@media screen and (max-width: 1280px)":{minWidth:185}},warning:{color:"#FF4040",fontSize:18,display:"inline-block"}},eet={user:"admin",object:{read:!0,list:!0,write:!0,delete:!0},state:{read:!0,list:!0,write:!0,create:!0,delete:!0},file:{read:!0,list:!0,write:!0,create:!0,delete:!0}};class jc extends R.Component{ipPrefix=null;static tableHeadArr=["to_read","list","write","delete","to_read","list","write","to_create","delete","to_read","list","write","to_create","delete"];constructor(e){if(super(e),this.state={toast:"",usersOptions:[]},e.native.bind&&e.native.bind!=="localhost"&&e.native.bind!=="0.0.0.0"){const r=e.native.bind.split(".");r.pop(),this.ipPrefix=r.join(".")}}async componentDidMount(){const e=await this.props.socket.getUsers();if(!this.ipPrefix){const r=await this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`);if(r?.common?.host){let n=await this.props.socket.getIpAddresses(r.common.host);if(n=n.filter(o=>o.includes(".")),n.length){const o=n[0].split(".");o.pop(),this.ipPrefix=o.join(".")}else this.ipPrefix="192.168.0"}}this.setState({usersOptions:e})}static getText(e){return typeof e=="string"?e:e[z.getLanguage()]||e.en}userSelect(e,r){const{native:n,onChange:o}=this.props,{usersOptions:a}=this.state,{whiteListSettings:s}=n;if(!s)return null;if(e==="default")return C.jsx("span",{style:{marginLeft:10},children:s.default.user||""});const l=s.default.user==="auth"?[{title:"auth",value:"auth"}]:[];return C.jsx(Gi,{table:!0,value:s?.[e].user||"",options:[...l,...a.map(({_id:u,common:{name:f}})=>({title:jc.getText(f),value:u.replace("system.user.","")}))],native:n,sx:{...Sr.miniTableSelect,...r},noTranslate:!0,themeType:this.props.themeType,onChange:u=>{const f=JSON.parse(JSON.stringify(s));f[e].user=u,o("whiteListSettings",f)}})}tableInput(e,r){const{native:n,onChange:o}=this.props,{whiteListSettings:a}=n;return e==="default"?C.jsx("span",{style:{marginLeft:10},children:e}):a?C.jsx(cd,{table:!0,value:e,style:r,onChange:s=>{const l=JSON.parse(JSON.stringify(a)),u={};Object.keys(l).forEach(f=>{f===e?u[s]=l[f]:u[f]=l[f]}),jc.validateIp(s)?o("whiteListSettings",u):this.setState({toast:"incorrect_ip"})}}):null}buttonAdd(){const{native:e,onChange:r}=this.props,{whiteListSettings:n}=e;return C.jsx(hr,{color:"primary",onClick:()=>{let o=JSON.parse(JSON.stringify(n)),a=1,s=`${this.ipPrefix}.1`;const l=()=>{Object.keys(o).find(u=>u===s)&&(s=`${this.ipPrefix}.${a}`,a+=1,l())};l(),o={[s]:eet,...o},r("whiteListSettings",o)},children:C.jsx(bX,{})})}buttonRemove(e){const{native:r,onChange:n}=this.props,{whiteListSettings:o}=r;return C.jsx(hr,{color:"primary",onClick:()=>{const a=JSON.parse(JSON.stringify(o));delete a[e],n("whiteListSettings",a)},style:e==="default"?{display:"none"}:void 0,"aria-label":"delete",children:C.jsx(ju,{})})}static validateIp(e){return e.indexOf("*")!==-1&&e.lastIndexOf(".")>e.indexOf("*")?!1:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$|^\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*$/.test(e.replace("*","111"))}renderMobileEntry(e,r){const n=this.props.native.whiteListSettings;return n?C.jsxs(st,{component:"div",sx:je.getStyle(this.props.theme,Sr.card,r%2?Sr.backgroundTheme:null),children:[C.jsxs("div",{style:{width:"100%",lineHeight:"30px",display:"flex",alignItems:"center",flexWrap:"wrap",justifyContent:"center"},children:[C.jsx("div",{children:this.buttonRemove(e)}),C.jsxs("div",{style:{marginLeft:10},children:[C.jsx("span",{children:"IP:"}),this.tableInput(e,{marginTop:-5,minWidth:150,marginLeft:5,verticalAlign:"middle"})]}),C.jsxs("div",{style:{marginLeft:20,whiteSpace:"nowrap"},children:[C.jsxs("span",{children:[z.t("user"),":"]}),this.userSelect(e,{marginTop:"-10px",marginLeft:"5px",verticalAlign:"middle"})]})]}),e!=="default"?["object","state","file"].map((o,a)=>{const s=[...jc.tableHeadArr].splice(a===0?0:4,a===0?4:5);return C.jsxs(j3,{sx:Sr.table,style:{width:"inherit"},children:[C.jsxs(B3,{children:[C.jsx(nc,{children:C.jsx(pn,{sx:l=>({background:l.palette.mode==="dark"?"#333":"#EEE"}),align:"center",colSpan:Object.keys(n[e][o]||{}).length,children:z.t(["object","status","file"][a])})}),C.jsx(nc,{children:s.map((l,u)=>C.jsx(pn,{align:"center",children:z.t(l)},`${l}_${u}_mini`))})]}),C.jsx(L3,{children:C.jsx(nc,{children:Object.keys(n[e][o]||{}).map(l=>C.jsx(pn,{align:"center",children:C.jsx(xr,{table:!0,checked:n[e][o][l],attr:l,native:this.props.native,groupStyle:{alignItems:"center"},style:Sr.checkBoxStyle,onChange:u=>{const f=JSON.parse(JSON.stringify(n));f[e][o][l]=u,this.props.onChange("whiteListSettings",f)}})},`${o}_${l}_mini_check`))})})]},`${a}_mini`)}):null]},`${r}_wrapper`):C.jsx("div",{},`${r}_wrapper`)}renderDesktopTable(){const e=this.props.native.whiteListSettings;return e?C.jsxs(j3,{sx:{...Sr.table,...Sr.maxTable},children:[C.jsxs(B3,{children:[C.jsxs(nc,{children:[C.jsx(pn,{align:"center",rowSpan:2,children:this.buttonAdd()}),C.jsx(pn,{align:"center",rowSpan:2,style:{fontWeight:"bold"},children:"IP"}),C.jsx(pn,{align:"center",rowSpan:2,style:{fontWeight:"bold"},children:z.t("user")}),C.jsx(pn,{align:"center",colSpan:4,style:{fontWeight:"bold"},children:z.t("object")}),C.jsx(pn,{align:"center",colSpan:5,style:{fontWeight:"bold"},children:z.t("status")}),C.jsx(pn,{align:"center",colSpan:5,style:{fontWeight:"bold"},children:z.t("file")})]}),C.jsx(nc,{children:jc.tableHeadArr.map((r,n)=>C.jsx(pn,{align:"center",children:z.t(r)},`${r}_${n}_max`))})]}),C.jsx(L3,{children:Object.keys(e).map((r,n)=>C.jsxs(nc,{children:[C.jsx(pn,{sx:Sr.backgroundTheme,style:{borderBottom:"1px solid #afafaf"},children:this.buttonRemove(r)}),C.jsx(pn,{sx:Sr.backgroundTheme,style:{borderBottom:"1px solid #afafaf",color:r==="default"?"#006ccd":void 0},title:r==="default"?z.t("If no IP address matches, show authentication dialog"):"",children:this.tableInput(r,{marginTop:0,minWidth:150,paddingTop:0})}),C.jsx(pn,{sx:Sr.backgroundTheme,style:{borderBottom:"1px solid #afafaf"},children:this.userSelect(r,{marginTop:-1})}),["object","state","file"].map((o,a)=>Object.keys(e[r][o]||{}).map(s=>C.jsx(pn,{sx:a%2?Sr.backgroundTheme:void 0,style:{borderBottom:a%2?"1px solid #afafaf":void 0,alignItems:"center"},align:"center",children:C.jsx(xr,{table:!0,checked:e[r][o][s],attr:s,native:this.props.native,groupStyle:{alignItems:"center"},style:Sr.checkBoxStyle,onChange:l=>{const u=JSON.parse(JSON.stringify(e));u[r][o][s]=l,this.props.onChange("whiteListSettings",u)}})},`${o}_${s}_max`)))]},`${n}_max`))})]}):C.jsx("div",{})}render(){const{native:e,onChange:r}=this.props,{whiteListSettings:n}=e,{toast:o}=this.state;return C.jsxs("form",{style:Sr.tab,children:[C.jsx(Md,{message:o,onClose:()=>this.setState({toast:""})}),C.jsxs("div",{style:{...Sr.column,...Sr.columnSettings,position:"relative"},children:[C.jsx(xr,{title:"included",attr:"whiteListEnabled",disabled:!!this.props.native.socketio,native:e,onChange:(a,s)=>r(a,s,()=>{s&&!e.whiteListSettings&&r("whiteListSettings",{default:{user:"auth"}})})}),this.props.native.socketio?C.jsx("span",{style:Sr.warning,children:z.t("whitelist_only_with_integrated_socket")}):null,!this.props.native.socketio&&n?C.jsx("div",{style:e.whiteListEnabled?null:Sr.displayNone,children:C.jsxs(kW,{style:{overflowX:"visible"},component:ui,children:[this.renderDesktopTable(),C.jsxs(st,{component:"div",sx:Sr.miniTable,children:[C.jsx(st,{component:"div",sx:Sr.backgroundTheme,style:{position:"sticky",top:-10,left:12,zIndex:22,borderBottom:"1px solid"},children:this.buttonAdd()}),C.jsx("div",{children:Object.keys(n).map((a,s)=>this.renderMobileEntry(a,s))})]})]})}):null]})]})}}const nT={root:{"& > *":{m:"8px"}},input:{display:"none"}};function tet(t){const{title:e,onChange:r}=t,[n,o]=R.useState("");return C.jsxs(st,{component:"div",sx:nT.root,children:[C.jsx("input",{accept:"image/*",style:nT.input||"",id:"contained-button-file",multiple:!0,type:"file",onChange:a=>r(a.target.files?.[0]||a.dataTransfer.files[0],s=>o(s))}),C.jsxs("label",{htmlFor:"contained-button-file",children:[C.jsx(Pt,{variant:"contained",color:"primary",component:"span",children:z.t(e)}),C.jsx(Vt,{variant:"standard",style:{marginLeft:20},value:n})]})]})}const hc={tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnSettings:{width:"calc(100% - 10px)"},dropZone:{mt:"30px",width:600,border:"2px dashed #bbb",borderRadius:"5px",p:"25px",textAlign:"center",fontSize:"20pt",fontWeight:"bold",fontFamily:"Arial",color:"#bbb",minWidth:320,minHeight:200,transition:"background 1s","&:focus":{outline:"inherit"},"@media screen and (max-width: 680px)":{width:"calc(100% - 45px)",minWidth:200,"& img":{width:"100%"}}},dropZoneActive:{background:"#d6d6d69c"},imgStyle:{maxWidth:500,maxHeight:500}};class ret extends R.Component{constructor(e){super(e),this.state={imgSRC:"",toast:""}}componentDidMount(){this.readFile()}readFile(){const{socket:e,instance:r}=this.props;e.getRawSocket().emit("readFile",`web.${r}`,"login-bg.png",(n,o)=>{if(!n&&o){const a=new Uint8Array(o);if(!a.length)this.setState({imgSRC:`../../files/web.${r}/login-bg.png?ts=${Date.now()}`});else{const s=new Blob([a],{type:"image/png"}),u=(window.URL||window.webkitURL).createObjectURL(s);this.setState({imgSRC:u})}}else this.setState({imgSRC:""})})}uploadFile(e,r){const{socket:n,instance:o}=this.props;if(!e)return;if(e.size>5*1024*1024){this.setState({toast:`File ${e.name} is too big. Maximum 5MB`}),this.setState({imgSRC:""}),r&&r("");return}const a=new FileReader;a.onload=s=>{n.getRawSocket().emit("writeFile",`web.${o}`,"login-bg.png",s.target?.result,()=>this.readFile())},r&&r(e.name),a.readAsArrayBuffer(e)}render(){const{native:e,onChange:r}=this.props,{imgSRC:n,toast:o}=this.state;return C.jsxs("form",{style:hc.tab,children:[C.jsx(Md,{message:o,onClose:()=>this.setState({toast:""})}),C.jsxs("div",{style:{...hc.column,...hc.columnSettings},children:[C.jsx("div",{children:C.jsx(cd,{styleComponentBlock:{height:20,display:"flex",justifyContent:"center",alignItems:"center"},component:C.jsx(cd,{attr:"loginBackgroundColorHelper",type:"color",style:{marginTop:-1,marginLeft:10,minWidth:60},native:e,onChange:(a,s)=>r("loginBackgroundColorHelper",s,()=>r("loginBackgroundColor",s)),variant:"outlined",size:"small"}),title:"color",attr:"loginBackgroundColor",style:{marginTop:-1,marginBottom:20},native:e,onChange:(a,s)=>r("loginBackgroundColorHelper",s,()=>r("loginBackgroundColor",s))})}),C.jsx("div",{children:C.jsx(xr,{title:"background_image",attr:"loginBackgroundImage",native:e,onChange:r})}),C.jsxs("div",{style:e.loginBackgroundImage?{display:"block"}:{display:"none"},children:[C.jsx("div",{children:C.jsx(tet,{title:"upload_image",onChange:(a,s)=>this.uploadFile(a,s)})}),C.jsx(Rd,{accept:{"image/*":[]},onDrop:a=>this.uploadFile(a[0]),children:({getRootProps:a,getInputProps:s,isDragActive:l})=>C.jsx("section",{children:C.jsxs(st,{component:"div",sx:{...hc.dropZone,...l?hc.dropZoneActive:void 0},...a(),children:[C.jsx("input",{...s()}),C.jsx("p",{children:z.t("place_the_files_here")}),n?C.jsx("img",{style:hc.imgStyle,src:n,alt:"img"}):null]})})})]})]})]})}}const ma={tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnSettings:{width:"calc(100% - 10px)"},fontSize:{"@media screen and (max-width: 460px)":{"& > *":{fontSize:"3.2vw"}}}},net=[{value:"",label:"System language",translate:!0},{value:"en",label:"English"},{value:"de",label:"Deutsch"},{value:"ru",label:"русский"},{value:"pt",label:"Portugues"},{value:"nl",label:"Nederlands"},{value:"fr",label:"français"},{value:"it",label:"Italiano"},{value:"es",label:"Espanol"},{value:"pl",label:"Polski"},{value:"uk",label:"Українська мова"},{value:"zh-cn",label:"简体中文"}];class oet extends R.Component{render(){const{native:e,onChange:r}=this.props;return C.jsx("form",{style:ma.tab,children:C.jsxs("div",{style:{...ma.column,...ma.columnSettings},children:[C.jsx("h4",{children:z.t("disable_default")}),C.jsx("p",{children:z.t("warning_incorrectly")}),C.jsx("div",{children:C.jsx(xr,{title:"disable_extensions",attr:"disableExtensions",sx:ma.fontSize,native:e,onChange:r})}),C.jsx("div",{children:C.jsx(xr,{title:"disable_states",attr:"disableStates",sx:ma.fontSize,native:e,onChange:r})}),C.jsx("div",{children:C.jsx(xr,{title:"disable_objects",attr:"disableObjects",sx:ma.fontSize,native:e,onChange:r})}),C.jsx("div",{children:C.jsx(xr,{title:"disable_files",attr:"disableFilesObjects",sx:ma.fontSize,native:e,onChange:r})}),e.disableFilesObjects?null:C.jsx("div",{children:C.jsx(xr,{title:"show_folders",attr:"showFolderIndex",sx:ma.fontSize,native:e,onChange:r})}),C.jsx("h4",{children:z.t("Redirect options")}),C.jsx("div",{children:C.jsx(Vt,{variant:"standard",value:e.defaultRedirect||"",onChange:n=>r("defaultRedirect",n.target.value),label:z.t("defaultRedirect"),helperText:z.t("This path will be opened if no path specified")})}),C.jsx("h4",{children:z.t("Cache options")}),C.jsx("div",{children:C.jsx(Vt,{variant:"standard",value:e.staticAssetCacheMaxAge,onChange:n=>r("staticAssetCacheMaxAge",n.target.value),label:z.t("staticAssetCacheMaxAge"),helperText:z.t("in seconds")})}),C.jsx("h4",{children:z.t("Language")}),C.jsx("div",{children:C.jsxs(ya,{variant:"standard",style:{width:250},children:[C.jsx(Iu,{children:z.t("Overload system language")}),C.jsx(Dn,{value:e.language||"",label:z.t("Overload system language"),onChange:n=>r("language",n.target.value),children:net.map(n=>C.jsx(rr,{value:n.value,children:n.translate?z.t(n.label):n.label},n.value))}),C.jsx(bd,{children:z.t("only for this instance")})]})}),C.jsx("div",{children:C.jsx(xr,{title:"show_admin_instances",attr:"showAdminInstances",sx:ma.fontSize,native:e,onChange:r})})]})})}}const Zv={tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top"},columnSettings:{width:"100%"}};let aet=class extends R.Component{lang=z.getLanguage();constructor(e){super(e),this.state={toast:"",groups:null,users:null}}async componentDidMount(){const e=await this.props.socket.getUsers(),r=await this.props.socket.getGroups();this.setState({users:e,groups:r})}render(){const{native:e,onChange:r}=this.props,{userListSettings:n}=e,{toast:o}=this.state;return C.jsxs("form",{style:Zv.tab,children:[C.jsx(Md,{message:o,onClose:()=>this.setState({toast:""})}),C.jsxs("div",{style:{...Zv.column,...Zv.columnSettings,position:"relative"},children:[C.jsx(xr,{title:"included",attr:"userListEnabled",native:e,onChange:(a,s)=>r(a,s,()=>{s&&!e.userListSettings&&r("userListSettings",{accessAsUser:"system.user.admin",users:["system.user.admin"],groups:["system.group.administrator"]})})}),n&&this.state.users?C.jsxs("div",{children:[C.jsxs("div",{children:[z.t("Only following users may access web interface as"),C.jsxs(Dn,{style:{marginLeft:10,marginRight:10},variant:"standard",value:e.userListSettings.accessAsUser||"_",onChange:a=>{const s=JSON.parse(JSON.stringify(e.userListSettings));s.accessAsUser=a.target.value==="_"||!a.target.value?"":a.target.value,r("userListSettings",s)},renderValue:a=>{if(!a||a==="_")return z.t("logged in user");const s=this.state.users?.find(l=>l._id===a);return s?C.jsx(pc,{value:s,lang:this.lang}):a},children:[C.jsx(rr,{value:"_",children:z.t("logged in user")}),this.state.users.map(a=>C.jsx(rr,{value:a._id,children:C.jsx(pc,{value:a,lang:this.lang})},a._id))]}),z.t("after authentication"),":"]}),C.jsxs("div",{style:{display:"flex",width:"100%",maxWidth:1024,flexDirection:"row"},children:[C.jsxs("div",{style:{display:"flex",width:"calc(50% - 20px)",maxWidth:512,flexDirection:"column"},children:[C.jsx("div",{style:{fontSize:24,fontWeight:"bold",marginLeft:8},children:z.t("Groups")}),this.state.groups?.map(a=>C.jsxs(ui,{style:{width:"calc(100% - 40px)",margin:10,padding:10},children:[C.jsxs("div",{style:{display:"flex"},children:[C.jsx(mr,{disabled:a._id==="system.group.administrator",onChange:()=>{const s=JSON.parse(JSON.stringify(e.userListSettings)),l=s.groups.indexOf(a._id);l!==-1?s.groups.splice(l,1):(s.groups.push(a._id),s.groups.sort()),r("userListSettings",s)},checked:e.userListSettings.groups.includes(a._id)}),C.jsx(pc,{value:a,lang:this.lang})]}),C.jsxs("div",{style:{display:"flex",marginLeft:12},children:[C.jsx("span",{style:{marginRight:8},children:z.t("Group members:")}),a.common.members.map(s=>{const l=this.state.users?.find(u=>u._id===s);return l?C.jsx(pc,{value:l,lang:this.lang},s):C.jsx("span",{children:s},s)})]})]},a._id))]}),C.jsxs("div",{style:{display:"flex",width:"calc(50% - 20px)",maxWidth:512,flexDirection:"column"},children:[C.jsx("div",{style:{fontSize:24,fontWeight:"bold",marginLeft:8},children:z.t("Users")}),this.state.users.map(a=>{const s=!!e.userListSettings.groups.find(l=>{const u=this.state.groups?.find(f=>f._id===l);return u&&u.common.members.includes(a._id)});return C.jsxs(ui,{style:{width:"calc(100% - 40px)",margin:10,padding:10},children:[C.jsxs("div",{style:{display:"flex"},children:[C.jsx(mr,{disabled:a._id==="system.user.admin"||s,onChange:()=>{const l=JSON.parse(JSON.stringify(e.userListSettings)),u=l.users.indexOf(a._id);u!==-1?l.users.splice(u,1):(l.users.push(a._id),l.users.sort()),r("userListSettings",l)},checked:e.userListSettings.users.includes(a._id)||s}),C.jsx(pc,{value:a,lang:this.lang})]}),C.jsxs("div",{style:{display:"flex",marginLeft:12},children:[C.jsx("span",{style:{marginRight:8},children:z.t("In groups:")}),this.state.groups?.filter(l=>l.common.members.includes(a._id)).map(l=>C.jsx(pc,{value:l,lang:this.lang},l._id))]})]},a._id)})]})]})]}):null]})]})}};class iet extends R.Component{render(){const{native:e,onChange:r}=this.props;return C.jsxs("div",{style:{width:"100%",minHeight:"100%",display:"flex",alignItems:"flex-start",gap:16,flexDirection:"column"},children:[C.jsx(ut,{control:C.jsx(mr,{checked:!!e.accessControlEnabled,onChange:()=>r("accessControlEnabled",!e.accessControlEnabled),color:"primary"}),label:z.t("custom_cors_settings")}),e.accessControlEnabled?C.jsx(Pt,{variant:"contained",onClick:()=>{r("accessControlAllowOrigin","*",()=>r("accessControlAllowMethods","GET,PUT,POST,DELETE,OPTIONS",()=>r("accessControlAllowHeaders","Content-Type, Authorization, Content-Length, X-Requested-With, *",()=>r("accessControlAllowCredentials",!0,()=>r("accessControlExposeHeaders","",()=>r("accessControlMaxAge",86400))))))},children:z.t("reset_cors_settings")}):null,e.accessControlEnabled?C.jsx(Vt,{fullWidth:!0,variant:"standard",value:e.accessControlAllowOrigin||"",onChange:n=>r("accessControlAllowOrigin",n.target.value),label:"Access-Control-Allow-Origin"}):null,e.accessControlEnabled?C.jsx(Vt,{fullWidth:!0,variant:"standard",value:e.accessControlAllowMethods||"",onChange:n=>r("accessControlAllowMethods",n.target.value),label:"Access-Control-Allow-Methods"}):null,e.accessControlEnabled?C.jsx(Vt,{fullWidth:!0,variant:"standard",value:e.accessControlAllowHeaders||"",onChange:n=>r("accessControlAllowHeaders",n.target.value),label:"Access-Control-Allow-Headers"}):null,e.accessControlEnabled?C.jsx(ut,{control:C.jsx(mr,{checked:!!e.accessControlAllowCredentials,onChange:()=>r("accessControlAllowCredentials",!e.accessControlAllowCredentials),color:"primary"}),label:"Access-Control-Allow-Credentials"}):null,e.accessControlEnabled?C.jsx(Vt,{fullWidth:!0,variant:"standard",value:e.accessControlExposeHeaders||"",onChange:n=>r("accessControlExposeHeaders",n.target.value),label:"Access-Control-Expose-Headers"}):null,e.accessControlEnabled?C.jsx(Vt,{fullWidth:!0,variant:"standard",type:"number",value:e.accessControlMaxAge||"",onChange:n=>r("accessControlMaxAge",n.target.value),label:"Access-Control-Max-Age"}):null]})}}const set="Authentication was deactivated",cet="Cancel",uet="Common",det="Groups",pet="Language",fet="Ok",het="Readable",met="User access list",_et="Users",get="Warning!",yet="Writeable",vet="Advanced",bet="Authentication",wet="Background",xet="Background image",ket="Basic Authentication",Cet="You can enable basic authentication for the web server. It will be enabled additionally to OAuth2 and custom token authentications.",$et="itegrated",Eet="Disable authentication",Tet="Ignore warning",Oet="Cache",Det="Let`s encrypt certificates",Ret="Chained certificate",Met="Background color of the login screen",Aet="Custom CORS settings",Net="Default redirect path",Iet="Disable Default Functions",Pet="Disable extension handling",jet="Do not serve web files from ioBroker storage",zet="Disable objects delivery (/object/)",Let="Disable states and socket info",Fet="Port to check the domain",Bet="Secure (HTTPS)",Wet="file",Uet="Socket.io supports different communication ways: web socket and long-polling. By activating of this flag, you can force socket.io to communicate only via web sockets.",qet="Enabled",Het="The provided IP is not valid",Vet="Legacy authentication method",Get="Web server supports OAuth2 authentication and authentication with custom token in cookie.\\nHere you can say that login page should authenticate with custom cookie (legacy) and not via OAuth2.\\nThat could be required for third party adapters.",Xet="Click for help",Jet="list",Yet="Main settings",Ket="The password will be sent via unsecure connection. To protect your passwords enable the secure connection (HTTPS)!",Zet="none",Qet="OAuth2 Authentication (Beta)",ett="object",ttt="Listen on all IPs",rtt="place the files here",ntt="Port",ott="Private certificate",att="'Public' certificate",itt="Use this instance for automatic update",stt="Set CORS settings to default",ctt="Set certificates or load it first in the system settings (right top).",ltt="Show non-web instances",utt="Show folders content",dtt="Built-in 'Simple-API'",ptt="Socket.IO Instance (Optional): (Used by adapters like rickshaw or vis)",ftt="Cache max age for files",htt="state",mtt="Login timeout (sec)",_tt="create",gtt="read",ytt="Upload image",vtt="Use pure web-sockets (iobroker.ws)",btt="You can select here if socket.io library or native web-sockets will be used for communication. We suggest to activate this flag.",wtt="Use Let's Encrypt certificates",Stt="Use Lets Encrypt staging (for testing/debug. Only for developer)",xtt="User",ktt="Run as",Ctt="Warning: Incorrectly disabling functions use can cause unexpected behaviour.",$tt="Force Web-Sockets",Ett="Access list",Ttt="White list works only with integrated socket-io interface",Ott="write",Dtt={Authentication_deactivated:set,"CORS-settings":"CORS-settings","Cache options":"Cache options",Cancel:cet,Common:uet,"Compatibility mode with socket.io@2.x":"Compatibility mode with socket.io@2.x","Do not check if this instance is available from internet":"Do not check if this instance is available from internet","Group members:":"Group members:",Groups:det,"IP address":"Bound IP address","If no IP address matches, show authentication dialog":"If no IP address matches, show authentication dialog","In groups:":"In groups:",Language:pet,Ok:fet,"Only following users may access web interface as":"Only following users may access web interface as","Overload system language":"Overload system language",Readable:het,"Redirect options":"Redirect options","Same settings must be set in socketio instance":"Same settings must be set in socketio instance","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API is now working as Web-Extension. Please create an instance and make settings there.","System language":"System language","This path will be opened if no path specified":"This path will be opened if no URL path specified","Use %s adapter to get letsencrypt certificates.":"Use %s adapter to get letsencrypt certificates.",UserList:met,Users:_et,Warning:get,"White list will be disabled. Please confirm.":"White list will be disabled. Please confirm.",Writeable:yet,additionally:vet,"after authentication":"after authentication",authentication:bet,background:wet,background_image:xet,basic_authentication:ket,basic_authentication_info:Cet,built_in:$et,button_title:Eet,button_title2:Tet,cache:Oet,certificates:Det,chained_certificate:Ret,color:Met,custom_cors_settings:Aet,defaultRedirect:Net,delete:"delete",disable_default:Iet,disable_extensions:Pet,disable_files:jet,disable_objects:zet,disable_states:Let,domain_name:Fet,encryption:Bet,file:Wet,forceWebSockets_info:Uet,"in seconds":"in seconds",included:qet,incorrect_ip:Het,legacy_authentication:Vet,legacy_authentication_info:Get,link:Xet,list:Jet,"logged in user":"logged in user",main_settings:Yet,modal_title:Ket,nothing:Zet,oauth2_authentication:Qet,object:ett,"only for this instance":"only for this instance",open_ip:ttt,place_the_files_here:rtt,port:ntt,private_certificate:ott,public_certificate:att,renew_certificates:itt,reset_cors_settings:stt,set_certificates:ctt,show_admin_instances:ltt,show_folders:utt,simple_api:dtt,socket:ptt,staticAssetCacheMaxAge:ftt,status:htt,time_out:mtt,to_create:_tt,to_read:gtt,upload_image:ytt,usePureWebSockets:vtt,usePureWebSockets_info:btt,use_certificates:wtt,use_lets:Stt,user:xtt,users:ktt,warning_incorrectly:Ctt,web_sockets:$tt,whiteList:Ett,whitelist_only_with_integrated_socket:Ttt,write:Ott},Rtt="Die Authentifizierung wurde deaktiviert",Mtt="Abbrechen",Att="Allgemein",Ntt="Gruppen",Itt="Sprache",Ptt="Ok",jtt="Lesbar",ztt="Benutzerzugriffsliste",Ltt="Benutzer",Ftt="Warnung!",Btt="Beschreibbar",Wtt="Extra",Utt="Authentifikation",qtt="Hintergrund",Htt="Hintergrundbild",Vtt="Basic-Authentifizierung",Gtt="Sie können die Basic-Authentifizierung für den Webserver aktivieren. Sie wird zusätzlich zu OAuth2 und benutzerdefinierten Token-Authentifizierungen aktiviert.",Xtt="integriert",Jtt="Authentifizierung deaktivieren",Ytt="Warnung ignorieren",Ktt="Cache",Ztt="Let's Encrypt Zertifikate",Qtt="Verkettetes Zertifikat",ert="Hintergrundfarbe des Anmeldebildschirms",trt="Benutzerdefinierte CORS-Einstellungen",rrt="Standardweiterleitungspfad",nrt="Standardfunktionen deaktivieren",ort="Erweiterungsbehandlung deaktivieren",art="Webdateien aus dem ioBroker-Speicherbereich nicht bereitstellen",irt="Objektzustellung deaktivieren (/object/)",srt="Zustände und Socket Informationen deaktivieren",crt="Port um die Domain zu prüfen",lrt="Verschlüsselte Verbindung (HTTPS)",urt="Datei",drt="Socket.io unterstützt verschiedene Kommunikationswege: Websocket und Long-Polling. Durch Aktivieren dieses Flags können Sie socket.io zwingen, nur über Websockets zu kommunizieren.",prt="Aktiviert",frt="Die angegebene IP-Adresse ist ungültig",hrt="Ältere Authentifizierungsmethode",mrt="Der Webserver unterstützt OAuth2-Authentifizierung und Authentifizierung mit benutzerdefiniertem Token im Cookie.\\nHier können Sie angeben, dass die Anmeldeseite mit einem benutzerdefinierten Cookie (Legacy) und nicht über OAuth2 authentifiziert werden soll.\\nDies kann für Adapter von Drittanbietern erforderlich sein.",_rt="Anklicken für Hilfe",grt="auflisten",yrt="Allgemeine Einstellungen",vrt="Das Passwort wird über unsichere Verbindung gesendet. Um Ihre Passwörter zu schützen, aktivieren Sie die sichere HTTPS Verbindung!",brt="keins",wrt="OAuth2-Authentifizierung (Beta)",Srt="Objekt",xrt="Zugriff von allen IPs zulassen",krt="Dateien hier platzieren",Crt="Port",$rt="Privates Zertifikat",Ert="Öffentliches Zertifikat",Trt="Diese Instanz für automatische Updates verwenden",Ort="CORS-Einstellungen auf Standard zurücksetzen",Drt="Zertifikate wählen bzw. Zertifikate in den Systemeinstellungen (oben rechts) hinterlegen.",Rrt="Nicht-Web-Instanzen anzeigen",Mrt="Ordnerinhalt anzeigen",Art="Eingebautes 'Simple-API'",Nrt="socket.io Instanz (Optional): (Wird von Rickshaw oder Vis benutzt)",Irt="Cache-Maximalalter für Dateien",Prt="Zustand",jrt="Anmelde Timeout (Sek.)",zrt="erstellen",Lrt="lesen",Frt="Bild hochladen",Brt="Reine Web-Sockets (iobroker.ws) verwenden",Wrt="Sie können hier auswählen, ob die socket.io-Bibliothek oder native Web-Sockets für die Kommunikation verwendet werden. Wir empfehlen, dieses Flag zu aktivieren.",Urt="Let's Encrypt Zertifikate verwenden",qrt="Lets Encrypt Staging verwenden (nur zum Testen oder Debuggen. Nur für Entwickler)",Hrt="Benutzer",Vrt="Ausführen als",Grt="Warnung: Das fehlerhafte Deaktivieren von Funktionen kann zu unerwartetem Verhalten führen.",Xrt="Web-Sockets erzwingen",Jrt="Zugangsliste",Yrt="Whitelist funktioniert nur mit integrierter Socket-io-Schnittstelle",Krt="schreiben",Zrt={Authentication_deactivated:Rtt,"CORS-settings":"CORS-Einstellungen","Cache options":"Cache-Optionen",Cancel:Mtt,Common:Att,"Compatibility mode with socket.io@2.x":"Kompatibilitätsmodus mit socket.io@2.x","Do not check if this instance is available from internet":"Nicht überprüfen, ob diese Instanz im Internet verfügbar ist","Group members:":"Gruppenmitglieder:",Groups:Ntt,"IP address":"Gebundene IP-Adresse","If no IP address matches, show authentication dialog":"Wenn keine IP-Adresse übereinstimmt, Authentifizierungsdialog anzeigen","In groups:":"In Gruppen:",Language:Itt,Ok:Ptt,"Only following users may access web interface as":"Nur folgende Benutzer dürfen auf die Weboberfläche zugreifen als","Overload system language":"Systemsprache überladen",Readable:jtt,"Redirect options":"Weiterleitungsoptionen","Same settings must be set in socketio instance":"Dieselben Einstellungen müssen in der Socketio-Instanz festgelegt werden","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API funktioniert nun als Web-Extension. Bitte erstellen Sie eine Instanz und nehmen Sie dort Einstellungen vor.","System language":"Systemsprache","This path will be opened if no path specified":"Dieser Pfad wird geöffnet, wenn kein URL-Pfad angegeben ist","Use %s adapter to get letsencrypt certificates.":"Verwenden Sie den %s-Adapter, um letsencrypt-Zertifikate zu erhalten.",UserList:ztt,Users:Ltt,Warning:Ftt,"White list will be disabled. Please confirm.":"Weiße Liste wird deaktiviert. Bitte bestätigen.",Writeable:Btt,additionally:Wtt,"after authentication":"nach der Authentifizierung",authentication:Utt,background:qtt,background_image:Htt,basic_authentication:Vtt,basic_authentication_info:Gtt,built_in:Xtt,button_title:Jtt,button_title2:Ytt,cache:Ktt,certificates:Ztt,chained_certificate:Qtt,color:ert,custom_cors_settings:trt,defaultRedirect:rrt,delete:"Löschen",disable_default:nrt,disable_extensions:ort,disable_files:art,disable_objects:irt,disable_states:srt,domain_name:crt,encryption:lrt,file:urt,forceWebSockets_info:drt,"in seconds":"in Sekunden",included:prt,incorrect_ip:frt,legacy_authentication:hrt,legacy_authentication_info:mrt,link:_rt,list:grt,"logged in user":"Angemeldeter Benutzer",main_settings:yrt,modal_title:vrt,nothing:brt,oauth2_authentication:wrt,object:Srt,"only for this instance":"nur für diese Instanz",open_ip:xrt,place_the_files_here:krt,port:Crt,private_certificate:$rt,public_certificate:Ert,renew_certificates:Trt,reset_cors_settings:Ort,set_certificates:Drt,show_admin_instances:Rrt,show_folders:Mrt,simple_api:Art,socket:Nrt,staticAssetCacheMaxAge:Irt,status:Prt,time_out:jrt,to_create:zrt,to_read:Lrt,upload_image:Frt,usePureWebSockets:Brt,usePureWebSockets_info:Wrt,use_certificates:Urt,use_lets:qrt,user:Hrt,users:Vrt,warning_incorrectly:Grt,web_sockets:Xrt,whiteList:Jrt,whitelist_only_with_integrated_socket:Yrt,write:Krt},Qrt="Аутентификация была отключена",ent="Отмена",tnt="Основные",rnt="Группы",nnt="Язык",ont="Ok",ant="Читабельно",int="Список доступа пользователей",snt="Пользователи",cnt="Внимание!",lnt="Записываемый",unt="Дополнительно",dnt="Аутентификация",pnt="Фон",fnt="Фоновое изображение",hnt="Basic-Аутентификация",mnt="Вы можете включить Basic-аутентификацию для веб-сервера. Она будет включена дополнительно к OAuth2 и пользовательским токенам аутентификации.",_nt="встроенный",gnt="Отключить аутентификацию",ynt="Игнорировать предупреждение",vnt="Кэш",bnt="Let`s encrypt сертификаты",wnt="'Chained' сертификат",Snt="Цвет фона экрана входа в систему",xnt="Пользовательские настройки CORS",knt="Путь перенаправления по умолчанию",Cnt="Отключить функции по умолчанию",$nt="Отключить обработку расширений",Ent="Не обслуживать веб-файлы из objectDB",Tnt="Отключить доставку объектов (/object/)",Ont="Отключить состояния и информацию о сокете",Dnt="Порт для проверки доменного имени",Rnt="Шифрование (HTTPS)",Mnt="файл",Ant="Socket.io поддерживает различные способы связи: веб-сокет и long-polling. Активируя этот флаг, вы можете заставить socket.io общаться только через веб-сокеты.",Nnt="Включено",Int="Неверный IP-адрес",Pnt="Устаревший метод аутентификации",jnt="Веб-сервер поддерживает аутентификацию OAuth2 и аутентификацию с помощью пользовательского токена в cookie.\\nЗдесь можно указать, что страница входа должна проходить аутентификацию с помощью пользовательского cookie (устаревшего), а не через OAuth2.\\nЭто может потребоваться для сторонних адаптеров.",znt="Перейти по ссылке",Lnt="список",Fnt="Основные настройки",Bnt="Пароль будет отправлен через незащищенное соединение. Для защиты ваших паролей активируйте безопасное соединение (HTTPS)!",Wnt="ничего",Unt="Аутентификация OAuth2 (бета-версия)",qnt="объект",Hnt="Открыть для всех IP адресов",Vnt="переместите файлы сюда",Gnt="Порт",Xnt="'Private' сертификат",Jnt="'Public' сертификат",Ynt="Обновлять сертификаты в этом экземпляре",Knt="Установить настройки CORS по умолчанию",Znt="Нужно выбрать сертификаты или сначала загрузить их в системных настройках.",Qnt="Показать не веб-примеры",eot="Показать содержимое папок",tot="Встроенный 'Simple-API'",rot="Socket.IO экземпляр (опционально): (Используется для Rickshaw или Vis)",not="Максимальный возраст кэша для файлов",oot="статус",aot="Тайм-аут входа (сек)",iot="создать",sot="читать",cot="Загрузить изображение",lot="Использовать чистые веб-сокеты (iobroker.ws)",uot="Здесь вы можете выбрать, будет ли использоваться библиотека socket.io или собственные веб-сокеты для связи. Мы рекомендуем активировать этот флаг.",dot="Использовать сертификаты Let`s Encrypt",pot="Используйте Lets Encrypt staging (для тестирования/отладки. Только для разработчиков)",fot="Пользователь",hot="Запустить от пользователя",mot="Внимание: неправильное отключение использования функций может вызвать непредвиденное поведение.",_ot="Только Web-Sockets",got="Список доступа",yot="Белый список работает только со встроенным интерфейсом socket-io",vot="писать",bot={Authentication_deactivated:Qrt,"CORS-settings":"CORS-настройки","Cache options":"Параметры кэша",Cancel:ent,Common:tnt,"Compatibility mode with socket.io@2.x":"Режим совместимости с socket.io@2.x","Do not check if this instance is available from internet":"Не проверять, доступен ли этот экземпляр из Интернета","Group members:":"Участники группы:",Groups:rnt,"IP address":"Связанный IP-адрес","If no IP address matches, show authentication dialog":"Если нет совпадений IP-адресов, показать диалоговое окно аутентификации","In groups:":"В группах:",Language:nnt,Ok:ont,"Only following users may access web interface as":"Только следующие пользователи могут получить доступ к веб-интерфейсу, как","Overload system language":"Перегрузить системный язык",Readable:ant,"Redirect options":"Варианты перенаправления","Same settings must be set in socketio instance":"Те же настройки должны быть установлены в экземпляре socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API теперь работает как Web-Extension. Пожалуйста, создайте экземпляр и сделайте настройки там.","System language":"Язык системы","This path will be opened if no path specified":"Этот путь будет открыт, если не указан URL-путь","Use %s adapter to get letsencrypt certificates.":"Используйте адаптер %s для получения сертификатов letsencrypt.",UserList:int,Users:snt,Warning:cnt,"White list will be disabled. Please confirm.":"Белый список будет отключен. Пожалуйста подтвердите.",Writeable:lnt,additionally:unt,"after authentication":"после аутентификации",authentication:dnt,background:pnt,background_image:fnt,basic_authentication:hnt,basic_authentication_info:mnt,built_in:_nt,button_title:gnt,button_title2:ynt,cache:vnt,certificates:bnt,chained_certificate:wnt,color:Snt,custom_cors_settings:xnt,defaultRedirect:knt,delete:"удалить",disable_default:Cnt,disable_extensions:$nt,disable_files:Ent,disable_objects:Tnt,disable_states:Ont,domain_name:Dnt,encryption:Rnt,file:Mnt,forceWebSockets_info:Ant,"in seconds":"в секундах",included:Nnt,incorrect_ip:Int,legacy_authentication:Pnt,legacy_authentication_info:jnt,link:znt,list:Lnt,"logged in user":"вошедший в систему пользователь",main_settings:Fnt,modal_title:Bnt,nothing:Wnt,oauth2_authentication:Unt,object:qnt,"only for this instance":"только для этого экземпляра",open_ip:Hnt,place_the_files_here:Vnt,port:Gnt,private_certificate:Xnt,public_certificate:Jnt,renew_certificates:Ynt,reset_cors_settings:Knt,set_certificates:Znt,show_admin_instances:Qnt,show_folders:eot,simple_api:tot,socket:rot,staticAssetCacheMaxAge:not,status:oot,time_out:aot,to_create:iot,to_read:sot,upload_image:cot,usePureWebSockets:lot,usePureWebSockets_info:uot,use_certificates:dot,use_lets:pot,user:fot,users:hot,warning_incorrectly:mot,web_sockets:_ot,whiteList:got,whitelist_only_with_integrated_socket:yot,write:vot},wot="A autenticação foi desativada",Sot="Cancelar",xot="Comum",kot="Grupos",Cot="Linguagem",$ot="OK",Eot="Legível",Tot="Lista de acesso do usuário",Oot="Usuários",Dot="Atenção!",Rot="Gravável",Mot="Avançado",Aot="Autenticação",Not="Fundo",Iot="Imagem de fundo",Pot="Autenticação Básica",jot="Você pode habilitar a autenticação Basic para o servidor web. Ela será habilitada adicionalmente para OAuth2 e autenticações de token personalizadas.",zot="integrado",Lot="Desativar autenticação",Fot="Ignorar aviso",Bot="Cache",Wot="Let's Encrypt Certificados",Uot="Certificado acorrentado",qot="Cor de fundo da tela de login",Hot="Configurações CORS personalizadas",Vot="Caminho de redirecionamento padrão",Got="Desativar funções padrão",Xot="Desative o manuseio de extensões",Jot="Não veicular arquivos da web de objectDB",Yot="Desativar entrega de objetos (/object/)",Kot="Desative estados e informações de soquete",Zot="Porta para verificar o domínio",Qot="Seguro (HTTPS)",eat="Arquivo",tat="Socket.io suporta diferentes formas de comunicação: web socket e long-polling. Ao ativar este sinalizador, você pode forçar o socket.io a se comunicar somente via web sockets.",rat="Ativado",nat="O IP fornecido não é válido",oat="Método de autenticação legado",aat="O servidor web suporta autenticação OAuth2 e autenticação com token personalizado no cookie.\\nAqui você pode dizer que a página de login deve ser autenticada com cookie personalizado (legado) e não via OAuth2.\\nIsso pode ser necessário para adaptadores de terceiros.",iat="Clique para ajuda",sat="Lista",cat="Configurações principais",lat="A senha será enviada por meio de conexão não segura. Para proteger suas senhas, ative a conexão segura (HTTPS)!",uat="ninguna",dat="Autenticação OAuth2 (Beta)",pat="objeto",fat="Ouça todos os IPs",hat="coloque os arquivos aqui",mat="Porta",_at="Certificado privado",gat="Certificado público",yat="Use esta instância para atualização automática",vat="Definir as configurações do CORS para o padrão",bat="Defina certificados ou carregue primeiro nas configurações do sistema (parte superior direita).",wat="Mostrar instâncias não-web",Sat="Mostrar o conteúdo das pastas",xat="Build-in 'Simple-API'",kat="Socket.IO Instance (Optional): (Usado por adaptadores como rickshaw ou vis)",Cat="Idade máxima do cache para arquivos",$at="Estado",Eat="Tempo limite de login (seg)",Tat="crio",Oat="ler",Dat="Enviar Imagem",Rat="Use web-sockets puros (iobroker.ws)",Mat="Você pode selecionar aqui se a biblioteca socket.io ou web-sockets nativos serão usados para comunicação. Sugerimos ativar este sinalizador.",Aat="Use Vamos criptografar certificados",Nat="Use o teste Lets Encrypt (para teste)",Iat="Do utilizador",Pat="Correr como",jat="Aviso: A desativação incorreta do uso de funções pode causar um comportamento inesperado.",zat="Forçar Web-Sockets",Lat="Lista de acesso",Fat="A lista branca funciona apenas com interface socket-io integrada",Bat="wrire",Wat={Authentication_deactivated:wot,"CORS-settings":"Configurações CORS","Cache options":"Opções de cache",Cancel:Sot,Common:xot,"Compatibility mode with socket.io@2.x":"Modo de compatibilidade com socket.io@2.x","Do not check if this instance is available from internet":"Não verifique se esta instância está disponível na Internet","Group members:":"Membros do grupo:",Groups:kot,"IP address":"Endereço IP vinculado","If no IP address matches, show authentication dialog":"Se nenhum endereço IP corresponder, mostre a caixa de diálogo de autenticação","In groups:":"Em grupos:",Language:Cot,Ok:$ot,"Only following users may access web interface as":"Somente os seguintes usuários podem acessar a interface web como","Overload system language":"Sobrecarregar o idioma do sistema",Readable:Eot,"Redirect options":"Opções de redirecionamento","Same settings must be set in socketio instance":"As mesmas configurações devem ser definidas na instância socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"A API Simple agora está funcionando como Web-Extension. Crie uma instância e faça as configurações lá.","System language":"Idioma do sistema","This path will be opened if no path specified":"Este caminho será aberto se nenhum caminho de URL for especificado","Use %s adapter to get letsencrypt certificates.":"Use o adaptador %s para obter certificados letsencrypt.",UserList:Tot,Users:Oot,Warning:Dot,"White list will be disabled. Please confirm.":"A lista branca será desativada. Por favor confirme.",Writeable:Rot,additionally:Mot,"after authentication":"após autenticação",authentication:Aot,background:Not,background_image:Iot,basic_authentication:Pot,basic_authentication_info:jot,built_in:zot,button_title:Lot,button_title2:Fot,cache:Bot,certificates:Wot,chained_certificate:Uot,color:qot,custom_cors_settings:Hot,defaultRedirect:Vot,delete:"excluir",disable_default:Got,disable_extensions:Xot,disable_files:Jot,disable_objects:Yot,disable_states:Kot,domain_name:Zot,encryption:Qot,file:eat,forceWebSockets_info:tat,"in seconds":"em segundos",included:rat,incorrect_ip:nat,legacy_authentication:oat,legacy_authentication_info:aat,link:iat,list:sat,"logged in user":"usuário logado",main_settings:cat,modal_title:lat,nothing:uat,oauth2_authentication:dat,object:pat,"only for this instance":"apenas para esta instância",open_ip:fat,place_the_files_here:hat,port:mat,private_certificate:_at,public_certificate:gat,renew_certificates:yat,reset_cors_settings:vat,set_certificates:bat,show_admin_instances:wat,show_folders:Sat,simple_api:xat,socket:kat,staticAssetCacheMaxAge:Cat,status:$at,time_out:Eat,to_create:Tat,to_read:Oat,upload_image:Dat,usePureWebSockets:Rat,usePureWebSockets_info:Mat,use_certificates:Aat,use_lets:Nat,user:Iat,users:Pat,warning_incorrectly:jat,web_sockets:zat,whiteList:Lat,whitelist_only_with_integrated_socket:Fat,write:Bat},Uat="Verificatie was gedeactiveerd",qat="Annuleren",Hat="Gewoon",Vat="Groepen",Gat="Taal",Xat="OK",Jat="Leesbaar",Yat="Lijst met gebruikerstoegang",Kat="Gebruikers",Zat="Waarschuwing!",Qat="Beschrijfbaar",eit="Geavanceerd",tit="Authenticatie",rit="Achtergrond",nit="Achtergrond afbeelding",oit="Basisverificatie",ait="U kunt basic-authenticatie voor de webserver inschakelen. Dit wordt aanvullend op OAuth2 en aangepaste tokenauthenticaties ingeschakeld.",iit="geïntegreerde",sit="Schakel verificatie uit",cit="Negeer waarschuwing",lit="Cache",uit="Let's Encrypt certificaten",dit="Geketend certificaat",pit="Achtergrondkleur van het inlogscherm",fit="Aangepaste CORS-instellingen",hit="Standaard omleidingspad",mit="Schakel standaardfuncties uit",_it="Verwerking van extensies uitschakelen",git="Serveer geen webbestanden vanuit objectDB",yit="Bezorging van objecten uitschakelen (/object/)",vit="Schakel statussen en socketinformatie uit",bit="Poort om het domein te controleren",wit="Secure (HTTPS)",Sit="het dossier",xit="Socket.io ondersteunt verschillende communicatiemethoden: web socket en long-polling. Door deze vlag te activeren, kunt u socket.io dwingen om alleen via web sockets te communiceren.",kit="Ingeschakeld",Cit="Het opgegeven IP-adres is niet geldig",$it="Oude authenticatiemethode",Eit="De webserver ondersteunt OAuth2-authenticatie en authenticatie met een aangepast token in een cookie.\\nHier kunt u aangeven dat de inlogpagina moet authenticeren met een aangepast cookie (verouderd) en niet via OAuth2.\\nDat kan vereist zijn voor adapters van derden.",Tit="Klik voor hulp",Oit="lijst",Dit="Belangrijkste instellingen",Rit="Het wachtwoord wordt verzonden via onbeveiligde verbinding. Ter beveiliging van uw wachtwoorden schakelt u de beveiligde verbinding (HTTPS) in!",Mit="geen",Ait="OAuth2-authenticatie (bèta)",Nit="voorwerp",Iit="Luister op alle IP's",Pit="plaats de bestanden hier",jit="Haven",zit="Privé certificaat",Lit="Openbaar certificaat",Fit="Gebruik deze instantie voor automatische update",Bit="CORS-instellingen instellen op standaard",Wit="Stel certificaten in of laad het eerst in de systeeminstellingen (rechtsboven).",Uit="Niet-webinstanties weergeven",qit="Inhoud van mappen weergeven",Hit="Ingebouwde 'Simple-API'",Vit="Socket.IO Instance (Optional): (Gebruikt door adapters zoals riksja of vis)",Git="Cache max leeftijd voor bestanden",Xit="staat",Jit="Aanmeld-time-out (sec)",Yit="creëren",Kit="lezen",Zit="Afbeelding uploaden",Qit="Gebruik pure web-sockets (iobroker.ws)",est="U kunt hier selecteren of socket.io-bibliotheek of native web-sockets worden gebruikt voor communicatie. Wij raden aan om deze vlag te activeren.",tst="Gebruik Let's Encrypt-certificaten",rst="Gebruik Lets Encrypt enscenering (voor testen)",nst="Gebruiker",ost="Rennen als",ast="Waarschuwing: het onjuist uitschakelen van het gebruik van functies kan onverwacht gedrag veroorzaken.",ist="Force Web-Sockets",sst="Toegangslijst",cst="Witte lijst werkt alleen met geïntegreerde socket-io-interface",lst="wrire",ust={Authentication_deactivated:Uat,"CORS-settings":"CORS-instellingen","Cache options":"Cache-opties",Cancel:qat,Common:Hat,"Compatibility mode with socket.io@2.x":"Compatibiliteitsmodus met socket.io@2.x","Do not check if this instance is available from internet":"Controleer niet of dit exemplaar beschikbaar is via internet","Group members:":"Groepsleden:",Groups:Vat,"IP address":"Gebonden IP-adres","If no IP address matches, show authentication dialog":"Als geen IP-adres overeenkomt, verificatiedialoogvenster weergeven","In groups:":"In groepen:",Language:Gat,Ok:Xat,"Only following users may access web interface as":"Alleen de volgende gebruikers hebben toegang tot de webinterface als","Overload system language":"Systeemtaal overbelasten",Readable:Jat,"Redirect options":"Omleidingsopties","Same settings must be set in socketio instance":"Dezelfde instellingen moeten worden ingesteld in de socketio-instantie","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API werkt nu als Web-Extension. Maak een instance en voer daar instellingen uit.","System language":"Systeemtaal","This path will be opened if no path specified":"Dit pad wordt geopend als er geen URL-pad is opgegeven","Use %s adapter to get letsencrypt certificates.":"Gebruik %s adapter om letsencrypt-certificaten te verkrijgen.",UserList:Yat,Users:Kat,Warning:Zat,"White list will be disabled. Please confirm.":"Witte lijst wordt uitgeschakeld. Bevestig alstublieft.",Writeable:Qat,additionally:eit,"after authentication":"na authenticatie",authentication:tit,background:rit,background_image:nit,basic_authentication:oit,basic_authentication_info:ait,built_in:iit,button_title:sit,button_title2:cit,cache:lit,certificates:uit,chained_certificate:dit,color:pit,custom_cors_settings:fit,defaultRedirect:hit,delete:"verwijderen",disable_default:mit,disable_extensions:_it,disable_files:git,disable_objects:yit,disable_states:vit,domain_name:bit,encryption:wit,file:Sit,forceWebSockets_info:xit,"in seconds":"in seconden",included:kit,incorrect_ip:Cit,legacy_authentication:$it,legacy_authentication_info:Eit,link:Tit,list:Oit,"logged in user":"ingelogde gebruiker",main_settings:Dit,modal_title:Rit,nothing:Mit,oauth2_authentication:Ait,object:Nit,"only for this instance":"alleen voor dit geval",open_ip:Iit,place_the_files_here:Pit,port:jit,private_certificate:zit,public_certificate:Lit,renew_certificates:Fit,reset_cors_settings:Bit,set_certificates:Wit,show_admin_instances:Uit,show_folders:qit,simple_api:Hit,socket:Vit,staticAssetCacheMaxAge:Git,status:Xit,time_out:Jit,to_create:Yit,to_read:Kit,upload_image:Zit,usePureWebSockets:Qit,usePureWebSockets_info:est,use_certificates:tst,use_lets:rst,user:nst,users:ost,warning_incorrectly:ast,web_sockets:ist,whiteList:sst,whitelist_only_with_integrated_socket:cst,write:lst},dst="L'authentification a été désactivée",pst="Annuler",fst="Commun",hst="Groupes",mst="Langue",_st="D'accord",gst="Lisible",yst="Liste d'accès des utilisateurs",vst="Utilisateurs",bst="Attention!",wst="Inscriptible",Sst="Avancée",xst="Authentification",kst="Contexte",Cst="Image de fond",$st="Authentification de base",Est="Vous pouvez activer l'authentification de Basic pour le serveur Web. Elle sera activée en plus des authentifications OAuth2 et des jetons personnalisés.",Tst="intégré",Ost="Désactiver l'authentification",Dst="Ignorer l'avertissement",Rst="Cache",Mst="Let's Encrypt Certificats",Ast="Certificat chaîné",Nst="Couleur d'arrière-plan de l'écran de connexion",Ist="Paramètres CORS personnalisés",Pst="Chemin de redirection par défaut",jst="Désactiver les fonctions par défaut",zst="Désactivez la gestion des extensions",Lst="Ne diffusez pas de fichiers Web depuis objectDB",Fst="Désactiver la livraison des objets (/object/)",Bst="Désactivez les états et les informations de socket",Wst="Port pour vérifier le domaine",Ust="Sécurisé (HTTPS)",qst="fichier",Hst="Socket.io prend en charge différents modes de communication : socket Web et interrogation longue. En activant cette option, vous pouvez forcer socket.io à communiquer uniquement via des sockets Web.",Vst="Activée",Gst="L'adresse IP fournie n'est pas valide",Xst="Méthode d'authentification héritée",Jst="Le serveur Web prend en charge l'authentification OAuth2 et l'authentification avec un jeton personnalisé dans le cookie.\\nIci, vous pouvez dire que la page de connexion doit s'authentifier avec un cookie personnalisé (hérité) et non via OAuth2.\\nCela peut être nécessaire pour les adaptateurs tiers.",Yst="Cliquez pour obtenir de l'aide",Kst="liste",Zst="Réglages principaux",Qst="Le mot de passe sera envoyé via une connexion non sécurisée. Pour protéger vos mots de passe, activez la connexion sécurisée (HTTPS)!",ect="aucun",tct="Authentification OAuth2 (version bêta)",rct="objet",nct="Écoutez sur toutes les adresses IP",oct="Placez les fichiers ici",act="Port",ict="Certificat privé",sct="Certificat public",cct="Utilisez cette instance pour la mise à jour automatique",lct="Définir les paramètres CORS par défaut",uct="Définissez des certificats ou chargez-les d'abord dans les paramètres du système (en haut à droite).",dct="Afficher les instances non Web",pct="Afficher le contenu des dossiers",fct="Construire 'Simple-API'",hct="Socket.IO Instance (Optional): (Utilisé par des adaptateurs comme le pousse-pousse ou vis)",mct="Âge maximum du cache pour les fichiers",_ct="Etat",gct="Délai d'attente de connexion (sec)",yct="créer",vct="lis",bct="Importer une image",wct="Utilisez des sockets Web purs (iobroker.ws)",Sct="Vous pouvez sélectionner ici si la bibliothèque socket.io ou les sockets Web natifs seront utilisés pour la communication. Nous vous suggérons d'activer cette option.",xct="Utiliser les certificats Let's Encrypt",kct="Utiliser la mise en scène Lets Encrypt (pour les tests)",Cct="Utilisateur",$ct="Courir comme",Ect="Avertissement: la désactivation incorrecte de l'utilisation des fonctions peut provoquer un comportement inattendu.",Tct="Forcer les Web-Sockets",Oct="Liste d'accès",Dct="La liste blanche ne fonctionne qu'avec l'interface socket-io intégrée",Rct="écrire",Mct={Authentication_deactivated:dst,"CORS-settings":"Paramètres CORS","Cache options":"Options de cache",Cancel:pst,Common:fst,"Compatibility mode with socket.io@2.x":"Mode de compatibilité avec socket.io@2.x","Do not check if this instance is available from internet":"Ne vérifiez pas si cette instance est disponible sur Internet","Group members:":"Les membres du groupe:",Groups:hst,"IP address":"Adresse IP liée","If no IP address matches, show authentication dialog":"Si aucune adresse IP ne correspond, affichez la boîte de dialogue d'authentification","In groups:":"En groupes:",Language:mst,Ok:_st,"Only following users may access web interface as":"Seuls les utilisateurs suivants peuvent accéder à l'interface Web en tant que","Overload system language":"Surcharger la langue du système",Readable:gst,"Redirect options":"Options de redirection","Same settings must be set in socketio instance":"Les mêmes paramètres doivent être définis dans l'instance socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"L'API simple fonctionne désormais comme une extension Web. Veuillez créer une instance et y effectuer les réglages.","System language":"Langue du système","This path will be opened if no path specified":"Ce chemin sera ouvert si aucun chemin URL spécifié","Use %s adapter to get letsencrypt certificates.":"Utilisez l'adaptateur %s pour obtenir les certificats Letsencrypt.",UserList:yst,Users:vst,Warning:bst,"White list will be disabled. Please confirm.":"La liste blanche sera désactivée. Veuillez confirmer.",Writeable:wst,additionally:Sst,"after authentication":"après authentification",authentication:xst,background:kst,background_image:Cst,basic_authentication:$st,basic_authentication_info:Est,built_in:Tst,button_title:Ost,button_title2:Dst,cache:Rst,certificates:Mst,chained_certificate:Ast,color:Nst,custom_cors_settings:Ist,defaultRedirect:Pst,delete:"effacer",disable_default:jst,disable_extensions:zst,disable_files:Lst,disable_objects:Fst,disable_states:Bst,domain_name:Wst,encryption:Ust,file:qst,forceWebSockets_info:Hst,"in seconds":"en secondes",included:Vst,incorrect_ip:Gst,legacy_authentication:Xst,legacy_authentication_info:Jst,link:Yst,list:Kst,"logged in user":"utilisateur connecté",main_settings:Zst,modal_title:Qst,nothing:ect,oauth2_authentication:tct,object:rct,"only for this instance":"uniquement pour ce cas",open_ip:nct,place_the_files_here:oct,port:act,private_certificate:ict,public_certificate:sct,renew_certificates:cct,reset_cors_settings:lct,set_certificates:uct,show_admin_instances:dct,show_folders:pct,simple_api:fct,socket:hct,staticAssetCacheMaxAge:mct,status:_ct,time_out:gct,to_create:yct,to_read:vct,upload_image:bct,usePureWebSockets:wct,usePureWebSockets_info:Sct,use_certificates:xct,use_lets:kct,user:Cct,users:$ct,warning_incorrectly:Ect,web_sockets:Tct,whiteList:Oct,whitelist_only_with_integrated_socket:Dct,write:Rct},Act="L'autenticazione è stata disattivata",Nct="Annulla",Ict="Comune",Pct="Gruppi",jct="Lingua",zct="Ok",Lct="Leggibile",Fct="Elenco di accesso degli utenti",Bct="Utenti",Wct="Avvertimento!",Uct="Scrivibile",qct="Avanzate",Hct="Autenticazione",Vct="Sfondo",Gct="Immagine di sfondo",Xct="Autenticazione di base",Jct="Puoi abilitare l'autenticazione di Basic per il server web. Sarà abilitata in aggiunta alle autenticazioni OAuth2 e token personalizzate.",Yct="integrato",Kct="Disabilitare l'autenticazione",Zct="Ignora l'avviso",Qct="nascondiglio",elt="Let's Encrypt certificati",tlt="Certificato incatenato",rlt="Colore di sfondo della schermata di accesso",nlt="Impostazioni CORS personalizzate",olt="Percorso di reindirizzamento predefinito",alt="Disabilita le funzioni predefinite",ilt="Disabilita la gestione delle estensioni",slt="Non servire file web da objectDB",clt="Disabilita la consegna degli oggetti (/object/)",llt="Disabilita stati e informazioni socket",ult="Porta per controllare il dominio",dlt="Sicuro (HTTPS)",plt="file",flt="Socket.io supporta diversi modi di comunicazione: web socket e long-polling. Attivando questo flag, puoi forzare socket.io a comunicare solo tramite web socket.",hlt="Abilitato",mlt="L'IP fornito non è valido",_lt="Metodo di autenticazione legacy",glt="Il server Web supporta l'autenticazione OAuth2 e l'autenticazione con token personalizzato nel cookie.\\nQui è possibile stabilire che la pagina di accesso debba essere autenticata con cookie personalizzato (legacy) e non tramite OAuth2.\\nPotrebbe essere necessario per adattatori di terze parti.",ylt="Fai clic per chiedere aiuto",vlt="elenco",blt="Impostazioni principali",wlt="La password verrà inviata tramite connessione non protetta. Per proteggere le tue password abilita la connessione sicura (HTTPS)!",Slt="nessuna",xlt="Autenticazione OAuth2 (Beta)",klt="oggetto",Clt="Ascolta su tutti gli IP",$lt="posiziona i file qui",Elt="Porta",Tlt="Certificato privato",Olt="Certificato pubblico",Dlt="Utilizza questa istanza per l'aggiornamento automatico",Rlt="Imposta le impostazioni CORS come predefinite",Mlt="Imposta i certificati o caricali prima nelle impostazioni di sistema (in alto a destra).",Alt="Mostra istanze non web",Nlt="Mostra il contenuto delle cartelle",Ilt="Build-in 'Simple-API'",Plt="Socket.IO Instance (Optional): (Utilizzato da adattatori come risciò o vis)",jlt="Età massima della cache per i file",zlt="stato",Llt="Timeout di accesso (sec)",Flt="creare",Blt="leggere",Wlt="Carica immagine",Ult="Usa socket web puri (iobroker.ws)",qlt="Qui puoi selezionare se per la comunicazione verranno usati la libreria socket.io o i web-socket nativi. Ti consigliamo di attivare questo flag.",Hlt="Utilizza Let's Encrypt certificates",Vlt="Usa Lets Encrypt staging (per test)",Glt="Utente",Xlt="Correre come",Jlt="Avvertenza: la disabilitazione errata dell'uso delle funzioni può causare comportamenti imprevisti.",Ylt="Force Web-Sockets",Klt="Elenco di accesso",Zlt="La lista bianca funziona solo con l'interfaccia socket-io integrata",Qlt="wrire",eut={Authentication_deactivated:Act,"CORS-settings":"Impostazioni CORS","Cache options":"Opzioni della cache",Cancel:Nct,Common:Ict,"Compatibility mode with socket.io@2.x":"Modalità di compatibilità con socket.io@2.x","Do not check if this instance is available from internet":"Non verificare se questa istanza è disponibile da Internet","Group members:":"Membri del gruppo:",Groups:Pct,"IP address":"Indirizzo IP associato","If no IP address matches, show authentication dialog":"Se nessun indirizzo IP corrisponde, mostra la finestra di autenticazione","In groups:":"In gruppi:",Language:jct,Ok:zct,"Only following users may access web interface as":"Solo i seguenti utenti possono accedere all'interfaccia web come","Overload system language":"Sovraccarica la lingua del sistema",Readable:Lct,"Redirect options":"Opzioni di reindirizzamento","Same settings must be set in socketio instance":"Le stesse impostazioni devono essere impostate nell'istanza socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API ora funziona come Web-Extension. Crea un'istanza e imposta lì le impostazioni.","System language":"Linguaggio di sistema","This path will be opened if no path specified":"Questo percorso verrà aperto se non viene specificato alcun percorso URL","Use %s adapter to get letsencrypt certificates.":"Usa l'adattatore %s per ottenere i certificati letsencrypt.",UserList:Fct,Users:Bct,Warning:Wct,"White list will be disabled. Please confirm.":"La lista bianca sarà disabilitata. Si prega di confermare.",Writeable:Uct,additionally:qct,"after authentication":"dopo l'autenticazione",authentication:Hct,background:Vct,background_image:Gct,basic_authentication:Xct,basic_authentication_info:Jct,built_in:Yct,button_title:Kct,button_title2:Zct,cache:Qct,certificates:elt,chained_certificate:tlt,color:rlt,custom_cors_settings:nlt,defaultRedirect:olt,delete:"Elimina",disable_default:alt,disable_extensions:ilt,disable_files:slt,disable_objects:clt,disable_states:llt,domain_name:ult,encryption:dlt,file:plt,forceWebSockets_info:flt,"in seconds":"in secondi",included:hlt,incorrect_ip:mlt,legacy_authentication:_lt,legacy_authentication_info:glt,link:ylt,list:vlt,"logged in user":"utente registrato",main_settings:blt,modal_title:wlt,nothing:Slt,oauth2_authentication:xlt,object:klt,"only for this instance":"solo per questo caso",open_ip:Clt,place_the_files_here:$lt,port:Elt,private_certificate:Tlt,public_certificate:Olt,renew_certificates:Dlt,reset_cors_settings:Rlt,set_certificates:Mlt,show_admin_instances:Alt,show_folders:Nlt,simple_api:Ilt,socket:Plt,staticAssetCacheMaxAge:jlt,status:zlt,time_out:Llt,to_create:Flt,to_read:Blt,upload_image:Wlt,usePureWebSockets:Ult,usePureWebSockets_info:qlt,use_certificates:Hlt,use_lets:Vlt,user:Glt,users:Xlt,warning_incorrectly:Jlt,web_sockets:Ylt,whiteList:Klt,whitelist_only_with_integrated_socket:Zlt,write:Qlt},tut="La autenticación fue desactivada",rut="Cancelar",nut="Común",out="Grupos",aut="Idioma",iut="OK",sut="Legible",cut="Lista de acceso de usuarios",lut="Usuarios",uut="¡Advertencia!",dut="Escribible",put="Avanzado",fut="Autenticación",hut="Fondo",mut="Imagen de fondo",_ut="Autenticación básica",gut="Puede habilitar la autenticación Basic para el servidor web. Se habilitará además de las autenticaciones con tokens personalizados y OAuth2.",yut="integrado",vut="Deshabilitar autenticación",but="Ignorar advertencia",wut="Cache",Sut="Let's Encrypt Certificados",xut="Certificado encadenado",kut="Color de fondo de la pantalla de inicio de sesión",Cut="Configuraciones CORS personalizadas",$ut="Ruta de redirección predeterminada",Eut="Deshabilitar funciones predeterminadas",Tut="Deshabilitar el manejo de extensiones",Out="No sirva archivos web desde objectDB",Dut="Deshabilitar la entrega de objetos (/object/)",Rut="Deshabilitar estados e información de socket",Mut="Puerto para verificar el dominio",Aut="Seguro (HTTPS)",Nut="archivo",Iut="Socket.io admite diferentes formas de comunicación: socket web y sondeo prolongado. Al activar esta opción, puede obligar a socket.io a comunicarse solo a través de sockets web.",Put="Habilitado",jut="El IP proporcionado no es válido",zut="Método de autenticación heredado",Lut="El servidor web admite la autenticación OAuth2 y la autenticación con token personalizado en cookie.\\nAquí puede decir que la página de inicio de sesión debe autenticarse con una cookie personalizada (heredada) y no a través de OAuth2.\\nEso podría ser necesario para adaptadores de terceros.",Fut="Haz clic para obtener ayuda",But="lista",Wut="Ajustes principales",Uut="La contraseña se enviará a través de una conexión no segura. Para proteger sus contraseñas, ¡habilite la conexión segura (HTTPS)!",qut="ninguna",Hut="Autenticación OAuth2 (versión beta)",Vut="objeto",Gut="Escuchar en todas las direcciones IP",Xut="coloca los archivos aquí",Jut="Puerto",Yut="Certificado privado",Kut="Certificado público",Zut="Use esta instancia para la actualización automática",Qut="Establecer la configuración de CORS a la predeterminada",edt="Establezca certificados o cárguelos primero en la configuración del sistema (arriba a la derecha).",tdt="Mostrar instancias no web",rdt="Mostrar el contenido de las carpetas",ndt="Build-in 'Simple-API'",odt="Socket.IO Instance (Optional): (Utilizado por adaptadores como rickshaw o vis)",adt="Antigüedad máxima de caché para archivos",idt="estado",sdt="Tiempo de espera de inicio de sesión (sec)",cdt="crear",ldt="leer",udt="Cargar imagen",ddt="Use sockets web puros (iobroker.ws)",pdt="Aquí puede seleccionar si se utilizará la biblioteca socket.io o los web-sockets nativos para la comunicación. Le sugerimos que active esta opción.",fdt="Utilice los certificados Let's Encrypt",hdt="Use Lets Encrypt staging (para pruebas)",mdt="Usuario",_dt="Correr como",gdt="Advertencia: la desactivación incorrecta del uso de funciones puede provocar un comportamiento inesperado.",ydt="Force Web-Sockets",vdt="Lista de acceso",bdt="La lista blanca solo funciona con la interfaz socket-io integrada",wdt="wrire",Sdt={Authentication_deactivated:tut,"CORS-settings":"Configuración de CORS","Cache options":"Opciones de caché",Cancel:rut,Common:nut,"Compatibility mode with socket.io@2.x":"Modo de compatibilidad con socket.io@2.x","Do not check if this instance is available from internet":"No verifique si esta instancia está disponible en Internet.","Group members:":"Miembros del grupo:",Groups:out,"IP address":"Dirección IP vinculada","If no IP address matches, show authentication dialog":"Si ninguna dirección IP coincide, mostrar el cuadro de diálogo de autenticación","In groups:":"En grupos:",Language:aut,Ok:iut,"Only following users may access web interface as":"Sólo los siguientes usuarios pueden acceder a la interfaz web como","Overload system language":"Sobrecargar idioma del sistema",Readable:sut,"Redirect options":"Opciones de redireccionamiento","Same settings must be set in socketio instance":"Se deben establecer las mismas configuraciones en la instancia de socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"La API simple ahora funciona como extensión web. Cree una instancia y configure los ajustes allí.","System language":"Lenguaje del sistema","This path will be opened if no path specified":"Esta ruta se abrirá si no se especifica ninguna ruta URL.","Use %s adapter to get letsencrypt certificates.":"Use el adaptador %s para obtener certificados de letsencrypt.",UserList:cut,Users:lut,Warning:uut,"White list will be disabled. Please confirm.":"La lista blanca se desactivará. Por favor confirmar.",Writeable:dut,additionally:put,"after authentication":"después de la autenticación",authentication:fut,background:hut,background_image:mut,basic_authentication:_ut,basic_authentication_info:gut,built_in:yut,button_title:vut,button_title2:but,cache:wut,certificates:Sut,chained_certificate:xut,color:kut,custom_cors_settings:Cut,defaultRedirect:$ut,delete:"borrar",disable_default:Eut,disable_extensions:Tut,disable_files:Out,disable_objects:Dut,disable_states:Rut,domain_name:Mut,encryption:Aut,file:Nut,forceWebSockets_info:Iut,"in seconds":"en segundos",included:Put,incorrect_ip:jut,legacy_authentication:zut,legacy_authentication_info:Lut,link:Fut,list:But,"logged in user":"usuario registrado",main_settings:Wut,modal_title:Uut,nothing:qut,oauth2_authentication:Hut,object:Vut,"only for this instance":"solo para esta instancia",open_ip:Gut,place_the_files_here:Xut,port:Jut,private_certificate:Yut,public_certificate:Kut,renew_certificates:Zut,reset_cors_settings:Qut,set_certificates:edt,show_admin_instances:tdt,show_folders:rdt,simple_api:ndt,socket:odt,staticAssetCacheMaxAge:adt,status:idt,time_out:sdt,to_create:cdt,to_read:ldt,upload_image:udt,usePureWebSockets:ddt,usePureWebSockets_info:pdt,use_certificates:fdt,use_lets:hdt,user:mdt,users:_dt,warning_incorrectly:gdt,web_sockets:ydt,whiteList:vdt,whitelist_only_with_integrated_socket:bdt,write:wdt},xdt="Uwierzytelnianie zostało dezaktywowane",kdt="Odwołaj",Cdt="Wspólny",$dt="Grupy",Edt="Język",Tdt="Ok",Odt="Czytelny",Ddt="Lista dostępu użytkowników",Rdt="Użytkownicy",Mdt="Ostrzeżenie!",Adt="Zapisywalny",Ndt="Zaawansowane",Idt="Poświadczenie",Pdt="Tło",jdt="Zdjęcie w tle",zdt="Uwierzytelnianie podstawowe",Ldt="Możesz włączyć podstawowe uwierzytelnianie dla serwera WWW. Będzie ono włączone dodatkowo do uwierzytelniania OAuth2 i niestandardowego tokena.",Fdt="zintegrowany",Bdt="Wyłącz uwierzytelnianie",Wdt="Zignoruj ​​ostrzeżenie",Udt="Pamięć podręczna",qdt="Let's Encrypt certyfikaty",Hdt="Przykuty certyfikat",Vdt="Kolor tła ekranu logowania",Gdt="Niestandardowe ustawienia CORS",Xdt="Domyślna ścieżka przekierowania",Jdt="Wyłącz funkcje domyślne",Ydt="Wyłącz obsługę rozszerzeń",Kdt="Nie udostępniaj plików internetowych z objectDB",Zdt="Wyłącz dostarczanie obiektów (/object/)",Qdt="Wyłącz stany i informacje o gnieździe",ept="Port do sprawdzenia domeny",tpt="Bezpieczne (HTTPS)",rpt="plik",npt="Socket.io obsługuje różne sposoby komunikacji: web socket i long-polling. Aktywując tę flagę, możesz wymusić na socket.io komunikację tylko przez web socket.",opt="Włączone",apt="Podany adres IP jest nieprawidłowy",ipt="Starsza metoda uwierzytelniania",spt="Serwer WWW obsługuje uwierzytelnianie OAuth2 oraz uwierzytelnianie za pomocą niestandardowego tokena w pliku cookie.\\nTutaj możesz określić, że strona logowania powinna uwierzytelniać się za pomocą niestandardowego pliku cookie (starsza wersja), a nie za pomocą protokołu OAuth2.\\nMoże to być wymagane w przypadku adapterów innych firm.",cpt="Kliknij, aby uzyskać pomoc",lpt="lista",upt="Ustawienia główne",dpt="Hasło zostanie wysłane przez połączenie bez zabezpieczeń. Aby chronić swoje hasła, włącz bezpieczne połączenie (HTTPS)!",ppt="Żaden",fpt="Uwierzytelnianie OAuth2 (wersja beta)",hpt="obiekt",mpt="Posłuchaj na wszystkich IP",_pt="umieść pliki tutaj",gpt="Port",ypt="Prywatny certyfikat",vpt="Certyfikat publiczny",bpt="Użyj tej instancji do automatycznej aktualizacji",wpt="Przywróć ustawienia CORS do domyślnych",Spt="Ustaw certyfikaty lub załaduj najpierw w ustawieniach systemu (prawy górny).",xpt="Pokaż wystąpienia niebędące stroną internetową",kpt="Pokaż zawartość folderów",Cpt="Wbuduj 'Proste API'",$pt="Socket.IO Instance (Optional): (Używany przez adaptery takie jak riksza lub vis)",Ept="Maksymalny wiek dla plików w pamięci podręcznej",Tpt="stan",Opt="Limit czasu logowania (s)",Dpt="Stwórz",Rpt="czytać",Mpt="Załaduj obrazek",Apt="Używaj czystych gniazd sieciowych (iobroker.ws)",Npt="Możesz wybrać tutaj, czy do komunikacji będzie używana biblioteka socket.io czy natywne web-sockety. Sugerujemy aktywowanie tej flagi.",Ipt="Użyj Let's Encrypt certificates",Ppt="Użyj Lets Encrypt staging (do testowania)",jpt="Użytkownik",zpt="Uruchom jako",Lpt="Ostrzeżenie: Niepoprawne wyłączenie używania funkcji może spowodować nieoczekiwane zachowanie.",Fpt="Wymuszaj gniazda internetowe",Bpt="Lista dostępu",Wpt="Biała lista działa tylko ze zintegrowanym interfejsem socket-io",Upt="wrire",qpt={Authentication_deactivated:xdt,"CORS-settings":"Ustawienia CORS","Cache options":"Opcje pamięci podręcznej",Cancel:kdt,Common:Cdt,"Compatibility mode with socket.io@2.x":"Tryb zgodności z socket.io@2.x","Do not check if this instance is available from internet":"Nie sprawdzaj, czy ta instancja jest dostępna z Internetu","Group members:":"Członkowie grupy:",Groups:$dt,"IP address":"Powiązany adres IP","If no IP address matches, show authentication dialog":"Jeśli żaden adres IP nie pasuje, pokaż okno uwierzytelniania","In groups:":"W grupach:",Language:Edt,Ok:Tdt,"Only following users may access web interface as":"Tylko następujący użytkownicy mogą uzyskać dostęp do interfejsu internetowego jako","Overload system language":"Przeciążenie języka systemu",Readable:Odt,"Redirect options":"Opcje przekierowania","Same settings must be set in socketio instance":"Te same ustawienia muszą być ustawione w instancji socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API działa teraz jako Web-Extension. Proszę utworzyć instancję i dokonać tam ustawień.","System language":"Język systemu","This path will be opened if no path specified":"Ta ścieżka zostanie otwarta, jeśli nie określono ścieżki URL","Use %s adapter to get letsencrypt certificates.":"Użyj adaptera %s, aby uzyskać certyfikaty Letsencrypt.",UserList:Ddt,Users:Rdt,Warning:Mdt,"White list will be disabled. Please confirm.":"Biała lista zostanie wyłączona. Proszę potwierdzić.",Writeable:Adt,additionally:Ndt,"after authentication":"po uwierzytelnieniu",authentication:Idt,background:Pdt,background_image:jdt,basic_authentication:zdt,basic_authentication_info:Ldt,built_in:Fdt,button_title:Bdt,button_title2:Wdt,cache:Udt,certificates:qdt,chained_certificate:Hdt,color:Vdt,custom_cors_settings:Gdt,defaultRedirect:Xdt,delete:"kasować",disable_default:Jdt,disable_extensions:Ydt,disable_files:Kdt,disable_objects:Zdt,disable_states:Qdt,domain_name:ept,encryption:tpt,file:rpt,forceWebSockets_info:npt,"in seconds":"w sekundy",included:opt,incorrect_ip:apt,legacy_authentication:ipt,legacy_authentication_info:spt,link:cpt,list:lpt,"logged in user":"zalogowany użytkownik",main_settings:upt,modal_title:dpt,nothing:ppt,oauth2_authentication:fpt,object:hpt,"only for this instance":"tylko w tym przypadku",open_ip:mpt,place_the_files_here:_pt,port:gpt,private_certificate:ypt,public_certificate:vpt,renew_certificates:bpt,reset_cors_settings:wpt,set_certificates:Spt,show_admin_instances:xpt,show_folders:kpt,simple_api:Cpt,socket:$pt,staticAssetCacheMaxAge:Ept,status:Tpt,time_out:Opt,to_create:Dpt,to_read:Rpt,upload_image:Mpt,usePureWebSockets:Apt,usePureWebSockets_info:Npt,use_certificates:Ipt,use_lets:Ppt,user:jpt,users:zpt,warning_incorrectly:Lpt,web_sockets:Fpt,whiteList:Bpt,whitelist_only_with_integrated_socket:Wpt,write:Upt},Hpt="Автентифікацію було вимкнено",Vpt="Скасувати",Gpt="Поширений",Xpt="Групи",Jpt="Мова",Ypt="В порядку",Kpt="Читабельний",Zpt="Список доступу користувачів",Qpt="Користувачі",eft="УВАГА!",tft="Можливість запису",rft="Просунутий",nft="Аутентифікація",oft="Фон",aft="Фонове зображення",ift="Базова автентифікація",sft="Ви можете ввімкнути Basic-автентифікацію для веб-сервера. Його буде ввімкнено додатково до автентифікації OAuth2 і спеціального маркера.",cft="інтегрований",lft="Вимкнути автентифікацію",uft="Ігнорувати попередження",dft="Кеш",pft="Давайте зашифруємо сертифікати",fft="Прикутий сертифікат",hft="Колір фону екрана входу",mft="Спеціальні налаштування CORS",_ft="Шлях переспрямування за умовчанням",gft="Вимкнути функції за замовчуванням",yft="Вимкнути обробку розширень",vft="Не обслуговуйте веб-файли зі сховища ioBroker",bft="Вимкнути доставку об'єктів (/object/)",wft="Вимкнути інформацію про стани та сокет",Sft="Порт для перевірки домену",xft="Безпечний (HTTPS)",kft="файл",Cft="Socket.io підтримує різні способи зв'язку: веб-сокет і довге опитування. Активувавши цей прапорець, ви можете змусити socket.io спілкуватися лише через веб-сокети.",$ft="Увімкнено",Eft="Наданий IP недійсний",Tft="Застарілий метод автентифікації",Oft="Веб-сервер підтримує автентифікацію OAuth2 і автентифікацію за допомогою спеціального маркера в файлі cookie.\\nТут ви можете сказати, що сторінка входу має автентифікуватися за допомогою спеціального файлу cookie (застарілий), а не через OAuth2.\\nЦе може знадобитися для сторонніх адаптерів.",Dft="Натисніть для допомоги",Rft="список",Mft="Основні налаштування",Aft="Пароль буде надіслано через незахищене з’єднання. Щоб захистити ваші паролі, увімкніть безпечне з'єднання (HTTPS)!",Nft="немає",Ift="Автентифікація OAuth2 (бета-версія)",Pft="об'єкт",jft="Прослуховування на всіх IP",zft="розмістіть файли тут",Lft="Порт",Fft="Приватний сертифікат",Bft="«Публічний» сертифікат",Wft="Використовуйте цей екземпляр для автоматичного оновлення",Uft="Установіть налаштування CORS за замовчуванням",qft="Спершу встановіть сертифікати або завантажте їх у налаштуваннях системи (справа вгорі).",Hft="Показати невеб-екземпляри",Vft="Показати вміст папок",Gft="Вбудований «Simple-API»",Xft="Примірник Socket.IO (необов’язково): (використовується такими адаптерами, як rickshaw або vis)",Jft="Максимальний вік кешу для файлів",Yft="стан",Kft="Час очікування входу (с)",Zft="створити",Qft="читати",eht="Завантажити зображення",tht="Використовуйте чисті веб-сокети (iobroker.ws)",rht="Тут ви можете вибрати, чи використовуватиметься для зв’язку бібліотека socket.io чи рідні веб-сокети. Ми пропонуємо активувати цей прапор.",nht="Використовуйте сертифікати Let's Encrypt",oht="Використовуйте постановки Lets Encrypt (для тестування/налагодження. Тільки для розробника)",aht="Користувач",iht="Бігати як",sht="Попередження: неправильне вимкнення використання функцій може призвести до неочікуваної поведінки.",cht="Force Web-Sockets",lht="Список доступу",uht="Білий список працює лише з вбудованим інтерфейсом socket-io",dht="писати",pht={Authentication_deactivated:Hpt,"CORS-settings":"CORS-налаштування","Cache options":"Параметри кешу",Cancel:Vpt,Common:Gpt,"Compatibility mode with socket.io@2.x":"Режим сумісності з socket.io@2.x","Do not check if this instance is available from internet":"Не перевіряйте, чи доступний цей екземпляр в Інтернеті","Group members:":"Члени групи:",Groups:Xpt,"IP address":"Прив'язана IP-адреса","If no IP address matches, show authentication dialog":"Якщо жодна IP-адреса не відповідає, відобразити діалогове вікно автентифікації","In groups:":"У групах:",Language:Jpt,Ok:Ypt,"Only following users may access web interface as":"Тільки такі користувачі можуть отримати доступ до веб-інтерфейсу як","Overload system language":"Перевантаження системної мови",Readable:Kpt,"Redirect options":"Параметри перенаправлення","Same settings must be set in socketio instance":"Такі ж параметри потрібно встановити в екземплярі socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API тепер працює як веб-розширення. Створіть екземпляр і задайте там налаштування.","System language":"Системна мова","This path will be opened if no path specified":"Цей шлях буде відкрито, якщо URL-адресу не вказано","Use %s adapter to get letsencrypt certificates.":"Використовуйте адаптер %s, щоб отримати сертифікати letsencrypt.",UserList:Zpt,Users:Qpt,Warning:eft,"White list will be disabled. Please confirm.":"Білий список буде вимкнено. Будь-ласка підтвердіть.",Writeable:tft,additionally:rft,"after authentication":"після аутентифікації",authentication:nft,background:oft,background_image:aft,basic_authentication:ift,basic_authentication_info:sft,built_in:cft,button_title:lft,button_title2:uft,cache:dft,certificates:pft,chained_certificate:fft,color:hft,custom_cors_settings:mft,defaultRedirect:_ft,delete:"видалити",disable_default:gft,disable_extensions:yft,disable_files:vft,disable_objects:bft,disable_states:wft,domain_name:Sft,encryption:xft,file:kft,forceWebSockets_info:Cft,"in seconds":"за секунди",included:$ft,incorrect_ip:Eft,legacy_authentication:Tft,legacy_authentication_info:Oft,link:Dft,list:Rft,"logged in user":"авторизований користувач",main_settings:Mft,modal_title:Aft,nothing:Nft,oauth2_authentication:Ift,object:Pft,"only for this instance":"тільки для цього випадку",open_ip:jft,place_the_files_here:zft,port:Lft,private_certificate:Fft,public_certificate:Bft,renew_certificates:Wft,reset_cors_settings:Uft,set_certificates:qft,show_admin_instances:Hft,show_folders:Vft,simple_api:Gft,socket:Xft,staticAssetCacheMaxAge:Jft,status:Yft,time_out:Kft,to_create:Zft,to_read:Qft,upload_image:eht,usePureWebSockets:tht,usePureWebSockets_info:rht,use_certificates:nht,use_lets:oht,user:aht,users:iht,warning_incorrectly:sht,web_sockets:cht,whiteList:lht,whitelist_only_with_integrated_socket:uht,write:dht},fht="身份认证机制已停用",hht="取消",mht="常见的",_ht="团体",ght="语言",yht="好的",vht="可读性",bht="用户访问列表",wht="用户",Sht="警告!",xht="可写",kht="高级",Cht="认证机制",$ht="背景",Eht="背景图片",Tht="基本身份验证",Oht="您可以为 Web 服务器启用基本身份验证。它将在 OAuth2 和自定义令牌身份验证的基础上额外启用。",Dht="集成的",Rht="禁用身份认证机制",Mht="忽略警告",Aht="使能缓存",Nht="Let's Encrypt证书",Iht="链式证书",Pht="登录界面的背景颜色",jht="自定义 CORS 设置",zht="默认重定向路径",Lht="禁用默认功能",Fht="禁用扩展处理:",Bht="不要提供来自objectDB的Web文件",Wht="禁用对象传递(/object/)",Uht="禁用状态和套接字信息",qht="自动更新证书使用的端口",Hht="安全访问 (HTTPS)",Vht="文件",Ght="Socket.io 支持不同的通信方式:Web 套接字和长轮询。通过激活此标志,您可以强制 socket.io 仅通过 Web 套接字进行通信。",Xht="使能",Jht="提供的IP无效",Yht="旧式身份验证方法",Kht="Web 服务器支持 OAuth2 身份验证和使用 cookie 中的自定义令牌的身份验证。\\n在这里您可以说登录页面应该使用自定义 cookie(旧式)进行身份验证而不是通过 OAuth2。\\n第三方适配器可能需要这样做。",Zht="单击获取帮助",Qht="可列举",emt="主要设置",tmt="密码将通过不安全的连接发送。 要保护您的密码,请启用安全连接(HTTPS)!",rmt="无",nmt="OAuth2 身份验证(测试版)",omt="对象",amt="监听所有IP",imt="将文件拖拽到这里",smt="端口",cmt="私人证书",lmt="公共证书",umt="自动更新Let's Encrypt证书",dmt="将 CORS 设置设置为默认值",pmt="首先在系统设置中(右上角)设置或加载证书。",fmt="显示非 Web 实例",hmt="显示文件夹内容",mmt="内置'Simple-API'",_mt="Socket.IO Instance (Optional): (被rickshaw或vis等适配器使用)",gmt="文件的缓存最大年龄",ymt="状态",vmt="登录超时时间(秒)",bmt="可创建",wmt="可读",Smt="上传图片",xmt="使用纯网络套接字 (iobroker.ws)",kmt="您可以在此处选择是否使用 socket.io 库或本机 web-sockets 进行通信。我们建议激活此标志。",Cmt="使用Let's Encrypt证书",$mt="使用Lets Encrypt暂存(用于测试)",Emt="用户",Tmt="运行为",Omt="警告:错误地禁用功能使用会导致意外行为。",Dmt="强制Web-Sockets",Rmt="访问列表",Mmt="白名单仅适用于集成的 socket-io 接口",Amt="可写",Nmt={Authentication_deactivated:fht,"CORS-settings":"CORS 设置","Cache options":"缓存选项",Cancel:hht,Common:mht,"Compatibility mode with socket.io@2.x":"与 socket.io@2.x 的兼容模式","Do not check if this instance is available from internet":"不检查此实例是否可从 Internet 获取","Group members:":"小组成员:",Groups:_ht,"IP address":"绑定IP地址","If no IP address matches, show authentication dialog":"如果没有 IP 地址匹配,则显示身份验证对话框","In groups:":"在团队中:",Language:ght,Ok:yht,"Only following users may access web interface as":"只有以下用户可以访问 Web 界面:","Overload system language":"重载系统语言",Readable:vht,"Redirect options":"重定向选项","Same settings must be set in socketio instance":"必须在 socketio 实例中设置相同的设置","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"简单 API 现已作为 Web 扩展运行。请创建一个实例并在那里进行设置。","System language":"系统语言","This path will be opened if no path specified":"如果未指定 URL 路径,将打开此路径","Use %s adapter to get letsencrypt certificates.":"使用 %s 适配器获取 letsencrypt 证书。",UserList:bht,Users:wht,Warning:Sht,"White list will be disabled. Please confirm.":"白名单将被禁用。请确认。",Writeable:xht,additionally:kht,"after authentication":"认证后",authentication:Cht,background:$ht,background_image:Eht,basic_authentication:Tht,basic_authentication_info:Oht,built_in:Dht,button_title:Rht,button_title2:Mht,cache:Aht,certificates:Nht,chained_certificate:Iht,color:Pht,custom_cors_settings:jht,defaultRedirect:zht,delete:"可删除",disable_default:Lht,disable_extensions:Fht,disable_files:Bht,disable_objects:Wht,disable_states:Uht,domain_name:qht,encryption:Hht,file:Vht,forceWebSockets_info:Ght,"in seconds":"片刻之间",included:Xht,incorrect_ip:Jht,legacy_authentication:Yht,legacy_authentication_info:Kht,link:Zht,list:Qht,"logged in user":"登录用户",main_settings:emt,modal_title:tmt,nothing:rmt,oauth2_authentication:nmt,object:omt,"only for this instance":"仅适用于本例",open_ip:amt,place_the_files_here:imt,port:smt,private_certificate:cmt,public_certificate:lmt,renew_certificates:umt,reset_cors_settings:dmt,set_certificates:pmt,show_admin_instances:fmt,show_folders:hmt,simple_api:mmt,socket:_mt,staticAssetCacheMaxAge:gmt,status:ymt,time_out:vmt,to_create:bmt,to_read:wmt,upload_image:Smt,usePureWebSockets:xmt,usePureWebSockets_info:kmt,use_certificates:Cmt,use_lets:$mt,user:Emt,users:Tmt,warning_incorrectly:Omt,web_sockets:Dmt,whiteList:Rmt,whitelist_only_with_integrated_socket:Mmt,write:Amt},gf={tabContent:{padding:10,height:"calc(100% - 64px - 48px - 20px)",overflow:"auto"},tabContentIFrame:{padding:10,height:"calc(100% - 64px - 48px - 20px - 38px)",overflow:"auto"},selected:t=>({color:t.palette.mode==="dark"?void 0:"#FFF !important"}),indicator:t=>({backgroundColor:t.palette.mode==="dark"?t.palette.secondary.main:"#FFF"})},yf=[{name:"options",translate:"main_settings",index:0},{name:"ipFilter",translate:"whiteList",index:1},{name:"userList",translate:"UserList",index:2},{name:"additionally",translate:"additionally",index:3},{name:"background",translate:"background",index:4},{name:"CORS",translate:"CORS-settings",index:5}];class Imt extends ti{constructor(e){const r={...e};r.encryptedFields=["pass"],r.Connection=uU,r.translations={en:Dtt,de:Zrt,ru:bot,pt:Wat,nl:ust,fr:Mct,it:eut,es:Sdt,pl:qpt,uk:pht,"zh-cn":Nmt},r.sentryDSN=window.sentryDSN,super(e,r)}getSelectedTab(){const{selectedTab:e}=this.state,r=e;return r?this.checkDisabledTabs(r)?0:yf.find(n=>n.name===r)?.index||0:0}onPrepareSave(e){super.onPrepareSave(e);const{secure:r,certPublic:n,certPrivate:o}=this.state.native;return r&&(!o||!n)?(this.setState({toast:"set_certificates"}),!1):!0}renderTab(){const{native:e}=this.state;let r=this.state.selectedTab;switch(this.checkDisabledTabs(this.state.selectedTab)&&(r="options"),r){case"ipFilter":return C.jsx(jc,{theme:this.state.theme,socket:this.socket,native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a),instance:this.instance,adapterName:this.adapterName,themeType:this.state.themeType},"whiteList");case"userList":return C.jsx(aet,{socket:this.socket,native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a)},"userList");case"additionally":return C.jsx(oet,{native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a)},"additionally");case"background":return C.jsx(ret,{socket:this.socket,native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a),instance:this.instance},"background");case"CORS":return C.jsx(iet,{native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a)},"CORS");default:return C.jsx(QQe,{themeType:this.state.themeType,common:this.common||{},socket:this.socket,native:e,instance:this.instance,onChange:(n,o,a)=>this.updateNativeValue(n,o,a),onLoad:n=>this.setState({native:n}),lang:z.getLanguage()},"options")}}checkDisabledTabs(e){const{native:r}=this.state;return!r.auth&&e==="background"||!r.auth&&(e==="ipFilter"||e==="userList")}render(){const{loaded:e,theme:r,themeType:n,toast:o}=this.state;return e?C.jsx($x,{injectFirst:!0,children:C.jsxs(Zx,{theme:this.state.theme,children:[C.jsx(Md,{message:o,onClose:()=>this.setState({toast:""})}),C.jsxs("div",{className:"App",style:{background:r.palette.background.default,color:r.palette.text.primary},children:[C.jsx(h8,{position:"static",children:C.jsx(B8,{value:this.getSelectedTab(),onChange:(a,s)=>this.selectTab(yf.find(l=>l.index===s)?.name||yf[0].name,s),scrollButtons:"auto",sx:{"& .MuiTabs-indicator":gf.indicator},children:yf.map((a,s)=>C.jsx(Vi,{sx:{"& .MuiTab-selected":gf.selected},disabled:this.checkDisabledTabs(a.name),label:z.t(a.translate),"data-name":a.name},`${s}-tab-key`))})}),C.jsx("div",{style:this.isIFrame?gf.tabContentIFrame:gf.tabContent,children:this.renderTab()}),this.renderError(),this.renderSaveCloseButtons()]})]})}):C.jsx($x,{injectFirst:!0,children:C.jsx(Zx,{theme:this.state.theme,children:C.jsx(W9,{themeType:n})})})}}window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function Pmt(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const jmt="8.0.0",zmt={version:jmt};window.adapterName="web";window.sentryDSN="https://5ad729dbed504d15aa8bde423cae9a8e@sentry.iobroker.net/57";console.log(`iobroker.${window.adapterName}@${zmt.version}`);const oT=document.getElementById("root");oT&&kR.createRoot(oT).render(C.jsx(Imt,{}));Pmt()});export default Lmt(); diff --git a/admin/assets/index-DMt_aucS.js b/admin/assets/index-DMt_aucS.js new file mode 100644 index 00000000..f4b8174c --- /dev/null +++ b/admin/assets/index-DMt_aucS.js @@ -0,0 +1,707 @@ +var gD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var xht=gD((kn,Cn)=>{function yD(t,e){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var bp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y_={exports:{}},Nl={},v_={exports:{}},ht={};var d5;function vD(){if(d5)return ht;d5=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator;function m(F){return F===null||typeof F!="object"?null:(F=d&&F[d]||F["@@iterator"],typeof F=="function"?F:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function x(F,K,ue){this.props=F,this.context=K,this.refs=b,this.updater=ue||y}x.prototype.isReactComponent={},x.prototype.setState=function(F,K){if(typeof F!="object"&&typeof F!="function"&&F!=null)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,F,K,"setState")},x.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function C(){}C.prototype=x.prototype;function D(F,K,ue){this.props=F,this.context=K,this.refs=b,this.updater=ue||y}var O=D.prototype=new C;O.constructor=D,v(O,x.prototype),O.isPureReactComponent=!0;var R=Array.isArray,M=Object.prototype.hasOwnProperty,E={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function I(F,K,ue){var pe,oe={},fe=null,we=null;if(K!=null)for(pe in K.ref!==void 0&&(we=K.ref),K.key!==void 0&&(fe=""+K.key),K)M.call(K,pe)&&!A.hasOwnProperty(pe)&&(oe[pe]=K[pe]);var ke=arguments.length-2;if(ke===1)oe.children=ue;else if(1>>1,K=Z[F];if(0>>1;Fo(oe,ee))feo(we,oe)?(Z[F]=we,Z[fe]=ee,F=fe):(Z[F]=oe,Z[pe]=ee,F=pe);else if(feo(we,ee))Z[F]=we,Z[fe]=ee,F=fe;else break e}}return G}function o(Z,G){var ee=Z.sortIndex-G.sortIndex;return ee!==0?ee:Z.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],f=[],h=1,d=null,m=3,y=!1,v=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(Z){for(var G=r(f);G!==null;){if(G.callback===null)n(f);else if(G.startTime<=Z)n(f),G.sortIndex=G.expirationTime,e(u,G);else break;G=r(f)}}function R(Z){if(b=!1,O(Z),!v)if(r(u)!==null)v=!0,X(M);else{var G=r(f);G!==null&&re(R,G.startTime-Z)}}function M(Z,G){v=!1,b&&(b=!1,C(I),I=-1),y=!0;var ee=m;try{for(O(G),d=r(u);d!==null&&(!(d.expirationTime>G)||Z&&!z());){var F=d.callback;if(typeof F=="function"){d.callback=null,m=d.priorityLevel;var K=F(d.expirationTime<=G);G=t.unstable_now(),typeof K=="function"?d.callback=K:d===r(u)&&n(u),O(G)}else n(u);d=r(u)}if(d!==null)var ue=!0;else{var pe=r(f);pe!==null&&re(R,pe.startTime-G),ue=!1}return ue}finally{d=null,m=ee,y=!1}}var E=!1,A=null,I=-1,P=5,$=-1;function z(){return!(t.unstable_now()-$Z||125F?(Z.sortIndex=ee,e(f,Z),r(u)===null&&Z===r(f)&&(b?(C(I),I=-1):b=!0,re(R,ee-F))):(Z.sortIndex=K,e(u,Z),v||y||(v=!0,X(M))),Z},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(Z){var G=m;return function(){var ee=m;m=G;try{return Z.apply(this,arguments)}finally{m=ee}}}})(S_)),S_}var _5;function xD(){return _5||(_5=1,w_.exports=SD()),w_.exports}var g5;function kD(){if(g5)return nn;g5=1;var t=Zi(),e=xD();function r(i){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+i,p=1;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[: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={},d={};function m(i){return u.call(d,i)?!0:u.call(h,i)?!1:f.test(i)?d[i]=!0:(h[i]=!0,!1)}function y(i,c,p,g){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function v(i,c,p,g){if(c===null||typeof c>"u"||y(i,c,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function b(i,c,p,g,w,S,N){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=g,this.attributeNamespace=w,this.mustUseProperty=p,this.propertyName=i,this.type=c,this.sanitizeURL=S,this.removeEmptyString=N}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){x[i]=new b(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var c=i[0];x[c]=new b(c,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){x[i]=new b(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){x[i]=new b(i,2,!1,i,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(i){x[i]=new b(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){x[i]=new b(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){x[i]=new b(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){x[i]=new b(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){x[i]=new b(i,5,!1,i.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function D(i){return i[1].toUpperCase()}"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(i){var c=i.replace(C,D);x[c]=new b(c,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var c=i.replace(C,D);x[c]=new b(c,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var c=i.replace(C,D);x[c]=new b(c,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){x[i]=new b(i,1,!1,i.toLowerCase(),null,!1,!1)}),x.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){x[i]=new b(i,1,!1,i.toLowerCase(),null,!0,!0)});function O(i,c,p,g){var w=x.hasOwnProperty(c)?x[c]:null;(w!==null?w.type!==0:g||!(2L||w[N]!==S[L]){var W=` +`+w[N].replace(" at new "," at ");return i.displayName&&W.includes("")&&(W=W.replace("",i.displayName)),W}while(1<=N&&0<=L);break}}}finally{ue=!1,Error.prepareStackTrace=p}return(i=i?i.displayName||i.name:"")?K(i):""}function oe(i){switch(i.tag){case 5:return K(i.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return i=pe(i.type,!1),i;case 11:return i=pe(i.type.render,!1),i;case 1:return i=pe(i.type,!0),i;default:return""}}function fe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case A:return"Fragment";case E:return"Portal";case P:return"Profiler";case I:return"StrictMode";case q:return"Suspense";case H:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case z:return(i.displayName||"Context")+".Consumer";case $:return(i._context.displayName||"Context")+".Provider";case B:var c=i.render;return i=i.displayName,i||(i=c.displayName||c.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case U:return c=i.displayName||null,c!==null?c:fe(i.type)||"Memo";case X:c=i._payload,i=i._init;try{return fe(i(c))}catch{}}return null}function we(i){var c=i.type;switch(i.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=c.render,i=i.displayName||i.name||"",c.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(c);case 8:return c===I?"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(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function ke(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ee(i){var c=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function $e(i){var c=Ee(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,c),g=""+i[c];if(!i.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var w=p.get,S=p.set;return Object.defineProperty(i,c,{configurable:!0,get:function(){return w.call(this)},set:function(N){g=""+N,S.call(this,N)}}),Object.defineProperty(i,c,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(N){g=""+N},stopTracking:function(){i._valueTracker=null,delete i[c]}}}}function Pe(i){i._valueTracker||(i._valueTracker=$e(i))}function Re(i){if(!i)return!1;var c=i._valueTracker;if(!c)return!0;var p=c.getValue(),g="";return i&&(g=Ee(i)?i.checked?"true":"false":i.value),i=g,i!==p?(c.setValue(i),!0):!1}function Ge(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function ve(i,c){var p=c.checked;return ee({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??i._wrapperState.initialChecked})}function Te(i,c){var p=c.defaultValue==null?"":c.defaultValue,g=c.checked!=null?c.checked:c.defaultChecked;p=ke(c.value!=null?c.value:p),i._wrapperState={initialChecked:g,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function _t(i,c){c=c.checked,c!=null&&O(i,"checked",c,!1)}function be(i,c){_t(i,c);var p=ke(c.value),g=c.type;if(p!=null)g==="number"?(p===0&&i.value===""||i.value!=p)&&(i.value=""+p):i.value!==""+p&&(i.value=""+p);else if(g==="submit"||g==="reset"){i.removeAttribute("value");return}c.hasOwnProperty("value")?lt(i,c.type,p):c.hasOwnProperty("defaultValue")&<(i,c.type,ke(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(i.defaultChecked=!!c.defaultChecked)}function Ae(i,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var g=c.type;if(!(g!=="submit"&&g!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+i._wrapperState.initialValue,p||c===i.value||(i.value=c),i.defaultValue=c}p=i.name,p!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,p!==""&&(i.name=p)}function lt(i,c,p){(c!=="number"||Ge(i.ownerDocument)!==i)&&(p==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+p&&(i.defaultValue=""+p))}var tt=Array.isArray;function Xe(i,c,p,g){if(i=i.options,c){c={};for(var w=0;w"+c.valueOf().toString()+"",c=Le.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;c.firstChild;)i.appendChild(c.firstChild)}});function vt(i,c){if(c){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=c;return}}i.textContent=c}var Fe={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},Ht=["Webkit","ms","Moz","O"];Object.keys(Fe).forEach(function(i){Ht.forEach(function(c){c=c+i.charAt(0).toUpperCase()+i.substring(1),Fe[c]=Fe[i]})});function xt(i,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||Fe.hasOwnProperty(i)&&Fe[i]?(""+c).trim():c+"px"}function Se(i,c){i=i.style;for(var p in c)if(c.hasOwnProperty(p)){var g=p.indexOf("--")===0,w=xt(p,c[p],g);p==="float"&&(p="cssFloat"),g?i.setProperty(p,w):i[p]=w}}var ft=ee({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 kt(i,c){if(c){if(ft[i]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function br(i,c){if(i.indexOf("-")===-1)return typeof c.is=="string";switch(i){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 wr=null;function Yr(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Uo=null,mo=null,On=null;function ps(i){if(i=vl(i)){if(typeof Uo!="function")throw Error(r(280));var c=i.stateNode;c&&(c=Pd(c),Uo(i.stateNode,i.type,c))}}function fs(i){mo?On?On.push(i):On=[i]:mo=i}function hs(){if(mo){var i=mo,c=On;if(On=mo=null,ps(i),c)for(i=0;i>>=0,i===0?32:31-(A7(i)/N7|0)|0}var gd=64,yd=4194304;function tl(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function vd(i,c){var p=i.pendingLanes;if(p===0)return 0;var g=0,w=i.suspendedLanes,S=i.pingedLanes,N=p&268435455;if(N!==0){var L=N&~w;L!==0?g=tl(L):(S&=N,S!==0&&(g=tl(S)))}else N=p&~w,N!==0?g=tl(N):S!==0&&(g=tl(S));if(g===0)return 0;if(c!==0&&c!==g&&(c&w)===0&&(w=g&-g,S=c&-c,w>=S||w===16&&(S&4194240)!==0))return c;if((g&4)!==0&&(g|=p&16),c=i.entangledLanes,c!==0)for(i=i.entanglements,c&=g;0p;p++)c.push(i);return c}function rl(i,c,p){i.pendingLanes|=c,c!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,c=31-Gn(c),i[c]=p}function z7(i,c){var p=i.pendingLanes&~c;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=c,i.mutableReadLanes&=c,i.entangledLanes&=c,c=i.entanglements;var g=i.eventTimes;for(i=i.expirationTimes;0=ul),ow=" ",aw=!1;function iw(i,c){switch(i){case"keyup":return pO.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sw(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var vs=!1;function hO(i,c){switch(i){case"compositionend":return sw(c);case"keypress":return c.which!==32?null:(aw=!0,ow);case"textInput":return i=c.data,i===ow&&aw?null:i;default:return null}}function mO(i,c){if(vs)return i==="compositionend"||!Zh&&iw(i,c)?(i=Z2(),kd=Vh=Sa=null,vs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=hw(p)}}function _w(i,c){return i&&c?i===c?!0:i&&i.nodeType===3?!1:c&&c.nodeType===3?_w(i,c.parentNode):"contains"in i?i.contains(c):i.compareDocumentPosition?!!(i.compareDocumentPosition(c)&16):!1:!1}function gw(){for(var i=window,c=Ge();c instanceof i.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)i=c.contentWindow;else break;c=Ge(i.document)}return c}function tm(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c&&(c==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||c==="textarea"||i.contentEditable==="true")}function kO(i){var c=gw(),p=i.focusedElem,g=i.selectionRange;if(c!==p&&p&&p.ownerDocument&&_w(p.ownerDocument.documentElement,p)){if(g!==null&&tm(p)){if(c=g.start,i=g.end,i===void 0&&(i=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(i,p.value.length);else if(i=(c=p.ownerDocument||document)&&c.defaultView||window,i.getSelection){i=i.getSelection();var w=p.textContent.length,S=Math.min(g.start,w);g=g.end===void 0?S:Math.min(g.end,w),!i.extend&&S>g&&(w=g,g=S,S=w),w=mw(p,S);var N=mw(p,g);w&&N&&(i.rangeCount!==1||i.anchorNode!==w.node||i.anchorOffset!==w.offset||i.focusNode!==N.node||i.focusOffset!==N.offset)&&(c=c.createRange(),c.setStart(w.node,w.offset),i.removeAllRanges(),S>g?(i.addRange(c),i.extend(N.node,N.offset)):(c.setEnd(N.node,N.offset),i.addRange(c)))}}for(c=[],i=p;i=i.parentNode;)i.nodeType===1&&c.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,bs=null,rm=null,hl=null,nm=!1;function yw(i,c,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;nm||bs==null||bs!==Ge(g)||(g=bs,"selectionStart"in g&&tm(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),hl&&fl(hl,g)||(hl=g,g=Md(rm,"onSelect"),0Cs||(i.current=mm[Cs],mm[Cs]=null,Cs--)}function It(i,c){Cs++,mm[Cs]=i.current,i.current=c}var $a={},Nr=Ca($a),Zr=Ca(!1),fi=$a;function $s(i,c){var p=i.type.contextTypes;if(!p)return $a;var g=i.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===c)return g.__reactInternalMemoizedMaskedChildContext;var w={},S;for(S in p)w[S]=c[S];return g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=c,i.__reactInternalMemoizedMaskedChildContext=w),w}function Qr(i){return i=i.childContextTypes,i!=null}function Id(){Bt(Zr),Bt(Nr)}function Aw(i,c,p){if(Nr.current!==$a)throw Error(r(168));It(Nr,c),It(Zr,p)}function Nw(i,c,p){var g=i.stateNode;if(c=c.childContextTypes,typeof g.getChildContext!="function")return p;g=g.getChildContext();for(var w in g)if(!(w in c))throw Error(r(108,we(i)||"Unknown",w));return ee({},p,g)}function jd(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||$a,fi=Nr.current,It(Nr,i),It(Zr,Zr.current),!0}function Pw(i,c,p){var g=i.stateNode;if(!g)throw Error(r(169));p?(i=Nw(i,c,fi),g.__reactInternalMemoizedMergedChildContext=i,Bt(Zr),Bt(Nr),It(Nr,i)):Bt(Zr),It(Zr,p)}var Ho=null,zd=!1,_m=!1;function Iw(i){Ho===null?Ho=[i]:Ho.push(i)}function IO(i){zd=!0,Iw(i)}function Ea(){if(!_m&&Ho!==null){_m=!0;var i=0,c=Rt;try{var p=Ho;for(Rt=1;i>=N,w-=N,Vo=1<<32-Gn(c)+w|p<rt?(kr=Ye,Ye=null):kr=Ye.sibling;var St=se(J,Ye,Y[rt],me);if(St===null){Ye===null&&(Ye=kr);break}i&&Ye&&St.alternate===null&&c(J,Ye),V=S(St,V,rt),Je===null?Ie=St:Je.sibling=St,Je=St,Ye=kr}if(rt===Y.length)return p(J,Ye),Vt&&mi(J,rt),Ie;if(Ye===null){for(;rtrt?(kr=Ye,Ye=null):kr=Ye.sibling;var Ia=se(J,Ye,St.value,me);if(Ia===null){Ye===null&&(Ye=kr);break}i&&Ye&&Ia.alternate===null&&c(J,Ye),V=S(Ia,V,rt),Je===null?Ie=Ia:Je.sibling=Ia,Je=Ia,Ye=kr}if(St.done)return p(J,Ye),Vt&&mi(J,rt),Ie;if(Ye===null){for(;!St.done;rt++,St=Y.next())St=de(J,St.value,me),St!==null&&(V=S(St,V,rt),Je===null?Ie=St:Je.sibling=St,Je=St);return Vt&&mi(J,rt),Ie}for(Ye=g(J,Ye);!St.done;rt++,St=Y.next())St=Ce(Ye,J,rt,St.value,me),St!==null&&(i&&St.alternate!==null&&Ye.delete(St.key===null?rt:St.key),V=S(St,V,rt),Je===null?Ie=St:Je.sibling=St,Je=St);return i&&Ye.forEach(function(_D){return c(J,_D)}),Vt&&mi(J,rt),Ie}function sr(J,V,Y,me){if(typeof Y=="object"&&Y!==null&&Y.type===A&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case M:e:{for(var Ie=Y.key,Je=V;Je!==null;){if(Je.key===Ie){if(Ie=Y.type,Ie===A){if(Je.tag===7){p(J,Je.sibling),V=w(Je,Y.props.children),V.return=J,J=V;break e}}else if(Je.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===X&&Ww(Ie)===Je.type){p(J,Je.sibling),V=w(Je,Y.props),V.ref=bl(J,Je,Y),V.return=J,J=V;break e}p(J,Je);break}else c(J,Je);Je=Je.sibling}Y.type===A?(V=xi(Y.props.children,J.mode,me,Y.key),V.return=J,J=V):(me=pp(Y.type,Y.key,Y.props,null,J.mode,me),me.ref=bl(J,V,Y),me.return=J,J=me)}return N(J);case E:e:{for(Je=Y.key;V!==null;){if(V.key===Je)if(V.tag===4&&V.stateNode.containerInfo===Y.containerInfo&&V.stateNode.implementation===Y.implementation){p(J,V.sibling),V=w(V,Y.children||[]),V.return=J,J=V;break e}else{p(J,V);break}else c(J,V);V=V.sibling}V=f_(Y,J.mode,me),V.return=J,J=V}return N(J);case X:return Je=Y._init,sr(J,V,Je(Y._payload),me)}if(tt(Y))return Me(J,V,Y,me);if(G(Y))return Ne(J,V,Y,me);Wd(J,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"?(Y=""+Y,V!==null&&V.tag===6?(p(J,V.sibling),V=w(V,Y),V.return=J,J=V):(p(J,V),V=p_(Y,J.mode,me),V.return=J,J=V),N(J)):p(J,V)}return sr}var Ds=Uw(!0),qw=Uw(!1),Ud=Ca(null),qd=null,Rs=null,Sm=null;function xm(){Sm=Rs=qd=null}function km(i){var c=Ud.current;Bt(Ud),i._currentValue=c}function Cm(i,c,p){for(;i!==null;){var g=i.alternate;if((i.childLanes&c)!==c?(i.childLanes|=c,g!==null&&(g.childLanes|=c)):g!==null&&(g.childLanes&c)!==c&&(g.childLanes|=c),i===p)break;i=i.return}}function Ms(i,c){qd=i,Sm=Rs=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&c)!==0&&(en=!0),i.firstContext=null)}function An(i){var c=i._currentValue;if(Sm!==i)if(i={context:i,memoizedValue:c,next:null},Rs===null){if(qd===null)throw Error(r(308));Rs=i,qd.dependencies={lanes:0,firstContext:i}}else Rs=Rs.next=i;return c}var _i=null;function $m(i){_i===null?_i=[i]:_i.push(i)}function Hw(i,c,p,g){var w=c.interleaved;return w===null?(p.next=p,$m(c)):(p.next=w.next,w.next=p),c.interleaved=p,Xo(i,g)}function Xo(i,c){i.lanes|=c;var p=i.alternate;for(p!==null&&(p.lanes|=c),p=i,i=i.return;i!==null;)i.childLanes|=c,p=i.alternate,p!==null&&(p.childLanes|=c),p=i,i=i.return;return p.tag===3?p.stateNode:null}var Ta=!1;function Em(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vw(i,c){i=i.updateQueue,c.updateQueue===i&&(c.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Jo(i,c){return{eventTime:i,lane:c,tag:0,payload:null,callback:null,next:null}}function Oa(i,c,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(wt&2)!==0){var w=g.pending;return w===null?c.next=c:(c.next=w.next,w.next=c),g.pending=c,Xo(i,p)}return w=g.interleaved,w===null?(c.next=c,$m(g)):(c.next=w.next,w.next=c),g.interleaved=c,Xo(i,p)}function Hd(i,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var g=c.lanes;g&=i.pendingLanes,p|=g,c.lanes=p,Bh(i,p)}}function Gw(i,c){var p=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var w=null,S=null;if(p=p.firstBaseUpdate,p!==null){do{var N={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};S===null?w=S=N:S=S.next=N,p=p.next}while(p!==null);S===null?w=S=c:S=S.next=c}else w=S=c;p={baseState:g.baseState,firstBaseUpdate:w,lastBaseUpdate:S,shared:g.shared,effects:g.effects},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=c:i.next=c,p.lastBaseUpdate=c}function Vd(i,c,p,g){var w=i.updateQueue;Ta=!1;var S=w.firstBaseUpdate,N=w.lastBaseUpdate,L=w.shared.pending;if(L!==null){w.shared.pending=null;var W=L,Q=W.next;W.next=null,N===null?S=Q:N.next=Q,N=W;var ce=i.alternate;ce!==null&&(ce=ce.updateQueue,L=ce.lastBaseUpdate,L!==N&&(L===null?ce.firstBaseUpdate=Q:L.next=Q,ce.lastBaseUpdate=W))}if(S!==null){var de=w.baseState;N=0,ce=Q=W=null,L=S;do{var se=L.lane,Ce=L.eventTime;if((g&se)===se){ce!==null&&(ce=ce.next={eventTime:Ce,lane:0,tag:L.tag,payload:L.payload,callback:L.callback,next:null});e:{var Me=i,Ne=L;switch(se=c,Ce=p,Ne.tag){case 1:if(Me=Ne.payload,typeof Me=="function"){de=Me.call(Ce,de,se);break e}de=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Ne.payload,se=typeof Me=="function"?Me.call(Ce,de,se):Me,se==null)break e;de=ee({},de,se);break e;case 2:Ta=!0}}L.callback!==null&&L.lane!==0&&(i.flags|=64,se=w.effects,se===null?w.effects=[L]:se.push(L))}else Ce={eventTime:Ce,lane:se,tag:L.tag,payload:L.payload,callback:L.callback,next:null},ce===null?(Q=ce=Ce,W=de):ce=ce.next=Ce,N|=se;if(L=L.next,L===null){if(L=w.shared.pending,L===null)break;se=L,L=se.next,se.next=null,w.lastBaseUpdate=se,w.shared.pending=null}}while(!0);if(ce===null&&(W=de),w.baseState=W,w.firstBaseUpdate=Q,w.lastBaseUpdate=ce,c=w.shared.interleaved,c!==null){w=c;do N|=w.lane,w=w.next;while(w!==c)}else S===null&&(w.shared.lanes=0);vi|=N,i.lanes=N,i.memoizedState=de}}function Xw(i,c,p){if(i=c.effects,c.effects=null,i!==null)for(c=0;cp?p:4,i(!0);var g=Mm.transition;Mm.transition={};try{i(!1),c()}finally{Rt=p,Mm.transition=g}}function fS(){return Nn().memoizedState}function FO(i,c,p){var g=Aa(i);if(p={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null},hS(i))mS(c,p);else if(p=Hw(i,c,p,g),p!==null){var w=Vr();Qn(p,i,g,w),_S(p,c,g)}}function BO(i,c,p){var g=Aa(i),w={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null};if(hS(i))mS(c,w);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=c.lastRenderedReducer,S!==null))try{var N=c.lastRenderedState,L=S(N,p);if(w.hasEagerState=!0,w.eagerState=L,Xn(L,N)){var W=c.interleaved;W===null?(w.next=w,$m(c)):(w.next=W.next,W.next=w),c.interleaved=w;return}}catch{}p=Hw(i,c,w,g),p!==null&&(w=Vr(),Qn(p,i,g,w),_S(p,c,g))}}function hS(i){var c=i.alternate;return i===Zt||c!==null&&c===Zt}function mS(i,c){kl=Jd=!0;var p=i.pending;p===null?c.next=c:(c.next=p.next,p.next=c),i.pending=c}function _S(i,c,p){if((p&4194240)!==0){var g=c.lanes;g&=i.pendingLanes,p|=g,c.lanes=p,Bh(i,p)}}var Zd={readContext:An,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},WO={readContext:An,useCallback:function(i,c){return bo().memoizedState=[i,c===void 0?null:c],i},useContext:An,useEffect:aS,useImperativeHandle:function(i,c,p){return p=p!=null?p.concat([i]):null,Yd(4194308,4,cS.bind(null,c,i),p)},useLayoutEffect:function(i,c){return Yd(4194308,4,i,c)},useInsertionEffect:function(i,c){return Yd(4,2,i,c)},useMemo:function(i,c){var p=bo();return c=c===void 0?null:c,i=i(),p.memoizedState=[i,c],i},useReducer:function(i,c,p){var g=bo();return c=p!==void 0?p(c):c,g.memoizedState=g.baseState=c,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:c},g.queue=i,i=i.dispatch=FO.bind(null,Zt,i),[g.memoizedState,i]},useRef:function(i){var c=bo();return i={current:i},c.memoizedState=i},useState:nS,useDebugValue:Lm,useDeferredValue:function(i){return bo().memoizedState=i},useTransition:function(){var i=nS(!1),c=i[0];return i=LO.bind(null,i[1]),bo().memoizedState=i,[c,i]},useMutableSource:function(){},useSyncExternalStore:function(i,c,p){var g=Zt,w=bo();if(Vt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),xr===null)throw Error(r(349));(yi&30)!==0||Zw(g,c,p)}w.memoizedState=p;var S={value:p,getSnapshot:c};return w.queue=S,aS(eS.bind(null,g,S,i),[i]),g.flags|=2048,El(9,Qw.bind(null,g,S,p,c),void 0,null),p},useId:function(){var i=bo(),c=xr.identifierPrefix;if(Vt){var p=Go,g=Vo;p=(g&~(1<<32-Gn(g)-1)).toString(32)+p,c=":"+c+"R"+p,p=Cl++,0<\/script>",i=i.removeChild(i.firstChild)):typeof g.is=="string"?i=N.createElement(p,{is:g.is}):(i=N.createElement(p),p==="select"&&(N=i,g.multiple?N.multiple=!0:g.size&&(N.size=g.size))):i=N.createElementNS(i,p),i[yo]=c,i[yl]=g,IS(i,c,!1,!1),c.stateNode=i;e:{switch(N=br(p,g),p){case"dialog":Ft("cancel",i),Ft("close",i),w=g;break;case"iframe":case"object":case"embed":Ft("load",i),w=g;break;case"video":case"audio":for(w=0;wjs&&(c.flags|=128,g=!0,Tl(S,!1),c.lanes=4194304)}else{if(!g)if(i=Gd(N),i!==null){if(c.flags|=128,g=!0,p=i.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),Tl(S,!0),S.tail===null&&S.tailMode==="hidden"&&!N.alternate&&!Vt)return Ir(c),null}else 2*ir()-S.renderingStartTime>js&&p!==1073741824&&(c.flags|=128,g=!0,Tl(S,!1),c.lanes=4194304);S.isBackwards?(N.sibling=c.child,c.child=N):(p=S.last,p!==null?p.sibling=N:c.child=N,S.last=N)}return S.tail!==null?(c=S.tail,S.rendering=c,S.tail=c.sibling,S.renderingStartTime=ir(),c.sibling=null,p=Kt.current,It(Kt,g?p&1|2:p&1),c):(Ir(c),null);case 22:case 23:return l_(),g=c.memoizedState!==null,i!==null&&i.memoizedState!==null!==g&&(c.flags|=8192),g&&(c.mode&1)!==0?(vn&1073741824)!==0&&(Ir(c),c.subtreeFlags&6&&(c.flags|=8192)):Ir(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function YO(i,c){switch(ym(c),c.tag){case 1:return Qr(c.type)&&Id(),i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 3:return As(),Bt(Zr),Bt(Nr),Rm(),i=c.flags,(i&65536)!==0&&(i&128)===0?(c.flags=i&-65537|128,c):null;case 5:return Om(c),null;case 13:if(Bt(Kt),i=c.memoizedState,i!==null&&i.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Os()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 19:return Bt(Kt),null;case 4:return As(),null;case 10:return km(c.type._context),null;case 22:case 23:return l_(),null;case 24:return null;default:return null}}var rp=!1,jr=!1,KO=typeof WeakSet=="function"?WeakSet:Set,De=null;function Ps(i,c){var p=i.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(g){rr(i,c,g)}else p.current=null}function Km(i,c,p){try{p()}catch(g){rr(i,c,g)}}var LS=!1;function ZO(i,c){if(lm=Sd,i=gw(),tm(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var w=g.anchorOffset,S=g.focusNode;g=g.focusOffset;try{p.nodeType,S.nodeType}catch{p=null;break e}var N=0,L=-1,W=-1,Q=0,ce=0,de=i,se=null;t:for(;;){for(var Ce;de!==p||w!==0&&de.nodeType!==3||(L=N+w),de!==S||g!==0&&de.nodeType!==3||(W=N+g),de.nodeType===3&&(N+=de.nodeValue.length),(Ce=de.firstChild)!==null;)se=de,de=Ce;for(;;){if(de===i)break t;if(se===p&&++Q===w&&(L=N),se===S&&++ce===g&&(W=N),(Ce=de.nextSibling)!==null)break;de=se,se=de.parentNode}de=Ce}p=L===-1||W===-1?null:{start:L,end:W}}else p=null}p=p||{start:0,end:0}}else p=null;for(um={focusedElem:i,selectionRange:p},Sd=!1,De=c;De!==null;)if(c=De,i=c.child,(c.subtreeFlags&1028)!==0&&i!==null)i.return=c,De=i;else for(;De!==null;){c=De;try{var Me=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(Me!==null){var Ne=Me.memoizedProps,sr=Me.memoizedState,J=c.stateNode,V=J.getSnapshotBeforeUpdate(c.elementType===c.type?Ne:Yn(c.type,Ne),sr);J.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var Y=c.stateNode.containerInfo;Y.nodeType===1?Y.textContent="":Y.nodeType===9&&Y.documentElement&&Y.removeChild(Y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(me){rr(c,c.return,me)}if(i=c.sibling,i!==null){i.return=c.return,De=i;break}De=c.return}return Me=LS,LS=!1,Me}function Ol(i,c,p){var g=c.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var w=g=g.next;do{if((w.tag&i)===i){var S=w.destroy;w.destroy=void 0,S!==void 0&&Km(c,p,S)}w=w.next}while(w!==g)}}function np(i,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&i)===i){var g=p.create;p.destroy=g()}p=p.next}while(p!==c)}}function Zm(i){var c=i.ref;if(c!==null){var p=i.stateNode;i.tag,i=p,typeof c=="function"?c(i):c.current=i}}function FS(i){var c=i.alternate;c!==null&&(i.alternate=null,FS(c)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(c=i.stateNode,c!==null&&(delete c[yo],delete c[yl],delete c[hm],delete c[NO],delete c[PO])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function BS(i){return i.tag===5||i.tag===3||i.tag===4}function WS(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||BS(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Qm(i,c,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(i,c):p.insertBefore(i,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(i,p)):(c=p,c.appendChild(i)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Nd));else if(g!==4&&(i=i.child,i!==null))for(Qm(i,c,p),i=i.sibling;i!==null;)Qm(i,c,p),i=i.sibling}function e_(i,c,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,c?p.insertBefore(i,c):p.appendChild(i);else if(g!==4&&(i=i.child,i!==null))for(e_(i,c,p),i=i.sibling;i!==null;)e_(i,c,p),i=i.sibling}var Er=null,Kn=!1;function Da(i,c,p){for(p=p.child;p!==null;)US(i,c,p),p=p.sibling}function US(i,c,p){if(go&&typeof go.onCommitFiberUnmount=="function")try{go.onCommitFiberUnmount(_d,p)}catch{}switch(p.tag){case 5:jr||Ps(p,c);case 6:var g=Er,w=Kn;Er=null,Da(i,c,p),Er=g,Kn=w,Er!==null&&(Kn?(i=Er,p=p.stateNode,i.nodeType===8?i.parentNode.removeChild(p):i.removeChild(p)):Er.removeChild(p.stateNode));break;case 18:Er!==null&&(Kn?(i=Er,p=p.stateNode,i.nodeType===8?fm(i.parentNode,p):i.nodeType===1&&fm(i,p),sl(i)):fm(Er,p.stateNode));break;case 4:g=Er,w=Kn,Er=p.stateNode.containerInfo,Kn=!0,Da(i,c,p),Er=g,Kn=w;break;case 0:case 11:case 14:case 15:if(!jr&&(g=p.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){w=g=g.next;do{var S=w,N=S.destroy;S=S.tag,N!==void 0&&((S&2)!==0||(S&4)!==0)&&Km(p,c,N),w=w.next}while(w!==g)}Da(i,c,p);break;case 1:if(!jr&&(Ps(p,c),g=p.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=p.memoizedProps,g.state=p.memoizedState,g.componentWillUnmount()}catch(L){rr(p,c,L)}Da(i,c,p);break;case 21:Da(i,c,p);break;case 22:p.mode&1?(jr=(g=jr)||p.memoizedState!==null,Da(i,c,p),jr=g):Da(i,c,p);break;default:Da(i,c,p)}}function qS(i){var c=i.updateQueue;if(c!==null){i.updateQueue=null;var p=i.stateNode;p===null&&(p=i.stateNode=new KO),c.forEach(function(g){var w=sD.bind(null,i,g);p.has(g)||(p.add(g),g.then(w,w))})}}function Zn(i,c){var p=c.deletions;if(p!==null)for(var g=0;gw&&(w=N),g&=~S}if(g=w,g=ir()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*eD(g/1960))-g,10i?16:i,Ma===null)var g=!1;else{if(i=Ma,Ma=null,cp=0,(wt&6)!==0)throw Error(r(331));var w=wt;for(wt|=4,De=i.current;De!==null;){var S=De,N=S.child;if((De.flags&16)!==0){var L=S.deletions;if(L!==null){for(var W=0;Wir()-n_?wi(i,0):r_|=p),rn(i,c)}function n5(i,c){c===0&&((i.mode&1)===0?c=1:(c=yd,yd<<=1,(yd&130023424)===0&&(yd=4194304)));var p=Vr();i=Xo(i,c),i!==null&&(rl(i,c,p),rn(i,p))}function iD(i){var c=i.memoizedState,p=0;c!==null&&(p=c.retryLane),n5(i,p)}function sD(i,c){var p=0;switch(i.tag){case 13:var g=i.stateNode,w=i.memoizedState;w!==null&&(p=w.retryLane);break;case 19:g=i.stateNode;break;default:throw Error(r(314))}g!==null&&g.delete(c),n5(i,p)}var o5;o5=function(i,c,p){if(i!==null)if(i.memoizedProps!==c.pendingProps||Zr.current)en=!0;else{if((i.lanes&p)===0&&(c.flags&128)===0)return en=!1,XO(i,c,p);en=(i.flags&131072)!==0}else en=!1,Vt&&(c.flags&1048576)!==0&&jw(c,Fd,c.index);switch(c.lanes=0,c.tag){case 2:var g=c.type;tp(i,c),i=c.pendingProps;var w=$s(c,Nr.current);Ms(c,p),w=Nm(null,c,g,i,w,p);var S=Pm();return c.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Qr(g)?(S=!0,jd(c)):S=!1,c.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,Em(c),w.updater=Qd,c.stateNode=w,w._reactInternals=c,Bm(c,g,i,p),c=Hm(null,c,g,!0,S,p)):(c.tag=0,Vt&&S&&gm(c),Hr(null,c,w,p),c=c.child),c;case 16:g=c.elementType;e:{switch(tp(i,c),i=c.pendingProps,w=g._init,g=w(g._payload),c.type=g,w=c.tag=lD(g),i=Yn(g,i),w){case 0:c=qm(null,c,g,i,p);break e;case 1:c=DS(null,c,g,i,p);break e;case 11:c=CS(null,c,g,i,p);break e;case 14:c=$S(null,c,g,Yn(g.type,i),p);break e}throw Error(r(306,g,""))}return c;case 0:return g=c.type,w=c.pendingProps,w=c.elementType===g?w:Yn(g,w),qm(i,c,g,w,p);case 1:return g=c.type,w=c.pendingProps,w=c.elementType===g?w:Yn(g,w),DS(i,c,g,w,p);case 3:e:{if(RS(c),i===null)throw Error(r(387));g=c.pendingProps,S=c.memoizedState,w=S.element,Vw(i,c),Vd(c,g,null,p);var N=c.memoizedState;if(g=N.element,S.isDehydrated)if(S={element:g,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},c.updateQueue.baseState=S,c.memoizedState=S,c.flags&256){w=Ns(Error(r(423)),c),c=MS(i,c,g,p,w);break e}else if(g!==w){w=Ns(Error(r(424)),c),c=MS(i,c,g,p,w);break e}else for(yn=ka(c.stateNode.containerInfo.firstChild),gn=c,Vt=!0,Jn=null,p=qw(c,null,g,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Os(),g===w){c=Yo(i,c,p);break e}Hr(i,c,g,p)}c=c.child}return c;case 5:return Jw(c),i===null&&bm(c),g=c.type,w=c.pendingProps,S=i!==null?i.memoizedProps:null,N=w.children,dm(g,w)?N=null:S!==null&&dm(g,S)&&(c.flags|=32),OS(i,c),Hr(i,c,N,p),c.child;case 6:return i===null&&bm(c),null;case 13:return AS(i,c,p);case 4:return Tm(c,c.stateNode.containerInfo),g=c.pendingProps,i===null?c.child=Ds(c,null,g,p):Hr(i,c,g,p),c.child;case 11:return g=c.type,w=c.pendingProps,w=c.elementType===g?w:Yn(g,w),CS(i,c,g,w,p);case 7:return Hr(i,c,c.pendingProps,p),c.child;case 8:return Hr(i,c,c.pendingProps.children,p),c.child;case 12:return Hr(i,c,c.pendingProps.children,p),c.child;case 10:e:{if(g=c.type._context,w=c.pendingProps,S=c.memoizedProps,N=w.value,It(Ud,g._currentValue),g._currentValue=N,S!==null)if(Xn(S.value,N)){if(S.children===w.children&&!Zr.current){c=Yo(i,c,p);break e}}else for(S=c.child,S!==null&&(S.return=c);S!==null;){var L=S.dependencies;if(L!==null){N=S.child;for(var W=L.firstContext;W!==null;){if(W.context===g){if(S.tag===1){W=Jo(-1,p&-p),W.tag=2;var Q=S.updateQueue;if(Q!==null){Q=Q.shared;var ce=Q.pending;ce===null?W.next=W:(W.next=ce.next,ce.next=W),Q.pending=W}}S.lanes|=p,W=S.alternate,W!==null&&(W.lanes|=p),Cm(S.return,p,c),L.lanes|=p;break}W=W.next}}else if(S.tag===10)N=S.type===c.type?null:S.child;else if(S.tag===18){if(N=S.return,N===null)throw Error(r(341));N.lanes|=p,L=N.alternate,L!==null&&(L.lanes|=p),Cm(N,p,c),N=S.sibling}else N=S.child;if(N!==null)N.return=S;else for(N=S;N!==null;){if(N===c){N=null;break}if(S=N.sibling,S!==null){S.return=N.return,N=S;break}N=N.return}S=N}Hr(i,c,w.children,p),c=c.child}return c;case 9:return w=c.type,g=c.pendingProps.children,Ms(c,p),w=An(w),g=g(w),c.flags|=1,Hr(i,c,g,p),c.child;case 14:return g=c.type,w=Yn(g,c.pendingProps),w=Yn(g.type,w),$S(i,c,g,w,p);case 15:return ES(i,c,c.type,c.pendingProps,p);case 17:return g=c.type,w=c.pendingProps,w=c.elementType===g?w:Yn(g,w),tp(i,c),c.tag=1,Qr(g)?(i=!0,jd(c)):i=!1,Ms(c,p),yS(c,g,w),Bm(c,g,w,p),Hm(null,c,g,!0,i,p);case 19:return PS(i,c,p);case 22:return TS(i,c,p)}throw Error(r(156,c.tag))};function a5(i,c){return z2(i,c)}function cD(i,c,p,g){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(i,c,p,g){return new cD(i,c,p,g)}function d_(i){return i=i.prototype,!(!i||!i.isReactComponent)}function lD(i){if(typeof i=="function")return d_(i)?1:0;if(i!=null){if(i=i.$$typeof,i===B)return 11;if(i===U)return 14}return 2}function Pa(i,c){var p=i.alternate;return p===null?(p=In(i.tag,c,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=c,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&14680064,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,c=i.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p}function pp(i,c,p,g,w,S){var N=2;if(g=i,typeof i=="function")d_(i)&&(N=1);else if(typeof i=="string")N=5;else e:switch(i){case A:return xi(p.children,w,S,c);case I:N=8,w|=8;break;case P:return i=In(12,p,c,w|2),i.elementType=P,i.lanes=S,i;case q:return i=In(13,p,c,w),i.elementType=q,i.lanes=S,i;case H:return i=In(19,p,c,w),i.elementType=H,i.lanes=S,i;case re:return fp(p,w,S,c);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case $:N=10;break e;case z:N=9;break e;case B:N=11;break e;case U:N=14;break e;case X:N=16,g=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return c=In(N,p,c,w),c.elementType=i,c.type=g,c.lanes=S,c}function xi(i,c,p,g){return i=In(7,i,g,c),i.lanes=p,i}function fp(i,c,p,g){return i=In(22,i,g,c),i.elementType=re,i.lanes=p,i.stateNode={isHidden:!1},i}function p_(i,c,p){return i=In(6,i,null,c),i.lanes=p,i}function f_(i,c,p){return c=In(4,i.children!==null?i.children:[],i.key,c),c.lanes=p,c.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},c}function uD(i,c,p,g,w){this.tag=c,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fh(0),this.expirationTimes=Fh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fh(0),this.identifierPrefix=g,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function h_(i,c,p,g,w,S,N,L,W){return i=new uD(i,c,p,L,W),c===1?(c=1,S===!0&&(c|=8)):c=0,S=In(3,null,null,c),i.current=S,S.stateNode=i,S.memoizedState={element:g,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Em(S),i}function dD(i,c,p){var g=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),b_.exports=kD(),b_.exports}var v5;function CD(){if(v5)return wp;v5=1;var t=mE();return wp.createRoot=t.createRoot,wp.hydrateRoot=t.hydrateRoot,wp}var $D=CD();function ua(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const ao="$$material";function ff(){return ff=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Rr(Wc,--pn):0,Rc--,pr===10&&(Rc=1,Uf--),pr}function $n(){return pr=pn2||$u(pr)>3?"":" "}function LD(t,e){for(;--e&&$n()&&!(pr<48||pr>102||pr>57&&pr<65||pr>70&&pr<97););return Hu(t,Qp()+(e<6&&Mo()==32&&$n()==32))}function $v(t){for(;$n();)switch(pr){case t:return pn;case 34:case 39:t!==34&&t!==39&&$v(pr);break;case 40:t===41&&$v(t);break;case 92:$n();break}return pn}function FD(t,e){for(;$n()&&t+pr!==57;)if(t+pr===84&&Mo()===47)break;return"/*"+Hu(e,pn-1)+"*"+Wf(t===47?t:$n())}function BD(t){for(;!$u(Mo());)$n();return Hu(t,pn)}function WD(t){return SE(tf("",null,null,null,[""],t=wE(t),0,[0],t))}function tf(t,e,r,n,o,a,s,l,u){for(var f=0,h=0,d=s,m=0,y=0,v=0,b=1,x=1,C=1,D=0,O="",R=o,M=a,E=n,A=O;x;)switch(v=D,D=$n()){case 40:if(v!=108&&Rr(A,d-1)==58){Cv(A+=$t(ef(D),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:A+=ef(D);break;case 9:case 10:case 13:case 32:A+=zD(v);break;case 92:A+=LD(Qp()-1,7);continue;case 47:switch(Mo()){case 42:case 47:Sp(UD(FD($n(),Qp()),e,r),u);break;default:A+="/"}break;case 123*b:l[f++]=$o(A)*C;case 125*b:case 59:case 0:switch(D){case 0:case 125:x=0;case 59+h:C==-1&&(A=$t(A,/\f/g,"")),y>0&&$o(A)-d&&Sp(y>32?w5(A+";",n,r,d-1):w5($t(A," ","")+";",n,r,d-2),u);break;case 59:A+=";";default:if(Sp(E=b5(A,e,r,f,h,o,l,O,R=[],M=[],d),a),D===123)if(h===0)tf(A,e,E,E,R,a,d,l,M);else switch(m===99&&Rr(A,3)===110?100:m){case 100:case 108:case 109:case 115:tf(t,E,E,n&&Sp(b5(t,E,E,0,0,o,l,O,o,R=[],d),M),o,M,d,l,n?R:M);break;default:tf(A,E,E,E,[""],M,0,l,M)}}f=h=y=0,b=C=1,O=A="",d=s;break;case 58:d=1+$o(A),y=v;default:if(b<1){if(D==123)--b;else if(D==125&&b++==0&&jD()==125)continue}switch(A+=Wf(D),D*b){case 38:C=h>0?1:(A+="\f",-1);break;case 44:l[f++]=($o(A)-1)*C,C=1;break;case 64:Mo()===45&&(A+=ef($n())),m=Mo(),h=d=$o(O=A+=BD(Qp())),D++;break;case 45:v===45&&$o(A)==2&&(b=0)}}return a}function b5(t,e,r,n,o,a,s,l,u,f,h){for(var d=o-1,m=o===0?a:[""],y=F1(m),v=0,b=0,x=0;v0?m[C]+" "+D:$t(D,/&\f/g,m[C])))&&(u[x++]=O);return qf(t,e,r,o===0?z1:l,u,f,h)}function UD(t,e,r){return qf(t,e,r,gE,Wf(ID()),Cu(t,2,-2),0)}function w5(t,e,r,n){return qf(t,e,r,L1,Cu(t,0,n),Cu(t,n+1,-1),n)}function $c(t,e){for(var r="",n=F1(t),o=0;o6)switch(Rr(t,e+1)){case 109:if(Rr(t,e+4)!==45)break;case 102:return $t(t,/(.+:)(.+)-([^]+)/,"$1"+Ct+"$2-$3$1"+hf+(Rr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Cv(t,"stretch")?kE($t(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Rr(t,e+1)!==115)break;case 6444:switch(Rr(t,$o(t)-3-(~Cv(t,"!important")&&10))){case 107:return $t(t,":",":"+Ct)+t;case 101:return $t(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ct+(Rr(t,14)===45?"inline-":"")+"box$3$1"+Ct+"$2$3$1"+Lr+"$2box$3")+t}break;case 5936:switch(Rr(t,e+11)){case 114:return Ct+t+Lr+$t(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ct+t+Lr+$t(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ct+t+Lr+$t(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ct+t+Lr+t+t}return t}var ZD=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case L1:e.return=kE(e.value,e.length);break;case yE:return $c([Pl(e,{value:$t(e.value,"@","@"+Ct)})],o);case z1:if(e.length)return PD(e.props,function(a){switch(ND(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $c([Pl(e,{props:[$t(a,/:(read-\w+)/,":"+hf+"$1")]})],o);case"::placeholder":return $c([Pl(e,{props:[$t(a,/:(plac\w+)/,":"+Ct+"input-$1")]}),Pl(e,{props:[$t(a,/:(plac\w+)/,":"+hf+"$1")]}),Pl(e,{props:[$t(a,/:(plac\w+)/,Lr+"input-$1")]})],o)}return""})}},QD=[ZD],CE=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=e.stylisPlugins||QD,a={},s,l=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),C=1;C=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var aR={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},iR=/[A-Z]|^ms/g,sR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,EE=function(e){return e.charCodeAt(1)===45},$5=function(e){return e!=null&&typeof e!="boolean"},C_=xE(function(t){return EE(t)?t:t.replace(iR,"-$&").toLowerCase()}),E5=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(sR,function(n,o,a){return Eo={name:o,styles:a,next:Eo},o})}return aR[e]!==1&&!EE(e)&&typeof r=="number"&&r!==0?r+"px":r};function Eu(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Eo={name:o.name,styles:o.styles,next:Eo},o.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Eo={name:s.name,styles:s.styles,next:Eo},s=s.next;var l=a.styles+";";return l}return cR(t,e,r)}case"function":{if(t!==void 0){var u=Eo,f=r(t);return Eo=u,Eu(t,e,f)}break}}var h=r;if(e==null)return h;var d=e[h];return d!==void 0?d:h}function cR(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?yR:vR},M5=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(s){return e.__emotion_forwardProp(s)&&a(s)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},bR=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return B1(r,n,o),OE(function(){return W1(r,n,o)}),null},wR=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,s;r!==void 0&&(a=r.label,s=r.target);var l=M5(e,r,n),u=l||R5(o),f=!u("as");return function(){var h=arguments,d=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)d.push.apply(d,h);else{var m=h[0];d.push(m[0]);for(var y=h.length,v=1;v{const r=CE(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let Wa;if(typeof document=="object"&&(Wa=document.querySelector('[name="emotion-insertion-point"]'),!Wa)){Wa=document.createElement("meta"),Wa.setAttribute("name","emotion-insertion-point"),Wa.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(Wa)}function TR(t,e){if(t||e){class r extends _E{insert(a,s){return this.key&&this.key.endsWith("global")&&(this.before=Wa),super.insert(a,s)}}const n=ER({key:"css",insertionPoint:t?Wa:void 0},r);if(e){const o=n.insert;n.insert=(...a)=>(a[1].styles.match(/^@layer\s+[^{]*$/)||(a[1].styles=`@layer mui {${a[1].styles}}`),o(...a))}return n}}function I5(t){const{injectFirst:e,enableCssLayer:r,children:n}=t,o=T.useMemo(()=>{const a=`${e}-${r}`;if(typeof document=="object"&&O_.has(a))return O_.get(a);const s=TR(e,r);return O_.set(a,s),s},[e,r]);return o?k.jsx(uR,{value:o,children:n}):n}function OR(t){return t==null||Object.keys(t).length===0}function RE(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(OR(o)?r:o):e;return k.jsx(mR,{styles:n})}function ME(t,e){return Tv(t,e)}function DR(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const j5=[];function Xa(t){return j5[0]=t,Vu(j5)}var D_={exports:{}},Mt={};var z5;function RR(){if(z5)return Mt;z5=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function v(b){if(typeof b=="object"&&b!==null){var x=b.$$typeof;switch(x){case t:switch(b=b.type,b){case r:case o:case n:case u:case f:case m:return b;default:switch(b=b&&b.$$typeof,b){case s:case l:case d:case h:return b;case a:return b;default:return x}}case e:return x}}}return Mt.ContextConsumer=a,Mt.ContextProvider=s,Mt.Element=t,Mt.ForwardRef=l,Mt.Fragment=r,Mt.Lazy=d,Mt.Memo=h,Mt.Portal=e,Mt.Profiler=o,Mt.StrictMode=n,Mt.Suspense=u,Mt.SuspenseList=f,Mt.isContextConsumer=function(b){return v(b)===a},Mt.isContextProvider=function(b){return v(b)===s},Mt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Mt.isForwardRef=function(b){return v(b)===l},Mt.isFragment=function(b){return v(b)===r},Mt.isLazy=function(b){return v(b)===d},Mt.isMemo=function(b){return v(b)===h},Mt.isPortal=function(b){return v(b)===e},Mt.isProfiler=function(b){return v(b)===o},Mt.isStrictMode=function(b){return v(b)===n},Mt.isSuspense=function(b){return v(b)===u},Mt.isSuspenseList=function(b){return v(b)===f},Mt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===u||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===h||b.$$typeof===s||b.$$typeof===a||b.$$typeof===l||b.$$typeof===y||b.getModuleId!==void 0)},Mt.typeOf=v,Mt}var L5;function MR(){return L5||(L5=1,D_.exports=RR()),D_.exports}var AE=MR();function Do(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function NE(t){if(T.isValidElement(t)||AE.isValidElementType(t)||!Do(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=NE(t[r])}),e}function Ur(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return Do(t)&&Do(e)&&Object.keys(e).forEach(o=>{T.isValidElement(e[o])||AE.isValidElementType(e[o])?n[o]=e[o]:Do(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Do(t[o])?n[o]=Ur(t[o],e[o],r):r.clone?n[o]=Do(e[o])?NE(e[o]):e[o]:n[o]=e[o]}),n}const AR=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function NR(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,a=AR(e),s=Object.keys(a);function l(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r})`}function u(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-n/100}${r})`}function f(m,y){const v=s.indexOf(y);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r}) and (max-width:${(v!==-1&&typeof e[s[v]]=="number"?e[s[v]]:y)-n/100}${r})`}function h(m){return s.indexOf(m)+1n.startsWith("@container")).sort((n,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return r.length?r.reduce((n,o)=>{const a=e[o];return delete n[o],n[o]=a,n},{...e}):e}function PR(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function IR(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(a)}function jR(t){const e=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function r(a,s){a.up=(...l)=>e(t.breakpoints.up(...l),s),a.down=(...l)=>e(t.breakpoints.down(...l),s),a.between=(...l)=>e(t.breakpoints.between(...l),s),a.only=(...l)=>e(t.breakpoints.only(...l),s),a.not=(...l)=>{const u=e(t.breakpoints.not(...l),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=a=>(r(n,a),n);return r(o),{...t,containerQueries:o}}const zR={borderRadius:4};function hu(t,e){return e?Ur(t,e,{clone:!1}):t}const Hf={xs:0,sm:600,md:900,lg:1200,xl:1536},B5={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Hf[t]}px)`},LR={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Hf[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function da(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||B5;return e.reduce((s,l,u)=>(s[a.up(a.keys[u])]=r(e[u]),s),{})}if(typeof e=="object"){const a=n.breakpoints||B5;return Object.keys(e).reduce((s,l)=>{if(PR(a.keys,l)){const u=IR(n.containerQueries?n:LR,l);u&&(s[u]=r(e[l],l))}else if(Object.keys(a.values||Hf).includes(l)){const u=a.up(l);s[u]=r(e[l],l)}else{const u=l;s[u]=e[u]}return s},{})}return r(e)}function FR(t={}){return t.keys?.reduce((r,n)=>{const o=t.up(n);return r[o]={},r},{})||{}}function W5(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function he(t){if(typeof t!="string")throw new Error(ua(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Vf(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function mf(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=Vf(t,r)||n,e&&(o=e(o,n,t)),o}function cr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,a=s=>{if(s[e]==null)return null;const l=s[e],u=s.theme,f=Vf(u,n)||{};return da(s,l,d=>{let m=mf(f,o,d);return d===m&&typeof d=="string"&&(m=mf(f,o,`${e}${d==="default"?"":he(d)}`,d)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[e],a}function BR(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const WR={m:"margin",p:"padding"},UR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},U5={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qR=BR(t=>{if(t.length>2)if(U5[t])t=U5[t];else return[t];const[e,r]=t.split(""),n=WR[e],o=UR[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),H1=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],V1=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...H1,...V1];function Xu(t,e,r,n){const o=Vf(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),l=o[s];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function G1(t){return Xu(t,"spacing",8)}function Ju(t,e){return typeof e=="string"||e==null?e:t(e)}function HR(t,e){return r=>t.reduce((n,o)=>(n[o]=Ju(e,r),n),{})}function VR(t,e,r,n){if(!e.includes(r))return null;const o=qR(r),a=HR(o,n),s=t[r];return da(t,s,a)}function PE(t,e){const r=G1(t.theme);return Object.keys(t).map(n=>VR(t,e,n,r)).reduce(hu,{})}function nr(t){return PE(t,H1)}nr.propTypes={};nr.filterProps=H1;function or(t){return PE(t,V1)}or.propTypes={};or.filterProps=V1;function IE(t=8,e=G1({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const s=e(a);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Gf(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>e[a]?hu(o,e[a](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Fn(t){return typeof t!="number"?t:`${t}px solid`}function Vn(t,e){return cr({prop:t,themeKey:"borders",transform:e})}const GR=Vn("border",Fn),XR=Vn("borderTop",Fn),JR=Vn("borderRight",Fn),YR=Vn("borderBottom",Fn),KR=Vn("borderLeft",Fn),ZR=Vn("borderColor"),QR=Vn("borderTopColor"),eM=Vn("borderRightColor"),tM=Vn("borderBottomColor"),rM=Vn("borderLeftColor"),nM=Vn("outline",Fn),oM=Vn("outlineColor"),Xf=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Xu(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ju(e,n)});return da(t,t.borderRadius,r)}return null};Xf.propTypes={};Xf.filterProps=["borderRadius"];Gf(GR,XR,JR,YR,KR,ZR,QR,eM,tM,rM,Xf,nM,oM);const Jf=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Xu(t.theme,"spacing",8),r=n=>({gap:Ju(e,n)});return da(t,t.gap,r)}return null};Jf.propTypes={};Jf.filterProps=["gap"];const Yf=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Xu(t.theme,"spacing",8),r=n=>({columnGap:Ju(e,n)});return da(t,t.columnGap,r)}return null};Yf.propTypes={};Yf.filterProps=["columnGap"];const Kf=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Xu(t.theme,"spacing",8),r=n=>({rowGap:Ju(e,n)});return da(t,t.rowGap,r)}return null};Kf.propTypes={};Kf.filterProps=["rowGap"];const aM=cr({prop:"gridColumn"}),iM=cr({prop:"gridRow"}),sM=cr({prop:"gridAutoFlow"}),cM=cr({prop:"gridAutoColumns"}),lM=cr({prop:"gridAutoRows"}),uM=cr({prop:"gridTemplateColumns"}),dM=cr({prop:"gridTemplateRows"}),pM=cr({prop:"gridTemplateAreas"}),fM=cr({prop:"gridArea"});Gf(Jf,Yf,Kf,aM,iM,sM,cM,lM,uM,dM,pM,fM);function Ec(t,e){return e==="grey"?e:t}const hM=cr({prop:"color",themeKey:"palette",transform:Ec}),mM=cr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ec}),_M=cr({prop:"backgroundColor",themeKey:"palette",transform:Ec});Gf(hM,mM,_M);function wn(t){return t<=1&&t!==0?`${t*100}%`:t}const gM=cr({prop:"width",transform:wn}),X1=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{const n=t.theme?.breakpoints?.values?.[r]||Hf[r];return n?t.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:wn(r)}};return da(t,t.maxWidth,e)}return null};X1.filterProps=["maxWidth"];const yM=cr({prop:"minWidth",transform:wn}),vM=cr({prop:"height",transform:wn}),bM=cr({prop:"maxHeight",transform:wn}),wM=cr({prop:"minHeight",transform:wn});cr({prop:"size",cssProperty:"width",transform:wn});cr({prop:"size",cssProperty:"height",transform:wn});const SM=cr({prop:"boxSizing"});Gf(gM,X1,yM,vM,bM,wM,SM);const Yu={border:{themeKey:"borders",transform:Fn},borderTop:{themeKey:"borders",transform:Fn},borderRight:{themeKey:"borders",transform:Fn},borderBottom:{themeKey:"borders",transform:Fn},borderLeft:{themeKey:"borders",transform:Fn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xf},color:{themeKey:"palette",transform:Ec},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ec},backgroundColor:{themeKey:"palette",transform:Ec},p:{style:or},pt:{style:or},pr:{style:or},pb:{style:or},pl:{style:or},px:{style:or},py:{style:or},padding:{style:or},paddingTop:{style:or},paddingRight:{style:or},paddingBottom:{style:or},paddingLeft:{style:or},paddingX:{style:or},paddingY:{style:or},paddingInline:{style:or},paddingInlineStart:{style:or},paddingInlineEnd:{style:or},paddingBlock:{style:or},paddingBlockStart:{style:or},paddingBlockEnd:{style:or},m:{style:nr},mt:{style:nr},mr:{style:nr},mb:{style:nr},ml:{style:nr},mx:{style:nr},my:{style:nr},margin:{style:nr},marginTop:{style:nr},marginRight:{style:nr},marginBottom:{style:nr},marginLeft:{style:nr},marginX:{style:nr},marginY:{style:nr},marginInline:{style:nr},marginInlineStart:{style:nr},marginInlineEnd:{style:nr},marginBlock:{style:nr},marginBlockStart:{style:nr},marginBlockEnd:{style:nr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Jf},rowGap:{style:Kf},columnGap:{style:Yf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wn},maxWidth:{style:X1},minWidth:{transform:wn},height:{transform:wn},maxHeight:{transform:wn},minHeight:{transform:wn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function xM(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function kM(t,e){return typeof t=="function"?t(e):t}function CM(){function t(r,n,o,a){const s={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:h,style:d}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const m=Vf(o,f)||{};return d?d(s):da(s,n,v=>{let b=mf(m,h,v);return v===b&&typeof v=="string"&&(b=mf(m,h,`${r}${v==="default"?"":he(v)}`,v)),u===!1?b:{[u]:b}})}function e(r){const{sx:n,theme:o={},nested:a}=r||{};if(!n)return null;const s=o.unstable_sxConfig??Yu;function l(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const h=FR(o.breakpoints),d=Object.keys(h);let m=h;return Object.keys(f).forEach(y=>{const v=kM(f[y],o);if(v!=null)if(typeof v=="object")if(s[y])m=hu(m,t(y,v,o,s));else{const b=da({theme:o},v,x=>({[y]:x}));xM(b,v)?m[y]=e({sx:v,theme:o,nested:!0}):m=hu(m,b)}else m=hu(m,t(y,v,o,s))}),!a&&o.modularCssLayers?{"@layer sx":F5(o,W5(d,m))}:F5(o,W5(d,m))}return Array.isArray(n)?n.map(l):l(n)}return e}const Ja=CM();Ja.filterProps=["sx"];function $M(t,e){const r=this;if(r.vars){if(!r.colorSchemes?.[t]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(t);return n==="&"?e:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:e})}return r.palette.mode===t?e:{}}function Zf(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...s}=t,l=NR(r),u=IE(o);let f=Ur({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...zR,...a}},s);return f=jR(f),f.applyStyles=$M,f=e.reduce((h,d)=>Ur(h,d),f),f.unstable_sxConfig={...Yu,...s?.unstable_sxConfig},f.unstable_sx=function(d){return Ja({sx:d,theme:this})},f}function EM(t){return Object.keys(t).length===0}function Qf(t=null){const e=T.useContext(Gu);return!e||EM(e)?t:e}const TM=Zf();function Ku(t=TM){return Qf(t)}function R_(t){const e=Xa(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function jE({styles:t,themeId:e,defaultTheme:r={}}){const n=Ku(r),o=e&&n[e]||n;let a=typeof t=="function"?t(o):t;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>R_(typeof s=="function"?s(o):s)):a=R_(a)),k.jsx(RE,{styles:a})}const OM=t=>{const e={systemProps:{},otherProps:{}},r=t?.theme?.unstable_sxConfig??Yu;return Object.keys(t).forEach(n=>{r[n]?e.systemProps[n]=t[n]:e.otherProps[n]=t[n]}),e};function J1(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=OM(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...s)=>{const l=e(...s);return Do(l)?{...n,...l}:n}:a={...n,...e},{...o,sx:a}}const q5=t=>t,DM=()=>{let t=q5;return{configure(e){t=e},generate(e){return t(e)},reset(){t=q5}}},zE=DM();function LE(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;el!=="theme"&&l!=="sx"&&l!=="as"})(Ja);return T.forwardRef(function(u,f){const h=Ku(r),{className:d,component:m="div",...y}=J1(u);return k.jsx(a,{as:m,ref:f,className:ye(d,o?o(n):n),theme:e&&h[e]||h,...y})})}const MM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qe(t,e,r="Mui"){const n=MM[e];return n?`${r}-${n}`:`${zE.generate(t)}-${e}`}function We(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=qe(t,o,r)}),n}function FE(t){const{variants:e,...r}=t,n={variants:e,style:Xa(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Xa(o.style))}),n}const AM=Zf();function M_(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Li(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function NM(t){return t?(e,r)=>r[t]:null}function PM(t,e,r){t.theme=jM(t.theme)?r:t.theme[e]||t.theme}function rf(t,e,r){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>rf(t,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?Li(n.style,r):n.style;else{const{variants:a,...s}=n;o=r?Li(Xa(s),r):s}return BE(t,n.variants,[o],r)}return n?.isProcessed?r?Li(Xa(n.style),r):n.style:r?Li(Xa(n),r):n}function BE(t,e,r=[],n=void 0){let o;e:for(let a=0;a{DR(l,E=>E.filter(A=>A!==Ja));const{name:f,slot:h,skipVariantsResolver:d,skipSx:m,overridesResolver:y=NM(LM(h)),...v}=u,b=f&&f.startsWith("Mui")||h?"components":"custom",x=d!==void 0?d:h&&h!=="Root"&&h!=="root"||!1,C=m||!1;let D=M_;h==="Root"||h==="root"?D=n:h?D=o:zM(l)&&(D=void 0);const O=ME(l,{shouldForwardProp:D,label:IM(),...v}),R=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(I){return rf(I,E,I.theme.modularCssLayers?b:void 0)};if(Do(E)){const A=FE(E);return function(P){return A.variants?rf(P,A,P.theme.modularCssLayers?b:void 0):P.theme.modularCssLayers?Li(A.style,b):A.style}}return E},M=(...E)=>{const A=[],I=E.map(R),P=[];if(A.push(a),f&&y&&P.push(function(q){const U=q.theme.components?.[f]?.styleOverrides;if(!U)return null;const X={};for(const re in U)X[re]=rf(q,U[re],q.theme.modularCssLayers?"theme":void 0);return y(q,X)}),f&&!x&&P.push(function(q){const U=q.theme?.components?.[f]?.variants;return U?BE(q,U,[],q.theme.modularCssLayers?"theme":void 0):null}),C||P.push(Ja),Array.isArray(I[0])){const B=I.shift(),q=new Array(A.length).fill(""),H=new Array(P.length).fill("");let U;U=[...q,...B,...H],U.raw=[...q,...B.raw,...H],A.unshift(U)}const $=[...A,...I,...P],z=O(...$);return l.muiName&&(z.muiName=l.muiName),z};return O.withConfig&&(M.withConfig=O.withConfig),M}}function IM(t,e){return void 0}function jM(t){for(const e in t)return!1;return!0}function zM(t){return typeof t=="string"&&t.charCodeAt(0)>96}function LM(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const FM=WE();function Tu(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=n;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=t[o],s=e[o];if(!s)r[o]=a||{};else if(!a)r[o]=s;else{r[o]={...s};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;r[o][u]=Tu(a[u],s[u])}}}else r[o]===void 0&&(r[o]=t[o])}return r}function UE(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:Tu(e.components[r].defaultProps,n)}function BM({props:t,name:e,defaultTheme:r,themeId:n}){let o=Ku(r);return n&&(o=o[n]||o),UE({theme:o,name:e,props:t})}const fn=typeof window<"u"?T.useLayoutEffect:T.useEffect;function WM(t,e,r,n,o){const[a,s]=T.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return fn(()=>{if(!r)return;const l=r(t),u=()=>{s(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[t,r]),a}const UM={...pf},qE=UM.useSyncExternalStore;function qM(t,e,r,n,o){const a=T.useCallback(()=>e,[e]),s=T.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:h}=n(t);return()=>h}return a},[a,t,n,o,r]),[l,u]=T.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const h=r(t);return[()=>h.matches,d=>(h.addEventListener("change",d),()=>{h.removeEventListener("change",d)})]},[a,r,t]);return qE(u,l,s)}function HE(t={}){const{themeId:e}=t;return function(n,o={}){let a=Qf();a&&e&&(a=a[e]||a);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:u=s?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=UE({name:"MuiUseMediaQuery",props:o,theme:a});let d=typeof n=="function"?n(a):n;return d=d.replace(/^@media( ?)/m,""),d.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` +`)),(qE!==void 0?qM:WM)(d,l,u,f,h)}}HE();function HM(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function Y1(t,e=0,r=1){return HM(t,e,r)}function VM(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ya(t){if(t.type)return t;if(t.charAt(0)==="#")return Ya(VM(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(ua(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ua(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const GM=t=>{const e=Ya(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},tu=(t,e)=>{try{return GM(t)}catch{return t}};function eh(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function VE(t){t=Ya(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,a=n*Math.min(o,1-o),s=(f,h=(f+r/30)%12)=>o-a*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(l+="a",u.push(e[3])),eh({type:l,values:u})}function Ov(t){t=Ya(t);let e=t.type==="hsl"||t.type==="hsla"?Ya(VE(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function XM(t,e){const r=Ov(t),n=Ov(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Lt(t,e){return t=Ya(t),e=Y1(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,eh(t)}function xp(t,e,r){try{return Lt(t,e)}catch{return t}}function Zu(t,e){if(t=Ya(t),e=Y1(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return eh(t)}function Nt(t,e,r){try{return Zu(t,e)}catch{return t}}function Qu(t,e){if(t=Ya(t),e=Y1(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return eh(t)}function Pt(t,e,r){try{return Qu(t,e)}catch{return t}}function _f(t,e=.15){return Ov(t)>.5?Zu(t,e):Qu(t,e)}function kp(t,e,r){try{return _f(t,e)}catch{return t}}function Dv(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function th(t,e=166){let r;function n(...o){const a=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function nf(t,e){return T.isValidElement(t)&&e.indexOf(t.type.muiName??t.type?._payload?.value?.muiName)!==-1}function Mr(t){return t&&t.ownerDocument||document}function so(t){return Mr(t).defaultView||window}function H5(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let V5=0;function JM(t){const[e,r]=T.useState(t),n=t||e;return T.useEffect(()=>{e==null&&(V5+=1,r(`mui-${V5}`))},[e]),n}const YM={...pf},G5=YM.useId;function Qi(t){if(G5!==void 0){const e=G5();return t??e}return JM(t)}function gf({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=T.useRef(t!==void 0),[a,s]=T.useState(e),l=o?t:a,u=T.useCallback(f=>{o||s(f)},[]);return[l,u]}function Jr(t){const e=T.useRef(t);return fn(()=>{e.current=t}),T.useRef((...r)=>(0,e.current)(...r)).current}function vr(...t){const e=T.useRef(void 0),r=T.useCallback(n=>{const o=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(n);return typeof l=="function"?l:()=>{s(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},t);return T.useMemo(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}const X5={};function GE(t,e){const r=T.useRef(X5);return r.current===X5&&(r.current=t(e)),r}const KM=[];function ZM(t){T.useEffect(t,KM)}class rh{static create(){return new rh}currentId=null;start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fi(){const t=GE(rh.create).current;return ZM(t.disposeEffect),t}function yf(t){try{return t.matches(":focus-visible")}catch{}return!1}function XE(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function He(t,e,r=void 0){const n={};for(const o in t){const a=t[o];let s="",l=!0;for(let u=0;un.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function J5(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function YE(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=t;if(!e){const y=ye(r?.className,a,o?.className,n?.className),v={...r?.style,...o?.style,...n?.style},b={...r,...o,...n};return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const s=vf({...o,...n}),l=J5(n),u=J5(o),f=e(s),h=ye(f?.className,r?.className,a,o?.className,n?.className),d={...f?.style,...r?.style,...o?.style,...n?.style},m={...f,...r,...u,...l};return h.length>0&&(m.className=h),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:f.ref}}function KE(t,e,r){return typeof t=="function"?t(e,r):t}function Hi(t){const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=t,s=o?{}:KE(r,n),{props:l,internalRef:u}=YE({...a,externalSlotProps:s}),f=vr(u,s?.ref,t.additionalProps?.ref);return JE(e,{...l,ref:f},n)}function es(t){return parseInt(T.version,10)>=19?t?.props?.ref||null:t?.ref||null}const ZE=T.createContext(null);function K1(){return T.useContext(ZE)}const eA=typeof Symbol=="function"&&Symbol.for,tA=eA?Symbol.for("mui.nested"):"__THEME_NESTED__";function rA(t,e){return typeof e=="function"?e(t):{...t,...e}}function nA(t){const{children:e,theme:r}=t,n=K1(),o=T.useMemo(()=>{const a=n===null?{...r}:rA(n,r);return a!=null&&(a[tA]=n!==null),a},[r,n]);return k.jsx(ZE.Provider,{value:o,children:e})}const QE=T.createContext();function oA({value:t,...e}){return k.jsx(QE.Provider,{value:t??!0,...e})}const qc=()=>T.useContext(QE)??!1,eT=T.createContext(void 0);function aA({value:t,children:e}){return k.jsx(eT.Provider,{value:t,children:e})}function iA(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?Tu(o.defaultProps,n):!o.styleOverrides&&!o.variants?Tu(o,n):n}function sA({props:t,name:e}){const r=T.useContext(eT);return iA({props:t,name:e,theme:{components:r}})}function cA(t){const e=Qf(),r=Qi()||"",{modularCssLayers:n}=t;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,fn(()=>{const a=document.querySelector("head");if(!a)return;const s=a.firstChild;if(o){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===r)return;const l=document.createElement("style");l.setAttribute("data-mui-layer-order",r),l.textContent=o,a.prepend(l)}else a.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[o,r]),o?k.jsx(jE,{styles:o}):null}const Y5={};function K5(t,e,r,n=!1){return T.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const a=r(o),s=t?{...e,[t]:a}:a;return n?()=>s:s}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function tT(t){const{children:e,theme:r,themeId:n}=t,o=Qf(Y5),a=K1()||Y5,s=K5(n,o,r),l=K5(n,a,r,!0),u=(n?s[n]:s).direction==="rtl",f=cA(s);return k.jsx(nA,{theme:l,children:k.jsx(Gu.Provider,{value:s,children:k.jsx(oA,{value:u,children:k.jsxs(aA,{value:n?s[n].components:s.components,children:[f,e]})})})})}const Z5={theme:void 0};function lA(t){let e,r;return function(o){let a=e;return(a===void 0||o.theme!==r)&&(Z5.theme=o.theme,a=FE(t(Z5)),e=a,r=o.theme),a}}const Z1="mode",Q1="color-scheme",uA="data-color-scheme";function dA(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=Z1,colorSchemeStorageKey:a=Q1,attribute:s=uA,colorSchemeNode:l="document.documentElement",nonce:u}=t||{};let f="",h=s;if(s==="class"&&(h=".%s"),s==="data"&&(h="[data-%s]"),h.startsWith(".")){const m=h.substring(1);f+=`${l}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark)); + ${l}.classList.add('${m}'.replace('%s', colorScheme));`}const d=h.match(/\[([^\]]+)\]/);if(d){const[m,y]=d[1].split("=");y||(f+=`${l}.removeAttribute('${m}'.replace('%s', light)); + ${l}.removeAttribute('${m}'.replace('%s', dark));`),f+=` + ${l}.setAttribute('${m}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else f+=`${l}.setAttribute('${h}', colorScheme);`;return k.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${e}'; + const dark = localStorage.getItem('${a}-dark') || '${n}'; + const light = localStorage.getItem('${a}-light') || '${r}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${f} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function pA(){}const fA=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let n;try{n=e.localStorage.getItem(t)}catch{}return n||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return pA;const n=o=>{const a=o.newValue;o.key===t&&r(a)};return e.addEventListener("storage",n),()=>{e.removeEventListener("storage",n)}}});function A_(){}function Q5(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function rT(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function hA(t){return rT(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function mA(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=Z1,colorSchemeStorageKey:s=Q1,storageWindow:l=typeof window>"u"?void 0:window,storageManager:u=fA,noSsr:f=!1}=t,h=o.join(","),d=o.length>1,m=T.useMemo(()=>u?.({key:a,storageWindow:l}),[u,a,l]),y=T.useMemo(()=>u?.({key:`${s}-light`,storageWindow:l}),[u,s,l]),v=T.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:l}),[u,s,l]),[b,x]=T.useState(()=>{const I=m?.get(e)||e,P=y?.get(r)||r,$=v?.get(n)||n;return{mode:I,systemMode:Q5(I),lightColorScheme:P,darkColorScheme:$}}),[C,D]=T.useState(f||!d);T.useEffect(()=>{D(!0)},[]);const O=hA(b),R=T.useCallback(I=>{x(P=>{if(I===P.mode)return P;const $=I??e;return m?.set($),{...P,mode:$,systemMode:Q5($)}})},[m,e]),M=T.useCallback(I=>{I?typeof I=="string"?I&&!h.includes(I)?console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`):x(P=>{const $={...P};return rT(P,z=>{z==="light"&&(y?.set(I),$.lightColorScheme=I),z==="dark"&&(v?.set(I),$.darkColorScheme=I)}),$}):x(P=>{const $={...P},z=I.light===null?r:I.light,B=I.dark===null?n:I.dark;return z&&(h.includes(z)?($.lightColorScheme=z,y?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),B&&(h.includes(B)?($.darkColorScheme=B,v?.set(B)):console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`)),$}):x(P=>(y?.set(r),v?.set(n),{...P,lightColorScheme:r,darkColorScheme:n}))},[h,y,v,r,n]),E=T.useCallback(I=>{b.mode==="system"&&x(P=>{const $=I?.matches?"dark":"light";return P.systemMode===$?P:{...P,systemMode:$}})},[b.mode]),A=T.useRef(E);return A.current=E,T.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const I=(...$)=>A.current(...$),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(I),I(P),()=>{P.removeListener(I)}},[d]),T.useEffect(()=>{if(d){const I=m?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&R(z||e)})||A_,P=y?.subscribe(z=>{(!z||h.match(z))&&M({light:z})})||A_,$=v?.subscribe(z=>{(!z||h.match(z))&&M({dark:z})})||A_;return()=>{I(),P(),$()}}},[M,R,h,e,l,d,m,y,v]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?O:void 0,setMode:R,setColorScheme:M}}const _A="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function gA(t){const{themeId:e,theme:r={},modeStorageKey:n=Z1,colorSchemeStorageKey:o=Q1,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=t,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=T.createContext(void 0),h=()=>T.useContext(f)||u,d={},m={};function y(C){const{children:D,theme:O,modeStorageKey:R=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:E=a,storageManager:A,storageWindow:I=typeof window>"u"?void 0:window,documentNode:P=typeof document>"u"?void 0:document,colorSchemeNode:$=typeof document>"u"?void 0:document.documentElement,disableNestedContext:z=!1,disableStyleSheetGeneration:B=!1,defaultMode:q="system",noSsr:H}=C,U=T.useRef(!1),X=K1(),re=T.useContext(f),Z=!!re&&!z,G=T.useMemo(()=>O||(typeof r=="function"?r():r),[O]),ee=G[e],F=ee||G,{colorSchemes:K=d,components:ue=m,cssVarPrefix:pe}=F,oe=Object.keys(K).filter(Qe=>!!K[Qe]).join(","),fe=T.useMemo(()=>oe.split(","),[oe]),we=typeof s=="string"?s:s.light,ke=typeof s=="string"?s:s.dark,Ee=K[we]&&K[ke]?q:K[F.defaultColorScheme]?.palette?.mode||F.palette?.mode,{mode:$e,setMode:Pe,systemMode:Re,lightColorScheme:Ge,darkColorScheme:ve,colorScheme:Te,setColorScheme:_t}=mA({supportedColorSchemes:fe,defaultLightColorScheme:we,defaultDarkColorScheme:ke,modeStorageKey:R,colorSchemeStorageKey:M,defaultMode:Ee,storageManager:A,storageWindow:I,noSsr:H});let be=$e,Ae=Te;Z&&(be=re.mode,Ae=re.colorScheme);const lt=T.useMemo(()=>{const Qe=Ae||F.defaultColorScheme,ne=F.generateThemeVars?.()||F.vars,_e={...F,components:ue,colorSchemes:K,cssVarPrefix:pe,vars:ne};if(typeof _e.generateSpacing=="function"&&(_e.spacing=_e.generateSpacing()),Qe){const Ue=K[Qe];Ue&&typeof Ue=="object"&&Object.keys(Ue).forEach(Le=>{Ue[Le]&&typeof Ue[Le]=="object"?_e[Le]={..._e[Le],...Ue[Le]}:_e[Le]=Ue[Le]})}return l?l(_e):_e},[F,Ae,ue,K,pe]),tt=F.colorSchemeSelector;fn(()=>{if(Ae&&$&&tt&&tt!=="media"){const Qe=tt;let ne=tt;if(Qe==="class"&&(ne=".%s"),Qe==="data"&&(ne="[data-%s]"),Qe?.startsWith("data-")&&!Qe.includes("%s")&&(ne=`[${Qe}="%s"]`),ne.startsWith("."))$.classList.remove(...fe.map(_e=>ne.substring(1).replace("%s",_e))),$.classList.add(ne.substring(1).replace("%s",Ae));else{const _e=ne.replace("%s",Ae).match(/\[([^\]]+)\]/);if(_e){const[Ue,Le]=_e[1].split("=");Le||fe.forEach(pt=>{$.removeAttribute(Ue.replace(Ae,pt))}),$.setAttribute(Ue,Le?Le.replace(/"|'/g,""):"")}else $.setAttribute(ne,Ae)}}},[Ae,tt,$,fe]),T.useEffect(()=>{let Qe;if(E&&U.current&&P){const ne=P.createElement("style");ne.appendChild(P.createTextNode(_A)),P.head.appendChild(ne),window.getComputedStyle(P.body),Qe=setTimeout(()=>{P.head.removeChild(ne)},1)}return()=>{clearTimeout(Qe)}},[Ae,E,P]),T.useEffect(()=>(U.current=!0,()=>{U.current=!1}),[]);const Xe=T.useMemo(()=>({allColorSchemes:fe,colorScheme:Ae,darkColorScheme:ve,lightColorScheme:Ge,mode:be,setColorScheme:_t,setMode:Pe,systemMode:Re}),[fe,Ae,ve,Ge,be,_t,Pe,Re,lt.colorSchemeSelector]);let ge=!0;(B||F.cssVariables===!1||Z&&X?.cssVarPrefix===pe)&&(ge=!1);const dt=k.jsxs(T.Fragment,{children:[k.jsx(tT,{themeId:ee?e:void 0,theme:lt,children:D}),ge&&k.jsx(RE,{styles:lt.generateStyleSheets?.()||[]})]});return Z?dt:k.jsx(f.Provider,{value:Xe,children:dt})}const v=typeof s=="string"?s:s.light,b=typeof s=="string"?s:s.dark;return{CssVarsProvider:y,useColorScheme:h,getInitColorSchemeScript:C=>dA({colorSchemeStorageKey:o,defaultLightColorScheme:v,defaultDarkColorScheme:b,modeStorageKey:n,...C})}}function yA(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const ex=(t,e,r,n=[])=>{let o=t;e.forEach((a,s)=>{s===e.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},vA=(t,e,r)=>{function n(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!r||r&&!r([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,l],Array.isArray(u)?[...s,l]:s):e([...a,l],u,s))})}n(t)},bA=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function N_(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},a={},s={};return vA(t,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const h=`--${r?`${r}-`:""}${l.join("-")}`,d=bA(l,u);Object.assign(o,{[h]:d}),ex(a,l,`var(${h})`,f),ex(s,l,`var(${h}, ${d})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function wA(t,e={}){const{getSelector:r=x,disableCssColorScheme:n,colorSchemeSelector:o}=e,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...u}=t,{vars:f,css:h,varsWithDefaults:d}=N_(u,e);let m=d;const y={},{[l]:v,...b}=a;if(Object.entries(b||{}).forEach(([O,R])=>{const{vars:M,css:E,varsWithDefaults:A}=N_(R,e);m=Ur(m,A),y[O]={css:E,vars:M}}),v){const{css:O,vars:R,varsWithDefaults:M}=N_(v,e);m=Ur(m,M),y[l]={css:O,vars:R}}function x(O,R){let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),O){if(M==="media")return t.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${a[O]?.palette?.mode||O})`]:{":root":R}};if(M)return t.defaultColorScheme===O?`:root, ${M.replace("%s",String(O))}`:M.replace("%s",String(O))}return":root"}return{vars:m,generateThemeVars:()=>{let O={...f};return Object.entries(y).forEach(([,{vars:R}])=>{O=Ur(O,R)}),O},generateStyleSheets:()=>{const O=[],R=t.defaultColorScheme||"light";function M(I,P){Object.keys(P).length&&O.push(typeof I=="string"?{[I]:{...P}}:I)}M(r(void 0,{...h}),h);const{[R]:E,...A}=y;if(E){const{css:I}=E,P=a[R]?.palette?.mode,$=!n&&P?{colorScheme:P,...I}:{...I};M(r(R,{...$}),$)}return Object.entries(A).forEach(([I,{css:P}])=>{const $=a[I]?.palette?.mode,z=!n&&$?{colorScheme:$,...P}:{...P};M(r(I,{...z}),z)}),O}}}function SA(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const xA=(t,e)=>t.filter(r=>e.includes(r)),Hc=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((o,a)=>{r((s,l)=>{a<=t.keys.length-1&&(a===0?Object.assign(s,l):s[t.up(t.keys[a])]=l)},o)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:xA(t.keys,Object.keys(e))).forEach(a=>{if(t.keys.includes(a)){const s=e[a];s!==void 0&&r((l,u)=>{n===a?Object.assign(l,u):l[t.up(a)]=u},s)}}):(typeof e=="number"||typeof e=="string")&&r((o,a)=>{Object.assign(o,a)},e)};function bf(t){return`--Grid-${t}Spacing`}function nh(t){return`--Grid-parent-${t}Spacing`}const tx="--Grid-columns",Tc="--Grid-parent-columns",kA=({theme:t,ownerState:e})=>{const r={};return Hc(t.breakpoints,e.size,(n,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Tc}) - (var(${Tc}) - ${o}) * (var(${nh("column")}) / var(${Tc})))`}),n(r,a)}),r},CA=({theme:t,ownerState:e})=>{const r={};return Hc(t.breakpoints,e.offset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Tc}) + var(${nh("column")}) * ${o} / var(${Tc}))`}),n(r,a)}),r},$A=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={[tx]:12};return Hc(t.breakpoints,e.columns,(n,o)=>{const a=o??12;n(r,{[tx]:a,"> *":{[Tc]:a}})}),r},EA=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Hc(t.breakpoints,e.rowSpacing,(n,o)=>{const a=typeof o=="string"?o:t.spacing?.(o);n(r,{[bf("row")]:a,"> *":{[nh("row")]:a}})}),r},TA=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Hc(t.breakpoints,e.columnSpacing,(n,o)=>{const a=typeof o=="string"?o:t.spacing?.(o);n(r,{[bf("column")]:a,"> *":{[nh("column")]:a}})}),r},OA=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Hc(t.breakpoints,e.direction,(n,o)=>{n(r,{flexDirection:o})}),r},DA=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${bf("row")}) var(${bf("column")})`}}),RA=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},MA=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},AA=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`];function NA(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(r=>{t[r]!==void 0&&delete t[r]})}const PA=Zf(),IA=FM("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function jA(t){return BM({props:t,name:"MuiGrid",defaultTheme:PA})}function zA(t={}){const{createStyledComponent:e=IA,useThemeProps:r=jA,useTheme:n=Ku,componentName:o="MuiGrid"}=t,a=(f,h)=>{const{container:d,direction:m,spacing:y,wrap:v,size:b}=f,x={root:["root",d&&"container",v!=="wrap"&&`wrap-xs-${String(v)}`,...AA(m),...RA(b),...d?MA(y,h.breakpoints.keys[0]):[]]};return He(x,C=>qe(o,C),{})};function s(f,h,d=()=>!0){const m={};return f===null||(Array.isArray(f)?f.forEach((y,v)=>{y!==null&&d(y)&&h.keys[v]&&(m[h.keys[v]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const v=f[y];v!=null&&d(v)&&(m[y]=v)}):m[h.keys[0]]=f),m}const l=e($A,TA,EA,kA,OA,DA,CA),u=T.forwardRef(function(h,d){const m=n(),y=r(h),v=J1(y);NA(v,m.breakpoints);const{className:b,children:x,columns:C=12,container:D=!1,component:O="div",direction:R="row",wrap:M="wrap",size:E={},offset:A={},spacing:I=0,rowSpacing:P=I,columnSpacing:$=I,unstable_level:z=0,...B}=v,q=s(E,m.breakpoints,F=>F!==!1),H=s(A,m.breakpoints),U=h.columns??(z?void 0:C),X=h.spacing??(z?void 0:I),re=h.rowSpacing??h.spacing??(z?void 0:P),Z=h.columnSpacing??h.spacing??(z?void 0:$),G={...v,level:z,columns:U,container:D,direction:R,wrap:M,spacing:X,rowSpacing:re,columnSpacing:Z,size:q,offset:H},ee=a(G,m);return k.jsx(l,{ref:d,as:O,ownerState:G,className:ye(ee.root,b),...B,children:T.Children.map(x,F=>T.isValidElement(F)&&nf(F,["Grid"])&&D&&F.props.container?T.cloneElement(F,{unstable_level:F.props?.unstable_level??z+1}):F)})});return u.muiName="Grid",u}const Ou={black:"#000",white:"#fff"},Rv={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ls={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Fs={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Dr={100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Bs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ws={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Us={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function nT(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ou.white,default:Ou.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const LA=nT();function oT(){return{text:{primary:Ou.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ou.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const rx=oT();function nx(t,e,r,n){const o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=Qu(t.main,o):e==="dark"&&(t.dark=Zu(t.main,a)))}function FA(t="light"){return t==="dark"?{main:Bs[200],light:Bs[50],dark:Bs[400]}:{main:Bs[700],light:Bs[400],dark:Bs[800]}}function BA(t="light"){return t==="dark"?{main:Ls[200],light:Ls[50],dark:Ls[400]}:{main:Ls[500],light:Ls[300],dark:Ls[700]}}function WA(t="light"){return t==="dark"?{main:Fs[500],light:Fs[300],dark:Fs[700]}:{main:Fs[700],light:Fs[400],dark:Fs[800]}}function UA(t="light"){return t==="dark"?{main:Ws[400],light:Ws[300],dark:Ws[700]}:{main:Ws[700],light:Ws[500],dark:Ws[900]}}function qA(t="light"){return t==="dark"?{main:Us[400],light:Us[300],dark:Us[700]}:{main:Us[800],light:Us[500],dark:Us[900]}}function HA(t="light"){return t==="dark"?{main:Dr[400],light:Dr[300],dark:Dr[700]}:{main:"#ed6c02",light:Dr[500],dark:Dr[900]}}function eb(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=t,a=t.primary||FA(e),s=t.secondary||BA(e),l=t.error||WA(e),u=t.info||UA(e),f=t.success||qA(e),h=t.warning||HA(e);function d(b){return XM(b,rx.text.primary)>=r?rx.text.primary:LA.text.primary}const m=({color:b,name:x,mainShade:C=500,lightShade:D=300,darkShade:O=700})=>{if(b={...b},!b.main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(ua(11,x?` (${x})`:"",C));if(typeof b.main!="string")throw new Error(ua(12,x?` (${x})`:"",JSON.stringify(b.main)));return nx(b,"light",D,n),nx(b,"dark",O,n),b.contrastText||(b.contrastText=d(b.main)),b};let y;return e==="light"?y=nT():e==="dark"&&(y=oT()),Ur({common:{...Ou},mode:e,primary:m({color:a,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:h,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:f,name:"success"}),grey:Rv,contrastThreshold:r,getContrastText:d,augmentColor:m,tonalOffset:n,...y},o)}function VA(t){const e={};return Object.entries(t).forEach(n=>{const[o,a]=n;typeof a=="object"&&(e[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function GA(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function XA(t){return Math.round(t*1e5)/1e5}const ox={textTransform:"uppercase"},ax='"Roboto", "Helvetica", "Arial", sans-serif';function aT(t,e){const{fontFamily:r=ax,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:h,...d}=typeof e=="function"?e(t):e,m=n/14,y=h||(x=>`${x/u*m}rem`),v=(x,C,D,O,R)=>({fontFamily:r,fontWeight:x,fontSize:y(C),lineHeight:D,...r===ax?{letterSpacing:`${XA(O/C)}em`}:{},...R,...f}),b={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,ox),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,ox),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ur({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...b},d,{clone:!1})}const JA=.2,YA=.14,KA=.12;function Gt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${JA})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${YA})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${KA})`].join(",")}const ZA=["none",Gt(0,2,1,-1,0,1,1,0,0,1,3,0),Gt(0,3,1,-2,0,2,2,0,0,1,5,0),Gt(0,3,3,-2,0,3,4,0,0,1,8,0),Gt(0,2,4,-1,0,4,5,0,0,1,10,0),Gt(0,3,5,-1,0,5,8,0,0,1,14,0),Gt(0,3,5,-1,0,6,10,0,0,1,18,0),Gt(0,4,5,-2,0,7,10,1,0,2,16,1),Gt(0,5,5,-3,0,8,10,1,0,3,14,2),Gt(0,5,6,-3,0,9,12,1,0,3,16,2),Gt(0,6,6,-3,0,10,14,1,0,4,18,3),Gt(0,6,7,-4,0,11,15,1,0,4,20,3),Gt(0,7,8,-4,0,12,17,2,0,5,22,4),Gt(0,7,8,-4,0,13,19,2,0,5,24,4),Gt(0,7,9,-4,0,14,21,2,0,5,26,4),Gt(0,8,9,-5,0,15,22,2,0,6,28,5),Gt(0,8,10,-5,0,16,24,2,0,6,30,5),Gt(0,8,11,-5,0,17,26,2,0,6,32,5),Gt(0,9,11,-5,0,18,28,2,0,7,34,6),Gt(0,9,12,-6,0,19,29,2,0,7,36,6),Gt(0,10,13,-6,0,20,31,3,0,8,38,7),Gt(0,10,13,-6,0,21,33,3,0,8,40,7),Gt(0,10,14,-6,0,22,35,3,0,8,42,7),Gt(0,11,14,-7,0,23,36,3,0,9,44,8),Gt(0,11,15,-7,0,24,38,3,0,9,46,8)],QA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},eN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ix(t){return`${Math.round(t)}ms`}function tN(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function rN(t){const e={...QA,...t.easing},r={...eN,...t.duration};return{getAutoHeightDuration:tN,create:(o=["all"],a={})=>{const{duration:s=r.standard,easing:l=e.easeInOut,delay:u=0,...f}=a;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof s=="string"?s:ix(s)} ${l} ${typeof u=="string"?u:ix(u)}`).join(",")},...t,easing:e,duration:r}}const nN={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function oN(t){return Do(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function iT(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let a=0;aUr(y,v),m),m.unstable_sxConfig={...Yu,...f?.unstable_sxConfig},m.unstable_sx=function(v){return Ja({sx:v,theme:this})},m.toRuntimeSource=iT,m}function Av(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const aN=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=Av(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function sT(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function cT(t){return t==="dark"?aN:[]}function iN(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,a=eb(e);return{palette:a,opacity:{...sT(a.mode),...r},overlays:n||cT(a.mode),...o}}function sN(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const cN=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],lN=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const s={};return cN(t.cssVarPrefix).forEach(l=>{s[l]=r[l],delete r[l]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:a?{[a.replace("%s",e)]:s,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...s}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function uN(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function te(t,e,r){!t[e]&&r&&(t[e]=r)}function ru(t){return typeof t!="string"||!t.startsWith("hsl")?t:VE(t)}function Zo(t,e){`${e}Channel`in t||(t[`${e}Channel`]=tu(ru(t[e])))}function dN(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const So=t=>{try{return t()}catch{}},pN=(t="mui")=>yA(t);function P_(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=iN({...e,palette:{mode:o,...e?.palette}});return}const{palette:a,...s}=Mv({...r,palette:{mode:o,...e?.palette}});return t[n]={...e,palette:a,opacity:{...sT(o),...e?.opacity},overlays:e?.overlays||cT(o)},s}function fN(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=sN,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...f}=t,h=Object.keys(r)[0],d=n||(r.light&&h!=="light"?"light":h),m=pN(a),{[d]:y,light:v,dark:b,...x}=r,C={...x};let D=y;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(ua(21,d));const O=P_(C,D,f,d);v&&!C.light&&P_(C,v,void 0,"light"),b&&!C.dark&&P_(C,b,void 0,"dark");let R={defaultColorScheme:d,...O,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:m,colorSchemes:C,font:{...VA(O.typography),...O.font},spacing:dN(f.spacing)};Object.keys(R.colorSchemes).forEach(P=>{const $=R.colorSchemes[P].palette,z=B=>{const q=B.split("-"),H=q[1],U=q[2];return m(B,$[H][U])};if($.mode==="light"&&(te($.common,"background","#fff"),te($.common,"onBackground","#000")),$.mode==="dark"&&(te($.common,"background","#000"),te($.common,"onBackground","#fff")),uN($,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),$.mode==="light"){te($.Alert,"errorColor",Nt($.error.light,.6)),te($.Alert,"infoColor",Nt($.info.light,.6)),te($.Alert,"successColor",Nt($.success.light,.6)),te($.Alert,"warningColor",Nt($.warning.light,.6)),te($.Alert,"errorFilledBg",z("palette-error-main")),te($.Alert,"infoFilledBg",z("palette-info-main")),te($.Alert,"successFilledBg",z("palette-success-main")),te($.Alert,"warningFilledBg",z("palette-warning-main")),te($.Alert,"errorFilledColor",So(()=>$.getContrastText($.error.main))),te($.Alert,"infoFilledColor",So(()=>$.getContrastText($.info.main))),te($.Alert,"successFilledColor",So(()=>$.getContrastText($.success.main))),te($.Alert,"warningFilledColor",So(()=>$.getContrastText($.warning.main))),te($.Alert,"errorStandardBg",Pt($.error.light,.9)),te($.Alert,"infoStandardBg",Pt($.info.light,.9)),te($.Alert,"successStandardBg",Pt($.success.light,.9)),te($.Alert,"warningStandardBg",Pt($.warning.light,.9)),te($.Alert,"errorIconColor",z("palette-error-main")),te($.Alert,"infoIconColor",z("palette-info-main")),te($.Alert,"successIconColor",z("palette-success-main")),te($.Alert,"warningIconColor",z("palette-warning-main")),te($.AppBar,"defaultBg",z("palette-grey-100")),te($.Avatar,"defaultBg",z("palette-grey-400")),te($.Button,"inheritContainedBg",z("palette-grey-300")),te($.Button,"inheritContainedHoverBg",z("palette-grey-A100")),te($.Chip,"defaultBorder",z("palette-grey-400")),te($.Chip,"defaultAvatarColor",z("palette-grey-700")),te($.Chip,"defaultIconColor",z("palette-grey-700")),te($.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),te($.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),te($.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),te($.LinearProgress,"primaryBg",Pt($.primary.main,.62)),te($.LinearProgress,"secondaryBg",Pt($.secondary.main,.62)),te($.LinearProgress,"errorBg",Pt($.error.main,.62)),te($.LinearProgress,"infoBg",Pt($.info.main,.62)),te($.LinearProgress,"successBg",Pt($.success.main,.62)),te($.LinearProgress,"warningBg",Pt($.warning.main,.62)),te($.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.11)`),te($.Slider,"primaryTrack",Pt($.primary.main,.62)),te($.Slider,"secondaryTrack",Pt($.secondary.main,.62)),te($.Slider,"errorTrack",Pt($.error.main,.62)),te($.Slider,"infoTrack",Pt($.info.main,.62)),te($.Slider,"successTrack",Pt($.success.main,.62)),te($.Slider,"warningTrack",Pt($.warning.main,.62));const B=kp($.background.default,.8);te($.SnackbarContent,"bg",B),te($.SnackbarContent,"color",So(()=>$.getContrastText(B))),te($.SpeedDialAction,"fabHoverBg",kp($.background.paper,.15)),te($.StepConnector,"border",z("palette-grey-400")),te($.StepContent,"border",z("palette-grey-400")),te($.Switch,"defaultColor",z("palette-common-white")),te($.Switch,"defaultDisabledColor",z("palette-grey-100")),te($.Switch,"primaryDisabledColor",Pt($.primary.main,.62)),te($.Switch,"secondaryDisabledColor",Pt($.secondary.main,.62)),te($.Switch,"errorDisabledColor",Pt($.error.main,.62)),te($.Switch,"infoDisabledColor",Pt($.info.main,.62)),te($.Switch,"successDisabledColor",Pt($.success.main,.62)),te($.Switch,"warningDisabledColor",Pt($.warning.main,.62)),te($.TableCell,"border",Pt(xp($.divider,1),.88)),te($.Tooltip,"bg",xp($.grey[700],.92))}if($.mode==="dark"){te($.Alert,"errorColor",Pt($.error.light,.6)),te($.Alert,"infoColor",Pt($.info.light,.6)),te($.Alert,"successColor",Pt($.success.light,.6)),te($.Alert,"warningColor",Pt($.warning.light,.6)),te($.Alert,"errorFilledBg",z("palette-error-dark")),te($.Alert,"infoFilledBg",z("palette-info-dark")),te($.Alert,"successFilledBg",z("palette-success-dark")),te($.Alert,"warningFilledBg",z("palette-warning-dark")),te($.Alert,"errorFilledColor",So(()=>$.getContrastText($.error.dark))),te($.Alert,"infoFilledColor",So(()=>$.getContrastText($.info.dark))),te($.Alert,"successFilledColor",So(()=>$.getContrastText($.success.dark))),te($.Alert,"warningFilledColor",So(()=>$.getContrastText($.warning.dark))),te($.Alert,"errorStandardBg",Nt($.error.light,.9)),te($.Alert,"infoStandardBg",Nt($.info.light,.9)),te($.Alert,"successStandardBg",Nt($.success.light,.9)),te($.Alert,"warningStandardBg",Nt($.warning.light,.9)),te($.Alert,"errorIconColor",z("palette-error-main")),te($.Alert,"infoIconColor",z("palette-info-main")),te($.Alert,"successIconColor",z("palette-success-main")),te($.Alert,"warningIconColor",z("palette-warning-main")),te($.AppBar,"defaultBg",z("palette-grey-900")),te($.AppBar,"darkBg",z("palette-background-paper")),te($.AppBar,"darkColor",z("palette-text-primary")),te($.Avatar,"defaultBg",z("palette-grey-600")),te($.Button,"inheritContainedBg",z("palette-grey-800")),te($.Button,"inheritContainedHoverBg",z("palette-grey-700")),te($.Chip,"defaultBorder",z("palette-grey-700")),te($.Chip,"defaultAvatarColor",z("palette-grey-300")),te($.Chip,"defaultIconColor",z("palette-grey-300")),te($.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),te($.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),te($.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),te($.LinearProgress,"primaryBg",Nt($.primary.main,.5)),te($.LinearProgress,"secondaryBg",Nt($.secondary.main,.5)),te($.LinearProgress,"errorBg",Nt($.error.main,.5)),te($.LinearProgress,"infoBg",Nt($.info.main,.5)),te($.LinearProgress,"successBg",Nt($.success.main,.5)),te($.LinearProgress,"warningBg",Nt($.warning.main,.5)),te($.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.13)`),te($.Slider,"primaryTrack",Nt($.primary.main,.5)),te($.Slider,"secondaryTrack",Nt($.secondary.main,.5)),te($.Slider,"errorTrack",Nt($.error.main,.5)),te($.Slider,"infoTrack",Nt($.info.main,.5)),te($.Slider,"successTrack",Nt($.success.main,.5)),te($.Slider,"warningTrack",Nt($.warning.main,.5));const B=kp($.background.default,.98);te($.SnackbarContent,"bg",B),te($.SnackbarContent,"color",So(()=>$.getContrastText(B))),te($.SpeedDialAction,"fabHoverBg",kp($.background.paper,.15)),te($.StepConnector,"border",z("palette-grey-600")),te($.StepContent,"border",z("palette-grey-600")),te($.Switch,"defaultColor",z("palette-grey-300")),te($.Switch,"defaultDisabledColor",z("palette-grey-600")),te($.Switch,"primaryDisabledColor",Nt($.primary.main,.55)),te($.Switch,"secondaryDisabledColor",Nt($.secondary.main,.55)),te($.Switch,"errorDisabledColor",Nt($.error.main,.55)),te($.Switch,"infoDisabledColor",Nt($.info.main,.55)),te($.Switch,"successDisabledColor",Nt($.success.main,.55)),te($.Switch,"warningDisabledColor",Nt($.warning.main,.55)),te($.TableCell,"border",Nt(xp($.divider,1),.68)),te($.Tooltip,"bg",xp($.grey[700],.92))}Zo($.background,"default"),Zo($.background,"paper"),Zo($.common,"background"),Zo($.common,"onBackground"),Zo($,"divider"),Object.keys($).forEach(B=>{const q=$[B];B!=="tonalOffset"&&q&&typeof q=="object"&&(q.main&&te($[B],"mainChannel",tu(ru(q.main))),q.light&&te($[B],"lightChannel",tu(ru(q.light))),q.dark&&te($[B],"darkChannel",tu(ru(q.dark))),q.contrastText&&te($[B],"contrastTextChannel",tu(ru(q.contrastText))),B==="text"&&(Zo($[B],"primary"),Zo($[B],"secondary")),B==="action"&&(q.active&&Zo($[B],"active"),q.selected&&Zo($[B],"selected")))})}),R=e.reduce((P,$)=>Ur(P,$),R);const M={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:lN(R)},{vars:E,generateThemeVars:A,generateStyleSheets:I}=wA(R,M);return R.vars=E,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([P,$])=>{R[P]=$}),R.generateThemeVars=A,R.generateStyleSheets=I,R.generateSpacing=function(){return IE(f.spacing,G1(this))},R.getColorSchemeSelector=SA(l),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...Yu,...f?.unstable_sxConfig},R.unstable_sx=function($){return Ja({sx:$,theme:this})},R.toRuntimeSource=iT,R}function sx(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:eb({...r===!0?{}:r.palette,mode:e})})}function Du(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...s}=t,l=a||"light",u=o?.[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return Mv(t,...e);let h=r;"palette"in t||f[l]&&(f[l]!==!0?h=f[l].palette:l==="dark"&&(h={mode:"dark"}));const d=Mv({...t,palette:h},...e);return d.defaultColorScheme=l,d.colorSchemes=f,d.palette.mode==="light"&&(d.colorSchemes.light={...f.light!==!0&&f.light,palette:d.palette},sx(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},sx(d,"light",f.light)),d}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),fN({...s,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...e)}const tb=Du();function ha(){const t=Ku(tb);return t[ao]||t}function lT(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const $r=t=>lT(t)&&t!=="classes",ie=WE({themeId:ao,defaultTheme:tb,rootShouldForwardProp:$r});function hN({theme:t,...e}){const r=ao in t?t[ao]:void 0;return k.jsx(tT,{...e,themeId:r?ao:void 0,theme:r||t})}const Cp={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:mN}=gA({themeId:ao,theme:()=>Du({cssVariables:!0}),colorSchemeStorageKey:Cp.colorSchemeStorageKey,modeStorageKey:Cp.modeStorageKey,defaultColorScheme:{light:Cp.defaultLightColorScheme,dark:Cp.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:aT(t.palette,t.typography)};return e.unstable_sx=function(n){return Ja({sx:n,theme:this})},e}}),_N=mN;function cx({theme:t,...e}){const r=T.useMemo(()=>{if(typeof t=="function")return t;const n=ao in t?t[ao]:t;return"colorSchemes"in n?null:"vars"in n?t:{...t,vars:null}},[t]);return r?k.jsx(hN,{theme:r,...e}):k.jsx(_N,{theme:t,...e})}function gN(t){return k.jsx(jE,{...t,defaultTheme:tb,themeId:ao})}function yN(t){return function(r){return k.jsx(gN,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function vN(){return J1}const Ke=lA;function Ve(t){return sA(t)}function bN(t){return qe("MuiSvgIcon",t)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wN=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${he(e)}`,`fontSize${he(r)}`]};return He(o,bN,n)},SN=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${he(r.color)}`],e[`fontSize${he(r.fontSize)}`]]}})(Ke(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Nv=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:m="0 0 24 24",...y}=n,v=T.isValidElement(o)&&o.type==="svg",b={...n,color:s,component:l,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:v},x={};h||(x.viewBox=m);const C=wN(b);return k.jsxs(SN,{as:l,className:ye(C.root,a),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...x,...y,...v&&o.props,ownerState:b,children:[v?o.props.children:o,d?k.jsx("title",{children:d}):null]})});Nv.muiName="SvgIcon";function Ze(t,e){function r(n,o){return k.jsx(Nv,{"data-testid":`${e}Icon`,ref:o,...n,children:t})}return r.muiName=Nv.muiName,T.memo(T.forwardRef(r))}function uT(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const a=typeof e=="function"?e(o):e,s=typeof t=="function"?t({...o,...a}):t,l=ye(o?.className,a?.className,s?.className);return{...a,...s,...!!l&&{className:l},...a?.style&&s?.style&&{style:{...a.style,...s.style}},...a?.sx&&s?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const r=e,n=ye(r?.className,t?.className);return{...e,...t,...!!n&&{className:n},...r?.style&&t?.style&&{style:{...r.style,...t.style}},...r?.sx&&t?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function dT(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function Pv(t,e){return Pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Pv(t,e)}function pT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Pv(t,e)}var fT=mE();const $p=oi(fT),lx={disabled:!1},wf=_.createContext(null);var xN=function(e){return e.scrollTop},nu="unmounted",Mi="exited",Ai="entering",nc="entered",Iv="exiting",zo=(function(t){pT(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var s=o,l=s&&!s.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?l?(u=Mi,a.appearStatus=Ai):u=nc:n.unmountOnExit||n.mountOnEnter?u=nu:u=Mi,a.state={status:u},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===nu?{status:Mi}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Ai&&s!==nc&&(a=Ai):(s===Ai||s===nc)&&(a=Iv)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,s,l;return a=s=l=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Ai){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:$p.findDOMNode(this);s&&xN(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Mi&&this.setState({status:nu})},r.performEnter=function(o){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[$p.findDOMNode(this),l],f=u[0],h=u[1],d=this.getTimeouts(),m=l?d.appear:d.enter;if(!o&&!s||lx.disabled){this.safeSetState({status:nc},function(){a.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:Ai},function(){a.props.onEntering(f,h),a.onTransitionEnd(m,function(){a.safeSetState({status:nc},function(){a.props.onEntered(f,h)})})})},r.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:$p.findDOMNode(this);if(!a||lx.disabled){this.safeSetState({status:Mi},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Iv},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Mi},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:$p.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=u[0],h=u[1];this.props.addEndListener(f,h)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===nu)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=dT(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(wf.Provider,{value:null},typeof s=="function"?s(o,l):_.cloneElement(_.Children.only(s),l))},e})(_.Component);zo.contextType=wf;zo.propTypes={};function qs(){}zo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qs,onEntering:qs,onEntered:qs,onExit:qs,onExiting:qs,onExited:qs};zo.UNMOUNTED=nu;zo.EXITED=Mi;zo.ENTERING=Ai;zo.ENTERED=nc;zo.EXITING=Iv;function kN(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rb(t,e){var r=function(a){return e&&T.isValidElement(a)?e(a):a},n=Object.create(null);return t&&T.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function CN(t,e){t=t||{},e=e||{};function r(h){return h in e?e[h]:t[h]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var s,l={};for(var u in e){if(n[u])for(s=0;st.scrollTop;function Sf(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function DN(t){return qe("MuiPaper",t)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const RN=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return He(a,DN,o)},MN=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Ke(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ka=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiPaper"}),o=ha(),{className:a,component:s="div",elevation:l=1,square:u=!1,variant:f="elevation",...h}=n,d={...n,component:s,elevation:l,square:u,variant:f},m=RN(d);return k.jsx(MN,{as:s,ownerState:d,className:ye(m.root,a),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Lt("#fff",Av(l))}, ${Lt("#fff",Av(l))})`}},...h.style}})});function ct(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=e,{component:f,slots:h={[t]:void 0},slotProps:d={[t]:void 0},...m}=a,y=h[t]||n,v=KE(d[t],o),{props:{component:b,...x},internalRef:C}=YE({className:r,...u,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:v}),D=vr(C,v?.ref,e.ref),O=t==="root"?b||f:b,R=JE(y,{...t==="root"&&!f&&!h[t]&&s,...t!=="root"&&!h[t]&&s,...x,...O&&!l&&{as:O},...O&&l&&{component:O},ref:D},o);return[y,R]}class xf{static create(){return new xf}static use(){const e=GE(xf.create).current,[r,n]=T.useState(!1);return e.shouldMount=r,e.setShouldMount=n,T.useEffect(e.mountEffect,[r]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=NN(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function AN(){return xf.use()}function NN(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function PN(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:f}=t,[h,d]=T.useState(!1),m=ye(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},v=ye(r.child,h&&r.childLeaving,n&&r.childPulsate);return!l&&!h&&d(!0),T.useEffect(()=>{if(!l&&u!=null){const b=setTimeout(u,f);return()=>{clearTimeout(b)}}},[u,l,f]),k.jsx("span",{className:m,style:y,children:k.jsx("span",{className:v})})}const Ln=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),jv=550,IN=80,jN=ai` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,zN=ai` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,LN=ai` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,FN=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BN=ie(PN,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${Ln.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${jN}; + animation-duration: ${jv}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${Ln.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${Ln.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${Ln.childLeaving} { + opacity: 0; + animation-name: ${zN}; + animation-duration: ${jv}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${Ln.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${LN}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,WN=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...l}=n,[u,f]=T.useState([]),h=T.useRef(0),d=T.useRef(null);T.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const m=T.useRef(!1),y=Fi(),v=T.useRef(null),b=T.useRef(null),x=T.useCallback(R=>{const{pulsate:M,rippleX:E,rippleY:A,rippleSize:I,cb:P}=R;f($=>[...$,k.jsx(BN,{classes:{ripple:ye(a.ripple,Ln.ripple),rippleVisible:ye(a.rippleVisible,Ln.rippleVisible),ripplePulsate:ye(a.ripplePulsate,Ln.ripplePulsate),child:ye(a.child,Ln.child),childLeaving:ye(a.childLeaving,Ln.childLeaving),childPulsate:ye(a.childPulsate,Ln.childPulsate)},timeout:jv,pulsate:M,rippleX:E,rippleY:A,rippleSize:I},h.current)]),h.current+=1,d.current=P},[a]),C=T.useCallback((R={},M={},E=()=>{})=>{const{pulsate:A=!1,center:I=o||M.pulsate,fakeElement:P=!1}=M;if(R?.type==="mousedown"&&m.current){m.current=!1;return}R?.type==="touchstart"&&(m.current=!0);const $=P?null:b.current,z=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,q,H;if(I||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)B=Math.round(z.width/2),q=Math.round(z.height/2);else{const{clientX:U,clientY:X}=R.touches&&R.touches.length>0?R.touches[0]:R;B=Math.round(U-z.left),q=Math.round(X-z.top)}if(I)H=Math.sqrt((2*z.width**2+z.height**2)/3),H%2===0&&(H+=1);else{const U=Math.max(Math.abs(($?$.clientWidth:0)-B),B)*2+2,X=Math.max(Math.abs(($?$.clientHeight:0)-q),q)*2+2;H=Math.sqrt(U**2+X**2)}R?.touches?v.current===null&&(v.current=()=>{x({pulsate:A,rippleX:B,rippleY:q,rippleSize:H,cb:E})},y.start(IN,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:A,rippleX:B,rippleY:q,rippleSize:H,cb:E})},[o,x,y]),D=T.useCallback(()=>{C({},{pulsate:!0})},[C]),O=T.useCallback((R,M)=>{if(y.clear(),R?.type==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{O(R,M)});return}v.current=null,f(E=>E.length>0?E.slice(1):E),d.current=M},[y]);return T.useImperativeHandle(r,()=>({pulsate:D,start:C,stop:O}),[D,C,O]),k.jsx(FN,{className:ye(Ln.root,a.root,s),ref:b,...l,children:k.jsx(nb,{component:null,exit:!0,children:u})})});function UN(t){return qe("MuiButtonBase",t)}const qN=We("MuiButtonBase",["root","disabled","focusVisible"]),HN=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,s=He({root:["root",e&&"disabled",r&&"focusVisible"]},UN,o);return r&&n&&(s.root+=` ${n}`),s},VN=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qN.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ii=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,component:u="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:d=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:b,onClick:x,onContextMenu:C,onDragLeave:D,onFocus:O,onFocusVisible:R,onKeyDown:M,onKeyUp:E,onMouseDown:A,onMouseLeave:I,onMouseUp:P,onTouchEnd:$,onTouchMove:z,onTouchStart:B,tabIndex:q=0,TouchRippleProps:H,touchRippleRef:U,type:X,...re}=n,Z=T.useRef(null),G=AN(),ee=vr(G.ref,U),[F,K]=T.useState(!1);f&&F&&K(!1),T.useImperativeHandle(o,()=>({focusVisible:()=>{K(!0),Z.current.focus()}}),[]);const ue=G.shouldMount&&!h&&!f;T.useEffect(()=>{F&&m&&!h&&G.pulsate()},[h,m,F,G]);const pe=Qo(G,"start",A,d),oe=Qo(G,"stop",C,d),fe=Qo(G,"stop",D,d),we=Qo(G,"stop",P,d),ke=Qo(G,"stop",ge=>{F&&ge.preventDefault(),I&&I(ge)},d),Ee=Qo(G,"start",B,d),$e=Qo(G,"stop",$,d),Pe=Qo(G,"stop",z,d),Re=Qo(G,"stop",ge=>{yf(ge.target)||K(!1),b&&b(ge)},!1),Ge=Jr(ge=>{Z.current||(Z.current=ge.currentTarget),yf(ge.target)&&(K(!0),R&&R(ge)),O&&O(ge)}),ve=()=>{const ge=Z.current;return u&&u!=="button"&&!(ge.tagName==="A"&&ge.href)},Te=Jr(ge=>{m&&!ge.repeat&&F&&ge.key===" "&&G.stop(ge,()=>{G.start(ge)}),ge.target===ge.currentTarget&&ve()&&ge.key===" "&&ge.preventDefault(),M&&M(ge),ge.target===ge.currentTarget&&ve()&&ge.key==="Enter"&&!f&&(ge.preventDefault(),x&&x(ge))}),_t=Jr(ge=>{m&&ge.key===" "&&F&&!ge.defaultPrevented&&G.stop(ge,()=>{G.pulsate(ge)}),E&&E(ge),x&&ge.target===ge.currentTarget&&ve()&&ge.key===" "&&!ge.defaultPrevented&&x(ge)});let be=u;be==="button"&&(re.href||re.to)&&(be=v);const Ae={};be==="button"?(Ae.type=X===void 0?"button":X,Ae.disabled=f):(!re.href&&!re.to&&(Ae.role="button"),f&&(Ae["aria-disabled"]=f));const lt=vr(r,Z),tt={...n,centerRipple:a,component:u,disabled:f,disableRipple:h,disableTouchRipple:d,focusRipple:m,tabIndex:q,focusVisible:F},Xe=HN(tt);return k.jsxs(VN,{as:be,className:ye(Xe.root,l),ownerState:tt,onBlur:Re,onClick:x,onContextMenu:oe,onFocus:Ge,onKeyDown:Te,onKeyUp:_t,onMouseDown:pe,onMouseLeave:ke,onMouseUp:we,onDragLeave:fe,onTouchEnd:$e,onTouchMove:Pe,onTouchStart:Ee,ref:lt,tabIndex:f?-1:q,type:X,...Ae,...re,children:[s,ue?k.jsx(WN,{ref:ee,center:a,...H}):null]})});function Qo(t,e,r,n=!1){return Jr(o=>(r&&r(o),n||t[e](o),!0))}function GN(t){return typeof t.main=="string"}function XN(t,e=[]){if(!GN(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function hr(t=[]){return([,e])=>e&&XN(e,t)}function JN(t){return qe("MuiCircularProgress",t)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ja=44,zv=ai` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,Lv=ai` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: -126px; + } +`,YN=typeof zv!="string"?Uc` + animation: ${zv} 1.4s linear infinite; + `:null,KN=typeof Lv!="string"?Uc` + animation: ${Lv} 1.4s ease-in-out infinite; + `:null,ZN=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,a={root:["root",r,`color${he(n)}`],svg:["svg"],circle:["circle",`circle${he(r)}`,o&&"circleDisableShrink"]};return He(a,JN,e)},QN=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${he(r.color)}`]]}})(Ke(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:YN||{animation:`${zv} 1.4s linear infinite`}},...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),eP=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),tP=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${he(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Ke(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:KN||{animation:`${Lv} 1.4s ease-in-out infinite`}}]}))),oh=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:l=40,style:u,thickness:f=3.6,value:h=0,variant:d="indeterminate",...m}=n,y={...n,color:a,disableShrink:s,size:l,thickness:f,value:h,variant:d},v=ZN(y),b={},x={},C={};if(d==="determinate"){const D=2*Math.PI*((ja-f)/2);b.strokeDasharray=D.toFixed(3),C["aria-valuenow"]=Math.round(h),b.strokeDashoffset=`${((100-h)/100*D).toFixed(3)}px`,x.transform="rotate(-90deg)"}return k.jsx(QN,{className:ye(v.root,o),style:{width:l,height:l,...x,...u},ownerState:y,ref:r,role:"progressbar",...C,...m,children:k.jsx(eP,{className:v.svg,ownerState:y,viewBox:`${ja/2} ${ja/2} ${ja} ${ja}`,children:k.jsx(tP,{className:v.circle,style:b,ownerState:y,cx:ja,cy:ja,r:(ja-f)/2,fill:"none",strokeWidth:f})})})});function rP(t){return qe("MuiIconButton",t)}const ux=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),nP=t=>{const{classes:e,disabled:r,color:n,edge:o,size:a,loading:s}=t,l={root:["root",s&&"loading",r&&"disabled",n!=="default"&&`color${he(n)}`,o&&`edge${he(o)}`,`size${he(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return He(l,rP,e)},oP=ie(ii,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${he(r.color)}`],r.edge&&e[`edge${he(r.edge)}`],e[`size${he(r.size)}`]]}})(Ke(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ke(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${ux.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${ux.loading}`]:{color:"transparent"}}))),aP=ie("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ur=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:h="medium",id:d,loading:m=null,loadingIndicator:y,...v}=n,b=Qi(d),x=y??k.jsx(oh,{"aria-labelledby":b,color:"inherit",size:16}),C={...n,edge:o,color:l,disabled:u,disableFocusRipple:f,loading:m,loadingIndicator:x,size:h},D=nP(C);return k.jsxs(oP,{id:m?b:d,className:ye(D.root,s),centerRipple:!0,focusRipple:!f,disabled:u||m,ref:r,...v,ownerState:C,children:[typeof m=="boolean"&&k.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:k.jsx(aP,{className:D.loadingIndicator,ownerState:C,children:m&&x})}),a]})});function iP(t){return qe("MuiTypography",t)}const dx=We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),sP={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},cP=vN(),lP=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:s}=t,l={root:["root",a,t.align!=="inherit"&&`align${he(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return He(l,iP,s)},uP=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${he(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Ke(({theme:t})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([e,r])=>e!=="inherit"&&r&&typeof r=="object").map(([e,r])=>({props:{variant:e},style:r})),...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette?.text||{}).filter(([,e])=>typeof e=="string").map(([e])=>({props:{color:`text${he(e)}`},style:{color:(t.vars||t).palette.text[e]}})),{props:({ownerState:e})=>e.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),px={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ro=T.forwardRef(function(e,r){const{color:n,...o}=Ve({props:e,name:"MuiTypography"}),a=!sP[n],s=cP({...o,...a&&{color:n}}),{align:l="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:m=!1,variant:y="body1",variantMapping:v=px,...b}=s,x={...s,align:l,color:n,className:u,component:f,gutterBottom:h,noWrap:d,paragraph:m,variant:y,variantMapping:v},C=f||(m?"p":v[y]||px[y])||"span",D=lP(x);return k.jsx(uP,{as:C,ref:r,className:ye(D.root,u),...b,ownerState:x,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...b.style}})});function dP(t){return qe("MuiAppBar",t)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const pP=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${he(e)}`,`position${he(r)}`]};return He(o,dP,n)},fx=(t,e)=>t?`${t?.replace(")","")}, ${e})`:e,fP=ie(Ka,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${he(r.position)}`],e[`color${he(r.color)}`]]}})(Ke(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(hr(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].contrastText}})),{props:e=>e.enableColorOnDark===!0&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>e.enableColorOnDark===!1&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?fx(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?fx(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),mT=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:s=!1,position:l="fixed",...u}=n,f={...n,color:a,position:l,enableColorOnDark:s},h=pP(f);return k.jsx(fP,{square:!0,component:"header",ownerState:f,elevation:4,className:ye(h.root,o,l==="fixed"&&"mui-fixed"),ref:r,...u})});var un="top",Un="bottom",qn="right",dn="left",ob="auto",ed=[un,Un,qn,dn],Mc="start",Ru="end",hP="clippingParents",_T="viewport",Il="popper",mP="reference",hx=ed.reduce(function(t,e){return t.concat([e+"-"+Mc,e+"-"+Ru])},[]),gT=[].concat(ed,[ob]).reduce(function(t,e){return t.concat([e,e+"-"+Mc,e+"-"+Ru])},[]),_P="beforeRead",gP="read",yP="afterRead",vP="beforeMain",bP="main",wP="afterMain",SP="beforeWrite",xP="write",kP="afterWrite",CP=[_P,gP,yP,vP,bP,wP,SP,xP,kP];function Io(t){return t?(t.nodeName||"").toLowerCase():null}function En(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Vi(t){var e=En(t).Element;return t instanceof e||t instanceof Element}function Bn(t){var e=En(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ab(t){if(typeof ShadowRoot>"u")return!1;var e=En(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $P(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},a=e.elements[r];!Bn(a)||!Io(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function EP(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],a=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),l=s.reduce(function(u,f){return u[f]="",u},{});!Bn(o)||!Io(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const TP={name:"applyStyles",enabled:!0,phase:"write",fn:$P,effect:EP,requires:["computeStyles"]};function Ao(t){return t.split("-")[0]}var Wi=Math.max,kf=Math.min,Ac=Math.round;function Fv(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function yT(){return!/^((?!chrome|android).)*safari/i.test(Fv())}function Nc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&Bn(t)&&(o=t.offsetWidth>0&&Ac(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ac(n.height)/t.offsetHeight||1);var s=Vi(t)?En(t):window,l=s.visualViewport,u=!yT()&&r,f=(n.left+(u&&l?l.offsetLeft:0))/o,h=(n.top+(u&&l?l.offsetTop:0))/a,d=n.width/o,m=n.height/a;return{width:d,height:m,top:h,right:f+d,bottom:h+m,left:f,x:f,y:h}}function ib(t){var e=Nc(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function vT(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&ab(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function pa(t){return En(t).getComputedStyle(t)}function OP(t){return["table","td","th"].indexOf(Io(t))>=0}function si(t){return((Vi(t)?t.ownerDocument:t.document)||window.document).documentElement}function ah(t){return Io(t)==="html"?t:t.assignedSlot||t.parentNode||(ab(t)?t.host:null)||si(t)}function mx(t){return!Bn(t)||pa(t).position==="fixed"?null:t.offsetParent}function DP(t){var e=/firefox/i.test(Fv()),r=/Trident/i.test(Fv());if(r&&Bn(t)){var n=pa(t);if(n.position==="fixed")return null}var o=ah(t);for(ab(o)&&(o=o.host);Bn(o)&&["html","body"].indexOf(Io(o))<0;){var a=pa(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function td(t){for(var e=En(t),r=mx(t);r&&OP(r)&&pa(r).position==="static";)r=mx(r);return r&&(Io(r)==="html"||Io(r)==="body"&&pa(r).position==="static")?e:r||DP(t)||e}function sb(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function mu(t,e,r){return Wi(t,kf(e,r))}function RP(t,e,r){var n=mu(t,e,r);return n>r?r:n}function bT(){return{top:0,right:0,bottom:0,left:0}}function wT(t){return Object.assign({},bT(),t)}function ST(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var MP=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,wT(typeof e!="number"?e:ST(e,ed))};function AP(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,l=Ao(r.placement),u=sb(l),f=[dn,qn].indexOf(l)>=0,h=f?"height":"width";if(!(!a||!s)){var d=MP(o.padding,r),m=ib(a),y=u==="y"?un:dn,v=u==="y"?Un:qn,b=r.rects.reference[h]+r.rects.reference[u]-s[u]-r.rects.popper[h],x=s[u]-r.rects.reference[u],C=td(a),D=C?u==="y"?C.clientHeight||0:C.clientWidth||0:0,O=b/2-x/2,R=d[y],M=D-m[h]-d[v],E=D/2-m[h]/2+O,A=mu(R,E,M),I=u;r.modifiersData[n]=(e={},e[I]=A,e.centerOffset=A-E,e)}}function NP(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||vT(e.elements.popper,o)&&(e.elements.arrow=o))}const PP={name:"arrow",enabled:!0,phase:"main",fn:AP,effect:NP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pc(t){return t.split("-")[1]}var IP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jP(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Ac(r*o)/o||0,y:Ac(n*o)/o||0}}function _x(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,s=t.offsets,l=t.position,u=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,d=t.isFixed,m=s.x,y=m===void 0?0:m,v=s.y,b=v===void 0?0:v,x=typeof h=="function"?h({x:y,y:b}):{x:y,y:b};y=x.x,b=x.y;var C=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),O=dn,R=un,M=window;if(f){var E=td(r),A="clientHeight",I="clientWidth";if(E===En(r)&&(E=si(r),pa(E).position!=="static"&&l==="absolute"&&(A="scrollHeight",I="scrollWidth")),E=E,o===un||(o===dn||o===qn)&&a===Ru){R=Un;var P=d&&E===M&&M.visualViewport?M.visualViewport.height:E[A];b-=P-n.height,b*=u?1:-1}if(o===dn||(o===un||o===Un)&&a===Ru){O=qn;var $=d&&E===M&&M.visualViewport?M.visualViewport.width:E[I];y-=$-n.width,y*=u?1:-1}}var z=Object.assign({position:l},f&&IP),B=h===!0?jP({x:y,y:b},En(r)):{x:y,y:b};if(y=B.x,b=B.y,u){var q;return Object.assign({},z,(q={},q[R]=D?"0":"",q[O]=C?"0":"",q.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",q))}return Object.assign({},z,(e={},e[R]=D?b+"px":"",e[O]=C?y+"px":"",e.transform="",e))}function zP(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,l=r.roundOffsets,u=l===void 0?!0:l,f={placement:Ao(e.placement),variation:Pc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,_x(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,_x(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const LP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zP,data:{}};var Ep={passive:!0};function FP(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,l=s===void 0?!0:s,u=En(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",r.update,Ep)}),l&&u.addEventListener("resize",r.update,Ep),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Ep)}),l&&u.removeEventListener("resize",r.update,Ep)}}const BP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:FP,data:{}};var WP={left:"right",right:"left",bottom:"top",top:"bottom"};function of(t){return t.replace(/left|right|bottom|top/g,function(e){return WP[e]})}var UP={start:"end",end:"start"};function gx(t){return t.replace(/start|end/g,function(e){return UP[e]})}function cb(t){var e=En(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function lb(t){return Nc(si(t)).left+cb(t).scrollLeft}function qP(t,e){var r=En(t),n=si(t),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var f=yT();(f||!f&&e==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+lb(t),y:u}}function HP(t){var e,r=si(t),n=cb(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=Wi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Wi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+lb(t),u=-n.scrollTop;return pa(o||r).direction==="rtl"&&(l+=Wi(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function ub(t){var e=pa(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function xT(t){return["html","body","#document"].indexOf(Io(t))>=0?t.ownerDocument.body:Bn(t)&&ub(t)?t:xT(ah(t))}function _u(t,e){var r;e===void 0&&(e=[]);var n=xT(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),a=En(n),s=o?[a].concat(a.visualViewport||[],ub(n)?n:[]):n,l=e.concat(s);return o?l:l.concat(_u(ah(s)))}function Bv(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function VP(t,e){var r=Nc(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function yx(t,e,r){return e===_T?Bv(qP(t,r)):Vi(e)?VP(e,r):Bv(HP(si(t)))}function GP(t){var e=_u(ah(t)),r=["absolute","fixed"].indexOf(pa(t).position)>=0,n=r&&Bn(t)?td(t):t;return Vi(n)?e.filter(function(o){return Vi(o)&&vT(o,n)&&Io(o)!=="body"}):[]}function XP(t,e,r,n){var o=e==="clippingParents"?GP(t):[].concat(e),a=[].concat(o,[r]),s=a[0],l=a.reduce(function(u,f){var h=yx(t,f,n);return u.top=Wi(h.top,u.top),u.right=kf(h.right,u.right),u.bottom=kf(h.bottom,u.bottom),u.left=Wi(h.left,u.left),u},yx(t,s,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function kT(t){var e=t.reference,r=t.element,n=t.placement,o=n?Ao(n):null,a=n?Pc(n):null,s=e.x+e.width/2-r.width/2,l=e.y+e.height/2-r.height/2,u;switch(o){case un:u={x:s,y:e.y-r.height};break;case Un:u={x:s,y:e.y+e.height};break;case qn:u={x:e.x+e.width,y:l};break;case dn:u={x:e.x-r.width,y:l};break;default:u={x:e.x,y:e.y}}var f=o?sb(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case Mc:u[f]=u[f]-(e[h]/2-r[h]/2);break;case Ru:u[f]=u[f]+(e[h]/2-r[h]/2);break}}return u}function Mu(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,a=r.strategy,s=a===void 0?t.strategy:a,l=r.boundary,u=l===void 0?hP:l,f=r.rootBoundary,h=f===void 0?_T:f,d=r.elementContext,m=d===void 0?Il:d,y=r.altBoundary,v=y===void 0?!1:y,b=r.padding,x=b===void 0?0:b,C=wT(typeof x!="number"?x:ST(x,ed)),D=m===Il?mP:Il,O=t.rects.popper,R=t.elements[v?D:m],M=XP(Vi(R)?R:R.contextElement||si(t.elements.popper),u,h,s),E=Nc(t.elements.reference),A=kT({reference:E,element:O,placement:o}),I=Bv(Object.assign({},O,A)),P=m===Il?I:E,$={top:M.top-P.top+C.top,bottom:P.bottom-M.bottom+C.bottom,left:M.left-P.left+C.left,right:P.right-M.right+C.right},z=t.modifiersData.offset;if(m===Il&&z){var B=z[o];Object.keys($).forEach(function(q){var H=[qn,Un].indexOf(q)>=0?1:-1,U=[un,Un].indexOf(q)>=0?"y":"x";$[q]+=B[U]*H})}return $}function JP(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?gT:u,h=Pc(n),d=h?l?hx:hx.filter(function(v){return Pc(v)===h}):ed,m=d.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=d);var y=m.reduce(function(v,b){return v[b]=Mu(t,{placement:b,boundary:o,rootBoundary:a,padding:s})[Ao(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function YP(t){if(Ao(t)===ob)return[];var e=of(t);return[gx(t),e,gx(e)]}function KP(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,l=s===void 0?!0:s,u=r.fallbackPlacements,f=r.padding,h=r.boundary,d=r.rootBoundary,m=r.altBoundary,y=r.flipVariations,v=y===void 0?!0:y,b=r.allowedAutoPlacements,x=e.options.placement,C=Ao(x),D=C===x,O=u||(D||!v?[of(x)]:YP(x)),R=[x].concat(O).reduce(function(pe,oe){return pe.concat(Ao(oe)===ob?JP(e,{placement:oe,boundary:h,rootBoundary:d,padding:f,flipVariations:v,allowedAutoPlacements:b}):oe)},[]),M=e.rects.reference,E=e.rects.popper,A=new Map,I=!0,P=R[0],$=0;$=0,U=H?"width":"height",X=Mu(e,{placement:z,boundary:h,rootBoundary:d,altBoundary:m,padding:f}),re=H?q?qn:dn:q?Un:un;M[U]>E[U]&&(re=of(re));var Z=of(re),G=[];if(a&&G.push(X[B]<=0),l&&G.push(X[re]<=0,X[Z]<=0),G.every(function(pe){return pe})){P=z,I=!1;break}A.set(z,G)}if(I)for(var ee=v?3:1,F=function(oe){var fe=R.find(function(we){var ke=A.get(we);if(ke)return ke.slice(0,oe).every(function(Ee){return Ee})});if(fe)return P=fe,"break"},K=ee;K>0;K--){var ue=F(K);if(ue==="break")break}e.placement!==P&&(e.modifiersData[n]._skip=!0,e.placement=P,e.reset=!0)}}const ZP={name:"flip",enabled:!0,phase:"main",fn:KP,requiresIfExists:["offset"],data:{_skip:!1}};function vx(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function bx(t){return[un,qn,Un,dn].some(function(e){return t[e]>=0})}function QP(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,s=Mu(e,{elementContext:"reference"}),l=Mu(e,{altBoundary:!0}),u=vx(s,n),f=vx(l,o,a),h=bx(u),d=bx(f);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const eI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QP};function tI(t,e,r){var n=Ao(t),o=[dn,un].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[dn,qn].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function rI(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=o===void 0?[0,0]:o,s=gT.reduce(function(h,d){return h[d]=tI(d,e.rects,a),h},{}),l=s[e.placement],u=l.x,f=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=s}const nI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rI};function oI(t){var e=t.state,r=t.name;e.modifiersData[r]=kT({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const aI={name:"popperOffsets",enabled:!0,phase:"read",fn:oI,data:{}};function iI(t){return t==="x"?"y":"x"}function sI(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,l=s===void 0?!1:s,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.padding,m=r.tether,y=m===void 0?!0:m,v=r.tetherOffset,b=v===void 0?0:v,x=Mu(e,{boundary:u,rootBoundary:f,padding:d,altBoundary:h}),C=Ao(e.placement),D=Pc(e.placement),O=!D,R=sb(C),M=iI(R),E=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,P=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,$=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(E){if(a){var q,H=R==="y"?un:dn,U=R==="y"?Un:qn,X=R==="y"?"height":"width",re=E[R],Z=re+x[H],G=re-x[U],ee=y?-I[X]/2:0,F=D===Mc?A[X]:I[X],K=D===Mc?-I[X]:-A[X],ue=e.elements.arrow,pe=y&&ue?ib(ue):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:bT(),fe=oe[H],we=oe[U],ke=mu(0,A[X],pe[X]),Ee=O?A[X]/2-ee-ke-fe-$.mainAxis:F-ke-fe-$.mainAxis,$e=O?-A[X]/2+ee+ke+we+$.mainAxis:K+ke+we+$.mainAxis,Pe=e.elements.arrow&&td(e.elements.arrow),Re=Pe?R==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,Ge=(q=z?.[R])!=null?q:0,ve=re+Ee-Ge-Re,Te=re+$e-Ge,_t=mu(y?kf(Z,ve):Z,re,y?Wi(G,Te):G);E[R]=_t,B[R]=_t-re}if(l){var be,Ae=R==="x"?un:dn,lt=R==="x"?Un:qn,tt=E[M],Xe=M==="y"?"height":"width",ge=tt+x[Ae],dt=tt-x[lt],Qe=[un,dn].indexOf(C)!==-1,ne=(be=z?.[M])!=null?be:0,_e=Qe?ge:tt-A[Xe]-I[Xe]-ne+$.altAxis,Ue=Qe?tt+A[Xe]+I[Xe]-ne-$.altAxis:dt,Le=y&&Qe?RP(_e,tt,Ue):mu(y?_e:ge,tt,y?Ue:dt);E[M]=Le,B[M]=Le-tt}e.modifiersData[n]=B}}const cI={name:"preventOverflow",enabled:!0,phase:"main",fn:sI,requiresIfExists:["offset"]};function lI(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function uI(t){return t===En(t)||!Bn(t)?cb(t):lI(t)}function dI(t){var e=t.getBoundingClientRect(),r=Ac(e.width)/t.offsetWidth||1,n=Ac(e.height)/t.offsetHeight||1;return r!==1||n!==1}function pI(t,e,r){r===void 0&&(r=!1);var n=Bn(e),o=Bn(e)&&dI(e),a=si(e),s=Nc(t,o,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Io(e)!=="body"||ub(a))&&(l=uI(e)),Bn(e)?(u=Nc(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=lb(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function fI(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var u=e.get(l);u&&o(u)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||o(a)}),n}function hI(t){var e=fI(t);return CP.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function mI(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function _I(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var wx={placement:"bottom",modifiers:[],strategy:"absolute"};function Sx(){for(var t=arguments.length,e=new Array(t),r=0;r{a||l(bI(o)||document.body)},[o,a]),fn(()=>{if(s&&!a)return H5(r,s),()=>{H5(r,null)}},[r,s,a]),a){if(T.isValidElement(n)){const f={ref:u};return T.cloneElement(n,f)}return n}return s&&fT.createPortal(n,s)});function wI(t){return qe("MuiPopper",t)}We("MuiPopper",["root"]);function SI(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function Wv(t){return typeof t=="function"?t():t}function xI(t){return t.nodeType!==void 0}const kI=t=>{const{classes:e}=t;return He({root:["root"]},wI,e)},CI={},$I=T.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:f,popperOptions:h,popperRef:d,slotProps:m={},slots:y={},TransitionProps:v,ownerState:b,...x}=e,C=T.useRef(null),D=vr(C,r),O=T.useRef(null),R=vr(O,d),M=T.useRef(R);fn(()=>{M.current=R},[R]),T.useImperativeHandle(d,()=>O.current,[]);const E=SI(f,a),[A,I]=T.useState(E),[P,$]=T.useState(Wv(n));T.useEffect(()=>{O.current&&O.current.forceUpdate()}),T.useEffect(()=>{n&&$(Wv(n))},[n]),fn(()=>{if(!P||!u)return;const U=Z=>{I(Z.placement)};let X=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{U(Z)}}];l!=null&&(X=X.concat(l)),h&&h.modifiers!=null&&(X=X.concat(h.modifiers));const re=vI(P,C.current,{placement:E,...h,modifiers:X});return M.current(re),()=>{re.destroy(),M.current(null)}},[P,s,l,u,h,E]);const z={placement:A};v!==null&&(z.TransitionProps=v);const B=kI(e),q=y.root??"div",H=Hi({elementType:q,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:D},ownerState:e,className:B.root});return k.jsx(q,{...H,children:typeof o=="function"?o(z):o})}),EI=T.forwardRef(function(e,r){const{anchorEl:n,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:f,open:h,placement:d="bottom",popperOptions:m=CI,popperRef:y,style:v,transition:b=!1,slotProps:x={},slots:C={},...D}=e,[O,R]=T.useState(!0),M=()=>{R(!1)},E=()=>{R(!0)};if(!u&&!h&&(!b||O))return null;let A;if(a)A=a;else if(n){const $=Wv(n);A=$&&xI($)?Mr($).body:Mr(null).body}const I=!h&&u&&(!b||O)?"none":void 0,P=b?{in:h,onEnter:M,onExited:E}:void 0;return k.jsx(CT,{disablePortal:l,container:A,children:k.jsx($I,{anchorEl:n,direction:s,disablePortal:l,modifiers:f,ref:r,open:b?!O:h,placement:d,popperOptions:m,popperRef:y,slotProps:x,slots:C,...D,style:{position:"fixed",top:0,left:0,display:I,...v},TransitionProps:P,children:o})})}),TI=ie(EI,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),$T=T.forwardRef(function(e,r){const n=qc(),o=Ve({props:e,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:f,disablePortal:h,keepMounted:d,modifiers:m,open:y,placement:v,popperOptions:b,popperRef:x,transition:C,slots:D,slotProps:O,...R}=o,M=D?.root??l?.Root,E={anchorEl:a,container:f,disablePortal:h,keepMounted:d,modifiers:m,open:y,placement:v,popperOptions:b,popperRef:x,transition:C,...R};return k.jsx(TI,{as:s,direction:n?"rtl":"ltr",slots:{root:M},slotProps:O??u,...E,ref:r})});function Tp(t){return parseInt(t,10)||0}const OI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function DI(t){for(const e in t)return!1;return!0}function xx(t){return DI(t)||t.outerHeightStyle===0&&!t.overflowing}const RI=T.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:s,value:l,...u}=e,{current:f}=T.useRef(l!=null),h=T.useRef(null),d=vr(r,h),m=T.useRef(null),y=T.useRef(null),v=T.useCallback(()=>{const O=h.current,R=y.current;if(!O||!R)return;const E=so(O).getComputedStyle(O);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=E.width,R.value=O.value||e.placeholder||"x",R.value.slice(-1)===` +`&&(R.value+=" ");const A=E.boxSizing,I=Tp(E.paddingBottom)+Tp(E.paddingTop),P=Tp(E.borderBottomWidth)+Tp(E.borderTopWidth),$=R.scrollHeight;R.value="x";const z=R.scrollHeight;let B=$;a&&(B=Math.max(Number(a)*z,B)),o&&(B=Math.min(Number(o)*z,B)),B=Math.max(B,z);const q=B+(A==="border-box"?I+P:0),H=Math.abs(B-$)<=1;return{outerHeightStyle:q,overflowing:H}},[o,a,e.placeholder]),b=Jr(()=>{const O=h.current,R=v();if(!O||!R||xx(R))return!1;const M=R.outerHeightStyle;return m.current!=null&&m.current!==M}),x=T.useCallback(()=>{const O=h.current,R=v();if(!O||!R||xx(R))return;const M=R.outerHeightStyle;m.current!==M&&(m.current=M,O.style.height=`${M}px`),O.style.overflow=R.overflowing?"hidden":""},[v]),C=T.useRef(-1);fn(()=>{const O=th(x),R=h?.current;if(!R)return;const M=so(R);M.addEventListener("resize",O);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{b()&&(E.unobserve(R),cancelAnimationFrame(C.current),x(),C.current=requestAnimationFrame(()=>{E.observe(R)}))}),E.observe(R)),()=>{O.clear(),cancelAnimationFrame(C.current),M.removeEventListener("resize",O),E&&E.disconnect()}},[v,x,b]),fn(()=>{x()});const D=O=>{f||x(),n&&n(O)};return k.jsxs(T.Fragment,{children:[k.jsx("textarea",{value:l,onChange:D,ref:d,rows:a,style:s,...u}),k.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...OI.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function Uv(t){return typeof t=="string"}function ci({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const db=T.createContext(void 0);function Lo(){return T.useContext(db)}function kx(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Cf(t,e=!1){return t&&(kx(t.value)&&t.value!==""||e&&kx(t.defaultValue)&&t.defaultValue!=="")}function MI(t){return t.startAdornment}function AI(t){return qe("MuiInputBase",t)}const Ic=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Cx;const ih=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${he(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},sh=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},NI=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:u,hiddenLabel:f,multiline:h,readOnly:d,size:m,startAdornment:y,type:v}=t,b={root:["root",`color${he(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",l&&"formControl",m&&m!=="medium"&&`size${he(m)}`,h&&"multiline",y&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",v==="search"&&"inputTypeSearch",h&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return He(b,AI,e)},ch=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ih})(Ke(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ic.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),lh=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:sh})(Ke(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ic.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ic.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),$x=yN({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),pb=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,color:u,components:f={},componentsProps:h={},defaultValue:d,disabled:m,disableInjectingGlobalStyles:y,endAdornment:v,error:b,fullWidth:x=!1,id:C,inputComponent:D="input",inputProps:O={},inputRef:R,margin:M,maxRows:E,minRows:A,multiline:I=!1,name:P,onBlur:$,onChange:z,onClick:B,onFocus:q,onKeyDown:H,onKeyUp:U,placeholder:X,readOnly:re,renderSuffix:Z,rows:G,size:ee,slotProps:F={},slots:K={},startAdornment:ue,type:pe="text",value:oe,...fe}=n,we=O.value!=null?O.value:oe,{current:ke}=T.useRef(we!=null),Ee=T.useRef(),$e=T.useCallback(Fe=>{},[]),Pe=vr(Ee,R,O.ref,$e),[Re,Ge]=T.useState(!1),ve=Lo(),Te=ci({props:n,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=ve?ve.focused:Re,T.useEffect(()=>{!ve&&m&&Re&&(Ge(!1),$&&$())},[ve,m,Re,$]);const _t=ve&&ve.onFilled,be=ve&&ve.onEmpty,Ae=T.useCallback(Fe=>{Cf(Fe)?_t&&_t():be&&be()},[_t,be]);fn(()=>{ke&&Ae({value:we})},[we,Ae,ke]);const lt=Fe=>{q&&q(Fe),O.onFocus&&O.onFocus(Fe),ve&&ve.onFocus?ve.onFocus(Fe):Ge(!0)},tt=Fe=>{$&&$(Fe),O.onBlur&&O.onBlur(Fe),ve&&ve.onBlur?ve.onBlur(Fe):Ge(!1)},Xe=(Fe,...Ht)=>{if(!ke){const xt=Fe.target||Ee.current;if(xt==null)throw new Error(ua(1));Ae({value:xt.value})}O.onChange&&O.onChange(Fe,...Ht),z&&z(Fe,...Ht)};T.useEffect(()=>{Ae(Ee.current)},[]);const ge=Fe=>{Ee.current&&Fe.currentTarget===Fe.target&&Ee.current.focus(),B&&B(Fe)};let dt=D,Qe=O;I&&dt==="input"&&(G?Qe={type:void 0,minRows:G,maxRows:G,...Qe}:Qe={type:void 0,maxRows:E,minRows:A,...Qe},dt=RI);const ne=Fe=>{Ae(Fe.animationName==="mui-auto-fill-cancel"?Ee.current:{value:"x"})};T.useEffect(()=>{ve&&ve.setAdornedStart(!!ue)},[ve,ue]);const _e={...n,color:Te.color||"primary",disabled:Te.disabled,endAdornment:v,error:Te.error,focused:Te.focused,formControl:ve,fullWidth:x,hiddenLabel:Te.hiddenLabel,multiline:I,size:Te.size,startAdornment:ue,type:pe},Ue=NI(_e),Le=K.root||f.Root||ch,pt=F.root||h.root||{},vt=K.input||f.Input||lh;return Qe={...Qe,...F.input??h.input},k.jsxs(T.Fragment,{children:[!y&&typeof $x=="function"&&(Cx||(Cx=k.jsx($x,{}))),k.jsxs(Le,{...pt,ref:r,onClick:ge,...fe,...!Uv(Le)&&{ownerState:{..._e,...pt.ownerState}},className:ye(Ue.root,pt.className,l,re&&"MuiInputBase-readOnly"),children:[ue,k.jsx(db.Provider,{value:null,children:k.jsx(vt,{"aria-invalid":Te.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Te.disabled,id:C,onAnimationStart:ne,name:P,placeholder:X,readOnly:re,required:Te.required,rows:G,value:we,onKeyDown:H,onKeyUp:U,type:pe,...Qe,...!Uv(vt)&&{as:dt,ownerState:{..._e,...Qe.ownerState}},ref:Pe,className:ye(Ue.input,Qe.className,re&&"MuiInputBase-readOnly"),onBlur:tt,onChange:Xe,onFocus:lt})}),v,Z?Z({...Te,startAdornment:ue}):null]})]})});function PI(t){return qe("MuiInput",t)}const jl={...Ic,...We("MuiInput",["root","underline","input"])};function II(t){return qe("MuiOutlinedInput",t)}const xo={...Ic,...We("MuiOutlinedInput",["root","notchedOutline","input"])};function jI(t){return qe("MuiFilledInput",t)}const ki={...Ic,...We("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},zI=Ze(k.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),LI={entering:{opacity:1},entered:{opacity:1}},qv=T.forwardRef(function(e,r){const n=ha(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:u,in:f,onEnter:h,onEntered:d,onEntering:m,onExit:y,onExited:v,onExiting:b,style:x,timeout:C=o,TransitionComponent:D=zo,...O}=e,R=T.useRef(null),M=vr(R,es(l),r),E=H=>U=>{if(H){const X=R.current;U===void 0?H(X):H(X,U)}},A=E(m),I=E((H,U)=>{hT(H);const X=Sf({style:x,timeout:C,easing:u},{mode:"enter"});H.style.webkitTransition=n.transitions.create("opacity",X),H.style.transition=n.transitions.create("opacity",X),h&&h(H,U)}),P=E(d),$=E(b),z=E(H=>{const U=Sf({style:x,timeout:C,easing:u},{mode:"exit"});H.style.webkitTransition=n.transitions.create("opacity",U),H.style.transition=n.transitions.create("opacity",U),y&&y(H)}),B=E(v),q=H=>{a&&a(R.current,H)};return k.jsx(D,{appear:s,in:f,nodeRef:R,onEnter:I,onEntered:P,onEntering:A,onExit:z,onExited:B,onExiting:$,addEndListener:q,timeout:C,...O,children:(H,{ownerState:U,...X})=>T.cloneElement(l,{style:{opacity:0,visibility:H==="exited"&&!f?"hidden":void 0,...LI[H],...x,...l.props.style},ref:M,...X})})});function FI(t){return qe("MuiBackdrop",t)}We("MuiBackdrop",["root","invisible"]);const BI=t=>{const{classes:e,invisible:r}=t;return He({root:["root",r&&"invisible"]},FI,e)},WI=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ET=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:u,components:f={},componentsProps:h={},slotProps:d={},slots:m={},TransitionComponent:y,transitionDuration:v,...b}=n,x={...n,component:s,invisible:l},C=BI(x),D={transition:y,root:f.Root,...m},O={...h,...d},R={slots:D,slotProps:O},[M,E]=ct("root",{elementType:WI,externalForwardedProps:R,className:ye(C.root,a),ownerState:x}),[A,I]=ct("transition",{elementType:qv,externalForwardedProps:R,ownerState:x});return k.jsx(A,{in:u,timeout:v,...b,...I,children:k.jsx(M,{"aria-hidden":!0,...E,classes:C,ref:r,children:o})})}),UI=We("MuiBox",["root"]),qI=Du(),st=RM({themeId:ao,defaultTheme:qI,defaultClassName:UI.root,generateClassName:zE.generate}),HI=Ze(k.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),VI=ie(ii,{name:"MuiBreadcrumbCollapsed"})(Ke(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:_f(t.palette.grey[200],.12)}:{backgroundColor:_f(t.palette.grey[600],.12)}}}))),GI=ie(HI)({width:24,height:16});function XI(t){const{slots:e={},slotProps:r={},...n}=t,o=t;return k.jsx("li",{children:k.jsx(VI,{focusRipple:!0,...n,ownerState:o,children:k.jsx(GI,{as:e.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function JI(t){return qe("MuiBreadcrumbs",t)}const YI=We("MuiBreadcrumbs",["root","ol","li","separator"]),KI=t=>{const{classes:e}=t;return He({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},JI,e)},ZI=ie(Ro,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${YI.li}`]:e.li},e.root]})({}),QI=ie("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),ej=ie("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function tj(t,e,r,n){return t.reduce((o,a,s)=>(s{const I=()=>{x(!0);const P=R.current.querySelector("a[href],button,[tabindex]");P&&P.focus()};return d+h>=A.length?A:[...A.slice(0,d),k.jsx(XI,{"aria-label":f,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:O},onClick:I},"ellipsis"),...A.slice(A.length-h,A.length)]},E=T.Children.toArray(o).filter(A=>T.isValidElement(A)).map((A,I)=>k.jsx("li",{className:D.li,children:A},`child-${I}`));return k.jsx(ZI,{ref:r,component:s,color:"textSecondary",className:ye(D.root,a),ownerState:C,...v,children:k.jsx(QI,{className:D.ol,ref:R,ownerState:C,children:tj(b||m&&E.length<=m?E:M(E),D.separator,y,C)})})});function nj(t){return qe("MuiButton",t)}const Ci=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),oj=T.createContext({}),aj=T.createContext(void 0),ij=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:a,loading:s,loadingPosition:l,classes:u}=t,f={root:["root",s&&"loading",a,`${a}${he(e)}`,`size${he(o)}`,`${a}Size${he(o)}`,`color${he(e)}`,r&&"disableElevation",n&&"fullWidth",s&&`loadingPosition${he(l)}`],startIcon:["icon","startIcon",`iconSize${he(o)}`],endIcon:["icon","endIcon",`iconSize${he(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=He(f,nj,u);return{...u,...h}},TT=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],sj=ie(ii,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${he(r.color)}`],e[`size${he(r.size)}`],e[`${r.variant}Size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(Ke(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ci.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Ci.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Ci.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ci.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(hr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:Lt(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ci.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ci.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Ci.loading}`]:{color:"transparent"}}}]}})),cj=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${he(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...TT]})),lj=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${he(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...TT]})),uj=ie("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ex=ie("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),At=T.forwardRef(function(e,r){const n=T.useContext(oj),o=T.useContext(aj),a=Tu(n,e),s=Ve({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:h,disabled:d=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:b,fullWidth:x=!1,id:C,loading:D=null,loadingIndicator:O,loadingPosition:R="center",size:M="medium",startIcon:E,type:A,variant:I="text",...P}=s,$=Qi(C),z=O??k.jsx(oh,{"aria-labelledby":$,color:"inherit",size:16}),B={...s,color:u,component:f,disabled:d,disableElevation:m,disableFocusRipple:y,fullWidth:x,loading:D,loadingIndicator:z,loadingPosition:R,size:M,type:A,variant:I},q=ij(B),H=(E||D&&R==="start")&&k.jsx(cj,{className:q.startIcon,ownerState:B,children:E||k.jsx(Ex,{className:q.loadingIconPlaceholder,ownerState:B})}),U=(v||D&&R==="end")&&k.jsx(lj,{className:q.endIcon,ownerState:B,children:v||k.jsx(Ex,{className:q.loadingIconPlaceholder,ownerState:B})}),X=o||"",re=typeof D=="boolean"?k.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:D&&k.jsx(uj,{className:q.loadingIndicator,ownerState:B,children:z})}):null;return k.jsxs(sj,{ownerState:B,className:ye(n.className,q.root,h,X),component:f,disabled:d||D,focusRipple:!y,focusVisibleClassName:ye(q.focusVisible,b),ref:r,type:A,id:D?$:C,...P,classes:q,children:[H,R!=="end"&&re,l,R==="end"&&re,U]})});function dj(t){return qe("PrivateSwitchBase",t)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const pj=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${he(o)}`],input:["input"]};return He(a,dj,e)},fj=ie(ii,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),hj=ie("input",{name:"MuiSwitchBase",shouldForwardProp:$r})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),OT=T.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:f=!1,icon:h,id:d,inputProps:m,inputRef:y,name:v,onBlur:b,onChange:x,onFocus:C,readOnly:D,required:O=!1,tabIndex:R,type:M,value:E,slots:A={},slotProps:I={},...P}=e,[$,z]=gf({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),B=Lo(),q=oe=>{C&&C(oe),B&&B.onFocus&&B.onFocus(oe)},H=oe=>{b&&b(oe),B&&B.onBlur&&B.onBlur(oe)},U=oe=>{if(oe.nativeEvent.defaultPrevented)return;const fe=oe.target.checked;z(fe),x&&x(oe,fe)};let X=l;B&&typeof X>"u"&&(X=B.disabled);const re=M==="checkbox"||M==="radio",Z={...e,checked:$,disabled:X,disableFocusRipple:u,edge:f},G=pj(Z),ee={slots:A,slotProps:{input:m,...I}},[F,K]=ct("root",{ref:r,elementType:fj,className:G.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,component:"span",...P},getSlotProps:oe=>({...oe,onFocus:fe=>{oe.onFocus?.(fe),q(fe)},onBlur:fe=>{oe.onBlur?.(fe),H(fe)}}),ownerState:Z,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:X,role:void 0,tabIndex:null}}),[ue,pe]=ct("input",{ref:y,elementType:hj,className:G.input,externalForwardedProps:ee,getSlotProps:oe=>({onChange:fe=>{oe.onChange?.(fe),U(fe)}}),ownerState:Z,additionalProps:{autoFocus:n,checked:o,defaultChecked:s,disabled:X,id:re?d:void 0,name:v,readOnly:D,required:O,tabIndex:R,type:M,...M==="checkbox"&&E===void 0?{}:{value:E}}});return k.jsxs(F,{...K,children:[k.jsx(ue,{...pe}),$?a:h]})}),mj=Ze(k.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_j=Ze(k.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),gj=Ze(k.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function yj(t){return qe("MuiCheckbox",t)}const I_=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),vj=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,a={root:["root",r&&"indeterminate",`color${he(n)}`,`size${he(o)}`]},s=He(a,yj,e);return{...e,...s}},bj=ie(OT,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${he(r.size)}`],r.color!=="default"&&e[`color${he(r.color)}`]]}})(Ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e},style:{[`&.${I_.checked}, &.${I_.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${I_.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),wj=k.jsx(_j,{}),Sj=k.jsx(mj,{}),xj=k.jsx(gj,{}),dr=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCheckbox"}),{checkedIcon:o=wj,color:a="primary",icon:s=Sj,indeterminate:l=!1,indeterminateIcon:u=xj,inputProps:f,size:h="medium",disableRipple:d=!1,className:m,slots:y={},slotProps:v={},...b}=n,x=l?u:s,C=l?u:o,D={...n,disableRipple:d,color:a,indeterminate:l,size:h},O=vj(D),R=v.input??f,[M,E]=ct("root",{ref:r,elementType:bj,className:ye(O.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:v,...b},ownerState:D,additionalProps:{type:"checkbox",icon:T.cloneElement(x,{fontSize:x.props.fontSize??h}),checkedIcon:T.cloneElement(C,{fontSize:C.props.fontSize??h}),disableRipple:d,slots:y,slotProps:{input:uT(typeof R=="function"?R(D):R,{"data-indeterminate":l})}}});return k.jsx(M,{...E,classes:O})});function Tx(t){return t.substring(2).toLowerCase()}function kj(t,e){return e.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const h=vr(es(e),l),d=Jr(v=>{const b=f.current;f.current=!1;const x=Mr(l.current);if(!u.current||!l.current||"clientX"in v&&kj(v,x))return;if(s.current){s.current=!1;return}let C;v.composedPath?C=v.composedPath().includes(l.current):C=!x.documentElement.contains(v.target)||l.current.contains(v.target),!C&&(r||!b)&&o(v)}),m=v=>b=>{f.current=!0;const x=e.props[v];x&&x(b)},y={ref:h};return a!==!1&&(y[a]=m(a)),T.useEffect(()=>{if(a!==!1){const v=Tx(a),b=Mr(l.current),x=()=>{s.current=!0};return b.addEventListener(v,d),b.addEventListener("touchmove",x),()=>{b.removeEventListener(v,d),b.removeEventListener("touchmove",x)}}},[d,a]),n!==!1&&(y[n]=m(n)),T.useEffect(()=>{if(n!==!1){const v=Tx(n),b=Mr(l.current);return b.addEventListener(v,d),()=>{b.removeEventListener(v,d)}}},[d,n]),T.cloneElement(e,y)}function $j(t){const e=Mr(t);return e.body===t?so(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function gu(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Ox(t){return parseInt(so(t).getComputedStyle(t).paddingRight,10)||0}function Ej(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function Dx(t,e,r,n,o){const a=[e,r,...n];[].forEach.call(t.children,s=>{const l=!a.includes(s),u=!Ej(s);l&&u&&gu(s,o)})}function j_(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function Tj(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if($j(n)){const s=XE(so(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ox(n)+s}px`;const l=Mr(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${Ox(u)+s}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Mr(n).body;else{const s=n.parentElement,l=so(n);a=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:s,property:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function Oj(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class Dj{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&gu(e.modalRef,!1);const o=Oj(r);Dx(r,e.mount,e.modalRef,o,!0);const a=j_(this.containers,s=>s.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=j_(this.containers,a=>a.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=Tj(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=j_(this.containers,s=>s.modals.includes(e)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&gu(e.modalRef,r),Dx(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&gu(s.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const Rj=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Mj(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function Aj(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function Nj(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||Aj(t))}function Pj(t){const e=[],r=[];return Array.from(t.querySelectorAll(Rj)).forEach((n,o)=>{const a=Mj(n);a===-1||!Nj(n)||(a===0?e.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function Ij(){return!0}function jj(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=Pj,isEnabled:s=Ij,open:l}=t,u=T.useRef(!1),f=T.useRef(null),h=T.useRef(null),d=T.useRef(null),m=T.useRef(null),y=T.useRef(!1),v=T.useRef(null),b=vr(es(e),v),x=T.useRef(null);T.useEffect(()=>{!l||!v.current||(y.current=!r)},[r,l]),T.useEffect(()=>{if(!l||!v.current)return;const O=Mr(v.current);return v.current.contains(O.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[l]),T.useEffect(()=>{if(!l||!v.current)return;const O=Mr(v.current),R=A=>{x.current=A,!(n||!s()||A.key!=="Tab")&&O.activeElement===v.current&&A.shiftKey&&(u.current=!0,h.current&&h.current.focus())},M=()=>{const A=v.current;if(A===null)return;if(!O.hasFocus()||!s()||u.current){u.current=!1;return}if(A.contains(O.activeElement)||n&&O.activeElement!==f.current&&O.activeElement!==h.current)return;if(O.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let I=[];if((O.activeElement===f.current||O.activeElement===h.current)&&(I=a(v.current)),I.length>0){const P=!!(x.current?.shiftKey&&x.current?.key==="Tab"),$=I[0],z=I[I.length-1];typeof $!="string"&&typeof z!="string"&&(P?z.focus():$.focus())}else A.focus()};O.addEventListener("focusin",M),O.addEventListener("keydown",R,!0);const E=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(E),O.removeEventListener("focusin",M),O.removeEventListener("keydown",R,!0)}},[r,n,o,s,l,a]);const C=O=>{d.current===null&&(d.current=O.relatedTarget),y.current=!0,m.current=O.target;const R=e.props.onFocus;R&&R(O)},D=O=>{d.current===null&&(d.current=O.relatedTarget),y.current=!0};return k.jsxs(T.Fragment,{children:[k.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:f,"data-testid":"sentinelStart"}),T.cloneElement(e,{ref:b,onFocus:C}),k.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:h,"data-testid":"sentinelEnd"})]})}function zj(t){return typeof t=="function"?t():t}function Lj(t){return t?t.props.hasOwnProperty("in"):!1}const Rx=()=>{},Op=new Dj;function Fj(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:f,rootRef:h}=t,d=T.useRef({}),m=T.useRef(null),y=T.useRef(null),v=vr(y,h),[b,x]=T.useState(!f),C=Lj(l);let D=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(D=!1);const O=()=>Mr(m.current),R=()=>(d.current.modalRef=y.current,d.current.mount=m.current,d.current),M=()=>{Op.mount(R(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},E=Jr(()=>{const U=zj(e)||O().body;Op.add(R(),U),y.current&&M()}),A=()=>Op.isTopModal(R()),I=Jr(U=>{m.current=U,U&&(f&&A()?M():y.current&&gu(y.current,D))}),P=T.useCallback(()=>{Op.remove(R(),D)},[D]);T.useEffect(()=>()=>{P()},[P]),T.useEffect(()=>{f?E():(!C||!o)&&P()},[f,P,C,o,E]);const $=U=>X=>{U.onKeyDown?.(X),!(X.key!=="Escape"||X.which===229||!A())&&(r||(X.stopPropagation(),u&&u(X,"escapeKeyDown")))},z=U=>X=>{U.onClick?.(X),X.target===X.currentTarget&&u&&u(X,"backdropClick")};return{getRootProps:(U={})=>{const X=vf(t);delete X.onTransitionEnter,delete X.onTransitionExited;const re={...X,...U};return{role:"presentation",...re,onKeyDown:$(re),ref:v}},getBackdropProps:(U={})=>{const X=U;return{"aria-hidden":!0,...X,onClick:z(X),open:f}},getTransitionProps:()=>{const U=()=>{x(!1),a&&a()},X=()=>{x(!0),s&&s(),o&&P()};return{onEnter:Dv(U,l?.props.onEnter??Rx),onExited:Dv(X,l?.props.onExited??Rx)}},rootRef:v,portalRef:I,isTopModal:A,exited:b,hasTransition:C}}function Bj(t){return qe("MuiModal",t)}We("MuiModal",["root","hidden","backdrop"]);const Wj=t=>{const{open:e,exited:r,classes:n}=t;return He({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},Bj,n)},Uj=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Ke(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),qj=ie(ET,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),DT=T.forwardRef(function(e,r){const n=Ve({name:"MuiModal",props:e}),{BackdropComponent:o=qj,BackdropProps:a,classes:s,className:l,closeAfterTransition:u=!1,children:f,container:h,component:d,components:m={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:C=!1,disableRestoreFocus:D=!1,disableScrollLock:O=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:E,onClose:A,onTransitionEnter:I,onTransitionExited:P,open:$,slotProps:z={},slots:B={},theme:q,...H}=n,U={...n,closeAfterTransition:u,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:C,disableRestoreFocus:D,disableScrollLock:O,hideBackdrop:R,keepMounted:M},{getRootProps:X,getBackdropProps:re,getTransitionProps:Z,portalRef:G,isTopModal:ee,exited:F,hasTransition:K}=Fj({...U,rootRef:r}),ue={...U,exited:F},pe=Wj(ue),oe={};if(f.props.tabIndex===void 0&&(oe.tabIndex="-1"),K){const{onEnter:Pe,onExited:Re}=Z();oe.onEnter=Pe,oe.onExited=Re}const fe={slots:{root:m.Root,backdrop:m.Backdrop,...B},slotProps:{...y,...z}},[we,ke]=ct("root",{ref:r,elementType:Uj,externalForwardedProps:{...fe,...H,component:d},getSlotProps:X,ownerState:ue,className:ye(l,pe?.root,!ue.open&&ue.exited&&pe?.hidden)}),[Ee,$e]=ct("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:fe,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Pe=>re({...Pe,onClick:Re=>{E&&E(Re),Pe?.onClick&&Pe.onClick(Re)}}),className:ye(a?.className,pe?.backdrop),ownerState:ue});return!M&&!$&&(!K||F)?null:k.jsx(CT,{ref:G,container:h,disablePortal:C,children:k.jsxs(we,{...ke,children:[!R&&o?k.jsx(Ee,{...$e}):null,k.jsx(jj,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:D,isEnabled:ee,open:$,children:T.cloneElement(f,oe)})]})})});function Hj(t){return qe("MuiDialog",t)}const z_=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),RT=T.createContext({}),Vj=ie(ET,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),Gj=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=t,s={root:["root"],container:["container",`scroll${he(r)}`],paper:["paper",`paperScroll${he(r)}`,`paperWidth${he(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return He(s,Hj,e)},Xj=ie(DT,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),Jj=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${he(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Yj=ie(Ka,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${he(r.scroll)}`],e[`paperWidth${he(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Ke(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${z_.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${z_.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${z_.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),co=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialog"}),o=ha(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:h,children:d,className:m,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:x="sm",onBackdropClick:C,onClick:D,onClose:O,open:R,PaperComponent:M=Ka,PaperProps:E={},scroll:A="paper",slots:I={},slotProps:P={},TransitionComponent:$=qv,transitionDuration:z=a,TransitionProps:B,...q}=n,H={...n,disableEscapeKeyDown:y,fullScreen:v,fullWidth:b,maxWidth:x,scroll:A},U=Gj(H),X=T.useRef(),re=ve=>{X.current=ve.target===ve.currentTarget},Z=ve=>{D&&D(ve),X.current&&(X.current=null,C&&C(ve),O&&O(ve,"backdropClick"))},G=Qi(l),ee=T.useMemo(()=>({titleId:G}),[G]),F={transition:$,...I},K={transition:B,paper:E,backdrop:h,...P},ue={slots:F,slotProps:K},[pe,oe]=ct("root",{elementType:Xj,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:H,className:ye(U.root,m),ref:r}),[fe,we]=ct("backdrop",{elementType:Vj,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:H}),[ke,Ee]=ct("paper",{elementType:Yj,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:H,className:ye(U.paper,E.className)}),[$e,Pe]=ct("container",{elementType:Jj,externalForwardedProps:ue,ownerState:H,className:ye(U.container)}),[Re,Ge]=ct("transition",{elementType:qv,externalForwardedProps:ue,ownerState:H,additionalProps:{appear:!0,in:R,timeout:z,role:"presentation"}});return k.jsx(pe,{closeAfterTransition:!0,slots:{backdrop:fe},slotProps:{backdrop:{transitionDuration:z,as:f,...we}},disableEscapeKeyDown:y,onClose:O,open:R,onClick:Z,...oe,...q,children:k.jsx(Re,{...Ge,children:k.jsx($e,{onMouseDown:re,...Pe,children:k.jsx(ke,{as:M,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":G,"aria-modal":u,...Ee,children:k.jsx(RT.Provider,{value:ee,children:d})})})})})});function Kj(t){return qe("MuiDialogActions",t)}We("MuiDialogActions",["root","spacing"]);const Zj=t=>{const{classes:e,disableSpacing:r}=t;return He({root:["root",!r&&"spacing"]},Kj,e)},Qj=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),lo=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=n,l={...n,disableSpacing:a},u=Zj(l);return k.jsx(Qj,{className:ye(u.root,o),ownerState:l,ref:r,...s})});function ez(t){return qe("MuiDialogContent",t)}We("MuiDialogContent",["root","dividers"]);function tz(t){return qe("MuiDialogTitle",t)}const rz=We("MuiDialogTitle",["root"]),nz=t=>{const{classes:e,dividers:r}=t;return He({root:["root",r&&"dividers"]},ez,e)},oz=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Ke(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${rz.root} + &`]:{paddingTop:0}}}]}))),uo=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=n,l={...n,dividers:a},u=nz(l);return k.jsx(oz,{className:ye(u.root,o),ownerState:l,ref:r,...s})});function az(t){return qe("MuiDialogContentText",t)}We("MuiDialogContentText",["root"]);const iz=t=>{const{classes:e}=t,n=He({root:["root"]},az,e);return{...e,...n}},sz=ie(Ro,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),uh=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialogContentText"}),{children:o,className:a,...s}=n,l=iz(s);return k.jsx(sz,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:s,className:ye(l.root,a),...n,classes:l})}),cz=t=>{const{classes:e}=t;return He({root:["root"]},tz,e)},lz=ie(Ro,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),po=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiDialogTitle"}),{className:o,id:a,...s}=n,l=n,u=cz(l),{titleId:f=a}=T.useContext(RT);return k.jsx(lz,{component:"h2",className:ye(u.root,o),ownerState:l,ref:r,variant:"h6",id:a??f,...s})}),Mx=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function uz(t){return qe("MuiFab",t)}const Ax=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),dz=t=>{const{color:e,variant:r,classes:n,size:o}=t,a={root:["root",r,`size${he(o)}`,e==="inherit"?"colorInherit":e]},s=He(a,uz,n);return{...n,...s}},pz=ie(ii,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>$r(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,e[he(r.size)],e[r.color]]}})(Ke(({theme:t})=>({...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:t.palette.getContrastText?.(t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${Ax.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),Ke(({theme:t})=>({variants:[...Object.entries(t.palette).filter(hr(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Ke(({theme:t})=>({[`&.${Ax.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),Ui=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFab"}),{children:o,className:a,color:s="default",component:l="button",disabled:u=!1,disableFocusRipple:f=!1,focusVisibleClassName:h,size:d="large",variant:m="circular",...y}=n,v={...n,color:s,component:l,disabled:u,disableFocusRipple:f,size:d,variant:m},b=dz(v);return k.jsx(pz,{className:ye(b.root,a),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:ye(b.focusVisible,h),ownerState:v,ref:r,...y,classes:b,children:o})}),fz=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=t,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${he(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=He(u,jI,e);return{...e,...f}},hz=ie(ch,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...ih(t,e),!r.disableUnderline&&e.underline]}})(Ke(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${ki.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${ki.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ki.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ki.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ki.disabled}, .${ki.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${ki.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(hr()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),mz=ie(lh,{name:"MuiFilledInput",slot:"Input",overridesResolver:sh})(Ke(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),fb=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:u,inputComponent:f="input",multiline:h=!1,slotProps:d,slots:m={},type:y="text",...v}=n,b={...n,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:h,type:y},x=fz(n),C={root:{ownerState:b},input:{ownerState:b}},D=d??s?Ur(C,d??s):C,O=m.root??a.Root??hz,R=m.input??a.Input??mz;return k.jsx(pb,{slots:{root:O,input:R},slotProps:D,fullWidth:l,inputComponent:f,multiline:h,ref:r,type:y,...v,classes:x})});fb.muiName="Input";function _z(t){return qe("MuiFormControl",t)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const gz=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return He(o,_z,e)},yz=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${he(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),sa=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:l="div",disabled:u=!1,error:f=!1,focused:h,fullWidth:d=!1,hiddenLabel:m=!1,margin:y="none",required:v=!1,size:b="medium",variant:x="outlined",...C}=n,D={...n,color:s,component:l,disabled:u,error:f,fullWidth:d,hiddenLabel:m,margin:y,required:v,size:b,variant:x},O=gz(D),[R,M]=T.useState(()=>{let U=!1;return o&&T.Children.forEach(o,X=>{if(!nf(X,["Input","Select"]))return;const re=nf(X,["Select"])?X.props.input:X;re&&MI(re.props)&&(U=!0)}),U}),[E,A]=T.useState(()=>{let U=!1;return o&&T.Children.forEach(o,X=>{nf(X,["Input","Select"])&&(Cf(X.props,!0)||Cf(X.props.inputProps,!0))&&(U=!0)}),U}),[I,P]=T.useState(!1);u&&I&&P(!1);const $=h!==void 0&&!u?h:I;let z;T.useRef(!1);const B=T.useCallback(()=>{A(!0)},[]),q=T.useCallback(()=>{A(!1)},[]),H=T.useMemo(()=>({adornedStart:R,setAdornedStart:M,color:s,disabled:u,error:f,filled:E,focused:$,fullWidth:d,hiddenLabel:m,size:b,onBlur:()=>{P(!1)},onFocus:()=>{P(!0)},onEmpty:q,onFilled:B,registerEffect:z,required:v,variant:x}),[R,s,u,f,E,$,d,m,z,q,B,v,b,x]);return k.jsx(db.Provider,{value:H,children:k.jsx(yz,{as:l,ownerState:D,className:ye(O.root,a),ref:r,...C,children:o})})});function vz(t){return qe("MuiFormControlLabel",t)}const ou=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),bz=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:a}=t,s={root:["root",r&&"disabled",`labelPlacement${he(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return He(s,vz,e)},wz=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${ou.label}`]:e.label},e.root,e[`labelPlacement${he(r.labelPlacement)}`]]}})(Ke(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ou.disabled}`]:{cursor:"default"},[`& .${ou.label}`]:{[`&.${ou.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),Sz=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Ke(({theme:t})=>({[`&.${ou.error}`]:{color:(t.vars||t).palette.error.main}}))),ut=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:l,disabled:u,disableTypography:f,inputRef:h,label:d,labelPlacement:m="end",name:y,onChange:v,required:b,slots:x={},slotProps:C={},value:D,...O}=n,R=Lo(),M=u??l.props.disabled??R?.disabled,E=b??l.props.required,A={disabled:M,required:E};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof l.props[U]>"u"&&typeof n[U]<"u"&&(A[U]=n[U])});const I=ci({props:n,muiFormControl:R,states:["error"]}),P={...n,disabled:M,labelPlacement:m,required:E,error:I.error},$=bz(P),z={slots:x,slotProps:{...s,...C}},[B,q]=ct("typography",{elementType:Ro,externalForwardedProps:z,ownerState:P});let H=d;return H!=null&&H.type!==Ro&&!f&&(H=k.jsx(B,{component:"span",...q,className:ye($.label,q?.className),children:H})),k.jsxs(wz,{className:ye($.root,a),ownerState:P,ref:r,...O,children:[T.cloneElement(l,A),E?k.jsxs("div",{children:[H,k.jsxs(Sz,{ownerState:P,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):H]})});function xz(t){return qe("MuiFormGroup",t)}We("MuiFormGroup",["root","row","error"]);const kz=t=>{const{classes:e,row:r,error:n}=t;return He({root:["root",r&&"row",n&&"error"]},xz,e)},Cz=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),af=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormGroup"}),{className:o,row:a=!1,...s}=n,l=Lo(),u=ci({props:n,muiFormControl:l,states:["error"]}),f={...n,row:a,error:u.error},h=kz(f);return k.jsx(Cz,{className:ye(h.root,o),ownerState:f,ref:r,...s})});function $z(t){return qe("MuiFormHelperText",t)}const Nx=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Px;const Ez=t=>{const{classes:e,contained:r,size:n,disabled:o,error:a,filled:s,focused:l,required:u}=t,f={root:["root",o&&"disabled",a&&"error",n&&`size${he(n)}`,r&&"contained",l&&"focused",s&&"filled",u&&"required"]};return He(f,$z,e)},Tz=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${he(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Nx.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Nx.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),rd=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:l,error:u,filled:f,focused:h,margin:d,required:m,variant:y,...v}=n,b=Lo(),x=ci({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),C={...n,component:s,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete C.ownerState;const D=Ez(C);return k.jsx(Tz,{as:s,className:ye(D.root,a),ref:r,...v,ownerState:C,children:o===" "?Px||(Px=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function Oz(t){return qe("MuiFormLabel",t)}const yu=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Dz=t=>{const{classes:e,color:r,focused:n,disabled:o,error:a,filled:s,required:l}=t,u={root:["root",`color${he(r)}`,o&&"disabled",a&&"error",s&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return He(u,Oz,e)},Rz=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e},style:{[`&.${yu.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${yu.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${yu.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),Mz=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Ke(({theme:t})=>({[`&.${yu.error}`]:{color:(t.vars||t).palette.error.main}}))),Az=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:l="label",disabled:u,error:f,filled:h,focused:d,required:m,...y}=n,v=Lo(),b=ci({props:n,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),x={...n,color:b.color||"primary",component:l,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},C=Dz(x);return k.jsxs(Rz,{as:l,ownerState:x,className:ye(C.root,a),ref:r,...y,children:[o,b.required&&k.jsxs(Mz,{ownerState:x,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})}),Nz=zA({createStyledComponent:ie("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.container&&e.container]}}),componentName:"MuiGrid2",useThemeProps:t=>Ve({props:t,name:"MuiGrid2"}),useTheme:ha});function Hv(t){return`scale(${t}, ${t**2})`}const Pz={entering:{opacity:1,transform:Hv(1)},entered:{opacity:1,transform:"none"}},L_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Au=T.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:f,onEntering:h,onExit:d,onExited:m,onExiting:y,style:v,timeout:b="auto",TransitionComponent:x=zo,...C}=e,D=Fi(),O=T.useRef(),R=ha(),M=T.useRef(null),E=vr(M,es(a),r),A=U=>X=>{if(U){const re=M.current;X===void 0?U(re):U(re,X)}},I=A(h),P=A((U,X)=>{hT(U);const{duration:re,delay:Z,easing:G}=Sf({style:v,timeout:b,easing:s},{mode:"enter"});let ee;b==="auto"?(ee=R.transitions.getAutoHeightDuration(U.clientHeight),O.current=ee):ee=re,U.style.transition=[R.transitions.create("opacity",{duration:ee,delay:Z}),R.transitions.create("transform",{duration:L_?ee:ee*.666,delay:Z,easing:G})].join(","),u&&u(U,X)}),$=A(f),z=A(y),B=A(U=>{const{duration:X,delay:re,easing:Z}=Sf({style:v,timeout:b,easing:s},{mode:"exit"});let G;b==="auto"?(G=R.transitions.getAutoHeightDuration(U.clientHeight),O.current=G):G=X,U.style.transition=[R.transitions.create("opacity",{duration:G,delay:re}),R.transitions.create("transform",{duration:L_?G:G*.666,delay:L_?re:re||G*.333,easing:Z})].join(","),U.style.opacity=0,U.style.transform=Hv(.75),d&&d(U)}),q=A(m),H=U=>{b==="auto"&&D.start(O.current||0,U),n&&n(M.current,U)};return k.jsx(x,{appear:o,in:l,nodeRef:M,onEnter:P,onEntered:$,onEntering:I,onExit:B,onExited:q,onExiting:z,addEndListener:H,timeout:b==="auto"?null:b,...C,children:(U,{ownerState:X,...re})=>T.cloneElement(a,{style:{opacity:0,transform:Hv(.75),visibility:U==="exited"&&!l?"hidden":void 0,...Pz[U],...v,...a.props.style},ref:E,...re})})});Au&&(Au.muiSupportAuto=!0);const Iz=HE({themeId:ao}),jz=t=>{const{classes:e,disableUnderline:r}=t,o=He({root:["root",!r&&"underline"],input:["input"]},PI,e);return{...e,...o}},zz=ie(ch,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...ih(t,e),!r.disableUnderline&&e.underline]}})(Ke(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jl.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${jl.disabled}, .${jl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${jl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(hr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),Lz=ie(lh,{name:"MuiInput",slot:"Input",overridesResolver:sh})({}),no=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:u="input",multiline:f=!1,slotProps:h,slots:d={},type:m="text",...y}=n,v=jz(n),x={root:{ownerState:{disableUnderline:o}}},C=h??s?Ur(h??s,x):x,D=d.root??a.Root??zz,O=d.input??a.Input??Lz;return k.jsx(pb,{slots:{root:D,input:O},slotProps:C,fullWidth:l,inputComponent:u,multiline:f,ref:r,type:m,...y,classes:v})});no.muiName="Input";function Fz(t){return qe("MuiInputLabel",t)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Bz=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:a,variant:s,required:l}=t,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${he(n)}`,s],asterisk:[l&&"asterisk"]},f=He(u,Fz,e);return{...e,...f}},Wz=ie(Az,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${yu.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Ke(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),vu=T.forwardRef(function(e,r){const n=Ve({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:s,variant:l,className:u,...f}=n,h=Lo();let d=s;typeof d>"u"&&h&&(d=h.filled||h.focused||h.adornedStart);const m=ci({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:h,shrink:d,size:m.size,variant:m.variant,required:m.required,focused:m.focused},v=Bz(y);return k.jsx(Wz,{"data-shrink":d,ref:r,className:ye(v.root,u),...f,ownerState:y,classes:v})});function Uz(t){return qe("MuiLinearProgress",t)}We("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Vv=4,Gv=ai` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,qz=typeof Gv!="string"?Uc` + animation: ${Gv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Xv=ai` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,Hz=typeof Xv!="string"?Uc` + animation: ${Xv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Jv=ai` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,Vz=typeof Jv!="string"?Uc` + animation: ${Jv} 3s infinite linear; + `:null,Gz=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${he(n)}`,r],dashed:["dashed",`dashedColor${he(n)}`],bar1:["bar","bar1",`barColor${he(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${he(n)}`,r==="buffer"&&`color${he(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return He(o,Uz,e)},hb=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Qu(t.palette[e].main,.62):Zu(t.palette[e].main,.5),Xz=ie("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${he(r.color)}`],e[r.variant]]}})(Ke(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e},style:{backgroundColor:hb(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Jz=ie("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${he(r.color)}`]]}})(Ke(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(hr()).map(([e])=>{const r=hb(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),Vz||{animation:`${Jv} 3s infinite linear`}),Yz=ie("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Ke(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Vv}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Vv}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:qz||{animation:`${Gv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Kz=ie("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Ke(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:hb(t,e),transition:`transform .${Vv}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:Hz||{animation:`${Xv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),MT=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:s,valueBuffer:l,variant:u="indeterminate",...f}=n,h={...n,color:a,variant:u},d=Gz(h),m=qc(),y={},v={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&s!==void 0){y["aria-valuenow"]=Math.round(s),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let b=s-100;m&&(b=-b),v.bar1.transform=`translateX(${b}%)`}if(u==="buffer"&&l!==void 0){let b=(l||0)-100;m&&(b=-b),v.bar2.transform=`translateX(${b}%)`}return k.jsxs(Xz,{className:ye(d.root,o),ownerState:h,role:"progressbar",...y,ref:r,...f,children:[u==="buffer"?k.jsx(Jz,{className:d.dashed,ownerState:h}):null,k.jsx(Yz,{className:d.bar1,ownerState:h,style:v.bar1}),u==="determinate"?null:k.jsx(Kz,{className:d.bar2,ownerState:h,style:v.bar2})]})}),Nu=T.createContext({});function Zz(t){return qe("MuiList",t)}We("MuiList",["root","padding","dense","subheader"]);const Qz=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return He({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Zz,e)},eL=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),tL=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:u=!1,subheader:f,...h}=n,d=T.useMemo(()=>({dense:l}),[l]),m={...n,component:s,dense:l,disablePadding:u},y=Qz(m);return k.jsx(Nu.Provider,{value:d,children:k.jsxs(eL,{as:s,className:ye(y.root,a),ref:r,ownerState:m,...h,children:[f,o]})})});function rL(t){return qe("MuiListItemIcon",t)}const Ix=We("MuiListItemIcon",["root","alignItemsFlexStart"]),nL=t=>{const{alignItems:e,classes:r}=t;return He({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},rL,r)},oL=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Ke(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),aL=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,s=T.useContext(Nu),l={...n,alignItems:s.alignItems},u=nL(l);return k.jsx(oL,{className:ye(u.root,o),ownerState:l,ref:r,...a})});function iL(t){return qe("MuiListItemText",t)}const wc=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),sL=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return He({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},iL,e)},cL=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${wc.primary}`]:e.primary},{[`& .${wc.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${dx.root}:where(& .${wc.primary})`]:{display:"block"},[`.${dx.root}:where(& .${wc.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),lL=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:l=!1,primary:u,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:d,slots:m={},slotProps:y={},...v}=n,{dense:b}=T.useContext(Nu);let x=u??o,C=h;const D={...n,disableTypography:s,inset:l,primary:!!x,secondary:!!C,dense:b},O=sL(D),R={slots:m,slotProps:{primary:f,secondary:d,...y}},[M,E]=ct("root",{className:ye(O.root,a),elementType:cL,externalForwardedProps:{...R,...v},ownerState:D,ref:r}),[A,I]=ct("primary",{className:O.primary,elementType:Ro,externalForwardedProps:R,ownerState:D}),[P,$]=ct("secondary",{className:O.secondary,elementType:Ro,externalForwardedProps:R,ownerState:D});return x!=null&&x.type!==Ro&&!s&&(x=k.jsx(A,{variant:b?"body2":"body1",component:I?.variant?void 0:"span",...I,children:x})),C!=null&&C.type!==Ro&&!s&&(C=k.jsx(P,{variant:"body2",color:"textSecondary",...$,children:C})),k.jsxs(M,{...E,children:[x,C]})});function F_(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function jx(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function AT(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function zl(t,e,r,n,o,a){let s=!1,l=o(t,e,e?r:!1);for(;l;){if(l===t.firstChild){if(s)return!1;s=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!AT(l,a)||u)l=o(t,l,r);else return l.focus(),!0}return!1}const uL=T.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:h,variant:d="selectedMenu",...m}=e,y=T.useRef(null),v=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fn(()=>{o&&y.current.focus()},[o]),T.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(O,{direction:R})=>{const M=!y.current.style.width;if(O.clientHeight{const R=y.current,M=O.key;if(O.ctrlKey||O.metaKey||O.altKey){h&&h(O);return}const A=Mr(R).activeElement;if(M==="ArrowDown")O.preventDefault(),zl(R,A,f,u,F_);else if(M==="ArrowUp")O.preventDefault(),zl(R,A,f,u,jx);else if(M==="Home")O.preventDefault(),zl(R,null,f,u,F_);else if(M==="End")O.preventDefault(),zl(R,null,f,u,jx);else if(M.length===1){const I=v.current,P=M.toLowerCase(),$=performance.now();I.keys.length>0&&($-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&P!==I.keys[0]&&(I.repeating=!1)),I.lastTime=$,I.keys.push(P);const z=A&&!I.repeating&&AT(A,I);I.previousKeyMatched&&(z||zl(R,A,!1,u,F_,I))?O.preventDefault():I.previousKeyMatched=!1}h&&h(O)},x=vr(y,r);let C=-1;T.Children.forEach(s,(O,R)=>{if(!T.isValidElement(O)){C===R&&(C+=1,C>=s.length&&(C=-1));return}O.props.disabled||(d==="selectedMenu"&&O.props.selected||C===-1)&&(C=R),C===R&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(C+=1,C>=s.length&&(C=-1))});const D=T.Children.map(s,(O,R)=>{if(R===C){const M={};return a&&(M.autoFocus=!0),O.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),T.cloneElement(O,M)}return O});return k.jsx(tL,{role:"menu",ref:x,className:l,onKeyDown:b,tabIndex:o?0:-1,...m,children:D})});function dL(t){return qe("MuiPopover",t)}We("MuiPopover",["root","paper"]);function zx(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function Lx(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function Fx(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Dp(t){return typeof t=="function"?t():t}const pL=t=>{const{classes:e}=t;return He({root:["root"],paper:["paper"]},dL,e)},fL=ie(DT,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),NT=ie(Ka,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),hL=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:f,className:h,container:d,elevation:m=8,marginThreshold:y=16,open:v,PaperProps:b={},slots:x={},slotProps:C={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:O,transitionDuration:R="auto",TransitionProps:M={},disableScrollLock:E=!1,...A}=n,I=T.useRef(),P={...n,anchorOrigin:s,anchorReference:u,elevation:m,marginThreshold:y,transformOrigin:D,TransitionComponent:O,transitionDuration:R,TransitionProps:M},$=pL(P),z=T.useCallback(()=>{if(u==="anchorPosition")return l;const $e=Dp(a),Re=($e&&$e.nodeType===1?$e:Mr(I.current).body).getBoundingClientRect();return{top:Re.top+zx(Re,s.vertical),left:Re.left+Lx(Re,s.horizontal)}},[a,s.horizontal,s.vertical,l,u]),B=T.useCallback($e=>({vertical:zx($e,D.vertical),horizontal:Lx($e,D.horizontal)}),[D.horizontal,D.vertical]),q=T.useCallback($e=>{const Pe={width:$e.offsetWidth,height:$e.offsetHeight},Re=B(Pe);if(u==="none")return{top:null,left:null,transformOrigin:Fx(Re)};const Ge=z();let ve=Ge.top-Re.vertical,Te=Ge.left-Re.horizontal;const _t=ve+Pe.height,be=Te+Pe.width,Ae=so(Dp(a)),lt=Ae.innerHeight-y,tt=Ae.innerWidth-y;if(y!==null&&velt){const Xe=_t-lt;ve-=Xe,Re.vertical+=Xe}if(y!==null&&Tett){const Xe=be-tt;Te-=Xe,Re.horizontal+=Xe}return{top:`${Math.round(ve)}px`,left:`${Math.round(Te)}px`,transformOrigin:Fx(Re)}},[a,u,z,B,y]),[H,U]=T.useState(v),X=T.useCallback(()=>{const $e=I.current;if(!$e)return;const Pe=q($e);Pe.top!==null&&$e.style.setProperty("top",Pe.top),Pe.left!==null&&($e.style.left=Pe.left),$e.style.transformOrigin=Pe.transformOrigin,U(!0)},[q]);T.useEffect(()=>(E&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[a,E,X]);const re=()=>{X()},Z=()=>{U(!1)};T.useEffect(()=>{v&&X()}),T.useImperativeHandle(o,()=>v?{updatePosition:()=>{X()}}:null,[v,X]),T.useEffect(()=>{if(!v)return;const $e=th(()=>{X()}),Pe=so(Dp(a));return Pe.addEventListener("resize",$e),()=>{$e.clear(),Pe.removeEventListener("resize",$e)}},[a,v,X]);let G=R;const ee={slots:{transition:O,...x},slotProps:{transition:M,paper:b,...C}},[F,K]=ct("transition",{elementType:Au,externalForwardedProps:ee,ownerState:P,getSlotProps:$e=>({...$e,onEntering:(Pe,Re)=>{$e.onEntering?.(Pe,Re),re()},onExited:Pe=>{$e.onExited?.(Pe),Z()}}),additionalProps:{appear:!0,in:v}});R==="auto"&&!F.muiSupportAuto&&(G=void 0);const ue=d||(a?Mr(Dp(a)).body:void 0),[pe,{slots:oe,slotProps:fe,...we}]=ct("root",{ref:r,elementType:fL,externalForwardedProps:{...ee,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:uT(typeof C.backdrop=="function"?C.backdrop(P):C.backdrop,{invisible:!0})},container:ue,open:v},ownerState:P,className:ye($.root,h)}),[ke,Ee]=ct("paper",{ref:I,className:$.paper,elementType:NT,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:H?void 0:{opacity:0}},ownerState:P});return k.jsx(pe,{...we,...!Uv(pe)&&{slots:oe,slotProps:fe,disableScrollLock:E},children:k.jsx(F,{...K,timeout:G,children:k.jsx(ke,{...Ee,children:f})})})});function mL(t){return qe("MuiMenu",t)}We("MuiMenu",["root","paper","list"]);const _L={vertical:"top",horizontal:"right"},gL={vertical:"top",horizontal:"left"},yL=t=>{const{classes:e}=t;return He({root:["root"],paper:["paper"],list:["list"]},mL,e)},vL=ie(hL,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),bL=ie(NT,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wL=ie(uL,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),PT=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:d={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:v,...b}={},variant:x="selectedMenu",slots:C={},slotProps:D={},...O}=n,R=qc(),M={...n,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:v,PaperProps:d,transitionDuration:y,TransitionProps:b,variant:x},E=yL(M),A=o&&!l&&h,I=T.useRef(null),P=(G,ee)=>{I.current&&I.current.adjustStyleForScrollbar(G,{direction:R?"rtl":"ltr"}),v&&v(G,ee)},$=G=>{G.key==="Tab"&&(G.preventDefault(),f&&f(G,"tabKeyDown"))};let z=-1;T.Children.map(a,(G,ee)=>{T.isValidElement(G)&&(G.props.disabled||(x==="selectedMenu"&&G.props.selected||z===-1)&&(z=ee))});const B={slots:C,slotProps:{list:u,transition:b,paper:d,...D}},q=Hi({elementType:C.root,externalSlotProps:D.root,ownerState:M,className:[E.root,s]}),[H,U]=ct("paper",{className:E.paper,elementType:bL,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:M}),[X,re]=ct("list",{className:ye(E.list,u.className),elementType:wL,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:G=>({...G,onKeyDown:ee=>{$(ee),G.onKeyDown?.(ee)}}),ownerState:M}),Z=typeof B.slotProps.transition=="function"?B.slotProps.transition(M):B.slotProps.transition;return k.jsx(vL,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?_L:gL,slots:{root:C.root,paper:H,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:q,paper:U,backdrop:typeof D.backdrop=="function"?D.backdrop(M):D.backdrop,transition:{...Z,onEntering:(...G)=>{P(...G),Z?.onEntering?.(...G)}}},open:h,ref:r,transitionDuration:y,ownerState:M,...O,classes:m,children:k.jsx(X,{actions:I,autoFocus:o&&(z===-1||l),autoFocusItem:A,variant:x,...re,children:a})})});function SL(t){return qe("MuiMenuItem",t)}const Ll=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),xL=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},kL=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:s}=t,u=He({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},SL,s);return{...s,...u}},CL=ie(ii,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:xL})(Ke(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ll.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Lt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Ll.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Lt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Ll.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Lt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Lt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Ll.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Ll.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Mx.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Mx.inset}`]:{marginLeft:52},[`& .${wc.root}`]:{marginTop:0,marginBottom:0},[`& .${wc.inset}`]:{paddingLeft:36},[`& .${Ix.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${Ix.root} svg`]:{fontSize:"1.25rem"}}}]}))),Qt=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:d,className:m,...y}=n,v=T.useContext(Nu),b=T.useMemo(()=>({dense:s||v.dense||!1,disableGutters:u}),[v.dense,s,u]),x=T.useRef(null);fn(()=>{o&&x.current&&x.current.focus()},[o]);const C={...n,dense:b.dense,divider:l,disableGutters:u},D=kL(n),O=vr(x,r);let R;return n.disabled||(R=d!==void 0?d:-1),k.jsx(Nu.Provider,{value:b,children:k.jsx(CL,{ref:O,role:h,tabIndex:R,component:a,focusVisibleClassName:ye(D.focusVisible,f),className:ye(D.root,m),...y,ownerState:C,classes:D})})});function $L(t){return qe("MuiNativeSelect",t)}const mb=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),EL=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:s}=t,l={select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"]};return He(l,$L,e)},IT=ie("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${mb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),TL=ie(IT,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:$r,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${mb.multiple}`]:e.multiple}]}})({}),jT=ie("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${mb.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),OL=ie(jT,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),DL=T.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:s,inputRef:l,variant:u="standard",...f}=e,h={...e,disabled:o,variant:u,error:a},d=EL(h);return k.jsxs(T.Fragment,{children:[k.jsx(TL,{ownerState:h,className:ye(d.select,n),disabled:o,ref:l||r,...f}),e.multiple?null:k.jsx(OL,{as:s,ownerState:h,className:d.icon})]})});var Bx;const RL=ie("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:$r})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ML=ie("legend",{name:"MuiNotchedOutlined",shouldForwardProp:$r})(Ke(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function AL(t){const{children:e,classes:r,className:n,label:o,notched:a,...s}=t,l=o!=null&&o!=="",u={...t,notched:a,withLabel:l};return k.jsx(RL,{"aria-hidden":!0,className:n,ownerState:u,...s,children:k.jsx(ML,{ownerState:u,children:l?k.jsx("span",{children:o}):Bx||(Bx=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const NL=t=>{const{classes:e}=t,n=He({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},II,e);return{...e,...n}},PL=ie(ch,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ih})(Ke(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${xo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${xo.focused} .${xo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(hr()).map(([r])=>({props:{color:r},style:{[`&.${xo.focused} .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${xo.error} .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${xo.disabled} .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),IL=ie(AL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Ke(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),jL=ie(lh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sh})(Ke(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),_b=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:u=!1,notched:f,slots:h={},slotProps:d={},type:m="text",...y}=n,v=NL(n),b=Lo(),x=ci({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...n,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:a,hiddenLabel:x.hiddenLabel,multiline:u,size:x.size,type:m},D=h.root??o.Root??PL,O=h.input??o.Input??jL,[R,M]=ct("notchedOutline",{elementType:IL,className:v.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:h,slotProps:d},additionalProps:{label:l!=null&&l!==""&&x.required?k.jsxs(T.Fragment,{children:[l," ","*"]}):l}});return k.jsx(pb,{slots:{root:D,input:O},slotProps:d,renderSuffix:E=>k.jsx(R,{...M,notched:typeof f<"u"?f:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:r,type:m,...y,classes:{...v,notchedOutline:null}})});_b.muiName="Input";const zL=Ze(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),LL=Ze(k.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),FL=ie("span",{name:"MuiRadioButtonIcon",shouldForwardProp:$r})({position:"relative",display:"flex"}),BL=ie(zL,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),WL=ie(LL,{name:"MuiRadioButtonIcon"})(Ke(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function zT(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return k.jsxs(FL,{className:r.root,ownerState:o,children:[k.jsx(BL,{fontSize:n,className:r.background,ownerState:o}),k.jsx(WL,{fontSize:n,className:r.dot,ownerState:o})]})}const UL=T.createContext(void 0);function qL(){return T.useContext(UL)}function HL(t){return qe("MuiRadio",t)}const Wx=We("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),VL=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${he(r)}`,n!=="medium"&&`size${he(n)}`]};return{...e,...He(o,HL,e)}},GL=ie(OT,{shouldForwardProp:t=>$r(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${he(r.size)}`],e[`color${he(r.color)}`]]}})(Ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${Wx.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Lt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(hr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${Wx.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function XL(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const JL=k.jsx(zT,{checked:!0}),YL=k.jsx(zT,{}),jt=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=JL,color:s="primary",icon:l=YL,name:u,onChange:f,size:h="medium",className:d,disabled:m,disableRipple:y=!1,slots:v={},slotProps:b={},inputProps:x,...C}=n,D=Lo();let O=m;D&&typeof O>"u"&&(O=D.disabled),O??=!1;const R={...n,disabled:O,disableRipple:y,color:s,size:h},M=VL(R),E=qL();let A=o;const I=Dv(f,E&&E.onChange);let P=u;E&&(typeof A>"u"&&(A=XL(E.value,n.value)),typeof P>"u"&&(P=E.name));const $=b.input??x,[z,B]=ct("root",{ref:r,elementType:GL,className:ye(M.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:b,...C},getSlotProps:q=>({...q,onChange:(H,...U)=>{q.onChange?.(H,...U),I(H,...U)}}),ownerState:R,additionalProps:{type:"radio",icon:T.cloneElement(l,{fontSize:l.props.fontSize??h}),checkedIcon:T.cloneElement(a,{fontSize:a.props.fontSize??h}),disabled:O,name:P,checked:A,slots:v,slotProps:{input:typeof $=="function"?$(R):$}}});return k.jsx(z,{...B,classes:M})});function LT(t){return qe("MuiSelect",t)}const Fl=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ux;const KL=ie(IT,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Fl.select}`]:e.select},{[`&.${Fl.select}`]:e[r.variant]},{[`&.${Fl.error}`]:e.error},{[`&.${Fl.multiple}`]:e.multiple}]}})({[`&.${Fl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ZL=ie(jT,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),QL=ie("input",{shouldForwardProp:t=>lT(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function qx(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function eF(t){return t==null||typeof t=="string"&&!t.trim()}const tF=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:s}=t,l={select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return He(l,LT,e)},rF=T.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:f,defaultValue:h,disabled:d,displayEmpty:m,error:y=!1,IconComponent:v,inputRef:b,labelId:x,MenuProps:C={},multiple:D,name:O,onBlur:R,onChange:M,onClose:E,onFocus:A,onOpen:I,open:P,readOnly:$,renderValue:z,required:B,SelectDisplayProps:q={},tabIndex:H,type:U,value:X,variant:re="standard",...Z}=e,[G,ee]=gf({controlled:X,default:h,name:"Select"}),[F,K]=gf({controlled:P,default:f,name:"Select"}),ue=T.useRef(null),pe=T.useRef(null),[oe,fe]=T.useState(null),{current:we}=T.useRef(P!=null),[ke,Ee]=T.useState(),$e=vr(r,b),Pe=T.useCallback(Se=>{pe.current=Se,Se&&fe(Se)},[]),Re=oe?.parentNode;T.useImperativeHandle($e,()=>({focus:()=>{pe.current.focus()},node:ue.current,value:G}),[G]),T.useEffect(()=>{f&&F&&oe&&!we&&(Ee(s?null:Re.clientWidth),pe.current.focus())},[oe,s]),T.useEffect(()=>{a&&pe.current.focus()},[a]),T.useEffect(()=>{if(!x)return;const Se=Mr(pe.current).getElementById(x);if(Se){const ft=()=>{getSelection().isCollapsed&&pe.current.focus()};return Se.addEventListener("click",ft),()=>{Se.removeEventListener("click",ft)}}},[x]);const Ge=(Se,ft)=>{Se?I&&I(ft):E&&E(ft),we||(Ee(s?null:Re.clientWidth),K(Se))},ve=Se=>{Se.button===0&&(Se.preventDefault(),pe.current.focus(),Ge(!0,Se))},Te=Se=>{Ge(!1,Se)},_t=T.Children.toArray(l),be=Se=>{const ft=_t.find(kt=>kt.props.value===Se.target.value);ft!==void 0&&(ee(ft.props.value),M&&M(Se,ft))},Ae=Se=>ft=>{let kt;if(ft.currentTarget.hasAttribute("tabindex")){if(D){kt=Array.isArray(G)?G.slice():[];const br=G.indexOf(Se.props.value);br===-1?kt.push(Se.props.value):kt.splice(br,1)}else kt=Se.props.value;if(Se.props.onClick&&Se.props.onClick(ft),G!==kt&&(ee(kt),M)){const br=ft.nativeEvent||ft,wr=new br.constructor(br.type,br);Object.defineProperty(wr,"target",{writable:!0,value:{value:kt,name:O}}),M(wr,Se)}D||Ge(!1,ft)}},lt=Se=>{$||[" ","ArrowUp","ArrowDown","Enter"].includes(Se.key)&&(Se.preventDefault(),Ge(!0,Se))},tt=oe!==null&&F,Xe=Se=>{!tt&&R&&(Object.defineProperty(Se,"target",{writable:!0,value:{value:G,name:O}}),R(Se))};delete Z["aria-invalid"];let ge,dt;const Qe=[];let ne=!1;(Cf({value:G})||m)&&(z?ge=z(G):ne=!0);const _e=_t.map(Se=>{if(!T.isValidElement(Se))return null;let ft;if(D){if(!Array.isArray(G))throw new Error(ua(2));ft=G.some(kt=>qx(kt,Se.props.value)),ft&&ne&&Qe.push(Se.props.children)}else ft=qx(G,Se.props.value),ft&&ne&&(dt=Se.props.children);return T.cloneElement(Se,{"aria-selected":ft?"true":"false",onClick:Ae(Se),onKeyUp:kt=>{kt.key===" "&&kt.preventDefault(),Se.props.onKeyUp&&Se.props.onKeyUp(kt)},role:"option",selected:ft,value:void 0,"data-value":Se.props.value})});ne&&(D?Qe.length===0?ge=null:ge=Qe.reduce((Se,ft,kt)=>(Se.push(ft),kt{const{classes:e}=t,n=He({root:["root"]},LT,e);return{...e,...n}},gb={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>$r(t)&&t!=="variant",slot:"Root"},oF=ie(no,gb)(""),aF=ie(_b,gb)(""),iF=ie(fb,gb)(""),Sn=T.forwardRef(function(e,r){const n=Ve({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:s={},className:l,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:h=zI,id:d,input:m,inputProps:y,label:v,labelId:b,MenuProps:x,multiple:C=!1,native:D=!1,onClose:O,onOpen:R,open:M,renderValue:E,SelectDisplayProps:A,variant:I="outlined",...P}=n,$=D?DL:rF,z=Lo(),B=ci({props:n,muiFormControl:z,states:["variant","error"]}),q=B.variant||I,H={...n,variant:q,classes:s},U=nF(H),{root:X,...re}=U,Z=m||{standard:k.jsx(oF,{ownerState:H}),outlined:k.jsx(aF,{label:v,ownerState:H}),filled:k.jsx(iF,{ownerState:H})}[q],G=vr(r,es(Z));return k.jsx(T.Fragment,{children:T.cloneElement(Z,{inputComponent:$,inputProps:{children:a,error:B.error,IconComponent:h,variant:q,type:void 0,multiple:C,...D?{id:d}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:b,MenuProps:x,onClose:O,onOpen:R,open:M,renderValue:E,SelectDisplayProps:{id:d,...A}},...y,classes:y?Ur(re,y.classes):re,...m?m.props.inputProps:{}},...(C&&D||f)&&q==="outlined"?{notched:!0}:{},ref:G,className:ye(Z.props.className,l,U.root),...!m&&{variant:q},...P})})});Sn.muiName="Select";function sF(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=t,s=Fi();T.useEffect(()=>{if(!o)return;function C(D){D.defaultPrevented||D.key==="Escape"&&n?.(D,"escapeKeyDown")}return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[o,n]);const l=Jr((C,D)=>{n?.(C,D)}),u=Jr(C=>{!n||C==null||s.start(C,()=>{l(null,"timeout")})});T.useEffect(()=>(o&&u(e),s.clear),[o,e,u,s]);const f=C=>{n?.(C,"clickaway")},h=s.clear,d=T.useCallback(()=>{e!=null&&u(a??e*.5)},[e,a,u]),m=C=>D=>{const O=C.onBlur;O?.(D),d()},y=C=>D=>{const O=C.onFocus;O?.(D),h()},v=C=>D=>{const O=C.onMouseEnter;O?.(D),h()},b=C=>D=>{const O=C.onMouseLeave;O?.(D),d()};return T.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",h)}},[r,o,d,h]),{getRootProps:(C={})=>{const D={...vf(t),...vf(C)};return{role:"presentation",...C,...D,onBlur:m(D),onFocus:y(D),onMouseEnter:v(D),onMouseLeave:b(D)}},onClickAway:f}}function cF(t){return qe("MuiSnackbarContent",t)}We("MuiSnackbarContent",["root","message","action"]);const lF=t=>{const{classes:e}=t;return He({root:["root"],action:["action"],message:["message"]},cF,e)},uF=ie(Ka,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(Ke(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98,r=_f(t.palette.background.default,e);return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),dF=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),pF=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),fF=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:s,role:l="alert",...u}=n,f=n,h=lF(f);return k.jsxs(uF,{role:l,square:!0,elevation:6,className:ye(h.root,a),ownerState:f,ref:r,...u,children:[k.jsx(dF,{className:h.message,ownerState:f,children:s}),o?k.jsx(pF,{className:h.action,ownerState:f,children:o}):null]})});function hF(t){return qe("MuiSnackbar",t)}We("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mF=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${he(r.vertical)}${he(r.horizontal)}`]};return He(n,hF,e)},_F=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${he(r.anchorOrigin.vertical)}${he(r.anchorOrigin.horizontal)}`]]}})(Ke(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Yv=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSnackbar"}),o=ha(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:d,ClickAwayListenerProps:m,ContentProps:y,disableWindowBlurListener:v=!1,message:b,onBlur:x,onClose:C,onFocus:D,onMouseEnter:O,onMouseLeave:R,open:M,resumeHideDuration:E,slots:A={},slotProps:I={},TransitionComponent:P,transitionDuration:$=a,TransitionProps:{onEnter:z,onExited:B,...q}={},...H}=n,U={...n,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:f,disableWindowBlurListener:v,TransitionComponent:P,transitionDuration:$},X=mF(U),{getRootProps:re,onClickAway:Z}=sF({...U}),[G,ee]=T.useState(!0),F=Ge=>{ee(!0),B&&B(Ge)},K=(Ge,ve)=>{ee(!1),z&&z(Ge,ve)},ue={slots:{transition:P,...A},slotProps:{content:y,clickAwayListener:m,transition:q,...I}},[pe,oe]=ct("root",{ref:r,className:[X.root,d],elementType:_F,getSlotProps:re,externalForwardedProps:{...ue,...H},ownerState:U}),[fe,{ownerState:we,...ke}]=ct("clickAwayListener",{elementType:Cj,externalForwardedProps:ue,getSlotProps:Ge=>({onClickAway:(...ve)=>{Ge.onClickAway?.(...ve),Z(...ve)}}),ownerState:U}),[Ee,$e]=ct("content",{elementType:fF,shouldForwardComponentProp:!0,externalForwardedProps:ue,additionalProps:{message:b,action:s},ownerState:U}),[Pe,Re]=ct("transition",{elementType:Au,externalForwardedProps:ue,getSlotProps:Ge=>({onEnter:(...ve)=>{Ge.onEnter?.(...ve),K(...ve)},onExited:(...ve)=>{Ge.onExited?.(...ve),F(...ve)}}),additionalProps:{appear:!0,in:M,timeout:$,direction:l==="top"?"down":"up"},ownerState:U});return!M&&G?null:k.jsx(fe,{...ke,...A.clickAwayListener&&{ownerState:we},children:k.jsx(pe,{...oe,children:k.jsx(Pe,{...Re,children:h||k.jsx(Ee,{...$e})})})})});function gF(t){return qe("MuiTooltip",t)}const ar=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function yF(t){return Math.round(t*1e5)/1e5}const vF=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${he(a.split("-")[0])}`],arrow:["arrow"]};return He(s,gF,e)},bF=ie($T,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Ke(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${ar.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ar.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ar.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ar.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${ar.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${ar.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${ar.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${ar.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),wF=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${he(r.placement.split("-")[0])}`]]}})(Ke(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Lt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${ar.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${ar.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${ar.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${ar.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${yF(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${ar.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${ar.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${ar.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${ar.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${ar.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${ar.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${ar.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${ar.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${ar.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${ar.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),SF=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Ke(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Lt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Rp=!1;const Hx=new rh;let Bl={x:0,y:0};function Mp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const B_=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:l={},componentsProps:u={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:d=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:v=100,enterNextDelay:b=0,enterTouchDelay:x=700,followCursor:C=!1,id:D,leaveDelay:O=0,leaveTouchDelay:R=1500,onClose:M,onOpen:E,open:A,placement:I="bottom",PopperComponent:P,PopperProps:$={},slotProps:z={},slots:B={},title:q,TransitionComponent:H,TransitionProps:U,...X}=n,re=T.isValidElement(a)?a:k.jsx("span",{children:a}),Z=ha(),G=qc(),[ee,F]=T.useState(),[K,ue]=T.useState(null),pe=T.useRef(!1),oe=m||C,fe=Fi(),we=Fi(),ke=Fi(),Ee=Fi(),[$e,Pe]=gf({controlled:A,default:!1,name:"Tooltip",state:"open"});let Re=$e;const Ge=Qi(D),ve=T.useRef(),Te=Jr(()=>{ve.current!==void 0&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),Ee.clear()});T.useEffect(()=>Te,[Te]);const _t=ot=>{Hx.clear(),Rp=!0,Pe(!0),E&&!Re&&E(ot)},be=Jr(ot=>{Hx.start(800+O,()=>{Rp=!1}),Pe(!1),M&&Re&&M(ot),fe.start(Z.transitions.duration.shortest,()=>{pe.current=!1})}),Ae=ot=>{pe.current&&ot.type!=="touchstart"||(ee&&ee.removeAttribute("title"),we.clear(),ke.clear(),v||Rp&&b?we.start(Rp?b:v,()=>{_t(ot)}):_t(ot))},lt=ot=>{we.clear(),ke.start(O,()=>{be(ot)})},[,tt]=T.useState(!1),Xe=ot=>{yf(ot.target)||(tt(!1),lt(ot))},ge=ot=>{ee||F(ot.currentTarget),yf(ot.target)&&(tt(!0),Ae(ot))},dt=ot=>{pe.current=!0;const Kr=re.props;Kr.onTouchStart&&Kr.onTouchStart(ot)},Qe=ot=>{dt(ot),ke.clear(),fe.clear(),Te(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ee.start(x,()=>{document.body.style.WebkitUserSelect=ve.current,Ae(ot)})},ne=ot=>{re.props.onTouchEnd&&re.props.onTouchEnd(ot),Te(),ke.start(R,()=>{be(ot)})};T.useEffect(()=>{if(!Re)return;function ot(Kr){Kr.key==="Escape"&&be(Kr)}return document.addEventListener("keydown",ot),()=>{document.removeEventListener("keydown",ot)}},[be,Re]);const _e=vr(es(re),F,r);!q&&q!==0&&(Re=!1);const Ue=T.useRef(),Le=ot=>{const Kr=re.props;Kr.onMouseMove&&Kr.onMouseMove(ot),Bl={x:ot.clientX,y:ot.clientY},Ue.current&&Ue.current.update()},pt={},vt=typeof q=="string";f?(pt.title=!Re&&vt&&!d?q:null,pt["aria-describedby"]=Re?Ge:null):(pt["aria-label"]=vt?q:null,pt["aria-labelledby"]=Re&&!vt?Ge:null);const Fe={...pt,...X,...re.props,className:ye(X.className,re.props.className),onTouchStart:dt,ref:_e,...C?{onMouseMove:Le}:{}},Ht={};y||(Fe.onTouchStart=Qe,Fe.onTouchEnd=ne),d||(Fe.onMouseOver=Mp(Ae,Fe.onMouseOver),Fe.onMouseLeave=Mp(lt,Fe.onMouseLeave),oe||(Ht.onMouseOver=Ae,Ht.onMouseLeave=lt)),h||(Fe.onFocus=Mp(ge,Fe.onFocus),Fe.onBlur=Mp(Xe,Fe.onBlur),oe||(Ht.onFocus=ge,Ht.onBlur=Xe));const xt={...n,isRtl:G,arrow:o,disableInteractive:oe,placement:I,PopperComponentProp:P,touch:pe.current},Se=typeof z.popper=="function"?z.popper(xt):z.popper,ft=T.useMemo(()=>{let ot=[{name:"arrow",enabled:!!K,options:{element:K,padding:4}}];return $.popperOptions?.modifiers&&(ot=ot.concat($.popperOptions.modifiers)),Se?.popperOptions?.modifiers&&(ot=ot.concat(Se.popperOptions.modifiers)),{...$.popperOptions,...Se?.popperOptions,modifiers:ot}},[K,$.popperOptions,Se?.popperOptions]),kt=vF(xt),br=typeof z.transition=="function"?z.transition(xt):z.transition,wr={slots:{popper:l.Popper,transition:l.Transition??H,tooltip:l.Tooltip,arrow:l.Arrow,...B},slotProps:{arrow:z.arrow??u.arrow,popper:{...$,...Se??u.popper},tooltip:z.tooltip??u.tooltip,transition:{...U,...br??u.transition}}},[Yr,Uo]=ct("popper",{elementType:bF,externalForwardedProps:wr,ownerState:xt,className:ye(kt.popper,$?.className)}),[mo,On]=ct("transition",{elementType:Au,externalForwardedProps:wr,ownerState:xt}),[ps,fs]=ct("tooltip",{elementType:wF,className:kt.tooltip,externalForwardedProps:wr,ownerState:xt}),[hs,ms]=ct("arrow",{elementType:SF,className:kt.arrow,externalForwardedProps:wr,ownerState:xt,ref:ue});return k.jsxs(T.Fragment,{children:[T.cloneElement(re,Fe),k.jsx(Yr,{as:P??$T,placement:I,anchorEl:C?{getBoundingClientRect:()=>({top:Bl.y,left:Bl.x,right:Bl.x,bottom:Bl.y,width:0,height:0})}:ee,popperRef:Ue,open:ee?Re:!1,id:Ge,transition:!0,...Ht,...Uo,popperOptions:ft,children:({TransitionProps:ot})=>k.jsx(mo,{timeout:Z.transitions.duration.shorter,...ot,...On,children:k.jsxs(ps,{...fs,children:[q,o?k.jsx(hs,{...ms}):null]})})})]})});function xF(t){return qe("MuiTab",t)}const jn=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),kF=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:s,selected:l,disabled:u}=t,f={root:["root",a&&s&&"labelIcon",`textColor${he(r)}`,n&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return He(f,xF,e)},CF=ie(ii,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${he(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${jn.iconWrapper}`]:e.iconWrapper},{[`& .${jn.icon}`]:e.icon}]}})(Ke(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${jn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${jn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${jn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${jn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${jn.selected}`]:{opacity:1},[`&.${jn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${jn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${jn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${jn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${jn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Ni=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:l,icon:u,iconPosition:f="top",indicator:h,label:d,onChange:m,onClick:y,onFocus:v,selected:b,selectionFollowsFocus:x,textColor:C="inherit",value:D,wrapped:O=!1,...R}=n,M={...n,disabled:a,disableFocusRipple:s,selected:b,icon:!!u,iconPosition:f,label:!!d,fullWidth:l,textColor:C,wrapped:O},E=kF(M),A=u&&d&&T.isValidElement(u)?T.cloneElement(u,{className:ye(E.icon,u.props.className)}):u,I=$=>{!b&&m&&m($,D),y&&y($)},P=$=>{x&&!b&&m&&m($,D),v&&v($)};return k.jsxs(CF,{focusRipple:!s,className:ye(E.root,o),ref:r,role:"tab","aria-selected":b,disabled:a,onClick:I,onFocus:P,ownerState:M,tabIndex:b?0:-1,...R,children:[f==="top"||f==="start"?k.jsxs(T.Fragment,{children:[A,d]}):k.jsxs(T.Fragment,{children:[d,A]}),h]})}),FT=T.createContext();function $F(t){return qe("MuiTable",t)}We("MuiTable",["root","stickyHeader"]);const EF=t=>{const{classes:e,stickyHeader:r}=t;return He({root:["root",r&&"stickyHeader"]},$F,e)},TF=ie("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.stickyHeader&&e.stickyHeader]}})(Ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),Vx="table",Gx=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTable"}),{className:o,component:a=Vx,padding:s="normal",size:l="medium",stickyHeader:u=!1,...f}=n,h={...n,component:a,padding:s,size:l,stickyHeader:u},d=EF(h),m=T.useMemo(()=>({padding:s,size:l,stickyHeader:u}),[s,l,u]);return k.jsx(FT.Provider,{value:m,children:k.jsx(TF,{as:a,role:a===Vx?null:"table",ref:r,className:ye(d.root,o),ownerState:h,...f})})}),dh=T.createContext();function OF(t){return qe("MuiTableBody",t)}We("MuiTableBody",["root"]);const DF=t=>{const{classes:e}=t;return He({root:["root"]},OF,e)},RF=ie("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),MF={variant:"body"},Xx="tbody",Jx=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableBody"}),{className:o,component:a=Xx,...s}=n,l={...n,component:a},u=DF(l);return k.jsx(dh.Provider,{value:MF,children:k.jsx(RF,{className:ye(u.root,o),as:a,ref:r,role:a===Xx?null:"rowgroup",ownerState:l,...s})})});function AF(t){return qe("MuiTableCell",t)}const NF=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),PF=t=>{const{classes:e,variant:r,align:n,padding:o,size:a,stickyHeader:s}=t,l={root:["root",r,s&&"stickyHeader",n!=="inherit"&&`align${he(n)}`,o!=="normal"&&`padding${he(o)}`,`size${he(a)}`]};return He(l,AF,e)},IF=ie("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${he(r.size)}`],r.padding!=="normal"&&e[`padding${he(r.padding)}`],r.align!=="inherit"&&e[`align${he(r.align)}`],r.stickyHeader&&e.stickyHeader]}})(Ke(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid + ${t.palette.mode==="light"?Qu(Lt(t.palette.divider,1),.88):Zu(Lt(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${NF.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),on=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:l,scope:u,size:f,sortDirection:h,variant:d,...m}=n,y=T.useContext(FT),v=T.useContext(dh),b=v&&v.variant==="head";let x;s?x=s:x=b?"th":"td";let C=u;x==="td"?C=void 0:!C&&b&&(C="col");const D=d||v&&v.variant,O={...n,align:o,component:x,padding:l||(y&&y.padding?y.padding:"normal"),size:f||(y&&y.size?y.size:"medium"),sortDirection:h,stickyHeader:D==="head"&&y&&y.stickyHeader,variant:D},R=PF(O);let M=null;return h&&(M=h==="asc"?"ascending":"descending"),k.jsx(IF,{as:x,ref:r,className:ye(R.root,a),"aria-sort":M,scope:C,ownerState:O,...m})});function jF(t){return qe("MuiTableContainer",t)}We("MuiTableContainer",["root"]);const zF=t=>{const{classes:e}=t;return He({root:["root"]},jF,e)},LF=ie("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),FF=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=n,l={...n,component:a},u=zF(l);return k.jsx(LF,{ref:r,as:a,className:ye(u.root,o),ownerState:l,...s})});function BF(t){return qe("MuiTableHead",t)}We("MuiTableHead",["root"]);const WF=t=>{const{classes:e}=t;return He({root:["root"]},BF,e)},UF=ie("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),qF={variant:"head"},Yx="thead",Kx=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableHead"}),{className:o,component:a=Yx,...s}=n,l={...n,component:a},u=WF(l);return k.jsx(dh.Provider,{value:qF,children:k.jsx(UF,{as:a,className:ye(u.root,o),ref:r,role:a===Yx?null:"rowgroup",ownerState:l,...s})})});function HF(t){return qe("MuiToolbar",t)}We("MuiToolbar",["root","gutters","regular","dense"]);const VF=t=>{const{classes:e,disableGutters:r,variant:n}=t;return He({root:["root",!r&&"gutters",n]},HF,e)},GF=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Ke(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),BT=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:s=!1,variant:l="regular",...u}=n,f={...n,component:a,disableGutters:s,variant:l},h=VF(f);return k.jsx(GF,{as:a,className:ye(h.root,o),ref:r,ownerState:f,...u})}),XF=Ze(k.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),JF=Ze(k.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function YF(t){return qe("MuiTableRow",t)}const Zx=We("MuiTableRow",["root","selected","hover","head","footer"]),KF=t=>{const{classes:e,selected:r,hover:n,head:o,footer:a}=t;return He({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},YF,e)},ZF=ie("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(Ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Zx.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Zx.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Lt(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Lt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Qx="tr",Hs=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableRow"}),{className:o,component:a=Qx,hover:s=!1,selected:l=!1,...u}=n,f=T.useContext(dh),h={...n,component:a,hover:s,selected:l,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},d=KF(h);return k.jsx(ZF,{as:a,ref:r,className:ye(d.root,o),role:a===Qx?null:"row",ownerState:h,...u})});function QF(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function eB(t,e,r,n={},o=()=>{}){const{ease:a=QF,duration:s=300}=n;let l=null;const u=e[t];let f=!1;const h=()=>{f=!0},d=m=>{if(f){o(new Error("Animation cancelled"));return}l===null&&(l=m);const y=Math.min(1,(m-l)/s);if(e[t]=a(y)*(r-u)+u,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return u===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(d),h)}const tB={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function rB(t){const{onChange:e,...r}=t,n=T.useRef(),o=T.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return fn(()=>{const s=th(()=>{const u=n.current;a(),u!==n.current&&e(n.current)}),l=so(o.current);return l.addEventListener("resize",s),()=>{s.clear(),l.removeEventListener("resize",s)}},[e]),T.useEffect(()=>{a(),e(n.current)},[e]),k.jsx("div",{style:tB,...r,ref:o})}function nB(t){return qe("MuiTabScrollButton",t)}const oB=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),aB=t=>{const{classes:e,orientation:r,disabled:n}=t;return He({root:["root",r,n&&"disabled"]},nB,e)},iB=ie(ii,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${oB.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),sB=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:l,orientation:u,disabled:f,...h}=n,d=qc(),m={isRtl:d,...n},y=aB(m),v=a.StartScrollButtonIcon??XF,b=a.EndScrollButtonIcon??JF,x=Hi({elementType:v,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),C=Hi({elementType:b,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return k.jsx(iB,{component:"div",className:ye(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...h,style:{...h.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:l==="left"?k.jsx(v,{...x}):k.jsx(b,{...C})})});function cB(t){return qe("MuiTabs",t)}const W_=We("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),e3=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,t3=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,Ap=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},lB=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:l,classes:u}=t;return He({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},cB,u)},uB=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${W_.scrollButtons}`]:e.scrollButtons},{[`& .${W_.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Ke(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${W_.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),dB=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),pB=ie("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),fB=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Ke(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),hB=ie(rB)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),r3={},WT=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTabs"}),o=ha(),a=qc(),{"aria-label":s,"aria-labelledby":l,action:u,centered:f=!1,children:h,className:d,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:b,orientation:x="horizontal",ScrollButtonComponent:C,scrollButtons:D="auto",selectionFollowsFocus:O,slots:R={},slotProps:M={},TabIndicatorProps:E={},TabScrollButtonProps:A={},textColor:I="primary",value:P,variant:$="standard",visibleScrollbar:z=!1,...B}=n,q=$==="scrollable",H=x==="vertical",U=H?"scrollTop":"scrollLeft",X=H?"top":"left",re=H?"bottom":"right",Z=H?"clientHeight":"clientWidth",G=H?"height":"width",ee={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:v,orientation:x,vertical:H,scrollButtons:D,textColor:I,variant:$,visibleScrollbar:z,fixed:!q,hideScrollbar:q&&!z,scrollableX:q&&!H,scrollableY:q&&H,centered:f&&!q,scrollButtonsHideMobile:!y},F=lB(ee),K=Hi({elementType:R.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:ee}),ue=Hi({elementType:R.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:ee}),[pe,oe]=T.useState(!1),[fe,we]=T.useState(r3),[ke,Ee]=T.useState(!1),[$e,Pe]=T.useState(!1),[Re,Ge]=T.useState(!1),[ve,Te]=T.useState({overflow:"hidden",scrollbarWidth:0}),_t=new Map,be=T.useRef(null),Ae=T.useRef(null),lt={slots:R,slotProps:{indicator:E,scrollButton:A,...M}},tt=()=>{const Oe=be.current;let Be;if(Oe){const mt=Oe.getBoundingClientRect();Be={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollWidth:Oe.scrollWidth,top:mt.top,bottom:mt.bottom,left:mt.left,right:mt.right}}let bt;if(Oe&&P!==!1){const mt=Ae.current.children;if(mt.length>0){const tr=mt[_t.get(P)];bt=tr?tr.getBoundingClientRect():null}}return{tabsMeta:Be,tabMeta:bt}},Xe=Jr(()=>{const{tabsMeta:Oe,tabMeta:Be}=tt();let bt=0,mt;H?(mt="top",Be&&Oe&&(bt=Be.top-Oe.top+Oe.scrollTop)):(mt=a?"right":"left",Be&&Oe&&(bt=(a?-1:1)*(Be[mt]-Oe[mt]+Oe.scrollLeft)));const tr={[mt]:bt,[G]:Be?Be[G]:0};if(typeof fe[mt]!="number"||typeof fe[G]!="number")we(tr);else{const Ar=Math.abs(fe[mt]-tr[mt]),Dn=Math.abs(fe[G]-tr[G]);(Ar>=1||Dn>=1)&&we(tr)}}),ge=(Oe,{animation:Be=!0}={})=>{Be?eB(U,be.current,Oe,{duration:o.transitions.duration.standard}):be.current[U]=Oe},dt=Oe=>{let Be=be.current[U];H?Be+=Oe:Be+=Oe*(a?-1:1),ge(Be)},Qe=()=>{const Oe=be.current[Z];let Be=0;const bt=Array.from(Ae.current.children);for(let mt=0;mtOe){mt===0&&(Be=Oe);break}Be+=tr[Z]}return Be},ne=()=>{dt(-1*Qe())},_e=()=>{dt(Qe())},[Ue,{onChange:Le,...pt}]=ct("scrollbar",{className:ye(F.scrollableX,F.hideScrollbar),elementType:hB,shouldForwardComponentProp:!0,externalForwardedProps:lt,ownerState:ee}),vt=T.useCallback(Oe=>{Le?.(Oe),Te({overflow:null,scrollbarWidth:Oe})},[Le]),[Fe,Ht]=ct("scrollButtons",{className:ye(F.scrollButtons,A.className),elementType:sB,externalForwardedProps:lt,ownerState:ee,additionalProps:{orientation:x,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:K,endScrollButtonIcon:ue}}}),xt=()=>{const Oe={};Oe.scrollbarSizeListener=q?k.jsx(Ue,{...pt,onChange:vt}):null;const bt=q&&(D==="auto"&&(ke||$e)||D===!0);return Oe.scrollButtonStart=bt?k.jsx(Fe,{direction:a?"right":"left",onClick:ne,disabled:!ke,...Ht}):null,Oe.scrollButtonEnd=bt?k.jsx(Fe,{direction:a?"left":"right",onClick:_e,disabled:!$e,...Ht}):null,Oe},Se=Jr(Oe=>{const{tabsMeta:Be,tabMeta:bt}=tt();if(!(!bt||!Be)){if(bt[X]Be[re]){const mt=Be[U]+(bt[re]-Be[re]);ge(mt,{animation:Oe})}}}),ft=Jr(()=>{q&&D!==!1&&Ge(!Re)});T.useEffect(()=>{const Oe=th(()=>{be.current&&Xe()});let Be;const bt=Ar=>{Ar.forEach(Dn=>{Dn.removedNodes.forEach(_o=>{Be?.unobserve(_o)}),Dn.addedNodes.forEach(_o=>{Be?.observe(_o)})}),Oe(),ft()},mt=so(be.current);mt.addEventListener("resize",Oe);let tr;return typeof ResizeObserver<"u"&&(Be=new ResizeObserver(Oe),Array.from(Ae.current.children).forEach(Ar=>{Be.observe(Ar)})),typeof MutationObserver<"u"&&(tr=new MutationObserver(bt),tr.observe(Ae.current,{childList:!0})),()=>{Oe.clear(),mt.removeEventListener("resize",Oe),tr?.disconnect(),Be?.disconnect()}},[Xe,ft]),T.useEffect(()=>{const Oe=Array.from(Ae.current.children),Be=Oe.length;if(typeof IntersectionObserver<"u"&&Be>0&&q&&D!==!1){const bt=Oe[0],mt=Oe[Be-1],tr={root:be.current,threshold:.99},Ar=el=>{Ee(!el[0].isIntersecting)},Dn=new IntersectionObserver(Ar,tr);Dn.observe(bt);const _o=el=>{Pe(!el[0].isIntersecting)},_s=new IntersectionObserver(_o,tr);return _s.observe(mt),()=>{Dn.disconnect(),_s.disconnect()}}},[q,D,Re,h?.length]),T.useEffect(()=>{oe(!0)},[]),T.useEffect(()=>{Xe()}),T.useEffect(()=>{Se(r3!==fe)},[Se,fe]),T.useImperativeHandle(u,()=>({updateIndicator:Xe,updateScrollButtons:ft}),[Xe,ft]);const[kt,br]=ct("indicator",{className:ye(F.indicator,E.className),elementType:fB,externalForwardedProps:lt,ownerState:ee,additionalProps:{style:fe}}),wr=k.jsx(kt,{...br});let Yr=0;const Uo=T.Children.map(h,Oe=>{if(!T.isValidElement(Oe))return null;const Be=Oe.props.value===void 0?Yr:Oe.props.value;_t.set(Be,Yr);const bt=Be===P;return Yr+=1,T.cloneElement(Oe,{fullWidth:$==="fullWidth",indicator:bt&&!pe&&wr,selected:bt,selectionFollowsFocus:O,onChange:b,textColor:I,value:Be,...Yr===1&&P===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}})}),mo=Oe=>{if(Oe.altKey||Oe.shiftKey||Oe.ctrlKey||Oe.metaKey)return;const Be=Ae.current,bt=Mr(Be).activeElement;if(bt.getAttribute("role")!=="tab")return;let tr=x==="horizontal"?"ArrowLeft":"ArrowUp",Ar=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(tr="ArrowRight",Ar="ArrowLeft"),Oe.key){case tr:Oe.preventDefault(),Ap(Be,bt,t3);break;case Ar:Oe.preventDefault(),Ap(Be,bt,e3);break;case"Home":Oe.preventDefault(),Ap(Be,null,e3);break;case"End":Oe.preventDefault(),Ap(Be,null,t3);break}},On=xt(),[ps,fs]=ct("root",{ref:r,className:ye(F.root,d),elementType:uB,externalForwardedProps:{...lt,...B,component:m},ownerState:ee}),[hs,ms]=ct("scroller",{ref:be,className:F.scroller,elementType:dB,externalForwardedProps:lt,ownerState:ee,additionalProps:{style:{overflow:ve.overflow,[H?`margin${a?"Left":"Right"}`:"marginBottom"]:z?void 0:-ve.scrollbarWidth}}}),[ot,Kr]=ct("list",{ref:Ae,className:ye(F.list,F.flexContainer),elementType:pB,externalForwardedProps:lt,ownerState:ee,getSlotProps:Oe=>({...Oe,onKeyDown:Be=>{mo(Be),Oe.onKeyDown?.(Be)}})});return k.jsxs(ps,{...fs,children:[On.scrollButtonStart,On.scrollbarSizeListener,k.jsxs(hs,{...ms,children:[k.jsx(ot,{"aria-label":s,"aria-labelledby":l,"aria-orientation":x==="vertical"?"vertical":null,role:"tablist",...Kr,children:Uo}),pe&&wr]}),On.scrollButtonEnd]})});function mB(t){return qe("MuiTextField",t)}We("MuiTextField",["root"]);const _B={standard:no,filled:fb,outlined:_b},gB=t=>{const{classes:e}=t;return He({root:["root"]},mB,e)},yB=ie(sa,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),zt=T.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:l,color:u="primary",defaultValue:f,disabled:h=!1,error:d=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:x,inputProps:C,InputProps:D,inputRef:O,label:R,maxRows:M,minRows:E,multiline:A=!1,name:I,onBlur:P,onChange:$,onFocus:z,placeholder:B,required:q=!1,rows:H,select:U=!1,SelectProps:X,slots:re={},slotProps:Z={},type:G,value:ee,variant:F="outlined",...K}=n,ue={...n,autoFocus:a,color:u,disabled:h,error:d,fullWidth:y,multiline:A,required:q,select:U,variant:F},pe=gB(ue),oe=Qi(b),fe=v&&oe?`${oe}-helper-text`:void 0,we=R&&oe?`${oe}-label`:void 0,ke=_B[F],Ee={slots:re,slotProps:{input:D,inputLabel:x,htmlInput:C,formHelperText:m,select:X,...Z}},$e={},Pe=Ee.slotProps.inputLabel;F==="outlined"&&(Pe&&typeof Pe.shrink<"u"&&($e.notched=Pe.shrink),$e.label=R),U&&((!X||!X.native)&&($e.id=void 0),$e["aria-describedby"]=void 0);const[Re,Ge]=ct("root",{elementType:yB,shouldForwardComponentProp:!0,externalForwardedProps:{...Ee,...K},ownerState:ue,className:ye(pe.root,l),ref:r,additionalProps:{disabled:h,error:d,fullWidth:y,required:q,color:u,variant:F}}),[ve,Te]=ct("input",{elementType:ke,externalForwardedProps:Ee,additionalProps:$e,ownerState:ue}),[_t,be]=ct("inputLabel",{elementType:vu,externalForwardedProps:Ee,ownerState:ue}),[Ae,lt]=ct("htmlInput",{elementType:"input",externalForwardedProps:Ee,ownerState:ue}),[tt,Xe]=ct("formHelperText",{elementType:rd,externalForwardedProps:Ee,ownerState:ue}),[ge,dt]=ct("select",{elementType:Sn,externalForwardedProps:Ee,ownerState:ue}),Qe=k.jsx(ve,{"aria-describedby":fe,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:y,multiline:A,name:I,rows:H,maxRows:M,minRows:E,type:G,value:ee,id:oe,inputRef:O,onBlur:P,onChange:$,onFocus:z,placeholder:B,inputProps:lt,slots:{input:re.htmlInput?Ae:void 0},...Te});return k.jsxs(Re,{...Ge,children:[R!=null&&R!==""&&k.jsx(_t,{htmlFor:oe,id:we,...be,children:R}),U?k.jsx(ge,{"aria-describedby":fe,id:oe,labelId:we,value:ee,input:Qe,...dt,children:s}):Qe,v&&k.jsx(tt,{id:fe,...Xe,children:v})]})}),U_=11/23/100;function n3(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substring(1,3),16),e.g=parseInt(t.substring(3,5),16),e.b=parseInt(t.substring(5,7),16);else if(t.length===4){const r=t[1],n=t[2],o=t[3];e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function vB(t){return`#${Math.round(t.r).toString(16).padStart(2,"0")}${Math.round(t.g).toString(16).padStart(2,"0")}${Math.round(t.b).toString(16).padStart(2,"0")}`}function bB(t,e,r){const n=n3(t),o=n3(e);return n.r+=o.r*(.05+U_*(r-1)),n.g+=o.g*(.05+U_*(r-1)),n.b+=o.b*(.05+U_*(r-1)),vB(n)}function Np(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:bB(t,e,n)};return r}function wB(t,e){let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Dr[200],"&:hover":{color:Dr[100]}}},MuiPaper:Np("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Dr[400],"&:hover":{color:Dr[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Dr[200],"&:hover":{color:Dr[100]}}},MuiPaper:Np("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Dr[400],"&:hover":{color:Dr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="NW"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Dr[400],"&:hover":{color:Dr[300]}}},MuiPaper:Np("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#00af78"},secondary:{main:"#005a40"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="HA"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:"#db0a33","&:hover":{color:"#FF0a33"}}},MuiPaper:Np("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#970720"},secondary:{main:"#db0a33"},expert:"#db0a33",text:{primary:"#ffffff",secondary:"#ffffff"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Dr[400],"&:hover":{color:Dr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:r.palette?.primary?.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:Rv[300],dark:Rv[400]});const o=Du(r),a=o.palette;return Du(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:a.grey?.[300],color:a.getContrastText&&a.grey?.[300]?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:a.text?.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${a.action?.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Lt(a.text?.primary||"",a.action?.hoverOpacity||.04)}}},{props:{variant:"text",color:"grey"},style:{color:a.text?.primary,"&:hover":{backgroundColor:Lt(a.text?.primary||"",a.action?.hoverOpacity||.04)}}}]}}})}function SB(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function Kv(t){return t?.rows.map(e=>e.value).filter(e=>!!e)??[]}function aa(t){return t?.startsWith("system.host.")||(t=`system.host.${t}`),t}function Wl(t){return t?.startsWith("system.host.")&&(t=t.substring(12)),t}function o3(t){return new Promise(e=>{setTimeout(e,t)})}function Pp(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}typeof globalThis.process<"u"&&(globalThis.location||={href:"http://localhost:8081/",protocol:"http:",host:"localhost:8081",pathname:"/",hostname:"localhost",reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(t,e)=>{globalThis.localStorage._keys[t]=e},getItem:t=>t in globalThis.localStorage._keys?globalThis.localStorage._keys[t]:null,removeItem:t=>{t in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[t]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:"en"});var To;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(To||(To={}));var Wr;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Wr||(Wr={}));Wr.PERMISSION_ERROR;Wr.NOT_CONNECTED;const xB=["material","echarts","vis"];class Gr{props;connId;lastAccessToken=null;ignoreState="";connected=!1;subscribed=!1;firstConnect=!0;waitForRestart=!1;loaded=!1;simStates={};objectViewCached;constructor(e){this.props=this.applyDefaultProps(e),this.connId=`${this.props.name?`${this.props.name}-`:""}${Math.round(Math.random()*1e6).toString().padStart(6,"0")}`,this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||globalThis.location.protocol,host:e.host||globalThis.location.hostname,port:e.port||(globalThis.location.port==="3000"?8081:globalThis.location.port),ioTimeout:Math.max(e.ioTimeout||2e4,2e4),cmdTimeout:Math.max(e.cmdTimeout||5e3,5e3),admin5only:e.admin5only||!1,autoSubscribes:e.autoSubscribes??[],autoSubscribeLog:e.autoSubscribeLog??!1,doNotLoadACL:e.doNotLoadACL??!0,doNotLoadAllObjects:e.doNotLoadAllObjects??!0}}statesSubscribes={};filesSubscribes={};objectsSubscribes={};objects={};states={};acl=null;isSecure=!1;onReadyDone=!1;onConnectionHandlers=[];onLogHandlers=[];onCmdStdoutHandler;onCmdStderrHandler;onCmdExitHandler;onError(e){(this.props.onError??console.error)(e)}_socket;_waitForSocketPromise;_waitForFirstConnectionPromise=SB();_instanceSubscriptions={};_promises={};_authTimer=null;_refreshTimer=null;_systemConfig;get systemConfig(){return this._systemConfig}systemLang="en";static isWeb(){return globalThis.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(this.props.connect){e();return}if(typeof globalThis.io>"u"&&typeof globalThis.iob>"u")if(typeof globalThis.registerSocketOnLoad=="function")globalThis.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(globalThis.io||globalThis.iob)return e();await o3(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||globalThis.location.protocol).replace(":",""),o=globalThis.location.pathname;if(globalThis.location.hostname==="iobroker.net"||globalThis.location.hostname==="iobroker.pro")o="";else{if(globalThis.socketUrl){const u=new globalThis.URL(globalThis.socketUrl);e=u.hostname,r=u.port,n=u.protocol.replace(":","")}const l=o.lastIndexOf("/");if(l!==-1&&(o=o.substring(0,l+1)),Gr.isWeb()){const u=o.split("/");u.length>2&&(u.pop(),u.pop(),xB.includes(u[u.length-1])&&u.pop(),o=u.join("/"),o.endsWith("/")||(o+="/"))}}const a=r?`${n}://${e}:${r}`:`${n}://${e}`,s=this.props.connect||(globalThis.io||globalThis.iob).connect;return this._socket=s(a,{path:o.endsWith("/")?`${o}socket.io`:`${o}/socket.io`,query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on("connect",l=>{globalThis.addEventListener?.("storage",this.onAccessTokenUpdated);const u=Gr.readTokens();if(u&&!u.owner){const f=Date.now();this.saveTokens({access_token:u.access_token,refresh_token:u.refresh_token,expires_in:Math.round((u.expires_in.getTime()-f)/1e3),refresh_token_expires_in:Math.round((u.refresh_token_expires_in.getTime()-f)/1e3),token_type:"Bearer"},u.stayLoggedIn)}this.onReadyDone=!1,l!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(f=>{const[h,d,m]=f.version.split(".");parseInt(h,10)*1e4+parseInt(d,10)*100+parseInt(m,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(v,b)=>this.onPreConnect(v,b))}).catch(f=>this.onError({message:f.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(f,h)=>{this.onPreConnect(f,h)})}),this._socket.on("reconnect",()=>{this.onReadyDone=!1,this.props.onProgress?.(To.READY),this.connected=!0,this.waitForRestart?globalThis.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(l=>l(!0)))}),this._socket.on("disconnect",()=>{this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,this.props.onProgress?.(To.CONNECTING),this.onConnectionHandlers.forEach(l=>l(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",l=>{this.props.onLog?.(l),this.onLogHandlers.forEach(u=>u(l))}),this._socket.on("error",l=>{let u;l==null?u="":typeof l.toString=="function"?u=l.toString():(u=JSON.stringify(l),console.error(`Received strange error: ${u}`)),u.includes("User not authorized")?this.authenticate():u.includes("websocket error")?(console.error(`Socket Error => reload: ${l}`),globalThis.location.reload()):console.error(`Socket Error: ${l}`)}),this._socket.on("connect_error",l=>console.error(`Connect error: ${l}`)),this._socket.on("permissionError",l=>this.onError({message:"no permission",operation:l.operation,type:l.type,id:l.id||""})),this._socket.on("objectChange",(l,u)=>{setTimeout(()=>this.objectChange(l,u),0)}),this._socket.on("stateChange",(l,u)=>{setTimeout(()=>this.stateChange(l,u),0)}),this._socket.on("im",(l,u,f)=>{setTimeout(()=>this.instanceMessage(l,u,f),0)}),this._socket.on("fileChange",(l,u,f)=>{setTimeout(()=>this.fileChange(l,u,f),0)}),this._socket.on("cmdStdout",(l,u)=>{this.onCmdStdoutHandler?.(l,u)}),this._socket.on("cmdStderr",(l,u)=>{this.onCmdStderrHandler?.(l,u)}),this._socket.on("cmdExit",(l,u)=>{this.onCmdExitHandler?.(l,u)}),Promise.resolve()}onPreConnect(e,r){this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?globalThis.location.reload():(this.firstConnect?this.loadData().catch(n=>{console.error(`Cannot load data: ${n}`)}):this.props.onProgress?.(To.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(n=>n(!0)),this.checkAccessTokenExpire()),this._waitForFirstConnectionPromise.resolve()}static readTokens(){let e=globalThis.sessionStorage.getItem("iob_tokens");const r=!e;if(e||(e=globalThis.localStorage.getItem("iob_tokens")),!e)return null;const[n,o,a,s,l]=e.split(";"),u=new Date(o);return u.getTime(){if(e.key==="iob_tokens"){const r=Gr.readTokens();r&&(console.log(`Tab ${this.connId} received updated token: ${r.access_token}`),this.updateTokenExpiration(r.access_token))}};updateTokenExpiration(e){this.lastAccessToken!==e&&(this.lastAccessToken=e,this._socket.emit("updateTokenExpiration",e,(r,n)=>{r?(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token: ${r}`),globalThis.location.reload()):n?console.log(`[UPDATE/${new Date().toISOString()}] server accepted new token: ${e}`):(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token`),globalThis.location.reload())})),this.checkAccessTokenExpire()}refreshTokens(e,r){if(!e){console.log(`[REFRESH/${new Date().toISOString()}] No token structure found => reloading the page`),setTimeout(()=>globalThis.location.reload(),500);return}r||!e.owner||e.owner===this.connId?(console.log(`[REFRESH/${new Date().toISOString()}] claim ownership of the token`),this.acquireTokenLock()?(console.log(`[REFRESH/${new Date().toISOString()}] refreshing token`),fetch("./oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&refresh_token=${e.refresh_token}&client_id=ioBroker&stayloggedin=${e.stayLoggedIn}`}).then(n=>{if(n.ok)return n.json();throw new Error("Cannot refresh access token")}).then(n=>{if(n.access_token)console.log(`[REFRESH/${new Date().toISOString()}] received new token: ${n.access_token}`),this.saveTokens(n,e.stayLoggedIn),this.releaseTokenLock(),this.updateTokenExpiration(n.access_token);else throw new Error("Cannot get access token")}).catch(n=>{console.warn(`[REFRESH/${new Date().toISOString()}] cannot refresh token: ${n}`),this.releaseTokenLock(),this.deleteTokens(e.stayLoggedIn),console.error(n),globalThis.location.reload()})):(console.log(`[REFRESH/${new Date().toISOString()}] Someone else is updating the token, so wait for the next check`),this.checkAccessTokenExpire())):this.lastAccessToken!==e.access_token&&this.updateTokenExpiration(e.access_token)}acquireTokenLock(){const e=Date.now(),r=globalThis.localStorage.getItem("iob_token_semaphore");if(r)try{const o=JSON.parse(r);if(e{o?(console.log(`[TOKEN/${new Date().toISOString()}] Token will be prolonged`),this.refreshTokens(e,n)):(console.log(`[TOKEN/${new Date().toISOString()}] Token will not be prolonged. Reloading the page`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))})):(console.log(`[TOKEN/${new Date().toISOString()}] No tokenTimeoutHandler defined. Prolonging the token`),this.refreshTokens(e,n))):this.lastAccessToken!==e.access_token?(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token, but we will inform the server about new token`),this.refreshTokens(e)):(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token and the token did not change. Check in 3 seconds if the owner updated the token`),this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},3e3)):(console.log(`[TOKEN/${new Date().toISOString()}] We do not have a refresh token, so we need to reauthenticate`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))}else this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},r-Date.now()-3e4>12e4?12e4:r-Date.now()-3e4)}}}static isCloud(){return globalThis.location.hostname.includes("amazonaws.com")||globalThis.location.hostname.includes("iobroker.in")?!0:typeof globalThis.socketUrl>"u"?!1:globalThis.socketUrl.includes("iobroker.in")||globalThis.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o||null)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await o3(Gr.isCloud()?5e3:1e3)}}async doLoadData(){if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(e){this.onError(`Cannot read user permissions: ${e}`);return}try{this.props.admin5only&&!Gr.isWeb()&&(!globalThis.vendorPrefix||globalThis.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(e){this.onError(`Cannot read system config: ${e}`);return}this._systemConfig&&(this.systemLang=this._systemConfig.common?.language,this.systemLang||(this.systemLang=globalThis.navigator.userLanguage||globalThis.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang="en"),this._systemConfig.common.language=this.systemLang)),this.props.onLanguage?.(this.systemLang),this.loaded=!0,this.props.onProgress?.(To.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),this.props.onProgress?.(To.READY),this.onReadyDone||(this.onReadyDone=!0,this.props.onReady?.(this.objects))}}authenticate(){globalThis.location.search.includes("&href=")?globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}${globalThis.location.search}`:globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}?login&href=${encodeURIComponent(globalThis.location.search+globalThis.location.hash)}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let a;if(Array.isArray(r)?a=r:a=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const s=[];for(let l=0;ll.includes("*"))){let l;for(let u=0;uconsole.error(`Cannot call state change handler: ${m}`))}}}else try{const l=await(Gr.isWeb()?this.getStates(a):this.getForeignStates(a));if(l)for(const[u,f]of Object.entries(l)){const h=o(u,f);h instanceof Promise&&h.catch(d=>console.error(`Cannot call state change handler: ${d}`))}}catch(l){console.error(`Cannot getState "${a.join(", ")}": ${l.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let a=0;a{try{const u=l(e,r,n);u instanceof Promise&&u.catch(f=>console.error(`Cannot call object change handler: ${f}`))}catch(u){console.error(`Error by callback of objectChange: ${u}`)}});if(o){const a=this.props.onObjectChange?.(e,r);a instanceof Promise&&a.catch(s=>console.error(`Cannot call object change handler: ${s}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const a=o(e,r??null);a instanceof Promise&&a.catch(s=>console.error(`Cannot call state change handler: ${s}`))}catch(a){console.error(`Error by callback of stateChanged: ${a}`)}}instanceMessage(e,r,n){this._instanceSubscriptions[r]?.forEach(o=>{if(o.messageType===e){const a=o.callback(n,r,e);a instanceof Promise&&a.catch(s=>console.error(`Cannot call instance message handler: ${s}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const a of o.cbs)try{a(e,r,n)}catch(s){console.error(`Error by callback of fileChange: ${s}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const a=[];for(let s=0;s{const d={elapsed:!1,clearTimeout:()=>{}};let m;n!==!1&&(m=setTimeout(()=>{d.elapsed=!0,o?.(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(Wr.TIMEOUT))},n??this.props.cmdTimeout),d.clearTimeout=()=>{clearTimeout(m)});try{await l(f,h,d)}catch(y){e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(y.toString()))}});return e&&(this._promises[e]=u),u}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,a)=>{this.states=a??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,a)=>{o?n(o):r(a)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,a)=>{o?n(o):r(a)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,a=>{a?o(a):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,a)=>{if(e&&e===this.ignoreState){let s;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?s=r:s={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=s,this.statesSubscribes[e])for(const l of this.statesSubscribes[e].cbs)try{const u=l(e,s);u instanceof Promise&&u.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(u){console.error(`Error by callback of stateChanged: ${u}`)}o();return}this._socket.emit("setState",e,r,s=>{s?a(s):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Gr.isWeb()?"getObjects":"getAllObjects",(a,s)=>{r||this.props.onProgress?.(To.OBJECTS_LOADED),a?o(a):(this.objects=s??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,a)=>{o?n(o):r(a)})}})}_subscribe(e){if(e&&!this.subscribed){this.subscribed=!0,this.props.autoSubscribes?.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("subscribeObjects",r),Object.keys(this.objectsSubscribes).forEach(n=>this._socket.emit("subscribeObjects",n)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("subscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,a]=n.split("$%$");this._socket.emit("subscribeFiles",o,a)})}else if(!e&&this.subscribed){this.subscribed=!1,this.props.autoSubscribes?.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("unsubscribeObjects",r),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("unsubscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,a]=n.split("$%$");this._socket.emit("unsubscribeFiles",o,a)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},a=>{a?o(a):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},a=>{a?o(a):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,a)=>{o?n(o):r(a)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,a=>{o(a)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,1)}registerCmdStdoutHandler(e){this.onCmdStdoutHandler=e}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(e){this.onCmdStderrHandler=e}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(e){this.onCmdExitHandler=e}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(e,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(a,s)=>{if(a)o(a);else{const l={};if(s)for(let u=0;u{n||="",o||="香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(l,u)=>{if(l)s(l);else{const f={};if(u&&u.rows)for(let h=0;h{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{n?r(n):e(o.rows?.map(a=>a.value).filter(a=>!!a))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(a,s)=>{a?o(a):n(s)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(s,l,u)=>{s?a(s):o({file:l,mimeType:u})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,s=>{s?a(s):o()});else{const s=btoa(new Uint8Array(n).reduce((l,u)=>l+String.fromCharCode(u),""));this._socket.emit("writeFile64",e,r,s,l=>{l?a(l):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a?o(a):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a?o(a):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,s=>{s?a(s):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,s=>{s?a(s):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,s,l)=>{e=aa(e),this._socket.emit("cmdExec",e,n,r,u=>{l.elapsed||(l.clearTimeout(),u?s(u):a())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??={},n.common??={},n.native??={},r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,a)=>{o?n(o):(a??={},a.common??={},a.native??={},r(a))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,a)=>{o?n(o):r(a??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(a,s)=>{a?o(a):n(s)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,s)=>{a?o(a):n(s)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,s,l,u)=>{a?o(a):n({values:s,sessionId:u,step:l})})}})}getIpAddresses(e,r){return e=aa(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n(o?.common.address??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,a,s)=>{o&&!a&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:a,serverName:s})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(a,s)=>{a?o(a):n(!!s)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{const r=await this.getObject("system.meta.uuid");e(r?.native?.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(a,s)=>{a?o(a):n(s)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",a=`${o}香`,s=await this.getObjectViewSystem("instance",o,a),l=Object.values(s);n(e?l.filter(u=>u.common.name===e):l)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),a=Object.values(o);n(e?a.filter(s=>s.common.name===e):a)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,a)=>{o?n(o):r(Kv(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(a,s)=>{this._socket.emit("clientSubscribe",e,r,n,(l,u)=>{l?s(l):u&&(u.error?s(u.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),a(u)))})}})}unsubscribeFromInstance(e,r,n){e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const a=[];do{o=!1;const s=this._instanceSubscriptions[e]?.findIndex(l=>(!r||l.messageType===r)&&(!n||l.callback===n));if(s!=null&&s!==-1){o=!0;const l=this._instanceSubscriptions[e][s].messageType;this._instanceSubscriptions[e].splice(s,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(f=>f.messageType===l)||a.push(this.request({commandTimeout:!1,executor:(f,h)=>{this._socket.emit("clientUnsubscribe",e,r,(d,m)=>d?h(d):f(m))}}))}}while(o&&(!n||!r));return a.length?Promise.all(a).then(s=>!!s.find(l=>l)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}destroy(){if(this._socket){const e=this._socket;try{typeof e.destroy=="function"?e.destroy():typeof e.close=="function"&&e.close(!0)}catch{}}globalThis.removeEventListener?.("storage",this.onAccessTokenUpdated),this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this._refreshTimer&&(clearTimeout(this._refreshTimer),this._refreshTimer=null),this.onConnectionHandlers.length=0,this.onLogHandlers.length=0;for(const e of Object.keys(this.statesSubscribes))delete this.statesSubscribes[e];for(const e of Object.keys(this.objectsSubscribes))delete this.objectsSubscribes[e];for(const e of Object.keys(this.filesSubscribes))delete this.filesSubscribes[e];this._instanceSubscriptions={},this.connected=!1,this.onReadyDone=!1}}function kB(t,e){if(!e)return;let r;if(e.length<700&&(e.indexOf("/")!==-1||e.indexOf("\\")!==-1))if(t.toLowerCase().includes("private"))r="private";else if(e.toLowerCase().includes("private"))r="private";else if(t.toLowerCase().includes("public"))r="public";else if(e.toLowerCase().includes("public"))r="public";else if(t.toLowerCase().includes("chain"))r="chained";else if(e.toLowerCase().includes("chain"))r="chained";else return;else r=e.substring(0,26)==="-----BEGIN RSA PRIVATE KEY"||e.substring(0,22)==="-----BEGIN PRIVATE KEY"?"private":"public",r==="public"&&e.split("-----END CERTIFICATE-----").filter(o=>o.replace(/\r\n|\r|\n/,"").trim()).length>1&&(r="chained");return{name:t,type:r}}function CB(t){const e=[{name:"[IPv4] 0.0.0.0 - Listen on all IPs",address:"0.0.0.0",family:"ipv4"}],r=[{name:"[IPv6] :: - Listen on all IPs",address:"::",family:"ipv6"}];if(t.native?.hardware?.networkInterfaces){const n=t.native?.hardware?.networkInterfaces;Object.keys(n).forEach(o=>{n[o]?.forEach(a=>{a.family!=="IPv6"?e.push({name:`[${a.family}] ${a.address} - ${o}`,address:a.address,family:"ipv4"}):r.push({name:`[${a.family}] ${a.address} - ${o}`,address:a.address,family:"ipv6"})})})}return{IPs4:e,IPs6:r}}class $B extends Gr{constructor(e){super(e)}request(e){return super.request({requireAdmin:!0,...e})}getCertificates(e){return this.request({cacheKey:"cert",forceUpdate:e,commandTimeout:!1,executor:async r=>{const n=await this.getObject("system.certificates");n?.native?.certificates?r(Object.entries(n.native.certificates).map(([o,a])=>kB(o,a)).filter(o=>!!o)):r([])}})}getLogs(e,r=200){return this.request({commandTimeout:!1,executor:n=>{this._socket.emit("sendToHost",e,"getLogs",r||200,o=>{n(o)})}})}upgradeAdapterWithWebserver(e,r){return this.request({commandTimeout:!1,executor:n=>{this._socket.emit("sendToHost",e,"upgradeAdapterWithWebserver",r,o=>{n(o)})}})}upgradeController(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("sendToHost",e,"upgradeController",{version:r,adminInstance:n},s=>{const l=s;l.error?a(l.error):o(l.result)})}})}updateLicenses(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("updateLicenses",e,r,(a,s)=>{a?o(a):n(s)})}})}upgradeOsPackages(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendToHost",e,"upgradeOsPackages",{packages:r,restart:!!n},a=>{o(a)})}})}getLogsFiles(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("readLogs",e,(o,a)=>{o&&n(o),r(a)})}})}delLogs(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("sendToHost",e,"delLogs",null,o=>{o&&n(o),r()})}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a&&o(a),n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a&&o(a),n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,s=>{s&&a(s),o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,s=>{s&&a(s),o()})}})}getHosts(e){return this.request({cacheKey:"hosts",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","host",{startkey:"system.host.",endkey:"system.host.香"},(o,a)=>{o?n(o):r(Kv(a))})}})}getUsers(e){return this.request({cacheKey:"users",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","user",{startkey:"system.user.",endkey:"system.user.香"},(o,a)=>{o?n(o):r(Kv(a))})}})}renameGroup(e,r,n){return this.request({commandTimeout:!1,executor:async o=>{const a=await this.getGroups(!0),s=a.filter(u=>u._id.startsWith(`${e}.`));for(const u of s){const f=u._id,h=r+u._id.substring(e.length);u._id=h,await this.setObject(h,u),await this.delObject(f)}const l=a.find(u=>u._id===e);if(l){const u=l._id;l._id=r,n!==void 0&&(l.common??={},l.common.name=n),await this.setObject(r,l),await this.delObject(u)}o()}})}getHostInfo(e,r,n){return e=aa(e),this.request({cacheKey:`hostInfo_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("sendToHost",e,"getHostInfo",null,l=>{s.elapsed||(s.clearTimeout(),l===Wr.PERMISSION_ERROR?a('May not read "getHostInfo"'):l?o(l):a('Cannot read "getHostInfo"'))})}})}getHostInfoShort(e,r,n){return e=aa(e),this.request({cacheKey:`hostInfoShort_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("sendToHost",e,"getHostInfoShort",null,l=>{s.elapsed||(s.clearTimeout(),l===Wr.PERMISSION_ERROR?a('May not read "getHostInfoShort"'):l?o(l):a('Cannot read "getHostInfoShort"'))})}})}getRepository(e,r,n,o){return this.request({cacheKey:`repository_${e}`,forceUpdate:n,commandTimeout:o,executor:(a,s,l)=>{this._socket.emit("sendToHost",e,"getRepository",r,u=>{l.elapsed||(l.clearTimeout(),u===Wr.PERMISSION_ERROR?s('May not read "getRepository"'):u?a(u):s('Cannot read "getRepository"'))})}})}getInstalled(e,r,n){return e=aa(e),this.request({cacheKey:`installed_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("sendToHost",e,"getInstalled",null,l=>{s.elapsed||(s.clearTimeout(),l===Wr.PERMISSION_ERROR?a('May not read "getInstalled"'):l?o(l):a('Cannot read "getInstalled"'))})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,s,l)=>{e=aa(e),this._socket.emit("cmdExec",e,n,r,u=>{l.elapsed||(l.clearTimeout(),u&&s(u),a())})}})}readBaseSettings(e){return e=Wl(e),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(r,n,o)=>{this._socket.emit("sendToHost",e,"readBaseSettings",null,a=>{o.elapsed||(o.clearTimeout(),a===Wr.PERMISSION_ERROR?n('May not read "BaseSettings"'):a?a.error?n(new Error(a.error)):r(a):n('Cannot read "BaseSettings"'))})}})}writeBaseSettings(e,r){return e=Wl(e),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(n,o,a)=>{this._socket.emit("sendToHost",e,"writeBaseSettings",r,s=>{a.elapsed||(a.clearTimeout(),s===Wr.PERMISSION_ERROR?o('May not write "BaseSettings"'):s?n(s):o('Cannot write "BaseSettings"'))})}})}restartController(e){return e=Wl(e),this.request({executor:(r,n,o)=>{this._socket.emit("sendToHost",e,"restartController",null,()=>{o.elapsed||(o.clearTimeout(),r(!0))})}})}getDiagData(e,r){return e=Wl(e),this.request({executor:(n,o,a)=>{this._socket.emit("sendToHost",e,"getDiagData",r,s=>{a.elapsed||(a.clearTimeout(),n(s||null))})}})}changePassword(e,r){return this.request({executor:(n,o,a)=>{this._socket.emit("changePassword",e,r,s=>{a.elapsed||(a.clearTimeout(),s&&o(s),n())})}})}getIpAddresses(e,r){return e=aa(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n(o?.common.address??[])}})}getHostByIp(e,r){return e=Wl(e),this.request({cacheKey:`rIPs_${e}`,forceUpdate:r,executor:(n,o,a)=>{this._socket.emit("getHostByIp",e,(s,l)=>{if(a.elapsed)return;a.clearTimeout();const{IPs4:u,IPs6:f}=CB(l);n([...u,...f])})}})}encrypt(e){return this.request({executor:(r,n,o)=>{this._socket.emit("encrypt",e,(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}decrypt(e){return this.request({executor:(r,n,o)=>{this._socket.emit("decrypt",e,(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}chmodFile(e,r,n){return this.request({executor:(o,a,s)=>{this._socket.emit("chmodFile",e,r,n,(l,u)=>{s.elapsed||(s.clearTimeout(),l&&a(l),o(u))})}})}chownFile(e,r,n){return this.request({executor:(o,a,s)=>{this._socket.emit("chownFile",e,r,n,(l,u)=>{s.elapsed||(s.clearTimeout(),l&&a(l),o(u))})}})}getNotifications(e,r){return this.request({executor:(n,o,a)=>{this._socket.emit("sendToHost",e,"getNotifications",{category:r},s=>{a.elapsed||(a.clearTimeout(),n(s))})}})}clearNotifications(e,r){return this.request({executor:(n,o,a)=>{this._socket.emit("sendToHost",e,"clearNotifications",{category:r},s=>{a.elapsed||(a.clearTimeout(),n(s))})}})}getIsEasyModeStrict(){return this.request({executor:(e,r,n)=>{this._socket.emit("getIsEasyModeStrict",(o,a)=>{n.elapsed||(n.clearTimeout(),o&&r(o),e(!!a))})}})}getEasyMode(){return this.request({executor:(e,r,n)=>{this._socket.emit("getEasyMode",(o,a)=>{n.elapsed||(n.clearTimeout(),o?r(new Error(o)):e(a))})}})}getRatings(e){return this.request({executor:(r,n,o)=>{this._socket.emit("getRatings",!!e,(a,s)=>{o.elapsed||(o.clearTimeout(),a?n(new Error(a)):r(s))})}})}getCurrentSession(e){const r=new AbortController;return this.request({commandTimeout:e||5e3,onTimeout:()=>{r.abort()},executor:async(n,o,a)=>{try{const s=await fetch("./session",{signal:r.signal});if(a.elapsed)return;a.clearTimeout();const l=await s.json();n(l)}catch(s){o(`getCurrentSession: ${s}`)}}})}getCurrentInstance(){return this.request({cacheKey:"currentInstance",executor:(e,r,n)=>{this._socket.emit("getCurrentInstance",(o,a)=>{n.elapsed||(n.clearTimeout(),o?r(o):e(a))})}})}getAdapterInstances(e,r){let n;return typeof e=="boolean"?(r=e,n=""):n=e||"",this.request({cacheKey:`instances_${n}`,forceUpdate:r,executor:(o,a,s)=>{this._socket.emit("getAdapterInstances",n,(l,u)=>{s.elapsed||(s.clearTimeout(),l&&a(l),o(u))})}})}getAdapters(e,r){let n;return typeof e=="boolean"?(r=e,n=""):n=e||"",this.request({cacheKey:`adapter_${n}`,forceUpdate:r,executor:(o,a,s)=>{this._socket.emit("getAdapters",n,(l,u)=>{s.elapsed||(s.clearTimeout(),l&&a(l),o(u))})}})}getCompactAdapters(e){return this.request({cacheKey:"compactAdapters",forceUpdate:e,executor:(r,n,o)=>{this._socket.emit("getCompactAdapters",(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}getAdaptersResetCache(e){e=e??"",this.resetCache(`adapter_${e}`),this.resetCache("compactAdapters")}getCompactInstances(e){return this.request({cacheKey:"compactInstances",forceUpdate:e,executor:(r,n,o)=>{this._socket.emit("getCompactInstances",(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}getAdapterInstancesResetCache(e){e=e??"",this.resetCache(`instances_${e}`),this.resetCache("compactInstances")}getCompactInstalled(e,r,n){return e=aa(e),this.request({cacheKey:`installedCompact_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("getCompactInstalled",e,l=>{s.elapsed||(s.clearTimeout(),l===Wr.PERMISSION_ERROR?a('May not read "getCompactInstalled"'):l?o(l):a('Cannot read "getCompactInstalled"'))})}})}getInstalledResetCache(e){e?(this.resetCache(`installedCompact_${e}`),this.resetCache(`installed_${e}`)):(this.resetCache("installedCompact_",!0),this.resetCache("installed_",!0))}getCompactRepository(e,r,n){return e=aa(e),this.request({cacheKey:`repositoryCompact_${e}`,forceUpdate:r,commandTimeout:n,executor:(o,a,s)=>{this._socket.emit("getCompactRepository",e,l=>{s.elapsed||(s.clearTimeout(),l===Wr.PERMISSION_ERROR?a('May not read "getCompactRepository"'):l?o(l):a('Cannot read "getCompactRepository"'))})}})}getRepositoryResetCache(e){e?(this.resetCache(`repositoryCompact_${e}`),this.resetCache(`repository_${e}`)):(this.resetCache("repositoryCompact_",!0),this.resetCache("repository_",!0))}getCompactHosts(e){return this.request({cacheKey:"hostsCompact",forceUpdate:e,executor:(r,n,o)=>{this._socket.emit("getCompactHosts",(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}getCompactSystemRepositories(e){return this.request({cacheKey:"repositoriesCompact",forceUpdate:e,executor:(r,n,o)=>{this._socket.emit("getCompactSystemRepositories",(a,s)=>{o.elapsed||(o.clearTimeout(),a&&n(a),r(s))})}})}}const at=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Dt=globalThis,qi="10.53.1";function ph(){return fh(Dt),Dt}function fh(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||qi,e[qi]=e[qi]||{}}function Vc(t,e,r=Dt){const n=r.__SENTRY__=r.__SENTRY__||{},o=n[qi]=n[qi]||{};return o[t]||(o[t]=e())}const EB=["debug","info","warn","error","log","assert","trace"],TB="Sentry Logger ",$f={};function Gc(t){if(!("console"in Dt))return t();const e=Dt.console,r={},n=Object.keys($f);n.forEach(o=>{const a=$f[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function OB(){vb().enabled=!0}function DB(){vb().enabled=!1}function UT(){return vb().enabled}function RB(...t){yb("log",...t)}function MB(...t){yb("warn",...t)}function AB(...t){yb("error",...t)}function yb(t,...e){at&&UT()&&Gc(()=>{Dt.console[t](`${TB}[${t}]:`,...e)})}function vb(){return at?Vc("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const et={enable:OB,disable:DB,isEnabled:UT,log:RB,warn:MB,error:AB},qT=50,Gi="?",a3=/\(error: (.*)\)/,i3=/captureMessage|captureException/;function HT(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{const a=[],s=r.split(` +`);for(let l=n;l1024&&(u=u.slice(0,1024));const f=a3.test(u)?u.replace(a3,"$1"):u;if(!f.includes("Error: ")){for(const h of e){const d=h(f);if(d){a.push(d);break}}if(a.length>=qT+o)break}}return PB(a.slice(o))}}function NB(t){return Array.isArray(t)?HT(...t):t}function PB(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(Ip(e).function||"")&&e.pop(),e.reverse(),i3.test(Ip(e).function||"")&&(e.pop(),i3.test(Ip(e).function||"")&&e.pop()),e.slice(0,qT).map(r=>({...r,filename:r.filename||Ip(e).filename,function:r.function||Gi}))}function Ip(t){return t[t.length-1]||{}}const q_="";function Za(t){try{return!t||typeof t!="function"?q_:t.name||q_}catch{return q_}}function s3(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}function VT(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const au={},c3={};function ts(t,e){return au[t]=au[t]||[],au[t].push(e),()=>{const r=au[t];if(r){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}}}function rs(t,e){if(!c3[t]){c3[t]=!0;try{e()}catch(r){at&&et.error(`Error while instrumenting ${t}`,r)}}}function io(t,e){const r=t&&au[t];if(r)for(const n of r)try{n(e)}catch(o){at&&et.error(`Error while triggering instrumentation handler. +Type: ${t} +Name: ${Za(n)} +Error:`,o)}}let H_=null;function IB(t){const e="error";ts(e,t),rs(e,jB)}function jB(){H_=Dt.onerror,Dt.onerror=function(t,e,r,n,o){return io("error",{column:n,error:o,line:r,msg:t,url:e}),H_?H_.apply(this,arguments):!1},Dt.onerror.__SENTRY_INSTRUMENTED__=!0}let V_=null;function zB(t){const e="unhandledrejection";ts(e,t),rs(e,LB)}function LB(){V_=Dt.onunhandledrejection,Dt.onunhandledrejection=function(t){return io("unhandledrejection",t),V_?V_.apply(this,arguments):!0},Dt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const GT=Object.prototype.toString;function hh(t){switch(GT.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Qa(t,Error)}}function Xc(t,e){return GT.call(t)===`[object ${e}]`}function XT(t){return Xc(t,"ErrorEvent")}function l3(t){return Xc(t,"DOMError")}function FB(t){return Xc(t,"DOMException")}function ca(t){return Xc(t,"String")}function bb(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function mh(t){return t===null||bb(t)||typeof t!="object"&&typeof t!="function"}function Pu(t){return Xc(t,"Object")}function _h(t){return typeof Event<"u"&&Qa(t,Event)}function BB(t){return typeof Element<"u"&&Qa(t,Element)}function WB(t){return Xc(t,"RegExp")}function nd(t){return!!(t?.then&&typeof t.then=="function")}function UB(t){return Pu(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Qa(t,e){try{return t instanceof e}catch{return!1}}function JT(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function YT(t){return typeof Request<"u"&&Qa(t,Request)}const wb=Dt,qB=80;function KT(t,e={}){if(!t)return"";try{let r=t;const n=5,o=[];let a=0,s=0;const l=" > ",u=l.length;let f;const h=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||qB;for(;r&&a++1&&s+o.length*u+f.length>=d));)o.push(f),s+=f.length,r=r.parentNode;return o.reverse().join(l)}catch{return""}}function HB(t,e){const r=t,n=[];if(!r?.tagName)return"";if(wb.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=e?.length?e.filter(a=>r.getAttribute(a)).map(a=>[a,r.getAttribute(a)]):null;if(o?.length)o.forEach(a=>{n.push(`[${a[0]}="${a[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const a=r.className;if(a&&ca(a)){const s=a.split(/\s+/);for(const l of s)n.push(`.${l}`)}}for(const a of["aria-label","type","name","title","alt"]){const s=r.getAttribute(a);s&&n.push(`[${a}="${s}"]`)}return n.join("")}function Sb(){try{return wb.document.location.href}catch{return""}}function VB(t,e=5){if(!wb.HTMLElement)return null;let r=t;for(let n=0;n"}}function d3(t){return typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t)):{}}function GB(t){const e=Object.keys(QT(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let Vs;function gh(t){if(Vs!==void 0)return Vs?Vs(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=Dt;return e in r&&typeof r[e]=="function"?(Vs=r[e],Vs(t)):(Vs=null,t())}function Ef(){return gh(()=>Math.random())}function yh(){return gh(()=>Date.now())}function Zv(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function p3(t,e){if(!Array.isArray(t))return"";const r=[];for(let n=0;nt.randomUUID()).replace(/-/g,"")}catch{}return G_||(G_="10000000100040008000"+1e11),G_.replace(/[018]/g,e=>(e^(JB()&15)>>e/4).toString(16))}function e8(t){return t.exception?.values?.[0]}function Ii(t){const{message:e,event_id:r}=t;if(e)return e;const n=e8(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function Qv(t,e,r){const n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function jc(t,e){const r=e8(t);if(!r)return;const n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){const a={...o?.data,...e.data};r.mechanism.data=a}}function f3(t){if(YB(t))return!0;try{ei(t,"__sentry_captured__",!0)}catch{}return!1}function YB(t){try{return t.__sentry_captured__}catch{}}const t8=1e3;function ad(){return yh()/t8}function KB(){const{performance:t}=Dt;if(!t?.now||!t.timeOrigin)return ad;const e=t.timeOrigin;return()=>(e+gh(()=>t.now()))/t8}let h3;function la(){return(h3??(h3=KB()))()}function ZB(t){const e=la(),r={sid:Wn(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>eW(r)};return t&&zc(r,t),r}function zc(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||la(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Wn()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function QB(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),zc(t,r)}function eW(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function id(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&Object.keys(e).length===0)return t;const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=id(n[o],e[o],r-1));return n}function m3(){return Wn()}function r8(){return Wn().substring(16)}const e1="_sentrySpan";function _3(t,e){e?ei(t,e1,e):delete t[e1]}function g3(t){return t[e1]}const tW=100;class fa{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:m3(),sampleRand:Ef()}}clone(){const e=new fa;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,_3(e,g3(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&zc(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this.setTags({[e]:r})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,r){return this.setAttributes({[e]:r})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,n=r instanceof fa?r.getScopeData():Pu(r)?e:void 0,{tags:o,attributes:a,extra:s,user:l,contexts:u,level:f,fingerprint:h=[],propagationContext:d,conversationId:m}=n||{};return this._tags={...this._tags,...o},this._attributes={...this._attributes,...a},this._extra={...this._extra,...s},this._contexts={...this._contexts,...u},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),h.length&&(this._fingerprint=h),d&&(this._propagationContext=d),m&&(this._conversationId=m),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,_3(this,void 0),this._attachments=[],this.setPropagationContext({traceId:m3(),sampleRand:Ef()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:tW;if(n<=0)return this;const o={timestamp:ad(),...e,message:e.message?Zv(e.message,2048):e.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:g3(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=id(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r?.event_id||Wn();if(!this._client)return at&&et.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){const o=n?.event_id||Wn();if(!this._client)return at&&et.warn("No client configured on scope - will not capture message!"),o;const a=n?.syntheticException??new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){const n=e.event_id||r?.event_id||Wn();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(at&&et.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function rW(){return Vc("defaultCurrentScope",()=>new fa)}function nW(){return Vc("defaultIsolationScope",()=>new fa)}const y3=t=>t instanceof Promise&&!t[n8],n8=Symbol("chained PromiseLike"),oW=(t,e,r)=>{const n=t.then(o=>(e(o),o),o=>{throw r(o),o});return y3(n)&&y3(t)?n:aW(t,n)},aW=(t,e)=>{if(!e)return t;let r=!1;for(const n in t){if(n in e)continue;r=!0;const o=t[n];typeof o=="function"?Object.defineProperty(e,n,{value:(...a)=>o.apply(t,a),enumerable:!0,configurable:!0,writable:!0}):e[n]=o}return r&&Object.assign(e,{[n8]:!0}),e};class iW{constructor(e,r){let n;e?n=e:n=new fa;let o;r?o=r:o=new fa,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(o){throw this._popScope(),o}return nd(n)?oW(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Lc(){const t=ph(),e=fh(t);return e.stack=e.stack||new iW(rW(),nW())}function sW(t){return Lc().withScope(t)}function cW(t,e){const r=Lc();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function v3(t){return Lc().withScope(()=>t(Lc().getIsolationScope()))}function lW(){return{withIsolationScope:v3,withScope:sW,withSetScope:cW,withSetIsolationScope:(t,e)=>v3(e),getCurrentScope:()=>Lc().getScope(),getIsolationScope:()=>Lc().getIsolationScope()}}function kb(t){const e=fh(t);return e.acs?e.acs:lW()}function uW(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)&&Object.keys(t).includes("value")}function dW(t,e){const{value:r,unit:n}=uW(t)?t:{value:t,unit:void 0},o=pW(r),a=n&&typeof n=="string"?{unit:n}:{};if(o)return{...o,...a};if(!e||e==="skip-undefined"&&r===void 0)return;let s="";try{s=JSON.stringify(r)??""}catch{}return{value:s,type:"string",...a}}function b3(t,e=!1){const r={};for(const[n,o]of Object.entries(t??{})){const a=dW(o,e);a&&(r[n]=a)}return r}function pW(t){const e=typeof t=="string"?"string":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?Number.isInteger(t)?"integer":"double":null;if(e)return{value:t,type:e}}function Fo(){const t=ph();return kb(t).getCurrentScope()}function ns(){const t=ph();return kb(t).getIsolationScope()}function fW(){return Vc("globalScope",()=>new fa)}function hW(...t){const e=ph(),r=kb(e);if(t.length===2){const[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function qr(){return Fo().getClient()}function mW(t){const e=t.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:o}=e,a={trace_id:r,span_id:o||r8()};return n&&(a.parent_span_id=n),a}const _W="sentry.source",gW="sentry.sample_rate",yW="sentry.previous_trace_sample_rate",vW="sentry.op",bW="sentry.origin",o8="sentry.profile_id",a8="sentry.exclusive_time",wW="gen_ai.conversation.id",SW=0,xW=1;function kW(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}const CW="_sentryScope",$W="_sentryIsolationScope";function i8(t){const e=t;return{scope:e[CW],isolationScope:kW(e[$W])}}const w3="sentry-";function EW(t){const e=TW(t);if(!e)return;const r=Object.entries(e).reduce((n,[o,a])=>{if(o.startsWith(w3)){const s=o.slice(w3.length);n[s]=a}return n},{});if(Object.keys(r).length>0)return r}function TW(t){if(!(!t||!ca(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=S3(r);return Object.entries(n).forEach(([o,a])=>{e[o]=a}),e},{}):S3(t)}function S3(t){return t.split(",").map(e=>{const r=e.indexOf("=");if(r===-1)return[];const n=e.slice(0,r),o=e.slice(r+1);return[n,o].map(a=>{try{return decodeURIComponent(a.trim())}catch{return}})}).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const OW=/^o(\d+)\./,DW=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function RW(t){return t==="http"||t==="https"}function sd(t,e=!1){const{host:r,path:n,pass:o,port:a,projectId:s,protocol:l,publicKey:u}=t;return`${l}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${s}`}function MW(t){const e=DW.exec(t);if(!e){Gc(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,o="",a="",s="",l=""]=e.slice(1);let u="",f=l;const h=f.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),f=h.pop()),f){const d=f.match(/^\d+/);d&&(f=d[0])}return s8({host:a,pass:o,path:u,projectId:f,port:s,protocol:r,publicKey:n})}function s8(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function AW(t){if(!at)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(et.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?RW(n)?e&&isNaN(parseInt(e,10))?(et.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(et.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(et.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function NW(t){return t.match(OW)?.[1]}function PW(t){const e=t.getOptions(),{host:r}=t.getDsn()||{};let n;return e.orgId?n=String(e.orgId):r&&(n=NW(r)),n}function IW(t){const e=typeof t=="string"?MW(t):s8(t);if(!(!e||!AW(e)))return e}function jW(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const c8=1;let x3=!1;function zW(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),o=n?e:vh(t).parent_span_id,a=i8(t).scope,s=n?a?.getPropagationContext().propagationSpanId||r8():e;return{parent_span_id:o,span_id:s,trace_id:r}}function LW(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:r,traceFlags:n,...o},attributes:a})=>({span_id:e,trace_id:r,sampled:n===c8,attributes:a,...o}))}function k3(t){return typeof t=="number"?C3(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?C3(t.getTime()):la()}function C3(t){return t>9999999999?t/1e3:t}function vh(t){if(UW(t))return t.getSpanJSON();const{spanId:e,traceId:r}=t.spanContext();if(WW(t)){const{attributes:n,startTime:o,name:a,endTime:s,status:l,links:u}=t;return{span_id:e,trace_id:r,data:n,description:a,parent_span_id:FW(t),start_timestamp:k3(o),timestamp:k3(s)||void 0,status:HW(l),op:n[vW],origin:n[bW],links:LW(u)}}return{span_id:e,trace_id:r,start_timestamp:0,data:{}}}function FW(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function BW(t){return{...t,attributes:b3(t.attributes),links:t.links?.map(e=>({...e,attributes:b3(e.attributes)}))}}function WW(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function UW(t){return typeof t.getSpanJSON=="function"}function qW(t){const{traceFlags:e}=t.spanContext();return e===c8}function HW(t){if(!(!t||t.code===SW))return t.code===xW?"ok":t.message||"internal_error"}const VW="_sentryRootSpan",l8=GW;function GW(t){return t[VW]||t}function $3(){x3||(Gc(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),x3=!0)}function XW(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=qr()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function E3(t){et.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function T3(t,e){if(!e?.length)return!1;for(const r of e){if(KW(r)){if(t.description&&bu(t.description,r))return at&&E3(t),!0;continue}const n=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!n)continue;const o=r.name?t.description&&bu(t.description,r.name):!0,a=r.op?t.op&&bu(t.op,r.op):!0,s=r.attributes?Object.entries(r.attributes).every(([l,u])=>JW(t.attributes?.[l],u)):!0;if(o&&a&&s)return at&&E3(t),!0}return!1}function JW(t,e){return typeof t=="string"&&(typeof e=="string"||e instanceof RegExp)?bu(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t===e}function YW(t,e){const r=e.parent_span_id,n=e.span_id;if(r)for(const o of t)o.parent_span_id===n&&(o.parent_span_id=r)}function KW(t){return typeof t=="string"||t instanceof RegExp}const Cb="production",ZW="_frozenDsc";function u8(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o={environment:r.environment||Cb,release:r.release,public_key:n,trace_id:t,org_id:PW(e)};return e.emit("createDsc",o),o}function QW(t,e){const r=e.getPropagationContext();return r.dsc||u8(r.traceId,t)}function eU(t){const e=qr();if(!e)return{};const r=l8(t),n=vh(r),o=n.data,a=r.spanContext().traceState,s=a?.get("sentry.sample_rate")??o[gW]??o[yW];function l(v){return(typeof s=="number"||typeof s=="string")&&(v.sample_rate=`${s}`),v}const u=r[ZW];if(u)return l(u);const f=a?.get("sentry.dsc"),h=f&&EW(f);if(h)return l(h);const d=u8(t.spanContext().traceId,e),m=o[_W]??o["sentry.span.source"],y=n.description;return m!=="url"&&y&&(d.transaction=y),XW()&&(d.sampled=String(qW(r)),d.sample_rand=a?.get("sentry.sample_rand")??i8(r).scope?.getPropagationContext().sampleRand.toString()),l(d),e.emit("createDsc",d,r),d}function tU(t){return!!t&&typeof t=="function"&&"_streamed"in t&&!!t._streamed}const rU=Symbol.for("sentry.skipNormalization"),nU=Symbol.for("sentry.overrideNormalizationDepth");function oU(t){return!!t[rU]}function aU(t){const e=t[nU];return typeof e=="number"?e:void 0}function ia(t,e=100,r=1/0){try{return t1("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function d8(t,e=3,r=100*1024){const n=ia(t,e);return lU(n)>r?d8(t,e-1,r):n}function t1(t,e,r=1/0,n=1/0,o=uU()){const[a,s]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const l=iU(t,e);if(!l.startsWith("[object "))return l;if(oU(e))return e;const u=aU(e),f=u!==void 0?u:r;if(f===0)return l.replace("object ","");if(a(e))return"[Circular ~]";const h=e;if(h&&typeof h.toJSON=="function")try{const v=h.toJSON();return t1("",v,f-1,n,o)}catch{}const d=Array.isArray(e)?[]:{};let m=0;const y=QT(e);for(const v in y){if(!Object.prototype.hasOwnProperty.call(y,v))continue;if(m>=n){d[v]="[MaxProperties ~]";break}const b=y[v];d[v]=t1(v,b,f-1,n,o),m++}return s(e),d}function iU(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(JT(e))return VT(e);if(UB(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Za(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=sU(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function sU(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function cU(t){return~-encodeURI(t).split(/%..|./).length}function lU(t){return cU(JSON.stringify(t))}function uU(){const t=new WeakSet;function e(n){return t.has(n)?!0:(t.add(n),!1)}function r(n){t.delete(n)}return[e,r]}function Jc(t,e=[]){return[t,e]}function O3(t,e){const[r,n]=t;return[r,[...n,e]]}function r1(t,e){const r=t[1];for(const n of r){const o=n[0].type;if(e(n,o))return!0}return!1}function dU(t,e){return r1(t,(r,n)=>e.includes(n))}function n1(t){const e=fh(Dt);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function pU(t){const[e,r]=t;let n=JSON.stringify(e);function o(a){typeof n=="string"?n=typeof a=="string"?n+a:[n1(n),a]:n.push(typeof a=="string"?n1(a):a)}for(const a of r){const[s,l]=a;if(o(` +${JSON.stringify(s)} +`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(ia(l))}o(u)}}return typeof n=="string"?n:fU(n)}function fU(t){const e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e);let n=0;for(const o of t)r.set(o,n),n+=o.length;return r}function hU(t){const e=typeof t.data=="string"?n1(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const p8={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function mU(t){return t in p8}function D3(t){return mU(t)?p8[t]:t}function f8(t){if(!t?.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function _U(t,e,r,n){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:sd(n)},...o&&{trace:o}}}function gU(t,e){if(!e)return t;const r=t.sdk||{};return t.sdk={...r,name:r.name||e.name,version:r.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0},t}function yU(t,e,r,n){const o=f8(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:sd(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Jc(a,[s])}function vU(t,e,r,n){const o=f8(r),a=t.type&&t.type!=="replay_event"?t.type:"event";gU(t,r?.sdk);const s=_U(t,o,n,e);return delete t.sdkProcessingMetadata,Jc(s,[[{type:a},t]])}function bU(t){return t.getOptions().traceLifecycle==="stream"}function wU(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;SU(t,e),n&&CU(t,n),$U(t,r),xU(t,o),kU(t,a)}function R3(t,e){const{extra:r,tags:n,attributes:o,user:a,contexts:s,level:l,sdkProcessingMetadata:u,breadcrumbs:f,fingerprint:h,eventProcessors:d,attachments:m,propagationContext:y,transactionName:v,span:b}=e;Ul(t,"extra",r),Ul(t,"tags",n),Ul(t,"attributes",o),Ul(t,"user",a),Ul(t,"contexts",s),t.sdkProcessingMetadata=id(t.sdkProcessingMetadata,u,2),l&&(t.level=l),v&&(t.transactionName=v),b&&(t.span=b),f.length&&(t.breadcrumbs=[...t.breadcrumbs,...f]),h.length&&(t.fingerprint=[...t.fingerprint,...h]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),m.length&&(t.attachments=[...t.attachments,...m]),t.propagationContext={...t.propagationContext,...y}}function Ul(t,e,r){t[e]=id(t[e],r,1)}function h8(t,e){const r=fW().getScopeData();return t&&R3(r,t.getScopeData()),e&&R3(r,e.getScopeData()),r}function SU(t,e){const{extra:r,tags:n,user:o,contexts:a,level:s,transactionName:l}=e;Object.keys(r).length&&(t.extra={...r,...t.extra}),Object.keys(n).length&&(t.tags={...n,...t.tags}),Object.keys(o).length&&(t.user={...o,...t.user}),Object.keys(a).length&&(t.contexts={...a,...t.contexts}),s&&(t.level=s),l&&t.type!=="transaction"&&(t.transaction=l)}function xU(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function kU(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function CU(t,e){t.contexts={trace:zW(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:eU(e),...t.sdkProcessingMetadata};const r=l8(e),n=vh(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function $U(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}function X_(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function EU(t,e=!0){if(t.startsWith("data:")){const r=t.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",o=t.includes(";base64,"),a=t.indexOf(",");let s="";if(e&&a!==-1){const l=t.slice(a+1);s=l.length>10?`${l.slice(0,10)}... [truncated]`:l}return`data:${n}${o?",base64":""}${s?`,${s}`:""}`}return t}function m8(t,e){const r=t.attributes??(t.attributes={});Object.entries(e).forEach(([n,o])=>{o!=null&&!(n in r)&&(r[n]=o)})}const J_=0,M3=1,A3=2;function cd(t){return new Iu(e=>{e(t)})}function $b(t){return new Iu((e,r)=>{r(t)})}class Iu{constructor(e){this._state=J_,this._handlers=[],this._runExecutor(e)}then(e,r){return new Iu((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(s){o(s)}},a=>{if(!r)o(a);else try{n(r(a))}catch(s){o(s)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new Iu((r,n)=>{let o,a;return this.then(s=>{a=!1,o=s,e&&e()},s=>{a=!0,o=s,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}_executeHandlers(){if(this._state===J_)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===M3&&r[1](this._value),this._state===A3&&r[2](this._value),r[0]=!0)})}_runExecutor(e){const r=(a,s)=>{if(this._state===J_){if(nd(s)){s.then(n,o);return}this._state=a,this._value=s,this._executeHandlers()}},n=a=>{r(M3,a)},o=a=>{r(A3,a)};try{e(n,o)}catch(a){o(a)}}}function TU(t,e,r,n=0){try{const o=o1(e,r,t,n);return nd(o)?o:cd(o)}catch(o){return $b(o)}}function o1(t,e,r,n){const o=r[n];if(!t||!o)return t;const a=o({...t},e);return at&&a===null&&et.log(`Event processor "${o.id||"?"}" dropped event`),nd(a)?a.then(s=>o1(s,e,r,n+1)):o1(a,e,r,n+1)}let $i,N3,P3,za;function OU(t){const e=Dt._sentryDebugIds,r=Dt._debugIds;if(!e&&!r)return{};const n=e?Object.keys(e):[],o=r?Object.keys(r):[];if(za&&n.length===N3&&o.length===P3)return za;N3=n.length,P3=o.length,za={},$i||($i={});const a=(s,l)=>{for(const u of s){const f=l[u],h=$i?.[u];if(h&&za&&f)za[h[0]]=f,$i&&($i[u]=[h[0],f]);else if(f){const d=t(u);for(let m=d.length-1;m>=0;m--){const v=d[m]?.filename;if(v&&za&&$i){za[v]=f,$i[u]=[v,f];break}}}}};return e&&a(n,e),r&&a(o,r),za}function DU(t,e,r,n,o,a){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=t,u={...e,event_id:e.event_id||r.event_id||Wn(),timestamp:e.timestamp||ad()},f=r.integrations||t.integrations.map(C=>C.name);RU(u,t),NU(u,f),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&MU(u,t.stackParser);const h=IU(n,r.captureContext);r.mechanism&&jc(u,r.mechanism);const d=o?o.getEventProcessors():[],m=h8(a,h),y=[...r.attachments||[],...m.attachments];y.length&&(r.attachments=y),wU(u,m);const v=[...d,...m.eventProcessors];return(r.data&&r.data.__sentry__===!0?cd(u):TU(v,u,r)).then(C=>(C&&AU(C),typeof s=="number"&&s>0?PU(C,s,l):C))}function RU(t,e){const{environment:r,release:n,dist:o,maxValueLength:a}=e;t.environment=t.environment||r||Cb,!t.release&&n&&(t.release=n),!t.dist&&o&&(t.dist=o);const s=t.request;s?.url&&a&&(s.url=Zv(s.url,a)),a&&t.exception?.values?.forEach(l=>{l.value&&(l.value=Zv(l.value,a))})}function MU(t,e){const r=OU(e);t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=r[o.filename])})})}function AU(t){const e={};if(t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function NU(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function PU(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:ia(o.data,e,r)}}))},...t.user&&{user:ia(t.user,e,r)},...t.contexts&&{contexts:ia(t.contexts,e,r)},...t.extra&&{extra:ia(t.extra,e,r)}};return t.contexts?.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=ia(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:ia(o.data,e,r)}}))),t.contexts?.flags&&n.contexts&&(n.contexts.flags=ia(t.contexts.flags,3,r)),n}function IU(t,e){if(!e)return t;const r=t?t.clone():new fa;return r.update(e),r}function jU(t,e){return Fo().captureException(t,void 0)}function _8(t,e){return Fo().captureEvent(t,e)}function I3(t){const e=ns(),{user:r}=h8(e,Fo()),{userAgent:n}=Dt.navigator||{},o=ZB({user:r,...n&&{userAgent:n},...t}),a=e.getSession();return a?.status==="ok"&&zc(a,{status:"exited"}),g8(),e.setSession(o),o}function g8(){const t=ns(),r=Fo().getSession()||t.getSession();r&&QB(r),y8(),t.setSession()}function y8(){const t=ns(),e=qr(),r=t.getSession();r&&e&&e.captureSession(r)}function Y_(t=!1){if(t){g8();return}y8()}const zU="7";function LU(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function FU(t){return`${LU(t)}${t.projectId}/envelope/`}function BU(t,e){const r={sentry_version:zU};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function WU(t,e,r){return e||`${FU(t)}?${BU(t,r)}`}const j3=[];function UU(t){const e={};return t.forEach(r=>{const{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function qU(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(o=>{o.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const o=r(e);n=Array.isArray(o)?o:[o]}else n=e;return UU(n)}function HU(t,e){const r={};return e.forEach(n=>{n?.beforeSetup&&n.beforeSetup(t)}),e.forEach(n=>{n&&v8(t,n,r)}),r}function z3(t,e){for(const r of e)r?.afterAllSetup&&r.afterAllSetup(t)}function v8(t,e,r){if(r[e.name]){at&&et.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,!j3.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),j3.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),o=Object.assign((a,s)=>n(a,s,t),{id:e.name});t.addEventProcessor(o)}["processSpan","processSegmentSpan"].forEach(n=>{const o=e[n];typeof o=="function"&&t.on(n,a=>o.call(e,a,t))}),at&&et.log(`Integration installed: ${e.name}`)}function VU(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function GU(){return"npm"}function XU(){return!VU()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Eb(){return typeof window<"u"&&(!XU()||JU())}function JU(){return Dt.process?.type==="renderer"}function YU(t,e){const r=e?"auto":"never";return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...Eb()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:t}]}function KU(t,e,r,n,o){const a={};return e?.sdk&&(a.sdk={name:e.sdk.name,version:e.sdk.version}),r&&n&&(a.dsn=sd(n)),Jc(a,[YU(t,o)])}function a1(t,e){const r=e??ZU(t)??[];if(r.length===0)return;const n=t.getOptions(),o=KU(r,n._metadata,n.tunnel,t.getDsn(),n.sendDefaultPii);b8().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(o)}function ZU(t){return b8().get(t)}function b8(){return Vc("clientToLogBufferMap",()=>new WeakMap)}function QU(t,e){const r=e?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...Eb()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:t}]}function eq(t,e,r,n,o){const a={};return e?.sdk&&(a.sdk={name:e.sdk.name,version:e.sdk.version}),r&&n&&(a.dsn=sd(n)),Jc(a,[QU(t,o)])}function w8(t,e){const r=e??tq(t)??[];if(r.length===0)return;const n=t.getOptions(),o=eq(r,n._metadata,n.tunnel,t.getDsn(),n.sendDefaultPii);S8().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(o)}function tq(t){return S8().get(t)}function S8(){return Vc("clientToMetricBufferMap",()=>new WeakMap)}function rq(t){const e={trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp||t.start_timestamp,status:!t.status||t.status==="ok"||t.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...t.data},links:t.links};return BW(e)}function nq(t,e){if(t.type!=="transaction"||!t.spans?.length||!t.sdkProcessingMetadata?.hasGenAiSpans||!e.getOptions().streamGenAiSpans||bU(e))return;const r=[],n=[];for(const a of t.spans)a.op?.startsWith("gen_ai.")?r.push(rq(a)):n.push(a);if(r.length===0)return;t.spans=n;const o=e.getOptions().sendDefaultPii?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...Eb()&&{ingest_settings:{infer_ip:o,infer_user_agent:o}},items:r}]}function x8(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}const Tb=Symbol.for("SentryBufferFullError");function Ob(t=100){const e=new Set;function r(){return e.sizen(l),()=>n(l)),l}function a(s){if(!e.size)return cd(!0);const l=Promise.allSettled(Array.from(e)).then(()=>!0);if(!s)return l;const u=[l,new Promise(f=>x8(setTimeout(()=>f(!1),s)))];return Promise.race(u)}return{get $(){return Array.from(e)},add:o,drain:a}}const oq=60*1e3;function aq(t,e=yh()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?oq:n-e}function iq(t,e){return t[e]||t.all||0}function sq(t,e,r=yh()){return iq(t,e)>r}function cq(t,{statusCode:e,headers:r},n=yh()){const o={...t},a=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(a)for(const l of a.trim().split(",")){const[u,f,,,h]=l.split(":",5),d=parseInt(u,10),m=(isNaN(d)?60:d)*1e3;if(!f)o.all=n+m;else for(const y of f.split(";"))y==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(o[y]=n+m):o[y]=n+m}else s?o.all=n+aq(s,n):e===429&&(o.all=n+60*1e3);return o}const k8=64;function lq(t,e,r=Ob(t.bufferSize||k8)){let n={};const o=s=>r.drain(s);function a(s){const l=[];if(r1(s,(d,m)=>{const y=D3(m);sq(n,y)?t.recordDroppedEvent("ratelimit_backoff",y):l.push(d)}),l.length===0)return Promise.resolve({});const u=Jc(s[0],l),f=d=>{if(dU(u,["client_report"])){at&&et.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}r1(u,(m,y)=>{t.recordDroppedEvent(d,D3(y))})},h=()=>e({body:pU(u)}).then(d=>d.statusCode===413?(at&&et.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),f("send_error"),d):(at&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&et.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=cq(n,d),d),d=>{throw f("network_error"),at&&et.error("Encountered error running transport request:",d),d});return r.add(h).then(d=>d,d=>{if(d===Tb)return at&&et.error("Skipped sending event because buffer is full."),f("queue_overflow"),Promise.resolve({});throw d})}return{send:a,flush:o}}function uq(t,e,r){const n=[{type:"client_report"},{timestamp:ad(),discarded_events:t}];return Jc(e?{dsn:e}:{},[n])}function C8(t){const e=[];t.message&&e.push(t.message);try{const r=t.exception.values[t.exception.values.length-1];r?.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`))}catch{}return e}function dq(t){const{trace_id:e,parent_span_id:r,span_id:n,status:o,origin:a,data:s,op:l}=t.contexts?.trace??{};return{data:s??{},description:t.transaction,op:l,parent_span_id:r,span_id:n??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:e??"",origin:a,profile_id:s?.[o8],exclusive_time:s?.[a8],measurements:t.measurements,is_segment:!0}}function pq(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[o8]:t.profile_id},...t.exclusive_time&&{[a8]:t.exclusive_time}}}},measurements:t.measurements}}const L3="Not capturing exception because it's already been captured.",F3="Discarded session because of missing or non-string release",$8=Symbol.for("SentryInternalError"),E8=Symbol.for("SentryDoNotSendEventError"),fq=5e3;function sf(t){return{message:t,[$8]:!0}}function K_(t){return{message:t,[E8]:!0}}function B3(t){return!!t&&typeof t=="object"&&$8 in t}function W3(t){return!!t&&typeof t=="object"&&E8 in t}function U3(t,e,r,n,o){let a=0,s,l=!1;t.on(r,()=>{a=0,clearTimeout(s),l=!1}),t.on(e,u=>{a+=n(u),a>=8e5?o(t):l||(l=!0,s=x8(setTimeout(()=>{o(t)},fq)))}),t.on("flush",()=>{o(t)})}class hq{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ob(e.transportOptions?.bufferSize??k8),e.dsn?this._dsn=IW(e.dsn):at&&et.warn("No DSN provided, client will not send events."),this._dsn){const n=WU(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&U3(this,"afterCaptureLog","flushLogs",yq,a1),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&U3(this,"afterCaptureMetric","flushMetrics",gq,w8)}captureException(e,r,n){const o=Wn();if(f3(e))return at&&et.log(L3),o;const a={event_id:o,...r};return this._process(()=>this.eventFromException(e,a).then(s=>this._captureEvent(s,a,n)).then(s=>s),"error"),a.event_id}captureMessage(e,r,n,o){const a={event_id:Wn(),...n},s=bb(e)?e:String(e),l=mh(e),u=l?this.eventFromMessage(s,r,a):this.eventFromException(e,a);return this._process(()=>u.then(f=>this._captureEvent(f,a,o)),l?"unknown":"error"),a.event_id}captureEvent(e,r,n){const o=Wn();if(r?.originalException&&f3(r.originalException))return at&&et.log(L3),o;const a={event_id:o,...r},s=e.sdkProcessingMetadata||{},l=s.capturedSpanScope,u=s.capturedSpanIsolationScope,f=q3(e.type);return this._process(()=>this._captureEvent(e,a,l||n,u),f),a.event_id}captureSession(e){this.sendSession(e),zc(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const r=this._transport;if(this.emit("flush"),!r)return!0;const n=await this._isClientDoneProcessing(e),o=await r.flush(e);return n&&o}async close(e){a1(this);const r=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),r}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const r=this._integrations[e.name];!r&&e.beforeSetup&&e.beforeSetup(this),v8(this,e,this._integrations),r||z3(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);const n=nq(e,this);let o=vU(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])o=O3(o,hU(a));n&&(o=O3(o,n)),this.sendEnvelope(o).then(a=>this.emit("afterSendEvent",e,a))}sendSession(e){const{release:r,environment:n=Cb}=this._options;if("aggregates"in e){const a=e.attrs||{};if(!a.release&&!r){at&&et.warn(F3);return}a.release=a.release||r,a.environment=a.environment||n,e.attrs=a}else{if(!e.release&&!r){at&&et.warn(F3);return}e.release=e.release||r,e.environment=e.environment||n}this.emit("beforeSendSession",e);const o=yU(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(e,r,n=1){if(this._options.sendClientReports){const o=`${e}:${r}`;at&&et.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(e,r){const n=this._hooks[e]=this._hooks[e]||new Set,o=(...a)=>r(...a);return n.add(o),()=>{n.delete(o)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(o=>o(...r))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(r){return at&&et.error("Error while sending envelope:",r),{}}return at&&et.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=HU(this,e),z3(this,e)}_updateSessionFromEvent(e,r){let n=r.level==="fatal",o=!1;const a=r.exception?.values;if(a){o=!0,n=!1;for(const u of a)if(u.mechanism?.handled===!1){n=!0;break}}const s=e.status==="ok";(s&&e.errors===0||s&&n)&&(zc(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let r=0;for(;!e||rsetTimeout(n,1)),!this._numProcessing)return!0;r++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n,o){const a=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&s?.length&&(r.integrations=s),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),DU(a,e,r,n,this,o).then(l=>{if(l===null)return l;this.emit("postprocessEvent",l,r),l.contexts={trace:{...l.contexts?.trace,...mW(n)},...l.contexts};const u=QW(this,n);return l.sdkProcessingMetadata={dynamicSamplingContext:u,...l.sdkProcessingMetadata},l})}_captureEvent(e,r={},n=Fo(),o=ns()){return at&&i1(e)&&et.log(`Captured error event \`${C8(e)[0]||""}\``),this._processEvent(e,r,n,o).then(a=>a.event_id,a=>{at&&(W3(a)?et.log(a.message):B3(a)?et.warn(a.message):et.warn(a))})}_processEvent(e,r,n,o){const a=this.getOptions(),{sampleRate:s}=a,l=T8(e),u=i1(e),h=`before send for type \`${e.type||"error"}\``,d=typeof s>"u"?void 0:jW(s);if(u&&typeof d=="number"&&Ef()>d)return this.recordDroppedEvent("sample_rate","error"),$b(K_(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const m=q3(e.type);return this._prepareEvent(e,r,n,o).then(y=>{if(y===null)throw this.recordDroppedEvent("event_processor",m),K_("An event processor returned `null`, will not send event.");if(r.data?.__sentry__===!0)return y;const b=_q(this,a,y,r);return mq(b,h)}).then(y=>{if(y===null){if(this.recordDroppedEvent("before_send",m),l){const C=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",C)}throw K_(`${h} returned \`null\`, will not send event.`)}const v=n.getSession()||o.getSession();if(u&&v&&this._updateSessionFromEvent(v,y),l){const x=y.sdkProcessingMetadata?.spanCountBeforeProcessing||0,C=y.spans?y.spans.length:0,D=x-C;D>0&&this.recordDroppedEvent("before_send","span",D)}const b=y.transaction_info;if(l&&b&&y.transaction!==e.transaction){const x="custom";y.transaction_info={...b,source:x}}return this.sendEvent(y,r),y}).then(null,y=>{throw W3(y)||B3(y)?y:(this.captureException(y,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:y}),sf(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${y}`))})}_process(e,r){this._numProcessing++,this._promiseBuffer.add(e).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===Tb&&this.recordDroppedEvent("queue_overflow",r),n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[o,a]=r.split(":");return{reason:o,category:a,quantity:n}})}_flushOutcomes(){at&&et.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){at&&et.log("No outcomes to send");return}if(!this._dsn){at&&et.log("No dsn provided, will not send outcomes");return}at&&et.log("Sending outcomes:",e);const r=uq(e,this._options.tunnel&&sd(this._dsn));this.sendEnvelope(r)}}function q3(t){return t==="replay_event"?"replay":t||"error"}function mq(t,e){const r=`${e} must return \`null\` or a valid event.`;if(nd(t))return t.then(n=>{if(!Pu(n)&&n!==null)throw sf(r);return n},n=>{throw sf(`${e} rejected with ${n}`)});if(!Pu(t)&&t!==null)throw sf(r);return t}function _q(t,e,r,n){const{beforeSend:o,beforeSendTransaction:a,ignoreSpans:s}=e,l=!tU(e.beforeSendSpan)&&e.beforeSendSpan;let u=r;if(i1(u)&&o)return o(u,n);if(T8(u)){if(l||s){const f=dq(u);if(s?.length&&T3({description:f.description,op:f.op,attributes:f.data},s))return null;if(l){const h=l(f);h?u=id(r,pq(h)):$3()}if(u.spans){const h=[],d=u.spans;for(const y of d){if(s?.length&&T3({description:y.description,op:y.op,attributes:y.data},s)){YW(d,y);continue}if(l){const v=l(y);v?h.push(v):($3(),h.push(y))}else h.push(y)}const m=u.spans.length-h.length;m&&t.recordDroppedEvent("before_send","span",m),u.spans=h}}if(a){if(u.spans){const f=u.spans.length;u.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:f}}return a(u,n)}}return u}function i1(t){return t.type===void 0}function T8(t){return t.type==="transaction"}function gq(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+O8(t.attributes)}function yq(t){let e=0;return t.message&&(e+=t.message.length*2),e+O8(t.attributes)}function O8(t){if(!t)return 0;let e=0;return Object.values(t).forEach(r=>{Array.isArray(r)?e+=r.length*H3(r[0]):mh(r)?e+=H3(r):e+=100}),e}function H3(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function vq(t,e){e.debug===!0&&(at?et.enable():Gc(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Fo().update(e.initialScope);const n=new t(e);return bq(n),n.init(),n}function bq(t){Fo().setClient(t)}function wq(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function Sq(t,e,r=[e],n="npm"){const o=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${e}`,o.packages=r.map(a=>({name:`${n}:@sentry/${a}`,version:qi})),o.version=qi)}const xq=100;function Xi(t,e){const r=qr(),n=ns();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=xq}=r.getOptions();if(a<=0)return;const l={timestamp:ad(),...t},u=o?Gc(()=>o(l,e)):l;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,a))}let V3;const kq="FunctionToString",G3=new WeakMap,Cq=(()=>({name:kq,setupOnce(){V3=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=xb(this),r=G3.has(qr())&&e!==void 0?e:this;return V3.apply(r,t)}}catch{}},setup(t){G3.set(t,!0)}})),$q=Cq,Eq=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Tq="EventFilters",Oq=(t={})=>{let e;return{name:Tq,setup(r){const n=r.getOptions();e=X3(t,n)},processEvent(r,n,o){if(!e){const a=o.getOptions();e=X3(t,a)}return Rq(r,e)?null:r}}},Dq=((t={})=>({...Oq(t),name:"InboundFilters"}));function X3(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Eq],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Rq(t,e){if(t.type){if(t.type==="transaction"&&Aq(t,e.ignoreTransactions))return at&&et.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${Ii(t)}`),!0}else{if(Mq(t,e.ignoreErrors))return at&&et.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${Ii(t)}`),!0;if(jq(t))return at&&et.warn(`Event dropped due to not having an error message, error type or stacktrace. +Event: ${Ii(t)}`),!0;if(Nq(t,e.denyUrls))return at&&et.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${Ii(t)}. +Url: ${Tf(t)}`),!0;if(!Pq(t,e.allowUrls))return at&&et.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${Ii(t)}. +Url: ${Tf(t)}`),!0}return!1}function Mq(t,e){return e?.length?C8(t).some(r=>od(r,e)):!1}function Aq(t,e){if(!e?.length)return!1;const r=t.transaction;return r?od(r,e):!1}function Nq(t,e){if(!e?.length)return!1;const r=Tf(t);return r?od(r,e):!1}function Pq(t,e){if(!e?.length)return!0;const r=Tf(t);return r?od(r,e):!0}function Iq(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function Tf(t){try{const r=[...t.exception?.values??[]].reverse().find(n=>n.mechanism?.parent_id===void 0&&n.stacktrace?.frames?.length)?.stacktrace?.frames;return r?Iq(r):null}catch{return at&&et.error(`Cannot extract url for event ${Ii(t)}`),null}}function jq(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function zq(t,e,r,n,o,a){if(!o.exception?.values||!a||!Qa(a.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=s1(t,e,n,a.originalException,r,o.exception.values,s,0))}function s1(t,e,r,n,o,a,s,l){if(a.length>=r+1)return a;let u=[...a];if(Qa(n[o],Error)){J3(s,l,n);const f=t(e,n[o]),h=u.length;Y3(f,o,h,l),u=s1(t,e,r,n[o],o,[f,...u],f,h)}return D8(n)&&n.errors.forEach((f,h)=>{if(Qa(f,Error)){J3(s,l,n);const d=t(e,f),m=u.length;Y3(d,`errors[${h}]`,m,l),u=s1(t,e,r,f,o,[d,...u],d,m)}}),u}function D8(t){return Array.isArray(t.errors)}function J3(t,e,r){t.mechanism={handled:!0,type:"auto.core.linked_errors",...D8(r)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function Y3(t,e,r,n){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function Lq(t){return hh(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function K3(t){return Lq(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}const Z3=new Set([]);function Fq(t){const e="console",r=ts(e,t);return rs(e,Bq),r}function Bq(){"console"in Dt&&EB.forEach(function(t){t in Dt.console&&xn(Dt.console,t,function(e){return $f[t]=e,function(...r){const n=r[0],o=$f[t],a=Z3.size&&typeof n=="string"&&od(n,Z3);a||io("console",{args:r,level:t}),(!a||at&&et.isEnabled())&&o?.apply(Dt.console,r)}})})}function Wq(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Uq="Dedupe",qq=(()=>{let t;return{name:Uq,processEvent(e){if(e.type)return e;try{if(Hq(e,t))return at&&et.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}}),R8=qq;function Hq(t,e){return e?!!(Vq(t,e)||Gq(t,e)):!1}function Vq(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!A8(t,e)||!M8(t,e))}function Gq(t,e){const r=Q3(e),n=Q3(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!A8(t,e)||!M8(t,e))}function M8(t,e){let r=s3(t),n=s3(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o({name:Xq,setup(t){t.on("spanStart",e=>{const r=Fo().getScopeData(),n=ns().getScopeData(),o=r.conversationId||n.conversationId;if(o){const{op:a,data:s,description:l}=vh(e);if(!a?.startsWith("gen_ai.")&&!s["ai.operationId"]&&!l?.startsWith("ai."))return;e.setAttribute(wW,o)}})}})),Yq=Jq;function N8(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const ju=Dt;function Kq(){return"history"in ju&&!!ju.history}function Zq(){if(!("fetch"in ju))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function c1(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Qq(){if(typeof EdgeRuntime=="string")return!0;if(!Zq())return!1;if(c1(ju.fetch))return!0;let t=!1;const e=ju.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow?.fetch&&(t=c1(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){at&&et.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function eH(t,e){const r="fetch",n=ts(r,t);return rs(r,()=>tH(void 0,e)),n}function tH(t,e=!1){e&&!Qq()||xn(Dt,"fetch",function(r){return function(...n){const o=new Error,{method:a,url:s}=rH(n),l={args:n,fetchData:{method:a,url:s},startTimestamp:la()*1e3,virtualError:o,headers:nH(n)};return io("fetch",{...l}),r.apply(Dt,n).then(async u=>(io("fetch",{...l,endTimestamp:la()*1e3,response:u}),u),u=>{io("fetch",{...l,endTimestamp:la()*1e3,error:u}),hh(u)&&u.stack===void 0&&(u.stack=o.stack,ei(u,"framesToPop",1));const h=qr()?.getOptions().enhanceFetchErrorMessages??"always";if(h!==!1&&u instanceof TypeError&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const y=new URL(l.fetchData.url).host;h==="always"?u.message=`${u.message} (${y})`:ei(u,"__sentry_fetch_url_host__",y)}catch{}throw u})}})}function cf(t,e){return!!t&&typeof t=="object"&&!!t[e]}function e4(t){return typeof t=="string"?t:t?cf(t,"url")?t.url:t.toString?t.toString():"":""}function rH(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:e4(r),method:cf(n,"method")?String(n.method).toUpperCase():YT(r)&&cf(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:e4(e),method:cf(e,"method")?String(e.method).toUpperCase():"GET"}}function nH(t){const[e,r]=t;try{if(typeof r=="object"&&r!==null&&"headers"in r&&r.headers)return new Headers(r.headers);if(YT(e))return new Headers(e.headers)}catch{}}const qt=Dt;let l1=0;function P8(){return l1>0}function oH(){l1++,setTimeout(()=>{l1--})}function Fc(t,e={}){function r(o){return typeof o=="function"}if(!r(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(xb(t))return t}catch{return t}const n=function(...o){try{const a=o.map(s=>Fc(s,e));return t.apply(this,a)}catch(a){throw oH(),hW(s=>{s.addEventProcessor(l=>(e.mechanism&&(Qv(l,void 0),jc(l,e.mechanism)),l.extra={...l.extra,arguments:o},l)),jU(a)}),a}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}ZT(n,t),ei(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}function t4(){const t=Sb(),{referrer:e}=qt.document||{},{userAgent:r}=qt.navigator||{},n={...e&&{Referer:e},...r&&{"User-Agent":r}};return{url:t,headers:n}}function Db(t,e){const r=Rb(t,e),n={type:lH(e),value:uH(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function aH(t,e,r,n){const a=qr()?.getOptions().normalizeDepth,s=mH(e),l={__serialized__:d8(e,a)};if(s)return{exception:{values:[Db(t,s)]},extra:l};const u={exception:{values:[{type:_h(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:fH(e,{isUnhandledRejection:n})}]},extra:l};if(r){const f=Rb(t,r);f.length&&(u.exception.values[0].stacktrace={frames:f})}return u}function Z_(t,e){return{exception:{values:[Db(t,e)]}}}function Rb(t,e){const r=e.stacktrace||e.stack||"",n=sH(e),o=cH(e);try{return t(r,n,o)}catch{}return[]}const iH=/Minified React error #\d+;/i;function sH(t){return t&&iH.test(t.message)?1:0}function cH(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function I8(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function lH(t){const e=t?.name;return!e&&I8(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function uH(t){const e=t?.message;return I8(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?K3(e.error):K3(t):"No error message"}function dH(t,e,r,n){const o=r?.syntheticException||void 0,a=Mb(t,e,o,n);return jc(a),a.level="error",r?.event_id&&(a.event_id=r.event_id),cd(a)}function pH(t,e,r="info",n,o){const a=n?.syntheticException||void 0,s=u1(t,e,a,o);return s.level=r,n?.event_id&&(s.event_id=n.event_id),cd(s)}function Mb(t,e,r,n,o){let a;if(XT(e)&&e.error)return Z_(t,e.error);if(l3(e)||FB(e)){const s=e;if("stack"in e)a=Z_(t,e);else{const l=s.name||(l3(s)?"DOMError":"DOMException"),u=s.message?`${l}: ${s.message}`:l;a=u1(t,u,r,n),Qv(a,u)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return hh(e)?Z_(t,e):Pu(e)||_h(e)?(a=aH(t,e,r,o),jc(a,{synthetic:!0}),a):(a=u1(t,e,r,n),Qv(a,`${e}`),jc(a,{synthetic:!0}),a)}function u1(t,e,r,n){const o={};if(n&&r){const a=Rb(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]}),jc(o,{synthetic:!0})}if(bb(e)){const{__sentry_template_string__:a,__sentry_template_values__:s}=e;return o.logentry={message:a,params:s},o}return o.message=e,o}function fH(t,{isUnhandledRejection:e}){const r=GB(t),n=e?"promise rejection":"exception";return XT(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:_h(t)?`Event \`${hH(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function hH(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function mH(t){return Object.values(t).find(e=>e instanceof Error)}class _H extends hq{constructor(e){const r=gH(e),n=qt.SENTRY_SDK_SOURCE||GU();Sq(r,"browser",["browser"],n),r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:r.sendDefaultPii?"auto":"never",...r._metadata.sdk.settings}),super(r);const{sendDefaultPii:o,sendClientReports:a,enableLogs:s,_experiments:l,enableMetrics:u}=this._options,f=u??l?.enableMetrics??!0;qt.document&&(a||s||f)&&qt.document.addEventListener("visibilitychange",()=>{qt.document.visibilityState==="hidden"&&(a&&this._flushOutcomes(),s&&a1(this),f&&w8(this))}),o&&this.on("beforeSendSession",wq)}eventFromException(e,r){return dH(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return pH(this._options.stackParser,e,r,n,this._options.attachStacktrace)}_prepareEvent(e,r,n,o){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n,o)}}function gH(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:qt.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const yH=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Xr=Dt,vH=1e3;let r4,d1,p1;function bH(t){ts("dom",t),rs("dom",wH)}function wH(){if(!Xr.document)return;const t=io.bind(null,"dom"),e=n4(t,!0);Xr.document.addEventListener("click",e,!1),Xr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const o=Xr[r]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(xn(o,"addEventListener",function(a){return function(s,l,u){if(s==="click"||s=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},h=f[s]=f[s]||{refCount:0};if(!h.handler){const d=n4(t);h.handler=d,a.call(this,s,d,u)}h.refCount++}catch{}return a.call(this,s,l,u)}}),xn(o,"removeEventListener",function(a){return function(s,l,u){if(s==="click"||s=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},h=f[s];h&&(h.refCount--,h.refCount<=0&&(a.call(this,s,h.handler,u),h.handler=void 0,delete f[s]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,s,l,u)}}))})}function SH(t){if(t.type!==d1)return!1;try{if(!t.target||t.target._sentryId!==p1)return!1}catch{}return!0}function xH(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function n4(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=kH(r);if(xH(r.type,n))return;ei(r,"_sentryCaptured",!0),n&&!n._sentryId&&ei(n,"_sentryId",Wn());const o=r.type==="keypress"?"input":r.type;SH(r)||(t({event:r,name:o,global:e}),d1=r.type,p1=n?n._sentryId:void 0),clearTimeout(r4),r4=Xr.setTimeout(()=>{p1=void 0,d1=void 0},vH)}}function kH(t){try{return t.target}catch{return null}}let jp;function j8(t){const e="history";ts(e,t),rs(e,CH)}function CH(){if(Xr.addEventListener("popstate",()=>{const e=Xr.location.href,r=jp;if(jp=e,r===e)return;io("history",{from:r,to:e})}),!Kq())return;function t(e){return function(...r){const n=r.length>2?r[2]:void 0;if(n){const o=jp,a=$H(String(n));if(jp=a,o===a)return e.apply(this,r);io("history",{from:o,to:a})}return e.apply(this,r)}}xn(Xr.history,"pushState",t),xn(Xr.history,"replaceState",t)}function $H(t){try{return new URL(t,Xr.location.origin).toString()}catch{return t}}const lf={};function EH(t){const e=lf[t];if(e)return e;let r=Xr[t];if(c1(r))return lf[t]=r.bind(Xr);const n=Xr.document;if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a?.[t]&&(r=a[t]),n.head.removeChild(o)}catch(o){yH&&et.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return r&&(lf[t]=r.bind(Xr))}function TH(t){lf[t]=void 0}const iu="__sentry_xhr_v3__";function OH(t){ts("xhr",t),rs("xhr",DH)}function DH(){if(!Xr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const o=new Error,a=la()*1e3,s=ca(n[0])?n[0].toUpperCase():void 0,l=RH(n[1]);if(!s||!l)return e.apply(r,n);r[iu]={method:s,url:l,request_headers:{}},s==="POST"&&l.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const u=()=>{const f=r[iu];if(f&&r.readyState===4){try{f.status_code=r.status}catch{}const h={endTimestamp:la()*1e3,startTimestamp:a,xhr:r,virtualError:o};io("xhr",h)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(f,h,d){return u(),f.apply(h,d)}}):r.addEventListener("readystatechange",u),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(f,h,d){const[m,y]=d,v=h[iu];return v&&ca(m)&&ca(y)&&(v.request_headers[m.toLowerCase()]=y),f.apply(h,d)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const o=r[iu];if(!o)return e.apply(r,n);n[0]!==void 0&&(o.body=n[0]);const a={startTimestamp:la()*1e3,xhr:r};return io("xhr",a),e.apply(r,n)}})}function RH(t){if(ca(t))return t;try{return t.toString()}catch{}}const MH=40;function AH(t,e=EH("fetch")){let r=0,n=0;async function o(a){const s=a.body.length;r+=s,n++;const l={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};try{const u=await e(t.url,l);return{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}}catch(u){throw TH("fetch"),u}finally{r-=s,n--}}return lq(t,o,Ob(t.bufferSize||MH))}const bh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,NH=30,PH=50;function f1(t,e,r,n){const o={filename:t,function:e===""?Gi:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}const IH=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,jH=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,zH=/\((\S*)(?::(\d+))(?::(\d+))\)/,LH=/at (.+?) ?\(data:(.+?),/,FH=t=>{const e=t.match(LH);if(e)return{filename:``,function:e[1]};const r=IH.exec(t);if(r){const[,o,a,s]=r;return f1(o,Gi,+a,+s)}const n=jH.exec(t);if(n){if(n[2]?.indexOf("eval")===0){const l=zH.exec(n[2]);l&&(n[2]=l[1],n[3]=l[2],n[4]=l[3])}const[a,s]=z8(n[1]||Gi,n[2]);return f1(s,a,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},BH=[NH,FH],WH=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,UH=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,qH=t=>{const e=WH.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=UH.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||Gi;return[o,n]=z8(o,n),f1(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},HH=[PH,qH],VH=[BH,HH],GH=HT(...VH),z8=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:Gi,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},zp=1024,XH="Breadcrumbs",JH=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:XH,setup(r){e.console&&Fq(QH(r)),e.dom&&bH(ZH(r,e.dom)),e.xhr&&OH(eV(r)),e.fetch&&eH(tV(r)),e.history&&j8(rV(r)),e.sentry&&r.on("beforeSendEvent",KH(r))}}}),YH=JH;function KH(t){return function(r){qr()===t&&Xi({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Ii(r)},{event:r})}}function ZH(t,e){return function(n){if(qr()!==t)return;let o,a,s=typeof e=="object"?e.serializeAttribute:void 0,l=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;l&&l>zp&&(bh&&et.warn(`\`dom.maxStringLength\` cannot exceed ${zp}, but a value of ${l} was configured. Sentry will use ${zp} instead.`),l=zp),typeof s=="string"&&(s=[s]);try{const f=n.event,h=nV(f)?f.target:f;o=KT(h,{keyAttrs:s,maxStringLength:l}),a=VB(h)}catch{o=""}if(o.length===0)return;const u={category:`ui.${n.name}`,message:o};a&&(u.data={"ui.component_name":a}),Xi(u,{event:n.event,name:n.name,global:n.global})}}function QH(t){return function(r){if(qr()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:Wq(r.level),message:p3(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${p3(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Xi(n,{input:r.args,level:r.level})}}function eV(t){return function(r){if(qr()!==t)return;const{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[iu];if(!n||!o||!a)return;const{method:s,url:l,status_code:u,body:f}=a,h={method:s,url:l,status_code:u},d={xhr:r.xhr,input:f,startTimestamp:n,endTimestamp:o},m={category:"xhr",data:h,type:"http",level:N8(u)};t.emit("beforeOutgoingRequestBreadcrumb",m,d),Xi(m,d)}}function tV(t){return function(r){if(qr()!==t)return;const{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o},s={category:"fetch",data:r.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",s,a),Xi(s,a)}else{const a=r.response,s={...r.fetchData,status_code:a?.status},l={input:r.args,response:a,startTimestamp:n,endTimestamp:o},u={category:"fetch",data:s,type:"http",level:N8(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",u,l),Xi(u,l)}}}function rV(t){return function(r){if(qr()!==t)return;let n=r.from,o=r.to;const a=X_(qt.location.href);let s=n?X_(n):void 0;const l=X_(o);s?.path||(s=a),a.protocol===l.protocol&&a.host===l.host&&(o=l.relative),a.protocol===s.protocol&&a.host===s.host&&(n=s.relative),Xi({category:"navigation",data:{from:n,to:o}})}}function nV(t){return!!t&&!!t.target}const oV="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),aV="BrowserApiErrors",iV=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:aV,setupOnce(){e.setTimeout&&xn(qt,"setTimeout",o4),e.setInterval&&xn(qt,"setInterval",o4),e.requestAnimationFrame&&xn(qt,"requestAnimationFrame",cV),e.XMLHttpRequest&&"XMLHttpRequest"in qt&&xn(XMLHttpRequest.prototype,"send",lV);const r=e.eventTarget;r&&(Array.isArray(r)?r:oV).forEach(o=>uV(o,e))}}}),sV=iV;function o4(t){return function(...e){const r=e[0];return e[0]=Fc(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Za(t)}`}}),t.apply(this,e)}}function cV(t){return function(e){return t.apply(this,[Fc(e,{mechanism:{data:{handler:Za(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function lV(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&xn(r,o,function(a){const s={mechanism:{data:{handler:Za(a)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},l=xb(a);return l&&(s.mechanism.data.handler=Za(l)),Fc(a,s)})}),t.apply(this,e)}}function uV(t,e){const n=qt[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(xn(n,"addEventListener",function(o){return function(a,s,l){try{dV(s)&&(s.handleEvent=Fc(s.handleEvent,{mechanism:{data:{handler:Za(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&pV(this,a,s),o.apply(this,[a,Fc(s,{mechanism:{data:{handler:Za(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),l])}}),xn(n,"removeEventListener",function(o){return function(a,s,l){try{const u=s.__sentry_wrapped__;u&&o.call(this,a,u,l)}catch{}return o.call(this,a,s,l)}}))}function dV(t){return typeof t.handleEvent=="function"}function pV(t,e,r){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,r)}const fV=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof qt.document>"u"){bh&&et.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}I3({ignoreDuration:!0}),Y_();const r=ns();let n=r.getUser();r.addScopeListener(o=>{const a=o.getUser();(n?.id!==a?.id||n?.ip_address!==a?.ip_address)&&(Y_(),n=a)}),e==="route"&&j8(({from:o,to:a})=>{o!==a&&(I3({ignoreDuration:!0}),Y_())})}}},hV="CultureContext",mV=(()=>({name:hV,preprocessEvent(t){const e=a4();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})},processSegmentSpan(t){const e=a4();e&&m8(t,{"culture.locale":e.locale,"culture.timezone":e.timezone,"culture.calendar":e.calendar})}})),_V=mV;function a4(){try{const t=qt.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const gV="GlobalHandlers",yV=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:gV,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(bV(r),i4("onerror")),e.onunhandledrejection&&(wV(r),i4("onunhandledrejection"))}}}),vV=yV;function bV(t){IB(e=>{const{stackParser:r,attachStacktrace:n}=L8();if(qr()!==t||P8())return;const{msg:o,url:a,line:s,column:l,error:u}=e,f=kV(Mb(r,u||o,void 0,n,!1),a,s,l);f.level="error",_8(f,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function wV(t){zB(e=>{const{stackParser:r,attachStacktrace:n}=L8();if(qr()!==t||P8())return;const o=SV(e),a=mh(o)?xV(o):Mb(r,o,void 0,n,!0);a.level="error",_8(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function SV(t){if(mh(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function xV(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function kV(t,e,r,n){const o=t.exception=t.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[];return u.length===0&&u.push({colno:n,lineno:r,filename:CV(e)??Sb(),function:Gi,in_app:!0}),t}function i4(t){bh&&et.log(`Global Handler attached: ${t}`)}function L8(){return qr()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function CV(t){if(!(!ca(t)||t.length===0))return t.startsWith("data:")?`<${EU(t,!1)}>`:t}const $V=()=>({name:"HttpContext",preprocessEvent(t){if(!qt.navigator&&!qt.location&&!qt.document)return;const e=t4(),r={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:r}},processSegmentSpan(t){if(!qt.navigator&&!qt.location&&!qt.document)return;const e=t4();m8(t,{"url.full":e.url||void 0,"http.request.header.user_agent":e.headers["User-Agent"],"http.request.header.referer":e.headers.Referer})}}),EV="cause",TV=5,OV="LinkedErrors",DV=((t={})=>{const e=t.limit||TV,r=t.key||EV;return{name:OV,preprocessEvent(n,o,a){const s=a.getOptions();zq(Db,s.stackParser,r,e,n,o)}}}),RV=DV;function MV(){return AV()?(bh&&Gc(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function AV(){if(typeof qt.window>"u")return!1;const t=qt;if(t.nw||!(t.chrome||t.browser)?.runtime?.id)return!1;const r=Sb();return!(qt===qt.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}function NV(t){return[Dq(),$q(),Yq(),sV(),YH(),vV(),RV(),R8(),$V(),_V(),fV()]}function PV(t={}){const e=!t.skipBrowserExtensionCheck&&MV();let r=t.defaultIntegrations==null?NV():t.defaultIntegrations;const n={...t,enabled:e?!1:t.enabled,stackParser:NB(t.stackParser||GH),integrations:qU({integrations:t.integrations,defaultIntegrations:r}),transport:t.transport||AH};return vq(_H,n)}const IV=Ze(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddCircle"),jV=Ze(k.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),zV=Ze(k.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),LV=Ze(k.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),FV=Ze(k.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),F8=Ze(k.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),BV=Ze(k.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),wh=Ze(k.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),li=Ze(k.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),ti=Ze(k.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ab=Ze(k.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),WV=Ze(k.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),UV=Ze(k.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),wu=Ze(k.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),B8=Ze(k.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),qV=Ze(k.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),HV=Ze(k.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),VV=Ze(k.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),GV=Ze(k.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),XV=Ze(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),JV=Ze(k.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),YV=Ze(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),W8=Ze(k.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),KV=Ze(k.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),ZV=Ze(k.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),QV=Ze(k.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),eG=Ze(k.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),tG=Ze(k.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),s4=Ze(k.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),rG=Ze(k.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),nG=Ze(k.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),h1=Ze(k.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),oG=Ze(k.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),aG=Ze(k.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"}),"Security"),iG=Ze(k.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),sG=Ze(k.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),cG=Ze(k.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),lG=Ze(k.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),uG=Ze(k.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),dG=Ze(k.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),pG=Ze(k.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),fG=Ze(k.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),hG=Ze(k.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");function mG(){console.log(` +██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗ +██║██╔═══██╗██╔══██╗██╔══██╗██╔═══██╗██║ ██╔╝██╔════╝██╔══██╗ +██║██║ ██║██████╔╝██████╔╝██║ ██║█████╔╝ █████╗ ██████╔╝ +██║██║ ██║██╔══██╗██╔══██╗██║ ██║██╔═██╗ ██╔══╝ ██╔══██╗ +██║╚██████╔╝██████╔╝██║ ██║╚██████╔╝██║ ██╗███████╗██║ ██║ +╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ +`),console.log("Nice to see you here! :) Join our dev community here https://github.com/ioBroker/ioBroker or here https://github.com/iobroker-community-adapters"),console.log("Help us to create open source project with reactJS!"),console.log("See you :)")}function _G(t){const e=t.themeType||"light",r=t.size||300;return _.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:e==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("div",{style:{width:r,height:r,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",zIndex:2}},_.createElement("svg",{viewBox:"0 0 500 500",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%"},_.createElement("circle",{strokeWidth:"5",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"200"}),_.createElement("circle",{strokeWidth:"5",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"133"}),_.createElement("circle",{strokeWidth:"5",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"83"}),_.createElement("circle",{strokeWidth:"5",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"66"}),_.createElement("circle",{strokeWidth:"15",fill:"none",stroke:"#01BBF5",cx:"250",cy:"250",r:"15"}),_.createElement("g",null,_.createElement("line",{y2:"185",x2:"250",y1:"240",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"}),_.createElement("line",{y2:"315",x2:"250",y1:"260",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"}),_.createElement("g",{transform:"rotate(60, 250, 250)"},_.createElement("line",{y2:"185",x2:"250",y1:"240",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"}),_.createElement("line",{y2:"315",x2:"250",y1:"260",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"})),_.createElement("g",{transform:"rotate(120, 250, 250)"},_.createElement("line",{y2:"185",x2:"250",y1:"240",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"}),_.createElement("line",{y2:"315",x2:"250",y1:"260",x1:"250",strokeWidth:"5",stroke:"#01BBF5",fill:"none"})),[0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345].map(n=>_.createElement("line",{key:n,transform:`rotate(${n}, 250, 250)`,y2:"250",x2:"115",y1:"240",x1:"135",strokeWidth:"5",stroke:"#01BBF5",fill:"none"})),_.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 250 250",to:"360 250 250",dur:"10s",additive:"sum",repeatCount:"indefinite"})),_.createElement("path",{d:"M 56.089 160.250 C 55.077 162.588, 46.037 182.950, 36 205.500 C 25.963 228.050, 16.923 248.412, 15.911 250.750 L 14.071 255 28.286 254.976 L 42.500 254.952 47.931 242.226 C 50.918 235.227, 54.366 227.250, 55.592 224.500 L 57.822 219.500 66.383 237.250 L 74.945 255 88.973 255 C 96.688 255, 103 254.841, 103 254.646 C 103 254.452, 100.043 248.071, 96.430 240.466 L 89.859 226.638 91.603 222.771 C 92.563 220.644, 93.660 218.710, 94.043 218.473 C 94.426 218.237, 108.609 246.609, 125.562 281.522 L 156.384 345 166.071 345 C 175.705 345, 175.763 344.985, 176.856 342.250 C 179.911 334.602, 208 260.765, 208 260.383 C 208 260.138, 202.546 260.065, 195.879 260.219 L 183.759 260.500 174.629 285.244 C 169.608 298.853, 165.254 309.990, 164.952 309.994 C 164.651 309.997, 148.901 277.389, 129.952 237.532 C 111.004 197.674, 95.275 165.057, 95 165.049 C 94.725 165.041, 90.685 172.415, 86.022 181.435 C 81.358 190.455, 77.308 197.689, 77.022 197.510 C 76.735 197.331, 72.675 187.920, 68 176.598 C 63.325 165.275, 59.147 156.008, 58.714 156.005 C 58.282 156.002, 57.101 157.912, 56.089 160.250 M 55.294 168.694 C 52.241 175.842, 52.166 176.323, 53.718 178.692 L 55.349 181.182 56.706 178.591 C 57.453 177.166, 58.406 176, 58.825 176 C 59.244 176, 60.777 178.363, 62.232 181.250 C 64.829 186.403, 64.879 186.440, 64.939 183.250 C 64.973 181.463, 65.422 180, 65.937 180 C 66.724 180, 60.176 162.824, 58.920 161.596 C 58.689 161.370, 57.057 164.564, 55.294 168.694 M 91.698 175.542 C 89.205 180.626, 89.099 181.308, 90.410 183.792 L 91.840 186.500 92.926 183.669 C 94.349 179.961, 96.024 180.653, 98.588 186.009 L 100.676 190.370 101.324 187.132 C 101.832 184.592, 101.217 182.395, 98.473 176.947 C 96.549 173.126, 94.849 170, 94.696 170 C 94.542 170, 93.193 172.494, 91.698 175.542 M 157.005 192.607 C 143.168 197.636, 134.999 209.202, 135.001 223.761 C 135.002 232.756, 138.710 240.755, 145.856 247.180 C 152.159 252.848, 158.121 255, 167.518 255 C 173.509 255, 175.684 254.499, 180.811 251.936 C 200.823 241.936, 205.088 216.155, 189.337 200.403 C 181.479 192.546, 166.868 189.022, 157.005 192.607 M 206 223 L 206 255 215.472 255 L 224.944 255 225.222 241.419 L 225.500 227.837 230.500 234.660 C 233.250 238.412, 238.002 244.636, 241.060 248.491 L 246.620 255.500 253.810 255.168 L 261 254.836 261 222.918 L 261 191 251.528 191 L 242.056 191 241.778 204.552 L 241.500 218.104 231.111 204.552 L 220.722 191 213.361 191 L 206 191 206 223 M 285.821 192.331 C 276.229 195.045, 270.010 202.130, 270.004 210.349 C 269.995 221.957, 275.913 226.925, 295.801 232.006 C 300.753 233.271, 302.228 235.609, 299.412 237.730 C 296.739 239.746, 288.369 238.774, 281.563 235.657 L 276.132 233.171 272.469 239.320 C 268.119 246.621, 268.341 247.287, 276.524 251.500 C 281.399 254.010, 283.761 254.556, 290.977 254.842 C 302.365 255.294, 307.420 253.846, 312.603 248.649 C 317.383 243.855, 319.463 236.989, 318.043 230.693 C 316.210 222.562, 311.258 218.610, 297.878 214.599 C 288.025 211.645, 285.443 209.631, 288.538 207.315 C 291.104 205.394, 302.270 205.946, 306.769 208.217 L 310.039 209.866 313.104 203.794 C 316.516 197.035, 316.622 197.304, 309.167 193.844 C 303.663 191.289, 292.140 190.542, 285.821 192.331 M 322 199 L 322 207 330 207 L 338 207 338 231 L 338 255 347.500 255 L 357 255 357 231.044 L 357 207.088 364.250 206.794 L 371.500 206.500 371.792 198.750 L 372.084 191 347.042 191 L 322 191 322 199 M 379 223 L 379 255 401 255 L 423 255 423 247.500 L 423 240 409.500 240 L 396 240 396 235 L 396 230 407.500 230 L 419 230 419 222 L 419 214 407.500 214 L 396 214 396 210.529 L 396 207.058 409.250 206.779 L 422.500 206.500 422.792 198.750 L 423.084 191 401.042 191 L 379 191 379 223 M 433 223 L 433 255 442 255 L 451 255 451 247 L 451 239 454.800 239 C 458.555 239, 458.645 239.092, 462.469 246.937 L 466.339 254.874 476.172 255.187 C 481.580 255.359, 486.003 255.111, 486.002 254.636 C 486.001 254.160, 483.277 249.264, 479.949 243.754 C 473.914 233.765, 473.903 233.732, 475.836 231.619 C 480.222 226.824, 482.359 220.791, 482.431 213 C 482.512 204.192, 480.272 198.822, 475.031 195.260 C 469.795 191.703, 465.527 191.012, 448.750 191.006 L 433 191 433 223 M 448.210 213.250 L 448.500 221.500 455.338 221.500 C 461.319 221.500, 462.417 221.204, 464.088 219.139 C 465.995 216.785, 466.556 212.613, 465.379 209.545 C 464.356 206.879, 459.449 205, 453.509 205 L 447.919 205 448.210 213.250 M 163.169 209.017 C 156.337 210.583, 151.176 218.533, 152.339 225.701 C 154.672 240.077, 175.040 242.355, 180.446 228.844 C 184.978 217.516, 175.176 206.267, 163.169 209.017 M 216.676 271.715 C 216.037 272.750, 188 344.021, 188 344.612 C 188 344.863, 192.811 344.940, 198.691 344.784 L 209.381 344.500 211.894 336.750 L 214.406 329 226.550 329 L 238.694 329 242.097 336.992 L 245.500 344.983 255.250 344.992 C 262.399 344.998, 264.994 344.667, 264.979 343.750 C 264.968 343.063, 258.477 326.525, 250.555 307 L 236.150 271.500 226.656 271.215 C 221.434 271.058, 216.943 271.283, 216.676 271.715 M 273 307 C 273 326.800, 272.887 343.337, 272.750 343.750 C 272.613 344.163, 277.102 344.628, 282.727 344.785 L 292.954 345.069 293.227 327.379 L 293.500 309.689 307 327.336 L 320.500 344.982 328.262 344.991 L 336.025 345 335.762 308.250 L 335.500 271.500 326.750 271.211 L 318 270.922 317.882 286.711 C 317.816 295.395, 317.816 302.837, 317.882 303.250 C 317.947 303.663, 317.808 304, 317.574 304 C 317.340 304, 310.809 296.575, 303.060 287.500 L 288.971 271 280.985 271 L 273 271 273 307 M 223.254 303.048 L 220.078 312 226.539 312 C 230.093 312, 233 311.861, 233 311.691 C 233 311.257, 226.886 294.553, 226.636 294.302 C 226.522 294.189, 225.001 298.125, 223.254 303.048",stroke:"none",fill:t.themeType==="dark"?"#EEE":"#111",fillRule:"evenodd"}))))}function gG(t){const e=t.themeType||"dark",r=t.size||300;return _.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:e==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("div",{style:{width:r,height:r,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",zIndex:2}},_.createElement("svg",{viewBox:"0 0 2000 1728",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#00af78"}},_.createElement("style",null,` + @keyframes jump { + 0% { fill: #00af78; } + 25% { fill: #00af78; } + 25.01% { fill: #00785A; } + 100% { fill: #00785A; } + } + .bar { animation: jump 2s linear infinite; } + .bar.bar1 { animation-delay: 0s; } + .bar.bar2 { animation-delay: 0.5s; } + .bar.bar3 { animation-delay: 1s; } + .bar.bar4 { animation-delay: 1.5s; } + `),_.createElement("path",{d:"M944.5 76.5a852 852 0 0 1 129 6.5 598 598 0 0 1 51 9c19.36 5.344 38.69 10.677 58 16a834 834 0 0 1 117 52 698 698 0 0 1 95 69c2.67 2 5.33 2 8 0a410 410 0 0 1 37-28 18.4 18.4 0 0 1 6-.5q.495 10.51 4.5 20a3200 3200 0 0 0 18 73 3553 3553 0 0 0 19 66 48.8 48.8 0 0 0 2.5 11 4.94 4.94 0 0 1-1 2.5c-2.33.667-4.67.667-7 0a19 19 0 0 0-5-3 209 209 0 0 0-24-7 292 292 0 0 0-20-8c-8.68-2.341-17.34-4.674-26-7a221 221 0 0 0-21-8 337 337 0 0 1-34-11 1272 1272 0 0 1-43-13q-2.91-3.23-1.5-7.5a671 671 0 0 0 42.5-35l-1.5-3a289 289 0 0 0-21.5-18.5c-9.31-6.637-18.65-13.304-28-20a731 731 0 0 1-44-26 175 175 0 0 1-30-15 568 568 0 0 0-50-20 1038 1038 0 0 1-53-16 1070 1070 0 0 0-48-10 1087 1087 0 0 1-55-6 1379 1379 0 0 0-99 1 203.5 203.5 0 0 1-35 5Q629.152 192.558 494 414.5a132 132 0 0 1-10 17 1277 1277 0 0 0-21 43l-11 27a637 637 0 0 1-14 41 8191 8191 0 0 1-16 67 50.7 50.7 0 0 0-1 15 11.3 11.3 0 0 0 1.5 3.5 327 327 0 0 1 40 8q62.273 18.89 115 56 70.252 53.736 113.5 130.5 59.461 114.478 41 243c-.667 1.33-1.333 2.67-2 4a335 335 0 0 1-3 18 507 507 0 0 1-20 53 309 309 0 0 1-10 17c-1.699.91-3.533 1.24-5.5 1 .377-40.1-3.456-79.77-11.5-119l-3-6a154.4 154.4 0 0 0-7-27Q629.1 886.514 525.5 812a44.5 44.5 0 0 1-9.5-5.5l-1.5.5q69.98 79.772 110.5 177.5a684 684 0 0 1 21 74c.389 8.51 1.722 16.84 4 25q1.302 30.765 2.5 61.5-2.217 6.885.5 13.5l17.5 13.5a1597 1597 0 0 0 61 36 3333 3333 0 0 1 61 26q25.04 7.53 50 15a771 771 0 0 0 51 10 526.7 526.7 0 0 0 120 5c15.24-2.5 30.57-4.17 46-5 154.49-25.8 278.99-100.96 373.5-225.5 36-49.308 63.67-102.974 83-161 .29-5.821 1.96-11.154 5-16q7.2-33.086 15-66a343 343 0 0 1 4-30c-5.29 5.217-9.62 11.217-13 18-26.71 37.032-60.54 65.866-101.5 86.5a471 471 0 0 1-27 11 50.1 50.1 0 0 0-17 5q-13.77 1.158-27 5-33 2.977-66 0a153 153 0 0 0-29-5c-52.38-14.072-96.21-41.572-131.5-82.5q-58.935-72.777-58.5-167.5.345-16.269 1.5-32.5 10.89-72.278 57-128c66.33-75.505 149.5-104.339 249.5-86.5a700 700 0 0 1 48 16c4.24 2.853 8.57 5.52 13 8l6 2c20.5 12.068 38.84 26.735 55 44q2.37 1.06 4.5 2.5a442 442 0 0 0 25.5-24.5c2.59-1.601 5.26-1.767 8-.5a1168 1168 0 0 0 25.5 55 1221 1221 0 0 0 16 45c.41 6.057 2.08 11.724 5 17 .58 6.637 2.24 12.97 5 19a778 778 0 0 1 10 55c18.69 162.392-18.64 309.725-112 442-15.67 19-31.33 38-47 57-34.61 35.92-72.44 68.42-113.5 97.5q-16.53 10.545-33 21a516 516 0 0 1-35 18l-3 3c-14.49 6.96-29.16 13.63-44 20-26.02 9.5-52.35 18.17-79 26q-132.478 31.62-267 9a1979 1979 0 0 0-61-14 421 421 0 0 1-25-9c-3.333-.67-6.667-1.33-10-2-20.636-8.65-41.303-17.32-62-26-124.377-64.5-220.21-158.33-287.5-281.5a1010 1010 0 0 1-17-39l-3-4a395 395 0 0 0-15-41 374 374 0 0 1-11-36l-9-39a366 366 0 0 0-6-36 1642 1642 0 0 1-5.5-92.5q5.24-279.871 211-466 61.788-53.755 135-91a1492 1492 0 0 1 47-21l28-10 37-11a1956 1956 0 0 1 46-10 1145 1145 0 0 1 87-10.5m367 359c12.69-.014 25.35.486 38 1.5a399 399 0 0 1 39 10c56.18 22.509 95.34 62.009 117.5 118.5 21.9 63.822 14.57 123.822-22 180-20.98 28.71-47.15 51.21-78.5 67.5-37.69 16.585-77.02 21.585-118 15-69.62-14.983-118.78-54.816-147.5-119.5a284 284 0 0 1-11-39q-15.24-126.17 85.5-201.5c29.7-18.676 62.04-29.509 97-32.5"}),_.createElement("path",{d:"M899.5 258.5a2829 2829 0 0 0 135 0c5.33.53 10.66 1.03 16 1.5l1.5 1.5q.255 125.792 1.5 251.5c-.56 6.766-2.73 12.932-6.5 18.5a587 587 0 0 0-9.5 25.5 71.8 71.8 0 0 1-5.5 20.5 575 575 0 0 0-5.5 52.5 587 587 0 0 0 5.5 55.5 515 515 0 0 0 18.5 58.5c-.24.873-.57 1.707-1 2.5a4183 4183 0 0 1-152 .5 11.3 11.3 0 0 1-1.5-3.5 58052 58052 0 0 1 0-482 30 30 0 0 1 3.5-3"}),_.createElement("path",{d:"M717.5 423.5q71.002-.25 142 .5l1.5 1.5q.713 154.588.5 309 .27 6.043-2 11.5a2513 2513 0 0 1-141 1 6.98 6.98 0 0 1-3.5-2.5 37080 37080 0 0 1-1.5-314.5q-.099-4.63 4-6.5"}),_.createElement("path",{d:"M1360.5 487.5c2.13-.353 3.47.48 4 2.5-.74 4.181-1.57 8.348-2.5 12.5a13569 13569 0 0 1-34 102 27.2 27.2 0 0 0-1 8c1.33 1.838 3.16 2.838 5.5 3a937 937 0 0 1 86 0 4.95 4.95 0 0 1-.5 3 820 820 0 0 0-27 29q-50.445 59.205-100.5 119-5.535 6.54-12 12a3.6 3.6 0 0 1-1.5-1q-1.005-3 0-6a1048 1048 0 0 0 16-61c2.94-5.581 4.6-11.581 5-18l3-6a156.5 156.5 0 0 1 5-24 11.3 11.3 0 0 0-3.5-1.5l-90-1a3.6 3.6 0 0 1-1-1.5c49.72-57.045 99.38-114.045 149-171"},_.createElement("animate",{attributeName:"fill",values:`#00af78;${e==="dark"?"#ffffff":"#00785A"};#00af78`,dur:"2s",repeatCount:"indefinite"})),_.createElement("path",{className:"bar bar1",d:"M544.5 537.5q68.283-.426 136.5 1a2379 2379 0 0 1 1.5 96.5l-.5 92.5q-.918 3.798-4.5 2.5-50.249-64.14-122-103-8.75-1.76-14.5-8.5-1-39 0-78a30 30 0 0 1 3.5-3M721.5 777.5q60.628-.732 121 1.5 37.233 79.24 74.5 158.5 1 2 0 4a3116 3116 0 0 1-136.5.5 417 417 0 0 1-8.5-38.5 962 962 0 0 1-15-47 713 713 0 0 0-21-46 732 732 0 0 1-16-27q-1.122-3.51 1.5-6"}),_.createElement("path",{className:"bar bar2",d:"M879.5 777.5q93-.25 186 .5c18.83 33.513 43.5 62.179 74 86a144.6 144.6 0 0 1 23 16q13.5 5.88 25.5 14.5a574 574 0 0 1 22.5 45c-.33 1-.67 2-1 3-84.63-.161-169.3.006-254 .5q-3.752-3.208-6.5-7.5a2804 2804 0 0 1-8-20 252 252 0 0 1-13-24 3463 3463 0 0 0-23-53 1506 1506 0 0 1-27-55q-1.122-3.51 1.5-6"}),_.createElement("path",{className:"bar bar3",d:"M786.5 971.5q68.56.08 137 0a29.2 29.2 0 0 1 7 2.5 9467 9467 0 0 0 68.5 141.5c4 11.67 9.34 22.67 16 33 1.47 4.53-.2 6.87-5 7-86.772-.2-173.606-.37-260.5-.5-1.754-4.38-.921-8.22 2.5-11.5a411 411 0 0 1 10-25 578 578 0 0 0 10-32 99.6 99.6 0 0 1 5-22q2.12-21.06 5-42l1-48q1.478-1.971 3.5-3"}),_.createElement("path",{className:"bar bar4",d:"M970.5 971.5c83.58.74 167.25.74 251 0 2.73.182 5.39.682 8 1.5 18.09 35.51 36.26 71.01 54.5 106.5 7.67 13.67 15.33 27.33 23 41 2.16 3.76 2.82 7.76 2 12-10.9 7.75-22.4 14.59-34.5 20.5-2.92.99-5.92 1.65-9 2-68.48.48-136.82.65-205 .5-4.11-.08-7.28-1.74-9.5-5a3780 3780 0 0 0-67-140 71388 71388 0 0 1-12-28q-5.977-4.855-1.5-11"}),_.createElement("path",{d:"M83.5 1377.5a332.5 332.5 0 0 0 50.5 0c3.056.58 6.056 1.24 9 2a31209 31209 0 0 1 126.5 194 3.6 3.6 0 0 0 1.5-1c.652-63.71.652-127.37 0-191 .51-2.76 2.177-4.09 5-4a279.4 279.4 0 0 0 47 0c2.145-.1 3.979.56 5.5 2 .529 54.71.862 109.54 1 164.5l-.5 116.5c-.575 3.3-2.575 4.96-6 5a490 490 0 0 0-52 0q-5.74-1.74-10-6a14653 14653 0 0 0-125.5-193q-2.01 1.785-2 4.5a6168 6168 0 0 1 .5 191.5q-2.794 3.675-7.5 3a219.4 219.4 0 0 0-41 0q-5.057-.81-5.5-6c-.667-93.33-.667-186.67 0-280a19.2 19.2 0 0 0 3.5-2"}),_.createElement("path",{d:"M986.5 1377.5c17.32 1.09 34.66 1.25 52 .5 3.23 1.94 5.4 4.78 6.5 8.5 9.36 38.7 18.7 77.37 28 116 3.05 6.64 4.72 13.64 5 21 2.95 5.96 4.62 12.29 5 19 4.15 16.12 8.49 32.12 13 48 2.04-1.08 3.38-2.75 4-5 4.23-19.04 8.56-38.04 13-57 4.55-15.3 8.88-30.64 13-46 .76-4.32 1.43-8.65 2-13 4.33-15.33 8.66-30.66 13-46 2.08-12.15 4.75-24.15 8-36 .85-3.2 2.35-6.03 4.5-8.5 19.85-.22 39.68-.72 59.5-1.5 2.3-.01 4.47.49 6.5 1.5 6.53 21.92 12.37 44.09 17.5 66.5 2.94 6.32 4.61 12.99 5 20 3.56 15.24 7.89 30.24 13 45 2.47 11.74 5.14 23.41 8 35a7.4 7.4 0 0 0 2 3c2.38 11.75 5.04 23.41 8 35 1.33 3.33 3.16 6.33 5.5 9a2872 2872 0 0 1 27.5-111c.39-7.01 2.06-13.68 5-20 .39-7.01 2.06-13.68 5-20 .57-4.35 1.24-8.68 2-13 4.34-16 8.67-32 13-48l1.5-1.5c16.17-.29 32.34-.79 48.5-1.5q5.385-.045 10.5 1.5c.58.89.91 1.89 1 3-2.02 4.57-3.18 9.4-3.5 14.5-2.84 6-4.5 12.34-5 19a351 351 0 0 0-8 25c-2.97 11.6-5.63 23.27-8 35-2.56 8.31-5.23 16.65-8 25-.39 6.38-2.06 12.38-5 18a8809 8809 0 0 1-38 144q-4.725 2.91-10.5 3a410 410 0 0 0-56.5 0c-3.08-.44-5.91-1.44-8.5-3-8.05-31.19-16.88-62.19-26.5-93-.67-4-1.33-8-2-12-9.67-32.85-18.5-65.85-26.5-99-3.92 8.2-6.42 16.87-7.5 26-.72 2.45-1.72 4.78-3 7a2343 2343 0 0 1-28 109c-.72 2.45-1.72 4.78-3 7-4.17 18.07-8.51 36.07-13 54-4.52 3.47-9.69 4.8-15.5 4a685 685 0 0 0-55.5 0c-1.63-.38-3.13-1.04-4.5-2q-6-17.88-10.5-36c-10.91-43.39-21.91-86.73-33-130-2.88-5.97-4.54-12.31-5-19a32 32 0 0 1-3-7 4792 4792 0 0 0-18-75c-3.031-5.25-4.031-10.92-3-17 .995-.57 1.828-1.23 2.5-2"}),_.createElement("path",{d:"M1648.5 1406.5c16.35.64 32.68 1.3 49 2 1.4 1.35 2.06 3.02 2 5a255 255 0 0 0-.5 38c.5 1.17 1.33 2 2.5 2.5 16.33.33 32.67.67 49 1 .92.37 1.75.87 2.5 1.5.82 13.58.66 27.08-.5 40.5-17 .33-34 .67-51 1-1.17.5-2 1.33-2.5 2.5-.67 31.33-.67 62.67 0 94 2.29 23.73 15.12 33.23 38.5 28.5 4.85-3.25 10.02-4.08 15.5-2.5.64 13.67.98 27.34 1 41a11.4 11.4 0 0 1-4.5 3.5c-22.63 5.41-45.29 5.75-68 1-13.91-4.18-24.08-12.68-30.5-25.5-4.8-11.14-7.13-22.81-7-35-.65-34.59-.65-69.25 0-104-.32-1.56-1.15-2.73-2.5-3.5-9-.33-18-.67-27-1-.92-.37-1.75-.87-2.5-1.5-.21-11.69-.71-23.36-1.5-35 .19-3.23 1.85-5.06 5-5.5 9-.33 18-.67 27-1l1.5-1.5c.33-14.33.67-28.67 1-43 .98-1.31 2.15-2.31 3.5-3M1807.5 1406.5c9.18.78 18.35.78 27.5 0 7.6.35 15.1 1.18 22.5 2.5a980 980 0 0 1 1.5 43.5l1.5 1.5c15 .33 30 .67 45 1 1.17.5 2 1.33 2.5 2.5-.77 11.49-.61 22.99.5 34.5a23 23 0 0 1-2 5c-15 .33-30 .67-45 1-.92.37-1.75.87-2.5 1.5-.67 32.67-.67 65.33 0 98 1.84 19.84 12.68 28.67 32.5 26.5 4.83-.18 9.33-1.35 13.5-3.5 1.44.06 2.77.39 4 1a673 673 0 0 0 3.5 36c.38 2.82-.62 4.99-3 6.5-23.81 6.5-47.81 7.17-72 2-12.46-5.13-21.63-13.63-27.5-25.5-1.1-4.87-2.77-9.54-5-14-.33-3.33-.67-6.67-1-10-.33-39-.67-78-1-117l-1.5-1.5c-10.43-.05-20.77-.71-31-2-.66-6.59-.99-13.26-1-20 .01-6.74.34-13.41 1-20 10.26-1.26 20.59-1.93 31-2l1.5-1.5c.33-14 .67-28 1-42 .69-1.85 1.86-3.18 3.5-4"}),_.createElement("path",{d:"M878.5 1446.5c27.433-1.66 52.433 5.01 75 20 21.826 18.58 34.326 42.24 37.5 71 3.595 25.23 1.262 49.9-7 74-16.274 34.06-43.107 53.89-80.5 59.5q-48.019 5.13-88-21-30.077-28.71-35.5-70.5a400 400 0 0 1 0-40q13.828-84.585 98.5-93m1 47c25.457-.37 42.623 11.3 51.5 35q9.63 36.765-4 72-17.011 26.355-48.5 22.5a61.5 61.5 0 0 0-14-5c-7.087-4.96-12.92-11.13-17.5-18.5a28.9 28.9 0 0 0-5-11c-3.333-19.33-3.333-38.67 0-58 4.098-14.4 12.598-25.23 25.5-32.5q6.626-1.05 12-4.5"}),_.createElement("path",{d:"M447.5 1447.5c21.766-2.21 42.766.62 63 8.5 21.067 11.41 35.234 28.57 42.5 51.5q1.39 10.62 4 21a229.3 229.3 0 0 1 1 40c-1.171 1.39-2.671 2.23-4.5 2.5q-65.505.255-131 1.5c-2.062 4.18-2.229 8.51-.5 13 2.366 8.1 5.7 15.77 10 23 15.264 15.93 33.764 20.77 55.5 14.5 3.87-2.52 7.87-4.85 12-7 3.262-2.59 5.762-5.76 7.5-9.5a39.7 39.7 0 0 1 8-7 965 965 0 0 0 21.5 8.5q10.12 1.62 18.5 7.5c.667 1.67.667 3.33 0 5q-9.276 20.79-27.5 34.5c-23.698 14.22-49.365 19.55-77 16-51.283-10.29-80.116-41.45-86.5-93.5-.894-14.71-.56-29.37 1-44a86 86 0 0 0 4-18 125.3 125.3 0 0 1 10.5-23c7.797-11.96 17.464-22.13 29-30.5 12.242-7.13 25.242-11.96 39-14.5m14 42c25.166 1.33 39.166 14.5 42 39.5q-1.824 2.61-5 3a719 719 0 0 1-75-1q2.218-22.395 21-36a123 123 0 0 1 17-5.5"}),_.createElement("path",{d:"M1482.5 1447.5c14.73-.22 29.39.61 44 2.5 37.88 7.55 57.72 30.72 59.5 69.5.33 38 .67 76 1 114 1.99 9.92 2.66 19.92 2 30-.75.63-1.58 1.13-2.5 1.5-15.66-.53-31.33-.53-47 0-2.44-2.29-3.94-5.13-4.5-8.5-1.06-4.6-1.73-9.27-2-14a7.2 7.2 0 0 0-2.5-2c-4.34 5.21-9.01 10.04-14 14.5-26.31 16.05-54.31 19.72-84 11q-44.205-19.29-37.5-67.5a124 124 0 0 0 5-17c8.22-13.88 19.38-24.72 33.5-32.5 9.71-4.13 19.71-7.46 30-10 21.1-4.3 42.44-6.63 64-7 1.8-.64 3.14-1.8 4-3.5-1.04-7.84-2.88-15.5-5.5-23a34.4 34.4 0 0 1-6.5-7.5 31.4 31.4 0 0 1-8-5c-6.73-.84-13.4-2.01-20-3.5-5.98 1.27-11.98 2.44-18 3.5q-3.72 4.11-9 6c-1.8 3.1-3.97 5.94-6.5 8.5-1.37 5.77-3.7 11.1-7 16-.8 1.3-1.97 1.97-3.5 2a426 426 0 0 0-34-13.5c-3.12-1.97-6.28-3.81-9.5-5.5-.65-3.09-.32-6.09 1-9 9.52-23.19 26.36-38.35 50.5-45.5a221 221 0 0 1 27-4.5m28 122c6.92-.31 13.76.02 20.5 1 2.47 19.95-4.37 35.78-20.5 47.5-4.04.9-7.7 2.57-11 5q-16.545 4.515-33 0c-16.58-9.72-18.91-22.05-7-37 2.29-1.29 4.29-2.96 6-5 14.59-5.91 29.59-9.74 45-11.5"}),_.createElement("path",{d:"M578.5 1454.5q29.139-.72 58 1.5c1.167 1.17 2.333 2.33 3.5 3.5a800 800 0 0 0 34 54c1.667-1.33 3.333-2.67 5-4a337 337 0 0 1 18-30 182 182 0 0 0 16.5-23.5 222 222 0 0 1 29-1.5c8.667.17 17.333.33 26 .5q3.726 3.42.5 7.5a2217 2217 0 0 0-63.5 93.5 103.5 103.5 0 0 0 8.5 15.5 5919 5919 0 0 1 59 85c2.155 3.04 1.988 5.87-.5 8.5a457 457 0 0 0-51 .5q-3.55-.51-7-1.5a728 728 0 0 1-40-60.5c-2.341-1.21-4.507-.88-6.5 1a926 926 0 0 1-28 45 120 120 0 0 1-11.5 14.5l-7.5 1.5c-16.734-.89-33.4-1.23-50-1q-.411-4.725 2-9a2463 2463 0 0 0 67.5-97.5 9.6 9.6 0 0 0-1.5-4.5 1263 1263 0 0 1-46-69l-18-24q-1.615-5.115 3.5-6"}))))}const yG=` +.logo-background-light, .logo-background-colored { + background: white; +} +.logo-background-dark, .logo-background-blue { + background: black; +} +`;function vG(t){T.useEffect(()=>{if(!window.document.getElementById("vendor-iobroker-component")){const r=window.document.createElement("style");r.setAttribute("id","vendor-iobroker-component"),r.innerHTML=yG,window.document.head.appendChild(r)}},[]);const e=t.themeType||t.themeName||"light";return _.createElement("div",{className:`vendor-logo-back logo-background-${e}`,style:{display:"flex",flexDirection:"column",height:"100%",width:"10%",margin:"auto",backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:t.themeType==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("div",{style:{flexGrow:1}}),_.createElement(oh,{color:"secondary",size:t.size||200,thickness:5}),_.createElement("div",{style:{flexGrow:1}}))}const bG=` +/** + * Copyright 2018-2024 Denis Haev (bluefox) + * + * MIT License + * + **/ + +.logo-background-light, .logo-background-colored { + background: white; +} +.logo-background-dark, .logo-background-blue { + background: black; +} +.logo-div { + position: absolute; + top: 50%; + left: 50%; + -ms-transform: translateX(-50%) translateY(-50%); + -webkit-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); + overflow: hidden; + border-radius: 50%; + z-index: 2; +} +.logo-border { + /*border-color: #164477;*/ + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + border-radius: 50%; + border-style: solid; + box-sizing: border-box; + width: 100%; + height: 100%; + position: absolute; +} +.logo-top { + position: absolute; + width: 4.5%; + height: 16%; + top: 0; + z-index: 2; +} +.logo-i { + position: absolute; + width: 14.5%; + height: 60%; + top: 20%; + left: 42%; + background: #3399CC; +} +.logo-i-top { + position: absolute; + width: 14.5%; + height: 4%; + left: 42%; + background: #3399CC; + border-radius: 100%; +} +.logo-back { + width: 100%; + height: 100%; + z-index: 0; + overflow: hidden; +} +@keyframes logo-grow { + 0% { + width: 230px; + height: 230px; + transform: translate(-50%,-50%) scale(1); + opacity: 1 + } + 99% { + width: 230px; + height: 230px; + transform: translate(-50%,-50%) scale(10); + opacity: 0; + } + 100% { + width: 0; + height: 0; + opacity: 0; + } +} +@keyframes logo-spin { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } +@keyframes logo-color-inside-light { + 0% { + background: #FEFEFE; + } + 100% { + background: #3399CC; + } +} +@keyframes logo-color-inside-dark { + 0% { + background: #030303; + } + 100% { + background: #3399CC; + } +} +@keyframes logo-color-inside-colored { + 0% { + background: #FEFEFE; + } + 100% { + background: #3399CC; + } +} +@keyframes logo-color-inside-blue { + 0% { + background: #030303; + } + 100% { + background: #3399CC; + } +} + +@keyframes logo-color-outside-light { + 0% { + border-color: #FEFEFE; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} +@keyframes logo-color-outside-dark { + 0% { + border-color: #040404; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} +@keyframes logo-color-outside-colored { + 0% { + border-color: #FEFEFE; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} +@keyframes logo-color-outside-blue { + 0% { + border-color: #040404; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} + +.logo-animate-wait { + animation: logo-color-outside 1.5s, logo-spin 1.5s linear infinite; +} + +.logo-animate-grow-light { + background: #DDD; +} +.logo-animate-grow-dark { + background: #1d1d1d; +} +.logo-animate-grow-colored { + background: #DDD; +} +.logo-animate-grow-blue { + background: #1d1d1d; +} + +.logo-animate-grow { + display: inline-block; + text-align: center; + z-index: 1; + top: 50%; + left: 50%; + -ms-transform: translateX(-50%) translateY(-50%); + -webkit-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); + width: 245px; + height: 245px; + border-radius: 50%; + position: absolute; + animation: logo-grow 1s 1 ease forwards; +} + +.logo-animate-color-inside-light { + animation: logo-color-inside-light 2.5s; +} +.logo-animate-color-inside-dark { + animation: logo-color-inside-dark 2.5s; +} +.logo-animate-color-inside-colored { + animation: logo-color-inside-colored 2.5s; +} +.logo-animate-color-inside-blue { + animation: logo-color-inside-blue 2.5s; +} + +.logo-animate-color-outside-light { + animation: logo-color-outside-light 1.5s; +} +.logo-animate-color-outside-dark { + animation: logo-color-outside-dark 1.5s; +} +.logo-animate-color-outside-colored { + animation: logo-color-outside-colored 1.5s; +} +.logo-animate-color-outside-blue { + animation: logo-color-outside-blue 1.5s; +} +`;function wG(t){T.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=bG,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return _.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:_.createElement(_.Fragment,null,_.createElement("div",{className:"logo-div",style:{width:e,height:e}},_.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),_.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),_.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),_.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),_.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),_.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),_.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}const SG=` +.logo-background-light, .logo-background-colored { + background: white; +} +.logo-background-dark, .logo-background-blue { + background: black; +} +.pt-logo-div { + position: absolute; + top: 50%; + left: 50%; + -ms-transform: translateX(-50%) translateY(-50%); + -webkit-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); + z-index: 2; +} +.pt-logo-border { + border-style: solid; + box-sizing: border-box; + width: 100%; + height: 100%; + position: absolute; +} +.pt-loader-block { + height: 65px; + width: 74px; + border-radius: 15px; + position: absolute; + box-sizing: content-box; +} +.pt-loader-blue { + border: 9px solid #0F99DE; + transform: rotate(5grad); + left: 93px; + top: 0; + animation: spin-blue 5s ease-in-out infinite; +} +.pt-loader-green { + border: 9px solid #88A536; + transform: rotate(-6grad); + left: 70px; + top: 58px; + animation: spin-green 5s ease-in-out infinite; +} +.pt-loader-red { + border: 9px solid #BD1B24; + transform: rotate(-15grad); + left: 24px; + top: 100px; + animation: spin-red 5s ease-in-out infinite; +} + +@keyframes spin-blue { + 0% { + transform: rotate(5deg); + } + 25% { + transform: rotate(185deg); + } + 50% { + transform: rotate(185deg); + } + 75% { + transform: rotate(185deg); + } + 100% { + transform: rotate(185deg); + } +} +@keyframes spin-green { + 0% { + transform: rotate(-6deg); + } + 25% { + transform: rotate(-6deg); + } + 50% { + transform: rotate(174deg); + } + 75% { + transform: rotate(174deg); + } + 100% { + transform: rotate(-6deg); + } +} +@keyframes spin-red { + 0% { + transform: rotate(-15deg); + } + 25% { + transform: rotate(-15deg); + } + 50% { + transform: rotate(-15deg); + } + 75% { + transform: rotate(165deg); + } + 100% { + transform: rotate(165deg); + } +} +`;function xG(t){const e=t.size||200;T.useEffect(()=>{if(!window.document.getElementById("pt-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","pt-iobroker-component"),n.innerHTML=SG,window.document.head.appendChild(n)}},[]);const r=t.themeType||t.themeName||"light";return _.createElement("div",{className:`pt-logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:t.themeType==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("div",{className:"pt-logo-div",style:{width:e,height:e}},_.createElement("div",{style:{width:200,height:200}},_.createElement("div",{className:"pt-loader-blue pt-loader-block"}),_.createElement("div",{className:"pt-loader-green pt-loader-block"}),_.createElement("div",{className:"pt-loader-red pt-loader-block"}))))}const c4="loader-ha-flicker-keyframes",kG=` +@keyframes loaderHA-flicker { + 0% { filter: drop-shadow(0 0 4px #db0a33); opacity: 1; } + 15% { filter: drop-shadow(0 0 10px #db0a33) hue-rotate(-2deg); opacity: 0.97; } + 30% { filter: drop-shadow(0 0 6px #db0a33); opacity: 1; } + 45% { filter: drop-shadow(0 0 14px #e61a38) hue-rotate(-3deg); opacity: 0.94; } + 60% { filter: drop-shadow(0 0 7px #db0a33) hue-rotate(-1deg); opacity: 1; } + 75% { filter: drop-shadow(0 0 11px #e61a38) hue-rotate(-2deg); opacity: 0.98; } + 90% { filter: drop-shadow(0 0 5px #db0a33); opacity: 1; } + 100% { filter: drop-shadow(0 0 4px #db0a33); opacity: 1; } +}`;function CG(t){const e=t.themeType||"dark",r=t.size||300;return _.useEffect(()=>{if(!window.document.getElementById(c4)){const n=window.document.createElement("style");n.setAttribute("id",c4),n.innerHTML=kG,window.document.head.appendChild(n)}},[]),_.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:e==="dark"?"#000":"#FFF",backgroundSize:"cover"}},_.createElement("svg",{width:r,height:r,viewBox:"0 0 69.6 148.1",style:{fill:"#db0a33",animation:"loaderHA-flicker 5s ease-in-out infinite",willChange:"filter, opacity"}},_.createElement("path",{d:"M69.5,100.6c0-.4,0-.8-.2-1.1v-.7c-.2-.4-.3-.8-.5-1.2,0-.2-.2-.5-.3-.7,0,0,0-.2,0-.2,0-.2,0-.3-.2-.5l-.4-.7-.4-.6c-1-1.6-2.4-3-4.2-4.3-.3-.2-.6-.4-.9-.6,0,0-.2,0-.3-.2-.3-.2-.6-.3-.9-.5-.2,0-.3-.2-.5-.3-.3-.2-.6-.3-.9-.5,0,0-.2,0-.3-.2-1-2.7-2.4-4.9-3.8-6.7h0c2.5,0,6.6-.3,7.5-3,3.5-3,2.5-9.7,2.5-10,0-.6-.2-1.1-.4-1.7h0v-.3c.5-3-.4-7.1-.5-7.7h0l-.3-1.1c0-.3-.2-.7-.4-1,0-.4-.3-.7-.4-1,0-.3-.3-.7-.5-1s-.4-.7-.6-1c-.2-.3-.4-.6-.6-.9l-.4-.4-.4-.4-.4-.4c0,0-.3-.3-.5-.4-.3-.2-.6-.4-1-.6-.2,0-.4-.2-.5-.2-.2,0-.4,0-.6-.2-.2,0-.4,0-.6,0h-1.8c-.4,0-.8,0-1.1.2-.4,0-.7.2-1.1.4h0c-1.6-.2-2.6-1-3.1-1.7h0c2-.9,3.5-1.9,4.6-3,2.6-2.2,4-5.1,4.7-7.2,3.4-1.1,5.4-4,5.4-4h0c4.6-5.3,1.2-15.1,1.2-15.1,0,0-.8,4.2-4,5.5,0-.3-.2-.6-.3-1.1s-.3-1.1-.6-1.7c-.2-.7-.5-1.4-.9-2.2-.4-.8-.8-1.6-1.4-2.4-.5-.8-1.2-1.7-1.9-2.5h0C59.2,6.6,49.2.3,49.2.3c0,0,3.3,5.8,1.3,9.9,0,0-3.5-.8-5.7-.8s-2.4.1-3.5.3c-.5.1-1.1.2-1.6.3-.3,0-.5.1-.8.2-.2,0-.5.1-.7.2-.5.1-.9.2-1.3.4-.4.1-.8.3-1.2.4-.4.1-.7.2-1,.3s-.6.2-.9.3h-.2c-2-2.8-3.7-7.5,1.8-11.9,0,0-13,5.3-8.2,17,0,0,0,.2-.1.4h0c-.3.3-.6.7-1,1.3-.3.6-.7,1.3-.9,2.1-.1.4-.2.8-.2,1.3v1.5c-.2-.1-.5-.2-.9-.4-1.7-.8-1.7-2.8-1.7-2.8-1.1,8.3,4.2,13.3,5.2,14.1,0,.4,0,.7-.2,1v.4c-.2,0-.3.3-.4.5-.1.4-.2.7-.3,1.1-.1.7-.1,1.5,0,2.2s.3,1.4.5,2c.3.6.6,1.2.9,1.7,0,0,0,0,.1.2.4.6,1,1.4,2,2h.1c.2,0,.8.5,1.7.7.2.2,1.5,1.7,3.1,2.1-.2,1.1-1,2.8-3.4,3.7,0,0-14.2-.4-13.2,13.5-6.6,8.7-3.8,13.4-3.8,13.4-.9.6-.9,1.9-.5,3,0,0,0,.3.2.5,0,0,0,0,.3.4.3.4.6.7,1,.8,1.1.7,3.1,1.5,6.4,1.1.2.3,1.3,1.8,1.3,2.2.5,2.3,1.2,4.5,1.3,6.8l.2,1.3c-2.2-.2-11-.2-16.6,9.1,0,0-.2.2-.2.4l-.5.9-.6,1.2h0c-.3.7-.7,1.7-1.1,2.8-.5.4-1.2,0-1.7-.3-.4-.4-.7-.7-.9-1.1,0,0,0-.2,0-.3v-.2s0-.2-.2-.2h0c0,0,0,0-.2-.2h-.4s-.2,0-.2,0c-.2,0-.2.2-.3.3,0,0-.1.2-.2.2,0,.2-.2.3-.2.5-.2.6-.4,1.2-.6,1.8-.6,2.4-.6,4.9-.1,7.3.2,1.2.6,2.4,1.1,3.5.5,1.1,1.2,2.1,2,3.1.8.9,1.7,1.8,2.7,2.5s2,1.3,3.1,1.8h0l.6.4-.3-.7c-.2-.4-.3-.9-.5-1.3-.1-.4-.2-.9-.3-1.3-.1-.9-.2-1.8,0-2.7,0-.4.2-.8.4-1.2.2-.4.4-.7.7-1.1.6-.8,1-1.6,1.5-2.5.4-.9.8-1.8,1.1-2.7.1-.5.3-1,.3-1.5v-.9h0c.1-2.3-1.9-3-3-2.9-.9,0-1.7.2-2,.2.7-1.3,1.3-2.4,2-3.4h0c.2-.4.4-.6.6-.9.4-.5.8-1,1.2-1.5.1,0,.2-.3.3-.4h0c.1,0,.2-.2.3-.4.1,0,.2-.3.4-.4,6.5-6.5,12.5-2.9,12.5-2.9,0,0,1.1,3.7,1.6,4.6h0c1,2.3,2.7,4.6,4.1,6.9h0c0,0,0,4.8,2.2,7.2.5.6,1.1,1.3,1.7,2.2.3.5.5,1,.7,1.4.2.3.3.6.4.9.3.4.5.8.8,1.3s.6,1,.8,1.6c.2.5.4,1,.6,1.5,0,0,1,5.1.7,7.4-3.3.9-5.5,2.4-7.4,3.2-1,.3-3.4,2-5.5,1.9h-.5c0,.1-3.6.3-2.7,3.1,0,0,.2,3.6,5.8,2.9,1.8-.1,7.5-.5,9.1-.3,1.6.2,2.8.2,3.7.1,1.3,0,3.8,0,5.3-.4.4,1.8,3.2,2.4,6,1.5,3.6,1.6,13.5,2,15.6-1.6,2.4-4.1-2.4-8.6-4.1-12.6-3.8-9.3-.8-14-1.6-16.8,0-.7-.2-1.8-.4-3.2.8-.4,1.5-.8,2.2-1.3,1-.7,1.7-1.4,2.3-2.1l.2-.2c0,0,.2-.3.3-.4l.6-.9.6-1.2.4-1.1.3-1.2v-.8c0-.3,0-.5,0-.7h0v-2.4h.2ZM52.6,131.9c-.3.4-.7.9-1.2,1.6-1-.6-2.7-2.2-3.3-4.3,0-.2,0-.3-.2-.5-1.1-6.9-2.6-9.7-3.2-10.6-1-3.7-1.7-7.4-1.3-9.6,0,0,3.6,8.2,6.4,10,0,0,3.7,8.5,4.5,9.9.6,1-.9,2.3-1.7,3.5ZM63.6,102.7h0v.2h0v.9c0,0-.3.4-.3.4,0,0,0,.2,0,.3v.2h0v.2h0l-.2.2c-.3.6-.8,1.1-1.3,1.5h0c-.3-2.4-.6-5.1-.8-8.2.2-.5.3-1.1.4-1.7l.2.2c.2.2.4.4.5.6.2.2.3.4.5.7,0,.2.3.4.4.7h0c0,.3.2.5.3.7,0,.2.2.5.2.7h0v.3c0,.2,0,.4,0,.6v.7h0v.7h0Z"})))}function U8(t){const e=window.vendorPrefix;return e==="PT"?_.createElement(xG,{themeType:t.themeType}):e==="MV"?_.createElement(_G,{themeType:t.themeType}):e==="NW"?_.createElement(gG,{themeType:"dark"}):e==="HA"?_.createElement(CG,{themeType:"dark"}):e&&e!=="@@vendorPrefix@@"?_.createElement(vG,{themeType:t.themeType}):_.createElement(wG,{themeType:t.themeType})}class Su extends T.Component{onHashChangedBound;constructor(e){super(e),this.onHashChangedBound=this.onHashChanged.bind(this)}componentDidMount(){window.addEventListener("hashchange",this.onHashChangedBound)}componentWillUnmount(){window.removeEventListener("hashchange",this.onHashChangedBound)}onHashChanged(){}static getLocation(){let e=window.location.hash;e=e.replace(/^#/,"");const r=e.split("/").map(n=>{try{return n?decodeURIComponent(n):""}catch{return console.error(`Router: Cannot decode ${n}`),n}});return{tab:r[0]||"",dialog:r[1]||"",id:r[2]||"",arg:r[3]||""}}static doNavigate(e,r,n,o){let a="";const s=Su.getLocation();o!==void 0&&!n&&(n=s.id),n&&!r&&(r=s.dialog),(r&&!e||e===null)&&(e=s.tab),e&&(a=`#${e}`,r&&(a+=`/${r}`,n&&(a+=`/${n}`,o!==void 0&&(a+=`/${o}`)))),window.location.hash!==a&&(window.location.hash=a)}}function $G(){const t=document.getSelection();if(!t?.rangeCount)return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const l4={"text/plain":"Text","text/html":"Url",default:"Text"},EG="Copy to clipboard: #{key}, Enter";function TG(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function OG(t,e){let r,n,o,a,s=!1;e=e||{};const l=e.debug||!1;try{if(r=$G(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top="0px",a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.userSelect="text",a.addEventListener("copy",f=>{if(f.stopPropagation(),e?.format)if(f.preventDefault(),typeof f.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData?.clearData();const h=l4[e.format]||l4.default;window.clipboardData?.setData(h,t)}else f.clipboardData?.clearData(),f.clipboardData?.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o?.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(u){l&&console.error("unable to copy using execCommand: ",u),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),s=!0}catch(f){l&&console.error("unable to copy using clipboardData: ",f),l&&console.error("falling back to prompt");const h=TG("message"in e?e.message||"":EG);window.prompt(h,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return s}class j{static translations={};static unknownTranslations=[];static lang=window.sysLang||"en";static _disableWarning=!1;static setLanguage(e){e&&(j.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const s=a,l={},u=n[s];Object.keys(u).forEach(f=>{f&&u&&(f.startsWith(o)?l[f]=u[f]:l[`${o}${f}`]=u[f])}),e[s]=l})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;j.translations[o]||={},Object.assign(j.translations[o],e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const s=a,l=j.translations[s];l?l[n]?l[n]!==o[s]&&console.warn(`Translation for word "${n}" in "${s}" was ignored: existing = "${l[n]}", new = ${o[s]}`):l[n]=o[s]:console.warn(`Used unknown language: ${s}`)})});else{j.translations[r]||console.warn(`Used unknown language: ${r}`),j.translations[r]||={};const n=j.translations[r];Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(j.translations=e)}static getLanguage(){return j.lang}static t(e,...r){const n=j.translations[j.lang];if(n){const o=n[e];if(o)e=o;else if(j.unknownTranslations.includes(e)||(j.unknownTranslations.push(e),!j._disableWarning&&console.log(`Translate: ${e}`)),j.lang!=="en"&&j.translations.en){const a=j.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(j.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):e&&typeof e=="object"&&(j.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(j.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){j._disableWarning=!!e}}window.i18nShow=j.i18nShow;window.i18nDisableWarning=j.disableWarning;const ko="material",DG=["Su","Mo","Tu","We","Th","Fr","Sa"],RG=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Q_={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},u4={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"};class je{static namespace=ko;static INSTANCES="instances";static dateFormat=["DD","MM"];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let s="";return r&&(s+=`${r} ${j.t("ra_daysShortText")} `),s+=`${n}:${o}:${a}`,s}static getObjectName(e,r,n,o,a){const s=e[r];let l;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n?.name){const u=n.name;typeof u=="object"?l=o.language&&u[o.language]||u.en:l=u}else if(a&&s?.common?.desc){const u=s.common.desc;typeof u=="object"?l=o.language&&u[o.language]||u.en||u.de||u.ru||"":l=u,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!a&&s?.common){const u=s.common.name||s.common.desc;u&&typeof u=="object"?l=o.language&&u[o.language]||u.en||u.de||u.ru||"":l=u,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else{const u=r.lastIndexOf(".");l=r.substring(u+1).replace(/[_.]/g," "),l=je.CapitalWords(l)}return l?.trim()||""}static getObjectNameFromObj(e,r,n,o,a){const s=e;let l=e?._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r?.name){const u=r.name;typeof u=="object"?l=n.language&&u[n.language]||u.en:l=u}else if(o&&s?.common?.desc){const u=s.common.desc;typeof u=="object"?l=n.language&&u[n.language]||u.en:l=u,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!o&&s?.common?.name){let u=s.common.name;!u&&s.common.desc&&(u=s.common.desc),typeof u=="object"?l=n.language&&u[n.language]||u.en:l=u,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}return a?l:l.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o?.custom){a=o.custom[ko];const s=n.user||"admin";if(a&&a[s]){if(r){if(a[s].subOrder&&a[s].subOrder[r])return JSON.parse(JSON.stringify(a[s].subOrder[r]))}else if(a[s].order)return JSON.parse(JSON.stringify(a[s].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o?.custom){a=o.custom[ko];const s=n.user||"admin";if(a&&a[s]){if(r){if(a[s].subURLs&&a[s].subURLs[r])return JSON.parse(JSON.stringify(a[s].subURLs[r]))}else if(a[s].URLs)return JSON.parse(JSON.stringify(a[s].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=e?._id||r?.id;let s;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?s=e.common:s=e,s?.custom?(o=s.custom,o=o[ko]&&o[ko][r.user||"admin"]?JSON.parse(JSON.stringify(o[ko][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),s&&(!o.color&&s.color&&(o.color=s.color),!o.icon&&s.icon&&(o.icon=s.icon),!o.name&&s.name&&(o.name=s.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const l=a.lastIndexOf(".");o.name=a.substring(l+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=je.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[ko]=e.common.custom[ko]||{},e.common.custom[ko][n.user||"admin"]=r;const o=e.common.custom[ko][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e?.icon?e.icon.length<=2?_.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?_.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):_.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){if(typeof e=="object"&&(r=e,e=r?._id),r?.common?.icon){let n=r.common.icon;if(typeof n=="string"&&n.length<=2||n.startsWith("data:image"))return n;const o=e.split(".");return o[0]==="system"?n=`adapter/${o[2]}${n.startsWith("/")?"":"/"}${n}`:n=`adapter/${o[0]}${n.startsWith("/")?"":"/"}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?n=`../../${n}`:window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(e){return e?je.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const s=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(s&&s.length===4)n=parseInt(s[1],10),o=parseInt(s[2],10),a=parseInt(s[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}static getWindDirection(e){return e>=0&&e<11.25?"N":e>=11.25&&e<33.75?"NNE":e>=33.75&&e<56.25?"NE":e>=56.25&&e<78.75?"ENE":e>=78.75&&e<101.25?"E":e>=101.25&&e<123.75?"ESE":e>=123.75&&e<146.25?"SE":e>=146.25&&e<168.75?"SSE":e>=168.75&&e<191.25?"S":e>=191.25&&e<213.75?"SSW":e>=213.75&&e<236.25?"SW":e>=236.25&&e<258.75?"WSW":e>=258.75&&e<281.25?"W":e>=281.25&&e<303.75?"WNW":e>=303.75&&e<326.25?"NW":e>=326.25&&e<348.75?"NNW":"N"}static padding(e){return typeof e=="string"?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(e){e&&(je.dateFormat=e.toUpperCase().split(/[.-/]/),je.dateFormat.splice(je.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(s=>s>31);if(a!==void 0){o.splice(o.indexOf(a),1);const s=o.find(l=>l>12);s?(o.splice(o.indexOf(s),1),e=new Date(a,o[0]-1,s)):je.dateFormat[0][0]==="M"&&je.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):je.dateFormat[0][0]==="D"&&je.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=j.t(`ra_dow_${DG[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${j.t(`ra_month_${RG[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(_.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(_.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(_.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(_.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const s=e;return s?.common?.custom&&s.common.custom[n]?s.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return a?.common?.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=e?.common?.custom?.[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName={}):o.common.smartName={}}static removeSmartName(e,r,n){const o=e;n?o?.common?.custom?.[r]&&(o.common.custom[r]=null):o.common.smartName=null}static updateSmartName(e,r,n,o,a,s){const l=j.getLanguage(),u=e;if(typeof u.common.smartName=="string"){const f=u.common.smartName;u.common.smartName={},u.common.smartName[l]=f}if(u.native?.byON){delete u.native.byON;let f=u.common.smartName;f&&typeof f!="object"&&(f={en:f,[l]:f}),u.common.smartName=f}if(o!==void 0&&(s?(u.common.custom||={},u.common.custom[a]||={},u.common.custom[a].smartName||={},o?u.common.custom[a].smartName.smartType=o:delete u.common.custom[a].smartName.smartType):(u.common.smartName||={},o?u.common.smartName.smartType=o:delete u.common.smartName.smartType)),n!==void 0&&(s?(u.common.custom||={},u.common.custom[a]||={},u.common.custom[a].smartName||={},u.common.custom[a].smartName.byON=n):(u.common.smartName||={},u.common.smartName.byON=n)),r!==void 0){let f;if(s?(u.common.custom||={},u.common.custom[a]||={},u.common.custom[a].smartName||={},f=u.common.custom[a].smartName):(u.common.smartName||={},f=u.common.smartName),f[l]=r,f&&(!f[l]||f[l]===u.common.name&&!u.common.role)){delete f[l];let h=!0;for(const d in f)if(Object.prototype.hasOwnProperty.call(f,d)){h=!1;break}if(h)if(s&&u.common.custom?.[a])u.common.custom[a].smartName.byON===void 0?delete u.common.custom[a]:(delete u.common.custom[a].en,delete u.common.custom[a].de,delete u.common.custom[a].ru,delete u.common.custom[a].nl,delete u.common.custom[a].pl,delete u.common.custom[a].it,delete u.common.custom[a].fr,delete u.common.custom[a].pt,delete u.common.custom[a].es,delete u.common.custom[a].uk,delete u.common.custom[a]["zh-cn"]);else if(u.common.smartName&&u.common.smartName.byON!==void 0){const d=u.common.smartName;delete d.en,delete d.de,delete d.ru,delete d.nl,delete d.pl,delete d.it,delete d.fr,delete d.pt,delete d.es,delete d.uk,delete d["zh-cn"]}else u.common.smartName=null}}}static updateSmartNameEx(e,r){const n=j.getLanguage(),o=e;if(typeof o.common.smartName=="string"){const a=o.common.smartName;o.common.smartName={},o.common.smartName[n]=a}if(o.native?.byON){delete o.native.byON;let a=o.common.smartName;a&&typeof a!="object"&&(a={en:a,[n]:a}),o.common.smartName=a}if(r.smartType!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},r.smartType?o.common.custom[r.instanceId].smartName.smartType=r.smartType:delete o.common.custom[r.instanceId].smartName.smartType):(o.common.smartName||={},r.smartType?o.common.smartName.smartType=r.smartType:delete o.common.smartName.smartType)),r.byON!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.byON=r.byON):(o.common.smartName||={},o.common.smartName.byON=r.byON)),r.noAutoDetect!==void 0&&(r.noCommon?r.noAutoDetect?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.noAutoDetect=r.noAutoDetect):o.common.custom?.[r.instanceId]?.smartName&&delete o.common.custom[r.instanceId].smartName.noAutoDetect:!r.noAutoDetect&&o.common.smartName?delete o.common.smartName.noAutoDetect:(o.common.smartName||={},o.common.smartName.noAutoDetect=r.noAutoDetect)),r.smartName!==void 0){let a;if(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},a=o.common.custom[r.instanceId].smartName):(o.common.smartName||={},a=o.common.smartName),a[n]=r.smartName,a&&(!a[n]||a[n]===o.common.name&&!o.common.role)){delete a[n];let s=!0;for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){s=!1;break}if(s)if(r.noCommon&&o.common.custom?.[r.instanceId])o.common.custom[r.instanceId].smartName.byON===void 0?delete o.common.custom[r.instanceId]:(delete o.common.custom[r.instanceId].en,delete o.common.custom[r.instanceId].de,delete o.common.custom[r.instanceId].ru,delete o.common.custom[r.instanceId].nl,delete o.common.custom[r.instanceId].pl,delete o.common.custom[r.instanceId].it,delete o.common.custom[r.instanceId].fr,delete o.common.custom[r.instanceId].pt,delete o.common.custom[r.instanceId].es,delete o.common.custom[r.instanceId].uk,delete o.common.custom[r.instanceId]["zh-cn"]);else if(o.common.smartName&&o.common.smartName.byON!==void 0){const l=o.common.smartName;delete l.en,delete l.de,delete l.ru,delete l.nl,delete l.pl,delete l.it,delete l.fr,delete l.pt,delete l.es,delete l.uk,delete l["zh-cn"]}else o.common.smartName=null}}}static disableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName=!1):o.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),OG(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const l=(255-o).toString(16),u=(255-a).toString(16),f=(255-s).toString(16);return`#${l.padStart(2,"0")}${u.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else e.startsWith("#")&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,s=r*.2126+n*.7152+o*.0722,l=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,s=s>.008856?s**.33333333:7.787*s+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,[116*s-16,500*(a-s),200*(s-l)]}static colorDistance(e,r){const n=je.color2rgb(e),o=je.color2rgb(r);if(!n||!o)return 0;const a=je.rgb2lab(n),s=je.rgb2lab(o),l=a[0]-s[0],u=a[1]-s[1],f=a[2]-s[2],h=Math.sqrt(a[1]*a[1]+a[2]*a[2]),d=Math.sqrt(s[1]*s[1]+s[2]*s[2]),m=h-d;let y=u*u+f*f-m*m;y=y<0?0:Math.sqrt(y);const v=1+.045*h,b=1+.015*h,x=l,C=m/v,D=y/b,O=x*x+C*C+D*D;return O<0?0:O}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const s=decodeURIComponent(o[1]);if(s==="true")r[a]=!0;else if(s==="false")r[a]=!1;else{const l=parseFloat(s);l.toString()===s?r[a]=l:r[a]=s}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,n+=` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`,n}static formatTime(e){if(e){e=Math.round(e);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){const r=je.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const a=o.replace(/\r/g,"").split(` +`);for(let s=0;s{if(!s.trim())return;const l=s.indexOf(":");if(l!==-1){const u=s.substring(0,l).trim();let f=s.substring(l+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[u]=!0:f==="false"?r[u]=!1:parseFloat(f).toString()===r[u]?r[u]=parseFloat(f):r[u]=f}else r[s.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=Q_[e];let o;return n?o=[n]:e&1?o=[Q_[1],`0x${(e&65534).toString(16)}`]:e&2?o=[Q_[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){const r=e?.common?.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const o=r.split(";");n={};for(let a=0;an[a]=o):e?.common.type==="string"?r.forEach(o=>n[o]=o):e?.common.type==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>o(a.result?.toString()||""),a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(u4).find(n=>e.startsWith(n));return r?u4[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.toLowerCase().startsWith("stable")))}static isStringInteger(e){return typeof e=="number"?Math.round(e)===e:parseInt(e,10).toString()===e}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getStyle(e,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const s=r[o][a];n[a]={},Object.keys(s).forEach(l=>{typeof s[l]=="function"?n[a][l]=s(e):(s[l]||s[l]===0)&&(n[a][l]=s[l])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}}const eg={buttonIcon:{marginRight:8}};class MG extends _.Component{isIFrame;constructor(e){super(e);const r=e.newReact===void 0?!0:e.newReact;if(e.isIFrame!==void 0)this.isIFrame=e.isIFrame;else try{this.isIFrame=!r&&window.self!==window.top}catch{this.isIFrame=!r}}render(){const e=this.props.noTextOnButtons,r={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},n={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(n.minHeight=48),this.props.error&&(r.border="1px solid red"),_.createElement(BT,{style:n},_.createElement(Ui,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:r},_.createElement(h1,{style:e?void 0:eg.buttonIcon}),!e&&j.t("ra_Save")),_.createElement(Ui,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...r,marginLeft:10}},_.createElement(h1,{style:e?void 0:eg.buttonIcon}),e?"+":j.t("ra_Save and close"),e&&_.createElement(ti,null)),_.createElement("div",{style:{flexGrow:1}}),_.createElement(Ui,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:r},_.createElement(ti,{style:e?void 0:eg.buttonIcon}),!e&&j.t("ra_Close")))}}const d4={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class q8 extends T.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}handleOk(){this.state.suppress&&(window._localStorage||window.localStorage).setItem(this.props.dialogName,Date.now()+(this.props.suppressQuestionMinutes||2)*6e4),this.props.onClose&&this.props.onClose(!0)}handleCancel(){this.props.onClose&&this.props.onClose(!1)}render(){return typeof this.state.suppress=="number"?(setTimeout(()=>this.props.onClose&&this.props.onClose(!0),100),null):_.createElement(co,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},_.createElement(po,{id:"ar_confirmation_dialog_title"},this.props.title||j.t("ra_Are you sure?")),_.createElement(uo,null,_.createElement(uh,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?_.createElement("br",null):null,this.props.suppressQuestionMinutes?_.createElement(ut,{sx:{"& .FormControlLabel-label":d4.suppress,"&.FormControlLabel-root":d4.suppressRoot},control:_.createElement(dr,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||j.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),_.createElement(lo,null,_.createElement(At,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:_.createElement(li,null)},this.props.ok||j.t("ra_Ok")),_.createElement(At,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:_.createElement(ti,null)},this.props.cancel||j.t("ra_Cancel"))))}}class H8 extends T.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return _.createElement(co,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},_.createElement(po,{id:"ar_alert_dialog_title"},this.props.title||j.t("ra_Error")),_.createElement(uo,null,_.createElement(uh,{id:"ar_alert_dialog_description"},this.props.text||j.t("ra_Unknown error!"))),_.createElement(lo,null,_.createElement(At,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:_.createElement(li,null)},j.t("ra_Ok"))))}}const AG="Actions",NG="Append",PG="Cancel",IG="Categories",jG="Checked",zG="Delete",LG="Close",FG="Commercial",BG="Configure",WG="Connected",UG="Continue",qG="Copied",HG="Create",VG="Crop",GG="Delete",XG="Delete",JG="Discard",YG="Disconnected",KG="Error",ZG="Filter",QG="Friday",eX="Latitude",tX="Logout",rX="Longitude",nX="Message",oX="Monday",aX="Name",iX="Objects",sX="Ok",cX="Product",lX="Rename/Move/Copy",uX="Repeat",dX="Replace",pX="Root",fX="Saturday",hX="Save",mX="Selected",_X="States",gX="Sunday",yX="Thursday",vX="Timestamp",bX="Tuesday",wX="Update",SX="Valid till",xX="Value",kX="Version",CX="Wednesday",$X="Width",EX="Yes",TX="different",OX="Everyone can read object",DX="Everyone can read state",RX="Everyone can write object",MX="Everyone can write state",AX="Group can read object",NX="Group can read state",PX="Group can write object",IX="Group can write state",jX="Owner can read object",zX="Owner can read state",LX="Owner can write object",FX="Owner can write state",BX="Buttons",WX="Changed from",UX="close",qX="Create boolean state",HX="Create channel",VX="Create device",GX="Create number state",XX="Create state",JX="Create string state",YX="days",KX="Fr",ZX="Mo",QX="Sa",eJ="Su",tJ="Th",rJ="Tu",nJ="We",oJ="Expert mode",aJ="FALSE",iJ="All files",sJ="Audio",cJ="Code/JSON",lJ="Images",uJ="Text",dJ="Video",pJ="Settings",fJ="without",hJ="Function",mJ="ID",_J="Name",gJ="Role",yJ="Room",vJ="Type",bJ="Invalid settings",wJ="Last change",SJ="locally",xJ="Apr",kJ="Aug",CJ="Dec",$J="Feb",EJ="Jan",TJ="Jul",OJ="Jun",DJ="Mai",RJ="Mar",MJ="Nov",AJ="Oct",NJ="Sep",PJ="Apr",IJ="Aug",jJ="Dec",zJ="Feb",LJ="Jan",FJ="Jul",BJ="Jun",WJ="Mai",UJ="Mar",qJ="Nov",HJ="Oct",VJ="Sep",GJ="none",XJ="Object changed by",JJ="Object last changed at",YJ="Settings from other adapter %s",KJ="Quality code",ZJ="repeat",QJ='To select folder, just hold the key "shift" by clicking the folder.',eY="Show all",tY="State changed by",rY="Object changed from",nY="Timestamp",oY="Acknowledged",aY="Comment",iY="Copy the state value",sY="Hold Cltr/⌘ key to open the link",cY="Custom settings",lY="Delete object",uY="Edit object",dY="Edit the state value",pY="Expires in",fY="From",hY="Last changed",mY="Quality",_Y="Time stamp",gY="User",yY="Value",vY="TRUE",bY="Value",wY="Warning: The CRON job will run every minute during the specified period!",SY="Warning: The CRON job will run every second during the specified period!",xY="CRON",kY="Date",CY="Dates",$Y="Day",EY="Day of week",TY="Every",OY="every N days",DY="every Nth day of the week",RY="every N day of week",MY="every N hours",AY="every N minutes",NY="every N months",PY="every N seconds",IY="every day",jY="every day of the week",zY="every day of the week",LY="every hour",FY="every minute",BY="every month",WY="every second",UY="From",qY="Hours",HY="Interval",VY="Interval between",GY="Invalid CRON",XY="Minutes",JY="months",YY="Once",KY="Period",ZY="Seconds",QY="Simple",eK="Specific time",tK="specific dates",rK="specific day(s) of the week",nK="specific day of weeks",oK="specific hours",aK="specific minutes",iK="specific months",sK="specific seconds",cK="Time",lK="To",uK="Wizard",dK="all",pK="Astro day",fK="Astro night",hK="Dawn",mK="Dusk",_K="Golden hour",gK="Golden hour end",yK="Nadir",vK="Nautical dawn",bK="Nautical dusk",wK="Night",SK="Night end",xK="Solar noon",kK="Sunrise",CK="Sunrise end",$K="Sunset",EK="Sunset start",TK="at",OK="at %s",DK="every day",RK="every hour",MK="every minute",AK="every month",NK="every %s day",PK="every %s hours",IK="every %s minutes",jK="every %s months",zK="every %s weeks",LK="every %s years",FK="every week",BK="every year",WK="from %s to %s",UK="never",qK="on %s of %s",HK="on %s and %s of",VK="on every date of",GK="%s",XK="%s and %s",JK="on %s",YK="on %s and %s",KK="on weekends",ZK="on working days",QK="will ne be not executed any more, because start is in the past",eZ="on %s",tZ="from %s",rZ="Execute from to",nZ="to %s",oZ="every",aZ="Specific time",iZ="from",sZ="From-to",cZ="Interval time",lZ="invert",uZ="none",dZ="on",pZ="Period",fZ="Daily",hZ="Dates",mZ="Day",_Z="Every",gZ="Every day",yZ="Every month",vZ="Every week",bZ="Every year",wZ="Hours",SZ="Minutes",xZ="month",kZ="Monthly",CZ="Once",$Z="Specific months",EZ="Week",TZ="Weekdays",OZ="Weekend",DZ="Weekly",RZ="Workdays",MZ="Year",AZ="Yearly",NZ="Specific time",PZ="Time",IZ="to",jZ="Valid",zZ="from",LZ="to",FZ="Whole day",BZ="every month",WZ={"ra_%s links from aliases":"%s links from aliases","ra_%s object(s) processed":"%s object(s) processed","ra_%s was imported":"%s was imported","ra_Accept license":"Accept license",ra_Actions:AG,"ra_Add new child object to selected parent":"Add new child object to selected parent","ra_Add objects tree from JSON file":"Add objects tree from JSON file","ra_Add row":"Add row","ra_Advanced options":"Advanced options","ra_All items are filtered out":"All items are filtered out","ra_All objects":"All objects",ra_Append:NG,"ra_Append %s entries or replace existing?":"Append %s entries or replace existing?","ra_Append or replace?":"Append or replace?","ra_Are you sure?":"Are you sure?","ra_Auto (no custom columns)":"Auto (no custom columns)","ra_Back to %s":"Back to %s","ra_Background image":"Background image",ra_Cancel:PG,"ra_Cannot add items with set filter":"Cannot add items with set filter","ra_Cannot decode license":"Cannot decode license","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Cannot determine position: System settings are empty and GPS detection is disabled in browser",'ra_Cannot find "%s"':'Cannot find "%s"','ra_Cannot read "%s"':'Cannot read "%s"',"ra_Cannot read licenses: %s":"Cannot read licenses: %s","ra_Cannot retrieve options, as instance is offline":"Cannot retrieve options, as instance is offline","ra_Cannot update attribute, because not found in the object":"Cannot update attribute, because not found in the object","ra_Cannot upload":"Cannot upload",ra_Categories:IG,"ra_Chained certificate":"Chained certificate","ra_Change color theme":"Change color theme","ra_Changed from":"Changed from","ra_Channel → State":"Channel → State","ra_Check license":"Check license",ra_Checked:jG,ra_Clear:zG,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Click to see in full size":"Click to see in full size","ra_Click to show":"Click to show","ra_Clone current row":"Clone current row",ra_Close:LG,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:FG,ra_Configure:BG,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:WG,ra_Continue:UG,ra_Copied:qG,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:HG,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:VG,"ra_Define CRON...":"Define CRON...","ra_Define functions":"Define functions","ra_Define rooms":"Define rooms","ra_Define schedule":"Define schedule","ra_Define schedule...":"Define schedule...",ra_Del:GG,ra_Delete:XG,"ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State","ra_Disable/Enable translation":"Disable/Enable translation",ra_Discard:JG,ra_Disconnected:YG,"ra_Do not ask for next 2 hours in this session":"Do not ask for next 2 hours in this session","ra_Do not export values of states":"Do not export values of states","ra_Do not use let's encrypt":"Do not use let's encrypt","ra_Docker is not available":"Docker is not available","ra_Docker is not installed or not running":"Docker is not installed or not running","ra_Double click to reset table layout":"Double click to reset table layout","ra_Drag 'n' drop some files here, or click to select files":"Drag 'n' drop some files here, or click to select files","ra_Drop file here":"Drop file here","ra_Drop the files here...":"Drop the file here...","ra_Duplicate name":"Duplicate name","ra_Edit ACL":"Edit ACL","ra_Edit alias":"Edit alias","ra_Edit custom config":"Edit custom config","ra_Edit full path":"Edit full path","ra_Edit function":"Edit function","ra_Edit object field":"Edit object field","ra_Edit role":"Edit role","ra_Edit room":"Edit room","ra_Edit value":"Edit value","ra_Enter the code from that page here":"Enter the code from that page here",ra_Error:KG,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","ra_Expand/Collapse card":"Expand/Collapse card","ra_Export configuration section":"Export configuration section","ra_Export data to %s file":"Export data to %s file","ra_Failed to open JSON File":"Failed to open JSON File","ra_Fallback custom certificates":"Fallback custom certificates","ra_File is too big. Max %sk allowed. Try use SVG.":"File is too big. Max %sk allowed. Try use SVG.",ra_Filter:ZG,"ra_Filter and Data Actions":"Filter and Data Actions","ra_Filter files":"Filter files","ra_Folder name":"Folder name","ra_Folder → Channel → State":"Folder → Channel → State","ra_Folder → Device → Channel → State":"Folder → Device → Channel → State","ra_Folder → State":"Folder → State","ra_Folders always first":"Folders always first",ra_Friday:QG,"ra_From file":"From file","ra_From text":"From text","ra_Get %s access":"Get %s access","ra_Good luck":"Good luck","ra_Hide empty folders":"Hide empty folders","ra_If no file will be created in the folder, it will disappear after the browser closed":"If no file will be created in the folder, it will disappear after the browser closed","ra_If the button above does not work, you can authorize manually this app by visiting this url":"If the button above does not work, you can authorize manually this app by visiting this url","ra_Import and add configuration section":"Import and add configuration section","ra_Import and replace configuration section":"Import and replace configuration section","ra_Import data from %s file":"Import data from %s file","ra_Import from %s":"Import from %s","ra_Instance %s is alive":"Instance %s is alive","ra_Instance %s is not alive":"Instance %s is not alive","ra_Instance is not alive":"Instance is not alive","ra_Invalid CRON":"Invalid CRON","ra_Invalid JSON":"Invalid JSON","ra_Invalid JSON file.":"Invalid JSON file.","ra_Invalid JSON format. Expected an array.":"Invalid JSON format. Expected an array.","ra_Invalid answer from server":"Invalid answer from server","ra_Invalid parent folder!":"Invalid parent folder!","ra_Invalid structure":"Invalid structure","ra_JSON editor":"JSON editor","ra_Last change":"Last change",ra_Latitude:eX,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist","ra_License expired on %s":"License expired on %s",'ra_License for other product "%s"':'License for other product "%s"',"ra_License is for version %s, but required version is %s.":"License is for version %s, but required version is %s.","ra_License must be converted":"License must be converted to newer version. You can do it in your iobroker.net profile.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"License not found in the license manager. Do you want to update licenses from iobroker.net?","ra_Listen on all IPs":"Listen on all IPs","ra_Load configuration from file":"Load configuration from file",ra_Logout:tX,ra_Longitude:rX,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:nX,ra_Monday:oX,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:aX,"ra_No data found in file":"No data found in file","ra_No one license found in license manager":"No one license found in license manager","ra_No response from admin":"No response from admin","ra_No response from the backend":"No response from the backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Non-experts may create new objects only in "0_userdata.0" or "alias.0".',"ra_Not a number":"Not a number","ra_OAuth Client ID":"OAuth Client ID","ra_OAuth Client secret":"OAuth Client secret",ra_Objects:iX,ra_Ok:sX,"ra_On weekdays":"On weekdays","ra_Only following structures of objects are available:":"Only following structures of objects are available:","ra_Only selected":"Only selected","ra_Owner group":"Owner group","ra_Owner user":"Owner user","ra_Passwords are not equal!":"Passwords are not equal!","ra_Place your files here or click here to open the browse dialog":"Place your files here or click here to open the browse dialog","ra_Please allow popups in your browser for this page!":"Please allow popups in your browser for this page!","ra_Please confirm":"Please confirm","ra_Please create license":"Please create license","ra_Please enter the license":"Please enter the license","ra_Please select file...":"Please select file...","ra_Please select object ID...":"Please select object ID...","ra_Port could be used by %s":"Port could be used by %s","ra_Port is already used by %s":"Port is already used by %s","ra_Press ENTER Key to add new item":"Press ENTER Key to add new item","ra_Private certificate":"Private certificate",ra_Product:cX,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Rename_Move_Copy:lX,"ra_Renew %s access":"Renew %s access",ra_Repeat:uX,ra_Replace:dX,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:pX,ra_Saturday:fX,ra_Save:hX,"ra_Save and close":"Save and close","ra_Save configuration to file":"Save configuration to file","ra_Save objects tree as JSON file":"Save objects tree as JSON file","ra_Select all":"Select all","ra_Select color":"Select color","ra_Select predefined icon":"Select predefined icon","ra_Select type of export":"Select type of export",ra_Selected:mX,"ra_Selected %s object(s)":"Selected %s object(s)","ra_Serial number (UUID)":"Serial number (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Serial number (UUID) "%s" in license is for other device.',"ra_Session will expire in %s seconds. Continue?":"Session will expire in %s seconds. Continue?","ra_Show all folders":"Show all folders","ra_Show lines between rows":"Show lines between rows","ra_Show/Hide object descriptions":"Show/Hide object descriptions","ra_Show/hide filter input":"Show/hide filter input","ra_Some data are not stored. Discard?":"Some data are not stored. Discard?",ra_States:_X,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Successfully authorized. Token valid till %s and will be automatically renewed.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Successfully authorized. Token valid till %s but it can expire as the instance is not running.","ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:gX,"ra_Suppress question for next %s minutes":"Suppress question for next %s minutes","ra_System language":"System language","ra_Take browser position":"Take position from browser","ra_Take position from system settings":"Take position from system settings",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").',"ra_The page you are looking for was not found":"The page you are looking for was not found","ra_The schedule will be executed every minute. Are you sure?":"The schedule will be executed every minute. Are you sure?","ra_The schedule will be executed every second. Are you sure?":"The schedule will be executed every second. Are you sure?",ra_Thursday:yX,ra_Timestamp:vX,"ra_Toggle expert mode":"Toggle expert mode","ra_Toggle the states view":"Toggle the states view","ra_Toggle view mode":"Toggle view mode","ra_Too big":"Too big","ra_Too small":"Too small","ra_Transparent dialog":"Transparent dialog",ra_Tuesday:bX,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:wX,"ra_Upload file":"Upload file","ra_Use all available let's encrypt certificates":"Use all available let's encrypt certificates","ra_Use iobroker.acme adapter for letsencrypt certificates":"Use iobroker.acme adapter for letsencrypt certificates","ra_Use system settings for position":"Use system settings for position","ra_Used system settings":"Used system settings","ra_User files":"User files",ra_ValidTill:SX,ra_Value:xX,ra_Version:kX,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:CX,ra_Width:$X,"ra_YAML editor":"YAML editor",ra_Yes:EX,"ra_You can export all objects or just the selected branch.":"You can export all objects or just the selected branch.","ra_You can filter entries by entering here some text":"You can filter entries by entering here some text","ra_You can use * as wildcard":"You can use * as wildcard",ra___different__:TX,ra_aclEveryone_read_object:OX,ra_aclEveryone_read_state:DX,ra_aclEveryone_write_object:RX,ra_aclEveryone_write_state:MX,ra_aclGroup_read_object:AX,ra_aclGroup_read_state:NX,ra_aclGroup_write_object:PX,ra_aclGroup_write_state:IX,ra_aclOwner_read_object:jX,ra_aclOwner_read_state:zX,ra_aclOwner_write_object:LX,ra_aclOwner_write_state:FX,ra_buttons:BX,ra_changedFrom:WX,ra_close:UX,ra_create_boolean_state:qX,ra_create_channel:HX,ra_create_device:VX,ra_create_number_state:GX,ra_create_state:XX,ra_create_string_state:JX,ra_daysShortText:YX,ra_dow_Fr:KX,ra_dow_Mo:ZX,ra_dow_Sa:QX,ra_dow_Su:eJ,ra_dow_Th:tJ,ra_dow_Tu:rJ,ra_dow_We:nJ,ra_expertMode:oJ,ra_false:aJ,ra_fileType_all:iJ,ra_fileType_audio:sJ,ra_fileType_code:cJ,ra_fileType_images:lJ,ra_fileType_txt:uJ,ra_fileType_video:dJ,"ra_fileType_video,":"Video",ra_filter_customs:pJ,ra_filter_customs_without:fJ,ra_filter_func:hJ,ra_filter_id:mJ,ra_filter_name:_J,ra_filter_role:gJ,ra_filter_room:yJ,ra_filter_type:vJ,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:bJ,ra_lastChange:wJ,ra_locally:SJ,ra_month_Apr:xJ,ra_month_Aug:kJ,ra_month_Dec:CJ,ra_month_Feb:$J,ra_month_Jan:EJ,ra_month_Jul:TJ,ra_month_Jun:OJ,ra_month_Mai:DJ,ra_month_Mar:RJ,ra_month_Nov:MJ,ra_month_Oct:AJ,ra_month_Sep:NJ,ra_months_Apr:PJ,ra_months_Aug:IJ,ra_months_Dec:jJ,ra_months_Feb:zJ,ra_months_Jan:LJ,ra_months_Jul:FJ,ra_months_Jun:BJ,ra_months_Mai:WJ,ra_months_Mar:UJ,ra_months_Nov:qJ,ra_months_Oct:HJ,ra_months_Sep:VJ,"ra_no confirm for 5 mins":"no confirm for 5 mins",ra_none:GJ,ra_object_changed_by:XJ,ra_object_changed_by_user:JJ,ra_otherConfig:YJ,ra_qualityCode:KJ,ra_repeat:ZJ,ra_select_folder_hint:QJ,ra_show_all:eY,ra_state_changed_by:tY,ra_state_changed_from:rY,ra_timestamp:nY,ra_tooltip_ack:oY,ra_tooltip_comment:aY,ra_tooltip_copyState:iY,ra_tooltip_ctrlForLink:sY,ra_tooltip_customConfig:cY,ra_tooltip_deleteObject:lY,ra_tooltip_editObject:uY,ra_tooltip_editState:dY,ra_tooltip_expire:pY,ra_tooltip_from:fY,ra_tooltip_lc:hY,ra_tooltip_quality:mY,ra_tooltip_ts:_Y,ra_tooltip_user:gY,ra_tooltip_value:yY,ra_true:vY,"ra_use seconds":"use seconds",ra_val:bY,"ra_via internet":"via internet",ra_warning_every_minute:wY,ra_warning_every_second:SY,sc_cron:xY,sc_date:kY,sc_dates:CY,sc_dow:$Y,sc_dows:EY,sc_every:TY,sc_everyN_dates:OY,sc_everyN_dow:DY,sc_everyN_dows:RY,sc_everyN_hours:MY,sc_everyN_minutes:AY,sc_everyN_months:NY,sc_everyN_seconds:PY,sc_every_dates:IY,sc_every_dow:jY,sc_every_dows:zY,sc_every_hours:LY,sc_every_minutes:FY,sc_every_months:BY,sc_every_seconds:WY,sc_from:UY,sc_hours:qY,sc_interval:HY,sc_intervalBetween:VY,sc_invalid_cron:GY,sc_minutes:XY,sc_months:JY,sc_once:YY,sc_period:KY,sc_seconds:ZY,sc_simple:QY,sc_specific:eK,sc_specific_dates:tK,sc_specific_dow:rK,sc_specific_dows:nK,sc_specific_hours:oK,sc_specific_minutes:aK,sc_specific_months:iK,sc_specific_seconds:sK,sc_time:cK,sc_to:lK,sc_wizard:uK,sch_all:dK,sch_astroDay:pK,sch_astroNight:fK,sch_astro_dawn:hK,sch_astro_dusk:mK,sch_astro_goldenHour:_K,sch_astro_goldenHourEnd:gK,sch_astro_nadir:yK,sch_astro_nauticalDawn:vK,sch_astro_nauticalDusk:bK,sch_astro_night:wK,sch_astro_nightEnd:SK,sch_astro_solarNoon:xK,sch_astro_sunrise:kK,sch_astro_sunriseEnd:CK,sch_astro_sunset:$K,sch_astro_sunsetStart:EK,sch_at:TK,sch_desc_atTime:OK,sch_desc_everyDay:DK,sch_desc_everyHour:RK,sch_desc_everyMinute:MK,sch_desc_everyMonth:AK,sch_desc_everyNDay:NK,sch_desc_everyNHours:PK,sch_desc_everyNMinutes:IK,sch_desc_everyNMonths:jK,sch_desc_everyNWeeks:zK,sch_desc_everyNYears:LK,sch_desc_everyWeek:FK,sch_desc_everyYear:BK,sch_desc_intervalFromTo:WK,sch_desc_never:UK,sch_desc_onDate:qK,sch_desc_onDates:HK,sch_desc_onEveryDate:VK,sch_desc_onMonth:GK,sch_desc_onMonths:XK,sch_desc_onWeekday:JK,sch_desc_onWeekdays:YK,sch_desc_onWeekends:KK,sch_desc_onWorkdays:ZK,sch_desc_onceInPast:QK,sch_desc_once_on:eZ,sch_desc_validFrom:tZ,sch_desc_validFromTo:rZ,sch_desc_validTo:nZ,sch_every:oZ,sch_exactTime:aZ,sch_from:iZ,sch_fromTo:sZ,sch_intervalTime:cZ,sch_invert:lZ,sch_no_one:uZ,sch_on:dZ,sch_period:pZ,sch_periodDaily:fZ,sch_periodDates:hZ,sch_periodDay:mZ,sch_periodEvery:_Z,sch_periodEveryDay:gZ,sch_periodEveryMonth:yZ,sch_periodEveryWeek:vZ,sch_periodEveryYear:bZ,sch_periodHours:wZ,sch_periodMinutes:SZ,sch_periodMonth:xZ,sch_periodMonthly:kZ,sch_periodOnce:CZ,sch_periodSpecificMonths:$Z,sch_periodWeek:EZ,sch_periodWeekdays:TZ,sch_periodWeekend:OZ,sch_periodWeekly:DZ,sch_periodWorkdays:RZ,sch_periodYear:MZ,sch_periodYearly:AZ,sch_specificTime:NZ,sch_time:PZ,sch_to:IZ,sch_valid:jZ,sch_validFrom:zZ,sch_validTo:LZ,sch_wholeDay:FZ,sch_yearEveryMonth:BZ},UZ="Aktionen",qZ="Anhängen",HZ="Abbrechen",VZ="Kategorien",GZ="Geprüft",XZ="Löschen",JZ="Schließen",YZ="Kommerziell",KZ="Konfigurieren",ZZ="Verbunden",QZ="Weitermachen",eQ="Kopiert",tQ="Erstellen",rQ="Ernte",nQ="Entf",oQ="Löschen",aQ="Verwerfen",iQ="Getrennt",sQ="Fehler",cQ="Filter",lQ="Freitag",uQ="Breite",dQ="Ausloggen",pQ="Längengrad",fQ="Meldung",hQ="Montag",mQ="Name",_Q="Objekte",gQ="OK",yQ="Produkt",vQ="Umbenennen/Verschieben/Kopieren",bQ="Wiederholen",wQ="Ersetzen",SQ="Anfang",xQ="Samstag",kQ="Speichern",CQ="Ausgewählt",$Q="Zustände",EQ="Sonntag",TQ="Donnerstag",OQ="Zeitstempel",DQ="Dienstag",RQ="Aktualisieren",MQ="Gültig bis",AQ="Wert",NQ="Ausführung",PQ="Mittwoch",IQ="Breite",jQ="Ja",zQ="unterschiedlich",LQ="Jeder kann Objekt lesen",FQ="Jeder kann Zustand lesen",BQ="Jeder kann ein Objekt schreiben",WQ="Jeder kann Zustand schreiben",UQ="Gruppe kann Objekt lesen",qQ="Gruppe kann Status lesen",HQ="Gruppe kann Objekt schreiben",VQ="Gruppe kann Status schreiben",GQ="Besitzer kann Objekt lesen",XQ="Besitzer kann Zustand lesen",JQ="Besitzer kann Objekt schreiben",YQ="Besitzer kann Zustand schreiben",KQ="Tasten",ZQ="Geändert von",QQ="Schließen",eee="Booleschen Zustand erstellen",tee="Kanal erstellen",ree="Gerät erstellen",nee="Nummern-Zustand erstellen",oee="Zustand erstellen",aee="String-Zustand erstellen",iee="T.",see="Fr",cee="Mo",lee="Sa",uee="So",dee="Do",pee="Di",fee="Mi",hee="Expertenmodus",mee="FALSCH",_ee="Alle Dateien",gee="Audio",yee="Code/JSON",vee="Bilder",bee="Text",wee="Video",See="Einstellungen",xee="ohne",kee="Funktion",Cee="ID",$ee="Name",Eee="Rolle",Tee="Raum",Oee="Typ",Dee="Ungültige Einstellungen",Ree="Letzte Änderung",Mee="örtlich",Aee="Apr",Nee="Aug",Pee="Dez",Iee="Feb",jee="Jan",zee="Jul",Lee="Jun",Fee="Mai",Bee="Mär",Wee="Nov",Uee="Okt",qee="Sep",Hee="Apr",Vee="Aug",Gee="Dez",Xee="Feb",Jee="Jan",Yee="Jul",Kee="Jun",Zee="Mai",Qee="Mär",ete="Nov",tte="Okt",rte="Sep",nte="kein",ote="Objekt geändert von",ate="Objekt zuletzt geändert um",ite="Einstellungen von anderen Adaptern %s",ste="Qualitätscode",cte="wiederholen",lte='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',ute="Alle anzeigen",dte="Zustand geändert durch",pte="Objekt geändert von",fte="Zeitstempel",hte="Bestätigt",mte="Kommentar",_te="Statuswert kopieren",gte="Strg/⌘-Taste gedrückt halten, um den Link zu öffnen",yte="Benutzerdefinierte Einstellungen",vte="Objekt löschen",bte="Objekt bearbeiten",wte="Statuswert bearbeiten",Ste="Läuft ab in",xte="Von",kte="Zuletzt geändert",Cte="Qualität",$te="Zeitstempel",Ete="Benutzer",Tte="Wert",Ote="WAHR",Dte="Wert",Rte="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",Mte="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",Ate="CRON",Nte="Datum",Pte="Tage",Ite="Tag",jte="Wochentage",zte="Jeden",Lte="alle N Tage",Fte="jeden x-ten Tag der Woche",Bte="alle N Wochentage",Wte="alle N Stunden",Ute="alle N Minuten",qte="alle N Monate",Hte="alle N Sekunden",Vte="jeden Tag",Gte="jeden Tag der Woche",Xte="jeden Tag der Woche",Jte="jede Stunde",Yte="jede Minute",Kte="jeden Monat",Zte="jede Sekunde",Qte="Von",ere="Stunden",tre="Intervall",rre="Intervall zwischen",nre="Ungültiger CRON",ore="Minuten",are="Monate",ire="Einmal",sre="Zeitraum",cre="Sekunden",lre="Einfach",ure="Bestimmte Zeit",dre="bestimmte Tage",pre="bestimmte(r) Tag(e) der Woche",fre="bestimmten Wochentag",hre="bestimmte Stunden",mre="bestimmte Minuten",_re="bestimmte Monate",gre="bestimmte Sekunden",yre="Zeit",vre="Bis",bre="Wizard",wre="alle",Sre="Astronomischer Tag",xre="Astronomische Nacht",kre="Morgendämmerung",Cre="Abenddämmerung",$re="Goldene Stunde",Ere="Goldene Stundenende",Tre="Nadir",Ore="Nautische Morgendämmerung",Dre="Nautische Abenddämmerung",Rre="Nacht",Mre="Nachtende",Are="Sonnenmittag",Nre="Sonnenaufgang",Pre="Sonnenaufgangende",Ire="Sonnenuntergang",jre="Sonnenuntergangstart",zre="am",Lre="um %s",Fre="jeden Tag",Bre="jede Stunde",Wre="jede Minute",Ure="jeden Monat",qre="jeden %s Tag",Hre="alle %s Stunden",Vre="alle %s Minuten",Gre="alle %s Monate",Xre="alle %s Wochen",Jre="alle %s Jahre",Yre="jede Woche",Kre="jedes Jahr",Zre="von %s bis %s",Qre="noch nie",ene="am %s von %s",tne="am %s und %s von",rne="an jedem Datum von",nne="%s",one="%s und %s",ane="auf %s",ine="auf %s und %s",sne="an Wochenenden",cne="an Werktagen",lne="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",une="auf %s",dne="von %s",pne="Ausführen von bis",fne="bis %s",hne="jeden",mne="Bestimmte Zeit",_ne="von",gne="Von bis",yne="Zeitintervall",vne="umkehren",bne="keiner",wne="am",Sne="Zeitraum",xne="Täglich",kne="Daten",Cne="Tag",$ne="Jeden",Ene="Jeden Tag",Tne="Jeden Monat",One="Jede Woche",Dne="Jedes Jahr",Rne="Stunden",Mne="Minuten",Ane="Monat",Nne="Monatlich",Pne="Einmal",Ine="Bestimmte Monate",jne="Woche",zne="Wochentage",Lne="Wochenende",Fne="Wöchentlich",Bne="Arbeitstage",Wne="Jahr",Une="Jährlich",qne="Bestimmte Zeit",Hne="Zeit",Vne="zu",Gne="Gültigkeit",Xne="von",Jne="bis",Yne="Ganzer Tag",Kne="jeden Monat",Zne={"ra_%s links from aliases":"%s Links von Aliasen","ra_%s object(s) processed":"%s Objekt(e) verarbeitet","ra_%s was imported":"%s wurde importiert","ra_Accept license":"Lizenz akzeptieren",ra_Actions:UZ,"ra_Add new child object to selected parent":"Dem ausgewählten übergeordneten Objekt ein neues untergeordnetes Objekt hinzufügen","ra_Add objects tree from JSON file":"Objektbaum aus JSON-Datei hinzufügen","ra_Add row":"Zeile hinzufügen","ra_Advanced options":"Erweiterte Optionen","ra_All items are filtered out":"Alle Elemente sind herausgefiltert","ra_All objects":"Alle Objekte",ra_Append:qZ,"ra_Append %s entries or replace existing?":"%s Einträge anhängen oder vorhandene ersetzen?","ra_Append or replace?":"Anhängen oder ersetzen?","ra_Are you sure?":"Bist du sicher?","ra_Auto (no custom columns)":"Auto (keine benutzerdefinierten Spalten)","ra_Back to %s":"Zurück zu %s","ra_Background image":"Hintergrundbild",ra_Cancel:HZ,"ra_Cannot add items with set filter":"Elemente mit festgelegtem Filter können nicht hinzugefügt werden","ra_Cannot decode license":"Lizenz kann nicht entschlüsselt werden","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Position kann nicht bestimmt werden: Die Systemeinstellungen sind leer und die GPS-Erkennung ist im Browser deaktiviert",'ra_Cannot find "%s"':'Kann "%s" nicht finden','ra_Cannot read "%s"':'"%s" kann nicht gelesen werden',"ra_Cannot read licenses: %s":"Lizenzen können nicht gelesen werden: %s","ra_Cannot retrieve options, as instance is offline":"Optionen können nicht abgerufen werden, da die Instanz offline ist","ra_Cannot update attribute, because not found in the object":"Attribut kann nicht aktualisiert werden, da es nicht im Objekt gefunden wurde","ra_Cannot upload":"Kann nicht hochladen",ra_Categories:VZ,"ra_Chained certificate":"Chained Zertifikat","ra_Change color theme":"Farbthema ändern","ra_Changed from":"Geändert von","ra_Channel → State":"Kanal → Zustand","ra_Check license":"Lizenz prüfen",ra_Checked:GZ,ra_Clear:XZ,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Click to see in full size":"Klicken Sie hier, um die Vollbildansicht zu öffnen.","ra_Click to show":"Zum Anzeigen klicken","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:JZ,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:YZ,ra_Configure:KZ,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:ZZ,ra_Continue:QZ,ra_Copied:eQ,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:tQ,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:rQ,"ra_Define CRON...":"Definieren Sie CRON ...","ra_Define functions":"Funktionen definieren","ra_Define rooms":"Räume definieren","ra_Define schedule":"Zeitplan definieren","ra_Define schedule...":"Zeitplan definieren ...",ra_Del:nQ,ra_Delete:oQ,"ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand","ra_Disable/Enable translation":"Übersetzung deaktivieren/aktivieren",ra_Discard:aQ,ra_Disconnected:iQ,"ra_Do not ask for next 2 hours in this session":"Fragen Sie nicht nach den nächsten 2 Stunden in dieser Sitzung","ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","ra_Docker is not available":"Docker ist nicht verfügbar","ra_Docker is not installed or not running":"Docker ist nicht installiert oder läuft nicht","ra_Double click to reset table layout":"Doppelklicken, um das Tabellenlayout zurückzusetzen","ra_Drag 'n' drop some files here, or click to select files":"Die Datei hierher ziehen und ablegen, oder klicken, um die Datei auszuwählen","ra_Drop file here":"Datei hier ablegen","ra_Drop the files here...":"Datei hier ablegen...","ra_Duplicate name":"Doppelter Name","ra_Edit ACL":"ACL bearbeiten","ra_Edit alias":"Alias bearbeiten","ra_Edit custom config":"Bearbeite Benutzerdefinierte Konfiguration","ra_Edit full path":"Vollständigen Pfad bearbeiten","ra_Edit function":"Funktion bearbeiten","ra_Edit object field":"Objektfeld bearbeiten","ra_Edit role":"Rolle bearbeiten","ra_Edit room":"Raum bearbeiten","ra_Edit value":"Wert bearbeiten","ra_Enter the code from that page here":"Geben Sie den Code von dieser Seite hier ein",ra_Error:sQ,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","ra_Expand/Collapse card":"Karte ein-/ausklappen","ra_Export configuration section":"Konfigurationsabschnitt exportieren","ra_Export data to %s file":"Daten in %s-Datei exportieren","ra_Failed to open JSON File":"Fehler beim Öffnen der JSON-Datei","ra_Fallback custom certificates":"Benutzerdefinierte Fallback-Zertifikate","ra_File is too big. Max %sk allowed. Try use SVG.":"Datei ist zu groß. Max %sk erlaubt. Versuchen Sie, SVG zu verwenden.",ra_Filter:cQ,"ra_Filter and Data Actions":"Filter- und Datenaktionen","ra_Filter files":"Dateien filtern","ra_Folder name":"Ordnernamen","ra_Folder → Channel → State":"Ordner → Kanal → Zustand","ra_Folder → Device → Channel → State":"Ordner → Gerät → Kanal → Zustand","ra_Folder → State":"Ordner → Zustand","ra_Folders always first":"Ordner immer zuerst",ra_Friday:lQ,"ra_From file":"Aus der Datei","ra_From text":"Aus dem Text","ra_Get %s access":"%s Zugriff erhalten","ra_Good luck":"Viel Glück","ra_Hide empty folders":"Leere Ordner ausblenden","ra_If no file will be created in the folder, it will disappear after the browser closed":"Wenn im Ordner keine Datei erstellt wird, verschwindet dieser nach dem Schließen des Browsers","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Wenn die Schaltfläche oben nicht funktioniert, können Sie diese App manuell autorisieren, indem Sie diese URL besuchen","ra_Import and add configuration section":"Konfigurationsabschnitt importieren und hinzufügen","ra_Import and replace configuration section":"Konfigurationsabschnitt importieren und ersetzen","ra_Import data from %s file":"Daten aus %s-Datei importieren","ra_Import from %s":"Von %s importieren","ra_Instance %s is alive":"Instanz %s ist aktiv","ra_Instance %s is not alive":"Instanz %s ist nicht aktiv","ra_Instance is not alive":"Instanz ist nicht am Leben","ra_Invalid CRON":"Ungültiger CRON","ra_Invalid JSON":"Ungültiges JSON","ra_Invalid JSON file.":"Ungültige JSON-Datei.","ra_Invalid JSON format. Expected an array.":"Ungültiges JSON-Format. Array erwartet.","ra_Invalid answer from server":"Ungültige Antwort vom Server","ra_Invalid parent folder!":"Ungültiger übergeordneter Ordner!","ra_Invalid structure":"Ungültige Struktur","ra_JSON editor":"JSON-Editor","ra_Last change":"Letzte Änderung",ra_Latitude:uQ,"ra_License %s":"Lizenz %s","ra_License agreement":"Lizenzvereinbarung","ra_License does not exist":"Lizenz existiert nicht","ra_License expired on %s":"Lizenz am %s abgelaufen",'ra_License for other product "%s"':"Lizenz für anderes Produkt „%s“","ra_License is for version %s, but required version is %s.":"Lizenz ist für Version %s, aber erforderliche Version ist %s.","ra_License must be converted":"Die Lizenz muss auf eine neuere Version konvertiert werden. Sie können dies in Ihrem iobroker.net-Profil tun.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Lizenz im Lizenzmanager nicht gefunden. Möchten Sie Lizenzen von iobroker.net aktualisieren?","ra_Listen on all IPs":"Zugriff von allen IPs zulassen","ra_Load configuration from file":"Konfiguration aus Datei laden",ra_Logout:dQ,ra_Longitude:pQ,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:fQ,ra_Monday:hQ,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:mQ,"ra_No data found in file":"Keine Daten in der Datei gefunden","ra_No one license found in license manager":"Im Lizenzmanager wurde keine Lizenz gefunden","ra_No response from admin":"Keine Antwort vom Administrator","ra_No response from the backend":"Keine Antwort vom Backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Nicht-Experten dürfen neue Objekte nur in "0_userdata.0" oder "alias.0" erstellen.',"ra_Not a number":"Keine Nummer","ra_OAuth Client ID":"OAuth-Client-ID","ra_OAuth Client secret":"OAuth-Client-Secret",ra_Objects:_Q,ra_Ok:gQ,"ra_On weekdays":"An Wochentagen","ra_Only following structures of objects are available:":"Es stehen nur folgende Objektstrukturen zur Verfügung:","ra_Only selected":"Nur ausgewählt","ra_Owner group":"Besitzergruppe","ra_Owner user":"Besitzer Benutzer","ra_Passwords are not equal!":"Passwörter sind nicht gleich!","ra_Place your files here or click here to open the browse dialog":"Die Dateien hier platzieren oder hier klicken, um den Suchdialog zu öffnen","ra_Please allow popups in your browser for this page!":"Bitte lassen Sie Popups für diese Seite in Ihrem Browser zu!","ra_Please confirm":"Bitte bestätigen","ra_Please create license":"Bitte erstellen Sie eine Lizenz","ra_Please enter the license":"Bitte die Lizenz eingeben","ra_Please select file...":"Bitte Datei auswählen...","ra_Please select object ID...":"Bitte Objekt-ID auswählen...","ra_Port could be used by %s":"Port könnte von %s verwendet werden","ra_Port is already used by %s":"Port wird bereits von %s verwendet","ra_Press ENTER Key to add new item":"Die Eingabetaste drücken, um ein neues Element hinzuzufügen","ra_Private certificate":"Privates Zertifikat",ra_Product:yQ,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Rename_Move_Copy:vQ,"ra_Renew %s access":"%s Zugriff erneuern",ra_Repeat:bQ,ra_Replace:wQ,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:SQ,ra_Saturday:xQ,ra_Save:kQ,"ra_Save and close":"Speichern und schließen","ra_Save configuration to file":"Konfiguration in Datei speichern","ra_Save objects tree as JSON file":"Objektbaum als JSON-Datei speichern","ra_Select all":"Alle auswählen","ra_Select color":"Wähle Farbe","ra_Select predefined icon":"Vordefiniertes Symbol auswählen","ra_Select type of export":"Die Art des Exports auswählen ",ra_Selected:CQ,"ra_Selected %s object(s)":"Ausgewählt %s Objekt(en)","ra_Serial number (UUID)":"Seriennummer (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':"Seriennummer (UUID) „%s“ in der Lizenz gilt für ein anderes Gerät.","ra_Session will expire in %s seconds. Continue?":"Die Sitzung läuft in %s Sekunden ab. Fortfahren?","ra_Show all folders":"Alle Ordner anzeigen","ra_Show lines between rows":"Linien zwischen Zeilen anzeigen","ra_Show/Hide object descriptions":"Objektbeschreibungen ein-/ausblenden","ra_Show/hide filter input":"Filtereingabe ein-/ausblenden","ra_Some data are not stored. Discard?":"Einige Daten werden nicht gespeichert. Verwerfen?",ra_States:$Q,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Erfolgreich autorisiert. Token gültig bis %s und wird automatisch erneuert.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Erfolgreich autorisiert. Token gültig bis %s, kann aber ablaufen, da die Instanz nicht ausgeführt wird.","ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:EQ,"ra_Suppress question for next %s minutes":"Frage für die nächsten %s Minuten unterdrücken","ra_System language":"Systemsprache","ra_Take browser position":"Position vom Browser einnehmen","ra_Take position from system settings":"Position aus den Systemeinstellungen übernehmen",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Die Experten können Objekte überall erstellen, außer auf der zweiten Ebene (z. B. "vis.0" oder "javascript.0").',"ra_The page you are looking for was not found":"Die gesuchte Seite wurde nicht gefunden","ra_The schedule will be executed every minute. Are you sure?":"Der Zeitplan wird jede Minute ausgeführt. Sind Sie sicher?","ra_The schedule will be executed every second. Are you sure?":"Der Zeitplan wird jede Sekunde ausgeführt. Sind Sie sicher?",ra_Thursday:TQ,ra_Timestamp:OQ,"ra_Toggle expert mode":"Expertenmodus umschalten","ra_Toggle the states view":"Statusansicht umschalten","ra_Toggle view mode":"Ansichtsmodus umschalten","ra_Too big":"Zu groß","ra_Too small":"Zu klein","ra_Transparent dialog":"Transparenter Dialog",ra_Tuesday:DQ,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:RQ,"ra_Upload file":"Datei hochladen","ra_Use all available let's encrypt certificates":"Alle verfügbaren Zertifikate von Let's encrypt benutzen","ra_Use iobroker.acme adapter for letsencrypt certificates":"ioBroker.acme-Adapter für letsencrypt-Zertifikate verwenden","ra_Use system settings for position":"Systemeinstellungen für die Position verwenden","ra_Used system settings":"Systemeinstellungen","ra_User files":"Benutzerdaten",ra_ValidTill:MQ,ra_Value:AQ,ra_Version:NQ,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:PQ,ra_Width:IQ,"ra_YAML editor":"YAML-Editor",ra_Yes:jQ,"ra_You can export all objects or just the selected branch.":"Sie können alle Objekte oder nur den ausgewählten Zweig exportieren.","ra_You can filter entries by entering here some text":"Sie können Einträge filtern, indem Sie hier Text eingeben","ra_You can use * as wildcard":"Sie können * als Platzhalter verwenden",ra___different__:zQ,ra_aclEveryone_read_object:LQ,ra_aclEveryone_read_state:FQ,ra_aclEveryone_write_object:BQ,ra_aclEveryone_write_state:WQ,ra_aclGroup_read_object:UQ,ra_aclGroup_read_state:qQ,ra_aclGroup_write_object:HQ,ra_aclGroup_write_state:VQ,ra_aclOwner_read_object:GQ,ra_aclOwner_read_state:XQ,ra_aclOwner_write_object:JQ,ra_aclOwner_write_state:YQ,ra_buttons:KQ,ra_changedFrom:ZQ,ra_close:QQ,ra_create_boolean_state:eee,ra_create_channel:tee,ra_create_device:ree,ra_create_number_state:nee,ra_create_state:oee,ra_create_string_state:aee,ra_daysShortText:iee,ra_dow_Fr:see,ra_dow_Mo:cee,ra_dow_Sa:lee,ra_dow_Su:uee,ra_dow_Th:dee,ra_dow_Tu:pee,ra_dow_We:fee,ra_expertMode:hee,ra_false:mee,ra_fileType_all:_ee,ra_fileType_audio:gee,ra_fileType_code:yee,ra_fileType_images:vee,ra_fileType_txt:bee,ra_fileType_video:wee,"ra_fileType_video,":"Video",ra_filter_customs:See,ra_filter_customs_without:xee,ra_filter_func:kee,ra_filter_id:Cee,ra_filter_name:$ee,ra_filter_role:Eee,ra_filter_room:Tee,ra_filter_type:Oee,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:Dee,ra_lastChange:Ree,ra_locally:Mee,ra_month_Apr:Aee,ra_month_Aug:Nee,ra_month_Dec:Pee,ra_month_Feb:Iee,ra_month_Jan:jee,ra_month_Jul:zee,ra_month_Jun:Lee,ra_month_Mai:Fee,ra_month_Mar:Bee,ra_month_Nov:Wee,ra_month_Oct:Uee,ra_month_Sep:qee,ra_months_Apr:Hee,ra_months_Aug:Vee,ra_months_Dec:Gee,ra_months_Feb:Xee,ra_months_Jan:Jee,ra_months_Jul:Yee,ra_months_Jun:Kee,ra_months_Mai:Zee,ra_months_Mar:Qee,ra_months_Nov:ete,ra_months_Oct:tte,ra_months_Sep:rte,"ra_no confirm for 5 mins":"5 Minuten lang keine Bestätigung",ra_none:nte,ra_object_changed_by:ote,ra_object_changed_by_user:ate,ra_otherConfig:ite,ra_qualityCode:ste,ra_repeat:cte,ra_select_folder_hint:lte,ra_show_all:ute,ra_state_changed_by:dte,ra_state_changed_from:pte,ra_timestamp:fte,ra_tooltip_ack:hte,ra_tooltip_comment:mte,ra_tooltip_copyState:_te,ra_tooltip_ctrlForLink:gte,ra_tooltip_customConfig:yte,ra_tooltip_deleteObject:vte,ra_tooltip_editObject:bte,ra_tooltip_editState:wte,ra_tooltip_expire:Ste,ra_tooltip_from:xte,ra_tooltip_lc:kte,ra_tooltip_quality:Cte,ra_tooltip_ts:$te,ra_tooltip_user:Ete,ra_tooltip_value:Tte,ra_true:Ote,"ra_use seconds":"Sekunden benutzen",ra_val:Dte,"ra_via internet":"übers Internet",ra_warning_every_minute:Rte,ra_warning_every_second:Mte,sc_cron:Ate,sc_date:Nte,sc_dates:Pte,sc_dow:Ite,sc_dows:jte,sc_every:zte,sc_everyN_dates:Lte,sc_everyN_dow:Fte,sc_everyN_dows:Bte,sc_everyN_hours:Wte,sc_everyN_minutes:Ute,sc_everyN_months:qte,sc_everyN_seconds:Hte,sc_every_dates:Vte,sc_every_dow:Gte,sc_every_dows:Xte,sc_every_hours:Jte,sc_every_minutes:Yte,sc_every_months:Kte,sc_every_seconds:Zte,sc_from:Qte,sc_hours:ere,sc_interval:tre,sc_intervalBetween:rre,sc_invalid_cron:nre,sc_minutes:ore,sc_months:are,sc_once:ire,sc_period:sre,sc_seconds:cre,sc_simple:lre,sc_specific:ure,sc_specific_dates:dre,sc_specific_dow:pre,sc_specific_dows:fre,sc_specific_hours:hre,sc_specific_minutes:mre,sc_specific_months:_re,sc_specific_seconds:gre,sc_time:yre,sc_to:vre,sc_wizard:bre,sch_all:wre,sch_astroDay:Sre,sch_astroNight:xre,sch_astro_dawn:kre,sch_astro_dusk:Cre,sch_astro_goldenHour:$re,sch_astro_goldenHourEnd:Ere,sch_astro_nadir:Tre,sch_astro_nauticalDawn:Ore,sch_astro_nauticalDusk:Dre,sch_astro_night:Rre,sch_astro_nightEnd:Mre,sch_astro_solarNoon:Are,sch_astro_sunrise:Nre,sch_astro_sunriseEnd:Pre,sch_astro_sunset:Ire,sch_astro_sunsetStart:jre,sch_at:zre,sch_desc_atTime:Lre,sch_desc_everyDay:Fre,sch_desc_everyHour:Bre,sch_desc_everyMinute:Wre,sch_desc_everyMonth:Ure,sch_desc_everyNDay:qre,sch_desc_everyNHours:Hre,sch_desc_everyNMinutes:Vre,sch_desc_everyNMonths:Gre,sch_desc_everyNWeeks:Xre,sch_desc_everyNYears:Jre,sch_desc_everyWeek:Yre,sch_desc_everyYear:Kre,sch_desc_intervalFromTo:Zre,sch_desc_never:Qre,sch_desc_onDate:ene,sch_desc_onDates:tne,sch_desc_onEveryDate:rne,sch_desc_onMonth:nne,sch_desc_onMonths:one,sch_desc_onWeekday:ane,sch_desc_onWeekdays:ine,sch_desc_onWeekends:sne,sch_desc_onWorkdays:cne,sch_desc_onceInPast:lne,sch_desc_once_on:une,sch_desc_validFrom:dne,sch_desc_validFromTo:pne,sch_desc_validTo:fne,sch_every:hne,sch_exactTime:mne,sch_from:_ne,sch_fromTo:gne,sch_intervalTime:yne,sch_invert:vne,sch_no_one:bne,sch_on:wne,sch_period:Sne,sch_periodDaily:xne,sch_periodDates:kne,sch_periodDay:Cne,sch_periodEvery:$ne,sch_periodEveryDay:Ene,sch_periodEveryMonth:Tne,sch_periodEveryWeek:One,sch_periodEveryYear:Dne,sch_periodHours:Rne,sch_periodMinutes:Mne,sch_periodMonth:Ane,sch_periodMonthly:Nne,sch_periodOnce:Pne,sch_periodSpecificMonths:Ine,sch_periodWeek:jne,sch_periodWeekdays:zne,sch_periodWeekend:Lne,sch_periodWeekly:Fne,sch_periodWorkdays:Bne,sch_periodYear:Wne,sch_periodYearly:Une,sch_specificTime:qne,sch_time:Hne,sch_to:Vne,sch_valid:Gne,sch_validFrom:Xne,sch_validTo:Jne,sch_wholeDay:Yne,sch_yearEveryMonth:Kne},Qne="Действия",eoe="Добавить",toe="Отмена",roe="Категории",noe="Проверено",ooe="Удалить",aoe="Закрыть",ioe="Коммерческая",soe="Настроить",coe="Соединение установлено",loe="Продолжать",uoe="скопировано",doe="Создать",poe="Обрезать",foe="Delete",hoe="Удалить",moe="Отказаться",_oe="Отключено",goe="Ошибка",yoe="Фильтр",voe="Пятница",boe="Широта",woe="Выйти",Soe="Долгота",xoe="Сообщение",koe="Понедельник",Coe="Имя",$oe="Объекты",Eoe="Ok",Toe="Продукт",Ooe="Переименовать/Переместить/Копировать",Doe="Повторение",Roe="Заменять",Moe="Начало",Aoe="Суббота",Noe="Сохранить",Poe="выбранный",Ioe="Состояния",joe="Воскресенье",zoe="Четверг",Loe="Времени",Foe="Вторник",Boe="Обновить",Woe="Годен до",Uoe="Значение",qoe="Версия",Hoe="Среда",Voe="Ширина",Goe="Да",Xoe="разное",Joe="Каждый может читать объект",Yoe="Каждый может читать состояние",Koe="Каждый может написать объект",Zoe="Каждый может написать состояние",Qoe="Группа может читать объект",eae="Группа может читать состояние",tae="Группа может писать объект",rae="Группа может записывать состояние",nae="Владелец может читать объект",oae="Владелец может читать состояние",aae="Владелец может писать объект",iae="Владелец может писать состояние",sae="Кнопки",cae="Изменено с",lae="Закрыть",uae="Создать логическое состояние",dae="Создать канал",pae="Создать устройство",fae="Создать состояние номера",hae="Создать состояние",mae="Создать состояние строки",_ae="д.",gae="Пт",yae="Пн",vae="Сб",bae="Вс",wae="Чт",Sae="Вт",xae="Ср",kae="Экспертный режим",Cae="ЛОЖЬ",$ae="Все файлы",Eae="Аудио",Tae="Код/JSON",Oae="Картинки",Dae="Текст",Rae="видео",Mae="настройки",Aae="без",Nae="функция",Pae="ID",Iae="Имя",jae="роль",zae="комната",Lae="Тип",Fae="Неверные настройки",Bae="Последнее изменение",Wae="локально",Uae="Апр",qae="Авг",Hae="Дек",Vae="Фев",Gae="Янв",Xae="Июл",Jae="Июн",Yae="Май",Kae="Мрт",Zae="Ноя",Qae="Окт",eie="Сен",tie="Апр",rie="Авг",nie="Дек",oie="Фев",aie="Янв",iie="Июнь",sie="Июль",cie="Май",lie="Март",uie="Ноя",die="Окт",pie="Сен",fie="ничего",hie="Объект изменен",mie="Последний раз объект изменен в",_ie="Настройки из другого адаптера %s",gie="Код качества",yie="повтор",vie="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",bie="Показать все",wie="Состояние изменено",Sie="Объект изменен с",xie="Отметка времени",kie="Подтверждено",Cie="Комментарий",$ie="Скопируйте значение состояния",Eie="Удерживайте клавишу Cltr/⌘, чтобы открыть ссылку",Tie="Пользовательские настройки",Oie="Удалить объект",Die="Редактировать объект",Rie="Изменить значение состояния",Mie="Истекает через",Aie="От",Nie="Последнее изменение",Pie="Качество",Iie="Отметка времени",jie="пользователь",zie="Значение",Lie="истинный",Fie="Значение",Bie="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",Wie="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",Uie="CRON",qie="Дата",Hie="Даты",Vie="День",Gie="День недели",Xie="каждый(ую/ые)",Jie="каждый N день",Yie="каждый N-й день недели",Kie="каждый N день недели",Zie="каждые N часов",Qie="каждые N минут",ese="каждые N месяцев",tse="каждые N секунд",rse="каждый день",nse="Каждый день недели",ose="каждый день недели",ase="каждый час",ise="каждую минуту",sse="каждый месяц",cse="каждую секунду",lse="От",use="часы",dse="Интервал",pse="Интервал между",fse="Неверный CRON",hse="минуты",mse="Месяцы",_se="один раз",gse="Период",yse="секунды",vse="Просто",bse="Конкретное время",wse="конкретные даты",Sse="конкретный день(а) недели",xse="конкретный день недели",kse="конкретные часы",Cse="конкретные минуты",$se="конкретные месяцы",Ese="конкретные секунды",Tse="Время",Ose="До",Dse="Форма",Rse="все",Mse="днём",Ase="ночью",Nse="Рассвет",Pse="Сумерки",Ise="Золотой час",jse="Конец золотого часа",zse="Надир",Lse="Морской рассвет",Fse="Морские сумерки",Bse="Ночь",Wse="Конец ночи",Use="Солнечный полдень",qse="Восход",Hse="Восход солнца",Vse="Заход солнца",Gse="Начало заката",Xse="дата",Jse="в %s",Yse="каждый день",Kse="каждый час",Zse="каждую минуту",Qse="каждый месяц",ece="каждый %s день",tce="каждый %s часов",rce="каждые %s минут",nce="каждые %s месяцев",oce="каждые %s недель",ace="каждые %s лет",ice="каждую неделю",sce="каждый год",cce="от %s до %s",lce="никогда",uce="%s %s",dce="%s и %s",pce="в каждый день",fce="%s",hce="%s и %s",mce="%s",_ce="%s и %s",gce="на выходных",yce="в рабочие дни",vce="не будет больше выполняться, потому что начало в прошлом",bce="%s",wce="%s",Sce="Выполнить с",xce="%s",kce="каждый",Cce="Конкретное время",$ce="от",Ece="От и до",Tce="Интервал времени",Oce="инвертировать",Dce="никакой",Rce="на",Mce="период",Ace="Ежедневно",Nce="Даты",Pce="День",Ice="каждый",jce="Каждый день",zce="Каждый месяц",Lce="Каждую неделю",Fce="Каждый год",Bce="часов",Wce="минут",Uce="месяц",qce="ежемесячно",Hce="однажды",Vce="Конкретные месяцы",Gce="Неделю",Xce="Будние дни",Jce="выходные",Yce="еженедельно",Kce="Рабочие дни",Zce="Год",Qce="каждый год",ele="Конкретное время",tle="Время",rle="в",nle="действительный",ole="от",ale="в",ile="Весь день",sle="каждый месяц",cle={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию",ra_Actions:Qne,"ra_Add new child object to selected parent":"Добавить новый дочерний объект к выбранному родительскому объекту","ra_Add objects tree from JSON file":"Добавить дерево объектов из файла JSON","ra_Add row":"Добавить ряд","ra_Advanced options":"Расширенные настройки","ra_All items are filtered out":"Все элементы отфильтрованы","ra_All objects":"Все объекты",ra_Append:eoe,"ra_Append %s entries or replace existing?":"Добавить записи %s или заменить существующие?","ra_Append or replace?":"Дополнить или заменить?","ra_Are you sure?":"Вы уверены?","ra_Auto (no custom columns)":"Авто (без настраиваемых столбцов)","ra_Back to %s":"Вернуться к %s","ra_Background image":"Фоновая картинка",ra_Cancel:toe,"ra_Cannot add items with set filter":"Невозможно добавить элементы с установленным фильтром","ra_Cannot decode license":"Не могу декодировать лицензию","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Невозможно определить местоположение: системные настройки пусты, а обнаружение GPS отключено в браузере.",'ra_Cannot find "%s"':'Не могу найти "%s"','ra_Cannot read "%s"':'Не могу прочитать "%s"',"ra_Cannot read licenses: %s":"Невозможно прочитать лицензии: %s","ra_Cannot retrieve options, as instance is offline":"Невозможно получить параметры, так как экземпляр находится в автономном режиме.","ra_Cannot update attribute, because not found in the object":"Невозможно обновить атрибут, потому что он не найден в объекте","ra_Cannot upload":"Невозможно загрузить",ra_Categories:roe,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:noe,ra_Clear:ooe,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Click to see in full size":"Нажмите, чтобы посмотреть в полном размере","ra_Click to show":"Нажмите, чтобы показать","ra_Clone current row":"Клонировать текущую строку",ra_Close:aoe,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:ioe,ra_Configure:soe,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:coe,ra_Continue:loe,ra_Copied:uoe,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:doe,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:poe,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:foe,ra_Delete:hoe,"ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние","ra_Disable/Enable translation":"Включить/отключить перевод",ra_Discard:moe,ra_Disconnected:_oe,"ra_Do not ask for next 2 hours in this session":"Не спрашивайте о следующих 2 часах в этом сеансе","ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","ra_Docker is not available":"Докер недоступен","ra_Docker is not installed or not running":"Docker не установлен или не запущен","ra_Double click to reset table layout":"Дважды щелкните, чтобы сбросить макет таблицы","ra_Drag 'n' drop some files here, or click to select files":"Перетащите сюда несколько файлов или щелкните, чтобы выбрать файлы","ra_Drop file here":"Перетащите файл сюда","ra_Drop the files here...":"Перетащите файл сюда ...","ra_Duplicate name":"Повторяющееся имя","ra_Edit ACL":"Изменить ACL-список","ra_Edit alias":"Изменить псевдоним","ra_Edit custom config":"Редактировать настраиваемую конфигурацию","ra_Edit full path":"Изменить полный путь","ra_Edit function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение","ra_Enter the code from that page here":"Введите код с этой страницы здесь",ra_Error:goe,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","ra_Expand/Collapse card":"Развернуть/Свернуть карточку","ra_Export configuration section":"Раздел конфигурации экспорта","ra_Export data to %s file":"Экспорт данных в файл %s","ra_Failed to open JSON File":"Не удалось открыть файл JSON","ra_Fallback custom certificates":"Резервные пользовательские сертификаты","ra_File is too big. Max %sk allowed. Try use SVG.":"Файл слишком большой. Разрешено максимальное количество %sk. Попробуйте использовать SVG.",ra_Filter:yoe,"ra_Filter and Data Actions":"Фильтрация и действия с данными","ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:voe,"ra_From file":"Из файла","ra_From text":"Из текста","ra_Get %s access":"Получить %s доступ","ra_Good luck":"Удачи","ra_Hide empty folders":"Скрыть пустые папки","ra_If no file will be created in the folder, it will disappear after the browser closed":"Если в папке не будет создан файл, он исчезнет после закрытия браузера.","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Если кнопка выше не работает, вы можете вручную авторизовать это приложение, перейдя по этой ссылке.","ra_Import and add configuration section":"Импорт и добавление раздела конфигурации","ra_Import and replace configuration section":"Импорт и замена раздела конфигурации","ra_Import data from %s file":"Импорт данных из файла %s","ra_Import from %s":"Импорт из %s","ra_Instance %s is alive":"Экземпляр %s работает","ra_Instance %s is not alive":"Экземпляр %s не работает","ra_Instance is not alive":"Экземпляр не живой","ra_Invalid CRON":"Неверный CRON","ra_Invalid JSON":"Неверный JSON","ra_Invalid JSON file.":"Неверный файл JSON.","ra_Invalid JSON format. Expected an array.":"Недопустимый формат JSON. Ожидается массив.","ra_Invalid answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:boe,"ra_License %s":"Лицензия %s","ra_License agreement":"Лицензионное соглашение","ra_License does not exist":"Лицензия не существует","ra_License expired on %s":"Срок действия лицензии истек %s",'ra_License for other product "%s"':'Лицензия на другой продукт "%s"',"ra_License is for version %s, but required version is %s.":"Лицензия предназначена для версии %s, но необходима версия %s.","ra_License must be converted":"Лицензия должна быть преобразована в более новую версию. Вы можете сделать это в своем профиле на iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Лицензия не найдена в диспетчере лицензий. Вы хотите обновить лицензии от iobroker.net?","ra_Listen on all IPs":"Слушать на всех IP","ra_Load configuration from file":"Загрузить конфигурацию из файла",ra_Logout:woe,ra_Longitude:Soe,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:xoe,ra_Monday:koe,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:Coe,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","ra_No response from admin":"Нет ответа от администратора","ra_No response from the backend":"Нет ответа от бэкэнда",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Не-эксперты могут создавать новые объекты только в «0_userdata.0» или «alias.0».","ra_Not a number":"Не число","ra_OAuth Client ID":"Идентификатор клиента OAuth","ra_OAuth Client secret":"Секрет клиента OAuth",ra_Objects:$oe,ra_Ok:Eoe,"ra_On weekdays":"На выходных","ra_Only following structures of objects are available:":"Доступны только следующие структуры объектов:","ra_Only selected":"Только выбранные","ra_Owner group":"Группа владельцев","ra_Owner user":"Пользователь-владелец","ra_Passwords are not equal!":"Пароли не равны!","ra_Place your files here or click here to open the browse dialog":"Поместите свои файлы сюда или щелкните здесь, чтобы открыть диалоговое окно выбора","ra_Please allow popups in your browser for this page!":"Пожалуйста, разрешите всплывающие окна в вашем браузере для этой страницы!","ra_Please confirm":"Пожалуйста подтвердите","ra_Please create license":"Пожалуйста, создайте лицензию","ra_Please enter the license":"Пожалуйста, введите лицензию","ra_Please select file...":"Пожалуйста, выберите файл...","ra_Please select object ID...":"Пожалуйста, выберите идентификатор объекта ...","ra_Port could be used by %s":"Порт может использоваться %s","ra_Port is already used by %s":"Порт уже используется %s","ra_Press ENTER Key to add new item":"Нажмите клавишу ENTER, чтобы добавить новый элемент.","ra_Private certificate":"Частный сертификат",ra_Product:Toe,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Rename_Move_Copy:Ooe,"ra_Renew %s access":"Продлить доступ %s",ra_Repeat:Doe,ra_Replace:Roe,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:Moe,ra_Saturday:Aoe,ra_Save:Noe,"ra_Save and close":"Сохранить и закрыть","ra_Save configuration to file":"Сохранить конфигурацию в файл","ra_Save objects tree as JSON file":"Сохранить дерево объектов как файл JSON","ra_Select all":"Выбрать все","ra_Select color":"Выберите цвет","ra_Select predefined icon":"Выберите предопределенный значок","ra_Select type of export":"Выберите тип экспорта",ra_Selected:Poe,"ra_Selected %s object(s)":"Объектов: %s","ra_Serial number (UUID)":"Серийный номер (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':"Серийный номер (UUID) «%s» в лицензии предназначен для другого устройства.","ra_Session will expire in %s seconds. Continue?":"Сессия истечет через %s секунд. Продолжить?","ra_Show all folders":"Показать все папки","ra_Show lines between rows":"Показать линии между строками","ra_Show/Hide object descriptions":"Показать/скрыть описания объектов","ra_Show/hide filter input":"Показать/скрыть ввод фильтра","ra_Some data are not stored. Discard?":"Некоторые данные не сохранились. Отказаться?",ra_States:Ioe,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Авторизация выполнена успешно. Токен действителен до %s и будет автоматически продлен.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Авторизация выполнена успешно. Токен действителен до %s, но его срок действия может истечь, так как экземпляр не запущен.","ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:joe,"ra_Suppress question for next %s minutes":"Скрыть вопрос на следующие %s минут(ы)","ra_System language":"Язык системы","ra_Take browser position":"Взять позицию из браузера","ra_Take position from system settings":"Занять позицию из системных настроек",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Эксперты могут создавать объекты везде, кроме второго уровня (например, «vis.0» или «javascript.0»).","ra_The page you are looking for was not found":"Страница, которую вы ищете, не найдена","ra_The schedule will be executed every minute. Are you sure?":"Расписание будет выполняться каждую минуту. Вы уверены?","ra_The schedule will be executed every second. Are you sure?":"Расписание будет выполняться каждую секунду. Вы уверены?",ra_Thursday:zoe,ra_Timestamp:Loe,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:Foe,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:Boe,"ra_Upload file":"Загрузить файл","ra_Use all available let's encrypt certificates":"Использовать все доступные сертификаты Let’s encrypt","ra_Use iobroker.acme adapter for letsencrypt certificates":"Используйте адаптер iobroker.acme для сертификатов letsencrypt","ra_Use system settings for position":"Использовать системные настройки для позиции","ra_Used system settings":"Системные настройки","ra_User files":"Файлы пользователя",ra_ValidTill:Woe,ra_Value:Uoe,ra_Version:qoe,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:Hoe,ra_Width:Voe,"ra_YAML editor":"Редактор YAML",ra_Yes:Goe,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст","ra_You can use * as wildcard":"Вы можете использовать * в качестве подстановочного знака",ra___different__:Xoe,ra_aclEveryone_read_object:Joe,ra_aclEveryone_read_state:Yoe,ra_aclEveryone_write_object:Koe,ra_aclEveryone_write_state:Zoe,ra_aclGroup_read_object:Qoe,ra_aclGroup_read_state:eae,ra_aclGroup_write_object:tae,ra_aclGroup_write_state:rae,ra_aclOwner_read_object:nae,ra_aclOwner_read_state:oae,ra_aclOwner_write_object:aae,ra_aclOwner_write_state:iae,ra_buttons:sae,ra_changedFrom:cae,ra_close:lae,ra_create_boolean_state:uae,ra_create_channel:dae,ra_create_device:pae,ra_create_number_state:fae,ra_create_state:hae,ra_create_string_state:mae,ra_daysShortText:_ae,ra_dow_Fr:gae,ra_dow_Mo:yae,ra_dow_Sa:vae,ra_dow_Su:bae,ra_dow_Th:wae,ra_dow_Tu:Sae,ra_dow_We:xae,ra_expertMode:kae,ra_false:Cae,ra_fileType_all:$ae,ra_fileType_audio:Eae,ra_fileType_code:Tae,ra_fileType_images:Oae,ra_fileType_txt:Dae,ra_fileType_video:Rae,"ra_fileType_video,":"видео",ra_filter_customs:Mae,ra_filter_customs_without:Aae,ra_filter_func:Nae,ra_filter_id:Pae,ra_filter_name:Iae,ra_filter_role:jae,ra_filter_room:zae,ra_filter_type:Lae,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:Fae,ra_lastChange:Bae,ra_locally:Wae,ra_month_Apr:Uae,ra_month_Aug:qae,ra_month_Dec:Hae,ra_month_Feb:Vae,ra_month_Jan:Gae,ra_month_Jul:Xae,ra_month_Jun:Jae,ra_month_Mai:Yae,ra_month_Mar:Kae,ra_month_Nov:Zae,ra_month_Oct:Qae,ra_month_Sep:eie,ra_months_Apr:tie,ra_months_Aug:rie,ra_months_Dec:nie,ra_months_Feb:oie,ra_months_Jan:aie,ra_months_Jul:iie,ra_months_Jun:sie,ra_months_Mai:cie,ra_months_Mar:lie,ra_months_Nov:uie,ra_months_Oct:die,ra_months_Sep:pie,"ra_no confirm for 5 mins":"не спрашивать подтверждения в течение 5 минут",ra_none:fie,ra_object_changed_by:hie,ra_object_changed_by_user:mie,ra_otherConfig:_ie,ra_qualityCode:gie,ra_repeat:yie,ra_select_folder_hint:vie,ra_show_all:bie,ra_state_changed_by:wie,ra_state_changed_from:Sie,ra_timestamp:xie,ra_tooltip_ack:kie,ra_tooltip_comment:Cie,ra_tooltip_copyState:$ie,ra_tooltip_ctrlForLink:Eie,ra_tooltip_customConfig:Tie,ra_tooltip_deleteObject:Oie,ra_tooltip_editObject:Die,ra_tooltip_editState:Rie,ra_tooltip_expire:Mie,ra_tooltip_from:Aie,ra_tooltip_lc:Nie,ra_tooltip_quality:Pie,ra_tooltip_ts:Iie,ra_tooltip_user:jie,ra_tooltip_value:zie,ra_true:Lie,"ra_use seconds":"секунды",ra_val:Fie,"ra_via internet":"через интернет",ra_warning_every_minute:Bie,ra_warning_every_second:Wie,sc_cron:Uie,sc_date:qie,sc_dates:Hie,sc_dow:Vie,sc_dows:Gie,sc_every:Xie,sc_everyN_dates:Jie,sc_everyN_dow:Yie,sc_everyN_dows:Kie,sc_everyN_hours:Zie,sc_everyN_minutes:Qie,sc_everyN_months:ese,sc_everyN_seconds:tse,sc_every_dates:rse,sc_every_dow:nse,sc_every_dows:ose,sc_every_hours:ase,sc_every_minutes:ise,sc_every_months:sse,sc_every_seconds:cse,sc_from:lse,sc_hours:use,sc_interval:dse,sc_intervalBetween:pse,sc_invalid_cron:fse,sc_minutes:hse,sc_months:mse,sc_once:_se,sc_period:gse,sc_seconds:yse,sc_simple:vse,sc_specific:bse,sc_specific_dates:wse,sc_specific_dow:Sse,sc_specific_dows:xse,sc_specific_hours:kse,sc_specific_minutes:Cse,sc_specific_months:$se,sc_specific_seconds:Ese,sc_time:Tse,sc_to:Ose,sc_wizard:Dse,sch_all:Rse,sch_astroDay:Mse,sch_astroNight:Ase,sch_astro_dawn:Nse,sch_astro_dusk:Pse,sch_astro_goldenHour:Ise,sch_astro_goldenHourEnd:jse,sch_astro_nadir:zse,sch_astro_nauticalDawn:Lse,sch_astro_nauticalDusk:Fse,sch_astro_night:Bse,sch_astro_nightEnd:Wse,sch_astro_solarNoon:Use,sch_astro_sunrise:qse,sch_astro_sunriseEnd:Hse,sch_astro_sunset:Vse,sch_astro_sunsetStart:Gse,sch_at:Xse,sch_desc_atTime:Jse,sch_desc_everyDay:Yse,sch_desc_everyHour:Kse,sch_desc_everyMinute:Zse,sch_desc_everyMonth:Qse,sch_desc_everyNDay:ece,sch_desc_everyNHours:tce,sch_desc_everyNMinutes:rce,sch_desc_everyNMonths:nce,sch_desc_everyNWeeks:oce,sch_desc_everyNYears:ace,sch_desc_everyWeek:ice,sch_desc_everyYear:sce,sch_desc_intervalFromTo:cce,sch_desc_never:lce,sch_desc_onDate:uce,sch_desc_onDates:dce,sch_desc_onEveryDate:pce,sch_desc_onMonth:fce,sch_desc_onMonths:hce,sch_desc_onWeekday:mce,sch_desc_onWeekdays:_ce,sch_desc_onWeekends:gce,sch_desc_onWorkdays:yce,sch_desc_onceInPast:vce,sch_desc_once_on:bce,sch_desc_validFrom:wce,sch_desc_validFromTo:Sce,sch_desc_validTo:xce,sch_every:kce,sch_exactTime:Cce,sch_from:$ce,sch_fromTo:Ece,sch_intervalTime:Tce,sch_invert:Oce,sch_no_one:Dce,sch_on:Rce,sch_period:Mce,sch_periodDaily:Ace,sch_periodDates:Nce,sch_periodDay:Pce,sch_periodEvery:Ice,sch_periodEveryDay:jce,sch_periodEveryMonth:zce,sch_periodEveryWeek:Lce,sch_periodEveryYear:Fce,sch_periodHours:Bce,sch_periodMinutes:Wce,sch_periodMonth:Uce,sch_periodMonthly:qce,sch_periodOnce:Hce,sch_periodSpecificMonths:Vce,sch_periodWeek:Gce,sch_periodWeekdays:Xce,sch_periodWeekend:Jce,sch_periodWeekly:Yce,sch_periodWorkdays:Kce,sch_periodYear:Zce,sch_periodYearly:Qce,sch_specificTime:ele,sch_time:tle,sch_to:rle,sch_valid:nle,sch_validFrom:ole,sch_validTo:ale,sch_wholeDay:ile,sch_yearEveryMonth:sle},lle="Ações",ule="Acrescentar",dle="Cancelar",ple="Categorias",fle="Verificado",hle="Excluir",mle="Perto",_le="Comercial",gle="Configurar",yle="Conectado",vle="Continuar",ble="Copiado",wle="Crio",Sle="Colheita",xle="Delete",kle="Excluir",Cle="Descartar",$le="Desconectado",Ele="Erro",Tle="Filtro",Ole="Sexta-feira",Dle="Latitude",Rle="Sair",Mle="Longitude",Ale="mensagem",Nle="Segunda-feira",Ple="Nome",Ile="Objetos",jle="Está bem",zle="produtos",Lle="Renomear/Mover/Copiar",Fle="Repita",Ble="Substituir",Wle="Raiz",Ule="Sábado",qle="Salve ",Hle="Selecionado",Vle="Estados",Gle="Domingo",Xle="Quinta-feira",Jle="Timestamp",Yle="Terça-feira",Kle="Atualizar",Zle="Válida até",Qle="Valor",eue="Versão",tue="Quarta-feira",rue="Largura",nue="Sim",oue="diferente",aue="Todos podem ler objetos",iue="Todos podem ler o estado",sue="Todos podem escrever objetos",cue="Todos podem escrever o estado",lue="O grupo pode ler o objeto",uue="O grupo pode ler o estado",due="O grupo pode escrever o objeto",pue="O grupo pode escrever o estado",fue="O proprietário pode ler o objeto",hue="O proprietário pode ler o estado",mue="O proprietário pode escrever o objeto",_ue="O proprietário pode escrever o estado",gue="Botões",yue="Mudou de",vue="fechar",bue="Criar estado booleano",wue="Criar canal",Sue="Criar dispositivo",xue="Criar estado numérico",kue="Criar estado",Cue="Criar estado de string",$ue="d.",Eue="Fr",Tue="Mo",Oue="Sa",Due="Su",Rue="º",Mue="Tu",Aue="Nós",Nue="Modo especialista",Pue="FALSO",Iue="Todos os arquivos",jue="áudio",zue="Código/JSON",Lue="Imagens",Fue="Texto",Bue="Vídeo",Wue="Configurações",Uue="sem",que="Função",Hue="ID",Vue="Nome",Gue="Papel (Função)",Xue="Quarto",Jue="Tipo",Yue="Configurações inválidas",Kue="Última mudança",Zue="localmente",Que="abril",ede="agosto",tde="dezembro",rde="fevereiro",nde="janeiro",ode="julho",ade="junho",ide="Mai",sde="março",cde="novembro",lde="outubro",ude="setembro",dde="abril",pde="agosto",fde="dezembro",hde="fevereiro",mde="janeiro",_de="julho",gde="junho",yde="Mai",vde="março",bde="novembro",wde="outubro",Sde="setembro",xde="Nenhum",kde="Objeto alterado por",Cde="Objeto alterado pela última vez em",$de="Configurações de outro adaptador %s",Ede="Código de qualidade",Tde="repetir",Ode='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',Dde="Mostrar tudo",Rde="Estado alterado por",Mde="Objeto alterado de",Ade="Timestamp",Nde="Confirmado",Pde="Comente",Ide="Copie o valor do estado",jde="Segure a tecla Ctrl/⌘ para abrir o link",zde="Opções customizadas",Lde="Excluir objeto",Fde="Editar objeto",Bde="Edite o valor do estado",Wde="Expira em",Ude="De",qde="Última alteração",Hde="Qualidade",Vde="Timestamp",Gde="Usuário",Xde="Valor",Jde="verdadeiro",Yde="Valor",Kde="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",Zde="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",Qde="CRON",epe="Data",tpe="Dias",rpe="Dia",npe="Dia da semana",ope="todos",ape="a cada N dias",ipe="todo enésimo dia da semana",spe="todos os N dias da semana",cpe="a cada N horas",lpe="a cada N minutos",upe="a cada N meses",dpe="a cada N segundos",ppe="todo dia",fpe="todos os dias da semana",hpe="todos os dias da semana",mpe="toda hora",_pe="todo minuto",gpe="todo mês",ype="todo segundo",vpe="de",bpe="horas",wpe="intervalo",Spe="intervalo entre",xpe="CRON inválido",kpe="minutos",Cpe="meses",$pe="uma vez",Epe="período",Tpe="segundos",Ope="simples",Dpe="tempo específico",Rpe="datas específicas",Mpe="dia(s) específico(s) da semana",Ape="dia específico de semanas",Npe="horas específicas",Ppe="minutos específicos",Ipe="meses específicos",jpe="segundos específicos",zpe="tempo",Lpe="para",Fpe="assistente",Bpe="tudo",Wpe="dia astral",Upe="noite astral",qpe="amanhecer",Hpe="anoitecer",Vpe="hora dourada",Gpe="Fim da hora dourada",Xpe="nadir",Jpe="Amanhecer náutico",Ype="Anoitecer náutico",Kpe="noite",Zpe="fim da noite",Qpe="meio-dia solar",efe="nascer do sol",tfe="fim do nascer do sol",rfe="pôr do sol",nfe="início do pôr do sol",ofe="às",afe="em %s",ife="todo dia",sfe="toda hora",cfe="todo minuto",lfe="todo mês",ufe="a cada %s dias",dfe="a cada %s horas",pfe="a cada %s minutos",ffe="a cada %s meses",hfe="a cada %s semanas",mfe="a cada %s anos",_fe="toda semana",gfe="todo ano",yfe="de %s para %s",vfe="nunca",bfe="em %s de %s",wfe="em %s e %s de",Sfe="em toda data de",xfe="%s",kfe="%s e %s",Cfe="em %s",$fe="em %s e %s",Efe="nos fins de semana",Tfe="em dias úteis",Ofe="não será mais executado, porque o começo está no passado",Dfe="em %s",Rfe="de %s",Mfe="Executar de até",Afe="até %s",Nfe="cada",Pfe="tempo específico",Ife="de",jfe="de a´t",zfe="tempo de intervalo",Lfe="invertido",Ffe="nenhum",Bfe="em",Wfe="período",Ufe="diariamente",qfe="datas",Hfe="dia",Vfe="todos",Gfe="todo dia",Xfe="todo mês",Jfe="toda semana",Yfe="todo ano",Kfe="horas",Zfe="minutos",Qfe="mês",ehe="por mês",the="uma vez",rhe="meses específicos",nhe="semana",ohe="dias úteis",ahe="final de semana",ihe="semanal",she="dias úteis",che="ano",lhe="anual",uhe="tempo específico",dhe="tempo",phe="para",fhe="válido",hhe="de",mhe="para",_he="dia inteiro",ghe="todo mês",yhe={"ra_%s links from aliases":"%s links de aliases","ra_%s object(s) processed":"%s objeto(s) processado(s)","ra_%s was imported":"%s foi importado","ra_Accept license":"Aceitar licença",ra_Actions:lle,"ra_Add new child object to selected parent":"Adicionar novo objeto filho ao pai selecionado","ra_Add objects tree from JSON file":"Adicionar árvore de objetos do arquivo JSON","ra_Add row":"Adicionar linha","ra_Advanced options":"Opções avançadas","ra_All items are filtered out":"Todos os itens são filtrados","ra_All objects":"Todos os objetos",ra_Append:ule,"ra_Append %s entries or replace existing?":"Acrescentar %s entradas ou substituir as existentes?","ra_Append or replace?":"Acrescentar ou substituir?","ra_Are you sure?":"Você tem certeza?","ra_Auto (no custom columns)":"Auto (sem colunas personalizadas)","ra_Back to %s":"Voltar para %s","ra_Background image":"Imagem de fundo",ra_Cancel:dle,"ra_Cannot add items with set filter":"Não é possível adicionar itens com filtro definido","ra_Cannot decode license":"Não é possível decodificar a licença","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Não é possível determinar a posição: as configurações do sistema estão vazias e a detecção de GPS está desativada no navegador",'ra_Cannot find "%s"':'Não foi possível encontrar "%s"','ra_Cannot read "%s"':'Não é possível ler "%s"',"ra_Cannot read licenses: %s":"Não é possível ler licenças: %s","ra_Cannot retrieve options, as instance is offline":"Não é possível recuperar opções, pois a instância está off-line","ra_Cannot update attribute, because not found in the object":"Não é possível atualizar o atributo, porque não foi encontrado no objeto","ra_Cannot upload":"Não é possível fazer upload",ra_Categories:ple,"ra_Chained certificate":"certificado encadeado","ra_Change color theme":"Alterar tema de cores","ra_Changed from":"Mudou de","ra_Channel → State":"Canal → Estado","ra_Check license":"Verifique a licença",ra_Checked:fle,ra_Clear:hle,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Click to see in full size":"Clique para ver em tamanho real.","ra_Click to show":"Clique para mostrar","ra_Clone current row":"Clonar linha atual",ra_Close:mle,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:_le,ra_Configure:gle,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:yle,ra_Continue:vle,ra_Copied:ble,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:wle,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:Sle,"ra_Define CRON...":"Defina CRON...","ra_Define functions":"Definir funções","ra_Define rooms":"Definir quartos","ra_Define schedule":"Definir cronograma","ra_Define schedule...":"Definir programação ...",ra_Del:xle,ra_Delete:kle,"ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado","ra_Disable/Enable translation":"Desativar/Ativar tradução",ra_Discard:Cle,ra_Disconnected:$le,"ra_Do not ask for next 2 hours in this session":"Não peça as próximas 2 horas nesta sessão","ra_Do not export values of states":"Não exporte valores de estados","ra_Do not use let's encrypt":"Não use vamos criptografar","ra_Docker is not available":"O Docker não está disponível","ra_Docker is not installed or not running":"O Docker não está instalado ou não está em execução","ra_Double click to reset table layout":"Clique duas vezes para redefinir o layout da tabela","ra_Drag 'n' drop some files here, or click to select files":"Arraste e solte alguns arquivos aqui ou clique para selecionar arquivos","ra_Drop file here":"Solte o arquivo aqui","ra_Drop the files here...":"Solte o arquivo aqui ...","ra_Duplicate name":"Nome duplicado","ra_Edit ACL":"Editar ACL","ra_Edit alias":"Editar alias","ra_Edit custom config":"Editar configuração personalizada","ra_Edit full path":"Editar caminho completo","ra_Edit function":"Função de edição","ra_Edit object field":"Editar campo de objeto","ra_Edit role":"Editar papel","ra_Edit room":"Sala de edição","ra_Edit value":"Editar valor","ra_Enter the code from that page here":"Digite o código dessa página aqui",ra_Error:Ele,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","ra_Expand/Collapse card":"Expandir/Recolher cartão","ra_Export configuration section":"Seção de configuração de exportação","ra_Export data to %s file":"Exportar dados para o arquivo %s","ra_Failed to open JSON File":"Falha ao abrir arquivo JSON","ra_Fallback custom certificates":"Certificados personalizados alternativos","ra_File is too big. Max %sk allowed. Try use SVG.":"O arquivo é muito grande. Max %sk permitido. Tente usar SVG.",ra_Filter:Tle,"ra_Filter and Data Actions":"Ações de filtro e dados","ra_Filter files":"Filtrar arquivos","ra_Folder name":"Nome da pasta","ra_Folder → Channel → State":"Pasta → Canal → Estado","ra_Folder → Device → Channel → State":"Pasta → Dispositivo → Canal → Estado","ra_Folder → State":"Pasta → Estado","ra_Folders always first":"Pastas sempre primeiro",ra_Friday:Ole,"ra_From file":"Do arquivo","ra_From text":"Do texto","ra_Get %s access":"Obtenha acesso %s","ra_Good luck":"Boa sorte","ra_Hide empty folders":"Esconder pastas vazias","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nenhum arquivo for criado na pasta, ele desaparecerá depois que o navegador for fechado","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Se o botão acima não funcionar, você pode autorizar manualmente este aplicativo visitando esta url","ra_Import and add configuration section":"Seção de importação e adição de configuração","ra_Import and replace configuration section":"Seção de configuração de importação e substituição","ra_Import data from %s file":"Importar dados do arquivo %s","ra_Import from %s":"Importar de %s","ra_Instance %s is alive":"O %s da instância está ativo","ra_Instance %s is not alive":"O %s da instância não está ativo","ra_Instance is not alive":"A instância não está ativa","ra_Invalid CRON":"CRON inválido","ra_Invalid JSON":"JSON inválido","ra_Invalid JSON file.":"Arquivo JSON inválido.","ra_Invalid JSON format. Expected an array.":"Formato JSON inválido. Esperava-se uma matriz.","ra_Invalid answer from server":"Resposta inválida do servidor","ra_Invalid parent folder!":"Pasta pai inválida!","ra_Invalid structure":"Estrutura inválida","ra_JSON editor":"Editor JSON","ra_Last change":"Última mudança",ra_Latitude:Dle,"ra_License %s":"Licença %s","ra_License agreement":"Contrato de licença","ra_License does not exist":"A licença não existe","ra_License expired on %s":"A licença expirou em %s",'ra_License for other product "%s"':'Licença para outro produto "%s"',"ra_License is for version %s, but required version is %s.":"A licença é para a versão %s, mas a versão necessária é %s.","ra_License must be converted":"A licença deve ser convertida para uma versão mais recente. Você pode fazê-lo em seu perfil iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licença não encontrada no gerenciador de licenças. Deseja atualizar as licenças do iobroker.net?","ra_Listen on all IPs":"Ouça em todos os IPs","ra_Load configuration from file":"Carregar configuração do arquivo",ra_Logout:Rle,ra_Longitude:Mle,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:Ale,ra_Monday:Nle,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:Ple,"ra_No data found in file":"Nenhum dado encontrado no arquivo","ra_No one license found in license manager":"Nenhuma licença encontrada no gerenciador de licenças","ra_No response from admin":"Nenhuma resposta do administrador","ra_No response from the backend":"Nenhuma resposta do backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Os não especialistas podem criar novos objetos apenas em "0_userdata.0" ou "alias.0".',"ra_Not a number":"Não é um número","ra_OAuth Client ID":"ID do cliente OAuth","ra_OAuth Client secret":"Segredo do cliente OAuth",ra_Objects:Ile,ra_Ok:jle,"ra_On weekdays":"Nos dias úteis","ra_Only following structures of objects are available:":"Apenas as seguintes estruturas de objetos estão disponíveis:","ra_Only selected":"Apenas selecionado","ra_Owner group":"Grupo proprietário","ra_Owner user":"Usuário proprietário","ra_Passwords are not equal!":"As senhas não são iguais!","ra_Place your files here or click here to open the browse dialog":"Coloque seus arquivos aqui ou clique aqui para abrir a janela de navegação","ra_Please allow popups in your browser for this page!":"Por favor, permita pop-ups no seu navegador para esta página!","ra_Please confirm":"Por favor confirme","ra_Please create license":"Crie uma licença","ra_Please enter the license":"Por favor, insira a licença","ra_Please select file...":"Selecione o arquivo...","ra_Please select object ID...":"Selecione o ID do objeto ...","ra_Port could be used by %s":"A porta pode ser usada por %s","ra_Port is already used by %s":"A porta já está sendo usada por %s","ra_Press ENTER Key to add new item":"Pressione a tecla ENTER para adicionar um novo item","ra_Private certificate":"certificado privado",ra_Product:zle,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Rename_Move_Copy:Lle,"ra_Renew %s access":"Renovar acesso %s",ra_Repeat:Fle,ra_Replace:Ble,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:Wle,ra_Saturday:Ule,ra_Save:qle,"ra_Save and close":"Salvar e fechar","ra_Save configuration to file":"Salvar configuração em arquivo","ra_Save objects tree as JSON file":"Salvar árvore de objetos como arquivo JSON","ra_Select all":"Selecionar tudo","ra_Select color":"Selecione a cor","ra_Select predefined icon":"Selecione o ícone predefinido","ra_Select type of export":"Selecione o tipo de exportação",ra_Selected:Hle,"ra_Selected %s object(s)":"%s objeto(s) selecionado(s)","ra_Serial number (UUID)":"Número de série (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'O número de série (UUID) "%s" na licença é para outro dispositivo.',"ra_Session will expire in %s seconds. Continue?":"A sessão irá expirar em %s segundos. Continuar?","ra_Show all folders":"Mostrar todas as pastas","ra_Show lines between rows":"Mostrar linhas entre as linhas","ra_Show/Hide object descriptions":"Mostrar/ocultar descrições de objetos","ra_Show/hide filter input":"Mostrar/ocultar entrada de filtro","ra_Some data are not stored. Discard?":"Alguns dados não são armazenados. Descartar?",ra_States:Vle,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Autorizado com sucesso. Token válido até %s e será renovado automaticamente.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Autorizado com sucesso. Token válido até %s, mas pode expirar, pois a instância não está em execução.","ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:Gle,"ra_Suppress question for next %s minutes":"Suprimir pergunta nos próximos %s minutos","ra_System language":"Idioma do sistema","ra_Take browser position":"Tomar posição do navegador","ra_Take position from system settings":"Tomar posição a partir das configurações do sistema",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Os especialistas podem criar objetos em qualquer lugar, exceto no segundo nível (por exemplo, "vis.0" ou "javascript.0").',"ra_The page you are looking for was not found":"A página que você está procurando não foi encontrada","ra_The schedule will be executed every minute. Are you sure?":"O agendamento será executado a cada minuto. Tem certeza?","ra_The schedule will be executed every second. Are you sure?":"O agendamento será executado a cada segundo. Tem certeza?",ra_Thursday:Xle,ra_Timestamp:Jle,"ra_Toggle expert mode":"Alternar modo especialista","ra_Toggle the states view":"Alternar a visualização dos estados","ra_Toggle view mode":"Alternar modo de visualização","ra_Too big":"Muito grande","ra_Too small":"Muito pequeno","ra_Transparent dialog":"Diálogo transparente",ra_Tuesday:Yle,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:Kle,"ra_Upload file":"Subir arquivo","ra_Use all available let's encrypt certificates":"Use todos os certificados disponíveis vamos criptografar","ra_Use iobroker.acme adapter for letsencrypt certificates":"Use o adaptador iobroker.acme para certificados letsencrypt","ra_Use system settings for position":"Use as configurações do sistema para a posição","ra_Used system settings":"Configurações do sistema usadas","ra_User files":"Arquivos do usuário",ra_ValidTill:Zle,ra_Value:Qle,ra_Version:eue,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:tue,ra_Width:rue,"ra_YAML editor":"Editor YAML",ra_Yes:nue,"ra_You can export all objects or just the selected branch.":"Você pode exportar todos os objetos ou apenas a ramificação selecionada.","ra_You can filter entries by entering here some text":"Você pode filtrar as entradas digitando aqui algum texto","ra_You can use * as wildcard":"Você pode usar * como curinga",ra___different__:oue,ra_aclEveryone_read_object:aue,ra_aclEveryone_read_state:iue,ra_aclEveryone_write_object:sue,ra_aclEveryone_write_state:cue,ra_aclGroup_read_object:lue,ra_aclGroup_read_state:uue,ra_aclGroup_write_object:due,ra_aclGroup_write_state:pue,ra_aclOwner_read_object:fue,ra_aclOwner_read_state:hue,ra_aclOwner_write_object:mue,ra_aclOwner_write_state:_ue,ra_buttons:gue,ra_changedFrom:yue,ra_close:vue,ra_create_boolean_state:bue,ra_create_channel:wue,ra_create_device:Sue,ra_create_number_state:xue,ra_create_state:kue,ra_create_string_state:Cue,ra_daysShortText:$ue,ra_dow_Fr:Eue,ra_dow_Mo:Tue,ra_dow_Sa:Oue,ra_dow_Su:Due,ra_dow_Th:Rue,ra_dow_Tu:Mue,ra_dow_We:Aue,ra_expertMode:Nue,ra_false:Pue,ra_fileType_all:Iue,ra_fileType_audio:jue,ra_fileType_code:zue,ra_fileType_images:Lue,ra_fileType_txt:Fue,ra_fileType_video:Bue,"ra_fileType_video,":"Vídeo",ra_filter_customs:Wue,ra_filter_customs_without:Uue,ra_filter_func:que,ra_filter_id:Hue,ra_filter_name:Vue,ra_filter_role:Gue,ra_filter_room:Xue,ra_filter_type:Jue,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:Yue,ra_lastChange:Kue,ra_locally:Zue,ra_month_Apr:Que,ra_month_Aug:ede,ra_month_Dec:tde,ra_month_Feb:rde,ra_month_Jan:nde,ra_month_Jul:ode,ra_month_Jun:ade,ra_month_Mai:ide,ra_month_Mar:sde,ra_month_Nov:cde,ra_month_Oct:lde,ra_month_Sep:ude,ra_months_Apr:dde,ra_months_Aug:pde,ra_months_Dec:fde,ra_months_Feb:hde,ra_months_Jan:mde,ra_months_Jul:_de,ra_months_Jun:gde,ra_months_Mai:yde,ra_months_Mar:vde,ra_months_Nov:bde,ra_months_Oct:wde,ra_months_Sep:Sde,"ra_no confirm for 5 mins":"sem confirmação por 5 minutos",ra_none:xde,ra_object_changed_by:kde,ra_object_changed_by_user:Cde,ra_otherConfig:$de,ra_qualityCode:Ede,ra_repeat:Tde,ra_select_folder_hint:Ode,ra_show_all:Dde,ra_state_changed_by:Rde,ra_state_changed_from:Mde,ra_timestamp:Ade,ra_tooltip_ack:Nde,ra_tooltip_comment:Pde,ra_tooltip_copyState:Ide,ra_tooltip_ctrlForLink:jde,ra_tooltip_customConfig:zde,ra_tooltip_deleteObject:Lde,ra_tooltip_editObject:Fde,ra_tooltip_editState:Bde,ra_tooltip_expire:Wde,ra_tooltip_from:Ude,ra_tooltip_lc:qde,ra_tooltip_quality:Hde,ra_tooltip_ts:Vde,ra_tooltip_user:Gde,ra_tooltip_value:Xde,ra_true:Jde,"ra_use seconds":"use segundos",ra_val:Yde,"ra_via internet":"via internet",ra_warning_every_minute:Kde,ra_warning_every_second:Zde,sc_cron:Qde,sc_date:epe,sc_dates:tpe,sc_dow:rpe,sc_dows:npe,sc_every:ope,sc_everyN_dates:ape,sc_everyN_dow:ipe,sc_everyN_dows:spe,sc_everyN_hours:cpe,sc_everyN_minutes:lpe,sc_everyN_months:upe,sc_everyN_seconds:dpe,sc_every_dates:ppe,sc_every_dow:fpe,sc_every_dows:hpe,sc_every_hours:mpe,sc_every_minutes:_pe,sc_every_months:gpe,sc_every_seconds:ype,sc_from:vpe,sc_hours:bpe,sc_interval:wpe,sc_intervalBetween:Spe,sc_invalid_cron:xpe,sc_minutes:kpe,sc_months:Cpe,sc_once:$pe,sc_period:Epe,sc_seconds:Tpe,sc_simple:Ope,sc_specific:Dpe,sc_specific_dates:Rpe,sc_specific_dow:Mpe,sc_specific_dows:Ape,sc_specific_hours:Npe,sc_specific_minutes:Ppe,sc_specific_months:Ipe,sc_specific_seconds:jpe,sc_time:zpe,sc_to:Lpe,sc_wizard:Fpe,sch_all:Bpe,sch_astroDay:Wpe,sch_astroNight:Upe,sch_astro_dawn:qpe,sch_astro_dusk:Hpe,sch_astro_goldenHour:Vpe,sch_astro_goldenHourEnd:Gpe,sch_astro_nadir:Xpe,sch_astro_nauticalDawn:Jpe,sch_astro_nauticalDusk:Ype,sch_astro_night:Kpe,sch_astro_nightEnd:Zpe,sch_astro_solarNoon:Qpe,sch_astro_sunrise:efe,sch_astro_sunriseEnd:tfe,sch_astro_sunset:rfe,sch_astro_sunsetStart:nfe,sch_at:ofe,sch_desc_atTime:afe,sch_desc_everyDay:ife,sch_desc_everyHour:sfe,sch_desc_everyMinute:cfe,sch_desc_everyMonth:lfe,sch_desc_everyNDay:ufe,sch_desc_everyNHours:dfe,sch_desc_everyNMinutes:pfe,sch_desc_everyNMonths:ffe,sch_desc_everyNWeeks:hfe,sch_desc_everyNYears:mfe,sch_desc_everyWeek:_fe,sch_desc_everyYear:gfe,sch_desc_intervalFromTo:yfe,sch_desc_never:vfe,sch_desc_onDate:bfe,sch_desc_onDates:wfe,sch_desc_onEveryDate:Sfe,sch_desc_onMonth:xfe,sch_desc_onMonths:kfe,sch_desc_onWeekday:Cfe,sch_desc_onWeekdays:$fe,sch_desc_onWeekends:Efe,sch_desc_onWorkdays:Tfe,sch_desc_onceInPast:Ofe,sch_desc_once_on:Dfe,sch_desc_validFrom:Rfe,sch_desc_validFromTo:Mfe,sch_desc_validTo:Afe,sch_every:Nfe,sch_exactTime:Pfe,sch_from:Ife,sch_fromTo:jfe,sch_intervalTime:zfe,sch_invert:Lfe,sch_no_one:Ffe,sch_on:Bfe,sch_period:Wfe,sch_periodDaily:Ufe,sch_periodDates:qfe,sch_periodDay:Hfe,sch_periodEvery:Vfe,sch_periodEveryDay:Gfe,sch_periodEveryMonth:Xfe,sch_periodEveryWeek:Jfe,sch_periodEveryYear:Yfe,sch_periodHours:Kfe,sch_periodMinutes:Zfe,sch_periodMonth:Qfe,sch_periodMonthly:ehe,sch_periodOnce:the,sch_periodSpecificMonths:rhe,sch_periodWeek:nhe,sch_periodWeekdays:ohe,sch_periodWeekend:ahe,sch_periodWeekly:ihe,sch_periodWorkdays:she,sch_periodYear:che,sch_periodYearly:lhe,sch_specificTime:uhe,sch_time:dhe,sch_to:phe,sch_valid:fhe,sch_validFrom:hhe,sch_validTo:mhe,sch_wholeDay:_he,sch_yearEveryMonth:ghe},vhe="Acties",bhe="toevoegen",whe="Annuleer",She="Categorieën",xhe="Gecontroleerd",khe="Verwijderen",Che="Dichtbij",$he="Reclame",Ehe="Configureren",The="Verbonden",Ohe="Doorgaan",Dhe="Gekopieerd",Rhe="Creëer",Mhe="Bijsnijden",Ahe="Delete",Nhe="Verwijderen",Phe="Weggooien",Ihe="Verbinding verbroken",jhe="Fout",zhe="Filter",Lhe="Vrijdag",Fhe="Breedtegraad",Bhe="Uitloggen",Whe="Lengtegraad",Uhe="Bericht",qhe="Maandag",Hhe="Naam",Vhe="Voorwerpen",Ghe="OK",Xhe="Product",Jhe="Hernoemen/Verplaatsen/Kopiëren",Yhe="Herhaling",Khe="Vervangen",Zhe="Wortel",Qhe="Zaterdag",eme="Sparen",tme="Geselecteerd",rme="Staten",nme="Zondag",ome="Donderdag",ame="Tijdstempel",ime="Dinsdag",sme="Bijwerken",cme="Geldig tot",lme="Waarde",ume="Versie",dme="Woensdag",pme="Breedte",fme="Ja",hme="verschillend",mme="Iedereen kan object lezen",_me="Iedereen kan staat lezen",gme="Iedereen kan object schrijven",yme="Iedereen kan staat schrijven",vme="Groep kan object lezen",bme="Groep kan status lezen",wme="Groep kan object schrijven",Sme="Groep kan staat schrijven",xme="Eigenaar kan object lezen",kme="Eigenaar kan staat lezen",Cme="Eigenaar kan object schrijven",$me="Eigenaar kan staat schrijven",Eme="Toetsen",Tme="Veranderd van",Ome="dichtbij",Dme="Creëer een Booleaanse status",Rme="Kanaal maken",Mme="Apparaat maken",Ame="Nummerstatus maken",Nme="Staat creëren",Pme="Tekenreeksstatus maken",Ime="d.",jme="Fr",zme="Mo",Lme="Za",Fme="Zo",Bme="Th",Wme="Tu",Ume="Wij",qme="Expert modus",Hme="ONWAAR",Vme="Alle bestanden",Gme="Audio",Xme="Code/JSON",Jme="Afbeeldingen",Yme="Tekst",Kme="Video",Zme="Instellingen",Qme="zonder",e_e="Functie",t_e="ID",r_e="Naam",n_e="Rol",o_e="Kamer",a_e="Type",i_e="Ongeldige instellingen",s_e="Laatste wijziging",c_e="plaatselijk",l_e="april",u_e="aug",d_e="dec",p_e="februari",f_e="jan",h_e="jul",m_e="juni",__e="Mei",g_e="mrt",y_e="nov",v_e="Okt",b_e="sept",w_e="april",S_e="aug",x_e="dec",k_e="februari",C_e="jan",$_e="jul",E_e="juni",T_e="Mei",O_e="mrt",D_e="nov",R_e="Okt",M_e="sept",A_e="geen",N_e="Object veranderd door",P_e="Object voor het laatst gewijzigd om",I_e="Instellingen van andere adapter %s",j_e="Kwaliteitscode",z_e="herhalen",L_e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',F_e="Alles weergeven",B_e="Staat veranderd door",W_e="Object veranderd van",U_e="Tijdstempel",q_e="Erkende vlag",H_e="Opmerking",V_e="Kopieer de statuswaarde",G_e="Houd de Cltr/⌘-toets ingedrukt om de link te openen",X_e="Aangepaste instellingen",J_e="Object verwijderen",Y_e="Object bewerken",K_e="Bewerk de statuswaarde",Z_e="Verloopt over",Q_e="Van",ege="Laatst gewijzigd",tge="Kwaliteit",rge="Tijdstempel",nge="Gebruiker",oge="Waarde",age="WAAR",ige="Waarde",sge="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",cge="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",lge="CRON",uge="Datum",dge="data",pge="Dag",fge="Dag van de week",hge="elk",mge="elke N dagen",_ge="elke N-de dag van de week",gge="elke N dag van de week",yge="elke N uur",vge="elke N minuten",bge="elke N maanden",wge="elke N seconden",Sge="elke dag",xge="elke dag van de week",kge="elke dag van de week",Cge="elk uur",$ge="elke minuut",Ege="elke maand",Tge="elke seconde",Oge="Van",Dge="uren",Rge="Interval",Mge="Interval tussen",Age="Ongeldige CRON",Nge="Notulen",Pge="maanden",Ige="Een keer",jge="Periode",zge="seconden",Lge="Gemakkelijk",Fge="Specifieke tijd",Bge="specifieke data",Wge="specifieke dag(en) van de week",Uge="specifieke dag van weken",qge="specifieke uren",Hge="specifieke minuten",Vge="specifieke maanden",Gge="specifieke seconden",Xge="Tijd",Jge="Naar",Yge="tovenaar",Kge="allemaal",Zge="Astro-dag",Qge="Astro-nacht",eye="Dageraad",tye="Schemer",rye="gouden uur",nye="Gouden uur einde",oye="Nadir",aye="Nautische dageraad",iye="Nautische schemering",sye="Nacht",cye="Nacht einde",lye="Zonne middag",uye="zonsopkomst",dye="Sunrise einde",pye="Zonsondergang",fye="Zonsondergang start",hye="Bij",mye="op %s",_ye="elke dag",gye="elk uur",yye="elke minuut",vye="elke maand",bye="elke %s dag",wye="elke %s uur",Sye="elke %s minuten",xye="elke %s maanden",kye="elke %s weken",Cye="elke %s jaar",$ye="elke week",Eye="elk jaar",Tye="van %s tot %s",Oye="nooit",Dye="op %s van %s",Rye="op %s en %s van",Mye="op elke datum van",Aye="%s",Nye="%s en %s",Pye="op %s",Iye="op %s en %s",jye="in het weekend",zye="op werkdagen",Lye="zal niet meer worden uitgevoerd, omdat start verleden tijd is",Fye="op %s",Bye="van %s",Wye="Uitvoeren van tot",Uye="tot %s",qye="elk",Hye="Specifieke tijd",Vye="van",Gye="Van naar",Xye="Interval tijd",Jye="omkeren",Yye="geen",Kye="Aan",Zye="Periode",Qye="Dagelijks",e0e="data",t0e="Dag",r0e="elk",n0e="Elke dag",o0e="Elke maand",a0e="Elke week",i0e="Elk jaar",s0e="uren",c0e="Notulen",l0e="maand",u0e="Maandelijks",d0e="Een keer",p0e="Specifieke maanden",f0e="Week",h0e="Doordeweekse dagen",m0e="Weekend",_0e="Wekelijks",g0e="werkdagen",y0e="Jaar",v0e="jaar-",b0e="Specifieke tijd",w0e="Tijd",S0e="naar",x0e="Geldig",k0e="van",C0e="naar",$0e="Hele dag",E0e="elke maand",T0e={"ra_%s links from aliases":"%s links van aliassen","ra_%s object(s) processed":"%s object(en) verwerkt","ra_%s was imported":"%s is geïmporteerd","ra_Accept license":"Accepteer licentie",ra_Actions:vhe,"ra_Add new child object to selected parent":"Voeg een nieuw kindobject toe aan het geselecteerde bovenliggende object","ra_Add objects tree from JSON file":"Objectenboom toevoegen vanuit JSON-bestand","ra_Add row":"Voeg een rij toe","ra_Advanced options":"Geavanceerde mogelijkheden","ra_All items are filtered out":"Alle items zijn uitgefilterd","ra_All objects":"Alle objecten",ra_Append:bhe,"ra_Append %s entries or replace existing?":"%s ingangen toevoegen of bestaande vervangen?","ra_Append or replace?":"Toevoegen of vervangen?","ra_Are you sure?":"Weet je het zeker?","ra_Auto (no custom columns)":"Auto (geen aangepaste kolommen)","ra_Back to %s":"Terug naar %s","ra_Background image":"Achtergrond afbeelding",ra_Cancel:whe,"ra_Cannot add items with set filter":"Kan geen items toevoegen met ingestelde filter","ra_Cannot decode license":"Kan licentie niet decoderen","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Kan positie niet bepalen: systeeminstellingen zijn leeg en GPS-detectie is uitgeschakeld in browser",'ra_Cannot find "%s"':'Kan "%s" niet vinden','ra_Cannot read "%s"':'Kan "%s" niet lezen',"ra_Cannot read licenses: %s":"Kan licenties niet lezen: %s","ra_Cannot retrieve options, as instance is offline":"Kan opties niet ophalen, omdat instantie offline is","ra_Cannot update attribute, because not found in the object":"Kan kenmerk niet bijwerken, omdat het niet in het object is gevonden","ra_Cannot upload":"Kan niet uploaden",ra_Categories:She,"ra_Chained certificate":"Geketend certificaat","ra_Change color theme":"Kleurthema wijzigen","ra_Changed from":"Veranderd van","ra_Channel → State":"Kanaal → Staat","ra_Check license":"Licentie controleren",ra_Checked:xhe,ra_Clear:khe,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Click to see in full size":"Klik om de afbeelding op volledige grootte te bekijken.","ra_Click to show":"Klik om te tonen","ra_Clone current row":"Kloon de huidige rij",ra_Close:Che,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:$he,ra_Configure:Ehe,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:The,ra_Continue:Ohe,ra_Copied:Dhe,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:Rhe,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:Mhe,"ra_Define CRON...":"Definieer CRON...","ra_Define functions":"Definieer functies","ra_Define rooms":"Definieer kamers","ra_Define schedule":"Definieer schema","ra_Define schedule...":"Schema definiëren ...",ra_Del:Ahe,ra_Delete:Nhe,"ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat","ra_Disable/Enable translation":"Vertaling uitschakelen/inschakelen",ra_Discard:Phe,ra_Disconnected:Ihe,"ra_Do not ask for next 2 hours in this session":"Vraag niet om de volgende 2 uur in deze sessie","ra_Do not export values of states":"Exporteer geen waarden van staten","ra_Do not use let's encrypt":"Gebruik geen let's encrypt","ra_Docker is not available":"Docker is niet beschikbaar","ra_Docker is not installed or not running":"Docker is niet geïnstalleerd of draait niet","ra_Double click to reset table layout":"Dubbelklik om de tafelindeling te resetten","ra_Drag 'n' drop some files here, or click to select files":"Sleep enkele bestanden hierheen, of klik om bestanden te selecteren","ra_Drop file here":"Zet het bestand hier neer","ra_Drop the files here...":"Zet het bestand hier neer...","ra_Duplicate name":"Dubbele naam","ra_Edit ACL":"ACL bewerken","ra_Edit alias":"Alias bewerken","ra_Edit custom config":"Bewerk aangepaste config","ra_Edit full path":"Volledig pad bewerken","ra_Edit function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken","ra_Enter the code from that page here":"Voer hier de code van die pagina in",ra_Error:jhe,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","ra_Expand/Collapse card":"Kaart uit-/inklappen","ra_Export configuration section":"Sectie Exportconfiguratie","ra_Export data to %s file":"Exporteer gegevens naar %s bestand","ra_Failed to open JSON File":"JSON-bestand kan niet worden geopend","ra_Fallback custom certificates":"Fallback aangepaste certificaten","ra_File is too big. Max %sk allowed. Try use SVG.":"Bestand is te groot. Max. %sk toegestaan. Probeer SVG te gebruiken.",ra_Filter:zhe,"ra_Filter and Data Actions":"Filter- en gegevensacties","ra_Filter files":"Bestanden filteren","ra_Folder name":"Naam van de map","ra_Folder → Channel → State":"Map → Kanaal → Staat","ra_Folder → Device → Channel → State":"Map → Apparaat → Kanaal → Staat","ra_Folder → State":"Map → Staat","ra_Folders always first":"Mappen altijd eerst",ra_Friday:Lhe,"ra_From file":"Van bestand","ra_From text":"Van tekst","ra_Get %s access":"Krijg %s toegang","ra_Good luck":"Veel geluk","ra_Hide empty folders":"Verberg lege mappen","ra_If no file will be created in the folder, it will disappear after the browser closed":"Als er geen bestand in de map wordt gemaakt, verdwijnt het nadat de browser is gesloten","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Als de bovenstaande knop niet werkt, kunt u deze app handmatig autoriseren door deze url te bezoeken","ra_Import and add configuration section":"Configuratiesectie importeren en toevoegen","ra_Import and replace configuration section":"Configuratiesectie importeren en vervangen","ra_Import data from %s file":"Importeer gegevens uit %s bestand","ra_Import from %s":"Importeren uit %s","ra_Instance %s is alive":"Instantie %s leeft","ra_Instance %s is not alive":"Instantie %s is niet actief","ra_Instance is not alive":"Instantie leeft niet","ra_Invalid CRON":"Ongeldige CRON","ra_Invalid JSON":"Ongeldige JSON","ra_Invalid JSON file.":"Ongeldig JSON-bestand.","ra_Invalid JSON format. Expected an array.":"Ongeldige JSON-indeling. Er werd een array verwacht.","ra_Invalid answer from server":"Ongeldig antwoord van de server","ra_Invalid parent folder!":"Ongeldige bovenliggende map!","ra_Invalid structure":"Ongeldige structuur","ra_JSON editor":"JSON-editor","ra_Last change":"Laatste wijziging",ra_Latitude:Fhe,"ra_License %s":"Licentie %s","ra_License agreement":"Licentieovereenkomst","ra_License does not exist":"Licentie bestaat niet","ra_License expired on %s":"Licentie verlopen op %s",'ra_License for other product "%s"':'Licentie voor ander product "%s"',"ra_License is for version %s, but required version is %s.":"Licentie is voor versie %s, maar vereiste versie is %s.","ra_License must be converted":"Licentie moet worden omgezet naar nieuwere versie. U kunt dit doen in uw iobroker.net-profiel.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licentie niet gevonden in licentiebeheer. Wilt u licenties van iobroker.net bijwerken?","ra_Listen on all IPs":"Luister op alle IP's","ra_Load configuration from file":"Laad configuratie uit bestand",ra_Logout:Bhe,ra_Longitude:Whe,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:Uhe,ra_Monday:qhe,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:Hhe,"ra_No data found in file":"Geen gegevens gevonden in bestand","ra_No one license found in license manager":"Geen enkele licentie gevonden in licentiebeheer","ra_No response from admin":"Geen reactie van de beheerder","ra_No response from the backend":"Geen reactie van de backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Niet-experts mogen alleen nieuwe objecten maken in "0_userdata.0" of "alias.0".',"ra_Not a number":"Geen nummer","ra_OAuth Client ID":"OAuth-client-ID","ra_OAuth Client secret":"OAuth-clientgeheim",ra_Objects:Vhe,ra_Ok:Ghe,"ra_On weekdays":"Op weekdagen","ra_Only following structures of objects are available:":"Alleen de volgende structuren van objecten zijn beschikbaar:","ra_Only selected":"Alleen geselecteerd","ra_Owner group":"Eigenaarsgroep","ra_Owner user":"Eigenaar gebruiker","ra_Passwords are not equal!":"Wachtwoorden zijn niet gelijk!","ra_Place your files here or click here to open the browse dialog":"Plaats uw bestanden hier of klik hier om het bladervenster te openen","ra_Please allow popups in your browser for this page!":"Sta pop-ups toe in uw browser voor deze pagina!","ra_Please confirm":"Bevestig alstublieft","ra_Please create license":"Maak een licentie aan","ra_Please enter the license":"Voer de licentie in","ra_Please select file...":"Selecteer bestand...","ra_Please select object ID...":"Selecteer object-ID ...","ra_Port could be used by %s":"Poort kan worden gebruikt door %s","ra_Port is already used by %s":"Poort wordt al gebruikt door %s","ra_Press ENTER Key to add new item":"Druk op de ENTER-toets om een nieuw item toe te voegen","ra_Private certificate":"Privé certificaat",ra_Product:Xhe,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Rename_Move_Copy:Jhe,"ra_Renew %s access":"%s toegang verlengen",ra_Repeat:Yhe,ra_Replace:Khe,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:Zhe,ra_Saturday:Qhe,ra_Save:eme,"ra_Save and close":"Opslaan en afsluiten","ra_Save configuration to file":"Sla de configuratie op in een bestand","ra_Save objects tree as JSON file":"Sla de objectenboom op als JSON-bestand","ra_Select all":"Selecteer alles","ra_Select color":"Selecteer kleur","ra_Select predefined icon":"Selecteer voorgedefinieerd pictogram","ra_Select type of export":"Selecteer het type export",ra_Selected:tme,"ra_Selected %s object(s)":"Geselecteerde %s object(en)","ra_Serial number (UUID)":"Serienummer (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Serienummer (UUID) "%s" in licentie is voor ander apparaat.',"ra_Session will expire in %s seconds. Continue?":"Sessie verloopt over %s seconden. Doorgaan?","ra_Show all folders":"Toon alle mappen","ra_Show lines between rows":"Toon lijnen tussen rijen","ra_Show/Hide object descriptions":"Toon/verberg objectbeschrijvingen","ra_Show/hide filter input":"Filterinvoer weergeven/verbergen","ra_Some data are not stored. Discard?":"Sommige gegevens worden niet opgeslagen. Weggooien?",ra_States:rme,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Succesvol geautoriseerd. Token geldig tot %s en wordt automatisch verlengd.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Succesvol geautoriseerd. Token geldig tot %s, maar kan verlopen omdat de instantie niet actief is.","ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:nme,"ra_Suppress question for next %s minutes":"Vraag de volgende %s minuten onderdrukken","ra_System language":"Systeemtaal","ra_Take browser position":"Positie innemen vanuit de browser","ra_Take position from system settings":"Neem positie over van systeeminstellingen",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'De experts kunnen overal objecten maken, behalve vanaf het tweede niveau (bijv. "Vis.0" of "javascript.0").',"ra_The page you are looking for was not found":"De pagina die u zoekt is niet gevonden","ra_The schedule will be executed every minute. Are you sure?":"Het schema wordt elke minuut uitgevoerd. Weet u het zeker?","ra_The schedule will be executed every second. Are you sure?":"Het schema wordt elke seconde uitgevoerd. Weet je het zeker?",ra_Thursday:ome,ra_Timestamp:ame,"ra_Toggle expert mode":"Schakel tussen expertmodus","ra_Toggle the states view":"Schakel de statusweergave in of uit","ra_Toggle view mode":"Schakelen tussen weergavemodus","ra_Too big":"Te groot","ra_Too small":"Te klein","ra_Transparent dialog":"Transparant dialoogvenster",ra_Tuesday:ime,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:sme,"ra_Upload file":"Upload bestand","ra_Use all available let's encrypt certificates":"Gebruik alle beschikbare Let's Encrypt-certificaten","ra_Use iobroker.acme adapter for letsencrypt certificates":"Gebruik de iobroker.acme-adapter voor letsencrypt-certificaten","ra_Use system settings for position":"Gebruik systeeminstellingen voor positie","ra_Used system settings":"Gebruikte systeeminstellingen","ra_User files":"Gebruikersbestanden",ra_ValidTill:cme,ra_Value:lme,ra_Version:ume,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:dme,ra_Width:pme,"ra_YAML editor":"YAML-editor",ra_Yes:fme,"ra_You can export all objects or just the selected branch.":"U kunt alle objecten of alleen de geselecteerde tak exporteren.","ra_You can filter entries by entering here some text":"U kunt items filteren door hier wat tekst in te voeren","ra_You can use * as wildcard":"U kunt * als joker gebruiken",ra___different__:hme,ra_aclEveryone_read_object:mme,ra_aclEveryone_read_state:_me,ra_aclEveryone_write_object:gme,ra_aclEveryone_write_state:yme,ra_aclGroup_read_object:vme,ra_aclGroup_read_state:bme,ra_aclGroup_write_object:wme,ra_aclGroup_write_state:Sme,ra_aclOwner_read_object:xme,ra_aclOwner_read_state:kme,ra_aclOwner_write_object:Cme,ra_aclOwner_write_state:$me,ra_buttons:Eme,ra_changedFrom:Tme,ra_close:Ome,ra_create_boolean_state:Dme,ra_create_channel:Rme,ra_create_device:Mme,ra_create_number_state:Ame,ra_create_state:Nme,ra_create_string_state:Pme,ra_daysShortText:Ime,ra_dow_Fr:jme,ra_dow_Mo:zme,ra_dow_Sa:Lme,ra_dow_Su:Fme,ra_dow_Th:Bme,ra_dow_Tu:Wme,ra_dow_We:Ume,ra_expertMode:qme,ra_false:Hme,ra_fileType_all:Vme,ra_fileType_audio:Gme,ra_fileType_code:Xme,ra_fileType_images:Jme,ra_fileType_txt:Yme,ra_fileType_video:Kme,"ra_fileType_video,":"Video",ra_filter_customs:Zme,ra_filter_customs_without:Qme,ra_filter_func:e_e,ra_filter_id:t_e,ra_filter_name:r_e,ra_filter_role:n_e,ra_filter_room:o_e,ra_filter_type:a_e,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:i_e,ra_lastChange:s_e,ra_locally:c_e,ra_month_Apr:l_e,ra_month_Aug:u_e,ra_month_Dec:d_e,ra_month_Feb:p_e,ra_month_Jan:f_e,ra_month_Jul:h_e,ra_month_Jun:m_e,ra_month_Mai:__e,ra_month_Mar:g_e,ra_month_Nov:y_e,ra_month_Oct:v_e,ra_month_Sep:b_e,ra_months_Apr:w_e,ra_months_Aug:S_e,ra_months_Dec:x_e,ra_months_Feb:k_e,ra_months_Jan:C_e,ra_months_Jul:$_e,ra_months_Jun:E_e,ra_months_Mai:T_e,ra_months_Mar:O_e,ra_months_Nov:D_e,ra_months_Oct:R_e,ra_months_Sep:M_e,"ra_no confirm for 5 mins":"geen bevestiging gedurende 5 minuten",ra_none:A_e,ra_object_changed_by:N_e,ra_object_changed_by_user:P_e,ra_otherConfig:I_e,ra_qualityCode:j_e,ra_repeat:z_e,ra_select_folder_hint:L_e,ra_show_all:F_e,ra_state_changed_by:B_e,ra_state_changed_from:W_e,ra_timestamp:U_e,ra_tooltip_ack:q_e,ra_tooltip_comment:H_e,ra_tooltip_copyState:V_e,ra_tooltip_ctrlForLink:G_e,ra_tooltip_customConfig:X_e,ra_tooltip_deleteObject:J_e,ra_tooltip_editObject:Y_e,ra_tooltip_editState:K_e,ra_tooltip_expire:Z_e,ra_tooltip_from:Q_e,ra_tooltip_lc:ege,ra_tooltip_quality:tge,ra_tooltip_ts:rge,ra_tooltip_user:nge,ra_tooltip_value:oge,ra_true:age,"ra_use seconds":"gebruik seconden",ra_val:ige,"ra_via internet":"via internet",ra_warning_every_minute:sge,ra_warning_every_second:cge,sc_cron:lge,sc_date:uge,sc_dates:dge,sc_dow:pge,sc_dows:fge,sc_every:hge,sc_everyN_dates:mge,sc_everyN_dow:_ge,sc_everyN_dows:gge,sc_everyN_hours:yge,sc_everyN_minutes:vge,sc_everyN_months:bge,sc_everyN_seconds:wge,sc_every_dates:Sge,sc_every_dow:xge,sc_every_dows:kge,sc_every_hours:Cge,sc_every_minutes:$ge,sc_every_months:Ege,sc_every_seconds:Tge,sc_from:Oge,sc_hours:Dge,sc_interval:Rge,sc_intervalBetween:Mge,sc_invalid_cron:Age,sc_minutes:Nge,sc_months:Pge,sc_once:Ige,sc_period:jge,sc_seconds:zge,sc_simple:Lge,sc_specific:Fge,sc_specific_dates:Bge,sc_specific_dow:Wge,sc_specific_dows:Uge,sc_specific_hours:qge,sc_specific_minutes:Hge,sc_specific_months:Vge,sc_specific_seconds:Gge,sc_time:Xge,sc_to:Jge,sc_wizard:Yge,sch_all:Kge,sch_astroDay:Zge,sch_astroNight:Qge,sch_astro_dawn:eye,sch_astro_dusk:tye,sch_astro_goldenHour:rye,sch_astro_goldenHourEnd:nye,sch_astro_nadir:oye,sch_astro_nauticalDawn:aye,sch_astro_nauticalDusk:iye,sch_astro_night:sye,sch_astro_nightEnd:cye,sch_astro_solarNoon:lye,sch_astro_sunrise:uye,sch_astro_sunriseEnd:dye,sch_astro_sunset:pye,sch_astro_sunsetStart:fye,sch_at:hye,sch_desc_atTime:mye,sch_desc_everyDay:_ye,sch_desc_everyHour:gye,sch_desc_everyMinute:yye,sch_desc_everyMonth:vye,sch_desc_everyNDay:bye,sch_desc_everyNHours:wye,sch_desc_everyNMinutes:Sye,sch_desc_everyNMonths:xye,sch_desc_everyNWeeks:kye,sch_desc_everyNYears:Cye,sch_desc_everyWeek:$ye,sch_desc_everyYear:Eye,sch_desc_intervalFromTo:Tye,sch_desc_never:Oye,sch_desc_onDate:Dye,sch_desc_onDates:Rye,sch_desc_onEveryDate:Mye,sch_desc_onMonth:Aye,sch_desc_onMonths:Nye,sch_desc_onWeekday:Pye,sch_desc_onWeekdays:Iye,sch_desc_onWeekends:jye,sch_desc_onWorkdays:zye,sch_desc_onceInPast:Lye,sch_desc_once_on:Fye,sch_desc_validFrom:Bye,sch_desc_validFromTo:Wye,sch_desc_validTo:Uye,sch_every:qye,sch_exactTime:Hye,sch_from:Vye,sch_fromTo:Gye,sch_intervalTime:Xye,sch_invert:Jye,sch_no_one:Yye,sch_on:Kye,sch_period:Zye,sch_periodDaily:Qye,sch_periodDates:e0e,sch_periodDay:t0e,sch_periodEvery:r0e,sch_periodEveryDay:n0e,sch_periodEveryMonth:o0e,sch_periodEveryWeek:a0e,sch_periodEveryYear:i0e,sch_periodHours:s0e,sch_periodMinutes:c0e,sch_periodMonth:l0e,sch_periodMonthly:u0e,sch_periodOnce:d0e,sch_periodSpecificMonths:p0e,sch_periodWeek:f0e,sch_periodWeekdays:h0e,sch_periodWeekend:m0e,sch_periodWeekly:_0e,sch_periodWorkdays:g0e,sch_periodYear:y0e,sch_periodYearly:v0e,sch_specificTime:b0e,sch_time:w0e,sch_to:S0e,sch_valid:x0e,sch_validFrom:k0e,sch_validTo:C0e,sch_wholeDay:$0e,sch_yearEveryMonth:E0e},O0e="Actes",D0e="Ajouter",R0e="Annuler",M0e="Catégories",A0e="Vérifié",N0e="Effacer",P0e="Fermer",I0e="Commercial",j0e="Configurer",z0e="Lié",L0e="Continuer",F0e="Copié",B0e="Créer",W0e="Recadrer",U0e="Delete",q0e="Supprimer",H0e="Jeter",V0e="Débranché",G0e="Erreur",X0e="Filtre",J0e="Vendredi",Y0e="Latitude",K0e="Déconnexion",Z0e="Longitude",Q0e="Message",eve="Lundi",tve="Nom",rve="Objets",nve="D'accord",ove="Produit",ave="Renommer/Déplacer/Copier",ive="Répéter",sve="Remplacer",cve="Racine",lve="Samedi",uve="sauver",dve="Choisi",pve="États",fve="Dimanche",hve="Jeudi",mve="Horodatage",_ve="Mardi",gve="Mise à jour",yve="Valable jusqu'au",vve="Valeur",bve="Version",wve="Mercredi",Sve="Largeur",xve="Oui",kve="différent",Cve="Tout le monde peut lire un objet",$ve="Tout le monde peut lire l'état",Eve="Tout le monde peut écrire un objet",Tve="Tout le monde peut écrire l'état",Ove="Le groupe peut lire l'objet",Dve="Le groupe peut lire l'état",Rve="Le groupe peut écrire un objet",Mve="Le groupe peut écrire l'état",Ave="Le propriétaire peut lire l'objet",Nve="Le propriétaire peut lire l'état",Pve="Le propriétaire peut écrire un objet",Ive="Le propriétaire peut écrire l'état",jve="Boutons",zve="Changé de",Lve="Fermer",Fve="Créer un état booléen",Bve="Créer une chaîne",Wve="Créer un appareil",Uve="Créer un état de numéro",qve="Créer un état",Hve="Créer un état de chaîne",Vve="j.",Gve="Fr",Xve="Mo",Jve="Sa",Yve="Su",Kve="Th",Zve="Tu",Qve="Nous",e1e="Mode expert",t1e="FAUX",r1e="Tous les fichiers",n1e="l'audio",o1e="Code/JSON",a1e="Images",i1e="Texte",s1e="Vidéo",c1e="Paramètres",l1e="sans",u1e="Une fonction",d1e="ID",p1e="Prénom",f1e="Rôle",h1e="Pièce",m1e="Type",_1e="Paramètres invalides",g1e="Dernier changement",y1e="localement",v1e="Avr",b1e="Août",w1e="Déc",S1e="Fév",x1e="Jan",k1e="Juil",C1e="Juin",$1e="Mai",E1e="Mar",T1e="Nov",O1e="Oct",D1e="Sep",R1e="Avr",M1e="Août",A1e="Déc",N1e="Fév",P1e="Jan",I1e="Juil",j1e="Juin",z1e="Mai",L1e="Mar",F1e="Nov",B1e="Oct",W1e="Sep",U1e="rien",q1e="Objet modifié par",H1e="Objet modifié pour la dernière fois à",V1e="Paramètres d'un autre adaptateur %s",G1e="Code de qualité",X1e="répéter",J1e='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',Y1e="Tout afficher",K1e="État modifié par",Z1e="Objet changé de",Q1e="Horodatage",ebe="Drapeau reconnu",tbe="Commentaire",rbe="Copiez la valeur d'état",nbe="Maintenez la touche Cltr/⌘ enfoncée pour ouvrir le lien",obe="Paramètres personnalisés",abe="Supprimer un objet",ibe="Modifier l'objet",sbe="Modifier la valeur d'état",cbe="Expire dans",lbe="De",ube="Dernière modification",dbe="Qualité",pbe="Horodatage",fbe="Utilisateur",hbe="Valeur",mbe="VRAI",_be="Valeur",gbe="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",ybe="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",vbe="CRON",bbe="Date",wbe="Rendez-vous",Sbe="Jour",xbe="Jour de la semaine",kbe="Chaque",Cbe="tous les N jours",$be="chaque Nième jour de la semaine",Ebe="tous les N jours de la semaine",Tbe="toutes les N heures",Obe="toutes les N minutes",Dbe="tous les N mois",Rbe="toutes les N secondes",Mbe="tous les jours",Abe="Chaque jour de la semaine",Nbe="Chaque jour de la semaine",Pbe="Toutes les heures",Ibe="chaque minute",jbe="chaque mois",zbe="chaque seconde",Lbe="De",Fbe="Heures",Bbe="Intervalle",Wbe="Intervalle entre",Ube="CRON non valide",qbe="Minutes",Hbe="mois",Vbe="Une fois que",Gbe="Période",Xbe="Secondes",Jbe="Facile",Ybe="Temps spécifique",Kbe="dates spécifiques",Zbe="jour(s) spécifique(s) de la semaine",Qbe="jour spécifique de semaines",e2e="heures spécifiques",t2e="minutes spécifiques",r2e="mois spécifiques",n2e="secondes spécifiques",o2e="Temps",a2e="À",i2e="sorcier",s2e="tout",c2e="Journée astronomique",l2e="Nuit astronomique",u2e="Aube",d2e="Crépuscule",p2e="Heure d'or",f2e="Fin de l'heure d'or",h2e="Nadir",m2e="Aube nautique",_2e="Crépuscule nautique",g2e="Nuit",y2e="Fin de nuit",v2e="Midi solaire",b2e="lever du soleil",w2e="Fin du lever du soleil",S2e="Le coucher du soleil",x2e="Coucher du soleil",k2e="à",C2e="à %s",$2e="tous les jours",E2e="Toutes les heures",T2e="chaque minute",O2e="chaque mois",D2e="chaque %s jour",R2e="chaque %s heures",M2e="toutes les %s minutes",A2e="tous les %s mois",N2e="chaque %s semaines",P2e="tous les %s ans",I2e="toutes les semaines",j2e="chaque année",z2e="de %s à %s",L2e="jamais",F2e="sur %s de %s",B2e="sur %s et %s de",W2e="à chaque date de",U2e="%s",q2e="%s et %s",H2e="sur %s",V2e="sur %s et %s",G2e="les weekends",X2e="les jours ouvrables",J2e="ne sera plus exécuté, car start est dans le passé",Y2e="sur %s",K2e="de %s",Z2e="Exécuter de à",Q2e="à %s",ewe="chaque",twe="Temps spécifique",rwe="de",nwe="De à",owe="Temps d'interval",awe="inverser",iwe="aucun",swe="sur",cwe="Période",lwe="du quotidien",uwe="Rendez-vous",dwe="journée",pwe="Chaque",fwe="Tous les jours",hwe="Chaque mois",mwe="Toutes les semaines",_we="Chaque année",gwe="Heures",ywe="Minutes",vwe="mois",bwe="Mensuel",wwe="Une fois que",Swe="Mois spécifiques",xwe="La semaine",kwe="Jours de la semaine",Cwe="Weekend",$we="Hebdomadaire",Ewe="Jours ouvrables",Twe="Année",Owe="Annuel",Dwe="Temps spécifique",Rwe="Temps",Mwe="à",Awe="Valide",Nwe="de",Pwe="à",Iwe="Toute la journée",jwe="chaque mois",zwe={"ra_%s links from aliases":"%s liens provenant d'alias","ra_%s object(s) processed":"%s objet(s) traité(s)","ra_%s was imported":"%s a été importé","ra_Accept license":"Accepter la licence",ra_Actions:O0e,"ra_Add new child object to selected parent":"Ajouter un nouvel objet enfant au parent sélectionné","ra_Add objects tree from JSON file":"Ajouter une arborescence d'objets à partir d'un fichier JSON","ra_Add row":"Ajouter une rangée","ra_Advanced options":"Options avancées","ra_All items are filtered out":"Tous les éléments sont filtrés","ra_All objects":"Tous les objets",ra_Append:D0e,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","ra_Are you sure?":"Êtes-vous sûr?","ra_Auto (no custom columns)":"Auto (pas de colonnes personnalisées)","ra_Back to %s":"Retour à %s","ra_Background image":"Image de fond",ra_Cancel:R0e,"ra_Cannot add items with set filter":"Impossible d'ajouter des éléments avec le filtre défini","ra_Cannot decode license":"Impossible de décoder la licence","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Impossible de déterminer la position : les paramètres système sont vides et la détection GPS est désactivée dans le navigateur",'ra_Cannot find "%s"':'Impossible de trouver "%s"','ra_Cannot read "%s"':'Impossible de lire "%s"',"ra_Cannot read licenses: %s":"Impossible de lire les licences : %s","ra_Cannot retrieve options, as instance is offline":"Impossible de récupérer les options, car l'instance est hors ligne","ra_Cannot update attribute, because not found in the object":"Impossible de mettre à jour l'attribut, car il est introuvable dans l'objet","ra_Cannot upload":"Impossible de télécharger",ra_Categories:M0e,"ra_Chained certificate":"Certificat chaîné","ra_Change color theme":"Changer le thème de couleur","ra_Changed from":"Changé de","ra_Channel → State":"Canal → État","ra_Check license":"Vérifier la licence",ra_Checked:A0e,ra_Clear:N0e,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Click to see in full size":"Cliquez pour afficher en taille réelle","ra_Click to show":"Cliquez pour afficher","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:P0e,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:I0e,ra_Configure:j0e,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:z0e,ra_Continue:L0e,ra_Copied:F0e,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:B0e,"ra_Create alias":"Créer un alias","ra_Create folder":"Créer le dossier","ra_Create new folder in %s":"Créer un nouveau dossier dans %s",ra_Crop:W0e,"ra_Define CRON...":"Définir CRON...","ra_Define functions":"Définir des fonctions","ra_Define rooms":"Définir des pièces","ra_Define schedule":"Définir le calendrier","ra_Define schedule...":"Définir le calendrier ...",ra_Del:U0e,ra_Delete:q0e,"ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État","ra_Disable/Enable translation":"Activer/Désactiver la traduction",ra_Discard:H0e,ra_Disconnected:V0e,"ra_Do not ask for next 2 hours in this session":"Ne demandez pas les 2 prochaines heures de cette session","ra_Do not export values of states":"Ne pas exporter les valeurs des états","ra_Do not use let's encrypt":"Ne pas utiliser let's encrypt","ra_Docker is not available":"Docker n'est pas disponible","ra_Docker is not installed or not running":"Docker n'est pas installé ou n'est pas en cours d'exécution","ra_Double click to reset table layout":"Double-cliquez pour réinitialiser la disposition du tableau","ra_Drag 'n' drop some files here, or click to select files":"Glissez-déposez des fichiers ici, ou cliquez pour sélectionner des fichiers","ra_Drop file here":"Déposer le fichier ici","ra_Drop the files here...":"Déposez le fichier ici...","ra_Duplicate name":"Nom en double","ra_Edit ACL":"Modifier la LCA","ra_Edit alias":"Modifier l'alias","ra_Edit custom config":"Modifier la configuration personnalisée","ra_Edit full path":"Modifier le chemin complet","ra_Edit function":"Fonction d'édition","ra_Edit object field":"Modifier le champ d'objet","ra_Edit role":"Modifier le rôle","ra_Edit room":"Modifier la salle","ra_Edit value":"Modifier la valeur","ra_Enter the code from that page here":"Entrez le code de cette page ici",ra_Error:G0e,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","ra_Expand/Collapse card":"Carte Développer/Réduire","ra_Export configuration section":"Exporter la section de configuration","ra_Export data to %s file":"Exporter les données vers le fichier %s","ra_Failed to open JSON File":"Échec de l'ouverture du fichier JSON","ra_Fallback custom certificates":"Certificats personnalisés de secours","ra_File is too big. Max %sk allowed. Try use SVG.":"Le fichier est trop volumineux. Max %sk autorisé. Essayez d'utiliser SVG.",ra_Filter:X0e,"ra_Filter and Data Actions":"Actions sur les filtres et les données","ra_Filter files":"Filtrer les fichiers","ra_Folder name":"Nom de dossier","ra_Folder → Channel → State":"Dossier → Chaîne → État","ra_Folder → Device → Channel → State":"Dossier → Appareil → Canal → État","ra_Folder → State":"Dossier → État","ra_Folders always first":"Les dossiers toujours en premier",ra_Friday:J0e,"ra_From file":"À partir du fichier","ra_From text":"À partir du texte","ra_Get %s access":"Obtenir l'accès %s","ra_Good luck":"Bonne chance","ra_Hide empty folders":"Masquer les dossiers vides","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si aucun fichier ne sera créé dans le dossier, il disparaîtra après la fermeture du navigateur","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Si le bouton ci-dessus ne fonctionne pas, vous pouvez autoriser manuellement cette application en visitant cette URL","ra_Import and add configuration section":"Importer et ajouter la section de configuration","ra_Import and replace configuration section":"Importer et remplacer la section de configuration","ra_Import data from %s file":"Importer des données à partir du fichier %s","ra_Import from %s":"Importer depuis %s","ra_Instance %s is alive":"L'instance %s est active","ra_Instance %s is not alive":"L'instance %s n'est pas active","ra_Instance is not alive":"L'instance n'est pas active","ra_Invalid CRON":"CRON invalide","ra_Invalid JSON":"JSON invalide","ra_Invalid JSON file.":"Fichier JSON invalide.","ra_Invalid JSON format. Expected an array.":"Format JSON invalide. Tableau attendu.","ra_Invalid answer from server":"Réponse invalide du serveur","ra_Invalid parent folder!":"Dossier parent non valide!","ra_Invalid structure":"Structure invalide","ra_JSON editor":"Éditeur JSON","ra_Last change":"Dernier changement",ra_Latitude:Y0e,"ra_License %s":"Licence %s","ra_License agreement":"Accord de licence","ra_License does not exist":"La licence n'existe pas","ra_License expired on %s":"Licence expirée le %s",'ra_License for other product "%s"':'Licence pour un autre produit "%s"',"ra_License is for version %s, but required version is %s.":"La licence est pour la version %s, mais la version requise est %s.","ra_License must be converted":"La licence doit être convertie en une version plus récente. Vous pouvez le faire dans votre profil iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licence introuvable dans le gestionnaire de licences. Voulez-vous mettre à jour les licences depuis iobroker.net ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Logout:K0e,ra_Longitude:Z0e,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:Q0e,ra_Monday:eve,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:tve,"ra_No data found in file":"Aucune donnée trouvée dans le fichier","ra_No one license found in license manager":"Aucune licence trouvée dans le gestionnaire de licences","ra_No response from admin":"Aucune réponse de l'administrateur","ra_No response from the backend":"Aucune réponse du backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Les non-experts ne peuvent créer de nouveaux objets que dans "0_userdata.0" ou "alias.0".',"ra_Not a number":"Pas un numéro","ra_OAuth Client ID":"ID client OAuth","ra_OAuth Client secret":"Secret client OAuth",ra_Objects:rve,ra_Ok:nve,"ra_On weekdays":"En semaine","ra_Only following structures of objects are available:":"Seules les structures d'objets suivantes sont disponibles:","ra_Only selected":"Uniquement sélectionné","ra_Owner group":"Groupe propriétaire","ra_Owner user":"Utilisateur propriétaire","ra_Passwords are not equal!":"Les mots de passe ne sont pas égaux !","ra_Place your files here or click here to open the browse dialog":"Placez vos fichiers ici ou cliquez ici pour ouvrir la boîte de dialogue de navigation","ra_Please allow popups in your browser for this page!":"Veuillez autoriser les popups dans votre navigateur pour cette page !","ra_Please confirm":"Veuillez confirmer","ra_Please create license":"Veuillez créer une licence","ra_Please enter the license":"Veuillez entrer la licence","ra_Please select file...":"Veuillez sélectionner le fichier...","ra_Please select object ID...":"Veuillez sélectionner l'ID d'objet ...","ra_Port could be used by %s":"Le port pourrait être utilisé par %s","ra_Port is already used by %s":"Le port est déjà utilisé par %s","ra_Press ENTER Key to add new item":"Appuyez sur la touche ENTRÉE pour ajouter un nouvel élément","ra_Private certificate":"Certificat privé",ra_Product:ove,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Rename_Move_Copy:ave,"ra_Renew %s access":"Renouveler l'accès %s",ra_Repeat:ive,ra_Replace:sve,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:cve,ra_Saturday:lve,ra_Save:uve,"ra_Save and close":"Sauver et fermer","ra_Save configuration to file":"Enregistrer la configuration dans un fichier","ra_Save objects tree as JSON file":"Enregistrer l'arborescence des objets en tant que fichier JSON","ra_Select all":"Tout sélectionner","ra_Select color":"Choisissez la couleur","ra_Select predefined icon":"Sélectionnez l'icône prédéfinie","ra_Select type of export":"Sélectionnez le type d'exportation",ra_Selected:dve,"ra_Selected %s object(s)":"Objet(s) %s sélectionné(s)","ra_Serial number (UUID)":"Numéro de série (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Le numéro de série (UUID) "%s" dans la licence est pour un autre appareil.',"ra_Session will expire in %s seconds. Continue?":"La session expirera dans %s secondes. Continuer ?","ra_Show all folders":"Afficher tous les dossiers","ra_Show lines between rows":"Afficher les lignes entre les lignes","ra_Show/Hide object descriptions":"Afficher/Masquer les descriptions d'objets","ra_Show/hide filter input":"Afficher/masquer l'entrée de filtre","ra_Some data are not stored. Discard?":"Certaines données ne sont pas stockées. Jeter?",ra_States:pve,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Autorisation réussie. Jeton valide jusqu'au %s et sera automatiquement renouvelé.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Autorisation réussie. Jeton valide jusqu'à %s, mais il peut expirer car l'instance n'est pas en cours d'exécution.","ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:fve,"ra_Suppress question for next %s minutes":"Supprimer la question pour les %s prochaines minutes","ra_System language":"Langue du système","ra_Take browser position":"Prendre position depuis le navigateur","ra_Take position from system settings":"Prendre position à partir des paramètres système",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Les experts peuvent créer des objets partout mais à partir du deuxième niveau (par exemple "vis.0" ou "javascript.0").',"ra_The page you are looking for was not found":"La page que vous recherchez n'a pas été trouvée","ra_The schedule will be executed every minute. Are you sure?":"Le planning sera exécuté toutes les minutes. Êtes-vous sûr ?","ra_The schedule will be executed every second. Are you sure?":"Le planning sera exécuté toutes les secondes. Êtes-vous sûr ?",ra_Thursday:hve,ra_Timestamp:mve,"ra_Toggle expert mode":"Basculer en mode expert","ra_Toggle the states view":"Basculer la vue des états","ra_Toggle view mode":"Basculer le mode d'affichage","ra_Too big":"Trop grand","ra_Too small":"Trop petit","ra_Transparent dialog":"Dialogue transparent",ra_Tuesday:_ve,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:gve,"ra_Upload file":"Téléverser un fichier","ra_Use all available let's encrypt certificates":"Utilisez tous les certificats let's encrypt disponibles","ra_Use iobroker.acme adapter for letsencrypt certificates":"Utiliser l'adaptateur iobroker.acme pour les certificats Letsencrypt","ra_Use system settings for position":"Utiliser les paramètres système pour la position","ra_Used system settings":"Paramètres système utilisés","ra_User files":"Fichiers utilisateurs",ra_ValidTill:yve,ra_Value:vve,ra_Version:bve,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:wve,ra_Width:Sve,"ra_YAML editor":"Éditeur YAML",ra_Yes:xve,"ra_You can export all objects or just the selected branch.":"Vous pouvez exporter tous les objets ou uniquement la branche sélectionnée.","ra_You can filter entries by entering here some text":"Vous pouvez filtrer les entrées en saisissant ici du texte","ra_You can use * as wildcard":"Vous pouvez utiliser * comme caractère générique",ra___different__:kve,ra_aclEveryone_read_object:Cve,ra_aclEveryone_read_state:$ve,ra_aclEveryone_write_object:Eve,ra_aclEveryone_write_state:Tve,ra_aclGroup_read_object:Ove,ra_aclGroup_read_state:Dve,ra_aclGroup_write_object:Rve,ra_aclGroup_write_state:Mve,ra_aclOwner_read_object:Ave,ra_aclOwner_read_state:Nve,ra_aclOwner_write_object:Pve,ra_aclOwner_write_state:Ive,ra_buttons:jve,ra_changedFrom:zve,ra_close:Lve,ra_create_boolean_state:Fve,ra_create_channel:Bve,ra_create_device:Wve,ra_create_number_state:Uve,ra_create_state:qve,ra_create_string_state:Hve,ra_daysShortText:Vve,ra_dow_Fr:Gve,ra_dow_Mo:Xve,ra_dow_Sa:Jve,ra_dow_Su:Yve,ra_dow_Th:Kve,ra_dow_Tu:Zve,ra_dow_We:Qve,ra_expertMode:e1e,ra_false:t1e,ra_fileType_all:r1e,ra_fileType_audio:n1e,ra_fileType_code:o1e,ra_fileType_images:a1e,ra_fileType_txt:i1e,ra_fileType_video:s1e,"ra_fileType_video,":"Vidéo",ra_filter_customs:c1e,ra_filter_customs_without:l1e,ra_filter_func:u1e,ra_filter_id:d1e,ra_filter_name:p1e,ra_filter_role:f1e,ra_filter_room:h1e,ra_filter_type:m1e,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:_1e,ra_lastChange:g1e,ra_locally:y1e,ra_month_Apr:v1e,ra_month_Aug:b1e,ra_month_Dec:w1e,ra_month_Feb:S1e,ra_month_Jan:x1e,ra_month_Jul:k1e,ra_month_Jun:C1e,ra_month_Mai:$1e,ra_month_Mar:E1e,ra_month_Nov:T1e,ra_month_Oct:O1e,ra_month_Sep:D1e,ra_months_Apr:R1e,ra_months_Aug:M1e,ra_months_Dec:A1e,ra_months_Feb:N1e,ra_months_Jan:P1e,ra_months_Jul:I1e,ra_months_Jun:j1e,ra_months_Mai:z1e,ra_months_Mar:L1e,ra_months_Nov:F1e,ra_months_Oct:B1e,ra_months_Sep:W1e,"ra_no confirm for 5 mins":"pas de confirmation pendant 5 minutes",ra_none:U1e,ra_object_changed_by:q1e,ra_object_changed_by_user:H1e,ra_otherConfig:V1e,ra_qualityCode:G1e,ra_repeat:X1e,ra_select_folder_hint:J1e,ra_show_all:Y1e,ra_state_changed_by:K1e,ra_state_changed_from:Z1e,ra_timestamp:Q1e,ra_tooltip_ack:ebe,ra_tooltip_comment:tbe,ra_tooltip_copyState:rbe,ra_tooltip_ctrlForLink:nbe,ra_tooltip_customConfig:obe,ra_tooltip_deleteObject:abe,ra_tooltip_editObject:ibe,ra_tooltip_editState:sbe,ra_tooltip_expire:cbe,ra_tooltip_from:lbe,ra_tooltip_lc:ube,ra_tooltip_quality:dbe,ra_tooltip_ts:pbe,ra_tooltip_user:fbe,ra_tooltip_value:hbe,ra_true:mbe,"ra_use seconds":"utiliser les secondes",ra_val:_be,"ra_via internet":"par Internet",ra_warning_every_minute:gbe,ra_warning_every_second:ybe,sc_cron:vbe,sc_date:bbe,sc_dates:wbe,sc_dow:Sbe,sc_dows:xbe,sc_every:kbe,sc_everyN_dates:Cbe,sc_everyN_dow:$be,sc_everyN_dows:Ebe,sc_everyN_hours:Tbe,sc_everyN_minutes:Obe,sc_everyN_months:Dbe,sc_everyN_seconds:Rbe,sc_every_dates:Mbe,sc_every_dow:Abe,sc_every_dows:Nbe,sc_every_hours:Pbe,sc_every_minutes:Ibe,sc_every_months:jbe,sc_every_seconds:zbe,sc_from:Lbe,sc_hours:Fbe,sc_interval:Bbe,sc_intervalBetween:Wbe,sc_invalid_cron:Ube,sc_minutes:qbe,sc_months:Hbe,sc_once:Vbe,sc_period:Gbe,sc_seconds:Xbe,sc_simple:Jbe,sc_specific:Ybe,sc_specific_dates:Kbe,sc_specific_dow:Zbe,sc_specific_dows:Qbe,sc_specific_hours:e2e,sc_specific_minutes:t2e,sc_specific_months:r2e,sc_specific_seconds:n2e,sc_time:o2e,sc_to:a2e,sc_wizard:i2e,sch_all:s2e,sch_astroDay:c2e,sch_astroNight:l2e,sch_astro_dawn:u2e,sch_astro_dusk:d2e,sch_astro_goldenHour:p2e,sch_astro_goldenHourEnd:f2e,sch_astro_nadir:h2e,sch_astro_nauticalDawn:m2e,sch_astro_nauticalDusk:_2e,sch_astro_night:g2e,sch_astro_nightEnd:y2e,sch_astro_solarNoon:v2e,sch_astro_sunrise:b2e,sch_astro_sunriseEnd:w2e,sch_astro_sunset:S2e,sch_astro_sunsetStart:x2e,sch_at:k2e,sch_desc_atTime:C2e,sch_desc_everyDay:$2e,sch_desc_everyHour:E2e,sch_desc_everyMinute:T2e,sch_desc_everyMonth:O2e,sch_desc_everyNDay:D2e,sch_desc_everyNHours:R2e,sch_desc_everyNMinutes:M2e,sch_desc_everyNMonths:A2e,sch_desc_everyNWeeks:N2e,sch_desc_everyNYears:P2e,sch_desc_everyWeek:I2e,sch_desc_everyYear:j2e,sch_desc_intervalFromTo:z2e,sch_desc_never:L2e,sch_desc_onDate:F2e,sch_desc_onDates:B2e,sch_desc_onEveryDate:W2e,sch_desc_onMonth:U2e,sch_desc_onMonths:q2e,sch_desc_onWeekday:H2e,sch_desc_onWeekdays:V2e,sch_desc_onWeekends:G2e,sch_desc_onWorkdays:X2e,sch_desc_onceInPast:J2e,sch_desc_once_on:Y2e,sch_desc_validFrom:K2e,sch_desc_validFromTo:Z2e,sch_desc_validTo:Q2e,sch_every:ewe,sch_exactTime:twe,sch_from:rwe,sch_fromTo:nwe,sch_intervalTime:owe,sch_invert:awe,sch_no_one:iwe,sch_on:swe,sch_period:cwe,sch_periodDaily:lwe,sch_periodDates:uwe,sch_periodDay:dwe,sch_periodEvery:pwe,sch_periodEveryDay:fwe,sch_periodEveryMonth:hwe,sch_periodEveryWeek:mwe,sch_periodEveryYear:_we,sch_periodHours:gwe,sch_periodMinutes:ywe,sch_periodMonth:vwe,sch_periodMonthly:bwe,sch_periodOnce:wwe,sch_periodSpecificMonths:Swe,sch_periodWeek:xwe,sch_periodWeekdays:kwe,sch_periodWeekend:Cwe,sch_periodWeekly:$we,sch_periodWorkdays:Ewe,sch_periodYear:Twe,sch_periodYearly:Owe,sch_specificTime:Dwe,sch_time:Rwe,sch_to:Mwe,sch_valid:Awe,sch_validFrom:Nwe,sch_validTo:Pwe,sch_wholeDay:Iwe,sch_yearEveryMonth:jwe},Lwe="Azioni",Fwe="Aggiungere",Bwe="Annulla",Wwe="Categorie",Uwe="Controllato",qwe="Elimina",Hwe="Vicino",Vwe="Commerciale",Gwe="Configura",Xwe="Collegato",Jwe="Continuare",Ywe="Copiato",Kwe="Creare",Zwe="Raccolto",Qwe="Delete",eSe="Elimina",tSe="Scartare",rSe="Disconnesso",nSe="Errore",oSe="Filtro",aSe="Venerdì",iSe="Latitudine",sSe="Esci",cSe="Longitudine",lSe="Messaggio",uSe="Lunedi",dSe="Nome",pSe="Oggetti",fSe="Ok",hSe="Prodotto",mSe="Rinomina/Sposta/Copia",_Se="Ripetere",gSe="Sostituire",ySe="Radice",vSe="Sabato",bSe="Salva",wSe="Selezionato",SSe="stati",xSe="Domenica",kSe="Giovedì",CSe="Timestamp",$Se="Martedì",ESe="Aggiornare",TSe="Valido fino a",OSe="Valore",DSe="Versione",RSe="Mercoledì",MSe="Larghezza",ASe="SÌ",NSe="diverso",PSe="Tutti possono leggere gli oggetti",ISe="Tutti possono leggere lo stato",jSe="Tutti possono scrivere oggetti",zSe="Tutti possono scrivere stato",LSe="Il gruppo può leggere l'oggetto",FSe="Il gruppo può leggere lo stato",BSe="Il gruppo può scrivere l'oggetto",WSe="Il gruppo può scrivere lo stato",USe="Il proprietario può leggere l'oggetto",qSe="Il proprietario può leggere lo stato",HSe="Il proprietario può scrivere l'oggetto",VSe="Il proprietario può scrivere lo stato",GSe="Bottoni",XSe="Cambiato da",JSe="vicino",YSe="Crea uno stato booleano",KSe="Crea canale",ZSe="Crea dispositivo",QSe="Crea lo stato del numero",e5e="Crea stato",t5e="Crea lo stato della stringa",r5e="g.",n5e="fr",o5e="momento",a5e="Sa",i5e="su",s5e="th",c5e="Tu",l5e="Noi",u5e="Modalità esperto",d5e="FALSO",p5e="Tutti i files",f5e="Audio",h5e="Codice/JSON",m5e="immagini",_5e="Testo",g5e="video",y5e="impostazioni",v5e="senza",b5e="Funzione",w5e="ID",S5e="Nome",x5e="Ruolo",k5e="Camera",C5e="genere",$5e="Impostazioni non valide",E5e="Ultima modifica",T5e="localmente",O5e="apr",D5e="agosto",R5e="Dic",M5e="febbraio",A5e="gen",N5e="lug",P5e="giu",I5e="Mai",j5e="marzo",z5e="nov",L5e="ottobre",F5e="Sett",B5e="apr",W5e="agosto",U5e="Dic",q5e="febbraio",H5e="gen",V5e="lug",G5e="giu",X5e="Mai",J5e="marzo",Y5e="nov",K5e="ottobre",Z5e="Sett",Q5e="nessuna",exe="Oggetto modificato da",txe="L'oggetto è stato modificato l'ultima volta alle",rxe="Impostazioni dall'altro adattatore %s",nxe="Codice di qualità",oxe="ripetere",axe='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',ixe="Mostra tutto",sxe="Stato cambiato da",cxe="Oggetto cambiato da",lxe="Timestamp",uxe="Bandiera riconosciuta",dxe="Commento",pxe="Copia il valore dello stato",fxe="Tieni premuto il tasto Cltr/⌘ per aprire il collegamento",hxe="Impostazioni personalizzate",mxe="Elimina oggetto",_xe="Modifica oggetto",gxe="Modifica il valore dello stato",yxe="Scade tra",vxe="A partire dal",bxe="Ultima modifica",wxe="Qualità",Sxe="Data e ora",xxe="Utente",kxe="Valore",Cxe="VERO",$xe="Valore",Exe="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",Txe="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",Oxe="CRON",Dxe="Data",Rxe="Date",Mxe="Giorno",Axe="Giorno della settimana",Nxe="Ogni",Pxe="ogni N giorni",Ixe="ogni Nesimo giorno della settimana",jxe="ogni N giorno della settimana",zxe="ogni N ore",Lxe="ogni N minuti",Fxe="ogni N mesi",Bxe="ogni N secondi",Wxe="ogni giorno",Uxe="Tutti i giorni della settimana",qxe="Tutti i giorni della settimana",Hxe="ogni ora",Vxe="ogni minuto",Gxe="ogni mese",Xxe="ogni secondo",Jxe="A partire dal",Yxe="Ore",Kxe="Intervallo",Zxe="Intervallo tra",Qxe="CRON non valido",e3e="Minuti",t3e="mesi",r3e="Una volta",n3e="Periodo",o3e="secondi",a3e="Semplice",i3e="Orario preciso",s3e="date specifiche",c3e="giorno/i specifico/i della settimana",l3e="giorno specifico delle settimane",u3e="orari specifici",d3e="minuti specifici",p3e="mesi specifici",f3e="secondi specifici",h3e="Tempo",m3e="Per",_3e="procedura guidata",g3e="tutti",y3e="Astro day",v3e="Astro night",b3e="Alba",w3e="Crepuscolo",S3e="Ora d'oro",x3e="Fine dell'ora d'oro",k3e="Nadir",C3e="Alba nautica",$3e="Crepuscolo nautico",E3e="Notte",T3e="Fine della notte",O3e="Mezzogiorno solare",D3e="Alba",R3e="Fine dell'alba",M3e="Tramonto",A3e="Inizio del tramonto",N3e="a",P3e="a %s",I3e="ogni giorno",j3e="ogni ora",z3e="ogni minuto",L3e="ogni mese",F3e="ogni %s giorno",B3e="ogni %s ore",W3e="ogni %s minuti",U3e="ogni %s mesi",q3e="ogni %s settimane",H3e="ogni %s anni",V3e="ogni settimana",G3e="ogni anno",X3e="da %s a %s",J3e="mai",Y3e="su %s di %s",K3e="su %s e %s di",Z3e="in ogni data di",Q3e="%s",e4e="%s e %s",t4e="su %s",r4e="su %s e %s",n4e="nei finesettimana",o4e="nei giorni lavorativi",a4e="non verrà più eseguito, perché start è nel passato",i4e="su %s",s4e="da %s",c4e="Eseguire da a",l4e="a %s",u4e="ogni",d4e="Orario preciso",p4e="a partire dal",f4e="Da A",h4e="Intervallo di tempo",m4e="invertire",_4e="nessuna",g4e="sopra",y4e="Periodo",v4e="Quotidiano",b4e="Date",w4e="Giorno",S4e="Ogni",x4e="Ogni giorno",k4e="Ogni mese",C4e="Ogni settimana",$4e="Ogni anno",E4e="Ore",T4e="Minuti",O4e="mese",D4e="Mensile",R4e="Una volta",M4e="Mesi specifici",A4e="Settimana",N4e="Giorni della settimana",P4e="Fine settimana",I4e="settimanalmente",j4e="giorni feriali",z4e="Anno",L4e="Annuale",F4e="Orario preciso",B4e="Tempo",W4e="per",U4e="Valido",q4e="a partire dal",H4e="per",V4e="Giorno intero",G4e="ogni mese",X4e={"ra_%s links from aliases":"%s link da alias","ra_%s object(s) processed":"%s oggetti elaborati","ra_%s was imported":"%s è stato importato","ra_Accept license":"Accetta licenza",ra_Actions:Lwe,"ra_Add new child object to selected parent":"Aggiungi un nuovo oggetto figlio al genitore selezionato","ra_Add objects tree from JSON file":"Aggiungi l'albero degli oggetti dal file JSON","ra_Add row":"Aggiungi riga","ra_Advanced options":"Opzioni avanzate","ra_All items are filtered out":"Tutti gli elementi vengono filtrati","ra_All objects":"Tutti gli oggetti",ra_Append:Fwe,"ra_Append %s entries or replace existing?":"Aggiungi %s voci o sostituisci quelle esistenti?","ra_Append or replace?":"Aggiungere o sostituire?","ra_Are you sure?":"Sei sicuro?","ra_Auto (no custom columns)":"Auto (nessuna colonna personalizzata)","ra_Back to %s":"Torna a %s","ra_Background image":"Immagine di sfondo",ra_Cancel:Bwe,"ra_Cannot add items with set filter":"Impossibile aggiungere elementi con il filtro impostato","ra_Cannot decode license":"Impossibile decodificare la licenza","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Impossibile determinare la posizione: le impostazioni di sistema sono vuote e il rilevamento GPS è disabilitato nel browser",'ra_Cannot find "%s"':'Impossibile trovare "%s"','ra_Cannot read "%s"':'Impossibile leggere "%s"',"ra_Cannot read licenses: %s":"Impossibile leggere le licenze: %s","ra_Cannot retrieve options, as instance is offline":"Impossibile recuperare le opzioni, poiché l'istanza è offline","ra_Cannot update attribute, because not found in the object":"Impossibile aggiornare l'attributo, perché non trovato nell'oggetto","ra_Cannot upload":"Impossibile caricare",ra_Categories:Wwe,"ra_Chained certificate":"Certificato incatenato","ra_Change color theme":"Cambia tema colore","ra_Changed from":"Cambiato da","ra_Channel → State":"Canale → Stato","ra_Check license":"Controlla la licenza",ra_Checked:Uwe,ra_Clear:qwe,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Click to see in full size":"Clicca per visualizzare l'immagine a dimensioni intere","ra_Click to show":"Clicca per mostrare","ra_Clone current row":"Clona riga corrente",ra_Close:Hwe,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:Vwe,ra_Configure:Gwe,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:Xwe,ra_Continue:Jwe,ra_Copied:Ywe,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:Kwe,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:Zwe,"ra_Define CRON...":"Definisci CRON...","ra_Define functions":"Definire le funzioni","ra_Define rooms":"Definisci le stanze","ra_Define schedule":"Definisci programma","ra_Define schedule...":"Definisci pianificazione ...",ra_Del:Qwe,ra_Delete:eSe,"ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato","ra_Disable/Enable translation":"Disabilita/Abilita la traduzione",ra_Discard:tSe,ra_Disconnected:rSe,"ra_Do not ask for next 2 hours in this session":"Non chiedere per le prossime 2 ore in questa sessione","ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","ra_Docker is not available":"Docker non è disponibile","ra_Docker is not installed or not running":"Docker non è installato o non è in esecuzione","ra_Double click to reset table layout":"Fare doppio clic per ripristinare il layout della tabella","ra_Drag 'n' drop some files here, or click to select files":"Trascina e rilascia alcuni file qui o fai clic per selezionare i file","ra_Drop file here":"Trascina il file qui","ra_Drop the files here...":"Trascina qui il file...","ra_Duplicate name":"Nome duplicato","ra_Edit ACL":"Modifica ACL","ra_Edit alias":"Modifica alias","ra_Edit custom config":"Modifica configurazione personalizzata","ra_Edit full path":"Modifica percorso completo","ra_Edit function":"Funzione di modifica","ra_Edit object field":"Modifica campo oggetto","ra_Edit role":"Modifica ruolo","ra_Edit room":"Modifica stanza","ra_Edit value":"Modifica valore","ra_Enter the code from that page here":"Inserisci qui il codice da quella pagina",ra_Error:nSe,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","ra_Expand/Collapse card":"Espandi/Comprimi scheda","ra_Export configuration section":"Sezione di configurazione dell'esportazione","ra_Export data to %s file":"Esporta i dati nel file %s","ra_Failed to open JSON File":"Impossibile aprire il file JSON","ra_Fallback custom certificates":"Certificati personalizzati di fallback","ra_File is too big. Max %sk allowed. Try use SVG.":"Il file è troppo grande. Max %sk consentito. Prova a usare SVG.",ra_Filter:oSe,"ra_Filter and Data Actions":"Azioni sui filtri e sui dati","ra_Filter files":"Filtra i file","ra_Folder name":"Nome della cartella","ra_Folder → Channel → State":"Cartella → Canale → Stato","ra_Folder → Device → Channel → State":"Cartella → Dispositivo → Canale → Stato","ra_Folder → State":"Cartella → Stato","ra_Folders always first":"Le cartelle sono sempre al primo posto",ra_Friday:aSe,"ra_From file":"Dal file","ra_From text":"Dal testo","ra_Get %s access":"Ottieni l'accesso %s","ra_Good luck":"Buona fortuna","ra_Hide empty folders":"Nascondi cartelle vuote","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nessun file verrà creato nella cartella, scomparirà dopo la chiusura del browser","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Se il pulsante sopra non funziona, puoi autorizzare manualmente questa app visitando questo URL","ra_Import and add configuration section":"Importa e aggiungi la sezione di configurazione","ra_Import and replace configuration section":"Importa e sostituisci la sezione di configurazione","ra_Import data from %s file":"Importa i dati dal file %s","ra_Import from %s":"Importa da %s","ra_Instance %s is alive":"Il %s dell'istanza è vivo","ra_Instance %s is not alive":"Il TESTO dell'istanza non è vivo","ra_Instance is not alive":"L'istanza non è viva","ra_Invalid CRON":"CRON non valido","ra_Invalid JSON":"JSON non valido","ra_Invalid JSON file.":"File JSON non valido.","ra_Invalid JSON format. Expected an array.":"Formato JSON non valido. È previsto un array.","ra_Invalid answer from server":"Risposta non valida dal server","ra_Invalid parent folder!":"Cartella principale non valida!","ra_Invalid structure":"Struttura non valida","ra_JSON editor":"Editor JSON","ra_Last change":"Ultima modifica",ra_Latitude:iSe,"ra_License %s":"Licenza %s","ra_License agreement":"Contratto di licenza","ra_License does not exist":"La licenza non esiste","ra_License expired on %s":"Licenza scaduta il %s",'ra_License for other product "%s"':'Licenza per altro prodotto "%s"',"ra_License is for version %s, but required version is %s.":"La licenza è per la versione %s, ma la versione richiesta è %s.","ra_License must be converted":"La licenza deve essere convertita in una versione più recente. Puoi farlo nel tuo profilo iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licenza non trovata nel gestore delle licenze. Vuoi aggiornare le licenze da iobroker.net?","ra_Listen on all IPs":"Ascolta su tutti gli IP","ra_Load configuration from file":"Carica la configurazione dal file",ra_Logout:sSe,ra_Longitude:cSe,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:lSe,ra_Monday:uSe,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:dSe,"ra_No data found in file":"Nessun dato trovato nel file","ra_No one license found in license manager":"Nessuna licenza trovata nel gestore delle licenze","ra_No response from admin":"Nessuna risposta dall'amministratore","ra_No response from the backend":"Nessuna risposta dal backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'I non esperti possono creare nuovi oggetti solo in "0_userdata.0" o "alias.0".',"ra_Not a number":"Non un numero","ra_OAuth Client ID":"ID client OAuth","ra_OAuth Client secret":"Segreto del client OAuth",ra_Objects:pSe,ra_Ok:fSe,"ra_On weekdays":"Nei giorni della settimana","ra_Only following structures of objects are available:":"Sono disponibili solo le seguenti strutture di oggetti:","ra_Only selected":"Solo selezionato","ra_Owner group":"Gruppo di proprietari","ra_Owner user":"Utente proprietario","ra_Passwords are not equal!":"Le password non sono uguali!","ra_Place your files here or click here to open the browse dialog":"Posiziona i file qui o fai clic qui per aprire la finestra di dialogo Sfoglia","ra_Please allow popups in your browser for this page!":"Si prega di abilitare i popup nel browser per questa pagina!","ra_Please confirm":"Si prega di confermare","ra_Please create license":"Si prega di creare la licenza","ra_Please enter the license":"Inserisci la licenza","ra_Please select file...":"Si prega di selezionare il file...","ra_Please select object ID...":"Seleziona l'ID oggetto ...","ra_Port could be used by %s":"La porta potrebbe essere utilizzata da %s","ra_Port is already used by %s":"La porta è già utilizzata da %s","ra_Press ENTER Key to add new item":"Premere il tasto INVIO per aggiungere un nuovo elemento","ra_Private certificate":"Certificato privato",ra_Product:hSe,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Rename_Move_Copy:mSe,"ra_Renew %s access":"Rinnova l'accesso %s",ra_Repeat:_Se,ra_Replace:gSe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:ySe,ra_Saturday:vSe,ra_Save:bSe,"ra_Save and close":"Salva e chiudi","ra_Save configuration to file":"Salva la configurazione su file","ra_Save objects tree as JSON file":"Salva l'albero degli oggetti come file JSON","ra_Select all":"Seleziona tutto","ra_Select color":"Seleziona il colore","ra_Select predefined icon":"Seleziona l'icona predefinita","ra_Select type of export":"Seleziona il tipo di esportazione",ra_Selected:wSe,"ra_Selected %s object(s)":"%s oggetto/i selezionato/i","ra_Serial number (UUID)":"Numero di serie (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Il numero di serie (UUID) "%s" nella licenza è per un altro dispositivo.',"ra_Session will expire in %s seconds. Continue?":"La sessione scadrà tra %s secondi. Continuare?","ra_Show all folders":"Mostra tutte le cartelle","ra_Show lines between rows":"Mostra linee tra le righe","ra_Show/Hide object descriptions":"Mostra/Nascondi le descrizioni degli oggetti","ra_Show/hide filter input":"Mostra/nascondi input filtro","ra_Some data are not stored. Discard?":"Alcuni dati non vengono memorizzati. Scartare?",ra_States:SSe,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Autorizzazione completata. Il token è valido fino al %s e verrà rinnovato automaticamente.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Autorizzazione completata. Il token è valido fino al %s, ma potrebbe scadere perché l'istanza non è in esecuzione.","ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:xSe,"ra_Suppress question for next %s minutes":"Sopprimi la domanda per i prossimi %s minuti","ra_System language":"Linguaggio di sistema","ra_Take browser position":"Prendi posizione dal browser","ra_Take position from system settings":"Prendi posizione dalle impostazioni di sistema",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Gli esperti possono creare oggetti ovunque ma dal secondo livello (es. "Vis.0" o "javascript.0").',"ra_The page you are looking for was not found":"La pagina che stai cercando non è stata trovata","ra_The schedule will be executed every minute. Are you sure?":"La pianificazione verrà eseguita ogni minuto. Sei sicuro?","ra_The schedule will be executed every second. Are you sure?":"La pianificazione verrà eseguita ogni secondo. Sei sicuro?",ra_Thursday:kSe,ra_Timestamp:CSe,"ra_Toggle expert mode":"Attiva / disattiva la modalità esperto","ra_Toggle the states view":"Attiva o disattiva la visualizzazione degli stati","ra_Toggle view mode":"Attiva / disattiva la modalità di visualizzazione","ra_Too big":"Troppo grande","ra_Too small":"Troppo piccolo","ra_Transparent dialog":"Finestra di dialogo trasparente",ra_Tuesday:$Se,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:ESe,"ra_Upload file":"Caricare un file","ra_Use all available let's encrypt certificates":"Usa tutti i certificati Let's Encrypt disponibili","ra_Use iobroker.acme adapter for letsencrypt certificates":"Utilizzare l'adattatore iobroker.acme per i certificati letsencrypt","ra_Use system settings for position":"Usa le impostazioni di sistema per la posizione","ra_Used system settings":"Impostazioni di sistema utilizzate","ra_User files":"File utente",ra_ValidTill:TSe,ra_Value:OSe,ra_Version:DSe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:RSe,ra_Width:MSe,"ra_YAML editor":"Editor YAML",ra_Yes:ASe,"ra_You can export all objects or just the selected branch.":"Puoi esportare tutti gli oggetti o solo il ramo selezionato.","ra_You can filter entries by entering here some text":"Puoi filtrare le voci inserendo qui del testo","ra_You can use * as wildcard":"Puoi usare * come carattere jolly",ra___different__:NSe,ra_aclEveryone_read_object:PSe,ra_aclEveryone_read_state:ISe,ra_aclEveryone_write_object:jSe,ra_aclEveryone_write_state:zSe,ra_aclGroup_read_object:LSe,ra_aclGroup_read_state:FSe,ra_aclGroup_write_object:BSe,ra_aclGroup_write_state:WSe,ra_aclOwner_read_object:USe,ra_aclOwner_read_state:qSe,ra_aclOwner_write_object:HSe,ra_aclOwner_write_state:VSe,ra_buttons:GSe,ra_changedFrom:XSe,ra_close:JSe,ra_create_boolean_state:YSe,ra_create_channel:KSe,ra_create_device:ZSe,ra_create_number_state:QSe,ra_create_state:e5e,ra_create_string_state:t5e,ra_daysShortText:r5e,ra_dow_Fr:n5e,ra_dow_Mo:o5e,ra_dow_Sa:a5e,ra_dow_Su:i5e,ra_dow_Th:s5e,ra_dow_Tu:c5e,ra_dow_We:l5e,ra_expertMode:u5e,ra_false:d5e,ra_fileType_all:p5e,ra_fileType_audio:f5e,ra_fileType_code:h5e,ra_fileType_images:m5e,ra_fileType_txt:_5e,ra_fileType_video:g5e,"ra_fileType_video,":"video",ra_filter_customs:y5e,ra_filter_customs_without:v5e,ra_filter_func:b5e,ra_filter_id:w5e,ra_filter_name:S5e,ra_filter_role:x5e,ra_filter_room:k5e,ra_filter_type:C5e,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:$5e,ra_lastChange:E5e,ra_locally:T5e,ra_month_Apr:O5e,ra_month_Aug:D5e,ra_month_Dec:R5e,ra_month_Feb:M5e,ra_month_Jan:A5e,ra_month_Jul:N5e,ra_month_Jun:P5e,ra_month_Mai:I5e,ra_month_Mar:j5e,ra_month_Nov:z5e,ra_month_Oct:L5e,ra_month_Sep:F5e,ra_months_Apr:B5e,ra_months_Aug:W5e,ra_months_Dec:U5e,ra_months_Feb:q5e,ra_months_Jan:H5e,ra_months_Jul:V5e,ra_months_Jun:G5e,ra_months_Mai:X5e,ra_months_Mar:J5e,ra_months_Nov:Y5e,ra_months_Oct:K5e,ra_months_Sep:Z5e,"ra_no confirm for 5 mins":"nessuna conferma per 5 minuti",ra_none:Q5e,ra_object_changed_by:exe,ra_object_changed_by_user:txe,ra_otherConfig:rxe,ra_qualityCode:nxe,ra_repeat:oxe,ra_select_folder_hint:axe,ra_show_all:ixe,ra_state_changed_by:sxe,ra_state_changed_from:cxe,ra_timestamp:lxe,ra_tooltip_ack:uxe,ra_tooltip_comment:dxe,ra_tooltip_copyState:pxe,ra_tooltip_ctrlForLink:fxe,ra_tooltip_customConfig:hxe,ra_tooltip_deleteObject:mxe,ra_tooltip_editObject:_xe,ra_tooltip_editState:gxe,ra_tooltip_expire:yxe,ra_tooltip_from:vxe,ra_tooltip_lc:bxe,ra_tooltip_quality:wxe,ra_tooltip_ts:Sxe,ra_tooltip_user:xxe,ra_tooltip_value:kxe,ra_true:Cxe,"ra_use seconds":"usa i secondi",ra_val:$xe,"ra_via internet":"attraverso internet",ra_warning_every_minute:Exe,ra_warning_every_second:Txe,sc_cron:Oxe,sc_date:Dxe,sc_dates:Rxe,sc_dow:Mxe,sc_dows:Axe,sc_every:Nxe,sc_everyN_dates:Pxe,sc_everyN_dow:Ixe,sc_everyN_dows:jxe,sc_everyN_hours:zxe,sc_everyN_minutes:Lxe,sc_everyN_months:Fxe,sc_everyN_seconds:Bxe,sc_every_dates:Wxe,sc_every_dow:Uxe,sc_every_dows:qxe,sc_every_hours:Hxe,sc_every_minutes:Vxe,sc_every_months:Gxe,sc_every_seconds:Xxe,sc_from:Jxe,sc_hours:Yxe,sc_interval:Kxe,sc_intervalBetween:Zxe,sc_invalid_cron:Qxe,sc_minutes:e3e,sc_months:t3e,sc_once:r3e,sc_period:n3e,sc_seconds:o3e,sc_simple:a3e,sc_specific:i3e,sc_specific_dates:s3e,sc_specific_dow:c3e,sc_specific_dows:l3e,sc_specific_hours:u3e,sc_specific_minutes:d3e,sc_specific_months:p3e,sc_specific_seconds:f3e,sc_time:h3e,sc_to:m3e,sc_wizard:_3e,sch_all:g3e,sch_astroDay:y3e,sch_astroNight:v3e,sch_astro_dawn:b3e,sch_astro_dusk:w3e,sch_astro_goldenHour:S3e,sch_astro_goldenHourEnd:x3e,sch_astro_nadir:k3e,sch_astro_nauticalDawn:C3e,sch_astro_nauticalDusk:$3e,sch_astro_night:E3e,sch_astro_nightEnd:T3e,sch_astro_solarNoon:O3e,sch_astro_sunrise:D3e,sch_astro_sunriseEnd:R3e,sch_astro_sunset:M3e,sch_astro_sunsetStart:A3e,sch_at:N3e,sch_desc_atTime:P3e,sch_desc_everyDay:I3e,sch_desc_everyHour:j3e,sch_desc_everyMinute:z3e,sch_desc_everyMonth:L3e,sch_desc_everyNDay:F3e,sch_desc_everyNHours:B3e,sch_desc_everyNMinutes:W3e,sch_desc_everyNMonths:U3e,sch_desc_everyNWeeks:q3e,sch_desc_everyNYears:H3e,sch_desc_everyWeek:V3e,sch_desc_everyYear:G3e,sch_desc_intervalFromTo:X3e,sch_desc_never:J3e,sch_desc_onDate:Y3e,sch_desc_onDates:K3e,sch_desc_onEveryDate:Z3e,sch_desc_onMonth:Q3e,sch_desc_onMonths:e4e,sch_desc_onWeekday:t4e,sch_desc_onWeekdays:r4e,sch_desc_onWeekends:n4e,sch_desc_onWorkdays:o4e,sch_desc_onceInPast:a4e,sch_desc_once_on:i4e,sch_desc_validFrom:s4e,sch_desc_validFromTo:c4e,sch_desc_validTo:l4e,sch_every:u4e,sch_exactTime:d4e,sch_from:p4e,sch_fromTo:f4e,sch_intervalTime:h4e,sch_invert:m4e,sch_no_one:_4e,sch_on:g4e,sch_period:y4e,sch_periodDaily:v4e,sch_periodDates:b4e,sch_periodDay:w4e,sch_periodEvery:S4e,sch_periodEveryDay:x4e,sch_periodEveryMonth:k4e,sch_periodEveryWeek:C4e,sch_periodEveryYear:$4e,sch_periodHours:E4e,sch_periodMinutes:T4e,sch_periodMonth:O4e,sch_periodMonthly:D4e,sch_periodOnce:R4e,sch_periodSpecificMonths:M4e,sch_periodWeek:A4e,sch_periodWeekdays:N4e,sch_periodWeekend:P4e,sch_periodWeekly:I4e,sch_periodWorkdays:j4e,sch_periodYear:z4e,sch_periodYearly:L4e,sch_specificTime:F4e,sch_time:B4e,sch_to:W4e,sch_valid:U4e,sch_validFrom:q4e,sch_validTo:H4e,sch_wholeDay:V4e,sch_yearEveryMonth:G4e},J4e="Comportamiento",Y4e="Adjuntar",K4e="Cancelar",Z4e="Categorías",Q4e="Comprobado",eke="Borrar",tke="Cerca",rke="Comercial",nke="Configurar",oke="Conectado",ake="Continuar",ike="Copiado",ske="Crear",cke="Cultivo",lke="Delete",uke="Eliminar",dke="Desechar",pke="Desconectado",fke="Error",hke="Filtrar",mke="Viernes",_ke="Latitud",gke="Cerrar sesión",yke="Longitud",vke="Mensaje",bke="Lunes",wke="Nombre",Ske="Objetos",xke="Okay",kke="Producto",Cke="Cambiar nombre/Mover/Copiar",$ke="Repetir",Eke="Reemplazar",Tke="Raíz",Oke="Sábado",Dke="Salvar",Rke="Seleccionado",Mke="Estados",Ake="Domingo",Nke="Jueves",Pke="Marca de tiempo",Ike="Martes",jke="Actualizar",zke="Válida hasta",Lke="Valor",Fke="Versión",Bke="Miércoles",Wke="Anchura",Uke="Sí",qke="diferente",Hke="Todo el mundo puede leer el objeto",Vke="Todos pueden leer el estado",Gke="Todos pueden escribir objetos",Xke="Todos pueden escribir el estado",Jke="El grupo puede leer el objeto",Yke="El grupo puede leer el estado",Kke="El grupo puede escribir un objeto",Zke="El grupo puede escribir el estado",Qke="El propietario puede leer el objeto",eCe="El propietario puede leer el estado",tCe="El propietario puede escribir el objeto",rCe="El propietario puede escribir el estado",nCe="Botones",oCe="Cambiaron desde",aCe="cerrar",iCe="Crear estado booleano",sCe="Crear canal",cCe="Crear dispositivo",lCe="Crear estado numérico",uCe="Crear estado",dCe="Crear estado de cadena",pCe="d.",fCe="Fr",hCe="Mes",mCe="Sa",_Ce="Su",gCe="Th",yCe="Tu",vCe="Nosotros",bCe="Modo experto",wCe="FALSO",SCe="Todos los archivos",xCe="Audio",kCe="Código/JSON",CCe="Imágenes",$Ce="Texto",ECe="Video",TCe="Configuraciones",OCe="sin",DCe="Función",RCe="ID",MCe="Nombre",ACe="Papel",NCe="Habitación",PCe="Tipo",ICe="Configuraciones inválidas",jCe="Ultimo cambio",zCe="en la zona",LCe="Abr",FCe="Ago",BCe="Dic",WCe="Feb",UCe="Ene",qCe="Jul",HCe="Jun",VCe="Mai",GCe="Mar",XCe="Nov",JCe="Oct",YCe="Sep",KCe="Abr",ZCe="Ago",QCe="Dic",e$e="Feb",t$e="Ene",r$e="Jul",n$e="Jun",o$e="Mai",a$e="Mar",i$e="Nov",s$e="Oct",c$e="Sep",l$e="ninguno",u$e="Objeto cambiado por",d$e="Objeto cambiado por última vez a las",p$e="Configuraciones de otro adaptador %s",f$e="Código de calidad",h$e="repetir",m$e='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',_$e="Mostrar todo",g$e="Estado cambiado por",y$e="Objeto cambiado de",v$e="Marca de tiempo",b$e="Bandera reconocida",w$e="Comentario",S$e="Copie el valor del estado",x$e="Mantenga presionada la tecla Cltr/⌘ para abrir el enlace",k$e="Ajustes personalizados",C$e="Eliminar objeto",$$e="Editar objeto",E$e="Edite el valor del estado",T$e="Caduca en",O$e="Desde",D$e="Último cambio",R$e="Calidad",M$e="Sello de tiempo",A$e="Usuario",N$e="Valor",P$e="VERDADERO",I$e="Valor",j$e="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",z$e="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",L$e="CRON",F$e="Fecha",B$e="fechas",W$e="Día",U$e="Día de la semana",q$e="Cada",H$e="cada N días",V$e="cada enésimo día de la semana",G$e="cada N día de la semana",X$e="cada N horas",J$e="cada N minutos",Y$e="cada N meses",K$e="cada N segundos",Z$e="cada día",Q$e="Cada día de la semana",e6e="Cada día de la semana",t6e="cada hora",r6e="cada minuto",n6e="cada mes",o6e="cada segundo",a6e="De",i6e="Horas",s6e="Intervalo",c6e="Intervalo entre",l6e="CRON no válido",u6e="Minutos",d6e="meses",p6e="Una vez",f6e="Período",h6e="Segundos",m6e="Sencillo",_6e="Tiempo específico",g6e="fechas especificas",y6e="día(s) específico(s) de la semana",v6e="día específico de semanas",b6e="horas específicas",w6e="minutos específicos",S6e="meses específicos",x6e="segundos específicos",k6e="Hora",C6e="A",$6e="Mago",E6e="todas",T6e="Día astro",O6e="Noche astro",D6e="Amanecer",R6e="Oscuridad",M6e="hora dorada",A6e="Fin de la hora dorada",N6e="Nadir",P6e="Amanecer náutico",I6e="Anochecer náutico",j6e="Noche",z6e="Fin de la noche",L6e="Mediodía solar",F6e="amanecer",B6e="Fin del amanecer",W6e="Puesta de sol",U6e="Puesta de sol",q6e="a",H6e="en %s",V6e="cada día",G6e="cada hora",X6e="cada minuto",J6e="cada mes",Y6e="cada %s días",K6e="cada %s horas",Z6e="cada %s minutos",Q6e="cada %s meses",eEe="cada %s semanas",tEe="cada %s años",rEe="cada semana",nEe="todos los años",oEe="de %s a %s",aEe="Nunca",iEe="en %s de %s",sEe="en %s y %s de",cEe="en cada fecha de",lEe="%s",uEe="%s y %s",dEe="en %s",pEe="en %s y %s",fEe="en los fines de semana",hEe="en días laborables",mEe="ya no se ejecutará más, porque el inicio está en el pasado",_Ee="en %s",gEe="de %s",yEe="Ejecutar desde hasta",vEe="a %s",bEe="cada",wEe="Tiempo específico",SEe="de",xEe="De-a",kEe="Tiempo de intervalo",CEe="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",$Ee="ninguna",EEe="en",TEe="Período",OEe="Diario",DEe="fechas",REe="Día",MEe="Cada",AEe="Cada día",NEe="Cada mes",PEe="Cada semana",IEe="Todos los años",jEe="Horas",zEe="Minutos",LEe="mes",FEe="Mensual",BEe="Una vez",WEe="Meses específicos",UEe="Semana",qEe="Días laborables",HEe="Fin de semana",VEe="Semanal",GEe="Días laborables",XEe="Año",JEe="Anual",YEe="Tiempo específico",KEe="Hora",ZEe="a",QEe="Válido",eTe="de",tTe="a",rTe="Todo el dia",nTe="cada mes",oTe={"ra_%s links from aliases":"%s enlaces de alias","ra_%s object(s) processed":"%s objeto(s) procesados","ra_%s was imported":"%s fue importado","ra_Accept license":"Aceptar licencia",ra_Actions:J4e,"ra_Add new child object to selected parent":"Agregar nuevo objeto hijo al padre seleccionado","ra_Add objects tree from JSON file":"Agregar árbol de objetos desde el archivo JSON","ra_Add row":"Añadir fila","ra_Advanced options":"Opciones avanzadas","ra_All items are filtered out":"Todos los elementos se filtran","ra_All objects":"Todos los objetos",ra_Append:Y4e,"ra_Append %s entries or replace existing?":"¿Agregar %s entradas o reemplazar las existentes?","ra_Append or replace?":"¿Agregar o reemplazar?","ra_Are you sure?":"¿Estás seguro?","ra_Auto (no custom columns)":"Automático (sin columnas personalizadas)","ra_Back to %s":"Volver a %s","ra_Background image":"Imagen de fondo",ra_Cancel:K4e,"ra_Cannot add items with set filter":"No se pueden agregar elementos con el filtro establecido","ra_Cannot decode license":"No se puede decodificar la licencia","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"No se puede determinar la posición: la configuración del sistema está vacía y la detección de GPS está deshabilitada en el navegador",'ra_Cannot find "%s"':'No se puede encontrar "%s"','ra_Cannot read "%s"':'No se puede leer "%s"',"ra_Cannot read licenses: %s":"No se pueden leer licencias: %s","ra_Cannot retrieve options, as instance is offline":"No se pueden recuperar las opciones, ya que la instancia está fuera de línea","ra_Cannot update attribute, because not found in the object":"No se puede actualizar el atributo porque no se encuentra en el objeto","ra_Cannot upload":"no se puede cargar",ra_Categories:Z4e,"ra_Chained certificate":"certificado encadenado","ra_Change color theme":"Cambiar tema de color","ra_Changed from":"Cambiaron desde","ra_Channel → State":"Canal → Estado","ra_Check license":"Verificar licencia",ra_Checked:Q4e,ra_Clear:eke,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Click to see in full size":"Haz clic para ver en tamaño completo.","ra_Click to show":"Haga clic para mostrar","ra_Clone current row":"Clonar fila actual",ra_Close:tke,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:rke,ra_Configure:nke,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:oke,ra_Continue:ake,ra_Copied:ike,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:ske,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:cke,"ra_Define CRON...":"Definir CRON...","ra_Define functions":"Definir funciones","ra_Define rooms":"Definir habitaciones","ra_Define schedule":"Definir horario","ra_Define schedule...":"Definir horario ...",ra_Del:lke,ra_Delete:uke,"ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado","ra_Disable/Enable translation":"Deshabilitar/Habilitar traducción",ra_Discard:dke,ra_Disconnected:pke,"ra_Do not ask for next 2 hours in this session":"No preguntes por las siguientes 2 horas en esta sesión.","ra_Do not export values of states":"No exportar valores de estados.","ra_Do not use let's encrypt":"No use vamos a cifrar","ra_Docker is not available":"Docker no está disponible","ra_Docker is not installed or not running":"Docker no está instalado o no se está ejecutando","ra_Double click to reset table layout":"Haga doble clic para restablecer el diseño de la tabla","ra_Drag 'n' drop some files here, or click to select files":"Arrastre y suelte algunos archivos aquí, o haga clic para seleccionar archivos","ra_Drop file here":"Suelta el archivo aquí","ra_Drop the files here...":"Suelta el archivo aquí ...","ra_Duplicate name":"Nombre duplicado","ra_Edit ACL":"Editar LCA","ra_Edit alias":"Editar alias","ra_Edit custom config":"Editar configuración personalizada","ra_Edit full path":"Editar ruta completa","ra_Edit function":"Función de edición","ra_Edit object field":"Editar campo de objeto","ra_Edit role":"Editar rol","ra_Edit room":"Cuarto de edición","ra_Edit value":"Editar valor","ra_Enter the code from that page here":"Introduzca el código de esa página aquí",ra_Error:fke,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","ra_Expand/Collapse card":"Expandir/Contraer tarjeta","ra_Export configuration section":"Exportar sección de configuración","ra_Export data to %s file":"Exportar datos al archivo %s","ra_Failed to open JSON File":"No se pudo abrir el archivo JSON","ra_Fallback custom certificates":"Certificados personalizados alternativos","ra_File is too big. Max %sk allowed. Try use SVG.":"El archivo es demasiado grande. Máximo de %sk permitido. Intenta usar SVG.",ra_Filter:hke,"ra_Filter and Data Actions":"Acciones de filtrado y datos","ra_Filter files":"Filtrar archivos","ra_Folder name":"Nombre de la carpeta","ra_Folder → Channel → State":"Carpeta → Canal → Estado","ra_Folder → Device → Channel → State":"Carpeta → Dispositivo → Canal → Estado","ra_Folder → State":"Carpeta → Estado","ra_Folders always first":"Carpetas siempre primero",ra_Friday:mke,"ra_From file":"Desde archivo","ra_From text":"Del texto","ra_Get %s access":"Obtener %s acceso","ra_Good luck":"Buena suerte","ra_Hide empty folders":"Ocultar carpetas vacías","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si no se creará ningún archivo en la carpeta, desaparecerá después de que se cierre el navegador.","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Si el botón de arriba no funciona, puedes autorizar manualmente esta aplicación visitando esta URL","ra_Import and add configuration section":"Importar y agregar sección de configuración","ra_Import and replace configuration section":"Importar y reemplazar sección de configuración","ra_Import data from %s file":"Importar datos del archivo %s","ra_Import from %s":"Importar desde %s","ra_Instance %s is alive":"Instancia %s está vivo","ra_Instance %s is not alive":"Instancia %s no está vivo","ra_Instance is not alive":"La instancia no está viva","ra_Invalid CRON":"CRON no válido","ra_Invalid JSON":"JSON no válido","ra_Invalid JSON file.":"Archivo JSON inválido.","ra_Invalid JSON format. Expected an array.":"Formato JSON inválido. Se esperaba un array.","ra_Invalid answer from server":"Respuesta inválida del servidor","ra_Invalid parent folder!":"Carpeta principal no válida.","ra_Invalid structure":"Estructura inválida","ra_JSON editor":"editor JSON","ra_Last change":"Ultimo cambio",ra_Latitude:_ke,"ra_License %s":"Licencia %s","ra_License agreement":"Acuerdo de licencia","ra_License does not exist":"La licencia no existe","ra_License expired on %s":"La licencia venció el %s",'ra_License for other product "%s"':'Licencia para otro producto "%s"',"ra_License is for version %s, but required version is %s.":"La licencia es para la versión %s, pero la versión requerida es %s.","ra_License must be converted":"La licencia debe convertirse a una versión más reciente. Puedes hacerlo en tu perfil de iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Licencia no encontrada en el administrador de licencias. ¿Quieres actualizar las licencias de iobroker.net?","ra_Listen on all IPs":"Escuche en todas las IP","ra_Load configuration from file":"Cargar configuración desde archivo",ra_Logout:gke,ra_Longitude:yke,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:vke,ra_Monday:bke,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:wke,"ra_No data found in file":"No se encontraron datos en el archivo","ra_No one license found in license manager":"No se encontró ninguna licencia en el administrador de licencias","ra_No response from admin":"No hay respuesta del administrador","ra_No response from the backend":"No hay respuesta del backend",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Los no expertos pueden crear nuevos objetos solo en "0_userdata.0" o "alias.0".',"ra_Not a number":"No un número","ra_OAuth Client ID":"ID de cliente OAuth","ra_OAuth Client secret":"Secreto de cliente OAuth",ra_Objects:Ske,ra_Ok:xke,"ra_On weekdays":"De lunes a viernes","ra_Only following structures of objects are available:":"Solo están disponibles las siguientes estructuras de objetos:","ra_Only selected":"Solo seleccionados","ra_Owner group":"Grupo propietario","ra_Owner user":"Usuario propietario","ra_Passwords are not equal!":"¡Las contraseñas no son iguales!","ra_Place your files here or click here to open the browse dialog":"Coloque sus archivos aquí o haga clic aquí para abrir el cuadro de diálogo de exploración","ra_Please allow popups in your browser for this page!":"¡Permita ventanas emergentes en su navegador para esta página!","ra_Please confirm":"Por favor confirmar","ra_Please create license":"Por favor cree una licencia","ra_Please enter the license":"Por favor ingrese la licencia","ra_Please select file...":"Seleccione el archivo...","ra_Please select object ID...":"Por favor seleccione ID de objeto ...","ra_Port could be used by %s":"El puerto podría ser utilizado por %s","ra_Port is already used by %s":"El puerto ya está en uso por %s","ra_Press ENTER Key to add new item":"Presione la tecla ENTER para agregar un nuevo elemento","ra_Private certificate":"certificado privado",ra_Product:kke,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Rename_Move_Copy:Cke,"ra_Renew %s access":"Renovar el acceso a %s",ra_Repeat:$ke,ra_Replace:Eke,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:Tke,ra_Saturday:Oke,ra_Save:Dke,"ra_Save and close":"Guardar y cerrar","ra_Save configuration to file":"Guardar configuración en archivo","ra_Save objects tree as JSON file":"Guardar el árbol de objetos como archivo JSON","ra_Select all":"Seleccionar todo","ra_Select color":"Seleccionar el color","ra_Select predefined icon":"Seleccionar icono predefinido","ra_Select type of export":"Seleccione tipo de exportación",ra_Selected:Rke,"ra_Selected %s object(s)":"%s objetos seleccionados","ra_Serial number (UUID)":"Número de serie (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'El número de serie (UUID) "%s" en la licencia es para otro dispositivo.',"ra_Session will expire in %s seconds. Continue?":"La sesión expirará en %s segundos. ¿Continuar?","ra_Show all folders":"Mostrar todas las carpetas","ra_Show lines between rows":"Mostrar líneas entre filas","ra_Show/Hide object descriptions":"Mostrar/ocultar descripciones de objetos","ra_Show/hide filter input":"Mostrar/ocultar entrada de filtro","ra_Some data are not stored. Discard?":"Algunos datos no se almacenan. ¿Desechar?",ra_States:Mke,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Autorizado correctamente. El token es válido hasta el %s y se renovará automáticamente.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Autorizado correctamente. El token es válido hasta %s, pero puede caducar porque la instancia no está en ejecución.","ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:Ake,"ra_Suppress question for next %s minutes":"Suprimir pregunta durante los próximos %s minutos","ra_System language":"Lenguaje del sistema","ra_Take browser position":"Tomar posición desde el navegador","ra_Take position from system settings":"Tomar posición desde la configuración del sistema",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Los expertos pueden crear objetos en todas partes excepto desde el segundo nivel (por ejemplo, "vis.0" o "javascript.0").',"ra_The page you are looking for was not found":"No se encontró la página que busca","ra_The schedule will be executed every minute. Are you sure?":"El cronograma se ejecutará cada minuto. ¿Estás seguro?","ra_The schedule will be executed every second. Are you sure?":"El cronograma se ejecutará cada segundo. ¿Estás seguro?",ra_Thursday:Nke,ra_Timestamp:Pke,"ra_Toggle expert mode":"Alternar modo experto","ra_Toggle the states view":"Alternar la vista de estados","ra_Toggle view mode":"Alternar modo de vista","ra_Too big":"Demasiado grande","ra_Too small":"Demasiado pequeña","ra_Transparent dialog":"Diálogo transparente",ra_Tuesday:Ike,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:jke,"ra_Upload file":"Subir archivo","ra_Use all available let's encrypt certificates":"Utilice todos los certificados let's encrypt disponibles","ra_Use iobroker.acme adapter for letsencrypt certificates":"Use el adaptador iobroker.acme para los certificados de letsencrypt","ra_Use system settings for position":"Usar la configuración del sistema para la posición","ra_Used system settings":"Configuraciones del sistema usadas","ra_User files":"Archivos de usuario",ra_ValidTill:zke,ra_Value:Lke,ra_Version:Fke,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:Bke,ra_Width:Wke,"ra_YAML editor":"Editor YAML",ra_Yes:Uke,"ra_You can export all objects or just the selected branch.":"Puede exportar todos los objetos o solo la rama seleccionada.","ra_You can filter entries by entering here some text":"Puede filtrar las entradas ingresando aquí algún texto","ra_You can use * as wildcard":"Puedes utilizar * como comodín",ra___different__:qke,ra_aclEveryone_read_object:Hke,ra_aclEveryone_read_state:Vke,ra_aclEveryone_write_object:Gke,ra_aclEveryone_write_state:Xke,ra_aclGroup_read_object:Jke,ra_aclGroup_read_state:Yke,ra_aclGroup_write_object:Kke,ra_aclGroup_write_state:Zke,ra_aclOwner_read_object:Qke,ra_aclOwner_read_state:eCe,ra_aclOwner_write_object:tCe,ra_aclOwner_write_state:rCe,ra_buttons:nCe,ra_changedFrom:oCe,ra_close:aCe,ra_create_boolean_state:iCe,ra_create_channel:sCe,ra_create_device:cCe,ra_create_number_state:lCe,ra_create_state:uCe,ra_create_string_state:dCe,ra_daysShortText:pCe,ra_dow_Fr:fCe,ra_dow_Mo:hCe,ra_dow_Sa:mCe,ra_dow_Su:_Ce,ra_dow_Th:gCe,ra_dow_Tu:yCe,ra_dow_We:vCe,ra_expertMode:bCe,ra_false:wCe,ra_fileType_all:SCe,ra_fileType_audio:xCe,ra_fileType_code:kCe,ra_fileType_images:CCe,ra_fileType_txt:$Ce,ra_fileType_video:ECe,"ra_fileType_video,":"Video",ra_filter_customs:TCe,ra_filter_customs_without:OCe,ra_filter_func:DCe,ra_filter_id:RCe,ra_filter_name:MCe,ra_filter_role:ACe,ra_filter_room:NCe,ra_filter_type:PCe,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:ICe,ra_lastChange:jCe,ra_locally:zCe,ra_month_Apr:LCe,ra_month_Aug:FCe,ra_month_Dec:BCe,ra_month_Feb:WCe,ra_month_Jan:UCe,ra_month_Jul:qCe,ra_month_Jun:HCe,ra_month_Mai:VCe,ra_month_Mar:GCe,ra_month_Nov:XCe,ra_month_Oct:JCe,ra_month_Sep:YCe,ra_months_Apr:KCe,ra_months_Aug:ZCe,ra_months_Dec:QCe,ra_months_Feb:e$e,ra_months_Jan:t$e,ra_months_Jul:r$e,ra_months_Jun:n$e,ra_months_Mai:o$e,ra_months_Mar:a$e,ra_months_Nov:i$e,ra_months_Oct:s$e,ra_months_Sep:c$e,"ra_no confirm for 5 mins":"Sin confirmación durante 5 minutos",ra_none:l$e,ra_object_changed_by:u$e,ra_object_changed_by_user:d$e,ra_otherConfig:p$e,ra_qualityCode:f$e,ra_repeat:h$e,ra_select_folder_hint:m$e,ra_show_all:_$e,ra_state_changed_by:g$e,ra_state_changed_from:y$e,ra_timestamp:v$e,ra_tooltip_ack:b$e,ra_tooltip_comment:w$e,ra_tooltip_copyState:S$e,ra_tooltip_ctrlForLink:x$e,ra_tooltip_customConfig:k$e,ra_tooltip_deleteObject:C$e,ra_tooltip_editObject:$$e,ra_tooltip_editState:E$e,ra_tooltip_expire:T$e,ra_tooltip_from:O$e,ra_tooltip_lc:D$e,ra_tooltip_quality:R$e,ra_tooltip_ts:M$e,ra_tooltip_user:A$e,ra_tooltip_value:N$e,ra_true:P$e,"ra_use seconds":"usar segundos",ra_val:I$e,"ra_via internet":"vía Internet",ra_warning_every_minute:j$e,ra_warning_every_second:z$e,sc_cron:L$e,sc_date:F$e,sc_dates:B$e,sc_dow:W$e,sc_dows:U$e,sc_every:q$e,sc_everyN_dates:H$e,sc_everyN_dow:V$e,sc_everyN_dows:G$e,sc_everyN_hours:X$e,sc_everyN_minutes:J$e,sc_everyN_months:Y$e,sc_everyN_seconds:K$e,sc_every_dates:Z$e,sc_every_dow:Q$e,sc_every_dows:e6e,sc_every_hours:t6e,sc_every_minutes:r6e,sc_every_months:n6e,sc_every_seconds:o6e,sc_from:a6e,sc_hours:i6e,sc_interval:s6e,sc_intervalBetween:c6e,sc_invalid_cron:l6e,sc_minutes:u6e,sc_months:d6e,sc_once:p6e,sc_period:f6e,sc_seconds:h6e,sc_simple:m6e,sc_specific:_6e,sc_specific_dates:g6e,sc_specific_dow:y6e,sc_specific_dows:v6e,sc_specific_hours:b6e,sc_specific_minutes:w6e,sc_specific_months:S6e,sc_specific_seconds:x6e,sc_time:k6e,sc_to:C6e,sc_wizard:$6e,sch_all:E6e,sch_astroDay:T6e,sch_astroNight:O6e,sch_astro_dawn:D6e,sch_astro_dusk:R6e,sch_astro_goldenHour:M6e,sch_astro_goldenHourEnd:A6e,sch_astro_nadir:N6e,sch_astro_nauticalDawn:P6e,sch_astro_nauticalDusk:I6e,sch_astro_night:j6e,sch_astro_nightEnd:z6e,sch_astro_solarNoon:L6e,sch_astro_sunrise:F6e,sch_astro_sunriseEnd:B6e,sch_astro_sunset:W6e,sch_astro_sunsetStart:U6e,sch_at:q6e,sch_desc_atTime:H6e,sch_desc_everyDay:V6e,sch_desc_everyHour:G6e,sch_desc_everyMinute:X6e,sch_desc_everyMonth:J6e,sch_desc_everyNDay:Y6e,sch_desc_everyNHours:K6e,sch_desc_everyNMinutes:Z6e,sch_desc_everyNMonths:Q6e,sch_desc_everyNWeeks:eEe,sch_desc_everyNYears:tEe,sch_desc_everyWeek:rEe,sch_desc_everyYear:nEe,sch_desc_intervalFromTo:oEe,sch_desc_never:aEe,sch_desc_onDate:iEe,sch_desc_onDates:sEe,sch_desc_onEveryDate:cEe,sch_desc_onMonth:lEe,sch_desc_onMonths:uEe,sch_desc_onWeekday:dEe,sch_desc_onWeekdays:pEe,sch_desc_onWeekends:fEe,sch_desc_onWorkdays:hEe,sch_desc_onceInPast:mEe,sch_desc_once_on:_Ee,sch_desc_validFrom:gEe,sch_desc_validFromTo:yEe,sch_desc_validTo:vEe,sch_every:bEe,sch_exactTime:wEe,sch_from:SEe,sch_fromTo:xEe,sch_intervalTime:kEe,sch_invert:CEe,sch_no_one:$Ee,sch_on:EEe,sch_period:TEe,sch_periodDaily:OEe,sch_periodDates:DEe,sch_periodDay:REe,sch_periodEvery:MEe,sch_periodEveryDay:AEe,sch_periodEveryMonth:NEe,sch_periodEveryWeek:PEe,sch_periodEveryYear:IEe,sch_periodHours:jEe,sch_periodMinutes:zEe,sch_periodMonth:LEe,sch_periodMonthly:FEe,sch_periodOnce:BEe,sch_periodSpecificMonths:WEe,sch_periodWeek:UEe,sch_periodWeekdays:qEe,sch_periodWeekend:HEe,sch_periodWeekly:VEe,sch_periodWorkdays:GEe,sch_periodYear:XEe,sch_periodYearly:JEe,sch_specificTime:YEe,sch_time:KEe,sch_to:ZEe,sch_valid:QEe,sch_validFrom:eTe,sch_validTo:tTe,sch_wholeDay:rTe,sch_yearEveryMonth:nTe},aTe="Akcje",iTe="Dodać",sTe="Anuluj",cTe="Kategorie",lTe="Sprawdzony",uTe="Kasować",dTe="Blisko",pTe="Handlowy",fTe="Konfiguruj",hTe="Połączony",mTe="Kontynuować",_Te="Skopiowano",gTe="Stwórz",yTe="Przyciąć",vTe="Delete",bTe="Usunąć",wTe="Wyrzucać",STe="Niepowiązany",xTe="Błąd",kTe="Filtr",CTe="Piątek",$Te="Szerokość",ETe="Wyloguj",TTe="Długość geograficzna",OTe="Wiadomość",DTe="Poniedziałek",RTe="Nazwa",MTe="Obiekty",ATe="Dobrze",NTe="Produkt",PTe="Zmień nazwę/Przenieś/Kopiuj",ITe="Powtarzać",jTe="Zastępować",zTe="Korzeń",LTe="Sobota",FTe="Zapisać",BTe="Wybrany",WTe="Stany",UTe="Niedziela",qTe="Czwartek",HTe="Znak czasu",VTe="Wtorek",GTe="Aktualizacja",XTe="Obowiązuje do",JTe="Wartość",YTe="Wersja",KTe="Środa",ZTe="Szerokość",QTe="Tak",e8e="różne",t8e="Każdy może czytać obiekt",r8e="Każdy może czytać stan",n8e="Każdy może pisać przedmiot",o8e="Każdy może pisać stan",a8e="Grupa może odczytać obiekt",i8e="Grupa może odczytać stan",s8e="Grupa może pisać obiekt",c8e="Grupa może pisać stan",l8e="Właściciel może czytać obiekt",u8e="Właściciel może odczytać stan",d8e="Właściciel może napisać obiekt",p8e="Właściciel może pisać stan",f8e="guziki",h8e="Zmieniony z",m8e="blisko",_8e="Utwórz stan logiczny",g8e="Utwórz kanał",y8e="Utwórz urządzenie",v8e="Utwórz stan liczbowy",b8e="Utwórz stan",w8e="Utwórz stan ciągu",S8e="d.",x8e="Ks",k8e="Mo",C8e="Sa",$8e="Su",E8e="Th",T8e="Tu",O8e="My",D8e="Tryb ekspercki",R8e="FAŁSZ",M8e="Wszystkie pliki",A8e="Audio",N8e="Kod/JSON",P8e="Obrazy",I8e="Tekst",j8e="Wideo",z8e="Ustawienia",L8e="bez",F8e="Funkcjonować",B8e="ID",W8e="Imię",U8e="Rola",q8e="Sala",H8e="Rodzaj",V8e="Nieprawidłowe ustawienia",G8e="Ostatnia zmiana",X8e="lokalnie",J8e="kwiecień",Y8e="sierpień",K8e="grudzień",Z8e="luty",Q8e="styczeń",e9e="lipiec",t9e="czerwiec",r9e="Mai",n9e="Zniszczyć",o9e="listopad",a9e="październik",i9e="wrzesień",s9e="kwiecień",c9e="sierpień",l9e="grudzień",u9e="luty",d9e="styczeń",p9e="lipiec",f9e="czerwiec",h9e="Mai",m9e="Zniszczyć",_9e="listopad",g9e="październik",y9e="wrzesień",v9e="Żaden",b9e="Obiekt zmieniony przez",w9e="Obiekt ostatnio zmieniony o godz",S9e="Ustawienia z innego adaptera %s",x9e="Kod jakości",k9e="powtarzać",C9e="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",$9e="Pokaż wszystko",E9e="Stan zmieniony przez",T9e="Obiekt zmieniony z",O9e="Znak czasu",D9e="Potwierdzon",R9e="Komentarz",M9e="Skopiuj wartość stanu",A9e="Przytrzymaj klawisz CTRL/⌘, aby otworzyć link",N9e="Własne ustawienia",P9e="Usuń obiekt",I9e="Edytuj obiekt",j9e="Edytuj wartość stanu",z9e="Wygasa za",L9e="Z",F9e="Ostatnia zmiana",B9e="Jakość",W9e="Znak czasu",U9e="Użytkownik",q9e="Wartość",H9e="PRAWDA",V9e="Wartość",G9e="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",X9e="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",J9e="CRON",Y9e="Data",K9e="Daktyle",Z9e="Dzień",Q9e="Dzień tygodnia",e7e="Każdy",t7e="co N dni",r7e="w każdy N-ty dzień tygodnia",n7e="co N dnia tygodnia",o7e="co N godzin",a7e="co N minut",i7e="co N miesięcy",s7e="co N sekund",c7e="codziennie",l7e="każdy dzień tygodnia",u7e="każdy dzień tygodnia",d7e="co godzinę",p7e="każda minuta",f7e="każdego miesiąca",h7e="każda sekunda",m7e="Od",_7e="godziny",g7e="Interwał",y7e="Interwał między",v7e="Nieprawidłowy CRON",b7e="Minuty",w7e="miesięcy",S7e="Pewnego razu",x7e="Kropka",k7e="sekundy",C7e="Prosty",$7e="Określony czas",E7e="konkretne daty",T7e="określone dni tygodnia",O7e="określony dzień tygodni",D7e="określone godziny",R7e="określone minuty",M7e="określone miesiące",A7e="określone sekundy",N7e="Czas",P7e="Do",I7e="Czarodziej",j7e="wszystko",z7e="Dzień Astro",L7e="Noc Astro",F7e="Świt",B7e="Zmierzch",W7e="Złota godzina",U7e="Koniec złotej godziny",q7e="Północ",H7e="Morski świt",V7e="Morski zmierzch",G7e="Noc",X7e="Koniec nocy",J7e="Południe słoneczne",Y7e="Wschód słońca",K7e="Koniec wschodu słońca",Z7e="Zachód słońca",Q7e="Początek zachodu słońca",eOe="w",tOe="na %s",rOe="codziennie",nOe="co godzinę",oOe="każda minuta",aOe="każdego miesiąca",iOe="każdego dnia %s",sOe="co %s godzin",cOe="co %s minut",lOe="co %s miesięcy",uOe="co %s tygodni",dOe="co %s lat",pOe="co tydzień",fOe="każdego roku",hOe="od %s do %s",mOe="nigdy",_Oe="na %s z %s",gOe="na %s i %s z",yOe="w każdą datę",vOe="%s",bOe="%s i %s",wOe="na %s",SOe="na %s i %s",xOe="w weekendy",kOe="w dni robocze",COe="nie będzie już wykonywany, ponieważ start jest w przeszłości",$Oe="na %s",EOe="z %s",TOe="Wykonaj od do",OOe="do %s",DOe="każdy",ROe="Określony czas",MOe="od",AOe="Od-do",NOe="Czas przerwy",POe="odwracać",IOe="Żaden",jOe="na",zOe="Kropka",LOe="Codziennie",FOe="Daktyle",BOe="Dzień",WOe="Każdy",UOe="Codziennie",qOe="Każdego miesiąca",HOe="Co tydzień",VOe="Każdego roku",GOe="godziny",XOe="Minuty",JOe="miesiąc",YOe="Miesięczny",KOe="Pewnego razu",ZOe="Określone miesiące",QOe="Tydzień",eDe="Dni powszednie",tDe="Weekend",rDe="Co tydzień",nDe="Dni robocze",oDe="Rok",aDe="Rocznie",iDe="Określony czas",sDe="Czas",cDe="do",lDe="Ważny",uDe="od",dDe="do",pDe="Cały dzień",fDe="każdego miesiąca",hDe={"ra_%s links from aliases":"%s linków z aliasów","ra_%s object(s) processed":"Przetworzono %s obiektów","ra_%s was imported":"%s został zaimportowany","ra_Accept license":"Zaakceptuj licencję",ra_Actions:aTe,"ra_Add new child object to selected parent":"Dodaj nowy obiekt potomny do wybranego rodzica","ra_Add objects tree from JSON file":"Dodaj drzewo obiektów z pliku JSON","ra_Add row":"Dodaj wiersz","ra_Advanced options":"Zaawansowane opcje","ra_All items are filtered out":"Wszystkie pozycje są odfiltrowane","ra_All objects":"Wszystkie obiekty",ra_Append:iTe,"ra_Append %s entries or replace existing?":"Dołączyć wpisy %s czy zastąpić istniejące?","ra_Append or replace?":"Dołączyć czy zastąpić?","ra_Are you sure?":"Jesteś pewny?","ra_Auto (no custom columns)":"Auto (bez kolumn niestandardowych)","ra_Back to %s":"Powrót do %s","ra_Background image":"Zdjęcie w tle",ra_Cancel:sTe,"ra_Cannot add items with set filter":"Nie można dodać elementów z ustawionym filtrem","ra_Cannot decode license":"Nie można zdekodować licencji","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Nie można określić pozycji: ustawienia systemu są puste, a wykrywanie GPS jest wyłączone w przeglądarce",'ra_Cannot find "%s"':"Nie można znaleźć „%s”",'ra_Cannot read "%s"':"Nie można odczytać „%s”","ra_Cannot read licenses: %s":"Nie można odczytać licencji: %s","ra_Cannot retrieve options, as instance is offline":"Nie można pobrać opcji, ponieważ instancja jest w trybie offline","ra_Cannot update attribute, because not found in the object":"Nie można zaktualizować atrybutu, ponieważ nie znaleziono go w obiekcie","ra_Cannot upload":"Nie można przesłać",ra_Categories:cTe,"ra_Chained certificate":"Certyfikat łańcuchowy","ra_Change color theme":"Zmień motyw kolorystyczny","ra_Changed from":"Zmieniony z","ra_Channel → State":"Kanał → Stan","ra_Check license":"Sprawdź licencję",ra_Checked:lTe,ra_Clear:uTe,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Click to see in full size":"Kliknij, aby zobaczyć w pełnym rozmiarze","ra_Click to show":"Kliknij, aby pokazać","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:dTe,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:pTe,ra_Configure:fTe,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:hTe,ra_Continue:mTe,ra_Copied:_Te,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:gTe,"ra_Create alias":"Utwórz alias","ra_Create folder":"Utwórz folder","ra_Create new folder in %s":"Utwórz nowy folder w %s",ra_Crop:yTe,"ra_Define CRON...":"Zdefiniuj CRON...","ra_Define functions":"Zdefiniuj funkcje","ra_Define rooms":"Zdefiniuj pokoje","ra_Define schedule":"Zdefiniuj harmonogram","ra_Define schedule...":"Zdefiniuj harmonogram ...",ra_Del:vTe,ra_Delete:bTe,"ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan","ra_Disable/Enable translation":"Wyłącz/Włącz tłumaczenie",ra_Discard:wTe,ra_Disconnected:STe,"ra_Do not ask for next 2 hours in this session":"Nie proś o kolejne 2 godziny w tej sesji","ra_Do not export values of states":"Nie eksportuj wartości stanów","ra_Do not use let's encrypt":"Nie używaj zaszyfrujmy","ra_Docker is not available":"Docker nie jest dostępny","ra_Docker is not installed or not running":"Docker nie jest zainstalowany lub nie działa","ra_Double click to reset table layout":"Kliknij dwukrotnie, aby zresetować układ tabeli","ra_Drag 'n' drop some files here, or click to select files":"Przeciągnij i upuść kilka plików tutaj lub kliknij, aby wybrać pliki","ra_Drop file here":"Upuść plik tutaj","ra_Drop the files here...":"Upuść plik tutaj...","ra_Duplicate name":"Zduplikowana nazwa","ra_Edit ACL":"Edytuj listy ACL","ra_Edit alias":"Edytuj alias","ra_Edit custom config":"Edytuj konfigurację niestandardową","ra_Edit full path":"Edytuj pełną ścieżkę","ra_Edit function":"Funkcja edycji","ra_Edit object field":"Edytuj pole obiektu","ra_Edit role":"Edytuj rolę","ra_Edit room":"Edytuj pokój","ra_Edit value":"Edytuj wartość","ra_Enter the code from that page here":"Wpisz kod z tej strony tutaj",ra_Error:xTe,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","ra_Expand/Collapse card":"Rozwiń/Zwiń kartę","ra_Export configuration section":"Sekcja konfiguracji eksportu","ra_Export data to %s file":"Eksportuj dane do pliku %s","ra_Failed to open JSON File":"Nie udało się otworzyć pliku JSON","ra_Fallback custom certificates":"Niestandardowe certyfikaty zastępcze","ra_File is too big. Max %sk allowed. Try use SVG.":"Plik jest za duży. Maksymalna dozwolona liczba %sk. Spróbuj użyć SVG.",ra_Filter:kTe,"ra_Filter and Data Actions":"Akcje filtrów i danych","ra_Filter files":"Filtruj pliki","ra_Folder name":"Nazwa folderu","ra_Folder → Channel → State":"Folder → Kanał → Stan","ra_Folder → Device → Channel → State":"Folder → Urządzenie → Kanał → Stan","ra_Folder → State":"Folder → Stan","ra_Folders always first":"Foldery zawsze na pierwszym miejscu",ra_Friday:CTe,"ra_From file":"Z pliku","ra_From text":"Z tekstu","ra_Get %s access":"Uzyskaj dostęp %s","ra_Good luck":"Powodzenia","ra_Hide empty folders":"Ukryj puste foldery","ra_If no file will be created in the folder, it will disappear after the browser closed":"Jeśli w folderze nie zostanie utworzony żaden plik, zniknie on po zamknięciu przeglądarki","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Jeśli przycisk powyżej nie działa, możesz autoryzować tę aplikację ręcznie, odwiedzając ten adres URL","ra_Import and add configuration section":"Importuj i dodaj sekcję konfiguracji","ra_Import and replace configuration section":"Importuj i zastąp sekcję konfiguracji","ra_Import data from %s file":"Importuj dane z pliku %s","ra_Import from %s":"Importuj z %s","ra_Instance %s is alive":"Instancja %s jest aktywna","ra_Instance %s is not alive":"Instancja TEKST nie jest aktywna","ra_Instance is not alive":"Instancja nie jest aktywna","ra_Invalid CRON":"Nieprawidłowy CRON","ra_Invalid JSON":"Nieprawidłowy JSON","ra_Invalid JSON file.":"Nieprawidłowy plik JSON.","ra_Invalid JSON format. Expected an array.":"Nieprawidłowy format JSON. Oczekiwano tablicy.","ra_Invalid answer from server":"Nieprawidłowa odpowiedź z serwera","ra_Invalid parent folder!":"Nieprawidłowy folder nadrzędny!","ra_Invalid structure":"Nieprawidłowa struktura","ra_JSON editor":"Edytor JSON","ra_Last change":"Ostatnia zmiana",ra_Latitude:$Te,"ra_License %s":"Licencja %s","ra_License agreement":"Umowa licencyjna","ra_License does not exist":"Licencja nie istnieje","ra_License expired on %s":"Licencja wygasła w dniu %s",'ra_License for other product "%s"':"Licencja na inny produkt „%s”","ra_License is for version %s, but required version is %s.":"Licencja dotyczy wersji %s, ale wymagana wersja to %s.","ra_License must be converted":"Licencja musi zostać przekonwertowana na nowszą wersję. Możesz to zrobić w swoim profilu iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Nie znaleziono licencji w menedżerze licencji. Chcesz zaktualizować licencje z iobroker.net?","ra_Listen on all IPs":"Słuchaj na wszystkich adresach IP","ra_Load configuration from file":"Załaduj konfigurację z pliku",ra_Logout:ETe,ra_Longitude:TTe,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:OTe,ra_Monday:DTe,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:RTe,"ra_No data found in file":"Nie znaleziono danych w pliku","ra_No one license found in license manager":"Nie znaleziono licencji w menedżerze licencji","ra_No response from admin":"Brak odpowiedzi od administratora","ra_No response from the backend":"Brak odpowiedzi z zaplecza",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Osoby nie będące ekspertami mogą tworzyć nowe obiekty tylko w „0_userdata.0” lub „alias.0”.","ra_Not a number":"Nie numer","ra_OAuth Client ID":"Identyfikator klienta OAuth","ra_OAuth Client secret":"Tajny klucz klienta OAuth",ra_Objects:MTe,ra_Ok:ATe,"ra_On weekdays":"W dni powszednie","ra_Only following structures of objects are available:":"Dostępne są tylko następujące struktury obiektów:","ra_Only selected":"Tylko wybrane","ra_Owner group":"Grupa właścicieli","ra_Owner user":"Właściciel użytkownika","ra_Passwords are not equal!":"Hasła nie są równe!","ra_Place your files here or click here to open the browse dialog":"Umieść swoje pliki tutaj lub kliknij tutaj, aby otworzyć okno dialogowe przeglądania","ra_Please allow popups in your browser for this page!":"Proszę zezwolić na wyświetlanie wyskakujących okienek w przeglądarce dla tej strony!","ra_Please confirm":"Proszę potwierdzić","ra_Please create license":"Utwórz licencję","ra_Please enter the license":"Proszę wprowadzić licencję","ra_Please select file...":"Wybierz plik...","ra_Please select object ID...":"Wybierz identyfikator obiektu ...","ra_Port could be used by %s":"Port może być używany przez %s","ra_Port is already used by %s":"Port jest już używany przez %s","ra_Press ENTER Key to add new item":"Naciśnij klawisz ENTER, aby dodać nowy element","ra_Private certificate":"Prywatny certyfikat",ra_Product:NTe,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Rename_Move_Copy:PTe,"ra_Renew %s access":"Odnów dostęp %s",ra_Repeat:ITe,ra_Replace:jTe,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:zTe,ra_Saturday:LTe,ra_Save:FTe,"ra_Save and close":"Zapisz i zamknij","ra_Save configuration to file":"Zapisz konfigurację do pliku","ra_Save objects tree as JSON file":"Zapisz drzewo obiektów jako plik JSON","ra_Select all":"Zaznacz wszystko","ra_Select color":"Wybierz kolor","ra_Select predefined icon":"Wybierz predefiniowaną ikonę","ra_Select type of export":"Wybierz rodzaj eksportu",ra_Selected:BTe,"ra_Selected %s object(s)":"Wybrane obiekty %s","ra_Serial number (UUID)":"Numer seryjny (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':"Numer seryjny (UUID) „%s” w licencji dotyczy innego urządzenia.","ra_Session will expire in %s seconds. Continue?":"Sesja wygaśnie za %s sekund. Kontynuować?","ra_Show all folders":"Pokaż wszystkie foldery","ra_Show lines between rows":"Pokaż linie między rzędami","ra_Show/Hide object descriptions":"Pokaż/ukryj opisy obiektów","ra_Show/hide filter input":"Pokaż/ukryj wejście filtra","ra_Some data are not stored. Discard?":"Niektóre dane nie są przechowywane. Wyrzucać?",ra_States:WTe,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Pomyślnie autoryzowano. Token ważny do %s i zostanie automatycznie odnowiony.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Pomyślnie autoryzowano. Token ważny do %s, ale może wygasnąć, ponieważ instancja nie jest uruchomiona.","ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:UTe,"ra_Suppress question for next %s minutes":"Ukryj pytanie przez następne %s minut","ra_System language":"Język systemu","ra_Take browser position":"Zajmij pozycję z przeglądarki","ra_Take position from system settings":"Zajmij pozycję z ustawień systemowych",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Eksperci mogą tworzyć obiekty wszędzie poza drugim poziomem (np. „Vis.0” lub „javascript.0”).","ra_The page you are looking for was not found":"Strona, której szukasz nie została znaleziona","ra_The schedule will be executed every minute. Are you sure?":"Harmonogram będzie wykonywany co minutę. Czy jesteś pewien?","ra_The schedule will be executed every second. Are you sure?":"Harmonogram będzie wykonywany co sekundę. Czy jesteś pewien?",ra_Thursday:qTe,ra_Timestamp:HTe,"ra_Toggle expert mode":"Przełącz tryb eksperta","ra_Toggle the states view":"Przełącz widok stanów","ra_Toggle view mode":"Przełącz tryb widoku","ra_Too big":"Za duży","ra_Too small":"Za mały","ra_Transparent dialog":"Przejrzyste okno dialogowe",ra_Tuesday:VTe,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:GTe,"ra_Upload file":"Przesyłanie pliku","ra_Use all available let's encrypt certificates":"Użyj wszystkich dostępnych certyfikatów Let's Encrypt","ra_Use iobroker.acme adapter for letsencrypt certificates":"Użyj adaptera iobroker.acme dla certyfikatów letsencrypt","ra_Use system settings for position":"Użyj ustawień systemowych dla pozycji","ra_Used system settings":"Używane ustawienia systemowe","ra_User files":"Pliki użytkownika",ra_ValidTill:XTe,ra_Value:JTe,ra_Version:YTe,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:KTe,ra_Width:ZTe,"ra_YAML editor":"Edytor YAML",ra_Yes:QTe,"ra_You can export all objects or just the selected branch.":"Możesz wyeksportować wszystkie obiekty lub tylko wybraną gałąź.","ra_You can filter entries by entering here some text":"Możesz filtrować wpisy, wpisując tutaj jakiś tekst","ra_You can use * as wildcard":"Możesz użyć * jako symbolu wieloznacznego",ra___different__:e8e,ra_aclEveryone_read_object:t8e,ra_aclEveryone_read_state:r8e,ra_aclEveryone_write_object:n8e,ra_aclEveryone_write_state:o8e,ra_aclGroup_read_object:a8e,ra_aclGroup_read_state:i8e,ra_aclGroup_write_object:s8e,ra_aclGroup_write_state:c8e,ra_aclOwner_read_object:l8e,ra_aclOwner_read_state:u8e,ra_aclOwner_write_object:d8e,ra_aclOwner_write_state:p8e,ra_buttons:f8e,ra_changedFrom:h8e,ra_close:m8e,ra_create_boolean_state:_8e,ra_create_channel:g8e,ra_create_device:y8e,ra_create_number_state:v8e,ra_create_state:b8e,ra_create_string_state:w8e,ra_daysShortText:S8e,ra_dow_Fr:x8e,ra_dow_Mo:k8e,ra_dow_Sa:C8e,ra_dow_Su:$8e,ra_dow_Th:E8e,ra_dow_Tu:T8e,ra_dow_We:O8e,ra_expertMode:D8e,ra_false:R8e,ra_fileType_all:M8e,ra_fileType_audio:A8e,ra_fileType_code:N8e,ra_fileType_images:P8e,ra_fileType_txt:I8e,ra_fileType_video:j8e,"ra_fileType_video,":"Wideo",ra_filter_customs:z8e,ra_filter_customs_without:L8e,ra_filter_func:F8e,ra_filter_id:B8e,ra_filter_name:W8e,ra_filter_role:U8e,ra_filter_room:q8e,ra_filter_type:H8e,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:V8e,ra_lastChange:G8e,ra_locally:X8e,ra_month_Apr:J8e,ra_month_Aug:Y8e,ra_month_Dec:K8e,ra_month_Feb:Z8e,ra_month_Jan:Q8e,ra_month_Jul:e9e,ra_month_Jun:t9e,ra_month_Mai:r9e,ra_month_Mar:n9e,ra_month_Nov:o9e,ra_month_Oct:a9e,ra_month_Sep:i9e,ra_months_Apr:s9e,ra_months_Aug:c9e,ra_months_Dec:l9e,ra_months_Feb:u9e,ra_months_Jan:d9e,ra_months_Jul:p9e,ra_months_Jun:f9e,ra_months_Mai:h9e,ra_months_Mar:m9e,ra_months_Nov:_9e,ra_months_Oct:g9e,ra_months_Sep:y9e,"ra_no confirm for 5 mins":"brak potwierdzenia przez 5 minut",ra_none:v9e,ra_object_changed_by:b9e,ra_object_changed_by_user:w9e,ra_otherConfig:S9e,ra_qualityCode:x9e,ra_repeat:k9e,ra_select_folder_hint:C9e,ra_show_all:$9e,ra_state_changed_by:E9e,ra_state_changed_from:T9e,ra_timestamp:O9e,ra_tooltip_ack:D9e,ra_tooltip_comment:R9e,ra_tooltip_copyState:M9e,ra_tooltip_ctrlForLink:A9e,ra_tooltip_customConfig:N9e,ra_tooltip_deleteObject:P9e,ra_tooltip_editObject:I9e,ra_tooltip_editState:j9e,ra_tooltip_expire:z9e,ra_tooltip_from:L9e,ra_tooltip_lc:F9e,ra_tooltip_quality:B9e,ra_tooltip_ts:W9e,ra_tooltip_user:U9e,ra_tooltip_value:q9e,ra_true:H9e,"ra_use seconds":"użyj sekund",ra_val:V9e,"ra_via internet":"przez internet",ra_warning_every_minute:G9e,ra_warning_every_second:X9e,sc_cron:J9e,sc_date:Y9e,sc_dates:K9e,sc_dow:Z9e,sc_dows:Q9e,sc_every:e7e,sc_everyN_dates:t7e,sc_everyN_dow:r7e,sc_everyN_dows:n7e,sc_everyN_hours:o7e,sc_everyN_minutes:a7e,sc_everyN_months:i7e,sc_everyN_seconds:s7e,sc_every_dates:c7e,sc_every_dow:l7e,sc_every_dows:u7e,sc_every_hours:d7e,sc_every_minutes:p7e,sc_every_months:f7e,sc_every_seconds:h7e,sc_from:m7e,sc_hours:_7e,sc_interval:g7e,sc_intervalBetween:y7e,sc_invalid_cron:v7e,sc_minutes:b7e,sc_months:w7e,sc_once:S7e,sc_period:x7e,sc_seconds:k7e,sc_simple:C7e,sc_specific:$7e,sc_specific_dates:E7e,sc_specific_dow:T7e,sc_specific_dows:O7e,sc_specific_hours:D7e,sc_specific_minutes:R7e,sc_specific_months:M7e,sc_specific_seconds:A7e,sc_time:N7e,sc_to:P7e,sc_wizard:I7e,sch_all:j7e,sch_astroDay:z7e,sch_astroNight:L7e,sch_astro_dawn:F7e,sch_astro_dusk:B7e,sch_astro_goldenHour:W7e,sch_astro_goldenHourEnd:U7e,sch_astro_nadir:q7e,sch_astro_nauticalDawn:H7e,sch_astro_nauticalDusk:V7e,sch_astro_night:G7e,sch_astro_nightEnd:X7e,sch_astro_solarNoon:J7e,sch_astro_sunrise:Y7e,sch_astro_sunriseEnd:K7e,sch_astro_sunset:Z7e,sch_astro_sunsetStart:Q7e,sch_at:eOe,sch_desc_atTime:tOe,sch_desc_everyDay:rOe,sch_desc_everyHour:nOe,sch_desc_everyMinute:oOe,sch_desc_everyMonth:aOe,sch_desc_everyNDay:iOe,sch_desc_everyNHours:sOe,sch_desc_everyNMinutes:cOe,sch_desc_everyNMonths:lOe,sch_desc_everyNWeeks:uOe,sch_desc_everyNYears:dOe,sch_desc_everyWeek:pOe,sch_desc_everyYear:fOe,sch_desc_intervalFromTo:hOe,sch_desc_never:mOe,sch_desc_onDate:_Oe,sch_desc_onDates:gOe,sch_desc_onEveryDate:yOe,sch_desc_onMonth:vOe,sch_desc_onMonths:bOe,sch_desc_onWeekday:wOe,sch_desc_onWeekdays:SOe,sch_desc_onWeekends:xOe,sch_desc_onWorkdays:kOe,sch_desc_onceInPast:COe,sch_desc_once_on:$Oe,sch_desc_validFrom:EOe,sch_desc_validFromTo:TOe,sch_desc_validTo:OOe,sch_every:DOe,sch_exactTime:ROe,sch_from:MOe,sch_fromTo:AOe,sch_intervalTime:NOe,sch_invert:POe,sch_no_one:IOe,sch_on:jOe,sch_period:zOe,sch_periodDaily:LOe,sch_periodDates:FOe,sch_periodDay:BOe,sch_periodEvery:WOe,sch_periodEveryDay:UOe,sch_periodEveryMonth:qOe,sch_periodEveryWeek:HOe,sch_periodEveryYear:VOe,sch_periodHours:GOe,sch_periodMinutes:XOe,sch_periodMonth:JOe,sch_periodMonthly:YOe,sch_periodOnce:KOe,sch_periodSpecificMonths:ZOe,sch_periodWeek:QOe,sch_periodWeekdays:eDe,sch_periodWeekend:tDe,sch_periodWeekly:rDe,sch_periodWorkdays:nDe,sch_periodYear:oDe,sch_periodYearly:aDe,sch_specificTime:iDe,sch_time:sDe,sch_to:cDe,sch_valid:lDe,sch_validFrom:uDe,sch_validTo:dDe,sch_wholeDay:pDe,sch_yearEveryMonth:fDe},mDe="Дії",_De="Додайте",gDe="Скасувати",yDe="Категорії",vDe="Перевірено",bDe="Видалити",wDe="Закрити",SDe="Комерційний",xDe="Налаштувати",kDe="Підключено",CDe="Продовжити",$De="Скопійовано",EDe="Створити",TDe="Урожай",ODe="Delete",DDe="Видалити",RDe="Відкинути",MDe="Відключено",ADe="Помилка",NDe="фільтр",PDe="П'ятниця",IDe="Широта",jDe="Вийти",zDe="Довгота",LDe="повідомлення",FDe="понеділок",BDe="Ім'я",WDe="Об'єкти",UDe="В порядку",qDe="Продукт",HDe="Перейменувати/Перемістити/Копіювати",VDe="Повторіть",GDe="Замінити",XDe="Корінь",JDe="Субота",YDe="зберегти",KDe="Вибране",ZDe="держави",QDe="неділя",eRe="четвер",tRe="Мітка часу",rRe="вівторок",nRe="оновлення",oRe="Дійсний до",aRe="Значення",iRe="Версія",sRe="Середа",cRe="Ширина",lRe="Так",uRe="інший",dRe="Кожен може читати об'єкт",pRe="Кожен може читати стан",fRe="Кожен може написати об'єкт",hRe="Кожен може написати стан",mRe="Група може читати об'єкт",_Re="Група може читати стан",gRe="Група може писати об'єкт",yRe="Група може писати стан",vRe="Власник може читати об'єкт",bRe="Власник може читати стан",wRe="Власник може написати об'єкт",SRe="Власник може написати стан",xRe="кнопки",kRe="Змінено з",CRe="закрити",$Re="Створіть логічний стан",ERe="Створити канал",TRe="Створити пристрій",ORe="Створити номерний стан",DRe="Створити состояние",RRe="Створити рядковий стан",MRe="днів",ARe="О",NRe="пн",PRe="Sa",IRe="Нд",jRe="чт",zRe="вт",LRe="ми",FRe="Експертний режим",BRe="НЕПРАВДА",WRe="Всі файли",URe="Аудіо",qRe="Код/JSON",HRe="Зображення",VRe="текст",GRe="відео",XRe="Налаштування",JRe="без",YRe="функція",KRe="ID",ZRe="Ім'я",QRe="Роль",eMe="Кімната",tMe="Тип",rMe="Недійсні налаштування",nMe="Остання зміна",oMe="локально",aMe="квіт",iMe="серп",sMe="груд",cMe="лютий",lMe="січня",uMe="лип",dMe="черв",pMe="травень",fMe="березень",hMe="Листопад",mMe="жовт",_Me="вер",gMe="квіт",yMe="серп",vMe="груд",bMe="лютий",wMe="січня",SMe="лип",xMe="черв",kMe="травень",CMe="березень",$Me="Листопад",EMe="жовт",TMe="вер",OMe="немає",DMe="Об'єкт змінено",RMe="Об'єкт востаннє змінено о",MMe="Налаштування з іншого адаптера %s",AMe="Код якості",NMe="повторити",PMe="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",IMe="Показати все",jMe="Стан змінено на",zMe="Об'єкт змінено з",LMe="Мітка часу",FMe="Визнано",BMe="коментар",WMe="Скопіюйте значення стану",UMe="Утримуйте клавішу Cltr/⌘, щоб відкрити посилання",qMe="Спеціальні налаштування",HMe="Видалити об'єкт",VMe="Редагувати об'єкт",GMe="Відредагуйте значення стану",XMe="Термін дії закінчується через",JMe="Від",YMe="Востаннє змінено",KMe="якість",ZMe="Позначка часу",QMe="Користувач",eAe="Значення",tAe="ПРАВДА",rAe="Значення",nAe="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",oAe="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",aAe="CRON",iAe="Дата",sAe="дати",cAe="День",lAe="День тижня",uAe="кожен",dAe="кожні N днів",pAe="кожен N-й день тижня",fAe="кожні N днів тижня",hAe="кожні N годин",mAe="кожні N хвилин",_Ae="кожні N місяців",gAe="кожні N секунд",yAe="кожен день",vAe="кожен день тижня",bAe="кожен день тижня",wAe="щогодини",SAe="кожну хвилину",xAe="щомісяця",kAe="кожна секунда",CAe="Від",$Ae="години",EAe="Інтервал",TAe="Інтервал між",OAe="Недійсний CRON",DAe="хвилин",RAe="місяців",MAe="Один раз",AAe="Крапка",NAe="секунд",PAe="просто",IAe="Конкретний час",jAe="конкретні дати",zAe="конкретний день (дні) тижня",LAe="конкретний день тижня",FAe="конкретні години",BAe="конкретні хвилини",WAe="конкретні місяці",UAe="конкретні секунди",qAe="час",HAe="до",VAe="майстер",GAe="все",XAe="Астродень",JAe="Астро ніч",YAe="Світанок",KAe="Сутінки",ZAe="Золота година",QAe="Кінець золотої години",eNe="Надір",tNe="Морський світанок",rNe="Морські сутінки",nNe="ніч",oNe="Кінець ночі",aNe="Сонячний полудень",iNe="Схід сонця",sNe="Кінець сходу сонця",cNe="Захід сонця",lNe="Початок заходу сонця",uNe="в",dNe="в %s",pNe="кожен день",fNe="щогодини",hNe="кожну хвилину",mNe="щомісяця",_Ne="кожен %s день",gNe="кожні %s годин",yNe="кожні %s хвилин",vNe="кожні %s місяців",bNe="кожні %s тижнів",wNe="кожні %s років",SNe="щотижня",xNe="щороку",kNe="від %s до %s",CNe="ніколи",$Ne="на %s з %s",ENe="на %s і %s з",TNe="на кожну дату",ONe="%s",DNe="%s і %s",RNe="на %s",MNe="на %s і %s",ANe="на вихідних",NNe="в робочі дні",PNe="більше не виконуватиметься, оскільки запуск у минулому",INe="на %s",jNe="від %s",zNe="Виконати від до",LNe="до %s",FNe="кожен",BNe="Конкретний час",WNe="від",UNe="Від до",qNe="Час інтервалу",HNe="інвертувати",VNe="немає",GNe="на",XNe="Крапка",JNe="Щодня",YNe="дати",KNe="День",ZNe="кожен",QNe="Кожен день",ePe="Щомісяця",tPe="Щотижня",rPe="Щороку",nPe="години",oPe="хвилин",aPe="місяць",iPe="Щомісяця",sPe="Один раз",cPe="Конкретні місяці",lPe="тиждень",uPe="будні",dPe="Вихідні",pPe="Щотижня",fPe="робочі дні",hPe="рік",mPe="щорічно",_Pe="Конкретний час",gPe="час",yPe="до",vPe="Дійсний",bPe="від",wPe="до",SPe="Цілий день",xPe="щомісяця",kPe={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію",ra_Actions:mDe,"ra_Add new child object to selected parent":"Додати новий дочірній об’єкт до вибраного батьківського","ra_Add objects tree from JSON file":"Додайте дерево об’єктів із файлу JSON","ra_Add row":"Додати рядок","ra_Advanced options":"Розширені опції","ra_All items are filtered out":"Усі елементи відфільтровано","ra_All objects":"Всі об'єкти",ra_Append:_De,"ra_Append %s entries or replace existing?":"Додати %s записів чи замінити наявні?","ra_Append or replace?":"Додати чи замінити?","ra_Are you sure?":"Ти впевнений?","ra_Auto (no custom columns)":"Автоматично (без спеціальних стовпців)","ra_Back to %s":"Назад до %s","ra_Background image":"Фонове зображення",ra_Cancel:gDe,"ra_Cannot add items with set filter":"Неможливо додати елементи зі встановленим фільтром","ra_Cannot decode license":"Неможливо розшифрувати ліцензію","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"Неможливо визначити положення: системні налаштування порожні, а визначення GPS вимкнено в браузері",'ra_Cannot find "%s"':'Не вдається знайти "%s"','ra_Cannot read "%s"':'Неможливо прочитати "%s"',"ra_Cannot read licenses: %s":"Неможливо прочитати ліцензії: %s","ra_Cannot retrieve options, as instance is offline":"Неможливо отримати параметри, оскільки екземпляр офлайн","ra_Cannot update attribute, because not found in the object":"Неможливо оновити атрибут, оскільки його не знайдено в об’єкті","ra_Cannot upload":"Неможливо завантажити",ra_Categories:yDe,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:vDe,ra_Clear:bDe,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Click to see in full size":"Натисніть, щоб побачити в повному розмірі","ra_Click to show":"Натисніть, щоб показати","ra_Clone current row":"Клонувати поточний рядок",ra_Close:wDe,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:SDe,ra_Configure:xDe,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:kDe,ra_Continue:CDe,ra_Copied:$De,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:EDe,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:TDe,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:ODe,ra_Delete:DDe,"ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан","ra_Disable/Enable translation":"Вимкнути/Увімкнути переклад",ra_Discard:RDe,ra_Disconnected:MDe,"ra_Do not ask for next 2 hours in this session":"Не запитуйте про наступні 2 години цього сеансу","ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","ra_Docker is not available":"Докер недоступний","ra_Docker is not installed or not running":"Docker не встановлено або не працює","ra_Double click to reset table layout":"Двічі клацніть, щоб скинути макет таблиці","ra_Drag 'n' drop some files here, or click to select files":"Перетягніть деякі файли сюди або натисніть, щоб вибрати файли","ra_Drop file here":"Перетягніть файл сюди","ra_Drop the files here...":"Перетягніть файл сюди...","ra_Duplicate name":"Повторюване ім'я","ra_Edit ACL":"Редагувати ACL","ra_Edit alias":"Редагувати псевдонім","ra_Edit custom config":"Редагувати спеціальну конфігурацію","ra_Edit full path":"Редагувати повний шлях","ra_Edit function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення","ra_Enter the code from that page here":"Введіть тут код з цієї сторінки",ra_Error:ADe,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","ra_Expand/Collapse card":"Розгорнути/Згорнути картку","ra_Export configuration section":"Розділ конфігурації експорту","ra_Export data to %s file":"Експортувати дані у файл %s","ra_Failed to open JSON File":"Не вдалося відкрити файл JSON","ra_Fallback custom certificates":"Запасні спеціальні сертифікати","ra_File is too big. Max %sk allowed. Try use SVG.":"Файл завеликий. Максимально дозволено %sk. Спробуйте використовувати SVG.",ra_Filter:NDe,"ra_Filter and Data Actions":"Фільтр і дії з даними","ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:PDe,"ra_From file":"З файлу","ra_From text":"З тексту","ra_Get %s access":"Отримайте доступ %s","ra_Good luck":"Удачі","ra_Hide empty folders":"Приховати порожні папки","ra_If no file will be created in the folder, it will disappear after the browser closed":"Якщо в папці не буде створено файл, він зникне після закриття браузера","ra_If the button above does not work, you can authorize manually this app by visiting this url":"Якщо кнопка вище не працює, ви можете авторизувати цю програму вручну, перейшовши за цим посиланням","ra_Import and add configuration section":"Розділ імпорту та додавання конфігурації","ra_Import and replace configuration section":"Розділ імпорту та заміни конфігурації","ra_Import data from %s file":"Імпортувати дані з файлу %s","ra_Import from %s":"Імпортувати з %s","ra_Instance %s is alive":"Примірник %s живий","ra_Instance %s is not alive":"Примірник %s не живий","ra_Instance is not alive":"Примірник не живий","ra_Invalid CRON":"Недійсний CRON","ra_Invalid JSON":"Недійсний JSON","ra_Invalid JSON file.":"Недійсний JSON-файл.","ra_Invalid JSON format. Expected an array.":"Недійсний формат JSON. Очікується масив.","ra_Invalid answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:IDe,"ra_License %s":"Ліцензія %s","ra_License agreement":"Ліцензійна угода","ra_License does not exist":"Ліцензії не існує","ra_License expired on %s":"Термін дії ліцензії закінчився %s",'ra_License for other product "%s"':'Ліцензія на інший продукт "%s"',"ra_License is for version %s, but required version is %s.":"Ліцензія для версії %s, але потрібна версія %s.","ra_License must be converted":"Ліцензію необхідно конвертувати до новішої версії. Ви можете зробити це у своєму профілі на iobroker.net.","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"Ліцензія не знайдена в менеджері ліцензій. Хочете оновити ліцензії з iobroker.net?","ra_Listen on all IPs":"Прослуховування на всіх IP","ra_Load configuration from file":"Завантажити конфігурацію з файлу",ra_Logout:jDe,ra_Longitude:zDe,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:LDe,ra_Monday:FDe,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:BDe,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","ra_No response from admin":"Немає відповіді від адміністратора","ra_No response from the backend":"Немає відповіді від сервера",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Неексперти можуть створювати нові об’єкти лише в «0_userdata.0» або «alias.0».","ra_Not a number":"Не номер","ra_OAuth Client ID":"Ідентифікатор клієнта OAuth","ra_OAuth Client secret":"Секрет клієнта OAuth",ra_Objects:WDe,ra_Ok:UDe,"ra_On weekdays":"В будні дні","ra_Only following structures of objects are available:":"Доступні тільки такі структури об'єктів:","ra_Only selected":"Тільки обрані","ra_Owner group":"Група власників","ra_Owner user":"Користувач-власник","ra_Passwords are not equal!":"Паролі не бувають рівними!","ra_Place your files here or click here to open the browse dialog":"Розмістіть свої файли тут або натисніть тут, щоб відкрити діалогове вікно перегляду","ra_Please allow popups in your browser for this page!":"Будь ласка, дозвольте спливаючі вікна у вашому браузері для цієї сторінки!","ra_Please confirm":"Будь-ласка підтвердіть","ra_Please create license":"Будь ласка, створіть ліцензію","ra_Please enter the license":"Будь ласка, введіть ліцензію","ra_Please select file...":"Виберіть файл...","ra_Please select object ID...":"Виберіть ідентифікатор об'єкта...","ra_Port could be used by %s":"Порт може використовуватися %s","ra_Port is already used by %s":"Порт уже використовується %s","ra_Press ENTER Key to add new item":"Натисніть клавішу ENTER, щоб додати новий елемент","ra_Private certificate":"Приватний сертифікат",ra_Product:qDe,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Rename_Move_Copy:HDe,"ra_Renew %s access":"Поновити доступ %s",ra_Repeat:VDe,ra_Replace:GDe,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:XDe,ra_Saturday:JDe,ra_Save:YDe,"ra_Save and close":"Зберегти та закрити","ra_Save configuration to file":"Зберегти конфігурацію у файл","ra_Save objects tree as JSON file":"Зберегти дерево об’єктів як файл JSON","ra_Select all":"Вибрати все","ra_Select color":"Виберіть колір","ra_Select predefined icon":"Виберіть попередньо визначений значок","ra_Select type of export":"Виберіть тип експорту",ra_Selected:KDe,"ra_Selected %s object(s)":"Вибрані об’єкти %s","ra_Serial number (UUID)":"Серійний номер (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':'Серійний номер (UUID) "%s" у ліцензії призначений для іншого пристрою.',"ra_Session will expire in %s seconds. Continue?":"Сеанс закінчиться через %s секунд. Продовжити?","ra_Show all folders":"Показати всі папки","ra_Show lines between rows":"Показувати лінії між рядками","ra_Show/Hide object descriptions":"Показати/Сховати описи об’єктів","ra_Show/hide filter input":"Показати/сховати введення фільтра","ra_Some data are not stored. Discard?":"Деякі дані не зберігаються. Відкинути?",ra_States:ZDe,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"Авторизацію успішно пройшло. Токен дійсний до %s та буде автоматично поновлено.","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"Авторизацію успішно виконано. Токен дійсний до %s, але його термін дії може закінчитися, оскільки екземпляр не запущено.","ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:QDe,"ra_Suppress question for next %s minutes":"Приховати запитання на наступні %s хвилин","ra_System language":"Системна мова","ra_Take browser position":"Займіть позицію з браузера","ra_Take position from system settings":"Займіть позицію в налаштуваннях системи",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Експерти можуть створювати об’єкти всюди, крім другого рівня (наприклад, «vis.0» або «javascript.0»).","ra_The page you are looking for was not found":"Сторінка, яку ви шукаєте, не знайдена","ra_The schedule will be executed every minute. Are you sure?":"Розклад буде виконуватися щохвилини. Ви впевнені?","ra_The schedule will be executed every second. Are you sure?":"Розклад буде виконуватися щосекунди. Ви впевнені?",ra_Thursday:eRe,ra_Timestamp:tRe,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:rRe,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:nRe,"ra_Upload file":"Завантажити файл","ra_Use all available let's encrypt certificates":"Використовуйте всі доступні сертифікати let's encrypt","ra_Use iobroker.acme adapter for letsencrypt certificates":"Використовуйте адаптер iobroker.acme для сертифікатів letsencrypt","ra_Use system settings for position":"Використовуйте системні налаштування для позиції","ra_Used system settings":"Використані системні налаштування","ra_User files":"Файли користувача",ra_ValidTill:oRe,ra_Value:aRe,ra_Version:iRe,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:sRe,ra_Width:cRe,"ra_YAML editor":"Редактор YAML",ra_Yes:lRe,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст","ra_You can use * as wildcard":"Ви можете використовувати * як символ підстановки",ra___different__:uRe,ra_aclEveryone_read_object:dRe,ra_aclEveryone_read_state:pRe,ra_aclEveryone_write_object:fRe,ra_aclEveryone_write_state:hRe,ra_aclGroup_read_object:mRe,ra_aclGroup_read_state:_Re,ra_aclGroup_write_object:gRe,ra_aclGroup_write_state:yRe,ra_aclOwner_read_object:vRe,ra_aclOwner_read_state:bRe,ra_aclOwner_write_object:wRe,ra_aclOwner_write_state:SRe,ra_buttons:xRe,ra_changedFrom:kRe,ra_close:CRe,ra_create_boolean_state:$Re,ra_create_channel:ERe,ra_create_device:TRe,ra_create_number_state:ORe,ra_create_state:DRe,ra_create_string_state:RRe,ra_daysShortText:MRe,ra_dow_Fr:ARe,ra_dow_Mo:NRe,ra_dow_Sa:PRe,ra_dow_Su:IRe,ra_dow_Th:jRe,ra_dow_Tu:zRe,ra_dow_We:LRe,ra_expertMode:FRe,ra_false:BRe,ra_fileType_all:WRe,ra_fileType_audio:URe,ra_fileType_code:qRe,ra_fileType_images:HRe,ra_fileType_txt:VRe,ra_fileType_video:GRe,"ra_fileType_video,":"відео",ra_filter_customs:XRe,ra_filter_customs_without:JRe,ra_filter_func:YRe,ra_filter_id:KRe,ra_filter_name:ZRe,ra_filter_role:QRe,ra_filter_room:eMe,ra_filter_type:tMe,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:rMe,ra_lastChange:nMe,ra_locally:oMe,ra_month_Apr:aMe,ra_month_Aug:iMe,ra_month_Dec:sMe,ra_month_Feb:cMe,ra_month_Jan:lMe,ra_month_Jul:uMe,ra_month_Jun:dMe,ra_month_Mai:pMe,ra_month_Mar:fMe,ra_month_Nov:hMe,ra_month_Oct:mMe,ra_month_Sep:_Me,ra_months_Apr:gMe,ra_months_Aug:yMe,ra_months_Dec:vMe,ra_months_Feb:bMe,ra_months_Jan:wMe,ra_months_Jul:SMe,ra_months_Jun:xMe,ra_months_Mai:kMe,ra_months_Mar:CMe,ra_months_Nov:$Me,ra_months_Oct:EMe,ra_months_Sep:TMe,"ra_no confirm for 5 mins":"без підтвердження протягом 5 хв",ra_none:OMe,ra_object_changed_by:DMe,ra_object_changed_by_user:RMe,ra_otherConfig:MMe,ra_qualityCode:AMe,ra_repeat:NMe,ra_select_folder_hint:PMe,ra_show_all:IMe,ra_state_changed_by:jMe,ra_state_changed_from:zMe,ra_timestamp:LMe,ra_tooltip_ack:FMe,ra_tooltip_comment:BMe,ra_tooltip_copyState:WMe,ra_tooltip_ctrlForLink:UMe,ra_tooltip_customConfig:qMe,ra_tooltip_deleteObject:HMe,ra_tooltip_editObject:VMe,ra_tooltip_editState:GMe,ra_tooltip_expire:XMe,ra_tooltip_from:JMe,ra_tooltip_lc:YMe,ra_tooltip_quality:KMe,ra_tooltip_ts:ZMe,ra_tooltip_user:QMe,ra_tooltip_value:eAe,ra_true:tAe,"ra_use seconds":"використовуйте секунди",ra_val:rAe,"ra_via internet":"через інтернет",ra_warning_every_minute:nAe,ra_warning_every_second:oAe,sc_cron:aAe,sc_date:iAe,sc_dates:sAe,sc_dow:cAe,sc_dows:lAe,sc_every:uAe,sc_everyN_dates:dAe,sc_everyN_dow:pAe,sc_everyN_dows:fAe,sc_everyN_hours:hAe,sc_everyN_minutes:mAe,sc_everyN_months:_Ae,sc_everyN_seconds:gAe,sc_every_dates:yAe,sc_every_dow:vAe,sc_every_dows:bAe,sc_every_hours:wAe,sc_every_minutes:SAe,sc_every_months:xAe,sc_every_seconds:kAe,sc_from:CAe,sc_hours:$Ae,sc_interval:EAe,sc_intervalBetween:TAe,sc_invalid_cron:OAe,sc_minutes:DAe,sc_months:RAe,sc_once:MAe,sc_period:AAe,sc_seconds:NAe,sc_simple:PAe,sc_specific:IAe,sc_specific_dates:jAe,sc_specific_dow:zAe,sc_specific_dows:LAe,sc_specific_hours:FAe,sc_specific_minutes:BAe,sc_specific_months:WAe,sc_specific_seconds:UAe,sc_time:qAe,sc_to:HAe,sc_wizard:VAe,sch_all:GAe,sch_astroDay:XAe,sch_astroNight:JAe,sch_astro_dawn:YAe,sch_astro_dusk:KAe,sch_astro_goldenHour:ZAe,sch_astro_goldenHourEnd:QAe,sch_astro_nadir:eNe,sch_astro_nauticalDawn:tNe,sch_astro_nauticalDusk:rNe,sch_astro_night:nNe,sch_astro_nightEnd:oNe,sch_astro_solarNoon:aNe,sch_astro_sunrise:iNe,sch_astro_sunriseEnd:sNe,sch_astro_sunset:cNe,sch_astro_sunsetStart:lNe,sch_at:uNe,sch_desc_atTime:dNe,sch_desc_everyDay:pNe,sch_desc_everyHour:fNe,sch_desc_everyMinute:hNe,sch_desc_everyMonth:mNe,sch_desc_everyNDay:_Ne,sch_desc_everyNHours:gNe,sch_desc_everyNMinutes:yNe,sch_desc_everyNMonths:vNe,sch_desc_everyNWeeks:bNe,sch_desc_everyNYears:wNe,sch_desc_everyWeek:SNe,sch_desc_everyYear:xNe,sch_desc_intervalFromTo:kNe,sch_desc_never:CNe,sch_desc_onDate:$Ne,sch_desc_onDates:ENe,sch_desc_onEveryDate:TNe,sch_desc_onMonth:ONe,sch_desc_onMonths:DNe,sch_desc_onWeekday:RNe,sch_desc_onWeekdays:MNe,sch_desc_onWeekends:ANe,sch_desc_onWorkdays:NNe,sch_desc_onceInPast:PNe,sch_desc_once_on:INe,sch_desc_validFrom:jNe,sch_desc_validFromTo:zNe,sch_desc_validTo:LNe,sch_every:FNe,sch_exactTime:BNe,sch_from:WNe,sch_fromTo:UNe,sch_intervalTime:qNe,sch_invert:HNe,sch_no_one:VNe,sch_on:GNe,sch_period:XNe,sch_periodDaily:JNe,sch_periodDates:YNe,sch_periodDay:KNe,sch_periodEvery:ZNe,sch_periodEveryDay:QNe,sch_periodEveryMonth:ePe,sch_periodEveryWeek:tPe,sch_periodEveryYear:rPe,sch_periodHours:nPe,sch_periodMinutes:oPe,sch_periodMonth:aPe,sch_periodMonthly:iPe,sch_periodOnce:sPe,sch_periodSpecificMonths:cPe,sch_periodWeek:lPe,sch_periodWeekdays:uPe,sch_periodWeekend:dPe,sch_periodWeekly:pPe,sch_periodWorkdays:fPe,sch_periodYear:hPe,sch_periodYearly:mPe,sch_specificTime:_Pe,sch_time:gPe,sch_to:yPe,sch_valid:vPe,sch_validFrom:bPe,sch_validTo:wPe,sch_wholeDay:SPe,sch_yearEveryMonth:xPe},CPe="操作",$Pe="附加",EPe="取消",TPe="类别",OPe="勾选",DPe="删除",RPe="关",MPe="商业的",APe="配置",NPe="连接的",PPe="继续",IPe="复制的",jPe="创建",zPe="庄稼",LPe="Delete",FPe="删除",BPe="丢弃",WPe="断开连接",UPe="错误",qPe="筛选",HPe="星期五",VPe="纬度",GPe="登出",XPe="经度",JPe="信息",YPe="周一",KPe="姓名",ZPe="对象",QPe="好",eIe="产品",tIe="重命名/移动/复制",rIe="重复",nIe="代替",oIe="根",aIe="周六",iIe="保存",sIe="已选",cIe="状态",lIe="星期日",uIe="周四",dIe="时间戳记",pIe="周二",fIe="更新资料",hIe="有效期至",mIe="值",_Ie="版本",gIe="周三",yIe="宽度",vIe="是的",bIe="不同的",wIe="每个人都可以阅读对象",SIe="每个人都可以阅读状态",xIe="每个人都可以写对象",kIe="每个人都可以写状态",CIe="组可以读取对象",$Ie="群组可以读取状态",EIe="组可以写对象",TIe="组可以写状态",OIe="所有者可以读取对象",DIe="所有者可以读取状态",RIe="所有者可以写对象",MIe="所有者可以写状态",AIe="纽扣",NIe="更改为",PIe="关闭",IIe="创建布尔状态",jIe="创建频道",zIe="创建设备",LIe="创建号码状态",FIe="创建状态",BIe="创建字符串状态",WIe="天",UIe="r",qIe="莫",HIe="萨",VIe="苏",GIe="Th",XIe="Tu",JIe="我们",YIe="专家模式",KIe="错误的",ZIe="所有文件",QIe="声音的",eje="代码/JSON",tje="图片",rje="文本",nje="视频",oje="设定值",aje="没有",ije="功能",sje="ID",cje="名称",lje="角色",uje="房间",dje="类型",pje="无效的设定",fje="最后一次变更",hje="本地",mje="4月",_je="八月",gje="十二月",yje="二月",vje="简",bje="七月",wje="君",Sje="迈",xje="三月",kje="十一月",Cje="十月",$je="九月",Eje="4月",Tje="八月",Oje="十二月",Dje="二月",Rje="简",Mje="七月",Aje="君",Nje="迈",Pje="三月",Ije="十一月",jje="十月",zje="九月",Lje="没有任何",Fje="物件变更者",Bje="对象上次更改时间为",Wje="来自其他适配器%s的设置",Uje="质量代码",qje="重复",Hje="要选择文件夹,只需按住“shift”键单击文件夹即可。",Vje="显示全部",Gje="状态由",Xje="对象已从更改",Jje="时间戳记",Yje="致谢国旗",Kje="评论",Zje="复制状态值",Qje="按住 Cltr/⌘ 键打开链接",eze="自定义设置",tze="删除物件",rze="编辑物件",nze="编辑状态值",oze="有效期:",aze="从",ize="最后改变了",sze="质量",cze="时间戳",lze="用户",uze="值",dze="真的",pze="值",fze="警告:CRON 作业将在指定期间内每分钟运行一次!",hze="警告:CRON 作业将在指定期间内每秒运行一次!",mze="周期任务",_ze="日期",gze="日",yze="天",vze="星期",bze="每",wze="每N天",Sze="每周的第 N 天",xze="每周N天",kze="每N小时一次",Cze="每N分钟",$ze="每N个月",Eze="每N秒",Tze="每天",Oze="一周的每一天",Dze="一周的每一天",Rze="每小时",Mze="每分钟",Aze="每月",Nze="每秒",Pze="从",Ize="小时",jze="间隔",zze="间隔时间",Lze="无效的 CRON",Fze="分钟",Bze="月",Wze="一次",Uze="周期",qze="秒",Hze="简单模式",Vze="特定的时间",Gze="特定的日子",Xze="一周中的特定日子",Jze="特定的一周",Yze="特定的小时",Kze="特定的分钟",Zze="特定的月份",Qze="特定的描述",eLe="时间",tLe="至",rLe="向导模式",nLe="全选",oLe="天文白天",aLe="天文夜晚",iLe="黎明",sLe="黄昏",cLe="黄金时段",lLe="黄金时段结束",uLe="天底",dLe="航海黎明",pLe="航海黄昏",fLe="夜晚",hLe="夜晚结束",mLe="正午",_Le="日出",gLe="日出结束",yLe="日落",vLe="日落开始",bLe="在",wLe="的%s",SLe="每天",xLe="每小时",kLe="每分钟",CLe="每月",$Le="每%s天",ELe="每%s小时",TLe="每%s分钟",OLe="每%s月",DLe="每%s周",RLe="每%s年",MLe="每周",ALe="每年",NLe="从%s到%s",PLe="决不",ILe="在%s的%s上",jLe="在%s和%s上",zLe="在每天",LLe="%s",FLe="%s和%s",BLe="在%s上",WLe="在%s和%s上",ULe="在周末",qLe="在工作日",HLe="将不再执行,因为起始时间已经是过去的时间了。",VLe="在%s上",GLe="来自%s",XLe="从执行到",JLe="到%s",YLe="每",KLe="特定的时间",ZLe="从",QLe="从到",eFe="间隔时间",tFe="倒置",rFe="取消全选",nFe="的",oFe="周期",aFe="每天",iFe="日期",sFe="天",cFe="每",lFe="每天",uFe="每月",dFe="每周",pFe="每年",fFe="小时",hFe="分钟",mFe="月",_Fe="每月一次",gFe="一次",yFe="特定的月份",vFe="周",bFe="工作日",wFe="周末",SFe="每周",xFe="工作日",kFe="年",CFe="每年",$Fe="特定的时间",EFe="时间",TFe="至",OFe="生效",DFe="从",RFe="至",MFe="一整天",AFe="每月",NFe={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可",ra_Actions:CPe,"ra_Add new child object to selected parent":"将新的子对象添加到选定的父对象","ra_Add objects tree from JSON file":"从JSON文件添加对象树","ra_Add row":"添加行","ra_Advanced options":"高级选项","ra_All items are filtered out":"所有项目都被过滤掉","ra_All objects":"所有对象",ra_Append:$Pe,"ra_Append %s entries or replace existing?":"追加 %s 条目还是替换现有条目?","ra_Append or replace?":"追加还是替换?","ra_Are you sure?":"你确定吗?","ra_Auto (no custom columns)":"自动(无自定义列)","ra_Back to %s":"返回“%s”","ra_Background image":"背景图像",ra_Cancel:EPe,"ra_Cannot add items with set filter":"无法使用设置过滤器添加项目","ra_Cannot decode license":"无法解码许可证","ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":"无法确定位置:系统设置为空且浏览器中禁用了 GPS 检测",'ra_Cannot find "%s"':"找不到“%s”",'ra_Cannot read "%s"':"无法阅读“%s”","ra_Cannot read licenses: %s":"无法读取许可证:%s","ra_Cannot retrieve options, as instance is offline":"无法检索选项,因为实例处于脱机状态","ra_Cannot update attribute, because not found in the object":"无法更新属性,因为在对象中找不到","ra_Cannot upload":"无法上传",ra_Categories:TPe,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:OPe,ra_Clear:DPe,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Click to see in full size":"点击查看完整尺寸","ra_Click to show":"点击显示","ra_Clone current row":"克隆当前行",ra_Close:RPe,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:MPe,ra_Configure:APe,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:NPe,ra_Continue:PPe,ra_Copied:IPe,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:jPe,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:zPe,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:LPe,ra_Delete:FPe,"ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态","ra_Disable/Enable translation":"禁用/启用翻译",ra_Discard:BPe,ra_Disconnected:WPe,"ra_Do not ask for next 2 hours in this session":"本次会话中不要询问接下来的 2 个小时","ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","ra_Docker is not available":"Docker 不可用","ra_Docker is not installed or not running":"Docker 未安装或未运行","ra_Double click to reset table layout":"双击重置表格布局","ra_Drag 'n' drop some files here, or click to select files":"将一些文件拖放到此处,或单击以选择文件","ra_Drop file here":"将档案放在这里","ra_Drop the files here...":"把文件放在这里...","ra_Duplicate name":"名称重复","ra_Edit ACL":"编辑访问控制列表","ra_Edit alias":"编辑别名","ra_Edit custom config":"编辑自定义配置","ra_Edit full path":"编辑完整路径","ra_Edit function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值","ra_Enter the code from that page here":"在此处输入该页面的代码",ra_Error:UPe,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","ra_Expand/Collapse card":"展开/折叠卡","ra_Export configuration section":"导出配置部分","ra_Export data to %s file":"将数据导出到 %s 文件","ra_Failed to open JSON File":"无法打开JSON文件","ra_Fallback custom certificates":"后备自定义证书","ra_File is too big. Max %sk allowed. Try use SVG.":"文件太大。允许的最大字节%s数。尝试使用 SVG。",ra_Filter:qPe,"ra_Filter and Data Actions":"过滤和数据操作","ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:HPe,"ra_From file":"从文件","ra_From text":"文本","ra_Get %s access":"获取 %s 访问权限","ra_Good luck":"祝你好运","ra_Hide empty folders":"隐藏空文件夹","ra_If no file will be created in the folder, it will disappear after the browser closed":"如果在该文件夹中未创建任何文件,则该文件将在浏览器关闭后消失","ra_If the button above does not work, you can authorize manually this app by visiting this url":"如果上面的按钮不起作用,您可以通过访问此网址手动授权此应用","ra_Import and add configuration section":"导入并添加配置部分","ra_Import and replace configuration section":"导入和替换配置部分","ra_Import data from %s file":"从 %s 文件导入数据","ra_Import from %s":"从 %s 导入","ra_Instance %s is alive":"实例 %s 是活动的","ra_Instance %s is not alive":"实例 %s 不存在","ra_Instance is not alive":"实例不存在","ra_Invalid CRON":"无效的 CRON","ra_Invalid JSON":"JSON 无效","ra_Invalid JSON file.":"无效的JSON文件。","ra_Invalid JSON format. Expected an array.":"JSON格式无效。应为数组。","ra_Invalid answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:VPe,"ra_License %s":"许可证 %s","ra_License agreement":"许可协议","ra_License does not exist":"许可证不存在","ra_License expired on %s":"许可证已于 %s 过期",'ra_License for other product "%s"':"其他产品“%s”的许可证","ra_License is for version %s, but required version is %s.":"许可证适用于版本 %s,但所需版本为 %s。","ra_License must be converted":"许可证必须转换为更新版本。您可以在 iobroker.net 个人资料中执行此操作。","ra_License not found in license manager. Do you want to read licenses from iobroker.net?":"在许可证管理器中找不到许可证。您要从 iobroker.net 更新许可证吗?","ra_Listen on all IPs":"监听所有IP","ra_Load configuration from file":"从文件加载配置",ra_Logout:GPe,ra_Longitude:XPe,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:JPe,ra_Monday:YPe,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:KPe,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","ra_No response from admin":"管理员没有回应","ra_No response from the backend":"后端无响应",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"非专家只能在“ 0_userdata.0”或“ alias.0”中创建新对象。","ra_Not a number":"不是数字","ra_OAuth Client ID":"OAuth客户端ID","ra_OAuth Client secret":"OAuth 客户端密钥",ra_Objects:ZPe,ra_Ok:QPe,"ra_On weekdays":"在工作日","ra_Only following structures of objects are available:":"仅以下对象结构可用:","ra_Only selected":"只选择","ra_Owner group":"所有者组","ra_Owner user":"所有者用户","ra_Passwords are not equal!":"密码不相等!","ra_Place your files here or click here to open the browse dialog":"将文件放在此处或单击此处打开浏览对话框","ra_Please allow popups in your browser for this page!":"请允许浏览器弹出此页面!","ra_Please confirm":"请确认","ra_Please create license":"请创建许可证","ra_Please enter the license":"请输入许可证","ra_Please select file...":"请选择文件...","ra_Please select object ID...":"请选择对象ID ...","ra_Port could be used by %s":"%s 可以使用端口","ra_Port is already used by %s":"端口已被 %s 使用","ra_Press ENTER Key to add new item":"按 ENTER 键添加新项目","ra_Private certificate":"私有证书",ra_Product:eIe,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Rename_Move_Copy:tIe,"ra_Renew %s access":"续订 %s 访问权限",ra_Repeat:rIe,ra_Replace:nIe,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:oIe,ra_Saturday:aIe,ra_Save:iIe,"ra_Save and close":"保存并关闭","ra_Save configuration to file":"将配置保存到文件","ra_Save objects tree as JSON file":"将对象树另存为JSON文件","ra_Select all":"全选","ra_Select color":"选择颜色","ra_Select predefined icon":"选择预定义图标","ra_Select type of export":"选择导出类型",ra_Selected:sIe,"ra_Selected %s object(s)":"选定的 %s 个对象","ra_Serial number (UUID)":"序列号 (UUID)",'ra_Serial number (UUID) "%s" in license is for other device.':"许可证中的序列号 (UUID)“%s”用于其他设备。","ra_Session will expire in %s seconds. Continue?":"会话将在 %s 秒后过期。是否继续?","ra_Show all folders":"显示所有文件夹","ra_Show lines between rows":"显示行之间的线","ra_Show/Hide object descriptions":"显示/隐藏对象描述","ra_Show/hide filter input":"显示/隐藏过滤器输入","ra_Some data are not stored. Discard?":"部分数据未存储。丢弃?",ra_States:cIe,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":"授权成功。令牌有效期至 %s,并将自动续订。","ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":"授权成功。令牌有效期至 %s,但由于实例未运行,令牌可能会过期。","ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:lIe,"ra_Suppress question for next %s minutes":"在接下来的%s分钟内取消提问","ra_System language":"系统语言","ra_Take browser position":"从浏览器获取位置","ra_Take position from system settings":"从系统设置中获取位置",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"专家可以在任何地方创建对象,但要从第二层开始(例如“ vis.0”或“ javascript.0”)。","ra_The page you are looking for was not found":"未找到您要查找的页面","ra_The schedule will be executed every minute. Are you sure?":"该计划将每分钟执行一次。您确定吗?","ra_The schedule will be executed every second. Are you sure?":"该计划将每秒执行一次。你确定吗?",ra_Thursday:uIe,ra_Timestamp:dIe,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:pIe,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:fIe,"ra_Upload file":"上传文件","ra_Use all available let's encrypt certificates":"使用所有可用的让我们加密证书","ra_Use iobroker.acme adapter for letsencrypt certificates":"使用 iobroker.acme 适配器获取 letsencrypt 证书","ra_Use system settings for position":"使用系统设置定位","ra_Used system settings":"使用的系统设置","ra_User files":"用户档案",ra_ValidTill:hIe,ra_Value:mIe,ra_Version:_Ie,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:gIe,ra_Width:yIe,"ra_YAML editor":"YAML 编辑器",ra_Yes:vIe,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目","ra_You can use * as wildcard":"您可以使用 * 作为通配符",ra___different__:bIe,ra_aclEveryone_read_object:wIe,ra_aclEveryone_read_state:SIe,ra_aclEveryone_write_object:xIe,ra_aclEveryone_write_state:kIe,ra_aclGroup_read_object:CIe,ra_aclGroup_read_state:$Ie,ra_aclGroup_write_object:EIe,ra_aclGroup_write_state:TIe,ra_aclOwner_read_object:OIe,ra_aclOwner_read_state:DIe,ra_aclOwner_write_object:RIe,ra_aclOwner_write_state:MIe,ra_buttons:AIe,ra_changedFrom:NIe,ra_close:PIe,ra_create_boolean_state:IIe,ra_create_channel:jIe,ra_create_device:zIe,ra_create_number_state:LIe,ra_create_state:FIe,ra_create_string_state:BIe,ra_daysShortText:WIe,ra_dow_Fr:UIe,ra_dow_Mo:qIe,ra_dow_Sa:HIe,ra_dow_Su:VIe,ra_dow_Th:GIe,ra_dow_Tu:XIe,ra_dow_We:JIe,ra_expertMode:YIe,ra_false:KIe,ra_fileType_all:ZIe,ra_fileType_audio:QIe,ra_fileType_code:eje,ra_fileType_images:tje,ra_fileType_txt:rje,ra_fileType_video:nje,"ra_fileType_video,":"视频",ra_filter_customs:oje,ra_filter_customs_without:aje,ra_filter_func:ije,ra_filter_id:sje,ra_filter_name:cje,ra_filter_role:lje,ra_filter_room:uje,ra_filter_type:dje,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:pje,ra_lastChange:fje,ra_locally:hje,ra_month_Apr:mje,ra_month_Aug:_je,ra_month_Dec:gje,ra_month_Feb:yje,ra_month_Jan:vje,ra_month_Jul:bje,ra_month_Jun:wje,ra_month_Mai:Sje,ra_month_Mar:xje,ra_month_Nov:kje,ra_month_Oct:Cje,ra_month_Sep:$je,ra_months_Apr:Eje,ra_months_Aug:Tje,ra_months_Dec:Oje,ra_months_Feb:Dje,ra_months_Jan:Rje,ra_months_Jul:Mje,ra_months_Jun:Aje,ra_months_Mai:Nje,ra_months_Mar:Pje,ra_months_Nov:Ije,ra_months_Oct:jje,ra_months_Sep:zje,"ra_no confirm for 5 mins":"5分钟内无需确认",ra_none:Lje,ra_object_changed_by:Fje,ra_object_changed_by_user:Bje,ra_otherConfig:Wje,ra_qualityCode:Uje,ra_repeat:qje,ra_select_folder_hint:Hje,ra_show_all:Vje,ra_state_changed_by:Gje,ra_state_changed_from:Xje,ra_timestamp:Jje,ra_tooltip_ack:Yje,ra_tooltip_comment:Kje,ra_tooltip_copyState:Zje,ra_tooltip_ctrlForLink:Qje,ra_tooltip_customConfig:eze,ra_tooltip_deleteObject:tze,ra_tooltip_editObject:rze,ra_tooltip_editState:nze,ra_tooltip_expire:oze,ra_tooltip_from:aze,ra_tooltip_lc:ize,ra_tooltip_quality:sze,ra_tooltip_ts:cze,ra_tooltip_user:lze,ra_tooltip_value:uze,ra_true:dze,"ra_use seconds":"用秒",ra_val:pze,"ra_via internet":"通过互联网",ra_warning_every_minute:fze,ra_warning_every_second:hze,sc_cron:mze,sc_date:_ze,sc_dates:gze,sc_dow:yze,sc_dows:vze,sc_every:bze,sc_everyN_dates:wze,sc_everyN_dow:Sze,sc_everyN_dows:xze,sc_everyN_hours:kze,sc_everyN_minutes:Cze,sc_everyN_months:$ze,sc_everyN_seconds:Eze,sc_every_dates:Tze,sc_every_dow:Oze,sc_every_dows:Dze,sc_every_hours:Rze,sc_every_minutes:Mze,sc_every_months:Aze,sc_every_seconds:Nze,sc_from:Pze,sc_hours:Ize,sc_interval:jze,sc_intervalBetween:zze,sc_invalid_cron:Lze,sc_minutes:Fze,sc_months:Bze,sc_once:Wze,sc_period:Uze,sc_seconds:qze,sc_simple:Hze,sc_specific:Vze,sc_specific_dates:Gze,sc_specific_dow:Xze,sc_specific_dows:Jze,sc_specific_hours:Yze,sc_specific_minutes:Kze,sc_specific_months:Zze,sc_specific_seconds:Qze,sc_time:eLe,sc_to:tLe,sc_wizard:rLe,sch_all:nLe,sch_astroDay:oLe,sch_astroNight:aLe,sch_astro_dawn:iLe,sch_astro_dusk:sLe,sch_astro_goldenHour:cLe,sch_astro_goldenHourEnd:lLe,sch_astro_nadir:uLe,sch_astro_nauticalDawn:dLe,sch_astro_nauticalDusk:pLe,sch_astro_night:fLe,sch_astro_nightEnd:hLe,sch_astro_solarNoon:mLe,sch_astro_sunrise:_Le,sch_astro_sunriseEnd:gLe,sch_astro_sunset:yLe,sch_astro_sunsetStart:vLe,sch_at:bLe,sch_desc_atTime:wLe,sch_desc_everyDay:SLe,sch_desc_everyHour:xLe,sch_desc_everyMinute:kLe,sch_desc_everyMonth:CLe,sch_desc_everyNDay:$Le,sch_desc_everyNHours:ELe,sch_desc_everyNMinutes:TLe,sch_desc_everyNMonths:OLe,sch_desc_everyNWeeks:DLe,sch_desc_everyNYears:RLe,sch_desc_everyWeek:MLe,sch_desc_everyYear:ALe,sch_desc_intervalFromTo:NLe,sch_desc_never:PLe,sch_desc_onDate:ILe,sch_desc_onDates:jLe,sch_desc_onEveryDate:zLe,sch_desc_onMonth:LLe,sch_desc_onMonths:FLe,sch_desc_onWeekday:BLe,sch_desc_onWeekdays:WLe,sch_desc_onWeekends:ULe,sch_desc_onWorkdays:qLe,sch_desc_onceInPast:HLe,sch_desc_once_on:VLe,sch_desc_validFrom:GLe,sch_desc_validFromTo:XLe,sch_desc_validTo:JLe,sch_every:YLe,sch_exactTime:KLe,sch_from:ZLe,sch_fromTo:QLe,sch_intervalTime:eFe,sch_invert:tFe,sch_no_one:rFe,sch_on:nFe,sch_period:oFe,sch_periodDaily:aFe,sch_periodDates:iFe,sch_periodDay:sFe,sch_periodEvery:cFe,sch_periodEveryDay:lFe,sch_periodEveryMonth:uFe,sch_periodEveryWeek:dFe,sch_periodEveryYear:pFe,sch_periodHours:fFe,sch_periodMinutes:hFe,sch_periodMonth:mFe,sch_periodMonthly:_Fe,sch_periodOnce:gFe,sch_periodSpecificMonths:yFe,sch_periodWeek:vFe,sch_periodWeekdays:bFe,sch_periodWeekend:wFe,sch_periodWeekly:SFe,sch_periodWorkdays:xFe,sch_periodYear:kFe,sch_periodYearly:CFe,sch_specificTime:$Fe,sch_time:EFe,sch_to:TFe,sch_valid:OFe,sch_validFrom:DFe,sch_validTo:RFe,sch_wholeDay:MFe,sch_yearEveryMonth:AFe},PFe={en:WZ,de:Zne,ru:cle,pt:yhe,nl:T0e,fr:zwe,it:X4e,es:oTe,pl:hDe,uk:kPe,"zh-cn":NFe},IFe=` +html { + height: 100%; +} + +body { + margin: 0; + padding: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + width: 100%; + height: 100%; + overflow: hidden; +} + +/* scrollbar */ +::-webkit-scrollbar-track { + background-color: #ccc; + border-radius: 5px; +} + +::-webkit-scrollbar { + width: 5px; + height: 5px; + background-color: #ccc; +} + +::-webkit-scrollbar-thumb { + background-color: #575757; + border-radius: 5px; +} + +#root { + height: 100%; +} + +.App { + height: 100%; +} + +@keyframes glow { + from { + background-color: initial; + } + to { + background-color: #58c458; + } +} +`;function jFe(){try{return window.self!==window.top}catch{return!0}}class Ua extends Su{socket;isIFrame=jFe();instance;adapterName;instanceId;newReact;encryptedFields;sentryDSN;alertDialogRendered;_secret;_systemConfig;savedNative;common=null;sentryStarted=!1;sentryInited=!1;resizeTimer=null;constructor(e,r){const n=e.Connection||r?.Connection||Gr;if(!window.document.getElementById("generic-app-iobroker-component")){const h=window.document.createElement("style");h.setAttribute("id","generic-app-iobroker-component"),h.innerHTML=IFe,window.document.head.appendChild(h)}if(!Ua.isWeb()&&window.io&&window.location.port==="3000")try{const h=new window.SocketClient;delete window.io,window.io=h}catch{}super(e),mG();const o=(window.location.search||"").replace(/^\?/,"").replace(/#.*$/,""),a={};o.trim().split("&").filter(h=>h.trim()).forEach(h=>{const d=h.split("="),[m,y]=d;a[m]=d.length===2?y:!0,a[m]==="true"?a[m]=!0:a[m]==="false"&&(a[m]=!1)}),this.instance=r?.instance??e.instance??(a.instance!==void 0?parseInt(a.instance,10)||0:parseInt(window.location.search.slice(1),10)||0);const s=window.location.pathname.split("/");this.adapterName=r?.adapterName||e.adapterName||window.adapterName||s[s.length-2]||"iot",this.instanceId=`system.adapter.${this.adapterName}.${this.instance}`,this.newReact=a.newReact===!0;const l=Su.getLocation();l.tab=l.tab||(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"";const u=this.createTheme(a.theme);this.state={...this.state,selectedTab:(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"",selectedTabNum:-1,native:{},errorText:"",changed:!1,connected:!1,loaded:!1,isConfigurationError:"",expertMode:!1,toast:"",theme:u,themeName:this.getThemeName(u),themeType:this.getThemeType(u),bottomButtons:(r&&r.bottomButtons)===!1?!1:e?.bottomButtons!==!1,width:Ua.getWidth(),confirmClose:!1,_alert:!1,_alertType:"info",_alertMessage:""};const f=PFe;r?.translations?Object.keys(r.translations).forEach(h=>{r.translations&&(f[h]=Object.assign(f[h],r.translations[h]||{}))}):e.translations&&Object.keys(e.translations).forEach(h=>{e.translations&&(f[h]=Object.assign(f[h],e.translations[h]||{}))}),j.setTranslations(f),this.savedNative={},this.encryptedFields=e.encryptedFields||r?.encryptedFields||[],this.sentryDSN=r?.sentryDSN||e.sentryDSN,window.socketUrl&&(window.socketUrl.startsWith(":")?window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`:!window.socketUrl.startsWith("http://")&&!window.socketUrl.startsWith("https://")&&(window.socketUrl=`${window.location.protocol}//${window.socketUrl}`)),this.alertDialogRendered=!1,window.iobOldAlert||(window.iobOldAlert=window.alert),window.alert=h=>{if(!this.alertDialogRendered){window.iobOldAlert(h);return}h?.toString().toLowerCase().includes("error")?(console.error(h),this.showAlert(h.toString(),"error")):(console.log(h),this.showAlert(h.toString(),"info"))},this.socket=new n({...e?.socket||r?.socket,name:this.adapterName,doNotLoadAllObjects:r?.doNotLoadAllObjects,onProgress:h=>{h===To.CONNECTING?this.setState({connected:!1}):h===To.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:()=>{j.setLanguage(this.socket.systemLang),this.socket.subscribeObject("system.config",this.onSystemConfigChanged).then(()=>this.getSystemConfig()).then(h=>(this._secret=typeof h<"u"&&h.native&&h.native.secret||"Zgfr56gFe87jJOM",this._systemConfig=h?.common||{},this.socket.getObject(this.instanceId))).then(async h=>{let d;const m=h,v=(await this.socket.getState(`${this.instanceId}.plugins.sentry.enabled`))?.val!==!1&&this._systemConfig?.diag!=="none"&&m?.common&&m.common.name&&m.common.version&&!m.common.disableDataReporting&&window.location.host!=="localhost:3000";!this.sentryStarted&&this.sentryDSN&&v&&(this.sentryStarted=!0,PV({dsn:this.sentryDSN,release:`iobroker.${m.common.name}@${m.common.version}`,integrations:[R8()]}),console.log("Sentry initialized")),!this.sentryInited&&v&&(this.sentryInited=!0,d=this.socket.getObject("system.meta.uuid").then(b=>{b&&b.native&&b.native.uuid&&Fo().setUser({id:b.native.uuid})})),d=d instanceof Promise?d:Promise.resolve(),d.then(()=>{m?(this.common=m?.common,this.onPrepareLoad(m.native,m.encryptedNative),this.savedNative=JSON.parse(JSON.stringify(m.native)),this.setState({native:m.native,loaded:!0,expertMode:this.getExpertMode()},()=>this.onConnectionReady&&this.onConnectionReady())):(console.warn("Cannot load instance settings"),this.setState({native:{},loaded:!0,expertMode:this.getExpertMode()},()=>this.onConnectionReady&&this.onConnectionReady()))})}).catch(h=>window.alert(`Cannot settings: ${h}`))},onError:h=>{console.error(h),this.showError(h)}})}static isWeb(){return window.socketUrl!==void 0}showAlert(e,r){r!=="error"&&r!=="warning"&&r!=="info"&&r!=="success"&&(r="info"),this.setState({_alert:!0,_alertType:r,_alertMessage:e})}renderAlertSnackbar(){return this.alertDialogRendered=!0,_.createElement(Yv,{style:this.state._alertType==="error"?{backgroundColor:"#f44336"}:this.state._alertType==="success"?{backgroundColor:"#4caf50"}:void 0,open:this.state._alert,autoHideDuration:6e3,onClose:(e,r)=>r!=="clickaway"&&this.setState({_alert:!1}),message:this.state._alertMessage})}onSystemConfigChanged=(e,r)=>{r&&e==="system.config"&&(this.socket.systemLang!==r?.common.language&&(this.socket.systemLang=r?.common.language||"en",j.setLanguage(this.socket.systemLang)),this._systemConfig?.expertMode!==!!r?.common?.expertMode?(this._systemConfig=r?.common||{},this.setState({expertMode:this.getExpertMode()})):this._systemConfig=r?.common||{})};componentDidMount(){window.addEventListener("resize",this.onResize,!0),window.addEventListener("message",this.onReceiveMessage,!1),super.componentDidMount()}componentWillUnmount(){window.removeEventListener("resize",this.onResize,!0),window.removeEventListener("message",this.onReceiveMessage,!1),this.resizeTimer&&(clearTimeout(this.resizeTimer),this.resizeTimer=null),window.iobOldAlert&&(window.alert=window.iobOldAlert,delete window.iobOldAlert),super.componentWillUnmount()}onReceiveMessage=e=>{if(e?.data)if(typeof e.data=="string"&&e.data==="updateTheme"||e.data&&typeof e.data=="object"&&e.data.type==="updateTheme"){const r=je.getThemeName();je.setThemeName(r);const n=this.createTheme(r);this.setState({theme:n,themeName:this.getThemeName(n),themeType:this.getThemeType(n)},()=>{this.props.onThemeChange&&this.props.onThemeChange(r),this.onThemeChanged&&this.onThemeChanged(r)})}else e.data==="updateExpertMode"?this.onToggleExpertMode&&this.onToggleExpertMode(this.getExpertMode()):e.data!=="chartReady"&&console.debug(`Received unknown message: "${JSON.stringify(e.data)}". May be it will be processed later`)};onResize=()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.resizeTimer=null,this.setState({width:Ua.getWidth()})},200)};static getWidth(){const e={xs:0,sm:600,md:960,lg:1280,xl:1920},r=window.innerWidth;return Object.keys(e).reverse().find(a=>r>=e[a])||"xs"}createTheme(e){return wB(je.getThemeName(e))}getThemeName(e){return e.name}getThemeType(e){return e.palette.mode}onThemeChanged(e){}onToggleExpertMode(e){}toggleTheme(e){const r=this.state.themeName;if(e=e||(r==="dark"||r==="blue"||r==="colored"?"light":"dark"),e!==r){je.setThemeName(e);const n=this.createTheme(e);this.setState({theme:n,themeName:this.getThemeName(n),themeType:this.getThemeType(n)},()=>{this.props.onThemeChange&&this.props.onThemeChange(e||"light"),this.onThemeChanged&&this.onThemeChanged(e||"light")})}}getSystemConfig(){return this.socket.getSystemConfig()}getExpertMode(){return window.sessionStorage.getItem("App.expertMode")==="true"||!!this._systemConfig?.expertMode}onConnectionReady(){}encrypt(e){let r="";if(this._secret)for(let n=0;n{e[r]&&(e[r]=this.encrypt(e[r]))}),!0}onPrepareLoad(e,r){this.encryptedFields?.forEach(n=>{e[n]&&(e[n]=this.decrypt(e[n]))}),r?.forEach(n=>{this.encryptedFields=this.encryptedFields||[],!this.encryptedFields.includes(n)&&this.encryptedFields.push(n),e[n]&&(e[n]=this.decrypt(e[n]))})}async getExtendableInstances(){try{const e=await this.socket.getObjectViewSystem("instance","system.adapter.","system.adapter.香");return Object.values(e).filter(r=>!!r?.common?.webExtendable)}catch{return[]}}async getIpAddresses(e){const r=await this.socket.getHostByIp(e||this.common?.host||""),n=r.find(a=>a.address==="0.0.0.0");n&&(n.name=`[IPv4] 0.0.0.0 - ${j.t("ra_Listen on all IPs")}`);const o=r.find(a=>a.address==="::");return o&&(o.name=`[IPv6] :: - ${j.t("ra_Listen on all IPs")}`),r}onSave(e){let r;if(this.state.isConfigurationError){this.setState({errorText:this.state.isConfigurationError});return}this.socket.getObject(this.instanceId).then(n=>{r=n||{};for(const o in this.state.native)Object.prototype.hasOwnProperty.call(this.state.native,o)&&(this.state.native[o]===null?r.native[o]=null:this.state.native[o]!==void 0?r.native[o]=JSON.parse(JSON.stringify(this.state.native[o])):delete r.native[o]);if(this.state.common)for(const o in this.state.common)this.state.common[o]===null?r.common[o]=null:this.state.common[o]!==void 0?r.common[o]=JSON.parse(JSON.stringify(this.state.common[o])):delete r.common[o];return this.onPrepareSave(r.native)!==!1?this.socket.setObject(this.instanceId,r):Promise.reject(new Error("Invalid configuration"))}).then(()=>{this.savedNative=r.native,globalThis.changed=!1;try{window.parent.postMessage("nochange","*")}catch{}this.setState({changed:!1},()=>{e&&Ua.onClose()})}).catch(n=>console.error(`Cannot save configuration: ${n}`))}renderToast(){return this.state.toast?_.createElement(Yv,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:_.createElement("span",{id:"message-id"},this.state.toast),action:[_.createElement(ur,{key:"close","aria-label":"Close",color:"inherit",onClick:()=>this.setState({toast:""}),size:"large"},_.createElement(ti,null))]}):null}static onClose(){if(typeof window.parent<"u"&&window.parent)try{window.parent.$iframeDialog&&typeof window.parent.$iframeDialog.close=="function"?window.parent.$iframeDialog.close():window.parent.postMessage("close","*")}catch{window.parent.postMessage("close","*")}}renderError(){return this.state.errorText?_.createElement(H8,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}getIsChanged(e){e=e||this.state.native;const r=JSON.stringify(e)!==JSON.stringify(this.savedNative);return globalThis.changed=r,r}onLoadConfig(e){JSON.stringify(e)!==JSON.stringify(this.state.native)&&this.setState({native:e,changed:this.getIsChanged(e)})}setConfigurationError(e){this.state.isConfigurationError!==e&&this.setState({isConfigurationError:e})}renderSaveCloseButtons(){return!this.state.confirmClose&&!this.state.bottomButtons?null:_.createElement(_.Fragment,null,this.state.bottomButtons?_.createElement(MG,{theme:this.state.theme,newReact:this.newReact,noTextOnButtons:this.state.width==="xs"||this.state.width==="sm"||this.state.width==="md",changed:this.state.changed,onSave:e=>this.onSave(e),onClose:()=>{this.state.changed?this.setState({confirmClose:!0}):Ua.onClose()},error:!!this.state.isConfigurationError}):null,this.state.confirmClose?_.createElement(q8,{title:j.t("ra_Please confirm"),text:j.t("ra_Some data are not stored. Discard?"),ok:j.t("ra_Discard"),cancel:j.t("ra_Cancel"),onClose:e=>this.setState({confirmClose:!1},()=>e&&Ua.onClose())}):null)}_updateNativeValue(e,r,n){typeof r!="object"&&(r=r.split("."));const o=r.shift()||"";if(!r.length)return n&&typeof n=="object"?JSON.stringify(e[o])!==JSON.stringify(n)?(e[o]=n,!0):!1:e[o]!==n?(e[o]=n,!0):!1;if(e[o]=e[o]||{},typeof e[o]!="object")throw new Error(`attribute ${o} is no object, but ${typeof e[o]}`);return this._updateNativeValue(e[o],r,n)}updateNativeValue(e,r,n){const o=JSON.parse(JSON.stringify(this.state.native));if(this._updateNativeValue(o,e,r)){const a=this.getIsChanged(o);if(a!==this.state.changed)try{window.parent.postMessage(a?"change":"nochange","*")}catch{}this.setState({native:o,changed:a},n)}}showError(e){this.setState({errorText:e})}showToast(e){this.setState({toast:e})}renderHelperDialogs(){return _.createElement(_.Fragment,null,this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar())}render(){return this.state.loaded?_.createElement("div",{className:"App"},this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar()):_.createElement(U8,{themeType:this.state.themeType})}}var an={},Gs={},tg,p4;function V8(){if(p4)return tg;p4=1;var t=typeof bp=="object"&&bp&&bp.Object===Object&&bp;return tg=t,tg}var rg,f4;function Bo(){if(f4)return rg;f4=1;var t=V8(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return rg=r,rg}var ng,h4;function ld(){if(h4)return ng;h4=1;var t=Bo(),e=t.Symbol;return ng=e,ng}var og,m4;function zFe(){if(m4)return og;m4=1;var t=ld(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(s){var l=r.call(s,o),u=s[o];try{s[o]=void 0;var f=!0}catch{}var h=n.call(s);return f&&(l?s[o]=u:delete s[o]),h}return og=a,og}var ag,_4;function LFe(){if(_4)return ag;_4=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return ag=r,ag}var ig,g4;function os(){if(g4)return ig;g4=1;var t=ld(),e=zFe(),r=LFe(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function s(l){return l==null?l===void 0?o:n:a&&a in Object(l)?e(l):r(l)}return ig=s,ig}var sg,y4;function fo(){if(y4)return sg;y4=1;var t=Array.isArray;return sg=t,sg}var cg,v4;function ma(){if(v4)return cg;v4=1;function t(e){return e!=null&&typeof e=="object"}return cg=t,cg}var lg,b4;function FFe(){if(b4)return lg;b4=1;var t=os(),e=fo(),r=ma(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return lg=o,lg}var ug,w4;function BFe(){if(w4)return ug;w4=1;function t(e){return function(r,n,o){for(var a=-1,s=Object(r),l=o(r),u=l.length;u--;){var f=l[e?u:++a];if(n(s[f],f,s)===!1)break}return r}}return ug=t,ug}var dg,S4;function WFe(){if(S4)return dg;S4=1;var t=BFe(),e=t();return dg=e,dg}var pg,x4;function UFe(){if(x4)return pg;x4=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return gg=e,gg}var yg,D4;function VFe(){if(D4)return yg;D4=1;var t=os(),e=Pb(),r=ma(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",m="[object RegExp]",y="[object Set]",v="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",D="[object Float32Array]",O="[object Float64Array]",R="[object Int8Array]",M="[object Int16Array]",E="[object Int32Array]",A="[object Uint8Array]",I="[object Uint8ClampedArray]",P="[object Uint16Array]",$="[object Uint32Array]",z={};z[D]=z[O]=z[R]=z[M]=z[E]=z[A]=z[I]=z[P]=z[$]=!0,z[n]=z[o]=z[x]=z[a]=z[C]=z[s]=z[l]=z[u]=z[f]=z[h]=z[d]=z[m]=z[y]=z[v]=z[b]=!1;function B(q){return r(q)&&e(q.length)&&!!z[t(q)]}return yg=B,yg}var vg,R4;function Ib(){if(R4)return vg;R4=1;function t(e){return function(r){return e(r)}}return vg=t,vg}var cu={exports:{}};cu.exports;var M4;function jb(){return M4||(M4=1,(function(t,e){var r=V8(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,s=a&&r.process,l=(function(){try{var u=o&&o.require&&o.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}})();t.exports=l})(cu,cu.exports)),cu.exports}var bg,A4;function J8(){if(A4)return bg;A4=1;var t=VFe(),e=Ib(),r=jb(),n=r&&r.isTypedArray,o=n?e(n):t;return bg=o,bg}var wg,N4;function Y8(){if(N4)return wg;N4=1;var t=UFe(),e=G8(),r=fo(),n=Nb(),o=X8(),a=J8(),s=Object.prototype,l=s.hasOwnProperty;function u(f,h){var d=r(f),m=!d&&e(f),y=!d&&!m&&n(f),v=!d&&!m&&!y&&a(f),b=d||m||y||v,x=b?t(f.length,String):[],C=x.length;for(var D in f)(h||l.call(f,D))&&!(b&&(D=="length"||y&&(D=="offset"||D=="parent")||v&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||o(D,C)))&&x.push(D);return x}return wg=u,wg}var Sg,P4;function zb(){if(P4)return Sg;P4=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return Sg=e,Sg}var xg,I4;function K8(){if(I4)return xg;I4=1;function t(e,r){return function(n){return e(r(n))}}return xg=t,xg}var kg,j4;function GFe(){if(j4)return kg;j4=1;var t=K8(),e=t(Object.keys,Object);return kg=e,kg}var Cg,z4;function XFe(){if(z4)return Cg;z4=1;var t=zb(),e=GFe(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var s=[];for(var l in Object(a))n.call(a,l)&&l!="constructor"&&s.push(l);return s}return Cg=o,Cg}var $g,L4;function Yc(){if(L4)return $g;L4=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return $g=t,$g}var Eg,F4;function Z8(){if(F4)return Eg;F4=1;var t=os(),e=Yc(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function s(l){if(!e(l))return!1;var u=t(l);return u==n||u==o||u==r||u==a}return Eg=s,Eg}var Tg,B4;function Sh(){if(B4)return Tg;B4=1;var t=Z8(),e=Pb();function r(n){return n!=null&&e(n.length)&&!t(n)}return Tg=r,Tg}var Og,W4;function ud(){if(W4)return Og;W4=1;var t=Y8(),e=XFe(),r=Sh();function n(o){return r(o)?t(o):e(o)}return Og=n,Og}var Dg,U4;function Q8(){if(U4)return Dg;U4=1;var t=WFe(),e=ud();function r(n,o){return n&&t(n,o,e)}return Dg=r,Dg}var Rg,q4;function e9(){if(q4)return Rg;q4=1;function t(e){return e}return Rg=t,Rg}var Mg,H4;function JFe(){if(H4)return Mg;H4=1;var t=e9();function e(r){return typeof r=="function"?r:t}return Mg=e,Mg}var Ag,V4;function Lb(){if(V4)return Ag;V4=1;var t=Q8(),e=JFe();function r(n,o){return n&&t(n,e(o))}return Ag=r,Ag}var Ng,G4;function Fb(){if(G4)return Ng;G4=1;var t=K8(),e=t(Object.getPrototypeOf,Object);return Ng=e,Ng}var Pg,X4;function YFe(){if(X4)return Pg;X4=1;var t=os(),e=Fb(),r=ma(),n="[object Object]",o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,u=s.call(Object);function f(h){if(!r(h)||t(h)!=n)return!1;var d=e(h);if(d===null)return!0;var m=l.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&s.call(m)==u}return Pg=f,Pg}var Ig,J4;function t9(){if(J4)return Ig;J4=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return Wg=e,Wg}var Ug,rk;function tBe(){if(rk)return Ug;rk=1;var t=xh();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return Ug=e,Ug}var qg,nk;function kh(){if(nk)return qg;nk=1;var t=KFe(),e=ZFe(),r=QFe(),n=eBe(),o=tBe();function a(s){var l=-1,u=s==null?0:s.length;for(this.clear();++ly))return!1;var b=d.get(s),x=d.get(l);if(b&&x)return b==l&&x==s;var C=-1,D=!0,O=u&o?new t:void 0;for(d.set(s,l),d.set(l,s);++C0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,l.default)(d,function(y){Array.isArray(y)?h(y).map(function(v){return m.push(v)}):(0,a.default)(y)?(0,n.default)(y,function(v,b){v===!0&&m.push(b),m.push(b+"-"+v)}):(0,e.default)(y)&&m.push(y)}),m};return Gs.default=f,Gs}var Xs={},g0,RC;function iWe(){if(RC)return g0;RC=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=u.default&&(0,n.default)(u.default)||{};return f.map(function(d){var m=u[d];return m&&(0,e.default)(m,function(y,v){h[v]||(h[v]={}),h[v]=o({},h[v],m[v])}),d}),h};return Xs.default=s,Xs}var Js={},l$;function MWe(){if(l$)return Js;l$=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.autoprefix=void 0;var t=Lb(),e=n(t),r=Object.assign||function(s){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:"span";return(function(d){s(m,d);function m(){var y,v,b,x;o(this,m);for(var C=arguments.length,D=Array(C),O=0;O1&&arguments[1]!==void 0?arguments[1]:"span";return(function(d){s(m,d);function m(){var y,v,b,x;o(this,m);for(var C=arguments.length,D=Array(C),O=0;O1&&arguments[1]!==void 0?arguments[1]:!0;o[l]=u};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return Lp.default=t,Lp}var f$;function IWe(){if(f$)return an;f$=1,Object.defineProperty(an,"__esModule",{value:!0}),an.ReactCSS=an.loop=an.handleActive=an.handleHover=an.hover=void 0;var t=aWe(),e=m(t),r=RWe(),n=m(r),o=MWe(),a=m(o),s=AWe(),l=m(s),u=NWe(),f=m(u),h=PWe(),d=m(h);function m(v){return v&&v.__esModule?v:{default:v}}an.hover=l.default,an.handleHover=l.default,an.handleActive=f.default,an.loop=d.default;var y=an.ReactCSS=function(b){for(var x=arguments.length,C=Array(x>1?x-1:0),D=1;Dl?m=1:m=Math.round(d*100/l)/100,r.a!==m)return{h:r.h,s:r.s,l:r.l,a:m,source:"rgb"}}else{var y=void 0;if(h<0?y=0:h>s?y=1:y=Math.round(h*100/s)/100,o!==y)return{h:r.h,s:r.s,l:r.l,a:y,source:"rgb"}}return null},G0={},zWe=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var s=a.getContext("2d");return s?(s.fillStyle=e,s.fillRect(0,0,a.width,a.height),s.fillStyle=r,s.fillRect(0,0,n,n),s.translate(n,n),s.fillRect(0,0,n,n),a.toDataURL()):null},LWe=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(G0[a])return G0[a];var s=zWe(e,r,n,o);return G0[a]=s,s},h$=Object.assign||function(t){for(var e=1;e-1},QWe=function(e){return Number(String(e).replace(/%/g,""))},eUe=1,yt=(function(t){XWe(e,t);function e(r){VWe(this,e);var n=GWe(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var a=QWe(o.target.value);if(!isNaN(a)&&ZWe(o.keyCode)){var s=n.getArrowOffset(),l=o.keyCode===g9?a+s:a-s;n.setUpdatedValue(l,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var a=Math.round(n.props.value+o.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+eUe++,n}return qWe(e,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return HWe({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||JWe}},{key:"setUpdatedValue",value:function(n,o){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=nt({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return _.createElement("div",{style:o.wrap},_.createElement("input",{id:this.inputId,style:o.input,ref:function(s){return n.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?_.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e})(T.PureComponent||T.Component),tUe=function(e,r,n,o){var a=o.clientWidth,s=o.clientHeight,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(o.getBoundingClientRect().left+window.pageXOffset),h=u-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var d=void 0;if(h<0)d=359;else if(h>s)d=0;else{var m=-(h*100/s)+100;d=360*m/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var y=void 0;if(f<0)y=0;else if(f>a)y=359;else{var v=f*100/a;y=360*v/100}if(n.h!==y)return{h:y,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},rUe=(function(){function t(e,r){for(var n=0;n-1}function dUe(t,e){var r=this.__data__,n=Dh(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function _a(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=yqe}function Qc(t){return t!=null&&t2(t.length)&&!Zb(t)}function vqe(t){return ni(t)&&Qc(t)}function bqe(){return!1}var C9=typeof kn=="object"&&kn&&!kn.nodeType&&kn,x$=C9&&typeof Cn=="object"&&Cn&&!Cn.nodeType&&Cn,wqe=x$&&x$.exports===C9,k$=wqe?ho.Buffer:void 0,Sqe=k$?k$.isBuffer:void 0,Mf=Sqe||bqe,xqe="[object Object]",kqe=Function.prototype,Cqe=Object.prototype,$9=kqe.toString,$qe=Cqe.hasOwnProperty,Eqe=$9.call(Object);function Tqe(t){if(!ni(t)||is(t)!=xqe)return!1;var e=x9(t);if(e===null)return!0;var r=$qe.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&$9.call(r)==Eqe}var Oqe="[object Arguments]",Dqe="[object Array]",Rqe="[object Boolean]",Mqe="[object Date]",Aqe="[object Error]",Nqe="[object Function]",Pqe="[object Map]",Iqe="[object Number]",jqe="[object Object]",zqe="[object RegExp]",Lqe="[object Set]",Fqe="[object String]",Bqe="[object WeakMap]",Wqe="[object ArrayBuffer]",Uqe="[object DataView]",qqe="[object Float32Array]",Hqe="[object Float64Array]",Vqe="[object Int8Array]",Gqe="[object Int16Array]",Xqe="[object Int32Array]",Jqe="[object Uint8Array]",Yqe="[object Uint8ClampedArray]",Kqe="[object Uint16Array]",Zqe="[object Uint32Array]",Wt={};Wt[qqe]=Wt[Hqe]=Wt[Vqe]=Wt[Gqe]=Wt[Xqe]=Wt[Jqe]=Wt[Yqe]=Wt[Kqe]=Wt[Zqe]=!0;Wt[Oqe]=Wt[Dqe]=Wt[Wqe]=Wt[Rqe]=Wt[Uqe]=Wt[Mqe]=Wt[Aqe]=Wt[Nqe]=Wt[Pqe]=Wt[Iqe]=Wt[jqe]=Wt[zqe]=Wt[Lqe]=Wt[Fqe]=Wt[Bqe]=!1;function Qqe(t){return ni(t)&&t2(t.length)&&!!Wt[is(t)]}function eHe(t){return function(e){return t(e)}}var E9=typeof kn=="object"&&kn&&!kn.nodeType&&kn,xu=E9&&typeof Cn=="object"&&Cn&&!Cn.nodeType&&Cn,tHe=xu&&xu.exports===E9,J0=tHe&&y9.process,C$=(function(){try{var t=xu&&xu.require&&xu.require("util").types;return t||J0&&J0.binding&&J0.binding("util")}catch{}})(),$$=C$&&C$.isTypedArray,r2=$$?eHe($$):Qqe;function _1(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var rHe=Object.prototype,nHe=rHe.hasOwnProperty;function oHe(t,e,r){var n=t[e];(!(nHe.call(t,e)&&dd(n,r))||r===void 0&&!(e in t))&&Qb(t,e,r)}function aHe(t,e,r,n){var o=!r;r||(r={});for(var a=-1,s=e.length;++a-1&&t%1==0&&t0){if(++e>=wHe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var CHe=kHe(bHe);function $He(t,e){return CHe(yHe(t,e,Mh),t+"")}function EHe(t,e,r){if(!Hn(r))return!1;var n=typeof e;return(n=="number"?Qc(r)&&n2(e,r.length):n=="string"&&e in r)?dd(r[e],t):!1}function THe(t){return $He(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,s&&EHe(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++n=e||A<0||d&&I>=a}function C(){var E=Y0();if(x(E))return D(E);l=setTimeout(C,b(E))}function D(E){return l=void 0,m&&n?y(E):(n=o=void 0,s)}function O(){l!==void 0&&clearTimeout(l),f=0,n=u=o=l=void 0}function R(){return l===void 0?s:D(Y0())}function M(){var E=Y0(),A=x(E);if(n=arguments,o=this,u=E,A){if(l===void 0)return v(u);if(d)return clearTimeout(l),l=setTimeout(C,e),y(u)}return l===void 0&&(l=setTimeout(C,e)),s}return M.cancel=O,M.flush=R,M}var BHe="Expected a function";function WHe(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(BHe);return Hn(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),R9(t,e,{leading:n,maxWait:e,trailing:o})}var UHe=function(e,r,n){var o=n.getBoundingClientRect(),a=o.width,s=o.height,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(n.getBoundingClientRect().left+window.pageXOffset),h=u-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),h<0?h=0:h>s&&(h=s);var d=f/a,m=1-h/s;return{h:r.h,s:d,v:m,a:r.a,source:"hsv"}},qHe=(function(){function t(e,r){for(var n=0;n=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return ze(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(fVe,arguments)},brighten:function(){return this._applyModification(hVe,arguments)},darken:function(){return this._applyModification(mVe,arguments)},desaturate:function(){return this._applyModification(uVe,arguments)},saturate:function(){return this._applyModification(dVe,arguments)},greyscale:function(){return this._applyModification(pVe,arguments)},spin:function(){return this._applyModification(_Ve,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(vVe,arguments)},complement:function(){return this._applyCombination(gVe,arguments)},monochromatic:function(){return this._applyCombination(bVe,arguments)},splitcomplement:function(){return this._applyCombination(yVe,arguments)},triad:function(){return this._applyCombination(N$,[3])},tetrad:function(){return this._applyCombination(N$,[4])}};ze.fromRatio=function(t,e){if(Af(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=uu(t[n]));t=r}return ze(t,e)};function aVe(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,s=!1,l=!1;return typeof t=="string"&&(t=CVe(t)),Af(t)=="object"&&(ea(t.r)&&ea(t.g)&&ea(t.b)?(e=iVe(t.r,t.g,t.b),s=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ea(t.h)&&ea(t.s)&&ea(t.v)?(n=uu(t.s),o=uu(t.v),e=cVe(t.h,n,o),s=!0,l="hsv"):ea(t.h)&&ea(t.s)&&ea(t.l)&&(n=uu(t.s),a=uu(t.l),e=sVe(t.h,n,a),s=!0,l="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=A9(r),{ok:s,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function iVe(t,e,r){return{r:Jt(t,255)*255,g:Jt(e,255)*255,b:Jt(r,255)*255}}function D$(t,e,r){t=Jt(t,255),e=Jt(e,255),r=Jt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,s,l=(n+o)/2;if(n==o)a=s=0;else{var u=n-o;switch(s=l>.5?u/(2-n-o):u/(n+o),n){case t:a=(e-r)/u+(e1&&(d-=1),d<1/6?f+(h-f)*6*d:d<1/2?h:d<2/3?f+(h-f)*(2/3-d)*6:f}if(e===0)n=o=a=r;else{var l=r<.5?r*(1+e):r+e-r*e,u=2*r-l;n=s(u,l,t+1/3),o=s(u,l,t),a=s(u,l,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function R$(t,e,r){t=Jt(t,255),e=Jt(e,255),r=Jt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,s,l=n,u=n-o;if(s=n===0?0:u/n,n==o)a=0;else{switch(n){case t:a=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(ze(n));return a}function bVe(t,e){e=e||6;for(var r=ze(t).toHsv(),n=r.h,o=r.s,a=r.v,s=[],l=1/e;e--;)s.push(ze({h:n,s:o,v:a})),a=(a+l)%1;return s}ze.mix=function(t,e,r){r=r===0?0:r||50;var n=ze(t).toRgb(),o=ze(e).toRgb(),a=r/100,s={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return ze(s)};ze.readability=function(t,e){var r=ze(t),n=ze(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};ze.isReadable=function(t,e,r){var n=ze.readability(t,e),o,a;switch(a=!1,o=$Ve(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};ze.mostReadable=function(t,e,r){var n=null,o=0,a,s,l,u;r=r||{},s=r.includeFallbackColors,l=r.level,u=r.size;for(var f=0;fo&&(o=a,n=ze(e[f]));return ze.isReadable(t,n,{level:l,size:u})||!s?n:(r.includeFallbackColors=!1,ze.mostReadable(t,["#fff","#000"],r))};var g1=ze.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},wVe=ze.hexNames=SVe(g1);function SVe(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function A9(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Jt(t,e){xVe(t)&&(t="100%");var r=kVe(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Ph(t){return Math.min(1,Math.max(0,t))}function bn(t){return parseInt(t,16)}function xVe(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function kVe(t){return typeof t=="string"&&t.indexOf("%")!=-1}function oo(t){return t.length==1?"0"+t:""+t}function uu(t){return t<=1&&(t=t*100+"%"),t}function N9(t){return Math.round(parseFloat(t)*255).toString(16)}function P$(t){return bn(t)/255}var to=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function ea(t){return!!to.CSS_UNIT.exec(t)}function CVe(t){t=t.replace(nVe,"").replace(oVe,"").toLowerCase();var e=!1;if(g1[t])t=g1[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=to.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=to.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=to.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=to.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=to.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=to.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=to.hex8.exec(t))?{r:bn(r[1]),g:bn(r[2]),b:bn(r[3]),a:P$(r[4]),format:e?"name":"hex8"}:(r=to.hex6.exec(t))?{r:bn(r[1]),g:bn(r[2]),b:bn(r[3]),format:e?"name":"hex"}:(r=to.hex4.exec(t))?{r:bn(r[1]+""+r[1]),g:bn(r[2]+""+r[2]),b:bn(r[3]+""+r[3]),a:P$(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=to.hex3.exec(t))?{r:bn(r[1]+""+r[1]),g:bn(r[2]+""+r[2]),b:bn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function $Ve(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var I$=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return rVe(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var s=/^\d+%$/;s.test(e[a])&&(o+=1)}}),n===o?e:!1},du=function(e,r){var n=e.hex?ze(e.hex):ze(e),o=n.toHsl(),a=n.toHsv(),s=n.toRgb(),l=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var u=l==="000000"&&s.a===0;return{hsl:o,hex:u?"transparent":"#"+l,rgb:s,hsv:a,oldHue:e.h||r||o.h,source:e.source}},ui=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&ze(e).isValid()},a2=function(e){if(!e)return"#fff";var r=du(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},K0=function(e,r){var n=e.replace("°","");return ze(r+" ("+n+")")._ok},Hl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return(function(n){NVe(o,n);function o(){var a,s,l,u;AVe(this,o);for(var f=arguments.length,h=Array(f),d=0;dl))return!1;var f=a.get(t),h=a.get(e);if(f&&h)return f==e&&h==t;var d=-1,m=!0,y=r&VVe?new Nf:void 0;for(a.set(t,e),a.set(e,t);++d=0||Object.prototype.hasOwnProperty.call(s,f)&&(u[f]=s[f]);return u}var a=24;return Bp.default=function(s){var l=s.fill,u=l===void 0?"currentColor":l,f=s.width,h=f===void 0?a:f,d=s.height,m=d===void 0?a:d,y=s.style,v=y===void 0?{}:y,b=o(s,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:m},v)},b),r.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},Bp}var oXe=nXe();const aXe=oi(oXe);var iXe=(function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(Z$(o.s)?n.props.hsl.s:o.s),l:Number(Z$(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return iXe(e,[{key:"render",value:function(){var n=this,o=nt({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),a=void 0;return this.state.view==="hex"?a=_.createElement("div",{style:o.fields,className:"flexbox-fix"},_.createElement("div",{style:o.field},_.createElement(yt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=_.createElement("div",{style:o.fields,className:"flexbox-fix"},_.createElement("div",{style:o.field},_.createElement(yt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),_.createElement("div",{style:o.field},_.createElement(yt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),_.createElement("div",{style:o.field},_.createElement(yt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),_.createElement("div",{style:o.alpha},_.createElement(yt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=_.createElement("div",{style:o.fields,className:"flexbox-fix"},_.createElement("div",{style:o.field},_.createElement(yt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),_.createElement("div",{style:o.field},_.createElement(yt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),_.createElement("div",{style:o.field},_.createElement(yt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),_.createElement("div",{style:o.alpha},_.createElement(yt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),_.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,_.createElement("div",{style:o.toggle},_.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(l){return n.icon=l}},_.createElement(aXe,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e})(_.Component);q9.defaultProps={view:"hex"};var e6=function(){var e=nt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return _.createElement("div",{style:e.picker})},uXe=function(){var e=nt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return _.createElement("div",{style:e.picker})},d2=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,s=e.hsl,l=e.hsv,u=e.hex,f=e.renderers,h=e.styles,d=h===void 0?{}:h,m=e.className,y=m===void 0?"":m,v=e.defaultView,b=nt(hn({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},d),{disableAlpha:o});return _.createElement("div",{style:b.picker,className:"chrome-picker "+y},_.createElement("div",{style:b.saturation},_.createElement(Nh,{style:b.Saturation,hsl:s,hsv:l,pointer:uXe,onChange:n})),_.createElement("div",{style:b.body},_.createElement("div",{style:b.controls,className:"flexbox-fix"},_.createElement("div",{style:b.color},_.createElement("div",{style:b.swatch},_.createElement("div",{style:b.active}),_.createElement(Kc,{renderers:f}))),_.createElement("div",{style:b.toggles},_.createElement("div",{style:b.hue},_.createElement(Zc,{style:b.Hue,hsl:s,pointer:e6,onChange:n})),_.createElement("div",{style:b.alpha},_.createElement(Kb,{style:b.Alpha,rgb:a,hsl:s,pointer:e6,renderers:f,onChange:n})))),_.createElement(q9,{rgb:a,hsl:s,hex:u,view:v,onChange:n,disableAlpha:o})))};d2.propTypes={width:ae.oneOfType([ae.string,ae.number]),disableAlpha:ae.bool,styles:ae.object,defaultView:ae.oneOf(["hex","rgb","hsl"])};d2.defaultProps={width:225,disableAlpha:!1,styles:{}};mn(d2);var dXe=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,s=e.active,l=nt({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:a2(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return _.createElement(ls,{style:l.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},_.createElement("div",{style:l.dot}))},pXe=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=nt({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(u,f){u.r||u.g||u.b?o({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},f):o({hex:u.hex,source:"hex"},f)};return _.createElement("div",{style:a.fields,className:"flexbox-fix"},_.createElement("div",{style:a.active}),_.createElement(yt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:s}),_.createElement(yt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),_.createElement(yt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),_.createElement(yt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}))},p2=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,s=e.rgb,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=nt(hn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),m=function(v,b){v.hex?ui(v.hex)&&r({hex:v.hex,source:"hex"},b):r(v,b)};return _.createElement(pd,{style:d.Compact,styles:u},_.createElement("div",{style:d.compact,className:"compact-picker "+h},_.createElement("div",null,us(o,function(y){return _.createElement(dXe,{key:y,color:y,active:y.toLowerCase()===a,onClick:m,onSwatchHover:n})}),_.createElement("div",{style:d.clear})),_.createElement(pXe,{hex:a,rgb:s,onChange:m})))};p2.propTypes={colors:ae.arrayOf(ae.string),styles:ae.object};p2.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};mn(p2);var fXe=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=nt({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:r});return _.createElement("div",{style:l.swatch},_.createElement(ls,{color:n,onClick:o,onHover:a,focusStyle:s}))};const hXe=Yb.handleHover(fXe);var f2=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,s=e.triangle,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=nt(hn({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right","bottom-left-triangle":s==="bottom-left","bottom-right-triangle":s==="bottom-right"}),m=function(v,b){return o({hex:v,source:"hex"},b)};return _.createElement("div",{style:d.card,className:"github-picker "+h},_.createElement("div",{style:d.triangleShadow}),_.createElement("div",{style:d.triangle}),us(n,function(y){return _.createElement(hXe,{color:y,key:y,onClick:m,onSwatchHover:a})}))};f2.propTypes={width:ae.oneOfType([ae.string,ae.number]),colors:ae.arrayOf(ae.string),triangle:ae.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:ae.object};f2.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};mn(f2);var mXe=function(e){var r=e.direction,n=nt({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return _.createElement("div",{style:n.picker})},_Xe=Object.assign||function(t){for(var e=1;e.5});return _.createElement("div",{style:n.picker})},bXe=function(){var e=nt({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return _.createElement("div",{style:e.pointer},_.createElement("div",{style:e.left},_.createElement("div",{style:e.leftInside})),_.createElement("div",{style:e.right},_.createElement("div",{style:e.rightInside})))},t6=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,s=nt({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return _.createElement("div",{style:s.button,onClick:r},n||o)},wXe=function(e){var r=e.rgb,n=e.currentColor,o=nt({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return _.createElement("div",null,_.createElement("div",{style:o.label},"new"),_.createElement("div",{style:o.swatches},_.createElement("div",{style:o.new}),_.createElement("div",{style:o.current})),_.createElement("div",{style:o.label},"current"))},SXe=(function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},d))};return _.createElement("div",{style:l.fields,className:"flexbox-fix"},_.createElement("div",{style:l.double},_.createElement(yt,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:u})),_.createElement("div",{style:l.single},_.createElement(yt,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:l.single},_.createElement(yt,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:l.single},_.createElement(yt,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:l.alpha},_.createElement(yt,{style:{input:l.input,label:l.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},EXe=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(s,f)&&(u[f]=s[f]);return u}var a=24;return Wp.default=function(s){var l=s.fill,u=l===void 0?"currentColor":l,f=s.width,h=f===void 0?a:f,d=s.height,m=d===void 0?a:d,y=s.style,v=y===void 0?{}:y,b=o(s,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:m},v)},b),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},Wp}var MXe=RXe();const AXe=oi(MXe);var NXe=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,s=e.first,l=e.last,u=e.active,f=nt({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:a2(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:l,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return _.createElement(ls,{color:r,style:f.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},_.createElement("div",{style:f.check},_.createElement(AXe,null)))},PXe=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,s=nt({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return _.createElement("div",{style:s.group},us(o,function(l,u){return _.createElement(NXe,{key:l,color:l,active:l.toLowerCase()===a,first:u===0,last:u===o.length-1,onClick:r,onSwatchHover:n})}))},y2=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,s=e.colors,l=e.hex,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,m=nt(hn({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),y=function(b,x){return o({hex:b,source:"hex"},x)};return _.createElement("div",{style:m.picker,className:"swatches-picker "+d},_.createElement(pd,null,_.createElement("div",{style:m.overflow},_.createElement("div",{style:m.body},us(s,function(v){return _.createElement(PXe,{key:v.toString(),group:v,active:l,onClick:y,onSwatchHover:a})}),_.createElement("div",{style:m.clear})))))};y2.propTypes={width:ae.oneOfType([ae.string,ae.number]),height:ae.oneOfType([ae.string,ae.number]),colors:ae.arrayOf(ae.arrayOf(ae.string)),styles:ae.object};y2.defaultProps={width:320,height:240,colors:[[oc[900],oc[700],oc[500],oc[300],oc[100]],[ac[900],ac[700],ac[500],ac[300],ac[100]],[ic[900],ic[700],ic[500],ic[300],ic[100]],[sc[900],sc[700],sc[500],sc[300],sc[100]],[cc[900],cc[700],cc[500],cc[300],cc[100]],[lc[900],lc[700],lc[500],lc[300],lc[100]],[uc[900],uc[700],uc[500],uc[300],uc[100]],[dc[900],dc[700],dc[500],dc[300],dc[100]],[pc[900],pc[700],pc[500],pc[300],pc[100]],["#194D33",pu[700],pu[500],pu[300],pu[100]],[fc[900],fc[700],fc[500],fc[300],fc[100]],[hc[900],hc[700],hc[500],hc[300],hc[100]],[mc[900],mc[700],mc[500],mc[300],mc[100]],[_c[900],_c[700],_c[500],_c[300],_c[100]],[gc[900],gc[700],gc[500],gc[300],gc[100]],[yc[900],yc[700],yc[500],yc[300],yc[100]],[vc[900],vc[700],vc[500],vc[300],vc[100]],[bc[900],bc[700],bc[500],bc[300],bc[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};mn(y2);var v2=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,s=e.width,l=e.triangle,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,m=nt(hn({default:{card:{width:s,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},f),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right"}),y=function(b,x){ui(b)&&r({hex:b,source:"hex"},x)};return _.createElement("div",{style:m.card,className:"twitter-picker "+d},_.createElement("div",{style:m.triangleShadow}),_.createElement("div",{style:m.triangle}),_.createElement("div",{style:m.body},us(a,function(v,b){return _.createElement(ls,{key:b,color:v,hex:v,style:m.swatch,onClick:y,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),_.createElement("div",{style:m.hash},"#"),_.createElement(yt,{label:null,style:{input:m.input},value:o.replace("#",""),onChange:y}),_.createElement("div",{style:m.clear})))};v2.propTypes={width:ae.oneOfType([ae.string,ae.number]),triangle:ae.oneOf(["hide","top-left","top-right"]),colors:ae.arrayOf(ae.string),styles:ae.object};v2.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};mn(v2);var b2=function(e){var r=nt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(e.hsl.s*100)+"%, "+Math.round(e.hsl.l*100)+"%)"}}});return _.createElement("div",{style:r.picker})};b2.propTypes={hsl:ae.shape({h:ae.number,s:ae.number,l:ae.number,a:ae.number})};b2.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var w2=function(e){var r=nt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return _.createElement("div",{style:r.picker})};w2.propTypes={hsl:ae.shape({h:ae.number,s:ae.number,l:ae.number,a:ae.number})};w2.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var IXe=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,s=e.hsv,l=function(y,v){if(y.hex)ui(y.hex)&&r({hex:y.hex,source:"hex"},v);else if(y.rgb){var b=y.rgb.split(",");K0(y.rgb,"rgb")&&r({r:b[0],g:b[1],b:b[2],a:1,source:"rgb"},v)}else if(y.hsv){var x=y.hsv.split(",");K0(y.hsv,"hsv")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),x[1]==1?x[1]=.01:x[2]==1&&(x[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsv"},v))}else if(y.hsl){var C=y.hsl.split(",");K0(y.hsl,"hsl")&&(C[2]=C[2].replace("%",""),C[1]=C[1].replace("%",""),C[0]=C[0].replace("°",""),d[1]==1?d[1]=.01:d[2]==1&&(d[2]=.01),r({h:Number(C[0]),s:Number(C[1]),v:Number(C[2]),source:"hsl"},v))}},u=nt({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),f=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",d=Math.round(s.h)+"°, "+Math.round(s.s*100)+"%, "+Math.round(s.v*100)+"%";return _.createElement("div",{style:u.wrap,className:"flexbox-fix"},_.createElement("div",{style:u.fields},_.createElement("div",{style:u.double},_.createElement(yt,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:l})),_.createElement("div",{style:u.column},_.createElement("div",{style:u.single},_.createElement(yt,{style:{input:u.input2,label:u.label2},label:"rgb",value:f,onChange:l})),_.createElement("div",{style:u.single},_.createElement(yt,{style:{input:u.input2,label:u.label2},label:"hsv",value:d,onChange:l})),_.createElement("div",{style:u.single},_.createElement(yt,{style:{input:u.input2,label:u.label2},label:"hsl",value:h,onChange:l})))))},S2=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,s=e.hsv,l=e.hex,u=e.header,f=e.styles,h=f===void 0?{}:f,d=e.className,m=d===void 0?"":d,y=nt(hn({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+o.r+", "+o.g+", "+o.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return _.createElement("div",{style:y.picker,className:"google-picker "+m},_.createElement("div",{style:y.head},u),_.createElement("div",{style:y.swatch}),_.createElement("div",{style:y.saturation},_.createElement(Nh,{hsl:a,hsv:s,pointer:b2,onChange:n})),_.createElement("div",{style:y.body},_.createElement("div",{style:y.controls,className:"flexbox-fix"},_.createElement("div",{style:y.hue},_.createElement(Zc,{style:y.Hue,hsl:a,radius:"4px",pointer:w2,onChange:n}))),_.createElement(IXe,{rgb:o,hsl:a,hex:l,hsv:s,onChange:n})))};S2.propTypes={width:ae.oneOfType([ae.string,ae.number]),styles:ae.object,header:ae.string};S2.defaultProps={width:652,styles:{},header:"Color picker"};mn(S2);var Q0={exports:{}},n6;function Wo(){return n6||(n6=1,(function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=u(515),h=(function(){function d(m,y,v){y===void 0&&(y=!0),v===void 0&&(v=!1),this.expression=m,this.dayOfWeekStartIndexZero=y,this.monthStartIndexZero=v}return d.prototype.parse=function(){var m,y,v=(m=this.expression)!==null&&m!==void 0?m:"";if(v==="@reboot")return y=["@reboot","","","","","",""],y;if(v.startsWith("@")){var b=this.parseSpecial(this.expression);y=this.extractParts(b)}else y=this.extractParts(this.expression);return this.normalize(y),this.validate(y),y},d.prototype.parseSpecial=function(m){var y={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},v=y[m];if(!v)throw new Error("Unknown special expression.");return v},d.prototype.extractParts=function(m){if(!this.expression)throw new Error("cron expression is empty");for(var y=m.trim().split(/[ ]+/),v=0;v7)throw new Error("Expression has ".concat(y.length," parts; too many!"));return y},d.prototype.normalize=function(m){var y=this;if(m[3]=m[3].replace("?","*"),m[5]=m[5].replace("?","*"),m[2]=m[2].replace("?","*"),m[0].indexOf("0/")==0&&(m[0]=m[0].replace("0/","*/")),m[1].indexOf("0/")==0&&(m[1]=m[1].replace("0/","*/")),m[2].indexOf("0/")==0&&(m[2]=m[2].replace("0/","*/")),m[3].indexOf("1/")==0&&(m[3]=m[3].replace("1/","*/")),m[4].indexOf("1/")==0&&(m[4]=m[4].replace("1/","*/")),m[6].indexOf("1/")==0&&(m[6]=m[6].replace("1/","*/")),m[5]=m[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var E=M.replace(/\D/,""),A=E;return y.dayOfWeekStartIndexZero?E=="7"&&(A="0"):A=(parseInt(E)-1).toString(),M.replace(E,A)}),m[5]=="L"&&(m[5]="6"),m[3]=="?"&&(m[3]="*"),m[3].indexOf("W")>-1&&(m[3].indexOf(",")>-1||m[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var v={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var b in v)m[5]=m[5].replace(new RegExp(b,"gi"),v[b].toString());m[4]=m[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var E=M.replace(/\D/,""),A=E;return y.monthStartIndexZero&&(A=(parseInt(E)+1).toString()),M.replace(E,A)});var x={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var C in x)m[4]=m[4].replace(new RegExp(C,"gi"),x[C].toString());m[0]=="0"&&(m[0]=""),!/\*|\-|\,|\//.test(m[2])&&(/\*|\//.test(m[1])||/\*|\//.test(m[0]))&&(m[2]+="-".concat(m[2]));for(var D=0;D-1&&!/^\*|\-|\,/.test(m[D])){var O=null;switch(D){case 4:O="12";break;case 5:O="6";break;case 6:O="9999";break;default:O=null;break}if(O!==null){var R=m[D].split("/");m[D]="".concat(R[0],"-").concat(O,"/").concat(R[1])}}},d.prototype.validate=function(m){var y="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(m[0],y),this.validateOnlyExpectedCharactersFound(m[1],y),this.validateOnlyExpectedCharactersFound(m[2],y),this.validateOnlyExpectedCharactersFound(m[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(m[4],y),this.validateOnlyExpectedCharactersFound(m[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(m[6],y),this.validateAnyRanges(m)},d.prototype.validateAnyRanges=function(m){f.default.secondRange(m[0]),f.default.minuteRange(m[1]),f.default.hourRange(m[2]),f.default.dayOfMonthRange(m[3]),f.default.monthRange(m[4],this.monthStartIndexZero),f.default.dayOfWeekRange(m[5],this.dayOfWeekStartIndexZero)},d.prototype.validateOnlyExpectedCharactersFound=function(m,y){var v=m.match(new RegExp("[^".concat(y,"]+"),"gi"));if(v&&v.length)throw new Error("Expression contains invalid values: '".concat(v.toString(),"'"))},d})();l.CronParser=h},333(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=u(823),h=u(949),d=(function(){function m(y,v){if(this.expression=y,this.options=v,this.expressionParts=new Array(5),!this.options.locale&&m.defaultLocale&&(this.options.locale=m.defaultLocale),!m.locales[this.options.locale]){var b=Object.keys(m.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(b,"'.")),this.options.locale=b}this.i18n=m.locales[this.options.locale],v.use24HourTimeFormat===void 0&&(v.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return m.toString=function(y,v){var b=v===void 0?{}:v,x=b.throwExceptionOnParseError,C=x===void 0?!0:x,D=b.verbose,O=D===void 0?!1:D,R=b.dayOfWeekStartIndexZero,M=R===void 0?!0:R,E=b.monthStartIndexZero,A=E===void 0?!1:E,I=b.use24HourTimeFormat,P=b.trimHoursLeadingZero,$=P===void 0?!1:P,z=b.locale,B=z===void 0?null:z,q=b.logicalAndDayFields,H=q===void 0?!1:q,U={throwExceptionOnParseError:C,verbose:O,dayOfWeekStartIndexZero:M,monthStartIndexZero:A,use24HourTimeFormat:I,trimHoursLeadingZero:$,locale:B,logicalAndDayFields:H};U.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var X=new m(y,U);return X.getFullDescription()},m.initialize=function(y,v){v===void 0&&(v="en"),m.specialCharacters=["/","-",",","*"],m.defaultLocale=v,y.load(m.locales)},m.prototype.getFullDescription=function(){var y,v,b="";try{var x=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=x.parse(),this.expressionParts[0]==="@reboot")return((v=(y=this.i18n).atReboot)===null||v===void 0?void 0:v.call(y))||"Run once, at startup";var C=this.getTimeOfDayDescription(),D=this.getDayOfMonthDescription(),O=this.getMonthDescription(),R=this.getDayOfWeekDescription(),M=this.getYearDescription();b+=C+D+R+O+M,b=this.transformVerbosity(b,!!this.options.verbose),b=b.charAt(0).toLocaleUpperCase()+b.substr(1)}catch(E){if(!this.options.throwExceptionOnParseError)b=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(E)}return b},m.prototype.getTimeOfDayDescription=function(){var y=this.expressionParts[0],v=this.expressionParts[1],b=this.expressionParts[2],x="";if(!f.StringUtilities.containsAny(v,m.specialCharacters)&&!f.StringUtilities.containsAny(b,m.specialCharacters)&&!f.StringUtilities.containsAny(y,m.specialCharacters))x+=this.i18n.atSpace()+this.formatTime(b,v,y);else if(!y&&v.indexOf("-")>-1&&!(v.indexOf(",")>-1)&&!(v.indexOf("/")>-1)&&!f.StringUtilities.containsAny(b,m.specialCharacters)){var C=v.split("-");x+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(b,C[0],""),this.formatTime(b,C[1],""))}else if(!y&&b.indexOf(",")>-1&&b.indexOf("-")==-1&&b.indexOf("/")==-1&&!f.StringUtilities.containsAny(v,m.specialCharacters)){var D=b.split(",");x+=this.i18n.at();for(var O=0;O-1?D=x.substring(0,x.indexOf("#")):x.indexOf("L")>-1&&(D=D.replace("L",""));var O=parseInt(D),R=y.i18n.daysOfTheWeekInCase?y.i18n.daysOfTheWeekInCase(C)[O]:v[O];if(x.indexOf("#")>-1){var M=null,E=x.substring(x.indexOf("#")+1),A=x.substring(0,x.indexOf("#"));switch(E){case"1":M=y.i18n.first(A);break;case"2":M=y.i18n.second(A);break;case"3":M=y.i18n.third(A);break;case"4":M=y.i18n.fourth(A);break;case"5":M=y.i18n.fifth(A);break}R=M+" "+R}return R},function(x){return parseInt(x)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0DaysOfTheWeek(x),x)},function(x){var C=x.substring(0,x.indexOf("-")),D=y.expressionParts[3]!="*";return D?y.i18n.commaAndX0ThroughX1(C):y.i18n.commaX0ThroughX1(C)},function(x){var C=null;if(x.indexOf("#")>-1){var D=x.substring(x.indexOf("#")+1),O=x.substring(0,x.indexOf("#"));C=y.i18n.commaOnThe(D,O).trim()+y.i18n.spaceX0OfTheMonth()}else if(x.indexOf("L")>-1)C=y.i18n.commaOnTheLastX0OfTheMonth(x.replace("L",""));else{var R=y.expressionParts[3]!="*";R?y.options.logicalAndDayFields?C=y.i18n.commaOnlyOnX0(x):C=y.i18n.commaAndOnX0():C=y.i18n.commaOnlyOnX0(x)}return C}),b},m.prototype.getMonthDescription=function(){var y=this,v=this.i18n.monthsOfTheYear(),b=this.getSegmentDescription(this.expressionParts[4],"",function(x,C){return C&&y.i18n.monthsOfTheYearInCase?y.i18n.monthsOfTheYearInCase(C)[parseInt(x)-1]:v[parseInt(x)-1]},function(x){return parseInt(x)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0Months(x),x)},function(x){return y.i18n.commaMonthX0ThroughMonthX1()||y.i18n.commaX0ThroughX1()},function(x){return y.i18n.commaOnlyInMonthX0?y.i18n.commaOnlyInMonthX0():y.i18n.commaOnlyInX0()});return b},m.prototype.getDayOfMonthDescription=function(){var y=this,v=null,b=this.expressionParts[3];switch(b){case"L":v=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":v=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var x=b.match(/(\d{1,2}W)|(W\d{1,2})/);if(x){var C=parseInt(x[0].replace("W","")),D=C==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),C.toString());v=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),D);break}else{var O=b.match(/L-(\d{1,2})/);if(O){var R=O[1];v=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(R),R);break}else{if(b=="*"&&this.expressionParts[5]!="*")return"";v=this.getSegmentDescription(b,this.i18n.commaEveryDay(),function(M){return M=="L"?y.i18n.lastDay():y.i18n.dayX0?f.StringUtilities.format(y.i18n.dayX0(),M):M},function(M){return M=="1"?y.i18n.commaEveryDay():y.i18n.commaEveryX0Days(M)},function(M){return y.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return y.i18n.commaOnDayX0OfTheMonth(M)})}break}}return v},m.prototype.getYearDescription=function(){var y=this,v=this.getSegmentDescription(this.expressionParts[6],"",function(b){return/^\d+$/.test(b)?new Date(parseInt(b),1).getFullYear().toString():b},function(b){return f.StringUtilities.format(y.i18n.commaEveryX0Years(b),b)},function(b){return y.i18n.commaYearX0ThroughYearX1()||y.i18n.commaX0ThroughX1()},function(b){return y.i18n.commaOnlyInYearX0?y.i18n.commaOnlyInYearX0():y.i18n.commaOnlyInX0()});return v},m.prototype.getSegmentDescription=function(y,v,b,x,C,D){var O=null,R=y.indexOf("/")>-1,M=y.indexOf("-")>-1,E=y.indexOf(",")>-1;if(!y)O="";else if(y==="*")O=v;else if(!R&&!M&&!E)O=f.StringUtilities.format(D(y),b(y));else if(E){for(var A=y.split(","),I="",P=0;P0&&A.length>2&&(I+=",",P0&&A.length>1&&(P==A.length-1||A.length==2)&&(I+="".concat(this.i18n.spaceAnd()," ")),A[P].indexOf("/")>-1||A[P].indexOf("-")>-1){var $=A[P].indexOf("-")>-1&&A[P].indexOf("/")==-1,z=this.getSegmentDescription(A[P],v,b,x,$?this.i18n.commaX0ThroughX1:C,D);$&&(z=z.replace(", ","")),I+=z}else if(!R)I+=b(A[P]);else{var B=this.getSegmentDescription(A[P],v,b,x,C,D);B&&B.startsWith(", ")&&(B=B.substring(2)),I+=B}R?O=I:O=f.StringUtilities.format(D(y),I)}else if(R){var A=y.split("/");if(O=f.StringUtilities.format(x(A[1]),A[1]),A[0].indexOf("-")>-1){var q=this.generateRangeSegmentDescription(A[0],C,b);q.indexOf(", ")!=0&&(O+=", "),O+=q}else if(A[0].indexOf("*")==-1){var H=f.StringUtilities.format(D(A[0]),b(A[0]));H=H.replace(", ",""),O+=f.StringUtilities.format(this.i18n.commaStartingX0(),H)}}else M&&(O=this.generateRangeSegmentDescription(y,C,b));return O},m.prototype.generateRangeSegmentDescription=function(y,v,b){var x="",C=y.split("-"),D=b(C[0],1),O=b(C[1],2),R=v(y);return x+=f.StringUtilities.format(R,D,O),x},m.prototype.formatTime=function(y,v,b){var x=0,C=0,D=parseInt(y)+x,O=parseInt(v)+C;O>=60?(O-=60,D+=1):O<0&&(O+=60,D-=1),D>=24?D=D-24:D<0&&(D=24+D);var R="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),R=M?"".concat(this.getPeriod(D)," "):" ".concat(this.getPeriod(D)),D>12&&(D-=12),D===0&&(D=12));var E="";b&&(E=":".concat(("00"+b).substring(b.length)));var A=D.toString(),I=("00"+A).substring(A.length),P=O.toString(),$=("00"+P).substring(P.length),z=this.options.trimHoursLeadingZero?A:I;return"".concat(M?R:"").concat(z,":").concat($).concat(E).concat(M?"":R)},m.prototype.transformVerbosity=function(y,v){if(!v&&(y=y.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),y=y.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),y=y.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),y=y.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var b=0,x=Object.entries(this.i18n.conciseVerbosityReplacements());b=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},m.locales={},m})();l.ExpressionDescriptor=d},747(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=u(486),h=(function(){function d(){}return d.prototype.load=function(m){m.en=new f.en},d})();l.enLocaleLoader=h},486(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var u=(function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days in a month"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f.prototype.atReboot=function(){return"Run once, at startup"},f.prototype.onTheHour=function(){return"on the hour"},f})();l.en=u},515(s,l){Object.defineProperty(l,"__esModule",{value:!0});function u(h,d){if(!h)throw new Error(d)}var f=(function(){function h(){}return h.secondRange=function(d){for(var m=d.split(","),y=0;y=0&&v<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(d){for(var m=d.split(","),y=0;y=0&&v<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(d){for(var m=d.split(","),y=0;y=0&&v<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(d){for(var m=d.split(","),y=0;y=1&&v<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(d,m){for(var y=d.split(","),v=0;v=1&&b<=12,m?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(d,m){for(var y=d.split(","),v=0;v=0&&b<=6,m?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h})();l.default=f},823(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var u=(function(){function f(){}return f.format=function(h){for(var d=[],m=1;m-1})},f})();l.StringUtilities=u}},n={};function o(s){var l=n[s];if(l!==void 0)return l.exports;var u=n[s]={exports:{}};return r[s](u,u.exports,o),u.exports}var a={};return(()=>{var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0;var l=o(333),u=o(747);l.ExpressionDescriptor.initialize(new u.enLocaleLoader),s.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;s.toString=f})(),a})())})(Q0)),Q0.exports}var jXe=Wo();const zXe=oi(jXe);var ev={exports:{}},o6;function LXe(){return o6||(o6=1,(function(t,e){(function(n,o){t.exports=o(Wo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.fr=void 0;var h=(function(){function d(){}return d.prototype.conciseVerbosityReplacements=function(){return{"de le":"du"}},d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},d.prototype.everyMinute=function(){return"toutes les minutes"},d.prototype.everyHour=function(){return"toutes les heures"},d.prototype.atSpace=function(){return"À "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},d.prototype.at=function(){return"À"},d.prototype.spaceAnd=function(){return" et"},d.prototype.everySecond=function(){return"toutes les secondes"},d.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},d.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},d.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},d.prototype.everyX0Hours=function(){return"toutes les %s heures"},d.prototype.betweenX0AndX1=function(){return"de %s à %s"},d.prototype.atX0=function(){return"%s"},d.prototype.commaEveryDay=function(){return", tous les jours"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},d.prototype.commaX0ThroughX1=function(){return", de %s à %s"},d.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},d.prototype.first=function(){return"premier"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"troisième"},d.prototype.fourth=function(){return"quatrième"},d.prototype.fifth=function(){return"cinquième"},d.prototype.commaOnThe=function(){return", le "},d.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},d.prototype.lastDay=function(){return"le dernier jour"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},d.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},d.prototype.commaAndOnX0=function(){return", et %s"},d.prototype.commaEveryX0Months=function(){return", tous les %s mois"},d.prototype.commaOnlyInX0=function(){return", uniquement en %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},d.prototype.firstWeekday=function(){return"premier jour ouvrable"},d.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Days=function(){return", tous les %s jours"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},d.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryHour=function(){return", chaque heure"},d.prototype.commaEveryX0Years=function(){return", tous les %s ans"},d.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},d.prototype.commaStartingX0=function(){return", à partir de %s"},d.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},d.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},d.prototype.onTheHour=function(){return"à l'heure pile"},d})();return f.fr=h,u().locales.fr=new h,s})())})(ev)),ev.exports}LXe();var tv={exports:{}},a6;function FXe(){return a6||(a6=1,(function(t,e){(function(n,o){t.exports=o(Wo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.es=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocurrió un error mientras se generaba la descripción de la expresión. Revise la sintaxis de la expresión de cron."},d.prototype.at=function(){return"A las"},d.prototype.atSpace=function(){return"A las "},d.prototype.atX0=function(){return"a las %s"},d.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},d.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},d.prototype.commaEveryDay=function(){return", cada día"},d.prototype.commaEveryX0Days=function(){return", cada %s días"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},d.prototype.commaEveryX0Months=function(){return", cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},d.prototype.commaOnlyInX0=function(){return", sólo en %s"},d.prototype.commaOnlyOnX0=function(){return", sólo el %s"},d.prototype.commaAndOnX0=function(){return", y el %s"},d.prototype.commaOnThe=function(){return", en el "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},d.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},d.prototype.everyHour=function(){return"cada hora"},d.prototype.everyMinute=function(){return"cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},d.prototype.everySecond=function(){return"cada segundo"},d.prototype.everyX0Hours=function(){return"cada %s horas"},d.prototype.everyX0Minutes=function(){return"cada %s minutos"},d.prototype.everyX0Seconds=function(){return"cada %s segundos"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primero"},d.prototype.firstWeekday=function(){return"primer día de la semana"},d.prototype.fourth=function(){return"cuarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},d.prototype.second=function(){return"segundo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},d.prototype.spaceAnd=function(){return" y"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},d.prototype.lastDay=function(){return"el último día"},d.prototype.third=function(){return"tercer"},d.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},d.prototype.commaEveryX0Years=function(){return", cada %s años"},d.prototype.commaStartingX0=function(){return", comenzando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},d.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},d.prototype.onTheHour=function(){return"en punto"},d})();return f.es=h,u().locales.es=new h,s})())})(tv)),tv.exports}FXe();var rv={exports:{}},i6;function BXe(){return i6||(i6=1,(function(t,e){(function(n,o){t.exports=o(Wo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.de=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"jede Minute"},d.prototype.everyHour=function(){return"jede Stunde"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},d.prototype.atSpace=function(){return"Um "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},d.prototype.at=function(){return"Um"},d.prototype.spaceAnd=function(){return" und"},d.prototype.everySecond=function(){return"Jede Sekunde"},d.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},d.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},d.prototype.everyX0Minutes=function(){return"alle %s Minuten"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},d.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},d.prototype.everyX0Hours=function(){return"alle %s Stunden"},d.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},d.prototype.atX0=function(){return"um %s"},d.prototype.commaEveryDay=function(){return", jeden Tag"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},d.prototype.commaX0ThroughX1=function(){return", %s bis %s"},d.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},d.prototype.first=function(){return"ersten"},d.prototype.second=function(){return"zweiten"},d.prototype.third=function(){return"dritten"},d.prototype.fourth=function(){return"vierten"},d.prototype.fifth=function(){return"fünften"},d.prototype.commaOnThe=function(){return", am "},d.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},d.prototype.lastDay=function(){return"der letzte Tag"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},d.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},d.prototype.commaAndOnX0=function(){return", und jeden %s"},d.prototype.commaEveryX0Months=function(){return", alle %s Monate"},d.prototype.commaOnlyInX0=function(){return", nur im %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},d.prototype.firstWeekday=function(){return"ersten Werktag"},d.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},d.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},d.prototype.commaEveryX0Days=function(){return", alle %s Tage"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},d.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},d.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},d.prototype.commaStartingX0=function(){return", beginnend %s"},d.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},d.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},d.prototype.onTheHour=function(){return"zur vollen Stunde"},d})();return f.de=h,u().locales.de=new h,s})())})(rv)),rv.exports}BXe();var nv={exports:{}},s6;function WXe(){return s6||(s6=1,(function(t,e){(function(n,o){t.exports=o(Wo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.it=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},d.prototype.at=function(){return"Alle"},d.prototype.atSpace=function(){return"Alle "},d.prototype.atX0=function(){return"alle %s"},d.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},d.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},d.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},d.prototype.commaEveryDay=function(){return", ogni giorno"},d.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},d.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},d.prototype.commaEveryX0Years=function(){return", ogni %s anni"},d.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},d.prototype.commaOnlyInX0=function(){return", solo in %s"},d.prototype.commaOnlyOnX0=function(){return", solo il %s"},d.prototype.commaAndOnX0=function(){return", e il %s"},d.prototype.commaOnThe=function(){return", il "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},d.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},d.prototype.commaX0ThroughX1=function(){return", %s al %s"},d.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},d.prototype.everyHour=function(){return"ogni ora"},d.prototype.everyMinute=function(){return"ogni minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},d.prototype.everySecond=function(){return"ogni secondo"},d.prototype.everyX0Hours=function(){return"ogni %s ore"},d.prototype.everyX0Minutes=function(){return"ogni %s minuti"},d.prototype.everyX0Seconds=function(){return"ogni %s secondi"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primo"},d.prototype.firstWeekday=function(){return"primo giorno della settimana"},d.prototype.fourth=function(){return"quarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},d.prototype.second=function(){return"secondo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},d.prototype.lastDay=function(){return"l'ultimo giorno"},d.prototype.third=function(){return"terzo"},d.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},d.prototype.commaStartingX0=function(){return", a partire %s"},d.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},d.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},d.prototype.onTheHour=function(){return"all'ora esatta"},d})();return f.it=h,u().locales.it=new h,s})())})(nv)),nv.exports}WXe();var ov={exports:{}},c6;function UXe(){return c6||(c6=1,(function(t,e){(function(n,o){t.exports=o(Wo())})(globalThis,r=>(()=>{var n={93(y){y.exports=r}},o={};function a(y){var v=o[y];if(v!==void 0)return v.exports;var b=o[y]={exports:{}};return n[y](b,b.exports,a),b.exports}a.n=y=>{var v=y&&y.__esModule?()=>y.default:()=>y;return a.d(v,{a:v}),v},a.d=(y,v)=>{for(var b in v)a.o(v,b)&&!a.o(y,b)&&Object.defineProperty(y,b,{enumerable:!0,get:v[b]})},a.o=(y,v)=>Object.prototype.hasOwnProperty.call(y,v),a.r=y=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.ru=void 0;var h=function(y,v){var b=Number(y);return b!==void 0?v[b%100>4&&b%100<20?2:[2,0,1,1,1,2][b%10<5?Math.abs(b)%10:5]]:v[2]},d=function(y,v){var b=Number(y);return b!==void 0?v[b===0?0:b===1||b===2||b===4?1:2]:v[1]},m=(function(){function y(){}return y.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},y.prototype.atX0MinutesPastTheHourGt20=function(){return null},y.prototype.commaMonthX0ThroughMonthX1=function(){return null},y.prototype.commaYearX0ThroughYearX1=function(){return null},y.prototype.use24HourTimeFormatByDefault=function(){return!0},y.prototype.everyMinute=function(){return"каждую минуту"},y.prototype.everyHour=function(){return"каждый час"},y.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},y.prototype.atSpace=function(){return"В "},y.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},y.prototype.at=function(){return"В"},y.prototype.spaceAnd=function(){return" и"},y.prototype.everySecond=function(){return"каждую секунду"},y.prototype.everyX0Seconds=function(v){return h(v,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},y.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},y.prototype.atX0SecondsPastTheMinute=function(v){return h(v,["в %s секунду","в %s секунды","в %s секунд"])},y.prototype.everyX0Minutes=function(v){return h(v,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},y.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},y.prototype.atX0MinutesPastTheHour=function(v){return h(v,["в %s минуту","в %s минуты","в %s минут"])},y.prototype.everyX0Hours=function(v){return h(v,["каждый %s час","каждые %s часа","каждые %s часов"])},y.prototype.betweenX0AndX1=function(){return"с %s по %s"},y.prototype.atX0=function(){return"в %s"},y.prototype.commaEveryDay=function(){return", каждый день"},y.prototype.commaEveryX0DaysOfTheWeek=function(v){return h(v,[", каждый %s день недели",", каждые %s дня недели",", каждые %s дней недели"])},y.prototype.commaX0ThroughX1=function(v){return v&&(v[0]=="2"||v[0]=="3")?", со %s по %s":", с %s по %s"},y.prototype.commaAndX0ThroughX1=function(v){return v&&(v[0]=="2"||v[0]=="3")?" и со %s по %s":" и с %s по %s"},y.prototype.first=function(v){return d(v,["первое","первый","первую"])},y.prototype.second=function(v){return d(v,["второе","второй","вторую"])},y.prototype.third=function(v){return d(v,["третье","третий","третью"])},y.prototype.fourth=function(v){return d(v,["четвертое","четвертый","четвертую"])},y.prototype.fifth=function(v){return d(v,["пятое","пятый","пятую"])},y.prototype.commaOnThe=function(v){return v==="2"?", во ":", в "},y.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},y.prototype.lastDay=function(){return"последний день"},y.prototype.commaOnTheLastX0OfTheMonth=function(v){return d(v,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},y.prototype.commaOnlyOnX0=function(v){return v&&v[0]==="2"?", только во %s":", только в %s"},y.prototype.commaAndOnX0=function(){return", и %s"},y.prototype.commaEveryX0Months=function(v){return h(v,[""," каждые %s месяца"," каждые %s месяцев"])},y.prototype.commaOnlyInMonthX0=function(){return", только %s"},y.prototype.commaOnlyInX0=function(){return", только в %s"},y.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},y.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},y.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(v){return h(v,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},y.prototype.firstWeekday=function(){return"первый будний день"},y.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},y.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},y.prototype.commaEveryX0Days=function(v){return h(v,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},y.prototype.commaBetweenDayX0AndX1OfTheMonth=function(v){return v&&v.substring(0,v.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},y.prototype.commaOnDayX0OfTheMonth=function(v){return v&&v[0]=="2"?", во %s число месяца":", в %s число месяца"},y.prototype.commaEveryX0Years=function(v){return h(v,[", каждый %s год",", каждые %s года",", каждые %s лет"])},y.prototype.commaStartingX0=function(){return", начало %s"},y.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},y.prototype.daysOfTheWeekInCase=function(v){return v===void 0&&(v=2),v==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},y.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},y.prototype.monthsOfTheYearInCase=function(v){return v==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},y.prototype.onTheHour=function(){return"ровно в час"},y})();return f.ru=m,u().locales.ru=new m,s})())})(ov)),ov.exports}UXe();var av={exports:{}},l6;function qXe(){return l6||(l6=1,(function(t,e){(function(n,o){t.exports=o(Wo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.zh_CN=void 0;var h=(function(){function d(){}return d.prototype.setPeriodBeforeTime=function(){return!0},d.prototype.pm=function(){return"下午"},d.prototype.am=function(){return"上午"},d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},d.prototype.use24HourTimeFormatByDefault=function(){return!1},d.prototype.everyMinute=function(){return"每分钟"},d.prototype.everyHour=function(){return"每小时"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},d.prototype.atSpace=function(){return"在"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},d.prototype.at=function(){return"在"},d.prototype.spaceAnd=function(){return" 和"},d.prototype.everySecond=function(){return"每秒"},d.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分钟后的第 %s 到 %s 秒"},d.prototype.atX0SecondsPastTheMinute=function(){return"在一分钟后的第 %s 秒"},d.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整点后的第 %s 到 %s 分钟"},d.prototype.atX0MinutesPastTheHour=function(){return"在整点后的第 %s 分钟"},d.prototype.everyX0Hours=function(){return"每隔 %s 小时"},d.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},d.prototype.atX0=function(){return"在%s"},d.prototype.commaEveryDay=function(){return", 每天"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},d.prototype.commaX0ThroughX1=function(){return", %s至%s"},d.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},d.prototype.first=function(){return"第一个"},d.prototype.second=function(){return"第二个"},d.prototype.third=function(){return"第三个"},d.prototype.fourth=function(){return"第四个"},d.prototype.fifth=function(){return"第五个"},d.prototype.commaOnThe=function(){return", 限每月的"},d.prototype.spaceX0OfTheMonth=function(){return"%s"},d.prototype.lastDay=function(){return"本月最后一天"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},d.prototype.commaOnlyOnX0=function(){return", 仅%s"},d.prototype.commaAndOnX0=function(){return", 或者为%s"},d.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},d.prototype.commaOnlyInX0=function(){return", 仅限%s"},d.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},d.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},d.prototype.firstWeekday=function(){return"第一个工作日"},d.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},d.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},d.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},d.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},d.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},d.prototype.commaStartingX0=function(){return", %s开始"},d.prototype.dayX0=function(){return" %s 号"},d.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},d.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},d.prototype.onTheHour=function(){return"整点"},d})();return f.zh_CN=h,u().locales.zh_CN=new h,s})())})(av)),av.exports}qXe();var iv={exports:{}},u6;function HXe(){return u6||(u6=1,(function(t,e){(function(n,o){t.exports=o(Wo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.uk=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"щохвилини"},d.prototype.everyHour=function(){return"щогодини"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},d.prototype.atSpace=function(){return"О "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},d.prototype.at=function(){return"О"},d.prototype.spaceAnd=function(){return" та"},d.prototype.everySecond=function(){return"Щосекунди"},d.prototype.everyX0Seconds=function(){return"кожні %s секунд"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},d.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},d.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},d.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},d.prototype.everyX0Hours=function(){return"кожні %s годин"},d.prototype.betweenX0AndX1=function(){return"між %s та %s"},d.prototype.atX0=function(){return"о %s"},d.prototype.commaEveryDay=function(){return", щоденно"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},d.prototype.commaX0ThroughX1=function(){return", %s по %s"},d.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},d.prototype.first=function(){return"перший"},d.prototype.second=function(){return"другий"},d.prototype.third=function(){return"третій"},d.prototype.fourth=function(){return"четвертий"},d.prototype.fifth=function(){return"п'ятий"},d.prototype.commaOnThe=function(){return", в "},d.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},d.prototype.lastDay=function(){return"останній день"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},d.prototype.commaOnlyOnX0=function(){return", тільки в %s"},d.prototype.commaAndOnX0=function(){return", і в %s"},d.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},d.prototype.commaOnlyInX0=function(){return", тільки в %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},d.prototype.firstWeekday=function(){return"перший будень"},d.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},d.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},d.prototype.commaEveryX0Days=function(){return", кожен %s день"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},d.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},d.prototype.commaEveryX0Years=function(){return", кожні %s роки"},d.prototype.commaStartingX0=function(){return", початок %s"},d.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},d.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},d.prototype.onTheHour=function(){return"рівно о годині"},d})();return f.uk=h,u().locales.uk=new h,s})())})(iv)),iv.exports}HXe();var sv={exports:{}},d6;function VXe(){return d6||(d6=1,(function(t,e){(function(n,o){t.exports=o(Wo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.pt_BR=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},d.prototype.at=function(){return"às"},d.prototype.atSpace=function(){return"às "},d.prototype.atX0=function(){return"Às %s"},d.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},d.prototype.betweenX0AndX1=function(){return"entre %s e %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},d.prototype.commaEveryDay=function(){return", a cada dia"},d.prototype.commaEveryX0Days=function(){return", a cada %s dias"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},d.prototype.commaEveryX0Months=function(){return", a cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},d.prototype.commaOnlyInX0=function(m){return m&&m.length>1&&m[1]==="-"?"somente %s":", somente em %s"},d.prototype.commaOnlyOnX0=function(m){return m&&m.length>1&&m[1]==="-"?", somente %s":", somente de %s"},d.prototype.commaAndOnX0=function(){return", e de %s"},d.prototype.commaOnThe=function(m,y){return y==="6"||y==="0"?", no":", na "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},d.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},d.prototype.everyHour=function(){return"a cada hora"},d.prototype.everyMinute=function(){return"a cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},d.prototype.everySecond=function(){return"a cada segundo"},d.prototype.everyX0Hours=function(){return"a cada %s horas"},d.prototype.everyX0Minutes=function(){return"a cada %s minutos"},d.prototype.everyX0Seconds=function(){return"a cada %s segundos"},d.prototype.fifth=function(m){return m==="6"||m==="0"?"quinto":"quinta"},d.prototype.first=function(m){return m==="6"||m==="0"?"primeiro":"primeira"},d.prototype.firstWeekday=function(){return"primeiro dia da semana"},d.prototype.fourth=function(m){return m==="6"||m==="0"?"quarto":"quarta"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},d.prototype.second=function(m){return m==="6"||m==="0"?"segundo":"segunda"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},d.prototype.lastDay=function(){return"o último dia"},d.prototype.third=function(m){return m==="6"||m==="0"?"terceiro":"terceira"},d.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},d.prototype.commaEveryX0Years=function(){return", a cada %s anos"},d.prototype.commaStartingX0=function(){return", iniciando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},d.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},d.prototype.onTheHour=function(){return"na hora certa"},d})();return f.pt_BR=h,u().locales.pt_BR=new h,s})())})(sv)),sv.exports}VXe();var cv={exports:{}},p6;function GXe(){return p6||(p6=1,(function(t,e){(function(n,o){t.exports=o(Wo())})(globalThis,r=>(()=>{var n={93(d){d.exports=r}},o={};function a(d){var m=o[d];if(m!==void 0)return m.exports;var y=o[d]={exports:{}};return n[d](y,y.exports,a),y.exports}a.n=d=>{var m=d&&d.__esModule?()=>d.default:()=>d;return a.d(m,{a:m}),m},a.d=(d,m)=>{for(var y in m)a.o(m,y)&&!a.o(d,y)&&Object.defineProperty(d,y,{enumerable:!0,get:m[y]})},a.o=(d,m)=>Object.prototype.hasOwnProperty.call(d,m),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var s={};a.r(s);var l=a(93),u=a.n(l),f=s;Object.defineProperty(f,"__esModule",{value:!0}),f.pl=void 0;var h=(function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},d.prototype.at=function(){return"O"},d.prototype.atSpace=function(){return"O "},d.prototype.atX0=function(){return"o %s"},d.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},d.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},d.prototype.betweenX0AndX1=function(){return"od %s do %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},d.prototype.commaEveryDay=function(){return", co dzień"},d.prototype.commaEveryX0Days=function(){return", co %s dni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},d.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},d.prototype.commaEveryX0Years=function(){return", co %s lat"},d.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},d.prototype.commaOnlyInX0=function(){return", tylko %s"},d.prototype.commaOnlyOnX0=function(){return", tylko %s"},d.prototype.commaAndOnX0=function(){return", i %s"},d.prototype.commaOnThe=function(){return", "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},d.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},d.prototype.commaX0ThroughX1=function(){return", od %s do %s"},d.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},d.prototype.everyHour=function(){return"co godzinę"},d.prototype.everyMinute=function(){return"co minutę"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},d.prototype.everySecond=function(){return"co sekundę"},d.prototype.everyX0Hours=function(){return"co %s godzin"},d.prototype.everyX0Minutes=function(){return"co %s minut"},d.prototype.everyX0Seconds=function(){return"co %s sekund"},d.prototype.fifth=function(){return"piąty"},d.prototype.first=function(){return"pierwszy"},d.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},d.prototype.fourth=function(){return"czwarty"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},d.prototype.second=function(){return"drugi"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},d.prototype.spaceAnd=function(){return" i"},d.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},d.prototype.lastDay=function(){return"ostatni dzień"},d.prototype.third=function(){return"trzeci"},d.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},d.prototype.commaStartingX0=function(){return", startowy %s"},d.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},d.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},d.prototype.onTheHour=function(){return"o pełnej godzinie"},d})();return f.pl=h,u().locales.pl=new h,s})())})(cv)),cv.exports}GXe();function V9(t,e){return zXe.toString(t,{locale:e})}const sn={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},XXe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],JXe=["January","February","March","April","May","June","July","August","September","October","November","December"];function f6(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const s=parseInt(a[1],10);for(let l=parseInt(a[0],10);l<=s;l++)r.push(l)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function h6(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,s)=>a-s);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=Ha.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=f6(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,h6(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},j.t("ra_Deselect all")),_.createElement(At,{key:"addall",variant:"contained",style:sn.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},j.t("ra_Select all")),_.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?_.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,_.createElement(At,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:sn.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?j.t(XXe[a]):r===12?JXe[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),s;if(this.state.modes[e]===null){s=o?"every":a?"everyN":"specific";const u=JSON.parse(JSON.stringify(this.state.modes));return u[e]=s,setTimeout(()=>this.setState({modes:u},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",s=this.state.modes[e];let l=1;return a&&n&&(l=parseInt(n.replace("*/",""),10)||1),_.createElement("div",null,_.createElement(Sn,{variant:"standard",style:{...sn.periodSelect,verticalAlign:"bottom"},value:s,onChange:u=>{const f=JSON.parse(JSON.stringify(this.state.modes));if(f[e]=u.target.value,u.target.value==="every")this.setCronAttr(e,"*",f);else if(u.target.value==="everyN"){const h=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${h}`,f)}else if(u.target.value==="specific"){let h=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!h&&(e==="months"||e==="dates")&&(h=1),this.setCronAttr(e,h6(h,r),f)}}},_.createElement(Qt,{key:"every",value:"every"},j.t(`sc_every_${e}`)),_.createElement(Qt,{key:"everyN",value:"everyN"},j.t(`sc_everyN_${e}`)),_.createElement(Qt,{key:"specific",value:"specific"},j.t(`sc_specific_${e}`))),a&&_.createElement(zt,{variant:"standard",key:"interval",label:j.t(`sc_${e}`),value:l,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:u=>{this.setState({[e]:`*/${u.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?j.t("ra_Invalid CRON"):V9(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return _.createElement("div",{style:sn.mainDiv},_.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},_.createElement(zt,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),_.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},Ha.convertCronToText(this.state.cron,this.props.language||"en"),_.createElement("span",{style:sn.warning},n?j.t("ra_warning_every_second"):r?j.t("ra_warning_every_minute"):"")),_.createElement(ut,{control:_.createElement(dr,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:j.t("ra_use seconds")}),_.createElement(mT,{position:"static",sx:{"&.MuiAppBar-root":sn.appBar},color:"secondary"},_.createElement(WT,{value:this.state.tab,style:sn.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&_.createElement(Ni,{id:"sc_seconds",label:j.t("sc_seconds")}),_.createElement(Ni,{id:"minutes",label:j.t("sc_minutes")}),_.createElement(Ni,{id:"hours",label:j.t("sc_hours")}),_.createElement(Ni,{id:"dates",label:j.t("sc_dates")}),_.createElement(Ni,{id:"months",label:j.t("sc_months")}),_.createElement(Ni,{id:"dow",label:j.t("sc_dows")}))),e===0&&_.createElement("div",{style:sn.tabContent},this.getPeriodsTab("seconds",60)),e===1&&_.createElement("div",{style:sn.tabContent},this.getPeriodsTab("minutes",60)),e===2&&_.createElement("div",{style:sn.tabContent},this.getPeriodsTab("hours",24)),e===3&&_.createElement("div",{style:sn.tabContent},this.getPeriodsTab("dates",31)),e===4&&_.createElement("div",{style:sn.tabContent},this.getPeriodsTab("months",12)),e===5&&_.createElement("div",{style:sn.tabContent},this.getPeriodsTab("dow",7)))}}function ds(t,e,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(h){try{f(n.next(h))}catch(d){s(d)}}function u(h){try{f(n.throw(h))}catch(d){s(d)}}function f(h){h.done?a(h.value):o(h.value).then(l,u)}f((n=n.apply(t,e||[])).next())})}const YXe=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 Bc(t,e,r){const n=KXe(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&m6(n,"path",a),m6(n,"relativePath",a),n}function KXe(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=YXe.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function m6(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const ZXe=[".DS_Store","Thumbs.db"];function QXe(t){return ds(this,void 0,void 0,function*(){return Pf(t)&&eJe(t.dataTransfer)?oJe(t.dataTransfer,t.type):tJe(t)?rJe(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?nJe(t):[]})}function eJe(t){return Pf(t)}function tJe(t){return Pf(t)&&Pf(t.target)}function Pf(t){return typeof t=="object"&&t!==null}function rJe(t){return S1(t.target.files).map(e=>Bc(e))}function nJe(t){return ds(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Bc(r))})}function oJe(t,e){return ds(this,void 0,void 0,function*(){if(t.items){const r=S1(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(aJe));return _6(G9(n))}return _6(S1(t.files).map(r=>Bc(r)))})}function _6(t){return t.filter(e=>ZXe.indexOf(e.name)===-1)}function S1(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?G9(r):[r]],[])}function g6(t,e){return ds(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const s=yield a.getFile();return s.handle=a,Bc(s)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Bc(n,(r=e?.fullPath)!==null&&r!==void 0?r:void 0)})}function iJe(t){return ds(this,void 0,void 0,function*(){return t.isDirectory?X9(t):sJe(t)})}function X9(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(s=>ds(this,void 0,void 0,function*(){if(s.length){const l=Promise.all(s.map(iJe));o.push(l),a()}else try{const l=yield Promise.all(o);r(l)}catch(l){n(l)}}),s=>{n(s)})}a()})}function sJe(t){return ds(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=Bc(n,t.fullPath);e(o)},n=>{r(n)})})})}var Up={},y6;function cJe(){return y6||(y6=1,Up.__esModule=!0,Up.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):o===l})}return!0}),Up}var lJe=cJe();const lv=oi(lJe);function v6(t){return pJe(t)||dJe(t)||Y9(t)||uJe()}function uJe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dJe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pJe(t){if(Array.isArray(t))return x1(t)}function b6(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function w6(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:gJe,message:"File type must be ".concat(n)}},S6=function(e){return{code:yJe,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},x6=function(e){return{code:vJe,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},SJe={code:bJe,message:"Too many files"};function xJe(t){return t.type===""&&typeof t.getAsFile=="function"}function K9(t,e){var r=t.type==="application/x-moz-file"||_Je(t,e)||xJe(t);return[r,r?null:wJe(e)]}function Z9(t,e,r){if(ji(t.size))if(ji(e)&&ji(r)){if(t.size>r)return[!1,S6(r)];if(t.sizer)return[!1,S6(r)]}return[!0,null]}function ji(t){return t!=null}function kJe(t){var e=t.files,r=t.accept,n=t.minSize,o=t.maxSize,a=t.multiple,s=t.maxFiles,l=t.validator;return!a&&e.length>1||a&&s>=1&&e.length>s?!1:e.every(function(u){var f=K9(u,r),h=Fu(f,1),d=h[0],m=Z9(u,n,o),y=Fu(m,1),v=y[0],b=l?l(u):null;return d&&v&&!b})}function If(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function Gl(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function k6(t){t.preventDefault()}function CJe(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function $Je(t){return t.indexOf("Edge/")!==-1}function EJe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return CJe(t)||$Je(t)}function Co(){for(var t=arguments.length,e=new Array(t),r=0;r1?o-1:0),s=1;st.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function UJe(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var fd=T.forwardRef(function(t,e){var r=t.children,n=jf(t,AJe),o=qJe(n),a=o.open,s=jf(o,NJe);return T.useImperativeHandle(e,function(){return{open:a}},[a]),_.createElement(T.Fragment,null,r(Ut(Ut({},s),{},{open:a})))});fd.displayName="Dropzone";var r7={disabled:!1,getFilesFromEvent:QXe,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};fd.defaultProps=r7;fd.propTypes={children:ae.func,accept:ae.objectOf(ae.arrayOf(ae.string)),multiple:ae.bool,preventDropOnDocument:ae.bool,noClick:ae.bool,noKeyboard:ae.bool,noDrag:ae.bool,noDragEventsBubbling:ae.bool,minSize:ae.number,maxSize:ae.number,maxFiles:ae.number,disabled:ae.bool,getFilesFromEvent:ae.func,onFileDialogCancel:ae.func,onFileDialogOpen:ae.func,useFsAccessApi:ae.bool,autoFocus:ae.bool,onDragEnter:ae.func,onDragLeave:ae.func,onDragOver:ae.func,onDrop:ae.func,onDropAccepted:ae.func,onDropRejected:ae.func,onError:ae.func,validator:ae.func};var $1={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function qJe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Ut(Ut({},r7),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,s=e.minSize,l=e.multiple,u=e.maxFiles,f=e.onDragEnter,h=e.onDragLeave,d=e.onDragOver,m=e.onDrop,y=e.onDropAccepted,v=e.onDropRejected,b=e.onFileDialogCancel,x=e.onFileDialogOpen,C=e.useFsAccessApi,D=e.autoFocus,O=e.preventDropOnDocument,R=e.noClick,M=e.noKeyboard,E=e.noDrag,A=e.noDragEventsBubbling,I=e.onError,P=e.validator,$=T.useMemo(function(){return DJe(r)},[r]),z=T.useMemo(function(){return OJe(r)},[r]),B=T.useMemo(function(){return typeof x=="function"?x:E6},[x]),q=T.useMemo(function(){return typeof b=="function"?b:E6},[b]),H=T.useRef(null),U=T.useRef(null),X=T.useReducer(HJe,$1),re=uv(X,2),Z=re[0],G=re[1],ee=Z.isFocused,F=Z.isFileDialogActive,K=T.useRef(typeof window<"u"&&window.isSecureContext&&C&&TJe()),ue=function(){!K.current&&F&&setTimeout(function(){if(U.current){var _e=U.current.files;_e.length||(G({type:"closeDialog"}),q())}},300)};T.useEffect(function(){return window.addEventListener("focus",ue,!1),function(){window.removeEventListener("focus",ue,!1)}},[U,F,q,K]);var pe=T.useRef([]),oe=T.useRef([]),fe=function(_e){H.current&&H.current.contains(_e.target)||(_e.preventDefault(),pe.current=[])};T.useEffect(function(){return O&&(document.addEventListener("dragover",k6,!1),document.addEventListener("drop",fe,!1)),function(){O&&(document.removeEventListener("dragover",k6),document.removeEventListener("drop",fe))}},[H,O]),T.useEffect(function(){var ne=function(vt){oe.current=[].concat(C6(oe.current),[vt.target]),Gl(vt)&&G({isDragGlobal:!0,type:"setDragGlobal"})},_e=function(vt){oe.current=oe.current.filter(function(Fe){return Fe!==vt.target&&Fe!==null}),!(oe.current.length>0)&&G({isDragGlobal:!1,type:"setDragGlobal"})},Ue=function(){oe.current=[],G({isDragGlobal:!1,type:"setDragGlobal"})},Le=function(){oe.current=[],G({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",ne,!1),document.addEventListener("dragleave",_e,!1),document.addEventListener("dragend",Ue,!1),document.addEventListener("drop",Le,!1),function(){document.removeEventListener("dragenter",ne),document.removeEventListener("dragleave",_e),document.removeEventListener("dragend",Ue),document.removeEventListener("drop",Le)}},[H]),T.useEffect(function(){return!n&&D&&H.current&&H.current.focus(),function(){}},[H,D,n]);var we=T.useCallback(function(ne){I?I(ne):console.error(ne)},[I]),ke=T.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne),pe.current=[].concat(C6(pe.current),[ne.target]),Gl(ne)&&Promise.resolve(o(ne)).then(function(_e){if(!(If(ne)&&!A)){var Ue=_e.length,Le=Ue>0&&kJe({files:_e,accept:$,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:P}),pt=Ue>0&&!Le;G({isDragAccept:Le,isDragReject:pt,isDragActive:!0,type:"setDraggedFiles"}),f&&f(ne)}}).catch(function(_e){return we(_e)})},[o,f,we,A,$,s,a,l,u,P]),Ee=T.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne);var _e=Gl(ne);if(_e&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return _e&&d&&d(ne),!1},[d,A]),$e=T.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne);var _e=pe.current.filter(function(Le){return H.current&&H.current.contains(Le)}),Ue=_e.indexOf(ne.target);Ue!==-1&&_e.splice(Ue,1),pe.current=_e,!(_e.length>0)&&(G({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Gl(ne)&&h&&h(ne))},[H,h,A]),Pe=T.useCallback(function(ne,_e){var Ue=[],Le=[];ne.forEach(function(pt){var vt=K9(pt,$),Fe=uv(vt,2),Ht=Fe[0],xt=Fe[1],Se=Z9(pt,s,a),ft=uv(Se,2),kt=ft[0],br=ft[1],wr=P?P(pt):null;if(Ht&&kt&&!wr)Ue.push(pt);else{var Yr=[xt,br];wr&&(Yr=Yr.concat(wr)),Le.push({file:pt,errors:Yr.filter(function(Uo){return Uo})})}}),(!l&&Ue.length>1||l&&u>=1&&Ue.length>u)&&(Ue.forEach(function(pt){Le.push({file:pt,errors:[SJe]})}),Ue.splice(0)),G({acceptedFiles:Ue,fileRejections:Le,type:"setFiles"}),m&&m(Ue,Le,_e),Le.length>0&&v&&v(Le,_e),Ue.length>0&&y&&y(Ue,_e)},[G,l,$,s,a,u,m,y,v,P]),Re=T.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne),pe.current=[],Gl(ne)&&Promise.resolve(o(ne)).then(function(_e){If(ne)&&!A||Pe(_e,ne)}).catch(function(_e){return we(_e)}),G({type:"reset"})},[o,Pe,we,A]),Ge=T.useCallback(function(){if(K.current){G({type:"openDialog"}),B();var ne={multiple:l,types:z};window.showOpenFilePicker(ne).then(function(_e){return o(_e)}).then(function(_e){Pe(_e,null),G({type:"closeDialog"})}).catch(function(_e){RJe(_e)?(q(_e),G({type:"closeDialog"})):MJe(_e)?(K.current=!1,U.current?(U.current.value=null,U.current.click()):we(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 was provided."))):we(_e)});return}U.current&&(G({type:"openDialog"}),B(),U.current.value=null,U.current.click())},[G,B,q,C,Pe,we,z,l]),ve=T.useCallback(function(ne){!H.current||!H.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),Ge())},[H,Ge]),Te=T.useCallback(function(){G({type:"focus"})},[]),_t=T.useCallback(function(){G({type:"blur"})},[]),be=T.useCallback(function(){R||(EJe()?setTimeout(Ge,0):Ge())},[R,Ge]),Ae=function(_e){return n?null:_e},lt=function(_e){return M?null:Ae(_e)},tt=function(_e){return E?null:Ae(_e)},Xe=function(_e){A&&_e.stopPropagation()},ge=T.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_e=ne.refKey,Ue=_e===void 0?"ref":_e,Le=ne.role,pt=ne.onKeyDown,vt=ne.onFocus,Fe=ne.onBlur,Ht=ne.onClick,xt=ne.onDragEnter,Se=ne.onDragOver,ft=ne.onDragLeave,kt=ne.onDrop,br=jf(ne,PJe);return Ut(Ut(C1({onKeyDown:lt(Co(pt,ve)),onFocus:lt(Co(vt,Te)),onBlur:lt(Co(Fe,_t)),onClick:Ae(Co(Ht,be)),onDragEnter:tt(Co(xt,ke)),onDragOver:tt(Co(Se,Ee)),onDragLeave:tt(Co(ft,$e)),onDrop:tt(Co(kt,Re)),role:typeof Le=="string"&&Le!==""?Le:"presentation"},Ue,H),!n&&!M?{tabIndex:0}:{}),br)}},[H,ve,Te,_t,be,ke,Ee,$e,Re,M,E,n]),dt=T.useCallback(function(ne){ne.stopPropagation()},[]),Qe=T.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_e=ne.refKey,Ue=_e===void 0?"ref":_e,Le=ne.onChange,pt=ne.onClick,vt=jf(ne,IJe),Fe=C1({accept:$,multiple:l,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:Ae(Co(Le,Re)),onClick:Ae(Co(pt,dt)),tabIndex:-1},Ue,U);return Ut(Ut({},Fe),vt)}},[U,r,l,Re,n]);return Ut(Ut({},Z),{},{isFocused:ee&&!n,getRootProps:ge,getInputProps:Qe,rootRef:H,inputRef:U,open:Ae(Ge)})}function HJe(t,e){switch(e.type){case"focus":return Ut(Ut({},t),{},{isFocused:!0});case"blur":return Ut(Ut({},t),{},{isFocused:!1});case"openDialog":return Ut(Ut({},$1),{},{isFileDialogActive:!0});case"closeDialog":return Ut(Ut({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ut(Ut({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Ut(Ut({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:!1});case"setDragGlobal":return Ut(Ut({},t),{},{isDragGlobal:e.isDragGlobal});case"reset":return Ut({},$1);default:return t}}function E6(){}function VJe(){const t=ha();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=Iz(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function x2(){return t=>function(r){const n=VJe();return _.createElement(t,{...r,width:n})}}function GJe(t){const[e,r]=_.useState(t.input||t.value||""),[n,o]=_.useState("");return _.createElement(co,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},_.createElement(po,{id:"form-dialog-title"},t.titleText),_.createElement(uo,null,_.createElement(uh,null,t.promptText),_.createElement(zt,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let s="";t.verify&&(s=t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(s)},fullWidth:!0})),_.createElement(lo,null,_.createElement(At,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:_.createElement(li,null)},t.applyText||j.t("ra_Ok")),_.createElement(At,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:_.createElement(ti,null)},t.cancelText||j.t("ra_Cancel"))))}const XJe=x2()(GJe);function JJe(t){return _.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"m414.928297,149.715165 c-2.639376,-57.222555 -35.669446,-106.505345 -83.345894,-132.039151 c-3.758948,-2.049842 -7.636885,-3.932022 -11.590542,-5.641125 c-19.303146,-8.394083 -40.607459,-13.050853 -63.004303,-13.050853 c-84.113909,0 -152.791790,65.703174 -157.718988,148.605566 l0.043268,-0.010816 v0.281245 c0,3.061243 -0.146031,16.750306 -0.146031,16.750306 l-2.352723,5.224668 h15.744315 c5.916964,-19.384275 24.078904,-32.635245 45.513024,-32.635245 c26.231510,0 47.573684,21.915481 47.573684,48.146991 c0,26.226103 -21.342174,47.146409 -47.573684,47.146409 c-25.111939,0 -45.734774,-19.735831 -47.443879,-44.658471 h-18.789334 c-0.400232,0 -0.778832,0.638209 -1.162839,0.584122 l-19.762875,55.199753 c-2.774590,7.696379 2.926030,16.214860 11.103771,16.214860 h17.020735 l-0.129805,87.899899 c0,17.356066 14.073071,31.174935 31.429136,31.174935 h56.205745 v82.648189 c0,12.877778 12.937273,22.580734 25.815051,22.580734 h144.597825 c12.877778,0 23.429877,-9.702955 23.429877,-22.580734 v-166.037352 c0,-22.645636 5.976457,-44.761234 16.561008,-64.789128 c11.055093,-20.925714 17.523731,-44.620611 18.129489,-69.792045 c0.027042,-1.260193 0.037858,-2.552839 0.037858,-3.845485 c0,-2.466302 -0.070310,-4.938014 -0.183890,-7.377273 zm-155.393308,-11.731165 h-13.456494 v13.559257 c0,4.732489 -4.267352,8.567157 -8.999842,8.567157 c-4.727079,0 -8.999842,-3.834667 -8.999842,-8.567157 v-13.559257 h-12.185483 c-4.732489,0 -8.567157,-4.267352 -8.567157,-8.999842 c0,-4.727079 3.834667,-8.999842 8.567157,-8.999842 h12.185483 v-12.077311 c0,-4.732489 4.272762,-8.567157 8.999842,-8.567157 c4.732489,0 8.999842,3.834667 8.999842,8.567157 v12.077311 h13.456494 c4.727079,0 8.567157,4.272762 8.567157,8.999842 c0,4.732489 -3.840077,8.999842 -8.567157,8.999842 zm0,0"}),_.createElement("path",{fill:"currentColor",d:"m187.695312 285.875c3.9375-3.980469 6.414063-9.449219 6.414063-15.523438 0-12.128906-9.855469-21.980468-21.984375-21.980468-6.007812 0-11.472656 2.410156-15.457031 6.347656-4.023438 4.003906-6.523438 9.539062-6.523438 15.636719 0 12.125 9.855469 21.980469 21.980469 21.980469 6.078125 0 11.585938-2.476563 15.570312-6.460938zm0 0"}))}function E1(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"m524,128l-192,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,288c0,26.51 21.49,48 48,48l416,0c26.51,0 48,-21.49 48,-48l0,-224c0,-26.51 -21.49,-48 -48,-48z"}))}function YJe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"m631.75617,292.093l-72.424,124.155a63.997,63.997 0 0 1 -55.281,31.752l-399.964,0c-18.523,0 -30.064,-20.093 -20.731,-36.093l72.424,-124.155a64,64 0 0 1 55.282,-31.752l399.964,0c18.523,0 30.064,20.093 20.73,36.093zm-420.694,-68.093l328,0l0,-48c0,-26.51 -21.49,-48 -48,-48l-160,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,278.046l69.077,-118.418c17.137,-29.378 48.912,-47.628 82.923,-47.628z"}))}function k2(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"#EE3333",d:"M256,0C114.844,0,0,114.844,0,256s114.844,256,256,256s256-114.844,256-256S397.156,0,256,0z M256,448 c-105.865,0-192-86.135-192-192c0-40.406,12.25-78.604,35.542-111.198l267.656,267.656C334.604,435.75,296.406,448,256,448z M412.458,367.198L144.802,99.542C177.396,76.25,215.594,64,256,64c105.865,0,192,86.135,192,192 C448,296.406,435.75,334.604,412.458,367.198z"}))}var KJe=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,s)=>s===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(l,u,f)=>`${u}${f.toUpperCase()}`);let s=o.trim();Number.isNaN(Number(o))||(s=Number(o)),e[n.startsWith("-")?n:a]=s}return e},{});function ZJe(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var QJe=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],T6={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function eYe(t,e){const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return T.createElement(rYe(t.nodeName),tYe(t,r),O6(t.childNodes,n,o));case 3:{const a=t.nodeValue?.toString()??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(a)&&!/[\u00A0\u202F]/.test(a))return null;if(!t.parentNode)return a;const s=t.parentNode.nodeName.toLowerCase();return QJe.includes(s)?(/\S/.test(a)&&console.warn(`A textNode is not allowed inside '${s}'. Your text "${a}" will be ignored`),null):a}case 8:return null;case 11:return O6(t.childNodes,n,e);default:return null}}function tYe(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=KJe(o.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[T6[o.name]||o.name]=!0;break;default:r[T6[o.name]||o.name]=o.value}})}return r}function O6(t,e,r){const n=[...t].map((o,a)=>zf(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function rYe(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function n7(t,e={}){return typeof t=="string"?nYe(t,e):t instanceof Node?zf(t,e):null}function zf(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let s=t,l=`${o}-${n}`;const u=[];return a&&o===0&&(l=`${ZJe()}-${l}`),Array.isArray(r)&&r.forEach(f=>{f.condition(s,l,o)&&(typeof f.pre=="function"&&(s=f.pre(s,l,o),s instanceof Node||(s=t)),typeof f.post=="function"&&u.push(f.post(s,l,o)))}),u.length?u:eYe(s,{key:l,level:o,...e})}function nYe(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const l=new DOMParser().parseFromString(t,a);if(r){const{childNodes:f}=l.body;return n?f:[...f].map(h=>zf(h,e))}const u=l.querySelector(o)||l.body.childNodes[0];if(!(u instanceof Node))throw new TypeError("Error parsing input");return n?u:zf(u,e)}catch{}return null}var oYe=Object.defineProperty,aYe=(t,e,r)=>e in t?oYe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qp=(t,e,r)=>aYe(t,typeof e!="symbol"?e+"":e,r),D6="react-inlinesvg",iYe=10,Ot={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function sYe(t){return t[Math.floor(Math.random()*t.length)]}function fu(){return!!(typeof window<"u"&&window.document?.createElement)}function cYe(){return pYe()&&typeof window<"u"&&window!==null}function lYe(t,...e){const r={};for(const n in t)({}).hasOwnProperty.call(t,n)&&(e.includes(n)||(r[n]=t[n]));return r}function uYe(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function dYe(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function pYe(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}var fYe=class{constructor(){qp(this,"cacheApi"),qp(this,"cacheStore"),qp(this,"subscribers",[]),qp(this,"isReady",!1),this.cacheStore=new Map;let t=D6,e=!1;fu()&&(t=window.REACT_INLINESVG_CACHE_NAME??D6,e=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),e?caches.open(t).then(r=>{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;const r=[...this.subscribers];this.subscribers.length=0,r.forEach(n=>{try{n()}catch(o){console.error(`Error in CacheStore subscriber callback: ${o.message}`)}})}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),this.cacheStore.get(t)?.content??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){return this.cacheStore.get(t)?.status===Ot.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Ot.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Ot.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!r?.content){this.cacheStore.set(t,{content:"",status:Ot.LOADING});try{const n=await o7(t,e);this.cacheStore.set(t,{content:n,status:Ot.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Ot.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Ot.LOADED)return;if(r?.status===Ot.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Ot.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Ot.LOADING});const n=await this.cacheApi?.match(t);if(n){const o=await n.text();this.cacheStore.set(t,{content:o,status:Ot.LOADED});return}try{await this.cacheApi?.add(new Request(t,e));const a=await(await this.cacheApi?.match(t))?.text()??"";this.cacheStore.set(t,{content:a,status:Ot.LOADED})}catch(o){throw this.cacheStore.set(t,{content:"",status:Ot.FAILED}),o}}async handleLoading(t,e){for(let r=0;r({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();await Promise.allSettled(t.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function R6(t){const e=T.useRef(void 0);return T.useEffect(()=>{e.current=t}),e.current}function hYe(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:s,title:l,uniquifyIDs:u=!1}=t;try{const f=mYe(r,s),h=n7(f,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const d=a7(h,{baseURL:e,hash:a,uniquifyIDs:u});if(n){const m=d.querySelector("desc");m?.parentNode&&m.parentNode.removeChild(m);const y=document.createElementNS("http://www.w3.org/2000/svg","desc");y.innerHTML=n,d.prepend(y)}if(typeof l<"u"){const m=d.querySelector("title");if(m?.parentNode&&m.parentNode.removeChild(m),l){const y=document.createElementNS("http://www.w3.org/2000/svg","title");y.innerHTML=l,d.prepend(y)}}return d}catch(f){return o(f)}}function mYe(t,e){return e?e(t):t}function a7(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],s=["href","xlink:href"],l=(u,f)=>s.includes(u)&&(f?!f.includes("#"):!1);return o&&[...t.children].forEach(u=>{if(u.attributes?.length){const f=Object.values(u.attributes).map(h=>{const d=h,m=/url\((.*?)\)/.exec(h.value);return m?.[1]&&(d.value=h.value.replace(m[0],`url(${r}${m[1]}__${n})`)),d});a.forEach(h=>{const d=f.find(m=>m.name===h);d&&!l(h,d.value)&&(d.value=`${d.value}__${n}`)})}return u.children.length?a7(u,e):u}),t}var Sc;function _Ye(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:s=null,onError:l,onLoad:u,src:f,title:h,uniqueHash:d}=t,[m,y]=T.useReducer((H,U)=>({...H,...U}),{content:"",element:null,isCached:e&&Sc.isCached(t.src),status:Ot.IDLE}),{content:v,element:b,isCached:x,status:C}=m,D=R6(t),O=R6(m),R=T.useRef(d??uYe(8)),M=T.useRef(!1),E=T.useRef(!1),A=T.useCallback(H=>{M.current&&(y({status:H.message==="Browser does not support SVG"?Ot.UNSUPPORTED:Ot.FAILED}),l?.(H))},[l]),I=T.useCallback((H,U=!1)=>{M.current&&y({content:H,isCached:U,status:Ot.LOADED})},[]),P=T.useCallback(async()=>{const H=await o7(f,o);I(H)},[o,I,f]),$=T.useCallback(()=>{try{const H=hYe({...t,handleError:A,hash:R.current,content:v}),U=n7(H);if(!U||!T.isValidElement(U))throw new Error("Could not convert the src to a React element");y({element:U,status:Ot.READY})}catch(H){A(H)}},[v,A,t]),z=T.useCallback(async()=>{const H=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(f);let U;if(H?U=H[1]?window.atob(H[2]):decodeURIComponent(H[2]):f.includes("{M.current&&y({content:"",element:null,isCached:!1,status:Ot.LOADING})},[]);T.useEffect(()=>{if(M.current=!0,!(!fu()||E.current)){try{if(C===Ot.IDLE){if(!cYe())throw new Error("Browser does not support SVG");if(!f)throw new Error("Missing src");B()}}catch(H){A(H)}return E.current=!0,()=>{M.current=!1}}},[]),T.useEffect(()=>{if(!(!fu()||!D)&&D.src!==f){if(!f){A(new Error("Missing src"));return}B()}},[A,B,D,f]),T.useEffect(()=>{C===Ot.LOADED&&$()},[C,$]),T.useEffect(()=>{!fu()||!D||D.src!==f||(D.title!==h||D.description!==n)&&$()},[n,$,D,f,h]),T.useEffect(()=>{if(O)switch(C){case Ot.LOADING:{O.status!==Ot.LOADING&&z();break}case Ot.LOADED:{O.status!==Ot.LOADED&&$();break}case Ot.READY:{O.status!==Ot.READY&&u?.(f,x);break}}},[z,$,x,u,O,f,C]);const q=lYe(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return fu()?b?T.cloneElement(b,{ref:a,...q}):[Ot.UNSUPPORTED,Ot.FAILED].includes(C)?r:s:s}function gYe(t){Sc||(Sc=new fYe);const{loader:e}=t,[r,n]=T.useState(Sc.isReady);return T.useEffect(()=>{r||Sc.onReady(()=>{n(!0)})},[r]),r?_.createElement(_Ye,{...t}):e}const yYe=window.location.hostname.endsWith("iobroker.in"),M6=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1),Yi=_.forwardRef(function(e,r){if(e.src){if(typeof e.src=="string"){if(e.src.length<3)return e.sx?_.createElement(st,{component:"span",sx:e.sx,ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src):_.createElement("span",{ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src);if(e.src.startsWith("data:image/svg"))return _.createElement(gYe,{title:e.title||void 0,src:e.src,className:e.className?`iconOwn ${e.className}`:"iconOwn",width:e.style?.width||28,height:e.style?.height||e.style?.width||28,style:e.style||void 0});if(yYe&&!e.src.startsWith("http://")&&!e.src.startsWith("https://")){let n=e.src;return n.startsWith("./")?n=M6+n.substring(2):n.startsWith("/")||(n=M6+n),e.sx?_.createElement(st,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)}):_.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)})}return e.sx?_.createElement(st,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError}):_.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError})}return e.src}return null});Yi.displayName="Icon";const Ei={dialog:{height:"100%"},paper:{height:"calc(100% - 64px)"},content:{textAlign:"center"},textarea:{width:"100%",height:"100%"},img:{width:"auto",height:"calc(100% - 5px)",objectFit:"contain"},dialogTitle:{justifyContent:"space-between",display:"flex"}},Fr={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics","csv"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function A6(t,e){let r="";const n=new Uint8Array(t?.data||t),o=n.byteLength;for(let a=0;a{let a="";o.file!==void 0&&(a=o.file);const s={copyPossible:this.state.copyPossible,ext:this.state.ext};if(a.type==="Buffer")if(n.toLowerCase().endsWith(".json5")){s.ext="json5",s.copyPossible=!0;try{a=atob(A6(a,!0))}catch{console.error("Cannot convert base64 to string"),a=""}}else{const l=je.detectMimeType(A6(a));l&&(s.ext=l,s.copyPossible=Fr.code.includes(l)||Fr.txt.includes(l))}s.copyPossible&&(s.ext&&Fr.txt.includes(s.ext)?(s.text=a,s.editingValue=a):s.ext&&Fr.code.includes(s.ext)&&(s.code=a,s.editingValue=a)),this.setState(s)}).catch(o=>window.alert(`Cannot read file: ${o}`))}}componentDidMount(){this.readFile();const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(r,n,this.onFileChanged).catch(o=>window.alert(`Cannot subscribe on file: ${o}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.unsubscribeFiles(r,n,this.onFileChanged)}onFileChanged=(e,r,n)=>{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,n===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))};getEditorOrViewer(){return _.createElement(zt,{variant:"standard",style:Ei.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&Fr.images.includes(this.state.ext)?this.state.imgError?_.createElement(k2,{style:{...Ei.img,...this.props.getStyleBackgroundImage()}}):_.createElement(Yi,{onError:e=>{e.target.onerror=null,this.setState({imgError:!0})},style:{...Ei.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Fr.audio.includes(this.state.ext)?_.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},_.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Fr.video.includes(this.state.ext)?_.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},_.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},_.createElement("source",{src:this.props.href,type:`video/${this.state.ext}`}))):this.state.code!==null||this.state.text!==null||this.state.editing?this.getEditorOrViewer():null}onSave(){}render(){return _.createElement(co,{sx:{"&.MuiDialog-scrollPaper":Ei.dialog,"& .MuiDialog-paper":Ei.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},_.createElement("div",{style:Ei.dialogTitle},_.createElement(po,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Fr.images.includes(this.state.ext)&&_.createElement("div",null,_.createElement(ur,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},_.createElement(F8,null)))),_.createElement(uo,{style:Ei.content},this.getContent()),_.createElement(lo,null,this.state.copyPossible?_.createElement(At,{color:"grey",onClick:e=>{e.stopPropagation(),e.preventDefault(),je.copyToClipboard(this.state.text||this.state.code||"")},startIcon:_.createElement(WV,null)},this.props.t("Copy content")):null,this.state.editing?_.createElement(At,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:_.createElement(h1,null)},this.props.t("Save")):null,_.createElement(At,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:_.createElement(ti,null)},this.props.t("Close"))))}}const bYe=x2()(vYe),Zs=32,ta=32,Hp=120,N6=64,P6="Not found",Vp={all:W8,images:JV,code:Ab,txt:GV,audio:zV,video:dG},xe={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 8px)",overflowX:"hidden",overflowY:"auto",padding:8},filesDivHint:{position:"absolute",bottom:0,left:20,opacity:.7,fontStyle:"italic",fontSize:12},filesDivTable:{height:"calc(100% - 56px)"},filesDivTile:{height:"calc(100% - 104px)",display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${N6}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:Hp,width:N6,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:je.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:Hp-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:(t.palette.mode==="dark","#FFF")}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:Hp-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:Hp-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:je.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:Zs,display:"inline-flex",lineHeight:`${Zs}px`,"&:hover":{background:t.palette.secondary.light,color:je.invertColor(t.palette.secondary.main,!0)}}),itemNameTable:{display:"inline-block",pl:"10px",fontSize:"1rem",verticalAlign:"top",flexGrow:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden","@media screen and (max-width: 500px)":{textAlign:"end",direction:"rtl"}},itemNameFolderTable:{fontWeight:"bold"},itemSizeTable:{display:"inline-block",width:60,verticalAlign:"top",textAlign:"right",whiteSpace:"nowrap"},itemAccessTable:{verticalAlign:"top",width:60,textAlign:"right",paddingRight:5,display:"flex",justifyContent:"center"},itemImageTable:{display:"inline-block",width:30,marginTop:1,objectFit:"contain",maxHeight:30},itemNoImageTable:{marginTop:6},itemIconTable:{display:"inline-block",marginTop:1,width:30,height:30},itemFolderTable:{},itemFolderTemp:{opacity:.4},itemFolderIconTable:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:ta,height:Zs,minWidth:ta,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${ta/2}px`,"&:hover":{backgroundColor:t.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.08)"},"& span":{pt:"9px"},"& svg":{width:14,height:14,fontSize:"1rem",mt:"-3px",verticalAlign:"middle",color:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:ta,height:Zs,minWidth:ta,padding:0},itemAclButtonTable:{width:ta,height:Zs,minWidth:ta,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:ta,height:Zs,minWidth:ta,verticalAlign:"top",padding:0,"& svg":{width:18,height:18,fontSize:"1.5rem"}},uploadDiv:{top:0,zIndex:1,bottom:0,left:0,right:0,position:"absolute",opacity:.9,textAlign:"center",background:"#FFFFFF"},uploadDivDragging:{opacity:1},uploadCenterDiv:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.palette.mode==="dark"?"#222":"#CCC",display:"flex",alignItems:"center",justifyContent:"center"}),uploadCenterIcon:{width:"25%",height:"25%"},uploadCenterText:{fontSize:24,fontWeight:"bold"},uploadCloseButton:{zIndex:2,position:"absolute",top:30,right:30},uploadCenterTextAndIcon:{position:"absolute",height:"30%",width:"100%",margin:"auto",opacity:.3},menuButtonExpertActive:{color:"#c00000"},menuButtonRestrictActive:{color:"#c05000"},pathDiv:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText,borderRadius:"4px 4px 0 0"}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer",color:"white","&:hover":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:"#FFF"},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},La="0_userdata.0";function Qs(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function dv(t){const e=je.getFileExtension(t);return!!(e?.toLowerCase().match(/[a-z]+/)&&e.length<5)}const Tt="Table",pv="Tile";function I6(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.nameu.startsWith(`${this.limitToPath}/`)||u===this.limitToPath||this.limitToPath?.startsWith(`${u}/`)))}catch{n=[]}let o;this.props.showViewTypeButton?o=this.localStorage.getItem("files.viewType")||Tt:o=Tt;let a=this.props.selected||this.localStorage.getItem("files.selected")||La,s;if(e.restrictToFolder){a=e.restrictToFolder,s=e.restrictToFolder;const u=e.restrictToFolder.split("/");n=[];let f="";for(let h=0;h{if(this.state.viewType===Tt&&!this.findItem(this.state.selected)){const r=this.state.selected.split("/");for(;r.length&&!this.findItem(r.join("/"));)r.pop();let n;r.length?n=r.join("/"):n=La,this.setState({selected:n,path:n,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){this.mounted&&document.getElementById(this.state.selected)?.scrollIntoView()}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`)),this.browseList=[],this.browseListRunning=!1,this.supportSubscribes=await this.props.socket.checkFeatureSupported("BINARY_STATE_EVENT"),this.supportSubscribes&&await this.props.socket.subscribeFiles("*","*",this.onFileChange)}componentWillUnmount(){this.supportSubscribes&&this.props.socket.unsubscribeFiles("*","*",this.onFileChange),this.mounted=!1,this.browseList=null,this.browseListRunning=!1,Object.values(this._tempTimeout).forEach(e=>{e&&clearTimeout(e)}),this._tempTimeout={}}browseFoldersCb(e,r,n){if(!e?.length)n(r);else{const o=e.shift();o?this.browseFolder(o,r).catch(a=>console.error(`Cannot read folder ${o}: ${a.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(e,r,n),0)}):setTimeout(()=>this.browseFoldersCb(e,r,n),0)}}browseFolders(e,r){let n;return r?n=r:(n={},Object.keys(this.state.folders).forEach(o=>n[o]=this.state.folders[o])),e?.length?new Promise(o=>{this.browseFoldersCb(e,n,o)}):Promise.resolve(n)}readDirSerial(e,r){return new Promise((n,o)=>{this.browseList&&(this.browseList.push({resolve:n,reject:o,adapter:e,relPath:r}),this.browseListRunning||this.processBrowseList())})}processBrowseList(e=0){!this.browseListRunning&&this.browseList&&this.browseList.length&&(this.browseListRunning=!0,this.browseList.length>10?this.browseList.length%10||this.setState({queueLength:this.browseList.length}):this.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath||"").then(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.resolve;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.reject;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(e,r,n,o){let a;if(r?a=r:(a={},Object.keys(this.state.folders).forEach(d=>{a[d]=this.state.folders[d]})),a[e]&&!o)return n?Promise.resolve(a):new Promise((d,m)=>{Promise.all(a[e].filter(y=>y.folder).map(y=>this.browseFolder(y.id,a,!0).catch(()=>{}))).then(()=>d(a)).catch(y=>m(new Error(y)))});if(!e||e==="/"){try{let d=await this.props.socket.readMetaItems();const m=[];let y=null;if(this.state.restrictToFolder){const b=this.state.restrictToFolder.split("/")[0];d=d.filter(x=>x._id===b)}else this.state.expertMode||(d=d.filter(b=>!b._id.endsWith(".admin")));const v=d.findIndex(b=>b._id==="system.meta.uuid");if(v!==-1&&d.splice(v,1),d.forEach(b=>{if(this.limitToObjectID&&this.limitToObjectID!==b._id)return;const x={id:b._id,name:b._id,title:b.common&&b.common.name||b._id,meta:!0,from:b.from,ts:b.ts,color:b.common&&b.common.color,icon:b.common&&b.common.icon,folder:!0,acl:b.acl,level:0};x.id===La?y=x:m.push(x)}),m.sort((b,x)=>b.id>x.id?1:b.idb.folder).map(b=>this.browseFolder(b.id,a,!0).catch(()=>{}))).then(()=>a)}catch(d){const m=d;this.initialReadFinished&&window.alert(`Cannot read meta items: ${m.message}`),a[e||"/"]=[]}return a}const s=e.split("/"),l=s.length,u=s.shift(),f=s.join("/");let h;try{h=await this.readDirSerial(u||"",f)}catch(d){if(d==="Not exists"&&u==="0_userdata.0")h=[];else throw d}try{const d=[];if(h.forEach(m=>{const y={id:`${e}/${m.file}`,ext:je.getFileExtension(m.file),folder:m.isDir,name:m.file,size:m.stats?.size,modified:m.modifiedAt,acl:m.acl,level:l};this.state.restrictToFolder?(y.folder&&(y.id.startsWith(`${this.state.restrictToFolder}/`)||y.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${y.id}/`))||y.id.startsWith(`${this.state.restrictToFolder}/`))&&d.push(y):this.limitToPath?(y.folder&&(y.id.startsWith(`${this.limitToPath}/`)||y.id===this.limitToPath||this.limitToPath.startsWith(`${y.id}/`))||y.id.startsWith(`${this.limitToPath}/`))&&d.push(y):d.push(y)}),d.sort(I6),a[e]=d,!n)return Promise.all(d.filter(m=>m.folder).map(m=>this.browseFolder(m.id,a,!0))).then(()=>a)}catch(d){const m=d;this.initialReadFinished&&window.alert(`Cannot read ${u}${f?`/${f}`:""}: ${m?.message}`),a[e]=[]}return a}toggleFolder(e,r){r?.stopPropagation();const n=[...this.state.expanded],o=n.indexOf(e.id);o===-1?(n.push(e.id),n.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(n)),e.temp?this.setState({expanded:n}):this.browseFolder(e.id).then(a=>this.setState({expanded:n,folders:a})).catch(a=>window.alert(a===P6?this.props.t('ra_Cannot find "%s"',e.id):this.props.t('ra_Cannot read "%s"',e.id)))):(n.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(n)),this.setState({expanded:n}))}onFileChange=(e,r,n)=>{const o=`${e}/${r}`,a=o.lastIndexOf("/"),s=o.substring(0,a);console.log(`File changed ${o}[${n}]`),this.state.folders[s]&&(this._tempTimeout[s]&&clearTimeout(this._tempTimeout[s]),this._tempTimeout[s]=setTimeout(()=>{delete this._tempTimeout[s],this.browseFolder(s,null,!1,!0).then(l=>this.setState({folders:l})).catch(l=>console.error(`Cannot read folder: ${l.message}`))},300))};changeFolder(e,r){e?.stopPropagation(),this.lastSelect=Date.now();let n=r||Qs(this.state.currentDir);if(n==="/"&&(n=""),this.state.viewType==="Tile"&&this.refFileDiv.current?.scrollTop&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem("files.currentDir",n),r&&e&&(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)){this.setState({selected:n});return}if(n&&!this.state.folders[n]){this.browseFolder(n).then(o=>this.setState({folders:o,path:n,currentDir:n,selected:n,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(o=>console.error(`Cannot read folder: ${o.message}`));return}this.setState({currentDir:n,selected:n,path:n,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(""),this.state.viewType==="Tile"&&this.scrollPositions[this.state.currentDir]){const o=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=o)}})}select(e,r,n){r&&r.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",e),this.setState({selected:e,path:e,pathFocus:!1},()=>{if(this.props.onSelect){const o=je.getFileExtension(e);(!this.props.filterFiles||o&&this.props.filterFiles.includes(o))&&(!this.state.filterByType||o&&Fr[this.state.filterByType].includes(o))?this.props.onSelect(e,!1,!!this.state.folders[e]):this.props.onSelect("")}n&&n()})}getText(e){if(e)return typeof e=="object"?e[this.props.lang]||e.en||void 0:e}renderFolder(e,r){if(this.state.filterEmpty&&!this.state.folders[e.id]?.length&&e.id!==La&&!e.temp)return null;const n=r?YJe:E1,o=this.state.viewType===Tt?e.level*this.levelPadding:0,a=e.name===La,s=a||e.name==="vis.0"||e.name==="vis-2.0",l=je.getStyle(this.props.theme,xe[`itemFolderIcon${this.state.viewType}`],s&&xe.specialFolder);return _.createElement(st,{component:"div",key:e.id,id:e.id,style:this.state.viewType===Tt?{marginLeft:o,width:`calc(100% - ${o}px)`}:void 0,onClick:u=>this.state.viewType===Tt?this.select(e.id,u):this.changeFolder(u,e.id),onDoubleClick:u=>this.state.viewType===Tt&&this.toggleFolder(e,u),title:this.getText(e.title),className:"browserItem",sx:je.getStyle(this.props.theme,xe[`item${this.state.viewType}`],xe[`itemFolder${this.state.viewType}`],this.state.selected===e.id?xe.itemSelected:{},e.temp?xe.itemFolderTemp:{})},_.createElement(n,{style:l,onClick:this.state.viewType===Tt?u=>this.toggleFolder(e,u):void 0}),_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,xe[`itemName${this.state.viewType}`],xe[`itemNameFolder${this.state.viewType}`])},a?this.props.t("ra_User files"):e.name),_.createElement(st,{component:"div",style:xe[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.state.folders[e.id]?this.state.folders[e.id].length:""),_.createElement(st,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.props.expertMode?this.formatAcl(e.acl):null),this.state.viewType===Tt&&this.props.expertMode?_.createElement(st,{component:"div",sx:{...xe.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===Tt&&this.props.allowDownload?_.createElement("div",{style:xe[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===Tt&&this.props.allowDelete&&this.state.folders[e.id]&&this.state.folders[e.id].length?_.createElement(ur,{"aria-label":"delete",onClick:u=>{u.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:xe[`itemDeleteButton${this.state.viewType}`],size:"large"},_.createElement(wu,{fontSize:"small"})):this.state.viewType===Tt&&this.props.allowDelete?_.createElement(st,{component:"div",sx:xe[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return _.createElement(st,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:e=>this.changeFolder(e),title:this.props.t("ra_Back to %s",Qs(this.state.currentDir)),className:"browserItem",sx:je.getStyle(this.props.theme,xe[`item${this.state.viewType}`],xe[`itemFolder${this.state.viewType}`])},_.createElement(E1,{style:je.getStyle(this.props.theme,xe[`itemFolderIcon${this.state.viewType}`])}),_.createElement(jV,{sx:xe.itemFolderIconBack}),_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,xe[`itemName${this.state.viewType}`],xe[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(e){return _.createElement("div",{style:xe[`itemSize${this.state.viewType}`]},e||e===0?je.formatBytes(e):"")}formatAcl(e){const r=e?e.permissions||e.file:0;let n;return r?n=r.toString(16).padStart(3,"0"):n="",_.createElement("div",{style:xe[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?_.createElement(ur,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:xe[`itemAclButton${this.state.viewType}`]},n||"---"):n||"---")}getFileIcon(e){switch(e){case"json":case"json5":return _.createElement(LV,{style:xe[`itemIcon${this.state.viewType}`]});case"css":return _.createElement(FV,{style:xe[`itemIcon${this.state.viewType}`]});case"js":case"ts":return _.createElement(Ab,{style:xe[`itemIcon${this.state.viewType}`]});case"html":case"md":return _.createElement(B8,{style:xe[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return _.createElement(eG,{style:xe[`itemIcon${this.state.viewType}`]});default:return _.createElement(W8,{style:xe[`itemIcon${this.state.viewType}`]})}}static getEditFile(e){switch(e){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":case"csv":return!0;default:return!1}}setStateBackgroundImage=()=>{const e=["light","dark","colored","delete"];this.setState(({backgroundImage:r})=>r&&e.indexOf(r)!==-1&&e.length-1!==e.indexOf(r)?(this.localStorage.setItem("files.backgroundImage",e[e.indexOf(r)+1]),{backgroundImage:e[e.indexOf(r)+1]}):(this.localStorage.setItem("files.backgroundImage",e[0]),{backgroundImage:e[0]}))};getStyleBackgroundImage=()=>{switch(this.state.backgroundImage){case"light":return xe.backgroundImageLight;case"dark":return xe.backgroundImageDark;case"colored":return xe.backgroundImageColored;case"delete":return null;default:return null}};renderFile(e){const r=this.state.viewType===Tt?e.level*this.levelPadding:0,n=je.getFileExtension(e.name);return _.createElement(st,{component:"div",key:e.id,id:e.id,onDoubleClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Fr[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},onClick:o=>this.select(e.id,o),style:this.state.viewType===Tt?{marginLeft:r,width:`calc(100% - ${r}px)`}:void 0,className:"browserItem",sx:je.getStyle(this.props.theme,xe[`item${this.state.viewType}`],xe[`itemFile${this.state.viewType}`],this.state.selected===e.id?xe.itemSelected:void 0)},n&&Fr.images.includes(n)?this.state.fileErrors.includes(e.id)?_.createElement(k2,{style:{...xe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...xe[`itemNoImage${this.state.viewType}`]}}):_.createElement(Yi,{onError:o=>{o.target.onerror=null;const a=[...this.state.fileErrors];a.includes(e.id)||(a.push(e.id),this.setState({fileErrors:a}))},style:{...xe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+e.id,alt:e.name}):this.getFileIcon(n),_.createElement(st,{component:"div",sx:xe[`itemName${this.state.viewType}`]},e.name),_.createElement(st,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(e.size)),_.createElement(st,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.props.expertMode?this.formatAcl(e.acl):null),_.createElement(st,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.props.expertMode&&C2.getEditFile(n)?_.createElement(ur,{"aria-label":"edit",onClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Fr[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},sx:xe.itemDeleteButtonTable,size:"large"},_.createElement(qV,{fontSize:"small"})):_.createElement(st,{component:"div",sx:xe[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===Tt&&this.props.allowDownload?_.createElement(st,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:xe.itemDownloadButtonTable,tabIndex:0,download:e.id,href:this.imagePrefix+e.id,onClick:o=>o.stopPropagation()},_.createElement(oG,null)):null,this.state.viewType===Tt&&this.props.allowDelete&&e.id!=="vis.0/"&&e.id!=="vis-2.0/"&&e.id!==La?_.createElement(ur,{"aria-label":"delete",onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:xe[`itemDeleteButton${this.state.viewType}`],size:"large"},_.createElement(wu,{fontSize:"small"})):this.state.viewType===Tt&&this.props.allowDelete?_.createElement(st,{component:"div",sx:xe[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(e){if(this.state.folders?.[e]){if(this.state.viewType===pv){const n=[];return e&&e!=="/"&&n.push(this.renderBackFolder()),this.state.folders[e].forEach(o=>{o.folder?n.push(this.renderFolder(o)):(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&Fr[this.state.filterByType].includes(o.ext))&&n.push(this.renderFile(o))}),n}const r=[];return this.state.folders[e].forEach(n=>{if(n.folder){const o=this.state.expanded.includes(n.id),a=this.renderFolder(n,o);if(Array.isArray(a)?a.forEach(s=>r.push(s)):r.push(a),this.state.folders[n.id]&&o){const s=this.renderItems(n.id);Array.isArray(s)?s.forEach(l=>r.push(l)):r.push(s)}}else(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Fr[this.state.filterByType].includes(n.ext))&&r.push(this.renderFile(n))}),r}return _.createElement("div",{style:{position:"relative"}},_.createElement(oh,{key:e,color:"secondary",size:24}),_.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const e=this.props.showTypeSelector?Vp[this.state.filterByType||"all"]||Vp.all:null,r=this.findFirstFolder(this.state.selected);return _.createElement(BT,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?_.createElement(ur,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...xe.menuButton,...this.state.restrictToFolder?xe.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},_.createElement(VV,{fontSize:"small"})):null,this.props.showExpertButton?_.createElement(ur,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...xe.menuButton,...this.state.expertMode?xe.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},_.createElement(JJe,null)):null,this.props.showViewTypeButton?_.createElement(ur,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:xe.menuButton,"aria-label":"view mode",onClick:()=>{const n=this.state.viewType===Tt?pv:Tt;this.localStorage.setItem("files.viewType",n);let o=this.state.selected;dv(o)&&(o=Qs(o)),this.setState({viewType:n,currentDir:o},()=>{this.state.viewType===Tt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==Tt?_.createElement(ZV,{fontSize:"small"}):_.createElement(pG,{fontSize:"small"})):null,_.createElement(ur,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:xe.menuButton,color:this.state.filterEmpty?"secondary":"inherit","aria-label":"filter empty",onClick:()=>{this.localStorage.setItem("file.empty",this.state.filterEmpty?"false":"true"),this.setState({filterEmpty:!this.state.filterEmpty})},size:"small"},_.createElement(HV,{fontSize:"small"})),_.createElement(ur,{edge:"start",title:this.props.t("ra_Reload files"),style:xe.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},_.createElement(rG,{fontSize:"small"})),this.props.allowCreateFolder?_.createElement(ur,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:xe.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},_.createElement(UV,{fontSize:"small"})):null,this.props.allowUpload?_.createElement(ur,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:xe.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},_.createElement(s4,{fontSize:"small"})):null,this.props.showTypeSelector&&e?_.createElement(B_,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:xe.tooltip}}},_.createElement(ur,{size:"small",onClick:n=>this.setState({showTypesMenu:n.target})},_.createElement(e,{fontSize:"small"}))):null,this.state.showTypesMenu?_.createElement(PT,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(Vp).map(n=>{const o=Vp[n];return _.createElement(Qt,{key:n,selected:this.state.filterByType===n,onClick:()=>{n==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",n),this.setState({filterByType:n,showTypesMenu:null}))}},_.createElement(aL,null,_.createElement(o,{fontSize:"small"})),_.createElement(lL,null,this.props.t(`ra_fileType_${n}`)))})):null,_.createElement(B_,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:xe.tooltip}}},_.createElement(ur,{color:"inherit",edge:"start",style:xe.menuButton,onClick:this.setStateBackgroundImage,size:"small"},_.createElement(F8,{fontSize:"small"}))),this.state.viewType!==Tt&&this.props.allowDelete?_.createElement(B_,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:xe.tooltip}}},_.createElement("span",null,_.createElement(ur,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===La,color:"inherit",edge:"start",style:xe.menuButton,onClick:n=>{n.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},_.createElement(wu,{fontSize:"small"})))):null)}findItem(e,r){if(r=r||this.state.folders,!r)return null;const n=e.split("/");n.pop();const o=n.join("/")||"/";return r[o]&&r[o].find(a=>a.id===e)||null}renderInputDialog(){if(this.state.addFolder){const e=this.findFirstFolder(this.state.selected);return e?_.createElement(XJe,{key:"inputDialog",applyText:this.props.t("ra_Create"),cancelText:this.props.t("ra_Cancel"),titleText:this.props.t("ra_Create new folder in %s",this.state.selected),promptText:this.props.t("ra_If no file will be created in the folder, it will disappear after the browser closed"),labelText:this.props.t("ra_Folder name"),verify:r=>this.state.folders[e].find(n=>n.name===r)?"":this.props.t("ra_Duplicate name"),onClose:r=>{if(r){const n={};Object.keys(this.state.folders).forEach(l=>n[l]=this.state.folders[l]);const o=this.findItem(e),a=`${e}/${r}`;n[e].push({id:a,level:(o?.level||0)+1,name:r,folder:!0,temp:!0}),n[e].sort(I6),n[a]=[];const s=[...this.state.expanded];s.includes(e)||(s.push(e),s.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(s)),this.setState({addFolder:!1,folders:n,expanded:s},()=>this.select(a))}else this.setState({addFolder:!1})},replace:r=>r.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const e=window.document.getElementsByClassName("browserItem");for(let r=0;rthis.setState({uploadFile:!1})},_.createElement(ti,null)),_.createElement(fd,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:e=>{let r=e.length;e.forEach(n=>{const o=new FileReader;o.onabort=()=>console.log("file reading was aborted"),o.onerror=()=>console.log("file reading has failed"),o.onload=()=>{const a=this.findFirstFolder(this.state.selected);if(!a)window.alert(this.props.t("ra_Invalid parent folder!"));else{const s=`${a}/${n.name}`;this.uploadFile(s,o.result).then(()=>{--r||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const l=[...this.state.expanded];l.includes(a)||(l.push(a),l.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(l))),this.setState({expanded:l},()=>this.select(s))}else setTimeout(()=>this.browseFolder(a,null,!1,!0).then(l=>{const u=[...this.state.expanded];u.includes(a)||(u.push(a),u.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(u))),this.setState({folders:l,expanded:u},()=>this.select(s))}),500)})})}},o.readAsArrayBuffer(n)})}},({getRootProps:e,getInputProps:r})=>_.createElement("div",{style:{...xe.uploadDiv,...this.state.uploadFile==="dragging"?xe.uploadDivDragging:void 0},...e()},_.createElement("input",{...r()}),_.createElement(st,{component:"div",sx:xe.uploadCenterDiv},_.createElement("div",{style:xe.uploadCenterTextAndIcon},_.createElement(s4,{style:xe.uploadCenterIcon}),_.createElement("div",{style:xe.uploadCenterText},this.state.uploadFile==="dragging"?this.props.t("ra_Drop file here"):this.props.t("ra_Place your files here or click here to open the browse dialog"))))))]:null}deleteRecursive(e){const r=this.findItem(e);if(r?.folder)return(this.state.folders[e]?Promise.all(this.state.folders[e].map(a=>this.deleteRecursive(a.id))):Promise.resolve()).then(()=>{if(r.level>=1){const a=e.split("/"),s=a.shift();this.props.socket.deleteFolder(s||"",a.join("/")).then(()=>{const l=JSON.parse(JSON.stringify(this.state.folders));delete l[r.id];const u=Qs(r.id),f=l[u];if(f){const h=f.findIndex(d=>d.id===r.id);h!==-1&&f.splice(h,1),this.select(u,null,()=>this.setState({folders:l}))}})}});const n=e.split("/"),o=n.shift();return n.length?this.props.socket.deleteFile(o||"",n.join("/")).catch(a=>window.alert(`Cannot delete file: ${a}`)):Promise.resolve()}deleteItem(e){e=e||this.state.deleteItem,this.state.suppressDeleteConfirm&&(this.suppressDeleteConfirm=Date.now()+6e4*5),this.setState({deleteItem:"",suppressDeleteConfirm:!1},()=>this.deleteRecursive(e).then(()=>{const r={},n=this.state.expanded.indexOf(e);if(n!==-1){const o=[...this.state.expanded];o.splice(n,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.expanded=o}if(this.state.selected===e){const o=this.state.selected.split("/");o.pop(),r.selected=o.join("/")}if(this.supportSubscribes)this.setState(r);else{const o=this.findFirstFolder(e),a={};Object.keys(this.state.folders).forEach(s=>{s!==o&&!s.startsWith(`${o}/`)&&(a[s]=this.state.folders[s])}),r.folders=a,this.setState(r,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],a).then(s=>this.setState({folders:s})).catch(s=>console.error(s))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?_.createElement(co,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},_.createElement(po,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),_.createElement(uo,null,_.createElement(uh,null,this.props.t("ra_Are you sure?")),_.createElement(ut,{control:_.createElement(dr,{checked:this.state.suppressDeleteConfirm,onChange:()=>{this.setState({suppressDeleteConfirm:!this.state.suppressDeleteConfirm})}}),label:this.props.t("ra_no confirm for 5 mins")})),_.createElement(lo,null,_.createElement(At,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),_.createElement(At,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const e=this.props.FileViewer||bYe;return this.state.viewer?_.createElement(e,{supportSubscribes:this.supportSubscribes||void 0,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile||void 0,themeType:this.props.themeType||"light",setStateBackgroundImage:this.setStateBackgroundImage,getStyleBackgroundImage:this.getStyleBackgroundImage,t:this.props.t,socket:this.props.socket,onClose:()=>this.setState({viewer:"",formatEditFile:""})}):null}renderError(){return this.state.errorText?_.createElement(H8,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(e){this.cacheFolders||=JSON.parse(JSON.stringify(this.state.folders));let r;e.forEach(n=>{const o=this.findItem(n.id,this.cacheFolders);o&&JSON.stringify(o.acl)!==JSON.stringify(n.acl)&&(o.acl=n.acl,r=!0)}),r&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const n=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:n})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let e=this.state.path;dv(this.state.path)&&(e=Qs(this.state.path)),new Promise(r=>{this.state.folders[e]?r(!0):this.browseFolder(e).then(n=>this.setState({folders:n},()=>r(!0))).catch(n=>this.setState({errorText:n===P6?this.props.t('ra_Cannot find "%s"',e):this.props.t('ra_Cannot read "%s"',e)}))}).then(r=>r&&this.setState({selected:this.state.path,currentDir:e,pathFocus:!1})).catch(r=>console.error(r))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const e=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),r=[];return _.createElement(rj,{style:{paddingLeft:8,color:"#FFF"}},e.map((n,o)=>{n&&r.push(n);const a=r.join("/");return othis.changeFolder(s,a||"/")},n||this.props.t("ra_Root")):_.createElement("div",{style:xe.pathDivBreadcrumbSelected,key:`${this.state.selected}_${o}`,onClick:()=>this.setState({pathFocus:!0})},n)}))}renderPath(){return _.createElement(st,{component:"div",key:"path",sx:xe.pathDiv},this.state.pathFocus?_.createElement(no,{value:this.state.path,onKeyDown:e=>{e.key==="Enter"?this.changeToPath():e.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:_.createElement(ur,{size:"small",onClick:()=>this.changeToPath()},_.createElement(KV,null)),onBlur:()=>this.changeToPath(),onChange:e=>this.setState({path:e.target.value}),style:xe.pathDivInput}):this.renderBreadcrumb())}render(){return this.props.ready?(this.state.loadAllFolders&&!this.foldersLoading&&(this.foldersLoading=!0,setTimeout(()=>{this.setState({loadAllFolders:!1,folders:{}},()=>{this.foldersLoading=!1,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`))})},300)),_.createElement("div",{style:{...xe.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===pv?this.renderPath():null,_.createElement("div",{style:{...xe.filesDiv,...xe[`filesDiv${this.state.viewType}`]},onClick:e=>{this.state.viewType!==Tt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(e,this.state.currentDir||"/"):e.stopPropagation())},id:"dev",ref:this.refFileDiv},this.state.viewType===Tt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==Tt?_.createElement("div",{style:xe.filesDivHint},this.props.t("ra_select_folder_hint")):null),this.props.allowUpload?this.renderInputDialog():null,this.props.allowUpload?this.renderUpload():null,this.props.allowDelete?this.renderDeleteDialog():null,this.props.allowView?this.renderViewDialog():null,this.state.modalEditOfAccess&&this.props.modalEditOfAccessControl?this.props.modalEditOfAccessControl(this):null,this.renderError())):_.createElement(MT,null)}}const wYe=x2()(C2);function SYe(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r?.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function xYe(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}class uf extends T.Component{svg;static REMOTE_SERVER=window.location.hostname.includes("iobroker.in");static REMOTE_PREFIX=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);constructor(e){super(e),this.state={svg:!!this.props.src?.startsWith("data:"),created:!0,color:this.props.color||"",src:this.props.src||"",imgError:!1,showError:!!this.props.showError},this.svg=this.state.svg&&this.state.src?this.getSvgFromData(this.state.src):null}static getDerivedStateFromProps(e,r){const n={};let o=!1;return e&&r&&e.src!==r.src&&(n.src=e.src,n.svg=e.src?.startsWith("data:"),n.created=!1,o=!0),e&&r&&e.color!==r.color&&(n.color=e.color,n.created=!1,o=!0),e&&r&&e.showError!==r.showError&&(n.showError=e.showError,o=!0),o?n:null}getSvgFromData(e){const r="data:image/svg+xml;base64,";if(!e.startsWith(r))return null;e=e.substring(r.length);try{e=atob(e);const n=SYe(e),o=n.innerHTML,a=xYe(n.attributes);return n.remove(),_.createElement(st,{component:"svg",sx:this.props.sx,className:this.props.className,style:this.state.color?{color:this.state.color}:void 0,...a,dangerouslySetInnerHTML:{__html:o}})}catch{}return null}render(){if(this.state.svg)return this.state.created||setTimeout(()=>{this.svg=this.state.src?this.getSvgFromData(this.state.src):null,this.setState({created:!0})},50),this.svg;if(this.state.src){if(this.state.imgError||!this.state.src)return _.createElement(k2,{className:this.props.className});if(uf.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let e=(this.props.imagePrefix||"")+this.state.src;return e.startsWith("./")?e=uf.REMOTE_PREFIX+e.substring(2):e.startsWith("/")||(e=uf.REMOTE_PREFIX+e),_.createElement(st,{component:"img",sx:this.props.sx,className:this.props.className,src:`https://remote-files.iobroker.in${e}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return _.createElement(st,{component:"img",sx:this.props.sx,className:this.props.className,src:(this.props.imagePrefix||"")+this.state.src,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return null}}var fv={},Xl={},Ti={},j6;function $2(){if(j6)return Ti;j6=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.StateType=Ti.Types=void 0;var t;(function(r){r.unknown="unknown",r.airCondition="airCondition",r.blind="blind",r.blindButtons="blindButtons",r.button="button",r.buttonSensor="buttonSensor",r.camera="camera",r.chart="chart",r.cie="cie",r.ct="ct",r.dimmer="dimmer",r.door="door",r.fireAlarm="fireAlarm",r.floodAlarm="floodAlarm",r.gate="gate",r.hue="hue",r.humidity="humidity",r.illuminance="illuminance",r.image="image",r.info="info",r.instance="instance",r.light="light",r.location="location",r.locationOne="locationOne",r.lock="lock",r.media="media",r.motion="motion",r.percentage="percentage",r.rgb="rgb",r.rgbSingle="rgbSingle",r.rgbwSingle="rgbwSingle",r.slider="slider",r.socket="socket",r.temperature="temperature",r.thermostat="thermostat",r.vacuumCleaner="vacuumCleaner",r.volume="volume",r.volumeGroup="volumeGroup",r.warning="warning",r.weatherCurrent="weatherCurrent",r.weatherForecast="weatherForecast",r.window="window",r.windowTilt="windowTilt"})(t||(Ti.Types=t={}));var e;return(function(r){r.Number="number",r.String="string",r.Boolean="boolean"})(e||(Ti.StateType=e={})),Ti}var zr={},z6;function E2(){if(z6)return zr;z6=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.checkEnum=t,zr.roleOrEnum=e,zr.roleOrEnumLight=o,zr.roleOrEnumBlind=l,zr.roleOrEnumGate=h,zr.roleOrEnumWindow=m,zr.roleOrEnumDoor=b,zr.getEnums=x,zr.getAllStatesInChannel=C,zr.getAllStatesInDevice=D,zr.getObjectsBelowId=O,zr.getFunctionEnums=R,zr.getParentId=M;function t(E,A){let I=!1;return E&&E.forEach(P=>{const $=P.lastIndexOf(".");$!==-1&&(P=P.substring($+1));for(const z in A)if(Object.prototype.hasOwnProperty.call(A,z)&&A[z].find(B=>B.test(P)))return I=!0,!1}),I}function e(E,A,I,P){return E.common.role&&I?.includes(E.common.role)?!0:t(A,P)}const r={en:[/lights?/i,/lamps?/i,/ceilings?/i],de:[/licht(er)?/i,/lampen?/i,/beleuchtung(en)?/i],ru:[/свет/i,/ламп[аы]/i,/торшеры?/,/подсветк[аи]/i,/лампочк[аи]/i,/светильники?/i]},n=["switch.light","dimmer","value.dimmer","level.dimmer","sensor.light","state.light"];function o(E,A){return e(E,A,n,r)}const a={en:[/blinds?/i,/windows?/i,/shutters?/i],de:[/rollladen?/i,/fenstern?/i,/beschattung(en)?/i,/jalousien?/i],ru:[/ставни/i,/рольставни/i,/окна|окно/,/жалюзи/i]},s=["blind","level.blind","value.blind","action.stop","button.stop","button.stop.blind","button.open.blind","button.close.blind","level.tilt","value.tilt","button.tilt.open","button.tilt.close","button.tilt.stop"];function l(E,A){return e(E,A,s,a)}const u={en:[/gates?/i],de:[/^toren$/i,/^tor$/i],ru:[/ворота/i]},f=["gate","value.gate","switch.gate","action.stop","button.stop"];function h(E,A){return e(E,A,f,u)}const d=["window","state.window","sensor.window","value.window"];function m(E,A){return e(E,A,d,a)}const y={en:[/doors?/i,/gates?/i,/wickets?/i,/entry|entries/i],de:[/^türe?/i,/^tuere?/i,/^tore?$/i,/einfahrt(en)?/i,/pforten?/i],ru:[/двери|дверь/i,/ворота/i,/калитка|калитки/,/въезды?/i,/входы?/i]},v=["door","state.door","sensor.door"];function b(E,A){return e(E,A,v,y)}function x(){return{door:{roles:v,words:y},window:{roles:d,words:a},blind:{roles:s,words:a},gate:{roles:f,words:u},light:{roles:n,words:r}}}function C(E,A){const I=[],P=new RegExp(`^${A.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+$`);return E.forEach($=>P.test($)&&I.push($)),I}function D(E,A){const I=[],P=new RegExp(`^${A.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+\\.[^.]+$`);return E.forEach($=>P.test($)&&I.push($)),I}function O(E,A){const I=[];A+=".";let P=0,$=E.length-1,z=-1;for(;P<=$;){const B=Math.floor((P+$)/2);E[B]=E.length)return I;for(let B=z;B{a[h].common.members.includes(s)&&f.push(h)}),!f.length&&((u=a[s])===null||u===void 0?void 0:u.type)==="state"){const h=(0,e.getParentId)(s);a[h]&&(a[h].type==="channel"||a[h].type==="device")&&this.enums.forEach(d=>{a[d].common.members.includes(h)&&f.push(d)})}return f.length?f:null}static copyState(a,s){const l=s||JSON.parse(JSON.stringify(a));return l.original=a.original||a,"enums"in a&&a.enums&&(l.enums=a.enums),"role"in a&&a.role&&(l.role=a.role),"channelRole"in a&&a.channelRole&&(l.channelRole=a.channelRole),l}_testOneState(a){var s,l,u,f,h,d;const m=a.objects,y=a.pattern,v=a.state,b=a.channelStates,x=a.usedIds,C=a.usedInCurrentDevice,D=a.ignoreIndicators,O=a.ignoreEnums,R=a.sortedKeys;let M=a.result,E=!1;for(const A of b)if(!(v.name==="COVER"&&M?.states.find(I=>I.id&&I.name==="COVER"))){if(v.indicator&&D){const P=A.split(".").pop()||"";if(P&&D.includes(P))continue}if(!v.indicator){if(C.includes(A))continue;if(!v.notSingle){if(!a.detectAllPossibleDevices){if(x.includes(A))continue}}}if(this._applyPattern(m,A,v,O,R)){if(M||(M=JSON.parse(JSON.stringify(r.patterns[y])),a.result=M,M?.states.forEach((I,P)=>ro.copyState(r.patterns[y].states[P],I))),M.states.find(({id:I})=>I===A))E=!0;else for(const I of M.states)if(I.name===v.name){if(I.id){let P;a.favorId&&(A===a.favorId?P=!0:I.id===a.favorId&&(P=!1));const $=(u=(l=(s=m[I.id])===null||s===void 0?void 0:s.common)===null||l===void 0?void 0:l.role)!==null&&u!==void 0?u:"",z=(d=(h=(f=m[A])===null||f===void 0?void 0:f.common)===null||h===void 0?void 0:h.role)!==null&&d!==void 0?d:"",B=I.defaultRole;if(B&&P===void 0&&(z===B?P=!0:$===B&&(P=!1)),P===void 0){const q=z.split("."),H=q.length,U=$.split("."),X=U.length;z===""||q[0]==="state"&&U[0]!=="state"?P=!1:q[0]!=="state"&&U[0]==="state"||H>X?P=!0:H1)){for(const I of b)if(I!==A&&(v.indicator||!C.includes(I)&&(v.notSingle||!x.includes(I)))&&this._applyPattern(m,I,v,O,R))if(v.indicator||C.push(I),Array.isArray(v)){const P=ro.copyState(v[0]);P.id=I,M.states.push(P)}else{const P=ro.copyState(v);P.id=I,M.states.push(P)}}}}return E}static findParentChannelOrDevice(a,s,l){if(!a[s])return;const u=s.split("."),f=s;if(a[s].type==="state"&&(u.pop(),s=u.join(".")),u.length<=2)return s;const h=a[s];if(h?.type==="device"||l&&h?.type==="channel")return s;if(l)return;u.pop();const d=u.join("."),m=a[d];if(!m)return h?s:f;if(m.type==="device"||u.length<=2)return d;if(h?.type==="channel")return s;u.pop();const y=u.join("."),v=a[y];return!v||v.type!=="device"&&v.type!=="channel"?d:y}static getChannelOrDeviceStates(a,s,l,u=!1,f=!1){var h;const d=(h=a[s])===null||h===void 0?void 0:h.type;switch(d){case void 0:return[...(0,e.getObjectsBelowId)(l,s)];case"state":case"channel":case"device":case"folder":if(u&&d!=="device"){const m=ro.findParentChannelOrDevice(a,s);return m&&m!==s?[...(0,e.getObjectsBelowId)(l,m)]:[s]}if(d!=="state")return[...(0,e.getObjectsBelowId)(l,s)];if(f){const m=ro.findParentChannelOrDevice(a,s,!0);return m&&m!==s?[...(0,e.getObjectsBelowId)(l,m)]:[s]}return[s];default:return[s]}}static patternIsAllowed(a,s,l){if(!a)return!1;if(Array.isArray(a.type)){for(let u=0;u{const f=a.indexOf(l),h=a.indexOf(u);if(f===-1||h===-1)return;const d=a.splice(f,1);a.splice(h,0,...d)}),a}_detectNext(a){var s,l,u,f;const{objects:h,id:d,_usedIdsOptional:m=[],ignoreIndicators:y,prioritizedTypes:v,detectParent:b,detectOnlyChannel:x,allowedTypes:C,excludedTypes:D,_keysOptional:O,detectAllPossibleDevices:R}=a;let{_patternList:M}=a;a._usedIdsOptional=m;const E=ro.getChannelOrDeviceStates(h,d,O||[],b,x);if(!(!((s=h[d])===null||s===void 0)&&s.common)&&!E.length)return null;if((l=a._checkedPatterns)!==null&&l!==void 0||(a._checkedPatterns=[]),!M){const P=Object.keys(r.patterns).filter($=>ro.patternIsAllowed(r.patterns[$],C,D));M=v?this.sortTypes(P,v):P,a._patternList=M}const A={objects:h,channelStates:E,usedIds:m,ignoreIndicators:y||[],pattern:"unknown",usedInCurrentDevice:[],state:{},ignoreEnums:!!a.ignoreEnums,sortedKeys:O,favorId:a.detectParent?void 0:d,detectAllPossibleDevices:R},I=(u=h[d])===null||u===void 0?void 0:u.type;for(const P of M){if(a._checkedPatterns.includes(P))continue;a._checkedPatterns.push(P),delete A.result,A.pattern=P,A.usedInCurrentDevice=[];for(const z of r.patterns[P].states){let B=!1;if(A.state=z,this._testOneState(A)&&(B=!0),z.required&&!B){delete A.result;break}}if(!ro.allRequiredStatesFound(A))continue;A.usedInCurrentDevice.forEach(z=>m.push(z));let $;if(I!=="device"){const z=(f=ro.findParentChannelOrDevice(h,d))!==null&&f!==void 0?f:d;if(h[z]&&(h[z].type==="channel"||h[z].type==="device")){$=(0,e.getObjectsBelowId)(O,z);for(const B of $)A.result.states.forEach((q,H)=>{!q.id&&(q.indicator||q.searchInParent)&&!q.noDeviceDetection&&this._applyPattern(h,B,q.original,!!a.ignoreEnums,A.sortedKeys)&&A.result&&(A.result.states[H].id=B)})}}if(A.result.states.forEach(z=>ro.cleanState(z,A.objects)),a.limitTypesToOneOf){for(const z of a.limitTypesToOneOf)if(z.includes(P))for(const B of z)B===P||a._checkedPatterns.includes(B)||a._checkedPatterns.push(B)}return A.result}return null}detect(a){var s;const{objects:l,id:u,ignoreCache:f,detectAllPossibleDevices:h}=a;let{_keysOptional:d,_usedIdsOptional:m}=a;if(!f&&this.cache[u]){const{allowedTypes:b=[],excludedTypes:x=[]}=a;if(!b.length&&!x.length)return this.cache[u];const C=this.cache[u].filter(({type:D})=>b.includes(D)&&!x.includes(D));if(C.length)return C}d?a._keysOptionalSorted||d.sort():(d=Object.keys(l),d.sort(),a._keysOptional=d),m&&!a.detectParent&&(m=[],a._usedIdsOptional=m),a.ignoreEnums===void 0&&((s=a.allowedTypes)===null||s===void 0?void 0:s.length)===1&&(a.ignoreEnums=!0),h&&(a.excludedTypes||(a.excludedTypes=[]),a.excludedTypes.includes(t.Types.info)||a.excludedTypes.push(t.Types.info)),a._checkedPatterns=[];const y=[];let v;for(;v=this._detectNext(a);)y.push(v),a.detectAllPossibleDevices&&(a._usedIdsOptional=[]);return y.sort((b,x)=>{if(b.type===t.Types.info&&x.type!==t.Types.info)return 1;if(x.type===t.Types.info&&b.type!==t.Types.info)return-1;const C=b.states.find(M=>M.id===u&&M.required)?1:0,D=x.states.find(M=>M.id===u&&M.required)?1:0;if(C!==D)return D-C;if(!C){const M=b.states.find(A=>A.id===u)?1:0,E=x.states.find(A=>A.id===u)?1:0;if(M!==E)return E-M}const O=b.states.filter(M=>M.id).length;return x.states.filter(M=>M.id).length-O}),this.cache[u]=y.length?y:null,this.cache[u]}static getPatterns(){const a={};return Object.keys(r.patterns).forEach(s=>{const l=JSON.parse(JSON.stringify(r.patterns[s]));l.states.forEach((u,f)=>{const h=r.patterns[s].states[f];h.role&&(l.states[f].role=h.role.toString()),h.enums&&(l.states[f].enums=!0)}),a[s]=l}),a}};return Xl.ChannelDetector=n,n.getEnums=e.getEnums,Xl}var B6;function $Ye(){return B6||(B6=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.StateType=t.Types=t.roleOrEnumGate=t.roleOrEnumDoor=t.roleOrEnumWindow=t.roleOrEnumBlind=t.roleOrEnumLight=void 0;const e=CYe();var r=E2();Object.defineProperty(t,"roleOrEnumLight",{enumerable:!0,get:function(){return r.roleOrEnumLight}}),Object.defineProperty(t,"roleOrEnumBlind",{enumerable:!0,get:function(){return r.roleOrEnumBlind}}),Object.defineProperty(t,"roleOrEnumWindow",{enumerable:!0,get:function(){return r.roleOrEnumWindow}}),Object.defineProperty(t,"roleOrEnumDoor",{enumerable:!0,get:function(){return r.roleOrEnumDoor}}),Object.defineProperty(t,"roleOrEnumGate",{enumerable:!0,get:function(){return r.roleOrEnumGate}}),t.default=e.ChannelDetector;var n=$2();Object.defineProperty(t,"Types",{enumerable:!0,get:function(){return n.Types}}),Object.defineProperty(t,"StateType",{enumerable:!0,get:function(){return n.StateType}})})(fv)),fv}var it=$Ye(),i7={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},W6=_.createContext&&_.createContext(i7),EYe=["attr","size","title"];function TYe(t,e){if(t==null)return{};var r,n,o=OYe(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n_.createElement(e.tag,Ff({key:r},e.attr),s7(e.child)))}function er(t){return e=>_.createElement(AYe,Lf({attr:Ff({},t.attr)},e),s7(t.child))}function AYe(t){var e=r=>{var{attr:n,size:o,title:a}=t,s=TYe(t,EYe),l=o||r.size||"1em",u;return r.className&&(u=r.className),t.className&&(u=(u?u+" ":"")+t.className),_.createElement("svg",Lf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:u,style:Ff(Ff({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&_.createElement("title",null,a),t.children)};return W6!==void 0?_.createElement(W6.Consumer,null,r=>e(r)):e(i7)}function NYe(t){return er({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3l39.5 39.7z"},child:[]}]})(t)}function PYe(t){return er({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M24 5.25v13a.75.75 0 0 1-1.136.643L16.5 15.075v2.175A1.75 1.75 0 0 1 14.75 19h-13A1.75 1.75 0 0 1 0 17.25v-11C0 5.284.784 4.5 1.75 4.5h13c.966 0 1.75.784 1.75 1.75v2.175l6.364-3.818A.75.75 0 0 1 24 5.25Zm-9 1a.25.25 0 0 0-.25-.25h-13a.25.25 0 0 0-.25.25v11c0 .138.112.25.25.25h13a.25.25 0 0 0 .25-.25v-11Zm1.5 7.075 6 3.6V6.575l-6 3.6Z"},child:[]}]})(t)}function IYe(t){return er({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},child:[]}]})(t)}function jYe(t){return er({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(t)}function zYe(t){return er({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},child:[]}]})(t)}function LYe(t){return er({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"},child:[]}]})(t)}function FYe(t){return er({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"},child:[]}]})(t)}function q6(t){return er({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"},child:[]}]})(t)}function BYe(t){return er({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(t)}function WYe(t){return er({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(t)}function UYe(t){return er({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(t)}function qYe(t){return er({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"},child:[]}]})(t)}function HYe(t){return er({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352.57 128c-28.09 0-54.09 4.52-77.06 12.86l12.41-123.11C289 7.31 279.81-1.18 269.33.13 189.63 10.13 128 77.64 128 159.43c0 28.09 4.52 54.09 12.86 77.06L17.75 224.08C7.31 223-1.18 232.19.13 242.67c10 79.7 77.51 141.33 159.3 141.33 28.09 0 54.09-4.52 77.06-12.86l-12.41 123.11c-1.05 10.43 8.11 18.93 18.59 17.62 79.7-10 141.33-77.51 141.33-159.3 0-28.09-4.52-54.09-12.86-77.06l123.11 12.41c10.44 1.05 18.93-8.11 17.62-18.59-10-79.7-77.51-141.33-159.3-141.33zM256 288a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"},child:[]}]})(t)}function VYe(t){return er({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"},child:[]}]})(t)}function GYe(t){return er({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(t)}function H6(t){return er({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 0 0 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10 10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z"},child:[]}]})(t)}function XYe(t){return er({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(t)}function JYe(t){return er({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(t)}function YYe(t){return er({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"},child:[]}]})(t)}function V6(t){return er({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M3.89,17.6c0-0.99,0.31-1.88,0.93-2.65s1.41-1.27,2.38-1.49c0.26-1.17,0.85-2.14,1.78-2.88c0.93-0.75,2-1.12,3.22-1.12 + c1.18,0,2.24,0.36,3.16,1.09c0.93,0.73,1.53,1.66,1.8,2.8h0.27c1.18,0,2.18,0.41,3.01,1.24s1.25,1.83,1.25,3 + c0,1.18-0.42,2.18-1.25,3.01s-1.83,1.25-3.01,1.25H8.16c-0.58,0-1.13-0.11-1.65-0.34S5.52,21,5.14,20.62 + c-0.38-0.38-0.68-0.84-0.91-1.36S3.89,18.17,3.89,17.6z M5.34,17.6c0,0.76,0.28,1.42,0.82,1.96s1.21,0.82,1.99,0.82h9.28 + c0.77,0,1.44-0.27,1.99-0.82c0.55-0.55,0.83-1.2,0.83-1.96c0-0.76-0.27-1.42-0.83-1.96c-0.55-0.54-1.21-0.82-1.99-0.82h-1.39 + c-0.1,0-0.15-0.05-0.15-0.15l-0.07-0.49c-0.1-0.94-0.5-1.73-1.19-2.35s-1.51-0.93-2.45-0.93c-0.94,0-1.76,0.31-2.46,0.94 + c-0.7,0.62-1.09,1.41-1.18,2.34l-0.07,0.42c0,0.1-0.05,0.15-0.16,0.15l-0.45,0.07c-0.72,0.06-1.32,0.36-1.81,0.89 + C5.59,16.24,5.34,16.87,5.34,17.6z M14.19,8.88c-0.1,0.09-0.08,0.16,0.07,0.21c0.43,0.19,0.79,0.37,1.08,0.55 + c0.11,0.03,0.19,0.02,0.22-0.03c0.61-0.57,1.31-0.86,2.12-0.86c0.81,0,1.5,0.27,2.1,0.81c0.59,0.54,0.92,1.21,0.99,2l0.09,0.64h1.42 + c0.65,0,1.21,0.23,1.68,0.7c0.47,0.47,0.7,1.02,0.7,1.66c0,0.6-0.21,1.12-0.62,1.57s-0.92,0.7-1.53,0.77c-0.1,0-0.15,0.05-0.15,0.16 + v1.13c0,0.11,0.05,0.16,0.15,0.16c1.01-0.06,1.86-0.46,2.55-1.19s1.04-1.6,1.04-2.6c0-1.06-0.37-1.96-1.12-2.7 + c-0.75-0.75-1.65-1.12-2.7-1.12h-0.15c-0.26-1-0.81-1.82-1.65-2.47c-0.83-0.65-1.77-0.97-2.8-0.97C16.28,7.29,15.11,7.82,14.19,8.88 + z`},child:[]}]})(t)}function KYe(t){return er({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]},{tag:"path",attr:{d:"M363.5 148.5C334.8 119.8 296.6 104 256 104c-40.6 0-78.8 15.8-107.5 44.5C119.8 177.2 104 215.4 104 256s15.8 78.8 44.5 107.5C177.2 392.2 215.4 408 256 408c40.6 0 78.8-15.8 107.5-44.5C392.2 334.8 408 296.6 408 256s-15.8-78.8-44.5-107.5z"},child:[]}]})(t)}function ZYe(t){return er({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 12a4 4 0 0 0 4 4m0 -8a4 4 0 0 0 -4 4"},child:[]},{tag:"path",attr:{d:"M3 12h1"},child:[]},{tag:"path",attr:{d:"M12 3v1"},child:[]},{tag:"path",attr:{d:"M12 20v1"},child:[]},{tag:"path",attr:{d:"M5.6 5.6l.7 .7"},child:[]},{tag:"path",attr:{d:"M6.3 17.7l-.7 .7"},child:[]},{tag:"path",attr:{d:"M20 7l-3 5h4l-3 5"},child:[]}]})(t)}function QYe(t){return er({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"},child:[]},{tag:"path",attr:{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"},child:[]}]})(t)}function eKe(t){return _.createElement("svg",{viewBox:"0 0 512 512",...t},_.createElement("g",{fill:"currentColor"},_.createElement("path",{d:"M296,320H216a24,24,0,0,0,0,48h80a24,24,0,0,0,0-48Zm0,32H216a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}),_.createElement("path",{d:"M68.071,123.492c22.578-13.918,52.2-25.229,85.674-32.71l-3.49-15.615c-35.688,7.977-66.163,19.653-90.58,34.705-17.914,11.043-32.041,23.643-41.99,37.451l12.98,9.354C39.376,144.588,51.961,133.423,68.071,123.492Z"}),_.createElement("path",{d:"M435.533,137.112C409.439,121.027,374,108.967,332.845,102.144,322.474,87,288.213,80,256,80s-66.474,7-76.845,22.144C138,108.967,102.561,121.027,76.467,137.112,47.376,155.045,32,176.792,32,200v96c0,29,24.155,55.7,68.016,75.193C141.813,389.77,197.209,400,256,400s114.187-10.23,155.984-28.807C455.845,351.7,480,325,480,296V200C480,176.792,464.624,155.045,435.533,137.112ZM177.64,151.23C185.676,168.192,221.98,176,256,176s70.324-7.808,78.36-24.77c21.862,4.212,41.832,10.19,58.13,17.44C422.343,181.941,432,195.509,432,200s-9.657,18.059-39.51,31.33C357.224,247.008,307.475,256,256,256s-101.224-8.992-136.49-24.67C89.657,218.059,80,204.491,80,200s9.657-18.059,39.512-31.331C135.808,161.42,155.778,155.442,177.64,151.23Zm14.36-19c15.6,8,40.35,11.773,64,11.773s48.4-3.775,64-11.773V144c0,.687-2.715,5.08-15.618,9.381C291.577,157.649,274.4,160,256,160s-35.577-2.351-48.382-6.619C194.715,149.08,192,144.687,192,144Zm15.618-29.608C220.423,98.351,237.605,96,256,96s35.577,2.351,48.382,6.619C317.285,106.92,320,111.313,320,112s-2.715,5.08-15.618,9.381C291.577,125.649,274.4,128,256,128s-35.577-2.351-48.382-6.619C194.715,117.08,192,112.687,192,112S194.715,106.92,207.618,102.619ZM176,118.937v16.319c-23.589,4.453-45.254,10.9-62.99,18.794C82.779,167.489,64,185.1,64,200s18.779,32.511,49.01,45.95C150.249,262.505,202.367,272,256,272s105.751-9.5,142.99-26.05C429.221,232.511,448,214.9,448,200s-18.779-32.511-49.008-45.95c-17.738-7.89-39.4-14.341-62.992-18.794V118.937C411.852,132.7,464,165.41,464,200c0,21.967-21.328,44.044-58.516,60.572C365.688,278.259,312.6,288,256,288s-109.688-9.741-149.484-27.428C69.328,244.044,48,221.967,48,200,48,165.41,100.148,132.7,176,118.937ZM464,296c0,21.967-21.327,44.044-58.514,60.572C365.689,374.259,312.6,384,256,384s-109.689-9.741-149.486-27.428C69.327,340.044,48,317.967,48,296V239.371c11.522,13.444,29.066,25.621,52.018,35.822C141.814,293.77,197.211,304,256,304s114.186-10.23,155.982-28.807c22.952-10.2,40.5-22.378,52.018-35.822Z"}),_.createElement("path",{d:"M418.482,385.814C374.684,405.28,316.979,416,256,416a488.01,488.01,0,0,1-78.705-6.23l-2.59,15.789A504.064,504.064,0,0,0,256,432c63.169,0,123.181-11.21,168.981-31.565q1.3-.576,2.572-1.16l-6.655-14.55Q419.7,385.274,418.482,385.814Z"}),_.createElement("path",{d:"M436.123,377.062l7.754,14c5.883-3.259,11.492-6.728,16.674-10.31l-9.1-13.161C446.7,370.871,441.546,374.059,436.123,377.062Z"}),_.createElement("rect",{x:"248",y:"192",width:"16",height:"16"}),_.createElement("rect",{x:"280",y:"192",width:"16",height:"16"}),_.createElement("rect",{x:"216",y:"192",width:"16",height:"16"})))}function tKe(t){return _.createElement("svg",{viewBox:"0 0 512 512",...t},_.createElement("path",{fill:"currentColor",d:"M298.667 298.667c17.643 0 32-14.357 32-32s-14.357-32-32-32-32 14.357-32 32c0 17.642 14.357 32 32 32zm0-42.667c5.867 0 10.667 4.779 10.667 10.667s-4.8 10.667-10.667 10.667S288 272.555 288 266.667 292.8 256 298.667 256z"}),_.createElement("path",{fill:"currentColor",d:"M448 490.667h-32v-480C416 4.779 411.221 0 405.333 0H106.667c-.597 0-1.131.256-1.707.341-.555.085-1.088.149-1.621.32-.939.32-1.749.789-2.56 1.344-.32.213-.704.277-1.003.533-.107.085-.149.213-.256.32-.768.704-1.365 1.579-1.899 2.496-.213.341-.512.619-.661.981-.597 1.345-.96 2.774-.96 4.332v480H64c-5.888 0-10.667 4.779-10.667 10.667C53.333 507.221 58.112 512 64 512h42.667c.576 0 1.173-.043 1.749-.149l256-42.667a10.672 10.672 0 0 0 8.917-10.517V53.333c0-5.227-3.776-9.664-8.917-10.517L235.541 21.333h159.125v480c0 5.888 4.779 10.667 10.667 10.667H448c5.888 0 10.667-4.779 10.667-10.667s-4.779-10.666-10.667-10.666zm-96-428.31v387.264l-234.667 39.125V23.253L352 62.357z"}))}function rKe(t){return _.createElement("svg",{viewBox:"0 0 512.006 512.006",...t},_.createElement("path",{d:"M502.379 211.249c0 74.656-60.52 135.176-135.176 135.176-6.469.01-12.919-.473-19.311-1.448-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825a142.128 142.128 0 0 1 19.311-1.352c74.656 0 135.176 60.521 135.176 135.177z",fill:"#c52828"}),_.createElement("path",{d:"M463.757 211.249c-.029 67.173-49.378 124.131-115.865 133.728-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825 66.516 9.598 115.875 66.613 115.865 133.825z",fill:"#f44335"}),_.createElement("g",{fill:"#fdd834"},_.createElement("path",{d:"M380.527 230.56h-26.649a8.208 8.208 0 0 1-8.4-7.242l-7.242-90.472c-.212-4.47 3.235-8.275 7.705-8.497.232-.01.463-.01.695 0h41.036a8.105 8.105 0 0 1 8.4 7.802c.01.232.01.463 0 .695l-7.242 90.472c-.501 4.181-4.093 7.319-8.303 7.242zM362.085 269.181h10.235c7.84 0 14.194 6.353 14.194 14.194v10.235c0 7.84-6.353 14.194-14.194 14.194h-10.235c-7.84 0-14.194-6.353-14.194-14.194v-10.235c.001-7.84 6.354-14.194 14.194-14.194z"})),_.createElement("path",{d:"M308.015 332.714a132.057 132.057 0 0 1-24.332-15.256 138.367 138.367 0 0 1-25.587-26.456 134.123 134.123 0 0 1-26.07-79.754 136.453 136.453 0 0 1 3.09-28.966 129.801 129.801 0 0 1 9.655-28.966c-24.428-39.201-50.691-78.113-85.547-108.334-2.607-2.221-5.214-4.442-7.917-6.566a161.051 161.051 0 0 0-14.387-10.621 80.965 80.965 0 0 0-13.807-7.145c1.641 7.338 3.476 14.773 4.731 22.208a180.355 180.355 0 0 1 2.993 26.939v7.145a192.012 192.012 0 0 1-60.829 139.521 202.647 202.647 0 0 0-43.836 52.719 149.063 149.063 0 0 0-6.566 120.017 152.006 152.006 0 0 0 22.208 40.167 164.926 164.926 0 0 0 106.21 61.891 86.874 86.874 0 0 1-44.801-32.249 51.315 51.315 0 0 1-3.669-5.6 77.46 77.46 0 0 1-6.469-13.325 79.464 79.464 0 0 1 3.766-63.726 111.914 111.914 0 0 1 23.463-28.387 101.983 101.983 0 0 0 32.442-74.25v-3.862a97.875 97.875 0 0 0-4.731-27.132 112.539 112.539 0 0 1 10.911 6.566 108.053 108.053 0 0 1 30.222 30.801 100.963 100.963 0 0 1 15.835 46.443v8.4a100.92 100.92 0 0 1-18.249 57.933c22.98 13.035 38.622-8.593 44.994-28.966a60.067 60.067 0 0 0 2.51-12.842 88.458 88.458 0 0 1 28.966 61.312v5.214c-2.704 33.678-25.346 62.451-57.45 72.995 73.353-11.789 128.717-72.889 133.245-147.053a131.977 131.977 0 0 1-30.994-10.815z",fill:"#f57c00"}),_.createElement("path",{d:"M263.117 417.489v-5.214a88.462 88.462 0 0 0-28.966-61.312 60.129 60.129 0 0 1-2.51 12.842c-5.986 20.47-22.014 42.098-44.994 28.966a100.923 100.923 0 0 0 18.249-57.933v-.966-7.338a100.971 100.971 0 0 0-15.835-46.443 108.027 108.027 0 0 0-30.222-30.801 108.949 108.949 0 0 0-39.877-35.532 97.838 97.838 0 0 1 4.731 27.132v3.862a101.988 101.988 0 0 1-32.442 74.25 111.924 111.924 0 0 0-23.366 28.387 79.491 79.491 0 0 0-3.573 63.726 83.948 83.948 0 0 0 35.436 42.291 51.315 51.315 0 0 0 3.669 5.6 86.886 86.886 0 0 0 44.415 32.249 164.927 164.927 0 0 1-106.21-61.892 152.082 152.082 0 0 1-22.014-40.167 149.055 149.055 0 0 1 6.564-120.015 202.714 202.714 0 0 1 44.029-53.202A192.012 192.012 0 0 0 131.03 76.458v-7.145a180.486 180.486 0 0 0-2.993-26.939c-1.255-7.435-3.09-14.869-4.731-22.208a80.965 80.965 0 0 1 13.807 7.145 159.446 159.446 0 0 1 14.773 10.718c2.704 2.124 5.311 4.345 7.917 6.566 34.856 30.222 61.119 69.133 85.547 108.334a129.75 129.75 0 0 0-9.655 28.966 136.634 136.634 0 0 0-3.669 29.353 134.116 134.116 0 0 0 26.07 79.754 138.396 138.396 0 0 0 25.587 26.456 132.164 132.164 0 0 0 24.332 15.256 152.203 152.203 0 0 1-44.898 84.775z",fill:"#ff9801"}),_.createElement("path",{d:"M147.831 500.912h-1.448c-61.756-8.7-113.963-50.15-136.432-108.334a158.725 158.725 0 0 1 7.338-127.355 212.528 212.528 0 0 1 45.96-55.809 181.787 181.787 0 0 0 57.933-132.473v-6.759a171.298 171.298 0 0 0-2.8-25.587c-.966-5.697-2.221-11.2-3.476-16.704l-1.159-5.117c-1.178-5.204 2.076-10.37 7.28-11.548a9.663 9.663 0 0 1 5.948.541 89.473 89.473 0 0 1 15.449 8.014 172.47 172.47 0 0 1 15.449 11.2c41.036 32.732 70.871 77.244 95.589 117.314a9.673 9.673 0 0 1 .483 9.655 121.056 121.056 0 0 0-9.655 26.842 128.158 128.158 0 0 0-2.607 26.456c.01 59.198 41.374 110.333 99.258 122.721a9.655 9.655 0 0 1 7.628 9.655c-3.186 77.244-61.216 141.742-141.163 156.129-5.253.927-10.254-2.588-11.181-7.84a9.65 9.65 0 0 1 6.353-10.795c29.99-9.8 50.517-37.492 51.174-69.037a67.618 67.618 0 0 0-14.387-40.746 56.78 56.78 0 0 1-24.139 31.091 33.122 33.122 0 0 1-33.408-1.448c-4.644-2.626-6.276-8.516-3.659-13.16.145-.261.299-.502.473-.743a91.187 91.187 0 0 0 16.511-52.429v-.772a90.743 90.743 0 0 0-14.58-48.277 98.107 98.107 0 0 0-19.311-21.532v9.945a111.13 111.13 0 0 1-35.436 81.299 103.445 103.445 0 0 0-21.532 25.78 69.873 69.873 0 0 0-3.09 56.002 76.304 76.304 0 0 0 49.533 44.512c5.33.801 9.009 5.774 8.207 11.104-.801 5.328-5.774 8.997-11.103 8.205zM137.113 39.478v1.738a188.136 188.136 0 0 1 3.09 28.194v7.435A200.926 200.926 0 0 1 76.38 223.318a192.998 192.998 0 0 0-42.098 50.498 139.414 139.414 0 0 0-6.469 111.907 148.682 148.682 0 0 0 65.561 76.568 89.522 89.522 0 0 1-15.159-49.726 91.25 91.25 0 0 1 9.655-40.167 119.46 119.46 0 0 1 25.394-31.091 92.026 92.026 0 0 0 29.449-67.588v-3.09a88.799 88.799 0 0 0-4.248-24.911 9.653 9.653 0 0 1 6.237-12.147 9.638 9.638 0 0 1 7.473.657 119.392 119.392 0 0 1 44.705 40.649 110.062 110.062 0 0 1 17.669 58.898v1.159a110.343 110.343 0 0 1-13.035 52.139 12.555 12.555 0 0 0 4.731-1.448c9.655-5.31 17.283-22.497 18.345-35.436.434-5.31 5.088-9.269 10.409-8.844a9.61 9.61 0 0 1 6.006 2.761 95.586 95.586 0 0 1 32.153 68.168 89.528 89.528 0 0 1-13.711 47.408 146.774 146.774 0 0 0 69.133-108.817c-62.77-17.37-106.22-74.492-106.21-139.618a146.655 146.655 0 0 1 3.283-30.994 139.876 139.876 0 0 1 8.497-26.263c-23.27-37.077-51.27-78.402-88.541-108.045a113.049 113.049 0 0 0-8.496-6.467z"}),_.createElement("path",{d:"M367.203 356.081a144.841 144.841 0 0 1-89.506-30.994 143.882 143.882 0 0 1-55.326-113.838 146.655 146.655 0 0 1 3.283-30.994 140.652 140.652 0 0 1 10.814-31.091c23.965-50.498 74.839-82.699 130.735-82.747 79.986.019 144.813 64.875 144.803 144.861a144.848 144.848 0 0 1-55.297 113.809 143.543 143.543 0 0 1-89.506 30.994zm0-270.353c-48.47.019-92.586 27.943-113.355 71.74a121.83 121.83 0 0 0-9.655 26.939 127.805 127.805 0 0 0-2.51 26.842c.01 59.198 41.374 110.333 99.258 122.721a125.763 125.763 0 0 0 26.263 2.8c69.326 0 125.521-56.195 125.521-125.521S436.519 85.728 367.203 85.728z"}),_.createElement("path",{d:"M380.527 240.215h-26.649c-9.279.097-17.109-6.894-18.056-16.125l-7.242-90.085a17.201 17.201 0 0 1 4.538-13.035 18.38 18.38 0 0 1 13.518-5.89h41.036a18.375 18.375 0 0 1 13.518 5.89 17.204 17.204 0 0 1 4.635 13.035l-7.242 90.472c-1.139 9.076-8.912 15.854-18.056 15.738zm-25.49-19.311h24.525l6.952-86.899h-38.622l7.145 86.899zM372.32 317.459h-10.235c-13.151-.048-23.801-10.698-23.849-23.849v-10.235c.048-13.151 10.698-23.801 23.849-23.849h10.138c13.189 0 23.888 10.66 23.946 23.849v10.138c0 13.18-10.669 23.888-23.849 23.946zm-10.138-38.622a4.635 4.635 0 0 0-4.538 4.538v10.138a4.635 4.635 0 0 0 4.538 4.538h10.138a4.635 4.635 0 0 0 4.538-4.538v-10.138a4.635 4.635 0 0 0-4.538-4.538h-10.138z"}))}function nKe(t){return _.createElement("svg",{viewBox:"0 0 512.002 512.002",...t},_.createElement("path",{d:"M481.929 324.35c0 65.951-53.464 119.415-119.415 119.415a111.938 111.938 0 0 1-17.059-1.279c-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221a125.333 125.333 0 0 1 17.059-1.194c65.951-.001 119.415 53.462 119.415 119.414z",fill:"#c52828"}),_.createElement("path",{d:"M447.81 324.35c-.026 59.341-43.621 109.657-102.356 118.135-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221 58.77 8.487 102.373 58.846 102.356 118.221z",fill:"#f44335"}),_.createElement("g",{fill:"#fdd834"},_.createElement("path",{d:"M374.285 341.409h-23.542a7.251 7.251 0 0 1-7.421-6.397l-6.397-79.923a7.174 7.174 0 0 1 6.807-7.506c.205-.009.409-.009.614 0h36.251a7.16 7.16 0 0 1 7.421 6.892c.009.205.009.409 0 .614l-6.397 79.923a7.249 7.249 0 0 1-7.336 6.397zM357.993 375.527h9.041c6.926 0 12.539 5.612 12.539 12.539v9.041c0 6.926-5.612 12.539-12.539 12.539h-9.041c-6.926 0-12.539-5.612-12.539-12.539v-9.041c0-6.926 5.621-12.539 12.539-12.539z"})),_.createElement("path",{d:"M318.415 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 159.575 159.575 0 0 1-61.413 12.283 149.268 149.268 0 0 1-20.556-1.365 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.753 152.753 0 0 1-12.368-60.219 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504 7.335-11.771c4.504-7.353 14.117-9.656 21.469-5.143a15.525 15.525 0 0 1 5.143 5.143l34.716 55.869c-2.644 4.18-5.032 8.53-7.335 12.709a96.424 96.424 0 0 0-11.515 44.439 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.344 115.344 0 0 0-11.6 31.048 120.546 120.546 0 0 0-2.729 25.589c.041 48.9 29.878 92.828 75.315 110.885z",fill:"#0377bc"}),_.createElement("path",{d:"M277.217 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 158.847 158.847 0 0 1-40.772 10.833 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.657 152.657 0 0 1-12.368-60.134 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504c9.212 14.671 18.339 29.427 27.465 44.098-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.323 115.323 0 0 0-12.283 31.133 120.546 120.546 0 0 0-2.729 25.589c.043 48.9 29.88 92.828 75.317 110.885z",fill:"#02a9f4"}),_.createElement("path",{d:"M411.388 144.545a477.911 477.911 0 0 0-27.636-43.842c-9.894-14.586-19.192-29.598-28.489-44.525L328.395 13.53c-3.037-4.708-9.323-6.065-14.031-3.028a10.259 10.259 0 0 0-3.028 3.028l-12.794 20.215-14.074 22.433c-9.297 14.927-18.595 29.939-28.489 44.525-6.994 10.236-13.989 20.471-20.301 31.133-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.758 98.758 0 0 0 29.939 70.284 106.83 106.83 0 0 0 9.98 8.53 119.423 119.423 0 0 1 84.017-60.902 114.9 114.9 0 0 1 21.068-1.877c5.186.009 10.372.324 15.524.938a119.369 119.369 0 0 1 39.578 12.539 96.462 96.462 0 0 0-6.228-73.866z",fill:"#0377bc"}),_.createElement("path",{d:"M379.573 188.899a93.046 93.046 0 0 1-1.535 17.059 131.537 131.537 0 0 0-15.524-1.024 114.797 114.797 0 0 0-21.068 1.877 119.425 119.425 0 0 0-84.017 60.902 106.96 106.96 0 0 1-9.98-8.53c-31.099-29.743-38.878-76.417-19.106-114.638 2.303-4.35 4.691-8.53 7.335-12.709 6.312-10.662 13.306-20.898 20.301-31.133 9.894-14.586 19.192-29.598 28.489-44.525l14.074-22.433 14.074 22.433c9.297 14.927 18.595 29.939 28.489 44.525a477.911 477.911 0 0 1 27.636 43.842 96.401 96.401 0 0 1 10.832 44.354z",fill:"#02a9f4"}),_.createElement("path",{d:"M187.656 512.002a167.398 167.398 0 0 1-64.655-12.88 165.226 165.226 0 0 1-88.623-86.746 160.466 160.466 0 0 1-13.05-63.631 158.81 158.81 0 0 1 17.656-72.928 698.388 698.388 0 0 1 39.663-63.887l3.412-5.032c12.027-17.998 23.627-36.677 34.886-54.76L167.1 71.531c6.986-11.353 21.861-14.893 33.214-7.898a24.1 24.1 0 0 1 7.898 7.898l17.059 27.38 17.827 28.404a8.521 8.521 0 0 1 0 9.383c-2.559 4.009-4.777 8.018-6.994 12.112a87.69 87.69 0 0 0-10.065 40.089 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83 99.608 99.608 0 0 0 9.212 7.847 8.534 8.534 0 0 1 2.303 10.918 106.955 106.955 0 0 0-10.747 28.745 112.483 112.483 0 0 0-2.559 23.712c.009 45.429 27.721 86.26 69.943 103.038 4.393 1.706 6.559 6.653 4.853 11.046a8.584 8.584 0 0 1-.93 1.749 162.407 162.407 0 0 1-20.301 24.139 164.29 164.29 0 0 1-52.884 34.886 167.489 167.489 0 0 1-64.653 12.795zm0-435.012a6.99 6.99 0 0 0-6.056 3.412l-50.154 80.69c-11.344 18.168-23.03 37.019-35.227 55.187l-3.412 5.032a687.543 687.543 0 0 0-38.725 62.266 141.613 141.613 0 0 0-15.695 65.166 143.56 143.56 0 0 0 11.686 56.893 148.16 148.16 0 0 0 79.411 77.79 152.855 152.855 0 0 0 116.344 0 147.616 147.616 0 0 0 47.425-31.133 143.446 143.446 0 0 0 12.027-13.306c-43.322-21.802-70.668-66.139-70.711-114.638a129.576 129.576 0 0 1 2.9-27.38 124.357 124.357 0 0 1 9.212-26.954 136.293 136.293 0 0 1-5.203-4.691 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 1.621-3.071 3.241-5.971 4.862-8.53l-14.927-24.054-17.059-27.38a7.087 7.087 0 0 0-6.141-3.837z"}),_.createElement("path",{d:"M99.971 442.4A8.521 8.521 0 0 1 94 439.926a129.631 129.631 0 0 1-28.318-41.113 126.28 126.28 0 0 1-10.236-50.069 124.503 124.503 0 0 1 13.818-57.234c1.868-4.325 6.883-6.32 11.208-4.452s6.32 6.883 4.452 11.208c-.162.375-.35.742-.563 1.092a107.494 107.494 0 0 0-11.856 49.387 109.211 109.211 0 0 0 8.53 43.331 112.626 112.626 0 0 0 24.565 35.739c3.344 3.318 3.369 8.717.051 12.061a8.549 8.549 0 0 1-6.022 2.525l.342-.001zM257.428 276.242a8.526 8.526 0 0 1-5.118-1.706 115.222 115.222 0 0 1-10.747-9.212 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 2.559-4.862 5.118-9.212 7.677-13.306 6.312-10.662 13.392-21.068 20.386-31.218 9.041-13.903 17.912-27.807 26.442-41.881L304 8.753c5.485-8.734 17.017-11.379 25.751-5.894a18.698 18.698 0 0 1 5.894 5.894l28.574 45.634c8.53 13.733 17.059 27.977 26.612 41.539l1.706 2.474a457.473 457.473 0 0 1 26.442 42.136 104.968 104.968 0 0 1 6.824 80.434c-1.433 4.487-6.235 6.969-10.722 5.536a8.282 8.282 0 0 1-1.39-.589 112.612 112.612 0 0 0-106.535 2.388 110.28 110.28 0 0 0-42.136 43.416 8.52 8.52 0 0 1-5.715 4.265l-1.877.256zm62.437-258.959a1.541 1.541 0 0 0-1.365.768l-28.489 45.378c-8.53 13.903-17.571 28.233-26.954 42.051-6.909 10.065-13.903 20.301-20.045 30.707-2.644 4.18-4.947 8.53-7.165 12.368a87.722 87.722 0 0 0-9.809 40.345 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83l1.791 1.706a127.216 127.216 0 0 1 43.331-41.369 129.73 129.73 0 0 1 113.359-7.25 87.904 87.904 0 0 0-8.53-57.831 444.102 444.102 0 0 0-25.589-40.516l-1.706-2.474c-9.383-13.818-18.339-28.148-26.954-42.051L321.23 18.05a1.532 1.532 0 0 0-1.365-.767z"}),_.createElement("path",{d:"M271.246 243.233a8.519 8.519 0 0 1-5.971-2.388 75.502 75.502 0 0 1-16.292-23.456 71.923 71.923 0 0 1-5.885-28.489 70.537 70.537 0 0 1 7.933-32.498c1.877-3.582 4.009-7.25 6.227-10.833l.512-.768a8.538 8.538 0 0 1 11.609-3.284 8.538 8.538 0 0 1 3.284 11.609 6.997 6.997 0 0 1-.392.631l-.512.853c-2.132 3.327-3.924 6.568-5.63 9.724a53.307 53.307 0 0 0-5.971 24.565 54.816 54.816 0 0 0 4.435 21.665 58.198 58.198 0 0 0 12.624 18.083c3.395 3.267 3.489 8.666.222 12.061a8.518 8.518 0 0 1-6.193 2.61v-.085z"}),_.createElement("path",{d:"M362.514 452.294c-70.66 0-127.945-57.285-127.945-127.945a129.576 129.576 0 0 1 2.9-27.38 123.98 123.98 0 0 1 12.453-33.351 127.15 127.15 0 0 1 48.619-50.154c37.94-21.495 84.136-22.518 122.997-2.729 62.744 32.489 87.275 109.7 54.777 172.452-22.005 42.512-65.916 69.184-113.801 69.107zm0-238.83c-40.763.009-78.234 22.382-97.579 58.257a107.238 107.238 0 0 0-10.747 28.83 112.818 112.818 0 0 0-2.559 23.798c0 61.243 49.643 110.885 110.885 110.885s110.885-49.642 110.885-110.885-49.643-110.885-110.885-110.885z"}),_.createElement("path",{d:"M374.285 349.939h-23.542c-8.231.085-15.157-6.141-15.95-14.33l-6.397-79.496a15.26 15.26 0 0 1 4.009-11.515 16.312 16.312 0 0 1 11.942-5.203h36.251a16.31 16.31 0 0 1 11.941 5.203 15.27 15.27 0 0 1 4.094 11.515l-6.397 79.923c-.999 8.026-7.865 14.013-15.951 13.903zm-22.519-17.06h21.665l6.141-76.767h-34.119l6.313 76.767zM367.034 418.176h-9.041c-11.617-.043-21.026-9.451-21.068-21.068v-9.041c.043-11.617 9.451-21.026 21.068-21.068h8.956c11.651 0 21.102 9.417 21.153 21.068v8.956c.001 11.651-9.416 21.11-21.068 21.153zm-8.956-34.119a4.095 4.095 0 0 0-4.009 4.009v8.956a4.095 4.095 0 0 0 4.009 4.009h8.956a4.095 4.095 0 0 0 4.009-4.009v-8.956a4.095 4.095 0 0 0-4.009-4.009h-8.956z"}))}function oKe(t){return _.createElement("svg",{viewBox:"0 0 512 512",...t},_.createElement("path",{fill:"currentColor",d:"M462,226c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.52,0,10-4.48,10-10S467.52,226,462,226z"}),_.createElement("path",{fill:"currentColor",d:"M50,226c-5.52,0-10,4.48-10,10s4.48,10,10,10s10-4.48,10-10S55.52,226,50,226z"}),_.createElement("path",{fill:"currentColor",d:`M502,126h-0.027C508.265,117.637,512,107.248,512,96c0-27.57-22.43-50-50-50s-50,22.43-50,50 + c0,11.248,3.735,21.637,10.027,30H422c-5.522,0-10,4.478-10,10v50.03c-7.399,0.025-17.158,0.065-23,0.113V166.63 + c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.435c-0.931-0.964-1.899-2.045-2.923-3.258 + c-10.745-12.754-24.515-23.761-40.077-32.106V121.83c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.983 + c-12.92-4.643-26.438-7.5-40-8.448V96c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v30.365 + c-13.565,0.948-27.084,3.807-40,8.452V120.17c0-5.522-4.477-10-10-10s-10,4.478-10,10v23.542 + c-15.764,8.457-29.695,19.652-40.55,32.652c-0.758,0.908-1.587,1.755-2.45,2.566v-12.3c0-5.522-4.477-10-10-10s-10,4.478-10,10 + v20.385c-4.189,0.067-14.913,0.05-23,0.024V136c0-5.522-4.477-10-10-10h-0.027C96.265,117.637,100,107.248,100,96 + c0-27.57-22.43-50-50-50S0,68.43,0,96c0,11.248,3.735,21.637,10.027,30H10c-5.523,0-10,4.478-10,10v320c0,5.522,4.477,10,10,10h80 + c5.523,0,10-4.478,10-10v-11h312v11c0,5.522,4.478,10,10,10h80c5.522,0,10-4.478,10-10V136C512,130.478,507.522,126,502,126z + M80,446H20V146h20v50c0,5.522,4.477,10,10,10s10-4.478,10-10v-50h20V446z M50,126c-16.542,0-30-13.458-30-30s13.458-30,30-30 + s30,13.458,30,30S66.542,126,50,126z M123,425h-23v-19h23V425z M123,386h-23V247h23V386z M123,227h-23v-19.959 + c3.808,0.011,8.197,0.022,12.244,0.022c4.378,0,8.351-0.012,10.756-0.046V227z M186,425h-43v-19h43V425z M186,276v40v70h-43 + V244.817c16.149-3.513,31.29-11.046,43-21.321V276z M186,194.605c-2.373,2.327-4.659,4.785-6.815,7.365 + c-8.521,10.2-21.771,18.214-36.185,22.224v-21.525c6.846-3.098,13.007-7.736,17.806-13.49c7.006-8.391,15.56-15.917,25.194-22.232 + V194.605z M206,156.285c12.757-5.415,26.344-8.765,40-9.871v20.099c-14.162,1.416-27.777,5.83-40,12.895V156.285z M206,203.562 + c11.538-9.26,25.37-15.088,40-16.922V266h-40V203.562z M246,425h-40v-19h40V425z M246,386h-40v-60h40V386z M306,425h-40v-19h40 + V425z M306,386h-40v-60h40V386z M306,306H206v-20h100V306z M306,266h-40v-79.359c14.617,1.835,28.449,7.664,40,16.924V266z + M306,179.418c-12.232-7.071-25.847-11.487-40-12.904v-20.1c13.651,1.106,27.238,4.454,40,9.865V179.418z M369,425h-43v-19h43V425 + z M369,386h-43v-70v-40v-52.635c11.722,10.137,26.674,17.329,43,20.634V386z M369,223.458 + c-14.663-3.788-27.83-11.575-36.517-21.887c-2.039-2.417-4.216-4.742-6.483-6.965v-27.672c9.465,6.201,17.88,13.567,24.789,21.767 + c4.64,5.496,10.324,11.234,18.211,14.57V223.458z M412,425h-23v-19h23V425z M412,386h-23V246h23V386z M412,226h-23v-19.856 + c5.683-0.048,15.526-0.088,23-0.113V226z M492,446h-60V146h20v50c0,5.522,4.478,10,10,10c5.522,0,10-4.478,10-10v-50h20V446z + M462,126c-16.542,0-30-13.458-30-30s13.458-30,30-30s30,13.458,30,30S478.542,126,462,126z`}))}function aKe(t){return _.createElement("svg",{viewBox:"0 0 511.448 511.448",...t},_.createElement("path",{d:"M344.556 112.216C318.38 78.84 291.34 44.344 269.516 7.32c-5.76-9.76-21.824-9.76-27.552 0-21.856 37.024-48.896 71.52-75.072 104.896-53.056 67.68-103.168 131.616-103.168 207.232 0 105.888 86.112 192 192 192s192-86.112 192-192c0-75.616-50.112-139.552-103.168-207.232z",fill:"#2196f3"}),_.createElement("g",{fill:"#fafafa"},_.createElement("path",{d:"M207.724 287.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.832 0-16 7.168-16 16s7.168 16 16 16 16-7.168 16-16-7.168-16-16-16zM303.724 447.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zM175.724 415.448a16.07 16.07 0 0 1-11.328-4.672c-6.24-6.24-6.24-16.384 0-22.624l160-160c6.24-6.24 16.384-6.24 22.624 0s6.24 16.384 0 22.624l-160 160a15.943 15.943 0 0 1-11.296 4.672z"})))}function G6(t){return _.createElement("svg",{viewBox:"0 0 508.16 508.16",...t},_.createElement("path",{d:"M504.18 13.67a3.924 3.924 0 0 0-.42.02H4a4 4 0 0 0-4 4v47.28a4 4 0 0 0 4 4h19.72l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.16a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h479.8a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.64-42.08h9.84a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h19.72a4 4 0 0 0 4-4V17.69a4 4 0 0 0-3.98-4.02zM99.08 486.49H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm26.8 378.24h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm.16-47.28h-18.96V68.97h18.96v39.28zm247.84 378.24h-240v-39.28h240v39.28zm-240-47.28v-39.28h239.68v39.28H133.88zm240-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm-240-47.28V68.97h239.84v39.28H133.88zm266.64 378.24h-18.64l-.32-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm.32-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm-18.96-47.28V68.97h18.8v39.28h-18.8zm63.56 8v39.28h-36.92v-39.28h36.92zm-36.76-8V68.97h36.92v39.28h-36.92zm36.76 55.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.76l-.16-39.28h36.92zm42.68 181.12h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h36.92v17.44a4 4 0 0 0 8 0v-17.44h22.04l12.48 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6V68.97h22.04l12.56 39.28zm11.56-47.28H8V21.69h491.76l-.08 39.28z",fill:"currentColor"}),_.createElement("path",{d:"M454.32 37.33h-13.76a4 4 0 0 0 0 8h13.76a4 4 0 0 0 0-8zM414.84 37.33h-96a4 4 0 0 0 0 8h96a4 4 0 0 0 0-8z",fill:"currentColor"}))}function iKe(t){return _.createElement("svg",{viewBox:"0 0 63.907 63.907",fill:"currentColor",...t},_.createElement("circle",{fill:"currentColor",cx:30.515,cy:6.136,r:6.136}),_.createElement("path",{fill:"currentColor",d:"M47.399 27.455C42.346 24.53 38.2 20.579 34.71 15.931c-2.193-3.084-7.991-2.923-10.347-.097-3.584 3.487-6.625 7.081-9.037 10.677a3.209 3.209 0 0 0 5.329 3.573 54.205 54.205 0 0 1 3.59-4.734c-.051 3.333.116 9.347.2 12.05.028.9-.177 1.78-.595 2.579-3.308 6.317-5.424 12.294-7.572 19.606a3.37 3.37 0 1 0 6.465 1.901c1.982-6.742 3.897-12.201 6.884-17.981.152.006.304.006.458-.001 1.907 5.69 3.815 11.383 5.725 17.073 1.387 4.147 7.822 1.993 6.431-2.155-2.087-6.221-4.171-12.439-6.251-18.659-.121-.357-.414-1.755-.455-2.211-.344-3.832-.469-7.652-.432-11.477a51.027 51.027 0 0 0 9.782 7.328c3.597 2.088 6.063-3.891 2.514-5.948z"}))}function sKe(t){return _.createElement("svg",{viewBox:"0 0 285 285",...t},_.createElement("g",null,_.createElement("path",{fill:"currentColor",d:`M88.4,87.996c2.525-2.146,2.832-5.933,0.687-8.458C82.801,72.144,79.34,62.719,79.34,53c0-22.607,18.393-41,41-41 + c22.607,0,41,18.393,41,41c0,9.729-3.467,19.161-9.761,26.557c-2.148,2.523-1.843,6.311,0.681,8.458 + c1.129,0.961,2.511,1.431,3.886,1.431c1.698,0,3.386-0.717,4.572-2.111C168.858,77.77,173.34,65.576,173.34,53 + c0-29.225-23.775-53-53-53c-29.225,0-53,23.775-53,53c0,12.563,4.476,24.748,12.602,34.31C82.089,89.835,85.873,90.141,88.4,87.996 + z`}),_.createElement("path",{fill:"currentColor",d:`M120.186,41.201c13.228,0,23.812,8.105,27.313,19.879c0.761-2.562,1.176-5.271,1.176-8.08 + c0-15.649-12.685-28.335-28.335-28.335c-15.648,0-28.334,12.686-28.334,28.335c0,2.623,0.364,5.16,1.031,7.571 + C96.691,49.076,107.152,41.201,120.186,41.201z`}),_.createElement("path",{fill:"currentColor",d:`M234.21,169.856c-3.769-22.452-19.597-26.04-27.034-26.462c-2.342-0.133-4.516-1.32-5.801-3.282 + c-5.388-8.225-12.609-10.4-18.742-10.4c-4.405,0-8.249,1.122-10.449,1.932c-0.275,0.102-0.559,0.15-0.837,0.15 + c-0.87,0-1.701-0.47-2.163-1.262c-5.472-9.387-13.252-11.809-19.822-11.809c-3.824,0-7.237,0.82-9.548,1.564 + c-0.241,0.077-0.764,0.114-1.001,0.114c-1.256,0-2.637-1.03-2.637-2.376V69.753c0-11.035-8.224-16.552-16.5-16.552 + c-8.276,0-16.5,5.517-16.5,16.552v84.912c0,4.989-3.811,8.074-7.918,8.074c-2.495,0-4.899-1.138-6.552-3.678l-7.937-12.281 + c-3.508-5.788-8.576-8.188-13.625-8.189c-11.412-0.001-22.574,12.258-14.644,25.344l62.491,119.692 + c0.408,0.782,1.225,1.373,2.108,1.373h87.757c1.253,0,2.289-1.075,2.365-2.325l2.196-35.816c0.025-0.413,0.162-0.84,0.39-1.186 + C231.591,212.679,237.828,191.414,234.21,169.856z`})))}function hv(t){return _.createElement("svg",{viewBox:"1 -10 511.99999 511",...t},_.createElement("g",{fill:"currentColor"},_.createElement("path",{d:"M 405.5 150 C 405.5 232.566406 338.566406 299.5 256 299.5 C 173.433594 299.5 106.5 232.566406 106.5 150 C 106.5 67.433594 173.433594 0.5 256 0.5 C 338.566406 0.5 405.5 67.433594 405.5 150 Z M 405.5 150 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(25.882353%,75.294118%,88.627451%)",fillOpacity:1}}),_.createElement("path",{d:"M 512 342.921875 C 512 425.488281 445.066406 492.421875 362.5 492.421875 C 279.933594 492.421875 213 425.488281 213 342.921875 C 213 260.355469 279.933594 193.421875 362.5 193.421875 C 445.066406 193.421875 512 260.355469 512 342.921875 Z M 512 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,81.568627%,38.039216%)",fillOpacity:1}}),_.createElement("path",{d:"M 220.746094 295.308594 C 232.050781 298.039062 243.855469 299.5 256 299.5 C 321.917969 299.5 377.871094 256.835938 397.753906 197.613281 C 386.449219 194.878906 374.644531 193.421875 362.5 193.421875 C 296.582031 193.421875 240.628906 236.085938 220.746094 295.308594 Z M 220.746094 295.308594 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(28.627451%,74.117647%,56.470588%)",fillOpacity:1}}),_.createElement("path",{d:"M 299 342.921875 C 299 425.488281 232.066406 492.421875 149.5 492.421875 C 66.933594 492.421875 0 425.488281 0 342.921875 C 0 260.355469 66.933594 193.421875 149.5 193.421875 C 232.066406 193.421875 299 260.355469 299 342.921875 Z M 299 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(98.039216%,43.921569%,69.803922%)",fillOpacity:1}}),_.createElement("path",{d:"M 114.246094 197.613281 C 134.128906 256.835938 190.082031 299.5 256 299.5 C 268.144531 299.5 279.949219 298.039062 291.253906 295.308594 C 271.371094 236.085938 215.417969 193.421875 149.5 193.421875 C 137.355469 193.421875 125.550781 194.878906 114.246094 197.613281 Z M 114.246094 197.613281 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(68.627451%,48.235294%,77.647059%)",fillOpacity:1}}),_.createElement("path",{d:"M 213 342.921875 C 213 383.800781 229.414062 420.839844 256 447.828125 C 282.585938 420.839844 299 383.800781 299 342.921875 C 299 302.042969 282.585938 265.003906 256 238.015625 C 229.414062 265.003906 213 302.042969 213 342.921875 Z M 213 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(93.72549%,38.039216%,13.333333%)",fillOpacity:1}}),_.createElement("path",{d:"M 291.253906 295.320312 C 279.949219 298.046875 268.140625 299.5 256 299.5 C 243.859375 299.5 232.050781 298.046875 220.746094 295.320312 C 228.058594 273.542969 240.242188 254.015625 256 238.015625 C 271.757812 254.015625 283.941406 273.542969 291.253906 295.320312 Z M 291.253906 295.320312 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1}})))}function cKe(t){return _.createElement("svg",{width:32,height:32,viewBox:"0 0 365.445 365.445",...t},_.createElement("g",{fill:"currentColor"},_.createElement("path",{d:"M146.7 162.775h-26.8a6.655 6.655 0 0 0-6.647 6.647v26.602a6.653 6.653 0 0 0 6.647 6.646h26.8a6.654 6.654 0 0 0 6.647-6.646v-26.602a6.655 6.655 0 0 0-6.647-6.647zM245.547 162.775h-26.801a6.653 6.653 0 0 0-6.646 6.647v26.602a6.652 6.652 0 0 0 6.646 6.646h26.801a6.654 6.654 0 0 0 6.646-6.646v-26.602a6.655 6.655 0 0 0-6.646-6.647z"})),_.createElement("path",{d:"M345.445 1.204H20c-11.046 0-20 8.954-20 20v323.037c0 11.045 8.954 20 20 20h325.445c11.045 0 20-8.955 20-20V21.204c0-11.045-8.953-20-20-20zM182.723 287.66c-57.955 0-104.937-46.981-104.937-104.937 0-57.957 46.982-104.938 104.937-104.938S287.66 124.767 287.66 182.723 240.678 287.66 182.723 287.66z",fill:"currentColor"}))}function lKe(t){return _.createElement("svg",{width:32,height:32,viewBox:"0 0 45.659 45.659",...t},_.createElement("path",{fill:"currentColor",d:"M30.619 27.309V7.781C30.619 3.49 27.124 0 22.833 0c-4.29 0-7.785 3.491-7.785 7.78v19.528a10.722 10.722 0 0 0-3.05 7.522c0 5.972 4.857 10.828 10.829 10.828 5.97 0 10.834-4.856 10.834-10.828 0-2.918-1.141-5.572-3.042-7.521zM22.825 42.66c-4.316 0-7.824-3.512-7.824-7.828 0-2.527 1.174-4.779 3.077-6.211V16.237h3.372c.552 0 1-.47 1-1.022 0-.553-.448-1.021-1-1.021h-3.372v-2.466h3.372c.552 0 1-.434 1-.986a.989.989 0 0 0-1-.986h-3.372V7.78c0-2.636 2.119-4.78 4.754-4.78 2.637 0 4.756 2.144 4.756 4.781v20.871c1.903 1.434 3.047 3.671 3.047 6.18 0 4.316-3.494 7.828-7.81 7.828z"}),_.createElement("path",{fill:"currentColor",d:"M25.334 30.463V18.632h-5.002v11.831a4.973 4.973 0 0 0-2.537 4.369 5.038 5.038 0 0 0 5.038 5.046 5.034 5.034 0 0 0 5.034-5.046c0-1.866-.982-3.495-2.533-4.369z"}))}function uKe(t){return _.createElement("svg",{viewBox:"0 0 297 297",...t},_.createElement("g",null,_.createElement("path",{fill:"currentColor",d:"m243.404,138.042c-5.775,0-10.458,4.683-10.458,10.458 0,46.564-37.883,84.446-84.446,84.446s-84.446-37.882-84.446-84.446 37.883-84.446 84.446-84.446c5.775,0 10.458-4.683 10.458-10.458s-4.683-10.457-10.458-10.457c-58.097,0-105.361,47.265-105.361,105.361s47.264,105.361 105.361,105.361 105.361-47.264 105.361-105.361c0-5.775-4.681-10.458-10.457-10.458z"}),_.createElement("path",{fill:"currentColor",d:"m142.963,121.344l-20.272-30.41c-3.203-4.807-9.695-6.104-14.502-2.9-4.805,3.202-6.104,9.695-2.9,14.502l20.279,30.422c-3.015,4.436-4.78,9.787-4.78,15.543 0,15.281 12.432,27.713 27.713,27.713 15.281,0 27.713-12.432 27.713-27.713 0-15.281-12.432-27.713-27.713-27.713-1.897-0.001-3.749,0.191-5.538,0.556zm12.335,27.156c0,3.748-3.05,6.798-6.798,6.798s-6.798-3.05-6.798-6.798 3.05-6.798 6.798-6.798 6.798,3.05 6.798,6.798z"}),_.createElement("path",{fill:"currentColor",d:"M148.5,0C66.617,0,0,66.617,0,148.5S66.617,297,148.5,297S297,230.383,297,148.5S230.383,0,148.5,0z M158.958,275.653 v-6.366c0-5.775-4.683-10.458-10.458-10.458c-5.775,0-10.458,4.683-10.458,10.458v6.366 c-62.027-5.056-111.64-54.668-116.695-116.695h6.366c5.775,0,10.458-4.683,10.458-10.458s-4.683-10.458-10.458-10.458h-6.366 c5.056-62.027,54.668-111.64,116.695-116.695v6.366c0,5.775,4.683,10.458,10.458,10.458c5.775,0,10.458-4.683,10.458-10.458v-6.366 c62.027,5.056,111.64,54.668,116.695,116.695h-6.366c-5.775,0-10.458,4.683-10.458,10.458s4.683,10.458,10.458,10.458h6.366 C270.598,220.985,220.985,270.598,158.958,275.653z"})))}function dKe(t){return _.createElement("svg",{viewBox:"0 0 361 361",...t},_.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),_.createElement("path",{d:"M228.5 205.584h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5H228.5c-2.726 0-5 2.274-5 5s2.274 5 5 5z",fill:"currentColor"}),_.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),_.createElement("path",{d:"M232.826 280.905c-.339 3.356-18.813-.782-20.919-1.06l-45.073-5.94-45.074-5.94-14.507-1.912c-1.456-.192-6.201-.055-6.412-2.147-.621-6.157 0-12.699 0-18.878v-43.5-82.076-5.13c0-2.551 5.184-1.015 6.412-.853l35.438 4.67 83.723 11.035c1.457.192 6.201.055 6.412 2.147.169 1.673 0 3.451 0 5.13v144.454c0 6.448 10 6.448 10 0V136.451v-5.13c0-7.619-6.137-10.793-12.673-11.655l-28.531-3.76-88.411-11.652-9.897-1.304c-6.555-.864-12.473 4.9-12.473 11.38v144.832c0 2.023-.071 4.04.132 6.053.717 7.111 6.606 9.563 12.759 10.374l76.827 10.125 39.896 5.259 9.697 1.278c7.063.931 12.011-4.778 12.673-11.346.648-6.415-9.358-6.352-9.999 0z",fill:"currentColor"}))}function pKe(t){return _.createElement("svg",{width:361,height:361,viewBox:"0 0 361 361",...t},_.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),_.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9zM265.732 265.178c.584 2.887-1.629 5.228-4.942 5.228H103.457c-3.313 0-6.474-2.341-7.058-5.228L75.24 130.633c-.584-2.887 1.628-5.228 4.942-5.228h157.333c3.313 0 6.474 2.34 7.058 5.228l21.159 134.545z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),_.createElement("path",{d:"M247.194 199.667h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5h-6.639c-2.726 0-5 2.274-5 5s2.275 5 5 5z",fill:"currentColor"}))}it.Types.airCondition+"",it.Types.blind+"",it.Types.blindButtons+"",it.Types.button+"",it.Types.buttonSensor+"",it.Types.camera+"",it.Types.chart+"",it.Types.image+"",it.Types.dimmer+"",it.Types.door+"",it.Types.fireAlarm+"",it.Types.floodAlarm+"",it.Types.gate+"",it.Types.humidity+"",it.Types.illuminance+"",it.Types.info+"",it.Types.light+"",it.Types.lock+"",it.Types.location+"",it.Types.locationOne+"",it.Types.media+"",it.Types.motion+"",it.Types.ct+"",it.Types.percentage+"",it.Types.rgb+"",it.Types.rgbSingle+"",it.Types.rgbwSingle+"",it.Types.hue+"",it.Types.cie+"",it.Types.slider+"",it.Types.socket+"",it.Types.temperature+"",it.Types.thermostat+"",it.Types.vacuumCleaner+"",it.Types.volume+"",it.Types.volumeGroup+"",it.Types.window+"",it.Types.windowTilt+"",it.Types.weatherCurrent+"",it.Types.weatherForecast+"",it.Types.warning+"",it.Types.unknown+"",it.Types.instance+"";class T2 extends _.Component{static generateFile(e,r){const n=window.document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",window.document.body.appendChild(n),n.click(),window.document.body.removeChild(n)}handleFileSelect=e=>{const n=e.target?.files;if(!n||!n.length){console.error("No files found. Please report to developers");return}const o=n[0];if(o){const a=new window.FileReader;a.onload=()=>{const s=a.result?.toString()||"";try{const l=JSON.parse(s);l.native&&l.common?l.common.name!==this.props.common.name?this.props.onError&&this.props.onError(j.t("ra_otherConfig",l.common.name)):this.props.onLoad&&this.props.onLoad(l.native):this.props.onError&&this.props.onError(j.t("ra_invalidConfig"))}catch(l){this.props.onError&&this.props.onError(l?.toString())}},a.readAsText(o)}else alert("Failed to open JSON File")};download(){const e={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};e.common.news&&delete e.common.news,e.common.titleLang&&delete e.common.titleLang,e.common.desc&&delete e.common.desc,T2.generateFile(`${e._id}.json`,e)}upload(){const e=window.document.createElement("input");e.setAttribute("type","file"),e.setAttribute("id","files"),e.setAttribute("opacity","0"),e.addEventListener("change",this.handleFileSelect,!1),e.click()}render(){return _.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?_.createElement(Yi,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?_.createElement(Ui,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{window.open(this.props.common.readme,"_blank")?.focus()}},_.createElement(XV,null)):null,_.createElement(Ui,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:j.t("ra_Load configuration from file"),onClick:()=>this.upload()},_.createElement(uG,null)),_.createElement(Ui,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:j.t("ra_Save configuration to file"),onClick:()=>this.download()},_.createElement(lG,null)))}}function fKe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function hKe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("g",{fill:"currentColor"},_.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),_.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function mKe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("g",{fill:"currentColor"},_.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),_.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),_.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),_.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),_.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),_.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),_.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function _Ke(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function gKe(t){return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},_.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),_.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}))}const X6={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};_.forwardRef(function(e,r){return _.createElement(Nz,{sx:{...X6.root,...e?.style||void 0,...e.overflow==="auto"?X6.overflowAuto:void 0},ref:r},e.children)});_.createElement(gKe,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(hKe,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(mKe,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(fKe,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(B8,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(_Ke,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),_.createElement(QV,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(sG,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(iG,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(cG,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(tG,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(nG,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(BV,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(Ab,{className:"itemIcon",style:{verticalAlign:"middle"}}),_.createElement(E1,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});class Gp extends _.Component{refTypo;height;width;constructor(e){super(e),this.state={closed:this.props.storeId?window.localStorage.getItem(this.props.storeId)==="true":!1},this.height=0,this.width=0,this.refTypo=_.createRef()}componentDidMount(){this.detectHeight()}onClick(){this.props.storeId&&this.props.closed===void 0&&(this.state.closed?window.localStorage.removeItem(this.props.storeId):window.localStorage.setItem(this.props.storeId,"true")),this.props.closed===void 0?this.setState({closed:!this.state.closed},()=>{this.props.onClose&&this.props.onClose(this.state.closed)}):this.props.onClose&&this.props.onClose(!this.props.closed)}detectHeight(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed;this.props.closeable&&!e&&this.refTypo.current&&window.requestAnimationFrame(()=>{(this.props.closed!==void 0?this.props.closed:this.state.closed)||this.refTypo.current&&(!this.height||this.width!==this.refTypo.current.clientWidth)&&(this.height=this.refTypo.current.clientHeight,this.width=this.refTypo.current.clientWidth,this.forceUpdate())})}componentDidUpdate(){this.detectHeight()}render(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed,r=e?fG:ti;return _.createElement(st,{className:"iom-info-box",style:{whiteSpace:"preserve",display:"flex",gap:8,alignItems:e||this.props.iconPosition==="top"?"flex-start":"center",borderWidth:1,borderStyle:"solid",padding:4,borderRadius:5,marginBottom:8,maxWidth:"100%",transition:"height 0.5s",height:this.props.closeable?e?30:this.height||void 0:void 0,overflow:this.props.closeable?"hidden":void 0,position:"relative",...this.props.style},sx:{borderColor:n=>this.props.type==="ok"?n.palette.info.main:n.palette[this.props.type].main}},this.props.type==="ok"?_.createElement(li,{style:{color:"#0F0"}}):this.props.type==="info"?_.createElement(YV,{color:"primary"}):_.createElement(hG,{color:this.props.type}),_.createElement(Ro,{ref:this.refTypo},this.props.children),this.props.closeable?_.createElement(r,{sx:{color:n=>n.palette.mode==="dark"?"lightgray":"gray",cursor:"pointer",position:"absolute",top:4,right:4},onClick:()=>this.onClick()}):null,this.props.closeable?_.createElement("div",{style:{width:22}}):null,e?_.createElement(st,{component:"div",sx:n=>{const o=n.palette[this.props.type==="ok"?"info":this.props.type].main;return{background:`linear-gradient(${o}00 0%, ${o}10 60%, ${o}90 100%)`}},style:{bottom:0,position:"absolute",left:0,right:0,height:10}}):null)}}const le={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},mv=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Xp=["January","February","March","April","May","June","July","August","September","October","November","December"],_v={minutes:"minutes",hours:"hours"},Yl=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function ra(t){return t<10?`0${t}`:`${t}`}const J6={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function gv(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class Or extends T.Component{refFrom;refTo;refOnce;timerOnce=null;timerFrom=null;timerTo=null;constructor(e){super(e);let r;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{r=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(r=this.props.schedule);(!r||!Object.keys(r).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),r=J6),r={...J6,...r},r.valid.from||=Or.now2string(),this.refFrom=_.createRef(),this.refTo=_.createRef(),this.refOnce=_.createRef(),this.state={schedule:r,desc:Or.state2text(r)},JSON.stringify(r)!==this.props.schedule&&setTimeout(()=>this.props.onChange?.(JSON.stringify(r)),100)}componentWillUnmount(){this.timerOnce&&(clearTimeout(this.timerOnce),this.timerOnce=null),this.timerFrom&&(clearTimeout(this.timerFrom),this.timerFrom=null),this.timerTo&&(clearTimeout(this.timerTo),this.timerTo=null)}onChange(e,r){const n=JSON.stringify(e)!==JSON.stringify(this.state.schedule);if(r||n){n&&this.setState({schedule:e,desc:Or.state2text(e)});const o=JSON.parse(JSON.stringify(e));if(o.period.once){const a=o.period.once;delete o.period,o.period={once:a},delete o.valid}else if(o.period.days){const a=o.period.days,s=o.period.dows;delete o.period,o.period={days:a},s&&s!=="[]"&&(o.period.dows=s)}else if(o.period.weeks){const a=o.period.weeks,s=o.period.dows;delete o.period,o.period={weeks:a},s&&s!=="[]"&&(o.period.dows=s)}else if(o.period.months){const a=o.period.months,s=o.period.dates;delete o.period,o.period={months:a},s&&s!=="[]"&&(o.period.dates=s)}else if(o.period.years){const a=o.period.years,s=o.period.yearMonth,l=o.period.yearDate;delete o.period,o.period={years:a,yearDate:l},s&&(o.period.yearMonth=s)}if(o.time.exactTime?(delete o.time.end,delete o.time.mode,delete o.time.interval):delete o.time.exactTime,o.valid){if(o.valid.to||delete o.valid.to,o.period.days===1||o.period.weeks===1||o.period.months===1||o.period.years===1){const a=Or.string2date(o.valid.from),s=new Date;s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),a<=s&&delete o.valid.from}!o.valid.from&&!o.valid.to&&delete o.valid}this.props.onChange?.(JSON.stringify(o),Or.state2text(e))}}static state2text(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{return""}const r=[],n=Or.string2date(e.valid.from);if(e.period.once){const o=Or.string2date(e.period.once),a=new Date;if(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),oj.t(mv[s]));if(a.length===1)r.push(j.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(j.t("sch_desc_everyDay"));else{const s=a.pop();r.push(j.t("sch_desc_onWeekdays",a.join(", "),s))}}}else r.push(j.t("sch_desc_everyDay"));else r.push(j.t("sch_desc_everyNDay",e.period.days.toString()));else if(e.period.weeks)if(e.period.weeks===1?r.push(j.t("sch_desc_everyWeek")):r.push(j.t("sch_desc_everyNWeeks",e.period.weeks.toString())),e.period.dows){const o=JSON.parse(e.period.dows);if(o.length===2&&o[0]===0&&o[1]===6)r.push(j.t("sch_desc_onWeekends"));else if(o.length===5&&o[0]===1&&o[1]===2&&o[2]===3&&o[3]===4&&o[4]===5)r.push(j.t("sch_desc_onWorkdays"));else{const a=o.map(s=>j.t(mv[s]));if(a.length===1)r.push(j.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(j.t("sch_desc_everyDay"));else{const s=a.pop();r.push(j.t("sch_desc_onWeekdays",a.join(", "),s))}}}else return j.t("sch_desc_never");else if(e.period.months){if(e.period.dates){const o=JSON.parse(e.period.dates);if(o.length===1)r.push(j.t("sch_desc_onDate",o[0]));else if(o.length===31)r.push(j.t("sch_desc_onEveryDate"));else if(o.length){const a=o.pop();r.push(j.t("sch_desc_onDates",o.join(", "),a))}else return j.t("sch_desc_never")}else r.push(j.t("sch_desc_onEveryDate"));if(e.period.months===1)r.push(j.t("sch_desc_everyMonth"));else if(typeof e.period.months=="number")r.push(j.t("sch_desc_everyNMonths",e.period.months.toString()));else{const a=JSON.parse(e.period.months).map(s=>j.t(Xp[s-1]));if(!a.length)return j.t("sch_desc_never");if(a.length===1)r.push(j.t("sch_desc_onMonth",a[0]));else if(a.length===12)r.push(j.t("sch_desc_everyMonth"));else{const s=a.pop();r.push(j.t("sch_desc_onMonths",a.join(", "),s))}}}else e.period.years&&(e.period.years===1?r.push(j.t("sch_desc_everyYear")):r.push(j.t("sch_desc_everyNYears",e.period.years.toString())),r.push(j.t("sch_desc_onDate",e.period.yearDate.toString(),e.period.yearMonth?j.t(Xp[e.period.yearMonth-1]):j.t("sch_desc_everyMonth"))));if(e.time.exactTime)Yl.includes(e.time.start)?r.push(j.t("sch_desc_atTime",j.t(`sch_astro_${e.time.start}`))):r.push(j.t("sch_desc_atTime",e.time.start));else{e.time.mode===_v.minutes?e.time.interval===1?r.push(j.t("sch_desc_everyMinute")):r.push(j.t("sch_desc_everyNMinutes",e.time.interval.toString())):e.time.interval===1?r.push(j.t("sch_desc_everyHour")):r.push(j.t("sch_desc_everyNHours",e.time.interval.toString()));const o=Yl.indexOf(e.time.start)!==-1?j.t(`sch_astro_${e.time.start}`):e.time.start,a=Yl.indexOf(e.time.end)!==-1?j.t(`sch_astro_${e.time.end}`):e.time.end;(o!=="00:00"||a!=="24:00"&&a!=="23:59")&&r.push(j.t("sch_desc_intervalFromTo",o,a))}return e.period.once||(n.getTime()>Date.now()&&e.valid.to?r.push(j.t("sch_desc_validFromTo",e.valid.from,e.valid.to)):n.getTime()>Date.now()?r.push(j.t("sch_desc_validFrom",e.valid.from)):e.valid.to&&r.push(j.t("sch_desc_validTo",e.valid.to))),r.join(" ")}getTimePeriodElements(){const e=this.state.schedule;let r=!1,n=!1,o=!1,a=!0;return e.time.start==="00:00"&&e.time.end==="24:00"?(r=!0,a=!1):e.time.start==="sunrise"?(n=!0,a=!1):e.time.start==="sunset"&&(o=!0,a=!1),_.createElement("div",{key:"timePeriod",style:le.rowDiv},_.createElement("div",{style:le.modeDiv},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!e.time.exactTime,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.exactTime=!1,this.onChange(s)}}),label:j.t("sch_intervalTime")})),_.createElement("div",{style:le.settingsDiv},_.createElement("div",{style:le.settingsDiv},!e.time.exactTime&&_.createElement("div",null,_.createElement("div",null,_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!a,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="23:59",this.onChange(s)}}),label:a?"":j.t("sch_fromTo")}),a&&[_.createElement(zt,{variant:"standard",style:{...le.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:j.t("sch_from"),margin:"normal"}),_.createElement(zt,{variant:"standard",style:le.inputTime,key:"exactTimeTo",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.end=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:j.t("sch_to"),margin:"normal"})])),!e.time.exactTime&&_.createElement("div",null,_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!r,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="24:00",this.onChange(s)}}),label:j.t("sch_wholeDay")})),!e.time.exactTime&&_.createElement("div",null,_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!n,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunrise",s.time.end="sunset",this.onChange(s)}}),label:j.t("sch_astroDay")})),!e.time.exactTime&&_.createElement("div",null,_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!o,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunset",s.time.end="sunrise",this.onChange(s)}}),label:j.t("sch_astroNight")}))),!e.time.exactTime&&this.getPeriodSettingsMinutes(a)))}getTimeExactElements(){const e=Yl.includes(this.state.schedule.time.start);return _.createElement("div",{key:"timeExact",style:le.rowDiv},_.createElement("div",{style:le.modeDiv},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.exactTime=!0,this.onChange(r)}}),label:j.t("sch_exactTime")})),this.state.schedule.time.exactTime&&_.createElement(Sn,{variant:"standard",value:e?this.state.schedule.time.start:"00:00",onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)}},_.createElement(Qt,{key:"specific",value:"00:00"},j.t("sch_specificTime")),Yl.map(r=>_.createElement(Qt,{key:r,value:r},j.t(`sch_astro_${r}`)))),this.state.schedule.time.exactTime&&!e&&_.createElement("div",{style:le.settingsDiv},_.createElement(zt,{variant:"standard",style:le.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:r=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:r.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return _.createElement("hr",{style:le.hr})}getPeriodModes(){const e=this.state.schedule,r=!e.period.dows&&!e.period.months&&!e.period.dates&&!e.period.years&&!e.period.days&&!e.period.weeks;return r&&!e.period.once&&(e.period.once=Or.now2string(!0)),[_.createElement("div",{key:"once",style:{...le.rowDiv,...le.rowOnce}},_.createElement("div",{style:le.modeDiv},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.once||=Or.now2string(!0),n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,this.onChange(n)}}),label:j.t("sch_periodOnce")})),r&&_.createElement("div",{style:le.settingsDiv},_.createElement(zt,{variant:"standard",style:le.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:gv(e.period.once),onChange:n=>{this.timerOnce&&clearTimeout(this.timerOnce),this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(o=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),s=Or.string2date(o);s.toString()!=="Invalid Date"&&(a.period.once=`${ra(s.getDate())}.${ra(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},label:j.t("sch_at"),margin:"normal"}))),_.createElement(st,{component:"div",key:"days",sx:je.getStyle(this.props.theme,le.rowDiv,le.rowDays)},_.createElement("div",{style:le.modeDiv},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!e.period.days,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodDaily")})),_.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsDaily(),e.period.days?this.getPeriodSettingsWeekdays():null)),_.createElement(st,{component:"div",key:"weeks",sx:je.getStyle(this.props.theme,le.rowDiv,le.rowDows)},_.createElement("div",{style:le.modeDiv},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!e.period.weeks,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=e.period.weeks?0:1,n.period.dows||="[0]",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodWeekly")})),_.createElement(st,{component:"div",style:le.settingsDiv},_.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsWeekly()),_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,le.settingsDiv,le.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),_.createElement(st,{component:"div",key:"months",sx:je.getStyle(this.props.theme,le.rowDiv,le.rowMonths)},_.createElement("div",{style:le.modeDiv},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!e.period.months,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,n.period.dows="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodMonthly")})),_.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsMonthly(),e.period.months?_.createElement(st,null,_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,le.settingsDiv,le.rowMonthsDates)},_.createElement(ut,{control:_.createElement(dr,{style:le.inputRadio,checked:!!e.period.dates,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months||=1;const o=[];for(let a=1;a<=31;a++)o.push(a);n.period.dates||=JSON.stringify(o),n.period.dows="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodDates")})),_.createElement(st,{component:"div",sx:je.getStyle(this.props.theme,le.settingsDiv,le.rowMonthsDates)},this.getPeriodSettingsDates())):null)),_.createElement(st,{component:"div",key:"years",sx:je.getStyle(this.props.theme,le.rowDiv,le.rowYears)},_.createElement("div",{style:le.modeDiv},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:!!e.period.years,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,n.period.yearDate=1,n.period.yearMonth=1,n.period.dows="",n.period.months=0,n.period.dates="",n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodYearly")})),_.createElement("div",{style:le.settingsDiv},_.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsYearly()),!!e.period.years&&_.createElement("div",{style:le.settingsDiv},_.createElement("span",null,j.t("sch_on")),_.createElement(no,{key:"input",value:this.state.schedule.period.yearDate,style:le.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearDate=parseInt(n.target.value,10),o.period.yearDate<1&&(o.period.yearDate=31),o.period.yearDate>31&&(o.period.yearDate=1),this.onChange(o)}}),_.createElement(Sn,{variant:"standard",value:e.period.yearMonth,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearMonth=n.target.value,this.onChange(o)}},_.createElement(Qt,{key:"every",value:0},j.t("sch_yearEveryMonth")),Xp.map((n,o)=>_.createElement(Qt,{key:n,value:o+1},j.t(n)))))))]}getPeriodSettingsMinutes(e){return _.createElement("div",{style:{display:"inline-block",marginTop:e?15:"inherit"}},_.createElement("label",{style:{marginLeft:4,marginRight:4}},j.t("sch_every")),_.createElement(no,{value:this.state.schedule.time.interval,style:{...le.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.interval=parseInt(r.target.value,10),this.onChange(n)}}),_.createElement(Sn,{variant:"standard",value:this.state.schedule.time.mode,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.mode=r.target.value,this.onChange(n)}},_.createElement(Qt,{value:_v.minutes},j.t("sch_periodMinutes")),_.createElement(Qt,{value:_v.hours},j.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const e=this.state.schedule,r=e.period.dows&&e.period.dows!=="[1, 2, 3, 4, 5]"&&e.period.dows!=="[0, 6]";return[_.createElement("div",{key:"workdays"},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:e.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[1, 2, 3, 4, 5]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:j.t("sch_periodWorkdays")})),_.createElement("div",{key:"weekend"},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:e.period.dows==="[0, 6]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:j.t("sch_periodWeekend")})),_.createElement("div",{key:"specific",style:{verticalAlign:"top"}},_.createElement(ut,{style:{verticalAlign:"top"},control:_.createElement(jt,{style:le.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 1, 2, 3, 4, 5, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:j.t("sch_periodWeekdays")}),r&&(e.period.days===1||e.period.weeks)&&_.createElement(af,{row:!0,style:{...le.inputGroup,width:150}},[1,2,3,4,5,6,0].map(n=>_.createElement(ut,{key:`specific_${n}`,style:le.inputGroupElement,control:_.createElement(dr,{style:le.inputSmallCheck,checked:e.period.dows.includes(n.toString()),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));let s;try{s=JSON.parse(a.period.dows)}catch{s=[]}o.target.checked&&!s.includes(n)?s.push(n):!o.target.checked&&s.includes(n)&&s.splice(s.indexOf(n),1),s.sort((l,u)=>l-u),a.period.dows=JSON.stringify(s),a.period.days&&(a.period.days=1),this.onChange(a)}}),label:j.t(mv[n])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const e=this.state.schedule;return[_.createElement("div",{key:"every_day"},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:e.period.days===1&&!e.period.dows,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",this.onChange(r)}}),label:j.t("sch_periodEveryDay")})),_.createElement("div",{key:"everyN_day"},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:e.period.days>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=2,r.period.dows="",this.onChange(r)}}),label:j.t("sch_periodEvery")}),e.period.days>1&&[_.createElement(no,{key:"input",value:this.state.schedule.period.days,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=parseInt(r.target.value,10),n.period.dows="",this.onChange(n)}}),_.createElement("span",{key:"span",style:{paddingRight:10}},j.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const e=this.state.schedule;return[_.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},_.createElement("div",null,_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:e.period.weeks===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=1,this.onChange(r)}}),label:j.t("sch_periodEveryWeek")})),_.createElement("div",null,_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:e.period.weeks>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=2,this.onChange(r)}}),label:j.t("sch_periodEvery")}),e.period.weeks>1&&[_.createElement(no,{key:"input",value:this.state.schedule.period.weeks,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=parseInt(r.target.value,10),this.onChange(n)}}),_.createElement("span",{key:"text"},j.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const e=this.state.schedule,r=[];for(let o=1;o<=31;o++)r.push(o);const n=JSON.parse(e.period.dates);return _.createElement(af,{row:!0,style:{...le.inputGroup,maxWidth:620}},_.createElement(ut,{style:le.inputDateDay,control:_.createElement(dr,{style:le.inputDateDayCheck,checked:n.length===31,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let s=1;s<=31;s++)a.push(s);o.period.dates=JSON.stringify(a),this.onChange(o)}}),label:j.t("sch_all")}),_.createElement(ut,{style:le.inputDateDay,control:_.createElement(dr,{style:le.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dates="[]",this.onChange(o)}}),label:j.t("sch_no_one")}),n.length!==31&&!!n.length&&_.createElement(ut,{style:le.inputDateDay,control:_.createElement(dr,{style:le.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],s=JSON.parse(o.period.dates);for(let l=1;l<=31;l++)s.includes(l)||a.push(l);a.sort((l,u)=>l-u),o.period.dates=JSON.stringify(a),this.onChange(o)}}),label:j.t("sch_invert")}),_.createElement("div",null),r.map(o=>_.createElement(ut,{key:`date_${o}`,style:o?le.inputDateDay:{...le.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:_.createElement(dr,{style:le.inputDateDayCheck,checked:JSON.parse(e.period.dates).includes(o),onChange:a=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.dates)}catch{l=[]}a.target.checked&&!l.includes(o)?l.push(o):!a.target.checked&&l.includes(o)&&l.splice(l.indexOf(o),1),l.sort((u,f)=>u-f),s.period.dates=JSON.stringify(l),this.onChange(s)}}),label:o<10?[_.createElement("span",{key:"0",style:{opacity:0}},"0"),_.createElement("span",{key:"num"},o)]:o})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const e=this.state.schedule,r=typeof e.period.months=="string"?JSON.parse(e.period.months):[];return[_.createElement("div",{key:"every"},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:typeof e.period.months=="number"&&e.period.months===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,this.onChange(e)}}),label:j.t("sch_periodEveryMonth")})),_.createElement("div",{key:"everyN"},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:typeof e.period.months=="number"&&e.period.months>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=2,this.onChange(n)}}),label:j.t("sch_periodEvery")}),typeof e.period.months=="number"&&e.period.months>1&&[_.createElement(no,{key:"input",value:e.period.months,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=parseInt(n.target.value,10),o.period.months<1&&(o.period.months=1),this.onChange(o)}}),_.createElement("span",{key:"text"},j.t("sch_periodMonth"))]),_.createElement("div",{key:"specific",style:{verticalAlign:"top"}},_.createElement(ut,{style:{verticalAlign:"top"},control:_.createElement(jt,{style:le.inputRadio,checked:typeof e.period.months=="string",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(n)}}),label:j.t("sch_periodSpecificMonths")}),typeof e.period.months=="string"&&_.createElement(af,{row:!0,style:le.inputGroup},_.createElement(ut,{style:le.inputDateDay,control:_.createElement(dr,{style:le.inputDateDayCheck,checked:r.length===12,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[];for(let a=1;a<=12;a++)o.push(a);n.period.months=JSON.stringify(o),this.onChange(n)}}),label:j.t("sch_all")}),_.createElement(ut,{style:le.inputDateDay,control:_.createElement(dr,{style:le.inputDateDayCheck,checked:!r.length,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[]",this.onChange(n)}}),label:j.t("sch_no_one")}),r.length!==12&&!!r.length&&_.createElement(ut,{style:le.inputDateDay,control:_.createElement(dr,{style:le.inputDateDayCheck,checked:!1,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[],a=JSON.parse(n.period.months);for(let s=1;s<=12;s++)a.includes(s)||o.push(s);o.sort((s,l)=>s-l),n.period.months=JSON.stringify(o),this.onChange(n)}}),label:j.t("sch_invert")}),_.createElement("div",null),Xp.map((n,o)=>_.createElement(ut,{key:`month_${o}`,style:le.inputGroupElement,control:_.createElement(dr,{style:le.inputSmallCheck,checked:typeof e.period.months=="string"?JSON.parse(e.period.months).includes(o+1):e.period.months===o,onChange:a=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.months)}catch{l=[]}a.target.checked&&!l.includes(o+1)?l.push(o+1):!a.target.checked&&l.includes(o+1)&&l.splice(l.indexOf(o+1),1),l.sort((u,f)=>u-f),s.period.months=JSON.stringify(l),this.onChange(s)}}),label:j.t(n)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const e=this.state.schedule;return[_.createElement("div",{key:"year"},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:e.period.years===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,this.onChange(r)}}),label:j.t("sch_periodEveryYear")})),_.createElement("div",{key:"every"},_.createElement(ut,{control:_.createElement(jt,{style:le.inputRadio,checked:e.period.years>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=2,this.onChange(r)}}),label:j.t("sch_periodEvery")}),e.period.years>1&&[_.createElement(no,{key:"input",value:this.state.schedule.period.years,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=parseInt(r.target.value,10),n.period.years<1&&(n.period.years=1),this.onChange(n)}}),_.createElement("span",{key:"text"},j.t("sch_periodYear"))])]}static now2string(e){const r=new Date;return r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0),e&&(r.setDate(r.getDate()+2),r.setMilliseconds(r.getMilliseconds()-1)),`${ra(r.getDate())}.${ra(r.getMonth()+1)}.${ra(r.getFullYear())}`}static string2date(e){let r=e.split(".");return r.length===1?(r=e.split("-"),new Date(parseInt(r[0],10),parseInt(r[1],10)-1,parseInt(r[2],10))):new Date(parseInt(r[2],10),parseInt(r[1],10)-1,parseInt(r[0],10))}getValidSettings(){const e=this.state.schedule;return _.createElement("div",{style:le.rowDiv},_.createElement("div",{style:{...le.modeDiv,verticalAlign:"middle"}},_.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},j.t("sch_valid")),_.createElement("span",null,j.t("sch_validFrom"))),_.createElement("div",{style:le.settingsDiv},_.createElement(zt,{variant:"standard",style:{...le.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:gv(e.valid.from),type:"date",onChange:r=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(n=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),a=Or.string2date(n);a.toString()!=="Invalid Date"&&(o.valid.from=`${ra(a.getDate())}.${ra(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),_.createElement(ut,{control:_.createElement(dr,{style:le.inputRadio,checked:!!e.valid.to,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.valid.to=r.valid.to?"":Or.now2string(!0),this.onChange(r)}}),label:j.t("sch_validTo")}),!!e.valid.to&&_.createElement(zt,{variant:"standard",inputRef:this.refTo,style:{...le.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:gv(e.valid.to),onChange:r=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(n=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),a=Or.string2date(n);a.toString()!=="Invalid Date"&&(o.valid.to=`${ra(a.getDate())}.${ra(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return _.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},_.createElement("div",null,this.state.desc),_.createElement("div",{style:le.scrollWindow},_.createElement("h5",null,j.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),Or.getDivider(),_.createElement("h5",null,j.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&Or.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}const yv={div:{borderRadius:3,padding:"0 3px",lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center"},icon:{width:16,height:16,marginRight:8,verticalAlign:"middle"},text:{display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}};function ec(t){const e=t.value;let r;const n=t.removePrefix||"";if(typeof e=="string"){const a=t.list;if(a)if(Array.isArray(a)){const s=a.find(l=>l?._id===n+e);s?r={name:je.getObjectNameFromObj(s,t.lang).replace("system.group.",""),value:s._id,icon:t.icon||s.common?.icon,color:t.color||s.common?.color}:r={name:e,value:n+e}}else if(a[n+e]){const s=a[n+e];r={name:je.getObjectNameFromObj(s,t.lang).replace("system.group.",""),value:s._id,icon:t.icon||s.common?.icon,color:t.color||s.common?.color}}else r={name:e,value:n+e,icon:t.icon,color:t.color};else r={name:e,value:n+e,icon:t.icon,color:t.color}}else if(!e||typeof e!="object")r={name:"",value:"",icon:t.icon,color:t.color};else{const a=e;r={name:je.getObjectNameFromObj(a,t.lang).replace("system.group.","").replace("system.user.","").replace("enum.rooms.","").replace("enum.functions.",""),value:a._id,icon:t.icon||a.common?.icon,color:t.color||a.common?.color}}const o=r?.color?{border:`1px solid ${je.invertColor(r?.color)}`,color:je.getInvertedColor(r?.color,t.themeType||"light",!0)||void 0,backgroundColor:r?.color}:{};return _.createElement("div",{style:{...t.style||void 0,...yv.div,...o||void 0},className:je.clsx(t.className,t.moreClasses?.root),title:t.title||r.value},r?.icon?_.createElement(Yi,{src:r?.icon,className:t.moreClasses?.icon,style:yv.icon}):null,_.createElement("div",{style:yv.text,className:t.moreClasses?.text},r?.name))}function Y6(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function c7(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',PKe=Number.isNaN||jo.isNaN;function gt(t){return typeof t=="number"&&!PKe(t)}var lE=function(e){return e>0&&e<1/0};function vv(t){return typeof t>"u"}function Ki(t){return T1(t)==="object"&&t!==null}var IKe=Object.prototype.hasOwnProperty;function xc(t){if(!Ki(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&IKe.call(r,"isPrototypeOf")}catch{return!1}}function cn(t){return typeof t=="function"}var jKe=Array.prototype.slice;function y7(t){return Array.from?Array.from(t):jKe.call(t)}function fr(t,e){return t&&cn(e)&&(Array.isArray(t)||gt(t.length)?y7(t).forEach(function(r,n){e.call(t,r,n,t)}):Ki(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Yt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){Ki(a)&&Object.keys(a).forEach(function(s){e[s]=a[s]})}),e},zKe=/\.\d*(?:0|9){12}\d*$/;function Oc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return zKe.test(t)?Math.round(t*e)/e:t}var LKe=/^width|height|left|top|marginLeft|marginTop$/;function Va(t,e){var r=t.style;fr(e,function(n,o){LKe.test(o)&>(n)&&(n="".concat(n,"px")),r[o]=n})}function FKe(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function Cr(t,e){if(e){if(gt(t.length)){fr(t,function(n){Cr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function Po(t,e){if(e){if(gt(t.length)){fr(t,function(r){Po(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function kc(t,e,r){if(e){if(gt(t.length)){fr(t,function(n){kc(n,e,r)});return}r?Cr(t,e):Po(t,e)}}var BKe=/([a-z\d])([A-Z])/g;function A2(t){return t.replace(BKe,"$1-$2").toLowerCase()}function j1(t,e){return Ki(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(A2(e)))}function Wu(t,e,r){Ki(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(A2(e)),r)}function WKe(t,e){if(Ki(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(A2(e)))}var v7=/\s\s*/,b7=(function(){var t=!1;if(jh){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});jo.addEventListener("test",r,n),jo.removeEventListener("test",r,n)}return t})();function eo(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(v7).forEach(function(a){if(!b7){var s=t.listeners;s&&s[a]&&s[a][r]&&(o=s[a][r],delete s[a][r],Object.keys(s[a]).length===0&&delete s[a],Object.keys(s).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function zn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(v7).forEach(function(a){if(n.once&&!b7){var s=t.listeners,l=s===void 0?{}:s;o=function(){delete l[a][r],t.removeEventListener(a,o,n);for(var f=arguments.length,h=new Array(f),d=0;dMath.abs(r)&&(r=m)})}),r}function Yp(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:c7({startX:r,startY:n},o)}function HKe(t){var e=0,r=0,n=0;return fr(t,function(o){var a=o.startX,s=o.startY;e+=a,r+=s,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function Ga(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=lE(n),s=lE(r);if(a&&s){var l=r*e;o==="contain"&&l>n||o==="cover"&&l90?{width:u,height:l}:{width:l,height:u}}function GKe(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,s=e.naturalHeight,l=e.rotate,u=l===void 0?0:l,f=e.scaleX,h=f===void 0?1:f,d=e.scaleY,m=d===void 0?1:d,y=r.aspectRatio,v=r.naturalWidth,b=r.naturalHeight,x=n.fillColor,C=x===void 0?"transparent":x,D=n.imageSmoothingEnabled,O=D===void 0?!0:D,R=n.imageSmoothingQuality,M=R===void 0?"low":R,E=n.maxWidth,A=E===void 0?1/0:E,I=n.maxHeight,P=I===void 0?1/0:I,$=n.minWidth,z=$===void 0?0:$,B=n.minHeight,q=B===void 0?0:B,H=document.createElement("canvas"),U=H.getContext("2d"),X=Ga({aspectRatio:y,width:A,height:P}),re=Ga({aspectRatio:y,width:z,height:q},"cover"),Z=Math.min(X.width,Math.max(re.width,v)),G=Math.min(X.height,Math.max(re.height,b)),ee=Ga({aspectRatio:o,width:A,height:P}),F=Ga({aspectRatio:o,width:z,height:q},"cover"),K=Math.min(ee.width,Math.max(F.width,a)),ue=Math.min(ee.height,Math.max(F.height,s)),pe=[-K/2,-ue/2,K,ue];return H.width=Oc(Z),H.height=Oc(G),U.fillStyle=C,U.fillRect(0,0,Z,G),U.save(),U.translate(Z/2,G/2),U.rotate(u*Math.PI/180),U.scale(h,m),U.imageSmoothingEnabled=O,U.imageSmoothingQuality=M,U.drawImage.apply(U,[t].concat(u7(pe.map(function(oe){return Math.floor(Oc(oe))})))),U.restore(),H}var S7=String.fromCharCode;function XKe(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(S7.apply(null,y7(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function ZKe(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var s=e.byteLength,l=2;l+1=8&&(a=f+d)}}}if(a){var m=e.getUint16(a,n),y,v;for(v=0;v=0?a:_7),height:Math.max(n.offsetHeight,s>=0?s:g7)};this.containerData=l,Va(o,{width:l.width,height:l.height}),Cr(e,ln),Po(o,ln)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,s=o?r.naturalWidth:r.naturalHeight,l=a/s,u=e.width,f=e.height;e.height*l>e.width?n===3?u=e.height*l:f=e.width/l:n===3?f=e.width/l:u=e.height*l;var h={aspectRatio:l,naturalWidth:a,naturalHeight:s,width:u,height:f};this.canvasData=h,this.limited=n===1||n===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(e.width-h.width)/2,h.top=(e.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=Yt({},h)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,s=this.cropBoxData,l=n.viewMode,u=a.aspectRatio,f=this.cropped&&s;if(e){var h=Number(n.minCanvasWidth)||0,d=Number(n.minCanvasHeight)||0;l>1?(h=Math.max(h,o.width),d=Math.max(d,o.height),l===3&&(d*u>h?h=d*u:d=h/u)):l>0&&(h?h=Math.max(h,f?s.width:0):d?d=Math.max(d,f?s.height:0):f&&(h=s.width,d=s.height,d*u>h?h=d*u:d=h/u));var m=Ga({aspectRatio:u,width:h,height:d});h=m.width,d=m.height,a.minWidth=h,a.minHeight=d,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(l>(f?0:1)){var y=o.width-a.width,v=o.height-a.height;a.minLeft=Math.min(0,y),a.minTop=Math.min(0,v),a.maxLeft=Math.max(0,y),a.maxTop=Math.max(0,v),f&&this.limited&&(a.minLeft=Math.min(s.left,s.left+(s.width-a.width)),a.minTop=Math.min(s.top,s.top+(s.height-a.height)),a.maxLeft=s.left,a.maxTop=s.top,l===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,y),a.maxLeft=Math.max(0,y)),a.height>=o.height&&(a.minTop=Math.min(0,v),a.maxTop=Math.max(0,v))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=VKe({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),s=a.width,l=a.height,u=n.width*(s/n.naturalWidth),f=n.height*(l/n.naturalHeight);n.left-=(u-n.width)/2,n.top-=(f-n.height)/2,n.width=u,n.height=f,n.aspectRatio=s/l,n.naturalWidth=s,n.naturalHeight=l,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Yt({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,s=this.cropBoxData,l=this.limited,u=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,h=Number(n.minCropBoxHeight)||0,d=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,m=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;f=Math.min(f,o.width),h=Math.min(h,o.height),u&&(f&&h?h*u>f?h=f/u:f=h*u:f?h=f/u:h&&(f=h*u),m*u>d?m=d/u:d=m*u),s.minWidth=Math.min(f,d),s.minHeight=Math.min(h,m),s.maxWidth=d,s.maxHeight=m}r&&(l?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(o.width,a.left+a.width)-s.width,s.maxTop=Math.min(o.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=o.width-s.width,s.maxTop=o.height-s.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?p7:R2),Va(this.cropBox,Yt({width:n.width,height:n.height},ku({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Dc(this.element,M1,this.getData())}},tZe={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",s=document.createElement("img");if(r&&(s.crossOrigin=r),s.src=o,s.alt=a,this.viewBox.appendChild(s),this.viewBoxImage=s,!!n){var l=n;typeof n=="string"?l=e.ownerDocument.querySelectorAll(n):n.querySelector&&(l=[n]),this.previews=l,fr(l,function(u){var f=document.createElement("img");Wu(u,Jp,{width:u.offsetWidth,height:u.offsetHeight,html:u.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=a,f.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',u.innerHTML="",u.appendChild(f)})}},resetPreview:function(){fr(this.previews,function(e){var r=j1(e,Jp);Va(e,{width:r.width,height:r.height}),e.innerHTML=r.html,WKe(e,Jp)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,s=e.width,l=e.height,u=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(Va(this.viewBoxImage,Yt({width:s,height:l},ku(Yt({translateX:-u,translateY:-f},e)))),fr(this.previews,function(h){var d=j1(h,Jp),m=d.width,y=d.height,v=m,b=y,x=1;o&&(x=m/o,b=a*x),a&&b>y&&(x=y/a,v=o*x,b=y),Va(h,{width:v,height:b}),Va(h.getElementsByTagName("img")[0],Yt({width:s*x,height:l*x},ku(Yt({translateX:-u*x,translateY:-f*x},e))))}))}},rZe={bind:function(){var e=this.element,r=this.options,n=this.cropper;cn(r.cropstart)&&zn(e,P1,r.cropstart),cn(r.cropmove)&&zn(e,N1,r.cropmove),cn(r.cropend)&&zn(e,A1,r.cropend),cn(r.crop)&&zn(e,M1,r.crop),cn(r.zoom)&&zn(e,I1,r.zoom),zn(n,tE,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&zn(n,iE,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&zn(n,eE,this.onDblclick=this.dblclick.bind(this)),zn(e.ownerDocument,rE,this.onCropMove=this.cropMove.bind(this)),zn(e.ownerDocument,nE,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&zn(window,aE,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;cn(r.cropstart)&&eo(e,P1,r.cropstart),cn(r.cropmove)&&eo(e,N1,r.cropmove),cn(r.cropend)&&eo(e,A1,r.cropend),cn(r.crop)&&eo(e,M1,r.crop),cn(r.zoom)&&eo(e,I1,r.zoom),eo(n,tE,this.onCropStart),r.zoomable&&r.zoomOnWheel&&eo(n,iE,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&eo(n,eE,this.onDblclick),eo(e.ownerDocument,rE,this.onCropMove),eo(e.ownerDocument,nE,this.onCropEnd),r.responsive&&eo(window,aE,this.onResize)}},nZe={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,s=Math.abs(o-1)>Math.abs(a-1)?o:a;if(s!==1){var l,u;e.restore&&(l=this.getCanvasData(),u=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(fr(l,function(f,h){l[h]=f*s})),this.setCropBoxData(fr(u,function(f,h){u[h]=f*s})))}}},dblclick:function(){this.disabled||this.options.dragMode===m7||this.setDragMode(FKe(this.dragBox,D1)?h7:M2)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(gt(r)&&r!==1||gt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,s;e.changedTouches?fr(e.changedTouches,function(l){a[l.identifier]=Yp(l)}):a[e.pointerId||0]=Yp(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?s=f7:s=j1(e.target,Bu),DKe.test(s)&&Dc(this.element,P1,{originalEvent:e,action:s})!==!1&&(e.preventDefault(),this.action=s,this.cropping=!1,s===d7&&(this.cropping=!0,Cr(this.dragBox,Bf)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),Dc(this.element,N1,{originalEvent:e,action:r})!==!1&&(e.changedTouches?fr(e.changedTouches,function(o){Yt(n[o.identifier]||{},Yp(o,!0))}):Yt(n[e.pointerId||0]||{},Yp(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?fr(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,kc(this.dragBox,Bf,this.cropped&&this.options.modal)),Dc(this.element,A1,{originalEvent:e,action:r}))}}},oZe={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,s=this.pointers,l=this.action,u=r.aspectRatio,f=a.left,h=a.top,d=a.width,m=a.height,y=f+d,v=h+m,b=0,x=0,C=o.width,D=o.height,O=!0,R;!u&&e.shiftKey&&(u=d&&m?d/m:1),this.limited&&(b=a.minLeft,x=a.minTop,C=b+Math.min(o.width,n.width,n.left+n.width),D=x+Math.min(o.height,n.height,n.top+n.height));var M=s[Object.keys(s)[0]],E={x:M.endX-M.startX,y:M.endY-M.startY},A=function(P){switch(P){case Oi:y+E.x>C&&(E.x=C-y);break;case Di:f+E.xD&&(E.y=D-v);break}};switch(l){case R2:f+=E.x,h+=E.y;break;case Oi:if(E.x>=0&&(y>=C||u&&(h<=x||v>=D))){O=!1;break}A(Oi),d+=E.x,d<0&&(l=Di,d=-d,f-=d),u&&(m=d/u,h+=(a.height-m)/2);break;case Fa:if(E.y<=0&&(h<=x||u&&(f<=b||y>=C))){O=!1;break}A(Fa),m-=E.y,h+=E.y,m<0&&(l=tc,m=-m,h-=m),u&&(d=m*u,f+=(a.width-d)/2);break;case Di:if(E.x<=0&&(f<=b||u&&(h<=x||v>=D))){O=!1;break}A(Di),d-=E.x,f+=E.x,d<0&&(l=Oi,d=-d,f-=d),u&&(m=d/u,h+=(a.height-m)/2);break;case tc:if(E.y>=0&&(v>=D||u&&(f<=b||y>=C))){O=!1;break}A(tc),m+=E.y,m<0&&(l=Fa,m=-m,h-=m),u&&(d=m*u,f+=(a.width-d)/2);break;case Kl:if(u){if(E.y<=0&&(h<=x||y>=C)){O=!1;break}A(Fa),m-=E.y,h+=E.y,d=m*u}else A(Fa),A(Oi),E.x>=0?yx&&(m-=E.y,h+=E.y):(m-=E.y,h+=E.y);d<0&&m<0?(l=eu,m=-m,d=-d,h-=m,f-=d):d<0?(l=Zl,d=-d,f-=d):m<0&&(l=Ql,m=-m,h-=m);break;case Zl:if(u){if(E.y<=0&&(h<=x||f<=b)){O=!1;break}A(Fa),m-=E.y,h+=E.y,d=m*u,f+=a.width-d}else A(Fa),A(Di),E.x<=0?f>b?(d-=E.x,f+=E.x):E.y<=0&&h<=x&&(O=!1):(d-=E.x,f+=E.x),E.y<=0?h>x&&(m-=E.y,h+=E.y):(m-=E.y,h+=E.y);d<0&&m<0?(l=Ql,m=-m,d=-d,h-=m,f-=d):d<0?(l=Kl,d=-d,f-=d):m<0&&(l=eu,m=-m,h-=m);break;case eu:if(u){if(E.x<=0&&(f<=b||v>=D)){O=!1;break}A(Di),d-=E.x,f+=E.x,m=d/u}else A(tc),A(Di),E.x<=0?f>b?(d-=E.x,f+=E.x):E.y>=0&&v>=D&&(O=!1):(d-=E.x,f+=E.x),E.y>=0?v=0&&(y>=C||v>=D)){O=!1;break}A(Oi),d+=E.x,m=d/u}else A(tc),A(Oi),E.x>=0?y=0&&v>=D&&(O=!1):d+=E.x,E.y>=0?v0?l=E.y>0?Ql:Kl:E.x<0&&(f-=d,l=E.y>0?eu:Zl),E.y<0&&(h-=m),this.cropped||(Po(this.cropBox,ln),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}O&&(a.width=d,a.height=m,a.left=f,a.top=h,this.action=l,this.renderCropBox()),fr(s,function(I){I.startX=I.endX,I.startY=I.endY})}},aZe={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Cr(this.dragBox,Bf),Po(this.cropBox,ln),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Yt({},this.initialImageData),this.canvasData=Yt({},this.initialCanvasData),this.cropBoxData=Yt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Yt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Po(this.dragBox,Bf),Cr(this.cropBox,ln)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,fr(this.previews,function(n){n.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Po(this.cropper,Z6)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Cr(this.cropper,Z6)),this},destroy:function(){var e=this.element;return e[Xt]?(e[Xt]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(vv(e)?e:o+Number(e),vv(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(gt(e)&&(n.left=e,o=!0),gt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,s=a.width,l=a.height,u=a.naturalWidth,f=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var h=u*e,d=f*e;if(Dc(this.element,I1,{ratio:e,oldRatio:s/u,originalEvent:n})===!1)return this;if(n){var m=this.pointers,y=w7(this.cropper),v=m&&Object.keys(m).length?HKe(m):{pageX:n.pageX,pageY:n.pageY};a.left-=(h-s)*((v.pageX-y.left-a.left)/s),a.top-=(d-l)*((v.pageY-y.top-a.top)/l)}else xc(r)&>(r.x)&>(r.y)?(a.left-=(h-s)*((r.x-a.left)/s),a.top-=(d-l)*((r.y-a.top)/l)):(a.left-=(h-s)/2,a.top-=(d-l)/2);a.width=h,a.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),gt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,gt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(gt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(gt(e)&&(n.scaleX=e,o=!0),gt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,s;if(this.ready&&this.cropped){s={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var l=n.width/n.naturalWidth;if(fr(s,function(h,d){s[d]=h/l}),e){var u=Math.round(s.y+s.height),f=Math.round(s.x+s.width);s.x=Math.round(s.x),s.y=Math.round(s.y),s.width=f-s.x,s.height=u-s.y}}else s={x:0,y:0,width:0,height:0};return r.rotatable&&(s.rotate=n.rotate||0),r.scalable&&(s.scaleX=n.scaleX||1,s.scaleY=n.scaleY||1),s},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&xc(e)){var s=!1;r.rotatable&>(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,s=!0),r.scalable&&(gt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,s=!0),gt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var l=n.width/n.naturalWidth;gt(e.x)&&(a.left=e.x*l+o.left),gt(e.y)&&(a.top=e.y*l+o.top),gt(e.width)&&(a.width=e.width*l),gt(e.height)&&(a.height=e.height*l),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Yt({},this.containerData):{}},getImageData:function(){return this.sized?Yt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&fr(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&xc(e)&&(gt(e.left)&&(r.left=e.left),gt(e.top)&&(r.top=e.top),gt(e.width)?(r.width=e.width,r.height=e.width/n):gt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&xc(e)&&(gt(e.left)&&(r.left=e.left),gt(e.top)&&(r.top=e.top),gt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),gt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var r=this.canvasData,n=GKe(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,s=o.y,l=o.width,u=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(a*=f,s*=f,l*=f,u*=f);var h=l/u,d=Ga({aspectRatio:h,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),m=Ga({aspectRatio:h,width:e.minWidth||0,height:e.minHeight||0},"cover"),y=Ga({aspectRatio:h,width:e.width||(f!==1?n.width:l),height:e.height||(f!==1?n.height:u)}),v=y.width,b=y.height;v=Math.min(d.width,Math.max(m.width,v)),b=Math.min(d.height,Math.max(m.height,b));var x=document.createElement("canvas"),C=x.getContext("2d");x.width=Oc(v),x.height=Oc(b),C.fillStyle=e.fillColor||"transparent",C.fillRect(0,0,v,b);var D=e.imageSmoothingEnabled,O=D===void 0?!0:D,R=e.imageSmoothingQuality;C.imageSmoothingEnabled=O,R&&(C.imageSmoothingQuality=R);var M=n.width,E=n.height,A=a,I=s,P,$,z,B,q,H;A<=-l||A>M?(A=0,P=0,z=0,q=0):A<=0?(z=-A,A=0,P=Math.min(M,l+A),q=P):A<=M&&(z=0,P=Math.min(l,M-A),q=P),P<=0||I<=-u||I>E?(I=0,$=0,B=0,H=0):I<=0?(B=-I,I=0,$=Math.min(E,u+I),H=$):I<=E&&(B=0,$=Math.min(u,E-I),H=$);var U=[A,I,P,$];if(q>0&&H>0){var X=v/l;U.push(z*X,B*X,q*X,H*X)}return C.drawImage.apply(C,[n].concat(u7(U.map(function(re){return Math.floor(Oc(re))})))),x},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!vv(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===M2,s=r.movable&&e===h7;e=a||s?e:m7,r.dragMode=e,Wu(n,Bu,e),kc(n,D1,a),kc(n,R1,s),r.cropBoxMovable||(Wu(o,Bu,e),kc(o,D1,a),kc(o,R1,s))}return this}},iZe=jo.Cropper,x7=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(vKe(this,t),!e||!AKe.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Yt({},cE,xc(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return bKe(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Xt]){if(r[Xt]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(RKe.test(r)){MKe.test(r)?this.read(YKe(r)):this.clone();return}var s=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=l,s.onerror=l,s.ontimeout=l,s.onprogress=function(){s.getResponseHeader("content-type")!==sE&&s.abort()},s.onload=function(){n.read(s.response)},s.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&uE(r)&&o.crossOrigin&&(r=dE(r)),s.open("GET",r,!0),s.responseType="arraybuffer",s.withCredentials=o.crossOrigin==="use-credentials",s.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=ZKe(r),s=0,l=1,u=1;if(a>1){this.url=KKe(r,sE);var f=QKe(a);s=f.rotate,l=f.scaleX,u=f.scaleY}n.rotatable&&(o.rotate=s),n.scalable&&(o.scaleX=l,o.scaleY=u),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&uE(n)&&(o||(o="anonymous"),a=dE(n)),this.crossOrigin=o,this.crossOriginUrl=a;var s=document.createElement("img");o&&(s.crossOrigin=o),s.src=a||n,s.alt=r.alt||"The image to crop",this.image=s,s.onload=this.start.bind(this),s.onerror=this.stop.bind(this),Cr(s,Q6),r.parentNode.insertBefore(s,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=jo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(jo.navigator.userAgent),a=function(f,h){Yt(r.imageData,{naturalWidth:f,naturalHeight:h,aspectRatio:f/h}),r.initialImageData=Yt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var s=document.createElement("img"),l=document.body||document.documentElement;this.sizingImage=s,s.onload=function(){a(s.width,s.height),o||l.removeChild(s)},s.src=n.src,o||(s.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",l.appendChild(s))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,s=document.createElement("div");s.innerHTML=NKe;var l=s.querySelector(".".concat(Xt,"-container")),u=l.querySelector(".".concat(Xt,"-canvas")),f=l.querySelector(".".concat(Xt,"-drag-box")),h=l.querySelector(".".concat(Xt,"-crop-box")),d=h.querySelector(".".concat(Xt,"-face"));this.container=a,this.cropper=l,this.canvas=u,this.dragBox=f,this.cropBox=h,this.viewBox=l.querySelector(".".concat(Xt,"-view-box")),this.face=d,u.appendChild(o),Cr(r,ln),a.insertBefore(l,r.nextSibling),Po(o,Q6),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,Cr(h,ln),n.guides||Cr(h.getElementsByClassName("".concat(Xt,"-dashed")),ln),n.center||Cr(h.getElementsByClassName("".concat(Xt,"-center")),ln),n.background&&Cr(l,"".concat(Xt,"-bg")),n.highlight||Cr(d,$Ke),n.cropBoxMovable&&(Cr(d,R1),Wu(d,Bu,R2)),n.cropBoxResizable||(Cr(h.getElementsByClassName("".concat(Xt,"-line")),ln),Cr(h.getElementsByClassName("".concat(Xt,"-point")),ln)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),cn(n.ready)&&zn(r,oE,n.ready,{once:!0}),Dc(r,oE)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),Po(this.element,ln)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=iZe,t}},{key:"setDefaults",value:function(r){Yt(cE,xc(r)&&r)}}])})();Yt(x7.prototype,eZe,tZe,rZe,nZe,oZe,aZe);var zi=function(){return zi=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&I.zoomTo(re)})(A.currentTarget.cropper,O),x&&x(A)}}));C&&C(E)}return function(){var A,I;(I=(A=R.current)===null||A===void 0?void 0:A.cropper)===null||I===void 0||I.destroy()}}),[R]);var M=(function(E){return sZe.reduce((function(A,I){var P=A,$=I;return P[$],wv(P,[typeof $=="symbol"?$:$+""])}),E)})(zi(zi({},D),{crossOrigin:u,src:a,alt:b}));return _.createElement("div",{style:s,className:l},_.createElement("img",zi({},M,{style:cZe,ref:R})))}));const Ba={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},lZe={once:"once"},Br={seconds:"seconds",minutes:"minutes"},pE=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function Oo(t){return t<10?`0${t}`:`${t}`}const uZe={mode:"interval",interval:{period:1,unit:Br.minutes}};function df(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),s=parseInt(o[1],10);for(let l=a;l<=s;l++)r.includes(l===7?0:l)||r.push(l===7?0:l)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function k7(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Br.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Br.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Br.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Br.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Br.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:df(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Br.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:df(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${Oo(parseInt(n.hours,10))}:${Oo(parseInt(n.minutes,10))}`,weekdays:df(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${Oo(parseInt(n.hours,10))}:${Oo(parseInt(n.minutes,10))}`,date:`${Oo(parseInt(n.date,10))}.${Oo(parseInt(n.months,10))}`}}),o}class Uu extends _.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=k7(r||"* * * * *",!0)||uZe;this.state={extended:!1,cron:Uu.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Br.minutes},intervalBetween:{period:1,unit:Br.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let s=0;s60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Br.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Br.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Br.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Br.minutes,n.unit){case Br.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Br.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let s=parseInt(o[0],10)||0;s>23&&(s=23),s<0&&(s=0),r=`${a} ${s} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${Oo(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let s=parseInt(o[1],10)||0;s>59&&(s=59),s<0&&(s=0);let l=parseInt(o[0],10)||0;l>23&&(l=23),l<0&&(l=0);let u=parseInt(a[0],10)||1;u>31&&(u=31),u<1&&(u=1);let f=parseInt(a[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${s} ${l} ${u} ${f} *`}return r}recalcCron(){this.onChange(Uu.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return _.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},_.createElement("h5",null,j.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>_.createElement(ut,{key:pE[n],control:_.createElement(dr,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),s=a.weekdays.indexOf(n);o.target.checked?s===-1&&a.weekdays.push(n):s!==-1&&a.weekdays.splice(s,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:j.t(pE[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?_.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},_.createElement("h5",{style:{marginBottom:5}},j.t("sc_period")),_.createElement(zt,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:j.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),_.createElement(zt,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:j.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):_.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},_.createElement("h5",{style:{marginBottom:5}},j.t("sc_period")),_.createElement(zt,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:j.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),_.createElement(Sn,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},_.createElement(Qt,{value:"seconds"},j.t("sc_seconds")),")",_.createElement(Qt,{value:"minutes"},j.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return _.createElement(sa,{variant:"standard",sx:{...Ba.formControl,"&.MuiFormControl-root":Ba.formControlMarginRight}},_.createElement(zt,{variant:"standard",key:"at",label:j.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${Oo(r.getMonth()+1)}`}return _.createElement(sa,{variant:"standard",style:Ba.formControl},_.createElement(zt,{variant:"standard",key:"date",label:j.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:Ba.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return _.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),_.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},_.createElement("h5",{style:{marginBottom:5}},j.t("sc_hours")),_.createElement(sa,{variant:"standard",style:Ba.formControl},_.createElement(vu,{shrink:!0,htmlFor:"age-label-placeholder"},j.t("sc_from")),_.createElement(Sn,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>_.createElement(Qt,{key:`B_${r}`,value:r},`${Oo(r)}:00`)))),_.createElement(sa,{variant:"standard",style:Ba.formControl},_.createElement(vu,{shrink:!0,htmlFor:"age-label-placeholder"},j.t("sc_to")),_.createElement(Sn,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>_.createElement(Qt,{key:`A_${r}`,value:r},`${Oo(r)}:00`)),!e.timeFrom&&_.createElement(Qt,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[_.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return _.createElement("div",{style:Ba.mainDiv},_.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},_.createElement(zt,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),_.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?j.t("sc_invalid_cron"):V9(this.state.cron,this.props.language||"en")),_.createElement("div",null,_.createElement(sa,{variant:"standard",style:{...Ba.formControl,marginLeft:8,marginTop:8}},_.createElement(vu,null,j.t("ra_Repeat")),_.createElement(Sn,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},_.createElement(Qt,{value:"once"},j.t("sc_once")),_.createElement(Qt,{value:"interval"},j.t("sc_interval")),_.createElement(Qt,{value:"intervalBetween"},j.t("sc_intervalBetween")),_.createElement(Qt,{value:"specific"},j.t("sc_specific"))))),this.state.mode===lZe.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const dZe={dialogPaper:{height:"calc(100% - 96px)"}};class Cht extends _.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Ha.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?_.createElement(q8,{title:j.t("ra_Please confirm"),text:j.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return _.createElement(co,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":dZe.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),_.createElement(po,{id:"cron-dialog-title"},this.props.title||j.t("ra_Define schedule...")),_.createElement(uo,{style:{height:"100%",overflow:"hidden"}},_.createElement(Ha,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:j.getLanguage()})),_.createElement(lo,null,!!this.props.clearButton&&_.createElement(At,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:_.createElement(wu,null)},this.props.clear||j.t("ra_Clear")),_.createElement(At,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:_.createElement(li,null)},this.props.ok||j.t("ra_Ok")),_.createElement(At,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:_.createElement(wh,null)},this.props.cancel||j.t("ra_Cancel"))))}}const pZe={dialogPaper:{height:"calc(100% - 96px)"}};class $ht extends _.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":k7(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return _.createElement(co,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":pZe.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},_.createElement(po,{id:"cron-dialog-title"},this.props.title||j.t("ra_Define schedule...")),_.createElement(uo,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?_.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&_.createElement(_.Fragment,null,_.createElement(jt,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),_.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},j.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&_.createElement(_.Fragment,null,_.createElement(jt,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),_.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},j.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&_.createElement(_.Fragment,null,_.createElement(jt,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),_.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},j.t("sc_cron")))):null,this.state.mode==="simple"&&_.createElement(Uu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:j.getLanguage()}),this.state.mode==="wizard"&&_.createElement(Or,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&_.createElement(Ha,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:j.getLanguage()})),_.createElement(lo,null,_.createElement(At,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:_.createElement(li,null)},this.props.ok||j.t("ra_Ok")),_.createElement(At,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:_.createElement(wh,null)},this.props.cancel||j.t("ra_Cancel"))))}}const Ri={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class Eht extends _.Component{dialogName;filters;constructor(e){super(e),this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const r=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(r)}catch{this.filters={}}e.filters&&(this.filters={...this.filters,...e.filters});let n=this.props.selected||[];typeof n!="object"?n=[n]:n=[...n],n=n.filter(o=>o),this.state={selected:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let e;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?e=[_.createElement("span",{key:"selected"},j.t("ra_Selected")," "),_.createElement("span",{key:"id",style:Ri.headerID},this.state.selected)]:e=[_.createElement("span",{key:"selected"},j.t("ra_Selected")," "),_.createElement("span",{key:"id",style:Ri.headerID},j.t("%s items",this.state.selected.length))]:e=this.props.title||j.t("ra_Please select file..."),_.createElement(co,{onClose:()=>{},maxWidth:!1,style:{zIndex:this.props.zIndex||void 0},sx:{"& .MuiDialog-paper":{...Ri.dialog,...Ri.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},_.createElement(po,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":Ri.titleRoot}},e),_.createElement(uo,{style:{...Ri.content,...Ri.contentMobile}},_.createElement(wYe,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(r,n,o)=>{this.setState({selected:Array.isArray(r)?r:[r]},()=>n&&(!this.props.selectOnlyFolders||o)&&this.handleOk())},t:this.props.t||j.t,lang:this.props.lang||j.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),_.createElement(lo,null,_.createElement(At,{variant:"contained",onClick:()=>this.handleOk(),startIcon:_.createElement(li,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||j.t("ra_Ok")),_.createElement(At,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:_.createElement(wh,null)},this.props.cancel||j.t("ra_Cancel"))))}}const fZe={dialogPaper:{height:"calc(100% - 96px)"}};class Tht extends _.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return _.createElement(co,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":fZe.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},_.createElement(po,{id:"cron-dialog-title"},this.props.title||j.t("ra_Define CRON...")),_.createElement(uo,{style:{height:"100%",overflow:"hidden"}},_.createElement(Uu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:j.getLanguage()})),_.createElement(lo,null,_.createElement(At,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:_.createElement(li,null)},this.props.ok||j.t("ra_Ok")),_.createElement(At,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:_.createElement(wh,null)},this.props.cancel||j.t("ra_Cancel"))))}}function hd(t){const{message:e,onClose:r}=t;return e?k.jsx(Yv,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:!0,autoHideDuration:6e3,onClose:r,ContentProps:{"aria-describedby":"message-id"},message:k.jsx("span",{id:"message-id",children:j.t(e)}),action:[k.jsx(ur,{"aria-label":"Close",color:"inherit",onClick:r,children:k.jsx(GYe,{})},"close")]}):null}function hZe(t){const{open:e,close:r,children:n,titleButton:o,titleButton2:a,buttonClick:s}=t;return k.jsxs(co,{open:e,maxWidth:"md",onClose:r,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[k.jsx(po,{id:"alert-dialog-title",children:j.t("Warning")}),k.jsx(uo,{children:n}),k.jsxs(lo,{children:[o&&k.jsx(At,{color:"grey",variant:"contained",onClick:s,children:o}),a&&k.jsx(At,{variant:"contained",onClick:r,color:"primary",autoFocus:!0,children:a})]})]})}const Sv={input:{minWidth:300},icon:{width:24,height:24,marginRight:8}};function Pi(t){const{table:e,value:r,title:n,attr:o,options:a,style:s,native:l,onChange:u,noTranslate:f,themeType:h,sx:d}=t;return k.jsxs(sa,{style:{paddingTop:5,...s},sx:{...d,...Sv.input},children:[k.jsx(Sn,{variant:"standard",value:e?r:o&&l[o]||"_",onChange:m=>{e?u(m.target.value):u(o,m.target.value==="_"?"":m.target.value)},renderValue:m=>{const y=a.find(v=>v.value===m);return y?k.jsxs(k.Fragment,{children:[k.jsx(Yi,{src:y.icon||"",style:Sv.icon}),f?y.title:j.t(y.title)]}):m},input:k.jsx(no,{name:o,id:`${o}-helper`}),children:a.map(m=>k.jsxs(Qt,{value:m.value||"_",style:m.color?{color:m.color,backgroundColor:je.getInvertedColor?je.getInvertedColor(m.color,h):void 0}:{},children:[k.jsx(Yi,{src:m.icon||"",style:Sv.icon}),f?m.title:j.t(m.title)]},`key-${m.value}`))}),k.jsx(rd,{children:n?j.t(n):""})]})}const xv={input:{minWidth:300},inputNumber:{minWidth:150},heightInput:{height:30}};function qu(t){const{styleComponentBlock:e,component:r,size:n,variant:o,table:a,value:s,title:l,attr:u,type:f,style:h,native:d,onChange:m}=t;return k.jsxs(sa,{style:{...f==="number"?xv.inputNumber:xv.input,paddingTop:5,...h},children:[k.jsx(zt,{variant:o||"standard",value:a?s:u?d[u]:"",type:f||"text",style:{...xv.heightInput,...h},onChange:y=>{a?m(y.target.value):m(u,y.target.value)},margin:"normal",size:n||"medium"}),k.jsxs("div",{style:e,children:[k.jsx(rd,{style:{marginTop:-3},children:l?j.t(l):""}),r]})]})}function yr(t){const{title:e,attr:r,style:n,native:o,sx:a,onChange:s,table:l,checked:u,disabled:f,help:h}=t;let d=l?u:o[r];return r==="whiteListEnabled"&&o.socketio&&(d=!1),k.jsxs(af,{style:t.groupStyle,children:[k.jsx(ut,{style:{paddingTop:5,...n},sx:a,control:k.jsx(dr,{disabled:!!f,checked:!!d,onChange:m=>{l?s(m.target.checked):s(r,!o[r])},color:"primary"}),label:e?j.t(e):""},r),h?k.jsx(rd,{children:h}):null]})}const na={blockWrapper:{display:"flex",flexDirection:"column",mr:"20px","@media screen and (max-width: 360px)":{mr:0}},tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnSettings:{width:"calc(100% - 10px)"},blockWrapperCheckbox:{display:"flex",flexFlow:"wrap"},ipInputStyle:{mt:"10px",width:600,mr:"20px","@media screen and (max-width: 940px)":{width:"100%"}},blockWarningContent:{flexFlow:"wrap",display:"flex",alignItems:"flex-end"}};class mZe extends T.Component{constructor(e){super(e),this.state={toast:"",ipAddressOptions:[],certificatesOptions:[],usersOptions:[],socketioOptions:[{title:j.t("nothing"),value:"none"},{title:j.t("built_in"),value:"_"}],openModal:!1,ready:!1,confirmSocketIO:!1,confirmValue:""}}async componentDidMount(){const e=this.props.common.host,{socketioOptions:r}=this.state;let n=await this.props.socket.getAdapterInstances("socketio");const o=await this.props.socket.getAdapterInstances("ws");o&&(n=n.concat(o));const a={ready:!0,socketioOptions:[...r,...n.map(({_id:u,common:{name:f}})=>({title:`${f} [${f}.${u.split(".").pop()}]`,value:u}))]},s=await this.props.socket.getHostByIp(e),l=[];s.forEach(u=>{let f=u.name;f.includes("Listen on all IPs")&&(f=f.replace("Listen on all IPs",j.t("open_ip"))),l.push({title:f,value:u.address})}),a.ipAddressOptions=l,a.certificatesOptions=await this.props.socket.getCertificates(),a.usersOptions=await this.props.socket.getUsers(),this.setState(a)}componentDidUpdate(e){const{native:{auth:r,secure:n}}=e,{native:{defaultUser:o,whiteListSettings:a},onChange:s}=this.props;!this.props.native.auth&&r!==this.props.native.auth?s("whiteListSettings.default.user",o):a&&a.default.user!=="auth"&&r!==this.props.native.auth&&s("whiteListSettings.default.user","auth"),o!==e.native.defaultUser&&s("whiteListSettings.default.user",o),!this.props.native.secure&&this.props.native.auth&&!this.state.openModal&&(r!==this.props.native.auth||n!==this.props.native.secure)&&this.setState({openModal:!0})}renderConfirmDialog(){return k.jsxs(co,{open:this.state.confirmSocketIO,maxWidth:"md",onClose:()=>this.setState({confirmSocketIO:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[k.jsx(po,{id:"alert-dialog-title",children:j.t("Warning")}),k.jsxs(uo,{children:[j.t("whitelist_only_with_integrated_socket"),k.jsx("br",{}),j.t("White list will be disabled. Please confirm.")]}),k.jsxs(lo,{children:[k.jsx(At,{variant:"contained",color:"primary",autoFocus:!0,onClick:()=>{this.props.onChange("whiteListEnabled",!1,()=>this.props.onChange("socketio",this.state.confirmValue,()=>this.setState({confirmSocketIO:!1})))},children:j.t("Ok")}),k.jsx(At,{color:"grey",variant:"contained",onClick:()=>this.setState({confirmSocketIO:!1}),children:j.t("Cancel")})]})]})}render(){const{instance:e,common:r,native:n,onLoad:o,onChange:a}=this.props,{certificatesOptions:s,ipAddressOptions:l,usersOptions:u,openModal:f,toast:h,socketioOptions:d,ready:m}=this.state;if(!m)return k.jsx(MT,{});const y=JSON.parse(JSON.stringify(r));return y.icon=y.extIcon,k.jsxs("form",{style:na.tab,children:[k.jsx(hd,{message:h,onClose:()=>this.setState({toast:""})}),this.renderConfirmDialog(),k.jsx(hZe,{open:f,buttonClick:()=>{a("auth",!1),this.setState({openModal:!f,toast:"Authentication_deactivated"})},close:()=>this.setState({openModal:!f}),titleButton:j.t("button_title"),titleButton2:j.t("button_title2"),children:k.jsxs("div",{style:na.blockWarningContent,children:[k.jsx(aG,{style:{width:32,height:32}}),j.t("modal_title")]})}),k.jsx(T2,{instance:e,common:y,native:n,onError:v=>console.error(v),onLoad:o}),k.jsxs("div",{style:{...na.column,...na.columnSettings},children:[k.jsxs("div",{children:[k.jsx(Pi,{title:"IP address",attr:"bind",noTranslate:!0,sx:na.ipInputStyle,options:l,native:n,onChange:a,themeType:this.props.themeType}),k.jsx(qu,{title:"port",attr:"port",type:"number",style:{marginTop:5},native:n,onChange:a})]}),k.jsxs("div",{style:na.blockWrapperCheckbox,children:[k.jsxs(st,{component:"div",sx:na.blockWrapper,children:[k.jsxs("div",{style:{display:"flex",flexFlow:"wrap",marginBottom:20},children:[k.jsx(yr,{title:"encryption",attr:"secure",style:{marginTop:10},native:n,onChange:a}),k.jsx(yr,{title:"authentication",attr:"auth",style:{marginTop:10},native:n,onChange:a})]}),n.auth?k.jsx(Gp,{type:"info",closeable:!0,storeId:"web.basic_auth",children:j.t("basic_authentication_info").split(` +`).map((v,b)=>k.jsx("div",{children:v},b))}):null,n.auth?k.jsx(yr,{title:"basic_authentication",attr:"basicAuth",style:{marginTop:10},native:n,onChange:a}):null,n.auth&&!n.basicAuth?k.jsx(Gp,{style:{marginTop:20},type:"info",closeable:!0,storeId:"web.basic_auth",children:j.t("legacy_authentication_info").split(` +`).map((v,b)=>k.jsx("div",{children:v},b))}):null,n.auth&&!n.basicAuth?k.jsx(yr,{title:"oauth2_authentication",attr:"loginOauth2",style:{marginTop:10},native:n,onChange:a}):null,k.jsx(yr,{title:"cache",attr:"cache",style:{marginTop:10},native:n,onChange:a}),k.jsx(Pi,{title:"socket",attr:"socketio",noTranslate:!0,options:d,style:{marginTop:10},native:n,onChange:(v,b,x)=>{b&&n.whiteListEnabled?this.setState({confirmSocketIO:!0,confirmValue:b}):a(v,b,x)},themeType:this.props.themeType}),n.socketio?null:k.jsx(Gp,{type:"info",closeable:!0,storeId:"web.usePureWebSockets",children:j.t("usePureWebSockets_info").split(` +`).map((v,b)=>k.jsx("div",{children:v},b))}),n.socketio?null:k.jsx(yr,{title:"usePureWebSockets",attr:"usePureWebSockets",style:{marginTop:10},native:n,onChange:a}),(!n.socketio||n.socketio.startsWith("system.adapter.socket"))&&!n.usePureWebSockets?k.jsx(Gp,{type:"info",closeable:!0,storeId:"web.forceWebSockets",children:j.t("forceWebSockets_info").split(` +`).map((v,b)=>k.jsx("div",{children:v},b))}):null,(!n.socketio||n.socketio.startsWith("system.adapter.socket"))&&!n.usePureWebSockets?k.jsx(yr,{title:"web_sockets",help:n.socketio?.startsWith("system.adapter.socket")?j.t("Same settings must be set in socketio instance"):"",attr:"forceWebSockets",style:{marginTop:10},native:n,onChange:a}):null]}),k.jsxs(st,{component:"div",sx:na.blockWrapper,children:[n.secure?k.jsxs("div",{style:na.blockWrapperCheckbox,children:[k.jsx(Pi,{title:"public_certificate",attr:"certPublic",noTranslate:!0,options:[{title:j.t("nothing"),value:""},...s.filter(({type:v})=>!v||v==="public").map(({name:v})=>({title:v,value:v}))],style:{marginTop:10,marginRight:20},native:n,onChange:a,themeType:this.props.themeType}),k.jsx(Pi,{title:"private_certificate",attr:"certPrivate",noTranslate:!0,options:[{title:j.t("nothing"),value:""},...s.filter(({type:v})=>!v||v==="private").map(({name:v})=>({title:v,value:v}))],style:{marginTop:10,marginRight:20},native:n,onChange:a,themeType:this.props.themeType}),k.jsx(Pi,{title:"chained_certificate",attr:"certChained",noTranslate:!0,options:[{title:j.t("nothing"),value:""},...s.filter(({type:v})=>!v||v==="chained").map(({name:v})=>({title:v,value:v}))],style:{marginTop:10},native:n,onChange:a,themeType:this.props.themeType})]}):null,n.auth?null:k.jsx(Pi,{title:"users",attr:"defaultUser",themeType:this.props.themeType,noTranslate:!0,options:u.map(({_id:v,common:{name:b,color:x,icon:C}})=>({title:typeof b=="object"?b[this.props.lang]||b.end||v.replace(/^system\.user\./,""):b,value:v.replace(/^system\.user\./,""),color:x,icon:C})),style:{marginTop:10,width:300},native:n,onChange:a}),n.auth?k.jsx(qu,{title:"time_out",attr:"ttl",type:"number",style:{marginTop:-1,width:300},native:n,onChange:a}):null,k.jsx("div",{style:{marginTop:20},children:j.t("Simple API is now working as Web-Extension. Please create an instance and make settings there.")}),k.jsx(yr,{title:"Do not check if this instance is available from internet",attr:"doNotCheckPublicIP",style:{marginTop:10},native:n,onChange:a})]})]})]})]})}}const gr={backgroundTheme:t=>({background:t.palette.mode==="dark"?"#3e3838":"#dcdcdc"}),tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top"},columnSettings:{width:"100%"},table:{minWidth:700,"& td":{p:"2px"},"@media screen and (max-width: 1700px)":{"& th":{p:"2px"}},"@media screen and (max-width: 1280px)":{minWidth:300}},displayNone:{display:"none"},checkBoxStyle:{marginLeft:0,marginRight:0},miniTable:{display:"none","@media screen and (max-width: 1280px)":{display:"block"}},card:{padding:1,margin:"20px 0",border:"1px solid",borderRadius:"10px",display:"flex",flexDirection:"column",justifyContent:"left",alignItems:"center"},maxTable:{"@media screen and (max-width: 1280px)":{display:"none"}},miniTableSelect:{"@media screen and (max-width: 1280px)":{minWidth:185}},warning:{color:"#FF4040",fontSize:18,display:"inline-block"}},_Ze={user:"admin",object:{read:!0,list:!0,write:!0,delete:!0},state:{read:!0,list:!0,write:!0,create:!0,delete:!0},file:{read:!0,list:!0,write:!0,create:!0,delete:!0}};class Cc extends T.Component{ipPrefix=null;static tableHeadArr=["to_read","list","write","delete","to_read","list","write","to_create","delete","to_read","list","write","to_create","delete"];constructor(e){if(super(e),this.state={toast:"",usersOptions:[]},e.native.bind&&e.native.bind!=="localhost"&&e.native.bind!=="0.0.0.0"){const r=e.native.bind.split(".");r.pop(),this.ipPrefix=r.join(".")}}async componentDidMount(){const e=await this.props.socket.getUsers();if(!this.ipPrefix){const r=await this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`);if(r?.common?.host){let n=await this.props.socket.getIpAddresses(r.common.host);if(n=n.filter(o=>o.includes(".")),n.length){const o=n[0].split(".");o.pop(),this.ipPrefix=o.join(".")}else this.ipPrefix="192.168.0"}}this.setState({usersOptions:e})}static getText(e){return typeof e=="string"?e:e[j.getLanguage()]||e.en}userSelect(e,r){const{native:n,onChange:o}=this.props,{usersOptions:a}=this.state,{whiteListSettings:s}=n;if(!s)return null;if(e==="default")return k.jsx("span",{style:{marginLeft:10},children:s.default.user||""});const l=s.default.user==="auth"?[{title:"auth",value:"auth"}]:[];return k.jsx(Pi,{table:!0,value:s?.[e].user||"",options:[...l,...a.map(({_id:u,common:{name:f}})=>({title:Cc.getText(f),value:u.replace("system.user.","")}))],native:n,sx:{...gr.miniTableSelect,...r},noTranslate:!0,themeType:this.props.themeType,onChange:u=>{const f=JSON.parse(JSON.stringify(s));f[e].user=u,o("whiteListSettings",f)}})}tableInput(e,r){const{native:n,onChange:o}=this.props,{whiteListSettings:a}=n;return e==="default"?k.jsx("span",{style:{marginLeft:10},children:e}):a?k.jsx(qu,{table:!0,value:e,style:r,onChange:s=>{const l=JSON.parse(JSON.stringify(a)),u={};Object.keys(l).forEach(f=>{f===e?u[s]=l[f]:u[f]=l[f]}),Cc.validateIp(s)?o("whiteListSettings",u):this.setState({toast:"incorrect_ip"})}}):null}buttonAdd(){const{native:e,onChange:r}=this.props,{whiteListSettings:n}=e;return k.jsx(ur,{color:"primary",onClick:()=>{let o=JSON.parse(JSON.stringify(n)),a=1,s=`${this.ipPrefix}.1`;const l=()=>{Object.keys(o).find(u=>u===s)&&(s=`${this.ipPrefix}.${a}`,a+=1,l())};l(),o={[s]:_Ze,...o},r("whiteListSettings",o)},children:k.jsx(IV,{})})}buttonRemove(e){const{native:r,onChange:n}=this.props,{whiteListSettings:o}=r;return k.jsx(ur,{color:"primary",onClick:()=>{const a=JSON.parse(JSON.stringify(o));delete a[e],n("whiteListSettings",a)},style:e==="default"?{display:"none"}:void 0,"aria-label":"delete",children:k.jsx(wu,{})})}static validateIp(e){return e.indexOf("*")!==-1&&e.lastIndexOf(".")>e.indexOf("*")?!1:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$|^\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*$/.test(e.replace("*","111"))}renderMobileEntry(e,r){const n=this.props.native.whiteListSettings;return n?k.jsxs(st,{component:"div",sx:je.getStyle(this.props.theme,gr.card,r%2?gr.backgroundTheme:null),children:[k.jsxs("div",{style:{width:"100%",lineHeight:"30px",display:"flex",alignItems:"center",flexWrap:"wrap",justifyContent:"center"},children:[k.jsx("div",{children:this.buttonRemove(e)}),k.jsxs("div",{style:{marginLeft:10},children:[k.jsx("span",{children:"IP:"}),this.tableInput(e,{marginTop:-5,minWidth:150,marginLeft:5,verticalAlign:"middle"})]}),k.jsxs("div",{style:{marginLeft:20,whiteSpace:"nowrap"},children:[k.jsxs("span",{children:[j.t("user"),":"]}),this.userSelect(e,{marginTop:"-10px",marginLeft:"5px",verticalAlign:"middle"})]})]}),e!=="default"?["object","state","file"].map((o,a)=>{const s=[...Cc.tableHeadArr].splice(a===0?0:4,a===0?4:5);return k.jsxs(Gx,{sx:gr.table,style:{width:"inherit"},children:[k.jsxs(Kx,{children:[k.jsx(Hs,{children:k.jsx(on,{sx:l=>({background:l.palette.mode==="dark"?"#333":"#EEE"}),align:"center",colSpan:Object.keys(n[e][o]||{}).length,children:j.t(["object","status","file"][a])})}),k.jsx(Hs,{children:s.map((l,u)=>k.jsx(on,{align:"center",children:j.t(l)},`${l}_${u}_mini`))})]}),k.jsx(Jx,{children:k.jsx(Hs,{children:Object.keys(n[e][o]||{}).map(l=>k.jsx(on,{align:"center",children:k.jsx(yr,{table:!0,checked:n[e][o][l],attr:l,native:this.props.native,groupStyle:{alignItems:"center"},style:gr.checkBoxStyle,onChange:u=>{const f=JSON.parse(JSON.stringify(n));f[e][o][l]=u,this.props.onChange("whiteListSettings",f)}})},`${o}_${l}_mini_check`))})})]},`${a}_mini`)}):null]},`${r}_wrapper`):k.jsx("div",{},`${r}_wrapper`)}renderDesktopTable(){const e=this.props.native.whiteListSettings;return e?k.jsxs(Gx,{sx:{...gr.table,...gr.maxTable},children:[k.jsxs(Kx,{children:[k.jsxs(Hs,{children:[k.jsx(on,{align:"center",rowSpan:2,children:this.buttonAdd()}),k.jsx(on,{align:"center",rowSpan:2,style:{fontWeight:"bold"},children:"IP"}),k.jsx(on,{align:"center",rowSpan:2,style:{fontWeight:"bold"},children:j.t("user")}),k.jsx(on,{align:"center",colSpan:4,style:{fontWeight:"bold"},children:j.t("object")}),k.jsx(on,{align:"center",colSpan:5,style:{fontWeight:"bold"},children:j.t("status")}),k.jsx(on,{align:"center",colSpan:5,style:{fontWeight:"bold"},children:j.t("file")})]}),k.jsx(Hs,{children:Cc.tableHeadArr.map((r,n)=>k.jsx(on,{align:"center",children:j.t(r)},`${r}_${n}_max`))})]}),k.jsx(Jx,{children:Object.keys(e).map((r,n)=>k.jsxs(Hs,{children:[k.jsx(on,{sx:gr.backgroundTheme,style:{borderBottom:"1px solid #afafaf"},children:this.buttonRemove(r)}),k.jsx(on,{sx:gr.backgroundTheme,style:{borderBottom:"1px solid #afafaf",color:r==="default"?"#006ccd":void 0},title:r==="default"?j.t("If no IP address matches, show authentication dialog"):"",children:this.tableInput(r,{marginTop:0,minWidth:150,paddingTop:0})}),k.jsx(on,{sx:gr.backgroundTheme,style:{borderBottom:"1px solid #afafaf"},children:this.userSelect(r,{marginTop:-1})}),["object","state","file"].map((o,a)=>Object.keys(e[r][o]||{}).map(s=>k.jsx(on,{sx:a%2?gr.backgroundTheme:void 0,style:{borderBottom:a%2?"1px solid #afafaf":void 0,alignItems:"center"},align:"center",children:k.jsx(yr,{table:!0,checked:e[r][o][s],attr:s,native:this.props.native,groupStyle:{alignItems:"center"},style:gr.checkBoxStyle,onChange:l=>{const u=JSON.parse(JSON.stringify(e));u[r][o][s]=l,this.props.onChange("whiteListSettings",u)}})},`${o}_${s}_max`)))]},`${n}_max`))})]}):k.jsx("div",{})}render(){const{native:e,onChange:r}=this.props,{whiteListSettings:n}=e,{toast:o}=this.state;return k.jsxs("form",{style:gr.tab,children:[k.jsx(hd,{message:o,onClose:()=>this.setState({toast:""})}),k.jsxs("div",{style:{...gr.column,...gr.columnSettings,position:"relative"},children:[k.jsx(yr,{title:"included",attr:"whiteListEnabled",disabled:!!this.props.native.socketio,native:e,onChange:(a,s)=>r(a,s,()=>{s&&!e.whiteListSettings&&r("whiteListSettings",{default:{user:"auth"}})})}),this.props.native.socketio?k.jsx("span",{style:gr.warning,children:j.t("whitelist_only_with_integrated_socket")}):null,!this.props.native.socketio&&n?k.jsx("div",{style:e.whiteListEnabled?null:gr.displayNone,children:k.jsxs(FF,{style:{overflowX:"visible"},component:Ka,children:[this.renderDesktopTable(),k.jsxs(st,{component:"div",sx:gr.miniTable,children:[k.jsx(st,{component:"div",sx:gr.backgroundTheme,style:{position:"sticky",top:-10,left:12,zIndex:22,borderBottom:"1px solid"},children:this.buttonAdd()}),k.jsx("div",{children:Object.keys(n).map((a,s)=>this.renderMobileEntry(a,s))})]})]})}):null]})]})}}const fE={root:{"& > *":{m:"8px"}},input:{display:"none"}};function gZe(t){const{title:e,onChange:r}=t,[n,o]=T.useState("");return k.jsxs(st,{component:"div",sx:fE.root,children:[k.jsx("input",{accept:"image/*",style:fE.input||"",id:"contained-button-file",multiple:!0,type:"file",onChange:a=>r(a.target.files?.[0]||a.dataTransfer.files[0],s=>o(s))}),k.jsxs("label",{htmlFor:"contained-button-file",children:[k.jsx(At,{variant:"contained",color:"primary",component:"span",children:j.t(e)}),k.jsx(zt,{variant:"standard",style:{marginLeft:20},value:n})]})]})}const rc={tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnSettings:{width:"calc(100% - 10px)"},dropZone:{mt:"30px",width:600,border:"2px dashed #bbb",borderRadius:"5px",p:"25px",textAlign:"center",fontSize:"20pt",fontWeight:"bold",fontFamily:"Arial",color:"#bbb",minWidth:320,minHeight:200,transition:"background 1s","&:focus":{outline:"inherit"},"@media screen and (max-width: 680px)":{width:"calc(100% - 45px)",minWidth:200,"& img":{width:"100%"}}},dropZoneActive:{background:"#d6d6d69c"},imgStyle:{maxWidth:500,maxHeight:500}};class yZe extends T.Component{constructor(e){super(e),this.state={imgSRC:"",toast:""}}componentDidMount(){this.readFile()}readFile(){const{socket:e,instance:r}=this.props;e.getRawSocket().emit("readFile",`web.${r}`,"login-bg.png",(n,o)=>{if(!n&&o){const a=new Uint8Array(o);if(!a.length)this.setState({imgSRC:`../../files/web.${r}/login-bg.png?ts=${Date.now()}`});else{const s=new Blob([a],{type:"image/png"}),u=(window.URL||window.webkitURL).createObjectURL(s);this.setState({imgSRC:u})}}else this.setState({imgSRC:""})})}uploadFile(e,r){const{socket:n,instance:o}=this.props;if(!e)return;if(e.size>5*1024*1024){this.setState({toast:`File ${e.name} is too big. Maximum 5MB`}),this.setState({imgSRC:""}),r&&r("");return}const a=new FileReader;a.onload=s=>{n.getRawSocket().emit("writeFile",`web.${o}`,"login-bg.png",s.target?.result,()=>this.readFile())},r&&r(e.name),a.readAsArrayBuffer(e)}render(){const{native:e,onChange:r}=this.props,{imgSRC:n,toast:o}=this.state;return k.jsxs("form",{style:rc.tab,children:[k.jsx(hd,{message:o,onClose:()=>this.setState({toast:""})}),k.jsxs("div",{style:{...rc.column,...rc.columnSettings},children:[k.jsx("div",{children:k.jsx(qu,{styleComponentBlock:{height:20,display:"flex",justifyContent:"center",alignItems:"center"},component:k.jsx(qu,{attr:"loginBackgroundColorHelper",type:"color",style:{marginTop:-1,marginLeft:10,minWidth:60},native:e,onChange:(a,s)=>r("loginBackgroundColorHelper",s,()=>r("loginBackgroundColor",s)),variant:"outlined",size:"small"}),title:"color",attr:"loginBackgroundColor",style:{marginTop:-1,marginBottom:20},native:e,onChange:(a,s)=>r("loginBackgroundColorHelper",s,()=>r("loginBackgroundColor",s))})}),k.jsx("div",{children:k.jsx(yr,{title:"background_image",attr:"loginBackgroundImage",native:e,onChange:r})}),k.jsxs("div",{style:e.loginBackgroundImage?{display:"block"}:{display:"none"},children:[k.jsx("div",{children:k.jsx(gZe,{title:"upload_image",onChange:(a,s)=>this.uploadFile(a,s)})}),k.jsx(fd,{accept:{"image/*":[]},onDrop:a=>this.uploadFile(a[0]),children:({getRootProps:a,getInputProps:s,isDragActive:l})=>k.jsx("section",{children:k.jsxs(st,{component:"div",sx:{...rc.dropZone,...l?rc.dropZoneActive:void 0},...a(),children:[k.jsx("input",{...s()}),k.jsx("p",{children:j.t("place_the_files_here")}),n?k.jsx("img",{style:rc.imgStyle,src:n,alt:"img"}):null]})})})]})]})]})}}const oa={tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnSettings:{width:"calc(100% - 10px)"},fontSize:{"@media screen and (max-width: 460px)":{"& > *":{fontSize:"3.2vw"}}}},vZe=[{value:"",label:"System language",translate:!0},{value:"en",label:"English"},{value:"de",label:"Deutsch"},{value:"ru",label:"русский"},{value:"pt",label:"Portugues"},{value:"nl",label:"Nederlands"},{value:"fr",label:"français"},{value:"it",label:"Italiano"},{value:"es",label:"Espanol"},{value:"pl",label:"Polski"},{value:"uk",label:"Українська мова"},{value:"zh-cn",label:"简体中文"}];class bZe extends T.Component{render(){const{native:e,onChange:r}=this.props;return k.jsx("form",{style:oa.tab,children:k.jsxs("div",{style:{...oa.column,...oa.columnSettings},children:[k.jsx("h4",{children:j.t("disable_default")}),k.jsx("p",{children:j.t("warning_incorrectly")}),k.jsx("div",{children:k.jsx(yr,{title:"disable_extensions",attr:"disableExtensions",sx:oa.fontSize,native:e,onChange:r})}),k.jsx("div",{children:k.jsx(yr,{title:"disable_states",attr:"disableStates",sx:oa.fontSize,native:e,onChange:r})}),k.jsx("div",{children:k.jsx(yr,{title:"disable_objects",attr:"disableObjects",sx:oa.fontSize,native:e,onChange:r})}),k.jsx("div",{children:k.jsx(yr,{title:"disable_files",attr:"disableFilesObjects",sx:oa.fontSize,native:e,onChange:r})}),e.disableFilesObjects?null:k.jsx("div",{children:k.jsx(yr,{title:"show_folders",attr:"showFolderIndex",sx:oa.fontSize,native:e,onChange:r})}),k.jsx("h4",{children:j.t("Redirect options")}),k.jsx("div",{children:k.jsx(zt,{variant:"standard",value:e.defaultRedirect||"",onChange:n=>r("defaultRedirect",n.target.value),label:j.t("defaultRedirect"),helperText:j.t("This path will be opened if no path specified")})}),k.jsx("div",{children:k.jsx(zt,{variant:"standard",value:e.rootPath||"",onChange:n=>r("rootPath",n.target.value),label:j.t("rootPath"),helperText:j.t("rootPath_hint")})}),k.jsx("h4",{children:j.t("Cache options")}),k.jsx("div",{children:k.jsx(zt,{variant:"standard",value:e.staticAssetCacheMaxAge,onChange:n=>r("staticAssetCacheMaxAge",n.target.value),label:j.t("staticAssetCacheMaxAge"),helperText:j.t("in seconds")})}),k.jsx("h4",{children:j.t("Language")}),k.jsx("div",{children:k.jsxs(sa,{variant:"standard",style:{width:250},children:[k.jsx(vu,{children:j.t("Overload system language")}),k.jsx(Sn,{value:e.language||"",label:j.t("Overload system language"),onChange:n=>r("language",n.target.value),children:vZe.map(n=>k.jsx(Qt,{value:n.value,children:n.translate?j.t(n.label):n.label},n.value))}),k.jsx(rd,{children:j.t("only for this instance")})]})}),k.jsx("div",{children:k.jsx(yr,{title:"show_admin_instances",attr:"showAdminInstances",sx:oa.fontSize,native:e,onChange:r})})]})})}}const kv={tab:{width:"100%",minHeight:"100%"},column:{display:"inline-block",verticalAlign:"top"},columnSettings:{width:"100%"}};let wZe=class extends T.Component{lang=j.getLanguage();constructor(e){super(e),this.state={toast:"",groups:null,users:null}}async componentDidMount(){const e=await this.props.socket.getUsers(),r=await this.props.socket.getGroups();this.setState({users:e,groups:r})}render(){const{native:e,onChange:r}=this.props,{userListSettings:n}=e,{toast:o}=this.state;return k.jsxs("form",{style:kv.tab,children:[k.jsx(hd,{message:o,onClose:()=>this.setState({toast:""})}),k.jsxs("div",{style:{...kv.column,...kv.columnSettings,position:"relative"},children:[k.jsx(yr,{title:"included",attr:"userListEnabled",native:e,onChange:(a,s)=>r(a,s,()=>{s&&!e.userListSettings&&r("userListSettings",{accessAsUser:"system.user.admin",users:["system.user.admin"],groups:["system.group.administrator"]})})}),n&&this.state.users?k.jsxs("div",{children:[k.jsxs("div",{children:[j.t("Only following users may access web interface as"),k.jsxs(Sn,{style:{marginLeft:10,marginRight:10},variant:"standard",value:e.userListSettings.accessAsUser||"_",onChange:a=>{const s=JSON.parse(JSON.stringify(e.userListSettings));s.accessAsUser=a.target.value==="_"||!a.target.value?"":a.target.value,r("userListSettings",s)},renderValue:a=>{if(!a||a==="_")return j.t("logged in user");const s=this.state.users?.find(l=>l._id===a);return s?k.jsx(ec,{value:s,lang:this.lang}):a},children:[k.jsx(Qt,{value:"_",children:j.t("logged in user")}),this.state.users.map(a=>k.jsx(Qt,{value:a._id,children:k.jsx(ec,{value:a,lang:this.lang})},a._id))]}),j.t("after authentication"),":"]}),k.jsxs("div",{style:{display:"flex",width:"100%",maxWidth:1024,flexDirection:"row"},children:[k.jsxs("div",{style:{display:"flex",width:"calc(50% - 20px)",maxWidth:512,flexDirection:"column"},children:[k.jsx("div",{style:{fontSize:24,fontWeight:"bold",marginLeft:8},children:j.t("Groups")}),this.state.groups?.map(a=>k.jsxs(Ka,{style:{width:"calc(100% - 40px)",margin:10,padding:10},children:[k.jsxs("div",{style:{display:"flex"},children:[k.jsx(dr,{disabled:a._id==="system.group.administrator",onChange:()=>{const s=JSON.parse(JSON.stringify(e.userListSettings)),l=s.groups.indexOf(a._id);l!==-1?s.groups.splice(l,1):(s.groups.push(a._id),s.groups.sort()),r("userListSettings",s)},checked:e.userListSettings.groups.includes(a._id)}),k.jsx(ec,{value:a,lang:this.lang})]}),k.jsxs("div",{style:{display:"flex",marginLeft:12},children:[k.jsx("span",{style:{marginRight:8},children:j.t("Group members:")}),a.common.members.map(s=>{const l=this.state.users?.find(u=>u._id===s);return l?k.jsx(ec,{value:l,lang:this.lang},s):k.jsx("span",{children:s},s)})]})]},a._id))]}),k.jsxs("div",{style:{display:"flex",width:"calc(50% - 20px)",maxWidth:512,flexDirection:"column"},children:[k.jsx("div",{style:{fontSize:24,fontWeight:"bold",marginLeft:8},children:j.t("Users")}),this.state.users.map(a=>{const s=!!e.userListSettings.groups.find(l=>{const u=this.state.groups?.find(f=>f._id===l);return u&&u.common.members.includes(a._id)});return k.jsxs(Ka,{style:{width:"calc(100% - 40px)",margin:10,padding:10},children:[k.jsxs("div",{style:{display:"flex"},children:[k.jsx(dr,{disabled:a._id==="system.user.admin"||s,onChange:()=>{const l=JSON.parse(JSON.stringify(e.userListSettings)),u=l.users.indexOf(a._id);u!==-1?l.users.splice(u,1):(l.users.push(a._id),l.users.sort()),r("userListSettings",l)},checked:e.userListSettings.users.includes(a._id)||s}),k.jsx(ec,{value:a,lang:this.lang})]}),k.jsxs("div",{style:{display:"flex",marginLeft:12},children:[k.jsx("span",{style:{marginRight:8},children:j.t("In groups:")}),this.state.groups?.filter(l=>l.common.members.includes(a._id)).map(l=>k.jsx(ec,{value:l,lang:this.lang},l._id))]})]},a._id)})]})]})]}):null]})]})}};class SZe extends T.Component{render(){const{native:e,onChange:r}=this.props;return k.jsxs("div",{style:{width:"100%",minHeight:"100%",display:"flex",alignItems:"flex-start",gap:16,flexDirection:"column"},children:[k.jsx(ut,{control:k.jsx(dr,{checked:!!e.accessControlEnabled,onChange:()=>r("accessControlEnabled",!e.accessControlEnabled),color:"primary"}),label:j.t("custom_cors_settings")}),e.accessControlEnabled?k.jsx(At,{variant:"contained",onClick:()=>{r("accessControlAllowOrigin","*",()=>r("accessControlAllowMethods","GET,PUT,POST,DELETE,OPTIONS",()=>r("accessControlAllowHeaders","Content-Type, Authorization, Content-Length, X-Requested-With, *",()=>r("accessControlAllowCredentials",!0,()=>r("accessControlExposeHeaders","",()=>r("accessControlMaxAge",86400))))))},children:j.t("reset_cors_settings")}):null,e.accessControlEnabled?k.jsx(zt,{fullWidth:!0,variant:"standard",value:e.accessControlAllowOrigin||"",onChange:n=>r("accessControlAllowOrigin",n.target.value),label:"Access-Control-Allow-Origin"}):null,e.accessControlEnabled?k.jsx(zt,{fullWidth:!0,variant:"standard",value:e.accessControlAllowMethods||"",onChange:n=>r("accessControlAllowMethods",n.target.value),label:"Access-Control-Allow-Methods"}):null,e.accessControlEnabled?k.jsx(zt,{fullWidth:!0,variant:"standard",value:e.accessControlAllowHeaders||"",onChange:n=>r("accessControlAllowHeaders",n.target.value),label:"Access-Control-Allow-Headers"}):null,e.accessControlEnabled?k.jsx(ut,{control:k.jsx(dr,{checked:!!e.accessControlAllowCredentials,onChange:()=>r("accessControlAllowCredentials",!e.accessControlAllowCredentials),color:"primary"}),label:"Access-Control-Allow-Credentials"}):null,e.accessControlEnabled?k.jsx(zt,{fullWidth:!0,variant:"standard",value:e.accessControlExposeHeaders||"",onChange:n=>r("accessControlExposeHeaders",n.target.value),label:"Access-Control-Expose-Headers"}):null,e.accessControlEnabled?k.jsx(zt,{fullWidth:!0,variant:"standard",type:"number",value:e.accessControlMaxAge||"",onChange:n=>r("accessControlMaxAge",n.target.value),label:"Access-Control-Max-Age"}):null]})}}const xZe="Authentication was deactivated",kZe="Cancel",CZe="Common",$Ze="Groups",EZe="Language",TZe="Ok",OZe="Readable",DZe="User access list",RZe="Users",MZe="Warning!",AZe="Writeable",NZe="Advanced",PZe="Authentication",IZe="Background",jZe="Background image",zZe="Basic Authentication",LZe="You can enable basic authentication for the web server. It will be enabled additionally to OAuth2 and custom token authentications.",FZe="itegrated",BZe="Disable authentication",WZe="Ignore warning",UZe="Cache",qZe="Let`s encrypt certificates",HZe="Chained certificate",VZe="Background color of the login screen",GZe="Custom CORS settings",XZe="Default redirect path",JZe="Disable Default Functions",YZe="Disable extension handling",KZe="Do not serve web files from ioBroker storage",ZZe="Disable objects delivery (/object/)",QZe="Disable states and socket info",eQe="Port to check the domain",tQe="Secure (HTTPS)",rQe="file",nQe="Socket.io supports different communication ways: web socket and long-polling. By activating of this flag, you can force socket.io to communicate only via web sockets.",oQe="Enabled",aQe="The provided IP is not valid",iQe="Legacy authentication method",sQe="Web server supports OAuth2 authentication and authentication with custom token in cookie.\\nHere you can say that login page should authenticate with custom cookie (legacy) and not via OAuth2.\\nThat could be required for third party adapters.",cQe="Click for help",lQe="list",uQe="Main settings",dQe="The password will be sent via unsecure connection. To protect your passwords enable the secure connection (HTTPS)!",pQe="none",fQe="OAuth2 Authentication (Beta)",hQe="object",mQe="Listen on all IPs",_Qe="place the files here",gQe="Port",yQe="Private certificate",vQe="'Public' certificate",bQe="Use this instance for automatic update",wQe="Set CORS settings to default",SQe="Root path",xQe="Public URL path prefix when web is served behind a reverse proxy (e.g. /web/). Used for WebSocket connections. Leave empty if web is accessed at the domain root.",kQe="Set certificates or load it first in the system settings (right top).",CQe="Show non-web instances",$Qe="Show folders content",EQe="Built-in 'Simple-API'",TQe="Socket.IO Instance (Optional): (Used by adapters like rickshaw or vis)",OQe="Cache max age for files",DQe="state",RQe="Login timeout (sec)",MQe="create",AQe="read",NQe="Upload image",PQe="Use pure web-sockets (iobroker.ws)",IQe="You can select here if socket.io library or native web-sockets will be used for communication. We suggest to activate this flag.",jQe="Use Let's Encrypt certificates",zQe="Use Lets Encrypt staging (for testing/debug. Only for developer)",LQe="User",FQe="Run as",BQe="Warning: Incorrectly disabling functions use can cause unexpected behaviour.",WQe="Force Web-Sockets",UQe="Access list",qQe="White list works only with integrated socket-io interface",HQe="write",VQe={Authentication_deactivated:xZe,"CORS-settings":"CORS-settings","Cache options":"Cache options",Cancel:kZe,Common:CZe,"Compatibility mode with socket.io@2.x":"Compatibility mode with socket.io@2.x","Do not check if this instance is available from internet":"Do not check if this instance is available from internet","Group members:":"Group members:",Groups:$Ze,"IP address":"Bound IP address","If no IP address matches, show authentication dialog":"If no IP address matches, show authentication dialog","In groups:":"In groups:",Language:EZe,Ok:TZe,"Only following users may access web interface as":"Only following users may access web interface as","Overload system language":"Overload system language",Readable:OZe,"Redirect options":"Redirect options","Same settings must be set in socketio instance":"Same settings must be set in socketio instance","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API is now working as Web-Extension. Please create an instance and make settings there.","System language":"System language","This path will be opened if no path specified":"This path will be opened if no URL path specified","Use %s adapter to get letsencrypt certificates.":"Use %s adapter to get letsencrypt certificates.",UserList:DZe,Users:RZe,Warning:MZe,"White list will be disabled. Please confirm.":"White list will be disabled. Please confirm.",Writeable:AZe,additionally:NZe,"after authentication":"after authentication",authentication:PZe,background:IZe,background_image:jZe,basic_authentication:zZe,basic_authentication_info:LZe,built_in:FZe,button_title:BZe,button_title2:WZe,cache:UZe,certificates:qZe,chained_certificate:HZe,color:VZe,custom_cors_settings:GZe,defaultRedirect:XZe,delete:"delete",disable_default:JZe,disable_extensions:YZe,disable_files:KZe,disable_objects:ZZe,disable_states:QZe,domain_name:eQe,encryption:tQe,file:rQe,forceWebSockets_info:nQe,"in seconds":"in seconds",included:oQe,incorrect_ip:aQe,legacy_authentication:iQe,legacy_authentication_info:sQe,link:cQe,list:lQe,"logged in user":"logged in user",main_settings:uQe,modal_title:dQe,nothing:pQe,oauth2_authentication:fQe,object:hQe,"only for this instance":"only for this instance",open_ip:mQe,place_the_files_here:_Qe,port:gQe,private_certificate:yQe,public_certificate:vQe,renew_certificates:bQe,reset_cors_settings:wQe,rootPath:SQe,rootPath_hint:xQe,set_certificates:kQe,show_admin_instances:CQe,show_folders:$Qe,simple_api:EQe,socket:TQe,staticAssetCacheMaxAge:OQe,status:DQe,time_out:RQe,to_create:MQe,to_read:AQe,upload_image:NQe,usePureWebSockets:PQe,usePureWebSockets_info:IQe,use_certificates:jQe,use_lets:zQe,user:LQe,users:FQe,warning_incorrectly:BQe,web_sockets:WQe,whiteList:UQe,whitelist_only_with_integrated_socket:qQe,write:HQe},GQe="Die Authentifizierung wurde deaktiviert",XQe="Abbrechen",JQe="Allgemein",YQe="Gruppen",KQe="Sprache",ZQe="Ok",QQe="Lesbar",eet="Benutzerzugriffsliste",tet="Benutzer",ret="Warnung!",net="Beschreibbar",oet="Extra",aet="Authentifikation",iet="Hintergrund",set="Hintergrundbild",cet="Basic-Authentifizierung",uet="Sie können die Basic-Authentifizierung für den Webserver aktivieren. Sie wird zusätzlich zu OAuth2 und benutzerdefinierten Token-Authentifizierungen aktiviert.",det="integriert",pet="Authentifizierung deaktivieren",fet="Warnung ignorieren",het="Cache",met="Let's Encrypt Zertifikate",_et="Verkettetes Zertifikat",get="Hintergrundfarbe des Anmeldebildschirms",yet="Benutzerdefinierte CORS-Einstellungen",vet="Standardweiterleitungspfad",bet="Standardfunktionen deaktivieren",wet="Erweiterungsbehandlung deaktivieren",xet="Webdateien aus dem ioBroker-Speicherbereich nicht bereitstellen",ket="Objektzustellung deaktivieren (/object/)",Cet="Zustände und Socket Informationen deaktivieren",$et="Port um die Domain zu prüfen",Eet="Verschlüsselte Verbindung (HTTPS)",Tet="Datei",Oet="Socket.io unterstützt verschiedene Kommunikationswege: Websocket und Long-Polling. Durch Aktivieren dieses Flags können Sie socket.io zwingen, nur über Websockets zu kommunizieren.",Det="Aktiviert",Ret="Die angegebene IP-Adresse ist ungültig",Met="Ältere Authentifizierungsmethode",Aet="Der Webserver unterstützt OAuth2-Authentifizierung und Authentifizierung mit benutzerdefiniertem Token im Cookie.\\nHier können Sie angeben, dass die Anmeldeseite mit einem benutzerdefinierten Cookie (Legacy) und nicht über OAuth2 authentifiziert werden soll.\\nDies kann für Adapter von Drittanbietern erforderlich sein.",Net="Anklicken für Hilfe",Pet="auflisten",Iet="Allgemeine Einstellungen",jet="Das Passwort wird über unsichere Verbindung gesendet. Um Ihre Passwörter zu schützen, aktivieren Sie die sichere HTTPS Verbindung!",zet="keins",Let="OAuth2-Authentifizierung (Beta)",Fet="Objekt",Bet="Zugriff von allen IPs zulassen",Wet="Dateien hier platzieren",Uet="Port",qet="Privates Zertifikat",Het="Öffentliches Zertifikat",Vet="Diese Instanz für automatische Updates verwenden",Get="CORS-Einstellungen auf Standard zurücksetzen",Xet="Root-Pfad",Jet="Öffentlicher URL-Pfad-Präfix, wenn web hinter einem Reverse-Proxy betrieben wird (z.B. /web/). Wird für WebSocket-Verbindungen verwendet. Leer lassen, wenn web direkt unter der Domain erreichbar ist.",Yet="Zertifikate wählen bzw. Zertifikate in den Systemeinstellungen (oben rechts) hinterlegen.",Ket="Nicht-Web-Instanzen anzeigen",Zet="Ordnerinhalt anzeigen",Qet="Eingebautes 'Simple-API'",ett="socket.io Instanz (Optional): (Wird von Rickshaw oder Vis benutzt)",ttt="Cache-Maximalalter für Dateien",rtt="Zustand",ntt="Anmelde Timeout (Sek.)",ott="erstellen",att="lesen",itt="Bild hochladen",stt="Reine Web-Sockets (iobroker.ws) verwenden",ctt="Sie können hier auswählen, ob die socket.io-Bibliothek oder native Web-Sockets für die Kommunikation verwendet werden. Wir empfehlen, dieses Flag zu aktivieren.",ltt="Let's Encrypt Zertifikate verwenden",utt="Lets Encrypt Staging verwenden (nur zum Testen oder Debuggen. Nur für Entwickler)",dtt="Benutzer",ptt="Ausführen als",ftt="Warnung: Das fehlerhafte Deaktivieren von Funktionen kann zu unerwartetem Verhalten führen.",htt="Web-Sockets erzwingen",mtt="Zugangsliste",_tt="Whitelist funktioniert nur mit integrierter Socket-io-Schnittstelle",gtt="schreiben",ytt={Authentication_deactivated:GQe,"CORS-settings":"CORS-Einstellungen","Cache options":"Cache-Optionen",Cancel:XQe,Common:JQe,"Compatibility mode with socket.io@2.x":"Kompatibilitätsmodus mit socket.io@2.x","Do not check if this instance is available from internet":"Nicht überprüfen, ob diese Instanz im Internet verfügbar ist","Group members:":"Gruppenmitglieder:",Groups:YQe,"IP address":"Gebundene IP-Adresse","If no IP address matches, show authentication dialog":"Wenn keine IP-Adresse übereinstimmt, Authentifizierungsdialog anzeigen","In groups:":"In Gruppen:",Language:KQe,Ok:ZQe,"Only following users may access web interface as":"Nur folgende Benutzer dürfen auf die Weboberfläche zugreifen als","Overload system language":"Systemsprache überladen",Readable:QQe,"Redirect options":"Weiterleitungsoptionen","Same settings must be set in socketio instance":"Dieselben Einstellungen müssen in der Socketio-Instanz festgelegt werden","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API funktioniert nun als Web-Extension. Bitte erstellen Sie eine Instanz und nehmen Sie dort Einstellungen vor.","System language":"Systemsprache","This path will be opened if no path specified":"Dieser Pfad wird geöffnet, wenn kein URL-Pfad angegeben ist","Use %s adapter to get letsencrypt certificates.":"Verwenden Sie den %s-Adapter, um letsencrypt-Zertifikate zu erhalten.",UserList:eet,Users:tet,Warning:ret,"White list will be disabled. Please confirm.":"Weiße Liste wird deaktiviert. Bitte bestätigen.",Writeable:net,additionally:oet,"after authentication":"nach der Authentifizierung",authentication:aet,background:iet,background_image:set,basic_authentication:cet,basic_authentication_info:uet,built_in:det,button_title:pet,button_title2:fet,cache:het,certificates:met,chained_certificate:_et,color:get,custom_cors_settings:yet,defaultRedirect:vet,delete:"Löschen",disable_default:bet,disable_extensions:wet,disable_files:xet,disable_objects:ket,disable_states:Cet,domain_name:$et,encryption:Eet,file:Tet,forceWebSockets_info:Oet,"in seconds":"in Sekunden",included:Det,incorrect_ip:Ret,legacy_authentication:Met,legacy_authentication_info:Aet,link:Net,list:Pet,"logged in user":"Angemeldeter Benutzer",main_settings:Iet,modal_title:jet,nothing:zet,oauth2_authentication:Let,object:Fet,"only for this instance":"nur für diese Instanz",open_ip:Bet,place_the_files_here:Wet,port:Uet,private_certificate:qet,public_certificate:Het,renew_certificates:Vet,reset_cors_settings:Get,rootPath:Xet,rootPath_hint:Jet,set_certificates:Yet,show_admin_instances:Ket,show_folders:Zet,simple_api:Qet,socket:ett,staticAssetCacheMaxAge:ttt,status:rtt,time_out:ntt,to_create:ott,to_read:att,upload_image:itt,usePureWebSockets:stt,usePureWebSockets_info:ctt,use_certificates:ltt,use_lets:utt,user:dtt,users:ptt,warning_incorrectly:ftt,web_sockets:htt,whiteList:mtt,whitelist_only_with_integrated_socket:_tt,write:gtt},vtt="Аутентификация была отключена",btt="Отмена",wtt="Основные",Stt="Группы",xtt="Язык",ktt="Ok",Ctt="Читабельно",$tt="Список доступа пользователей",Ett="Пользователи",Ttt="Внимание!",Ott="Записываемый",Dtt="Дополнительно",Rtt="Аутентификация",Mtt="Фон",Att="Фоновое изображение",Ntt="Basic-Аутентификация",Ptt="Вы можете включить Basic-аутентификацию для веб-сервера. Она будет включена дополнительно к OAuth2 и пользовательским токенам аутентификации.",Itt="встроенный",jtt="Отключить аутентификацию",ztt="Игнорировать предупреждение",Ltt="Кэш",Ftt="Let`s encrypt сертификаты",Btt="'Chained' сертификат",Wtt="Цвет фона экрана входа в систему",Utt="Пользовательские настройки CORS",qtt="Путь перенаправления по умолчанию",Htt="Отключить функции по умолчанию",Vtt="Отключить обработку расширений",Gtt="Не обслуживать веб-файлы из objectDB",Xtt="Отключить доставку объектов (/object/)",Jtt="Отключить состояния и информацию о сокете",Ytt="Порт для проверки доменного имени",Ktt="Шифрование (HTTPS)",Ztt="файл",Qtt="Socket.io поддерживает различные способы связи: веб-сокет и long-polling. Активируя этот флаг, вы можете заставить socket.io общаться только через веб-сокеты.",ert="Включено",trt="Неверный IP-адрес",rrt="Устаревший метод аутентификации",nrt="Веб-сервер поддерживает аутентификацию OAuth2 и аутентификацию с помощью пользовательского токена в cookie.\\nЗдесь можно указать, что страница входа должна проходить аутентификацию с помощью пользовательского cookie (устаревшего), а не через OAuth2.\\nЭто может потребоваться для сторонних адаптеров.",ort="Перейти по ссылке",art="список",irt="Основные настройки",srt="Пароль будет отправлен через незащищенное соединение. Для защиты ваших паролей активируйте безопасное соединение (HTTPS)!",crt="ничего",lrt="Аутентификация OAuth2 (бета-версия)",urt="объект",drt="Открыть для всех IP адресов",prt="переместите файлы сюда",frt="Порт",hrt="'Private' сертификат",mrt="'Public' сертификат",_rt="Обновлять сертификаты в этом экземпляре",grt="Установить настройки CORS по умолчанию",yrt="Корневой путь",vrt="Публичный префикс URL-пути, когда web работает за обратным прокси (например, /web/). Используется для WebSocket-соединений. Оставьте пустым, если web доступен в корне домена.",brt="Нужно выбрать сертификаты или сначала загрузить их в системных настройках.",wrt="Показать не веб-примеры",Srt="Показать содержимое папок",xrt="Встроенный 'Simple-API'",krt="Socket.IO экземпляр (опционально): (Используется для Rickshaw или Vis)",Crt="Максимальный возраст кэша для файлов",$rt="статус",Ert="Тайм-аут входа (сек)",Trt="создать",Ort="читать",Drt="Загрузить изображение",Rrt="Использовать чистые веб-сокеты (iobroker.ws)",Mrt="Здесь вы можете выбрать, будет ли использоваться библиотека socket.io или собственные веб-сокеты для связи. Мы рекомендуем активировать этот флаг.",Art="Использовать сертификаты Let`s Encrypt",Nrt="Используйте Lets Encrypt staging (для тестирования/отладки. Только для разработчиков)",Prt="Пользователь",Irt="Запустить от пользователя",jrt="Внимание: неправильное отключение использования функций может вызвать непредвиденное поведение.",zrt="Только Web-Sockets",Lrt="Список доступа",Frt="Белый список работает только со встроенным интерфейсом socket-io",Brt="писать",Wrt={Authentication_deactivated:vtt,"CORS-settings":"CORS-настройки","Cache options":"Параметры кэша",Cancel:btt,Common:wtt,"Compatibility mode with socket.io@2.x":"Режим совместимости с socket.io@2.x","Do not check if this instance is available from internet":"Не проверять, доступен ли этот экземпляр из Интернета","Group members:":"Участники группы:",Groups:Stt,"IP address":"Связанный IP-адрес","If no IP address matches, show authentication dialog":"Если нет совпадений IP-адресов, показать диалоговое окно аутентификации","In groups:":"В группах:",Language:xtt,Ok:ktt,"Only following users may access web interface as":"Только следующие пользователи могут получить доступ к веб-интерфейсу, как","Overload system language":"Перегрузить системный язык",Readable:Ctt,"Redirect options":"Варианты перенаправления","Same settings must be set in socketio instance":"Те же настройки должны быть установлены в экземпляре socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API теперь работает как Web-Extension. Пожалуйста, создайте экземпляр и сделайте настройки там.","System language":"Язык системы","This path will be opened if no path specified":"Этот путь будет открыт, если не указан URL-путь","Use %s adapter to get letsencrypt certificates.":"Используйте адаптер %s для получения сертификатов letsencrypt.",UserList:$tt,Users:Ett,Warning:Ttt,"White list will be disabled. Please confirm.":"Белый список будет отключен. Пожалуйста подтвердите.",Writeable:Ott,additionally:Dtt,"after authentication":"после аутентификации",authentication:Rtt,background:Mtt,background_image:Att,basic_authentication:Ntt,basic_authentication_info:Ptt,built_in:Itt,button_title:jtt,button_title2:ztt,cache:Ltt,certificates:Ftt,chained_certificate:Btt,color:Wtt,custom_cors_settings:Utt,defaultRedirect:qtt,delete:"удалить",disable_default:Htt,disable_extensions:Vtt,disable_files:Gtt,disable_objects:Xtt,disable_states:Jtt,domain_name:Ytt,encryption:Ktt,file:Ztt,forceWebSockets_info:Qtt,"in seconds":"в секундах",included:ert,incorrect_ip:trt,legacy_authentication:rrt,legacy_authentication_info:nrt,link:ort,list:art,"logged in user":"вошедший в систему пользователь",main_settings:irt,modal_title:srt,nothing:crt,oauth2_authentication:lrt,object:urt,"only for this instance":"только для этого экземпляра",open_ip:drt,place_the_files_here:prt,port:frt,private_certificate:hrt,public_certificate:mrt,renew_certificates:_rt,reset_cors_settings:grt,rootPath:yrt,rootPath_hint:vrt,set_certificates:brt,show_admin_instances:wrt,show_folders:Srt,simple_api:xrt,socket:krt,staticAssetCacheMaxAge:Crt,status:$rt,time_out:Ert,to_create:Trt,to_read:Ort,upload_image:Drt,usePureWebSockets:Rrt,usePureWebSockets_info:Mrt,use_certificates:Art,use_lets:Nrt,user:Prt,users:Irt,warning_incorrectly:jrt,web_sockets:zrt,whiteList:Lrt,whitelist_only_with_integrated_socket:Frt,write:Brt},Urt="A autenticação foi desativada",qrt="Cancelar",Hrt="Comum",Vrt="Grupos",Grt="Linguagem",Xrt="OK",Jrt="Legível",Yrt="Lista de acesso do usuário",Krt="Usuários",Zrt="Atenção!",Qrt="Gravável",ent="Avançado",tnt="Autenticação",rnt="Fundo",nnt="Imagem de fundo",ont="Autenticação Básica",ant="Você pode habilitar a autenticação Basic para o servidor web. Ela será habilitada adicionalmente para OAuth2 e autenticações de token personalizadas.",int="integrado",snt="Desativar autenticação",cnt="Ignorar aviso",lnt="Cache",unt="Let's Encrypt Certificados",dnt="Certificado acorrentado",pnt="Cor de fundo da tela de login",fnt="Configurações CORS personalizadas",hnt="Caminho de redirecionamento padrão",mnt="Desativar funções padrão",_nt="Desative o manuseio de extensões",gnt="Não veicular arquivos da web de objectDB",ynt="Desativar entrega de objetos (/object/)",vnt="Desative estados e informações de soquete",bnt="Porta para verificar o domínio",wnt="Seguro (HTTPS)",Snt="Arquivo",xnt="Socket.io suporta diferentes formas de comunicação: web socket e long-polling. Ao ativar este sinalizador, você pode forçar o socket.io a se comunicar somente via web sockets.",knt="Ativado",Cnt="O IP fornecido não é válido",$nt="Método de autenticação legado",Ent="O servidor web suporta autenticação OAuth2 e autenticação com token personalizado no cookie.\\nAqui você pode dizer que a página de login deve ser autenticada com cookie personalizado (legado) e não via OAuth2.\\nIsso pode ser necessário para adaptadores de terceiros.",Tnt="Clique para ajuda",Ont="Lista",Dnt="Configurações principais",Rnt="A senha será enviada por meio de conexão não segura. Para proteger suas senhas, ative a conexão segura (HTTPS)!",Mnt="ninguna",Ant="Autenticação OAuth2 (Beta)",Nnt="objeto",Pnt="Ouça todos os IPs",Int="coloque os arquivos aqui",jnt="Porta",znt="Certificado privado",Lnt="Certificado público",Fnt="Use esta instância para atualização automática",Bnt="Definir as configurações do CORS para o padrão",Wnt="Caminho raiz",Unt="Prefixo de caminho URL público quando web é servido atrás de um proxy reverso (ex.: /web/). Usado para conexões WebSocket. Deixe vazio se web é acessado na raiz do domínio.",qnt="Defina certificados ou carregue primeiro nas configurações do sistema (parte superior direita).",Hnt="Mostrar instâncias não-web",Vnt="Mostrar o conteúdo das pastas",Gnt="Build-in 'Simple-API'",Xnt="Socket.IO Instance (Optional): (Usado por adaptadores como rickshaw ou vis)",Jnt="Idade máxima do cache para arquivos",Ynt="Estado",Knt="Tempo limite de login (seg)",Znt="crio",Qnt="ler",eot="Enviar Imagem",tot="Use web-sockets puros (iobroker.ws)",rot="Você pode selecionar aqui se a biblioteca socket.io ou web-sockets nativos serão usados para comunicação. Sugerimos ativar este sinalizador.",not="Use Vamos criptografar certificados",oot="Use o teste Lets Encrypt (para teste)",aot="Do utilizador",iot="Correr como",sot="Aviso: A desativação incorreta do uso de funções pode causar um comportamento inesperado.",cot="Forçar Web-Sockets",lot="Lista de acesso",uot="A lista branca funciona apenas com interface socket-io integrada",dot="wrire",pot={Authentication_deactivated:Urt,"CORS-settings":"Configurações CORS","Cache options":"Opções de cache",Cancel:qrt,Common:Hrt,"Compatibility mode with socket.io@2.x":"Modo de compatibilidade com socket.io@2.x","Do not check if this instance is available from internet":"Não verifique se esta instância está disponível na Internet","Group members:":"Membros do grupo:",Groups:Vrt,"IP address":"Endereço IP vinculado","If no IP address matches, show authentication dialog":"Se nenhum endereço IP corresponder, mostre a caixa de diálogo de autenticação","In groups:":"Em grupos:",Language:Grt,Ok:Xrt,"Only following users may access web interface as":"Somente os seguintes usuários podem acessar a interface web como","Overload system language":"Sobrecarregar o idioma do sistema",Readable:Jrt,"Redirect options":"Opções de redirecionamento","Same settings must be set in socketio instance":"As mesmas configurações devem ser definidas na instância socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"A API Simple agora está funcionando como Web-Extension. Crie uma instância e faça as configurações lá.","System language":"Idioma do sistema","This path will be opened if no path specified":"Este caminho será aberto se nenhum caminho de URL for especificado","Use %s adapter to get letsencrypt certificates.":"Use o adaptador %s para obter certificados letsencrypt.",UserList:Yrt,Users:Krt,Warning:Zrt,"White list will be disabled. Please confirm.":"A lista branca será desativada. Por favor confirme.",Writeable:Qrt,additionally:ent,"after authentication":"após autenticação",authentication:tnt,background:rnt,background_image:nnt,basic_authentication:ont,basic_authentication_info:ant,built_in:int,button_title:snt,button_title2:cnt,cache:lnt,certificates:unt,chained_certificate:dnt,color:pnt,custom_cors_settings:fnt,defaultRedirect:hnt,delete:"excluir",disable_default:mnt,disable_extensions:_nt,disable_files:gnt,disable_objects:ynt,disable_states:vnt,domain_name:bnt,encryption:wnt,file:Snt,forceWebSockets_info:xnt,"in seconds":"em segundos",included:knt,incorrect_ip:Cnt,legacy_authentication:$nt,legacy_authentication_info:Ent,link:Tnt,list:Ont,"logged in user":"usuário logado",main_settings:Dnt,modal_title:Rnt,nothing:Mnt,oauth2_authentication:Ant,object:Nnt,"only for this instance":"apenas para esta instância",open_ip:Pnt,place_the_files_here:Int,port:jnt,private_certificate:znt,public_certificate:Lnt,renew_certificates:Fnt,reset_cors_settings:Bnt,rootPath:Wnt,rootPath_hint:Unt,set_certificates:qnt,show_admin_instances:Hnt,show_folders:Vnt,simple_api:Gnt,socket:Xnt,staticAssetCacheMaxAge:Jnt,status:Ynt,time_out:Knt,to_create:Znt,to_read:Qnt,upload_image:eot,usePureWebSockets:tot,usePureWebSockets_info:rot,use_certificates:not,use_lets:oot,user:aot,users:iot,warning_incorrectly:sot,web_sockets:cot,whiteList:lot,whitelist_only_with_integrated_socket:uot,write:dot},fot="Verificatie was gedeactiveerd",hot="Annuleren",mot="Gewoon",_ot="Groepen",got="Taal",yot="OK",vot="Leesbaar",bot="Lijst met gebruikerstoegang",wot="Gebruikers",Sot="Waarschuwing!",xot="Beschrijfbaar",kot="Geavanceerd",Cot="Authenticatie",$ot="Achtergrond",Eot="Achtergrond afbeelding",Tot="Basisverificatie",Oot="U kunt basic-authenticatie voor de webserver inschakelen. Dit wordt aanvullend op OAuth2 en aangepaste tokenauthenticaties ingeschakeld.",Dot="geïntegreerde",Rot="Schakel verificatie uit",Mot="Negeer waarschuwing",Aot="Cache",Not="Let's Encrypt certificaten",Pot="Geketend certificaat",Iot="Achtergrondkleur van het inlogscherm",jot="Aangepaste CORS-instellingen",zot="Standaard omleidingspad",Lot="Schakel standaardfuncties uit",Fot="Verwerking van extensies uitschakelen",Bot="Serveer geen webbestanden vanuit objectDB",Wot="Bezorging van objecten uitschakelen (/object/)",Uot="Schakel statussen en socketinformatie uit",qot="Poort om het domein te controleren",Hot="Secure (HTTPS)",Vot="het dossier",Got="Socket.io ondersteunt verschillende communicatiemethoden: web socket en long-polling. Door deze vlag te activeren, kunt u socket.io dwingen om alleen via web sockets te communiceren.",Xot="Ingeschakeld",Jot="Het opgegeven IP-adres is niet geldig",Yot="Oude authenticatiemethode",Kot="De webserver ondersteunt OAuth2-authenticatie en authenticatie met een aangepast token in een cookie.\\nHier kunt u aangeven dat de inlogpagina moet authenticeren met een aangepast cookie (verouderd) en niet via OAuth2.\\nDat kan vereist zijn voor adapters van derden.",Zot="Klik voor hulp",Qot="lijst",eat="Belangrijkste instellingen",tat="Het wachtwoord wordt verzonden via onbeveiligde verbinding. Ter beveiliging van uw wachtwoorden schakelt u de beveiligde verbinding (HTTPS) in!",rat="geen",nat="OAuth2-authenticatie (bèta)",oat="voorwerp",aat="Luister op alle IP's",iat="plaats de bestanden hier",sat="Haven",cat="Privé certificaat",lat="Openbaar certificaat",uat="Gebruik deze instantie voor automatische update",dat="CORS-instellingen instellen op standaard",pat="Root-pad",fat="Openbaar URL-padprefix wanneer web achter een reverse proxy draait (bijv. /web/). Wordt gebruikt voor WebSocket-verbindingen. Laat leeg als web direct op het domein wordt benaderd.",hat="Stel certificaten in of laad het eerst in de systeeminstellingen (rechtsboven).",mat="Niet-webinstanties weergeven",_at="Inhoud van mappen weergeven",gat="Ingebouwde 'Simple-API'",yat="Socket.IO Instance (Optional): (Gebruikt door adapters zoals riksja of vis)",vat="Cache max leeftijd voor bestanden",bat="staat",wat="Aanmeld-time-out (sec)",Sat="creëren",xat="lezen",kat="Afbeelding uploaden",Cat="Gebruik pure web-sockets (iobroker.ws)",$at="U kunt hier selecteren of socket.io-bibliotheek of native web-sockets worden gebruikt voor communicatie. Wij raden aan om deze vlag te activeren.",Eat="Gebruik Let's Encrypt-certificaten",Tat="Gebruik Lets Encrypt enscenering (voor testen)",Oat="Gebruiker",Dat="Rennen als",Rat="Waarschuwing: het onjuist uitschakelen van het gebruik van functies kan onverwacht gedrag veroorzaken.",Mat="Force Web-Sockets",Aat="Toegangslijst",Nat="Witte lijst werkt alleen met geïntegreerde socket-io-interface",Pat="wrire",Iat={Authentication_deactivated:fot,"CORS-settings":"CORS-instellingen","Cache options":"Cache-opties",Cancel:hot,Common:mot,"Compatibility mode with socket.io@2.x":"Compatibiliteitsmodus met socket.io@2.x","Do not check if this instance is available from internet":"Controleer niet of dit exemplaar beschikbaar is via internet","Group members:":"Groepsleden:",Groups:_ot,"IP address":"Gebonden IP-adres","If no IP address matches, show authentication dialog":"Als geen IP-adres overeenkomt, verificatiedialoogvenster weergeven","In groups:":"In groepen:",Language:got,Ok:yot,"Only following users may access web interface as":"Alleen de volgende gebruikers hebben toegang tot de webinterface als","Overload system language":"Systeemtaal overbelasten",Readable:vot,"Redirect options":"Omleidingsopties","Same settings must be set in socketio instance":"Dezelfde instellingen moeten worden ingesteld in de socketio-instantie","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API werkt nu als Web-Extension. Maak een instance en voer daar instellingen uit.","System language":"Systeemtaal","This path will be opened if no path specified":"Dit pad wordt geopend als er geen URL-pad is opgegeven","Use %s adapter to get letsencrypt certificates.":"Gebruik %s adapter om letsencrypt-certificaten te verkrijgen.",UserList:bot,Users:wot,Warning:Sot,"White list will be disabled. Please confirm.":"Witte lijst wordt uitgeschakeld. Bevestig alstublieft.",Writeable:xot,additionally:kot,"after authentication":"na authenticatie",authentication:Cot,background:$ot,background_image:Eot,basic_authentication:Tot,basic_authentication_info:Oot,built_in:Dot,button_title:Rot,button_title2:Mot,cache:Aot,certificates:Not,chained_certificate:Pot,color:Iot,custom_cors_settings:jot,defaultRedirect:zot,delete:"verwijderen",disable_default:Lot,disable_extensions:Fot,disable_files:Bot,disable_objects:Wot,disable_states:Uot,domain_name:qot,encryption:Hot,file:Vot,forceWebSockets_info:Got,"in seconds":"in seconden",included:Xot,incorrect_ip:Jot,legacy_authentication:Yot,legacy_authentication_info:Kot,link:Zot,list:Qot,"logged in user":"ingelogde gebruiker",main_settings:eat,modal_title:tat,nothing:rat,oauth2_authentication:nat,object:oat,"only for this instance":"alleen voor dit geval",open_ip:aat,place_the_files_here:iat,port:sat,private_certificate:cat,public_certificate:lat,renew_certificates:uat,reset_cors_settings:dat,rootPath:pat,rootPath_hint:fat,set_certificates:hat,show_admin_instances:mat,show_folders:_at,simple_api:gat,socket:yat,staticAssetCacheMaxAge:vat,status:bat,time_out:wat,to_create:Sat,to_read:xat,upload_image:kat,usePureWebSockets:Cat,usePureWebSockets_info:$at,use_certificates:Eat,use_lets:Tat,user:Oat,users:Dat,warning_incorrectly:Rat,web_sockets:Mat,whiteList:Aat,whitelist_only_with_integrated_socket:Nat,write:Pat},jat="L'authentification a été désactivée",zat="Annuler",Lat="Commun",Fat="Groupes",Bat="Langue",Wat="D'accord",Uat="Lisible",qat="Liste d'accès des utilisateurs",Hat="Utilisateurs",Vat="Attention!",Gat="Inscriptible",Xat="Avancée",Jat="Authentification",Yat="Contexte",Kat="Image de fond",Zat="Authentification de base",Qat="Vous pouvez activer l'authentification de Basic pour le serveur Web. Elle sera activée en plus des authentifications OAuth2 et des jetons personnalisés.",eit="intégré",tit="Désactiver l'authentification",rit="Ignorer l'avertissement",nit="Cache",oit="Let's Encrypt Certificats",ait="Certificat chaîné",iit="Couleur d'arrière-plan de l'écran de connexion",sit="Paramètres CORS personnalisés",cit="Chemin de redirection par défaut",lit="Désactiver les fonctions par défaut",uit="Désactivez la gestion des extensions",dit="Ne diffusez pas de fichiers Web depuis objectDB",pit="Désactiver la livraison des objets (/object/)",fit="Désactivez les états et les informations de socket",hit="Port pour vérifier le domaine",mit="Sécurisé (HTTPS)",_it="fichier",git="Socket.io prend en charge différents modes de communication : socket Web et interrogation longue. En activant cette option, vous pouvez forcer socket.io à communiquer uniquement via des sockets Web.",yit="Activée",vit="L'adresse IP fournie n'est pas valide",bit="Méthode d'authentification héritée",wit="Le serveur Web prend en charge l'authentification OAuth2 et l'authentification avec un jeton personnalisé dans le cookie.\\nIci, vous pouvez dire que la page de connexion doit s'authentifier avec un cookie personnalisé (hérité) et non via OAuth2.\\nCela peut être nécessaire pour les adaptateurs tiers.",Sit="Cliquez pour obtenir de l'aide",xit="liste",kit="Réglages principaux",Cit="Le mot de passe sera envoyé via une connexion non sécurisée. Pour protéger vos mots de passe, activez la connexion sécurisée (HTTPS)!",$it="aucun",Eit="Authentification OAuth2 (version bêta)",Tit="objet",Oit="Écoutez sur toutes les adresses IP",Dit="Placez les fichiers ici",Rit="Port",Mit="Certificat privé",Ait="Certificat public",Nit="Utilisez cette instance pour la mise à jour automatique",Pit="Définir les paramètres CORS par défaut",Iit="Chemin racine",jit="Préfixe de chemin URL public lorsque web est servi derrière un proxy inverse (p. ex. /web/). Utilisé pour les connexions WebSocket. Laisser vide si web est accessible à la racine du domaine.",zit="Définissez des certificats ou chargez-les d'abord dans les paramètres du système (en haut à droite).",Lit="Afficher les instances non Web",Fit="Afficher le contenu des dossiers",Bit="Construire 'Simple-API'",Wit="Socket.IO Instance (Optional): (Utilisé par des adaptateurs comme le pousse-pousse ou vis)",Uit="Âge maximum du cache pour les fichiers",qit="Etat",Hit="Délai d'attente de connexion (sec)",Vit="créer",Git="lis",Xit="Importer une image",Jit="Utilisez des sockets Web purs (iobroker.ws)",Yit="Vous pouvez sélectionner ici si la bibliothèque socket.io ou les sockets Web natifs seront utilisés pour la communication. Nous vous suggérons d'activer cette option.",Kit="Utiliser les certificats Let's Encrypt",Zit="Utiliser la mise en scène Lets Encrypt (pour les tests)",Qit="Utilisateur",est="Courir comme",tst="Avertissement: la désactivation incorrecte de l'utilisation des fonctions peut provoquer un comportement inattendu.",rst="Forcer les Web-Sockets",nst="Liste d'accès",ost="La liste blanche ne fonctionne qu'avec l'interface socket-io intégrée",ast="écrire",ist={Authentication_deactivated:jat,"CORS-settings":"Paramètres CORS","Cache options":"Options de cache",Cancel:zat,Common:Lat,"Compatibility mode with socket.io@2.x":"Mode de compatibilité avec socket.io@2.x","Do not check if this instance is available from internet":"Ne vérifiez pas si cette instance est disponible sur Internet","Group members:":"Les membres du groupe:",Groups:Fat,"IP address":"Adresse IP liée","If no IP address matches, show authentication dialog":"Si aucune adresse IP ne correspond, affichez la boîte de dialogue d'authentification","In groups:":"En groupes:",Language:Bat,Ok:Wat,"Only following users may access web interface as":"Seuls les utilisateurs suivants peuvent accéder à l'interface Web en tant que","Overload system language":"Surcharger la langue du système",Readable:Uat,"Redirect options":"Options de redirection","Same settings must be set in socketio instance":"Les mêmes paramètres doivent être définis dans l'instance socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"L'API simple fonctionne désormais comme une extension Web. Veuillez créer une instance et y effectuer les réglages.","System language":"Langue du système","This path will be opened if no path specified":"Ce chemin sera ouvert si aucun chemin URL spécifié","Use %s adapter to get letsencrypt certificates.":"Utilisez l'adaptateur %s pour obtenir les certificats Letsencrypt.",UserList:qat,Users:Hat,Warning:Vat,"White list will be disabled. Please confirm.":"La liste blanche sera désactivée. Veuillez confirmer.",Writeable:Gat,additionally:Xat,"after authentication":"après authentification",authentication:Jat,background:Yat,background_image:Kat,basic_authentication:Zat,basic_authentication_info:Qat,built_in:eit,button_title:tit,button_title2:rit,cache:nit,certificates:oit,chained_certificate:ait,color:iit,custom_cors_settings:sit,defaultRedirect:cit,delete:"effacer",disable_default:lit,disable_extensions:uit,disable_files:dit,disable_objects:pit,disable_states:fit,domain_name:hit,encryption:mit,file:_it,forceWebSockets_info:git,"in seconds":"en secondes",included:yit,incorrect_ip:vit,legacy_authentication:bit,legacy_authentication_info:wit,link:Sit,list:xit,"logged in user":"utilisateur connecté",main_settings:kit,modal_title:Cit,nothing:$it,oauth2_authentication:Eit,object:Tit,"only for this instance":"uniquement pour ce cas",open_ip:Oit,place_the_files_here:Dit,port:Rit,private_certificate:Mit,public_certificate:Ait,renew_certificates:Nit,reset_cors_settings:Pit,rootPath:Iit,rootPath_hint:jit,set_certificates:zit,show_admin_instances:Lit,show_folders:Fit,simple_api:Bit,socket:Wit,staticAssetCacheMaxAge:Uit,status:qit,time_out:Hit,to_create:Vit,to_read:Git,upload_image:Xit,usePureWebSockets:Jit,usePureWebSockets_info:Yit,use_certificates:Kit,use_lets:Zit,user:Qit,users:est,warning_incorrectly:tst,web_sockets:rst,whiteList:nst,whitelist_only_with_integrated_socket:ost,write:ast},sst="L'autenticazione è stata disattivata",cst="Annulla",lst="Comune",ust="Gruppi",dst="Lingua",pst="Ok",fst="Leggibile",hst="Elenco di accesso degli utenti",mst="Utenti",_st="Avvertimento!",gst="Scrivibile",yst="Avanzate",vst="Autenticazione",bst="Sfondo",wst="Immagine di sfondo",Sst="Autenticazione di base",xst="Puoi abilitare l'autenticazione di Basic per il server web. Sarà abilitata in aggiunta alle autenticazioni OAuth2 e token personalizzate.",kst="integrato",Cst="Disabilitare l'autenticazione",$st="Ignora l'avviso",Est="nascondiglio",Tst="Let's Encrypt certificati",Ost="Certificato incatenato",Dst="Colore di sfondo della schermata di accesso",Rst="Impostazioni CORS personalizzate",Mst="Percorso di reindirizzamento predefinito",Ast="Disabilita le funzioni predefinite",Nst="Disabilita la gestione delle estensioni",Pst="Non servire file web da objectDB",Ist="Disabilita la consegna degli oggetti (/object/)",jst="Disabilita stati e informazioni socket",zst="Porta per controllare il dominio",Lst="Sicuro (HTTPS)",Fst="file",Bst="Socket.io supporta diversi modi di comunicazione: web socket e long-polling. Attivando questo flag, puoi forzare socket.io a comunicare solo tramite web socket.",Wst="Abilitato",Ust="L'IP fornito non è valido",qst="Metodo di autenticazione legacy",Hst="Il server Web supporta l'autenticazione OAuth2 e l'autenticazione con token personalizzato nel cookie.\\nQui è possibile stabilire che la pagina di accesso debba essere autenticata con cookie personalizzato (legacy) e non tramite OAuth2.\\nPotrebbe essere necessario per adattatori di terze parti.",Vst="Fai clic per chiedere aiuto",Gst="elenco",Xst="Impostazioni principali",Jst="La password verrà inviata tramite connessione non protetta. Per proteggere le tue password abilita la connessione sicura (HTTPS)!",Yst="nessuna",Kst="Autenticazione OAuth2 (Beta)",Zst="oggetto",Qst="Ascolta su tutti gli IP",ect="posiziona i file qui",tct="Porta",rct="Certificato privato",nct="Certificato pubblico",oct="Utilizza questa istanza per l'aggiornamento automatico",act="Imposta le impostazioni CORS come predefinite",ict="Percorso root",sct="Prefisso del percorso URL pubblico quando web è servito dietro un reverse proxy (ad es. /web/). Utilizzato per le connessioni WebSocket. Lasciare vuoto se web è accessibile dalla radice del dominio.",cct="Imposta i certificati o caricali prima nelle impostazioni di sistema (in alto a destra).",lct="Mostra istanze non web",uct="Mostra il contenuto delle cartelle",dct="Build-in 'Simple-API'",pct="Socket.IO Instance (Optional): (Utilizzato da adattatori come risciò o vis)",fct="Età massima della cache per i file",hct="stato",mct="Timeout di accesso (sec)",_ct="creare",gct="leggere",yct="Carica immagine",vct="Usa socket web puri (iobroker.ws)",bct="Qui puoi selezionare se per la comunicazione verranno usati la libreria socket.io o i web-socket nativi. Ti consigliamo di attivare questo flag.",wct="Utilizza Let's Encrypt certificates",Sct="Usa Lets Encrypt staging (per test)",xct="Utente",kct="Correre come",Cct="Avvertenza: la disabilitazione errata dell'uso delle funzioni può causare comportamenti imprevisti.",$ct="Force Web-Sockets",Ect="Elenco di accesso",Tct="La lista bianca funziona solo con l'interfaccia socket-io integrata",Oct="wrire",Dct={Authentication_deactivated:sst,"CORS-settings":"Impostazioni CORS","Cache options":"Opzioni della cache",Cancel:cst,Common:lst,"Compatibility mode with socket.io@2.x":"Modalità di compatibilità con socket.io@2.x","Do not check if this instance is available from internet":"Non verificare se questa istanza è disponibile da Internet","Group members:":"Membri del gruppo:",Groups:ust,"IP address":"Indirizzo IP associato","If no IP address matches, show authentication dialog":"Se nessun indirizzo IP corrisponde, mostra la finestra di autenticazione","In groups:":"In gruppi:",Language:dst,Ok:pst,"Only following users may access web interface as":"Solo i seguenti utenti possono accedere all'interfaccia web come","Overload system language":"Sovraccarica la lingua del sistema",Readable:fst,"Redirect options":"Opzioni di reindirizzamento","Same settings must be set in socketio instance":"Le stesse impostazioni devono essere impostate nell'istanza socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API ora funziona come Web-Extension. Crea un'istanza e imposta lì le impostazioni.","System language":"Linguaggio di sistema","This path will be opened if no path specified":"Questo percorso verrà aperto se non viene specificato alcun percorso URL","Use %s adapter to get letsencrypt certificates.":"Usa l'adattatore %s per ottenere i certificati letsencrypt.",UserList:hst,Users:mst,Warning:_st,"White list will be disabled. Please confirm.":"La lista bianca sarà disabilitata. Si prega di confermare.",Writeable:gst,additionally:yst,"after authentication":"dopo l'autenticazione",authentication:vst,background:bst,background_image:wst,basic_authentication:Sst,basic_authentication_info:xst,built_in:kst,button_title:Cst,button_title2:$st,cache:Est,certificates:Tst,chained_certificate:Ost,color:Dst,custom_cors_settings:Rst,defaultRedirect:Mst,delete:"Elimina",disable_default:Ast,disable_extensions:Nst,disable_files:Pst,disable_objects:Ist,disable_states:jst,domain_name:zst,encryption:Lst,file:Fst,forceWebSockets_info:Bst,"in seconds":"in secondi",included:Wst,incorrect_ip:Ust,legacy_authentication:qst,legacy_authentication_info:Hst,link:Vst,list:Gst,"logged in user":"utente registrato",main_settings:Xst,modal_title:Jst,nothing:Yst,oauth2_authentication:Kst,object:Zst,"only for this instance":"solo per questo caso",open_ip:Qst,place_the_files_here:ect,port:tct,private_certificate:rct,public_certificate:nct,renew_certificates:oct,reset_cors_settings:act,rootPath:ict,rootPath_hint:sct,set_certificates:cct,show_admin_instances:lct,show_folders:uct,simple_api:dct,socket:pct,staticAssetCacheMaxAge:fct,status:hct,time_out:mct,to_create:_ct,to_read:gct,upload_image:yct,usePureWebSockets:vct,usePureWebSockets_info:bct,use_certificates:wct,use_lets:Sct,user:xct,users:kct,warning_incorrectly:Cct,web_sockets:$ct,whiteList:Ect,whitelist_only_with_integrated_socket:Tct,write:Oct},Rct="La autenticación fue desactivada",Mct="Cancelar",Act="Común",Nct="Grupos",Pct="Idioma",Ict="OK",jct="Legible",zct="Lista de acceso de usuarios",Lct="Usuarios",Fct="¡Advertencia!",Bct="Escribible",Wct="Avanzado",Uct="Autenticación",qct="Fondo",Hct="Imagen de fondo",Vct="Autenticación básica",Gct="Puede habilitar la autenticación Basic para el servidor web. Se habilitará además de las autenticaciones con tokens personalizados y OAuth2.",Xct="integrado",Jct="Deshabilitar autenticación",Yct="Ignorar advertencia",Kct="Cache",Zct="Let's Encrypt Certificados",Qct="Certificado encadenado",elt="Color de fondo de la pantalla de inicio de sesión",tlt="Configuraciones CORS personalizadas",rlt="Ruta de redirección predeterminada",nlt="Deshabilitar funciones predeterminadas",olt="Deshabilitar el manejo de extensiones",alt="No sirva archivos web desde objectDB",ilt="Deshabilitar la entrega de objetos (/object/)",slt="Deshabilitar estados e información de socket",clt="Puerto para verificar el dominio",llt="Seguro (HTTPS)",ult="archivo",dlt="Socket.io admite diferentes formas de comunicación: socket web y sondeo prolongado. Al activar esta opción, puede obligar a socket.io a comunicarse solo a través de sockets web.",plt="Habilitado",flt="El IP proporcionado no es válido",hlt="Método de autenticación heredado",mlt="El servidor web admite la autenticación OAuth2 y la autenticación con token personalizado en cookie.\\nAquí puede decir que la página de inicio de sesión debe autenticarse con una cookie personalizada (heredada) y no a través de OAuth2.\\nEso podría ser necesario para adaptadores de terceros.",_lt="Haz clic para obtener ayuda",glt="lista",ylt="Ajustes principales",vlt="La contraseña se enviará a través de una conexión no segura. Para proteger sus contraseñas, ¡habilite la conexión segura (HTTPS)!",blt="ninguna",wlt="Autenticación OAuth2 (versión beta)",Slt="objeto",xlt="Escuchar en todas las direcciones IP",klt="coloca los archivos aquí",Clt="Puerto",$lt="Certificado privado",Elt="Certificado público",Tlt="Use esta instancia para la actualización automática",Olt="Establecer la configuración de CORS a la predeterminada",Dlt="Ruta raíz",Rlt="Prefijo de ruta URL pública cuando web se ejecuta detrás de un proxy inverso (p. ej. /web/). Se utiliza para conexiones WebSocket. Déjelo vacío si web se accede desde la raíz del dominio.",Mlt="Establezca certificados o cárguelos primero en la configuración del sistema (arriba a la derecha).",Alt="Mostrar instancias no web",Nlt="Mostrar el contenido de las carpetas",Plt="Build-in 'Simple-API'",Ilt="Socket.IO Instance (Optional): (Utilizado por adaptadores como rickshaw o vis)",jlt="Antigüedad máxima de caché para archivos",zlt="estado",Llt="Tiempo de espera de inicio de sesión (sec)",Flt="crear",Blt="leer",Wlt="Cargar imagen",Ult="Use sockets web puros (iobroker.ws)",qlt="Aquí puede seleccionar si se utilizará la biblioteca socket.io o los web-sockets nativos para la comunicación. Le sugerimos que active esta opción.",Hlt="Utilice los certificados Let's Encrypt",Vlt="Use Lets Encrypt staging (para pruebas)",Glt="Usuario",Xlt="Correr como",Jlt="Advertencia: la desactivación incorrecta del uso de funciones puede provocar un comportamiento inesperado.",Ylt="Force Web-Sockets",Klt="Lista de acceso",Zlt="La lista blanca solo funciona con la interfaz socket-io integrada",Qlt="wrire",eut={Authentication_deactivated:Rct,"CORS-settings":"Configuración de CORS","Cache options":"Opciones de caché",Cancel:Mct,Common:Act,"Compatibility mode with socket.io@2.x":"Modo de compatibilidad con socket.io@2.x","Do not check if this instance is available from internet":"No verifique si esta instancia está disponible en Internet.","Group members:":"Miembros del grupo:",Groups:Nct,"IP address":"Dirección IP vinculada","If no IP address matches, show authentication dialog":"Si ninguna dirección IP coincide, mostrar el cuadro de diálogo de autenticación","In groups:":"En grupos:",Language:Pct,Ok:Ict,"Only following users may access web interface as":"Sólo los siguientes usuarios pueden acceder a la interfaz web como","Overload system language":"Sobrecargar idioma del sistema",Readable:jct,"Redirect options":"Opciones de redireccionamiento","Same settings must be set in socketio instance":"Se deben establecer las mismas configuraciones en la instancia de socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"La API simple ahora funciona como extensión web. Cree una instancia y configure los ajustes allí.","System language":"Lenguaje del sistema","This path will be opened if no path specified":"Esta ruta se abrirá si no se especifica ninguna ruta URL.","Use %s adapter to get letsencrypt certificates.":"Use el adaptador %s para obtener certificados de letsencrypt.",UserList:zct,Users:Lct,Warning:Fct,"White list will be disabled. Please confirm.":"La lista blanca se desactivará. Por favor confirmar.",Writeable:Bct,additionally:Wct,"after authentication":"después de la autenticación",authentication:Uct,background:qct,background_image:Hct,basic_authentication:Vct,basic_authentication_info:Gct,built_in:Xct,button_title:Jct,button_title2:Yct,cache:Kct,certificates:Zct,chained_certificate:Qct,color:elt,custom_cors_settings:tlt,defaultRedirect:rlt,delete:"borrar",disable_default:nlt,disable_extensions:olt,disable_files:alt,disable_objects:ilt,disable_states:slt,domain_name:clt,encryption:llt,file:ult,forceWebSockets_info:dlt,"in seconds":"en segundos",included:plt,incorrect_ip:flt,legacy_authentication:hlt,legacy_authentication_info:mlt,link:_lt,list:glt,"logged in user":"usuario registrado",main_settings:ylt,modal_title:vlt,nothing:blt,oauth2_authentication:wlt,object:Slt,"only for this instance":"solo para esta instancia",open_ip:xlt,place_the_files_here:klt,port:Clt,private_certificate:$lt,public_certificate:Elt,renew_certificates:Tlt,reset_cors_settings:Olt,rootPath:Dlt,rootPath_hint:Rlt,set_certificates:Mlt,show_admin_instances:Alt,show_folders:Nlt,simple_api:Plt,socket:Ilt,staticAssetCacheMaxAge:jlt,status:zlt,time_out:Llt,to_create:Flt,to_read:Blt,upload_image:Wlt,usePureWebSockets:Ult,usePureWebSockets_info:qlt,use_certificates:Hlt,use_lets:Vlt,user:Glt,users:Xlt,warning_incorrectly:Jlt,web_sockets:Ylt,whiteList:Klt,whitelist_only_with_integrated_socket:Zlt,write:Qlt},tut="Uwierzytelnianie zostało dezaktywowane",rut="Odwołaj",nut="Wspólny",out="Grupy",aut="Język",iut="Ok",sut="Czytelny",cut="Lista dostępu użytkowników",lut="Użytkownicy",uut="Ostrzeżenie!",dut="Zapisywalny",put="Zaawansowane",fut="Poświadczenie",hut="Tło",mut="Zdjęcie w tle",_ut="Uwierzytelnianie podstawowe",gut="Możesz włączyć podstawowe uwierzytelnianie dla serwera WWW. Będzie ono włączone dodatkowo do uwierzytelniania OAuth2 i niestandardowego tokena.",yut="zintegrowany",vut="Wyłącz uwierzytelnianie",but="Zignoruj ​​ostrzeżenie",wut="Pamięć podręczna",Sut="Let's Encrypt certyfikaty",xut="Przykuty certyfikat",kut="Kolor tła ekranu logowania",Cut="Niestandardowe ustawienia CORS",$ut="Domyślna ścieżka przekierowania",Eut="Wyłącz funkcje domyślne",Tut="Wyłącz obsługę rozszerzeń",Out="Nie udostępniaj plików internetowych z objectDB",Dut="Wyłącz dostarczanie obiektów (/object/)",Rut="Wyłącz stany i informacje o gnieździe",Mut="Port do sprawdzenia domeny",Aut="Bezpieczne (HTTPS)",Nut="plik",Put="Socket.io obsługuje różne sposoby komunikacji: web socket i long-polling. Aktywując tę flagę, możesz wymusić na socket.io komunikację tylko przez web socket.",Iut="Włączone",jut="Podany adres IP jest nieprawidłowy",zut="Starsza metoda uwierzytelniania",Lut="Serwer WWW obsługuje uwierzytelnianie OAuth2 oraz uwierzytelnianie za pomocą niestandardowego tokena w pliku cookie.\\nTutaj możesz określić, że strona logowania powinna uwierzytelniać się za pomocą niestandardowego pliku cookie (starsza wersja), a nie za pomocą protokołu OAuth2.\\nMoże to być wymagane w przypadku adapterów innych firm.",Fut="Kliknij, aby uzyskać pomoc",But="lista",Wut="Ustawienia główne",Uut="Hasło zostanie wysłane przez połączenie bez zabezpieczeń. Aby chronić swoje hasła, włącz bezpieczne połączenie (HTTPS)!",qut="Żaden",Hut="Uwierzytelnianie OAuth2 (wersja beta)",Vut="obiekt",Gut="Posłuchaj na wszystkich IP",Xut="umieść pliki tutaj",Jut="Port",Yut="Prywatny certyfikat",Kut="Certyfikat publiczny",Zut="Użyj tej instancji do automatycznej aktualizacji",Qut="Przywróć ustawienia CORS do domyślnych",edt="Ścieżka root",tdt="Publiczny prefiks ścieżki URL, gdy web działa za reverse proxy (np. /web/). Używany dla połączeń WebSocket. Pozostaw puste, jeśli web jest dostępny w korzeniu domeny.",rdt="Ustaw certyfikaty lub załaduj najpierw w ustawieniach systemu (prawy górny).",ndt="Pokaż wystąpienia niebędące stroną internetową",odt="Pokaż zawartość folderów",adt="Wbuduj 'Proste API'",idt="Socket.IO Instance (Optional): (Używany przez adaptery takie jak riksza lub vis)",sdt="Maksymalny wiek dla plików w pamięci podręcznej",cdt="stan",ldt="Limit czasu logowania (s)",udt="Stwórz",ddt="czytać",pdt="Załaduj obrazek",fdt="Używaj czystych gniazd sieciowych (iobroker.ws)",hdt="Możesz wybrać tutaj, czy do komunikacji będzie używana biblioteka socket.io czy natywne web-sockety. Sugerujemy aktywowanie tej flagi.",mdt="Użyj Let's Encrypt certificates",_dt="Użyj Lets Encrypt staging (do testowania)",gdt="Użytkownik",ydt="Uruchom jako",vdt="Ostrzeżenie: Niepoprawne wyłączenie używania funkcji może spowodować nieoczekiwane zachowanie.",bdt="Wymuszaj gniazda internetowe",wdt="Lista dostępu",Sdt="Biała lista działa tylko ze zintegrowanym interfejsem socket-io",xdt="wrire",kdt={Authentication_deactivated:tut,"CORS-settings":"Ustawienia CORS","Cache options":"Opcje pamięci podręcznej",Cancel:rut,Common:nut,"Compatibility mode with socket.io@2.x":"Tryb zgodności z socket.io@2.x","Do not check if this instance is available from internet":"Nie sprawdzaj, czy ta instancja jest dostępna z Internetu","Group members:":"Członkowie grupy:",Groups:out,"IP address":"Powiązany adres IP","If no IP address matches, show authentication dialog":"Jeśli żaden adres IP nie pasuje, pokaż okno uwierzytelniania","In groups:":"W grupach:",Language:aut,Ok:iut,"Only following users may access web interface as":"Tylko następujący użytkownicy mogą uzyskać dostęp do interfejsu internetowego jako","Overload system language":"Przeciążenie języka systemu",Readable:sut,"Redirect options":"Opcje przekierowania","Same settings must be set in socketio instance":"Te same ustawienia muszą być ustawione w instancji socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API działa teraz jako Web-Extension. Proszę utworzyć instancję i dokonać tam ustawień.","System language":"Język systemu","This path will be opened if no path specified":"Ta ścieżka zostanie otwarta, jeśli nie określono ścieżki URL","Use %s adapter to get letsencrypt certificates.":"Użyj adaptera %s, aby uzyskać certyfikaty Letsencrypt.",UserList:cut,Users:lut,Warning:uut,"White list will be disabled. Please confirm.":"Biała lista zostanie wyłączona. Proszę potwierdzić.",Writeable:dut,additionally:put,"after authentication":"po uwierzytelnieniu",authentication:fut,background:hut,background_image:mut,basic_authentication:_ut,basic_authentication_info:gut,built_in:yut,button_title:vut,button_title2:but,cache:wut,certificates:Sut,chained_certificate:xut,color:kut,custom_cors_settings:Cut,defaultRedirect:$ut,delete:"kasować",disable_default:Eut,disable_extensions:Tut,disable_files:Out,disable_objects:Dut,disable_states:Rut,domain_name:Mut,encryption:Aut,file:Nut,forceWebSockets_info:Put,"in seconds":"w sekundy",included:Iut,incorrect_ip:jut,legacy_authentication:zut,legacy_authentication_info:Lut,link:Fut,list:But,"logged in user":"zalogowany użytkownik",main_settings:Wut,modal_title:Uut,nothing:qut,oauth2_authentication:Hut,object:Vut,"only for this instance":"tylko w tym przypadku",open_ip:Gut,place_the_files_here:Xut,port:Jut,private_certificate:Yut,public_certificate:Kut,renew_certificates:Zut,reset_cors_settings:Qut,rootPath:edt,rootPath_hint:tdt,set_certificates:rdt,show_admin_instances:ndt,show_folders:odt,simple_api:adt,socket:idt,staticAssetCacheMaxAge:sdt,status:cdt,time_out:ldt,to_create:udt,to_read:ddt,upload_image:pdt,usePureWebSockets:fdt,usePureWebSockets_info:hdt,use_certificates:mdt,use_lets:_dt,user:gdt,users:ydt,warning_incorrectly:vdt,web_sockets:bdt,whiteList:wdt,whitelist_only_with_integrated_socket:Sdt,write:xdt},Cdt="Автентифікацію було вимкнено",$dt="Скасувати",Edt="Поширений",Tdt="Групи",Odt="Мова",Ddt="В порядку",Rdt="Читабельний",Mdt="Список доступу користувачів",Adt="Користувачі",Ndt="УВАГА!",Pdt="Можливість запису",Idt="Просунутий",jdt="Аутентифікація",zdt="Фон",Ldt="Фонове зображення",Fdt="Базова автентифікація",Bdt="Ви можете ввімкнути Basic-автентифікацію для веб-сервера. Його буде ввімкнено додатково до автентифікації OAuth2 і спеціального маркера.",Wdt="інтегрований",Udt="Вимкнути автентифікацію",qdt="Ігнорувати попередження",Hdt="Кеш",Vdt="Давайте зашифруємо сертифікати",Gdt="Прикутий сертифікат",Xdt="Колір фону екрана входу",Jdt="Спеціальні налаштування CORS",Ydt="Шлях переспрямування за умовчанням",Kdt="Вимкнути функції за замовчуванням",Zdt="Вимкнути обробку розширень",Qdt="Не обслуговуйте веб-файли зі сховища ioBroker",ept="Вимкнути доставку об'єктів (/object/)",tpt="Вимкнути інформацію про стани та сокет",rpt="Порт для перевірки домену",npt="Безпечний (HTTPS)",opt="файл",apt="Socket.io підтримує різні способи зв'язку: веб-сокет і довге опитування. Активувавши цей прапорець, ви можете змусити socket.io спілкуватися лише через веб-сокети.",ipt="Увімкнено",spt="Наданий IP недійсний",cpt="Застарілий метод автентифікації",lpt="Веб-сервер підтримує автентифікацію OAuth2 і автентифікацію за допомогою спеціального маркера в файлі cookie.\\nТут ви можете сказати, що сторінка входу має автентифікуватися за допомогою спеціального файлу cookie (застарілий), а не через OAuth2.\\nЦе може знадобитися для сторонніх адаптерів.",upt="Натисніть для допомоги",dpt="список",ppt="Основні налаштування",fpt="Пароль буде надіслано через незахищене з’єднання. Щоб захистити ваші паролі, увімкніть безпечне з'єднання (HTTPS)!",hpt="немає",mpt="Автентифікація OAuth2 (бета-версія)",_pt="об'єкт",gpt="Прослуховування на всіх IP",ypt="розмістіть файли тут",vpt="Порт",bpt="Приватний сертифікат",wpt="«Публічний» сертифікат",Spt="Використовуйте цей екземпляр для автоматичного оновлення",xpt="Установіть налаштування CORS за замовчуванням",kpt="Кореневий шлях",Cpt="Публічний префікс URL-шляху, коли web працює за зворотним проксі (наприклад, /web/). Використовується для WebSocket-з'єднань. Залиште порожнім, якщо web доступний у корені домену.",$pt="Спершу встановіть сертифікати або завантажте їх у налаштуваннях системи (справа вгорі).",Ept="Показати невеб-екземпляри",Tpt="Показати вміст папок",Opt="Вбудований «Simple-API»",Dpt="Примірник Socket.IO (необов’язково): (використовується такими адаптерами, як rickshaw або vis)",Rpt="Максимальний вік кешу для файлів",Mpt="стан",Apt="Час очікування входу (с)",Npt="створити",Ppt="читати",Ipt="Завантажити зображення",jpt="Використовуйте чисті веб-сокети (iobroker.ws)",zpt="Тут ви можете вибрати, чи використовуватиметься для зв’язку бібліотека socket.io чи рідні веб-сокети. Ми пропонуємо активувати цей прапор.",Lpt="Використовуйте сертифікати Let's Encrypt",Fpt="Використовуйте постановки Lets Encrypt (для тестування/налагодження. Тільки для розробника)",Bpt="Користувач",Wpt="Бігати як",Upt="Попередження: неправильне вимкнення використання функцій може призвести до неочікуваної поведінки.",qpt="Force Web-Sockets",Hpt="Список доступу",Vpt="Білий список працює лише з вбудованим інтерфейсом socket-io",Gpt="писати",Xpt={Authentication_deactivated:Cdt,"CORS-settings":"CORS-налаштування","Cache options":"Параметри кешу",Cancel:$dt,Common:Edt,"Compatibility mode with socket.io@2.x":"Режим сумісності з socket.io@2.x","Do not check if this instance is available from internet":"Не перевіряйте, чи доступний цей екземпляр в Інтернеті","Group members:":"Члени групи:",Groups:Tdt,"IP address":"Прив'язана IP-адреса","If no IP address matches, show authentication dialog":"Якщо жодна IP-адреса не відповідає, відобразити діалогове вікно автентифікації","In groups:":"У групах:",Language:Odt,Ok:Ddt,"Only following users may access web interface as":"Тільки такі користувачі можуть отримати доступ до веб-інтерфейсу як","Overload system language":"Перевантаження системної мови",Readable:Rdt,"Redirect options":"Параметри перенаправлення","Same settings must be set in socketio instance":"Такі ж параметри потрібно встановити в екземплярі socketio","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"Simple API тепер працює як веб-розширення. Створіть екземпляр і задайте там налаштування.","System language":"Системна мова","This path will be opened if no path specified":"Цей шлях буде відкрито, якщо URL-адресу не вказано","Use %s adapter to get letsencrypt certificates.":"Використовуйте адаптер %s, щоб отримати сертифікати letsencrypt.",UserList:Mdt,Users:Adt,Warning:Ndt,"White list will be disabled. Please confirm.":"Білий список буде вимкнено. Будь-ласка підтвердіть.",Writeable:Pdt,additionally:Idt,"after authentication":"після аутентифікації",authentication:jdt,background:zdt,background_image:Ldt,basic_authentication:Fdt,basic_authentication_info:Bdt,built_in:Wdt,button_title:Udt,button_title2:qdt,cache:Hdt,certificates:Vdt,chained_certificate:Gdt,color:Xdt,custom_cors_settings:Jdt,defaultRedirect:Ydt,delete:"видалити",disable_default:Kdt,disable_extensions:Zdt,disable_files:Qdt,disable_objects:ept,disable_states:tpt,domain_name:rpt,encryption:npt,file:opt,forceWebSockets_info:apt,"in seconds":"за секунди",included:ipt,incorrect_ip:spt,legacy_authentication:cpt,legacy_authentication_info:lpt,link:upt,list:dpt,"logged in user":"авторизований користувач",main_settings:ppt,modal_title:fpt,nothing:hpt,oauth2_authentication:mpt,object:_pt,"only for this instance":"тільки для цього випадку",open_ip:gpt,place_the_files_here:ypt,port:vpt,private_certificate:bpt,public_certificate:wpt,renew_certificates:Spt,reset_cors_settings:xpt,rootPath:kpt,rootPath_hint:Cpt,set_certificates:$pt,show_admin_instances:Ept,show_folders:Tpt,simple_api:Opt,socket:Dpt,staticAssetCacheMaxAge:Rpt,status:Mpt,time_out:Apt,to_create:Npt,to_read:Ppt,upload_image:Ipt,usePureWebSockets:jpt,usePureWebSockets_info:zpt,use_certificates:Lpt,use_lets:Fpt,user:Bpt,users:Wpt,warning_incorrectly:Upt,web_sockets:qpt,whiteList:Hpt,whitelist_only_with_integrated_socket:Vpt,write:Gpt},Jpt="身份认证机制已停用",Ypt="取消",Kpt="常见的",Zpt="团体",Qpt="语言",eft="好的",tft="可读性",rft="用户访问列表",nft="用户",oft="警告!",aft="可写",ift="高级",sft="认证机制",cft="背景",lft="背景图片",uft="基本身份验证",dft="您可以为 Web 服务器启用基本身份验证。它将在 OAuth2 和自定义令牌身份验证的基础上额外启用。",pft="集成的",fft="禁用身份认证机制",hft="忽略警告",mft="使能缓存",_ft="Let's Encrypt证书",gft="链式证书",yft="登录界面的背景颜色",vft="自定义 CORS 设置",bft="默认重定向路径",wft="禁用默认功能",Sft="禁用扩展处理:",xft="不要提供来自objectDB的Web文件",kft="禁用对象传递(/object/)",Cft="禁用状态和套接字信息",$ft="自动更新证书使用的端口",Eft="安全访问 (HTTPS)",Tft="文件",Oft="Socket.io 支持不同的通信方式:Web 套接字和长轮询。通过激活此标志,您可以强制 socket.io 仅通过 Web 套接字进行通信。",Dft="使能",Rft="提供的IP无效",Mft="旧式身份验证方法",Aft="Web 服务器支持 OAuth2 身份验证和使用 cookie 中的自定义令牌的身份验证。\\n在这里您可以说登录页面应该使用自定义 cookie(旧式)进行身份验证而不是通过 OAuth2。\\n第三方适配器可能需要这样做。",Nft="单击获取帮助",Pft="可列举",Ift="主要设置",jft="密码将通过不安全的连接发送。 要保护您的密码,请启用安全连接(HTTPS)!",zft="无",Lft="OAuth2 身份验证(测试版)",Fft="对象",Bft="监听所有IP",Wft="将文件拖拽到这里",Uft="端口",qft="私人证书",Hft="公共证书",Vft="自动更新Let's Encrypt证书",Gft="将 CORS 设置设置为默认值",Xft="根路径",Jft="当 web 在反向代理后运行时使用的公共 URL 路径前缀(例如 /web/)。用于 WebSocket 连接。如果 web 在域名根目录下访问,请留空。",Yft="首先在系统设置中(右上角)设置或加载证书。",Kft="显示非 Web 实例",Zft="显示文件夹内容",Qft="内置'Simple-API'",eht="Socket.IO Instance (Optional): (被rickshaw或vis等适配器使用)",tht="文件的缓存最大年龄",rht="状态",nht="登录超时时间(秒)",oht="可创建",aht="可读",iht="上传图片",sht="使用纯网络套接字 (iobroker.ws)",cht="您可以在此处选择是否使用 socket.io 库或本机 web-sockets 进行通信。我们建议激活此标志。",lht="使用Let's Encrypt证书",uht="使用Lets Encrypt暂存(用于测试)",dht="用户",pht="运行为",fht="警告:错误地禁用功能使用会导致意外行为。",hht="强制Web-Sockets",mht="访问列表",_ht="白名单仅适用于集成的 socket-io 接口",ght="可写",yht={Authentication_deactivated:Jpt,"CORS-settings":"CORS 设置","Cache options":"缓存选项",Cancel:Ypt,Common:Kpt,"Compatibility mode with socket.io@2.x":"与 socket.io@2.x 的兼容模式","Do not check if this instance is available from internet":"不检查此实例是否可从 Internet 获取","Group members:":"小组成员:",Groups:Zpt,"IP address":"绑定IP地址","If no IP address matches, show authentication dialog":"如果没有 IP 地址匹配,则显示身份验证对话框","In groups:":"在团队中:",Language:Qpt,Ok:eft,"Only following users may access web interface as":"只有以下用户可以访问 Web 界面:","Overload system language":"重载系统语言",Readable:tft,"Redirect options":"重定向选项","Same settings must be set in socketio instance":"必须在 socketio 实例中设置相同的设置","Simple API is now working as Web-Extension. Please create an instance and make settings there.":"简单 API 现已作为 Web 扩展运行。请创建一个实例并在那里进行设置。","System language":"系统语言","This path will be opened if no path specified":"如果未指定 URL 路径,将打开此路径","Use %s adapter to get letsencrypt certificates.":"使用 %s 适配器获取 letsencrypt 证书。",UserList:rft,Users:nft,Warning:oft,"White list will be disabled. Please confirm.":"白名单将被禁用。请确认。",Writeable:aft,additionally:ift,"after authentication":"认证后",authentication:sft,background:cft,background_image:lft,basic_authentication:uft,basic_authentication_info:dft,built_in:pft,button_title:fft,button_title2:hft,cache:mft,certificates:_ft,chained_certificate:gft,color:yft,custom_cors_settings:vft,defaultRedirect:bft,delete:"可删除",disable_default:wft,disable_extensions:Sft,disable_files:xft,disable_objects:kft,disable_states:Cft,domain_name:$ft,encryption:Eft,file:Tft,forceWebSockets_info:Oft,"in seconds":"片刻之间",included:Dft,incorrect_ip:Rft,legacy_authentication:Mft,legacy_authentication_info:Aft,link:Nft,list:Pft,"logged in user":"登录用户",main_settings:Ift,modal_title:jft,nothing:zft,oauth2_authentication:Lft,object:Fft,"only for this instance":"仅适用于本例",open_ip:Bft,place_the_files_here:Wft,port:Uft,private_certificate:qft,public_certificate:Hft,renew_certificates:Vft,reset_cors_settings:Gft,rootPath:Xft,rootPath_hint:Jft,set_certificates:Yft,show_admin_instances:Kft,show_folders:Zft,simple_api:Qft,socket:eht,staticAssetCacheMaxAge:tht,status:rht,time_out:nht,to_create:oht,to_read:aht,upload_image:iht,usePureWebSockets:sht,usePureWebSockets_info:cht,use_certificates:lht,use_lets:uht,user:dht,users:pht,warning_incorrectly:fht,web_sockets:hht,whiteList:mht,whitelist_only_with_integrated_socket:_ht,write:ght},Kp={tabContent:{padding:10,height:"calc(100% - 64px - 48px - 20px)",overflow:"auto"},tabContentIFrame:{padding:10,height:"calc(100% - 64px - 48px - 20px - 38px)",overflow:"auto"},selected:t=>({color:t.palette.mode==="dark"?void 0:"#FFF !important"}),indicator:t=>({backgroundColor:t.palette.mode==="dark"?t.palette.secondary.main:"#FFF"})},Zp=[{name:"options",translate:"main_settings",index:0},{name:"ipFilter",translate:"whiteList",index:1},{name:"userList",translate:"UserList",index:2},{name:"additionally",translate:"additionally",index:3},{name:"background",translate:"background",index:4},{name:"CORS",translate:"CORS-settings",index:5}];class vht extends Ua{constructor(e){const r={...e};r.encryptedFields=["pass"],r.Connection=$B,r.translations={en:VQe,de:ytt,ru:Wrt,pt:pot,nl:Iat,fr:ist,it:Dct,es:eut,pl:kdt,uk:Xpt,"zh-cn":yht},r.sentryDSN=window.sentryDSN,super(e,r)}getSelectedTab(){const{selectedTab:e}=this.state,r=e;return r?this.checkDisabledTabs(r)?0:Zp.find(n=>n.name===r)?.index||0:0}onPrepareSave(e){super.onPrepareSave(e);const{secure:r,certPublic:n,certPrivate:o}=this.state.native;return r&&(!o||!n)?(this.setState({toast:"set_certificates"}),!1):!0}renderTab(){const{native:e}=this.state;let r=this.state.selectedTab;switch(this.checkDisabledTabs(this.state.selectedTab)&&(r="options"),r){case"ipFilter":return k.jsx(Cc,{theme:this.state.theme,socket:this.socket,native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a),instance:this.instance,adapterName:this.adapterName,themeType:this.state.themeType},"whiteList");case"userList":return k.jsx(wZe,{socket:this.socket,native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a)},"userList");case"additionally":return k.jsx(bZe,{native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a)},"additionally");case"background":return k.jsx(yZe,{socket:this.socket,native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a),instance:this.instance},"background");case"CORS":return k.jsx(SZe,{native:e,onChange:(n,o,a)=>this.updateNativeValue(n,o,a)},"CORS");default:return k.jsx(mZe,{themeType:this.state.themeType,common:this.common||{},socket:this.socket,native:e,instance:this.instance,onChange:(n,o,a)=>this.updateNativeValue(n,o,a),onLoad:n=>this.setState({native:n}),lang:j.getLanguage()},"options")}}checkDisabledTabs(e){const{native:r}=this.state;return!r.auth&&e==="background"||!r.auth&&(e==="ipFilter"||e==="userList")}render(){const{loaded:e,theme:r,themeType:n,toast:o}=this.state;return e?k.jsx(I5,{injectFirst:!0,children:k.jsxs(cx,{theme:this.state.theme,children:[k.jsx(hd,{message:o,onClose:()=>this.setState({toast:""})}),k.jsxs("div",{className:"App",style:{background:r.palette.background.default,color:r.palette.text.primary},children:[k.jsx(mT,{position:"static",children:k.jsx(WT,{value:this.getSelectedTab(),onChange:(a,s)=>this.selectTab(Zp.find(l=>l.index===s)?.name||Zp[0].name,s),scrollButtons:"auto",sx:{"& .MuiTabs-indicator":Kp.indicator},children:Zp.map((a,s)=>k.jsx(Ni,{sx:{"& .MuiTab-selected":Kp.selected},disabled:this.checkDisabledTabs(a.name),label:j.t(a.translate),"data-name":a.name},`${s}-tab-key`))})}),k.jsx("div",{style:this.isIFrame?Kp.tabContentIFrame:Kp.tabContent,children:this.renderTab()}),this.renderError(),this.renderSaveCloseButtons()]})]})}):k.jsx(I5,{injectFirst:!0,children:k.jsx(cx,{theme:this.state.theme,children:k.jsx(U8,{themeType:n})})})}}window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function bht(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const wht="8.0.0",Sht={version:wht};window.adapterName="web";window.sentryDSN="https://5ad729dbed504d15aa8bde423cae9a8e@sentry.iobroker.net/57";console.log(`iobroker.${window.adapterName}@${Sht.version}`);const hE=document.getElementById("root");hE&&$D.createRoot(hE).render(k.jsx(vht,{}));bht()});export default xht(); diff --git a/admin/index_m.html b/admin/index_m.html index b8e1da8c..c7a8fe86 100644 --- a/admin/index_m.html +++ b/admin/index_m.html @@ -20,7 +20,7 @@ /> ioBroker.web - + diff --git a/build/main.d.ts b/build/main.d.ts index e4ae507b..035a9c6a 100644 --- a/build/main.d.ts +++ b/build/main.d.ts @@ -58,6 +58,7 @@ export declare class WebAdapter extends Adapter { resolveLink(link: string, instanceObj: ioBroker.InstanceObject | undefined, instancesMap: Record): string | { [instance: `${string}.${number}`]: string; }; + getSocketPath(): string; getInfoJs(): string; checkUser: (userName: string | undefined, password: string | undefined, cb: (err: Error | null, result?: { logged_in: boolean; diff --git a/build/main.js b/build/main.js index e60f8d32..7b41f8fa 100644 --- a/build/main.js +++ b/build/main.js @@ -905,9 +905,23 @@ class WebAdapter extends adapter_core_1.Adapter { } return result || link; } + getSocketPath() { + let rootPath = (this.config.rootPath || '').trim(); + if (!rootPath || rootPath === '/') { + return ''; + } + if (!rootPath.startsWith('/')) { + rootPath = `/${rootPath}`; + } + if (!rootPath.endsWith('/')) { + rootPath += '/'; + } + return rootPath; + } getInfoJs() { const result = [ `var socketUrl = "${this.socketUrl}";`, + `var socketPath = "${this.getSocketPath()}";`, `var socketSession = "";`, `window._authIoBroker = ${this.config.auth};`, `window.sysLang = "${this.lang}";`, diff --git a/build/main.js.map b/build/main.js.map index 05e7f574..6043ac35 100644 --- a/build/main.js.map +++ b/build/main.js.map @@ -1 +1 @@ -{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;AAyUA,sCAeC;AAtVD,qCAAmD;AACnD,yCAAqD;AAErD,sEAAsC;AACtC,sDAAgG;AAChG,2CAAoC;AACpC,8DAAsC;AACtC,wEAAyC;AACzC,kEAAyC;AACzC,8DAAqC;AACrC,wDAAgC;AAChC,mDAA2D;AAC3D,kEAAkC;AAElC,yDAAqG,CAAC,2BAA2B;AAGjI,mDAAmF;AAGnF,mCAAgC;AAChC,uCAA0C;AAE1C,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAGrC,MAAM,UAAU,GAAG,mBAAmB,CAAC;AACvC,MAAM,MAAM,GAAG,QAAQ,CAAC;AACxB,MAAM,eAAe,GAAG,qBAAqB,CAAC,CAAC,aAAa;AAE5D,kFAAkF;AAClF,MAAM,eAAe,GAAG,SAAS,CAAC;AAClC,SAAS,UAAU,CAAC,GAAW;IAC3B,MAAM,IAAI,GAAG,GAAG,GAAG,EAAE,CAAC;IACtB,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEzC,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,MAAM,CAAC;IACX,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,IAAI,KAAK,CAAC;IACV,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,KAAK,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACrD,QAAQ,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,QAAQ,CAAC;gBAClB,MAAM;YACV,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,OAAO,CAAC;gBACjB,MAAM;YACV,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,OAAO,CAAC;gBACjB,MAAM;YACV,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,MAAM,CAAC;gBAChB,MAAM;YACV,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,MAAM,CAAC;gBAChB,MAAM;YACV;gBACI,SAAS;QACjB,CAAC;QAED,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;YACtB,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC7C,CAAC;QAED,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;QACtB,IAAI,IAAI,MAAM,CAAC;IACnB,CAAC;IAED,OAAO,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAChF,CAAC;AAED,SAAS,UAAU,CAAC,WAAmB,EAAE,GAAwC,EAAE,IAAY,EAAE,IAAY;IACzG,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;QACtB,IAAI,GAAG,QAAQ,CAAC;IACpB,CAAC;IAED,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QACvB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;QACpC,MAAM,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;QACjD,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;SAAM,IAAI,GAAG,EAAE,CAAC;QACb,2CAA2C;QAC3C,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7B,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC;QAED,IAAI,GAAG,GAA0C,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,WAAW,KAAK,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,SAAS,CAAC,EAAE,CAAC;YACxD,GAAG,GAAG,QAAQ,CAAC;QACnB,CAAC;QAED,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YACpB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QACpE,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;gBACrC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,WAAW,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YAC5F,CAAC;iBAAM,CAAC;gBACJ,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YACrF,CAAC;QACL,CAAC;IACL,CAAC;SAAM,CAAC;QACJ,yCAAyC;QACzC,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YACpB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,MAAM,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;gBACrC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,WAAW,GAAG,EAAE,EAAE,CAAC,CAAC;YACvD,CAAC;iBAAM,CAAC;gBACJ,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,EAAE,CAAC,CAAC;YAChD,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,iBAAiB,CACtB,aAA0C,EAC1C,KAAc,EACd,UAAkC,EAClC,gBAAwD,EACxD,SAAgF,EAChF,KAA2D,EAC3D,QAAgB,EAChB,YAAoB,EACpB,IAA8B;IAE9B,IAAI,EAQH,CAAC;IAEF,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACpC,EAAE,GAAG;YACD,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;YAC5B,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YACpC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;SACpC,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,EAAE,GAAG,aAAa,CAAC;IACvB,CAAC;IAED,uBAAuB;IACvB,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;QACrC,OAAO;IACX,CAAC;IAED,IAAI,SAAiB,CAAC;IACtB,qCAAqC;IACrC,IAAI,EAAE,CAAC,UAAU,IAAI,OAAO,EAAE,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;QACrD,IAAI,UAAU,CAAC,MAAM,CAAC,UAAU,IAAI,OAAO,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,QAAQ,EAAE,CAAC;YAClG,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,IAAc,CAAC;QAC3E,CAAC;aAAM,CAAC;YACJ,SAAS,GAAG,EAAE,CAAC,UAAU,CAAC;QAC9B,CAAC;IACL,CAAC;SAAM,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAC;QAC7C,IAAI,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YAC9B,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;QAC5C,CAAC;aAAM,IAAI,OAAO,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,KAAK,QAAQ,EAAE,CAAC;YACpE,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC;QACtD,CAAC;aAAM,IAAI,OAAO,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,KAAK,QAAQ,EAAE,CAAC;YACpE,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC3D,CAAC;aAAM,CAAC;YACJ,SAAS,GAAG,EAAE,CAAC;QACnB,CAAC;IACL,CAAC;SAAM,IAAI,EAAE,CAAC,SAAS,EAAE,CAAC;QACtB,2CAA2C;QAC3C,SAAS,GAAI,EAAE,CAAC,SAAoB,IAAI,EAAE,CAAC;IAC/C,CAAC;SAAM,CAAC;QACJ,sCAAsC;QACtC,SAAS,GAAG,EAAE,CAAC,IAAI,CAAC;IACxB,CAAC;IACD,IAAI,KAAK,GAIH,EAAE,CAAC;IAET,oCAAoC;IACpC,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAChC,gBAAgB,CAAC,OAAO,CAAC,CAAC,EAAU,EAAQ,EAAE;YAC1C,MAAM,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC,CAAC;YAC1D,MAAM,MAAM,GAAG,IAAA,mBAAW,EAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE;gBACpE,QAAQ;gBACR,oBAAoB;gBACpB,SAAS;gBACT,KAAK;gBACL,aAAa,EAAE,YAAY;aAC9B,CAAC,CAAC;YACH,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAC9D,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;IACP,CAAC;SAAM,CAAC;QACJ,MAAM,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC,CAAC;QACtE,KAAK,GAAG,IAAA,mBAAW,EAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC,EAAE;YACzG,QAAQ;YACR,oBAAoB;YACpB,SAAS;YACT,KAAK;YACL,aAAa,EAAE,YAAY;SAC9B,CAAC,CAAC;QACH,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,QAAQ,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEpF,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC;YACN,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,GAAG,EAAE,EAAE,CAAC,GAAG;YACX,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI;YAChD,SAAS,EAAE,IAAI,CAAC,GAAG;YACnB,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,GAAG,EAAE,KAAK;YACV,EAAE,EAAE,kBAAkB,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YACtG,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACjE,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,cAAc,CACnB,aAAsF,EACtF,KAAc,EACd,UAAkC,EAClC,gBAAwD,EACxD,SAAgF,EAChF,KAA2D,EAC3D,QAAgB,EAChB,YAAoB,EACpB,IAA8B;IAE9B,IAAI,aAAa,EAAE,CAAC;QAChB,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,IAAI,EAA+B,CAAC;gBACpC,IAAI,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;oBACvC,EAAE,GAAG;wBACD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAW;wBAChC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;wBAC5B,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;wBACpC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;qBACpC,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;gBAC1B,CAAC;gBACD,iBAAiB,CACb,EAAE,EACF,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,IAAI,CACP,CAAC;YACN,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,IAAI,EAA+B,CAAC;YACpC,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;gBACpC,EAAE,GAAG;oBACD,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;oBAC5B,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;oBACpC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;iBACpC,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,EAAE,GAAG,aAAa,CAAC;YACvB,CAAC;YACD,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QAC/G,CAAC;IACL,CAAC;AACL,CAAC;AAED,SAAS,eAAe,CAAC,GAAY;IACjC,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,KAAK,CAAC;IACV,MAAM,IAAI,GAAwB,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;IACjD,2CAA2C;IAE3C,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC;IAE1C,IAAI,MAAM,EAAE,CAAC;QACT,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/B,QAAQ,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACxC,yCAAyC;YACzC,IAAI,QAAQ,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBACjG,QAAQ,GAAG,KAAK,CAAC;YACrB,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,SAAS,iBAAiB,CAAC,GAAwB,EAAE,IAAY;IAC7D,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrB,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,CAAC,EAAE,CAAC;YAC1E,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,GAAG,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IAC3B,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAEM,KAAK,UAAU,aAAa,CAAC,GAAoB,EAAE,OAA4B;IAClF,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,SAAS,CAAC;IAC1C,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAG,eAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,eAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC;QACrB,IAAI,MAAM,GAAG,KAAK,EAAE,CAAC;YACjB,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,mBAAmB,CAA8B,CAAC;YACxE,GAAG,CAAC,IAAI,GAAG,mBAAmB,CAAC;YAC/B,MAAM,GAAG,CAAC;QACd,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,eAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAQD,MAAa,UAAW,SAAQ,sBAAO;IAG3B,SAAS,GAAG,EAAE,CAAC;IACf,YAAY,CAA+B;IAC3C,YAAY,GAAG,EAAE,CAAC;IAElB,SAAS,GAAiB;QAC9B,MAAM,EAAE,IAAI;QACZ,EAAE,EAAE,IAAI;QACR,GAAG,EAAE,IAAI;KACZ,CAAC;IACM,KAAK,GAAiB,IAAI,CAAC;IAC3B,MAAM,GAAG,iBAAiB,CAAC,CAAC,mCAAmC;IAC/D,SAAS,GAAG,EAAE,CAAC;IACN,KAAK,GAA8E,EAAE,CAAC,CAAC,mBAAmB;IACnH,SAAS,GAAG,KAAK,CAAC;IAC1B,kCAAkC;IAC1B,aAAa,GAAG,KAAK,CAAC;IACtB,IAAI,GAAuB,IAAI,CAAC;IACvB,UAAU,GAAoF,EAAE,CAAC;IACjG,UAAU,GAA6D,EAAE,CAAC;IACnF,YAAY,GAAmB,KAAK,CAAC;IAC5B,cAAc,GAG3B,EAAE,CAAC;IACU,YAAY,GAAmC,EAAE,CAAC;IAC3D,SAAS,GAAkB,IAAI,CAAC;IAChC,SAAS,GAAkE,IAAI,CAAC;IAChF,QAAQ,GAAgE,IAAI,CAAC;IAE7E,WAAW,GAAW,EAAE,CAAC;IACzB,WAAW,GAAW,EAAE,CAAC;IAEjC,YAAmB,UAAmC,EAAE;QACpD,KAAK,CAAC;YACF,GAAG,OAAO;YACV,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAC3C,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;YACnC,WAAW,EAAE,CAAC,EAAU,EAAE,KAAwC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,KAAK,CAAC;YACpG,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;YAC3B,YAAY,EAAE,CAAC,EAAU,EAAE,GAAuC,EAAQ,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,GAAG,CAAC;YACzG,UAAU,EAAE,CAAC,EAAU,EAAE,QAAgB,EAAE,IAAmB,EAAQ,EAAE,CACpE,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC;SAC5C,CAAC,CAAC;IACP,CAAC;IAED,cAAc,CAAC,EAAU,EAAE,GAAuC;QAC9D,IAAI,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;YACnD,IAAI,GAAG,EAAE,CAAC;gBACN,IAAI,CAAC,SAAS,CAAC,EAA8B,CAAC,GAAG,GAA2B,CAAC;YACjF,CAAC;iBAAM,CAAC;gBACJ,OAAO,IAAI,CAAC,SAAS,CAAC,EAA8B,CAAC,CAAC;YAC1D,CAAC;QACL,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YACjD,IAAI,GAAG,EAAE,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,EAA6B,CAAC,GAAG,GAA0B,CAAC;YAC9E,CAAC;iBAAM,CAAC;gBACJ,OAAO,IAAI,CAAC,QAAQ,CAAC,EAA6B,CAAC,CAAC;YACxD,CAAC;QACL,CAAC;QAED,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAClC,IACI,GAAG,EAAE,MAAM,EAAE,YAAY;gBACzB,GAAG,CAAC,MAAM;gBACV,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBACpD,GAAG,CAAC,MAAM,CAAC,WAAW,KAAK,GAAG;oBAC9B,GAAG,CAAC,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC,SAAS,CAAC,EAChD,CAAC;gBACC,OAAO,IAAI,CAAC,eAAe,CAAC,kBAAkB,IAAI,CAAC,SAAS,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,CACpF,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAC7D,CAAC;YACN,CAAC;YAED,gCAAgC;YAChC,MAAM,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YACnD,IAAI,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;gBAC5B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC;YAChD,CAAC;iBAAM,IAAI,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChC,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;YAClC,CAAC;QACL,CAAC;QAED,IAAI,GAAG,EAAE,MAAM,EAAE,cAAc,IAAI,GAAG,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACzD,IAAI,CAAC,iBAAiB,CAAC,GAA8B,CAAC,CAAC;QAC3D,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,KAAK,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACjD,KAAK,IAAI,CAAC,YAAY,CAAC,GAA8B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7D,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;YACvD,CAAC,CAAC,CAAC;QACP,CAAC;QAED,gDAAgD;QAChD,IAAI,EAAE,KAAK,eAAe,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YAClD,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,MAAM,EAAE,QAAQ,IAAI,IAAI,CAAC;QAC9C,CAAC;QAED,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,CAAC;YACrB,IAAI,CAAC;gBACD,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,UAAU,CAAC,cAAc,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;YAC1D,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,8BAA8B,CAAC,EAAE,CAAC,CAAC;YACtD,CAAC;QACL,CAAC;QAED,oBAAoB;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5C,IAAI,CAAC;gBACD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,YAAY,KAAK,UAAU,EAAE,CAAC;oBACpE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;gBACxD,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iCAAiC,QAAQ,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YACjF,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,aAAa,CAAC,EAAU,EAAE,KAAwC;QAC9D,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,UAAU,CAAC,aAAa,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;QAEzD,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,QAAQ,EAAE,CAAC;YAC5D,IAAI,IAAI,CAAC,aAAa,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC;gBACtC,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC;gBAClC,KAAK,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;oBAC/C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;gBACvD,CAAC,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QAED,oBAAoB;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5C,IAAI,CAAC;gBACD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,WAAW,KAAK,UAAU,EAAE,CAAC;oBACnE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;gBACzD,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,gCAAgC,QAAQ,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAChF,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,YAAY,CAAC,EAAU,EAAE,QAAgB,EAAE,IAAmB;QAC1D,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,cAAc,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;QAEvD,oBAAoB;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5C,IAAI,CAAC;gBACD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,UAAU,KAAK,UAAU,EAAE,CAAC;oBAClE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;gBACjE,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,+BAA+B,QAAQ,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAC/E,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,SAAS,CAAC,GAAqB;QAC3B,IAAI,GAAG,EAAE,OAAO,KAAK,iBAAiB,EAAE,CAAC;YACrC,IAAI,MAAM,GAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;YAEpE,iBAAiB;YACjB,IAAI,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;gBAC5C,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAClC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;gBACpF,MAAM,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YACnE,CAAC;YAED,iBAAiB;YACjB,IAAI,MAAM,EAAE,CAAC;gBACT,IAAI,CAAC;oBACD,MAAM,GAAG,0BAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;gBAChF,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC;gBACjD,CAAC;YACL,CAAC;YAED,wBAAwB;YACxB,IAAI,IAAI,CAAC,KAAK,IAAI,MAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;gBACvC,IAAI,CAAC,KAAK,CAAC,GAAG,CACV,MAAM,EACN,CACI,KAAmB,EACnB,OAUC,EACG,EAAE;oBACN,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAC/F,CAAC,CACJ,CAAC;YACN,CAAC;iBAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;gBACtB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;YACpF,CAAC;QACL,CAAC;aAAM,IAAI,GAAG,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC;YAC/B,0BAA0B;YAC1B,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,CAAC;gBACrB,mDAAmD;gBACnD,mBAAmB;gBACnB,gBAAgB;gBAChB,WAAW;gBAEX,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,yBAAyB,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACvG,CAAC;QACL,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,QAAoB;QACzB,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACpB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YACrC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QAC7B,CAAC;QAED,IAAI,CAAC;YACD,MAAM,QAAQ,GAA6B,EAAE,CAAC;YAE9C,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACrB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;gBAC9D,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;YACtE,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAC5C,IAAI,CAAC;oBACD,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;wBAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;wBACvD,IAAI,OAAO,YAAY,OAAO,EAAE,CAAC;4BAC7B,QAAQ,CAAC,IAAI,CACT,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,gCAAgC,QAAQ,MAAM,CAAC,EAAE,CAAC,CAAC,CAC1F,CAAC;wBACN,CAAC;oBACL,CAAC;gBACL,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,gCAAgC,QAAQ,MAAM,CAAC,EAAE,CAAC,CAAC;gBACxE,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,IAAI,OAAqC,CAAC;YAC1C,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;gBAClB,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE;oBAC3B,OAAO,GAAG,SAAS,CAAC;oBACpB,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,2CAA2C,CAAC,CAAC;oBAC7D,IAAI,EAAE,GAAG,EAAE,KAAK,CACZ,mBAAmB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CACxF,CAAC;oBACF,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;oBAC5B,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;oBAChC,IAAI,EAAE,GAAG,EAAE,IAAI,CACX,kBAAkB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CACvF,CAAC;oBACF,IAAI,QAAQ,EAAE,CAAC;wBACX,QAAQ,EAAE,CAAC;oBACf,CAAC;gBACL,CAAC,EAAE,GAAG,CAAC,CAAC;YACZ,CAAC;YAED,KAAK,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;iBACrB,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,iCAAiC,CAAC,EAAE,CAAC,CAAC;iBAClE,IAAI,CAAC,GAAG,EAAE;gBACP,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,OAAO,EAAE,CAAC;oBAC9B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;oBAC3B,OAAO,GAAG,IAAI,CAAC;oBACf,IAAI,EAAE,GAAG,EAAE,KAAK,CACZ,mBAAmB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CACxF,CAAC;oBACF,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;oBAC5B,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;oBAChC,IAAI,EAAE,GAAG,EAAE,IAAI,CACX,kBAAkB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CACvF,CAAC;oBACF,IAAI,QAAQ,EAAE,CAAC;wBACX,QAAQ,EAAE,CAAC;oBACf,CAAC;gBACL,CAAC;YACL,CAAC,CAAC,CAAC;QACX,CAAC;QAAC,MAAM,CAAC;YACL,IAAI,QAAQ,EAAE,CAAC;gBACX,QAAQ,EAAE,CAAC;YACf,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO;QACT,sCAAsC;QACtC,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAEvE,IAAI,YAAY,EAAE,CAAC;YACf,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;gBAChC,YAAY,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,IAAI,EAAE,CAAC;gBAChD,MAAM,GAAG,GAAW,MAAM,IAAI,OAAO,CAAS,OAAO,CAAC,EAAE,CACpD,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,IAAkB,EAAE,GAAW,EAAQ,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAC7F,CAAC;gBACF,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBAClC,MAAM,IAAI,CAAC,wBAAwB,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAC9F,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC;YAC7C,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACvD,CAAC;QAED,IAAI,IAAI,GAA2C,IAAI,CAAC;QACxD,IAAI,CAAC;YACD,IAAI,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QAChE,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;QAC5C,CAAC;QACD,IAAI,CAAC,YAAY;YACZ,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,UAAqB;gBACpD,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,IAAK,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAE/E,gDAAgD;QAChD,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACtD,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;YAC1B,qBAAqB;YACrB,MAAM,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC9D,MAAM,IAAI,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,QAAQ,CAAC,CAAC;QAC5E,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;YACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,KAAK,MAAM,CAAC;QAC/C,CAAC;QAED,gBAAgB;QAChB,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACrC,CAAC;aAAM,IAAI,YAAY,EAAE,MAAM,EAAE,CAAC;YAC9B,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC;QACrD,CAAC;QAED,MAAM,mBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAEtC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;IAED,iBAAiB,CAAC,GAA4B;QAC1C,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC;YACf,OAAO;QACX,CAAC;QACD,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;YAC5B,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;gBAC3C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;gBACpC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;gBAC7C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC9F,IAAI,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE,CAAC;oBAC1D,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC9F,CAAC;qBAAM,CAAC;oBACJ,MAAM,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;oBAChD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;wBAC1B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;oBACnE,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC;oBAC9C,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;aAAM,IAAI,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACtC,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACxC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,wBAAwB;QAC1B,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;QACtE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;YACpB,OAAO,EAAE,CAAC;QACd,CAAC;QACD,MAAM,GAAG,GAAG,EAAE,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YACnC,IAAI,QAAQ,EAAE,MAAM,EAAE,CAAC;gBACnB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,uBAAuB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;oBACnE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,GAAG,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;oBACvE,IAAI,KAAK,EAAE,GAAG,EAAE,CAAC;wBACb,4BAA4B;wBAC5B,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;oBACnC,CAAC;gBACL,CAAC;gBAED,IACI,CAAC,IAAI,CAAC,MAAM,CAAC,uBAAuB,IAAI,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;oBAChE,QAAQ,CAAC,MAAM,CAAC,YAAY;oBAC5B,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC,SAAS,IAAI,QAAQ,CAAC,MAAM,CAAC,WAAW,KAAK,GAAG,CAAC,EACzF,CAAC;oBACC,mEAAmE;oBACnE,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;wBAC7D,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;4BACnC,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;gCACvB,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;4BAC3E,CAAC;wBACL,CAAC,CAAC,CAAC;oBACP,CAAC;oBAED,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACvB,CAAC;gBACD,IAAI,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;oBACjC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;gBACrC,CAAC;gBACD,IAAI,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;oBAC/B,gCAAgC;oBAChC,MAAM,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;oBACtE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;gBACrD,CAAC;YACL,CAAC;QACL,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,QAAgB;QAMvC,MAAM,MAAM,GAKR,EAKH,CAAC;QACF,qBAAqB;QACrB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;QAC1E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;QACxE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QAClE,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACvF,kDAAkD;QAClD,MAAM,IAAI,GAA6B,EAAE,CAAC;QAC1C,MAAM,QAAQ,GAAyD,EAAE,CAAC;QAC1E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACrD,CAAC;QACD,MAAM,YAAY,GAA0E,EAAE,CAAC;QAC/F,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACjE,CAAC;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5C,MAAM,GAAG,GAA2B,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAC3D,IAAI,KAAyD,CAAC;YAC9D,IAAI,SAAS,EAAE,IAAI,EAAE,CAAC;gBAClB,KAAK,GAAG,EAAE,CAAC;gBACX,0DAA0D;gBAC1D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC7C,8BAA8B;oBAC9B,MAAM,EAAE,GAAW,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;oBAC9D,IACI,EAAE,KAAK,GAAG,CAAC,GAAG;wBACd,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM;oBAC9B,gGAAgG;sBAClG,CAAC;wBACC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;oBACrC,CAAC;gBACL,CAAC;YACL,CAAC;YAED,IAAI,KAAK,EAAE,MAAM,EAAE,CAAC;gBAChB,sBAAsB;gBACtB,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU,IAAI,OAAO,GAAG,CAAC,MAAM,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;oBACrE,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;wBACvC,IAAI,OAAO,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE,CAAC;4BAClD,IAAI,IAAI,GAAgC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;4BAC5F,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gCAC3B,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC;4BACtC,CAAC;4BACD,iBAAiB,CACb;gCACI,IAAI;gCACJ,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI;gCACtC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;gCAC9D,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;gCAClE,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK;6BAC3C,EACD,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,EACjC,GAAG,EACH,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,IAAI,CAAC,IAAK,EACV,IAAI,CAAC,SAAS,EACd,IAAI,CACP,CAAC;wBACN,CAAC;oBACL,CAAC;gBACL,CAAC;gBAED,IAAI,CAAC;oBACD,cAAc,CACV,GAAG,CAAC,MAAM,CAAC,aAAa,EACxB,KAAK,EACL,GAAG,EACH,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,IAAI,CAAC,IAAK,EACV,IAAI,CAAC,SAAS,EACd,IAAI,CACP,CAAC;oBACF,cAAc,CACV,GAAG,CAAC,MAAM,CAAC,gBAAgB,EAC3B,IAAI,EACJ,GAAG,EACH,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,IAAI,CAAC,IAAK,EACV,IAAI,CAAC,SAAS,EACd,IAAI,CACP,CAAC;gBACN,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sCAAsC,GAAG,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC1E,CAAC;YACL,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,GAAG,SAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,WAAW,CAAC;QAC3E,MAAM,UAAU,GAAG,GAAG,SAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,aAAa,SAAU,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC;QAExG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YACpE,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;gBACrC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAClF,CAAC;iBAAM,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACxB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACrC,IAAI,CAAC,SAA4C,CAAC,GAAG,CAAC,GACnD,IAAI,CAAC,SACR,CAAC,GAAG,CAAC;yBACD,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;yBACvB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAC/B,CAAC,CAAC,CAAC;YACP,CAAC;YACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;gBACxB,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;YACnC,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;gBACtC,2EAA2E;gBAC3E,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACjC,KAAK,CAAC,GAAG,EAAE,CAAC;gBACZ,IAAI,CAAC,GAAG,GAAG,WAAW,KAAK,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACpD,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,4BAA4B;QAC5B,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;YACtB,IAAI,KAAK,GAAG,KAAK,CAAC;YAClB,KAAK,MAAM,EAAE,IAAI,UAAU,EAAE,CAAC;gBAC1B,IAAI,EAAE,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,EAAE,CAAC;oBACzD,KAAK,GAAG,IAAI,CAAC;oBACb,MAAM;gBACV,CAAC;YACL,CAAC;YACD,IAAI,CAAC,KAAK,EAAE,CAAC;gBACT,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC1B,CAAC;QACL,CAAC;QAED,wCAAwC;QACxC,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,KAAK,kBAAkB,CAAC,CAAC;QACvF,IAAI,UAAU,KAAK,CAAC,CAAC,EAAE,CAAC;YACpB,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACrC,CAAC;QAED,uBAAuB;QACvB,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;YAChC,IAAI,OAAO,QAAQ,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;gBACzC,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CACjC,QAAQ,CAAC,SAAS,EAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EACnD,YAAY,CACf,CAAC;YACN,CAAC;YAED,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;gBACjB,gDAAgD;gBAChD,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC;YACnC,CAAC;QACL,CAAC;QAED,oCAAoC;QACpC,oBAAoB;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5C,IAAI,CAAC;gBACD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,WAAW,KAAK,UAAU,EAAE,CAAC;oBACpE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;gBACjE,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,gCAAgC,QAAQ,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAChF,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACrB,MAAM,KAAK,GAAG,CACV,CAAC,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CACvF,CAAC,WAAW,EAAE,CAAC;YAEhB,MAAM,KAAK,GAAG,CACV,CAAC,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CACvF,CAAC,WAAW,EAAE,CAAC;YAEhB,IAAI,CAAC,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBACjD,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;oBAChB,OAAO,CAAC,CAAC;gBACb,CAAC;gBACD,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;oBAChB,OAAO,CAAC,CAAC,CAAC;gBACd,CAAC;gBACD,OAAO,CAAC,CAAC;YACb,CAAC;YACD,IAAI,CAAC,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,OAAO,CAAC,CAAC,CAAC;YACd,CAAC;YACD,IAAI,CAAC,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,OAAO,CAAC,CAAC;YACb,CAAC;YACD,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;gBACpB,OAAO,CAAC,CAAC;YACb,CAAC;YACD,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;gBACpB,OAAO,CAAC,CAAC,CAAC;YACd,CAAC;YACD,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;gBAChB,OAAO,CAAC,CAAC;YACb,CAAC;YACD,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;gBAChB,OAAO,CAAC,CAAC,CAAC;YACd,CAAC;YACD,IAAI,CAAC,CAAC,QAAQ,KAAK,SAAS,IAAI,CAAC,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;gBACvD,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;oBAC1B,OAAO,CAAC,CAAC;gBACb,CAAC;gBACD,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;oBAC1B,OAAO,CAAC,CAAC,CAAC;gBACd,CAAC;YACL,CAAC;YAED,OAAO,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAEjD,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;QAC9B,MAAM,CAAC,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC;QAC7D,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,WAAW,CAAC;QAChF,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;QACzB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAAY;QAC3B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAC1C,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CACpF,CAAC;QAEF,MAAM,KAAK,GAAG;YACV,wBAAwB,MAAM,CAAC,kBAAkB,GAAG;YACpD,iBAAiB,MAAM,CAAC,UAAU,IAAI;YACtC,UAAU,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG;YACjD,WAAW;YACX,qBAAqB,MAAM,CAAC,WAAW,GAAG;SAC7C,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAA,oBAAU,EAAC,GAAG,SAAS,IAAI,MAAM,aAAa,CAAC,EAAE,CAAC;YACtE,OAAO,GAAG,SAAS,IAAI,MAAM,6IAA6I,CAAC;QAC/K,CAAC;QACD,IAAI,CAAC,SAAS,KAAK,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,aAAa,CAAC,CAAC,QAAQ,EAAE,CAAC;QAEhF,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,8BAA8B,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;OAMG;IACH,WAAW,CACP,IAAY,EACZ,WAAgD,EAChD,YAAqD;QAErD,uBAAuB;QACvB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,MAAkD,CAAC;QAEvD,IAAI,IAAI,EAAE,CAAC;YACP,gCAAgC;YAChC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBACxC,4BAA4B;gBAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAEvC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACpD,cAAc;gBACd,IAAI,WAAW,KAAK,QAAQ,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;oBACzD,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;oBACjD,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACtB,CAAC;qBAAM,IAAI,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACrC,oBAAoB;oBACpB,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,YAAY,CAAC,kBAAkB,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;oBAC3F,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACtB,CAAC;YACL,CAAC;YAED,MAAM,KAAK,GAAuD,EAAE,CAAC;YACrE,MAAM,SAAS,GAAwC,EAAE,CAAC;YAE1D,4DAA4D;YAC5D,KAAK,MAAM,WAAW,IAAI,IAAI,EAAE,CAAC;gBAC7B,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;gBAE/E,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAEhE,IAAI,WAAW,EAAE,CAAC;oBACd,wBAAwB;oBACxB,SAAS,CAAC,WAAW,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;yBACjD,GAAG,CAAC,IAAI,CAAC,EAAE,CACR,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,kBAAkB,WAAW,GAAG,CAAC;wBACjD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC;wBACzC,CAAC,CAAC,EAAE,CACX;yBACA,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;oBAE1B,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC;wBACjC,OAAO,SAAS,CAAC,WAAW,CAAC,CAAC;oBAClC,CAAC;yBAAM,CAAC;wBACJ,KAAK,MAAM,QAAQ,IAAI,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC;4BAC5C,KAAK,CAAC,QAAQ,CAAC,GAAG;gCACd,QAAQ;gCACR,IAAI,EAAE,UAAU,CACZ,gBAAgB,EAChB,YAAY,CAAC,kBAAkB,QAAQ,EAAE,CAAC,EAC1C,YAAY,EACZ,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,IAAI,IAAI,CAChC;6BACJ,CAAC;wBACN,CAAC;oBACL,CAAC;gBACL,CAAC;YACL,CAAC;YACD,IAAI,SAAS,EAAE,CAAC;gBACZ,MAAM,GAAG,EAAE,CAAC;gBACZ,IAAI,KAAK,GAAG,CAAC,CAAC;gBACd,IAAI,SAAS,GAAG,EAAE,CAAC;gBACnB,oDAAoD;gBACpD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBAC/B,MAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC;oBACjC,SAAS,GAAG,SAAS,IAAI,GAAG,CAAC,IAAI,CAAC;oBAClC,KAAK,EAAE,CAAC;gBACZ,CAAC,CAAC,CAAC;gBACH,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;oBACZ,IAAI,GAAG,SAAS,CAAC;oBACjB,MAAM,GAAG,SAAS,CAAC;gBACvB,CAAC;YACL,CAAC;QACL,CAAC;QAED,OAAO,MAAM,IAAI,IAAI,CAAC;IAC1B,CAAC;IAED,SAAS;QACL,MAAM,MAAM,GAAG;YACX,oBAAoB,IAAI,CAAC,SAAS,IAAI;YACtC,yBAAyB;YACzB,0BAA0B,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG;YAC7C,qBAAqB,IAAI,CAAC,IAAI,IAAI;YAClC,kCAAkC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,GAAG;SACtF,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;YACpD,IAAI,UAAU,EAAE,CAAC;gBACb,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;oBAC5B,MAAM,CAAC,IAAI,CAAC,UAAU,IAAI,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC3D,CAAC;YACL,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED,SAAS,GAAG,CACR,QAA4B,EAC5B,QAA4B,EAC5B,EAA+E,EAC3E,EAAE;QACN,QAAQ,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;aACtB,QAAQ,EAAE;aACV,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC;aAC7B,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;aACnB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;aACnB,WAAW,EAAE,CAAC;QAEnB,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpE,IAAI,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC;YAC1D,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvC,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,KAAK,EAAE,CAAC;oBACtD,OAAO,GAAG,CAAC,CAAC;gBAChB,CAAC;qBAAM,CAAC;oBACJ,OAAO,GAAG,CAAC,CAAC;gBAChB,CAAC;YACL,CAAC;iBAAM,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;gBAC/C,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,MAAM,EAAE,CAAC;oBACvD,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;gBACpD,CAAC;qBAAM,CAAC;oBACJ,OAAO,GAAG,CAAC,CAAC;gBAChB,CAAC;YACL,CAAC;iBAAM,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;gBAC/C,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,MAAM,EAAE,CAAC;oBACvD,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;gBACpD,CAAC;qBAAM,CAAC;oBACJ,OAAO,GAAG,CAAC,CAAC;gBAChB,CAAC;YACL,CAAC;iBAAM,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,OAAO,EAAE,CAAC;gBAC/D,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;YACrD,CAAC;iBAAM,CAAC;gBACJ,OAAO,GAAG,CAAC,CAAC;YAChB,CAAC;YAED,IAAI,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CACL,IAAI,KAAK,CAAC,iCAAiC,OAAO,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,EAC9F,EAAE,SAAS,EAAE,KAAK,EAAE,CACvB,CAAC;YACN,CAAC;QACL,CAAC;QAED,KAAK,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,IAAI,EAAE,EAAE,CAAC,OAAgB,EAAQ,EAAE;YACzE,IAAI,CAAC,OAAO,EAAE,CAAC;gBACX,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;gBACvE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBAC5C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;YACvC,CAAC;iBAAM,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACnC,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACrC,CAAC;YAED,IAAI,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;YACzD,CAAC;YAED,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,QAAQ;QACJ,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;YACtB,OAAO;QACX,CAAC;QACD,MAAM,YAAY,GAAG,0BAAW,CAAC,OAAO,CAAC,yBAAO,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAEnE,IAAI,CAAC,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAEjD,kBAAQ,CAAC,GAAG,CAAC,IAAI,yBAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;QAEhD,kBAAQ,CAAC,aAAa,CAClB,CAAC,IAAkB,EAAE,IAAqE,EAAQ,EAAE;QAChG,gEAAgE;QAChE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAClC,CAAC;QAEF,kBAAQ,CAAC,eAAe,CACpB,CAAC,cAAsB,EAAE,IAAqD,EAAQ,EAAE,CACpF,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,CACjC,CAAC;QAEF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAA,uBAAY,GAAE,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,EAAE,CAAC,CAAC;QAC1C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,EAAE,CAAC,CAAC;QAE1C,wBAAwB;QACxB,IAAA,8BAAkB,EAAC,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;QAEzG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAClB,IAAA,yBAAO,EAAC;YACJ,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,iBAAiB,EAAE,IAAI;YACvB,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAa,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,cAAc;YAC7G,kCAAkC;YAClC,KAAK,EAAE,IAAI,CAAC,KAAM;SACrB,CAAC,CACL,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,kBAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,kBAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAA,uBAAK,GAAE,CAAC,CAAC;IACpC,CAAC;IAED;;;;;;OAMG;IACH,SAAS,CAAC,GAAY,EAAE,GAAa,EAAE,MAAc;QACjD,MAAM,MAAM,GAA0D,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAE/F,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,+DAA+D,CAAC,CAAC;YAC/E,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC7B,OAAO;QACX,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChD,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;YACpD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC7B,OAAO;QACX,CAAC;QAED,qGAAqG;QACrG,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;QAC5D,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAE/E,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACxD,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QACjD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,eAAe,CAAC,GAAY,EAAE,GAAa,EAAE,IAAyB;QAClE,IACI,IAAI,KAAK,IAAI;YACb,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;YACxC,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,EACnD,CAAC;YACC,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;gBACpB,GAAG,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;gBAC1C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;gBAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBACxC,OAAO;YACX,CAAC;YACD,sDAAsD;YACtD,IACI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;gBACxD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,EACvD,CAAC;gBACC,IAAI,IAAY,CAAC;gBACjB,0BAA0B;gBAC1B,IAAI,IAAA,oBAAU,EAAC,GAAG,SAAS,IAAI,MAAM,eAAe,CAAC,EAAE,CAAC;oBACpD,IAAI,GAAG,GAAG,SAAS,IAAI,MAAM,eAAe,CAAC;gBACjD,CAAC;qBAAM,CAAC;oBACJ,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;oBAClD,IAAI,GAAG,IAAA,gBAAI,EAAC,IAAA,mBAAO,EAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC,CAAC;gBAC1D,CAAC;gBACD,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,IAAI,CAAC,CAAC;YAC3C,CAAC;iBAAM,CAAC;gBACJ,mDAAmD;gBACnD,IAAI,IAAwB,CAAC;gBAC7B,IAAI,CAAC;oBACD,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;oBACjD,IAAI,GAAG,IAAA,gBAAI,EAAC,IAAA,mBAAO,EAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAC;gBACnD,CAAC;gBAAC,MAAM,CAAC;oBACL,SAAS;gBACb,CAAC;gBAED,IAAI,IAAI,IAAI,IAAA,oBAAU,EAAC,IAAI,CAAC,EAAE,CAAC;oBAC3B,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,IAAI,CAAC,CAAC;gBAC3C,CAAC;qBAAM,CAAC;oBACJ,IAAI,CAAC;wBACD,8BAA8B;wBAC9B,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;wBAChD,MAAM,OAAO,GAAG,IAAA,gBAAI,EAAC,IAAA,mBAAO,EAAC,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC;wBAChD,IAAI,IAAA,oBAAU,EAAC,GAAG,OAAO,kBAAkB,CAAC,EAAE,CAAC;4BAC3C,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,GAAG,OAAO,kBAAkB,CAAC,CAAC;wBACnE,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,GAAG,OAAO,cAAc,CAAC,CAAC;wBAC/D,CAAC;oBACL,CAAC;oBAAC,MAAM,CAAC;wBACL,IAAI,CAAC;4BACD,8CAA8C;4BAC9C,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,sBAAsB,CAAC,CAAC;wBACnF,CAAC;wBAAC,OAAO,CAAC,EAAE,CAAC;4BACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6BAA6B,CAAC,EAAE,CAAC,CAAC;4BACjD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;wBAC9B,CAAC;oBACL,CAAC;gBACL,CAAC;YACL,CAAC;YAED,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;gBACpB,GAAG,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;gBAC1C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;gBAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBACxC,OAAO;YACX,CAAC;YACD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;YAC1B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;YACtB,OAAO;QACX,CAAC;QACD,IAAI,EAAE,CAAC;IACX,CAAC;IAED,aAAa,CAAC,GAAqB;QAC/B,MAAM,QAAQ,GACV,OAAO,GAAG,KAAK,QAAQ;YACnB,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QAE5F,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACpB,OAAO,QAAQ,CAAC;QACpB,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;YAChC,uBAAuB;YACvB,IAAI,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,wBAAwB,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;YACvG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;gBAC1D,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,wBAAwB,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;YACzG,CAAC;YAED,IAAI,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;gBAC5E,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,WAAW,EAAE,CAAC,CAAC;gBAC7C,OAAO,WAAW,CAAC;YACvB,CAAC;YACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iBAAiB,QAAQ,yDAAyD,CAAC,CAAC;QACvG,CAAC;QAED,OAAO,EAAE,CAAC;IACd,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,IAAwB;QAC7C,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,OAAO,EAAE,EAAE,CAAC,CAAC;YAC9D,OAAO,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAClE,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,IAAI,IAAI,OAAO,gBAAgB,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,OAAO,EAAE,CAAC;IACd,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,GAAY,EAAE,GAAa;QAChD,MAAM,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7C,MAAM,KAAK,GAAqC,EAAE,CAAC;QACnD,IAAI,MAAM,EAAE,CAAC;YACT,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACpC,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACnC,KAAK,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;gBACtG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC;oBAC9B,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;gBAC5B,CAAC;qBAAM,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC;oBACtC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;gBAC7B,CAAC;YACL,CAAC;QACL,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACnB,4BAA4B;YAC5B,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAClD,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,eAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC;qBAC9E,QAAQ,EAAE;qBACV,KAAK,CAAC,GAAG,CAAC,CAAC;gBAEhB,IAAI,CAAC,SAAS,CACV,IAAI,EACJ,IAAI,EACJ,KAAK,EAAE,IAAkB,EAAE,MAA8C,EAAiB,EAAE;oBACxF,IAAI,MAAM,EAAE,SAAS,EAAE,CAAC;wBACpB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;wBAC7E,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;oBAC/B,CAAC;yBAAM,CAAC;wBACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;oBACpD,CAAC;gBACL,CAAC,CACJ,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;YACpD,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7E,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QAC/B,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAA6B,EAAE,KAA6B;QAC3E,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACtD,MAAM,cAAc,GAChB,GAAG;gBACF,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAyC;gBACjG,SAAS,CAAC;YAEd,IAAI,cAAc,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;gBAC3D,KAAK,KAAK,MAAM,IAAI,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,QAAQ,CAAC,CAAC;gBAC3E,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC;gBAClC,IAAI,KAAK,EAAE,GAAG,EAAE,CAAC;oBACb,IAAI,CAAC,SAAS,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;oBAClD,OAAO;gBACX,CAAC;YACL,CAAC;iBAAM,IAAI,cAAc,EAAE,MAAM,EAAE,OAAO,IAAI,cAAc,CAAC,MAAM,EAAE,CAAC;gBAClE,IAAI,CAAC,SAAS,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;gBAClD,OAAO;YACX,CAAC;QACL,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,IAAY;QAC9B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,IAAI,CAAC,SAAS,yBAAyB,CAAC,CAAC;QAEzG,OAAO,IAAI;aACN,QAAQ,EAAE;aACV,UAAU,CAAC,kBAAkB,EAAE,IAAI,CAAC,YAAY,CAAC;aACjD,UAAU,CAAC,4BAA4B,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;aACvE,UAAU,CAAC,4BAA4B,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;aACvE,UAAU,CAAC,4BAA4B,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,IAAI,EAAE,CAAC;aAClF,UAAU,CACP,4BAA4B,EAC5B,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,iBAAiB,CAAC,CAAC,CAAC,EAAE,CACrF;aACA,UAAU,CAAC,uBAAuB,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;aACnF,UAAU,CAAC,uBAAuB,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;aACnF,UAAU,CAAC,mBAAmB,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;aAChD,UAAU,CAAC,iBAAiB,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACnF,CAAC;IAED,OAAO,CAAC,GAAa,EAAE,QAAgB,EAAE,OAAgB;QACrD,IAAI,CAAC,WAAW;YACZ,IAAI,CAAC,WAAW;gBAChB,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,WAAW,CAAC;qBAC1C,QAAQ,EAAE;qBACV,OAAO,CAAC,oBAAoB,EAAE,mBAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,CAAC;qBACnF,OAAO,CAAC,aAAa,EAAE,mBAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,CAAC;QAExE,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAC3C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAChB,IAAI,CAAC,WAAW,CAAC,OAAO,CACpB,UAAU,EACV,mBAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;YACrD,CAAC,OAAO,IAAI,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CACxE,CACJ,CAAC;IACN,CAAC;IAED,KAAK,CAAC,aAAa;QACf,IAAI,CAAC,uBAAuB,CAAC,eAAe,CAAC,CAAC;QAE9C,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAa,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC;QAElE,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC;QACzB,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;YACjE,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;QACzC,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,mBAAmB,CAAC;QACzE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YACtD,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,eAAe,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QACvE,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACnB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;YAC/B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAA,qBAAW,GAAE,CAAC,CAAC;YAEtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;YAC3C,6CAA6C;YAC7C,6EAA6E;YAC7E,2FAA2F;YAC3F;;;;;cAKE;YAEF,oBAAoB;YACpB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAQ,EAAE,CAC7E,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CACvC,CAAC;YAEF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAY,EAAE,IAAc,EAAE,IAAkB,EAAQ,EAAE;gBAC9E,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;oBAClC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;gBAChE,CAAC;gBACD,IAAI,EAAE,CAAC;YACX,CAAC,CAAC,CAAC;YAEH,4BAA4B;YAC5B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAClB,cAAc,EACd,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAChG,CAAC;YACF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAClB,UAAU,EACV,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAChG,CAAC;YAEF,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;gBACnB,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAEhB;;;;;;;;mBAQG;gBACH,MAAM,YAAY,GAAG,CACjB,GAAY,EACZ,GAAa,EACb,IAAkB,EAClB,QAAgB,EAChB,MAAc,EACV,EAAE;oBACN,kBAAQ,CAAC,YAAY,CACjB,OAAO,EACP,CACI,GAAQ,EACR,IAAkD,EAG9C,EAAE;wBACN,eAAe;wBACf,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;4BAC5C,qBAAqB;4BACrB,MAAM,QAAQ,GAA4B,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;gCAC1E,CAAC,CAAE,IAAI,CAAC,IAAgC;gCACxC,CAAC,CAAC,eAAe,IAAI,CAAC,IAAI,EAAE,CAAC;4BACjC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;4BACf,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gCACxD,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;oCAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC;gCAC1D,CAAC;qCAAM,CAAC;oCACJ,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;gCACzB,CAAC;4BACL,CAAC;iCAAM,CAAC;gCACJ,MAAM,OAAO,GAAuB,IAAI,CAAC,SAAS;oCAC9C,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAW,EAAE,CAClD,IAAI,CAAC,SAAU,CAAC,OAAmC,CAAC;wCAChD,CAAC,CAAC,IAAI,CAAC,SAAU,CACX,OAAmC,CACtC,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;wCACrC,CAAC,CAAC,KAAK,CACd;oCACH,CAAC,CAAC,SAAS,CAAC;gCAChB,IACI,OAAO;oCACP,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CACxC,OAAmC,CACtC,EACH,CAAC;oCACC,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;wCAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC;oCAC1D,CAAC;yCAAM,CAAC;wCACJ,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;oCACzB,CAAC;gCACL,CAAC;4BACL,CAAC;4BACD,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;gCACd,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,QAAQ,0BAA0B,CAAC,CAAC;4BAC9D,CAAC;iCAAM,CAAC;gCACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,QAAQ,gBAAgB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;gCAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;4BAC3D,CAAC;wBACL,CAAC;wBAED,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;4BAChC,IAAI,GAAG,EAAE,CAAC;gCACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;gCAC3C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC;gCACrD,OAAO;4BACX,CAAC;4BACD,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;gCACd,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;gCAChC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC;gCACrD,OAAO;4BACX,CAAC;wBACL,CAAC;6BAAM,CAAC;4BACJ,IAAI,GAAG,EAAE,CAAC;gCACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;gCAC3C,GAAG,CAAC,QAAQ,CAAC,oBAAoB,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;gCAC1E,OAAO;4BACX,CAAC;4BACD,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;gCACd,GAAG,CAAC,QAAQ,CAAC,oBAAoB,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;gCAC1E,OAAO;4BACX,CAAC;wBACL,CAAC;wBAED,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,GAAsB,EAAQ,EAAE;4BACnD,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gCAChC,IAAI,GAAG,EAAE,CAAC;oCACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;oCAC3C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC;oCACrD,OAAO;gCACX,CAAC;4BACL,CAAC;iCAAM,CAAC;gCACJ,IAAI,GAAG,EAAE,CAAC;oCACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;oCAC3C,GAAG,CAAC,QAAQ,CAAC,oBAAoB,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;oCAC1E,OAAO;gCACX,CAAC;4BACL,CAAC;4BACD,IAAI,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;gCACxB,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM;oCACrB,CAAE,IAAI,CAAC,MAAM,CAAC,GAAc,IAAI,IAAI,CAAC,GAAG,aAAa;wCACjD,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAC,GAAc,IAAI,IAAI,CAAC,GAAG,IAAI;wCAC9C,CAAC,CAAC,aAAa,GAAG,IAAI,CAAC;4BACnC,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAE,IAAI,CAAC,MAAM,CAAC,GAAc,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC;4BAC7E,CAAC;4BACD,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gCAChC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;4BACjD,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;4BAC3B,CAAC;wBACL,CAAC,CAAC,CAAC;oBACP,CAAC,CACJ,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;gBACtB,CAAC,CAAC;gBAEF;;;;;;;mBAOG;gBACH,MAAM,0BAA0B,GAAG,CAC/B,GAAY,EACZ,GAAa,EACb,IAAkB,EAClB,QAAgB,EACZ,EAAE;oBACN,IAAI,IAAI,CAAC;oBACT,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;wBACxC,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;wBAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;wBACzB,OAAO;oBACX,CAAC;oBACD,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;wBAChD,oFAAoF;wBACpF,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBACzC,KAAK,CAAC,KAAK,EAAE,CAAC;wBAEd,qEAAqE;wBACrE,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;4BACrB,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;4BAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;4BACzB,OAAO;wBACX,CAAC;oBACL,CAAC;oBAED,MAAM,WAAW,GAAW,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;oBAEpD,uBAAuB;oBACvB,IAAI,CAAC,WAAW,EAAE,CAAC;wBACf,IAAI,IAAI,EAAE,CAAC;4BACP,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAChB,sBAAsB,UAAU,kEAAkE,CACrG,CAAC;4BACF,OAAO;wBACX,CAAC;wBAED,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;4BACxB,uEAAuE;4BACvE,GAAG,CAAC,GAAG,CAAC,kBAAkB,EAAE,uDAAuD,CAAC,CAAC;4BACrF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qEAAqE,CAAC,CAAC;4BAC5F,OAAO;wBACX,CAAC;wBAED,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;wBACvB,OAAO;oBACX,CAAC;oBAED,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;wBAC/C,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;oBAC5F,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,eAAe,CAAC,CAAC;oBAC1B,CAAC;gBACL,CAAC,CAAC;gBAEF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAQ,EAAE;oBACxF,IAAI,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;oBAEpC,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;oBACzD,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;oBACzD,GAAG,CAAC,IAAI,CAAC,YAAY;wBACjB,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,MAAM;4BAChC,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI;4BAC9B,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;oBAEnC,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;wBAC1E,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBAClC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;wBACpC,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC/B,CAAC;oBAED,qEAAqE;oBACrE,GAAG,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;oBAEhC,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC;gBAC3E,CAAC,CAAC,CAAC;gBAEH,4CAA4C;gBAC5C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAQ,EAAE;oBAC3F,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;oBACzD,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;oBACzD,GAAG,CAAC,IAAI,CAAC,YAAY;wBACjB,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,MAAM;4BAChC,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI;4BAC9B,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;oBAEnC,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC;gBACrE,CAAC,CAAC,CAAC;gBAEH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE;oBACpE,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oBACvC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE;wBACZ,IAAI,KAAK,EAAE,CAAC;4BACR,GAAG,CAAC,QAAQ,CAAC,wCAAwC,CAAC,CAAC;wBAC3D,CAAC;6BAAM,CAAC;4BACJ,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;wBAC7B,CAAC;oBACL,CAAC,CAAC,CAAC;gBACP,CAAC,CAAC,CAAC;gBAEH,oDAAoD;gBACpD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAQ,EAAE;oBAC5C,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBAE1C,MAAM,eAAe,GACjB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;oBAEvF,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;wBAClB,gDAAgD;wBAChD,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;wBAClD,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;wBACrC,OAAO;oBACX,CAAC;oBAED,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;wBAClB,gDAAgD;wBAChD,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;wBAC5C,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;wBACzB,OAAO;oBACX,CAAC;oBAED,wBAAwB;oBACxB,IAAI,CAAC,eAAe,IAAI,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;wBAClD,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;wBACxC,GAAG,CAAC,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,oBAAoB,CAAC,CAAC,CAAC;wBACnE,OAAO;oBACX,CAAC;oBACD,IAAI,CAAC,eAAe,IAAI,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;wBACpD,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;wBAC5C,GAAG,CAAC,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,sBAAsB,CAAC,CAAC,CAAC;wBACrE,OAAO;oBACX,CAAC;oBACD,wDAAwD;oBACxD,IACI,eAAe;wBACf,0BAA0B,CAAC,IAAI,CAAC,GAAG,CAAC;wBACpC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC;wBACpB,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC;wBAC7B,GAAG,CAAC,QAAQ,CAAC,qBAAqB,CAAC;wBACnC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,EAC3B,CAAC;wBACC,IAAI,EAAE,CAAC;wBACP,OAAO;oBACX,CAAC;oBACD,IACI,IAAI,CAAC,MAAM,CAAC,SAAS;wBACrB,OAAO,GAAG,CAAC,OAAO,CAAC,aAAa,KAAK,QAAQ;wBAC7C,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,EAC/C,CAAC;wBACC,+DAA+D;wBAC/D,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;wBACxD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,eAAM,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBAE/E,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;wBAE1B,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;wBAC1B,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;wBAC7B,GAAG,CAAC,IAAI,CAAC,YAAY;4BACjB,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,MAAM;gCAChC,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI;gCAC9B,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;wBAEnC,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC;wBAC9C,MAAM,QAAQ,GAAG,GAAG,CAAC,WAAW,CAAC;wBAEjC,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;oBACnD,CAAC;yBAAM,CAAC;wBACJ,6EAA6E;wBAC7E,0BAA0B,CACtB,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,UAAU,SAAS,kBAAkB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAC9D,CAAC;oBACN,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,8BAA8B;gBAC9B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE;oBACrE,MAAM,eAAe,GACjB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;oBAEvF,IAAI,eAAe,EAAE,CAAC;wBAClB,eAAe;wBACf,MAAM,MAAM,GAA2B,EAAE,CAAC;wBAC1C,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBACpD,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;4BACjB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;4BACtC,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,kBAAkB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;wBAC9E,CAAC,CAAC,CAAC;wBAEH,IAAI,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC;wBACtC,IAAI,CAAC,WAAW,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;4BACnE,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC1D,CAAC;wBACD,IAAI,CAAC,WAAW,IAAI,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC;4BACnC,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,KAAe,CAAC;wBAC5C,CAAC;wBAED,uCAAuC;wBACvC,IAAI,WAAW,EAAE,CAAC;4BACd,+BAA+B;4BAC/B,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,EAAE;gCACxD,MAAM,MAAM,GAAG,aAAgD,CAAC;gCAChE,IAAI,MAAM,EAAE,CAAC;oCACT,wCAAwC;oCACxC,GAAG,CAAC,IAAI,CAAC;wCACL,OAAO,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE;wCAC5C,cAAc,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE;wCACnD,IAAI,EAAE,MAAM,CAAC,IAAI;qCACpB,CAAC,CAAC;gCACP,CAAC;qCAAM,CAAC;oCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;gCAChD,CAAC;4BACL,CAAC,CAAC,CAAC;4BACH,OAAO;wBACX,CAAC;wBAED,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;4BACxB,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAC9B,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAClD,IAAI,CAAC,MAAM,CACd,CAAC;4BACF,IAAI,SAAS,EAAE,CAAC;gCACZ,IAAI,CAAC,KAAK,EAAE,GAAG,CACX,SAAS,EACT,CACI,GAAiB,EACjB,OAUC,EACG,EAAE;oCACN,6IAA6I;oCAC7I,IAAI,OAAO,EAAE,CAAC;wCACV,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;oCAC/E,CAAC;yCAAM,CAAC;wCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;oCAChD,CAAC;gCACL,CAAC,CACJ,CAAC;4BACN,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;4BAChD,CAAC;wBACL,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;gCACZ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;4BAChD,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;4BACjC,CAAC;wBACL,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;oBAChD,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,OAAO;gBACP,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAQ,EAAE;oBAChG,MAAM,eAAe,GACjB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;oBAEvF,IAAI,eAAe,EAAE,CAAC;wBAClB,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;wBACpB,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBACpD,MAAM,MAAM,GAA2B,EAAE,CAAC;wBAC1C,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;4BACjB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;4BACtC,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,kBAAkB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;wBAC9E,CAAC,CAAC,CAAC;wBAEH,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;4BACxB,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAC9B,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAClD,IAAI,CAAC,MAAM,CACd,CAAC;4BACF,IAAI,SAAS,EAAE,CAAC;gCACZ,IAAI,CAAC,KAAK,EAAE,GAAG,CACX,SAAS,EACT,CACI,IAAkB,EAClB,GAUC,EACG,EAAE;oCACN,6IAA6I;oCAC7I,IAAI,GAAG,EAAE,CAAC;wCACN,MAAM,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;wCAC3B,OAAO,CAAC,eAAe,CACnB,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,CAC/D,CAAC;wCAEF,GAAG,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;wCAC3C,IAAI,CAAC,GAAG,CAAC,KAAK,CACV,WAAW,GAAG,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAC/D,CAAC;wCAEF,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;wCACrC,0GAA0G;wCAC1G,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;oCACvE,CAAC;yCAAM,CAAC;wCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;oCAC3C,CAAC;gCACL,CAAC,CACJ,CAAC;4BACN,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;4BAC3C,CAAC;wBACL,CAAC;6BAAM,CAAC;4BACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;wBAC3C,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,0BAA0B,CACtB,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,UAAU,SAAS,kBAAkB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAC9D,CAAC;oBACN,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE;oBACjF,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBAC7B,CAAC,CAAC,CAAC;gBACH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC3F,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;gBAE5F,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC;oBAC/B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;wBACtC,MAAM,QAAQ,GAAG,CACb,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC;4BAC9B,GAAG,CAAC,UAAU,CAAC,aAAa;4BAC5B,EAAE,CACL,CAAC,QAAQ,EAAE,CAAC;wBACb,IAAI,WAA+B,CAAC;wBACpC,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;4BAChC,WAAW;gCACP,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,wBAAwB,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;oCACrF,SAAS,CAAC;4BACd,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;gCAC1D,WAAW;oCACP,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,wBAAwB,CACtC,WAAW,EACX,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAChC,IAAI,SAAS,CAAC;4BACvB,CAAC;4BACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,WAAW,EAAE,CAAC,CAAC;wBACjD,CAAC;wBAED,IAAI,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;4BAC9D,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;wBACjF,CAAC;6BAAM,CAAC;4BACJ,GAAG,CAAC,KAAK,CACL,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,wBAAwB;4BAClF,CACI,GAAG,EACL,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CACjB,CAAC;wBACN,CAAC;oBACL,CAAC,CAAC,CAAC;gBACP,CAAC;YACL,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;gBAC7B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;gBAClD,wBAAwB;gBACxB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,iBAAiB,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;oBAC3F,IAAI,CAAC;wBACD,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,OAAiB,CAAC;wBAC/C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,SAAS,EAAE;4BACpD,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;yBACjF,CAAC,CAAC;wBACH,IAAI,CAAC,GAAG,EAAE,CAAC;4BACP,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;wBACjC,CAAC;6BAAM,CAAC;4BACJ,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE;gCACrD,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;6BACjF,CAAC,CAAC;4BACH,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gCACxC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;gCACtC,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gCACrC,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;oCAC/B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;gCAChD,CAAC;qCAAM,CAAC;oCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAChB,KAAK,CAAC,GAAG,KAAK,SAAS;wCACnB,CAAC,CAAC,WAAW;wCACb,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,IAAI;4CAClB,CAAC,CAAC,MAAM;4CACR,CAAC,CAAC,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;gDAC7B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC;gDAC3B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CACjC,CAAC;gCACN,CAAC;4BACL,CAAC;iCAAM,CAAC;gCACJ,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;4BACjC,CAAC;wBACL,CAAC;oBACL,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;gBACL,CAAC,CAAC,CAAC;gBACH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;oBAC5F,IAAI,CAAC;wBACD,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,OAAiB,CAAC;wBAC/C,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;4BACpB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;4BACvC,OAAO;wBACX,CAAC;wBACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,SAAS,EAAE;4BACpD,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;yBACjF,CAAC,CAAC;wBACH,IAAI,CAAC,GAAG,EAAE,CAAC;4BACP,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;wBACjC,CAAC;6BAAM,CAAC;4BACJ,YAAY;4BACZ,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC;4BACtC,IAAI,IAA4B,CAAC;4BACjC,IAAI,CAAC;gCACD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gCAChD,IAAI,WAAW,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;oCAChC,IAAI,GAAG,WAAW,CAAC;gCACvB,CAAC;qCAAM,CAAC;oCACJ,IAAI,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;gCACpC,CAAC;4BACL,CAAC;4BAAC,MAAM,CAAC;gCACL,gBAAgB;gCAChB,IAAI,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;4BACpC,CAAC;4BACD,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gCAC/B,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC,GAAa,CAAC,CAAC;4BAC9C,CAAC;iCAAM,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gCACvC,IAAI,CAAC,GAAG;oCACJ,IAAI,CAAC,GAAG,KAAK,IAAI;wCACjB,IAAI,CAAC,GAAG,KAAK,MAAM;wCACnB,IAAI,CAAC,GAAG,KAAK,CAAC;wCACd,IAAI,CAAC,GAAG,KAAK,GAAG;wCAChB,IAAI,CAAC,GAAG,KAAK,IAAI;wCACjB,IAAI,CAAC,GAAG,KAAK,IAAI;wCACjB,IAAI,CAAC,GAAG,KAAK,IAAI;wCACjB,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC;4BAC1B,CAAC;4BACD,MAAM,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;4BACjD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;wBAC5C,CAAC;oBACL,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;gBAC9B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;gBAC9C,yEAAyE;gBACzE,2EAA2E;gBAC3E,mFAAmF;gBACnF,mFAAmF;gBACnF,oFAAoF;gBACpF,gFAAgF;gBAChF,qDAAqD;gBACrD,oBAAoB;gBACpB,8EAA8E;gBAC9E,8FAA8F;gBAC9F,uFAAuF;gBACvF,iFAAiF;gBACjF,6FAA6F;gBAC7F,8EAA8E;gBAC9E,yDAAyD;gBACzD,8EAA8E;gBAC9E,8EAA8E;gBAC9E,2DAA2D;gBAC3D,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;oBAC7F,IAAI,CAAC;wBACD,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAkB,CAAC;wBAC/C,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;4BACnB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;4BAC9C,OAAO;wBACX,CAAC;wBACD,gFAAgF;wBAChF,qEAAqE;wBACrE,MAAM,OAAO,GAAI,GAAG,CAAC,KAAK,CAAC,IAA2B,IAAI,OAAO,CAAC;wBAClE,MAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,CAAC;wBACnC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAE,OAA+B,CAAC;wBACrE,MAAM,UAAU,GAAI,GAAG,CAAC,KAAK,CAAC,UAA8C,IAAI,SAAS,CAAC;wBAC1F,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC,KAA2B,CAAC;wBACzD,MAAM,YAAY,GAAG,CAAC,CAAqB,EAAW,EAAE,CACpD,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,OAAO,IAAI,CAAC,KAAK,GAAG,CAAC;wBAClD,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,MAA4B,CAAC,CAAC;wBAC3E,MAAM,eAAe,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,QAA8B,CAAC,CAAC;wBAC/E,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,MAA4B,CAAC,CAAC;wBAC3E,IAAI,KAAK,GAAG,GAAG,CAAC;wBAChB,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;4BAC3B,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;4BACjC,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;gCAC5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;gCAC5C,OAAO;4BACX,CAAC;4BACD,oEAAoE;4BACpE,uEAAuE;4BACvE,kEAAkE;4BAClE,yEAAyE;4BACzE,iDAAiD;4BACjD,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;gCACZ,KAAK,GAAG,CAAC,CAAC;4BACd,CAAC;wBACL,CAAC;wBAED,MAAM,OAAO,GAAG;4BACZ,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;yBACjF,CAAC;wBACF,IAAI,OAA2C,CAAC;wBAChD,IAAI,CAAC,QAAQ,EAAE,CAAC;4BACZ,gEAAgE;4BAChE,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,sBAAsB,CACxC,QAAQ,EACR,IAA2B,EAC3B,IAAI,EACJ,OAAO,CACV,CAAuC,CAAC;wBAC7C,CAAC;6BAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;4BACjC,oEAAoE;4BACpE,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;4BAChE,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAyB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;wBACnE,CAAC;6BAAM,CAAC;4BACJ,0EAA0E;4BAC1E,gFAAgF;4BAChF,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;4BACtC,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;4BAC9C,MAAM,KAAK,GAAG,IAAI,MAAM,CACpB,IAAI,QAAQ,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAC7E,CAAC;4BACF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,kBAAkB,CACtC;gCACI,QAAQ,EAAE,MAAM;gCAChB,MAAM,EAAE,GAAG,MAAM,GAAG;gCACpB,YAAY,EAAE,IAAI;6BACrB,EACD,OAAO,CACV,CAAC;4BACF,OAAO,GAAG,EAAE,CAAC;4BACb,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;gCACjC,IAAI,GAAG,EAAE,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;oCACnC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,KAA2B,CAAC;gCACtD,CAAC;4BACL,CAAC;wBACL,CAAC;wBAED,IAAI,MAAM,GAAyB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;wBAC1D,uEAAuE;wBACvE,uEAAuE;wBACvE,+CAA+C;wBAC/C,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;wBACrD,IAAI,CAAC,aAAa,EAAE,CAAC;4BACjB,mEAAmE;4BACnE,MAAM,GAAG,MAAM,CAAC,MAAM,CAClB,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,CAC1E,CAAC;wBACN,CAAC;wBACD,IAAI,KAAK,EAAE,CAAC;4BACR,oEAAoE;4BACpE,0EAA0E;4BAC1E,gEAAgE;4BAChE,MAAM,IAAI,GAAG,IAAI,GAAG,EAA8B,CAAC;4BACnD,MAAM,QAAQ,GAAG,IAAI,GAAG,EAA8B,CAAC;4BACvD,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;gCACvB,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gCACjC,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,EAAE,CAAC;oCACxB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;gCAC3B,CAAC;qCAAM,CAAC;oCACJ,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oCACnD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;wCAC5B,+DAA+D;wCAC/D,8DAA8D;wCAC9D,wDAAwD;wCACxD,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE;4CACrB,GAAG,EAAE,UAAU;4CACf,IAAI,EAAE,SAAS;yCACe,CAAC,CAAC;oCACxC,CAAC;gCACL,CAAC;4BACL,CAAC;4BACD,qEAAqE;4BACrE,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;gCAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;4BACxB,CAAC;4BACD,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;wBACtD,CAAC;wBACD,IAAI,UAAU,EAAE,CAAC;4BACb,mEAAmE;4BACnE,sDAAsD;4BACtD,MAAM,GAAG,MAAM,CAAC,MAAM,CAClB,GAAG,CAAC,EAAE,CACF,GAAG,CAAC,IAAI,KAAM,SAAiC;gCAC9C,GAAG,CAAC,MAAyC,EAAE,IAAI,KAAK,UAAU,CAC1E,CAAC;wBACN,CAAC;wBACD,IAAI,CAAC,eAAe,IAAI,CAAC,aAAa,EAAE,CAAC;4BACrC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gCACtB,MAAM,IAAI,GAAG,GAAmD,CAAC;gCACjE,IAAI,eAAe,EAAE,CAAC;oCAClB,sBAAsB;oCACtB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;oCAC1C,OAAO,IAAqC,CAAC;gCACjD,CAAC;gCACD,+DAA+D;gCAC/D,MAAM,IAAI,GAA4B;oCAClC,GAAG,EAAE,IAAI,CAAC,GAAG;oCACb,IAAI,EAAE,IAAI,CAAC,IAAI;oCACf,MAAM,EAAE,IAAI,CAAC,MAAM;iCACtB,CAAC;gCACF,IAAI,aAAa,EAAE,CAAC;oCAChB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;gCAC9B,CAAC;gCACD,OAAO,IAAqC,CAAC;4BACjD,CAAC,CAAC,CAAC;wBACP,CAAC;wBACD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAEpE,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;wBAC5C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;wBACrC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;oBACjD,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;YAED,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,uBAAuB,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE;gBAClF,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;gBAClD,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gBACrC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;YAC3C,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;gBACxF,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;gBAC5C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gBACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAC1C,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CACpF,CAAC;gBACF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1D,CAAC,CAAC,CAAC;YAEH,IAAI,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,CAAC;gBACnC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;oBACtC,GAAG,CAAC,MAAM,CACN,6BAA6B,EAC7B,IAAI,CAAC,MAAM,CAAC,wBAAwB,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAC7D,CAAC;oBACF,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;oBAClF,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;oBAClF,GAAG,CAAC,MAAM,CACN,kCAAkC,EAClC,IAAI,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAC/D,CAAC;oBACF,IAAI,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,CAAC;wBACzC,GAAG,CAAC,MAAM,CAAC,+BAA+B,EAAE,IAAI,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;oBACxF,CAAC;oBACD,IAAI,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;wBAClC,GAAG,CAAC,MAAM,CAAC,wBAAwB,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,CAAC;oBACrF,CAAC;oBAED,2BAA2B;oBAC3B,IAAI,SAAS,KAAK,GAAG,CAAC,MAAM,EAAE,CAAC;wBAC3B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,CAAC;yBAAM,CAAC;wBACJ,IAAI,EAAE,CAAC;oBACX,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;iBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;gBACnE,cAAc;gBACd,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;oBACtC,GAAG,CAAC,MAAM,CAAC,6BAA6B,EAAE,GAAG,CAAC,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC;oBACrE,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,6BAA6B,CAAC,CAAC;oBAC1E,GAAG,CAAC,MAAM,CACN,8BAA8B,EAC9B,kEAAkE,CACrE,CAAC;oBACF,GAAG,CAAC,MAAM,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC;oBAEvD,2BAA2B;oBAC3B,IAAI,SAAS,KAAK,GAAG,CAAC,MAAM,EAAE,CAAC;wBAC3B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,CAAC;yBAAM,CAAC;wBACJ,IAAI,EAAE,CAAC;oBACX,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;YAED,MAAM,UAAU,GAAwB,EAAE,CAAC;YAC3C,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;gBACpB,UAAU,CAAC,MAAM,GAAG,WAAW,CAAC,CAAC,WAAW;YAChD,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC;oBAC5B,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG;oBACvB,OAAO,EAAE,IAAI;oBACb,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;iBAC7B,CAAC,CAAC;gBACH,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,MAAM,SAAS,CAAC,IAAI,EAAE,CAAwC,CAAC;YAC5F,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6BAA6B,GAAG,EAAE,CAAC,CAAC;gBACnD,IAAI,CAAC,SAAS;oBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;oBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;gBAC7D,OAAO;YACX,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;gBACzB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;gBAC3C,IAAI,CAAC,SAAS;oBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;oBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;gBAC7D,OAAO;YACX,CAAC;YAED,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;QACpD,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAC/B,IAAI,CAAC,SAAS;gBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;gBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;QACjE,CAAC;QAED,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;YACxB,IAAI,eAAe,GAAG,KAAK,CAAC;YAC5B,IAAI,UAAkB,CAAC;YACvB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE;gBAClC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,UAAU,IAAI,IAAI,EAAE,CAAC;oBACxD,IAAI,CAAC,GAAG,CAAC,KAAK,CACV,6DAA6D,UAAU,KAAK;wBACxE,gFAAgF;wBAChF,+EAA+E,CACtF,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,0BAA0B,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,SAAS,IAAI,UAAU,KAAK,CAAC,EAAE,CAAC,CAAC;gBAClG,CAAC;gBACD,IAAI,CAAC,eAAe,EAAE,CAAC;oBACnB,IAAI,CAAC,SAAS;wBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;wBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;gBACjE,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAc,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC;YACpE,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAE9B,IAAI,CAAC,OAAO,CACR,IAAI,CAAC,MAAM,CAAC,IAAI,EAChB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,SAAS,EAC/F,IAAI,CAAC,EAAE;gBACH,IAAI,GAAG,QAAQ,CAAC,IAAyB,EAAE,EAAE,CAAC,CAAC;gBAC/C,IAAI,IAAI,KAAK,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;oBAC5B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,iBAAiB,CAAC,CAAC;oBAC1D,IAAI,CAAC,SAAS;wBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;wBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;gBACjE,CAAC;gBACD,UAAU,GAAG,IAAI,CAAC;gBAClB,IAAI,CAAC,SAAS,CAAC,MAAO,CAAC,MAAM,CACzB,IAAI,EACJ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,SAAS,EAC/F,GAAG,EAAE;oBACD,eAAe,GAAG,IAAI,CAAC;oBACvB,KAAK,IAAI,CAAC,QAAQ,CAAC,iBAAiB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;oBAElD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;wBACvD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE;4BAC3C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;4BACzB,IAAI,CAAC;gCACD,MAAM,IAAA,yBAAa,EAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,sBAAsB,CAAC,CAAC;4BAClF,CAAC;4BAAC,OAAO,CAAC,EAAE,CAAC;gCACT,+CAA+C;gCAC/C,IAAI,CAAC,UAAU,CACX,eAAe,IAAI,CAAC,IAAI,EAAE,EAC1B,iBAAiB,EACjB;oCACI,KAAK,EAAE,QAAQ;oCACf,QAAQ,EAAE,gBAAgB;oCAC1B,OAAO,EACH,4EAA4E;wCAC5E,uEAAuE;oCAC3E,QAAQ,EAAE,kBAAkB,IAAI,CAAC,SAAS,EAAE;iCAC/C,EACD,EAAC,YAAY,EAAE,EAAE;oCACb,YAAY;gCAChB,CAAC,CACJ,CAAC;gCAEF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;4BACjC,CAAC;wBACL,CAAC,EAAE,IAAI,CAAC,CAAC;oBACb,CAAC;gBACL,CAAC,CACJ,CAAC;gBAEF,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,6BAA6B,IAAI,EAAE,CAAC,CAAC;YAC3F,CAAC,CACJ,CAAC;QACN,CAAC;QAED,6BAA6B;QAC7B,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACjB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;YACtC,MAAM,cAAc,GAAmB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YAC/E,0CAA0C;YAC1C,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YACpC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;YAE/C,0BAA0B;YAC1B,cAAc,CAAC,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;YAC/D,0BAA0B;YAC1B,cAAc,CAAC,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,KAAK,KAAK,CAAC;YAEvE,IAAI,CAAC;gBACD,IAAI,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,mBAAmB,CAAC;gBAC/E,IAAI,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBAErC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;gBACxC,6BAA6B;gBAC7B,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAClC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU;gBACvB,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;oBAC1D,IAAI,IAAI,sBAAsB,CAAC;gBACnC,CAAC;qBAAM,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;oBAChE,uFAAuF;oBACvF,IAAI,IAAI,qBAAqB,CAAC;gBAClC,CAAC;qBAAM,CAAC;oBACJ,IAAI,IAAI,gBAAgB,CAAC;gBAC7B,CAAC;gBAED,IAAI,IAAI,GAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC;gBACnC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;oBACf,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC;gBACxB,CAAC;gBACD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;oBACd,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;gBACvB,CAAC;gBACD,MAAM,QAAQ,GAAG,IAA4B,CAAC;gBAE9C,wDAAwD;gBACxD,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,IAAI,QAAQ,CAC5B,IAAI,CAAC,SAAS,CAAC,MAAgB,EAC/B,cAAc,EACd,IAAI,EACJ,IAAI,CAAC,KAAM,EACX,IAAI,CAAC,SAAS,CACjB,CAAC;YACN,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;gBACnG,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;oBACd,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;oBACxC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gBAC9B,CAAC;qBAAM,CAAC;oBACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;gBACxC,CAAC;YACL,CAAC;QACL,CAAC;QAED,MAAM,iBAAiB,GAAoB,EAAE,CAAC;QAE9C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;YACjC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;YACxC,sBAAsB;YACtB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAC5C,IAAI,CAAC;oBACD,gHAAgH;oBAChH,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACxD,KAAK,CAAC,KAAK,EAAE,CAAC;oBACd,IAAI,MAAM,CAAC;oBACX,IAAI,IAAA,oBAAU,EAAC,KAAK,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;wBACrC,MAAM,GAAG,OAAO,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;yBAAM,CAAC;wBACJ,MAAM,GAAG,OAAO,CAAC,YAAY,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;oBACnE,CAAC;oBACD,oBAAoB;oBACpB,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;wBACjB,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC;oBAC5B,CAAC;oBACD,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBACxF,IAAI,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;wBACpB,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;oBAC/B,CAAC;oBAED,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,yBAAyB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;oBAE1E,sBAAsB;oBACtB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,GAAG,IAAI,MAAM,CACtC,IAAI,CAAC,SAAS,CAAC,MAAM,EACrB;wBACI,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;wBAC1B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;wBACtB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;wBAC9B,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW;wBACpC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;qBACzB,EACD,IAAI,EACJ,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,EAChC,IAAI,CAAC,SAAS,CAAC,GAAG,EAClB,IAAI,CAAC,SAAS,CAAC,EAAE,CACpB,CAAC;oBAEF,IACI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,YAAY;wBAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,YAAY,KAAK,UAAU,EAClE,CAAC;wBACC,iBAAiB,CAAC,IAAI,CAClB,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE;4BACxB,IAAI,OAAO,GAAiC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE;gCAC7D,IAAI,OAAO,EAAE,CAAC;oCACV,OAAO,GAAG,SAAS,CAAC;oCACpB,IAAI,CAAC,GAAG,CAAC,KAAK,CACV,cAAc,QAAQ,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,oCAAoC,CACjG,CAAC;oCACF,OAAO,EAAE,CAAC;gCACd,CAAC;4BACL,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,CAAC;4BAE5D,MAAM,KAAK,GAAG,GAAS,EAAE;gCACrB,IAAI,OAAO,EAAE,CAAC;oCACV,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,wBAAwB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;oCAC1E,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;oCAC3B,OAAO,GAAG,IAAI,CAAC;oCACf,OAAO,EAAE,CAAC;gCACd,CAAC;4BACL,CAAC,CAAC;4BAEF,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAI,CAAC,YAAa,CAAC,KAAK,CAAC,CAAC;wBACxD,CAAC,CAAC,CACL,CAAC;oBACN,CAAC;gBACL,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,2BAA2B,QAAQ,MAAM,GAAG,EAAE,CAAC,CAAC;gBACnE,CAAC;YACL,CAAC,CAAC,CAAC;QACP,CAAC;QAED,KAAK,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YAC1C,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;gBACzD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC;gBAErD,kCAAkC;gBAClC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;oBACxE,IAAI,GAAG,CAAC;oBACR,IAAI,CAAC;wBACD,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBAC7B,CAAC;oBAAC,MAAM,CAAC;wBACL,EAAE;wBACF,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,uBAAuB,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;wBAChD,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;oBAClB,CAAC;oBACD,iBAAiB;oBACjB,4EAA4E;oBAC5E,GAAG,GAAG,IAAA,qBAAS,EAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;oBAC7D,0CAA0C;oBAC1C,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;wBACnC,IAAI,CAAC,GAAG,CAAC,CAAC;wBACV,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;4BACpB,CAAC,EAAE,CAAC;wBACR,CAAC;wBACD,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;oBAC/B,CAAC;oBACD,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;wBAC7F,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;wBACvB,OAAO;oBACX,CAAC;oBACD,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBAExB,8BAA8B;oBAC9B,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,aAAa,EAAE,CAAC;wBACvC,IAAI,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;4BAC9B,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;4BAC/C,OAAO;wBACX,CAAC;wBACD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;6BACjB,IAAI,CAAC,IAAI,CAAC,EAAE,CACT,GAAG;6BACE,GAAG,CAAC,cAAc,EAAE,WAAW,CAAC;6BAChC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC;6BAChC,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,IAAI,CAAC,CAClB;6BACA,KAAK,CAAC,GAAG,CAAC,EAAE,CACT,GAAG;6BACE,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,eAAe,UAAU,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CACzF,CAAC;wBACN,OAAO;oBACX,CAAC;yBAAM,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;wBAC7B,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,eAAe,CAAC;6BACnC,GAAG,CAAC,eAAe,EAAE,4BAA4B,CAAC;6BAClD,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;wBACxD,OAAO;oBACX,CAAC;yBAAM,IAAI,GAAG,KAAK,cAAc,EAAE,CAAC;wBAChC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC;6BAClC,GAAG,CAAC,eAAe,EAAE,4BAA4B,CAAC;6BAClD,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;wBACxD,OAAO;oBACX,CAAC;yBAAM,IAAI,GAAG,KAAK,gBAAgB,EAAE,CAAC;wBAClC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC;6BACtC,GAAG,CAAC,eAAe,EAAE,4BAA4B,CAAC;6BAClD,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;wBACxD,OAAO;oBACX,CAAC;oBAED,iBAAiB;oBACjB,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;oBAEjD,IAAI,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;wBAC9B,6BAA6B;wBAC7B,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,gCAAgC,EAAE,YAAY,CAAC,CAAC;oBACtE,CAAC;oBAED,IAAI,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;wBAC1B,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC;oBAChC,CAAC;oBACD,IAAI,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;wBAC7B,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC;oBAChC,CAAC;oBACD,IAAI,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;wBAC5B,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC;oBAChC,CAAC;oBACD,MAAM,QAAQ,GAAa,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBAC1C,eAAe;oBACf,QAAQ,CAAC,KAAK,EAAE,CAAC;oBACjB,SAAS;oBACT,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;oBAClC,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;oBAClC,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBACzB,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;oBAC7B,IAAI,WAAW,CAAC;oBAChB,IAAI,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC;wBACb,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;wBAC5B,oEAAoE;wBACpE,WAAW,GAAG,IAAI,CAAC;oBACvB,CAAC;oBAED,mBAAmB;oBACnB,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;wBACzD,IAAI,CAAC,aAAa,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,CAAC;4BAC3D,sBAAsB;4BACtB,GAAG,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;4BAC9D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;4BACvB,OAAO;wBACX,CAAC;oBACL,CAAC;oBAED,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;wBAC/C,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;wBACrD,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;4BACpB,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;wBAChE,CAAC;6BAAM,CAAC;4BACJ,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;4BAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;wBAC5D,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,IAAI,EAAE,KAAK,OAAO,IAAI,GAAG,KAAK,YAAY,EAAE,CAAC;4BACzC,IAAI,CAAC,SAAS,KAAK,MAAM,IAAI,CAAC,eAAe,CACzC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,GAAG,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CACvE,CAAC;4BACF,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC;4BAE9B,MAAM,eAAe,GACjB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;4BAEvF,IAAI,eAAe,IAAI,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;gCAC7C,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;gCACnC,OAAO;4BACX,CAAC;4BAED,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gCAC1C,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gCAC7B,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gCACrC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;4BAC3B,CAAC;iCAAM,CAAC;gCACJ,sBAAsB;gCACtB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;oCACpB,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;gCACxF,CAAC;gCACD,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gCACrC,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gCAC7B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;4BAC5C,CAAC;wBACL,CAAC;6BAAM,CAAC;4BACJ,iCAAiC;4BACjC,IAAI,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,0BAA0B,CAAC,EAAE,CAAC;gCACxE,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;gCACrC,OAAO;4BACX,CAAC;4BACD,IAAI,MAAuE,CAAC;4BAC5E,IAAI,KAAwB,CAAC;4BAC7B,IAAI,CAAC;gCACD,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAC7B,EAAE,EACF,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,aAAa;oCAClC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;oCACzC,CAAC,CAAC,GAAG,EACT;oCACI,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;oCAC9E,WAAW;iCACd,CACJ,CAAC;4BACN,CAAC;4BAAC,OAAO,GAAG,EAAE,CAAC;gCACX,KAAK,GAAG,GAAG,CAAC;4BAChB,CAAC;4BACD,IACI,IAAI,CAAC,MAAM,CAAC,eAAe;gCAC3B,KAAK,EAAE,QAAQ,EAAE,KAAK,mBAAmB;gCACzC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EACvB,CAAC;gCACC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;gCAExC,oBAAoB;gCACpB,MAAM,IAAI,GACN,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,aAAa;oCAClC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;oCACzC,CAAC,CAAC,GAAG,CAAC;gCAEd,IAAI,CAAC;oCACD,MAAM,KAAK,GAAyC,MAAM,IAAI,CAAC,YAAY,CACvE,EAAE,EACF,IAAI,EACJ;wCACI,IAAI,EAAE,GAAG,CAAC,IAAI;4CACV,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE;4CACrC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;qCAChC,CACJ,CAAC;oCACF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,IAAI,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;oCAEpE,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;oCAClF,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,0BAA0B,CAAC,CAAC;oCACpD,IAAI,CAAC,WAAW,KAAK,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,WAAW,CAAC;yCAC/D,QAAQ,CAAC,MAAM,CAAC;yCAChB,OAAO,CAAC,eAAe,EAAE,mBAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC;yCACpE,OAAO,CAAC,eAAe,EAAE,mBAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC;yCACpE,OAAO,CAAC,eAAe,EAAE,mBAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,CAAC;oCAC1E,MAAM,IAAI,GAAG,EAAE,CAAC;oCAEhB,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC;wCACd,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wCAC7B,KAAK,CAAC,GAAG,EAAE,CAAC;wCACZ,IAAI,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;oCACjE,CAAC;oCAED,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;wCACjB,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;4CACrB,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;wCACxC,CAAC;wCACD,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;4CACV,OAAO,CAAC,CAAC,CAAC;wCACd,CAAC;wCACD,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;4CACV,OAAO,CAAC,CAAC;wCACb,CAAC;wCAED,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;oCACxC,CAAC,CAAC,CAAC;oCAEH,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAClB,IAAI,CAAC,IAAI,CACL,sBAAsB,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,YAAY,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,KAAK,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAC1N,CACJ,CAAC;oCACF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAChB,IAAI,CAAC,WAAW;yCACX,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;yCACvC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7C,CAAC;gCACN,CAAC;gCAAC,OAAO,CAAC,EAAE,CAAC;oCACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC;oCAC9D,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;gCAC3B,CAAC;gCACD,OAAO;4BACX,CAAC;4BAED,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,EAAE,CAAC;gCACxE,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gCAC7B,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;4BACtF,CAAC;iCAAM,CAAC;gCACJ,MAAM,CAAC,QAAQ,KAAK,IAAA,mBAAM,EAAC,GAAG,CAAC,IAAI,wBAAwB,CAAC;gCAE5D,2CAA2C;gCAC3C,IAAI,GAAG,KAAK,YAAY,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;oCAC9C,MAAM,CAAC,IAAI,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;gCAC3E,CAAC;gCAED,sBAAsB;gCACtB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;oCACpB,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,GAAG;wCACzB,MAAM,EAAE,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAW,CAAC;wCACvC,QAAQ,EAAE,MAAM,CAAC,QAAQ;qCAC5B,CAAC;gCACN,CAAC;gCAED,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gCAEjC,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;oCACpB,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAW,CAAC,CAAC,CAAC;gCAC9D,CAAC;qCAAM,CAAC;oCACJ,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;oCAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gCACtC,CAAC;4BACL,CAAC;wBACL,CAAC;oBACL,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,IAAI;QACN,IAAI,GAA0C,CAAC;QAE/C,IAAI,CAAC;YACD,GAAG,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAChD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,GAAG,EAAE,CAAC;YACN,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAClC,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;oBACjB,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAChE,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBAEpC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG;wBACxB,IAAI,EAAE,GAAG,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE;wBAC7C,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;qBACjB,CAAC;gBACN,CAAC;YACL,CAAC;QACL,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAC/B,IAAI,CAAC;gBACD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE;oBAC3D,QAAQ,EAAE,cAAc;oBACxB,MAAM,EAAE,oBAAoB;iBAC/B,CAAC,CAAC;gBACH,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;gBACnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC1C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;gBACnE,CAAC;YACL,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;YAC9C,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,OAAO,EAAE;oBAC7D,QAAQ,EAAE,eAAe;oBACzB,MAAM,EAAE,qBAAqB;iBAChC,CAAC,CAAC;gBACH,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;gBACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC3C,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;gBACtE,CAAC;YACL,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;YAC9C,CAAC;YACD,MAAM,IAAI,CAAC,4BAA4B,CAAC,eAAe,CAAC,CAAC;YACzD,MAAM,IAAI,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,CAAC;QAC9D,CAAC;QAED,IAAI,CAAC;YACD,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,4BAA4B,GAAG,EAAE,CAAC,CAAC;YAClD,IAAI,CAAC,SAAS;gBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;gBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;QACjE,CAAC;QAED,kCAAkC;QAClC,MAAM,IAAI,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,CAAC;IAChE,CAAC;CACJ;AA7jFD,gCA6jFC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC1B,yCAAyC;IACzC,MAAM,CAAC,OAAO,GAAG,CAAC,OAA4C,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;AAC/F,CAAC;KAAM,CAAC;IACJ,wCAAwC;IACxC,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,EAAE,CAAC;AAC/B,CAAC"} \ No newline at end of file +{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;AAyUA,sCAeC;AAtVD,qCAAmD;AACnD,yCAAqD;AAErD,sEAAsC;AACtC,sDAAgG;AAChG,2CAAoC;AACpC,8DAAsC;AACtC,wEAAyC;AACzC,kEAAyC;AACzC,8DAAqC;AACrC,wDAAgC;AAChC,mDAA2D;AAC3D,kEAAkC;AAElC,yDAAqG,CAAC,2BAA2B;AAGjI,mDAAmF;AAGnF,mCAAgC;AAChC,uCAA0C;AAE1C,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAGrC,MAAM,UAAU,GAAG,mBAAmB,CAAC;AACvC,MAAM,MAAM,GAAG,QAAQ,CAAC;AACxB,MAAM,eAAe,GAAG,qBAAqB,CAAC,CAAC,aAAa;AAE5D,kFAAkF;AAClF,MAAM,eAAe,GAAG,SAAS,CAAC;AAClC,SAAS,UAAU,CAAC,GAAW;IAC3B,MAAM,IAAI,GAAG,GAAG,GAAG,EAAE,CAAC;IACtB,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEzC,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,MAAM,CAAC;IACX,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,IAAI,KAAK,CAAC;IACV,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,KAAK,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACrD,QAAQ,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,QAAQ,CAAC;gBAClB,MAAM;YACV,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,OAAO,CAAC;gBACjB,MAAM;YACV,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,OAAO,CAAC;gBACjB,MAAM;YACV,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,MAAM,CAAC;gBAChB,MAAM;YACV,KAAK,EAAE,EAAE,IAAI;gBACT,MAAM,GAAG,MAAM,CAAC;gBAChB,MAAM;YACV;gBACI,SAAS;QACjB,CAAC;QAED,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;YACtB,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC7C,CAAC;QAED,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;QACtB,IAAI,IAAI,MAAM,CAAC;IACnB,CAAC;IAED,OAAO,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAChF,CAAC;AAED,SAAS,UAAU,CAAC,WAAmB,EAAE,GAAwC,EAAE,IAAY,EAAE,IAAY;IACzG,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;QACtB,IAAI,GAAG,QAAQ,CAAC;IACpB,CAAC;IAED,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QACvB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;QACpC,MAAM,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;QACjD,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;SAAM,IAAI,GAAG,EAAE,CAAC;QACb,2CAA2C;QAC3C,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7B,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC;QAED,IAAI,GAAG,GAA0C,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,WAAW,KAAK,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,SAAS,CAAC,EAAE,CAAC;YACxD,GAAG,GAAG,QAAQ,CAAC;QACnB,CAAC;QAED,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YACpB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QACpE,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;gBACrC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,WAAW,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YAC5F,CAAC;iBAAM,CAAC;gBACJ,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YACrF,CAAC;QACL,CAAC;IACL,CAAC;SAAM,CAAC;QACJ,yCAAyC;QACzC,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YACpB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,MAAM,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;gBACrC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,WAAW,GAAG,EAAE,EAAE,CAAC,CAAC;YACvD,CAAC;iBAAM,CAAC;gBACJ,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,EAAE,CAAC,CAAC;YAChD,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,iBAAiB,CACtB,aAA0C,EAC1C,KAAc,EACd,UAAkC,EAClC,gBAAwD,EACxD,SAAgF,EAChF,KAA2D,EAC3D,QAAgB,EAChB,YAAoB,EACpB,IAA8B;IAE9B,IAAI,EAQH,CAAC;IAEF,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACpC,EAAE,GAAG;YACD,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;YAC5B,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YACpC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;SACpC,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,EAAE,GAAG,aAAa,CAAC;IACvB,CAAC;IAED,uBAAuB;IACvB,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;QACrC,OAAO;IACX,CAAC;IAED,IAAI,SAAiB,CAAC;IACtB,qCAAqC;IACrC,IAAI,EAAE,CAAC,UAAU,IAAI,OAAO,EAAE,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;QACrD,IAAI,UAAU,CAAC,MAAM,CAAC,UAAU,IAAI,OAAO,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,QAAQ,EAAE,CAAC;YAClG,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,IAAc,CAAC;QAC3E,CAAC;aAAM,CAAC;YACJ,SAAS,GAAG,EAAE,CAAC,UAAU,CAAC;QAC9B,CAAC;IACL,CAAC;SAAM,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAC;QAC7C,IAAI,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YAC9B,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;QAC5C,CAAC;aAAM,IAAI,OAAO,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,KAAK,QAAQ,EAAE,CAAC;YACpE,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC;QACtD,CAAC;aAAM,IAAI,OAAO,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,KAAK,QAAQ,EAAE,CAAC;YACpE,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC3D,CAAC;aAAM,CAAC;YACJ,SAAS,GAAG,EAAE,CAAC;QACnB,CAAC;IACL,CAAC;SAAM,IAAI,EAAE,CAAC,SAAS,EAAE,CAAC;QACtB,2CAA2C;QAC3C,SAAS,GAAI,EAAE,CAAC,SAAoB,IAAI,EAAE,CAAC;IAC/C,CAAC;SAAM,CAAC;QACJ,sCAAsC;QACtC,SAAS,GAAG,EAAE,CAAC,IAAI,CAAC;IACxB,CAAC;IACD,IAAI,KAAK,GAIH,EAAE,CAAC;IAET,oCAAoC;IACpC,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAChC,gBAAgB,CAAC,OAAO,CAAC,CAAC,EAAU,EAAQ,EAAE;YAC1C,MAAM,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC,CAAC;YAC1D,MAAM,MAAM,GAAG,IAAA,mBAAW,EAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE;gBACpE,QAAQ;gBACR,oBAAoB;gBACpB,SAAS;gBACT,KAAK;gBACL,aAAa,EAAE,YAAY;aAC9B,CAAC,CAAC;YACH,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAC9D,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;IACP,CAAC;SAAM,CAAC;QACJ,MAAM,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC,CAAC;QACtE,KAAK,GAAG,IAAA,mBAAW,EAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC,EAAE;YACzG,QAAQ;YACR,oBAAoB;YACpB,SAAS;YACT,KAAK;YACL,aAAa,EAAE,YAAY;SAC9B,CAAC,CAAC;QACH,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,QAAQ,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEpF,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC;YACN,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,GAAG,EAAE,EAAE,CAAC,GAAG;YACX,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI;YAChD,SAAS,EAAE,IAAI,CAAC,GAAG;YACnB,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,GAAG,EAAE,KAAK;YACV,EAAE,EAAE,kBAAkB,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YACtG,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACjE,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,cAAc,CACnB,aAAsF,EACtF,KAAc,EACd,UAAkC,EAClC,gBAAwD,EACxD,SAAgF,EAChF,KAA2D,EAC3D,QAAgB,EAChB,YAAoB,EACpB,IAA8B;IAE9B,IAAI,aAAa,EAAE,CAAC;QAChB,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,IAAI,EAA+B,CAAC;gBACpC,IAAI,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;oBACvC,EAAE,GAAG;wBACD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAW;wBAChC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;wBAC5B,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;wBACpC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;qBACpC,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;gBAC1B,CAAC;gBACD,iBAAiB,CACb,EAAE,EACF,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,IAAI,CACP,CAAC;YACN,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,IAAI,EAA+B,CAAC;YACpC,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;gBACpC,EAAE,GAAG;oBACD,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;oBAC5B,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;oBACpC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;iBACpC,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,EAAE,GAAG,aAAa,CAAC;YACvB,CAAC;YACD,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QAC/G,CAAC;IACL,CAAC;AACL,CAAC;AAED,SAAS,eAAe,CAAC,GAAY;IACjC,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,KAAK,CAAC;IACV,MAAM,IAAI,GAAwB,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;IACjD,2CAA2C;IAE3C,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC;IAE1C,IAAI,MAAM,EAAE,CAAC;QACT,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/B,QAAQ,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACxC,yCAAyC;YACzC,IAAI,QAAQ,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBACjG,QAAQ,GAAG,KAAK,CAAC;YACrB,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,SAAS,iBAAiB,CAAC,GAAwB,EAAE,IAAY;IAC7D,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrB,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,CAAC,EAAE,CAAC;YAC1E,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,GAAG,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IAC3B,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAEM,KAAK,UAAU,aAAa,CAAC,GAAoB,EAAE,OAA4B;IAClF,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,SAAS,CAAC;IAC1C,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAG,eAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,eAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC;QACrB,IAAI,MAAM,GAAG,KAAK,EAAE,CAAC;YACjB,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,mBAAmB,CAA8B,CAAC;YACxE,GAAG,CAAC,IAAI,GAAG,mBAAmB,CAAC;YAC/B,MAAM,GAAG,CAAC;QACd,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,eAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAQD,MAAa,UAAW,SAAQ,sBAAO;IAG3B,SAAS,GAAG,EAAE,CAAC;IACf,YAAY,CAA+B;IAC3C,YAAY,GAAG,EAAE,CAAC;IAElB,SAAS,GAAiB;QAC9B,MAAM,EAAE,IAAI;QACZ,EAAE,EAAE,IAAI;QACR,GAAG,EAAE,IAAI;KACZ,CAAC;IACM,KAAK,GAAiB,IAAI,CAAC;IAC3B,MAAM,GAAG,iBAAiB,CAAC,CAAC,mCAAmC;IAC/D,SAAS,GAAG,EAAE,CAAC;IACN,KAAK,GAA8E,EAAE,CAAC,CAAC,mBAAmB;IACnH,SAAS,GAAG,KAAK,CAAC;IAC1B,kCAAkC;IAC1B,aAAa,GAAG,KAAK,CAAC;IACtB,IAAI,GAAuB,IAAI,CAAC;IACvB,UAAU,GAAoF,EAAE,CAAC;IACjG,UAAU,GAA6D,EAAE,CAAC;IACnF,YAAY,GAAmB,KAAK,CAAC;IAC5B,cAAc,GAG3B,EAAE,CAAC;IACU,YAAY,GAAmC,EAAE,CAAC;IAC3D,SAAS,GAAkB,IAAI,CAAC;IAChC,SAAS,GAAkE,IAAI,CAAC;IAChF,QAAQ,GAAgE,IAAI,CAAC;IAE7E,WAAW,GAAW,EAAE,CAAC;IACzB,WAAW,GAAW,EAAE,CAAC;IAEjC,YAAmB,UAAmC,EAAE;QACpD,KAAK,CAAC;YACF,GAAG,OAAO;YACV,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAC3C,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;YACnC,WAAW,EAAE,CAAC,EAAU,EAAE,KAAwC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,KAAK,CAAC;YACpG,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;YAC3B,YAAY,EAAE,CAAC,EAAU,EAAE,GAAuC,EAAQ,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,GAAG,CAAC;YACzG,UAAU,EAAE,CAAC,EAAU,EAAE,QAAgB,EAAE,IAAmB,EAAQ,EAAE,CACpE,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC;SAC5C,CAAC,CAAC;IACP,CAAC;IAED,cAAc,CAAC,EAAU,EAAE,GAAuC;QAC9D,IAAI,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;YACnD,IAAI,GAAG,EAAE,CAAC;gBACN,IAAI,CAAC,SAAS,CAAC,EAA8B,CAAC,GAAG,GAA2B,CAAC;YACjF,CAAC;iBAAM,CAAC;gBACJ,OAAO,IAAI,CAAC,SAAS,CAAC,EAA8B,CAAC,CAAC;YAC1D,CAAC;QACL,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YACjD,IAAI,GAAG,EAAE,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,EAA6B,CAAC,GAAG,GAA0B,CAAC;YAC9E,CAAC;iBAAM,CAAC;gBACJ,OAAO,IAAI,CAAC,QAAQ,CAAC,EAA6B,CAAC,CAAC;YACxD,CAAC;QACL,CAAC;QAED,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAClC,IACI,GAAG,EAAE,MAAM,EAAE,YAAY;gBACzB,GAAG,CAAC,MAAM;gBACV,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBACpD,GAAG,CAAC,MAAM,CAAC,WAAW,KAAK,GAAG;oBAC9B,GAAG,CAAC,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC,SAAS,CAAC,EAChD,CAAC;gBACC,OAAO,IAAI,CAAC,eAAe,CAAC,kBAAkB,IAAI,CAAC,SAAS,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,CACpF,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAC7D,CAAC;YACN,CAAC;YAED,gCAAgC;YAChC,MAAM,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YACnD,IAAI,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;gBAC5B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC;YAChD,CAAC;iBAAM,IAAI,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChC,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;YAClC,CAAC;QACL,CAAC;QAED,IAAI,GAAG,EAAE,MAAM,EAAE,cAAc,IAAI,GAAG,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACzD,IAAI,CAAC,iBAAiB,CAAC,GAA8B,CAAC,CAAC;QAC3D,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,KAAK,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACjD,KAAK,IAAI,CAAC,YAAY,CAAC,GAA8B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7D,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;YACvD,CAAC,CAAC,CAAC;QACP,CAAC;QAED,gDAAgD;QAChD,IAAI,EAAE,KAAK,eAAe,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YAClD,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,MAAM,EAAE,QAAQ,IAAI,IAAI,CAAC;QAC9C,CAAC;QAED,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,CAAC;YACrB,IAAI,CAAC;gBACD,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,UAAU,CAAC,cAAc,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;YAC1D,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,8BAA8B,CAAC,EAAE,CAAC,CAAC;YACtD,CAAC;QACL,CAAC;QAED,oBAAoB;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5C,IAAI,CAAC;gBACD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,YAAY,KAAK,UAAU,EAAE,CAAC;oBACpE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;gBACxD,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iCAAiC,QAAQ,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YACjF,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,aAAa,CAAC,EAAU,EAAE,KAAwC;QAC9D,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,UAAU,CAAC,aAAa,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;QAEzD,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,QAAQ,EAAE,CAAC;YAC5D,IAAI,IAAI,CAAC,aAAa,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC;gBACtC,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC;gBAClC,KAAK,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;oBAC/C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;gBACvD,CAAC,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QAED,oBAAoB;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5C,IAAI,CAAC;gBACD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,WAAW,KAAK,UAAU,EAAE,CAAC;oBACnE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;gBACzD,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,gCAAgC,QAAQ,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAChF,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,YAAY,CAAC,EAAU,EAAE,QAAgB,EAAE,IAAmB;QAC1D,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,cAAc,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;QAEvD,oBAAoB;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5C,IAAI,CAAC;gBACD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,UAAU,KAAK,UAAU,EAAE,CAAC;oBAClE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;gBACjE,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,+BAA+B,QAAQ,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAC/E,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,SAAS,CAAC,GAAqB;QAC3B,IAAI,GAAG,EAAE,OAAO,KAAK,iBAAiB,EAAE,CAAC;YACrC,IAAI,MAAM,GAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;YAEpE,iBAAiB;YACjB,IAAI,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;gBAC5C,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAClC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;gBACpF,MAAM,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YACnE,CAAC;YAED,iBAAiB;YACjB,IAAI,MAAM,EAAE,CAAC;gBACT,IAAI,CAAC;oBACD,MAAM,GAAG,0BAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;gBAChF,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC;gBACjD,CAAC;YACL,CAAC;YAED,wBAAwB;YACxB,IAAI,IAAI,CAAC,KAAK,IAAI,MAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;gBACvC,IAAI,CAAC,KAAK,CAAC,GAAG,CACV,MAAM,EACN,CACI,KAAmB,EACnB,OAUC,EACG,EAAE;oBACN,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAC/F,CAAC,CACJ,CAAC;YACN,CAAC;iBAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;gBACtB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;YACpF,CAAC;QACL,CAAC;aAAM,IAAI,GAAG,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC;YAC/B,0BAA0B;YAC1B,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,CAAC;gBACrB,mDAAmD;gBACnD,mBAAmB;gBACnB,gBAAgB;gBAChB,WAAW;gBAEX,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,yBAAyB,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACvG,CAAC;QACL,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,QAAoB;QACzB,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACpB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YACrC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QAC7B,CAAC;QAED,IAAI,CAAC;YACD,MAAM,QAAQ,GAA6B,EAAE,CAAC;YAE9C,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACrB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;gBAC9D,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;YACtE,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAC5C,IAAI,CAAC;oBACD,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;wBAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;wBACvD,IAAI,OAAO,YAAY,OAAO,EAAE,CAAC;4BAC7B,QAAQ,CAAC,IAAI,CACT,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,gCAAgC,QAAQ,MAAM,CAAC,EAAE,CAAC,CAAC,CAC1F,CAAC;wBACN,CAAC;oBACL,CAAC;gBACL,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,gCAAgC,QAAQ,MAAM,CAAC,EAAE,CAAC,CAAC;gBACxE,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,IAAI,OAAqC,CAAC;YAC1C,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;gBAClB,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE;oBAC3B,OAAO,GAAG,SAAS,CAAC;oBACpB,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,2CAA2C,CAAC,CAAC;oBAC7D,IAAI,EAAE,GAAG,EAAE,KAAK,CACZ,mBAAmB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CACxF,CAAC;oBACF,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;oBAC5B,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;oBAChC,IAAI,EAAE,GAAG,EAAE,IAAI,CACX,kBAAkB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CACvF,CAAC;oBACF,IAAI,QAAQ,EAAE,CAAC;wBACX,QAAQ,EAAE,CAAC;oBACf,CAAC;gBACL,CAAC,EAAE,GAAG,CAAC,CAAC;YACZ,CAAC;YAED,KAAK,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;iBACrB,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,iCAAiC,CAAC,EAAE,CAAC,CAAC;iBAClE,IAAI,CAAC,GAAG,EAAE;gBACP,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,OAAO,EAAE,CAAC;oBAC9B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;oBAC3B,OAAO,GAAG,IAAI,CAAC;oBACf,IAAI,EAAE,GAAG,EAAE,KAAK,CACZ,mBAAmB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CACxF,CAAC;oBACF,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;oBAC5B,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;oBAChC,IAAI,EAAE,GAAG,EAAE,IAAI,CACX,kBAAkB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CACvF,CAAC;oBACF,IAAI,QAAQ,EAAE,CAAC;wBACX,QAAQ,EAAE,CAAC;oBACf,CAAC;gBACL,CAAC;YACL,CAAC,CAAC,CAAC;QACX,CAAC;QAAC,MAAM,CAAC;YACL,IAAI,QAAQ,EAAE,CAAC;gBACX,QAAQ,EAAE,CAAC;YACf,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO;QACT,sCAAsC;QACtC,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAEvE,IAAI,YAAY,EAAE,CAAC;YACf,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;gBAChC,YAAY,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,IAAI,EAAE,CAAC;gBAChD,MAAM,GAAG,GAAW,MAAM,IAAI,OAAO,CAAS,OAAO,CAAC,EAAE,CACpD,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,IAAkB,EAAE,GAAW,EAAQ,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAC7F,CAAC;gBACF,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBAClC,MAAM,IAAI,CAAC,wBAAwB,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAC9F,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC;YAC7C,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACvD,CAAC;QAED,IAAI,IAAI,GAA2C,IAAI,CAAC;QACxD,IAAI,CAAC;YACD,IAAI,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QAChE,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;QAC5C,CAAC;QACD,IAAI,CAAC,YAAY;YACZ,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,UAAqB;gBACpD,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,IAAK,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAE/E,gDAAgD;QAChD,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACtD,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;YAC1B,qBAAqB;YACrB,MAAM,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC9D,MAAM,IAAI,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,QAAQ,CAAC,CAAC;QAC5E,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;YACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,KAAK,MAAM,CAAC;QAC/C,CAAC;QAED,gBAAgB;QAChB,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACrC,CAAC;aAAM,IAAI,YAAY,EAAE,MAAM,EAAE,CAAC;YAC9B,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC;QACrD,CAAC;QAED,MAAM,mBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAEtC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;IAED,iBAAiB,CAAC,GAA4B;QAC1C,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC;YACf,OAAO;QACX,CAAC;QACD,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;YAC5B,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;gBAC3C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;gBACpC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;gBAC7C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC9F,IAAI,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE,CAAC;oBAC1D,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC9F,CAAC;qBAAM,CAAC;oBACJ,MAAM,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;oBAChD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;wBAC1B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;oBACnE,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC;oBAC9C,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;aAAM,IAAI,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACtC,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACxC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,wBAAwB;QAC1B,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;QACtE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;YACpB,OAAO,EAAE,CAAC;QACd,CAAC;QACD,MAAM,GAAG,GAAG,EAAE,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YACnC,IAAI,QAAQ,EAAE,MAAM,EAAE,CAAC;gBACnB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,uBAAuB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;oBACnE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,GAAG,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;oBACvE,IAAI,KAAK,EAAE,GAAG,EAAE,CAAC;wBACb,4BAA4B;wBAC5B,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;oBACnC,CAAC;gBACL,CAAC;gBAED,IACI,CAAC,IAAI,CAAC,MAAM,CAAC,uBAAuB,IAAI,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;oBAChE,QAAQ,CAAC,MAAM,CAAC,YAAY;oBAC5B,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC,SAAS,IAAI,QAAQ,CAAC,MAAM,CAAC,WAAW,KAAK,GAAG,CAAC,EACzF,CAAC;oBACC,mEAAmE;oBACnE,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;wBAC7D,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;4BACnC,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;gCACvB,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;4BAC3E,CAAC;wBACL,CAAC,CAAC,CAAC;oBACP,CAAC;oBAED,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACvB,CAAC;gBACD,IAAI,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;oBACjC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;gBACrC,CAAC;gBACD,IAAI,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;oBAC/B,gCAAgC;oBAChC,MAAM,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;oBACtE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;gBACrD,CAAC;YACL,CAAC;QACL,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,QAAgB;QAMvC,MAAM,MAAM,GAKR,EAKH,CAAC;QACF,qBAAqB;QACrB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;QAC1E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;QACxE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QAClE,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACvF,kDAAkD;QAClD,MAAM,IAAI,GAA6B,EAAE,CAAC;QAC1C,MAAM,QAAQ,GAAyD,EAAE,CAAC;QAC1E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACrD,CAAC;QACD,MAAM,YAAY,GAA0E,EAAE,CAAC;QAC/F,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACjE,CAAC;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5C,MAAM,GAAG,GAA2B,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAC3D,IAAI,KAAyD,CAAC;YAC9D,IAAI,SAAS,EAAE,IAAI,EAAE,CAAC;gBAClB,KAAK,GAAG,EAAE,CAAC;gBACX,0DAA0D;gBAC1D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC7C,8BAA8B;oBAC9B,MAAM,EAAE,GAAW,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;oBAC9D,IACI,EAAE,KAAK,GAAG,CAAC,GAAG;wBACd,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM;oBAC9B,gGAAgG;sBAClG,CAAC;wBACC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;oBACrC,CAAC;gBACL,CAAC;YACL,CAAC;YAED,IAAI,KAAK,EAAE,MAAM,EAAE,CAAC;gBAChB,sBAAsB;gBACtB,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU,IAAI,OAAO,GAAG,CAAC,MAAM,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;oBACrE,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;wBACvC,IAAI,OAAO,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE,CAAC;4BAClD,IAAI,IAAI,GAAgC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;4BAC5F,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gCAC3B,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC;4BACtC,CAAC;4BACD,iBAAiB,CACb;gCACI,IAAI;gCACJ,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI;gCACtC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;gCAC9D,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;gCAClE,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK;6BAC3C,EACD,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,EACjC,GAAG,EACH,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,IAAI,CAAC,IAAK,EACV,IAAI,CAAC,SAAS,EACd,IAAI,CACP,CAAC;wBACN,CAAC;oBACL,CAAC;gBACL,CAAC;gBAED,IAAI,CAAC;oBACD,cAAc,CACV,GAAG,CAAC,MAAM,CAAC,aAAa,EACxB,KAAK,EACL,GAAG,EACH,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,IAAI,CAAC,IAAK,EACV,IAAI,CAAC,SAAS,EACd,IAAI,CACP,CAAC;oBACF,cAAc,CACV,GAAG,CAAC,MAAM,CAAC,gBAAgB,EAC3B,IAAI,EACJ,GAAG,EACH,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,IAAI,CAAC,IAAK,EACV,IAAI,CAAC,SAAS,EACd,IAAI,CACP,CAAC;gBACN,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sCAAsC,GAAG,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC1E,CAAC;YACL,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,GAAG,SAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,WAAW,CAAC;QAC3E,MAAM,UAAU,GAAG,GAAG,SAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,aAAa,SAAU,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC;QAExG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YACpE,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;gBACrC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAClF,CAAC;iBAAM,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACxB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACrC,IAAI,CAAC,SAA4C,CAAC,GAAG,CAAC,GACnD,IAAI,CAAC,SACR,CAAC,GAAG,CAAC;yBACD,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;yBACvB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAC/B,CAAC,CAAC,CAAC;YACP,CAAC;YACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;gBACxB,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;YACnC,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;gBACtC,2EAA2E;gBAC3E,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACjC,KAAK,CAAC,GAAG,EAAE,CAAC;gBACZ,IAAI,CAAC,GAAG,GAAG,WAAW,KAAK,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACpD,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,4BAA4B;QAC5B,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;YACtB,IAAI,KAAK,GAAG,KAAK,CAAC;YAClB,KAAK,MAAM,EAAE,IAAI,UAAU,EAAE,CAAC;gBAC1B,IAAI,EAAE,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,EAAE,CAAC;oBACzD,KAAK,GAAG,IAAI,CAAC;oBACb,MAAM;gBACV,CAAC;YACL,CAAC;YACD,IAAI,CAAC,KAAK,EAAE,CAAC;gBACT,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC1B,CAAC;QACL,CAAC;QAED,wCAAwC;QACxC,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,KAAK,kBAAkB,CAAC,CAAC;QACvF,IAAI,UAAU,KAAK,CAAC,CAAC,EAAE,CAAC;YACpB,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACrC,CAAC;QAED,uBAAuB;QACvB,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;YAChC,IAAI,OAAO,QAAQ,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;gBACzC,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CACjC,QAAQ,CAAC,SAAS,EAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EACnD,YAAY,CACf,CAAC;YACN,CAAC;YAED,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;gBACjB,gDAAgD;gBAChD,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC;YACnC,CAAC;QACL,CAAC;QAED,oCAAoC;QACpC,oBAAoB;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5C,IAAI,CAAC;gBACD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,WAAW,KAAK,UAAU,EAAE,CAAC;oBACpE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;gBACjE,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,gCAAgC,QAAQ,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAChF,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACrB,MAAM,KAAK,GAAG,CACV,CAAC,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CACvF,CAAC,WAAW,EAAE,CAAC;YAEhB,MAAM,KAAK,GAAG,CACV,CAAC,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CACvF,CAAC,WAAW,EAAE,CAAC;YAEhB,IAAI,CAAC,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBACjD,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;oBAChB,OAAO,CAAC,CAAC;gBACb,CAAC;gBACD,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;oBAChB,OAAO,CAAC,CAAC,CAAC;gBACd,CAAC;gBACD,OAAO,CAAC,CAAC;YACb,CAAC;YACD,IAAI,CAAC,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,OAAO,CAAC,CAAC,CAAC;YACd,CAAC;YACD,IAAI,CAAC,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,OAAO,CAAC,CAAC;YACb,CAAC;YACD,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;gBACpB,OAAO,CAAC,CAAC;YACb,CAAC;YACD,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;gBACpB,OAAO,CAAC,CAAC,CAAC;YACd,CAAC;YACD,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;gBAChB,OAAO,CAAC,CAAC;YACb,CAAC;YACD,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;gBAChB,OAAO,CAAC,CAAC,CAAC;YACd,CAAC;YACD,IAAI,CAAC,CAAC,QAAQ,KAAK,SAAS,IAAI,CAAC,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;gBACvD,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;oBAC1B,OAAO,CAAC,CAAC;gBACb,CAAC;gBACD,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;oBAC1B,OAAO,CAAC,CAAC,CAAC;gBACd,CAAC;YACL,CAAC;YAED,OAAO,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAEjD,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;QAC9B,MAAM,CAAC,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC;QAC7D,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,WAAW,CAAC;QAChF,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;QACzB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAAY;QAC3B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAC1C,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CACpF,CAAC;QAEF,MAAM,KAAK,GAAG;YACV,wBAAwB,MAAM,CAAC,kBAAkB,GAAG;YACpD,iBAAiB,MAAM,CAAC,UAAU,IAAI;YACtC,UAAU,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG;YACjD,WAAW;YACX,qBAAqB,MAAM,CAAC,WAAW,GAAG;SAC7C,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAA,oBAAU,EAAC,GAAG,SAAS,IAAI,MAAM,aAAa,CAAC,EAAE,CAAC;YACtE,OAAO,GAAG,SAAS,IAAI,MAAM,6IAA6I,CAAC;QAC/K,CAAC;QACD,IAAI,CAAC,SAAS,KAAK,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,aAAa,CAAC,CAAC,QAAQ,EAAE,CAAC;QAEhF,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,8BAA8B,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;OAMG;IACH,WAAW,CACP,IAAY,EACZ,WAAgD,EAChD,YAAqD;QAErD,uBAAuB;QACvB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,MAAkD,CAAC;QAEvD,IAAI,IAAI,EAAE,CAAC;YACP,gCAAgC;YAChC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBACxC,4BAA4B;gBAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAEvC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACpD,cAAc;gBACd,IAAI,WAAW,KAAK,QAAQ,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;oBACzD,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;oBACjD,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACtB,CAAC;qBAAM,IAAI,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACrC,oBAAoB;oBACpB,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,YAAY,CAAC,kBAAkB,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;oBAC3F,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACtB,CAAC;YACL,CAAC;YAED,MAAM,KAAK,GAAuD,EAAE,CAAC;YACrE,MAAM,SAAS,GAAwC,EAAE,CAAC;YAE1D,4DAA4D;YAC5D,KAAK,MAAM,WAAW,IAAI,IAAI,EAAE,CAAC;gBAC7B,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;gBAE/E,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAEhE,IAAI,WAAW,EAAE,CAAC;oBACd,wBAAwB;oBACxB,SAAS,CAAC,WAAW,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;yBACjD,GAAG,CAAC,IAAI,CAAC,EAAE,CACR,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,kBAAkB,WAAW,GAAG,CAAC;wBACjD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC;wBACzC,CAAC,CAAC,EAAE,CACX;yBACA,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;oBAE1B,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC;wBACjC,OAAO,SAAS,CAAC,WAAW,CAAC,CAAC;oBAClC,CAAC;yBAAM,CAAC;wBACJ,KAAK,MAAM,QAAQ,IAAI,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC;4BAC5C,KAAK,CAAC,QAAQ,CAAC,GAAG;gCACd,QAAQ;gCACR,IAAI,EAAE,UAAU,CACZ,gBAAgB,EAChB,YAAY,CAAC,kBAAkB,QAAQ,EAAE,CAAC,EAC1C,YAAY,EACZ,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,IAAI,IAAI,CAChC;6BACJ,CAAC;wBACN,CAAC;oBACL,CAAC;gBACL,CAAC;YACL,CAAC;YACD,IAAI,SAAS,EAAE,CAAC;gBACZ,MAAM,GAAG,EAAE,CAAC;gBACZ,IAAI,KAAK,GAAG,CAAC,CAAC;gBACd,IAAI,SAAS,GAAG,EAAE,CAAC;gBACnB,oDAAoD;gBACpD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBAC/B,MAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC;oBACjC,SAAS,GAAG,SAAS,IAAI,GAAG,CAAC,IAAI,CAAC;oBAClC,KAAK,EAAE,CAAC;gBACZ,CAAC,CAAC,CAAC;gBACH,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;oBACZ,IAAI,GAAG,SAAS,CAAC;oBACjB,MAAM,GAAG,SAAS,CAAC;gBACvB,CAAC;YACL,CAAC;QACL,CAAC;QAED,OAAO,MAAM,IAAI,IAAI,CAAC;IAC1B,CAAC;IAED,aAAa;QACT,IAAI,QAAQ,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACnD,IAAI,CAAC,QAAQ,IAAI,QAAQ,KAAK,GAAG,EAAE,CAAC;YAChC,OAAO,EAAE,CAAC;QACd,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC9B,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,QAAQ,IAAI,GAAG,CAAC;QACpB,CAAC;QACD,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,SAAS;QACL,MAAM,MAAM,GAAG;YACX,oBAAoB,IAAI,CAAC,SAAS,IAAI;YACtC,qBAAqB,IAAI,CAAC,aAAa,EAAE,IAAI;YAC7C,yBAAyB;YACzB,0BAA0B,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG;YAC7C,qBAAqB,IAAI,CAAC,IAAI,IAAI;YAClC,kCAAkC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,GAAG;SACtF,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;YACpD,IAAI,UAAU,EAAE,CAAC;gBACb,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;oBAC5B,MAAM,CAAC,IAAI,CAAC,UAAU,IAAI,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC3D,CAAC;YACL,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED,SAAS,GAAG,CACR,QAA4B,EAC5B,QAA4B,EAC5B,EAA+E,EAC3E,EAAE;QACN,QAAQ,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;aACtB,QAAQ,EAAE;aACV,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC;aAC7B,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;aACnB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;aACnB,WAAW,EAAE,CAAC;QAEnB,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpE,IAAI,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC;YAC1D,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvC,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,KAAK,EAAE,CAAC;oBACtD,OAAO,GAAG,CAAC,CAAC;gBAChB,CAAC;qBAAM,CAAC;oBACJ,OAAO,GAAG,CAAC,CAAC;gBAChB,CAAC;YACL,CAAC;iBAAM,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;gBAC/C,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,MAAM,EAAE,CAAC;oBACvD,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;gBACpD,CAAC;qBAAM,CAAC;oBACJ,OAAO,GAAG,CAAC,CAAC;gBAChB,CAAC;YACL,CAAC;iBAAM,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;gBAC/C,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,MAAM,EAAE,CAAC;oBACvD,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;gBACpD,CAAC;qBAAM,CAAC;oBACJ,OAAO,GAAG,CAAC,CAAC;gBAChB,CAAC;YACL,CAAC;iBAAM,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,OAAO,EAAE,CAAC;gBAC/D,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;YACrD,CAAC;iBAAM,CAAC;gBACJ,OAAO,GAAG,CAAC,CAAC;YAChB,CAAC;YAED,IAAI,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CACL,IAAI,KAAK,CAAC,iCAAiC,OAAO,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,EAC9F,EAAE,SAAS,EAAE,KAAK,EAAE,CACvB,CAAC;YACN,CAAC;QACL,CAAC;QAED,KAAK,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,IAAI,EAAE,EAAE,CAAC,OAAgB,EAAQ,EAAE;YACzE,IAAI,CAAC,OAAO,EAAE,CAAC;gBACX,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;gBACvE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBAC5C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;YACvC,CAAC;iBAAM,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACnC,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACrC,CAAC;YAED,IAAI,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;YACzD,CAAC;YAED,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,QAAQ;QACJ,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;YACtB,OAAO;QACX,CAAC;QACD,MAAM,YAAY,GAAG,0BAAW,CAAC,OAAO,CAAC,yBAAO,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAEnE,IAAI,CAAC,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAEjD,kBAAQ,CAAC,GAAG,CAAC,IAAI,yBAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;QAEhD,kBAAQ,CAAC,aAAa,CAClB,CAAC,IAAkB,EAAE,IAAqE,EAAQ,EAAE;QAChG,gEAAgE;QAChE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAClC,CAAC;QAEF,kBAAQ,CAAC,eAAe,CACpB,CAAC,cAAsB,EAAE,IAAqD,EAAQ,EAAE,CACpF,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,CACjC,CAAC;QAEF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAA,uBAAY,GAAE,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,EAAE,CAAC,CAAC;QAC1C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,EAAE,CAAC,CAAC;QAE1C,wBAAwB;QACxB,IAAA,8BAAkB,EAAC,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;QAEzG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAClB,IAAA,yBAAO,EAAC;YACJ,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,iBAAiB,EAAE,IAAI;YACvB,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAa,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,cAAc;YAC7G,kCAAkC;YAClC,KAAK,EAAE,IAAI,CAAC,KAAM;SACrB,CAAC,CACL,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,kBAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,kBAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAA,uBAAK,GAAE,CAAC,CAAC;IACpC,CAAC;IAED;;;;;;OAMG;IACH,SAAS,CAAC,GAAY,EAAE,GAAa,EAAE,MAAc;QACjD,MAAM,MAAM,GAA0D,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAE/F,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,+DAA+D,CAAC,CAAC;YAC/E,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC7B,OAAO;QACX,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChD,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;YACpD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC7B,OAAO;QACX,CAAC;QAED,qGAAqG;QACrG,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;QAC5D,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAE/E,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACxD,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QACjD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,eAAe,CAAC,GAAY,EAAE,GAAa,EAAE,IAAyB;QAClE,IACI,IAAI,KAAK,IAAI;YACb,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;YACxC,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,EACnD,CAAC;YACC,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;gBACpB,GAAG,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;gBAC1C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;gBAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBACxC,OAAO;YACX,CAAC;YACD,sDAAsD;YACtD,IACI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;gBACxD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,EACvD,CAAC;gBACC,IAAI,IAAY,CAAC;gBACjB,0BAA0B;gBAC1B,IAAI,IAAA,oBAAU,EAAC,GAAG,SAAS,IAAI,MAAM,eAAe,CAAC,EAAE,CAAC;oBACpD,IAAI,GAAG,GAAG,SAAS,IAAI,MAAM,eAAe,CAAC;gBACjD,CAAC;qBAAM,CAAC;oBACJ,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;oBAClD,IAAI,GAAG,IAAA,gBAAI,EAAC,IAAA,mBAAO,EAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC,CAAC;gBAC1D,CAAC;gBACD,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,IAAI,CAAC,CAAC;YAC3C,CAAC;iBAAM,CAAC;gBACJ,mDAAmD;gBACnD,IAAI,IAAwB,CAAC;gBAC7B,IAAI,CAAC;oBACD,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;oBACjD,IAAI,GAAG,IAAA,gBAAI,EAAC,IAAA,mBAAO,EAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAC;gBACnD,CAAC;gBAAC,MAAM,CAAC;oBACL,SAAS;gBACb,CAAC;gBAED,IAAI,IAAI,IAAI,IAAA,oBAAU,EAAC,IAAI,CAAC,EAAE,CAAC;oBAC3B,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,IAAI,CAAC,CAAC;gBAC3C,CAAC;qBAAM,CAAC;oBACJ,IAAI,CAAC;wBACD,8BAA8B;wBAC9B,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;wBAChD,MAAM,OAAO,GAAG,IAAA,gBAAI,EAAC,IAAA,mBAAO,EAAC,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC;wBAChD,IAAI,IAAA,oBAAU,EAAC,GAAG,OAAO,kBAAkB,CAAC,EAAE,CAAC;4BAC3C,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,GAAG,OAAO,kBAAkB,CAAC,CAAC;wBACnE,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,GAAG,OAAO,cAAc,CAAC,CAAC;wBAC/D,CAAC;oBACL,CAAC;oBAAC,MAAM,CAAC;wBACL,IAAI,CAAC;4BACD,8CAA8C;4BAC9C,IAAI,CAAC,YAAY,GAAG,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,sBAAsB,CAAC,CAAC;wBACnF,CAAC;wBAAC,OAAO,CAAC,EAAE,CAAC;4BACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6BAA6B,CAAC,EAAE,CAAC,CAAC;4BACjD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;wBAC9B,CAAC;oBACL,CAAC;gBACL,CAAC;YACL,CAAC;YAED,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;gBACpB,GAAG,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;gBAC1C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;gBAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBACxC,OAAO;YACX,CAAC;YACD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;YAC1B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;YACtB,OAAO;QACX,CAAC;QACD,IAAI,EAAE,CAAC;IACX,CAAC;IAED,aAAa,CAAC,GAAqB;QAC/B,MAAM,QAAQ,GACV,OAAO,GAAG,KAAK,QAAQ;YACnB,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QAE5F,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACpB,OAAO,QAAQ,CAAC;QACpB,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;YAChC,uBAAuB;YACvB,IAAI,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,wBAAwB,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;YACvG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;gBAC1D,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,wBAAwB,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;YACzG,CAAC;YAED,IAAI,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;gBAC5E,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,WAAW,EAAE,CAAC,CAAC;gBAC7C,OAAO,WAAW,CAAC;YACvB,CAAC;YACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iBAAiB,QAAQ,yDAAyD,CAAC,CAAC;QACvG,CAAC;QAED,OAAO,EAAE,CAAC;IACd,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,IAAwB;QAC7C,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,OAAO,EAAE,EAAE,CAAC,CAAC;YAC9D,OAAO,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAClE,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,IAAI,IAAI,OAAO,gBAAgB,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,OAAO,EAAE,CAAC;IACd,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,GAAY,EAAE,GAAa;QAChD,MAAM,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7C,MAAM,KAAK,GAAqC,EAAE,CAAC;QACnD,IAAI,MAAM,EAAE,CAAC;YACT,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACpC,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACnC,KAAK,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;gBACtG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC;oBAC9B,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;gBAC5B,CAAC;qBAAM,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC;oBACtC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;gBAC7B,CAAC;YACL,CAAC;QACL,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACnB,4BAA4B;YAC5B,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAClD,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,eAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC;qBAC9E,QAAQ,EAAE;qBACV,KAAK,CAAC,GAAG,CAAC,CAAC;gBAEhB,IAAI,CAAC,SAAS,CACV,IAAI,EACJ,IAAI,EACJ,KAAK,EAAE,IAAkB,EAAE,MAA8C,EAAiB,EAAE;oBACxF,IAAI,MAAM,EAAE,SAAS,EAAE,CAAC;wBACpB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;wBAC7E,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;oBAC/B,CAAC;yBAAM,CAAC;wBACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;oBACpD,CAAC;gBACL,CAAC,CACJ,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;YACpD,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7E,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QAC/B,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAA6B,EAAE,KAA6B;QAC3E,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACtD,MAAM,cAAc,GAChB,GAAG;gBACF,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAyC;gBACjG,SAAS,CAAC;YAEd,IAAI,cAAc,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;gBAC3D,KAAK,KAAK,MAAM,IAAI,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,QAAQ,CAAC,CAAC;gBAC3E,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC;gBAClC,IAAI,KAAK,EAAE,GAAG,EAAE,CAAC;oBACb,IAAI,CAAC,SAAS,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;oBAClD,OAAO;gBACX,CAAC;YACL,CAAC;iBAAM,IAAI,cAAc,EAAE,MAAM,EAAE,OAAO,IAAI,cAAc,CAAC,MAAM,EAAE,CAAC;gBAClE,IAAI,CAAC,SAAS,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;gBAClD,OAAO;YACX,CAAC;QACL,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,IAAY;QAC9B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,IAAI,CAAC,SAAS,yBAAyB,CAAC,CAAC;QAEzG,OAAO,IAAI;aACN,QAAQ,EAAE;aACV,UAAU,CAAC,kBAAkB,EAAE,IAAI,CAAC,YAAY,CAAC;aACjD,UAAU,CAAC,4BAA4B,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;aACvE,UAAU,CAAC,4BAA4B,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;aACvE,UAAU,CAAC,4BAA4B,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,IAAI,EAAE,CAAC;aAClF,UAAU,CACP,4BAA4B,EAC5B,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,iBAAiB,CAAC,CAAC,CAAC,EAAE,CACrF;aACA,UAAU,CAAC,uBAAuB,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;aACnF,UAAU,CAAC,uBAAuB,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;aACnF,UAAU,CAAC,mBAAmB,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;aAChD,UAAU,CAAC,iBAAiB,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACnF,CAAC;IAED,OAAO,CAAC,GAAa,EAAE,QAAgB,EAAE,OAAgB;QACrD,IAAI,CAAC,WAAW;YACZ,IAAI,CAAC,WAAW;gBAChB,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,WAAW,CAAC;qBAC1C,QAAQ,EAAE;qBACV,OAAO,CAAC,oBAAoB,EAAE,mBAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,CAAC;qBACnF,OAAO,CAAC,aAAa,EAAE,mBAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,CAAC;QAExE,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAC3C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAChB,IAAI,CAAC,WAAW,CAAC,OAAO,CACpB,UAAU,EACV,mBAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;YACrD,CAAC,OAAO,IAAI,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CACxE,CACJ,CAAC;IACN,CAAC;IAED,KAAK,CAAC,aAAa;QACf,IAAI,CAAC,uBAAuB,CAAC,eAAe,CAAC,CAAC;QAE9C,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAa,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC;QAElE,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC;QACzB,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;YACjE,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;QACzC,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,mBAAmB,CAAC;QACzE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YACtD,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,eAAe,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QACvE,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACnB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;YAC/B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAA,qBAAW,GAAE,CAAC,CAAC;YAEtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;YAC3C,6CAA6C;YAC7C,6EAA6E;YAC7E,2FAA2F;YAC3F;;;;;cAKE;YAEF,oBAAoB;YACpB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAQ,EAAE,CAC7E,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CACvC,CAAC;YAEF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAY,EAAE,IAAc,EAAE,IAAkB,EAAQ,EAAE;gBAC9E,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;oBAClC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;gBAChE,CAAC;gBACD,IAAI,EAAE,CAAC;YACX,CAAC,CAAC,CAAC;YAEH,4BAA4B;YAC5B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAClB,cAAc,EACd,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAChG,CAAC;YACF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAClB,UAAU,EACV,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAChG,CAAC;YAEF,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;gBACnB,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAEhB;;;;;;;;mBAQG;gBACH,MAAM,YAAY,GAAG,CACjB,GAAY,EACZ,GAAa,EACb,IAAkB,EAClB,QAAgB,EAChB,MAAc,EACV,EAAE;oBACN,kBAAQ,CAAC,YAAY,CACjB,OAAO,EACP,CACI,GAAQ,EACR,IAAkD,EAG9C,EAAE;wBACN,eAAe;wBACf,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;4BAC5C,qBAAqB;4BACrB,MAAM,QAAQ,GAA4B,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;gCAC1E,CAAC,CAAE,IAAI,CAAC,IAAgC;gCACxC,CAAC,CAAC,eAAe,IAAI,CAAC,IAAI,EAAE,CAAC;4BACjC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;4BACf,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gCACxD,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;oCAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC;gCAC1D,CAAC;qCAAM,CAAC;oCACJ,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;gCACzB,CAAC;4BACL,CAAC;iCAAM,CAAC;gCACJ,MAAM,OAAO,GAAuB,IAAI,CAAC,SAAS;oCAC9C,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAW,EAAE,CAClD,IAAI,CAAC,SAAU,CAAC,OAAmC,CAAC;wCAChD,CAAC,CAAC,IAAI,CAAC,SAAU,CACX,OAAmC,CACtC,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;wCACrC,CAAC,CAAC,KAAK,CACd;oCACH,CAAC,CAAC,SAAS,CAAC;gCAChB,IACI,OAAO;oCACP,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CACxC,OAAmC,CACtC,EACH,CAAC;oCACC,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;wCAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC;oCAC1D,CAAC;yCAAM,CAAC;wCACJ,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;oCACzB,CAAC;gCACL,CAAC;4BACL,CAAC;4BACD,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;gCACd,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,QAAQ,0BAA0B,CAAC,CAAC;4BAC9D,CAAC;iCAAM,CAAC;gCACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,QAAQ,gBAAgB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;gCAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;4BAC3D,CAAC;wBACL,CAAC;wBAED,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;4BAChC,IAAI,GAAG,EAAE,CAAC;gCACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;gCAC3C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC;gCACrD,OAAO;4BACX,CAAC;4BACD,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;gCACd,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;gCAChC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC;gCACrD,OAAO;4BACX,CAAC;wBACL,CAAC;6BAAM,CAAC;4BACJ,IAAI,GAAG,EAAE,CAAC;gCACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;gCAC3C,GAAG,CAAC,QAAQ,CAAC,oBAAoB,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;gCAC1E,OAAO;4BACX,CAAC;4BACD,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;gCACd,GAAG,CAAC,QAAQ,CAAC,oBAAoB,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;gCAC1E,OAAO;4BACX,CAAC;wBACL,CAAC;wBAED,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,GAAsB,EAAQ,EAAE;4BACnD,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gCAChC,IAAI,GAAG,EAAE,CAAC;oCACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;oCAC3C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC;oCACrD,OAAO;gCACX,CAAC;4BACL,CAAC;iCAAM,CAAC;gCACJ,IAAI,GAAG,EAAE,CAAC;oCACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;oCAC3C,GAAG,CAAC,QAAQ,CAAC,oBAAoB,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;oCAC1E,OAAO;gCACX,CAAC;4BACL,CAAC;4BACD,IAAI,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;gCACxB,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM;oCACrB,CAAE,IAAI,CAAC,MAAM,CAAC,GAAc,IAAI,IAAI,CAAC,GAAG,aAAa;wCACjD,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAC,GAAc,IAAI,IAAI,CAAC,GAAG,IAAI;wCAC9C,CAAC,CAAC,aAAa,GAAG,IAAI,CAAC;4BACnC,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAE,IAAI,CAAC,MAAM,CAAC,GAAc,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC;4BAC7E,CAAC;4BACD,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gCAChC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;4BACjD,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;4BAC3B,CAAC;wBACL,CAAC,CAAC,CAAC;oBACP,CAAC,CACJ,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;gBACtB,CAAC,CAAC;gBAEF;;;;;;;mBAOG;gBACH,MAAM,0BAA0B,GAAG,CAC/B,GAAY,EACZ,GAAa,EACb,IAAkB,EAClB,QAAgB,EACZ,EAAE;oBACN,IAAI,IAAI,CAAC;oBACT,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;wBACxC,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;wBAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;wBACzB,OAAO;oBACX,CAAC;oBACD,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;wBAChD,oFAAoF;wBACpF,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBACzC,KAAK,CAAC,KAAK,EAAE,CAAC;wBAEd,qEAAqE;wBACrE,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;4BACrB,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;4BAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;4BACzB,OAAO;wBACX,CAAC;oBACL,CAAC;oBAED,MAAM,WAAW,GAAW,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;oBAEpD,uBAAuB;oBACvB,IAAI,CAAC,WAAW,EAAE,CAAC;wBACf,IAAI,IAAI,EAAE,CAAC;4BACP,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAChB,sBAAsB,UAAU,kEAAkE,CACrG,CAAC;4BACF,OAAO;wBACX,CAAC;wBAED,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;4BACxB,uEAAuE;4BACvE,GAAG,CAAC,GAAG,CAAC,kBAAkB,EAAE,uDAAuD,CAAC,CAAC;4BACrF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qEAAqE,CAAC,CAAC;4BAC5F,OAAO;wBACX,CAAC;wBAED,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;wBACvB,OAAO;oBACX,CAAC;oBAED,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;wBAC/C,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;oBAC5F,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,eAAe,CAAC,CAAC;oBAC1B,CAAC;gBACL,CAAC,CAAC;gBAEF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAQ,EAAE;oBACxF,IAAI,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;oBAEpC,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;oBACzD,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;oBACzD,GAAG,CAAC,IAAI,CAAC,YAAY;wBACjB,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,MAAM;4BAChC,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI;4BAC9B,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;oBAEnC,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;wBAC1E,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBAClC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;wBACpC,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC/B,CAAC;oBAED,qEAAqE;oBACrE,GAAG,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;oBAEhC,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC;gBAC3E,CAAC,CAAC,CAAC;gBAEH,4CAA4C;gBAC5C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAQ,EAAE;oBAC3F,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;oBACzD,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;oBACzD,GAAG,CAAC,IAAI,CAAC,YAAY;wBACjB,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,MAAM;4BAChC,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI;4BAC9B,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;oBAEnC,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC;gBACrE,CAAC,CAAC,CAAC;gBAEH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE;oBACpE,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oBACvC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE;wBACZ,IAAI,KAAK,EAAE,CAAC;4BACR,GAAG,CAAC,QAAQ,CAAC,wCAAwC,CAAC,CAAC;wBAC3D,CAAC;6BAAM,CAAC;4BACJ,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;wBAC7B,CAAC;oBACL,CAAC,CAAC,CAAC;gBACP,CAAC,CAAC,CAAC;gBAEH,oDAAoD;gBACpD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAQ,EAAE;oBAC5C,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBAE1C,MAAM,eAAe,GACjB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;oBAEvF,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;wBAClB,gDAAgD;wBAChD,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;wBAClD,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;wBACrC,OAAO;oBACX,CAAC;oBAED,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;wBAClB,gDAAgD;wBAChD,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;wBAC5C,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;wBACzB,OAAO;oBACX,CAAC;oBAED,wBAAwB;oBACxB,IAAI,CAAC,eAAe,IAAI,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;wBAClD,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;wBACxC,GAAG,CAAC,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,oBAAoB,CAAC,CAAC,CAAC;wBACnE,OAAO;oBACX,CAAC;oBACD,IAAI,CAAC,eAAe,IAAI,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;wBACpD,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;wBAC5C,GAAG,CAAC,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,sBAAsB,CAAC,CAAC,CAAC;wBACrE,OAAO;oBACX,CAAC;oBACD,wDAAwD;oBACxD,IACI,eAAe;wBACf,0BAA0B,CAAC,IAAI,CAAC,GAAG,CAAC;wBACpC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC;wBACpB,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC;wBAC7B,GAAG,CAAC,QAAQ,CAAC,qBAAqB,CAAC;wBACnC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,EAC3B,CAAC;wBACC,IAAI,EAAE,CAAC;wBACP,OAAO;oBACX,CAAC;oBACD,IACI,IAAI,CAAC,MAAM,CAAC,SAAS;wBACrB,OAAO,GAAG,CAAC,OAAO,CAAC,aAAa,KAAK,QAAQ;wBAC7C,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,EAC/C,CAAC;wBACC,+DAA+D;wBAC/D,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;wBACxD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,eAAM,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBAE/E,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;wBAE1B,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;wBAC1B,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;wBAC7B,GAAG,CAAC,IAAI,CAAC,YAAY;4BACjB,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,MAAM;gCAChC,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI;gCAC9B,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;wBAEnC,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC;wBAC9C,MAAM,QAAQ,GAAG,GAAG,CAAC,WAAW,CAAC;wBAEjC,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;oBACnD,CAAC;yBAAM,CAAC;wBACJ,6EAA6E;wBAC7E,0BAA0B,CACtB,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,UAAU,SAAS,kBAAkB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAC9D,CAAC;oBACN,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,8BAA8B;gBAC9B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE;oBACrE,MAAM,eAAe,GACjB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;oBAEvF,IAAI,eAAe,EAAE,CAAC;wBAClB,eAAe;wBACf,MAAM,MAAM,GAA2B,EAAE,CAAC;wBAC1C,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBACpD,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;4BACjB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;4BACtC,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,kBAAkB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;wBAC9E,CAAC,CAAC,CAAC;wBAEH,IAAI,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC;wBACtC,IAAI,CAAC,WAAW,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;4BACnE,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC1D,CAAC;wBACD,IAAI,CAAC,WAAW,IAAI,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC;4BACnC,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,KAAe,CAAC;wBAC5C,CAAC;wBAED,uCAAuC;wBACvC,IAAI,WAAW,EAAE,CAAC;4BACd,+BAA+B;4BAC/B,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,EAAE;gCACxD,MAAM,MAAM,GAAG,aAAgD,CAAC;gCAChE,IAAI,MAAM,EAAE,CAAC;oCACT,wCAAwC;oCACxC,GAAG,CAAC,IAAI,CAAC;wCACL,OAAO,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE;wCAC5C,cAAc,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE;wCACnD,IAAI,EAAE,MAAM,CAAC,IAAI;qCACpB,CAAC,CAAC;gCACP,CAAC;qCAAM,CAAC;oCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;gCAChD,CAAC;4BACL,CAAC,CAAC,CAAC;4BACH,OAAO;wBACX,CAAC;wBAED,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;4BACxB,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAC9B,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAClD,IAAI,CAAC,MAAM,CACd,CAAC;4BACF,IAAI,SAAS,EAAE,CAAC;gCACZ,IAAI,CAAC,KAAK,EAAE,GAAG,CACX,SAAS,EACT,CACI,GAAiB,EACjB,OAUC,EACG,EAAE;oCACN,6IAA6I;oCAC7I,IAAI,OAAO,EAAE,CAAC;wCACV,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;oCAC/E,CAAC;yCAAM,CAAC;wCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;oCAChD,CAAC;gCACL,CAAC,CACJ,CAAC;4BACN,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;4BAChD,CAAC;wBACL,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;gCACZ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;4BAChD,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;4BACjC,CAAC;wBACL,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;oBAChD,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,OAAO;gBACP,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAQ,EAAE;oBAChG,MAAM,eAAe,GACjB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;oBAEvF,IAAI,eAAe,EAAE,CAAC;wBAClB,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;wBACpB,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBACpD,MAAM,MAAM,GAA2B,EAAE,CAAC;wBAC1C,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;4BACjB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;4BACtC,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,kBAAkB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;wBAC9E,CAAC,CAAC,CAAC;wBAEH,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;4BACxB,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAC9B,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAClD,IAAI,CAAC,MAAM,CACd,CAAC;4BACF,IAAI,SAAS,EAAE,CAAC;gCACZ,IAAI,CAAC,KAAK,EAAE,GAAG,CACX,SAAS,EACT,CACI,IAAkB,EAClB,GAUC,EACG,EAAE;oCACN,6IAA6I;oCAC7I,IAAI,GAAG,EAAE,CAAC;wCACN,MAAM,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;wCAC3B,OAAO,CAAC,eAAe,CACnB,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,CAC/D,CAAC;wCAEF,GAAG,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;wCAC3C,IAAI,CAAC,GAAG,CAAC,KAAK,CACV,WAAW,GAAG,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAC/D,CAAC;wCAEF,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;wCACrC,0GAA0G;wCAC1G,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;oCACvE,CAAC;yCAAM,CAAC;wCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;oCAC3C,CAAC;gCACL,CAAC,CACJ,CAAC;4BACN,CAAC;iCAAM,CAAC;gCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;4BAC3C,CAAC;wBACL,CAAC;6BAAM,CAAC;4BACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;wBAC3C,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,0BAA0B,CACtB,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,UAAU,SAAS,kBAAkB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAC9D,CAAC;oBACN,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE;oBACjF,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBAC7B,CAAC,CAAC,CAAC;gBACH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC3F,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;gBAE5F,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC;oBAC/B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;wBACtC,MAAM,QAAQ,GAAG,CACb,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC;4BAC9B,GAAG,CAAC,UAAU,CAAC,aAAa;4BAC5B,EAAE,CACL,CAAC,QAAQ,EAAE,CAAC;wBACb,IAAI,WAA+B,CAAC;wBACpC,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;4BAChC,WAAW;gCACP,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,wBAAwB,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;oCACrF,SAAS,CAAC;4BACd,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;gCAC1D,WAAW;oCACP,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,wBAAwB,CACtC,WAAW,EACX,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAChC,IAAI,SAAS,CAAC;4BACvB,CAAC;4BACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,WAAW,EAAE,CAAC,CAAC;wBACjD,CAAC;wBAED,IAAI,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;4BAC9D,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;wBACjF,CAAC;6BAAM,CAAC;4BACJ,GAAG,CAAC,KAAK,CACL,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,wBAAwB;4BAClF,CACI,GAAG,EACL,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CACjB,CAAC;wBACN,CAAC;oBACL,CAAC,CAAC,CAAC;gBACP,CAAC;YACL,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;gBAC7B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;gBAClD,wBAAwB;gBACxB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,iBAAiB,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;oBAC3F,IAAI,CAAC;wBACD,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,OAAiB,CAAC;wBAC/C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,SAAS,EAAE;4BACpD,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;yBACjF,CAAC,CAAC;wBACH,IAAI,CAAC,GAAG,EAAE,CAAC;4BACP,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;wBACjC,CAAC;6BAAM,CAAC;4BACJ,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE;gCACrD,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;6BACjF,CAAC,CAAC;4BACH,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gCACxC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;gCACtC,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gCACrC,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;oCAC/B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;gCAChD,CAAC;qCAAM,CAAC;oCACJ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAChB,KAAK,CAAC,GAAG,KAAK,SAAS;wCACnB,CAAC,CAAC,WAAW;wCACb,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,IAAI;4CAClB,CAAC,CAAC,MAAM;4CACR,CAAC,CAAC,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;gDAC7B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC;gDAC3B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CACjC,CAAC;gCACN,CAAC;4BACL,CAAC;iCAAM,CAAC;gCACJ,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;4BACjC,CAAC;wBACL,CAAC;oBACL,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;gBACL,CAAC,CAAC,CAAC;gBACH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;oBAC5F,IAAI,CAAC;wBACD,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,OAAiB,CAAC;wBAC/C,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;4BACpB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;4BACvC,OAAO;wBACX,CAAC;wBACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,SAAS,EAAE;4BACpD,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;yBACjF,CAAC,CAAC;wBACH,IAAI,CAAC,GAAG,EAAE,CAAC;4BACP,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;wBACjC,CAAC;6BAAM,CAAC;4BACJ,YAAY;4BACZ,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC;4BACtC,IAAI,IAA4B,CAAC;4BACjC,IAAI,CAAC;gCACD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gCAChD,IAAI,WAAW,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;oCAChC,IAAI,GAAG,WAAW,CAAC;gCACvB,CAAC;qCAAM,CAAC;oCACJ,IAAI,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;gCACpC,CAAC;4BACL,CAAC;4BAAC,MAAM,CAAC;gCACL,gBAAgB;gCAChB,IAAI,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;4BACpC,CAAC;4BACD,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gCAC/B,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC,GAAa,CAAC,CAAC;4BAC9C,CAAC;iCAAM,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gCACvC,IAAI,CAAC,GAAG;oCACJ,IAAI,CAAC,GAAG,KAAK,IAAI;wCACjB,IAAI,CAAC,GAAG,KAAK,MAAM;wCACnB,IAAI,CAAC,GAAG,KAAK,CAAC;wCACd,IAAI,CAAC,GAAG,KAAK,GAAG;wCAChB,IAAI,CAAC,GAAG,KAAK,IAAI;wCACjB,IAAI,CAAC,GAAG,KAAK,IAAI;wCACjB,IAAI,CAAC,GAAG,KAAK,IAAI;wCACjB,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC;4BAC1B,CAAC;4BACD,MAAM,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;4BACjD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;wBAC5C,CAAC;oBACL,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;gBAC9B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;gBAC9C,yEAAyE;gBACzE,2EAA2E;gBAC3E,mFAAmF;gBACnF,mFAAmF;gBACnF,oFAAoF;gBACpF,gFAAgF;gBAChF,qDAAqD;gBACrD,oBAAoB;gBACpB,8EAA8E;gBAC9E,8FAA8F;gBAC9F,uFAAuF;gBACvF,iFAAiF;gBACjF,6FAA6F;gBAC7F,8EAA8E;gBAC9E,yDAAyD;gBACzD,8EAA8E;gBAC9E,8EAA8E;gBAC9E,2DAA2D;gBAC3D,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;oBAC7F,IAAI,CAAC;wBACD,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAkB,CAAC;wBAC/C,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;4BACnB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;4BAC9C,OAAO;wBACX,CAAC;wBACD,gFAAgF;wBAChF,qEAAqE;wBACrE,MAAM,OAAO,GAAI,GAAG,CAAC,KAAK,CAAC,IAA2B,IAAI,OAAO,CAAC;wBAClE,MAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,CAAC;wBACnC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAE,OAA+B,CAAC;wBACrE,MAAM,UAAU,GAAI,GAAG,CAAC,KAAK,CAAC,UAA8C,IAAI,SAAS,CAAC;wBAC1F,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC,KAA2B,CAAC;wBACzD,MAAM,YAAY,GAAG,CAAC,CAAqB,EAAW,EAAE,CACpD,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,OAAO,IAAI,CAAC,KAAK,GAAG,CAAC;wBAClD,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,MAA4B,CAAC,CAAC;wBAC3E,MAAM,eAAe,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,QAA8B,CAAC,CAAC;wBAC/E,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,MAA4B,CAAC,CAAC;wBAC3E,IAAI,KAAK,GAAG,GAAG,CAAC;wBAChB,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;4BAC3B,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;4BACjC,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;gCAC5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;gCAC5C,OAAO;4BACX,CAAC;4BACD,oEAAoE;4BACpE,uEAAuE;4BACvE,kEAAkE;4BAClE,yEAAyE;4BACzE,iDAAiD;4BACjD,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;gCACZ,KAAK,GAAG,CAAC,CAAC;4BACd,CAAC;wBACL,CAAC;wBAED,MAAM,OAAO,GAAG;4BACZ,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;yBACjF,CAAC;wBACF,IAAI,OAA2C,CAAC;wBAChD,IAAI,CAAC,QAAQ,EAAE,CAAC;4BACZ,gEAAgE;4BAChE,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,sBAAsB,CACxC,QAAQ,EACR,IAA2B,EAC3B,IAAI,EACJ,OAAO,CACV,CAAuC,CAAC;wBAC7C,CAAC;6BAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;4BACjC,oEAAoE;4BACpE,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;4BAChE,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAyB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;wBACnE,CAAC;6BAAM,CAAC;4BACJ,0EAA0E;4BAC1E,gFAAgF;4BAChF,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;4BACtC,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;4BAC9C,MAAM,KAAK,GAAG,IAAI,MAAM,CACpB,IAAI,QAAQ,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAC7E,CAAC;4BACF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,kBAAkB,CACtC;gCACI,QAAQ,EAAE,MAAM;gCAChB,MAAM,EAAE,GAAG,MAAM,GAAG;gCACpB,YAAY,EAAE,IAAI;6BACrB,EACD,OAAO,CACV,CAAC;4BACF,OAAO,GAAG,EAAE,CAAC;4BACb,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;gCACjC,IAAI,GAAG,EAAE,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;oCACnC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,KAA2B,CAAC;gCACtD,CAAC;4BACL,CAAC;wBACL,CAAC;wBAED,IAAI,MAAM,GAAyB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;wBAC1D,uEAAuE;wBACvE,uEAAuE;wBACvE,+CAA+C;wBAC/C,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;wBACrD,IAAI,CAAC,aAAa,EAAE,CAAC;4BACjB,mEAAmE;4BACnE,MAAM,GAAG,MAAM,CAAC,MAAM,CAClB,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,CAC1E,CAAC;wBACN,CAAC;wBACD,IAAI,KAAK,EAAE,CAAC;4BACR,oEAAoE;4BACpE,0EAA0E;4BAC1E,gEAAgE;4BAChE,MAAM,IAAI,GAAG,IAAI,GAAG,EAA8B,CAAC;4BACnD,MAAM,QAAQ,GAAG,IAAI,GAAG,EAA8B,CAAC;4BACvD,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;gCACvB,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gCACjC,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,EAAE,CAAC;oCACxB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;gCAC3B,CAAC;qCAAM,CAAC;oCACJ,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oCACnD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;wCAC5B,+DAA+D;wCAC/D,8DAA8D;wCAC9D,wDAAwD;wCACxD,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE;4CACrB,GAAG,EAAE,UAAU;4CACf,IAAI,EAAE,SAAS;yCACe,CAAC,CAAC;oCACxC,CAAC;gCACL,CAAC;4BACL,CAAC;4BACD,qEAAqE;4BACrE,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;gCAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;4BACxB,CAAC;4BACD,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;wBACtD,CAAC;wBACD,IAAI,UAAU,EAAE,CAAC;4BACb,mEAAmE;4BACnE,sDAAsD;4BACtD,MAAM,GAAG,MAAM,CAAC,MAAM,CAClB,GAAG,CAAC,EAAE,CACF,GAAG,CAAC,IAAI,KAAM,SAAiC;gCAC9C,GAAG,CAAC,MAAyC,EAAE,IAAI,KAAK,UAAU,CAC1E,CAAC;wBACN,CAAC;wBACD,IAAI,CAAC,eAAe,IAAI,CAAC,aAAa,EAAE,CAAC;4BACrC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gCACtB,MAAM,IAAI,GAAG,GAAmD,CAAC;gCACjE,IAAI,eAAe,EAAE,CAAC;oCAClB,sBAAsB;oCACtB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;oCAC1C,OAAO,IAAqC,CAAC;gCACjD,CAAC;gCACD,+DAA+D;gCAC/D,MAAM,IAAI,GAA4B;oCAClC,GAAG,EAAE,IAAI,CAAC,GAAG;oCACb,IAAI,EAAE,IAAI,CAAC,IAAI;oCACf,MAAM,EAAE,IAAI,CAAC,MAAM;iCACtB,CAAC;gCACF,IAAI,aAAa,EAAE,CAAC;oCAChB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;gCAC9B,CAAC;gCACD,OAAO,IAAqC,CAAC;4BACjD,CAAC,CAAC,CAAC;wBACP,CAAC;wBACD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAEpE,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;wBAC5C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;wBACrC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;oBACjD,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;YAED,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,uBAAuB,EAAE,CAAC,GAAY,EAAE,GAAa,EAAQ,EAAE;gBAClF,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;gBAClD,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gBACrC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;YAC3C,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;gBACxF,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;gBAC5C,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gBACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAC1C,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CACpF,CAAC;gBACF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1D,CAAC,CAAC,CAAC;YAEH,IAAI,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,CAAC;gBACnC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;oBACtC,GAAG,CAAC,MAAM,CACN,6BAA6B,EAC7B,IAAI,CAAC,MAAM,CAAC,wBAAwB,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAC7D,CAAC;oBACF,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;oBAClF,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;oBAClF,GAAG,CAAC,MAAM,CACN,kCAAkC,EAClC,IAAI,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAC/D,CAAC;oBACF,IAAI,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,CAAC;wBACzC,GAAG,CAAC,MAAM,CAAC,+BAA+B,EAAE,IAAI,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;oBACxF,CAAC;oBACD,IAAI,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;wBAClC,GAAG,CAAC,MAAM,CAAC,wBAAwB,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,CAAC;oBACrF,CAAC;oBAED,2BAA2B;oBAC3B,IAAI,SAAS,KAAK,GAAG,CAAC,MAAM,EAAE,CAAC;wBAC3B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,CAAC;yBAAM,CAAC;wBACJ,IAAI,EAAE,CAAC;oBACX,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;iBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;gBACnE,cAAc;gBACd,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;oBACtC,GAAG,CAAC,MAAM,CAAC,6BAA6B,EAAE,GAAG,CAAC,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC;oBACrE,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,6BAA6B,CAAC,CAAC;oBAC1E,GAAG,CAAC,MAAM,CACN,8BAA8B,EAC9B,kEAAkE,CACrE,CAAC;oBACF,GAAG,CAAC,MAAM,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC;oBAEvD,2BAA2B;oBAC3B,IAAI,SAAS,KAAK,GAAG,CAAC,MAAM,EAAE,CAAC;wBAC3B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,CAAC;yBAAM,CAAC;wBACJ,IAAI,EAAE,CAAC;oBACX,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;YAED,MAAM,UAAU,GAAwB,EAAE,CAAC;YAC3C,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;gBACpB,UAAU,CAAC,MAAM,GAAG,WAAW,CAAC,CAAC,WAAW;YAChD,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC;oBAC5B,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG;oBACvB,OAAO,EAAE,IAAI;oBACb,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;iBAC7B,CAAC,CAAC;gBACH,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,MAAM,SAAS,CAAC,IAAI,EAAE,CAAwC,CAAC;YAC5F,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6BAA6B,GAAG,EAAE,CAAC,CAAC;gBACnD,IAAI,CAAC,SAAS;oBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;oBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;gBAC7D,OAAO;YACX,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;gBACzB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;gBAC3C,IAAI,CAAC,SAAS;oBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;oBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;gBAC7D,OAAO;YACX,CAAC;YAED,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;QACpD,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAC/B,IAAI,CAAC,SAAS;gBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;gBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;QACjE,CAAC;QAED,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;YACxB,IAAI,eAAe,GAAG,KAAK,CAAC;YAC5B,IAAI,UAAkB,CAAC;YACvB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE;gBAClC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,UAAU,IAAI,IAAI,EAAE,CAAC;oBACxD,IAAI,CAAC,GAAG,CAAC,KAAK,CACV,6DAA6D,UAAU,KAAK;wBACxE,gFAAgF;wBAChF,+EAA+E,CACtF,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,0BAA0B,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,SAAS,IAAI,UAAU,KAAK,CAAC,EAAE,CAAC,CAAC;gBAClG,CAAC;gBACD,IAAI,CAAC,eAAe,EAAE,CAAC;oBACnB,IAAI,CAAC,SAAS;wBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;wBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;gBACjE,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAc,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC;YACpE,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAE9B,IAAI,CAAC,OAAO,CACR,IAAI,CAAC,MAAM,CAAC,IAAI,EAChB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,SAAS,EAC/F,IAAI,CAAC,EAAE;gBACH,IAAI,GAAG,QAAQ,CAAC,IAAyB,EAAE,EAAE,CAAC,CAAC;gBAC/C,IAAI,IAAI,KAAK,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;oBAC5B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,iBAAiB,CAAC,CAAC;oBAC1D,IAAI,CAAC,SAAS;wBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;wBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;gBACjE,CAAC;gBACD,UAAU,GAAG,IAAI,CAAC;gBAClB,IAAI,CAAC,SAAS,CAAC,MAAO,CAAC,MAAM,CACzB,IAAI,EACJ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,SAAS,EAC/F,GAAG,EAAE;oBACD,eAAe,GAAG,IAAI,CAAC;oBACvB,KAAK,IAAI,CAAC,QAAQ,CAAC,iBAAiB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;oBAElD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;wBACvD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE;4BAC3C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;4BACzB,IAAI,CAAC;gCACD,MAAM,IAAA,yBAAa,EAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,sBAAsB,CAAC,CAAC;4BAClF,CAAC;4BAAC,OAAO,CAAC,EAAE,CAAC;gCACT,+CAA+C;gCAC/C,IAAI,CAAC,UAAU,CACX,eAAe,IAAI,CAAC,IAAI,EAAE,EAC1B,iBAAiB,EACjB;oCACI,KAAK,EAAE,QAAQ;oCACf,QAAQ,EAAE,gBAAgB;oCAC1B,OAAO,EACH,4EAA4E;wCAC5E,uEAAuE;oCAC3E,QAAQ,EAAE,kBAAkB,IAAI,CAAC,SAAS,EAAE;iCAC/C,EACD,EAAC,YAAY,EAAE,EAAE;oCACb,YAAY;gCAChB,CAAC,CACJ,CAAC;gCAEF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;4BACjC,CAAC;wBACL,CAAC,EAAE,IAAI,CAAC,CAAC;oBACb,CAAC;gBACL,CAAC,CACJ,CAAC;gBAEF,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,6BAA6B,IAAI,EAAE,CAAC,CAAC;YAC3F,CAAC,CACJ,CAAC;QACN,CAAC;QAED,6BAA6B;QAC7B,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACjB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;YACtC,MAAM,cAAc,GAAmB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YAC/E,0CAA0C;YAC1C,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YACpC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;YAE/C,0BAA0B;YAC1B,cAAc,CAAC,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;YAC/D,0BAA0B;YAC1B,cAAc,CAAC,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,KAAK,KAAK,CAAC;YAEvE,IAAI,CAAC;gBACD,IAAI,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,mBAAmB,CAAC;gBAC/E,IAAI,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBAErC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;gBACxC,6BAA6B;gBAC7B,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAClC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU;gBACvB,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;oBAC1D,IAAI,IAAI,sBAAsB,CAAC;gBACnC,CAAC;qBAAM,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;oBAChE,uFAAuF;oBACvF,IAAI,IAAI,qBAAqB,CAAC;gBAClC,CAAC;qBAAM,CAAC;oBACJ,IAAI,IAAI,gBAAgB,CAAC;gBAC7B,CAAC;gBAED,IAAI,IAAI,GAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC;gBACnC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;oBACf,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC;gBACxB,CAAC;gBACD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;oBACd,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;gBACvB,CAAC;gBACD,MAAM,QAAQ,GAAG,IAA4B,CAAC;gBAE9C,wDAAwD;gBACxD,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,IAAI,QAAQ,CAC5B,IAAI,CAAC,SAAS,CAAC,MAAgB,EAC/B,cAAc,EACd,IAAI,EACJ,IAAI,CAAC,KAAM,EACX,IAAI,CAAC,SAAS,CACjB,CAAC;YACN,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;gBACnG,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;oBACd,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;oBACxC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gBAC9B,CAAC;qBAAM,CAAC;oBACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;gBACxC,CAAC;YACL,CAAC;QACL,CAAC;QAED,MAAM,iBAAiB,GAAoB,EAAE,CAAC;QAE9C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;YACjC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;YACxC,sBAAsB;YACtB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAC5C,IAAI,CAAC;oBACD,gHAAgH;oBAChH,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACxD,KAAK,CAAC,KAAK,EAAE,CAAC;oBACd,IAAI,MAAM,CAAC;oBACX,IAAI,IAAA,oBAAU,EAAC,KAAK,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;wBACrC,MAAM,GAAG,OAAO,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;yBAAM,CAAC;wBACJ,MAAM,GAAG,OAAO,CAAC,YAAY,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;oBACnE,CAAC;oBACD,oBAAoB;oBACpB,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;wBACjB,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC;oBAC5B,CAAC;oBACD,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBACxF,IAAI,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;wBACpB,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;oBAC/B,CAAC;oBAED,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,yBAAyB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;oBAE1E,sBAAsB;oBACtB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,GAAG,IAAI,MAAM,CACtC,IAAI,CAAC,SAAS,CAAC,MAAM,EACrB;wBACI,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;wBAC1B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;wBACtB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;wBAC9B,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW;wBACpC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;qBACzB,EACD,IAAI,EACJ,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,EAChC,IAAI,CAAC,SAAS,CAAC,GAAG,EAClB,IAAI,CAAC,SAAS,CAAC,EAAE,CACpB,CAAC;oBAEF,IACI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,YAAY;wBAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,YAAY,KAAK,UAAU,EAClE,CAAC;wBACC,iBAAiB,CAAC,IAAI,CAClB,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE;4BACxB,IAAI,OAAO,GAAiC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE;gCAC7D,IAAI,OAAO,EAAE,CAAC;oCACV,OAAO,GAAG,SAAS,CAAC;oCACpB,IAAI,CAAC,GAAG,CAAC,KAAK,CACV,cAAc,QAAQ,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,oCAAoC,CACjG,CAAC;oCACF,OAAO,EAAE,CAAC;gCACd,CAAC;4BACL,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,CAAC;4BAE5D,MAAM,KAAK,GAAG,GAAS,EAAE;gCACrB,IAAI,OAAO,EAAE,CAAC;oCACV,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,wBAAwB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;oCAC1E,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;oCAC3B,OAAO,GAAG,IAAI,CAAC;oCACf,OAAO,EAAE,CAAC;gCACd,CAAC;4BACL,CAAC,CAAC;4BAEF,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAI,CAAC,YAAa,CAAC,KAAK,CAAC,CAAC;wBACxD,CAAC,CAAC,CACL,CAAC;oBACN,CAAC;gBACL,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,2BAA2B,QAAQ,MAAM,GAAG,EAAE,CAAC,CAAC;gBACnE,CAAC;YACL,CAAC,CAAC,CAAC;QACP,CAAC;QAED,KAAK,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YAC1C,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;gBACzD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC;gBAErD,kCAAkC;gBAClC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,GAAY,EAAE,GAAa,EAAiB,EAAE;oBACxE,IAAI,GAAG,CAAC;oBACR,IAAI,CAAC;wBACD,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBAC7B,CAAC;oBAAC,MAAM,CAAC;wBACL,EAAE;wBACF,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,uBAAuB,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;wBAChD,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;oBAClB,CAAC;oBACD,iBAAiB;oBACjB,4EAA4E;oBAC5E,GAAG,GAAG,IAAA,qBAAS,EAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;oBAC7D,0CAA0C;oBAC1C,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;wBACnC,IAAI,CAAC,GAAG,CAAC,CAAC;wBACV,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;4BACpB,CAAC,EAAE,CAAC;wBACR,CAAC;wBACD,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;oBAC/B,CAAC;oBACD,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;wBAC7F,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;wBACvB,OAAO;oBACX,CAAC;oBACD,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBAExB,8BAA8B;oBAC9B,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,aAAa,EAAE,CAAC;wBACvC,IAAI,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;4BAC9B,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;4BAC/C,OAAO;wBACX,CAAC;wBACD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;6BACjB,IAAI,CAAC,IAAI,CAAC,EAAE,CACT,GAAG;6BACE,GAAG,CAAC,cAAc,EAAE,WAAW,CAAC;6BAChC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC;6BAChC,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,IAAI,CAAC,CAClB;6BACA,KAAK,CAAC,GAAG,CAAC,EAAE,CACT,GAAG;6BACE,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,eAAe,UAAU,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CACzF,CAAC;wBACN,OAAO;oBACX,CAAC;yBAAM,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;wBAC7B,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,eAAe,CAAC;6BACnC,GAAG,CAAC,eAAe,EAAE,4BAA4B,CAAC;6BAClD,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;wBACxD,OAAO;oBACX,CAAC;yBAAM,IAAI,GAAG,KAAK,cAAc,EAAE,CAAC;wBAChC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC;6BAClC,GAAG,CAAC,eAAe,EAAE,4BAA4B,CAAC;6BAClD,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;wBACxD,OAAO;oBACX,CAAC;yBAAM,IAAI,GAAG,KAAK,gBAAgB,EAAE,CAAC;wBAClC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC;6BACtC,GAAG,CAAC,eAAe,EAAE,4BAA4B,CAAC;6BAClD,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;wBACxD,OAAO;oBACX,CAAC;oBAED,iBAAiB;oBACjB,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;oBAEjD,IAAI,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;wBAC9B,6BAA6B;wBAC7B,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,gCAAgC,EAAE,YAAY,CAAC,CAAC;oBACtE,CAAC;oBAED,IAAI,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;wBAC1B,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC;oBAChC,CAAC;oBACD,IAAI,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;wBAC7B,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC;oBAChC,CAAC;oBACD,IAAI,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;wBAC5B,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC;oBAChC,CAAC;oBACD,MAAM,QAAQ,GAAa,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBAC1C,eAAe;oBACf,QAAQ,CAAC,KAAK,EAAE,CAAC;oBACjB,SAAS;oBACT,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;oBAClC,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;oBAClC,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBACzB,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;oBAC7B,IAAI,WAAW,CAAC;oBAChB,IAAI,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC;wBACb,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;wBAC5B,oEAAoE;wBACpE,WAAW,GAAG,IAAI,CAAC;oBACvB,CAAC;oBAED,mBAAmB;oBACnB,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;wBACzD,IAAI,CAAC,aAAa,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,CAAC;4BAC3D,sBAAsB;4BACtB,GAAG,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;4BAC9D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;4BACvB,OAAO;wBACX,CAAC;oBACL,CAAC;oBAED,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;wBAC/C,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;wBACrD,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;4BACpB,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;wBAChE,CAAC;6BAAM,CAAC;4BACJ,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;4BAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;wBAC5D,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,IAAI,EAAE,KAAK,OAAO,IAAI,GAAG,KAAK,YAAY,EAAE,CAAC;4BACzC,IAAI,CAAC,SAAS,KAAK,MAAM,IAAI,CAAC,eAAe,CACzC,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,GAAG,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CACvE,CAAC;4BACF,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC;4BAE9B,MAAM,eAAe,GACjB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;4BAEvF,IAAI,eAAe,IAAI,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;gCAC7C,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;gCACnC,OAAO;4BACX,CAAC;4BAED,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gCAC1C,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gCAC7B,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gCACrC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;4BAC3B,CAAC;iCAAM,CAAC;gCACJ,sBAAsB;gCACtB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;oCACpB,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;gCACxF,CAAC;gCACD,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gCACrC,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gCAC7B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;4BAC5C,CAAC;wBACL,CAAC;6BAAM,CAAC;4BACJ,iCAAiC;4BACjC,IAAI,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,0BAA0B,CAAC,EAAE,CAAC;gCACxE,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;gCACrC,OAAO;4BACX,CAAC;4BACD,IAAI,MAAuE,CAAC;4BAC5E,IAAI,KAAwB,CAAC;4BAC7B,IAAI,CAAC;gCACD,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAC7B,EAAE,EACF,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,aAAa;oCAClC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;oCACzC,CAAC,CAAC,GAAG,EACT;oCACI,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;oCAC9E,WAAW;iCACd,CACJ,CAAC;4BACN,CAAC;4BAAC,OAAO,GAAG,EAAE,CAAC;gCACX,KAAK,GAAG,GAAG,CAAC;4BAChB,CAAC;4BACD,IACI,IAAI,CAAC,MAAM,CAAC,eAAe;gCAC3B,KAAK,EAAE,QAAQ,EAAE,KAAK,mBAAmB;gCACzC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EACvB,CAAC;gCACC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;gCAExC,oBAAoB;gCACpB,MAAM,IAAI,GACN,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,aAAa;oCAClC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;oCACzC,CAAC,CAAC,GAAG,CAAC;gCAEd,IAAI,CAAC;oCACD,MAAM,KAAK,GAAyC,MAAM,IAAI,CAAC,YAAY,CACvE,EAAE,EACF,IAAI,EACJ;wCACI,IAAI,EAAE,GAAG,CAAC,IAAI;4CACV,CAAC,CAAC,eAAe,GAAG,CAAC,IAAc,EAAE;4CACrC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;qCAChC,CACJ,CAAC;oCACF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,IAAI,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;oCAEpE,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;oCAClF,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,0BAA0B,CAAC,CAAC;oCACpD,IAAI,CAAC,WAAW,KAAK,IAAA,sBAAY,EAAC,GAAG,SAAS,IAAI,MAAM,WAAW,CAAC;yCAC/D,QAAQ,CAAC,MAAM,CAAC;yCAChB,OAAO,CAAC,eAAe,EAAE,mBAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC;yCACpE,OAAO,CAAC,eAAe,EAAE,mBAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC;yCACpE,OAAO,CAAC,eAAe,EAAE,mBAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,CAAC;oCAC1E,MAAM,IAAI,GAAG,EAAE,CAAC;oCAEhB,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC;wCACd,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wCAC7B,KAAK,CAAC,GAAG,EAAE,CAAC;wCACZ,IAAI,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;oCACjE,CAAC;oCAED,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;wCACjB,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;4CACrB,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;wCACxC,CAAC;wCACD,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;4CACV,OAAO,CAAC,CAAC,CAAC;wCACd,CAAC;wCACD,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;4CACV,OAAO,CAAC,CAAC;wCACb,CAAC;wCAED,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;oCACxC,CAAC,CAAC,CAAC;oCAEH,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAClB,IAAI,CAAC,IAAI,CACL,sBAAsB,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,YAAY,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,KAAK,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAC1N,CACJ,CAAC;oCACF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAChB,IAAI,CAAC,WAAW;yCACX,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;yCACvC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7C,CAAC;gCACN,CAAC;gCAAC,OAAO,CAAC,EAAE,CAAC;oCACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC;oCAC9D,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;gCAC3B,CAAC;gCACD,OAAO;4BACX,CAAC;4BAED,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,EAAE,CAAC;gCACxE,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gCAC7B,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;4BACtF,CAAC;iCAAM,CAAC;gCACJ,MAAM,CAAC,QAAQ,KAAK,IAAA,mBAAM,EAAC,GAAG,CAAC,IAAI,wBAAwB,CAAC;gCAE5D,2CAA2C;gCAC3C,IAAI,GAAG,KAAK,YAAY,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;oCAC9C,MAAM,CAAC,IAAI,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;gCAC3E,CAAC;gCAED,sBAAsB;gCACtB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;oCACpB,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,GAAG;wCACzB,MAAM,EAAE,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAW,CAAC;wCACvC,QAAQ,EAAE,MAAM,CAAC,QAAQ;qCAC5B,CAAC;gCACN,CAAC;gCAED,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gCAEjC,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;oCACpB,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAW,CAAC,CAAC,CAAC;gCAC9D,CAAC;qCAAM,CAAC;oCACJ,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC;oCAClF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gCACtC,CAAC;4BACL,CAAC;wBACL,CAAC;oBACL,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,IAAI;QACN,IAAI,GAA0C,CAAC;QAE/C,IAAI,CAAC;YACD,GAAG,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAChD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,GAAG,EAAE,CAAC;YACN,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAClC,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;oBACjB,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAChE,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBAEpC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG;wBACxB,IAAI,EAAE,GAAG,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE;wBAC7C,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;qBACjB,CAAC;gBACN,CAAC;YACL,CAAC;QACL,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAC/B,IAAI,CAAC;gBACD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE;oBAC3D,QAAQ,EAAE,cAAc;oBACxB,MAAM,EAAE,oBAAoB;iBAC/B,CAAC,CAAC;gBACH,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;gBACnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC1C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;gBACnE,CAAC;YACL,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;YAC9C,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,OAAO,EAAE;oBAC7D,QAAQ,EAAE,eAAe;oBACzB,MAAM,EAAE,qBAAqB;iBAChC,CAAC,CAAC;gBACH,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;gBACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC3C,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;gBACtE,CAAC;YACL,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;YAC9C,CAAC;YACD,MAAM,IAAI,CAAC,4BAA4B,CAAC,eAAe,CAAC,CAAC;YACzD,MAAM,IAAI,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,CAAC;QAC9D,CAAC;QAED,IAAI,CAAC;YACD,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,4BAA4B,GAAG,EAAE,CAAC,CAAC;YAClD,IAAI,CAAC,SAAS;gBACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,6BAA6B,CAAC;gBAC1D,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAU,CAAC,6BAA6B,CAAC,CAAC;QACjE,CAAC;QAED,kCAAkC;QAClC,MAAM,IAAI,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,CAAC;IAChE,CAAC;CACJ;AA5kFD,gCA4kFC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC1B,yCAAyC;IACzC,MAAM,CAAC,OAAO,GAAG,CAAC,OAA4C,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;AAC/F,CAAC;KAAM,CAAC;IACJ,wCAAwC;IACxC,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,EAAE,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/src-login/build/index.html b/src-login/build/index.html index 20870c21..e611c743 100644 --- a/src-login/build/index.html +++ b/src-login/build/index.html @@ -49,18 +49,18 @@ window.loginLanguage = lang; } - + C231.591,212.679,237.828,191.414,234.21,169.856z`})))}function k1(t){return v.createElement("svg",{viewBox:"1 -10 511.99999 511",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M 405.5 150 C 405.5 232.566406 338.566406 299.5 256 299.5 C 173.433594 299.5 106.5 232.566406 106.5 150 C 106.5 67.433594 173.433594 0.5 256 0.5 C 338.566406 0.5 405.5 67.433594 405.5 150 Z M 405.5 150 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(25.882353%,75.294118%,88.627451%)",fillOpacity:1}}),v.createElement("path",{d:"M 512 342.921875 C 512 425.488281 445.066406 492.421875 362.5 492.421875 C 279.933594 492.421875 213 425.488281 213 342.921875 C 213 260.355469 279.933594 193.421875 362.5 193.421875 C 445.066406 193.421875 512 260.355469 512 342.921875 Z M 512 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,81.568627%,38.039216%)",fillOpacity:1}}),v.createElement("path",{d:"M 220.746094 295.308594 C 232.050781 298.039062 243.855469 299.5 256 299.5 C 321.917969 299.5 377.871094 256.835938 397.753906 197.613281 C 386.449219 194.878906 374.644531 193.421875 362.5 193.421875 C 296.582031 193.421875 240.628906 236.085938 220.746094 295.308594 Z M 220.746094 295.308594 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(28.627451%,74.117647%,56.470588%)",fillOpacity:1}}),v.createElement("path",{d:"M 299 342.921875 C 299 425.488281 232.066406 492.421875 149.5 492.421875 C 66.933594 492.421875 0 425.488281 0 342.921875 C 0 260.355469 66.933594 193.421875 149.5 193.421875 C 232.066406 193.421875 299 260.355469 299 342.921875 Z M 299 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(98.039216%,43.921569%,69.803922%)",fillOpacity:1}}),v.createElement("path",{d:"M 114.246094 197.613281 C 134.128906 256.835938 190.082031 299.5 256 299.5 C 268.144531 299.5 279.949219 298.039062 291.253906 295.308594 C 271.371094 236.085938 215.417969 193.421875 149.5 193.421875 C 137.355469 193.421875 125.550781 194.878906 114.246094 197.613281 Z M 114.246094 197.613281 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(68.627451%,48.235294%,77.647059%)",fillOpacity:1}}),v.createElement("path",{d:"M 213 342.921875 C 213 383.800781 229.414062 420.839844 256 447.828125 C 282.585938 420.839844 299 383.800781 299 342.921875 C 299 302.042969 282.585938 265.003906 256 238.015625 C 229.414062 265.003906 213 302.042969 213 342.921875 Z M 213 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(93.72549%,38.039216%,13.333333%)",fillOpacity:1}}),v.createElement("path",{d:"M 291.253906 295.320312 C 279.949219 298.046875 268.140625 299.5 256 299.5 C 243.859375 299.5 232.050781 298.046875 220.746094 295.320312 C 228.058594 273.542969 240.242188 254.015625 256 238.015625 C 271.757812 254.015625 283.941406 273.542969 291.253906 295.320312 Z M 291.253906 295.320312 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1}})))}function OV(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 365.445 365.445",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M146.7 162.775h-26.8a6.655 6.655 0 0 0-6.647 6.647v26.602a6.653 6.653 0 0 0 6.647 6.646h26.8a6.654 6.654 0 0 0 6.647-6.646v-26.602a6.655 6.655 0 0 0-6.647-6.647zM245.547 162.775h-26.801a6.653 6.653 0 0 0-6.646 6.647v26.602a6.652 6.652 0 0 0 6.646 6.646h26.801a6.654 6.654 0 0 0 6.646-6.646v-26.602a6.655 6.655 0 0 0-6.646-6.647z"})),v.createElement("path",{d:"M345.445 1.204H20c-11.046 0-20 8.954-20 20v323.037c0 11.045 8.954 20 20 20h325.445c11.045 0 20-8.955 20-20V21.204c0-11.045-8.953-20-20-20zM182.723 287.66c-57.955 0-104.937-46.981-104.937-104.937 0-57.957 46.982-104.938 104.937-104.938S287.66 124.767 287.66 182.723 240.678 287.66 182.723 287.66z",fill:"currentColor"}))}function RV(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 45.659 45.659",...t},v.createElement("path",{fill:"currentColor",d:"M30.619 27.309V7.781C30.619 3.49 27.124 0 22.833 0c-4.29 0-7.785 3.491-7.785 7.78v19.528a10.722 10.722 0 0 0-3.05 7.522c0 5.972 4.857 10.828 10.829 10.828 5.97 0 10.834-4.856 10.834-10.828 0-2.918-1.141-5.572-3.042-7.521zM22.825 42.66c-4.316 0-7.824-3.512-7.824-7.828 0-2.527 1.174-4.779 3.077-6.211V16.237h3.372c.552 0 1-.47 1-1.022 0-.553-.448-1.021-1-1.021h-3.372v-2.466h3.372c.552 0 1-.434 1-.986a.989.989 0 0 0-1-.986h-3.372V7.78c0-2.636 2.119-4.78 4.754-4.78 2.637 0 4.756 2.144 4.756 4.781v20.871c1.903 1.434 3.047 3.671 3.047 6.18 0 4.316-3.494 7.828-7.81 7.828z"}),v.createElement("path",{fill:"currentColor",d:"M25.334 30.463V18.632h-5.002v11.831a4.973 4.973 0 0 0-2.537 4.369 5.038 5.038 0 0 0 5.038 5.046 5.034 5.034 0 0 0 5.034-5.046c0-1.866-.982-3.495-2.533-4.369z"}))}function PV(t){return v.createElement("svg",{viewBox:"0 0 297 297",...t},v.createElement("g",null,v.createElement("path",{fill:"currentColor",d:"m243.404,138.042c-5.775,0-10.458,4.683-10.458,10.458 0,46.564-37.883,84.446-84.446,84.446s-84.446-37.882-84.446-84.446 37.883-84.446 84.446-84.446c5.775,0 10.458-4.683 10.458-10.458s-4.683-10.457-10.458-10.457c-58.097,0-105.361,47.265-105.361,105.361s47.264,105.361 105.361,105.361 105.361-47.264 105.361-105.361c0-5.775-4.681-10.458-10.457-10.458z"}),v.createElement("path",{fill:"currentColor",d:"m142.963,121.344l-20.272-30.41c-3.203-4.807-9.695-6.104-14.502-2.9-4.805,3.202-6.104,9.695-2.9,14.502l20.279,30.422c-3.015,4.436-4.78,9.787-4.78,15.543 0,15.281 12.432,27.713 27.713,27.713 15.281,0 27.713-12.432 27.713-27.713 0-15.281-12.432-27.713-27.713-27.713-1.897-0.001-3.749,0.191-5.538,0.556zm12.335,27.156c0,3.748-3.05,6.798-6.798,6.798s-6.798-3.05-6.798-6.798 3.05-6.798 6.798-6.798 6.798,3.05 6.798,6.798z"}),v.createElement("path",{fill:"currentColor",d:"M148.5,0C66.617,0,0,66.617,0,148.5S66.617,297,148.5,297S297,230.383,297,148.5S230.383,0,148.5,0z M158.958,275.653 v-6.366c0-5.775-4.683-10.458-10.458-10.458c-5.775,0-10.458,4.683-10.458,10.458v6.366 c-62.027-5.056-111.64-54.668-116.695-116.695h6.366c5.775,0,10.458-4.683,10.458-10.458s-4.683-10.458-10.458-10.458h-6.366 c5.056-62.027,54.668-111.64,116.695-116.695v6.366c0,5.775,4.683,10.458,10.458,10.458c5.775,0,10.458-4.683,10.458-10.458v-6.366 c62.027,5.056,111.64,54.668,116.695,116.695h-6.366c-5.775,0-10.458,4.683-10.458,10.458s4.683,10.458,10.458,10.458h6.366 C270.598,220.985,220.985,270.598,158.958,275.653z"})))}function MV(t){return v.createElement("svg",{viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M228.5 205.584h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5H228.5c-2.726 0-5 2.274-5 5s2.274 5 5 5z",fill:"currentColor"}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M232.826 280.905c-.339 3.356-18.813-.782-20.919-1.06l-45.073-5.94-45.074-5.94-14.507-1.912c-1.456-.192-6.201-.055-6.412-2.147-.621-6.157 0-12.699 0-18.878v-43.5-82.076-5.13c0-2.551 5.184-1.015 6.412-.853l35.438 4.67 83.723 11.035c1.457.192 6.201.055 6.412 2.147.169 1.673 0 3.451 0 5.13v144.454c0 6.448 10 6.448 10 0V136.451v-5.13c0-7.619-6.137-10.793-12.673-11.655l-28.531-3.76-88.411-11.652-9.897-1.304c-6.555-.864-12.473 4.9-12.473 11.38v144.832c0 2.023-.071 4.04.132 6.053.717 7.111 6.606 9.563 12.759 10.374l76.827 10.125 39.896 5.259 9.697 1.278c7.063.931 12.011-4.778 12.673-11.346.648-6.415-9.358-6.352-9.999 0z",fill:"currentColor"}))}function IV(t){return v.createElement("svg",{width:361,height:361,viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9zM265.732 265.178c.584 2.887-1.629 5.228-4.942 5.228H103.457c-3.313 0-6.474-2.341-7.058-5.228L75.24 130.633c-.584-2.887 1.628-5.228 4.942-5.228h157.333c3.313 0 6.474 2.34 7.058 5.228l21.159 134.545z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M247.194 199.667h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5h-6.639c-2.726 0-5 2.274-5 5s2.275 5 5 5z",fill:"currentColor"}))}ot.Types.airCondition+"",ot.Types.blind+"",ot.Types.blindButtons+"",ot.Types.button+"",ot.Types.buttonSensor+"",ot.Types.camera+"",ot.Types.chart+"",ot.Types.image+"",ot.Types.dimmer+"",ot.Types.door+"",ot.Types.fireAlarm+"",ot.Types.floodAlarm+"",ot.Types.gate+"",ot.Types.humidity+"",ot.Types.illuminance+"",ot.Types.info+"",ot.Types.light+"",ot.Types.lock+"",ot.Types.location+"",ot.Types.locationOne+"",ot.Types.media+"",ot.Types.motion+"",ot.Types.ct+"",ot.Types.percentage+"",ot.Types.rgb+"",ot.Types.rgbSingle+"",ot.Types.rgbwSingle+"",ot.Types.hue+"",ot.Types.cie+"",ot.Types.slider+"",ot.Types.socket+"",ot.Types.temperature+"",ot.Types.thermostat+"",ot.Types.vacuumCleaner+"",ot.Types.volume+"",ot.Types.volumeGroup+"",ot.Types.window+"",ot.Types.windowTilt+"",ot.Types.weatherCurrent+"",ot.Types.weatherForecast+"",ot.Types.warning+"",ot.Types.unknown+"",ot.Types.instance+"";let xY=class EC extends v.Component{static generateFile(e,r){const n=window.document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",window.document.body.appendChild(n),n.click(),window.document.body.removeChild(n)}handleFileSelect=e=>{const n=e.target?.files;if(!n||!n.length){console.error("No files found. Please report to developers");return}const o=n[0];if(o){const i=new window.FileReader;i.onload=()=>{const l=i.result?.toString()||"";try{const c=JSON.parse(l);c.native&&c.common?c.common.name!==this.props.common.name?this.props.onError&&this.props.onError(z.t("ra_otherConfig",c.common.name)):this.props.onLoad&&this.props.onLoad(c.native):this.props.onError&&this.props.onError(z.t("ra_invalidConfig"))}catch(c){this.props.onError&&this.props.onError(c?.toString())}},i.readAsText(o)}else alert("Failed to open JSON File")};download(){const e={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};e.common.news&&delete e.common.news,e.common.titleLang&&delete e.common.titleLang,e.common.desc&&delete e.common.desc,EC.generateFile(`${e._id}.json`,e)}upload(){const e=window.document.createElement("input");e.setAttribute("type","file"),e.setAttribute("id","files"),e.setAttribute("opacity","0"),e.addEventListener("change",this.handleFileSelect,!1),e.click()}render(){return v.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?v.createElement(rf,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?v.createElement(fa,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{window.open(this.props.common.readme,"_blank")?.focus()}},v.createElement(k$,null)):null,v.createElement(fa,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Load configuration from file"),onClick:()=>this.upload()},v.createElement(j$,null)),v.createElement(fa,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Save configuration to file"),onClick:()=>this.download()},v.createElement(z$,null)))}};function AV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function DV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function NV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function $V(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function LV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),v.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}))}const f8={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};v.forwardRef(function(e,r){return v.createElement(YT,{sx:{...f8.root,...e?.style||void 0,...e.overflow==="auto"?f8.overflowAuto:void 0},ref:r},e.children)});v.createElement(LV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(DV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(NV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(AV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(iE,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement($V,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),v.createElement(M$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(F$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(L$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(B$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(A$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(N$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(b$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(uy,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(yv,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});class SY extends v.Component{refTypo;height;width;constructor(e){super(e),this.state={closed:this.props.storeId?window.localStorage.getItem(this.props.storeId)==="true":!1},this.height=0,this.width=0,this.refTypo=v.createRef()}componentDidMount(){this.detectHeight()}onClick(){this.props.storeId&&this.props.closed===void 0&&(this.state.closed?window.localStorage.removeItem(this.props.storeId):window.localStorage.setItem(this.props.storeId,"true")),this.props.closed===void 0?this.setState({closed:!this.state.closed},()=>{this.props.onClose&&this.props.onClose(this.state.closed)}):this.props.onClose&&this.props.onClose(!this.props.closed)}detectHeight(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed;this.props.closeable&&!e&&this.refTypo.current&&window.requestAnimationFrame(()=>{(this.props.closed!==void 0?this.props.closed:this.state.closed)||this.refTypo.current&&(!this.height||this.width!==this.refTypo.current.clientWidth)&&(this.height=this.refTypo.current.clientHeight,this.width=this.refTypo.current.clientWidth,this.forceUpdate())})}componentDidUpdate(){this.detectHeight()}render(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed,r=e?sE:ga;return v.createElement(pt,{className:"iom-info-box",style:{whiteSpace:"preserve",display:"flex",gap:8,alignItems:e||this.props.iconPosition==="top"?"flex-start":"center",borderWidth:1,borderStyle:"solid",padding:4,borderRadius:5,marginBottom:8,maxWidth:"100%",transition:"height 0.5s",height:this.props.closeable?e?30:this.height||void 0:void 0,overflow:this.props.closeable?"hidden":void 0,position:"relative",...this.props.style},sx:{borderColor:n=>this.props.type==="ok"?n.palette.info.main:n.palette[this.props.type].main}},this.props.type==="ok"?v.createElement(Fi,{style:{color:"#0F0"}}):this.props.type==="info"?v.createElement(O$,{color:"primary"}):v.createElement(W$,{color:this.props.type}),v.createElement(dn,{ref:this.refTypo},this.props.children),this.props.closeable?v.createElement(r,{sx:{color:n=>n.palette.mode==="dark"?"lightgray":"gray",cursor:"pointer",position:"absolute",top:4,right:4},onClick:()=>this.onClick()}):null,this.props.closeable?v.createElement("div",{style:{width:22}}):null,e?v.createElement(pt,{component:"div",sx:n=>{const o=n.palette[this.props.type==="ok"?"info":this.props.type].main;return{background:`linear-gradient(${o}00 0%, ${o}10 60%, ${o}90 100%)`}},style:{bottom:0,position:"absolute",left:0,right:0,height:10}}):null)}}const le={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},_1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Pd=["January","February","March","April","May","June","July","August","September","October","November","December"],O1={minutes:"minutes",hours:"hours"},oc=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function Fo(t){return t<10?`0${t}`:`${t}`}const h8={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function R1(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class Sr extends O.Component{refFrom;refTo;refOnce;timerOnce=null;timerFrom=null;timerTo=null;constructor(e){super(e);let r;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{r=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(r=this.props.schedule);(!r||!Object.keys(r).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),r=h8),r={...h8,...r},r.valid.from||=Sr.now2string(),this.refFrom=v.createRef(),this.refTo=v.createRef(),this.refOnce=v.createRef(),this.state={schedule:r,desc:Sr.state2text(r)},JSON.stringify(r)!==this.props.schedule&&setTimeout(()=>this.props.onChange?.(JSON.stringify(r)),100)}componentWillUnmount(){this.timerOnce&&(clearTimeout(this.timerOnce),this.timerOnce=null),this.timerFrom&&(clearTimeout(this.timerFrom),this.timerFrom=null),this.timerTo&&(clearTimeout(this.timerTo),this.timerTo=null)}onChange(e,r){const n=JSON.stringify(e)!==JSON.stringify(this.state.schedule);if(r||n){n&&this.setState({schedule:e,desc:Sr.state2text(e)});const o=JSON.parse(JSON.stringify(e));if(o.period.once){const i=o.period.once;delete o.period,o.period={once:i},delete o.valid}else if(o.period.days){const i=o.period.days,l=o.period.dows;delete o.period,o.period={days:i},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.weeks){const i=o.period.weeks,l=o.period.dows;delete o.period,o.period={weeks:i},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.months){const i=o.period.months,l=o.period.dates;delete o.period,o.period={months:i},l&&l!=="[]"&&(o.period.dates=l)}else if(o.period.years){const i=o.period.years,l=o.period.yearMonth,c=o.period.yearDate;delete o.period,o.period={years:i,yearDate:c},l&&(o.period.yearMonth=l)}if(o.time.exactTime?(delete o.time.end,delete o.time.mode,delete o.time.interval):delete o.time.exactTime,o.valid){if(o.valid.to||delete o.valid.to,o.period.days===1||o.period.weeks===1||o.period.months===1||o.period.years===1){const i=Sr.string2date(o.valid.from),l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),i<=l&&delete o.valid.from}!o.valid.from&&!o.valid.to&&delete o.valid}this.props.onChange?.(JSON.stringify(o),Sr.state2text(e))}}static state2text(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{return""}const r=[],n=Sr.string2date(e.valid.from);if(e.period.once){const o=Sr.string2date(e.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),oz.t(_1[l]));if(i.length===1)r.push(z.t("sch_desc_onWeekday",i[0]));else if(i.length===7)r.push(z.t("sch_desc_everyDay"));else{const l=i.pop();r.push(z.t("sch_desc_onWeekdays",i.join(", "),l))}}}else r.push(z.t("sch_desc_everyDay"));else r.push(z.t("sch_desc_everyNDay",e.period.days.toString()));else if(e.period.weeks)if(e.period.weeks===1?r.push(z.t("sch_desc_everyWeek")):r.push(z.t("sch_desc_everyNWeeks",e.period.weeks.toString())),e.period.dows){const o=JSON.parse(e.period.dows);if(o.length===2&&o[0]===0&&o[1]===6)r.push(z.t("sch_desc_onWeekends"));else if(o.length===5&&o[0]===1&&o[1]===2&&o[2]===3&&o[3]===4&&o[4]===5)r.push(z.t("sch_desc_onWorkdays"));else{const i=o.map(l=>z.t(_1[l]));if(i.length===1)r.push(z.t("sch_desc_onWeekday",i[0]));else if(i.length===7)r.push(z.t("sch_desc_everyDay"));else{const l=i.pop();r.push(z.t("sch_desc_onWeekdays",i.join(", "),l))}}}else return z.t("sch_desc_never");else if(e.period.months){if(e.period.dates){const o=JSON.parse(e.period.dates);if(o.length===1)r.push(z.t("sch_desc_onDate",o[0]));else if(o.length===31)r.push(z.t("sch_desc_onEveryDate"));else if(o.length){const i=o.pop();r.push(z.t("sch_desc_onDates",o.join(", "),i))}else return z.t("sch_desc_never")}else r.push(z.t("sch_desc_onEveryDate"));if(e.period.months===1)r.push(z.t("sch_desc_everyMonth"));else if(typeof e.period.months=="number")r.push(z.t("sch_desc_everyNMonths",e.period.months.toString()));else{const i=JSON.parse(e.period.months).map(l=>z.t(Pd[l-1]));if(!i.length)return z.t("sch_desc_never");if(i.length===1)r.push(z.t("sch_desc_onMonth",i[0]));else if(i.length===12)r.push(z.t("sch_desc_everyMonth"));else{const l=i.pop();r.push(z.t("sch_desc_onMonths",i.join(", "),l))}}}else e.period.years&&(e.period.years===1?r.push(z.t("sch_desc_everyYear")):r.push(z.t("sch_desc_everyNYears",e.period.years.toString())),r.push(z.t("sch_desc_onDate",e.period.yearDate.toString(),e.period.yearMonth?z.t(Pd[e.period.yearMonth-1]):z.t("sch_desc_everyMonth"))));if(e.time.exactTime)oc.includes(e.time.start)?r.push(z.t("sch_desc_atTime",z.t(`sch_astro_${e.time.start}`))):r.push(z.t("sch_desc_atTime",e.time.start));else{e.time.mode===O1.minutes?e.time.interval===1?r.push(z.t("sch_desc_everyMinute")):r.push(z.t("sch_desc_everyNMinutes",e.time.interval.toString())):e.time.interval===1?r.push(z.t("sch_desc_everyHour")):r.push(z.t("sch_desc_everyNHours",e.time.interval.toString()));const o=oc.indexOf(e.time.start)!==-1?z.t(`sch_astro_${e.time.start}`):e.time.start,i=oc.indexOf(e.time.end)!==-1?z.t(`sch_astro_${e.time.end}`):e.time.end;(o!=="00:00"||i!=="24:00"&&i!=="23:59")&&r.push(z.t("sch_desc_intervalFromTo",o,i))}return e.period.once||(n.getTime()>Date.now()&&e.valid.to?r.push(z.t("sch_desc_validFromTo",e.valid.from,e.valid.to)):n.getTime()>Date.now()?r.push(z.t("sch_desc_validFrom",e.valid.from)):e.valid.to&&r.push(z.t("sch_desc_validTo",e.valid.to))),r.join(" ")}getTimePeriodElements(){const e=this.state.schedule;let r=!1,n=!1,o=!1,i=!0;return e.time.start==="00:00"&&e.time.end==="24:00"?(r=!0,i=!1):e.time.start==="sunrise"?(n=!0,i=!1):e.time.start==="sunset"&&(o=!0,i=!1),v.createElement("div",{key:"timePeriod",style:le.rowDiv},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!e.time.exactTime,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.exactTime=!1,this.onChange(l)}}),label:z.t("sch_intervalTime")})),v.createElement("div",{style:le.settingsDiv},v.createElement("div",{style:le.settingsDiv},!e.time.exactTime&&v.createElement("div",null,v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!i,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="23:59",this.onChange(l)}}),label:i?"":z.t("sch_fromTo")}),i&&[v.createElement(vr,{variant:"standard",style:{...le.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.start=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_from"),margin:"normal"}),v.createElement(vr,{variant:"standard",style:le.inputTime,key:"exactTimeTo",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.end=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_to"),margin:"normal"})])),!e.time.exactTime&&v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!r,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="24:00",this.onChange(l)}}),label:z.t("sch_wholeDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!n,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunrise",l.time.end="sunset",this.onChange(l)}}),label:z.t("sch_astroDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!o,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunset",l.time.end="sunrise",this.onChange(l)}}),label:z.t("sch_astroNight")}))),!e.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const e=oc.includes(this.state.schedule.time.start);return v.createElement("div",{key:"timeExact",style:le.rowDiv},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.exactTime=!0,this.onChange(r)}}),label:z.t("sch_exactTime")})),this.state.schedule.time.exactTime&&v.createElement(ho,{variant:"standard",value:e?this.state.schedule.time.start:"00:00",onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)}},v.createElement(cr,{key:"specific",value:"00:00"},z.t("sch_specificTime")),oc.map(r=>v.createElement(cr,{key:r,value:r},z.t(`sch_astro_${r}`)))),this.state.schedule.time.exactTime&&!e&&v.createElement("div",{style:le.settingsDiv},v.createElement(vr,{variant:"standard",style:le.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:r=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:r.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return v.createElement("hr",{style:le.hr})}getPeriodModes(){const e=this.state.schedule,r=!e.period.dows&&!e.period.months&&!e.period.dates&&!e.period.years&&!e.period.days&&!e.period.weeks;return r&&!e.period.once&&(e.period.once=Sr.now2string(!0)),[v.createElement("div",{key:"once",style:{...le.rowDiv,...le.rowOnce}},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.once||=Sr.now2string(!0),n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,this.onChange(n)}}),label:z.t("sch_periodOnce")})),r&&v.createElement("div",{style:le.settingsDiv},v.createElement(vr,{variant:"standard",style:le.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:R1(e.period.once),onChange:n=>{this.timerOnce&&clearTimeout(this.timerOnce),this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(o=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),l=Sr.string2date(o);l.toString()!=="Invalid Date"&&(i.period.once=`${Fo(l.getDate())}.${Fo(l.getMonth()+1)}.${l.getFullYear()}`,this.onChange(i))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_at"),margin:"normal"}))),v.createElement(pt,{component:"div",key:"days",sx:Ge.getStyle(this.props.theme,le.rowDiv,le.rowDays)},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!e.period.days,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDaily")})),v.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsDaily(),e.period.days?this.getPeriodSettingsWeekdays():null)),v.createElement(pt,{component:"div",key:"weeks",sx:Ge.getStyle(this.props.theme,le.rowDiv,le.rowDows)},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!e.period.weeks,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=e.period.weeks?0:1,n.period.dows||="[0]",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodWeekly")})),v.createElement(pt,{component:"div",style:le.settingsDiv},v.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsWeekly()),v.createElement(pt,{component:"div",sx:Ge.getStyle(this.props.theme,le.settingsDiv,le.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),v.createElement(pt,{component:"div",key:"months",sx:Ge.getStyle(this.props.theme,le.rowDiv,le.rowMonths)},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!e.period.months,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,n.period.dows="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodMonthly")})),v.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsMonthly(),e.period.months?v.createElement(pt,null,v.createElement(pt,{component:"div",sx:Ge.getStyle(this.props.theme,le.settingsDiv,le.rowMonthsDates)},v.createElement(ct,{control:v.createElement(Ar,{style:le.inputRadio,checked:!!e.period.dates,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months||=1;const o=[];for(let i=1;i<=31;i++)o.push(i);n.period.dates||=JSON.stringify(o),n.period.dows="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDates")})),v.createElement(pt,{component:"div",sx:Ge.getStyle(this.props.theme,le.settingsDiv,le.rowMonthsDates)},this.getPeriodSettingsDates())):null)),v.createElement(pt,{component:"div",key:"years",sx:Ge.getStyle(this.props.theme,le.rowDiv,le.rowYears)},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!e.period.years,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,n.period.yearDate=1,n.period.yearMonth=1,n.period.dows="",n.period.months=0,n.period.dates="",n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodYearly")})),v.createElement("div",{style:le.settingsDiv},v.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsYearly()),!!e.period.years&&v.createElement("div",{style:le.settingsDiv},v.createElement("span",null,z.t("sch_on")),v.createElement(uo,{key:"input",value:this.state.schedule.period.yearDate,style:le.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearDate=parseInt(n.target.value,10),o.period.yearDate<1&&(o.period.yearDate=31),o.period.yearDate>31&&(o.period.yearDate=1),this.onChange(o)}}),v.createElement(ho,{variant:"standard",value:e.period.yearMonth,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearMonth=n.target.value,this.onChange(o)}},v.createElement(cr,{key:"every",value:0},z.t("sch_yearEveryMonth")),Pd.map((n,o)=>v.createElement(cr,{key:n,value:o+1},z.t(n)))))))]}getPeriodSettingsMinutes(e){return v.createElement("div",{style:{display:"inline-block",marginTop:e?15:"inherit"}},v.createElement("label",{style:{marginLeft:4,marginRight:4}},z.t("sch_every")),v.createElement(uo,{value:this.state.schedule.time.interval,style:{...le.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.interval=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement(ho,{variant:"standard",value:this.state.schedule.time.mode,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.mode=r.target.value,this.onChange(n)}},v.createElement(cr,{value:O1.minutes},z.t("sch_periodMinutes")),v.createElement(cr,{value:O1.hours},z.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const e=this.state.schedule,r=e.period.dows&&e.period.dows!=="[1, 2, 3, 4, 5]"&&e.period.dows!=="[0, 6]";return[v.createElement("div",{key:"workdays"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[1, 2, 3, 4, 5]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWorkdays")})),v.createElement("div",{key:"weekend"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.dows==="[0, 6]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekend")})),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(ct,{style:{verticalAlign:"top"},control:v.createElement(At,{style:le.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 1, 2, 3, 4, 5, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekdays")}),r&&(e.period.days===1||e.period.weeks)&&v.createElement(am,{row:!0,style:{...le.inputGroup,width:150}},[1,2,3,4,5,6,0].map(n=>v.createElement(ct,{key:`specific_${n}`,style:le.inputGroupElement,control:v.createElement(Ar,{style:le.inputSmallCheck,checked:e.period.dows.includes(n.toString()),onChange:o=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dows)}catch{l=[]}o.target.checked&&!l.includes(n)?l.push(n):!o.target.checked&&l.includes(n)&&l.splice(l.indexOf(n),1),l.sort((c,d)=>c-d),i.period.dows=JSON.stringify(l),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:z.t(_1[n])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const e=this.state.schedule;return[v.createElement("div",{key:"every_day"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.days===1&&!e.period.dows,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEveryDay")})),v.createElement("div",{key:"everyN_day"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.days>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=2,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.days>1&&[v.createElement(uo,{key:"input",value:this.state.schedule.period.days,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=parseInt(r.target.value,10),n.period.dows="",this.onChange(n)}}),v.createElement("span",{key:"span",style:{paddingRight:10}},z.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const e=this.state.schedule;return[v.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.weeks===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=1,this.onChange(r)}}),label:z.t("sch_periodEveryWeek")})),v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.weeks>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.weeks>1&&[v.createElement(uo,{key:"input",value:this.state.schedule.period.weeks,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement("span",{key:"text"},z.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const e=this.state.schedule,r=[];for(let o=1;o<=31;o++)r.push(o);const n=JSON.parse(e.period.dates);return v.createElement(am,{row:!0,style:{...le.inputGroup,maxWidth:620}},v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:n.length===31,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let l=1;l<=31;l++)i.push(l);o.period.dates=JSON.stringify(i),this.onChange(o)}}),label:z.t("sch_all")}),v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dates="[]",this.onChange(o)}}),label:z.t("sch_no_one")}),n.length!==31&&!!n.length&&v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),i=[],l=JSON.parse(o.period.dates);for(let c=1;c<=31;c++)l.includes(c)||i.push(c);i.sort((c,d)=>c-d),o.period.dates=JSON.stringify(i),this.onChange(o)}}),label:z.t("sch_invert")}),v.createElement("div",null),r.map(o=>v.createElement(ct,{key:`date_${o}`,style:o?le.inputDateDay:{...le.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:JSON.parse(e.period.dates).includes(o),onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.dates)}catch{c=[]}i.target.checked&&!c.includes(o)?c.push(o):!i.target.checked&&c.includes(o)&&c.splice(c.indexOf(o),1),c.sort((d,f)=>d-f),l.period.dates=JSON.stringify(c),this.onChange(l)}}),label:o<10?[v.createElement("span",{key:"0",style:{opacity:0}},"0"),v.createElement("span",{key:"num"},o)]:o})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const e=this.state.schedule,r=typeof e.period.months=="string"?JSON.parse(e.period.months):[];return[v.createElement("div",{key:"every"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:typeof e.period.months=="number"&&e.period.months===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,this.onChange(e)}}),label:z.t("sch_periodEveryMonth")})),v.createElement("div",{key:"everyN"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:typeof e.period.months=="number"&&e.period.months>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=2,this.onChange(n)}}),label:z.t("sch_periodEvery")}),typeof e.period.months=="number"&&e.period.months>1&&[v.createElement(uo,{key:"input",value:e.period.months,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=parseInt(n.target.value,10),o.period.months<1&&(o.period.months=1),this.onChange(o)}}),v.createElement("span",{key:"text"},z.t("sch_periodMonth"))]),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(ct,{style:{verticalAlign:"top"},control:v.createElement(At,{style:le.inputRadio,checked:typeof e.period.months=="string",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(n)}}),label:z.t("sch_periodSpecificMonths")}),typeof e.period.months=="string"&&v.createElement(am,{row:!0,style:le.inputGroup},v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:r.length===12,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[];for(let i=1;i<=12;i++)o.push(i);n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_all")}),v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:!r.length,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[]",this.onChange(n)}}),label:z.t("sch_no_one")}),r.length!==12&&!!r.length&&v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:!1,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[],i=JSON.parse(n.period.months);for(let l=1;l<=12;l++)i.includes(l)||o.push(l);o.sort((l,c)=>l-c),n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_invert")}),v.createElement("div",null),Pd.map((n,o)=>v.createElement(ct,{key:`month_${o}`,style:le.inputGroupElement,control:v.createElement(Ar,{style:le.inputSmallCheck,checked:typeof e.period.months=="string"?JSON.parse(e.period.months).includes(o+1):e.period.months===o,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.months)}catch{c=[]}i.target.checked&&!c.includes(o+1)?c.push(o+1):!i.target.checked&&c.includes(o+1)&&c.splice(c.indexOf(o+1),1),c.sort((d,f)=>d-f),l.period.months=JSON.stringify(c),this.onChange(l)}}),label:z.t(n)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const e=this.state.schedule;return[v.createElement("div",{key:"year"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.years===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,this.onChange(r)}}),label:z.t("sch_periodEveryYear")})),v.createElement("div",{key:"every"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.years>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.years>1&&[v.createElement(uo,{key:"input",value:this.state.schedule.period.years,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=parseInt(r.target.value,10),n.period.years<1&&(n.period.years=1),this.onChange(n)}}),v.createElement("span",{key:"text"},z.t("sch_periodYear"))])]}static now2string(e){const r=new Date;return r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0),e&&(r.setDate(r.getDate()+2),r.setMilliseconds(r.getMilliseconds()-1)),`${Fo(r.getDate())}.${Fo(r.getMonth()+1)}.${Fo(r.getFullYear())}`}static string2date(e){let r=e.split(".");return r.length===1?(r=e.split("-"),new Date(parseInt(r[0],10),parseInt(r[1],10)-1,parseInt(r[2],10))):new Date(parseInt(r[2],10),parseInt(r[1],10)-1,parseInt(r[0],10))}getValidSettings(){const e=this.state.schedule;return v.createElement("div",{style:le.rowDiv},v.createElement("div",{style:{...le.modeDiv,verticalAlign:"middle"}},v.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},z.t("sch_valid")),v.createElement("span",null,z.t("sch_validFrom"))),v.createElement("div",{style:le.settingsDiv},v.createElement(vr,{variant:"standard",style:{...le.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:R1(e.valid.from),type:"date",onChange:r=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(n=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),i=Sr.string2date(n);i.toString()!=="Invalid Date"&&(o.valid.from=`${Fo(i.getDate())}.${Fo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),v.createElement(ct,{control:v.createElement(Ar,{style:le.inputRadio,checked:!!e.valid.to,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.valid.to=r.valid.to?"":Sr.now2string(!0),this.onChange(r)}}),label:z.t("sch_validTo")}),!!e.valid.to&&v.createElement(vr,{variant:"standard",inputRef:this.refTo,style:{...le.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:R1(e.valid.to),onChange:r=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(n=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),i=Sr.string2date(n);i.toString()!=="Invalid Date"&&(o.valid.to=`${Fo(i.getDate())}.${Fo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return v.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},v.createElement("div",null,this.state.desc),v.createElement("div",{style:le.scrollWindow},v.createElement("h5",null,z.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),Sr.getDivider(),v.createElement("h5",null,z.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&Sr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}function FV({themeName:t,toggleTheme:e,t:r,className:n,style:o,size:i}){return v.createElement("div",{className:n||void 0,style:o||void 0},v.createElement(zd,{title:r("ra_Change color theme"),slotProps:{popper:{sx:{pointerEvents:"none"}}}},v.createElement(mr,{onClick:()=>e(),size:i||"medium"},t==="dark"&&v.createElement(g$,{className:n}),t==="blue"&&v.createElement(v$,{className:n}),t==="colored"&&v.createElement(cy,{className:n}),t!=="dark"&&t!=="blue"&&t!=="colored"&&v.createElement(y$,{className:n}))))}function m8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function CC(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',rG=Number.isNaN||wo.isNaN;function mt(t){return typeof t=="number"&&!rG(t)}var O8=function(e){return e>0&&e<1/0};function P1(t){return typeof t>"u"}function ya(t){return bv(t)==="object"&&t!==null}var nG=Object.prototype.hasOwnProperty;function Bs(t){if(!ya(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&nG.call(r,"isPrototypeOf")}catch{return!1}}function Kr(t){return typeof t=="function"}var oG=Array.prototype.slice;function NC(t){return Array.from?Array.from(t):oG.call(t)}function ar(t,e){return t&&Kr(e)&&(Array.isArray(t)||mt(t.length)?NC(t).forEach(function(r,n){e.call(t,r,n,t)}):ya(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Wt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(i){ya(i)&&Object.keys(i).forEach(function(l){e[l]=i[l]})}),e},iG=/\.\d*(?:0|9){12}\d*$/;function Ws(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return iG.test(t)?Math.round(t*e)/e:t}var aG=/^width|height|left|top|marginLeft|marginTop$/;function ki(t,e){var r=t.style;ar(e,function(n,o){aG.test(o)&&mt(n)&&(n="".concat(n,"px")),r[o]=n})}function sG(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function gr(t,e){if(e){if(mt(t.length)){ar(t,function(n){gr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function yo(t,e){if(e){if(mt(t.length)){ar(t,function(r){yo(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function zs(t,e,r){if(e){if(mt(t.length)){ar(t,function(n){zs(n,e,r)});return}r?gr(t,e):yo(t,e)}}var lG=/([a-z\d])([A-Z])/g;function c2(t){return t.replace(lG,"$1-$2").toLowerCase()}function Ov(t,e){return ya(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(c2(e)))}function zc(t,e,r){ya(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(c2(e)),r)}function cG(t,e){if(ya(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(c2(e)))}var $C=/\s\s*/,LC=(function(){var t=!1;if(nf){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(i){e=i}});wo.addEventListener("test",r,n),wo.removeEventListener("test",r,n)}return t})();function Hn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split($C).forEach(function(i){if(!LC){var l=t.listeners;l&&l[i]&&l[i][r]&&(o=l[i][r],delete l[i][r],Object.keys(l[i]).length===0&&delete l[i],Object.keys(l).length===0&&delete t.listeners)}t.removeEventListener(i,o,n)})}function kn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split($C).forEach(function(i){if(n.once&&!LC){var l=t.listeners,c=l===void 0?{}:l;o=function(){delete c[i][r],t.removeEventListener(i,o,n);for(var f=arguments.length,g=new Array(f),u=0;uMath.abs(r)&&(r=m)})}),r}function Id(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:CC({startX:r,startY:n},o)}function pG(t){var e=0,r=0,n=0;return ar(t,function(o){var i=o.startX,l=o.startY;e+=i,r+=l,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function _i(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",i=O8(n),l=O8(r);if(i&&l){var c=r*e;o==="contain"&&c>n||o==="cover"&&c90?{width:d,height:c}:{width:c,height:d}}function hG(t,e,r,n){var o=e.aspectRatio,i=e.naturalWidth,l=e.naturalHeight,c=e.rotate,d=c===void 0?0:c,f=e.scaleX,g=f===void 0?1:f,u=e.scaleY,m=u===void 0?1:u,y=r.aspectRatio,x=r.naturalWidth,w=r.naturalHeight,T=n.fillColor,k=T===void 0?"transparent":T,I=n.imageSmoothingEnabled,_=I===void 0?!0:I,R=n.imageSmoothingQuality,P=R===void 0?"low":R,C=n.maxWidth,M=C===void 0?1/0:C,N=n.maxHeight,D=N===void 0?1/0:N,E=n.minWidth,$=E===void 0?0:E,H=n.minHeight,q=H===void 0?0:H,U=document.createElement("canvas"),W=U.getContext("2d"),K=_i({aspectRatio:y,width:M,height:D}),re=_i({aspectRatio:y,width:$,height:q},"cover"),Z=Math.min(K.width,Math.max(re.width,x)),V=Math.min(K.height,Math.max(re.height,w)),ee=_i({aspectRatio:o,width:M,height:D}),B=_i({aspectRatio:o,width:$,height:q},"cover"),J=Math.min(ee.width,Math.max(B.width,i)),de=Math.min(ee.height,Math.max(B.height,l)),pe=[-J/2,-de/2,J,de];return U.width=Ws(Z),U.height=Ws(V),W.fillStyle=k,W.fillRect(0,0,Z,V),W.save(),W.translate(Z/2,V/2),W.rotate(d*Math.PI/180),W.scale(g,m),W.imageSmoothingEnabled=_,W.imageSmoothingQuality=P,W.drawImage.apply(W,[t].concat(_C(pe.map(function(ie){return Math.floor(Ws(ie))})))),W.restore(),U}var BC=String.fromCharCode;function mG(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(BC.apply(null,NC(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function bG(t){var e=new DataView(t),r;try{var n,o,i;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var l=e.byteLength,c=2;c+1=8&&(i=f+u)}}}if(i){var m=e.getUint16(i,n),y,x;for(x=0;x=0?i:AC),height:Math.max(n.offsetHeight,l>=0?l:DC)};this.containerData=c,ki(o,{width:c.width,height:c.height}),gr(e,Yr),yo(o,Yr)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,i=o?r.naturalHeight:r.naturalWidth,l=o?r.naturalWidth:r.naturalHeight,c=i/l,d=e.width,f=e.height;e.height*c>e.width?n===3?d=e.height*c:f=e.width/c:n===3?f=e.width/c:d=e.height*c;var g={aspectRatio:c,naturalWidth:i,naturalHeight:l,width:d,height:f};this.canvasData=g,this.limited=n===1||n===2,this.limitCanvas(!0,!0),g.width=Math.min(Math.max(g.width,g.minWidth),g.maxWidth),g.height=Math.min(Math.max(g.height,g.minHeight),g.maxHeight),g.left=(e.width-g.width)/2,g.top=(e.height-g.height)/2,g.oldLeft=g.left,g.oldTop=g.top,this.initialCanvasData=Wt({},g)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,i=this.canvasData,l=this.cropBoxData,c=n.viewMode,d=i.aspectRatio,f=this.cropped&&l;if(e){var g=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;c>1?(g=Math.max(g,o.width),u=Math.max(u,o.height),c===3&&(u*d>g?g=u*d:u=g/d)):c>0&&(g?g=Math.max(g,f?l.width:0):u?u=Math.max(u,f?l.height:0):f&&(g=l.width,u=l.height,u*d>g?g=u*d:u=g/d));var m=_i({aspectRatio:d,width:g,height:u});g=m.width,u=m.height,i.minWidth=g,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(r)if(c>(f?0:1)){var y=o.width-i.width,x=o.height-i.height;i.minLeft=Math.min(0,y),i.minTop=Math.min(0,x),i.maxLeft=Math.max(0,y),i.maxTop=Math.max(0,x),f&&this.limited&&(i.minLeft=Math.min(l.left,l.left+(l.width-i.width)),i.minTop=Math.min(l.top,l.top+(l.height-i.height)),i.maxLeft=l.left,i.maxTop=l.top,c===2&&(i.width>=o.width&&(i.minLeft=Math.min(0,y),i.maxLeft=Math.max(0,y)),i.height>=o.height&&(i.minTop=Math.min(0,x),i.maxTop=Math.max(0,x))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=o.width,i.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var i=fG({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),l=i.width,c=i.height,d=n.width*(l/n.naturalWidth),f=n.height*(c/n.naturalHeight);n.left-=(d-n.width)/2,n.top-=(f-n.height)/2,n.width=d,n.height=f,n.aspectRatio=l/c,n.naturalWidth=l,n.naturalHeight=c,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*o),i.height=Math.max(i.minHeight,i.height*o),i.left=r.left+(r.width-i.width)/2,i.top=r.top+(r.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=Wt({},i)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,i=this.canvasData,l=this.cropBoxData,c=this.limited,d=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,g=Number(n.minCropBoxHeight)||0,u=c?Math.min(o.width,i.width,i.width+i.left,o.width-i.left):o.width,m=c?Math.min(o.height,i.height,i.height+i.top,o.height-i.top):o.height;f=Math.min(f,o.width),g=Math.min(g,o.height),d&&(f&&g?g*d>f?g=f/d:f=g*d:f?g=f/d:g&&(f=g*d),m*d>u?m=u/d:u=m*d),l.minWidth=Math.min(f,u),l.minHeight=Math.min(g,m),l.maxWidth=u,l.maxHeight=m}r&&(c?(l.minLeft=Math.max(0,i.left),l.minTop=Math.max(0,i.top),l.maxLeft=Math.min(o.width,i.left+i.width)-l.width,l.maxTop=Math.min(o.height,i.top+i.height)-l.height):(l.minLeft=0,l.minTop=0,l.maxLeft=o.width-l.width,l.maxTop=o.height-l.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?RC:s2),ki(this.cropBox,Wt({width:n.width,height:n.height},kc({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Us(this.element,Tv,this.getData())}},SG={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",l=document.createElement("img");if(r&&(l.crossOrigin=r),l.src=o,l.alt=i,this.viewBox.appendChild(l),this.viewBoxImage=l,!!n){var c=n;typeof n=="string"?c=e.ownerDocument.querySelectorAll(n):n.querySelector&&(c=[n]),this.previews=c,ar(c,function(d){var f=document.createElement("img");zc(d,Md,{width:d.offsetWidth,height:d.offsetHeight,html:d.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=i,f.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',d.innerHTML="",d.appendChild(f)})}},resetPreview:function(){ar(this.previews,function(e){var r=Ov(e,Md);ki(e,{width:r.width,height:r.height}),e.innerHTML=r.html,cG(e,Md)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,i=n.height,l=e.width,c=e.height,d=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(ki(this.viewBoxImage,Wt({width:l,height:c},kc(Wt({translateX:-d,translateY:-f},e)))),ar(this.previews,function(g){var u=Ov(g,Md),m=u.width,y=u.height,x=m,w=y,T=1;o&&(T=m/o,w=i*T),i&&w>y&&(T=y/i,x=o*T,w=y),ki(g,{width:x,height:w}),ki(g.getElementsByTagName("img")[0],Wt({width:l*T,height:c*T},kc(Wt({translateX:-d*T,translateY:-f*T},e))))}))}},TG={bind:function(){var e=this.element,r=this.options,n=this.cropper;Kr(r.cropstart)&&kn(e,kv,r.cropstart),Kr(r.cropmove)&&kn(e,Cv,r.cropmove),Kr(r.cropend)&&kn(e,Ev,r.cropend),Kr(r.crop)&&kn(e,Tv,r.crop),Kr(r.zoom)&&kn(e,_v,r.zoom),kn(n,w8,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&kn(n,C8,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&kn(n,b8,this.onDblclick=this.dblclick.bind(this)),kn(e.ownerDocument,x8,this.onCropMove=this.cropMove.bind(this)),kn(e.ownerDocument,S8,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&kn(window,E8,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;Kr(r.cropstart)&&Hn(e,kv,r.cropstart),Kr(r.cropmove)&&Hn(e,Cv,r.cropmove),Kr(r.cropend)&&Hn(e,Ev,r.cropend),Kr(r.crop)&&Hn(e,Tv,r.crop),Kr(r.zoom)&&Hn(e,_v,r.zoom),Hn(n,w8,this.onCropStart),r.zoomable&&r.zoomOnWheel&&Hn(n,C8,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Hn(n,b8,this.onDblclick),Hn(e.ownerDocument,x8,this.onCropMove),Hn(e.ownerDocument,S8,this.onCropEnd),r.responsive&&Hn(window,E8,this.onResize)}},EG={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,i=r.offsetHeight/n.height,l=Math.abs(o-1)>Math.abs(i-1)?o:i;if(l!==1){var c,d;e.restore&&(c=this.getCanvasData(),d=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(ar(c,function(f,g){c[g]=f*l})),this.setCropBoxData(ar(d,function(f,g){d[g]=f*l})))}}},dblclick:function(){this.disabled||this.options.dragMode===IC||this.setDragMode(sG(this.dragBox,xv)?MC:l2)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(mt(r)&&r!==1||mt(n)&&n!==0||e.ctrlKey))){var o=this.options,i=this.pointers,l;e.changedTouches?ar(e.changedTouches,function(c){i[c.identifier]=Id(c)}):i[e.pointerId||0]=Id(e),Object.keys(i).length>1&&o.zoomable&&o.zoomOnTouch?l=PC:l=Ov(e.target,Bc),JV.test(l)&&Us(this.element,kv,{originalEvent:e,action:l})!==!1&&(e.preventDefault(),this.action=l,this.cropping=!1,l===OC&&(this.cropping=!0,gr(this.dragBox,hp)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),Us(this.element,Cv,{originalEvent:e,action:r})!==!1&&(e.changedTouches?ar(e.changedTouches,function(o){Wt(n[o.identifier]||{},Id(o,!0))}):Wt(n[e.pointerId||0]||{},Id(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?ar(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,zs(this.dragBox,hp,this.cropped&&this.options.modal)),Us(this.element,Ev,{originalEvent:e,action:r}))}}},CG={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,i=this.cropBoxData,l=this.pointers,c=this.action,d=r.aspectRatio,f=i.left,g=i.top,u=i.width,m=i.height,y=f+u,x=g+m,w=0,T=0,k=o.width,I=o.height,_=!0,R;!d&&e.shiftKey&&(d=u&&m?u/m:1),this.limited&&(w=i.minLeft,T=i.minTop,k=w+Math.min(o.width,n.width,n.left+n.width),I=T+Math.min(o.height,n.height,n.top+n.height));var P=l[Object.keys(l)[0]],C={x:P.endX-P.startX,y:P.endY-P.startY},M=function(D){switch(D){case na:y+C.x>k&&(C.x=k-y);break;case oa:f+C.xI&&(C.y=I-x);break}};switch(c){case s2:f+=C.x,g+=C.y;break;case na:if(C.x>=0&&(y>=k||d&&(g<=T||x>=I))){_=!1;break}M(na),u+=C.x,u<0&&(c=oa,u=-u,f-=u),d&&(m=u/d,g+=(i.height-m)/2);break;case vi:if(C.y<=0&&(g<=T||d&&(f<=w||y>=k))){_=!1;break}M(vi),m-=C.y,g+=C.y,m<0&&(c=gs,m=-m,g-=m),d&&(u=m*d,f+=(i.width-u)/2);break;case oa:if(C.x<=0&&(f<=w||d&&(g<=T||x>=I))){_=!1;break}M(oa),u-=C.x,f+=C.x,u<0&&(c=na,u=-u,f-=u),d&&(m=u/d,g+=(i.height-m)/2);break;case gs:if(C.y>=0&&(x>=I||d&&(f<=w||y>=k))){_=!1;break}M(gs),m+=C.y,m<0&&(c=vi,m=-m,g-=m),d&&(u=m*d,f+=(i.width-u)/2);break;case ic:if(d){if(C.y<=0&&(g<=T||y>=k)){_=!1;break}M(vi),m-=C.y,g+=C.y,u=m*d}else M(vi),M(na),C.x>=0?yT&&(m-=C.y,g+=C.y):(m-=C.y,g+=C.y);u<0&&m<0?(c=lc,m=-m,u=-u,g-=m,f-=u):u<0?(c=ac,u=-u,f-=u):m<0&&(c=sc,m=-m,g-=m);break;case ac:if(d){if(C.y<=0&&(g<=T||f<=w)){_=!1;break}M(vi),m-=C.y,g+=C.y,u=m*d,f+=i.width-u}else M(vi),M(oa),C.x<=0?f>w?(u-=C.x,f+=C.x):C.y<=0&&g<=T&&(_=!1):(u-=C.x,f+=C.x),C.y<=0?g>T&&(m-=C.y,g+=C.y):(m-=C.y,g+=C.y);u<0&&m<0?(c=sc,m=-m,u=-u,g-=m,f-=u):u<0?(c=ic,u=-u,f-=u):m<0&&(c=lc,m=-m,g-=m);break;case lc:if(d){if(C.x<=0&&(f<=w||x>=I)){_=!1;break}M(oa),u-=C.x,f+=C.x,m=u/d}else M(gs),M(oa),C.x<=0?f>w?(u-=C.x,f+=C.x):C.y>=0&&x>=I&&(_=!1):(u-=C.x,f+=C.x),C.y>=0?x=0&&(y>=k||x>=I)){_=!1;break}M(na),u+=C.x,m=u/d}else M(gs),M(na),C.x>=0?y=0&&x>=I&&(_=!1):u+=C.x,C.y>=0?x0?c=C.y>0?sc:ic:C.x<0&&(f-=u,c=C.y>0?lc:ac),C.y<0&&(g-=m),this.cropped||(yo(this.cropBox,Yr),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}_&&(i.width=u,i.height=m,i.left=f,i.top=g,this.action=c,this.renderCropBox()),ar(l,function(N){N.startX=N.endX,N.startY=N.endY})}},kG={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&gr(this.dragBox,hp),yo(this.cropBox,Yr),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Wt({},this.initialImageData),this.canvasData=Wt({},this.initialCanvasData),this.cropBoxData=Wt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Wt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),yo(this.dragBox,hp),gr(this.cropBox,Yr)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,ar(this.previews,function(n){n.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,yo(this.cropper,v8)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,gr(this.cropper,v8)),this},destroy:function(){var e=this.element;return e[Ht]?(e[Ht]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,i=n.top;return this.moveTo(P1(e)?e:o+Number(e),P1(r)?r:i+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(mt(e)&&(n.left=e,o=!0),mt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,i=this.canvasData,l=i.width,c=i.height,d=i.naturalWidth,f=i.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var g=d*e,u=f*e;if(Us(this.element,_v,{ratio:e,oldRatio:l/d,originalEvent:n})===!1)return this;if(n){var m=this.pointers,y=FC(this.cropper),x=m&&Object.keys(m).length?pG(m):{pageX:n.pageX,pageY:n.pageY};i.left-=(g-l)*((x.pageX-y.left-i.left)/l),i.top-=(u-c)*((x.pageY-y.top-i.top)/c)}else Bs(r)&&mt(r.x)&&mt(r.y)?(i.left-=(g-l)*((r.x-i.left)/l),i.top-=(u-c)*((r.y-i.top)/c)):(i.left-=(g-l)/2,i.top-=(u-c)/2);i.width=g,i.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),mt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,mt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(mt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(mt(e)&&(n.scaleX=e,o=!0),mt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,i=this.cropBoxData,l;if(this.ready&&this.cropped){l={x:i.left-o.left,y:i.top-o.top,width:i.width,height:i.height};var c=n.width/n.naturalWidth;if(ar(l,function(g,u){l[u]=g/c}),e){var d=Math.round(l.y+l.height),f=Math.round(l.x+l.width);l.x=Math.round(l.x),l.y=Math.round(l.y),l.width=f-l.x,l.height=d-l.y}}else l={x:0,y:0,width:0,height:0};return r.rotatable&&(l.rotate=n.rotate||0),r.scalable&&(l.scaleX=n.scaleX||1,l.scaleY=n.scaleY||1),l},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,i={};if(this.ready&&!this.disabled&&Bs(e)){var l=!1;r.rotatable&&mt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,l=!0),r.scalable&&(mt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,l=!0),mt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,l=!0)),l&&this.renderCanvas(!0,!0);var c=n.width/n.naturalWidth;mt(e.x)&&(i.left=e.x*c+o.left),mt(e.y)&&(i.top=e.y*c+o.top),mt(e.width)&&(i.width=e.width*c),mt(e.height)&&(i.height=e.height*c),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?Wt({},this.containerData):{}},getImageData:function(){return this.sized?Wt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&ar(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&Bs(e)&&(mt(e.left)&&(r.left=e.left),mt(e.top)&&(r.top=e.top),mt(e.width)?(r.width=e.width,r.height=e.width/n):mt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,i;return this.ready&&this.cropped&&!this.disabled&&Bs(e)&&(mt(e.left)&&(r.left=e.left),mt(e.top)&&(r.top=e.top),mt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),mt(e.height)&&e.height!==r.height&&(i=!0,r.height=e.height),n&&(o?r.height=r.width/n:i&&(r.width=r.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var r=this.canvasData,n=hG(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),i=o.x,l=o.y,c=o.width,d=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(i*=f,l*=f,c*=f,d*=f);var g=c/d,u=_i({aspectRatio:g,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),m=_i({aspectRatio:g,width:e.minWidth||0,height:e.minHeight||0},"cover"),y=_i({aspectRatio:g,width:e.width||(f!==1?n.width:c),height:e.height||(f!==1?n.height:d)}),x=y.width,w=y.height;x=Math.min(u.width,Math.max(m.width,x)),w=Math.min(u.height,Math.max(m.height,w));var T=document.createElement("canvas"),k=T.getContext("2d");T.width=Ws(x),T.height=Ws(w),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,x,w);var I=e.imageSmoothingEnabled,_=I===void 0?!0:I,R=e.imageSmoothingQuality;k.imageSmoothingEnabled=_,R&&(k.imageSmoothingQuality=R);var P=n.width,C=n.height,M=i,N=l,D,E,$,H,q,U;M<=-c||M>P?(M=0,D=0,$=0,q=0):M<=0?($=-M,M=0,D=Math.min(P,c+M),q=D):M<=P&&($=0,D=Math.min(c,P-M),q=D),D<=0||N<=-d||N>C?(N=0,E=0,H=0,U=0):N<=0?(H=-N,N=0,E=Math.min(C,d+N),U=E):N<=C&&(H=0,E=Math.min(d,C-N),U=E);var W=[M,N,D,E];if(q>0&&U>0){var K=x/c;W.push($*K,H*K,q*K,U*K)}return k.drawImage.apply(k,[n].concat(_C(W.map(function(re){return Math.floor(Ws(re))})))),T},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!P1(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var i=e===l2,l=r.movable&&e===MC;e=i||l?e:IC,r.dragMode=e,zc(n,Bc,e),zs(n,xv,i),zs(n,Sv,l),r.cropBoxMovable||(zc(o,Bc,e),zs(o,xv,i),zs(o,Sv,l))}return this}},_G=wo.Cropper,zC=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(zV(this,t),!e||!eG.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Wt({},_8,Bs(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return jV(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Ht]){if(r[Ht]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,i=this.options;if(!i.rotatable&&!i.scalable&&(i.checkOrientation=!1),!i.checkOrientation||!window.ArrayBuffer){this.clone();return}if(QV.test(r)){ZV.test(r)?this.read(vG(r)):this.clone();return}var l=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=c,l.onerror=c,l.ontimeout=c,l.onprogress=function(){l.getResponseHeader("content-type")!==k8&&l.abort()},l.onload=function(){n.read(l.response)},l.onloadend=function(){n.reloading=!1,n.xhr=null},i.checkCrossOrigin&&R8(r)&&o.crossOrigin&&(r=P8(r)),l.open("GET",r,!0),l.responseType="arraybuffer",l.withCredentials=o.crossOrigin==="use-credentials",l.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,i=bG(r),l=0,c=1,d=1;if(i>1){this.url=yG(r,k8);var f=wG(i);l=f.rotate,c=f.scaleX,d=f.scaleY}n.rotatable&&(o.rotate=l),n.scalable&&(o.scaleX=c,o.scaleY=d),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,i=n;this.options.checkCrossOrigin&&R8(n)&&(o||(o="anonymous"),i=P8(n)),this.crossOrigin=o,this.crossOriginUrl=i;var l=document.createElement("img");o&&(l.crossOrigin=o),l.src=i||n,l.alt=r.alt||"The image to crop",this.image=l,l.onload=this.start.bind(this),l.onerror=this.stop.bind(this),gr(l,y8),r.parentNode.insertBefore(l,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=wo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(wo.navigator.userAgent),i=function(f,g){Wt(r.imageData,{naturalWidth:f,naturalHeight:g,aspectRatio:f/g}),r.initialImageData=Wt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){i(n.naturalWidth,n.naturalHeight);return}var l=document.createElement("img"),c=document.body||document.documentElement;this.sizingImage=l,l.onload=function(){i(l.width,l.height),o||c.removeChild(l)},l.src=n.src,o||(l.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",c.appendChild(l))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,i=r.parentNode,l=document.createElement("div");l.innerHTML=tG;var c=l.querySelector(".".concat(Ht,"-container")),d=c.querySelector(".".concat(Ht,"-canvas")),f=c.querySelector(".".concat(Ht,"-drag-box")),g=c.querySelector(".".concat(Ht,"-crop-box")),u=g.querySelector(".".concat(Ht,"-face"));this.container=i,this.cropper=c,this.canvas=d,this.dragBox=f,this.cropBox=g,this.viewBox=c.querySelector(".".concat(Ht,"-view-box")),this.face=u,d.appendChild(o),gr(r,Yr),i.insertBefore(c,r.nextSibling),yo(o,y8),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,gr(g,Yr),n.guides||gr(g.getElementsByClassName("".concat(Ht,"-dashed")),Yr),n.center||gr(g.getElementsByClassName("".concat(Ht,"-center")),Yr),n.background&&gr(c,"".concat(Ht,"-bg")),n.highlight||gr(u,VV),n.cropBoxMovable&&(gr(u,Sv),zc(u,Bc,s2)),n.cropBoxResizable||(gr(g.getElementsByClassName("".concat(Ht,"-line")),Yr),gr(g.getElementsByClassName("".concat(Ht,"-point")),Yr)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),Kr(n.ready)&&kn(r,T8,n.ready,{once:!0}),Us(r,T8)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),yo(this.element,Yr)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=_G,t}},{key:"setDefaults",value:function(r){Wt(_8,Bs(r)&&r)}}])})();Wt(zC.prototype,xG,SG,TG,EG,CG,kG);var ca=function(){return ca=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&N.zoomTo(re)})(M.currentTarget.cropper,_),T&&T(M)}}));k&&k(C)}return function(){var M,N;(N=(M=R.current)===null||M===void 0?void 0:M.cropper)===null||N===void 0||N.destroy()}}),[R]);var P=(function(C){return OG.reduce((function(M,N){var D=M,E=N;return D[E],I1(D,[typeof E=="symbol"?E:E+""])}),C)})(ca(ca({},I),{crossOrigin:d,src:i,alt:w}));return v.createElement("div",{style:l,className:c},v.createElement("img",ca({},P,{style:RG,ref:R})))}));const yi={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},PG={once:"once"},Nr={seconds:"seconds",minutes:"minutes"},M8=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function po(t){return t<10?`0${t}`:`${t}`}const MG={mode:"interval",interval:{period:1,unit:Nr.minutes}};function qd(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const i=parseInt(o[0],10),l=parseInt(o[1],10);for(let c=i;c<=l;c++)r.includes(c===7?0:c)||r.push(c===7?0:c)}else{n==="7"&&(n="0");const i=parseInt(n,10);r.includes(i)||r.push(i)}}),r.sort(),r}function jC(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Nr.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Nr.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Nr.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Nr.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Nr.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:qd(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Nr.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:qd(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${po(parseInt(n.hours,10))}:${po(parseInt(n.minutes,10))}`,weekdays:qd(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${po(parseInt(n.hours,10))}:${po(parseInt(n.minutes,10))}`,date:`${po(parseInt(n.date,10))}.${po(parseInt(n.months,10))}`}}),o}class jc extends v.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=jC(r||"* * * * *",!0)||MG;this.state={extended:!1,cron:jc.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Nr.minutes},intervalBetween:{period:1,unit:Nr.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,i=null;if(!e.length)return"_";for(let l=0;l60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Nr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Nr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Nr.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Nr.minutes,n.unit){case Nr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Nr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let i=parseInt(o[1],10)||0;i>59&&(i=59),i<0&&(i=0);let l=parseInt(o[0],10)||0;l>23&&(l=23),l<0&&(l=0),r=`${i} ${l} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${po(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),i=n.date.split(".");let l=parseInt(o[1],10)||0;l>59&&(l=59),l<0&&(l=0);let c=parseInt(o[0],10)||0;c>23&&(c=23),c<0&&(c=0);let d=parseInt(i[0],10)||1;d>31&&(d=31),d<1&&(d=1);let f=parseInt(i[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${l} ${c} ${d} ${f} *`}return r}recalcCron(){this.onChange(jc.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return v.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},v.createElement("h5",null,z.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>v.createElement(ct,{key:M8[n],control:v.createElement(Ar,{checked:r.weekdays.includes(n),onChange:o=>{const i=JSON.parse(JSON.stringify(this.state[e])),l=i.weekdays.indexOf(n);o.target.checked?l===-1&&i.weekdays.push(n):l!==-1&&i.weekdays.splice(l,1),i.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:i},()=>this.recalcCron()):this.setState({specific:i},()=>this.recalcCron())},value:n.toString()}),label:z.t(M8[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),v.createElement(vr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(vr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),v.createElement(vr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(ho,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},v.createElement(cr,{value:"seconds"},z.t("sc_seconds")),")",v.createElement(cr,{value:"minutes"},z.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return v.createElement(ys,{variant:"standard",sx:{...yi.formControl,"&.MuiFormControl-root":yi.formControlMarginRight}},v.createElement(vr,{variant:"standard",key:"at",label:z.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${po(r.getMonth()+1)}`}return v.createElement(ys,{variant:"standard",style:yi.formControl},v.createElement(vr,{variant:"standard",key:"date",label:z.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:yi.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return v.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),v.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_hours")),v.createElement(ys,{variant:"standard",style:yi.formControl},v.createElement(Bd,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_from")),v.createElement(ho,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(cr,{key:`B_${r}`,value:r},`${po(r)}:00`)))),v.createElement(ys,{variant:"standard",style:yi.formControl},v.createElement(Bd,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_to")),v.createElement(ho,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(cr,{key:`A_${r}`,value:r},`${po(r)}:00`)),!e.timeFrom&&v.createElement(cr,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[v.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return v.createElement("div",{style:yi.mainDiv},v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},v.createElement(vr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?z.t("sc_invalid_cron"):lC(this.state.cron,this.props.language||"en")),v.createElement("div",null,v.createElement(ys,{variant:"standard",style:{...yi.formControl,marginLeft:8,marginTop:8}},v.createElement(Bd,null,z.t("ra_Repeat")),v.createElement(ho,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},v.createElement(cr,{value:"once"},z.t("sc_once")),v.createElement(cr,{value:"interval"},z.t("sc_interval")),v.createElement(cr,{value:"intervalBetween"},z.t("sc_intervalBetween")),v.createElement(cr,{value:"specific"},z.t("sc_specific"))))),this.state.mode===PG.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const IG={dialogPaper:{height:"calc(100% - 96px)"}};class TY extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Ci.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?v.createElement(nL,{title:z.t("ra_Please confirm"),text:z.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return v.createElement(qo,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":IG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),v.createElement(Xo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),v.createElement(Uo,{style:{height:"100%",overflow:"hidden"}},v.createElement(Ci,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(Wo,null,!!this.props.clearButton&&v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:v.createElement(jd,null)},this.props.clear||z.t("ra_Clear")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Fi,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(Bp,null)},this.props.cancel||z.t("ra_Cancel"))))}}const AG={dialogPaper:{height:"calc(100% - 96px)"}};class EY extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":jC(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return v.createElement(qo,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":AG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(Xo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),v.createElement(Uo,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?v.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&v.createElement(v.Fragment,null,v.createElement(At,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),v.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},z.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&v.createElement(v.Fragment,null,v.createElement(At,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),v.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},z.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&v.createElement(v.Fragment,null,v.createElement(At,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),v.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},z.t("sc_cron")))):null,this.state.mode==="simple"&&v.createElement(jc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()}),this.state.mode==="wizard"&&v.createElement(Sr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&v.createElement(Ci,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(Wo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Fi,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(Bp,null)},this.props.cancel||z.t("ra_Cancel"))))}}const ia={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class CY extends v.Component{dialogName;filters;constructor(e){super(e),this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const r=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(r)}catch{this.filters={}}e.filters&&(this.filters={...this.filters,...e.filters});let n=this.props.selected||[];typeof n!="object"?n=[n]:n=[...n],n=n.filter(o=>o),this.state={selected:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let e;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?e=[v.createElement("span",{key:"selected"},z.t("ra_Selected")," "),v.createElement("span",{key:"id",style:ia.headerID},this.state.selected)]:e=[v.createElement("span",{key:"selected"},z.t("ra_Selected")," "),v.createElement("span",{key:"id",style:ia.headerID},z.t("%s items",this.state.selected.length))]:e=this.props.title||z.t("ra_Please select file..."),v.createElement(qo,{onClose:()=>{},maxWidth:!1,style:{zIndex:this.props.zIndex||void 0},sx:{"& .MuiDialog-paper":{...ia.dialog,...ia.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},v.createElement(Xo,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":ia.titleRoot}},e),v.createElement(Uo,{style:{...ia.content,...ia.contentMobile}},v.createElement(HX,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(r,n,o)=>{this.setState({selected:Array.isArray(r)?r:[r]},()=>n&&(!this.props.selectOnlyFolders||o)&&this.handleOk())},t:this.props.t||z.t,lang:this.props.lang||z.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),v.createElement(Wo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:v.createElement(Fi,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(Bp,null)},this.props.cancel||z.t("ra_Cancel"))))}}const DG={dialogPaper:{height:"calc(100% - 96px)"}};class kY extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return v.createElement(qo,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":DG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(Xo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define CRON...")),v.createElement(Uo,{style:{height:"100%",overflow:"hidden"}},v.createElement(jc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(Wo,null,v.createElement(Vt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Fi,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(Bp,null)},this.props.cancel||z.t("ra_Cancel"))))}}const NG="Cannot get access token",$G="Login name",LG="Password",FG="Log in",BG="Web Login",zG="Stay signed in",jG="Wrong password or username",HG={cannotGetAccessToken:NG,enterLogin:$G,enterPassword:LG,login:FG,loginTitle:BG,"ra_Change color theme":"Change color theme",staySignedIn:zG,wrongPassword:jG},qG="Zugriffstoken kann nicht abgerufen werden",WG="Anmeldename",UG="Passwort",XG="Einloggen",VG="Web-Anmeldung",GG="Angemeldet bleiben",KG="Falsches Passwort oder falscher Benutzername",YG={cannotGetAccessToken:qG,enterLogin:WG,enterPassword:UG,login:XG,loginTitle:VG,"ra_Change color theme":"Farbdesign ändern",staySignedIn:GG,wrongPassword:KG},JG="Невозможно получить токен доступа",QG="Имя пользователя",ZG="Пароль",eK="Авторизоваться",tK="Веб-логин",rK="Оставайтесь в системе",nK="Неправильный пароль или имя пользователя",oK={cannotGetAccessToken:JG,enterLogin:QG,enterPassword:ZG,login:eK,loginTitle:tK,"ra_Change color theme":"Изменить цветовую тему",staySignedIn:rK,wrongPassword:nK},iK="Não é possível obter o token de acesso",aK="Nome de login",sK="Senha",lK="Conecte-se",cK="Login na Web",uK="Permanecer conectado",dK="Senha ou nome de usuário incorreto",pK={cannotGetAccessToken:iK,enterLogin:aK,enterPassword:sK,login:lK,loginTitle:cK,"ra_Change color theme":"Alterar tema de cor",staySignedIn:uK,wrongPassword:dK},fK="Kan geen toegangstoken verkrijgen",hK="Inlognaam",mK="Wachtwoord",gK="Inloggen",vK="Web-inlog",yK="Blijf ingelogd",bK="Verkeerd wachtwoord of gebruikersnaam",wK={cannotGetAccessToken:fK,enterLogin:hK,enterPassword:mK,login:gK,loginTitle:vK,"ra_Change color theme":"Kleurenthema wijzigen",staySignedIn:yK,wrongPassword:bK},xK="Impossible d'obtenir le jeton d'accès",SK="Nom d'utilisateur",TK="Mot de passe",EK="Se connecter",CK="Connexion Web",kK="Rester connecté",_K="Mot de passe ou nom d'utilisateur incorrect",OK={cannotGetAccessToken:xK,enterLogin:SK,enterPassword:TK,login:EK,loginTitle:CK,"ra_Change color theme":"Changer le thème de couleur",staySignedIn:kK,wrongPassword:_K},RK="Impossibile ottenere il token di accesso",PK="Nome di accesso",MK="Password",IK="Login",AK="Accesso Web",DK="Rimani connesso",NK="Password o nome utente errati",$K={cannotGetAccessToken:RK,enterLogin:PK,enterPassword:MK,login:IK,loginTitle:AK,"ra_Change color theme":"Cambia tema colore",staySignedIn:DK,wrongPassword:NK},LK="No se puede obtener el token de acceso",FK="Nombre de usuario",BK="Contraseña",zK="Acceso",jK="Inicio de sesión web",HK="Mantenerse conectado",qK="Contraseña o nombre de usuario incorrecto",WK={cannotGetAccessToken:LK,enterLogin:FK,enterPassword:BK,login:zK,loginTitle:jK,"ra_Change color theme":"Cambiar el tema de color",staySignedIn:HK,wrongPassword:qK},UK="Nie można uzyskać tokena dostępu",XK="Nazwa logowania",VK="Hasło",GK="Zaloguj się",KK="Logowanie przez sieć",YK="Pozostań zalogowany",JK="Nieprawidłowe hasło lub nazwa użytkownika",QK={cannotGetAccessToken:UK,enterLogin:XK,enterPassword:VK,login:GK,loginTitle:KK,"ra_Change color theme":"Zmień motyw kolorów",staySignedIn:YK,wrongPassword:JK},ZK="Не вдається отримати маркер доступу",eY="Ім'я для входу",tY="Пароль",rY="авторизуватися",nY="Веб-вхід",oY="Залишайтеся в системі",iY="Неправильний пароль або ім'я користувача",aY={cannotGetAccessToken:ZK,enterLogin:eY,enterPassword:tY,login:rY,loginTitle:nY,"ra_Change color theme":"Змінити кольорову тему",staySignedIn:oY,wrongPassword:iY},sY="无法获取访问令牌",lY="登录名",cY="密码",uY="登录",dY="Web 登录",pY="保持登录状态",fY="密码或用户名错误",hY={cannotGetAccessToken:sY,enterLogin:lY,enterPassword:cY,login:uY,loginTitle:dY,"ra_Change color theme":"更改颜色主题",staySignedIn:pY,wrongPassword:fY},mY="0 4px 7px 5px rgb(0 0 0 / 14%), 0 3px 1px 1px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%)",bi={root:{padding:10,margin:"auto",display:"flex",height:"100%",alignItems:"center",borderRadius:0,justifyContent:"center"},paper:t=>({backgroundColor:t.palette.background.paper+(t.palette.background.paper.length<7?"d":"dd"),p:"24px",overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",maxHeight:500,maxWidth:380,boxShadow:mY}),form:{width:"100%",marginTop:8},submit:{margin:8},alert:{marginTop:16,backgroundColor:"#f44336",padding:8,color:"#fff",borderRadius:4,fontSize:16},ioBrokerLink:{textTransform:"inherit"},marginTop:{marginTop:"auto"}};function gY(t){return L.jsx("div",{style:{width:100,textAlign:"center"},children:L.jsx("svg",{viewBox:"0 0 512 512",width:"100px",height:"100px",children:L.jsx("path",{fill:t.color,d:"M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})})})}class so extends O.Component{formRef;passwordRef;constructor(e){super(e);const r=window.loginOauth2!=="false"?this.authenticateWithRefreshToken():!1,n=so.createTheme();this.state={inProcess:!1,stayLoggedIn:!1,showPassword:!1,username:"",password:"",error:"",loggingIn:r,theme:n,themeName:so.getThemeName(n),themeType:so.getThemeType(n)},this.formRef=v.createRef(),z.setTranslations({en:HG,de:YG,ru:oK,pt:pK,nl:wK,fr:OK,it:$K,es:WK,pl:QK,uk:aY,"zh-cn":hY}),z.setLanguage(window.loginLanguage||"en");const o=window.document.body;o.style.backgroundColor=window.loginBackgroundColor,o.style.backgroundImage=window.loginBackgroundImage,o.style.backgroundSize="cover",this.passwordRef=v.createRef()}static createTheme(e){return V$(Ge.getThemeName(e))}static getThemeName(e){return e.name}static getThemeType(e){return e.palette.mode}toggleTheme=e=>{const r=this.state.themeName,n=e||Ge.toggleTheme(r),o=so.createTheme(n);this.setState({theme:o,themeName:n,themeType:so.getThemeType(o)})};static async getAdapterName(){const e=await fetch("../name");return e.ok?await e.text():"web.0"}static async processTokenAnswer(e,r){if(r.ok){const n=await r.json();if(n?.access_token){const o=await so.getAdapterName();Ir.saveTokensStatic(n,e);const l=new URL(window.location.href).searchParams.get("href");let c;return l?(c=l,c.startsWith("#")&&(c=`./${c}`)):c="./",o.startsWith("web.")?window.location.href=c:window.location.href=`${c}${c.includes("?")?"&":"?"}token=${n.access_token}`,!0}}return Ir.deleteTokensStatic(),!1}authenticateWithRefreshToken(){const e=Ir.readTokens();return e?.refresh_token?(fetch("../oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&refresh_token=${e.refresh_token}&stayloggedin=${e.stayLoggedIn}&client_id=ioBroker`}).then(async r=>{await so.processTokenAnswer(e.stayLoggedIn,r),this.setState({inProcess:!1,loggingIn:!1})}).catch(r=>{console.error(`Cannot fetch access token: ${r}`),this.setState({inProcess:!1,loggingIn:!1})}),!0):!1}render(){const e=`${window.location.port==="3000"?`${window.location.protocol}//${window.location.hostname}:8082/`:"/login"}?${window.location.port==="3000"?"dev&":""}href=${window.location.hash}`,r=window.loginLink&&window.loginLink!=="@@loginLink@@"?window.loginLink:"https://www.iobroker.net/",n=window.loginMotto&&window.loginMotto!=="@@loginMotto@@"?window.loginMotto:"Discover awesome. ",o=window.loginBackgroundColor&&window.loginBackgroundColor!=="inherit"&&window.loginBackgroundColor!=="@@loginBackgroundColor@@"||window.loginBackgroundImage&&window.loginBackgroundImage!=="@@loginBackgroundImage@@"?{background:"#00000000"}:{};let i;return this.state.loggingIn?i=L.jsx("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:"..."}):i=L.jsxs(Gs,{sx:bi.paper,children:[L.jsxs(YT,{container:!0,direction:"column",alignItems:"center",children:[window.loginLogo&&window.loginLogo!=="@@loginLogo@@"?L.jsx(pt,{sx:{height:50,width:102,lineHeight:"50px",backgroundColor:l=>l.palette.mode==="dark"?"#000":"#fff",borderRadius:"5px",padding:"5px"},children:L.jsx("img",{src:window.loginLogo,alt:"logo",style:{maxWidth:"100%",maxHeight:"100%"}})}):window.loginHideLogo==="false"||window.loginHideLogo==="@@loginHideLogo@@"?L.jsx(gY,{color:this.state.themeType==="dark"?"#FFF":"#000"}):null,L.jsx(dn,{component:"h1",variant:"h5",children:window.loginTitle&&window.loginTitle!=="@@loginTitle@@"?window.loginTitle:z.t("loginTitle")}),window.location.search.includes("error")||this.state.error?L.jsx("div",{style:bi.alert,children:this.state.error||z.t("wrongPassword")}):null,L.jsxs("form",{ref:this.formRef,style:bi.form,action:e,method:"post",children:[L.jsx(vr,{variant:"outlined",margin:"normal",disabled:this.state.inProcess,required:!0,value:this.state.username,onChange:l=>this.setState({username:l.target.value}),fullWidth:!0,size:"small",id:"username",label:z.t("enterLogin"),name:"username",autoComplete:"username",autoFocus:!0}),L.jsx(vr,{variant:"outlined",margin:"normal",disabled:this.state.inProcess,required:!0,fullWidth:!0,ref:this.passwordRef,value:this.state.password,onChange:l=>this.setState({password:l.target.value}),slotProps:{input:{endAdornment:this.state.password?L.jsx(mr,{tabIndex:-1,"aria-label":"toggle password visibility",children:L.jsx(sE,{onMouseDown:()=>this.setState({showPassword:!0}),onMouseUp:()=>{this.setState({showPassword:!1},()=>{setTimeout(()=>this.passwordRef.current?.focus(),50)})}})}):null}},size:"small",name:"password",label:z.t("enterPassword"),type:this.state.showPassword?"text":"password",id:"password",autoComplete:"current-password"}),L.jsx(ct,{control:L.jsx(Ar,{id:"stayloggedin",name:"stayloggedin",value:"on",checked:this.state.stayLoggedIn,onChange:l=>this.setState({stayLoggedIn:l.target.checked}),color:"primary",disabled:this.state.inProcess}),label:z.t("staySignedIn")}),L.jsx("input",{id:"origin",type:"hidden",name:"origin",value:window.location.pathname+window.location.search.replace("&error","")}),L.jsx(Vt,{type:"submit",disabled:this.state.inProcess||!this.state.username||!this.state.password,onClick:()=>{window.loginOauth2==="false"?(this.formRef.current?.submit(),setTimeout(()=>this.setState({inProcess:!0}),50)):this.setState({inProcess:!0,error:""},async()=>{const l=await fetch("../oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=password&username=${encodeURIComponent(this.state.username)}&password=${encodeURIComponent(this.state.password)}&stayloggedin=${this.state.stayLoggedIn}&client_id=ioBroker`});await so.processTokenAnswer(this.state.stayLoggedIn,l)?this.setState({inProcess:!1}):this.setState({inProcess:!1,error:z.t("wrongPassword")})})},fullWidth:!0,variant:"contained",color:"primary",style:bi.submit,children:this.state.inProcess?L.jsx(Ip,{size:24}):z.t("login")})]})]}),L.jsx(pt,{style:bi.marginTop,children:L.jsxs(dn,{variant:"body2",color:"textSecondary",align:"center",children:[window.loginLink&&window.loginLink!=="@@loginLink@@"?L.jsx(u4,{style:bi.ioBrokerLink,color:"inherit",href:r,rel:"noopener noreferrer",target:"_blank",children:n}):null,!window.loginLink||window.loginLink==="@@loginLink@@"?n:null,!window.loginLink||window.loginLink==="@@loginLink@@"?L.jsx(u4,{style:bi.ioBrokerLink,color:"inherit",href:r,rel:"noopener noreferrer",target:"_blank",children:"ioBroker"}):null]})})]}),L.jsx(X7,{injectFirst:!0,children:L.jsxs(NR,{theme:this.state.theme,children:[this.state.themeName!=="PT"&&this.state.themeName!=="DX"?L.jsx(FV,{t:z.t,style:{position:"absolute",top:10,right:10},themeName:this.state.themeName,toggleTheme:()=>this.toggleTheme()}):null,L.jsx(Gs,{className:this.state.themeType==="dark"?"theme-dark":"theme-light",component:"main",style:{...bi.root,...o},children:i})]})})}}window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function vY(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const I8=document.getElementById("root");I8&&qk.createRoot(I8).render(L.jsx(so,{}));vY()});export default yY(); diff --git a/src-www/build/assets/index-DqtpjWjP.js b/src-www/build/assets/index-DqtpjWjP.js new file mode 100644 index 00000000..b52ff8ed --- /dev/null +++ b/src-www/build/assets/index-DqtpjWjP.js @@ -0,0 +1,277 @@ +var P7=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var dK=P7((un,pn)=>{function I7(t,e){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var np=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ri(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Nh={exports:{}},jl={},$h={exports:{}},ut={};var jx;function A7(){if(jx)return ut;jx=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),u=Symbol.iterator;function m(F){return F===null||typeof F!="object"?null:(F=u&&F[u]||F["@@iterator"],typeof F=="function"?F:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function E(F,J,pe){this.props=F,this.context=J,this.refs=x,this.updater=pe||y}E.prototype.isReactComponent={},E.prototype.setState=function(F,J){if(typeof F!="object"&&typeof F!="function"&&F!=null)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,F,J,"setState")},E.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function k(){}k.prototype=E.prototype;function I(F,J,pe){this.props=F,this.context=J,this.refs=x,this.updater=pe||y}var O=I.prototype=new k;O.constructor=I,w(O,E.prototype),O.isPureReactComponent=!0;var R=Array.isArray,M=Object.prototype.hasOwnProperty,T={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function N(F,J,pe){var de,ie={},fe=null,Se=null;if(J!=null)for(de in J.ref!==void 0&&(Se=J.ref),J.key!==void 0&&(fe=""+J.key),J)M.call(J,de)&&!P.hasOwnProperty(de)&&(ie[de]=J[de]);var Ce=arguments.length-2;if(Ce===1)ie.children=pe;else if(1>>1,J=Z[F];if(0>>1;Fo(ie,ee))feo(Se,ie)?(Z[F]=Se,Z[fe]=ee,F=fe):(Z[F]=ie,Z[de]=ee,F=de);else if(feo(Se,ee))Z[F]=Se,Z[fe]=ee,F=fe;else break e}}return V}function o(Z,V){var ee=Z.sortIndex-V.sortIndex;return ee!==0?ee:Z.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var d=[],f=[],g=1,u=null,m=3,y=!1,w=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(Z){for(var V=r(f);V!==null;){if(V.callback===null)n(f);else if(V.startTime<=Z)n(f),V.sortIndex=V.expirationTime,e(d,V);else break;V=r(f)}}function R(Z){if(x=!1,O(Z),!w)if(r(d)!==null)w=!0,K(M);else{var V=r(f);V!==null&&re(R,V.startTime-Z)}}function M(Z,V){w=!1,x&&(x=!1,k(N),N=-1),y=!0;var ee=m;try{for(O(V),u=r(d);u!==null&&(!(u.expirationTime>V)||Z&&!$());){var F=u.callback;if(typeof F=="function"){u.callback=null,m=u.priorityLevel;var J=F(u.expirationTime<=V);V=t.unstable_now(),typeof J=="function"?u.callback=J:u===r(d)&&n(d),O(V)}else n(d);u=r(d)}if(u!==null)var pe=!0;else{var de=r(f);de!==null&&re(R,de.startTime-V),pe=!1}return pe}finally{u=null,m=ee,y=!1}}var T=!1,P=null,N=-1,D=5,C=-1;function $(){return!(t.unstable_now()-CZ||125F?(Z.sortIndex=ee,e(f,Z),r(d)===null&&Z===r(f)&&(x?(k(N),N=-1):x=!0,re(R,ee-F))):(Z.sortIndex=J,e(d,Z),w||y||(w=!0,K(M))),Z},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(Z){var V=m;return function(){var ee=m;m=V;try{return Z.apply(this,arguments)}finally{m=ee}}}})(Fh)),Fh}var Xx;function L7(){return Xx||(Xx=1,Bh.exports=$7()),Bh.exports}var Vx;function B7(){if(Vx)return Ur;Vx=1;var t=ga(),e=L7();function r(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,p=1;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,g={},u={};function m(i){return d.call(u,i)?!0:d.call(g,i)?!1:f.test(i)?u[i]=!0:(g[i]=!0,!1)}function y(i,s,p,h){if(p!==null&&p.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return h?!1:p!==null?!p.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function w(i,s,p,h){if(s===null||typeof s>"u"||y(i,s,p,h))return!0;if(h)return!1;if(p!==null)switch(p.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function x(i,s,p,h,b,S,A){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=h,this.attributeNamespace=b,this.mustUseProperty=p,this.propertyName=i,this.type=s,this.sanitizeURL=S,this.removeEmptyString=A}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){E[i]=new x(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];E[s]=new x(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){E[i]=new x(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){E[i]=new x(i,2,!1,i,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(i){E[i]=new x(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){E[i]=new x(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){E[i]=new x(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){E[i]=new x(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){E[i]=new x(i,5,!1,i.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function I(i){return i[1].toUpperCase()}"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(i){var s=i.replace(k,I);E[s]=new x(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(k,I);E[s]=new x(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(k,I);E[s]=new x(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){E[i]=new x(i,1,!1,i.toLowerCase(),null,!1,!1)}),E.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){E[i]=new x(i,1,!1,i.toLowerCase(),null,!0,!0)});function O(i,s,p,h){var b=E.hasOwnProperty(s)?E[s]:null;(b!==null?b.type!==0:h||!(2B||b[A]!==S[B]){var j=` +`+b[A].replace(" at new "," at ");return i.displayName&&j.includes("")&&(j=j.replace("",i.displayName)),j}while(1<=A&&0<=B);break}}}finally{pe=!1,Error.prepareStackTrace=p}return(i=i?i.displayName||i.name:"")?J(i):""}function ie(i){switch(i.tag){case 5:return J(i.type);case 16:return J("Lazy");case 13:return J("Suspense");case 19:return J("SuspenseList");case 0:case 2:case 15:return i=de(i.type,!1),i;case 11:return i=de(i.type.render,!1),i;case 1:return i=de(i.type,!0),i;default:return""}}function fe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case P:return"Fragment";case T:return"Portal";case D:return"Profiler";case N:return"StrictMode";case q:return"Suspense";case U:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case $:return(i.displayName||"Context")+".Consumer";case C:return(i._context.displayName||"Context")+".Provider";case H:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case W:return s=i.displayName||null,s!==null?s:fe(i.type)||"Memo";case K:s=i._payload,i=i._init;try{return fe(i(s))}catch{}}return null}function Se(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(s);case 8:return s===N?"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(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ce(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Oe(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ke(i){var s=Oe(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,S=p.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return b.call(this)},set:function(A){h=""+A,S.call(this,A)}}),Object.defineProperty(i,s,{enumerable:p.enumerable}),{getValue:function(){return h},setValue:function(A){h=""+A},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Le(i){i._valueTracker||(i._valueTracker=ke(i))}function Ie(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var p=s.getValue(),h="";return i&&(h=Oe(i)?i.checked?"true":"false":i.value),i=h,i!==p?(s.setValue(i),!0):!1}function nt(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Me(i,s){var p=s.checked;return ee({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??i._wrapperState.initialChecked})}function Te(i,s){var p=s.defaultValue==null?"":s.defaultValue,h=s.checked!=null?s.checked:s.defaultChecked;p=Ce(s.value!=null?s.value:p),i._wrapperState={initialChecked:h,initialValue:p,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ht(i,s){s=s.checked,s!=null&&O(i,"checked",s,!1)}function be(i,s){ht(i,s);var p=Ce(s.value),h=s.type;if(p!=null)h==="number"?(p===0&&i.value===""||i.value!=p)&&(i.value=""+p):i.value!==""+p&&(i.value=""+p);else if(h==="submit"||h==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?it(i,s.type,p):s.hasOwnProperty("defaultValue")&&it(i,s.type,Ce(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function Ae(i,s,p){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var h=s.type;if(!(h!=="submit"&&h!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,p||s===i.value||(i.value=s),i.defaultValue=s}p=i.name,p!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,p!==""&&(i.name=p)}function it(i,s,p){(s!=="number"||nt(i.ownerDocument)!==i)&&(p==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+p&&(i.defaultValue=""+p))}var Ze=Array.isArray;function Xe(i,s,p,h){if(i=i.options,s){s={};for(var b=0;b"+s.valueOf().toString()+"",s=Be.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function vt(i,s){if(s){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=s;return}}i.textContent=s}var Fe={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},Ft=["Webkit","ms","Moz","O"];Object.keys(Fe).forEach(function(i){Ft.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),Fe[s]=Fe[i]})});function wt(i,s,p){return s==null||typeof s=="boolean"||s===""?"":p||typeof s!="number"||s===0||Fe.hasOwnProperty(i)&&Fe[i]?(""+s).trim():s+"px"}function xe(i,s){i=i.style;for(var p in s)if(s.hasOwnProperty(p)){var h=p.indexOf("--")===0,b=wt(p,s[p],h);p==="float"&&(p="cssFloat"),h?i.setProperty(p,b):i[p]=b}}var lt=ee({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 St(i,s){if(s){if(lt[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function pr(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){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 dr=null;function Br(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Eo=null,Kn=null,mn=null;function ka(i){if(i=kl(i)){if(typeof Eo!="function")throw Error(r(280));var s=i.stateNode;s&&(s=yu(s),Eo(i.stateNode,i.type,s))}}function Oa(i){Kn?mn?mn.push(i):mn=[i]:Kn=i}function _a(){if(Kn){var i=Kn,s=mn;if(mn=Kn=null,ka(i),s)for(i=0;i>>=0,i===0?32:31-(VT(i)/GT|0)|0}var eu=64,tu=4194304;function ll(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function ru(i,s){var p=i.pendingLanes;if(p===0)return 0;var h=0,b=i.suspendedLanes,S=i.pingedLanes,A=p&268435455;if(A!==0){var B=A&~b;B!==0?h=ll(B):(S&=A,S!==0&&(h=ll(S)))}else A=p&~b,A!==0?h=ll(A):S!==0&&(h=ll(S));if(h===0)return 0;if(s!==0&&s!==h&&(s&b)===0&&(b=h&-h,S=s&-s,b>=S||b===16&&(S&4194240)!==0))return s;if((h&4)!==0&&(h|=p&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=h;0p;p++)s.push(i);return s}function cl(i,s,p){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-An(s),i[s]=p}function QT(i,s){var p=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var h=i.eventTimes;for(i=i.expirationTimes;0=vl),D2=" ",N2=!1;function $2(i,s){switch(i){case"keyup":return k9.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L2(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Aa=!1;function _9(i,s){switch(i){case"compositionend":return L2(s);case"keypress":return s.which!==32?null:(N2=!0,D2);case"textInput":return i=s.data,i===D2&&N2?null:i;default:return null}}function R9(i,s){if(Aa)return i==="compositionend"||!mf&&$2(i,s)?(i=_2(),su=cf=Zo=null,Aa=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:p,offset:s-i};i=h}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=W2(p)}}function X2(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?X2(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function V2(){for(var i=window,s=nt();s instanceof i.HTMLIFrameElement;){try{var p=typeof s.contentWindow.location.href=="string"}catch{p=!1}if(p)i=s.contentWindow;else break;s=nt(i.document)}return s}function yf(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function B9(i){var s=V2(),p=i.focusedElem,h=i.selectionRange;if(s!==p&&p&&p.ownerDocument&&X2(p.ownerDocument.documentElement,p)){if(h!==null&&yf(p)){if(s=h.start,i=h.end,i===void 0&&(i=s),"selectionStart"in p)p.selectionStart=s,p.selectionEnd=Math.min(i,p.value.length);else if(i=(s=p.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var b=p.textContent.length,S=Math.min(h.start,b);h=h.end===void 0?S:Math.min(h.end,b),!i.extend&&S>h&&(b=h,h=S,S=b),b=U2(p,S);var A=U2(p,h);b&&A&&(i.rangeCount!==1||i.anchorNode!==b.node||i.anchorOffset!==b.offset||i.focusNode!==A.node||i.focusOffset!==A.offset)&&(s=s.createRange(),s.setStart(b.node,b.offset),i.removeAllRanges(),S>h?(i.addRange(s),i.extend(A.node,A.offset)):(s.setEnd(A.node,A.offset),i.addRange(s)))}}for(s=[],i=p;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,Da=null,bf=null,wl=null,xf=!1;function G2(i,s,p){var h=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;xf||Da==null||Da!==nt(h)||(h=Da,"selectionStart"in h&&yf(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),wl&&xl(wl,h)||(wl=h,h=mu(bf,"onSelect"),0Fa||(i.current=If[Fa],If[Fa]=null,Fa--)}function At(i,s){Fa++,If[Fa]=i.current,i.current=s}var ni={},Tr=ri(ni),zr=ri(!1),Bi=ni;function za(i,s){var p=i.type.contextTypes;if(!p)return ni;var h=i.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===s)return h.__reactInternalMemoizedMaskedChildContext;var b={},S;for(S in p)b[S]=s[S];return h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=b),b}function jr(i){return i=i.childContextTypes,i!=null}function bu(){$t(zr),$t(Tr)}function cb(i,s,p){if(Tr.current!==ni)throw Error(r(168));At(Tr,s),At(zr,p)}function ub(i,s,p){var h=i.stateNode;if(s=s.childContextTypes,typeof h.getChildContext!="function")return p;h=h.getChildContext();for(var b in h)if(!(b in s))throw Error(r(108,Se(i)||"Unknown",b));return ee({},p,h)}function xu(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ni,Bi=Tr.current,At(Tr,i),At(zr,zr.current),!0}function pb(i,s,p){var h=i.stateNode;if(!h)throw Error(r(169));p?(i=ub(i,s,Bi),h.__reactInternalMemoizedMergedChildContext=i,$t(zr),$t(Tr),At(Tr,i)):$t(zr),At(zr,p)}var To=null,wu=!1,Af=!1;function db(i){To===null?To=[i]:To.push(i)}function Y9(i){wu=!0,db(i)}function oi(){if(!Af&&To!==null){Af=!0;var i=0,s=_t;try{var p=To;for(_t=1;i>=A,b-=A,ko=1<<32-An(s)+b|p<et?(mr=Ge,Ge=null):mr=Ge.sibling;var xt=se(G,Ge,Y[et],he);if(xt===null){Ge===null&&(Ge=mr);break}i&&Ge&&xt.alternate===null&&s(G,Ge),X=S(xt,X,et),Ve===null?Ne=xt:Ve.sibling=xt,Ve=xt,Ge=mr}if(et===Y.length)return p(G,Ge),zt&&zi(G,et),Ne;if(Ge===null){for(;etet?(mr=Ge,Ge=null):mr=Ge.sibling;var fi=se(G,Ge,xt.value,he);if(fi===null){Ge===null&&(Ge=mr);break}i&&Ge&&fi.alternate===null&&s(G,Ge),X=S(fi,X,et),Ve===null?Ne=fi:Ve.sibling=fi,Ve=fi,Ge=mr}if(xt.done)return p(G,Ge),zt&&zi(G,et),Ne;if(Ge===null){for(;!xt.done;et++,xt=Y.next())xt=ue(G,xt.value,he),xt!==null&&(X=S(xt,X,et),Ve===null?Ne=xt:Ve.sibling=xt,Ve=xt);return zt&&zi(G,et),Ne}for(Ge=h(G,Ge);!xt.done;et++,xt=Y.next())xt=Ee(Ge,G,et,xt.value,he),xt!==null&&(i&&xt.alternate!==null&&Ge.delete(xt.key===null?et:xt.key),X=S(xt,X,et),Ve===null?Ne=xt:Ve.sibling=xt,Ve=xt);return i&&Ge.forEach(function(M7){return s(G,M7)}),zt&&zi(G,et),Ne}function tr(G,X,Y,he){if(typeof Y=="object"&&Y!==null&&Y.type===P&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case M:e:{for(var Ne=Y.key,Ve=X;Ve!==null;){if(Ve.key===Ne){if(Ne=Y.type,Ne===P){if(Ve.tag===7){p(G,Ve.sibling),X=b(Ve,Y.props.children),X.return=G,G=X;break e}}else if(Ve.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===K&&yb(Ne)===Ve.type){p(G,Ve.sibling),X=b(Ve,Y.props),X.ref=Ol(G,Ve,Y),X.return=G,G=X;break e}p(G,Ve);break}else s(G,Ve);Ve=Ve.sibling}Y.type===P?(X=Gi(Y.props.children,G.mode,he,Y.key),X.return=G,G=X):(he=Ku(Y.type,Y.key,Y.props,null,G.mode,he),he.ref=Ol(G,X,Y),he.return=G,G=he)}return A(G);case T:e:{for(Ve=Y.key;X!==null;){if(X.key===Ve)if(X.tag===4&&X.stateNode.containerInfo===Y.containerInfo&&X.stateNode.implementation===Y.implementation){p(G,X.sibling),X=b(X,Y.children||[]),X.return=G,G=X;break e}else{p(G,X);break}else s(G,X);X=X.sibling}X=Mh(Y,G.mode,he),X.return=G,G=X}return A(G);case K:return Ve=Y._init,tr(G,X,Ve(Y._payload),he)}if(Ze(Y))return Pe(G,X,Y,he);if(V(Y))return De(G,X,Y,he);Tu(G,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"?(Y=""+Y,X!==null&&X.tag===6?(p(G,X.sibling),X=b(X,Y),X.return=G,G=X):(p(G,X),X=Rh(Y,G.mode,he),X.return=G,G=X),A(G)):p(G,X)}return tr}var Wa=bb(!0),xb=bb(!1),ku=ri(null),Ou=null,Ua=null,Ff=null;function zf(){Ff=Ua=Ou=null}function jf(i){var s=ku.current;$t(ku),i._currentValue=s}function Hf(i,s,p){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===p)break;i=i.return}}function Xa(i,s){Ou=i,Ff=Ua=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(Hr=!0),i.firstContext=null)}function bn(i){var s=i._currentValue;if(Ff!==i)if(i={context:i,memoizedValue:s,next:null},Ua===null){if(Ou===null)throw Error(r(308));Ua=i,Ou.dependencies={lanes:0,firstContext:i}}else Ua=Ua.next=i;return s}var ji=null;function qf(i){ji===null?ji=[i]:ji.push(i)}function wb(i,s,p,h){var b=s.interleaved;return b===null?(p.next=p,qf(s)):(p.next=b.next,b.next=p),s.interleaved=p,_o(i,h)}function _o(i,s){i.lanes|=s;var p=i.alternate;for(p!==null&&(p.lanes|=s),p=i,i=i.return;i!==null;)i.childLanes|=s,p=i.alternate,p!==null&&(p.childLanes|=s),p=i,i=i.return;return p.tag===3?p.stateNode:null}var ii=!1;function Wf(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sb(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ro(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function ai(i,s,p){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(bt&2)!==0){var b=h.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),h.pending=s,_o(i,p)}return b=h.interleaved,b===null?(s.next=s,qf(h)):(s.next=b.next,b.next=s),h.interleaved=s,_o(i,p)}function _u(i,s,p){if(s=s.updateQueue,s!==null&&(s=s.shared,(p&4194240)!==0)){var h=s.lanes;h&=i.pendingLanes,p|=h,s.lanes=p,nf(i,p)}}function Eb(i,s){var p=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,p===h)){var b=null,S=null;if(p=p.firstBaseUpdate,p!==null){do{var A={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};S===null?b=S=A:S=S.next=A,p=p.next}while(p!==null);S===null?b=S=s:S=S.next=s}else b=S=s;p={baseState:h.baseState,firstBaseUpdate:b,lastBaseUpdate:S,shared:h.shared,effects:h.effects},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=s:i.next=s,p.lastBaseUpdate=s}function Ru(i,s,p,h){var b=i.updateQueue;ii=!1;var S=b.firstBaseUpdate,A=b.lastBaseUpdate,B=b.shared.pending;if(B!==null){b.shared.pending=null;var j=B,Q=j.next;j.next=null,A===null?S=Q:A.next=Q,A=j;var le=i.alternate;le!==null&&(le=le.updateQueue,B=le.lastBaseUpdate,B!==A&&(B===null?le.firstBaseUpdate=Q:B.next=Q,le.lastBaseUpdate=j))}if(S!==null){var ue=b.baseState;A=0,le=Q=j=null,B=S;do{var se=B.lane,Ee=B.eventTime;if((h&se)===se){le!==null&&(le=le.next={eventTime:Ee,lane:0,tag:B.tag,payload:B.payload,callback:B.callback,next:null});e:{var Pe=i,De=B;switch(se=s,Ee=p,De.tag){case 1:if(Pe=De.payload,typeof Pe=="function"){ue=Pe.call(Ee,ue,se);break e}ue=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=De.payload,se=typeof Pe=="function"?Pe.call(Ee,ue,se):Pe,se==null)break e;ue=ee({},ue,se);break e;case 2:ii=!0}}B.callback!==null&&B.lane!==0&&(i.flags|=64,se=b.effects,se===null?b.effects=[B]:se.push(B))}else Ee={eventTime:Ee,lane:se,tag:B.tag,payload:B.payload,callback:B.callback,next:null},le===null?(Q=le=Ee,j=ue):le=le.next=Ee,A|=se;if(B=B.next,B===null){if(B=b.shared.pending,B===null)break;se=B,B=se.next,se.next=null,b.lastBaseUpdate=se,b.shared.pending=null}}while(!0);if(le===null&&(j=ue),b.baseState=j,b.firstBaseUpdate=Q,b.lastBaseUpdate=le,s=b.shared.interleaved,s!==null){b=s;do A|=b.lane,b=b.next;while(b!==s)}else S===null&&(b.shared.lanes=0);Wi|=A,i.lanes=A,i.memoizedState=ue}}function Cb(i,s,p){if(i=s.effects,s.effects=null,i!==null)for(s=0;sp?p:4,i(!0);var h=Kf.transition;Kf.transition={};try{i(!1),s()}finally{_t=p,Kf.transition=h}}function qb(){return xn().memoizedState}function e7(i,s,p){var h=ui(i);if(p={lane:h,action:p,hasEagerState:!1,eagerState:null,next:null},Wb(i))Ub(s,p);else if(p=wb(i,s,p,h),p!==null){var b=$r();Fn(p,i,h,b),Xb(p,s,h)}}function t7(i,s,p){var h=ui(i),b={lane:h,action:p,hasEagerState:!1,eagerState:null,next:null};if(Wb(i))Ub(s,b);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=s.lastRenderedReducer,S!==null))try{var A=s.lastRenderedState,B=S(A,p);if(b.hasEagerState=!0,b.eagerState=B,Dn(B,A)){var j=s.interleaved;j===null?(b.next=b,qf(s)):(b.next=j.next,j.next=b),s.interleaved=b;return}}catch{}p=wb(i,s,b,h),p!==null&&(b=$r(),Fn(p,i,h,b),Xb(p,s,h))}}function Wb(i){var s=i.alternate;return i===Xt||s!==null&&s===Xt}function Ub(i,s){Pl=Iu=!0;var p=i.pending;p===null?s.next=s:(s.next=p.next,p.next=s),i.pending=s}function Xb(i,s,p){if((p&4194240)!==0){var h=s.lanes;h&=i.pendingLanes,p|=h,s.lanes=p,nf(i,p)}}var Nu={readContext:bn,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useInsertionEffect:kr,useLayoutEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useMutableSource:kr,useSyncExternalStore:kr,useId:kr,unstable_isNewReconciler:!1},r7={readContext:bn,useCallback:function(i,s){return eo().memoizedState=[i,s===void 0?null:s],i},useContext:bn,useEffect:Nb,useImperativeHandle:function(i,s,p){return p=p!=null?p.concat([i]):null,Au(4194308,4,Bb.bind(null,s,i),p)},useLayoutEffect:function(i,s){return Au(4194308,4,i,s)},useInsertionEffect:function(i,s){return Au(4,2,i,s)},useMemo:function(i,s){var p=eo();return s=s===void 0?null:s,i=i(),p.memoizedState=[i,s],i},useReducer:function(i,s,p){var h=eo();return s=p!==void 0?p(s):s,h.memoizedState=h.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},h.queue=i,i=i.dispatch=e7.bind(null,Xt,i),[h.memoizedState,i]},useRef:function(i){var s=eo();return i={current:i},s.memoizedState=i},useState:Ab,useDebugValue:rh,useDeferredValue:function(i){return eo().memoizedState=i},useTransition:function(){var i=Ab(!1),s=i[0];return i=Z9.bind(null,i[1]),eo().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,p){var h=Xt,b=eo();if(zt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=s(),hr===null)throw Error(r(349));(qi&30)!==0||_b(h,s,p)}b.memoizedState=p;var S={value:p,getSnapshot:s};return b.queue=S,Nb(Mb.bind(null,h,S,i),[i]),h.flags|=2048,Dl(9,Rb.bind(null,h,S,p,s),void 0,null),p},useId:function(){var i=eo(),s=hr.identifierPrefix;if(zt){var p=Oo,h=ko;p=(h&~(1<<32-An(h)-1)).toString(32)+p,s=":"+s+"R"+p,p=Il++,0<\/script>",i=i.removeChild(i.firstChild)):typeof h.is=="string"?i=A.createElement(p,{is:h.is}):(i=A.createElement(p),p==="select"&&(A=i,h.multiple?A.multiple=!0:h.size&&(A.size=h.size))):i=A.createElementNS(i,p),i[Qn]=s,i[Tl]=h,dx(i,s,!1,!1),s.stateNode=i;e:{switch(A=pr(p,h),p){case"dialog":Nt("cancel",i),Nt("close",i),b=h;break;case"iframe":case"object":case"embed":Nt("load",i),b=h;break;case"video":case"audio":for(b=0;bJa&&(s.flags|=128,h=!0,Nl(S,!1),s.lanes=4194304)}else{if(!h)if(i=Mu(A),i!==null){if(s.flags|=128,h=!0,p=i.updateQueue,p!==null&&(s.updateQueue=p,s.flags|=4),Nl(S,!0),S.tail===null&&S.tailMode==="hidden"&&!A.alternate&&!zt)return Or(s),null}else 2*er()-S.renderingStartTime>Ja&&p!==1073741824&&(s.flags|=128,h=!0,Nl(S,!1),s.lanes=4194304);S.isBackwards?(A.sibling=s.child,s.child=A):(p=S.last,p!==null?p.sibling=A:s.child=A,S.last=A)}return S.tail!==null?(s=S.tail,S.rendering=s,S.tail=s.sibling,S.renderingStartTime=er(),s.sibling=null,p=Ut.current,At(Ut,h?p&1|2:p&1),s):(Or(s),null);case 22:case 23:return kh(),h=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==h&&(s.flags|=8192),h&&(s.mode&1)!==0?(sn&1073741824)!==0&&(Or(s),s.subtreeFlags&6&&(s.flags|=8192)):Or(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function u7(i,s){switch(Nf(s),s.tag){case 1:return jr(s.type)&&bu(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Va(),$t(zr),$t(Tr),Gf(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return Xf(s),null;case 13:if($t(Ut),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));qa()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return $t(Ut),null;case 4:return Va(),null;case 10:return jf(s.type._context),null;case 22:case 23:return kh(),null;case 24:return null;default:return null}}var Fu=!1,_r=!1,p7=typeof WeakSet=="function"?WeakSet:Set,Re=null;function Ka(i,s){var p=i.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(h){Kt(i,s,h)}else p.current=null}function hh(i,s,p){try{p()}catch(h){Kt(i,s,h)}}var mx=!1;function d7(i,s){if(kf=iu,i=V2(),yf(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var h=p.getSelection&&p.getSelection();if(h&&h.rangeCount!==0){p=h.anchorNode;var b=h.anchorOffset,S=h.focusNode;h=h.focusOffset;try{p.nodeType,S.nodeType}catch{p=null;break e}var A=0,B=-1,j=-1,Q=0,le=0,ue=i,se=null;t:for(;;){for(var Ee;ue!==p||b!==0&&ue.nodeType!==3||(B=A+b),ue!==S||h!==0&&ue.nodeType!==3||(j=A+h),ue.nodeType===3&&(A+=ue.nodeValue.length),(Ee=ue.firstChild)!==null;)se=ue,ue=Ee;for(;;){if(ue===i)break t;if(se===p&&++Q===b&&(B=A),se===S&&++le===h&&(j=A),(Ee=ue.nextSibling)!==null)break;ue=se,se=ue.parentNode}ue=Ee}p=B===-1||j===-1?null:{start:B,end:j}}else p=null}p=p||{start:0,end:0}}else p=null;for(Of={focusedElem:i,selectionRange:p},iu=!1,Re=s;Re!==null;)if(s=Re,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Re=i;else for(;Re!==null;){s=Re;try{var Pe=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(Pe!==null){var De=Pe.memoizedProps,tr=Pe.memoizedState,G=s.stateNode,X=G.getSnapshotBeforeUpdate(s.elementType===s.type?De:$n(s.type,De),tr);G.__reactInternalSnapshotBeforeUpdate=X}break;case 3:var Y=s.stateNode.containerInfo;Y.nodeType===1?Y.textContent="":Y.nodeType===9&&Y.documentElement&&Y.removeChild(Y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(he){Kt(s,s.return,he)}if(i=s.sibling,i!==null){i.return=s.return,Re=i;break}Re=s.return}return Pe=mx,mx=!1,Pe}function $l(i,s,p){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var b=h=h.next;do{if((b.tag&i)===i){var S=b.destroy;b.destroy=void 0,S!==void 0&&hh(s,p,S)}b=b.next}while(b!==h)}}function zu(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var p=s=s.next;do{if((p.tag&i)===i){var h=p.create;p.destroy=h()}p=p.next}while(p!==s)}}function mh(i){var s=i.ref;if(s!==null){var p=i.stateNode;i.tag,i=p,typeof s=="function"?s(i):s.current=i}}function gx(i){var s=i.alternate;s!==null&&(i.alternate=null,gx(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[Qn],delete s[Tl],delete s[Pf],delete s[G9],delete s[K9])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function vx(i){return i.tag===5||i.tag===3||i.tag===4}function yx(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||vx(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function gh(i,s,p){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?p.nodeType===8?p.parentNode.insertBefore(i,s):p.insertBefore(i,s):(p.nodeType===8?(s=p.parentNode,s.insertBefore(i,p)):(s=p,s.appendChild(i)),p=p._reactRootContainer,p!=null||s.onclick!==null||(s.onclick=vu));else if(h!==4&&(i=i.child,i!==null))for(gh(i,s,p),i=i.sibling;i!==null;)gh(i,s,p),i=i.sibling}function vh(i,s,p){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?p.insertBefore(i,s):p.appendChild(i);else if(h!==4&&(i=i.child,i!==null))for(vh(i,s,p),i=i.sibling;i!==null;)vh(i,s,p),i=i.sibling}var br=null,Ln=!1;function si(i,s,p){for(p=p.child;p!==null;)bx(i,s,p),p=p.sibling}function bx(i,s,p){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Zc,p)}catch{}switch(p.tag){case 5:_r||Ka(p,s);case 6:var h=br,b=Ln;br=null,si(i,s,p),br=h,Ln=b,br!==null&&(Ln?(i=br,p=p.stateNode,i.nodeType===8?i.parentNode.removeChild(p):i.removeChild(p)):br.removeChild(p.stateNode));break;case 18:br!==null&&(Ln?(i=br,p=p.stateNode,i.nodeType===8?Mf(i.parentNode,p):i.nodeType===1&&Mf(i,p),hl(i)):Mf(br,p.stateNode));break;case 4:h=br,b=Ln,br=p.stateNode.containerInfo,Ln=!0,si(i,s,p),br=h,Ln=b;break;case 0:case 11:case 14:case 15:if(!_r&&(h=p.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){b=h=h.next;do{var S=b,A=S.destroy;S=S.tag,A!==void 0&&((S&2)!==0||(S&4)!==0)&&hh(p,s,A),b=b.next}while(b!==h)}si(i,s,p);break;case 1:if(!_r&&(Ka(p,s),h=p.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=p.memoizedProps,h.state=p.memoizedState,h.componentWillUnmount()}catch(B){Kt(p,s,B)}si(i,s,p);break;case 21:si(i,s,p);break;case 22:p.mode&1?(_r=(h=_r)||p.memoizedState!==null,si(i,s,p),_r=h):si(i,s,p);break;default:si(i,s,p)}}function xx(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var p=i.stateNode;p===null&&(p=i.stateNode=new p7),s.forEach(function(h){var b=w7.bind(null,i,h);p.has(h)||(p.add(h),h.then(b,b))})}}function Bn(i,s){var p=s.deletions;if(p!==null)for(var h=0;hb&&(b=A),h&=~S}if(h=b,h=er()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*h7(h/1960))-h,10i?16:i,ci===null)var h=!1;else{if(i=ci,ci=null,Uu=0,(bt&6)!==0)throw Error(r(331));var b=bt;for(bt|=4,Re=i.current;Re!==null;){var S=Re,A=S.child;if((Re.flags&16)!==0){var B=S.deletions;if(B!==null){for(var j=0;jer()-xh?Xi(i,0):bh|=p),Wr(i,s)}function Ax(i,s){s===0&&((i.mode&1)===0?s=1:(s=tu,tu<<=1,(tu&130023424)===0&&(tu=4194304)));var p=$r();i=_o(i,s),i!==null&&(cl(i,s,p),Wr(i,p))}function x7(i){var s=i.memoizedState,p=0;s!==null&&(p=s.retryLane),Ax(i,p)}function w7(i,s){var p=0;switch(i.tag){case 13:var h=i.stateNode,b=i.memoizedState;b!==null&&(p=b.retryLane);break;case 19:h=i.stateNode;break;default:throw Error(r(314))}h!==null&&h.delete(s),Ax(i,p)}var Dx;Dx=function(i,s,p){if(i!==null)if(i.memoizedProps!==s.pendingProps||zr.current)Hr=!0;else{if((i.lanes&p)===0&&(s.flags&128)===0)return Hr=!1,l7(i,s,p);Hr=(i.flags&131072)!==0}else Hr=!1,zt&&(s.flags&1048576)!==0&&fb(s,Eu,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;Bu(i,s),i=s.pendingProps;var b=za(s,Tr.current);Xa(s,p),b=Jf(null,s,h,i,b,p);var S=Qf();return s.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,jr(h)?(S=!0,xu(s)):S=!1,s.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,Wf(s),b.updater=$u,s.stateNode=b,b._reactInternals=s,oh(s,h,i,p),s=lh(null,s,h,!0,S,p)):(s.tag=0,zt&&S&&Df(s),Nr(null,s,b,p),s=s.child),s;case 16:h=s.elementType;e:{switch(Bu(i,s),i=s.pendingProps,b=h._init,h=b(h._payload),s.type=h,b=s.tag=E7(h),i=$n(h,i),b){case 0:s=sh(null,s,h,i,p);break e;case 1:s=ax(null,s,h,i,p);break e;case 11:s=tx(null,s,h,i,p);break e;case 14:s=rx(null,s,h,$n(h.type,i),p);break e}throw Error(r(306,h,""))}return s;case 0:return h=s.type,b=s.pendingProps,b=s.elementType===h?b:$n(h,b),sh(i,s,h,b,p);case 1:return h=s.type,b=s.pendingProps,b=s.elementType===h?b:$n(h,b),ax(i,s,h,b,p);case 3:e:{if(sx(s),i===null)throw Error(r(387));h=s.pendingProps,S=s.memoizedState,b=S.element,Sb(i,s),Ru(s,h,null,p);var A=s.memoizedState;if(h=A.element,S.isDehydrated)if(S={element:h,isDehydrated:!1,cache:A.cache,pendingSuspenseBoundaries:A.pendingSuspenseBoundaries,transitions:A.transitions},s.updateQueue.baseState=S,s.memoizedState=S,s.flags&256){b=Ga(Error(r(423)),s),s=lx(i,s,h,p,b);break e}else if(h!==b){b=Ga(Error(r(424)),s),s=lx(i,s,h,p,b);break e}else for(an=ti(s.stateNode.containerInfo.firstChild),on=s,zt=!0,Nn=null,p=xb(s,null,h,p),s.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(qa(),h===b){s=Mo(i,s,p);break e}Nr(i,s,h,p)}s=s.child}return s;case 5:return Tb(s),i===null&&Lf(s),h=s.type,b=s.pendingProps,S=i!==null?i.memoizedProps:null,A=b.children,_f(h,b)?A=null:S!==null&&_f(h,S)&&(s.flags|=32),ix(i,s),Nr(i,s,A,p),s.child;case 6:return i===null&&Lf(s),null;case 13:return cx(i,s,p);case 4:return Uf(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=Wa(s,null,h,p):Nr(i,s,h,p),s.child;case 11:return h=s.type,b=s.pendingProps,b=s.elementType===h?b:$n(h,b),tx(i,s,h,b,p);case 7:return Nr(i,s,s.pendingProps,p),s.child;case 8:return Nr(i,s,s.pendingProps.children,p),s.child;case 12:return Nr(i,s,s.pendingProps.children,p),s.child;case 10:e:{if(h=s.type._context,b=s.pendingProps,S=s.memoizedProps,A=b.value,At(ku,h._currentValue),h._currentValue=A,S!==null)if(Dn(S.value,A)){if(S.children===b.children&&!zr.current){s=Mo(i,s,p);break e}}else for(S=s.child,S!==null&&(S.return=s);S!==null;){var B=S.dependencies;if(B!==null){A=S.child;for(var j=B.firstContext;j!==null;){if(j.context===h){if(S.tag===1){j=Ro(-1,p&-p),j.tag=2;var Q=S.updateQueue;if(Q!==null){Q=Q.shared;var le=Q.pending;le===null?j.next=j:(j.next=le.next,le.next=j),Q.pending=j}}S.lanes|=p,j=S.alternate,j!==null&&(j.lanes|=p),Hf(S.return,p,s),B.lanes|=p;break}j=j.next}}else if(S.tag===10)A=S.type===s.type?null:S.child;else if(S.tag===18){if(A=S.return,A===null)throw Error(r(341));A.lanes|=p,B=A.alternate,B!==null&&(B.lanes|=p),Hf(A,p,s),A=S.sibling}else A=S.child;if(A!==null)A.return=S;else for(A=S;A!==null;){if(A===s){A=null;break}if(S=A.sibling,S!==null){S.return=A.return,A=S;break}A=A.return}S=A}Nr(i,s,b.children,p),s=s.child}return s;case 9:return b=s.type,h=s.pendingProps.children,Xa(s,p),b=bn(b),h=h(b),s.flags|=1,Nr(i,s,h,p),s.child;case 14:return h=s.type,b=$n(h,s.pendingProps),b=$n(h.type,b),rx(i,s,h,b,p);case 15:return nx(i,s,s.type,s.pendingProps,p);case 17:return h=s.type,b=s.pendingProps,b=s.elementType===h?b:$n(h,b),Bu(i,s),s.tag=1,jr(h)?(i=!0,xu(s)):i=!1,Xa(s,p),Gb(s,h,b),oh(s,h,b,p),lh(null,s,h,!0,i,p);case 19:return px(i,s,p);case 22:return ox(i,s,p)}throw Error(r(156,s.tag))};function Nx(i,s){return h2(i,s)}function S7(i,s,p,h){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(i,s,p,h){return new S7(i,s,p,h)}function _h(i){return i=i.prototype,!(!i||!i.isReactComponent)}function E7(i){if(typeof i=="function")return _h(i)?1:0;if(i!=null){if(i=i.$$typeof,i===H)return 11;if(i===W)return 14}return 2}function di(i,s){var p=i.alternate;return p===null?(p=Sn(i.tag,s,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=s,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&14680064,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,s=i.dependencies,p.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p}function Ku(i,s,p,h,b,S){var A=2;if(h=i,typeof i=="function")_h(i)&&(A=1);else if(typeof i=="string")A=5;else e:switch(i){case P:return Gi(p.children,b,S,s);case N:A=8,b|=8;break;case D:return i=Sn(12,p,s,b|2),i.elementType=D,i.lanes=S,i;case q:return i=Sn(13,p,s,b),i.elementType=q,i.lanes=S,i;case U:return i=Sn(19,p,s,b),i.elementType=U,i.lanes=S,i;case re:return Yu(p,b,S,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case C:A=10;break e;case $:A=9;break e;case H:A=11;break e;case W:A=14;break e;case K:A=16,h=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return s=Sn(A,p,s,b),s.elementType=i,s.type=h,s.lanes=S,s}function Gi(i,s,p,h){return i=Sn(7,i,h,s),i.lanes=p,i}function Yu(i,s,p,h){return i=Sn(22,i,h,s),i.elementType=re,i.lanes=p,i.stateNode={isHidden:!1},i}function Rh(i,s,p){return i=Sn(6,i,null,s),i.lanes=p,i}function Mh(i,s,p){return s=Sn(4,i.children!==null?i.children:[],i.key,s),s.lanes=p,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function C7(i,s,p,h,b){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rf(0),this.expirationTimes=rf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rf(0),this.identifierPrefix=h,this.onRecoverableError=b,this.mutableSourceEagerHydrationData=null}function Ph(i,s,p,h,b,S,A,B,j){return i=new C7(i,s,p,B,j),s===1?(s=1,S===!0&&(s|=8)):s=0,S=Sn(3,null,null,s),i.current=S,S.stateNode=i,S.memoizedState={element:h,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wf(S),i}function T7(i,s,p){var h=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Lh.exports=B7(),Lh.exports}var Kx;function F7(){if(Kx)return op;Kx=1;var t=I8();return op.createRoot=t.createRoot,op.hydrateRoot=t.hydrateRoot,op}var z7=F7();function Bo(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Un="$$material";function jp(){return jp=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Er(Js,--Qr):0,qs--,ir===10&&(qs=1,fd--),ir}function dn(){return ir=Qr2||Tc(ir)>3?"":" "}function Z7(t,e){for(;--e&&dn()&&!(ir<48||ir>102||ir>57&&ir<65||ir>70&&ir<97););return Fc(t,Rp()+(e<6&&fo()==32&&dn()==32))}function M1(t){for(;dn();)switch(ir){case t:return Qr;case 34:case 39:t!==34&&t!==39&&M1(ir);break;case 40:t===41&&M1(t);break;case 92:dn();break}return Qr}function ek(t,e){for(;dn()&&t+ir!==57;)if(t+ir===84&&fo()===47)break;return"/*"+Fc(e,Qr-1)+"*"+dd(t===47?t:dn())}function tk(t){for(;!Tc(fo());)dn();return Fc(t,Qr)}function rk(t){return F8(Pp("",null,null,null,[""],t=B8(t),0,[0],t))}function Pp(t,e,r,n,o,a,l,c,d){for(var f=0,g=0,u=l,m=0,y=0,w=0,x=1,E=1,k=1,I=0,O="",R=o,M=a,T=n,P=O;E;)switch(w=I,I=dn()){case 40:if(w!=108&&Er(P,u-1)==58){R1(P+=Ct(Mp(I),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:P+=Mp(I);break;case 9:case 10:case 13:case 32:P+=Q7(w);break;case 92:P+=Z7(Rp()-1,7);continue;case 47:switch(fo()){case 42:case 47:ip(nk(ek(dn(),Rp()),e,r),d);break;default:P+="/"}break;case 123*x:c[f++]=ao(P)*k;case 125*x:case 59:case 0:switch(I){case 0:case 125:E=0;case 59+g:k==-1&&(P=Ct(P,/\f/g,"")),y>0&&ao(P)-u&&ip(y>32?Jx(P+";",n,r,u-1):Jx(Ct(P," ","")+";",n,r,u-2),d);break;case 59:P+=";";default:if(ip(T=Yx(P,e,r,f,g,o,c,O,R=[],M=[],u),a),I===123)if(g===0)Pp(P,e,T,T,R,a,u,c,M);else switch(m===99&&Er(P,3)===110?100:m){case 100:case 108:case 109:case 115:Pp(t,T,T,n&&ip(Yx(t,T,T,0,0,o,c,O,o,R=[],u),M),o,M,u,c,n?R:M);break;default:Pp(P,T,T,T,[""],M,0,c,M)}}f=g=y=0,x=k=1,O=P="",u=l;break;case 58:u=1+ao(P),y=w;default:if(x<1){if(I==123)--x;else if(I==125&&x++==0&&J7()==125)continue}switch(P+=dd(I),I*x){case 38:k=g>0?1:(P+="\f",-1);break;case 44:c[f++]=(ao(P)-1)*k,k=1;break;case 64:fo()===45&&(P+=Mp(dn())),m=fo(),g=u=ao(O=P+=tk(Rp())),I++;break;case 45:w===45&&ao(P)==2&&(x=0)}}return a}function Yx(t,e,r,n,o,a,l,c,d,f,g){for(var u=o-1,m=o===0?a:[""],y=Rv(m),w=0,x=0,E=0;w0?m[k]+" "+I:Ct(I,/&\f/g,m[k])))&&(d[E++]=O);return hd(t,e,r,o===0?Ov:c,d,f,g)}function nk(t,e,r){return hd(t,e,r,D8,dd(Y7()),Cc(t,2,-2),0)}function Jx(t,e,r,n){return hd(t,e,r,_v,Cc(t,0,n),Cc(t,n+1,-1),n)}function Bs(t,e){for(var r="",n=Rv(t),o=0;o6)switch(Er(t,e+1)){case 109:if(Er(t,e+4)!==45)break;case 102:return Ct(t,/(.+:)(.+)-([^]+)/,"$1"+Et+"$2-$3$1"+Hp+(Er(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~R1(t,"stretch")?j8(Ct(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Er(t,e+1)!==115)break;case 6444:switch(Er(t,ao(t)-3-(~R1(t,"!important")&&10))){case 107:return Ct(t,":",":"+Et)+t;case 101:return Ct(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Et+(Er(t,14)===45?"inline-":"")+"box$3$1"+Et+"$2$3$1"+Mr+"$2box$3")+t}break;case 5936:switch(Er(t,e+11)){case 114:return Et+t+Mr+Ct(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Et+t+Mr+Ct(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Et+t+Mr+Ct(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Et+t+Mr+t+t}return t}var dk=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case _v:e.return=j8(e.value,e.length);break;case N8:return Bs([Hl(e,{value:Ct(e.value,"@","@"+Et)})],o);case Ov:if(e.length)return K7(e.props,function(a){switch(G7(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bs([Hl(e,{props:[Ct(a,/:(read-\w+)/,":"+Hp+"$1")]})],o);case"::placeholder":return Bs([Hl(e,{props:[Ct(a,/:(plac\w+)/,":"+Et+"input-$1")]}),Hl(e,{props:[Ct(a,/:(plac\w+)/,":"+Hp+"$1")]}),Hl(e,{props:[Ct(a,/:(plac\w+)/,Mr+"input-$1")]})],o)}return""})}},fk=[dk],H8=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var E=x.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||fk,a={},l,c=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var E=x.getAttribute("data-emotion").split(" "),k=1;k=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var bk={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},xk=/[A-Z]|^ms/g,wk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W8=function(e){return e.charCodeAt(1)===45},rw=function(e){return e!=null&&typeof e!="boolean"},Hh=z8(function(t){return W8(t)?t:t.replace(xk,"-$&").toLowerCase()}),nw=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(wk,function(n,o,a){return so={name:o,styles:a,next:so},o})}return bk[e]!==1&&!W8(e)&&typeof r=="number"&&r!==0?r+"px":r};function kc(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return so={name:o.name,styles:o.styles,next:so},o.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)so={name:l.name,styles:l.styles,next:so},l=l.next;var c=a.styles+";";return c}return Sk(t,e,r)}case"function":{if(t!==void 0){var d=so,f=r(t);return so=d,kc(t,e,f)}break}}var g=r;if(e==null)return g;var u=e[g];return u!==void 0?u:g}function Sk(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?Ik:Ak},lw=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(l){return e.__emotion_forwardProp(l)&&a(l)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},Dk=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return Mv(r,n,o),X8(function(){return Pv(r,n,o)}),null},Nk=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,l;r!==void 0&&(a=r.label,l=r.target);var c=lw(e,r,n),d=c||sw(o),f=!d("as");return function(){var g=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)u.push.apply(u,g);else{var m=g[0];u.push(m[0]);for(var y=g.length,w=1;w{const r=H8(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let yi;if(typeof document=="object"&&(yi=document.querySelector('[name="emotion-insertion-point"]'),!yi)){yi=document.createElement("meta"),yi.setAttribute("name","emotion-insertion-point"),yi.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(yi)}function Hk(t,e){if(t||e){class r extends A8{insert(a,l){return this.key&&this.key.endsWith("global")&&(this.before=yi),super.insert(a,l)}}const n=jk({key:"css",insertionPoint:t?yi:void 0},r);if(e){const o=n.insert;n.insert=(...a)=>(a[1].styles.match(/^@layer\s+[^{]*$/)||(a[1].styles=`@layer mui {${a[1].styles}}`),o(...a))}return n}}function qk(t){const{injectFirst:e,enableCssLayer:r,children:n}=t,o=_.useMemo(()=>{const a=`${e}-${r}`;if(typeof document=="object"&&Xh.has(a))return Xh.get(a);const l=Hk(e,r);return Xh.set(a,l),l},[e,r]);return o?L.jsx(Ck,{value:o,children:n}):n}function Wk(t){return t==null||Object.keys(t).length===0}function G8(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(Wk(o)?r:o):e;return L.jsx(Rk,{styles:n})}function K8(t,e){return I1(t,e)}function Uk(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const dw=[];function Ci(t){return dw[0]=t,zc(dw)}var Vh={exports:{}},Rt={};var fw;function Xk(){if(fw)return Rt;fw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function w(x){if(typeof x=="object"&&x!==null){var E=x.$$typeof;switch(E){case t:switch(x=x.type,x){case r:case o:case n:case d:case f:case m:return x;default:switch(x=x&&x.$$typeof,x){case l:case c:case u:case g:return x;case a:return x;default:return E}}case e:return E}}}return Rt.ContextConsumer=a,Rt.ContextProvider=l,Rt.Element=t,Rt.ForwardRef=c,Rt.Fragment=r,Rt.Lazy=u,Rt.Memo=g,Rt.Portal=e,Rt.Profiler=o,Rt.StrictMode=n,Rt.Suspense=d,Rt.SuspenseList=f,Rt.isContextConsumer=function(x){return w(x)===a},Rt.isContextProvider=function(x){return w(x)===l},Rt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Rt.isForwardRef=function(x){return w(x)===c},Rt.isFragment=function(x){return w(x)===r},Rt.isLazy=function(x){return w(x)===u},Rt.isMemo=function(x){return w(x)===g},Rt.isPortal=function(x){return w(x)===e},Rt.isProfiler=function(x){return w(x)===o},Rt.isStrictMode=function(x){return w(x)===n},Rt.isSuspense=function(x){return w(x)===d},Rt.isSuspenseList=function(x){return w(x)===f},Rt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===o||x===n||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===u||x.$$typeof===g||x.$$typeof===l||x.$$typeof===a||x.$$typeof===c||x.$$typeof===y||x.getModuleId!==void 0)},Rt.typeOf=w,Rt}var hw;function Vk(){return hw||(hw=1,Vh.exports=Xk()),Vh.exports}var Y8=Vk();function uo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function J8(t){if(_.isValidElement(t)||Y8.isValidElementType(t)||!uo(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=J8(t[r])}),e}function Dr(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return uo(t)&&uo(e)&&Object.keys(e).forEach(o=>{_.isValidElement(e[o])||Y8.isValidElementType(e[o])?n[o]=e[o]:uo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&uo(t[o])?n[o]=Dr(t[o],e[o],r):r.clone?n[o]=uo(e[o])?J8(e[o]):e[o]:n[o]=e[o]}),n}const Gk=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Kk(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,a=Gk(e),l=Object.keys(a);function c(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r})`}function d(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-n/100}${r})`}function f(m,y){const w=l.indexOf(y);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r}) and (max-width:${(w!==-1&&typeof e[l[w]]=="number"?e[l[w]]:y)-n/100}${r})`}function g(m){return l.indexOf(m)+1n.startsWith("@container")).sort((n,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return r.length?r.reduce((n,o)=>{const a=e[o];return delete n[o],n[o]=a,n},{...e}):e}function Yk(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function Jk(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(a)}function Qk(t){const e=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function r(a,l){a.up=(...c)=>e(t.breakpoints.up(...c),l),a.down=(...c)=>e(t.breakpoints.down(...c),l),a.between=(...c)=>e(t.breakpoints.between(...c),l),a.only=(...c)=>e(t.breakpoints.only(...c),l),a.not=(...c)=>{const d=e(t.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},o=a=>(r(n,a),n);return r(o),{...t,containerQueries:o}}const Zk={borderRadius:4};function vc(t,e){return e?Dr(t,e,{clone:!1}):t}const md={xs:0,sm:600,md:900,lg:1200,xl:1536},gw={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${md[t]}px)`},eO={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:md[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Fo(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||gw;return e.reduce((l,c,d)=>(l[a.up(a.keys[d])]=r(e[d]),l),{})}if(typeof e=="object"){const a=n.breakpoints||gw;return Object.keys(e).reduce((l,c)=>{if(Yk(a.keys,c)){const d=Jk(n.containerQueries?n:eO,c);d&&(l[d]=r(e[c],c))}else if(Object.keys(a.values||md).includes(c)){const d=a.up(c);l[d]=r(e[c],c)}else{const d=c;l[d]=e[d]}return l},{})}return r(e)}function tO(t={}){return t.keys?.reduce((r,n)=>{const o=t.up(n);return r[o]={},r},{})||{}}function vw(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function me(t){if(typeof t!="string")throw new Error(Bo(7));return t.charAt(0).toUpperCase()+t.slice(1)}function xi(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function qp(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=xi(t,r)||n,e&&(o=e(o,n,t)),o}function nr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,a=l=>{if(l[e]==null)return null;const c=l[e],d=l.theme,f=xi(d,n)||{};return Fo(l,c,u=>{let m=qp(f,o,u);return u===m&&typeof u=="string"&&(m=qp(f,o,`${e}${u==="default"?"":me(u)}`,u)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[e],a}function rO(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const nO={m:"margin",p:"padding"},oO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yw={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},iO=rO(t=>{if(t.length>2)if(yw[t])t=yw[t];else return[t];const[e,r]=t.split(""),n=nO[e],o=oO[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Dv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Dv,...Nv];function Hc(t,e,r,n){const o=xi(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),c=o[l];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof o=="function"?o:()=>{}}function $v(t){return Hc(t,"spacing",8)}function qc(t,e){return typeof e=="string"||e==null?e:t(e)}function aO(t,e){return r=>t.reduce((n,o)=>(n[o]=qc(e,r),n),{})}function sO(t,e,r,n){if(!e.includes(r))return null;const o=iO(r),a=aO(o,n),l=t[r];return Fo(t,l,a)}function Q8(t,e){const r=$v(t.theme);return Object.keys(t).map(n=>sO(t,e,n,r)).reduce(vc,{})}function Yt(t){return Q8(t,Dv)}Yt.propTypes={};Yt.filterProps=Dv;function Jt(t){return Q8(t,Nv)}Jt.propTypes={};Jt.filterProps=Nv;function Z8(t=8,e=$v({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const l=e(a);return typeof l=="number"?`${l}px`:l}).join(" ");return r.mui=!0,r}function gd(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>e[a]?vc(o,e[a](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function kn(t){return typeof t!="number"?t:`${t}px solid`}function In(t,e){return nr({prop:t,themeKey:"borders",transform:e})}const lO=In("border",kn),cO=In("borderTop",kn),uO=In("borderRight",kn),pO=In("borderBottom",kn),dO=In("borderLeft",kn),fO=In("borderColor"),hO=In("borderTopColor"),mO=In("borderRightColor"),gO=In("borderBottomColor"),vO=In("borderLeftColor"),yO=In("outline",kn),bO=In("outlineColor"),vd=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Hc(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:qc(e,n)});return Fo(t,t.borderRadius,r)}return null};vd.propTypes={};vd.filterProps=["borderRadius"];gd(lO,cO,uO,pO,dO,fO,hO,mO,gO,vO,vd,yO,bO);const yd=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Hc(t.theme,"spacing",8),r=n=>({gap:qc(e,n)});return Fo(t,t.gap,r)}return null};yd.propTypes={};yd.filterProps=["gap"];const bd=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Hc(t.theme,"spacing",8),r=n=>({columnGap:qc(e,n)});return Fo(t,t.columnGap,r)}return null};bd.propTypes={};bd.filterProps=["columnGap"];const xd=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Hc(t.theme,"spacing",8),r=n=>({rowGap:qc(e,n)});return Fo(t,t.rowGap,r)}return null};xd.propTypes={};xd.filterProps=["rowGap"];const xO=nr({prop:"gridColumn"}),wO=nr({prop:"gridRow"}),SO=nr({prop:"gridAutoFlow"}),EO=nr({prop:"gridAutoColumns"}),CO=nr({prop:"gridAutoRows"}),TO=nr({prop:"gridTemplateColumns"}),kO=nr({prop:"gridTemplateRows"}),OO=nr({prop:"gridTemplateAreas"}),_O=nr({prop:"gridArea"});gd(yd,bd,xd,xO,wO,SO,EO,CO,TO,kO,OO,_O);function Fs(t,e){return e==="grey"?e:t}const RO=nr({prop:"color",themeKey:"palette",transform:Fs}),MO=nr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fs}),PO=nr({prop:"backgroundColor",themeKey:"palette",transform:Fs});gd(RO,MO,PO);function cn(t){return t<=1&&t!==0?`${t*100}%`:t}const IO=nr({prop:"width",transform:cn}),Lv=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{const n=t.theme?.breakpoints?.values?.[r]||md[r];return n?t.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:cn(r)}};return Fo(t,t.maxWidth,e)}return null};Lv.filterProps=["maxWidth"];const AO=nr({prop:"minWidth",transform:cn}),DO=nr({prop:"height",transform:cn}),NO=nr({prop:"maxHeight",transform:cn}),$O=nr({prop:"minHeight",transform:cn});nr({prop:"size",cssProperty:"width",transform:cn});nr({prop:"size",cssProperty:"height",transform:cn});const LO=nr({prop:"boxSizing"});gd(IO,Lv,AO,DO,NO,$O,LO);const Wc={border:{themeKey:"borders",transform:kn},borderTop:{themeKey:"borders",transform:kn},borderRight:{themeKey:"borders",transform:kn},borderBottom:{themeKey:"borders",transform:kn},borderLeft:{themeKey:"borders",transform:kn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:kn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vd},color:{themeKey:"palette",transform:Fs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fs},backgroundColor:{themeKey:"palette",transform:Fs},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Yt},mt:{style:Yt},mr:{style:Yt},mb:{style:Yt},ml:{style:Yt},mx:{style:Yt},my:{style:Yt},margin:{style:Yt},marginTop:{style:Yt},marginRight:{style:Yt},marginBottom:{style:Yt},marginLeft:{style:Yt},marginX:{style:Yt},marginY:{style:Yt},marginInline:{style:Yt},marginInlineStart:{style:Yt},marginInlineEnd:{style:Yt},marginBlock:{style:Yt},marginBlockStart:{style:Yt},marginBlockEnd:{style:Yt},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:yd},rowGap:{style:xd},columnGap:{style:bd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cn},maxWidth:{style:Lv},minWidth:{transform:cn},height:{transform:cn},maxHeight:{transform:cn},minHeight:{transform:cn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function BO(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function FO(t,e){return typeof t=="function"?t(e):t}function zO(){function t(r,n,o,a){const l={[r]:n,theme:o},c=a[r];if(!c)return{[r]:n};const{cssProperty:d=r,themeKey:f,transform:g,style:u}=c;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const m=xi(o,f)||{};return u?u(l):Fo(l,n,w=>{let x=qp(m,g,w);return w===x&&typeof w=="string"&&(x=qp(m,g,`${r}${w==="default"?"":me(w)}`,w)),d===!1?x:{[d]:x}})}function e(r){const{sx:n,theme:o={},nested:a}=r||{};if(!n)return null;const l=o.unstable_sxConfig??Wc;function c(d){let f=d;if(typeof d=="function")f=d(o);else if(typeof d!="object")return d;if(!f)return null;const g=tO(o.breakpoints),u=Object.keys(g);let m=g;return Object.keys(f).forEach(y=>{const w=FO(f[y],o);if(w!=null)if(typeof w=="object")if(l[y])m=vc(m,t(y,w,o,l));else{const x=Fo({theme:o},w,E=>({[y]:E}));BO(x,w)?m[y]=e({sx:w,theme:o,nested:!0}):m=vc(m,x)}else m=vc(m,t(y,w,o,l))}),!a&&o.modularCssLayers?{"@layer sx":mw(o,vw(u,m))}:mw(o,vw(u,m))}return Array.isArray(n)?n.map(c):c(n)}return e}const Ti=zO();Ti.filterProps=["sx"];function jO(t,e){const r=this;if(r.vars){if(!r.colorSchemes?.[t]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(t);return n==="&"?e:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:e})}return r.palette.mode===t?e:{}}function wd(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...l}=t,c=Kk(r),d=Z8(o);let f=Dr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...Zk,...a}},l);return f=Qk(f),f.applyStyles=jO,f=e.reduce((g,u)=>Dr(g,u),f),f.unstable_sxConfig={...Wc,...l?.unstable_sxConfig},f.unstable_sx=function(u){return Ti({sx:u,theme:this})},f}function HO(t){return Object.keys(t).length===0}function Sd(t=null){const e=_.useContext(jc);return!e||HO(e)?t:e}const qO=wd();function Uc(t=qO){return Sd(t)}function Gh(t){const e=Ci(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function eE({styles:t,themeId:e,defaultTheme:r={}}){const n=Uc(r),o=e&&n[e]||n;let a=typeof t=="function"?t(o):t;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(l=>Gh(typeof l=="function"?l(o):l)):a=Gh(a)),L.jsx(G8,{styles:a})}const WO=t=>{const e={systemProps:{},otherProps:{}},r=t?.theme?.unstable_sxConfig??Wc;return Object.keys(t).forEach(n=>{r[n]?e.systemProps[n]=t[n]:e.otherProps[n]=t[n]}),e};function Bv(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=WO(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...l)=>{const c=e(...l);return uo(c)?{...n,...c}:n}:a={...n,...e},{...o,sx:a}}const bw=t=>t,UO=()=>{let t=bw;return{configure(e){t=e},generate(e){return t(e)},reset(){t=bw}}},tE=UO();function rE(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;ec!=="theme"&&c!=="sx"&&c!=="as"})(Ti);return _.forwardRef(function(d,f){const g=Uc(r),{className:u,component:m="div",...y}=Bv(d);return L.jsx(a,{as:m,ref:f,className:ye(u,o?o(n):n),theme:e&&g[e]||g,...y})})}const VO={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qe(t,e,r="Mui"){const n=VO[e];return n?`${r}-${n}`:`${tE.generate(t)}-${e}`}function We(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=qe(t,o,r)}),n}function nE(t){const{variants:e,...r}=t,n={variants:e,style:Ci(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Ci(o.style))}),n}const GO=wd();function Kh(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function sa(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function KO(t){return t?(e,r)=>r[t]:null}function YO(t,e,r){t.theme=QO(t.theme)?r:t.theme[e]||t.theme}function Ip(t,e,r){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>Ip(t,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?sa(n.style,r):n.style;else{const{variants:a,...l}=n;o=r?sa(Ci(l),r):l}return oE(t,n.variants,[o],r)}return n?.isProcessed?r?sa(Ci(n.style),r):n.style:r?sa(Ci(n),r):n}function oE(t,e,r=[],n=void 0){let o;e:for(let a=0;a{Uk(c,T=>T.filter(P=>P!==Ti));const{name:f,slot:g,skipVariantsResolver:u,skipSx:m,overridesResolver:y=KO(e_(g)),...w}=d,x=f&&f.startsWith("Mui")||g?"components":"custom",E=u!==void 0?u:g&&g!=="Root"&&g!=="root"||!1,k=m||!1;let I=Kh;g==="Root"||g==="root"?I=n:g?I=o:ZO(c)&&(I=void 0);const O=K8(c,{shouldForwardProp:I,label:JO(),...w}),R=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(N){return Ip(N,T,N.theme.modularCssLayers?x:void 0)};if(uo(T)){const P=nE(T);return function(D){return P.variants?Ip(D,P,D.theme.modularCssLayers?x:void 0):D.theme.modularCssLayers?sa(P.style,x):P.style}}return T},M=(...T)=>{const P=[],N=T.map(R),D=[];if(P.push(a),f&&y&&D.push(function(q){const W=q.theme.components?.[f]?.styleOverrides;if(!W)return null;const K={};for(const re in W)K[re]=Ip(q,W[re],q.theme.modularCssLayers?"theme":void 0);return y(q,K)}),f&&!E&&D.push(function(q){const W=q.theme?.components?.[f]?.variants;return W?oE(q,W,[],q.theme.modularCssLayers?"theme":void 0):null}),k||D.push(Ti),Array.isArray(N[0])){const H=N.shift(),q=new Array(P.length).fill(""),U=new Array(D.length).fill("");let W;W=[...q,...H,...U],W.raw=[...q,...H.raw,...U],P.unshift(W)}const C=[...P,...N,...D],$=O(...C);return c.muiName&&($.muiName=c.muiName),$};return O.withConfig&&(M.withConfig=O.withConfig),M}}function JO(t,e){return void 0}function QO(t){for(const e in t)return!1;return!0}function ZO(t){return typeof t=="string"&&t.charCodeAt(0)>96}function e_(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const t_=iE();function Oc(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=n;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=t[o],l=e[o];if(!l)r[o]=a||{};else if(!a)r[o]=l;else{r[o]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;r[o][d]=Oc(a[d],l[d])}}}else r[o]===void 0&&(r[o]=t[o])}return r}function aE(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:Oc(e.components[r].defaultProps,n)}function r_({props:t,name:e,defaultTheme:r,themeId:n}){let o=Uc(r);return n&&(o=o[n]||o),aE({theme:o,name:e,props:t})}const Zr=typeof window<"u"?_.useLayoutEffect:_.useEffect;function n_(t,e,r,n,o){const[a,l]=_.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return Zr(()=>{if(!r)return;const c=r(t),d=()=>{l(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[t,r]),a}const o_={...zp},sE=o_.useSyncExternalStore;function i_(t,e,r,n,o){const a=_.useCallback(()=>e,[e]),l=_.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:g}=n(t);return()=>g}return a},[a,t,n,o,r]),[c,d]=_.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const g=r(t);return[()=>g.matches,u=>(g.addEventListener("change",u),()=>{g.removeEventListener("change",u)})]},[a,r,t]);return sE(d,c,l)}function lE(t={}){const{themeId:e}=t;return function(n,o={}){let a=Sd();a&&e&&(a=a[e]||a);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=l?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:g=!1}=aE({name:"MuiUseMediaQuery",props:o,theme:a});let u=typeof n=="function"?n(a):n;return u=u.replace(/^@media( ?)/m,""),u.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` +`)),(sE!==void 0?i_:n_)(u,c,d,f,g)}}lE();function a_(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function Fv(t,e=0,r=1){return a_(t,e,r)}function s_(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ki(t){if(t.type)return t;if(t.charAt(0)==="#")return ki(s_(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Bo(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Bo(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const l_=t=>{const e=ki(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ac=(t,e)=>{try{return l_(t)}catch{return t}};function Ed(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function cE(t){t=ki(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,a=n*Math.min(o,1-o),l=(f,g=(f+r/30)%12)=>o-a*Math.max(Math.min(g-3,9-g,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return t.type==="hsla"&&(c+="a",d.push(e[3])),Ed({type:c,values:d})}function A1(t){t=ki(t);let e=t.type==="hsl"||t.type==="hsla"?ki(cE(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function c_(t,e){const r=A1(t),n=A1(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function It(t,e){return t=ki(t),e=Fv(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Ed(t)}function ap(t,e,r){try{return It(t,e)}catch{return t}}function Cd(t,e){if(t=ki(t),e=Fv(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return Ed(t)}function Mt(t,e,r){try{return Cd(t,e)}catch{return t}}function Td(t,e){if(t=ki(t),e=Fv(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return Ed(t)}function Pt(t,e,r){try{return Td(t,e)}catch{return t}}function D1(t,e=.15){return A1(t)>.5?Cd(t,e):Td(t,e)}function sp(t,e,r){try{return D1(t,e)}catch{return t}}function N1(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function kd(t,e=166){let r;function n(...o){const a=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function Ap(t,e){return _.isValidElement(t)&&e.indexOf(t.type.muiName??t.type?._payload?.value?.muiName)!==-1}function en(t){return t&&t.ownerDocument||document}function Xn(t){return en(t).defaultView||window}function xw(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let ww=0;function u_(t){const[e,r]=_.useState(t),n=t||e;return _.useEffect(()=>{e==null&&(ww+=1,r(`mui-${ww}`))},[e]),n}const p_={...zp},Sw=p_.useId;function va(t){if(Sw!==void 0){const e=Sw();return t??e}return u_(t)}function Wp({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=_.useRef(t!==void 0),[a,l]=_.useState(e),c=o?t:a,d=_.useCallback(f=>{o||l(f)},[]);return[c,d]}function On(t){const e=_.useRef(t);return Zr(()=>{e.current=t}),_.useRef((...r)=>(0,e.current)(...r)).current}function vr(...t){const e=_.useRef(void 0),r=_.useCallback(n=>{const o=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const l=a,c=l(n);return typeof c=="function"?c:()=>{l(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},t);return _.useMemo(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}const Ew={};function uE(t,e){const r=_.useRef(Ew);return r.current===Ew&&(r.current=t(e)),r}const d_=[];function f_(t){_.useEffect(t,d_)}class Od{static create(){return new Od}currentId=null;start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function As(){const t=uE(Od.create).current;return f_(t.disposeEffect),t}function Ws(t){try{return t.matches(":focus-visible")}catch{}return!1}function pE(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function Ue(t,e,r=void 0){const n={};for(const o in t){const a=t[o];let l="",c=!0;for(let d=0;dn.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Cw(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function hE(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=t;if(!e){const y=ye(r?.className,a,o?.className,n?.className),w={...r?.style,...o?.style,...n?.style},x={...r,...o,...n};return y.length>0&&(x.className=y),Object.keys(w).length>0&&(x.style=w),{props:x,internalRef:void 0}}const l=fE({...o,...n}),c=Cw(n),d=Cw(o),f=e(l),g=ye(f?.className,r?.className,a,o?.className,n?.className),u={...f?.style,...r?.style,...o?.style,...n?.style},m={...f,...r,...d,...c};return g.length>0&&(m.className=g),Object.keys(u).length>0&&(m.style=u),{props:m,internalRef:f.ref}}function mE(t,e,r){return typeof t=="function"?t(e,r):t}function pa(t){const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=t,l=o?{}:mE(r,n),{props:c,internalRef:d}=hE({...a,externalSlotProps:l}),f=vr(d,l?.ref,t.additionalProps?.ref);return dE(e,{...c,ref:f},n)}function Zs(t){return parseInt(_.version,10)>=19?t?.props?.ref||null:t?.ref||null}const gE=_.createContext(null);function zv(){return _.useContext(gE)}const m_=typeof Symbol=="function"&&Symbol.for,g_=m_?Symbol.for("mui.nested"):"__THEME_NESTED__";function v_(t,e){return typeof e=="function"?e(t):{...t,...e}}function y_(t){const{children:e,theme:r}=t,n=zv(),o=_.useMemo(()=>{const a=n===null?{...r}:v_(n,r);return a!=null&&(a[g_]=n!==null),a},[r,n]);return L.jsx(gE.Provider,{value:o,children:e})}const vE=_.createContext();function b_({value:t,...e}){return L.jsx(vE.Provider,{value:t??!0,...e})}const el=()=>_.useContext(vE)??!1,yE=_.createContext(void 0);function x_({value:t,children:e}){return L.jsx(yE.Provider,{value:t,children:e})}function w_(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?Oc(o.defaultProps,n):!o.styleOverrides&&!o.variants?Oc(o,n):n}function S_({props:t,name:e}){const r=_.useContext(yE);return w_({props:t,name:e,theme:{components:r}})}function E_(t){const e=Sd(),r=va()||"",{modularCssLayers:n}=t;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Zr(()=>{const a=document.querySelector("head");if(!a)return;const l=a.firstChild;if(o){if(l&&l.hasAttribute?.("data-mui-layer-order")&&l.getAttribute("data-mui-layer-order")===r)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",r),c.textContent=o,a.prepend(c)}else a.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[o,r]),o?L.jsx(eE,{styles:o}):null}const Tw={};function kw(t,e,r,n=!1){return _.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const a=r(o),l=t?{...e,[t]:a}:a;return n?()=>l:l}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function bE(t){const{children:e,theme:r,themeId:n}=t,o=Sd(Tw),a=zv()||Tw,l=kw(n,o,r),c=kw(n,a,r,!0),d=(n?l[n]:l).direction==="rtl",f=E_(l);return L.jsx(y_,{theme:c,children:L.jsx(jc.Provider,{value:l,children:L.jsx(b_,{value:d,children:L.jsxs(x_,{value:n?l[n].components:l.components,children:[f,e]})})})})}const Ow={theme:void 0};function C_(t){let e,r;return function(o){let a=e;return(a===void 0||o.theme!==r)&&(Ow.theme=o.theme,a=nE(t(Ow)),e=a,r=o.theme),a}}const jv="mode",Hv="color-scheme",T_="data-color-scheme";function k_(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=jv,colorSchemeStorageKey:a=Hv,attribute:l=T_,colorSchemeNode:c="document.documentElement",nonce:d}=t||{};let f="",g=l;if(l==="class"&&(g=".%s"),l==="data"&&(g="[data-%s]"),g.startsWith(".")){const m=g.substring(1);f+=`${c}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark)); + ${c}.classList.add('${m}'.replace('%s', colorScheme));`}const u=g.match(/\[([^\]]+)\]/);if(u){const[m,y]=u[1].split("=");y||(f+=`${c}.removeAttribute('${m}'.replace('%s', light)); + ${c}.removeAttribute('${m}'.replace('%s', dark));`),f+=` + ${c}.setAttribute('${m}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else f+=`${c}.setAttribute('${g}', colorScheme);`;return L.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${e}'; + const dark = localStorage.getItem('${a}-dark') || '${n}'; + const light = localStorage.getItem('${a}-light') || '${r}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${f} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function O_(){}const __=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let n;try{n=e.localStorage.getItem(t)}catch{}return n||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return O_;const n=o=>{const a=o.newValue;o.key===t&&r(a)};return e.addEventListener("storage",n),()=>{e.removeEventListener("storage",n)}}});function Yh(){}function _w(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function xE(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function R_(t){return xE(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function M_(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=jv,colorSchemeStorageKey:l=Hv,storageWindow:c=typeof window>"u"?void 0:window,storageManager:d=__,noSsr:f=!1}=t,g=o.join(","),u=o.length>1,m=_.useMemo(()=>d?.({key:a,storageWindow:c}),[d,a,c]),y=_.useMemo(()=>d?.({key:`${l}-light`,storageWindow:c}),[d,l,c]),w=_.useMemo(()=>d?.({key:`${l}-dark`,storageWindow:c}),[d,l,c]),[x,E]=_.useState(()=>{const N=m?.get(e)||e,D=y?.get(r)||r,C=w?.get(n)||n;return{mode:N,systemMode:_w(N),lightColorScheme:D,darkColorScheme:C}}),[k,I]=_.useState(f||!u);_.useEffect(()=>{I(!0)},[]);const O=R_(x),R=_.useCallback(N=>{E(D=>{if(N===D.mode)return D;const C=N??e;return m?.set(C),{...D,mode:C,systemMode:_w(C)}})},[m,e]),M=_.useCallback(N=>{N?typeof N=="string"?N&&!g.includes(N)?console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`):E(D=>{const C={...D};return xE(D,$=>{$==="light"&&(y?.set(N),C.lightColorScheme=N),$==="dark"&&(w?.set(N),C.darkColorScheme=N)}),C}):E(D=>{const C={...D},$=N.light===null?r:N.light,H=N.dark===null?n:N.dark;return $&&(g.includes($)?(C.lightColorScheme=$,y?.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),H&&(g.includes(H)?(C.darkColorScheme=H,w?.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),C}):E(D=>(y?.set(r),w?.set(n),{...D,lightColorScheme:r,darkColorScheme:n}))},[g,y,w,r,n]),T=_.useCallback(N=>{x.mode==="system"&&E(D=>{const C=N?.matches?"dark":"light";return D.systemMode===C?D:{...D,systemMode:C}})},[x.mode]),P=_.useRef(T);return P.current=T,_.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const N=(...C)=>P.current(...C),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(N),N(D),()=>{D.removeListener(N)}},[u]),_.useEffect(()=>{if(u){const N=m?.subscribe($=>{(!$||["light","dark","system"].includes($))&&R($||e)})||Yh,D=y?.subscribe($=>{(!$||g.match($))&&M({light:$})})||Yh,C=w?.subscribe($=>{(!$||g.match($))&&M({dark:$})})||Yh;return()=>{N(),D(),C()}}},[M,R,g,e,c,u,m,y,w]),{...x,mode:k?x.mode:void 0,systemMode:k?x.systemMode:void 0,colorScheme:k?O:void 0,setMode:R,setColorScheme:M}}const P_="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function I_(t){const{themeId:e,theme:r={},modeStorageKey:n=jv,colorSchemeStorageKey:o=Hv,disableTransitionOnChange:a=!1,defaultColorScheme:l,resolveTheme:c}=t,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=_.createContext(void 0),g=()=>_.useContext(f)||d,u={},m={};function y(k){const{children:I,theme:O,modeStorageKey:R=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:T=a,storageManager:P,storageWindow:N=typeof window>"u"?void 0:window,documentNode:D=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:H=!1,defaultMode:q="system",noSsr:U}=k,W=_.useRef(!1),K=zv(),re=_.useContext(f),Z=!!re&&!$,V=_.useMemo(()=>O||(typeof r=="function"?r():r),[O]),ee=V[e],F=ee||V,{colorSchemes:J=u,components:pe=m,cssVarPrefix:de}=F,ie=Object.keys(J).filter(Ye=>!!J[Ye]).join(","),fe=_.useMemo(()=>ie.split(","),[ie]),Se=typeof l=="string"?l:l.light,Ce=typeof l=="string"?l:l.dark,Oe=J[Se]&&J[Ce]?q:J[F.defaultColorScheme]?.palette?.mode||F.palette?.mode,{mode:ke,setMode:Le,systemMode:Ie,lightColorScheme:nt,darkColorScheme:Me,colorScheme:Te,setColorScheme:ht}=M_({supportedColorSchemes:fe,defaultLightColorScheme:Se,defaultDarkColorScheme:Ce,modeStorageKey:R,colorSchemeStorageKey:M,defaultMode:Oe,storageManager:P,storageWindow:N,noSsr:U});let be=ke,Ae=Te;Z&&(be=re.mode,Ae=re.colorScheme);const it=_.useMemo(()=>{const Ye=Ae||F.defaultColorScheme,ne=F.generateThemeVars?.()||F.vars,ge={...F,components:pe,colorSchemes:J,cssVarPrefix:de,vars:ne};if(typeof ge.generateSpacing=="function"&&(ge.spacing=ge.generateSpacing()),Ye){const je=J[Ye];je&&typeof je=="object"&&Object.keys(je).forEach(Be=>{je[Be]&&typeof je[Be]=="object"?ge[Be]={...ge[Be],...je[Be]}:ge[Be]=je[Be]})}return c?c(ge):ge},[F,Ae,pe,J,de]),Ze=F.colorSchemeSelector;Zr(()=>{if(Ae&&C&&Ze&&Ze!=="media"){const Ye=Ze;let ne=Ze;if(Ye==="class"&&(ne=".%s"),Ye==="data"&&(ne="[data-%s]"),Ye?.startsWith("data-")&&!Ye.includes("%s")&&(ne=`[${Ye}="%s"]`),ne.startsWith("."))C.classList.remove(...fe.map(ge=>ne.substring(1).replace("%s",ge))),C.classList.add(ne.substring(1).replace("%s",Ae));else{const ge=ne.replace("%s",Ae).match(/\[([^\]]+)\]/);if(ge){const[je,Be]=ge[1].split("=");Be||fe.forEach(st=>{C.removeAttribute(je.replace(Ae,st))}),C.setAttribute(je,Be?Be.replace(/"|'/g,""):"")}else C.setAttribute(ne,Ae)}}},[Ae,Ze,C,fe]),_.useEffect(()=>{let Ye;if(T&&W.current&&D){const ne=D.createElement("style");ne.appendChild(D.createTextNode(P_)),D.head.appendChild(ne),window.getComputedStyle(D.body),Ye=setTimeout(()=>{D.head.removeChild(ne)},1)}return()=>{clearTimeout(Ye)}},[Ae,T,D]),_.useEffect(()=>(W.current=!0,()=>{W.current=!1}),[]);const Xe=_.useMemo(()=>({allColorSchemes:fe,colorScheme:Ae,darkColorScheme:Me,lightColorScheme:nt,mode:be,setColorScheme:ht,setMode:Le,systemMode:Ie}),[fe,Ae,Me,nt,be,ht,Le,Ie,it.colorSchemeSelector]);let ve=!0;(H||F.cssVariables===!1||Z&&K?.cssVarPrefix===de)&&(ve=!1);const at=L.jsxs(_.Fragment,{children:[L.jsx(bE,{themeId:ee?e:void 0,theme:it,children:I}),ve&&L.jsx(G8,{styles:it.generateStyleSheets?.()||[]})]});return Z?at:L.jsx(f.Provider,{value:Xe,children:at})}const w=typeof l=="string"?l:l.light,x=typeof l=="string"?l:l.dark;return{CssVarsProvider:y,useColorScheme:g,getInitColorSchemeScript:k=>k_({colorSchemeStorageKey:o,defaultLightColorScheme:w,defaultDarkColorScheme:x,modeStorageKey:n,...k})}}function A_(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const Rw=(t,e,r,n=[])=>{let o=t;e.forEach((a,l)=>{l===e.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},D_=(t,e,r)=>{function n(o,a=[],l=[]){Object.entries(o).forEach(([c,d])=>{(!r||r&&!r([...a,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...a,c],Array.isArray(d)?[...l,c]:l):e([...a,c],d,l))})}n(t)},N_=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Jh(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},a={},l={};return D_(t,(c,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(c,d))){const g=`--${r?`${r}-`:""}${c.join("-")}`,u=N_(c,d);Object.assign(o,{[g]:u}),Rw(a,c,`var(${g})`,f),Rw(l,c,`var(${g}, ${u})`,f)}},c=>c[0]==="vars"),{css:o,vars:a,varsWithDefaults:l}}function $_(t,e={}){const{getSelector:r=E,disableCssColorScheme:n,colorSchemeSelector:o}=e,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=t,{vars:f,css:g,varsWithDefaults:u}=Jh(d,e);let m=u;const y={},{[c]:w,...x}=a;if(Object.entries(x||{}).forEach(([O,R])=>{const{vars:M,css:T,varsWithDefaults:P}=Jh(R,e);m=Dr(m,P),y[O]={css:T,vars:M}}),w){const{css:O,vars:R,varsWithDefaults:M}=Jh(w,e);m=Dr(m,M),y[c]={css:O,vars:R}}function E(O,R){let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),O){if(M==="media")return t.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${a[O]?.palette?.mode||O})`]:{":root":R}};if(M)return t.defaultColorScheme===O?`:root, ${M.replace("%s",String(O))}`:M.replace("%s",String(O))}return":root"}return{vars:m,generateThemeVars:()=>{let O={...f};return Object.entries(y).forEach(([,{vars:R}])=>{O=Dr(O,R)}),O},generateStyleSheets:()=>{const O=[],R=t.defaultColorScheme||"light";function M(N,D){Object.keys(D).length&&O.push(typeof N=="string"?{[N]:{...D}}:N)}M(r(void 0,{...g}),g);const{[R]:T,...P}=y;if(T){const{css:N}=T,D=a[R]?.palette?.mode,C=!n&&D?{colorScheme:D,...N}:{...N};M(r(R,{...C}),C)}return Object.entries(P).forEach(([N,{css:D}])=>{const C=a[N]?.palette?.mode,$=!n&&C?{colorScheme:C,...D}:{...D};M(r(N,{...$}),$)}),O}}}function L_(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const B_=(t,e)=>t.filter(r=>e.includes(r)),tl=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((o,a)=>{r((l,c)=>{a<=t.keys.length-1&&(a===0?Object.assign(l,c):l[t.up(t.keys[a])]=c)},o)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:B_(t.keys,Object.keys(e))).forEach(a=>{if(t.keys.includes(a)){const l=e[a];l!==void 0&&r((c,d)=>{n===a?Object.assign(c,d):c[t.up(a)]=d},l)}}):(typeof e=="number"||typeof e=="string")&&r((o,a)=>{Object.assign(o,a)},e)};function Up(t){return`--Grid-${t}Spacing`}function _d(t){return`--Grid-parent-${t}Spacing`}const Mw="--Grid-columns",zs="--Grid-parent-columns",F_=({theme:t,ownerState:e})=>{const r={};return tl(t.breakpoints,e.size,(n,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${zs}) - (var(${zs}) - ${o}) * (var(${_d("column")}) / var(${zs})))`}),n(r,a)}),r},z_=({theme:t,ownerState:e})=>{const r={};return tl(t.breakpoints,e.offset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${zs}) + var(${_d("column")}) * ${o} / var(${zs}))`}),n(r,a)}),r},j_=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={[Mw]:12};return tl(t.breakpoints,e.columns,(n,o)=>{const a=o??12;n(r,{[Mw]:a,"> *":{[zs]:a}})}),r},H_=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return tl(t.breakpoints,e.rowSpacing,(n,o)=>{const a=typeof o=="string"?o:t.spacing?.(o);n(r,{[Up("row")]:a,"> *":{[_d("row")]:a}})}),r},q_=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return tl(t.breakpoints,e.columnSpacing,(n,o)=>{const a=typeof o=="string"?o:t.spacing?.(o);n(r,{[Up("column")]:a,"> *":{[_d("column")]:a}})}),r},W_=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return tl(t.breakpoints,e.direction,(n,o)=>{n(r,{flexDirection:o})}),r},U_=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${Up("row")}) var(${Up("column")})`}}),X_=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},V_=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},G_=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`];function K_(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(r=>{t[r]!==void 0&&delete t[r]})}const Y_=wd(),J_=t_("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function Q_(t){return r_({props:t,name:"MuiGrid",defaultTheme:Y_})}function Z_(t={}){const{createStyledComponent:e=J_,useThemeProps:r=Q_,useTheme:n=Uc,componentName:o="MuiGrid"}=t,a=(f,g)=>{const{container:u,direction:m,spacing:y,wrap:w,size:x}=f,E={root:["root",u&&"container",w!=="wrap"&&`wrap-xs-${String(w)}`,...G_(m),...X_(x),...u?V_(y,g.breakpoints.keys[0]):[]]};return Ue(E,k=>qe(o,k),{})};function l(f,g,u=()=>!0){const m={};return f===null||(Array.isArray(f)?f.forEach((y,w)=>{y!==null&&u(y)&&g.keys[w]&&(m[g.keys[w]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const w=f[y];w!=null&&u(w)&&(m[y]=w)}):m[g.keys[0]]=f),m}const c=e(j_,q_,H_,F_,W_,U_,z_),d=_.forwardRef(function(g,u){const m=n(),y=r(g),w=Bv(y);K_(w,m.breakpoints);const{className:x,children:E,columns:k=12,container:I=!1,component:O="div",direction:R="row",wrap:M="wrap",size:T={},offset:P={},spacing:N=0,rowSpacing:D=N,columnSpacing:C=N,unstable_level:$=0,...H}=w,q=l(T,m.breakpoints,F=>F!==!1),U=l(P,m.breakpoints),W=g.columns??($?void 0:k),K=g.spacing??($?void 0:N),re=g.rowSpacing??g.spacing??($?void 0:D),Z=g.columnSpacing??g.spacing??($?void 0:C),V={...w,level:$,columns:W,container:I,direction:R,wrap:M,spacing:K,rowSpacing:re,columnSpacing:Z,size:q,offset:U},ee=a(V,m);return L.jsx(c,{ref:u,as:O,ownerState:V,className:ye(ee.root,x),...H,children:_.Children.map(E,F=>_.isValidElement(F)&&Ap(F,["Grid"])&&I&&F.props.container?_.cloneElement(F,{unstable_level:F.props?.unstable_level??$+1}):F)})});return d.muiName="Grid",d}const _c={black:"#000",white:"#fff"},$1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Za={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},es={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Sr={100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ts={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},rs={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ns={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function wE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:_c.white,default:_c.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const eR=wE();function SE(){return{text:{primary:_c.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:_c.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Pw=SE();function Iw(t,e,r,n){const o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=Td(t.main,o):e==="dark"&&(t.dark=Cd(t.main,a)))}function tR(t="light"){return t==="dark"?{main:ts[200],light:ts[50],dark:ts[400]}:{main:ts[700],light:ts[400],dark:ts[800]}}function rR(t="light"){return t==="dark"?{main:Za[200],light:Za[50],dark:Za[400]}:{main:Za[500],light:Za[300],dark:Za[700]}}function nR(t="light"){return t==="dark"?{main:es[500],light:es[300],dark:es[700]}:{main:es[700],light:es[400],dark:es[800]}}function oR(t="light"){return t==="dark"?{main:rs[400],light:rs[300],dark:rs[700]}:{main:rs[700],light:rs[500],dark:rs[900]}}function iR(t="light"){return t==="dark"?{main:ns[400],light:ns[300],dark:ns[700]}:{main:ns[800],light:ns[500],dark:ns[900]}}function aR(t="light"){return t==="dark"?{main:Sr[400],light:Sr[300],dark:Sr[700]}:{main:"#ed6c02",light:Sr[500],dark:Sr[900]}}function qv(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=t,a=t.primary||tR(e),l=t.secondary||rR(e),c=t.error||nR(e),d=t.info||oR(e),f=t.success||iR(e),g=t.warning||aR(e);function u(x){return c_(x,Pw.text.primary)>=r?Pw.text.primary:eR.text.primary}const m=({color:x,name:E,mainShade:k=500,lightShade:I=300,darkShade:O=700})=>{if(x={...x},!x.main&&x[k]&&(x.main=x[k]),!x.hasOwnProperty("main"))throw new Error(Bo(11,E?` (${E})`:"",k));if(typeof x.main!="string")throw new Error(Bo(12,E?` (${E})`:"",JSON.stringify(x.main)));return Iw(x,"light",I,n),Iw(x,"dark",O,n),x.contrastText||(x.contrastText=u(x.main)),x};let y;return e==="light"?y=wE():e==="dark"&&(y=SE()),Dr({common:{..._c},mode:e,primary:m({color:a,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:g,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:f,name:"success"}),grey:$1,contrastThreshold:r,getContrastText:u,augmentColor:m,tonalOffset:n,...y},o)}function sR(t){const e={};return Object.entries(t).forEach(n=>{const[o,a]=n;typeof a=="object"&&(e[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function lR(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function cR(t){return Math.round(t*1e5)/1e5}const Aw={textTransform:"uppercase"},Dw='"Roboto", "Helvetica", "Arial", sans-serif';function EE(t,e){const{fontFamily:r=Dw,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:g,...u}=typeof e=="function"?e(t):e,m=n/14,y=g||(E=>`${E/d*m}rem`),w=(E,k,I,O,R)=>({fontFamily:r,fontWeight:E,fontSize:y(k),lineHeight:I,...r===Dw?{letterSpacing:`${cR(O/k)}em`}:{},...R,...f}),x={h1:w(o,96,1.167,-1.5),h2:w(o,60,1.2,-.5),h3:w(a,48,1.167,0),h4:w(a,34,1.235,.25),h5:w(a,24,1.334,0),h6:w(l,20,1.6,.15),subtitle1:w(a,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(a,16,1.5,.15),body2:w(a,14,1.43,.15),button:w(l,14,1.75,.4,Aw),caption:w(a,12,1.66,.4),overline:w(a,12,2.66,1,Aw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dr({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c,...x},u,{clone:!1})}const uR=.2,pR=.14,dR=.12;function jt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${uR})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${pR})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${dR})`].join(",")}const fR=["none",jt(0,2,1,-1,0,1,1,0,0,1,3,0),jt(0,3,1,-2,0,2,2,0,0,1,5,0),jt(0,3,3,-2,0,3,4,0,0,1,8,0),jt(0,2,4,-1,0,4,5,0,0,1,10,0),jt(0,3,5,-1,0,5,8,0,0,1,14,0),jt(0,3,5,-1,0,6,10,0,0,1,18,0),jt(0,4,5,-2,0,7,10,1,0,2,16,1),jt(0,5,5,-3,0,8,10,1,0,3,14,2),jt(0,5,6,-3,0,9,12,1,0,3,16,2),jt(0,6,6,-3,0,10,14,1,0,4,18,3),jt(0,6,7,-4,0,11,15,1,0,4,20,3),jt(0,7,8,-4,0,12,17,2,0,5,22,4),jt(0,7,8,-4,0,13,19,2,0,5,24,4),jt(0,7,9,-4,0,14,21,2,0,5,26,4),jt(0,8,9,-5,0,15,22,2,0,6,28,5),jt(0,8,10,-5,0,16,24,2,0,6,30,5),jt(0,8,11,-5,0,17,26,2,0,6,32,5),jt(0,9,11,-5,0,18,28,2,0,7,34,6),jt(0,9,12,-6,0,19,29,2,0,7,36,6),jt(0,10,13,-6,0,20,31,3,0,8,38,7),jt(0,10,13,-6,0,21,33,3,0,8,40,7),jt(0,10,14,-6,0,22,35,3,0,8,42,7),jt(0,11,14,-7,0,23,36,3,0,9,44,8),jt(0,11,15,-7,0,24,38,3,0,9,46,8)],hR={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},mR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Nw(t){return`${Math.round(t)}ms`}function gR(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function vR(t){const e={...hR,...t.easing},r={...mR,...t.duration};return{getAutoHeightDuration:gR,create:(o=["all"],a={})=>{const{duration:l=r.standard,easing:c=e.easeInOut,delay:d=0,...f}=a;return(Array.isArray(o)?o:[o]).map(g=>`${g} ${typeof l=="string"?l:Nw(l)} ${c} ${typeof d=="string"?d:Nw(d)}`).join(",")},...t,easing:e,duration:r}}const yR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function bR(t){return uo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function CE(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let a=0;aDr(y,w),m),m.unstable_sxConfig={...Wc,...f?.unstable_sxConfig},m.unstable_sx=function(w){return Ti({sx:w,theme:this})},m.toRuntimeSource=CE,m}function B1(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const xR=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=B1(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function TE(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function kE(t){return t==="dark"?xR:[]}function wR(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,a=qv(e);return{palette:a,opacity:{...TE(a.mode),...r},overlays:n||kE(a.mode),...o}}function SR(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const ER=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],CR=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const l={};return ER(t.cssVarPrefix).forEach(c=>{l[c]=r[c],delete r[c]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:a?{[a.replace("%s",e)]:l,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...l}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function TR(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function te(t,e,r){!t[e]&&r&&(t[e]=r)}function sc(t){return typeof t!="string"||!t.startsWith("hsl")?t:cE(t)}function Io(t,e){`${e}Channel`in t||(t[`${e}Channel`]=ac(sc(t[e])))}function kR(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const ro=t=>{try{return t()}catch{}},OR=(t="mui")=>A_(t);function Qh(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=wR({...e,palette:{mode:o,...e?.palette}});return}const{palette:a,...l}=L1({...r,palette:{mode:o,...e?.palette}});return t[n]={...e,palette:a,opacity:{...TE(o),...e?.opacity},overlays:e?.overlays||kE(o)},l}function _R(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=SR,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...f}=t,g=Object.keys(r)[0],u=n||(r.light&&g!=="light"?"light":g),m=OR(a),{[u]:y,light:w,dark:x,...E}=r,k={...E};let I=y;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(I=!0),!I)throw new Error(Bo(21,u));const O=Qh(k,I,f,u);w&&!k.light&&Qh(k,w,void 0,"light"),x&&!k.dark&&Qh(k,x,void 0,"dark");let R={defaultColorScheme:u,...O,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:k,font:{...sR(O.typography),...O.font},spacing:kR(f.spacing)};Object.keys(R.colorSchemes).forEach(D=>{const C=R.colorSchemes[D].palette,$=H=>{const q=H.split("-"),U=q[1],W=q[2];return m(H,C[U][W])};if(C.mode==="light"&&(te(C.common,"background","#fff"),te(C.common,"onBackground","#000")),C.mode==="dark"&&(te(C.common,"background","#000"),te(C.common,"onBackground","#fff")),TR(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){te(C.Alert,"errorColor",Mt(C.error.light,.6)),te(C.Alert,"infoColor",Mt(C.info.light,.6)),te(C.Alert,"successColor",Mt(C.success.light,.6)),te(C.Alert,"warningColor",Mt(C.warning.light,.6)),te(C.Alert,"errorFilledBg",$("palette-error-main")),te(C.Alert,"infoFilledBg",$("palette-info-main")),te(C.Alert,"successFilledBg",$("palette-success-main")),te(C.Alert,"warningFilledBg",$("palette-warning-main")),te(C.Alert,"errorFilledColor",ro(()=>C.getContrastText(C.error.main))),te(C.Alert,"infoFilledColor",ro(()=>C.getContrastText(C.info.main))),te(C.Alert,"successFilledColor",ro(()=>C.getContrastText(C.success.main))),te(C.Alert,"warningFilledColor",ro(()=>C.getContrastText(C.warning.main))),te(C.Alert,"errorStandardBg",Pt(C.error.light,.9)),te(C.Alert,"infoStandardBg",Pt(C.info.light,.9)),te(C.Alert,"successStandardBg",Pt(C.success.light,.9)),te(C.Alert,"warningStandardBg",Pt(C.warning.light,.9)),te(C.Alert,"errorIconColor",$("palette-error-main")),te(C.Alert,"infoIconColor",$("palette-info-main")),te(C.Alert,"successIconColor",$("palette-success-main")),te(C.Alert,"warningIconColor",$("palette-warning-main")),te(C.AppBar,"defaultBg",$("palette-grey-100")),te(C.Avatar,"defaultBg",$("palette-grey-400")),te(C.Button,"inheritContainedBg",$("palette-grey-300")),te(C.Button,"inheritContainedHoverBg",$("palette-grey-A100")),te(C.Chip,"defaultBorder",$("palette-grey-400")),te(C.Chip,"defaultAvatarColor",$("palette-grey-700")),te(C.Chip,"defaultIconColor",$("palette-grey-700")),te(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),te(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),te(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),te(C.LinearProgress,"primaryBg",Pt(C.primary.main,.62)),te(C.LinearProgress,"secondaryBg",Pt(C.secondary.main,.62)),te(C.LinearProgress,"errorBg",Pt(C.error.main,.62)),te(C.LinearProgress,"infoBg",Pt(C.info.main,.62)),te(C.LinearProgress,"successBg",Pt(C.success.main,.62)),te(C.LinearProgress,"warningBg",Pt(C.warning.main,.62)),te(C.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),te(C.Slider,"primaryTrack",Pt(C.primary.main,.62)),te(C.Slider,"secondaryTrack",Pt(C.secondary.main,.62)),te(C.Slider,"errorTrack",Pt(C.error.main,.62)),te(C.Slider,"infoTrack",Pt(C.info.main,.62)),te(C.Slider,"successTrack",Pt(C.success.main,.62)),te(C.Slider,"warningTrack",Pt(C.warning.main,.62));const H=sp(C.background.default,.8);te(C.SnackbarContent,"bg",H),te(C.SnackbarContent,"color",ro(()=>C.getContrastText(H))),te(C.SpeedDialAction,"fabHoverBg",sp(C.background.paper,.15)),te(C.StepConnector,"border",$("palette-grey-400")),te(C.StepContent,"border",$("palette-grey-400")),te(C.Switch,"defaultColor",$("palette-common-white")),te(C.Switch,"defaultDisabledColor",$("palette-grey-100")),te(C.Switch,"primaryDisabledColor",Pt(C.primary.main,.62)),te(C.Switch,"secondaryDisabledColor",Pt(C.secondary.main,.62)),te(C.Switch,"errorDisabledColor",Pt(C.error.main,.62)),te(C.Switch,"infoDisabledColor",Pt(C.info.main,.62)),te(C.Switch,"successDisabledColor",Pt(C.success.main,.62)),te(C.Switch,"warningDisabledColor",Pt(C.warning.main,.62)),te(C.TableCell,"border",Pt(ap(C.divider,1),.88)),te(C.Tooltip,"bg",ap(C.grey[700],.92))}if(C.mode==="dark"){te(C.Alert,"errorColor",Pt(C.error.light,.6)),te(C.Alert,"infoColor",Pt(C.info.light,.6)),te(C.Alert,"successColor",Pt(C.success.light,.6)),te(C.Alert,"warningColor",Pt(C.warning.light,.6)),te(C.Alert,"errorFilledBg",$("palette-error-dark")),te(C.Alert,"infoFilledBg",$("palette-info-dark")),te(C.Alert,"successFilledBg",$("palette-success-dark")),te(C.Alert,"warningFilledBg",$("palette-warning-dark")),te(C.Alert,"errorFilledColor",ro(()=>C.getContrastText(C.error.dark))),te(C.Alert,"infoFilledColor",ro(()=>C.getContrastText(C.info.dark))),te(C.Alert,"successFilledColor",ro(()=>C.getContrastText(C.success.dark))),te(C.Alert,"warningFilledColor",ro(()=>C.getContrastText(C.warning.dark))),te(C.Alert,"errorStandardBg",Mt(C.error.light,.9)),te(C.Alert,"infoStandardBg",Mt(C.info.light,.9)),te(C.Alert,"successStandardBg",Mt(C.success.light,.9)),te(C.Alert,"warningStandardBg",Mt(C.warning.light,.9)),te(C.Alert,"errorIconColor",$("palette-error-main")),te(C.Alert,"infoIconColor",$("palette-info-main")),te(C.Alert,"successIconColor",$("palette-success-main")),te(C.Alert,"warningIconColor",$("palette-warning-main")),te(C.AppBar,"defaultBg",$("palette-grey-900")),te(C.AppBar,"darkBg",$("palette-background-paper")),te(C.AppBar,"darkColor",$("palette-text-primary")),te(C.Avatar,"defaultBg",$("palette-grey-600")),te(C.Button,"inheritContainedBg",$("palette-grey-800")),te(C.Button,"inheritContainedHoverBg",$("palette-grey-700")),te(C.Chip,"defaultBorder",$("palette-grey-700")),te(C.Chip,"defaultAvatarColor",$("palette-grey-300")),te(C.Chip,"defaultIconColor",$("palette-grey-300")),te(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),te(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),te(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),te(C.LinearProgress,"primaryBg",Mt(C.primary.main,.5)),te(C.LinearProgress,"secondaryBg",Mt(C.secondary.main,.5)),te(C.LinearProgress,"errorBg",Mt(C.error.main,.5)),te(C.LinearProgress,"infoBg",Mt(C.info.main,.5)),te(C.LinearProgress,"successBg",Mt(C.success.main,.5)),te(C.LinearProgress,"warningBg",Mt(C.warning.main,.5)),te(C.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),te(C.Slider,"primaryTrack",Mt(C.primary.main,.5)),te(C.Slider,"secondaryTrack",Mt(C.secondary.main,.5)),te(C.Slider,"errorTrack",Mt(C.error.main,.5)),te(C.Slider,"infoTrack",Mt(C.info.main,.5)),te(C.Slider,"successTrack",Mt(C.success.main,.5)),te(C.Slider,"warningTrack",Mt(C.warning.main,.5));const H=sp(C.background.default,.98);te(C.SnackbarContent,"bg",H),te(C.SnackbarContent,"color",ro(()=>C.getContrastText(H))),te(C.SpeedDialAction,"fabHoverBg",sp(C.background.paper,.15)),te(C.StepConnector,"border",$("palette-grey-600")),te(C.StepContent,"border",$("palette-grey-600")),te(C.Switch,"defaultColor",$("palette-grey-300")),te(C.Switch,"defaultDisabledColor",$("palette-grey-600")),te(C.Switch,"primaryDisabledColor",Mt(C.primary.main,.55)),te(C.Switch,"secondaryDisabledColor",Mt(C.secondary.main,.55)),te(C.Switch,"errorDisabledColor",Mt(C.error.main,.55)),te(C.Switch,"infoDisabledColor",Mt(C.info.main,.55)),te(C.Switch,"successDisabledColor",Mt(C.success.main,.55)),te(C.Switch,"warningDisabledColor",Mt(C.warning.main,.55)),te(C.TableCell,"border",Mt(ap(C.divider,1),.68)),te(C.Tooltip,"bg",ap(C.grey[700],.92))}Io(C.background,"default"),Io(C.background,"paper"),Io(C.common,"background"),Io(C.common,"onBackground"),Io(C,"divider"),Object.keys(C).forEach(H=>{const q=C[H];H!=="tonalOffset"&&q&&typeof q=="object"&&(q.main&&te(C[H],"mainChannel",ac(sc(q.main))),q.light&&te(C[H],"lightChannel",ac(sc(q.light))),q.dark&&te(C[H],"darkChannel",ac(sc(q.dark))),q.contrastText&&te(C[H],"contrastTextChannel",ac(sc(q.contrastText))),H==="text"&&(Io(C[H],"primary"),Io(C[H],"secondary")),H==="action"&&(q.active&&Io(C[H],"active"),q.selected&&Io(C[H],"selected")))})}),R=e.reduce((D,C)=>Dr(D,C),R);const M={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:CR(R)},{vars:T,generateThemeVars:P,generateStyleSheets:N}=$_(R,M);return R.vars=T,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([D,C])=>{R[D]=C}),R.generateThemeVars=P,R.generateStyleSheets=N,R.generateSpacing=function(){return Z8(f.spacing,$v(this))},R.getColorSchemeSelector=L_(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=l,R.unstable_sxConfig={...Wc,...f?.unstable_sxConfig},R.unstable_sx=function(C){return Ti({sx:C,theme:this})},R.toRuntimeSource=CE,R}function $w(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:qv({...r===!0?{}:r.palette,mode:e})})}function Rc(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...l}=t,c=a||"light",d=o?.[c],f={...o,...r?{[c]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return L1(t,...e);let g=r;"palette"in t||f[c]&&(f[c]!==!0?g=f[c].palette:c==="dark"&&(g={mode:"dark"}));const u=L1({...t,palette:g},...e);return u.defaultColorScheme=c,u.colorSchemes=f,u.palette.mode==="light"&&(u.colorSchemes.light={...f.light!==!0&&f.light,palette:u.palette},$w(u,"dark",f.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:u.palette},$w(u,"light",f.light)),u}return!r&&!("light"in f)&&c==="light"&&(f.light=!0),_R({...l,colorSchemes:f,defaultColorScheme:c,...typeof n!="boolean"&&n},...e)}const Wv=Rc();function jo(){const t=Uc(Wv);return t[Un]||t}function OE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const yr=t=>OE(t)&&t!=="classes",ae=iE({themeId:Un,defaultTheme:Wv,rootShouldForwardProp:yr});function RR({theme:t,...e}){const r=Un in t?t[Un]:void 0;return L.jsx(bE,{...e,themeId:r?Un:void 0,theme:r||t})}const lp={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:MR}=I_({themeId:Un,theme:()=>Rc({cssVariables:!0}),colorSchemeStorageKey:lp.colorSchemeStorageKey,modeStorageKey:lp.modeStorageKey,defaultColorScheme:{light:lp.defaultLightColorScheme,dark:lp.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:EE(t.palette,t.typography)};return e.unstable_sx=function(n){return Ti({sx:n,theme:this})},e}}),PR=MR;function IR({theme:t,...e}){const r=_.useMemo(()=>{if(typeof t=="function")return t;const n=Un in t?t[Un]:t;return"colorSchemes"in n?null:"vars"in n?t:{...t,vars:null}},[t]);return r?L.jsx(RR,{theme:r,...e}):L.jsx(PR,{theme:t,...e})}function AR(t){return L.jsx(eE,{...t,defaultTheme:Wv,themeId:Un})}function DR(t){return function(r){return L.jsx(AR,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function NR(){return Bv}const Qe=C_;function Ke(t){return S_(t)}function $R(t){return qe("MuiSvgIcon",t)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const LR=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${me(e)}`,`fontSize${me(r)}`]};return Ue(o,$R,n)},BR=ae("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${me(r.color)}`],e[`fontSize${me(r.fontSize)}`]]}})(Qe(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),F1=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiSvgIcon"}),{children:o,className:a,color:l="inherit",component:c="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:g=!1,titleAccess:u,viewBox:m="0 0 24 24",...y}=n,w=_.isValidElement(o)&&o.type==="svg",x={...n,color:l,component:c,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:g,viewBox:m,hasSvgAsChild:w},E={};g||(E.viewBox=m);const k=LR(x);return L.jsxs(BR,{as:c,className:ye(k.root,a),focusable:"false",color:f,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:r,...E,...y,...w&&o.props,ownerState:x,children:[w?o.props.children:o,u?L.jsx("title",{children:u}):null]})});F1.muiName="SvgIcon";function He(t,e){function r(n,o){return L.jsx(F1,{"data-testid":`${e}Icon`,ref:o,...n,children:t})}return r.muiName=F1.muiName,_.memo(_.forwardRef(r))}function _E(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const a=typeof e=="function"?e(o):e,l=typeof t=="function"?t({...o,...a}):t,c=ye(o?.className,a?.className,l?.className);return{...a,...l,...!!c&&{className:c},...a?.style&&l?.style&&{style:{...a.style,...l.style}},...a?.sx&&l?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=e,n=ye(r?.className,t?.className);return{...e,...t,...!!n&&{className:n},...r?.style&&t?.style&&{style:{...r.style,...t.style}},...r?.sx&&t?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function RE(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function z1(t,e){return z1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},z1(t,e)}function ME(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,z1(t,e)}var PE=I8();const cp=Ri(PE),Lw={disabled:!1},Xp=v.createContext(null);var FR=function(e){return e.scrollTop},lc="unmounted",na="exited",oa="entering",hs="entered",j1="exiting",bo=(function(t){ME(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var l=o,c=l&&!l.isMounting?n.enter:n.appear,d;return a.appearStatus=null,n.in?c?(d=na,a.appearStatus=oa):d=hs:n.unmountOnExit||n.mountOnEnter?d=lc:d=na,a.state={status:d},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var l=o.in;return l&&a.status===lc?{status:na}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==oa&&l!==hs&&(a=oa):(l===oa||l===hs)&&(a=j1)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,l,c;return a=l=c=o,o!=null&&typeof o!="number"&&(a=o.exit,l=o.enter,c=o.appear!==void 0?o.appear:l),{exit:a,enter:l,appear:c}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===oa){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:cp.findDOMNode(this);l&&FR(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===na&&this.setState({status:lc})},r.performEnter=function(o){var a=this,l=this.props.enter,c=this.context?this.context.isMounting:o,d=this.props.nodeRef?[c]:[cp.findDOMNode(this),c],f=d[0],g=d[1],u=this.getTimeouts(),m=c?u.appear:u.enter;if(!o&&!l||Lw.disabled){this.safeSetState({status:hs},function(){a.props.onEntered(f)});return}this.props.onEnter(f,g),this.safeSetState({status:oa},function(){a.props.onEntering(f,g),a.onTransitionEnd(m,function(){a.safeSetState({status:hs},function(){a.props.onEntered(f,g)})})})},r.performExit=function(){var o=this,a=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:cp.findDOMNode(this);if(!a||Lw.disabled){this.safeSetState({status:na},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:j1},function(){o.props.onExiting(c),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:na},function(){o.props.onExited(c)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,a.nextCallback=null,o(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:cp.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=d[0],g=d[1];this.props.addEndListener(f,g)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===lc)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=RE(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Xp.Provider,{value:null},typeof l=="function"?l(o,c):v.cloneElement(v.Children.only(l),c))},e})(v.Component);bo.contextType=Xp;bo.propTypes={};function os(){}bo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:os,onEntering:os,onEntered:os,onExit:os,onExiting:os,onExited:os};bo.UNMOUNTED=lc;bo.EXITED=na;bo.ENTERING=oa;bo.ENTERED=hs;bo.EXITING=j1;function zR(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uv(t,e){var r=function(a){return e&&_.isValidElement(a)?e(a):a},n=Object.create(null);return t&&_.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function jR(t,e){t=t||{},e=e||{};function r(g){return g in e?e[g]:t[g]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var l,c={};for(var d in e){if(n[d])for(l=0;lt.scrollTop;function Vp(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function XR(t){return qe("MuiPaper",t)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const VR=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return Ue(a,XR,o)},GR=ae("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Qe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),rl=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiPaper"}),o=jo(),{className:a,component:l="div",elevation:c=1,square:d=!1,variant:f="elevation",...g}=n,u={...n,component:l,elevation:c,square:d,variant:f},m=VR(u);return L.jsx(GR,{as:l,ownerState:u,className:ye(m.root,a),ref:r,...g,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${It("#fff",B1(c))}, ${It("#fff",B1(c))})`}},...g.style}})});function ct(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=e,{component:f,slots:g={[t]:void 0},slotProps:u={[t]:void 0},...m}=a,y=g[t]||n,w=mE(u[t],o),{props:{component:x,...E},internalRef:k}=hE({className:r,...d,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:w}),I=vr(k,w?.ref,e.ref),O=t==="root"?x||f:x,R=dE(y,{...t==="root"&&!f&&!g[t]&&l,...t!=="root"&&!g[t]&&l,...E,...O&&!c&&{as:O},...O&&c&&{component:O},ref:I},o);return[y,R]}class Gp{static create(){return new Gp}static use(){const e=uE(Gp.create).current,[r,n]=_.useState(!1);return e.shouldMount=r,e.setShouldMount=n,_.useEffect(e.mountEffect,[r]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=YR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function KR(){return Gp.use()}function YR(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function JR(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:l,in:c,onExited:d,timeout:f}=t,[g,u]=_.useState(!1),m=ye(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:l,height:l,top:-(l/2)+a,left:-(l/2)+o},w=ye(r.child,g&&r.childLeaving,n&&r.childPulsate);return!c&&!g&&u(!0),_.useEffect(()=>{if(!c&&d!=null){const x=setTimeout(d,f);return()=>{clearTimeout(x)}}},[d,c,f]),L.jsx("span",{className:m,style:y,children:L.jsx("span",{className:w})})}const Tn=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),H1=550,QR=80,ZR=Mi` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,eM=Mi` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,tM=Mi` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,rM=ae("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),nM=ae(JR,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${Tn.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${ZR}; + animation-duration: ${H1}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${Tn.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${Tn.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${Tn.childLeaving} { + opacity: 0; + animation-name: ${eM}; + animation-duration: ${H1}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${Tn.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${tM}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,oM=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:l,...c}=n,[d,f]=_.useState([]),g=_.useRef(0),u=_.useRef(null);_.useEffect(()=>{u.current&&(u.current(),u.current=null)},[d]);const m=_.useRef(!1),y=As(),w=_.useRef(null),x=_.useRef(null),E=_.useCallback(R=>{const{pulsate:M,rippleX:T,rippleY:P,rippleSize:N,cb:D}=R;f(C=>[...C,L.jsx(nM,{classes:{ripple:ye(a.ripple,Tn.ripple),rippleVisible:ye(a.rippleVisible,Tn.rippleVisible),ripplePulsate:ye(a.ripplePulsate,Tn.ripplePulsate),child:ye(a.child,Tn.child),childLeaving:ye(a.childLeaving,Tn.childLeaving),childPulsate:ye(a.childPulsate,Tn.childPulsate)},timeout:H1,pulsate:M,rippleX:T,rippleY:P,rippleSize:N},g.current)]),g.current+=1,u.current=D},[a]),k=_.useCallback((R={},M={},T=()=>{})=>{const{pulsate:P=!1,center:N=o||M.pulsate,fakeElement:D=!1}=M;if(R?.type==="mousedown"&&m.current){m.current=!1;return}R?.type==="touchstart"&&(m.current=!0);const C=D?null:x.current,$=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,q,U;if(N||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)H=Math.round($.width/2),q=Math.round($.height/2);else{const{clientX:W,clientY:K}=R.touches&&R.touches.length>0?R.touches[0]:R;H=Math.round(W-$.left),q=Math.round(K-$.top)}if(N)U=Math.sqrt((2*$.width**2+$.height**2)/3),U%2===0&&(U+=1);else{const W=Math.max(Math.abs((C?C.clientWidth:0)-H),H)*2+2,K=Math.max(Math.abs((C?C.clientHeight:0)-q),q)*2+2;U=Math.sqrt(W**2+K**2)}R?.touches?w.current===null&&(w.current=()=>{E({pulsate:P,rippleX:H,rippleY:q,rippleSize:U,cb:T})},y.start(QR,()=>{w.current&&(w.current(),w.current=null)})):E({pulsate:P,rippleX:H,rippleY:q,rippleSize:U,cb:T})},[o,E,y]),I=_.useCallback(()=>{k({},{pulsate:!0})},[k]),O=_.useCallback((R,M)=>{if(y.clear(),R?.type==="touchend"&&w.current){w.current(),w.current=null,y.start(0,()=>{O(R,M)});return}w.current=null,f(T=>T.length>0?T.slice(1):T),u.current=M},[y]);return _.useImperativeHandle(r,()=>({pulsate:I,start:k,stop:O}),[I,k,O]),L.jsx(rM,{className:ye(Tn.root,a.root,l),ref:x,...c,children:L.jsx(Xv,{component:null,exit:!0,children:d})})});function iM(t){return qe("MuiButtonBase",t)}const aM=We("MuiButtonBase",["root","disabled","focusVisible"]),sM=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,l=Ue({root:["root",e&&"disabled",r&&"focusVisible"]},iM,o);return r&&n&&(l.root+=` ${n}`),l},lM=ae("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Pi=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:l,className:c,component:d="button",disabled:f=!1,disableRipple:g=!1,disableTouchRipple:u=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:w="a",onBlur:x,onClick:E,onContextMenu:k,onDragLeave:I,onFocus:O,onFocusVisible:R,onKeyDown:M,onKeyUp:T,onMouseDown:P,onMouseLeave:N,onMouseUp:D,onTouchEnd:C,onTouchMove:$,onTouchStart:H,tabIndex:q=0,TouchRippleProps:U,touchRippleRef:W,type:K,...re}=n,Z=_.useRef(null),V=KR(),ee=vr(V.ref,W),[F,J]=_.useState(!1);f&&F&&J(!1),_.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),Z.current.focus()}}),[]);const pe=V.shouldMount&&!g&&!f;_.useEffect(()=>{F&&m&&!g&&V.pulsate()},[g,m,F,V]);const de=Ao(V,"start",P,u),ie=Ao(V,"stop",k,u),fe=Ao(V,"stop",I,u),Se=Ao(V,"stop",D,u),Ce=Ao(V,"stop",ve=>{F&&ve.preventDefault(),N&&N(ve)},u),Oe=Ao(V,"start",H,u),ke=Ao(V,"stop",C,u),Le=Ao(V,"stop",$,u),Ie=Ao(V,"stop",ve=>{Ws(ve.target)||J(!1),x&&x(ve)},!1),nt=On(ve=>{Z.current||(Z.current=ve.currentTarget),Ws(ve.target)&&(J(!0),R&&R(ve)),O&&O(ve)}),Me=()=>{const ve=Z.current;return d&&d!=="button"&&!(ve.tagName==="A"&&ve.href)},Te=On(ve=>{m&&!ve.repeat&&F&&ve.key===" "&&V.stop(ve,()=>{V.start(ve)}),ve.target===ve.currentTarget&&Me()&&ve.key===" "&&ve.preventDefault(),M&&M(ve),ve.target===ve.currentTarget&&Me()&&ve.key==="Enter"&&!f&&(ve.preventDefault(),E&&E(ve))}),ht=On(ve=>{m&&ve.key===" "&&F&&!ve.defaultPrevented&&V.stop(ve,()=>{V.pulsate(ve)}),T&&T(ve),E&&ve.target===ve.currentTarget&&Me()&&ve.key===" "&&!ve.defaultPrevented&&E(ve)});let be=d;be==="button"&&(re.href||re.to)&&(be=w);const Ae={};be==="button"?(Ae.type=K===void 0?"button":K,Ae.disabled=f):(!re.href&&!re.to&&(Ae.role="button"),f&&(Ae["aria-disabled"]=f));const it=vr(r,Z),Ze={...n,centerRipple:a,component:d,disabled:f,disableRipple:g,disableTouchRipple:u,focusRipple:m,tabIndex:q,focusVisible:F},Xe=sM(Ze);return L.jsxs(lM,{as:be,className:ye(Xe.root,c),ownerState:Ze,onBlur:Ie,onClick:E,onContextMenu:ie,onFocus:nt,onKeyDown:Te,onKeyUp:ht,onMouseDown:de,onMouseLeave:Ce,onMouseUp:Se,onDragLeave:fe,onTouchEnd:ke,onTouchMove:Le,onTouchStart:Oe,ref:it,tabIndex:f?-1:q,type:K,...Ae,...re,children:[l,pe?L.jsx(oM,{ref:ee,center:a,...U}):null]})});function Ao(t,e,r,n=!1){return On(o=>(r&&r(o),n||t[e](o),!0))}function cM(t){return typeof t.main=="string"}function uM(t,e=[]){if(!cM(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function rr(t=[]){return([,e])=>e&&uM(e,t)}function pM(t){return qe("MuiCircularProgress",t)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const hi=44,q1=Mi` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,W1=Mi` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: -126px; + } +`,dM=typeof q1!="string"?Qs` + animation: ${q1} 1.4s linear infinite; + `:null,fM=typeof W1!="string"?Qs` + animation: ${W1} 1.4s ease-in-out infinite; + `:null,hM=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,a={root:["root",r,`color${me(n)}`],svg:["svg"],circle:["circle",`circle${me(r)}`,o&&"circleDisableShrink"]};return Ue(a,pM,e)},mM=ae("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:dM||{animation:`${q1} 1.4s linear infinite`}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),gM=ae("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),vM=ae("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${me(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Qe(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:fM||{animation:`${W1} 1.4s ease-in-out infinite`}}]}))),Vv=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:l=!1,size:c=40,style:d,thickness:f=3.6,value:g=0,variant:u="indeterminate",...m}=n,y={...n,color:a,disableShrink:l,size:c,thickness:f,value:g,variant:u},w=hM(y),x={},E={},k={};if(u==="determinate"){const I=2*Math.PI*((hi-f)/2);x.strokeDasharray=I.toFixed(3),k["aria-valuenow"]=Math.round(g),x.strokeDashoffset=`${((100-g)/100*I).toFixed(3)}px`,E.transform="rotate(-90deg)"}return L.jsx(mM,{className:ye(w.root,o),style:{width:c,height:c,...E,...d},ownerState:y,ref:r,role:"progressbar",...k,...m,children:L.jsx(gM,{className:w.svg,ownerState:y,viewBox:`${hi/2} ${hi/2} ${hi} ${hi}`,children:L.jsx(vM,{className:w.circle,style:x,ownerState:y,cx:hi,cy:hi,r:(hi-f)/2,fill:"none",strokeWidth:f})})})});function yM(t){return qe("MuiIconButton",t)}const Bw=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),bM=t=>{const{classes:e,disabled:r,color:n,edge:o,size:a,loading:l}=t,c={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${me(n)}`,o&&`edge${me(o)}`,`size${me(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ue(c,yM,e)},xM=ae(Pi,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${me(r.color)}`],r.edge&&e[`edge${me(r.edge)}`],e[`size${me(r.size)}`]]}})(Qe(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Qe(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Bw.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Bw.loading}`]:{color:"transparent"}}))),wM=ae("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),cr=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:l,color:c="default",disabled:d=!1,disableFocusRipple:f=!1,size:g="medium",id:u,loading:m=null,loadingIndicator:y,...w}=n,x=va(u),E=y??L.jsx(Vv,{"aria-labelledby":x,color:"inherit",size:16}),k={...n,edge:o,color:c,disabled:d,disableFocusRipple:f,loading:m,loadingIndicator:E,size:g},I=bM(k);return L.jsxs(xM,{id:m?x:u,className:ye(I.root,l),centerRipple:!0,focusRipple:!f,disabled:d||m,ref:r,...w,ownerState:k,children:[typeof m=="boolean"&&L.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:L.jsx(wM,{className:I.loadingIndicator,ownerState:k,children:m&&E})}),a]})});function SM(t){return qe("MuiTypography",t)}const Fw=We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),EM={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},CM=NR(),TM=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:l}=t,c={root:["root",a,t.align!=="inherit"&&`align${me(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Ue(c,SM,l)},kM=ae("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${me(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Qe(({theme:t})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([e,r])=>e!=="inherit"&&r&&typeof r=="object").map(([e,r])=>({props:{variant:e},style:r})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette?.text||{}).filter(([,e])=>typeof e=="string").map(([e])=>({props:{color:`text${me(e)}`},style:{color:(t.vars||t).palette.text[e]}})),{props:({ownerState:e})=>e.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),zw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},qn=_.forwardRef(function(e,r){const{color:n,...o}=Ke({props:e,name:"MuiTypography"}),a=!EM[n],l=CM({...o,...a&&{color:n}}),{align:c="inherit",className:d,component:f,gutterBottom:g=!1,noWrap:u=!1,paragraph:m=!1,variant:y="body1",variantMapping:w=zw,...x}=l,E={...l,align:c,color:n,className:d,component:f,gutterBottom:g,noWrap:u,paragraph:m,variant:y,variantMapping:w},k=f||(m?"p":w[y]||zw[y])||"span",I=TM(E);return L.jsx(kM,{as:k,ref:r,className:ye(I.root,d),...x,ownerState:E,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...x.style}})});function OM(t){return qe("MuiAppBar",t)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _M=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${me(e)}`,`position${me(r)}`]};return Ue(o,OM,n)},jw=(t,e)=>t?`${t?.replace(")","")}, ${e})`:e,RM=ae(rl,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${me(r.position)}`],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(rr(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].contrastText}})),{props:e=>e.enableColorOnDark===!0&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>e.enableColorOnDark===!1&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?jw(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?jw(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),AE=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:l=!1,position:c="fixed",...d}=n,f={...n,color:a,position:c,enableColorOnDark:l},g=_M(f);return L.jsx(RM,{square:!0,component:"header",ownerState:f,elevation:4,className:ye(g.root,o,c==="fixed"&&"mui-fixed"),ref:r,...d})});var Yr="top",Rn="bottom",Mn="right",Jr="left",Gv="auto",Xc=[Yr,Rn,Mn,Jr],Us="start",Mc="end",MM="clippingParents",DE="viewport",ql="popper",PM="reference",Hw=Xc.reduce(function(t,e){return t.concat([e+"-"+Us,e+"-"+Mc])},[]),NE=[].concat(Xc,[Gv]).reduce(function(t,e){return t.concat([e,e+"-"+Us,e+"-"+Mc])},[]),IM="beforeRead",AM="read",DM="afterRead",NM="beforeMain",$M="main",LM="afterMain",BM="beforeWrite",FM="write",zM="afterWrite",jM=[IM,AM,DM,NM,$M,LM,BM,FM,zM];function vo(t){return t?(t.nodeName||"").toLowerCase():null}function fn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function da(t){var e=fn(t).Element;return t instanceof e||t instanceof Element}function _n(t){var e=fn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Kv(t){if(typeof ShadowRoot>"u")return!1;var e=fn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function HM(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},a=e.elements[r];!_n(a)||!vo(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function qM(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],a=e.attributes[n]||{},l=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),c=l.reduce(function(d,f){return d[f]="",d},{});!_n(o)||!vo(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(d){o.removeAttribute(d)}))})}}const WM={name:"applyStyles",enabled:!0,phase:"write",fn:HM,effect:qM,requires:["computeStyles"]};function ho(t){return t.split("-")[0]}var ca=Math.max,Kp=Math.min,Xs=Math.round;function U1(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $E(){return!/^((?!chrome|android).)*safari/i.test(U1())}function Vs(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&_n(t)&&(o=t.offsetWidth>0&&Xs(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Xs(n.height)/t.offsetHeight||1);var l=da(t)?fn(t):window,c=l.visualViewport,d=!$E()&&r,f=(n.left+(d&&c?c.offsetLeft:0))/o,g=(n.top+(d&&c?c.offsetTop:0))/a,u=n.width/o,m=n.height/a;return{width:u,height:m,top:g,right:f+u,bottom:g+m,left:f,x:f,y:g}}function Yv(t){var e=Vs(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function LE(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Kv(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function zo(t){return fn(t).getComputedStyle(t)}function UM(t){return["table","td","th"].indexOf(vo(t))>=0}function Ii(t){return((da(t)?t.ownerDocument:t.document)||window.document).documentElement}function Rd(t){return vo(t)==="html"?t:t.assignedSlot||t.parentNode||(Kv(t)?t.host:null)||Ii(t)}function qw(t){return!_n(t)||zo(t).position==="fixed"?null:t.offsetParent}function XM(t){var e=/firefox/i.test(U1()),r=/Trident/i.test(U1());if(r&&_n(t)){var n=zo(t);if(n.position==="fixed")return null}var o=Rd(t);for(Kv(o)&&(o=o.host);_n(o)&&["html","body"].indexOf(vo(o))<0;){var a=zo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Vc(t){for(var e=fn(t),r=qw(t);r&&UM(r)&&zo(r).position==="static";)r=qw(r);return r&&(vo(r)==="html"||vo(r)==="body"&&zo(r).position==="static")?e:r||XM(t)||e}function Jv(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function yc(t,e,r){return ca(t,Kp(e,r))}function VM(t,e,r){var n=yc(t,e,r);return n>r?r:n}function BE(){return{top:0,right:0,bottom:0,left:0}}function FE(t){return Object.assign({},BE(),t)}function zE(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var GM=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,FE(typeof e!="number"?e:zE(e,Xc))};function KM(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=ho(r.placement),d=Jv(c),f=[Jr,Mn].indexOf(c)>=0,g=f?"height":"width";if(!(!a||!l)){var u=GM(o.padding,r),m=Yv(a),y=d==="y"?Yr:Jr,w=d==="y"?Rn:Mn,x=r.rects.reference[g]+r.rects.reference[d]-l[d]-r.rects.popper[g],E=l[d]-r.rects.reference[d],k=Vc(a),I=k?d==="y"?k.clientHeight||0:k.clientWidth||0:0,O=x/2-E/2,R=u[y],M=I-m[g]-u[w],T=I/2-m[g]/2+O,P=yc(R,T,M),N=d;r.modifiersData[n]=(e={},e[N]=P,e.centerOffset=P-T,e)}}function YM(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||LE(e.elements.popper,o)&&(e.elements.arrow=o))}const JM={name:"arrow",enabled:!0,phase:"main",fn:KM,effect:YM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gs(t){return t.split("-")[1]}var QM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZM(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Xs(r*o)/o||0,y:Xs(n*o)/o||0}}function Ww(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,l=t.offsets,c=t.position,d=t.gpuAcceleration,f=t.adaptive,g=t.roundOffsets,u=t.isFixed,m=l.x,y=m===void 0?0:m,w=l.y,x=w===void 0?0:w,E=typeof g=="function"?g({x:y,y:x}):{x:y,y:x};y=E.x,x=E.y;var k=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),O=Jr,R=Yr,M=window;if(f){var T=Vc(r),P="clientHeight",N="clientWidth";if(T===fn(r)&&(T=Ii(r),zo(T).position!=="static"&&c==="absolute"&&(P="scrollHeight",N="scrollWidth")),T=T,o===Yr||(o===Jr||o===Mn)&&a===Mc){R=Rn;var D=u&&T===M&&M.visualViewport?M.visualViewport.height:T[P];x-=D-n.height,x*=d?1:-1}if(o===Jr||(o===Yr||o===Rn)&&a===Mc){O=Mn;var C=u&&T===M&&M.visualViewport?M.visualViewport.width:T[N];y-=C-n.width,y*=d?1:-1}}var $=Object.assign({position:c},f&&QM),H=g===!0?ZM({x:y,y:x},fn(r)):{x:y,y:x};if(y=H.x,x=H.y,d){var q;return Object.assign({},$,(q={},q[R]=I?"0":"",q[O]=k?"0":"",q.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",q))}return Object.assign({},$,(e={},e[R]=I?x+"px":"",e[O]=k?y+"px":"",e.transform="",e))}function eP(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,d=c===void 0?!0:c,f={placement:ho(e.placement),variation:Gs(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ww(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ww(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const tP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eP,data:{}};var up={passive:!0};function rP(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,d=fn(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(g){g.addEventListener("scroll",r.update,up)}),c&&d.addEventListener("resize",r.update,up),function(){a&&f.forEach(function(g){g.removeEventListener("scroll",r.update,up)}),c&&d.removeEventListener("resize",r.update,up)}}const nP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rP,data:{}};var oP={left:"right",right:"left",bottom:"top",top:"bottom"};function Dp(t){return t.replace(/left|right|bottom|top/g,function(e){return oP[e]})}var iP={start:"end",end:"start"};function Uw(t){return t.replace(/start|end/g,function(e){return iP[e]})}function Qv(t){var e=fn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Zv(t){return Vs(Ii(t)).left+Qv(t).scrollLeft}function aP(t,e){var r=fn(t),n=Ii(t),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,d=0;if(o){a=o.width,l=o.height;var f=$E();(f||!f&&e==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:l,x:c+Zv(t),y:d}}function sP(t){var e,r=Ii(t),n=Qv(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=ca(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ca(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Zv(t),d=-n.scrollTop;return zo(o||r).direction==="rtl"&&(c+=ca(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:c,y:d}}function ey(t){var e=zo(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function jE(t){return["html","body","#document"].indexOf(vo(t))>=0?t.ownerDocument.body:_n(t)&&ey(t)?t:jE(Rd(t))}function bc(t,e){var r;e===void 0&&(e=[]);var n=jE(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),a=fn(n),l=o?[a].concat(a.visualViewport||[],ey(n)?n:[]):n,c=e.concat(l);return o?c:c.concat(bc(Rd(l)))}function X1(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lP(t,e){var r=Vs(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Xw(t,e,r){return e===DE?X1(aP(t,r)):da(e)?lP(e,r):X1(sP(Ii(t)))}function cP(t){var e=bc(Rd(t)),r=["absolute","fixed"].indexOf(zo(t).position)>=0,n=r&&_n(t)?Vc(t):t;return da(n)?e.filter(function(o){return da(o)&&LE(o,n)&&vo(o)!=="body"}):[]}function uP(t,e,r,n){var o=e==="clippingParents"?cP(t):[].concat(e),a=[].concat(o,[r]),l=a[0],c=a.reduce(function(d,f){var g=Xw(t,f,n);return d.top=ca(g.top,d.top),d.right=Kp(g.right,d.right),d.bottom=Kp(g.bottom,d.bottom),d.left=ca(g.left,d.left),d},Xw(t,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function HE(t){var e=t.reference,r=t.element,n=t.placement,o=n?ho(n):null,a=n?Gs(n):null,l=e.x+e.width/2-r.width/2,c=e.y+e.height/2-r.height/2,d;switch(o){case Yr:d={x:l,y:e.y-r.height};break;case Rn:d={x:l,y:e.y+e.height};break;case Mn:d={x:e.x+e.width,y:c};break;case Jr:d={x:e.x-r.width,y:c};break;default:d={x:e.x,y:e.y}}var f=o?Jv(o):null;if(f!=null){var g=f==="y"?"height":"width";switch(a){case Us:d[f]=d[f]-(e[g]/2-r[g]/2);break;case Mc:d[f]=d[f]+(e[g]/2-r[g]/2);break}}return d}function Pc(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,a=r.strategy,l=a===void 0?t.strategy:a,c=r.boundary,d=c===void 0?MM:c,f=r.rootBoundary,g=f===void 0?DE:f,u=r.elementContext,m=u===void 0?ql:u,y=r.altBoundary,w=y===void 0?!1:y,x=r.padding,E=x===void 0?0:x,k=FE(typeof E!="number"?E:zE(E,Xc)),I=m===ql?PM:ql,O=t.rects.popper,R=t.elements[w?I:m],M=uP(da(R)?R:R.contextElement||Ii(t.elements.popper),d,g,l),T=Vs(t.elements.reference),P=HE({reference:T,element:O,placement:o}),N=X1(Object.assign({},O,P)),D=m===ql?N:T,C={top:M.top-D.top+k.top,bottom:D.bottom-M.bottom+k.bottom,left:M.left-D.left+k.left,right:D.right-M.right+k.right},$=t.modifiersData.offset;if(m===ql&&$){var H=$[o];Object.keys(C).forEach(function(q){var U=[Mn,Rn].indexOf(q)>=0?1:-1,W=[Yr,Rn].indexOf(q)>=0?"y":"x";C[q]+=H[W]*U})}return C}function pP(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,f=d===void 0?NE:d,g=Gs(n),u=g?c?Hw:Hw.filter(function(w){return Gs(w)===g}):Xc,m=u.filter(function(w){return f.indexOf(w)>=0});m.length===0&&(m=u);var y=m.reduce(function(w,x){return w[x]=Pc(t,{placement:x,boundary:o,rootBoundary:a,padding:l})[ho(x)],w},{});return Object.keys(y).sort(function(w,x){return y[w]-y[x]})}function dP(t){if(ho(t)===Gv)return[];var e=Dp(t);return[Uw(t),e,Uw(e)]}function fP(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,f=r.padding,g=r.boundary,u=r.rootBoundary,m=r.altBoundary,y=r.flipVariations,w=y===void 0?!0:y,x=r.allowedAutoPlacements,E=e.options.placement,k=ho(E),I=k===E,O=d||(I||!w?[Dp(E)]:dP(E)),R=[E].concat(O).reduce(function(de,ie){return de.concat(ho(ie)===Gv?pP(e,{placement:ie,boundary:g,rootBoundary:u,padding:f,flipVariations:w,allowedAutoPlacements:x}):ie)},[]),M=e.rects.reference,T=e.rects.popper,P=new Map,N=!0,D=R[0],C=0;C=0,W=U?"width":"height",K=Pc(e,{placement:$,boundary:g,rootBoundary:u,altBoundary:m,padding:f}),re=U?q?Mn:Jr:q?Rn:Yr;M[W]>T[W]&&(re=Dp(re));var Z=Dp(re),V=[];if(a&&V.push(K[H]<=0),c&&V.push(K[re]<=0,K[Z]<=0),V.every(function(de){return de})){D=$,N=!1;break}P.set($,V)}if(N)for(var ee=w?3:1,F=function(ie){var fe=R.find(function(Se){var Ce=P.get(Se);if(Ce)return Ce.slice(0,ie).every(function(Oe){return Oe})});if(fe)return D=fe,"break"},J=ee;J>0;J--){var pe=F(J);if(pe==="break")break}e.placement!==D&&(e.modifiersData[n]._skip=!0,e.placement=D,e.reset=!0)}}const hP={name:"flip",enabled:!0,phase:"main",fn:fP,requiresIfExists:["offset"],data:{_skip:!1}};function Vw(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Gw(t){return[Yr,Mn,Rn,Jr].some(function(e){return t[e]>=0})}function mP(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,l=Pc(e,{elementContext:"reference"}),c=Pc(e,{altBoundary:!0}),d=Vw(l,n),f=Vw(c,o,a),g=Gw(d),u=Gw(f);e.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:g,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":u})}const gP={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mP};function vP(t,e,r){var n=ho(t),o=[Jr,Yr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*o,[Jr,Mn].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function yP(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=o===void 0?[0,0]:o,l=NE.reduce(function(g,u){return g[u]=vP(u,e.rects,a),g},{}),c=l[e.placement],d=c.x,f=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=l}const bP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yP};function xP(t){var e=t.state,r=t.name;e.modifiersData[r]=HE({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const wP={name:"popperOffsets",enabled:!0,phase:"read",fn:xP,data:{}};function SP(t){return t==="x"?"y":"x"}function EP(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,f=r.rootBoundary,g=r.altBoundary,u=r.padding,m=r.tether,y=m===void 0?!0:m,w=r.tetherOffset,x=w===void 0?0:w,E=Pc(e,{boundary:d,rootBoundary:f,padding:u,altBoundary:g}),k=ho(e.placement),I=Gs(e.placement),O=!I,R=Jv(k),M=SP(R),T=e.modifiersData.popperOffsets,P=e.rects.reference,N=e.rects.popper,D=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,C=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(T){if(a){var q,U=R==="y"?Yr:Jr,W=R==="y"?Rn:Mn,K=R==="y"?"height":"width",re=T[R],Z=re+E[U],V=re-E[W],ee=y?-N[K]/2:0,F=I===Us?P[K]:N[K],J=I===Us?-N[K]:-P[K],pe=e.elements.arrow,de=y&&pe?Yv(pe):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:BE(),fe=ie[U],Se=ie[W],Ce=yc(0,P[K],de[K]),Oe=O?P[K]/2-ee-Ce-fe-C.mainAxis:F-Ce-fe-C.mainAxis,ke=O?-P[K]/2+ee+Ce+Se+C.mainAxis:J+Ce+Se+C.mainAxis,Le=e.elements.arrow&&Vc(e.elements.arrow),Ie=Le?R==="y"?Le.clientTop||0:Le.clientLeft||0:0,nt=(q=$?.[R])!=null?q:0,Me=re+Oe-nt-Ie,Te=re+ke-nt,ht=yc(y?Kp(Z,Me):Z,re,y?ca(V,Te):V);T[R]=ht,H[R]=ht-re}if(c){var be,Ae=R==="x"?Yr:Jr,it=R==="x"?Rn:Mn,Ze=T[M],Xe=M==="y"?"height":"width",ve=Ze+E[Ae],at=Ze-E[it],Ye=[Yr,Jr].indexOf(k)!==-1,ne=(be=$?.[M])!=null?be:0,ge=Ye?ve:Ze-P[Xe]-N[Xe]-ne+C.altAxis,je=Ye?Ze+P[Xe]+N[Xe]-ne-C.altAxis:at,Be=y&&Ye?VM(ge,Ze,je):yc(y?ge:ve,Ze,y?je:at);T[M]=Be,H[M]=Be-Ze}e.modifiersData[n]=H}}const CP={name:"preventOverflow",enabled:!0,phase:"main",fn:EP,requiresIfExists:["offset"]};function TP(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function kP(t){return t===fn(t)||!_n(t)?Qv(t):TP(t)}function OP(t){var e=t.getBoundingClientRect(),r=Xs(e.width)/t.offsetWidth||1,n=Xs(e.height)/t.offsetHeight||1;return r!==1||n!==1}function _P(t,e,r){r===void 0&&(r=!1);var n=_n(e),o=_n(e)&&OP(e),a=Ii(e),l=Vs(t,o,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((vo(e)!=="body"||ey(a))&&(c=kP(e)),_n(e)?(d=Vs(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=Zv(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function RP(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function o(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=e.get(c);d&&o(d)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||o(a)}),n}function MP(t){var e=RP(t);return jM.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function PP(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function IP(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Kw={placement:"bottom",modifiers:[],strategy:"absolute"};function Yw(){for(var t=arguments.length,e=new Array(t),r=0;r{a||c($P(o)||document.body)},[o,a]),Zr(()=>{if(l&&!a)return xw(r,l),()=>{xw(r,null)}},[r,l,a]),a){if(_.isValidElement(n)){const f={ref:d};return _.cloneElement(n,f)}return n}return l&&PE.createPortal(n,l)});function LP(t){return qe("MuiPopper",t)}We("MuiPopper",["root"]);function BP(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function V1(t){return typeof t=="function"?t():t}function FP(t){return t.nodeType!==void 0}const zP=t=>{const{classes:e}=t;return Ue({root:["root"]},LP,e)},jP={},HP=_.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:a,disablePortal:l,modifiers:c,open:d,placement:f,popperOptions:g,popperRef:u,slotProps:m={},slots:y={},TransitionProps:w,ownerState:x,...E}=e,k=_.useRef(null),I=vr(k,r),O=_.useRef(null),R=vr(O,u),M=_.useRef(R);Zr(()=>{M.current=R},[R]),_.useImperativeHandle(u,()=>O.current,[]);const T=BP(f,a),[P,N]=_.useState(T),[D,C]=_.useState(V1(n));_.useEffect(()=>{O.current&&O.current.forceUpdate()}),_.useEffect(()=>{n&&C(V1(n))},[n]),Zr(()=>{if(!D||!d)return;const W=Z=>{N(Z.placement)};let K=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{W(Z)}}];c!=null&&(K=K.concat(c)),g&&g.modifiers!=null&&(K=K.concat(g.modifiers));const re=NP(D,k.current,{placement:T,...g,modifiers:K});return M.current(re),()=>{re.destroy(),M.current(null)}},[D,l,c,d,g,T]);const $={placement:P};w!==null&&($.TransitionProps=w);const H=zP(e),q=y.root??"div",U=pa({elementType:q,externalSlotProps:m.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:I},ownerState:e,className:H.root});return L.jsx(q,{...U,children:typeof o=="function"?o($):o})}),qP=_.forwardRef(function(e,r){const{anchorEl:n,children:o,container:a,direction:l="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:f,open:g,placement:u="bottom",popperOptions:m=jP,popperRef:y,style:w,transition:x=!1,slotProps:E={},slots:k={},...I}=e,[O,R]=_.useState(!0),M=()=>{R(!1)},T=()=>{R(!0)};if(!d&&!g&&(!x||O))return null;let P;if(a)P=a;else if(n){const C=V1(n);P=C&&FP(C)?en(C).body:en(null).body}const N=!g&&d&&(!x||O)?"none":void 0,D=x?{in:g,onEnter:M,onExited:T}:void 0;return L.jsx(qE,{disablePortal:c,container:P,children:L.jsx(HP,{anchorEl:n,direction:l,disablePortal:c,modifiers:f,ref:r,open:x?!O:g,placement:u,popperOptions:m,popperRef:y,slotProps:E,slots:k,...I,style:{position:"fixed",top:0,left:0,display:N,...w},TransitionProps:D,children:o})})}),WP=ae(qP,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),WE=_.forwardRef(function(e,r){const n=el(),o=Ke({props:e,name:"MuiPopper"}),{anchorEl:a,component:l,components:c,componentsProps:d,container:f,disablePortal:g,keepMounted:u,modifiers:m,open:y,placement:w,popperOptions:x,popperRef:E,transition:k,slots:I,slotProps:O,...R}=o,M=I?.root??c?.Root,T={anchorEl:a,container:f,disablePortal:g,keepMounted:u,modifiers:m,open:y,placement:w,popperOptions:x,popperRef:E,transition:k,...R};return L.jsx(WP,{as:l,direction:n?"rtl":"ltr",slots:{root:M},slotProps:O??d,...T,ref:r})});function pp(t){return parseInt(t,10)||0}const UP={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function XP(t){for(const e in t)return!1;return!0}function Jw(t){return XP(t)||t.outerHeightStyle===0&&!t.overflowing}const VP=_.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:l,value:c,...d}=e,{current:f}=_.useRef(c!=null),g=_.useRef(null),u=vr(r,g),m=_.useRef(null),y=_.useRef(null),w=_.useCallback(()=>{const O=g.current,R=y.current;if(!O||!R)return;const T=Xn(O).getComputedStyle(O);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=T.width,R.value=O.value||e.placeholder||"x",R.value.slice(-1)===` +`&&(R.value+=" ");const P=T.boxSizing,N=pp(T.paddingBottom)+pp(T.paddingTop),D=pp(T.borderBottomWidth)+pp(T.borderTopWidth),C=R.scrollHeight;R.value="x";const $=R.scrollHeight;let H=C;a&&(H=Math.max(Number(a)*$,H)),o&&(H=Math.min(Number(o)*$,H)),H=Math.max(H,$);const q=H+(P==="border-box"?N+D:0),U=Math.abs(H-C)<=1;return{outerHeightStyle:q,overflowing:U}},[o,a,e.placeholder]),x=On(()=>{const O=g.current,R=w();if(!O||!R||Jw(R))return!1;const M=R.outerHeightStyle;return m.current!=null&&m.current!==M}),E=_.useCallback(()=>{const O=g.current,R=w();if(!O||!R||Jw(R))return;const M=R.outerHeightStyle;m.current!==M&&(m.current=M,O.style.height=`${M}px`),O.style.overflow=R.overflowing?"hidden":""},[w]),k=_.useRef(-1);Zr(()=>{const O=kd(E),R=g?.current;if(!R)return;const M=Xn(R);M.addEventListener("resize",O);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{x()&&(T.unobserve(R),cancelAnimationFrame(k.current),E(),k.current=requestAnimationFrame(()=>{T.observe(R)}))}),T.observe(R)),()=>{O.clear(),cancelAnimationFrame(k.current),M.removeEventListener("resize",O),T&&T.disconnect()}},[w,E,x]),Zr(()=>{E()});const I=O=>{f||E(),n&&n(O)};return L.jsxs(_.Fragment,{children:[L.jsx("textarea",{value:c,onChange:I,ref:u,rows:a,style:l,...d}),L.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...UP.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function G1(t){return typeof t=="string"}function Ai({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const ty=_.createContext(void 0);function xo(){return _.useContext(ty)}function Qw(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Yp(t,e=!1){return t&&(Qw(t.value)&&t.value!==""||e&&Qw(t.defaultValue)&&t.defaultValue!=="")}function GP(t){return t.startAdornment}function KP(t){return qe("MuiInputBase",t)}const Ks=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Zw;const Md=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${me(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Pd=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},YP=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:a,focused:l,formControl:c,fullWidth:d,hiddenLabel:f,multiline:g,readOnly:u,size:m,startAdornment:y,type:w}=t,x={root:["root",`color${me(r)}`,n&&"disabled",o&&"error",d&&"fullWidth",l&&"focused",c&&"formControl",m&&m!=="medium"&&`size${me(m)}`,g&&"multiline",y&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",u&&"readOnly"],input:["input",n&&"disabled",w==="search"&&"inputTypeSearch",g&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",u&&"readOnly"]};return Ue(x,KP,e)},Id=ae("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Md})(Qe(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ks.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Ad=ae("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pd})(Qe(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ks.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ks.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),e4=DR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ry=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:l,className:c,color:d,components:f={},componentsProps:g={},defaultValue:u,disabled:m,disableInjectingGlobalStyles:y,endAdornment:w,error:x,fullWidth:E=!1,id:k,inputComponent:I="input",inputProps:O={},inputRef:R,margin:M,maxRows:T,minRows:P,multiline:N=!1,name:D,onBlur:C,onChange:$,onClick:H,onFocus:q,onKeyDown:U,onKeyUp:W,placeholder:K,readOnly:re,renderSuffix:Z,rows:V,size:ee,slotProps:F={},slots:J={},startAdornment:pe,type:de="text",value:ie,...fe}=n,Se=O.value!=null?O.value:ie,{current:Ce}=_.useRef(Se!=null),Oe=_.useRef(),ke=_.useCallback(Fe=>{},[]),Le=vr(Oe,R,O.ref,ke),[Ie,nt]=_.useState(!1),Me=xo(),Te=Ai({props:n,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=Me?Me.focused:Ie,_.useEffect(()=>{!Me&&m&&Ie&&(nt(!1),C&&C())},[Me,m,Ie,C]);const ht=Me&&Me.onFilled,be=Me&&Me.onEmpty,Ae=_.useCallback(Fe=>{Yp(Fe)?ht&&ht():be&&be()},[ht,be]);Zr(()=>{Ce&&Ae({value:Se})},[Se,Ae,Ce]);const it=Fe=>{q&&q(Fe),O.onFocus&&O.onFocus(Fe),Me&&Me.onFocus?Me.onFocus(Fe):nt(!0)},Ze=Fe=>{C&&C(Fe),O.onBlur&&O.onBlur(Fe),Me&&Me.onBlur?Me.onBlur(Fe):nt(!1)},Xe=(Fe,...Ft)=>{if(!Ce){const wt=Fe.target||Oe.current;if(wt==null)throw new Error(Bo(1));Ae({value:wt.value})}O.onChange&&O.onChange(Fe,...Ft),$&&$(Fe,...Ft)};_.useEffect(()=>{Ae(Oe.current)},[]);const ve=Fe=>{Oe.current&&Fe.currentTarget===Fe.target&&Oe.current.focus(),H&&H(Fe)};let at=I,Ye=O;N&&at==="input"&&(V?Ye={type:void 0,minRows:V,maxRows:V,...Ye}:Ye={type:void 0,maxRows:T,minRows:P,...Ye},at=VP);const ne=Fe=>{Ae(Fe.animationName==="mui-auto-fill-cancel"?Oe.current:{value:"x"})};_.useEffect(()=>{Me&&Me.setAdornedStart(!!pe)},[Me,pe]);const ge={...n,color:Te.color||"primary",disabled:Te.disabled,endAdornment:w,error:Te.error,focused:Te.focused,formControl:Me,fullWidth:E,hiddenLabel:Te.hiddenLabel,multiline:N,size:Te.size,startAdornment:pe,type:de},je=YP(ge),Be=J.root||f.Root||Id,st=F.root||g.root||{},vt=J.input||f.Input||Ad;return Ye={...Ye,...F.input??g.input},L.jsxs(_.Fragment,{children:[!y&&typeof e4=="function"&&(Zw||(Zw=L.jsx(e4,{}))),L.jsxs(Be,{...st,ref:r,onClick:ve,...fe,...!G1(Be)&&{ownerState:{...ge,...st.ownerState}},className:ye(je.root,st.className,c,re&&"MuiInputBase-readOnly"),children:[pe,L.jsx(ty.Provider,{value:null,children:L.jsx(vt,{"aria-invalid":Te.error,"aria-describedby":o,autoComplete:a,autoFocus:l,defaultValue:u,disabled:Te.disabled,id:k,onAnimationStart:ne,name:D,placeholder:K,readOnly:re,required:Te.required,rows:V,value:Se,onKeyDown:U,onKeyUp:W,type:de,...Ye,...!G1(vt)&&{as:at,ownerState:{...ge,...Ye.ownerState}},ref:Le,className:ye(je.input,Ye.className,re&&"MuiInputBase-readOnly"),onBlur:Ze,onChange:Xe,onFocus:it})}),w,Z?Z({...Te,startAdornment:pe}):null]})]})});function JP(t){return qe("MuiInput",t)}const Wl={...Ks,...We("MuiInput",["root","underline","input"])};function QP(t){return qe("MuiOutlinedInput",t)}const no={...Ks,...We("MuiOutlinedInput",["root","notchedOutline","input"])};function ZP(t){return qe("MuiFilledInput",t)}const Ki={...Ks,...We("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},eI=He(L.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),tI={entering:{opacity:1},entered:{opacity:1}},K1=_.forwardRef(function(e,r){const n=jo(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,easing:d,in:f,onEnter:g,onEntered:u,onEntering:m,onExit:y,onExited:w,onExiting:x,style:E,timeout:k=o,TransitionComponent:I=bo,...O}=e,R=_.useRef(null),M=vr(R,Zs(c),r),T=U=>W=>{if(U){const K=R.current;W===void 0?U(K):U(K,W)}},P=T(m),N=T((U,W)=>{IE(U);const K=Vp({style:E,timeout:k,easing:d},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",K),U.style.transition=n.transitions.create("opacity",K),g&&g(U,W)}),D=T(u),C=T(x),$=T(U=>{const W=Vp({style:E,timeout:k,easing:d},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",W),U.style.transition=n.transitions.create("opacity",W),y&&y(U)}),H=T(w),q=U=>{a&&a(R.current,U)};return L.jsx(I,{appear:l,in:f,nodeRef:R,onEnter:N,onEntered:D,onEntering:P,onExit:$,onExited:H,onExiting:C,addEndListener:q,timeout:k,...O,children:(U,{ownerState:W,...K})=>_.cloneElement(c,{style:{opacity:0,visibility:U==="exited"&&!f?"hidden":void 0,...tI[U],...E,...c.props.style},ref:M,...K})})});function rI(t){return qe("MuiBackdrop",t)}We("MuiBackdrop",["root","invisible"]);const nI=t=>{const{classes:e,invisible:r}=t;return Ue({root:["root",r&&"invisible"]},rI,e)},oI=ae("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),UE=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:l="div",invisible:c=!1,open:d,components:f={},componentsProps:g={},slotProps:u={},slots:m={},TransitionComponent:y,transitionDuration:w,...x}=n,E={...n,component:l,invisible:c},k=nI(E),I={transition:y,root:f.Root,...m},O={...g,...u},R={slots:I,slotProps:O},[M,T]=ct("root",{elementType:oI,externalForwardedProps:R,className:ye(k.root,a),ownerState:E}),[P,N]=ct("transition",{elementType:K1,externalForwardedProps:R,ownerState:E});return L.jsx(P,{in:d,timeout:w,...x,...N,children:L.jsx(M,{"aria-hidden":!0,...T,classes:k,ref:r,children:o})})}),iI=We("MuiBox",["root"]),aI=Rc(),ft=XO({themeId:Un,defaultTheme:aI,defaultClassName:iI.root,generateClassName:tE.generate}),sI=He(L.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),lI=ae(Pi,{name:"MuiBreadcrumbCollapsed"})(Qe(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:D1(t.palette.grey[200],.12)}:{backgroundColor:D1(t.palette.grey[600],.12)}}}))),cI=ae(sI)({width:24,height:16});function uI(t){const{slots:e={},slotProps:r={},...n}=t,o=t;return L.jsx("li",{children:L.jsx(lI,{focusRipple:!0,...n,ownerState:o,children:L.jsx(cI,{as:e.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function pI(t){return qe("MuiBreadcrumbs",t)}const dI=We("MuiBreadcrumbs",["root","ol","li","separator"]),fI=t=>{const{classes:e}=t;return Ue({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},pI,e)},hI=ae(qn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${dI.li}`]:e.li},e.root]})({}),mI=ae("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),gI=ae("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function vI(t,e,r,n){return t.reduce((o,a,l)=>(l{const N=()=>{E(!0);const D=R.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return u+g>=P.length?P:[...P.slice(0,u),L.jsx(uI,{"aria-label":f,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:O},onClick:N},"ellipsis"),...P.slice(P.length-g,P.length)]},T=_.Children.toArray(o).filter(P=>_.isValidElement(P)).map((P,N)=>L.jsx("li",{className:I.li,children:P},`child-${N}`));return L.jsx(hI,{ref:r,component:l,color:"textSecondary",className:ye(I.root,a),ownerState:k,...w,children:L.jsx(mI,{className:I.ol,ref:R,ownerState:k,children:vI(x||m&&T.length<=m?T:M(T),I.separator,y,k)})})});function bI(t){return qe("MuiButton",t)}const Yi=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),xI=_.createContext({}),wI=_.createContext(void 0),SI=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:a,loading:l,loadingPosition:c,classes:d}=t,f={root:["root",l&&"loading",a,`${a}${me(e)}`,`size${me(o)}`,`${a}Size${me(o)}`,`color${me(e)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${me(c)}`],startIcon:["icon","startIcon",`iconSize${me(o)}`],endIcon:["icon","endIcon",`iconSize${me(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},g=Ue(f,bI,d);return{...d,...g}},XE=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],EI=ae(Pi,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${me(r.color)}`],e[`size${me(r.size)}`],e[`${r.variant}Size${me(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Yi.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Yi.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Yi.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Yi.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(rr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:It(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Yi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Yi.loading}`]:{color:"transparent"}}}]}})),CI=ae("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${me(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...XE]})),TI=ae("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${me(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...XE]})),kI=ae("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),t4=ae("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Vt=_.forwardRef(function(e,r){const n=_.useContext(xI),o=_.useContext(wI),a=Oc(n,e),l=Ke({props:a,name:"MuiButton"}),{children:c,color:d="primary",component:f="button",className:g,disabled:u=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:w,focusVisibleClassName:x,fullWidth:E=!1,id:k,loading:I=null,loadingIndicator:O,loadingPosition:R="center",size:M="medium",startIcon:T,type:P,variant:N="text",...D}=l,C=va(k),$=O??L.jsx(Vv,{"aria-labelledby":C,color:"inherit",size:16}),H={...l,color:d,component:f,disabled:u,disableElevation:m,disableFocusRipple:y,fullWidth:E,loading:I,loadingIndicator:$,loadingPosition:R,size:M,type:P,variant:N},q=SI(H),U=(T||I&&R==="start")&&L.jsx(CI,{className:q.startIcon,ownerState:H,children:T||L.jsx(t4,{className:q.loadingIconPlaceholder,ownerState:H})}),W=(w||I&&R==="end")&&L.jsx(TI,{className:q.endIcon,ownerState:H,children:w||L.jsx(t4,{className:q.loadingIconPlaceholder,ownerState:H})}),K=o||"",re=typeof I=="boolean"?L.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:I&&L.jsx(kI,{className:q.loadingIndicator,ownerState:H,children:$})}):null;return L.jsxs(EI,{ownerState:H,className:ye(n.className,q.root,g,K),component:f,disabled:u||I,focusRipple:!y,focusVisibleClassName:ye(q.focusVisible,x),ref:r,type:P,id:I?C:k,...D,classes:q,children:[U,R!=="end"&&re,c,R==="end"&&re,W]})});function OI(t){return qe("MuiCard",t)}We("MuiCard",["root"]);const _I=t=>{const{classes:e}=t;return Ue({root:["root"]},OI,e)},RI=ae(rl,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})({overflow:"hidden"}),MI=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCard"}),{className:o,raised:a=!1,...l}=n,c={...n,raised:a},d=_I(c);return L.jsx(RI,{className:ye(d.root,o),elevation:a?8:void 0,ref:r,ownerState:c,...l})});function PI(t){return qe("MuiCardActions",t)}We("MuiCardActions",["root","spacing"]);const II=t=>{const{classes:e,disableSpacing:r}=t;return Ue({root:["root",!r&&"spacing"]},PI,e)},AI=ae("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),DI=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a,...l}=n,c={...n,disableSpacing:o},d=II(c);return L.jsx(AI,{className:ye(d.root,a),ownerState:c,ref:r,...l})});function NI(t){return qe("MuiCardContent",t)}We("MuiCardContent",["root"]);const $I=t=>{const{classes:e}=t;return Ue({root:["root"]},NI,e)},LI=ae("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:16,"&:last-child":{paddingBottom:24}}),BI=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCardContent"}),{className:o,component:a="div",...l}=n,c={...n,component:a},d=$I(c);return L.jsx(LI,{as:a,className:ye(d.root,o),ownerState:c,ref:r,...l})});function FI(t){return qe("MuiCardMedia",t)}We("MuiCardMedia",["root","media","img"]);const zI=t=>{const{classes:e,isMediaComponent:r,isImageComponent:n}=t;return Ue({root:["root",r&&"media",n&&"img"]},FI,e)},jI=ae("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{isMediaComponent:n,isImageComponent:o}=r;return[e.root,n&&e.media,o&&e.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),HI=["video","audio","picture","iframe","img"],qI=["picture","img"],WI=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCardMedia"}),{children:o,className:a,component:l="div",image:c,src:d,style:f,...g}=n,u=HI.includes(l),m=!u&&c?{backgroundImage:`url("${c}")`,...f}:f,y={...n,component:l,isMediaComponent:u,isImageComponent:qI.includes(l)},w=zI(y);return L.jsx(jI,{className:ye(w.root,a),as:l,role:!u&&c?"img":void 0,ref:r,style:m,ownerState:y,src:u?c||d:void 0,...g,children:o})});function UI(t){return qe("PrivateSwitchBase",t)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const XI=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${me(o)}`],input:["input"]};return Ue(a,UI,e)},VI=ae(Pi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),GI=ae("input",{name:"MuiSwitchBase",shouldForwardProp:yr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),VE=_.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:a,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:f=!1,icon:g,id:u,inputProps:m,inputRef:y,name:w,onBlur:x,onChange:E,onFocus:k,readOnly:I,required:O=!1,tabIndex:R,type:M,value:T,slots:P={},slotProps:N={},...D}=e,[C,$]=Wp({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),H=xo(),q=ie=>{k&&k(ie),H&&H.onFocus&&H.onFocus(ie)},U=ie=>{x&&x(ie),H&&H.onBlur&&H.onBlur(ie)},W=ie=>{if(ie.nativeEvent.defaultPrevented)return;const fe=ie.target.checked;$(fe),E&&E(ie,fe)};let K=c;H&&typeof K>"u"&&(K=H.disabled);const re=M==="checkbox"||M==="radio",Z={...e,checked:C,disabled:K,disableFocusRipple:d,edge:f},V=XI(Z),ee={slots:P,slotProps:{input:m,...N}},[F,J]=ct("root",{ref:r,elementType:VI,className:V.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,component:"span",...D},getSlotProps:ie=>({...ie,onFocus:fe=>{ie.onFocus?.(fe),q(fe)},onBlur:fe=>{ie.onBlur?.(fe),U(fe)}}),ownerState:Z,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:K,role:void 0,tabIndex:null}}),[pe,de]=ct("input",{ref:y,elementType:GI,className:V.input,externalForwardedProps:ee,getSlotProps:ie=>({onChange:fe=>{ie.onChange?.(fe),W(fe)}}),ownerState:Z,additionalProps:{autoFocus:n,checked:o,defaultChecked:l,disabled:K,id:re?u:void 0,name:w,readOnly:I,required:O,tabIndex:R,type:M,...M==="checkbox"&&T===void 0?{}:{value:T}}});return L.jsxs(F,{...J,children:[L.jsx(pe,{...de}),C?a:g]})}),KI=He(L.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),YI=He(L.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),JI=He(L.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function QI(t){return qe("MuiCheckbox",t)}const Zh=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ZI=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,a={root:["root",r&&"indeterminate",`color${me(n)}`,`size${me(o)}`]},l=Ue(a,QI,e);return{...e,...l}},eA=ae(VE,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${me(r.size)}`],r.color!=="default"&&e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{[`&.${Zh.checked}, &.${Zh.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${Zh.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),tA=L.jsx(YI,{}),rA=L.jsx(KI,{}),nA=L.jsx(JI,{}),Lr=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCheckbox"}),{checkedIcon:o=tA,color:a="primary",icon:l=rA,indeterminate:c=!1,indeterminateIcon:d=nA,inputProps:f,size:g="medium",disableRipple:u=!1,className:m,slots:y={},slotProps:w={},...x}=n,E=c?d:l,k=c?d:o,I={...n,disableRipple:u,color:a,indeterminate:c,size:g},O=ZI(I),R=w.input??f,[M,T]=ct("root",{ref:r,elementType:eA,className:ye(O.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:w,...x},ownerState:I,additionalProps:{type:"checkbox",icon:_.cloneElement(E,{fontSize:E.props.fontSize??g}),checkedIcon:_.cloneElement(k,{fontSize:k.props.fontSize??g}),disableRipple:u,slots:y,slotProps:{input:_E(typeof R=="function"?R(I):R,{"data-indeterminate":c})}}});return L.jsx(M,{...T,classes:O})});function oA(t){const e=en(t);return e.body===t?Xn(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function xc(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function r4(t){return parseInt(Xn(t).getComputedStyle(t).paddingRight,10)||0}function iA(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function n4(t,e,r,n,o){const a=[e,r,...n];[].forEach.call(t.children,l=>{const c=!a.includes(l),d=!iA(l);c&&d&&xc(l,o)})}function em(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function aA(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(oA(n)){const l=pE(Xn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${r4(n)+l}px`;const c=en(n).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${r4(d)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=en(n).body;else{const l=n.parentElement,c=Xn(n);a=l?.nodeName==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:l,property:c})=>{a?l.style.setProperty(c,a):l.style.removeProperty(c)})}}function sA(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class lA{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&xc(e.modalRef,!1);const o=sA(r);n4(r,e.mount,e.modalRef,o,!0);const a=em(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=em(this.containers,a=>a.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=aA(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=em(this.containers,l=>l.modals.includes(e)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&xc(e.modalRef,r),n4(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&xc(l.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const cA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uA(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function pA(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function dA(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||pA(t))}function fA(t){const e=[],r=[];return Array.from(t.querySelectorAll(cA)).forEach((n,o)=>{const a=uA(n);a===-1||!dA(n)||(a===0?e.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function hA(){return!0}function mA(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=fA,isEnabled:l=hA,open:c}=t,d=_.useRef(!1),f=_.useRef(null),g=_.useRef(null),u=_.useRef(null),m=_.useRef(null),y=_.useRef(!1),w=_.useRef(null),x=vr(Zs(e),w),E=_.useRef(null);_.useEffect(()=>{!c||!w.current||(y.current=!r)},[r,c]),_.useEffect(()=>{if(!c||!w.current)return;const O=en(w.current);return w.current.contains(O.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),y.current&&w.current.focus()),()=>{o||(u.current&&u.current.focus&&(d.current=!0,u.current.focus()),u.current=null)}},[c]),_.useEffect(()=>{if(!c||!w.current)return;const O=en(w.current),R=P=>{E.current=P,!(n||!l()||P.key!=="Tab")&&O.activeElement===w.current&&P.shiftKey&&(d.current=!0,g.current&&g.current.focus())},M=()=>{const P=w.current;if(P===null)return;if(!O.hasFocus()||!l()||d.current){d.current=!1;return}if(P.contains(O.activeElement)||n&&O.activeElement!==f.current&&O.activeElement!==g.current)return;if(O.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let N=[];if((O.activeElement===f.current||O.activeElement===g.current)&&(N=a(w.current)),N.length>0){const D=!!(E.current?.shiftKey&&E.current?.key==="Tab"),C=N[0],$=N[N.length-1];typeof C!="string"&&typeof $!="string"&&(D?$.focus():C.focus())}else P.focus()};O.addEventListener("focusin",M),O.addEventListener("keydown",R,!0);const T=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(T),O.removeEventListener("focusin",M),O.removeEventListener("keydown",R,!0)}},[r,n,o,l,c,a]);const k=O=>{u.current===null&&(u.current=O.relatedTarget),y.current=!0,m.current=O.target;const R=e.props.onFocus;R&&R(O)},I=O=>{u.current===null&&(u.current=O.relatedTarget),y.current=!0};return L.jsxs(_.Fragment,{children:[L.jsx("div",{tabIndex:c?0:-1,onFocus:I,ref:f,"data-testid":"sentinelStart"}),_.cloneElement(e,{ref:x,onFocus:k}),L.jsx("div",{tabIndex:c?0:-1,onFocus:I,ref:g,"data-testid":"sentinelEnd"})]})}function gA(t){return typeof t=="function"?t():t}function vA(t){return t?t.props.hasOwnProperty("in"):!1}const o4=()=>{},dp=new lA;function yA(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:g}=t,u=_.useRef({}),m=_.useRef(null),y=_.useRef(null),w=vr(y,g),[x,E]=_.useState(!f),k=vA(c);let I=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(I=!1);const O=()=>en(m.current),R=()=>(u.current.modalRef=y.current,u.current.mount=m.current,u.current),M=()=>{dp.mount(R(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},T=On(()=>{const W=gA(e)||O().body;dp.add(R(),W),y.current&&M()}),P=()=>dp.isTopModal(R()),N=On(W=>{m.current=W,W&&(f&&P()?M():y.current&&xc(y.current,I))}),D=_.useCallback(()=>{dp.remove(R(),I)},[I]);_.useEffect(()=>()=>{D()},[D]),_.useEffect(()=>{f?T():(!k||!o)&&D()},[f,D,k,o,T]);const C=W=>K=>{W.onKeyDown?.(K),!(K.key!=="Escape"||K.which===229||!P())&&(r||(K.stopPropagation(),d&&d(K,"escapeKeyDown")))},$=W=>K=>{W.onClick?.(K),K.target===K.currentTarget&&d&&d(K,"backdropClick")};return{getRootProps:(W={})=>{const K=fE(t);delete K.onTransitionEnter,delete K.onTransitionExited;const re={...K,...W};return{role:"presentation",...re,onKeyDown:C(re),ref:w}},getBackdropProps:(W={})=>{const K=W;return{"aria-hidden":!0,...K,onClick:$(K),open:f}},getTransitionProps:()=>{const W=()=>{E(!1),a&&a()},K=()=>{E(!0),l&&l(),o&&D()};return{onEnter:N1(W,c?.props.onEnter??o4),onExited:N1(K,c?.props.onExited??o4)}},rootRef:w,portalRef:N,isTopModal:P,exited:x,hasTransition:k}}function bA(t){return qe("MuiModal",t)}We("MuiModal",["root","hidden","backdrop"]);const xA=t=>{const{open:e,exited:r,classes:n}=t;return Ue({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},bA,n)},wA=ae("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Qe(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),SA=ae(UE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),GE=_.forwardRef(function(e,r){const n=Ke({name:"MuiModal",props:e}),{BackdropComponent:o=SA,BackdropProps:a,classes:l,className:c,closeAfterTransition:d=!1,children:f,container:g,component:u,components:m={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:k=!1,disableRestoreFocus:I=!1,disableScrollLock:O=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:T,onClose:P,onTransitionEnter:N,onTransitionExited:D,open:C,slotProps:$={},slots:H={},theme:q,...U}=n,W={...n,closeAfterTransition:d,disableAutoFocus:w,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:k,disableRestoreFocus:I,disableScrollLock:O,hideBackdrop:R,keepMounted:M},{getRootProps:K,getBackdropProps:re,getTransitionProps:Z,portalRef:V,isTopModal:ee,exited:F,hasTransition:J}=yA({...W,rootRef:r}),pe={...W,exited:F},de=xA(pe),ie={};if(f.props.tabIndex===void 0&&(ie.tabIndex="-1"),J){const{onEnter:Le,onExited:Ie}=Z();ie.onEnter=Le,ie.onExited=Ie}const fe={slots:{root:m.Root,backdrop:m.Backdrop,...H},slotProps:{...y,...$}},[Se,Ce]=ct("root",{ref:r,elementType:wA,externalForwardedProps:{...fe,...U,component:u},getSlotProps:K,ownerState:pe,className:ye(c,de?.root,!pe.open&&pe.exited&&de?.hidden)}),[Oe,ke]=ct("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:fe,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Le=>re({...Le,onClick:Ie=>{T&&T(Ie),Le?.onClick&&Le.onClick(Ie)}}),className:ye(a?.className,de?.backdrop),ownerState:pe});return!M&&!C&&(!J||F)?null:L.jsx(qE,{ref:V,container:g,disablePortal:k,children:L.jsxs(Se,{...Ce,children:[!R&&o?L.jsx(Oe,{...ke}):null,L.jsx(mA,{disableEnforceFocus:x,disableAutoFocus:w,disableRestoreFocus:I,isEnabled:ee,open:C,children:_.cloneElement(f,ie)})]})})});function EA(t){return qe("MuiDialog",t)}const tm=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),KE=_.createContext({}),CA=ae(UE,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),TA=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=t,l={root:["root"],container:["container",`scroll${me(r)}`],paper:["paper",`paperScroll${me(r)}`,`paperWidth${me(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Ue(l,EA,e)},kA=ae(GE,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),OA=ae("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${me(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),_A=ae(rl,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${me(r.scroll)}`],e[`paperWidth${me(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Qe(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${tm.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${tm.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${tm.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Ho=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialog"}),o=jo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:f,BackdropProps:g,children:u,className:m,disableEscapeKeyDown:y=!1,fullScreen:w=!1,fullWidth:x=!1,maxWidth:E="sm",onBackdropClick:k,onClick:I,onClose:O,open:R,PaperComponent:M=rl,PaperProps:T={},scroll:P="paper",slots:N={},slotProps:D={},TransitionComponent:C=K1,transitionDuration:$=a,TransitionProps:H,...q}=n,U={...n,disableEscapeKeyDown:y,fullScreen:w,fullWidth:x,maxWidth:E,scroll:P},W=TA(U),K=_.useRef(),re=Me=>{K.current=Me.target===Me.currentTarget},Z=Me=>{I&&I(Me),K.current&&(K.current=null,k&&k(Me),O&&O(Me,"backdropClick"))},V=va(c),ee=_.useMemo(()=>({titleId:V}),[V]),F={transition:C,...N},J={transition:H,paper:T,backdrop:g,...D},pe={slots:F,slotProps:J},[de,ie]=ct("root",{elementType:kA,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:U,className:ye(W.root,m),ref:r}),[fe,Se]=ct("backdrop",{elementType:CA,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:U}),[Ce,Oe]=ct("paper",{elementType:_A,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:U,className:ye(W.paper,T.className)}),[ke,Le]=ct("container",{elementType:OA,externalForwardedProps:pe,ownerState:U,className:ye(W.container)}),[Ie,nt]=ct("transition",{elementType:K1,externalForwardedProps:pe,ownerState:U,additionalProps:{appear:!0,in:R,timeout:$,role:"presentation"}});return L.jsx(de,{closeAfterTransition:!0,slots:{backdrop:fe},slotProps:{backdrop:{transitionDuration:$,as:f,...Se}},disableEscapeKeyDown:y,onClose:O,open:R,onClick:Z,...ie,...q,children:L.jsx(Ie,{...nt,children:L.jsx(ke,{onMouseDown:re,...Le,children:L.jsx(Ce,{as:M,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":V,"aria-modal":d,...Oe,children:L.jsx(KE.Provider,{value:ee,children:u})})})})})});function RA(t){return qe("MuiDialogActions",t)}We("MuiDialogActions",["root","spacing"]);const MA=t=>{const{classes:e,disableSpacing:r}=t;return Ue({root:["root",!r&&"spacing"]},RA,e)},PA=ae("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),qo=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...l}=n,c={...n,disableSpacing:a},d=MA(c);return L.jsx(PA,{className:ye(d.root,o),ownerState:c,ref:r,...l})});function IA(t){return qe("MuiDialogContent",t)}We("MuiDialogContent",["root","dividers"]);function AA(t){return qe("MuiDialogTitle",t)}const DA=We("MuiDialogTitle",["root"]),NA=t=>{const{classes:e,dividers:r}=t;return Ue({root:["root",r&&"dividers"]},IA,e)},$A=ae("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Qe(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${DA.root} + &`]:{paddingTop:0}}}]}))),Wo=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...l}=n,c={...n,dividers:a},d=NA(c);return L.jsx($A,{className:ye(d.root,o),ownerState:c,ref:r,...l})});function LA(t){return qe("MuiDialogContentText",t)}We("MuiDialogContentText",["root"]);const BA=t=>{const{classes:e}=t,n=Ue({root:["root"]},LA,e);return{...e,...n}},FA=ae(qn,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Dd=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogContentText"}),{children:o,className:a,...l}=n,c=BA(l);return L.jsx(FA,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:l,className:ye(c.root,a),...n,classes:c})}),zA=t=>{const{classes:e}=t;return Ue({root:["root"]},AA,e)},jA=ae(qn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),Uo=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogTitle"}),{className:o,id:a,...l}=n,c=n,d=zA(c),{titleId:f=a}=_.useContext(KE);return L.jsx(jA,{component:"h2",className:ye(d.root,o),ownerState:c,ref:r,variant:"h6",id:a??f,...l})});function HA(t){return qe("MuiDivider",t)}const i4=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),qA=t=>{const{absolute:e,children:r,classes:n,flexItem:o,light:a,orientation:l,textAlign:c,variant:d}=t;return Ue({root:["root",e&&"absolute",d,a&&"light",l==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},HA,n)},WA=ae("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.absolute&&e.absolute,e[r.variant],r.light&&e.light,r.orientation==="vertical"&&e.vertical,r.flexItem&&e.flexItem,r.children&&e.withChildren,r.children&&r.orientation==="vertical"&&e.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&e.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&e.textAlignLeft]}})(Qe(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:It(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&e.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>e.orientation==="vertical"&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>e.textAlign==="right"&&e.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>e.textAlign==="left"&&e.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),UA=ae("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.wrapper,r.orientation==="vertical"&&e.wrapperVertical]}})(Qe(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),Y1=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDivider"}),{absolute:o=!1,children:a,className:l,orientation:c="horizontal",component:d=a||c==="vertical"?"div":"hr",flexItem:f=!1,light:g=!1,role:u=d!=="hr"?"separator":void 0,textAlign:m="center",variant:y="fullWidth",...w}=n,x={...n,absolute:o,component:d,flexItem:f,light:g,orientation:c,role:u,textAlign:m,variant:y},E=qA(x);return L.jsx(WA,{as:d,className:ye(E.root,l),role:u,ref:r,ownerState:x,"aria-orientation":u==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...w,children:a?L.jsx(UA,{className:E.wrapper,ownerState:x,children:a}):null})});Y1&&(Y1.muiSkipListHighlight=!0);function XA(t){return qe("MuiFab",t)}const a4=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),VA=t=>{const{color:e,variant:r,classes:n,size:o}=t,a={root:["root",r,`size${me(o)}`,e==="inherit"?"colorInherit":e]},l=Ue(a,XA,n);return{...n,...l}},GA=ae(Pi,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>yr(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${me(r.size)}`],r.color==="inherit"&&e.colorInherit,e[me(r.size)],e[r.color]]}})(Qe(({theme:t})=>({...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:t.palette.getContrastText?.(t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${a4.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),Qe(({theme:t})=>({variants:[...Object.entries(t.palette).filter(rr(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Qe(({theme:t})=>({[`&.${a4.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),ua=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFab"}),{children:o,className:a,color:l="default",component:c="button",disabled:d=!1,disableFocusRipple:f=!1,focusVisibleClassName:g,size:u="large",variant:m="circular",...y}=n,w={...n,color:l,component:c,disabled:d,disableFocusRipple:f,size:u,variant:m},x=VA(w);return L.jsx(GA,{className:ye(x.root,a),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:ye(x.focusVisible,g),ownerState:w,ref:r,...y,classes:x,children:o})}),KA=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:l,multiline:c}=t,d={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${me(a)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},f=Ue(d,ZP,e);return{...e,...f}},YA=ae(Id,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Md(t,e),!r.disableUnderline&&e.underline]}})(Qe(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${Ki.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${Ki.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ki.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ki.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ki.disabled}, .${Ki.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Ki.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(rr()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),JA=ae(Ad,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pd})(Qe(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ny=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:l,fullWidth:c=!1,hiddenLabel:d,inputComponent:f="input",multiline:g=!1,slotProps:u,slots:m={},type:y="text",...w}=n,x={...n,disableUnderline:o,fullWidth:c,inputComponent:f,multiline:g,type:y},E=KA(n),k={root:{ownerState:x},input:{ownerState:x}},I=u??l?Dr(k,u??l):k,O=m.root??a.Root??YA,R=m.input??a.Input??JA;return L.jsx(ry,{slots:{root:O,input:R},slotProps:I,fullWidth:c,inputComponent:f,multiline:g,ref:r,type:y,...w,classes:E})});ny.muiName="Input";function QA(t){return qe("MuiFormControl",t)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ZA=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${me(r)}`,n&&"fullWidth"]};return Ue(o,QA,e)},eD=ae("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${me(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ms=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormControl"}),{children:o,className:a,color:l="primary",component:c="div",disabled:d=!1,error:f=!1,focused:g,fullWidth:u=!1,hiddenLabel:m=!1,margin:y="none",required:w=!1,size:x="medium",variant:E="outlined",...k}=n,I={...n,color:l,component:c,disabled:d,error:f,fullWidth:u,hiddenLabel:m,margin:y,required:w,size:x,variant:E},O=ZA(I),[R,M]=_.useState(()=>{let W=!1;return o&&_.Children.forEach(o,K=>{if(!Ap(K,["Input","Select"]))return;const re=Ap(K,["Select"])?K.props.input:K;re&&GP(re.props)&&(W=!0)}),W}),[T,P]=_.useState(()=>{let W=!1;return o&&_.Children.forEach(o,K=>{Ap(K,["Input","Select"])&&(Yp(K.props,!0)||Yp(K.props.inputProps,!0))&&(W=!0)}),W}),[N,D]=_.useState(!1);d&&N&&D(!1);const C=g!==void 0&&!d?g:N;let $;_.useRef(!1);const H=_.useCallback(()=>{P(!0)},[]),q=_.useCallback(()=>{P(!1)},[]),U=_.useMemo(()=>({adornedStart:R,setAdornedStart:M,color:l,disabled:d,error:f,filled:T,focused:C,fullWidth:u,hiddenLabel:m,size:x,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:q,onFilled:H,registerEffect:$,required:w,variant:E}),[R,l,d,f,T,C,u,m,$,q,H,w,x,E]);return L.jsx(ty.Provider,{value:U,children:L.jsx(eD,{as:c,ownerState:I,className:ye(O.root,a),ref:r,...k,children:o})})});function tD(t){return qe("MuiFormControlLabel",t)}const cc=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),rD=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:a}=t,l={root:["root",r&&"disabled",`labelPlacement${me(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ue(l,tD,e)},nD=ae("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${cc.label}`]:e.label},e.root,e[`labelPlacement${me(r.labelPlacement)}`]]}})(Qe(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${cc.disabled}`]:{cursor:"default"},[`& .${cc.label}`]:{[`&.${cc.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),oD=ae("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Qe(({theme:t})=>({[`&.${cc.error}`]:{color:(t.vars||t).palette.error.main}}))),pt=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:l={},control:c,disabled:d,disableTypography:f,inputRef:g,label:u,labelPlacement:m="end",name:y,onChange:w,required:x,slots:E={},slotProps:k={},value:I,...O}=n,R=xo(),M=d??c.props.disabled??R?.disabled,T=x??c.props.required,P={disabled:M,required:T};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof c.props[W]>"u"&&typeof n[W]<"u"&&(P[W]=n[W])});const N=Ai({props:n,muiFormControl:R,states:["error"]}),D={...n,disabled:M,labelPlacement:m,required:T,error:N.error},C=rD(D),$={slots:E,slotProps:{...l,...k}},[H,q]=ct("typography",{elementType:qn,externalForwardedProps:$,ownerState:D});let U=u;return U!=null&&U.type!==qn&&!f&&(U=L.jsx(H,{component:"span",...q,className:ye(C.label,q?.className),children:U})),L.jsxs(nD,{className:ye(C.root,a),ownerState:D,ref:r,...O,children:[_.cloneElement(c,P),T?L.jsxs("div",{children:[U,L.jsxs(oD,{ownerState:D,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):U]})});function iD(t){return qe("MuiFormGroup",t)}We("MuiFormGroup",["root","row","error"]);const aD=t=>{const{classes:e,row:r,error:n}=t;return Ue({root:["root",r&&"row",n&&"error"]},iD,e)},sD=ae("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),rm=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormGroup"}),{className:o,row:a=!1,...l}=n,c=xo(),d=Ai({props:n,muiFormControl:c,states:["error"]}),f={...n,row:a,error:d.error},g=aD(f);return L.jsx(sD,{className:ye(g.root,o),ownerState:f,ref:r,...l})});function lD(t){return qe("MuiFormHelperText",t)}const s4=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var l4;const cD=t=>{const{classes:e,contained:r,size:n,disabled:o,error:a,filled:l,focused:c,required:d}=t,f={root:["root",o&&"disabled",a&&"error",n&&`size${me(n)}`,r&&"contained",c&&"focused",l&&"filled",d&&"required"]};return Ue(f,lD,e)},uD=ae("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${me(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${s4.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${s4.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),pD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:l="p",disabled:c,error:d,filled:f,focused:g,margin:u,required:m,variant:y,...w}=n,x=xo(),E=Ai({props:n,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),k={...n,component:l,contained:E.variant==="filled"||E.variant==="outlined",variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required};delete k.ownerState;const I=cD(k);return L.jsx(uD,{as:l,className:ye(I.root,a),ref:r,...w,ownerState:k,children:o===" "?l4||(l4=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function dD(t){return qe("MuiFormLabel",t)}const wc=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),fD=t=>{const{classes:e,color:r,focused:n,disabled:o,error:a,filled:l,required:c}=t,d={root:["root",`color${me(r)}`,o&&"disabled",a&&"error",l&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return Ue(d,dD,e)},hD=ae("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{[`&.${wc.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${wc.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${wc.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),mD=ae("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Qe(({theme:t})=>({[`&.${wc.error}`]:{color:(t.vars||t).palette.error.main}}))),gD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:l,component:c="label",disabled:d,error:f,filled:g,focused:u,required:m,...y}=n,w=xo(),x=Ai({props:n,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),E={...n,color:x.color||"primary",component:c,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},k=fD(E);return L.jsxs(hD,{as:c,ownerState:E,className:ye(k.root,a),ref:r,...y,children:[o,x.required&&L.jsxs(mD,{ownerState:E,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})}),J1=Z_({createStyledComponent:ae("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.container&&e.container]}}),componentName:"MuiGrid2",useThemeProps:t=>Ke({props:t,name:"MuiGrid2"}),useTheme:jo});function Q1(t){return`scale(${t}, ${t**2})`}const vD={entering:{opacity:1,transform:Q1(1)},entered:{opacity:1,transform:"none"}},nm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jp=_.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:l,in:c,onEnter:d,onEntered:f,onEntering:g,onExit:u,onExited:m,onExiting:y,style:w,timeout:x="auto",TransitionComponent:E=bo,...k}=e,I=As(),O=_.useRef(),R=jo(),M=_.useRef(null),T=vr(M,Zs(a),r),P=W=>K=>{if(W){const re=M.current;K===void 0?W(re):W(re,K)}},N=P(g),D=P((W,K)=>{IE(W);const{duration:re,delay:Z,easing:V}=Vp({style:w,timeout:x,easing:l},{mode:"enter"});let ee;x==="auto"?(ee=R.transitions.getAutoHeightDuration(W.clientHeight),O.current=ee):ee=re,W.style.transition=[R.transitions.create("opacity",{duration:ee,delay:Z}),R.transitions.create("transform",{duration:nm?ee:ee*.666,delay:Z,easing:V})].join(","),d&&d(W,K)}),C=P(f),$=P(y),H=P(W=>{const{duration:K,delay:re,easing:Z}=Vp({style:w,timeout:x,easing:l},{mode:"exit"});let V;x==="auto"?(V=R.transitions.getAutoHeightDuration(W.clientHeight),O.current=V):V=K,W.style.transition=[R.transitions.create("opacity",{duration:V,delay:re}),R.transitions.create("transform",{duration:nm?V:V*.666,delay:nm?re:re||V*.333,easing:Z})].join(","),W.style.opacity=0,W.style.transform=Q1(.75),u&&u(W)}),q=P(m),U=W=>{x==="auto"&&I.start(O.current||0,W),n&&n(M.current,W)};return L.jsx(E,{appear:o,in:c,nodeRef:M,onEnter:D,onEntered:C,onEntering:N,onExit:H,onExited:q,onExiting:$,addEndListener:U,timeout:x==="auto"?null:x,...k,children:(W,{ownerState:K,...re})=>_.cloneElement(a,{style:{opacity:0,transform:Q1(.75),visibility:W==="exited"&&!c?"hidden":void 0,...vD[W],...w,...a.props.style},ref:T,...re})})});Jp&&(Jp.muiSupportAuto=!0);const yD=lE({themeId:Un}),bD=t=>{const{classes:e,disableUnderline:r}=t,o=Ue({root:["root",!r&&"underline"],input:["input"]},JP,e);return{...e,...o}},xD=ae(Id,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Md(t,e),!r.disableUnderline&&e.underline]}})(Qe(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wl.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wl.disabled}, .${Wl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(rr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),wD=ae(Ad,{name:"MuiInput",slot:"Input",overridesResolver:Pd})({}),lo=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:g,slots:u={},type:m="text",...y}=n,w=bD(n),E={root:{ownerState:{disableUnderline:o}}},k=g??l?Dr(g??l,E):E,I=u.root??a.Root??xD,O=u.input??a.Input??wD;return L.jsx(ry,{slots:{root:I,input:O},slotProps:k,fullWidth:c,inputComponent:d,multiline:f,ref:r,type:m,...y,classes:w})});lo.muiName="Input";function SD(t){return qe("MuiInputLabel",t)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ED=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:a,variant:l,required:c}=t,d={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${me(n)}`,l],asterisk:[c&&"asterisk"]},f=Ue(d,SD,e);return{...e,...f}},CD=ae(gD,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${wc.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Qe(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Np=_.forwardRef(function(e,r){const n=Ke({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:l,variant:c,className:d,...f}=n,g=xo();let u=l;typeof u>"u"&&g&&(u=g.filled||g.focused||g.adornedStart);const m=Ai({props:n,muiFormControl:g,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:g,shrink:u,size:m.size,variant:m.variant,required:m.required,focused:m.focused},w=ED(y);return L.jsx(CD,{"data-shrink":u,ref:r,className:ye(w.root,d),...f,ownerState:y,classes:w})});function TD(t){return qe("MuiLinearProgress",t)}We("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Z1=4,ev=Mi` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,kD=typeof ev!="string"?Qs` + animation: ${ev} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,tv=Mi` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,OD=typeof tv!="string"?Qs` + animation: ${tv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,rv=Mi` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,_D=typeof rv!="string"?Qs` + animation: ${rv} 3s infinite linear; + `:null,RD=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${me(n)}`,r],dashed:["dashed",`dashedColor${me(n)}`],bar1:["bar","bar1",`barColor${me(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${me(n)}`,r==="buffer"&&`color${me(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ue(o,TD,e)},oy=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Td(t.palette[e].main,.62):Cd(t.palette[e].main,.5),MD=ae("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:oy(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),PD=ae("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${me(r.color)}`]]}})(Qe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>{const r=oy(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),_D||{animation:`${rv} 3s infinite linear`}),ID=ae("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Z1}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Z1}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:kD||{animation:`${ev} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),AD=ae("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:oy(t,e),transition:`transform .${Z1}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:OD||{animation:`${tv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),DD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:l,valueBuffer:c,variant:d="indeterminate",...f}=n,g={...n,color:a,variant:d},u=RD(g),m=el(),y={},w={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&l!==void 0){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let x=l-100;m&&(x=-x),w.bar1.transform=`translateX(${x}%)`}if(d==="buffer"&&c!==void 0){let x=(c||0)-100;m&&(x=-x),w.bar2.transform=`translateX(${x}%)`}return L.jsxs(MD,{className:ye(u.root,o),ownerState:g,role:"progressbar",...y,ref:r,...f,children:[d==="buffer"?L.jsx(PD,{className:u.dashed,ownerState:g}):null,L.jsx(ID,{className:u.bar1,ownerState:g,style:w.bar1}),d==="determinate"?null:L.jsx(AD,{className:u.bar2,ownerState:g,style:w.bar2})]})});function ND(t){return qe("MuiLink",t)}const $D=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),LD=({theme:t,ownerState:e})=>{const r=e.color,n=xi(t,`palette.${r}.main`,!1)||xi(t,`palette.${r}`,!1)||e.color,o=xi(t,`palette.${r}.mainChannel`)||xi(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:It(n,.4)},c4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},BD=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,a={root:["root",`underline${me(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Ue(a,ND,e)},FD=ae(qn,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${me(r.underline)}`],r.component==="button"&&e.button]}})(Qe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:It(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:It(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:It(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$D.focusVisible}`]:{outline:"auto"}}}]}))),zD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiLink"}),o=jo(),{className:a,color:l="primary",component:c="a",onBlur:d,onFocus:f,TypographyClasses:g,underline:u="always",variant:m="inherit",sx:y,...w}=n,[x,E]=_.useState(!1),k=M=>{Ws(M.target)||E(!1),d&&d(M)},I=M=>{Ws(M.target)&&E(!0),f&&f(M)},O={...n,color:l,component:c,focusVisible:x,underline:u,variant:m},R=BD(O);return L.jsx(FD,{color:l,className:ye(R.root,a),classes:g,component:c,onBlur:k,onFocus:I,ref:r,ownerState:O,variant:m,...w,sx:[...c4[l]===void 0?[{color:l}]:[],...Array.isArray(y)?y:[y]],style:{...w.style,...u==="always"&&l!=="inherit"&&!c4[l]&&{"--Link-underlineColor":LD({theme:o,ownerState:O})}}})}),Ic=_.createContext({});function jD(t){return qe("MuiList",t)}We("MuiList",["root","padding","dense","subheader"]);const HD=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return Ue({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},jD,e)},qD=ae("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),WD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiList"}),{children:o,className:a,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f,...g}=n,u=_.useMemo(()=>({dense:c}),[c]),m={...n,component:l,dense:c,disablePadding:d},y=HD(m);return L.jsx(Ic.Provider,{value:u,children:L.jsxs(qD,{as:l,className:ye(y.root,a),ref:r,ownerState:m,...g,children:[f,o]})})});function UD(t){return qe("MuiListItemIcon",t)}const u4=We("MuiListItemIcon",["root","alignItemsFlexStart"]),XD=t=>{const{alignItems:e,classes:r}=t;return Ue({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},UD,r)},VD=ae("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Qe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),GD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,l=_.useContext(Ic),c={...n,alignItems:l.alignItems},d=XD(c);return L.jsx(VD,{className:ye(d.root,o),ownerState:c,ref:r,...a})});function KD(t){return qe("MuiListItemText",t)}const Ds=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),YD=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return Ue({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},KD,e)},JD=ae("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ds.primary}`]:e.primary},{[`& .${Ds.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Fw.root}:where(& .${Ds.primary})`]:{display:"block"},[`.${Fw.root}:where(& .${Ds.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),QD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:f,secondary:g,secondaryTypographyProps:u,slots:m={},slotProps:y={},...w}=n,{dense:x}=_.useContext(Ic);let E=d??o,k=g;const I={...n,disableTypography:l,inset:c,primary:!!E,secondary:!!k,dense:x},O=YD(I),R={slots:m,slotProps:{primary:f,secondary:u,...y}},[M,T]=ct("root",{className:ye(O.root,a),elementType:JD,externalForwardedProps:{...R,...w},ownerState:I,ref:r}),[P,N]=ct("primary",{className:O.primary,elementType:qn,externalForwardedProps:R,ownerState:I}),[D,C]=ct("secondary",{className:O.secondary,elementType:qn,externalForwardedProps:R,ownerState:I});return E!=null&&E.type!==qn&&!l&&(E=L.jsx(P,{variant:x?"body2":"body1",component:N?.variant?void 0:"span",...N,children:E})),k!=null&&k.type!==qn&&!l&&(k=L.jsx(D,{variant:"body2",color:"textSecondary",...C,children:k})),L.jsxs(M,{...T,children:[E,k]})});function om(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function p4(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function YE(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Ul(t,e,r,n,o,a){let l=!1,c=o(t,e,e?r:!1);for(;c;){if(c===t.firstChild){if(l)return!1;l=!0}const d=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!YE(c,a)||d)c=o(t,c,r);else return c.focus(),!0}return!1}const ZD=_.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:g,variant:u="selectedMenu",...m}=e,y=_.useRef(null),w=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zr(()=>{o&&y.current.focus()},[o]),_.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(O,{direction:R})=>{const M=!y.current.style.width;if(O.clientHeight{const R=y.current,M=O.key;if(O.ctrlKey||O.metaKey||O.altKey){g&&g(O);return}const P=en(R).activeElement;if(M==="ArrowDown")O.preventDefault(),Ul(R,P,f,d,om);else if(M==="ArrowUp")O.preventDefault(),Ul(R,P,f,d,p4);else if(M==="Home")O.preventDefault(),Ul(R,null,f,d,om);else if(M==="End")O.preventDefault(),Ul(R,null,f,d,p4);else if(M.length===1){const N=w.current,D=M.toLowerCase(),C=performance.now();N.keys.length>0&&(C-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&D!==N.keys[0]&&(N.repeating=!1)),N.lastTime=C,N.keys.push(D);const $=P&&!N.repeating&&YE(P,N);N.previousKeyMatched&&($||Ul(R,P,!1,d,om,N))?O.preventDefault():N.previousKeyMatched=!1}g&&g(O)},E=vr(y,r);let k=-1;_.Children.forEach(l,(O,R)=>{if(!_.isValidElement(O)){k===R&&(k+=1,k>=l.length&&(k=-1));return}O.props.disabled||(u==="selectedMenu"&&O.props.selected||k===-1)&&(k=R),k===R&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(k+=1,k>=l.length&&(k=-1))});const I=_.Children.map(l,(O,R)=>{if(R===k){const M={};return a&&(M.autoFocus=!0),O.props.tabIndex===void 0&&u==="selectedMenu"&&(M.tabIndex=0),_.cloneElement(O,M)}return O});return L.jsx(WD,{role:"menu",ref:E,className:c,onKeyDown:x,tabIndex:o?0:-1,...m,children:I})});function eN(t){return qe("MuiPopover",t)}We("MuiPopover",["root","paper"]);function d4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function f4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function h4(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function fp(t){return typeof t=="function"?t():t}const tN=t=>{const{classes:e}=t;return Ue({root:["root"],paper:["paper"]},eN,e)},rN=ae(GE,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),JE=ae(rl,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),nN=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:g,container:u,elevation:m=8,marginThreshold:y=16,open:w,PaperProps:x={},slots:E={},slotProps:k={},transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:O,transitionDuration:R="auto",TransitionProps:M={},disableScrollLock:T=!1,...P}=n,N=_.useRef(),D={...n,anchorOrigin:l,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:I,TransitionComponent:O,transitionDuration:R,TransitionProps:M},C=tN(D),$=_.useCallback(()=>{if(d==="anchorPosition")return c;const ke=fp(a),Ie=(ke&&ke.nodeType===1?ke:en(N.current).body).getBoundingClientRect();return{top:Ie.top+d4(Ie,l.vertical),left:Ie.left+f4(Ie,l.horizontal)}},[a,l.horizontal,l.vertical,c,d]),H=_.useCallback(ke=>({vertical:d4(ke,I.vertical),horizontal:f4(ke,I.horizontal)}),[I.horizontal,I.vertical]),q=_.useCallback(ke=>{const Le={width:ke.offsetWidth,height:ke.offsetHeight},Ie=H(Le);if(d==="none")return{top:null,left:null,transformOrigin:h4(Ie)};const nt=$();let Me=nt.top-Ie.vertical,Te=nt.left-Ie.horizontal;const ht=Me+Le.height,be=Te+Le.width,Ae=Xn(fp(a)),it=Ae.innerHeight-y,Ze=Ae.innerWidth-y;if(y!==null&&Meit){const Xe=ht-it;Me-=Xe,Ie.vertical+=Xe}if(y!==null&&TeZe){const Xe=be-Ze;Te-=Xe,Ie.horizontal+=Xe}return{top:`${Math.round(Me)}px`,left:`${Math.round(Te)}px`,transformOrigin:h4(Ie)}},[a,d,$,H,y]),[U,W]=_.useState(w),K=_.useCallback(()=>{const ke=N.current;if(!ke)return;const Le=q(ke);Le.top!==null&&ke.style.setProperty("top",Le.top),Le.left!==null&&(ke.style.left=Le.left),ke.style.transformOrigin=Le.transformOrigin,W(!0)},[q]);_.useEffect(()=>(T&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[a,T,K]);const re=()=>{K()},Z=()=>{W(!1)};_.useEffect(()=>{w&&K()}),_.useImperativeHandle(o,()=>w?{updatePosition:()=>{K()}}:null,[w,K]),_.useEffect(()=>{if(!w)return;const ke=kd(()=>{K()}),Le=Xn(fp(a));return Le.addEventListener("resize",ke),()=>{ke.clear(),Le.removeEventListener("resize",ke)}},[a,w,K]);let V=R;const ee={slots:{transition:O,...E},slotProps:{transition:M,paper:x,...k}},[F,J]=ct("transition",{elementType:Jp,externalForwardedProps:ee,ownerState:D,getSlotProps:ke=>({...ke,onEntering:(Le,Ie)=>{ke.onEntering?.(Le,Ie),re()},onExited:Le=>{ke.onExited?.(Le),Z()}}),additionalProps:{appear:!0,in:w}});R==="auto"&&!F.muiSupportAuto&&(V=void 0);const pe=u||(a?en(fp(a)).body:void 0),[de,{slots:ie,slotProps:fe,...Se}]=ct("root",{ref:r,elementType:rN,externalForwardedProps:{...ee,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:_E(typeof k.backdrop=="function"?k.backdrop(D):k.backdrop,{invisible:!0})},container:pe,open:w},ownerState:D,className:ye(C.root,g)}),[Ce,Oe]=ct("paper",{ref:N,className:C.paper,elementType:JE,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:U?void 0:{opacity:0}},ownerState:D});return L.jsx(de,{...Se,...!G1(de)&&{slots:ie,slotProps:fe,disableScrollLock:T},children:L.jsx(F,{...J,timeout:V,children:L.jsx(Ce,{...Oe,children:f})})})});function oN(t){return qe("MuiMenu",t)}We("MuiMenu",["root","paper","list"]);const iN={vertical:"top",horizontal:"right"},aN={vertical:"top",horizontal:"left"},sN=t=>{const{classes:e}=t;return Ue({root:["root"],paper:["paper"],list:["list"]},oN,e)},lN=ae(nN,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),cN=ae(JE,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uN=ae(ZD,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),QE=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:g,PaperProps:u={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:w,...x}={},variant:E="selectedMenu",slots:k={},slotProps:I={},...O}=n,R=el(),M={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:d,onEntering:w,PaperProps:u,transitionDuration:y,TransitionProps:x,variant:E},T=sN(M),P=o&&!c&&g,N=_.useRef(null),D=(V,ee)=>{N.current&&N.current.adjustStyleForScrollbar(V,{direction:R?"rtl":"ltr"}),w&&w(V,ee)},C=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let $=-1;_.Children.map(a,(V,ee)=>{_.isValidElement(V)&&(V.props.disabled||(E==="selectedMenu"&&V.props.selected||$===-1)&&($=ee))});const H={slots:k,slotProps:{list:d,transition:x,paper:u,...I}},q=pa({elementType:k.root,externalSlotProps:I.root,ownerState:M,className:[T.root,l]}),[U,W]=ct("paper",{className:T.paper,elementType:cN,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:M}),[K,re]=ct("list",{className:ye(T.list,d.className),elementType:uN,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:V=>({...V,onKeyDown:ee=>{C(ee),V.onKeyDown?.(ee)}}),ownerState:M}),Z=typeof H.slotProps.transition=="function"?H.slotProps.transition(M):H.slotProps.transition;return L.jsx(lN,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?iN:aN,slots:{root:k.root,paper:U,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:q,paper:W,backdrop:typeof I.backdrop=="function"?I.backdrop(M):I.backdrop,transition:{...Z,onEntering:(...V)=>{D(...V),Z?.onEntering?.(...V)}}},open:g,ref:r,transitionDuration:y,ownerState:M,...O,classes:m,children:L.jsx(K,{actions:N,autoFocus:o&&($===-1||c),autoFocusItem:P,variant:E,...re,children:a})})});function pN(t){return qe("MuiMenuItem",t)}const Xl=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),dN=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},fN=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:l}=t,d=Ue({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},pN,l);return{...l,...d}},hN=ae(Pi,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:dN})(Qe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:It(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Xl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:It(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Xl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:It(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:It(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Xl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Xl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${i4.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${i4.inset}`]:{marginLeft:52},[`& .${Ds.root}`]:{marginTop:0,marginBottom:0},[`& .${Ds.inset}`]:{paddingLeft:36},[`& .${u4.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${u4.root} svg`]:{fontSize:"1.25rem"}}}]}))),ur=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:f,role:g="menuitem",tabIndex:u,className:m,...y}=n,w=_.useContext(Ic),x=_.useMemo(()=>({dense:l||w.dense||!1,disableGutters:d}),[w.dense,l,d]),E=_.useRef(null);Zr(()=>{o&&E.current&&E.current.focus()},[o]);const k={...n,dense:x.dense,divider:c,disableGutters:d},I=fN(n),O=vr(E,r);let R;return n.disabled||(R=u!==void 0?u:-1),L.jsx(Ic.Provider,{value:x,children:L.jsx(hN,{ref:O,role:g,tabIndex:R,component:a,focusVisibleClassName:ye(I.focusVisible,f),className:ye(I.root,m),...y,ownerState:k,classes:I})})});function mN(t){return qe("MuiNativeSelect",t)}const iy=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),gN=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,a&&"iconOpen",n&&"disabled"]};return Ue(c,mN,e)},ZE=ae("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${iy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),vN=ae(ZE,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yr,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${iy.multiple}`]:e.multiple}]}})({}),eC=ae("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${iy.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),yN=ae(eC,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),bN=_.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:l,inputRef:c,variant:d="standard",...f}=e,g={...e,disabled:o,variant:d,error:a},u=gN(g);return L.jsxs(_.Fragment,{children:[L.jsx(vN,{ownerState:g,className:ye(u.select,n),disabled:o,ref:c||r,...f}),e.multiple?null:L.jsx(yN,{as:l,ownerState:g,className:u.icon})]})});var m4;const xN=ae("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:yr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),wN=ae("legend",{name:"MuiNotchedOutlined",shouldForwardProp:yr})(Qe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function SN(t){const{children:e,classes:r,className:n,label:o,notched:a,...l}=t,c=o!=null&&o!=="",d={...t,notched:a,withLabel:c};return L.jsx(xN,{"aria-hidden":!0,className:n,ownerState:d,...l,children:L.jsx(wN,{ownerState:d,children:c?L.jsx("span",{children:o}):m4||(m4=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const EN=t=>{const{classes:e}=t,n=Ue({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},QP,e);return{...e,...n}},CN=ae(Id,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Md})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${no.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${no.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${no.focused} .${no.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(rr()).map(([r])=>({props:{color:r},style:{[`&.${no.focused} .${no.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${no.error} .${no.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${no.disabled} .${no.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),TN=ae(SN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),kN=ae(Ad,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pd})(Qe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),ay=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:f,slots:g={},slotProps:u={},type:m="text",...y}=n,w=EN(n),x=xo(),E=Ai({props:n,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:a,hiddenLabel:E.hiddenLabel,multiline:d,size:E.size,type:m},I=g.root??o.Root??CN,O=g.input??o.Input??kN,[R,M]=ct("notchedOutline",{elementType:TN,className:w.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:u},additionalProps:{label:c!=null&&c!==""&&E.required?L.jsxs(_.Fragment,{children:[c," ","*"]}):c}});return L.jsx(ry,{slots:{root:I,input:O},slotProps:u,renderSuffix:T=>L.jsx(R,{...M,notched:typeof f<"u"?f:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:a,inputComponent:l,multiline:d,ref:r,type:m,...y,classes:{...w,notchedOutline:null}})});ay.muiName="Input";const ON=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),_N=He(L.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),RN=ae("span",{name:"MuiRadioButtonIcon",shouldForwardProp:yr})({position:"relative",display:"flex"}),MN=ae(ON,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),PN=ae(_N,{name:"MuiRadioButtonIcon"})(Qe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function tC(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return L.jsxs(RN,{className:r.root,ownerState:o,children:[L.jsx(MN,{fontSize:n,className:r.background,ownerState:o}),L.jsx(PN,{fontSize:n,className:r.dot,ownerState:o})]})}const IN=_.createContext(void 0);function AN(){return _.useContext(IN)}function DN(t){return qe("MuiRadio",t)}const g4=We("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),NN=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${me(r)}`,n!=="medium"&&`size${me(n)}`]};return{...e,...Ue(o,DN,e)}},$N=ae(VE,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${me(r.size)}`],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${g4.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${g4.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function LN(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const BN=L.jsx(tC,{checked:!0}),FN=L.jsx(tC,{}),Dt=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=BN,color:l="primary",icon:c=FN,name:d,onChange:f,size:g="medium",className:u,disabled:m,disableRipple:y=!1,slots:w={},slotProps:x={},inputProps:E,...k}=n,I=xo();let O=m;I&&typeof O>"u"&&(O=I.disabled),O??=!1;const R={...n,disabled:O,disableRipple:y,color:l,size:g},M=NN(R),T=AN();let P=o;const N=N1(f,T&&T.onChange);let D=d;T&&(typeof P>"u"&&(P=LN(T.value,n.value)),typeof D>"u"&&(D=T.name));const C=x.input??E,[$,H]=ct("root",{ref:r,elementType:$N,className:ye(M.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:w,slotProps:x,...k},getSlotProps:q=>({...q,onChange:(U,...W)=>{q.onChange?.(U,...W),N(U,...W)}}),ownerState:R,additionalProps:{type:"radio",icon:_.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:_.cloneElement(a,{fontSize:a.props.fontSize??g}),disabled:O,name:D,checked:P,slots:w,slotProps:{input:typeof C=="function"?C(R):C}}});return L.jsx($,{...H,classes:M})});function rC(t){return qe("MuiSelect",t)}const Vl=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var v4;const zN=ae(ZE,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Vl.select}`]:e.select},{[`&.${Vl.select}`]:e[r.variant]},{[`&.${Vl.error}`]:e.error},{[`&.${Vl.multiple}`]:e.multiple}]}})({[`&.${Vl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jN=ae(eC,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),HN=ae("input",{shouldForwardProp:t=>OE(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function y4(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function qN(t){return t==null||typeof t=="string"&&!t.trim()}const WN=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ue(c,rC,e)},UN=_.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:g,disabled:u,displayEmpty:m,error:y=!1,IconComponent:w,inputRef:x,labelId:E,MenuProps:k={},multiple:I,name:O,onBlur:R,onChange:M,onClose:T,onFocus:P,onOpen:N,open:D,readOnly:C,renderValue:$,required:H,SelectDisplayProps:q={},tabIndex:U,type:W,value:K,variant:re="standard",...Z}=e,[V,ee]=Wp({controlled:K,default:g,name:"Select"}),[F,J]=Wp({controlled:D,default:f,name:"Select"}),pe=_.useRef(null),de=_.useRef(null),[ie,fe]=_.useState(null),{current:Se}=_.useRef(D!=null),[Ce,Oe]=_.useState(),ke=vr(r,x),Le=_.useCallback(xe=>{de.current=xe,xe&&fe(xe)},[]),Ie=ie?.parentNode;_.useImperativeHandle(ke,()=>({focus:()=>{de.current.focus()},node:pe.current,value:V}),[V]),_.useEffect(()=>{f&&F&&ie&&!Se&&(Oe(l?null:Ie.clientWidth),de.current.focus())},[ie,l]),_.useEffect(()=>{a&&de.current.focus()},[a]),_.useEffect(()=>{if(!E)return;const xe=en(de.current).getElementById(E);if(xe){const lt=()=>{getSelection().isCollapsed&&de.current.focus()};return xe.addEventListener("click",lt),()=>{xe.removeEventListener("click",lt)}}},[E]);const nt=(xe,lt)=>{xe?N&&N(lt):T&&T(lt),Se||(Oe(l?null:Ie.clientWidth),J(xe))},Me=xe=>{xe.button===0&&(xe.preventDefault(),de.current.focus(),nt(!0,xe))},Te=xe=>{nt(!1,xe)},ht=_.Children.toArray(c),be=xe=>{const lt=ht.find(St=>St.props.value===xe.target.value);lt!==void 0&&(ee(lt.props.value),M&&M(xe,lt))},Ae=xe=>lt=>{let St;if(lt.currentTarget.hasAttribute("tabindex")){if(I){St=Array.isArray(V)?V.slice():[];const pr=V.indexOf(xe.props.value);pr===-1?St.push(xe.props.value):St.splice(pr,1)}else St=xe.props.value;if(xe.props.onClick&&xe.props.onClick(lt),V!==St&&(ee(St),M)){const pr=lt.nativeEvent||lt,dr=new pr.constructor(pr.type,pr);Object.defineProperty(dr,"target",{writable:!0,value:{value:St,name:O}}),M(dr,xe)}I||nt(!1,lt)}},it=xe=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(xe.key)&&(xe.preventDefault(),nt(!0,xe))},Ze=ie!==null&&F,Xe=xe=>{!Ze&&R&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:V,name:O}}),R(xe))};delete Z["aria-invalid"];let ve,at;const Ye=[];let ne=!1;(Yp({value:V})||m)&&($?ve=$(V):ne=!0);const ge=ht.map(xe=>{if(!_.isValidElement(xe))return null;let lt;if(I){if(!Array.isArray(V))throw new Error(Bo(2));lt=V.some(St=>y4(St,xe.props.value)),lt&&ne&&Ye.push(xe.props.children)}else lt=y4(V,xe.props.value),lt&&ne&&(at=xe.props.children);return _.cloneElement(xe,{"aria-selected":lt?"true":"false",onClick:Ae(xe),onKeyUp:St=>{St.key===" "&&St.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp(St)},role:"option",selected:lt,value:void 0,"data-value":xe.props.value})});ne&&(I?Ye.length===0?ve=null:ve=Ye.reduce((xe,lt,St)=>(xe.push(lt),St{const{classes:e}=t,n=Ue({root:["root"]},rC,e);return{...e,...n}},sy={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>yr(t)&&t!=="variant",slot:"Root"},VN=ae(lo,sy)(""),GN=ae(ay,sy)(""),KN=ae(ny,sy)(""),po=_.forwardRef(function(e,r){const n=Ke({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:g=eI,id:u,input:m,inputProps:y,label:w,labelId:x,MenuProps:E,multiple:k=!1,native:I=!1,onClose:O,onOpen:R,open:M,renderValue:T,SelectDisplayProps:P,variant:N="outlined",...D}=n,C=I?bN:UN,$=xo(),H=Ai({props:n,muiFormControl:$,states:["variant","error"]}),q=H.variant||N,U={...n,variant:q,classes:l},W=XN(U),{root:K,...re}=W,Z=m||{standard:L.jsx(VN,{ownerState:U}),outlined:L.jsx(GN,{label:w,ownerState:U}),filled:L.jsx(KN,{ownerState:U})}[q],V=vr(r,Zs(Z));return L.jsx(_.Fragment,{children:_.cloneElement(Z,{inputComponent:C,inputProps:{children:a,error:H.error,IconComponent:g,variant:q,type:void 0,multiple:k,...I?{id:u}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:x,MenuProps:E,onClose:O,onOpen:R,open:M,renderValue:T,SelectDisplayProps:{id:u,...P}},...y,classes:y?Dr(re,y.classes):re,...m?m.props.inputProps:{}},...(k&&I||f)&&q==="outlined"?{notched:!0}:{},ref:V,className:ye(Z.props.className,c,W.root),...!m&&{variant:q},...D})})});po.muiName="Select";function YN(t){return qe("MuiTooltip",t)}const Qt=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function JN(t){return Math.round(t*1e5)/1e5}const QN=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${me(a.split("-")[0])}`],arrow:["arrow"]};return Ue(l,YN,e)},ZN=ae(WE,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Qe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Qt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),e$=ae("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${me(r.placement.split("-")[0])}`]]}})(Qe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:It(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Qt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Qt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${JN(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),t$=ae("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Qe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:It(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hp=!1;const b4=new Od;let Gl={x:0,y:0};function mp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const $p=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:l,components:c={},componentsProps:d={},describeChild:f=!1,disableFocusListener:g=!1,disableHoverListener:u=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:w=100,enterNextDelay:x=0,enterTouchDelay:E=700,followCursor:k=!1,id:I,leaveDelay:O=0,leaveTouchDelay:R=1500,onClose:M,onOpen:T,open:P,placement:N="bottom",PopperComponent:D,PopperProps:C={},slotProps:$={},slots:H={},title:q,TransitionComponent:U,TransitionProps:W,...K}=n,re=_.isValidElement(a)?a:L.jsx("span",{children:a}),Z=jo(),V=el(),[ee,F]=_.useState(),[J,pe]=_.useState(null),de=_.useRef(!1),ie=m||k,fe=As(),Se=As(),Ce=As(),Oe=As(),[ke,Le]=Wp({controlled:P,default:!1,name:"Tooltip",state:"open"});let Ie=ke;const nt=va(I),Me=_.useRef(),Te=On(()=>{Me.current!==void 0&&(document.body.style.WebkitUserSelect=Me.current,Me.current=void 0),Oe.clear()});_.useEffect(()=>Te,[Te]);const ht=rt=>{b4.clear(),hp=!0,Le(!0),T&&!Ie&&T(rt)},be=On(rt=>{b4.start(800+O,()=>{hp=!1}),Le(!1),M&&Ie&&M(rt),fe.start(Z.transitions.duration.shortest,()=>{de.current=!1})}),Ae=rt=>{de.current&&rt.type!=="touchstart"||(ee&&ee.removeAttribute("title"),Se.clear(),Ce.clear(),w||hp&&x?Se.start(hp?x:w,()=>{ht(rt)}):ht(rt))},it=rt=>{Se.clear(),Ce.start(O,()=>{be(rt)})},[,Ze]=_.useState(!1),Xe=rt=>{Ws(rt.target)||(Ze(!1),it(rt))},ve=rt=>{ee||F(rt.currentTarget),Ws(rt.target)&&(Ze(!0),Ae(rt))},at=rt=>{de.current=!0;const Fr=re.props;Fr.onTouchStart&&Fr.onTouchStart(rt)},Ye=rt=>{at(rt),Ce.clear(),fe.clear(),Te(),Me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Oe.start(E,()=>{document.body.style.WebkitUserSelect=Me.current,Ae(rt)})},ne=rt=>{re.props.onTouchEnd&&re.props.onTouchEnd(rt),Te(),Ce.start(R,()=>{be(rt)})};_.useEffect(()=>{if(!Ie)return;function rt(Fr){Fr.key==="Escape"&&be(Fr)}return document.addEventListener("keydown",rt),()=>{document.removeEventListener("keydown",rt)}},[be,Ie]);const ge=vr(Zs(re),F,r);!q&&q!==0&&(Ie=!1);const je=_.useRef(),Be=rt=>{const Fr=re.props;Fr.onMouseMove&&Fr.onMouseMove(rt),Gl={x:rt.clientX,y:rt.clientY},je.current&&je.current.update()},st={},vt=typeof q=="string";f?(st.title=!Ie&&vt&&!u?q:null,st["aria-describedby"]=Ie?nt:null):(st["aria-label"]=vt?q:null,st["aria-labelledby"]=Ie&&!vt?nt:null);const Fe={...st,...K,...re.props,className:ye(K.className,re.props.className),onTouchStart:at,ref:ge,...k?{onMouseMove:Be}:{}},Ft={};y||(Fe.onTouchStart=Ye,Fe.onTouchEnd=ne),u||(Fe.onMouseOver=mp(Ae,Fe.onMouseOver),Fe.onMouseLeave=mp(it,Fe.onMouseLeave),ie||(Ft.onMouseOver=Ae,Ft.onMouseLeave=it)),g||(Fe.onFocus=mp(ve,Fe.onFocus),Fe.onBlur=mp(Xe,Fe.onBlur),ie||(Ft.onFocus=ve,Ft.onBlur=Xe));const wt={...n,isRtl:V,arrow:o,disableInteractive:ie,placement:N,PopperComponentProp:D,touch:de.current},xe=typeof $.popper=="function"?$.popper(wt):$.popper,lt=_.useMemo(()=>{let rt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return C.popperOptions?.modifiers&&(rt=rt.concat(C.popperOptions.modifiers)),xe?.popperOptions?.modifiers&&(rt=rt.concat(xe.popperOptions.modifiers)),{...C.popperOptions,...xe?.popperOptions,modifiers:rt}},[J,C.popperOptions,xe?.popperOptions]),St=QN(wt),pr=typeof $.transition=="function"?$.transition(wt):$.transition,dr={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...H},slotProps:{arrow:$.arrow??d.arrow,popper:{...C,...xe??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...W,...pr??d.transition}}},[Br,Eo]=ct("popper",{elementType:ZN,externalForwardedProps:dr,ownerState:wt,className:ye(St.popper,C?.className)}),[Kn,mn]=ct("transition",{elementType:Jp,externalForwardedProps:dr,ownerState:wt}),[ka,Oa]=ct("tooltip",{elementType:e$,className:St.tooltip,externalForwardedProps:dr,ownerState:wt}),[_a,Ra]=ct("arrow",{elementType:t$,className:St.arrow,externalForwardedProps:dr,ownerState:wt,ref:pe});return L.jsxs(_.Fragment,{children:[_.cloneElement(re,Fe),L.jsx(Br,{as:D??WE,placement:N,anchorEl:k?{getBoundingClientRect:()=>({top:Gl.y,left:Gl.x,right:Gl.x,bottom:Gl.y,width:0,height:0})}:ee,popperRef:je,open:ee?Ie:!1,id:nt,transition:!0,...Ft,...Eo,popperOptions:lt,children:({TransitionProps:rt})=>L.jsx(Kn,{timeout:Z.transitions.duration.shorter,...rt,...mn,children:L.jsxs(ka,{...Oa,children:[q,o?L.jsx(_a,{...Ra}):null]})})})]})});function r$(t){return qe("MuiTab",t)}const En=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),n$=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:l,selected:c,disabled:d}=t,f={root:["root",a&&l&&"labelIcon",`textColor${me(r)}`,n&&"fullWidth",o&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return Ue(f,r$,e)},o$=ae(Pi,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${me(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${En.iconWrapper}`]:e.iconWrapper},{[`& .${En.icon}`]:e.icon}]}})(Qe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${En.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${En.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${En.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${En.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${En.selected}`]:{opacity:1},[`&.${En.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${En.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${En.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${En.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${En.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),is=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:f="top",indicator:g,label:u,onChange:m,onClick:y,onFocus:w,selected:x,selectionFollowsFocus:E,textColor:k="inherit",value:I,wrapped:O=!1,...R}=n,M={...n,disabled:a,disableFocusRipple:l,selected:x,icon:!!d,iconPosition:f,label:!!u,fullWidth:c,textColor:k,wrapped:O},T=n$(M),P=d&&u&&_.isValidElement(d)?_.cloneElement(d,{className:ye(T.icon,d.props.className)}):d,N=C=>{!x&&m&&m(C,I),y&&y(C)},D=C=>{E&&!x&&m&&m(C,I),w&&w(C)};return L.jsxs(o$,{focusRipple:!l,className:ye(T.root,o),ref:r,role:"tab","aria-selected":x,disabled:a,onClick:N,onFocus:D,ownerState:M,tabIndex:x?0:-1,...R,children:[f==="top"||f==="start"?L.jsxs(_.Fragment,{children:[P,u]}):L.jsxs(_.Fragment,{children:[u,P]}),g]})});function i$(t){return qe("MuiToolbar",t)}We("MuiToolbar",["root","gutters","regular","dense"]);const a$=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Ue({root:["root",!r&&"gutters",n]},i$,e)},s$=ae("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),ly=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:l=!1,variant:c="regular",...d}=n,f={...n,component:a,disableGutters:l,variant:c},g=a$(f);return L.jsx(s$,{as:a,className:ye(g.root,o),ref:r,ownerState:f,...d})}),l$=He(L.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),c$=He(L.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function u$(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function p$(t,e,r,n={},o=()=>{}){const{ease:a=u$,duration:l=300}=n;let c=null;const d=e[t];let f=!1;const g=()=>{f=!0},u=m=>{if(f){o(new Error("Animation cancelled"));return}c===null&&(c=m);const y=Math.min(1,(m-c)/l);if(e[t]=a(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(u)};return d===r?(o(new Error("Element already at target position")),g):(requestAnimationFrame(u),g)}const d$={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function f$(t){const{onChange:e,...r}=t,n=_.useRef(),o=_.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return Zr(()=>{const l=kd(()=>{const d=n.current;a(),d!==n.current&&e(n.current)}),c=Xn(o.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[e]),_.useEffect(()=>{a(),e(n.current)},[e]),L.jsx("div",{style:d$,...r,ref:o})}function h$(t){return qe("MuiTabScrollButton",t)}const m$=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),g$=t=>{const{classes:e,orientation:r,disabled:n}=t;return Ue({root:["root",r,n&&"disabled"]},h$,e)},v$=ae(Pi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${m$.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),y$=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:l={},direction:c,orientation:d,disabled:f,...g}=n,u=el(),m={isRtl:u,...n},y=g$(m),w=a.StartScrollButtonIcon??l$,x=a.EndScrollButtonIcon??c$,E=pa({elementType:w,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),k=pa({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return L.jsx(v$,{component:"div",className:ye(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...g,style:{...g.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:c==="left"?L.jsx(w,{...E}):L.jsx(x,{...k})})});function b$(t){return qe("MuiTabs",t)}const im=We("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),x4=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,w4=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,gp=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},x$=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:l,scrollButtonsHideMobile:c,classes:d}=t;return Ue({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},b$,d)},w$=ae("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${im.scrollButtons}`]:e.scrollButtons},{[`& .${im.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Qe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${im.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),S$=ae("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),E$=ae("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),C$=ae("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Qe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),T$=ae(f$)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),S4={},k$=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTabs"}),o=jo(),a=el(),{"aria-label":l,"aria-labelledby":c,action:d,centered:f=!1,children:g,className:u,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:w="primary",onChange:x,orientation:E="horizontal",ScrollButtonComponent:k,scrollButtons:I="auto",selectionFollowsFocus:O,slots:R={},slotProps:M={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:N="primary",value:D,variant:C="standard",visibleScrollbar:$=!1,...H}=n,q=C==="scrollable",U=E==="vertical",W=U?"scrollTop":"scrollLeft",K=U?"top":"left",re=U?"bottom":"right",Z=U?"clientHeight":"clientWidth",V=U?"height":"width",ee={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:w,orientation:E,vertical:U,scrollButtons:I,textColor:N,variant:C,visibleScrollbar:$,fixed:!q,hideScrollbar:q&&!$,scrollableX:q&&!U,scrollableY:q&&U,centered:f&&!q,scrollButtonsHideMobile:!y},F=x$(ee),J=pa({elementType:R.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:ee}),pe=pa({elementType:R.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:ee}),[de,ie]=_.useState(!1),[fe,Se]=_.useState(S4),[Ce,Oe]=_.useState(!1),[ke,Le]=_.useState(!1),[Ie,nt]=_.useState(!1),[Me,Te]=_.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,be=_.useRef(null),Ae=_.useRef(null),it={slots:R,slotProps:{indicator:T,scrollButton:P,...M}},Ze=()=>{const _e=be.current;let ze;if(_e){const dt=_e.getBoundingClientRect();ze={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollWidth:_e.scrollWidth,top:dt.top,bottom:dt.bottom,left:dt.left,right:dt.right}}let yt;if(_e&&D!==!1){const dt=Ae.current.children;if(dt.length>0){const Gt=dt[ht.get(D)];yt=Gt?Gt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:yt}},Xe=On(()=>{const{tabsMeta:_e,tabMeta:ze}=Ze();let yt=0,dt;U?(dt="top",ze&&_e&&(yt=ze.top-_e.top+_e.scrollTop)):(dt=a?"right":"left",ze&&_e&&(yt=(a?-1:1)*(ze[dt]-_e[dt]+_e.scrollLeft)));const Gt={[dt]:yt,[V]:ze?ze[V]:0};if(typeof fe[dt]!="number"||typeof fe[V]!="number")Se(Gt);else{const Cr=Math.abs(fe[dt]-Gt[dt]),gn=Math.abs(fe[V]-Gt[V]);(Cr>=1||gn>=1)&&Se(Gt)}}),ve=(_e,{animation:ze=!0}={})=>{ze?p$(W,be.current,_e,{duration:o.transitions.duration.standard}):be.current[W]=_e},at=_e=>{let ze=be.current[W];U?ze+=_e:ze+=_e*(a?-1:1),ve(ze)},Ye=()=>{const _e=be.current[Z];let ze=0;const yt=Array.from(Ae.current.children);for(let dt=0;dt_e){dt===0&&(ze=_e);break}ze+=Gt[Z]}return ze},ne=()=>{at(-1*Ye())},ge=()=>{at(Ye())},[je,{onChange:Be,...st}]=ct("scrollbar",{className:ye(F.scrollableX,F.hideScrollbar),elementType:T$,shouldForwardComponentProp:!0,externalForwardedProps:it,ownerState:ee}),vt=_.useCallback(_e=>{Be?.(_e),Te({overflow:null,scrollbarWidth:_e})},[Be]),[Fe,Ft]=ct("scrollButtons",{className:ye(F.scrollButtons,P.className),elementType:y$,externalForwardedProps:it,ownerState:ee,additionalProps:{orientation:E,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:J,endScrollButtonIcon:pe}}}),wt=()=>{const _e={};_e.scrollbarSizeListener=q?L.jsx(je,{...st,onChange:vt}):null;const yt=q&&(I==="auto"&&(Ce||ke)||I===!0);return _e.scrollButtonStart=yt?L.jsx(Fe,{direction:a?"right":"left",onClick:ne,disabled:!Ce,...Ft}):null,_e.scrollButtonEnd=yt?L.jsx(Fe,{direction:a?"left":"right",onClick:ge,disabled:!ke,...Ft}):null,_e},xe=On(_e=>{const{tabsMeta:ze,tabMeta:yt}=Ze();if(!(!yt||!ze)){if(yt[K]ze[re]){const dt=ze[W]+(yt[re]-ze[re]);ve(dt,{animation:_e})}}}),lt=On(()=>{q&&I!==!1&&nt(!Ie)});_.useEffect(()=>{const _e=kd(()=>{be.current&&Xe()});let ze;const yt=Cr=>{Cr.forEach(gn=>{gn.removedNodes.forEach(Yn=>{ze?.unobserve(Yn)}),gn.addedNodes.forEach(Yn=>{ze?.observe(Yn)})}),_e(),lt()},dt=Xn(be.current);dt.addEventListener("resize",_e);let Gt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(_e),Array.from(Ae.current.children).forEach(Cr=>{ze.observe(Cr)})),typeof MutationObserver<"u"&&(Gt=new MutationObserver(yt),Gt.observe(Ae.current,{childList:!0})),()=>{_e.clear(),dt.removeEventListener("resize",_e),Gt?.disconnect(),ze?.disconnect()}},[Xe,lt]),_.useEffect(()=>{const _e=Array.from(Ae.current.children),ze=_e.length;if(typeof IntersectionObserver<"u"&&ze>0&&q&&I!==!1){const yt=_e[0],dt=_e[ze-1],Gt={root:be.current,threshold:.99},Cr=sl=>{Oe(!sl[0].isIntersecting)},gn=new IntersectionObserver(Cr,Gt);gn.observe(yt);const Yn=sl=>{Le(!sl[0].isIntersecting)},Ma=new IntersectionObserver(Yn,Gt);return Ma.observe(dt),()=>{gn.disconnect(),Ma.disconnect()}}},[q,I,Ie,g?.length]),_.useEffect(()=>{ie(!0)},[]),_.useEffect(()=>{Xe()}),_.useEffect(()=>{xe(S4!==fe)},[xe,fe]),_.useImperativeHandle(d,()=>({updateIndicator:Xe,updateScrollButtons:lt}),[Xe,lt]);const[St,pr]=ct("indicator",{className:ye(F.indicator,T.className),elementType:C$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:fe}}),dr=L.jsx(St,{...pr});let Br=0;const Eo=_.Children.map(g,_e=>{if(!_.isValidElement(_e))return null;const ze=_e.props.value===void 0?Br:_e.props.value;ht.set(ze,Br);const yt=ze===D;return Br+=1,_.cloneElement(_e,{fullWidth:C==="fullWidth",indicator:yt&&!de&&dr,selected:yt,selectionFollowsFocus:O,onChange:x,textColor:N,value:ze,...Br===1&&D===!1&&!_e.props.tabIndex?{tabIndex:0}:{}})}),Kn=_e=>{if(_e.altKey||_e.shiftKey||_e.ctrlKey||_e.metaKey)return;const ze=Ae.current,yt=en(ze).activeElement;if(yt.getAttribute("role")!=="tab")return;let Gt=E==="horizontal"?"ArrowLeft":"ArrowUp",Cr=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&a&&(Gt="ArrowRight",Cr="ArrowLeft"),_e.key){case Gt:_e.preventDefault(),gp(ze,yt,w4);break;case Cr:_e.preventDefault(),gp(ze,yt,x4);break;case"Home":_e.preventDefault(),gp(ze,null,x4);break;case"End":_e.preventDefault(),gp(ze,null,w4);break}},mn=wt(),[ka,Oa]=ct("root",{ref:r,className:ye(F.root,u),elementType:w$,externalForwardedProps:{...it,...H,component:m},ownerState:ee}),[_a,Ra]=ct("scroller",{ref:be,className:F.scroller,elementType:S$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:{overflow:Me.overflow,[U?`margin${a?"Left":"Right"}`:"marginBottom"]:$?void 0:-Me.scrollbarWidth}}}),[rt,Fr]=ct("list",{ref:Ae,className:ye(F.list,F.flexContainer),elementType:E$,externalForwardedProps:it,ownerState:ee,getSlotProps:_e=>({..._e,onKeyDown:ze=>{Kn(ze),_e.onKeyDown?.(ze)}})});return L.jsxs(ka,{...Oa,children:[mn.scrollButtonStart,mn.scrollbarSizeListener,L.jsxs(_a,{...Ra,children:[L.jsx(rt,{"aria-label":l,"aria-labelledby":c,"aria-orientation":E==="vertical"?"vertical":null,role:"tablist",...Fr,children:Eo}),de&&dr]}),mn.scrollButtonEnd]})});function O$(t){return qe("MuiTextField",t)}We("MuiTextField",["root"]);const _$={standard:lo,filled:ny,outlined:ay},R$=t=>{const{classes:e}=t;return Ue({root:["root"]},O$,e)},M$=ae(ms,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Ar=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:l,className:c,color:d="primary",defaultValue:f,disabled:g=!1,error:u=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:w,id:x,InputLabelProps:E,inputProps:k,InputProps:I,inputRef:O,label:R,maxRows:M,minRows:T,multiline:P=!1,name:N,onBlur:D,onChange:C,onFocus:$,placeholder:H,required:q=!1,rows:U,select:W=!1,SelectProps:K,slots:re={},slotProps:Z={},type:V,value:ee,variant:F="outlined",...J}=n,pe={...n,autoFocus:a,color:d,disabled:g,error:u,fullWidth:y,multiline:P,required:q,select:W,variant:F},de=R$(pe),ie=va(x),fe=w&&ie?`${ie}-helper-text`:void 0,Se=R&&ie?`${ie}-label`:void 0,Ce=_$[F],Oe={slots:re,slotProps:{input:I,inputLabel:E,htmlInput:k,formHelperText:m,select:K,...Z}},ke={},Le=Oe.slotProps.inputLabel;F==="outlined"&&(Le&&typeof Le.shrink<"u"&&(ke.notched=Le.shrink),ke.label=R),W&&((!K||!K.native)&&(ke.id=void 0),ke["aria-describedby"]=void 0);const[Ie,nt]=ct("root",{elementType:M$,shouldForwardComponentProp:!0,externalForwardedProps:{...Oe,...J},ownerState:pe,className:ye(de.root,c),ref:r,additionalProps:{disabled:g,error:u,fullWidth:y,required:q,color:d,variant:F}}),[Me,Te]=ct("input",{elementType:Ce,externalForwardedProps:Oe,additionalProps:ke,ownerState:pe}),[ht,be]=ct("inputLabel",{elementType:Np,externalForwardedProps:Oe,ownerState:pe}),[Ae,it]=ct("htmlInput",{elementType:"input",externalForwardedProps:Oe,ownerState:pe}),[Ze,Xe]=ct("formHelperText",{elementType:pD,externalForwardedProps:Oe,ownerState:pe}),[ve,at]=ct("select",{elementType:po,externalForwardedProps:Oe,ownerState:pe}),Ye=L.jsx(Me,{"aria-describedby":fe,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:y,multiline:P,name:N,rows:U,maxRows:M,minRows:T,type:V,value:ee,id:ie,inputRef:O,onBlur:D,onChange:C,onFocus:$,placeholder:H,inputProps:it,slots:{input:re.htmlInput?Ae:void 0},...Te});return L.jsxs(Ie,{...nt,children:[R!=null&&R!==""&&L.jsx(ht,{htmlFor:ie,id:Se,...be,children:R}),W?L.jsx(ve,{"aria-describedby":fe,id:ie,labelId:Se,value:ee,input:Ye,...at,children:l}):Ye,w&&L.jsx(Ze,{id:fe,...Xe,children:w})]})}),P$=He(L.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),I$=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),A$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),D$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),N$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),$$=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),cy=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),L$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),B$=He(L.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Nd=He(L.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Di=He(L.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),fa=He(L.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uy=He(L.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),F$=He(L.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),z$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),Lp=He(L.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),nC=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),j$=He(L.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),H$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),q$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),W$=He(L.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),U$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),X$=He(L.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),V$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),oC=He(L.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),G$=He(L.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),K$=He(L.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch"),Y$=He(L.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),J$=He(L.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),E4=He(L.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),Q$=He(L.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),Z$=He(L.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),C4=He(L.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),eL=He(L.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),tL=He(L.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),nv=He(L.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),rL=He(L.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),nL=He(L.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),oL=He(L.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),iL=He(L.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),aL=He(L.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),sL=He(L.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),lL=He(L.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),cL=He(L.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),uL=He(L.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),pL=He(L.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),am=11/23/100;function T4(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substring(1,3),16),e.g=parseInt(t.substring(3,5),16),e.b=parseInt(t.substring(5,7),16);else if(t.length===4){const r=t[1],n=t[2],o=t[3];e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function dL(t){return`#${Math.round(t.r).toString(16).padStart(2,"0")}${Math.round(t.g).toString(16).padStart(2,"0")}${Math.round(t.b).toString(16).padStart(2,"0")}`}function fL(t,e,r){const n=T4(t),o=T4(e);return n.r+=o.r*(.05+am*(r-1)),n.g+=o.g*(.05+am*(r-1)),n.b+=o.b*(.05+am*(r-1)),dL(n)}function vp(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:fL(t,e,n)};return r}function hL(t,e){let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[200],"&:hover":{color:Sr[100]}}},MuiPaper:vp("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[400],"&:hover":{color:Sr[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[200],"&:hover":{color:Sr[100]}}},MuiPaper:vp("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[400],"&:hover":{color:Sr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="NW"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[400],"&:hover":{color:Sr[300]}}},MuiPaper:vp("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#00af78"},secondary:{main:"#005a40"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="HA"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:"#db0a33","&:hover":{color:"#FF0a33"}}},MuiPaper:vp("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#970720"},secondary:{main:"#db0a33"},expert:"#db0a33",text:{primary:"#ffffff",secondary:"#ffffff"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[400],"&:hover":{color:Sr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:r.palette?.primary?.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:$1[300],dark:$1[400]});const o=Rc(r),a=o.palette;return Rc(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:a.grey?.[300],color:a.getContrastText&&a.grey?.[300]?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:a.text?.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${a.action?.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:It(a.text?.primary||"",a.action?.hoverOpacity||.04)}}},{props:{variant:"text",color:"grey"},style:{color:a.text?.primary,"&:hover":{backgroundColor:It(a.text?.primary||"",a.action?.hoverOpacity||.04)}}}]}}})}typeof globalThis.process<"u"&&(globalThis.location||={href:"http://localhost:8081/",protocol:"http:",host:"localhost:8081",pathname:"/",hostname:"localhost",reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(t,e)=>{globalThis.localStorage._keys[t]=e},getItem:t=>t in globalThis.localStorage._keys?globalThis.localStorage._keys[t]:null,removeItem:t=>{t in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[t]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:"en"});var k4;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(k4||(k4={}));var Qp;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Qp||(Qp={}));Qp.PERMISSION_ERROR;Qp.NOT_CONNECTED;function mL(){const t=document.getSelection();if(!t?.rangeCount)return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const O4={"text/plain":"Text","text/html":"Url",default:"Text"},gL="Copy to clipboard: #{key}, Enter";function vL(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function yL(t,e){let r,n,o,a,l=!1;e=e||{};const c=e.debug||!1;try{if(r=mL(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top="0px",a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.userSelect="text",a.addEventListener("copy",f=>{if(f.stopPropagation(),e?.format)if(f.preventDefault(),typeof f.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData?.clearData();const g=O4[e.format]||O4.default;window.clipboardData?.setData(g,t)}else f.clipboardData?.clearData(),f.clipboardData?.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o?.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){c&&console.error("unable to copy using execCommand: ",d),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),l=!0}catch(f){c&&console.error("unable to copy using clipboardData: ",f),c&&console.error("falling back to prompt");const g=vL("message"in e?e.message||"":gL);window.prompt(g,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return l}class z{static translations={};static unknownTranslations=[];static lang=window.sysLang||"en";static _disableWarning=!1;static setLanguage(e){e&&(z.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const l=a,c={},d=n[l];Object.keys(d).forEach(f=>{f&&d&&(f.startsWith(o)?c[f]=d[f]:c[`${o}${f}`]=d[f])}),e[l]=c})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;z.translations[o]||={},Object.assign(z.translations[o],e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const l=a,c=z.translations[l];c?c[n]?c[n]!==o[l]&&console.warn(`Translation for word "${n}" in "${l}" was ignored: existing = "${c[n]}", new = ${o[l]}`):c[n]=o[l]:console.warn(`Used unknown language: ${l}`)})});else{z.translations[r]||console.warn(`Used unknown language: ${r}`),z.translations[r]||={};const n=z.translations[r];Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(z.translations=e)}static getLanguage(){return z.lang}static t(e,...r){const n=z.translations[z.lang];if(n){const o=n[e];if(o)e=o;else if(z.unknownTranslations.includes(e)||(z.unknownTranslations.push(e),!z._disableWarning&&console.log(`Translate: ${e}`)),z.lang!=="en"&&z.translations.en){const a=z.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(z.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):e&&typeof e=="object"&&(z.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(z.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){z._disableWarning=!!e}}window.i18nShow=z.i18nShow;window.i18nDisableWarning=z.disableWarning;const oo="material",bL=["Su","Mo","Tu","We","Th","Fr","Sa"],xL=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],sm={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},_4={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"};class Je{static namespace=oo;static INSTANCES="instances";static dateFormat=["DD","MM"];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let l="";return r&&(l+=`${r} ${z.t("ra_daysShortText")} `),l+=`${n}:${o}:${a}`,l}static getObjectName(e,r,n,o,a){const l=e[r];let c;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n?.name){const d=n.name;typeof d=="object"?c=o.language&&d[o.language]||d.en:c=d}else if(a&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!a&&l?.common){const d=l.common.name||l.common.desc;d&&typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else{const d=r.lastIndexOf(".");c=r.substring(d+1).replace(/[_.]/g," "),c=Je.CapitalWords(c)}return c?.trim()||""}static getObjectNameFromObj(e,r,n,o,a){const l=e;let c=e?._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r?.name){const d=r.name;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d}else if(o&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!o&&l?.common?.name){let d=l.common.name;!d&&l.common.desc&&(d=l.common.desc),typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}return a?c:c.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o?.custom){a=o.custom[oo];const l=n.user||"admin";if(a&&a[l]){if(r){if(a[l].subOrder&&a[l].subOrder[r])return JSON.parse(JSON.stringify(a[l].subOrder[r]))}else if(a[l].order)return JSON.parse(JSON.stringify(a[l].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o?.custom){a=o.custom[oo];const l=n.user||"admin";if(a&&a[l]){if(r){if(a[l].subURLs&&a[l].subURLs[r])return JSON.parse(JSON.stringify(a[l].subURLs[r]))}else if(a[l].URLs)return JSON.parse(JSON.stringify(a[l].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=e?._id||r?.id;let l;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?l=e.common:l=e,l?.custom?(o=l.custom,o=o[oo]&&o[oo][r.user||"admin"]?JSON.parse(JSON.stringify(o[oo][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),l&&(!o.color&&l.color&&(o.color=l.color),!o.icon&&l.icon&&(o.icon=l.icon),!o.name&&l.name&&(o.name=l.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const c=a.lastIndexOf(".");o.name=a.substring(c+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=Je.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[oo]=e.common.custom[oo]||{},e.common.custom[oo][n.user||"admin"]=r;const o=e.common.custom[oo][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e?.icon?e.icon.length<=2?v.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?v.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):v.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){if(typeof e=="object"&&(r=e,e=r?._id),r?.common?.icon){let n=r.common.icon;if(typeof n=="string"&&n.length<=2||n.startsWith("data:image"))return n;const o=e.split(".");return o[0]==="system"?n=`adapter/${o[2]}${n.startsWith("/")?"":"/"}${n}`:n=`adapter/${o[0]}${n.startsWith("/")?"":"/"}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?n=`../../${n}`:window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(e){return e?Je.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const l=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(l&&l.length===4)n=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}static getWindDirection(e){return e>=0&&e<11.25?"N":e>=11.25&&e<33.75?"NNE":e>=33.75&&e<56.25?"NE":e>=56.25&&e<78.75?"ENE":e>=78.75&&e<101.25?"E":e>=101.25&&e<123.75?"ESE":e>=123.75&&e<146.25?"SE":e>=146.25&&e<168.75?"SSE":e>=168.75&&e<191.25?"S":e>=191.25&&e<213.75?"SSW":e>=213.75&&e<236.25?"SW":e>=236.25&&e<258.75?"WSW":e>=258.75&&e<281.25?"W":e>=281.25&&e<303.75?"WNW":e>=303.75&&e<326.25?"NW":e>=326.25&&e<348.75?"NNW":"N"}static padding(e){return typeof e=="string"?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(e){e&&(Je.dateFormat=e.toUpperCase().split(/[.-/]/),Je.dateFormat.splice(Je.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(l=>l>31);if(a!==void 0){o.splice(o.indexOf(a),1);const l=o.find(c=>c>12);l?(o.splice(o.indexOf(l),1),e=new Date(a,o[0]-1,l)):Je.dateFormat[0][0]==="M"&&Je.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):Je.dateFormat[0][0]==="D"&&Je.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=z.t(`ra_dow_${bL[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${z.t(`ra_month_${xL[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/
||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(v.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(v.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(v.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(v.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return l?.common?.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return a?.common?.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=e?.common?.custom?.[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName={}):o.common.smartName={}}static removeSmartName(e,r,n){const o=e;n?o?.common?.custom?.[r]&&(o.common.custom[r]=null):o.common.smartName=null}static updateSmartName(e,r,n,o,a,l){const c=z.getLanguage(),d=e;if(typeof d.common.smartName=="string"){const f=d.common.smartName;d.common.smartName={},d.common.smartName[c]=f}if(d.native?.byON){delete d.native.byON;let f=d.common.smartName;f&&typeof f!="object"&&(f={en:f,[c]:f}),d.common.smartName=f}if(o!==void 0&&(l?(d.common.custom||={},d.common.custom[a]||={},d.common.custom[a].smartName||={},o?d.common.custom[a].smartName.smartType=o:delete d.common.custom[a].smartName.smartType):(d.common.smartName||={},o?d.common.smartName.smartType=o:delete d.common.smartName.smartType)),n!==void 0&&(l?(d.common.custom||={},d.common.custom[a]||={},d.common.custom[a].smartName||={},d.common.custom[a].smartName.byON=n):(d.common.smartName||={},d.common.smartName.byON=n)),r!==void 0){let f;if(l?(d.common.custom||={},d.common.custom[a]||={},d.common.custom[a].smartName||={},f=d.common.custom[a].smartName):(d.common.smartName||={},f=d.common.smartName),f[c]=r,f&&(!f[c]||f[c]===d.common.name&&!d.common.role)){delete f[c];let g=!0;for(const u in f)if(Object.prototype.hasOwnProperty.call(f,u)){g=!1;break}if(g)if(l&&d.common.custom?.[a])d.common.custom[a].smartName.byON===void 0?delete d.common.custom[a]:(delete d.common.custom[a].en,delete d.common.custom[a].de,delete d.common.custom[a].ru,delete d.common.custom[a].nl,delete d.common.custom[a].pl,delete d.common.custom[a].it,delete d.common.custom[a].fr,delete d.common.custom[a].pt,delete d.common.custom[a].es,delete d.common.custom[a].uk,delete d.common.custom[a]["zh-cn"]);else if(d.common.smartName&&d.common.smartName.byON!==void 0){const u=d.common.smartName;delete u.en,delete u.de,delete u.ru,delete u.nl,delete u.pl,delete u.it,delete u.fr,delete u.pt,delete u.es,delete u.uk,delete u["zh-cn"]}else d.common.smartName=null}}}static updateSmartNameEx(e,r){const n=z.getLanguage(),o=e;if(typeof o.common.smartName=="string"){const a=o.common.smartName;o.common.smartName={},o.common.smartName[n]=a}if(o.native?.byON){delete o.native.byON;let a=o.common.smartName;a&&typeof a!="object"&&(a={en:a,[n]:a}),o.common.smartName=a}if(r.smartType!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},r.smartType?o.common.custom[r.instanceId].smartName.smartType=r.smartType:delete o.common.custom[r.instanceId].smartName.smartType):(o.common.smartName||={},r.smartType?o.common.smartName.smartType=r.smartType:delete o.common.smartName.smartType)),r.byON!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.byON=r.byON):(o.common.smartName||={},o.common.smartName.byON=r.byON)),r.noAutoDetect!==void 0&&(r.noCommon?r.noAutoDetect?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.noAutoDetect=r.noAutoDetect):o.common.custom?.[r.instanceId]?.smartName&&delete o.common.custom[r.instanceId].smartName.noAutoDetect:!r.noAutoDetect&&o.common.smartName?delete o.common.smartName.noAutoDetect:(o.common.smartName||={},o.common.smartName.noAutoDetect=r.noAutoDetect)),r.smartName!==void 0){let a;if(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},a=o.common.custom[r.instanceId].smartName):(o.common.smartName||={},a=o.common.smartName),a[n]=r.smartName,a&&(!a[n]||a[n]===o.common.name&&!o.common.role)){delete a[n];let l=!0;for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){l=!1;break}if(l)if(r.noCommon&&o.common.custom?.[r.instanceId])o.common.custom[r.instanceId].smartName.byON===void 0?delete o.common.custom[r.instanceId]:(delete o.common.custom[r.instanceId].en,delete o.common.custom[r.instanceId].de,delete o.common.custom[r.instanceId].ru,delete o.common.custom[r.instanceId].nl,delete o.common.custom[r.instanceId].pl,delete o.common.custom[r.instanceId].it,delete o.common.custom[r.instanceId].fr,delete o.common.custom[r.instanceId].pt,delete o.common.custom[r.instanceId].es,delete o.common.custom[r.instanceId].uk,delete o.common.custom[r.instanceId]["zh-cn"]);else if(o.common.smartName&&o.common.smartName.byON!==void 0){const c=o.common.smartName;delete c.en,delete c.de,delete c.ru,delete c.nl,delete c.pl,delete c.it,delete c.fr,delete c.pt,delete c.es,delete c.uk,delete c["zh-cn"]}else o.common.smartName=null}}}static disableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName=!1):o.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),yL(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const c=(255-o).toString(16),d=(255-a).toString(16),f=(255-l).toString(16);return`#${c.padStart(2,"0")}${d.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else e.startsWith("#")&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,l=r*.2126+n*.7152+o*.0722,c=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,c=c>.008856?c**.33333333:7.787*c+.137931,[116*l-16,500*(a-l),200*(l-c)]}static colorDistance(e,r){const n=Je.color2rgb(e),o=Je.color2rgb(r);if(!n||!o)return 0;const a=Je.rgb2lab(n),l=Je.rgb2lab(o),c=a[0]-l[0],d=a[1]-l[1],f=a[2]-l[2],g=Math.sqrt(a[1]*a[1]+a[2]*a[2]),u=Math.sqrt(l[1]*l[1]+l[2]*l[2]),m=g-u;let y=d*d+f*f-m*m;y=y<0?0:Math.sqrt(y);const w=1+.045*g,x=1+.015*g,E=c,k=m/w,I=y/x,O=E*E+k*k+I*I;return O<0?0:O}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const l=decodeURIComponent(o[1]);if(l==="true")r[a]=!0;else if(l==="false")r[a]=!1;else{const c=parseFloat(l);c.toString()===l?r[a]=c:r[a]=l}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,n+=` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`,n}static formatTime(e){if(e){e=Math.round(e);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){const r=Je.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const a=o.replace(/\r/g,"").split(` +`);for(let l=0;l{if(!l.trim())return;const c=l.indexOf(":");if(c!==-1){const d=l.substring(0,c).trim();let f=l.substring(c+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[d]=!0:f==="false"?r[d]=!1:parseFloat(f).toString()===r[d]?r[d]=parseFloat(f):r[d]=f}else r[l.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=sm[e];let o;return n?o=[n]:e&1?o=[sm[1],`0x${(e&65534).toString(16)}`]:e&2?o=[sm[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){const r=e?.common?.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const o=r.split(";");n={};for(let a=0;an[a]=o):e?.common.type==="string"?r.forEach(o=>n[o]=o):e?.common.type==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>o(a.result?.toString()||""),a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(_4).find(n=>e.startsWith(n));return r?_4[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.toLowerCase().startsWith("stable")))}static isStringInteger(e){return typeof e=="number"?Math.round(e)===e:parseInt(e,10).toString()===e}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getStyle(e,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const l=r[o][a];n[a]={},Object.keys(l).forEach(c=>{typeof l[c]=="function"?n[a][c]=l(e):(l[c]||l[c]===0)&&(n[a][c]=l[c])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}}const lm={buttonIcon:{marginRight:8}};class hK extends v.Component{isIFrame;constructor(e){super(e);const r=e.newReact===void 0?!0:e.newReact;if(e.isIFrame!==void 0)this.isIFrame=e.isIFrame;else try{this.isIFrame=!r&&window.self!==window.top}catch{this.isIFrame=!r}}render(){const e=this.props.noTextOnButtons,r={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},n={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(n.minHeight=48),this.props.error&&(r.border="1px solid red"),v.createElement(ly,{style:n},v.createElement(ua,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:r},v.createElement(nv,{style:e?void 0:lm.buttonIcon}),!e&&z.t("ra_Save")),v.createElement(ua,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...r,marginLeft:10}},v.createElement(nv,{style:e?void 0:lm.buttonIcon}),e?"+":z.t("ra_Save and close"),e&&v.createElement(fa,null)),v.createElement("div",{style:{flexGrow:1}}),v.createElement(ua,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:r},v.createElement(fa,{style:e?void 0:lm.buttonIcon}),!e&&z.t("ra_Close")))}}const R4={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class wL extends _.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}handleOk(){this.state.suppress&&(window._localStorage||window.localStorage).setItem(this.props.dialogName,Date.now()+(this.props.suppressQuestionMinutes||2)*6e4),this.props.onClose&&this.props.onClose(!0)}handleCancel(){this.props.onClose&&this.props.onClose(!1)}render(){return typeof this.state.suppress=="number"?(setTimeout(()=>this.props.onClose&&this.props.onClose(!0),100),null):v.createElement(Ho,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},v.createElement(Uo,{id:"ar_confirmation_dialog_title"},this.props.title||z.t("ra_Are you sure?")),v.createElement(Wo,null,v.createElement(Dd,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?v.createElement("br",null):null,this.props.suppressQuestionMinutes?v.createElement(pt,{sx:{"& .FormControlLabel-label":R4.suppress,"&.FormControlLabel-root":R4.suppressRoot},control:v.createElement(Lr,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||z.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),v.createElement(qo,null,v.createElement(Vt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Di,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(fa,null)},this.props.cancel||z.t("ra_Cancel"))))}}class SL extends _.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return v.createElement(Ho,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},v.createElement(Uo,{id:"ar_alert_dialog_title"},this.props.title||z.t("ra_Error")),v.createElement(Wo,null,v.createElement(Dd,{id:"ar_alert_dialog_description"},this.props.text||z.t("ra_Unknown error!"))),v.createElement(qo,null,v.createElement(Vt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Di,null)},z.t("ra_Ok"))))}}var Xr={},as={},cm,M4;function iC(){if(M4)return cm;M4=1;var t=typeof np=="object"&&np&&np.Object===Object&&np;return cm=t,cm}var um,P4;function wo(){if(P4)return um;P4=1;var t=iC(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return um=r,um}var pm,I4;function Gc(){if(I4)return pm;I4=1;var t=wo(),e=t.Symbol;return pm=e,pm}var dm,A4;function EL(){if(A4)return dm;A4=1;var t=Gc(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(l){var c=r.call(l,o),d=l[o];try{l[o]=void 0;var f=!0}catch{}var g=n.call(l);return f&&(c?l[o]=d:delete l[o]),g}return dm=a,dm}var fm,D4;function CL(){if(D4)return fm;D4=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return fm=r,fm}var hm,N4;function ya(){if(N4)return hm;N4=1;var t=Gc(),e=EL(),r=CL(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function l(c){return c==null?c===void 0?o:n:a&&a in Object(c)?e(c):r(c)}return hm=l,hm}var mm,$4;function Vn(){if($4)return mm;$4=1;var t=Array.isArray;return mm=t,mm}var gm,L4;function Xo(){if(L4)return gm;L4=1;function t(e){return e!=null&&typeof e=="object"}return gm=t,gm}var vm,B4;function TL(){if(B4)return vm;B4=1;var t=ya(),e=Vn(),r=Xo(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return vm=o,vm}var ym,F4;function kL(){if(F4)return ym;F4=1;function t(e){return function(r,n,o){for(var a=-1,l=Object(r),c=o(r),d=c.length;d--;){var f=c[e?d:++a];if(n(l[f],f,l)===!1)break}return r}}return ym=t,ym}var bm,z4;function OL(){if(z4)return bm;z4=1;var t=kL(),e=t();return bm=e,bm}var xm,j4;function _L(){if(j4)return xm;j4=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return Tm=e,Tm}var km,G4;function PL(){if(G4)return km;G4=1;var t=ya(),e=dy(),r=Xo(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",g="[object Number]",u="[object Object]",m="[object RegExp]",y="[object Set]",w="[object String]",x="[object WeakMap]",E="[object ArrayBuffer]",k="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",R="[object Int8Array]",M="[object Int16Array]",T="[object Int32Array]",P="[object Uint8Array]",N="[object Uint8ClampedArray]",D="[object Uint16Array]",C="[object Uint32Array]",$={};$[I]=$[O]=$[R]=$[M]=$[T]=$[P]=$[N]=$[D]=$[C]=!0,$[n]=$[o]=$[E]=$[a]=$[k]=$[l]=$[c]=$[d]=$[f]=$[g]=$[u]=$[m]=$[y]=$[w]=$[x]=!1;function H(q){return r(q)&&e(q.length)&&!!$[t(q)]}return km=H,km}var Om,K4;function fy(){if(K4)return Om;K4=1;function t(e){return function(r){return e(r)}}return Om=t,Om}var pc={exports:{}};pc.exports;var Y4;function hy(){return Y4||(Y4=1,(function(t,e){var r=iC(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,l=a&&r.process,c=(function(){try{var d=o&&o.require&&o.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}})();t.exports=c})(pc,pc.exports)),pc.exports}var _m,J4;function lC(){if(J4)return _m;J4=1;var t=PL(),e=fy(),r=hy(),n=r&&r.isTypedArray,o=n?e(n):t;return _m=o,_m}var Rm,Q4;function cC(){if(Q4)return Rm;Q4=1;var t=_L(),e=aC(),r=Vn(),n=py(),o=sC(),a=lC(),l=Object.prototype,c=l.hasOwnProperty;function d(f,g){var u=r(f),m=!u&&e(f),y=!u&&!m&&n(f),w=!u&&!m&&!y&&a(f),x=u||m||y||w,E=x?t(f.length,String):[],k=E.length;for(var I in f)(g||c.call(f,I))&&!(x&&(I=="length"||y&&(I=="offset"||I=="parent")||w&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||o(I,k)))&&E.push(I);return E}return Rm=d,Rm}var Mm,Z4;function my(){if(Z4)return Mm;Z4=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return Mm=e,Mm}var Pm,e5;function uC(){if(e5)return Pm;e5=1;function t(e,r){return function(n){return e(r(n))}}return Pm=t,Pm}var Im,t5;function IL(){if(t5)return Im;t5=1;var t=uC(),e=t(Object.keys,Object);return Im=e,Im}var Am,r5;function AL(){if(r5)return Am;r5=1;var t=my(),e=IL(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var l=[];for(var c in Object(a))n.call(a,c)&&c!="constructor"&&l.push(c);return l}return Am=o,Am}var Dm,n5;function nl(){if(n5)return Dm;n5=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return Dm=t,Dm}var Nm,o5;function pC(){if(o5)return Nm;o5=1;var t=ya(),e=nl(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function l(c){if(!e(c))return!1;var d=t(c);return d==n||d==o||d==r||d==a}return Nm=l,Nm}var $m,i5;function $d(){if(i5)return $m;i5=1;var t=pC(),e=dy();function r(n){return n!=null&&e(n.length)&&!t(n)}return $m=r,$m}var Lm,a5;function Kc(){if(a5)return Lm;a5=1;var t=cC(),e=AL(),r=$d();function n(o){return r(o)?t(o):e(o)}return Lm=n,Lm}var Bm,s5;function dC(){if(s5)return Bm;s5=1;var t=OL(),e=Kc();function r(n,o){return n&&t(n,o,e)}return Bm=r,Bm}var Fm,l5;function fC(){if(l5)return Fm;l5=1;function t(e){return e}return Fm=t,Fm}var zm,c5;function DL(){if(c5)return zm;c5=1;var t=fC();function e(r){return typeof r=="function"?r:t}return zm=e,zm}var jm,u5;function gy(){if(u5)return jm;u5=1;var t=dC(),e=DL();function r(n,o){return n&&t(n,e(o))}return jm=r,jm}var Hm,p5;function vy(){if(p5)return Hm;p5=1;var t=uC(),e=t(Object.getPrototypeOf,Object);return Hm=e,Hm}var qm,d5;function NL(){if(d5)return qm;d5=1;var t=ya(),e=vy(),r=Xo(),n="[object Object]",o=Function.prototype,a=Object.prototype,l=o.toString,c=a.hasOwnProperty,d=l.call(Object);function f(g){if(!r(g)||t(g)!=n)return!1;var u=e(g);if(u===null)return!0;var m=c.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&l.call(m)==d}return qm=f,qm}var Wm,f5;function hC(){if(f5)return Wm;f5=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return Ym=e,Ym}var Jm,x5;function zL(){if(x5)return Jm;x5=1;var t=Ld();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return Jm=e,Jm}var Qm,w5;function Bd(){if(w5)return Qm;w5=1;var t=$L(),e=LL(),r=BL(),n=FL(),o=zL();function a(l){var c=-1,d=l==null?0:l.length;for(this.clear();++cy))return!1;var x=u.get(l),E=u.get(c);if(x&&E)return x==c&&E==l;var k=-1,I=!0,O=d&o?new t:void 0;for(u.set(l,c),u.set(c,l);++k0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,c.default)(u,function(y){Array.isArray(y)?g(y).map(function(w){return m.push(w)}):(0,a.default)(y)?(0,n.default)(y,function(w,x){w===!0&&m.push(x),m.push(x+"-"+w)}):(0,e.default)(y)&&m.push(y)}),m};return as.default=f,as}var ss={},Tg,K3;function UB(){if(K3)return Tg;K3=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],g=d.default&&(0,n.default)(d.default)||{};return f.map(function(u){var m=d[u];return m&&(0,e.default)(m,function(y,w){g[w]||(g[w]={}),g[w]=o({},g[w],m[w])}),u}),g};return ss.default=l,ss}var ls={},OS;function vF(){if(OS)return ls;OS=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.autoprefix=void 0;var t=gy(),e=n(t),r=Object.assign||function(l){for(var c=1;c1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,w,x,E;o(this,m);for(var k=arguments.length,I=Array(k),O=0;O1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,w,x,E;o(this,m);for(var k=arguments.length,I=Array(k),O=0;O1&&arguments[1]!==void 0?arguments[1]:!0;o[c]=d};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return yp.default=t,yp}var PS;function wF(){if(PS)return Xr;PS=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.ReactCSS=Xr.loop=Xr.handleActive=Xr.handleHover=Xr.hover=void 0;var t=WB(),e=m(t),r=gF(),n=m(r),o=vF(),a=m(o),l=yF(),c=m(l),d=bF(),f=m(d),g=xF(),u=m(g);function m(w){return w&&w.__esModule?w:{default:w}}Xr.hover=c.default,Xr.handleHover=c.default,Xr.handleActive=f.default,Xr.loop=u.default;var y=Xr.ReactCSS=function(x){for(var E=arguments.length,k=Array(E>1?E-1:0),I=1;Ic?m=1:m=Math.round(u*100/c)/100,r.a!==m)return{h:r.h,s:r.s,l:r.l,a:m,source:"rgb"}}else{var y=void 0;if(g<0?y=0:g>l?y=1:y=Math.round(g*100/l)/100,o!==y)return{h:r.h,s:r.s,l:r.l,a:y,source:"rgb"}}return null},t1={},EF=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var l=a.getContext("2d");return l?(l.fillStyle=e,l.fillRect(0,0,a.width,a.height),l.fillStyle=r,l.fillRect(0,0,n,n),l.translate(n,n),l.fillRect(0,0,n,n),a.toDataURL()):null},CF=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(t1[a])return t1[a];var l=EF(e,r,n,o);return t1[a]=l,l},IS=Object.assign||function(t){for(var e=1;e-1},BF=function(e){return Number(String(e).replace(/%/g,""))},FF=1,gt=(function(t){AF(e,t);function e(r){PF(this,e);var n=IF(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var a=BF(o.target.value);if(!isNaN(a)&&LF(o.keyCode)){var l=n.getArrowOffset(),c=o.keyCode===MC?a+l:a-l;n.setUpdatedValue(c,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var a=Math.round(n.props.value+o.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+FF++,n}return RF(e,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return MF({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DF}},{key:"setUpdatedValue",value:function(n,o){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=tt({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return v.createElement("div",{style:o.wrap},v.createElement("input",{id:this.inputId,style:o.input,ref:function(l){return n.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?v.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e})(_.PureComponent||_.Component),zF=function(e,r,n,o){var a=o.clientWidth,l=o.clientHeight,c=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,d=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=c-(o.getBoundingClientRect().left+window.pageXOffset),g=d-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(g<0)u=359;else if(g>l)u=0;else{var m=-(g*100/l)+100;u=360*m/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var y=void 0;if(f<0)y=0;else if(f>a)y=359;else{var w=f*100/a;y=360*w/100}if(n.h!==y)return{h:y,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},jF=(function(){function t(e,r){for(var n=0;n-1}function YF(t,e){var r=this.__data__,n=Wd(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Vo(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=nj}function al(t){return t!=null&&Iy(t.length)&&!Ry(t)}function oj(t){return _i(t)&&al(t)}function ij(){return!1}var BC=typeof un=="object"&&un&&!un.nodeType&&un,jS=BC&&typeof pn=="object"&&pn&&!pn.nodeType&&pn,aj=jS&&jS.exports===BC,HS=aj?Gn.Buffer:void 0,sj=HS?HS.isBuffer:void 0,rd=sj||ij,lj="[object Object]",cj=Function.prototype,uj=Object.prototype,FC=cj.toString,pj=uj.hasOwnProperty,dj=FC.call(Object);function fj(t){if(!_i(t)||xa(t)!=lj)return!1;var e=$C(t);if(e===null)return!0;var r=pj.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&FC.call(r)==dj}var hj="[object Arguments]",mj="[object Array]",gj="[object Boolean]",vj="[object Date]",yj="[object Error]",bj="[object Function]",xj="[object Map]",wj="[object Number]",Sj="[object Object]",Ej="[object RegExp]",Cj="[object Set]",Tj="[object String]",kj="[object WeakMap]",Oj="[object ArrayBuffer]",_j="[object DataView]",Rj="[object Float32Array]",Mj="[object Float64Array]",Pj="[object Int8Array]",Ij="[object Int16Array]",Aj="[object Int32Array]",Dj="[object Uint8Array]",Nj="[object Uint8ClampedArray]",$j="[object Uint16Array]",Lj="[object Uint32Array]",Lt={};Lt[Rj]=Lt[Mj]=Lt[Pj]=Lt[Ij]=Lt[Aj]=Lt[Dj]=Lt[Nj]=Lt[$j]=Lt[Lj]=!0;Lt[hj]=Lt[mj]=Lt[Oj]=Lt[gj]=Lt[_j]=Lt[vj]=Lt[yj]=Lt[bj]=Lt[xj]=Lt[wj]=Lt[Sj]=Lt[Ej]=Lt[Cj]=Lt[Tj]=Lt[kj]=!1;function Bj(t){return _i(t)&&Iy(t.length)&&!!Lt[xa(t)]}function Fj(t){return function(e){return t(e)}}var zC=typeof un=="object"&&un&&!un.nodeType&&un,Sc=zC&&typeof pn=="object"&&pn&&!pn.nodeType&&pn,zj=Sc&&Sc.exports===zC,n1=zj&&PC.process,qS=(function(){try{var t=Sc&&Sc.require&&Sc.require("util").types;return t||n1&&n1.binding&&n1.binding("util")}catch{}})(),WS=qS&&qS.isTypedArray,Ay=WS?Fj(WS):Bj;function iv(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var jj=Object.prototype,Hj=jj.hasOwnProperty;function qj(t,e,r){var n=t[e];(!(Hj.call(t,e)&&Yc(n,r))||r===void 0&&!(e in t))&&My(t,e,r)}function Wj(t,e,r,n){var o=!r;r||(r={});for(var a=-1,l=e.length;++a-1&&t%1==0&&t0){if(++e>=aH)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var uH=cH(iH);function pH(t,e){return uH(nH(t,e,Xd),t+"")}function dH(t,e,r){if(!Pn(r))return!1;var n=typeof e;return(n=="number"?al(r)&&Dy(e,r.length):n=="string"&&e in r)?Yc(r[e],t):!1}function fH(t){return pH(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,l&&dH(r[0],r[1],l)&&(a=o<3?void 0:a,o=1),e=Object(e);++n=e||P<0||u&&N>=a}function k(){var T=o1();if(E(T))return I(T);c=setTimeout(k,x(T))}function I(T){return c=void 0,m&&n?y(T):(n=o=void 0,l)}function O(){c!==void 0&&clearTimeout(c),f=0,n=d=o=c=void 0}function R(){return c===void 0?l:I(o1())}function M(){var T=o1(),P=E(T);if(n=arguments,o=this,d=T,P){if(c===void 0)return w(d);if(u)return clearTimeout(c),c=setTimeout(k,e),y(d)}return c===void 0&&(c=setTimeout(k,e)),l}return M.cancel=O,M.flush=R,M}var kH="Expected a function";function OH(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(kH);return Pn(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),WC(t,e,{leading:n,maxWait:e,trailing:o})}var _H=function(e,r,n){var o=n.getBoundingClientRect(),a=o.width,l=o.height,c=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,d=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=c-(n.getBoundingClientRect().left+window.pageXOffset),g=d-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),g<0?g=0:g>l&&(g=l);var u=f/a,m=1-g/l;return{h:r.h,s:u,v:m,a:r.a,source:"hsv"}},RH=(function(){function t(e,r){for(var n=0;n=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return $e(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(QH,arguments)},brighten:function(){return this._applyModification(ZH,arguments)},darken:function(){return this._applyModification(eq,arguments)},desaturate:function(){return this._applyModification(KH,arguments)},saturate:function(){return this._applyModification(YH,arguments)},greyscale:function(){return this._applyModification(JH,arguments)},spin:function(){return this._applyModification(tq,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(oq,arguments)},complement:function(){return this._applyCombination(rq,arguments)},monochromatic:function(){return this._applyCombination(iq,arguments)},splitcomplement:function(){return this._applyCombination(nq,arguments)},triad:function(){return this._applyCombination(QS,[3])},tetrad:function(){return this._applyCombination(QS,[4])}};$e.fromRatio=function(t,e){if(nd(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=fc(t[n]));t=r}return $e(t,e)};function WH(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,l=!1,c=!1;return typeof t=="string"&&(t=uq(t)),nd(t)=="object"&&(Do(t.r)&&Do(t.g)&&Do(t.b)?(e=UH(t.r,t.g,t.b),l=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Do(t.h)&&Do(t.s)&&Do(t.v)?(n=fc(t.s),o=fc(t.v),e=VH(t.h,n,o),l=!0,c="hsv"):Do(t.h)&&Do(t.s)&&Do(t.l)&&(n=fc(t.s),a=fc(t.l),e=XH(t.h,n,a),l=!0,c="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=XC(r),{ok:l,format:t.format||c,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function UH(t,e,r){return{r:qt(t,255)*255,g:qt(e,255)*255,b:qt(r,255)*255}}function GS(t,e,r){t=qt(t,255),e=qt(e,255),r=qt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,l,c=(n+o)/2;if(n==o)a=l=0;else{var d=n-o;switch(l=c>.5?d/(2-n-o):d/(n+o),n){case t:a=(e-r)/d+(e1&&(u-=1),u<1/6?f+(g-f)*6*u:u<1/2?g:u<2/3?f+(g-f)*(2/3-u)*6:f}if(e===0)n=o=a=r;else{var c=r<.5?r*(1+e):r+e-r*e,d=2*r-c;n=l(d,c,t+1/3),o=l(d,c,t),a=l(d,c,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function KS(t,e,r){t=qt(t,255),e=qt(e,255),r=qt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,l,c=n,d=n-o;if(l=n===0?0:d/n,n==o)a=0;else{switch(n){case t:a=(e-r)/d+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push($e(n));return a}function iq(t,e){e=e||6;for(var r=$e(t).toHsv(),n=r.h,o=r.s,a=r.v,l=[],c=1/e;e--;)l.push($e({h:n,s:o,v:a})),a=(a+c)%1;return l}$e.mix=function(t,e,r){r=r===0?0:r||50;var n=$e(t).toRgb(),o=$e(e).toRgb(),a=r/100,l={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return $e(l)};$e.readability=function(t,e){var r=$e(t),n=$e(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};$e.isReadable=function(t,e,r){var n=$e.readability(t,e),o,a;switch(a=!1,o=pq(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};$e.mostReadable=function(t,e,r){var n=null,o=0,a,l,c,d;r=r||{},l=r.includeFallbackColors,c=r.level,d=r.size;for(var f=0;fo&&(o=a,n=$e(e[f]));return $e.isReadable(t,n,{level:c,size:d})||!l?n:(r.includeFallbackColors=!1,$e.mostReadable(t,["#fff","#000"],r))};var av=$e.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},aq=$e.hexNames=sq(av);function sq(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function XC(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function qt(t,e){lq(t)&&(t="100%");var r=cq(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Kd(t){return Math.min(1,Math.max(0,t))}function ln(t){return parseInt(t,16)}function lq(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function cq(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Wn(t){return t.length==1?"0"+t:""+t}function fc(t){return t<=1&&(t=t*100+"%"),t}function VC(t){return Math.round(parseFloat(t)*255).toString(16)}function ZS(t){return ln(t)/255}var jn=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Do(t){return!!jn.CSS_UNIT.exec(t)}function uq(t){t=t.replace(HH,"").replace(qH,"").toLowerCase();var e=!1;if(av[t])t=av[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=jn.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=jn.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=jn.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=jn.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=jn.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=jn.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=jn.hex8.exec(t))?{r:ln(r[1]),g:ln(r[2]),b:ln(r[3]),a:ZS(r[4]),format:e?"name":"hex8"}:(r=jn.hex6.exec(t))?{r:ln(r[1]),g:ln(r[2]),b:ln(r[3]),format:e?"name":"hex"}:(r=jn.hex4.exec(t))?{r:ln(r[1]+""+r[1]),g:ln(r[2]+""+r[2]),b:ln(r[3]+""+r[3]),a:ZS(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=jn.hex3.exec(t))?{r:ln(r[1]+""+r[1]),g:ln(r[2]+""+r[2]),b:ln(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function pq(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var e6=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return jH(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var l=/^\d+%$/;l.test(e[a])&&(o+=1)}}),n===o?e:!1},hc=function(e,r){var n=e.hex?$e(e.hex):$e(e),o=n.toHsl(),a=n.toHsv(),l=n.toRgb(),c=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var d=c==="000000"&&l.a===0;return{hsl:o,hex:d?"transparent":"#"+c,rgb:l,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Ni=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&$e(e).isValid()},$y=function(e){if(!e)return"#fff";var r=hc(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},i1=function(e,r){var n=e.replace("°","");return $e(r+" ("+n+")")._ok},Yl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return(function(n){bq(o,n);function o(){var a,l,c,d;yq(this,o);for(var f=arguments.length,g=Array(f),u=0;uc))return!1;var f=a.get(t),g=a.get(e);if(f&&g)return f==e&&g==t;var u=-1,m=!0,y=r&Pq?new od:void 0;for(a.set(t,e),a.set(e,t);++u=0||Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f]);return d}var a=24;return xp.default=function(l){var c=l.fill,d=c===void 0?"currentColor":c,f=l.width,g=f===void 0?a:f,u=l.height,m=u===void 0?a:u,y=l.style,w=y===void 0?{}:y,x=o(l,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:d,width:g,height:m},w)},x),r.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},xp}var qW=HW();const WW=Ri(qW);var UW=(function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(g6(o.s)?n.props.hsl.s:o.s),l:Number(g6(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return UW(e,[{key:"render",value:function(){var n=this,o=tt({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),a=void 0;return this.state.view==="hex"?a=v.createElement("div",{style:o.fields,className:"flexbox-fix"},v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=v.createElement("div",{style:o.fields,className:"flexbox-fix"},v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),v.createElement("div",{style:o.alpha},v.createElement(gt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=v.createElement("div",{style:o.fields,className:"flexbox-fix"},v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),v.createElement("div",{style:o.alpha},v.createElement(gt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),v.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,v.createElement("div",{style:o.toggle},v.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(c){return n.icon=c}},v.createElement(WW,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e})(v.Component);nT.defaultProps={view:"hex"};var y6=function(){var e=tt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return v.createElement("div",{style:e.picker})},KW=function(){var e=tt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return v.createElement("div",{style:e.picker})},Hy=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,l=e.hsl,c=e.hsv,d=e.hex,f=e.renderers,g=e.styles,u=g===void 0?{}:g,m=e.className,y=m===void 0?"":m,w=e.defaultView,x=tt(tn({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},u),{disableAlpha:o});return v.createElement("div",{style:x.picker,className:"chrome-picker "+y},v.createElement("div",{style:x.saturation},v.createElement(Gd,{style:x.Saturation,hsl:l,hsv:c,pointer:KW,onChange:n})),v.createElement("div",{style:x.body},v.createElement("div",{style:x.controls,className:"flexbox-fix"},v.createElement("div",{style:x.color},v.createElement("div",{style:x.swatch},v.createElement("div",{style:x.active}),v.createElement(ol,{renderers:f}))),v.createElement("div",{style:x.toggles},v.createElement("div",{style:x.hue},v.createElement(il,{style:x.Hue,hsl:l,pointer:y6,onChange:n})),v.createElement("div",{style:x.alpha},v.createElement(_y,{style:x.Alpha,rgb:a,hsl:l,pointer:y6,renderers:f,onChange:n})))),v.createElement(nT,{rgb:a,hsl:l,hex:d,view:w,onChange:n,disableAlpha:o})))};Hy.propTypes={width:oe.oneOfType([oe.string,oe.number]),disableAlpha:oe.bool,styles:oe.object,defaultView:oe.oneOf(["hex","rgb","hsl"])};Hy.defaultProps={width:225,disableAlpha:!1,styles:{}};rn(Hy);var YW=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,l=e.active,c=tt({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:$y(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return v.createElement(Ea,{style:c.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},v.createElement("div",{style:c.dot}))},JW=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=tt({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),l=function(d,f){d.r||d.g||d.b?o({r:d.r||n.r,g:d.g||n.g,b:d.b||n.b,source:"rgb"},f):o({hex:d.hex,source:"hex"},f)};return v.createElement("div",{style:a.fields,className:"flexbox-fix"},v.createElement("div",{style:a.active}),v.createElement(gt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:l}),v.createElement(gt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:l}),v.createElement(gt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:l}),v.createElement(gt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:l}))},qy=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,l=e.rgb,c=e.styles,d=c===void 0?{}:c,f=e.className,g=f===void 0?"":f,u=tt(tn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},d)),m=function(w,x){w.hex?Ni(w.hex)&&r({hex:w.hex,source:"hex"},x):r(w,x)};return v.createElement(Jc,{style:u.Compact,styles:d},v.createElement("div",{style:u.compact,className:"compact-picker "+g},v.createElement("div",null,Ca(o,function(y){return v.createElement(YW,{key:y,color:y,active:y.toLowerCase()===a,onClick:m,onSwatchHover:n})}),v.createElement("div",{style:u.clear})),v.createElement(JW,{hex:a,rgb:l,onChange:m})))};qy.propTypes={colors:oe.arrayOf(oe.string),styles:oe.object};qy.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};rn(qy);var QW=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,l={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},c=tt({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:l}},{hover:r});return v.createElement("div",{style:c.swatch},v.createElement(Ea,{color:n,onClick:o,onHover:a,focusStyle:l}))};const ZW=Oy.handleHover(QW);var Wy=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,l=e.triangle,c=e.styles,d=c===void 0?{}:c,f=e.className,g=f===void 0?"":f,u=tt(tn({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},d),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right","bottom-left-triangle":l==="bottom-left","bottom-right-triangle":l==="bottom-right"}),m=function(w,x){return o({hex:w,source:"hex"},x)};return v.createElement("div",{style:u.card,className:"github-picker "+g},v.createElement("div",{style:u.triangleShadow}),v.createElement("div",{style:u.triangle}),Ca(n,function(y){return v.createElement(ZW,{color:y,key:y,onClick:m,onSwatchHover:a})}))};Wy.propTypes={width:oe.oneOfType([oe.string,oe.number]),colors:oe.arrayOf(oe.string),triangle:oe.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:oe.object};Wy.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};rn(Wy);var eU=function(e){var r=e.direction,n=tt({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return v.createElement("div",{style:n.picker})},tU=Object.assign||function(t){for(var e=1;e.5});return v.createElement("div",{style:n.picker})},iU=function(){var e=tt({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return v.createElement("div",{style:e.pointer},v.createElement("div",{style:e.left},v.createElement("div",{style:e.leftInside})),v.createElement("div",{style:e.right},v.createElement("div",{style:e.rightInside})))},b6=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,l=tt({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return v.createElement("div",{style:l.button,onClick:r},n||o)},aU=function(e){var r=e.rgb,n=e.currentColor,o=tt({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return v.createElement("div",null,v.createElement("div",{style:o.label},"new"),v.createElement("div",{style:o.swatches},v.createElement("div",{style:o.new}),v.createElement("div",{style:o.current})),v.createElement("div",{style:o.label},"current"))},sU=(function(){function t(e,r){for(var n=0;n100&&(g.a=100),g.a/=100,r({h:o.h,s:o.s,l:o.l,a:g.a,source:"rgb"},u))};return v.createElement("div",{style:c.fields,className:"flexbox-fix"},v.createElement("div",{style:c.double},v.createElement(gt,{style:{input:c.input,label:c.label},label:"hex",value:a.replace("#",""),onChange:d})),v.createElement("div",{style:c.single},v.createElement(gt,{style:{input:c.input,label:c.label},label:"r",value:n.r,onChange:d,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:c.single},v.createElement(gt,{style:{input:c.input,label:c.label},label:"g",value:n.g,onChange:d,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:c.single},v.createElement(gt,{style:{input:c.input,label:c.label},label:"b",value:n.b,onChange:d,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:c.alpha},v.createElement(gt,{style:{input:c.input,label:c.label},label:"a",value:Math.round(n.a*100),onChange:d,dragLabel:"true",dragMax:"100"})))},dU=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f]);return d}var a=24;return wp.default=function(l){var c=l.fill,d=c===void 0?"currentColor":c,f=l.width,g=f===void 0?a:f,u=l.height,m=u===void 0?a:u,y=l.style,w=y===void 0?{}:y,x=o(l,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:d,width:g,height:m},w)},x),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},wp}var vU=gU();const yU=Ri(vU);var bU=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,l=e.first,c=e.last,d=e.active,f=tt({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:$y(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:l,last:c,active:d,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return v.createElement(Ea,{color:r,style:f.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},v.createElement("div",{style:f.check},v.createElement(yU,null)))},xU=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,l=tt({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return v.createElement("div",{style:l.group},Ca(o,function(c,d){return v.createElement(bU,{key:c,color:c,active:c.toLowerCase()===a,first:d===0,last:d===o.length-1,onClick:r,onSwatchHover:n})}))},Ky=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,l=e.colors,c=e.hex,d=e.styles,f=d===void 0?{}:d,g=e.className,u=g===void 0?"":g,m=tt(tn({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),y=function(x,E){return o({hex:x,source:"hex"},E)};return v.createElement("div",{style:m.picker,className:"swatches-picker "+u},v.createElement(Jc,null,v.createElement("div",{style:m.overflow},v.createElement("div",{style:m.body},Ca(l,function(w){return v.createElement(xU,{key:w.toString(),group:w,active:c,onClick:y,onSwatchHover:a})}),v.createElement("div",{style:m.clear})))))};Ky.propTypes={width:oe.oneOfType([oe.string,oe.number]),height:oe.oneOfType([oe.string,oe.number]),colors:oe.arrayOf(oe.arrayOf(oe.string)),styles:oe.object};Ky.defaultProps={width:320,height:240,colors:[[gs[900],gs[700],gs[500],gs[300],gs[100]],[vs[900],vs[700],vs[500],vs[300],vs[100]],[ys[900],ys[700],ys[500],ys[300],ys[100]],[bs[900],bs[700],bs[500],bs[300],bs[100]],[xs[900],xs[700],xs[500],xs[300],xs[100]],[ws[900],ws[700],ws[500],ws[300],ws[100]],[Ss[900],Ss[700],Ss[500],Ss[300],Ss[100]],[Es[900],Es[700],Es[500],Es[300],Es[100]],[Cs[900],Cs[700],Cs[500],Cs[300],Cs[100]],["#194D33",mc[700],mc[500],mc[300],mc[100]],[Ts[900],Ts[700],Ts[500],Ts[300],Ts[100]],[ks[900],ks[700],ks[500],ks[300],ks[100]],[Os[900],Os[700],Os[500],Os[300],Os[100]],[_s[900],_s[700],_s[500],_s[300],_s[100]],[Rs[900],Rs[700],Rs[500],Rs[300],Rs[100]],[Ms[900],Ms[700],Ms[500],Ms[300],Ms[100]],[Ps[900],Ps[700],Ps[500],Ps[300],Ps[100]],[Is[900],Is[700],Is[500],Is[300],Is[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};rn(Ky);var Yy=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,l=e.width,c=e.triangle,d=e.styles,f=d===void 0?{}:d,g=e.className,u=g===void 0?"":g,m=tt(tn({default:{card:{width:l,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},f),{"hide-triangle":c==="hide","top-left-triangle":c==="top-left","top-right-triangle":c==="top-right"}),y=function(x,E){Ni(x)&&r({hex:x,source:"hex"},E)};return v.createElement("div",{style:m.card,className:"twitter-picker "+u},v.createElement("div",{style:m.triangleShadow}),v.createElement("div",{style:m.triangle}),v.createElement("div",{style:m.body},Ca(a,function(w,x){return v.createElement(Ea,{key:x,color:w,hex:w,style:m.swatch,onClick:y,onHover:n,focusStyle:{boxShadow:"0 0 4px "+w}})}),v.createElement("div",{style:m.hash},"#"),v.createElement(gt,{label:null,style:{input:m.input},value:o.replace("#",""),onChange:y}),v.createElement("div",{style:m.clear})))};Yy.propTypes={width:oe.oneOfType([oe.string,oe.number]),triangle:oe.oneOf(["hide","top-left","top-right"]),colors:oe.arrayOf(oe.string),styles:oe.object};Yy.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};rn(Yy);var Jy=function(e){var r=tt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(e.hsl.s*100)+"%, "+Math.round(e.hsl.l*100)+"%)"}}});return v.createElement("div",{style:r.picker})};Jy.propTypes={hsl:oe.shape({h:oe.number,s:oe.number,l:oe.number,a:oe.number})};Jy.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Qy=function(e){var r=tt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return v.createElement("div",{style:r.picker})};Qy.propTypes={hsl:oe.shape({h:oe.number,s:oe.number,l:oe.number,a:oe.number})};Qy.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var wU=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,l=e.hsv,c=function(y,w){if(y.hex)Ni(y.hex)&&r({hex:y.hex,source:"hex"},w);else if(y.rgb){var x=y.rgb.split(",");i1(y.rgb,"rgb")&&r({r:x[0],g:x[1],b:x[2],a:1,source:"rgb"},w)}else if(y.hsv){var E=y.hsv.split(",");i1(y.hsv,"hsv")&&(E[2]=E[2].replace("%",""),E[1]=E[1].replace("%",""),E[0]=E[0].replace("°",""),E[1]==1?E[1]=.01:E[2]==1&&(E[2]=.01),r({h:Number(E[0]),s:Number(E[1]),v:Number(E[2]),source:"hsv"},w))}else if(y.hsl){var k=y.hsl.split(",");i1(y.hsl,"hsl")&&(k[2]=k[2].replace("%",""),k[1]=k[1].replace("%",""),k[0]=k[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(k[0]),s:Number(k[1]),v:Number(k[2]),source:"hsl"},w))}},d=tt({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),f=n.r+", "+n.g+", "+n.b,g=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",u=Math.round(l.h)+"°, "+Math.round(l.s*100)+"%, "+Math.round(l.v*100)+"%";return v.createElement("div",{style:d.wrap,className:"flexbox-fix"},v.createElement("div",{style:d.fields},v.createElement("div",{style:d.double},v.createElement(gt,{style:{input:d.input,label:d.label},label:"hex",value:a,onChange:c})),v.createElement("div",{style:d.column},v.createElement("div",{style:d.single},v.createElement(gt,{style:{input:d.input2,label:d.label2},label:"rgb",value:f,onChange:c})),v.createElement("div",{style:d.single},v.createElement(gt,{style:{input:d.input2,label:d.label2},label:"hsv",value:u,onChange:c})),v.createElement("div",{style:d.single},v.createElement(gt,{style:{input:d.input2,label:d.label2},label:"hsl",value:g,onChange:c})))))},Zy=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,l=e.hsv,c=e.hex,d=e.header,f=e.styles,g=f===void 0?{}:f,u=e.className,m=u===void 0?"":u,y=tt(tn({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+o.r+", "+o.g+", "+o.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},g));return v.createElement("div",{style:y.picker,className:"google-picker "+m},v.createElement("div",{style:y.head},d),v.createElement("div",{style:y.swatch}),v.createElement("div",{style:y.saturation},v.createElement(Gd,{hsl:a,hsv:l,pointer:Jy,onChange:n})),v.createElement("div",{style:y.body},v.createElement("div",{style:y.controls,className:"flexbox-fix"},v.createElement("div",{style:y.hue},v.createElement(il,{style:y.Hue,hsl:a,radius:"4px",pointer:Qy,onChange:n}))),v.createElement(wU,{rgb:o,hsl:a,hex:c,hsv:l,onChange:n})))};Zy.propTypes={width:oe.oneOfType([oe.string,oe.number]),styles:oe.object,header:oe.string};Zy.defaultProps={width:652,styles:{},header:"Color picker"};rn(Zy);var s1={exports:{}},w6;function So(){return w6||(w6=1,(function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949(l,c,d){Object.defineProperty(c,"__esModule",{value:!0}),c.CronParser=void 0;var f=d(515),g=(function(){function u(m,y,w){y===void 0&&(y=!0),w===void 0&&(w=!1),this.expression=m,this.dayOfWeekStartIndexZero=y,this.monthStartIndexZero=w}return u.prototype.parse=function(){var m,y,w=(m=this.expression)!==null&&m!==void 0?m:"";if(w==="@reboot")return y=["@reboot","","","","","",""],y;if(w.startsWith("@")){var x=this.parseSpecial(this.expression);y=this.extractParts(x)}else y=this.extractParts(this.expression);return this.normalize(y),this.validate(y),y},u.prototype.parseSpecial=function(m){var y={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},w=y[m];if(!w)throw new Error("Unknown special expression.");return w},u.prototype.extractParts=function(m){if(!this.expression)throw new Error("cron expression is empty");for(var y=m.trim().split(/[ ]+/),w=0;w7)throw new Error("Expression has ".concat(y.length," parts; too many!"));return y},u.prototype.normalize=function(m){var y=this;if(m[3]=m[3].replace("?","*"),m[5]=m[5].replace("?","*"),m[2]=m[2].replace("?","*"),m[0].indexOf("0/")==0&&(m[0]=m[0].replace("0/","*/")),m[1].indexOf("0/")==0&&(m[1]=m[1].replace("0/","*/")),m[2].indexOf("0/")==0&&(m[2]=m[2].replace("0/","*/")),m[3].indexOf("1/")==0&&(m[3]=m[3].replace("1/","*/")),m[4].indexOf("1/")==0&&(m[4]=m[4].replace("1/","*/")),m[6].indexOf("1/")==0&&(m[6]=m[6].replace("1/","*/")),m[5]=m[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var T=M.replace(/\D/,""),P=T;return y.dayOfWeekStartIndexZero?T=="7"&&(P="0"):P=(parseInt(T)-1).toString(),M.replace(T,P)}),m[5]=="L"&&(m[5]="6"),m[3]=="?"&&(m[3]="*"),m[3].indexOf("W")>-1&&(m[3].indexOf(",")>-1||m[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var w={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var x in w)m[5]=m[5].replace(new RegExp(x,"gi"),w[x].toString());m[4]=m[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var T=M.replace(/\D/,""),P=T;return y.monthStartIndexZero&&(P=(parseInt(T)+1).toString()),M.replace(T,P)});var E={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var k in E)m[4]=m[4].replace(new RegExp(k,"gi"),E[k].toString());m[0]=="0"&&(m[0]=""),!/\*|\-|\,|\//.test(m[2])&&(/\*|\//.test(m[1])||/\*|\//.test(m[0]))&&(m[2]+="-".concat(m[2]));for(var I=0;I-1&&!/^\*|\-|\,/.test(m[I])){var O=null;switch(I){case 4:O="12";break;case 5:O="6";break;case 6:O="9999";break;default:O=null;break}if(O!==null){var R=m[I].split("/");m[I]="".concat(R[0],"-").concat(O,"/").concat(R[1])}}},u.prototype.validate=function(m){var y="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(m[0],y),this.validateOnlyExpectedCharactersFound(m[1],y),this.validateOnlyExpectedCharactersFound(m[2],y),this.validateOnlyExpectedCharactersFound(m[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(m[4],y),this.validateOnlyExpectedCharactersFound(m[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(m[6],y),this.validateAnyRanges(m)},u.prototype.validateAnyRanges=function(m){f.default.secondRange(m[0]),f.default.minuteRange(m[1]),f.default.hourRange(m[2]),f.default.dayOfMonthRange(m[3]),f.default.monthRange(m[4],this.monthStartIndexZero),f.default.dayOfWeekRange(m[5],this.dayOfWeekStartIndexZero)},u.prototype.validateOnlyExpectedCharactersFound=function(m,y){var w=m.match(new RegExp("[^".concat(y,"]+"),"gi"));if(w&&w.length)throw new Error("Expression contains invalid values: '".concat(w.toString(),"'"))},u})();c.CronParser=g},333(l,c,d){Object.defineProperty(c,"__esModule",{value:!0}),c.ExpressionDescriptor=void 0;var f=d(823),g=d(949),u=(function(){function m(y,w){if(this.expression=y,this.options=w,this.expressionParts=new Array(5),!this.options.locale&&m.defaultLocale&&(this.options.locale=m.defaultLocale),!m.locales[this.options.locale]){var x=Object.keys(m.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(x,"'.")),this.options.locale=x}this.i18n=m.locales[this.options.locale],w.use24HourTimeFormat===void 0&&(w.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return m.toString=function(y,w){var x=w===void 0?{}:w,E=x.throwExceptionOnParseError,k=E===void 0?!0:E,I=x.verbose,O=I===void 0?!1:I,R=x.dayOfWeekStartIndexZero,M=R===void 0?!0:R,T=x.monthStartIndexZero,P=T===void 0?!1:T,N=x.use24HourTimeFormat,D=x.trimHoursLeadingZero,C=D===void 0?!1:D,$=x.locale,H=$===void 0?null:$,q=x.logicalAndDayFields,U=q===void 0?!1:q,W={throwExceptionOnParseError:k,verbose:O,dayOfWeekStartIndexZero:M,monthStartIndexZero:P,use24HourTimeFormat:N,trimHoursLeadingZero:C,locale:H,logicalAndDayFields:U};W.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var K=new m(y,W);return K.getFullDescription()},m.initialize=function(y,w){w===void 0&&(w="en"),m.specialCharacters=["/","-",",","*"],m.defaultLocale=w,y.load(m.locales)},m.prototype.getFullDescription=function(){var y,w,x="";try{var E=new g.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=E.parse(),this.expressionParts[0]==="@reboot")return((w=(y=this.i18n).atReboot)===null||w===void 0?void 0:w.call(y))||"Run once, at startup";var k=this.getTimeOfDayDescription(),I=this.getDayOfMonthDescription(),O=this.getMonthDescription(),R=this.getDayOfWeekDescription(),M=this.getYearDescription();x+=k+I+R+O+M,x=this.transformVerbosity(x,!!this.options.verbose),x=x.charAt(0).toLocaleUpperCase()+x.substr(1)}catch(T){if(!this.options.throwExceptionOnParseError)x=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(T)}return x},m.prototype.getTimeOfDayDescription=function(){var y=this.expressionParts[0],w=this.expressionParts[1],x=this.expressionParts[2],E="";if(!f.StringUtilities.containsAny(w,m.specialCharacters)&&!f.StringUtilities.containsAny(x,m.specialCharacters)&&!f.StringUtilities.containsAny(y,m.specialCharacters))E+=this.i18n.atSpace()+this.formatTime(x,w,y);else if(!y&&w.indexOf("-")>-1&&!(w.indexOf(",")>-1)&&!(w.indexOf("/")>-1)&&!f.StringUtilities.containsAny(x,m.specialCharacters)){var k=w.split("-");E+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(x,k[0],""),this.formatTime(x,k[1],""))}else if(!y&&x.indexOf(",")>-1&&x.indexOf("-")==-1&&x.indexOf("/")==-1&&!f.StringUtilities.containsAny(w,m.specialCharacters)){var I=x.split(",");E+=this.i18n.at();for(var O=0;O-1?I=E.substring(0,E.indexOf("#")):E.indexOf("L")>-1&&(I=I.replace("L",""));var O=parseInt(I),R=y.i18n.daysOfTheWeekInCase?y.i18n.daysOfTheWeekInCase(k)[O]:w[O];if(E.indexOf("#")>-1){var M=null,T=E.substring(E.indexOf("#")+1),P=E.substring(0,E.indexOf("#"));switch(T){case"1":M=y.i18n.first(P);break;case"2":M=y.i18n.second(P);break;case"3":M=y.i18n.third(P);break;case"4":M=y.i18n.fourth(P);break;case"5":M=y.i18n.fifth(P);break}R=M+" "+R}return R},function(E){return parseInt(E)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0DaysOfTheWeek(E),E)},function(E){var k=E.substring(0,E.indexOf("-")),I=y.expressionParts[3]!="*";return I?y.i18n.commaAndX0ThroughX1(k):y.i18n.commaX0ThroughX1(k)},function(E){var k=null;if(E.indexOf("#")>-1){var I=E.substring(E.indexOf("#")+1),O=E.substring(0,E.indexOf("#"));k=y.i18n.commaOnThe(I,O).trim()+y.i18n.spaceX0OfTheMonth()}else if(E.indexOf("L")>-1)k=y.i18n.commaOnTheLastX0OfTheMonth(E.replace("L",""));else{var R=y.expressionParts[3]!="*";R?y.options.logicalAndDayFields?k=y.i18n.commaOnlyOnX0(E):k=y.i18n.commaAndOnX0():k=y.i18n.commaOnlyOnX0(E)}return k}),x},m.prototype.getMonthDescription=function(){var y=this,w=this.i18n.monthsOfTheYear(),x=this.getSegmentDescription(this.expressionParts[4],"",function(E,k){return k&&y.i18n.monthsOfTheYearInCase?y.i18n.monthsOfTheYearInCase(k)[parseInt(E)-1]:w[parseInt(E)-1]},function(E){return parseInt(E)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0Months(E),E)},function(E){return y.i18n.commaMonthX0ThroughMonthX1()||y.i18n.commaX0ThroughX1()},function(E){return y.i18n.commaOnlyInMonthX0?y.i18n.commaOnlyInMonthX0():y.i18n.commaOnlyInX0()});return x},m.prototype.getDayOfMonthDescription=function(){var y=this,w=null,x=this.expressionParts[3];switch(x){case"L":w=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":w=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var E=x.match(/(\d{1,2}W)|(W\d{1,2})/);if(E){var k=parseInt(E[0].replace("W","")),I=k==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),k.toString());w=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),I);break}else{var O=x.match(/L-(\d{1,2})/);if(O){var R=O[1];w=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(R),R);break}else{if(x=="*"&&this.expressionParts[5]!="*")return"";w=this.getSegmentDescription(x,this.i18n.commaEveryDay(),function(M){return M=="L"?y.i18n.lastDay():y.i18n.dayX0?f.StringUtilities.format(y.i18n.dayX0(),M):M},function(M){return M=="1"?y.i18n.commaEveryDay():y.i18n.commaEveryX0Days(M)},function(M){return y.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return y.i18n.commaOnDayX0OfTheMonth(M)})}break}}return w},m.prototype.getYearDescription=function(){var y=this,w=this.getSegmentDescription(this.expressionParts[6],"",function(x){return/^\d+$/.test(x)?new Date(parseInt(x),1).getFullYear().toString():x},function(x){return f.StringUtilities.format(y.i18n.commaEveryX0Years(x),x)},function(x){return y.i18n.commaYearX0ThroughYearX1()||y.i18n.commaX0ThroughX1()},function(x){return y.i18n.commaOnlyInYearX0?y.i18n.commaOnlyInYearX0():y.i18n.commaOnlyInX0()});return w},m.prototype.getSegmentDescription=function(y,w,x,E,k,I){var O=null,R=y.indexOf("/")>-1,M=y.indexOf("-")>-1,T=y.indexOf(",")>-1;if(!y)O="";else if(y==="*")O=w;else if(!R&&!M&&!T)O=f.StringUtilities.format(I(y),x(y));else if(T){for(var P=y.split(","),N="",D=0;D0&&P.length>2&&(N+=",",D0&&P.length>1&&(D==P.length-1||P.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),P[D].indexOf("/")>-1||P[D].indexOf("-")>-1){var C=P[D].indexOf("-")>-1&&P[D].indexOf("/")==-1,$=this.getSegmentDescription(P[D],w,x,E,C?this.i18n.commaX0ThroughX1:k,I);C&&($=$.replace(", ","")),N+=$}else if(!R)N+=x(P[D]);else{var H=this.getSegmentDescription(P[D],w,x,E,k,I);H&&H.startsWith(", ")&&(H=H.substring(2)),N+=H}R?O=N:O=f.StringUtilities.format(I(y),N)}else if(R){var P=y.split("/");if(O=f.StringUtilities.format(E(P[1]),P[1]),P[0].indexOf("-")>-1){var q=this.generateRangeSegmentDescription(P[0],k,x);q.indexOf(", ")!=0&&(O+=", "),O+=q}else if(P[0].indexOf("*")==-1){var U=f.StringUtilities.format(I(P[0]),x(P[0]));U=U.replace(", ",""),O+=f.StringUtilities.format(this.i18n.commaStartingX0(),U)}}else M&&(O=this.generateRangeSegmentDescription(y,k,x));return O},m.prototype.generateRangeSegmentDescription=function(y,w,x){var E="",k=y.split("-"),I=x(k[0],1),O=x(k[1],2),R=w(y);return E+=f.StringUtilities.format(R,I,O),E},m.prototype.formatTime=function(y,w,x){var E=0,k=0,I=parseInt(y)+E,O=parseInt(w)+k;O>=60?(O-=60,I+=1):O<0&&(O+=60,I-=1),I>=24?I=I-24:I<0&&(I=24+I);var R="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),R=M?"".concat(this.getPeriod(I)," "):" ".concat(this.getPeriod(I)),I>12&&(I-=12),I===0&&(I=12));var T="";x&&(T=":".concat(("00"+x).substring(x.length)));var P=I.toString(),N=("00"+P).substring(P.length),D=O.toString(),C=("00"+D).substring(D.length),$=this.options.trimHoursLeadingZero?P:N;return"".concat(M?R:"").concat($,":").concat(C).concat(T).concat(M?"":R)},m.prototype.transformVerbosity=function(y,w){if(!w&&(y=y.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),y=y.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),y=y.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),y=y.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var x=0,E=Object.entries(this.i18n.conciseVerbosityReplacements());x=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},m.locales={},m})();c.ExpressionDescriptor=u},747(l,c,d){Object.defineProperty(c,"__esModule",{value:!0}),c.enLocaleLoader=void 0;var f=d(486),g=(function(){function u(){}return u.prototype.load=function(m){m.en=new f.en},u})();c.enLocaleLoader=g},486(l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.en=void 0;var d=(function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days in a month"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f.prototype.atReboot=function(){return"Run once, at startup"},f.prototype.onTheHour=function(){return"on the hour"},f})();c.en=d},515(l,c){Object.defineProperty(c,"__esModule",{value:!0});function d(g,u){if(!g)throw new Error(u)}var f=(function(){function g(){}return g.secondRange=function(u){for(var m=u.split(","),y=0;y=0&&w<=59,"seconds part must be >= 0 and <= 59")}},g.minuteRange=function(u){for(var m=u.split(","),y=0;y=0&&w<=59,"minutes part must be >= 0 and <= 59")}},g.hourRange=function(u){for(var m=u.split(","),y=0;y=0&&w<=23,"hours part must be >= 0 and <= 23")}},g.dayOfMonthRange=function(u){for(var m=u.split(","),y=0;y=1&&w<=31,"DOM part must be >= 1 and <= 31")}},g.monthRange=function(u,m){for(var y=u.split(","),w=0;w=1&&x<=12,m?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},g.dayOfWeekRange=function(u,m){for(var y=u.split(","),w=0;w=0&&x<=6,m?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},g})();c.default=f},823(l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.StringUtilities=void 0;var d=(function(){function f(){}return f.format=function(g){for(var u=[],m=1;m-1})},f})();c.StringUtilities=d}},n={};function o(l){var c=n[l];if(c!==void 0)return c.exports;var d=n[l]={exports:{}};return r[l](d,d.exports,o),d.exports}var a={};return(()=>{var l=a;Object.defineProperty(l,"__esModule",{value:!0}),l.toString=void 0;var c=o(333),d=o(747);c.ExpressionDescriptor.initialize(new d.enLocaleLoader),l.default=c.ExpressionDescriptor;var f=c.ExpressionDescriptor.toString;l.toString=f})(),a})())})(s1)),s1.exports}var SU=So();const EU=Ri(SU);var l1={exports:{}},S6;function CU(){return S6||(S6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.fr=void 0;var g=(function(){function u(){}return u.prototype.conciseVerbosityReplacements=function(){return{"de le":"du"}},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},u.prototype.everyMinute=function(){return"toutes les minutes"},u.prototype.everyHour=function(){return"toutes les heures"},u.prototype.atSpace=function(){return"À "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},u.prototype.at=function(){return"À"},u.prototype.spaceAnd=function(){return" et"},u.prototype.everySecond=function(){return"toutes les secondes"},u.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},u.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},u.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},u.prototype.everyX0Hours=function(){return"toutes les %s heures"},u.prototype.betweenX0AndX1=function(){return"de %s à %s"},u.prototype.atX0=function(){return"%s"},u.prototype.commaEveryDay=function(){return", tous les jours"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},u.prototype.commaX0ThroughX1=function(){return", de %s à %s"},u.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},u.prototype.first=function(){return"premier"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"troisième"},u.prototype.fourth=function(){return"quatrième"},u.prototype.fifth=function(){return"cinquième"},u.prototype.commaOnThe=function(){return", le "},u.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},u.prototype.lastDay=function(){return"le dernier jour"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},u.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},u.prototype.commaAndOnX0=function(){return", et %s"},u.prototype.commaEveryX0Months=function(){return", tous les %s mois"},u.prototype.commaOnlyInX0=function(){return", uniquement en %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},u.prototype.firstWeekday=function(){return"premier jour ouvrable"},u.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Days=function(){return", tous les %s jours"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},u.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryHour=function(){return", chaque heure"},u.prototype.commaEveryX0Years=function(){return", tous les %s ans"},u.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},u.prototype.commaStartingX0=function(){return", à partir de %s"},u.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},u.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},u.prototype.onTheHour=function(){return"à l'heure pile"},u})();return f.fr=g,d().locales.fr=new g,l})())})(l1)),l1.exports}CU();var c1={exports:{}},E6;function TU(){return E6||(E6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.es=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocurrió un error mientras se generaba la descripción de la expresión. Revise la sintaxis de la expresión de cron."},u.prototype.at=function(){return"A las"},u.prototype.atSpace=function(){return"A las "},u.prototype.atX0=function(){return"a las %s"},u.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},u.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},u.prototype.commaEveryDay=function(){return", cada día"},u.prototype.commaEveryX0Days=function(){return", cada %s días"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},u.prototype.commaEveryX0Months=function(){return", cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},u.prototype.commaOnlyInX0=function(){return", sólo en %s"},u.prototype.commaOnlyOnX0=function(){return", sólo el %s"},u.prototype.commaAndOnX0=function(){return", y el %s"},u.prototype.commaOnThe=function(){return", en el "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},u.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},u.prototype.everyHour=function(){return"cada hora"},u.prototype.everyMinute=function(){return"cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},u.prototype.everySecond=function(){return"cada segundo"},u.prototype.everyX0Hours=function(){return"cada %s horas"},u.prototype.everyX0Minutes=function(){return"cada %s minutos"},u.prototype.everyX0Seconds=function(){return"cada %s segundos"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primero"},u.prototype.firstWeekday=function(){return"primer día de la semana"},u.prototype.fourth=function(){return"cuarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},u.prototype.second=function(){return"segundo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},u.prototype.spaceAnd=function(){return" y"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},u.prototype.lastDay=function(){return"el último día"},u.prototype.third=function(){return"tercer"},u.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},u.prototype.commaEveryX0Years=function(){return", cada %s años"},u.prototype.commaStartingX0=function(){return", comenzando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},u.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},u.prototype.onTheHour=function(){return"en punto"},u})();return f.es=g,d().locales.es=new g,l})())})(c1)),c1.exports}TU();var u1={exports:{}},C6;function kU(){return C6||(C6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.de=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"jede Minute"},u.prototype.everyHour=function(){return"jede Stunde"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},u.prototype.atSpace=function(){return"Um "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},u.prototype.at=function(){return"Um"},u.prototype.spaceAnd=function(){return" und"},u.prototype.everySecond=function(){return"Jede Sekunde"},u.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},u.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},u.prototype.everyX0Minutes=function(){return"alle %s Minuten"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},u.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},u.prototype.everyX0Hours=function(){return"alle %s Stunden"},u.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},u.prototype.atX0=function(){return"um %s"},u.prototype.commaEveryDay=function(){return", jeden Tag"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},u.prototype.commaX0ThroughX1=function(){return", %s bis %s"},u.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},u.prototype.first=function(){return"ersten"},u.prototype.second=function(){return"zweiten"},u.prototype.third=function(){return"dritten"},u.prototype.fourth=function(){return"vierten"},u.prototype.fifth=function(){return"fünften"},u.prototype.commaOnThe=function(){return", am "},u.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},u.prototype.lastDay=function(){return"der letzte Tag"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},u.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},u.prototype.commaAndOnX0=function(){return", und jeden %s"},u.prototype.commaEveryX0Months=function(){return", alle %s Monate"},u.prototype.commaOnlyInX0=function(){return", nur im %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},u.prototype.firstWeekday=function(){return"ersten Werktag"},u.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},u.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},u.prototype.commaEveryX0Days=function(){return", alle %s Tage"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},u.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},u.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},u.prototype.commaStartingX0=function(){return", beginnend %s"},u.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},u.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},u.prototype.onTheHour=function(){return"zur vollen Stunde"},u})();return f.de=g,d().locales.de=new g,l})())})(u1)),u1.exports}kU();var p1={exports:{}},T6;function OU(){return T6||(T6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.it=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},u.prototype.at=function(){return"Alle"},u.prototype.atSpace=function(){return"Alle "},u.prototype.atX0=function(){return"alle %s"},u.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},u.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},u.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},u.prototype.commaEveryDay=function(){return", ogni giorno"},u.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},u.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},u.prototype.commaEveryX0Years=function(){return", ogni %s anni"},u.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},u.prototype.commaOnlyInX0=function(){return", solo in %s"},u.prototype.commaOnlyOnX0=function(){return", solo il %s"},u.prototype.commaAndOnX0=function(){return", e il %s"},u.prototype.commaOnThe=function(){return", il "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},u.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},u.prototype.commaX0ThroughX1=function(){return", %s al %s"},u.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},u.prototype.everyHour=function(){return"ogni ora"},u.prototype.everyMinute=function(){return"ogni minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},u.prototype.everySecond=function(){return"ogni secondo"},u.prototype.everyX0Hours=function(){return"ogni %s ore"},u.prototype.everyX0Minutes=function(){return"ogni %s minuti"},u.prototype.everyX0Seconds=function(){return"ogni %s secondi"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primo"},u.prototype.firstWeekday=function(){return"primo giorno della settimana"},u.prototype.fourth=function(){return"quarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},u.prototype.second=function(){return"secondo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},u.prototype.lastDay=function(){return"l'ultimo giorno"},u.prototype.third=function(){return"terzo"},u.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},u.prototype.commaStartingX0=function(){return", a partire %s"},u.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},u.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},u.prototype.onTheHour=function(){return"all'ora esatta"},u})();return f.it=g,d().locales.it=new g,l})())})(p1)),p1.exports}OU();var d1={exports:{}},k6;function _U(){return k6||(k6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(y){y.exports=r}},o={};function a(y){var w=o[y];if(w!==void 0)return w.exports;var x=o[y]={exports:{}};return n[y](x,x.exports,a),x.exports}a.n=y=>{var w=y&&y.__esModule?()=>y.default:()=>y;return a.d(w,{a:w}),w},a.d=(y,w)=>{for(var x in w)a.o(w,x)&&!a.o(y,x)&&Object.defineProperty(y,x,{enumerable:!0,get:w[x]})},a.o=(y,w)=>Object.prototype.hasOwnProperty.call(y,w),a.r=y=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.ru=void 0;var g=function(y,w){var x=Number(y);return x!==void 0?w[x%100>4&&x%100<20?2:[2,0,1,1,1,2][x%10<5?Math.abs(x)%10:5]]:w[2]},u=function(y,w){var x=Number(y);return x!==void 0?w[x===0?0:x===1||x===2||x===4?1:2]:w[1]},m=(function(){function y(){}return y.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},y.prototype.atX0MinutesPastTheHourGt20=function(){return null},y.prototype.commaMonthX0ThroughMonthX1=function(){return null},y.prototype.commaYearX0ThroughYearX1=function(){return null},y.prototype.use24HourTimeFormatByDefault=function(){return!0},y.prototype.everyMinute=function(){return"каждую минуту"},y.prototype.everyHour=function(){return"каждый час"},y.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},y.prototype.atSpace=function(){return"В "},y.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},y.prototype.at=function(){return"В"},y.prototype.spaceAnd=function(){return" и"},y.prototype.everySecond=function(){return"каждую секунду"},y.prototype.everyX0Seconds=function(w){return g(w,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},y.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},y.prototype.atX0SecondsPastTheMinute=function(w){return g(w,["в %s секунду","в %s секунды","в %s секунд"])},y.prototype.everyX0Minutes=function(w){return g(w,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},y.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},y.prototype.atX0MinutesPastTheHour=function(w){return g(w,["в %s минуту","в %s минуты","в %s минут"])},y.prototype.everyX0Hours=function(w){return g(w,["каждый %s час","каждые %s часа","каждые %s часов"])},y.prototype.betweenX0AndX1=function(){return"с %s по %s"},y.prototype.atX0=function(){return"в %s"},y.prototype.commaEveryDay=function(){return", каждый день"},y.prototype.commaEveryX0DaysOfTheWeek=function(w){return g(w,[", каждый %s день недели",", каждые %s дня недели",", каждые %s дней недели"])},y.prototype.commaX0ThroughX1=function(w){return w&&(w[0]=="2"||w[0]=="3")?", со %s по %s":", с %s по %s"},y.prototype.commaAndX0ThroughX1=function(w){return w&&(w[0]=="2"||w[0]=="3")?" и со %s по %s":" и с %s по %s"},y.prototype.first=function(w){return u(w,["первое","первый","первую"])},y.prototype.second=function(w){return u(w,["второе","второй","вторую"])},y.prototype.third=function(w){return u(w,["третье","третий","третью"])},y.prototype.fourth=function(w){return u(w,["четвертое","четвертый","четвертую"])},y.prototype.fifth=function(w){return u(w,["пятое","пятый","пятую"])},y.prototype.commaOnThe=function(w){return w==="2"?", во ":", в "},y.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},y.prototype.lastDay=function(){return"последний день"},y.prototype.commaOnTheLastX0OfTheMonth=function(w){return u(w,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},y.prototype.commaOnlyOnX0=function(w){return w&&w[0]==="2"?", только во %s":", только в %s"},y.prototype.commaAndOnX0=function(){return", и %s"},y.prototype.commaEveryX0Months=function(w){return g(w,[""," каждые %s месяца"," каждые %s месяцев"])},y.prototype.commaOnlyInMonthX0=function(){return", только %s"},y.prototype.commaOnlyInX0=function(){return", только в %s"},y.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},y.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},y.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(w){return g(w,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},y.prototype.firstWeekday=function(){return"первый будний день"},y.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},y.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},y.prototype.commaEveryX0Days=function(w){return g(w,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},y.prototype.commaBetweenDayX0AndX1OfTheMonth=function(w){return w&&w.substring(0,w.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},y.prototype.commaOnDayX0OfTheMonth=function(w){return w&&w[0]=="2"?", во %s число месяца":", в %s число месяца"},y.prototype.commaEveryX0Years=function(w){return g(w,[", каждый %s год",", каждые %s года",", каждые %s лет"])},y.prototype.commaStartingX0=function(){return", начало %s"},y.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},y.prototype.daysOfTheWeekInCase=function(w){return w===void 0&&(w=2),w==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},y.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},y.prototype.monthsOfTheYearInCase=function(w){return w==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},y.prototype.onTheHour=function(){return"ровно в час"},y})();return f.ru=m,d().locales.ru=new m,l})())})(d1)),d1.exports}_U();var f1={exports:{}},O6;function RU(){return O6||(O6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.zh_CN=void 0;var g=(function(){function u(){}return u.prototype.setPeriodBeforeTime=function(){return!0},u.prototype.pm=function(){return"下午"},u.prototype.am=function(){return"上午"},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.everyMinute=function(){return"每分钟"},u.prototype.everyHour=function(){return"每小时"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},u.prototype.atSpace=function(){return"在"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},u.prototype.at=function(){return"在"},u.prototype.spaceAnd=function(){return" 和"},u.prototype.everySecond=function(){return"每秒"},u.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分钟后的第 %s 到 %s 秒"},u.prototype.atX0SecondsPastTheMinute=function(){return"在一分钟后的第 %s 秒"},u.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整点后的第 %s 到 %s 分钟"},u.prototype.atX0MinutesPastTheHour=function(){return"在整点后的第 %s 分钟"},u.prototype.everyX0Hours=function(){return"每隔 %s 小时"},u.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},u.prototype.atX0=function(){return"在%s"},u.prototype.commaEveryDay=function(){return", 每天"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},u.prototype.commaX0ThroughX1=function(){return", %s至%s"},u.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},u.prototype.first=function(){return"第一个"},u.prototype.second=function(){return"第二个"},u.prototype.third=function(){return"第三个"},u.prototype.fourth=function(){return"第四个"},u.prototype.fifth=function(){return"第五个"},u.prototype.commaOnThe=function(){return", 限每月的"},u.prototype.spaceX0OfTheMonth=function(){return"%s"},u.prototype.lastDay=function(){return"本月最后一天"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},u.prototype.commaOnlyOnX0=function(){return", 仅%s"},u.prototype.commaAndOnX0=function(){return", 或者为%s"},u.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},u.prototype.commaOnlyInX0=function(){return", 仅限%s"},u.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},u.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},u.prototype.firstWeekday=function(){return"第一个工作日"},u.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},u.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},u.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},u.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},u.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},u.prototype.commaStartingX0=function(){return", %s开始"},u.prototype.dayX0=function(){return" %s 号"},u.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},u.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u.prototype.onTheHour=function(){return"整点"},u})();return f.zh_CN=g,d().locales.zh_CN=new g,l})())})(f1)),f1.exports}RU();var h1={exports:{}},_6;function MU(){return _6||(_6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.uk=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"щохвилини"},u.prototype.everyHour=function(){return"щогодини"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},u.prototype.atSpace=function(){return"О "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},u.prototype.at=function(){return"О"},u.prototype.spaceAnd=function(){return" та"},u.prototype.everySecond=function(){return"Щосекунди"},u.prototype.everyX0Seconds=function(){return"кожні %s секунд"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},u.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},u.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},u.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},u.prototype.everyX0Hours=function(){return"кожні %s годин"},u.prototype.betweenX0AndX1=function(){return"між %s та %s"},u.prototype.atX0=function(){return"о %s"},u.prototype.commaEveryDay=function(){return", щоденно"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},u.prototype.commaX0ThroughX1=function(){return", %s по %s"},u.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},u.prototype.first=function(){return"перший"},u.prototype.second=function(){return"другий"},u.prototype.third=function(){return"третій"},u.prototype.fourth=function(){return"четвертий"},u.prototype.fifth=function(){return"п'ятий"},u.prototype.commaOnThe=function(){return", в "},u.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},u.prototype.lastDay=function(){return"останній день"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},u.prototype.commaOnlyOnX0=function(){return", тільки в %s"},u.prototype.commaAndOnX0=function(){return", і в %s"},u.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},u.prototype.commaOnlyInX0=function(){return", тільки в %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},u.prototype.firstWeekday=function(){return"перший будень"},u.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},u.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},u.prototype.commaEveryX0Days=function(){return", кожен %s день"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},u.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},u.prototype.commaEveryX0Years=function(){return", кожні %s роки"},u.prototype.commaStartingX0=function(){return", початок %s"},u.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},u.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},u.prototype.onTheHour=function(){return"рівно о годині"},u})();return f.uk=g,d().locales.uk=new g,l})())})(h1)),h1.exports}MU();var m1={exports:{}},R6;function PU(){return R6||(R6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.pt_BR=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},u.prototype.at=function(){return"às"},u.prototype.atSpace=function(){return"às "},u.prototype.atX0=function(){return"Às %s"},u.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},u.prototype.betweenX0AndX1=function(){return"entre %s e %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},u.prototype.commaEveryDay=function(){return", a cada dia"},u.prototype.commaEveryX0Days=function(){return", a cada %s dias"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},u.prototype.commaEveryX0Months=function(){return", a cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},u.prototype.commaOnlyInX0=function(m){return m&&m.length>1&&m[1]==="-"?"somente %s":", somente em %s"},u.prototype.commaOnlyOnX0=function(m){return m&&m.length>1&&m[1]==="-"?", somente %s":", somente de %s"},u.prototype.commaAndOnX0=function(){return", e de %s"},u.prototype.commaOnThe=function(m,y){return y==="6"||y==="0"?", no":", na "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},u.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},u.prototype.everyHour=function(){return"a cada hora"},u.prototype.everyMinute=function(){return"a cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},u.prototype.everySecond=function(){return"a cada segundo"},u.prototype.everyX0Hours=function(){return"a cada %s horas"},u.prototype.everyX0Minutes=function(){return"a cada %s minutos"},u.prototype.everyX0Seconds=function(){return"a cada %s segundos"},u.prototype.fifth=function(m){return m==="6"||m==="0"?"quinto":"quinta"},u.prototype.first=function(m){return m==="6"||m==="0"?"primeiro":"primeira"},u.prototype.firstWeekday=function(){return"primeiro dia da semana"},u.prototype.fourth=function(m){return m==="6"||m==="0"?"quarto":"quarta"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},u.prototype.second=function(m){return m==="6"||m==="0"?"segundo":"segunda"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},u.prototype.lastDay=function(){return"o último dia"},u.prototype.third=function(m){return m==="6"||m==="0"?"terceiro":"terceira"},u.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},u.prototype.commaEveryX0Years=function(){return", a cada %s anos"},u.prototype.commaStartingX0=function(){return", iniciando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},u.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},u.prototype.onTheHour=function(){return"na hora certa"},u})();return f.pt_BR=g,d().locales.pt_BR=new g,l})())})(m1)),m1.exports}PU();var g1={exports:{}},M6;function IU(){return M6||(M6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.pl=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},u.prototype.at=function(){return"O"},u.prototype.atSpace=function(){return"O "},u.prototype.atX0=function(){return"o %s"},u.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},u.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},u.prototype.betweenX0AndX1=function(){return"od %s do %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},u.prototype.commaEveryDay=function(){return", co dzień"},u.prototype.commaEveryX0Days=function(){return", co %s dni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},u.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},u.prototype.commaEveryX0Years=function(){return", co %s lat"},u.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},u.prototype.commaOnlyInX0=function(){return", tylko %s"},u.prototype.commaOnlyOnX0=function(){return", tylko %s"},u.prototype.commaAndOnX0=function(){return", i %s"},u.prototype.commaOnThe=function(){return", "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},u.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},u.prototype.commaX0ThroughX1=function(){return", od %s do %s"},u.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},u.prototype.everyHour=function(){return"co godzinę"},u.prototype.everyMinute=function(){return"co minutę"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},u.prototype.everySecond=function(){return"co sekundę"},u.prototype.everyX0Hours=function(){return"co %s godzin"},u.prototype.everyX0Minutes=function(){return"co %s minut"},u.prototype.everyX0Seconds=function(){return"co %s sekund"},u.prototype.fifth=function(){return"piąty"},u.prototype.first=function(){return"pierwszy"},u.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},u.prototype.fourth=function(){return"czwarty"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},u.prototype.second=function(){return"drugi"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},u.prototype.spaceAnd=function(){return" i"},u.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},u.prototype.lastDay=function(){return"ostatni dzień"},u.prototype.third=function(){return"trzeci"},u.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},u.prototype.commaStartingX0=function(){return", startowy %s"},u.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},u.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},u.prototype.onTheHour=function(){return"o pełnej godzinie"},u})();return f.pl=g,d().locales.pl=new g,l})())})(g1)),g1.exports}IU();function iT(t,e){return EU.toString(t,{locale:e})}const Vr={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},AU=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],DU=["January","February","March","April","May","June","July","August","September","October","November","December"];function P6(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const l=parseInt(a[1],10);for(let c=parseInt(a[0],10);c<=l;c++)r.push(c)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function I6(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,l)=>a-l);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=wi.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=P6(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,I6(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},z.t("ra_Deselect all")),v.createElement(Vt,{key:"addall",variant:"contained",style:Vr.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},z.t("ra_Select all")),v.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?v.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,v.createElement(Vt,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:Vr.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?z.t(AU[a]):r===12?DU[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),l;if(this.state.modes[e]===null){l=o?"every":a?"everyN":"specific";const d=JSON.parse(JSON.stringify(this.state.modes));return d[e]=l,setTimeout(()=>this.setState({modes:d},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",l=this.state.modes[e];let c=1;return a&&n&&(c=parseInt(n.replace("*/",""),10)||1),v.createElement("div",null,v.createElement(po,{variant:"standard",style:{...Vr.periodSelect,verticalAlign:"bottom"},value:l,onChange:d=>{const f=JSON.parse(JSON.stringify(this.state.modes));if(f[e]=d.target.value,d.target.value==="every")this.setCronAttr(e,"*",f);else if(d.target.value==="everyN"){const g=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${g}`,f)}else if(d.target.value==="specific"){let g=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!g&&(e==="months"||e==="dates")&&(g=1),this.setCronAttr(e,I6(g,r),f)}}},v.createElement(ur,{key:"every",value:"every"},z.t(`sc_every_${e}`)),v.createElement(ur,{key:"everyN",value:"everyN"},z.t(`sc_everyN_${e}`)),v.createElement(ur,{key:"specific",value:"specific"},z.t(`sc_specific_${e}`))),a&&v.createElement(Ar,{variant:"standard",key:"interval",label:z.t(`sc_${e}`),value:c,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:d=>{this.setState({[e]:`*/${d.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?z.t("ra_Invalid CRON"):iT(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return v.createElement("div",{style:Vr.mainDiv},v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},v.createElement(Ar,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},wi.convertCronToText(this.state.cron,this.props.language||"en"),v.createElement("span",{style:Vr.warning},n?z.t("ra_warning_every_second"):r?z.t("ra_warning_every_minute"):"")),v.createElement(pt,{control:v.createElement(Lr,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:z.t("ra_use seconds")}),v.createElement(AE,{position:"static",sx:{"&.MuiAppBar-root":Vr.appBar},color:"secondary"},v.createElement(k$,{value:this.state.tab,style:Vr.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&v.createElement(is,{id:"sc_seconds",label:z.t("sc_seconds")}),v.createElement(is,{id:"minutes",label:z.t("sc_minutes")}),v.createElement(is,{id:"hours",label:z.t("sc_hours")}),v.createElement(is,{id:"dates",label:z.t("sc_dates")}),v.createElement(is,{id:"months",label:z.t("sc_months")}),v.createElement(is,{id:"dow",label:z.t("sc_dows")}))),e===0&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("seconds",60)),e===1&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("minutes",60)),e===2&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("hours",24)),e===3&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("dates",31)),e===4&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("months",12)),e===5&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("dow",7)))}}function Ta(t,e,r,n){function o(a){return a instanceof r?a:new r(function(l){l(a)})}return new(r||(r=Promise))(function(a,l){function c(g){try{f(n.next(g))}catch(u){l(u)}}function d(g){try{f(n.throw(g))}catch(u){l(u)}}function f(g){g.done?a(g.value):o(g.value).then(c,d)}f((n=n.apply(t,e||[])).next())})}const NU=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 Ys(t,e,r){const n=$U(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&A6(n,"path",a),A6(n,"relativePath",a),n}function $U(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=NU.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function A6(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const LU=[".DS_Store","Thumbs.db"];function BU(t){return Ta(this,void 0,void 0,function*(){return id(t)&&FU(t.dataTransfer)?qU(t.dataTransfer,t.type):zU(t)?jU(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?HU(t):[]})}function FU(t){return id(t)}function zU(t){return id(t)&&id(t.target)}function id(t){return typeof t=="object"&&t!==null}function jU(t){return pv(t.target.files).map(e=>Ys(e))}function HU(t){return Ta(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Ys(r))})}function qU(t,e){return Ta(this,void 0,void 0,function*(){if(t.items){const r=pv(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(WU));return D6(aT(n))}return D6(pv(t.files).map(r=>Ys(r)))})}function D6(t){return t.filter(e=>LU.indexOf(e.name)===-1)}function pv(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?aT(r):[r]],[])}function N6(t,e){return Ta(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const l=yield a.getFile();return l.handle=a,Ys(l)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Ys(n,(r=e?.fullPath)!==null&&r!==void 0?r:void 0)})}function UU(t){return Ta(this,void 0,void 0,function*(){return t.isDirectory?sT(t):XU(t)})}function sT(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(l=>Ta(this,void 0,void 0,function*(){if(l.length){const c=Promise.all(l.map(UU));o.push(c),a()}else try{const c=yield Promise.all(o);r(c)}catch(c){n(c)}}),l=>{n(l)})}a()})}function XU(t){return Ta(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=Ys(n,t.fullPath);e(o)},n=>{r(n)})})})}var Sp={},$6;function VU(){return $6||($6=1,Sp.__esModule=!0,Sp.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(l){var c=l.trim().toLowerCase();return c.charAt(0)==="."?n.toLowerCase().endsWith(c):c.endsWith("/*")?a===c.replace(/\/.*$/,""):o===c})}return!0}),Sp}var GU=VU();const v1=Ri(GU);function L6(t){return JU(t)||YU(t)||cT(t)||KU()}function KU(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YU(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function JU(t){if(Array.isArray(t))return dv(t)}function B6(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function F6(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:rX,message:"File type must be ".concat(n)}},z6=function(e){return{code:nX,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},j6=function(e){return{code:oX,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},sX={code:iX,message:"Too many files"};function lX(t){return t.type===""&&typeof t.getAsFile=="function"}function uT(t,e){var r=t.type==="application/x-moz-file"||tX(t,e)||lX(t);return[r,r?null:aX(e)]}function pT(t,e,r){if(ia(t.size))if(ia(e)&&ia(r)){if(t.size>r)return[!1,z6(r)];if(t.sizer)return[!1,z6(r)]}return[!0,null]}function ia(t){return t!=null}function cX(t){var e=t.files,r=t.accept,n=t.minSize,o=t.maxSize,a=t.multiple,l=t.maxFiles,c=t.validator;return!a&&e.length>1||a&&l>=1&&e.length>l?!1:e.every(function(d){var f=uT(d,r),g=Nc(f,1),u=g[0],m=pT(d,n,o),y=Nc(m,1),w=y[0],x=c?c(d):null;return u&&w&&!x})}function ad(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function Ql(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function H6(t){t.preventDefault()}function uX(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function pX(t){return t.indexOf("Edge/")!==-1}function dX(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return uX(t)||pX(t)}function io(){for(var t=arguments.length,e=new Array(t),r=0;r1?o-1:0),l=1;lt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function _X(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var Jd=_.forwardRef(function(t,e){var r=t.children,n=sd(t,yX),o=RX(n),a=o.open,l=sd(o,bX);return _.useImperativeHandle(e,function(){return{open:a}},[a]),v.createElement(_.Fragment,null,r(Bt(Bt({},l),{},{open:a})))});Jd.displayName="Dropzone";var mT={disabled:!1,getFilesFromEvent:BU,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};Jd.defaultProps=mT;Jd.propTypes={children:oe.func,accept:oe.objectOf(oe.arrayOf(oe.string)),multiple:oe.bool,preventDropOnDocument:oe.bool,noClick:oe.bool,noKeyboard:oe.bool,noDrag:oe.bool,noDragEventsBubbling:oe.bool,minSize:oe.number,maxSize:oe.number,maxFiles:oe.number,disabled:oe.bool,getFilesFromEvent:oe.func,onFileDialogCancel:oe.func,onFileDialogOpen:oe.func,useFsAccessApi:oe.bool,autoFocus:oe.bool,onDragEnter:oe.func,onDragLeave:oe.func,onDragOver:oe.func,onDrop:oe.func,onDropAccepted:oe.func,onDropRejected:oe.func,onError:oe.func,validator:oe.func};var mv={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function RX(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Bt(Bt({},mT),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,l=e.minSize,c=e.multiple,d=e.maxFiles,f=e.onDragEnter,g=e.onDragLeave,u=e.onDragOver,m=e.onDrop,y=e.onDropAccepted,w=e.onDropRejected,x=e.onFileDialogCancel,E=e.onFileDialogOpen,k=e.useFsAccessApi,I=e.autoFocus,O=e.preventDropOnDocument,R=e.noClick,M=e.noKeyboard,T=e.noDrag,P=e.noDragEventsBubbling,N=e.onError,D=e.validator,C=_.useMemo(function(){return mX(r)},[r]),$=_.useMemo(function(){return hX(r)},[r]),H=_.useMemo(function(){return typeof E=="function"?E:U6},[E]),q=_.useMemo(function(){return typeof x=="function"?x:U6},[x]),U=_.useRef(null),W=_.useRef(null),K=_.useReducer(MX,mv),re=y1(K,2),Z=re[0],V=re[1],ee=Z.isFocused,F=Z.isFileDialogActive,J=_.useRef(typeof window<"u"&&window.isSecureContext&&k&&fX()),pe=function(){!J.current&&F&&setTimeout(function(){if(W.current){var ge=W.current.files;ge.length||(V({type:"closeDialog"}),q())}},300)};_.useEffect(function(){return window.addEventListener("focus",pe,!1),function(){window.removeEventListener("focus",pe,!1)}},[W,F,q,J]);var de=_.useRef([]),ie=_.useRef([]),fe=function(ge){U.current&&U.current.contains(ge.target)||(ge.preventDefault(),de.current=[])};_.useEffect(function(){return O&&(document.addEventListener("dragover",H6,!1),document.addEventListener("drop",fe,!1)),function(){O&&(document.removeEventListener("dragover",H6),document.removeEventListener("drop",fe))}},[U,O]),_.useEffect(function(){var ne=function(vt){ie.current=[].concat(q6(ie.current),[vt.target]),Ql(vt)&&V({isDragGlobal:!0,type:"setDragGlobal"})},ge=function(vt){ie.current=ie.current.filter(function(Fe){return Fe!==vt.target&&Fe!==null}),!(ie.current.length>0)&&V({isDragGlobal:!1,type:"setDragGlobal"})},je=function(){ie.current=[],V({isDragGlobal:!1,type:"setDragGlobal"})},Be=function(){ie.current=[],V({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",ne,!1),document.addEventListener("dragleave",ge,!1),document.addEventListener("dragend",je,!1),document.addEventListener("drop",Be,!1),function(){document.removeEventListener("dragenter",ne),document.removeEventListener("dragleave",ge),document.removeEventListener("dragend",je),document.removeEventListener("drop",Be)}},[U]),_.useEffect(function(){return!n&&I&&U.current&&U.current.focus(),function(){}},[U,I,n]);var Se=_.useCallback(function(ne){N?N(ne):console.error(ne)},[N]),Ce=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne),de.current=[].concat(q6(de.current),[ne.target]),Ql(ne)&&Promise.resolve(o(ne)).then(function(ge){if(!(ad(ne)&&!P)){var je=ge.length,Be=je>0&&cX({files:ge,accept:C,minSize:l,maxSize:a,multiple:c,maxFiles:d,validator:D}),st=je>0&&!Be;V({isDragAccept:Be,isDragReject:st,isDragActive:!0,type:"setDraggedFiles"}),f&&f(ne)}}).catch(function(ge){return Se(ge)})},[o,f,Se,P,C,l,a,c,d,D]),Oe=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne);var ge=Ql(ne);if(ge&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return ge&&u&&u(ne),!1},[u,P]),ke=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne);var ge=de.current.filter(function(Be){return U.current&&U.current.contains(Be)}),je=ge.indexOf(ne.target);je!==-1&&ge.splice(je,1),de.current=ge,!(ge.length>0)&&(V({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ql(ne)&&g&&g(ne))},[U,g,P]),Le=_.useCallback(function(ne,ge){var je=[],Be=[];ne.forEach(function(st){var vt=uT(st,C),Fe=y1(vt,2),Ft=Fe[0],wt=Fe[1],xe=pT(st,l,a),lt=y1(xe,2),St=lt[0],pr=lt[1],dr=D?D(st):null;if(Ft&&St&&!dr)je.push(st);else{var Br=[wt,pr];dr&&(Br=Br.concat(dr)),Be.push({file:st,errors:Br.filter(function(Eo){return Eo})})}}),(!c&&je.length>1||c&&d>=1&&je.length>d)&&(je.forEach(function(st){Be.push({file:st,errors:[sX]})}),je.splice(0)),V({acceptedFiles:je,fileRejections:Be,type:"setFiles"}),m&&m(je,Be,ge),Be.length>0&&w&&w(Be,ge),je.length>0&&y&&y(je,ge)},[V,c,C,l,a,d,m,y,w,D]),Ie=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne),de.current=[],Ql(ne)&&Promise.resolve(o(ne)).then(function(ge){ad(ne)&&!P||Le(ge,ne)}).catch(function(ge){return Se(ge)}),V({type:"reset"})},[o,Le,Se,P]),nt=_.useCallback(function(){if(J.current){V({type:"openDialog"}),H();var ne={multiple:c,types:$};window.showOpenFilePicker(ne).then(function(ge){return o(ge)}).then(function(ge){Le(ge,null),V({type:"closeDialog"})}).catch(function(ge){gX(ge)?(q(ge),V({type:"closeDialog"})):vX(ge)?(J.current=!1,W.current?(W.current.value=null,W.current.click()):Se(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 was provided."))):Se(ge)});return}W.current&&(V({type:"openDialog"}),H(),W.current.value=null,W.current.click())},[V,H,q,k,Le,Se,$,c]),Me=_.useCallback(function(ne){!U.current||!U.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),nt())},[U,nt]),Te=_.useCallback(function(){V({type:"focus"})},[]),ht=_.useCallback(function(){V({type:"blur"})},[]),be=_.useCallback(function(){R||(dX()?setTimeout(nt,0):nt())},[R,nt]),Ae=function(ge){return n?null:ge},it=function(ge){return M?null:Ae(ge)},Ze=function(ge){return T?null:Ae(ge)},Xe=function(ge){P&&ge.stopPropagation()},ve=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ge=ne.refKey,je=ge===void 0?"ref":ge,Be=ne.role,st=ne.onKeyDown,vt=ne.onFocus,Fe=ne.onBlur,Ft=ne.onClick,wt=ne.onDragEnter,xe=ne.onDragOver,lt=ne.onDragLeave,St=ne.onDrop,pr=sd(ne,xX);return Bt(Bt(hv({onKeyDown:it(io(st,Me)),onFocus:it(io(vt,Te)),onBlur:it(io(Fe,ht)),onClick:Ae(io(Ft,be)),onDragEnter:Ze(io(wt,Ce)),onDragOver:Ze(io(xe,Oe)),onDragLeave:Ze(io(lt,ke)),onDrop:Ze(io(St,Ie)),role:typeof Be=="string"&&Be!==""?Be:"presentation"},je,U),!n&&!M?{tabIndex:0}:{}),pr)}},[U,Me,Te,ht,be,Ce,Oe,ke,Ie,M,T,n]),at=_.useCallback(function(ne){ne.stopPropagation()},[]),Ye=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ge=ne.refKey,je=ge===void 0?"ref":ge,Be=ne.onChange,st=ne.onClick,vt=sd(ne,wX),Fe=hv({accept:C,multiple:c,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:Ae(io(Be,Ie)),onClick:Ae(io(st,at)),tabIndex:-1},je,W);return Bt(Bt({},Fe),vt)}},[W,r,c,Ie,n]);return Bt(Bt({},Z),{},{isFocused:ee&&!n,getRootProps:ve,getInputProps:Ye,rootRef:U,inputRef:W,open:Ae(nt)})}function MX(t,e){switch(e.type){case"focus":return Bt(Bt({},t),{},{isFocused:!0});case"blur":return Bt(Bt({},t),{},{isFocused:!1});case"openDialog":return Bt(Bt({},mv),{},{isFileDialogActive:!0});case"closeDialog":return Bt(Bt({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Bt(Bt({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Bt(Bt({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:!1});case"setDragGlobal":return Bt(Bt({},t),{},{isDragGlobal:e.isDragGlobal});case"reset":return Bt({},mv);default:return t}}function U6(){}function PX(){const t=jo();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=yD(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function e2(){return t=>function(r){const n=PX();return v.createElement(t,{...r,width:n})}}function IX(t){const[e,r]=v.useState(t.input||t.value||""),[n,o]=v.useState("");return v.createElement(Ho,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},v.createElement(Uo,{id:"form-dialog-title"},t.titleText),v.createElement(Wo,null,v.createElement(Dd,null,t.promptText),v.createElement(Ar,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let l="";t.verify&&(l=t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(l)},fullWidth:!0})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:v.createElement(Di,null)},t.applyText||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:v.createElement(fa,null)},t.cancelText||z.t("ra_Cancel"))))}const AX=e2()(IX);function DX(t){return v.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"m414.928297,149.715165 c-2.639376,-57.222555 -35.669446,-106.505345 -83.345894,-132.039151 c-3.758948,-2.049842 -7.636885,-3.932022 -11.590542,-5.641125 c-19.303146,-8.394083 -40.607459,-13.050853 -63.004303,-13.050853 c-84.113909,0 -152.791790,65.703174 -157.718988,148.605566 l0.043268,-0.010816 v0.281245 c0,3.061243 -0.146031,16.750306 -0.146031,16.750306 l-2.352723,5.224668 h15.744315 c5.916964,-19.384275 24.078904,-32.635245 45.513024,-32.635245 c26.231510,0 47.573684,21.915481 47.573684,48.146991 c0,26.226103 -21.342174,47.146409 -47.573684,47.146409 c-25.111939,0 -45.734774,-19.735831 -47.443879,-44.658471 h-18.789334 c-0.400232,0 -0.778832,0.638209 -1.162839,0.584122 l-19.762875,55.199753 c-2.774590,7.696379 2.926030,16.214860 11.103771,16.214860 h17.020735 l-0.129805,87.899899 c0,17.356066 14.073071,31.174935 31.429136,31.174935 h56.205745 v82.648189 c0,12.877778 12.937273,22.580734 25.815051,22.580734 h144.597825 c12.877778,0 23.429877,-9.702955 23.429877,-22.580734 v-166.037352 c0,-22.645636 5.976457,-44.761234 16.561008,-64.789128 c11.055093,-20.925714 17.523731,-44.620611 18.129489,-69.792045 c0.027042,-1.260193 0.037858,-2.552839 0.037858,-3.845485 c0,-2.466302 -0.070310,-4.938014 -0.183890,-7.377273 zm-155.393308,-11.731165 h-13.456494 v13.559257 c0,4.732489 -4.267352,8.567157 -8.999842,8.567157 c-4.727079,0 -8.999842,-3.834667 -8.999842,-8.567157 v-13.559257 h-12.185483 c-4.732489,0 -8.567157,-4.267352 -8.567157,-8.999842 c0,-4.727079 3.834667,-8.999842 8.567157,-8.999842 h12.185483 v-12.077311 c0,-4.732489 4.272762,-8.567157 8.999842,-8.567157 c4.732489,0 8.999842,3.834667 8.999842,8.567157 v12.077311 h13.456494 c4.727079,0 8.567157,4.272762 8.567157,8.999842 c0,4.732489 -3.840077,8.999842 -8.567157,8.999842 zm0,0"}),v.createElement("path",{fill:"currentColor",d:"m187.695312 285.875c3.9375-3.980469 6.414063-9.449219 6.414063-15.523438 0-12.128906-9.855469-21.980468-21.984375-21.980468-6.007812 0-11.472656 2.410156-15.457031 6.347656-4.023438 4.003906-6.523438 9.539062-6.523438 15.636719 0 12.125 9.855469 21.980469 21.980469 21.980469 6.078125 0 11.585938-2.476563 15.570312-6.460938zm0 0"}))}function gv(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"m524,128l-192,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,288c0,26.51 21.49,48 48,48l416,0c26.51,0 48,-21.49 48,-48l0,-224c0,-26.51 -21.49,-48 -48,-48z"}))}function NX(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"m631.75617,292.093l-72.424,124.155a63.997,63.997 0 0 1 -55.281,31.752l-399.964,0c-18.523,0 -30.064,-20.093 -20.731,-36.093l72.424,-124.155a64,64 0 0 1 55.282,-31.752l399.964,0c18.523,0 30.064,20.093 20.73,36.093zm-420.694,-68.093l328,0l0,-48c0,-26.51 -21.49,-48 -48,-48l-160,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,278.046l69.077,-118.418c17.137,-29.378 48.912,-47.628 82.923,-47.628z"}))}function t2(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"#EE3333",d:"M256,0C114.844,0,0,114.844,0,256s114.844,256,256,256s256-114.844,256-256S397.156,0,256,0z M256,448 c-105.865,0-192-86.135-192-192c0-40.406,12.25-78.604,35.542-111.198l267.656,267.656C334.604,435.75,296.406,448,256,448z M412.458,367.198L144.802,99.542C177.396,76.25,215.594,64,256,64c105.865,0,192,86.135,192,192 C448,296.406,435.75,334.604,412.458,367.198z"}))}var $X=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,l)=>l===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(c,d,f)=>`${d}${f.toUpperCase()}`);let l=o.trim();Number.isNaN(Number(o))||(l=Number(o)),e[n.startsWith("-")?n:a]=l}return e},{});function LX(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var BX=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],X6={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function FX(t,e){const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return _.createElement(jX(t.nodeName),zX(t,r),V6(t.childNodes,n,o));case 3:{const a=t.nodeValue?.toString()??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(a)&&!/[\u00A0\u202F]/.test(a))return null;if(!t.parentNode)return a;const l=t.parentNode.nodeName.toLowerCase();return BX.includes(l)?(/\S/.test(a)&&console.warn(`A textNode is not allowed inside '${l}'. Your text "${a}" will be ignored`),null):a}case 8:return null;case 11:return V6(t.childNodes,n,e);default:return null}}function zX(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=$X(o.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[X6[o.name]||o.name]=!0;break;default:r[X6[o.name]||o.name]=o.value}})}return r}function V6(t,e,r){const n=[...t].map((o,a)=>ld(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function jX(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function gT(t,e={}){return typeof t=="string"?HX(t,e):t instanceof Node?ld(t,e):null}function ld(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let l=t,c=`${o}-${n}`;const d=[];return a&&o===0&&(c=`${LX()}-${c}`),Array.isArray(r)&&r.forEach(f=>{f.condition(l,c,o)&&(typeof f.pre=="function"&&(l=f.pre(l,c,o),l instanceof Node||(l=t)),typeof f.post=="function"&&d.push(f.post(l,c,o)))}),d.length?d:FX(l,{key:c,level:o,...e})}function HX(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const c=new DOMParser().parseFromString(t,a);if(r){const{childNodes:f}=c.body;return n?f:[...f].map(g=>ld(g,e))}const d=c.querySelector(o)||c.body.childNodes[0];if(!(d instanceof Node))throw new TypeError("Error parsing input");return n?d:ld(d,e)}catch{}return null}var qX=Object.defineProperty,WX=(t,e,r)=>e in t?qX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ep=(t,e,r)=>WX(t,typeof e!="symbol"?e+"":e,r),G6="react-inlinesvg",UX=10,Ot={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function XX(t){return t[Math.floor(Math.random()*t.length)]}function gc(){return!!(typeof window<"u"&&window.document?.createElement)}function VX(){return JX()&&typeof window<"u"&&window!==null}function GX(t,...e){const r={};for(const n in t)({}).hasOwnProperty.call(t,n)&&(e.includes(n)||(r[n]=t[n]));return r}function KX(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function YX(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function JX(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}var QX=class{constructor(){Ep(this,"cacheApi"),Ep(this,"cacheStore"),Ep(this,"subscribers",[]),Ep(this,"isReady",!1),this.cacheStore=new Map;let t=G6,e=!1;gc()&&(t=window.REACT_INLINESVG_CACHE_NAME??G6,e=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),e?caches.open(t).then(r=>{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;const r=[...this.subscribers];this.subscribers.length=0,r.forEach(n=>{try{n()}catch(o){console.error(`Error in CacheStore subscriber callback: ${o.message}`)}})}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),this.cacheStore.get(t)?.content??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){return this.cacheStore.get(t)?.status===Ot.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Ot.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Ot.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!r?.content){this.cacheStore.set(t,{content:"",status:Ot.LOADING});try{const n=await vT(t,e);this.cacheStore.set(t,{content:n,status:Ot.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Ot.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Ot.LOADED)return;if(r?.status===Ot.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Ot.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Ot.LOADING});const n=await this.cacheApi?.match(t);if(n){const o=await n.text();this.cacheStore.set(t,{content:o,status:Ot.LOADED});return}try{await this.cacheApi?.add(new Request(t,e));const a=await(await this.cacheApi?.match(t))?.text()??"";this.cacheStore.set(t,{content:a,status:Ot.LOADED})}catch(o){throw this.cacheStore.set(t,{content:"",status:Ot.FAILED}),o}}async handleLoading(t,e){for(let r=0;r({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();await Promise.allSettled(t.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function K6(t){const e=_.useRef(void 0);return _.useEffect(()=>{e.current=t}),e.current}function ZX(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:l,title:c,uniquifyIDs:d=!1}=t;try{const f=eV(r,l),g=gT(f,{nodeOnly:!0});if(!g||!(g instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const u=yT(g,{baseURL:e,hash:a,uniquifyIDs:d});if(n){const m=u.querySelector("desc");m?.parentNode&&m.parentNode.removeChild(m);const y=document.createElementNS("http://www.w3.org/2000/svg","desc");y.innerHTML=n,u.prepend(y)}if(typeof c<"u"){const m=u.querySelector("title");if(m?.parentNode&&m.parentNode.removeChild(m),c){const y=document.createElementNS("http://www.w3.org/2000/svg","title");y.innerHTML=c,u.prepend(y)}}return u}catch(f){return o(f)}}function eV(t,e){return e?e(t):t}function yT(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],l=["href","xlink:href"],c=(d,f)=>l.includes(d)&&(f?!f.includes("#"):!1);return o&&[...t.children].forEach(d=>{if(d.attributes?.length){const f=Object.values(d.attributes).map(g=>{const u=g,m=/url\((.*?)\)/.exec(g.value);return m?.[1]&&(u.value=g.value.replace(m[0],`url(${r}${m[1]}__${n})`)),u});a.forEach(g=>{const u=f.find(m=>m.name===g);u&&!c(g,u.value)&&(u.value=`${u.value}__${n}`)})}return d.children.length?yT(d,e):d}),t}var Ns;function tV(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:l=null,onError:c,onLoad:d,src:f,title:g,uniqueHash:u}=t,[m,y]=_.useReducer((U,W)=>({...U,...W}),{content:"",element:null,isCached:e&&Ns.isCached(t.src),status:Ot.IDLE}),{content:w,element:x,isCached:E,status:k}=m,I=K6(t),O=K6(m),R=_.useRef(u??KX(8)),M=_.useRef(!1),T=_.useRef(!1),P=_.useCallback(U=>{M.current&&(y({status:U.message==="Browser does not support SVG"?Ot.UNSUPPORTED:Ot.FAILED}),c?.(U))},[c]),N=_.useCallback((U,W=!1)=>{M.current&&y({content:U,isCached:W,status:Ot.LOADED})},[]),D=_.useCallback(async()=>{const U=await vT(f,o);N(U)},[o,N,f]),C=_.useCallback(()=>{try{const U=ZX({...t,handleError:P,hash:R.current,content:w}),W=gT(U);if(!W||!_.isValidElement(W))throw new Error("Could not convert the src to a React element");y({element:W,status:Ot.READY})}catch(U){P(U)}},[w,P,t]),$=_.useCallback(async()=>{const U=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(f);let W;if(U?W=U[1]?window.atob(U[2]):decodeURIComponent(U[2]):f.includes("{M.current&&y({content:"",element:null,isCached:!1,status:Ot.LOADING})},[]);_.useEffect(()=>{if(M.current=!0,!(!gc()||T.current)){try{if(k===Ot.IDLE){if(!VX())throw new Error("Browser does not support SVG");if(!f)throw new Error("Missing src");H()}}catch(U){P(U)}return T.current=!0,()=>{M.current=!1}}},[]),_.useEffect(()=>{if(!(!gc()||!I)&&I.src!==f){if(!f){P(new Error("Missing src"));return}H()}},[P,H,I,f]),_.useEffect(()=>{k===Ot.LOADED&&C()},[k,C]),_.useEffect(()=>{!gc()||!I||I.src!==f||(I.title!==g||I.description!==n)&&C()},[n,C,I,f,g]),_.useEffect(()=>{if(O)switch(k){case Ot.LOADING:{O.status!==Ot.LOADING&&$();break}case Ot.LOADED:{O.status!==Ot.LOADED&&C();break}case Ot.READY:{O.status!==Ot.READY&&d?.(f,E);break}}},[$,C,E,d,O,f,k]);const q=GX(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return gc()?x?_.cloneElement(x,{ref:a,...q}):[Ot.UNSUPPORTED,Ot.FAILED].includes(k)?r:l:l}function rV(t){Ns||(Ns=new QX);const{loader:e}=t,[r,n]=_.useState(Ns.isReady);return _.useEffect(()=>{r||Ns.onReady(()=>{n(!0)})},[r]),r?v.createElement(tV,{...t}):e}const nV=window.location.hostname.endsWith("iobroker.in"),Y6=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1),Qd=v.forwardRef(function(e,r){if(e.src){if(typeof e.src=="string"){if(e.src.length<3)return e.sx?v.createElement(ft,{component:"span",sx:e.sx,ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src):v.createElement("span",{ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src);if(e.src.startsWith("data:image/svg"))return v.createElement(rV,{title:e.title||void 0,src:e.src,className:e.className?`iconOwn ${e.className}`:"iconOwn",width:e.style?.width||28,height:e.style?.height||e.style?.width||28,style:e.style||void 0});if(nV&&!e.src.startsWith("http://")&&!e.src.startsWith("https://")){let n=e.src;return n.startsWith("./")?n=Y6+n.substring(2):n.startsWith("/")||(n=Y6+n),e.sx?v.createElement(ft,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)}):v.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)})}return e.sx?v.createElement(ft,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError}):v.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError})}return e.src}return null});Qd.displayName="Icon";const Ji={dialog:{height:"100%"},paper:{height:"calc(100% - 64px)"},content:{textAlign:"center"},textarea:{width:"100%",height:"100%"},img:{width:"auto",height:"calc(100% - 5px)",objectFit:"contain"},dialogTitle:{justifyContent:"space-between",display:"flex"}},Pr={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics","csv"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function J6(t,e){let r="";const n=new Uint8Array(t?.data||t),o=n.byteLength;for(let a=0;a{let a="";o.file!==void 0&&(a=o.file);const l={copyPossible:this.state.copyPossible,ext:this.state.ext};if(a.type==="Buffer")if(n.toLowerCase().endsWith(".json5")){l.ext="json5",l.copyPossible=!0;try{a=atob(J6(a,!0))}catch{console.error("Cannot convert base64 to string"),a=""}}else{const c=Je.detectMimeType(J6(a));c&&(l.ext=c,l.copyPossible=Pr.code.includes(c)||Pr.txt.includes(c))}l.copyPossible&&(l.ext&&Pr.txt.includes(l.ext)?(l.text=a,l.editingValue=a):l.ext&&Pr.code.includes(l.ext)&&(l.code=a,l.editingValue=a)),this.setState(l)}).catch(o=>window.alert(`Cannot read file: ${o}`))}}componentDidMount(){this.readFile();const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(r,n,this.onFileChanged).catch(o=>window.alert(`Cannot subscribe on file: ${o}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.unsubscribeFiles(r,n,this.onFileChanged)}onFileChanged=(e,r,n)=>{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,n===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))};getEditorOrViewer(){return v.createElement(Ar,{variant:"standard",style:Ji.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&Pr.images.includes(this.state.ext)?this.state.imgError?v.createElement(t2,{style:{...Ji.img,...this.props.getStyleBackgroundImage()}}):v.createElement(Qd,{onError:e=>{e.target.onerror=null,this.setState({imgError:!0})},style:{...Ji.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Pr.audio.includes(this.state.ext)?v.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Pr.video.includes(this.state.ext)?v.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},v.createElement("source",{src:this.props.href,type:`video/${this.state.ext}`}))):this.state.code!==null||this.state.text!==null||this.state.editing?this.getEditorOrViewer():null}onSave(){}render(){return v.createElement(Ho,{sx:{"&.MuiDialog-scrollPaper":Ji.dialog,"& .MuiDialog-paper":Ji.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},v.createElement("div",{style:Ji.dialogTitle},v.createElement(Uo,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Pr.images.includes(this.state.ext)&&v.createElement("div",null,v.createElement(cr,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},v.createElement(cy,null)))),v.createElement(Wo,{style:Ji.content},this.getContent()),v.createElement(qo,null,this.state.copyPossible?v.createElement(Vt,{color:"grey",onClick:e=>{e.stopPropagation(),e.preventDefault(),Je.copyToClipboard(this.state.text||this.state.code||"")},startIcon:v.createElement(F$,null)},this.props.t("Copy content")):null,this.state.editing?v.createElement(Vt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:v.createElement(nv,null)},this.props.t("Save")):null,v.createElement(Vt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:v.createElement(fa,null)},this.props.t("Close"))))}}const iV=e2()(oV),ps=32,No=32,Cp=120,Q6=64,Z6="Not found",Tp={all:oC,images:X$,code:uy,txt:W$,audio:I$,video:lL},we={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 8px)",overflowX:"hidden",overflowY:"auto",padding:8},filesDivHint:{position:"absolute",bottom:0,left:20,opacity:.7,fontStyle:"italic",fontSize:12},filesDivTable:{height:"calc(100% - 56px)"},filesDivTile:{height:"calc(100% - 104px)",display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${Q6}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:Cp,width:Q6,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:Je.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:Cp-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:(t.palette.mode==="dark","#FFF")}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:Cp-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:Cp-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:Je.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:ps,display:"inline-flex",lineHeight:`${ps}px`,"&:hover":{background:t.palette.secondary.light,color:Je.invertColor(t.palette.secondary.main,!0)}}),itemNameTable:{display:"inline-block",pl:"10px",fontSize:"1rem",verticalAlign:"top",flexGrow:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden","@media screen and (max-width: 500px)":{textAlign:"end",direction:"rtl"}},itemNameFolderTable:{fontWeight:"bold"},itemSizeTable:{display:"inline-block",width:60,verticalAlign:"top",textAlign:"right",whiteSpace:"nowrap"},itemAccessTable:{verticalAlign:"top",width:60,textAlign:"right",paddingRight:5,display:"flex",justifyContent:"center"},itemImageTable:{display:"inline-block",width:30,marginTop:1,objectFit:"contain",maxHeight:30},itemNoImageTable:{marginTop:6},itemIconTable:{display:"inline-block",marginTop:1,width:30,height:30},itemFolderTable:{},itemFolderTemp:{opacity:.4},itemFolderIconTable:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:No,height:ps,minWidth:No,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${No/2}px`,"&:hover":{backgroundColor:t.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.08)"},"& span":{pt:"9px"},"& svg":{width:14,height:14,fontSize:"1rem",mt:"-3px",verticalAlign:"middle",color:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:No,height:ps,minWidth:No,padding:0},itemAclButtonTable:{width:No,height:ps,minWidth:No,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:No,height:ps,minWidth:No,verticalAlign:"top",padding:0,"& svg":{width:18,height:18,fontSize:"1.5rem"}},uploadDiv:{top:0,zIndex:1,bottom:0,left:0,right:0,position:"absolute",opacity:.9,textAlign:"center",background:"#FFFFFF"},uploadDivDragging:{opacity:1},uploadCenterDiv:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.palette.mode==="dark"?"#222":"#CCC",display:"flex",alignItems:"center",justifyContent:"center"}),uploadCenterIcon:{width:"25%",height:"25%"},uploadCenterText:{fontSize:24,fontWeight:"bold"},uploadCloseButton:{zIndex:2,position:"absolute",top:30,right:30},uploadCenterTextAndIcon:{position:"absolute",height:"30%",width:"100%",margin:"auto",opacity:.3},menuButtonExpertActive:{color:"#c00000"},menuButtonRestrictActive:{color:"#c05000"},pathDiv:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText,borderRadius:"4px 4px 0 0"}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer",color:"white","&:hover":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:"#FFF"},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},mi="0_userdata.0";function ds(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function b1(t){const e=Je.getFileExtension(t);return!!(e?.toLowerCase().match(/[a-z]+/)&&e.length<5)}const kt="Table",x1="Tile";function e8(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.named.startsWith(`${this.limitToPath}/`)||d===this.limitToPath||this.limitToPath?.startsWith(`${d}/`)))}catch{n=[]}let o;this.props.showViewTypeButton?o=this.localStorage.getItem("files.viewType")||kt:o=kt;let a=this.props.selected||this.localStorage.getItem("files.selected")||mi,l;if(e.restrictToFolder){a=e.restrictToFolder,l=e.restrictToFolder;const d=e.restrictToFolder.split("/");n=[];let f="";for(let g=0;g{if(this.state.viewType===kt&&!this.findItem(this.state.selected)){const r=this.state.selected.split("/");for(;r.length&&!this.findItem(r.join("/"));)r.pop();let n;r.length?n=r.join("/"):n=mi,this.setState({selected:n,path:n,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){this.mounted&&document.getElementById(this.state.selected)?.scrollIntoView()}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`)),this.browseList=[],this.browseListRunning=!1,this.supportSubscribes=await this.props.socket.checkFeatureSupported("BINARY_STATE_EVENT"),this.supportSubscribes&&await this.props.socket.subscribeFiles("*","*",this.onFileChange)}componentWillUnmount(){this.supportSubscribes&&this.props.socket.unsubscribeFiles("*","*",this.onFileChange),this.mounted=!1,this.browseList=null,this.browseListRunning=!1,Object.values(this._tempTimeout).forEach(e=>{e&&clearTimeout(e)}),this._tempTimeout={}}browseFoldersCb(e,r,n){if(!e?.length)n(r);else{const o=e.shift();o?this.browseFolder(o,r).catch(a=>console.error(`Cannot read folder ${o}: ${a.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(e,r,n),0)}):setTimeout(()=>this.browseFoldersCb(e,r,n),0)}}browseFolders(e,r){let n;return r?n=r:(n={},Object.keys(this.state.folders).forEach(o=>n[o]=this.state.folders[o])),e?.length?new Promise(o=>{this.browseFoldersCb(e,n,o)}):Promise.resolve(n)}readDirSerial(e,r){return new Promise((n,o)=>{this.browseList&&(this.browseList.push({resolve:n,reject:o,adapter:e,relPath:r}),this.browseListRunning||this.processBrowseList())})}processBrowseList(e=0){!this.browseListRunning&&this.browseList&&this.browseList.length&&(this.browseListRunning=!0,this.browseList.length>10?this.browseList.length%10||this.setState({queueLength:this.browseList.length}):this.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath||"").then(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.resolve;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.reject;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(e,r,n,o){let a;if(r?a=r:(a={},Object.keys(this.state.folders).forEach(u=>{a[u]=this.state.folders[u]})),a[e]&&!o)return n?Promise.resolve(a):new Promise((u,m)=>{Promise.all(a[e].filter(y=>y.folder).map(y=>this.browseFolder(y.id,a,!0).catch(()=>{}))).then(()=>u(a)).catch(y=>m(new Error(y)))});if(!e||e==="/"){try{let u=await this.props.socket.readMetaItems();const m=[];let y=null;if(this.state.restrictToFolder){const x=this.state.restrictToFolder.split("/")[0];u=u.filter(E=>E._id===x)}else this.state.expertMode||(u=u.filter(x=>!x._id.endsWith(".admin")));const w=u.findIndex(x=>x._id==="system.meta.uuid");if(w!==-1&&u.splice(w,1),u.forEach(x=>{if(this.limitToObjectID&&this.limitToObjectID!==x._id)return;const E={id:x._id,name:x._id,title:x.common&&x.common.name||x._id,meta:!0,from:x.from,ts:x.ts,color:x.common&&x.common.color,icon:x.common&&x.common.icon,folder:!0,acl:x.acl,level:0};E.id===mi?y=E:m.push(E)}),m.sort((x,E)=>x.id>E.id?1:x.idx.folder).map(x=>this.browseFolder(x.id,a,!0).catch(()=>{}))).then(()=>a)}catch(u){const m=u;this.initialReadFinished&&window.alert(`Cannot read meta items: ${m.message}`),a[e||"/"]=[]}return a}const l=e.split("/"),c=l.length,d=l.shift(),f=l.join("/");let g;try{g=await this.readDirSerial(d||"",f)}catch(u){if(u==="Not exists"&&d==="0_userdata.0")g=[];else throw u}try{const u=[];if(g.forEach(m=>{const y={id:`${e}/${m.file}`,ext:Je.getFileExtension(m.file),folder:m.isDir,name:m.file,size:m.stats?.size,modified:m.modifiedAt,acl:m.acl,level:c};this.state.restrictToFolder?(y.folder&&(y.id.startsWith(`${this.state.restrictToFolder}/`)||y.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${y.id}/`))||y.id.startsWith(`${this.state.restrictToFolder}/`))&&u.push(y):this.limitToPath?(y.folder&&(y.id.startsWith(`${this.limitToPath}/`)||y.id===this.limitToPath||this.limitToPath.startsWith(`${y.id}/`))||y.id.startsWith(`${this.limitToPath}/`))&&u.push(y):u.push(y)}),u.sort(e8),a[e]=u,!n)return Promise.all(u.filter(m=>m.folder).map(m=>this.browseFolder(m.id,a,!0))).then(()=>a)}catch(u){const m=u;this.initialReadFinished&&window.alert(`Cannot read ${d}${f?`/${f}`:""}: ${m?.message}`),a[e]=[]}return a}toggleFolder(e,r){r?.stopPropagation();const n=[...this.state.expanded],o=n.indexOf(e.id);o===-1?(n.push(e.id),n.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(n)),e.temp?this.setState({expanded:n}):this.browseFolder(e.id).then(a=>this.setState({expanded:n,folders:a})).catch(a=>window.alert(a===Z6?this.props.t('ra_Cannot find "%s"',e.id):this.props.t('ra_Cannot read "%s"',e.id)))):(n.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(n)),this.setState({expanded:n}))}onFileChange=(e,r,n)=>{const o=`${e}/${r}`,a=o.lastIndexOf("/"),l=o.substring(0,a);console.log(`File changed ${o}[${n}]`),this.state.folders[l]&&(this._tempTimeout[l]&&clearTimeout(this._tempTimeout[l]),this._tempTimeout[l]=setTimeout(()=>{delete this._tempTimeout[l],this.browseFolder(l,null,!1,!0).then(c=>this.setState({folders:c})).catch(c=>console.error(`Cannot read folder: ${c.message}`))},300))};changeFolder(e,r){e?.stopPropagation(),this.lastSelect=Date.now();let n=r||ds(this.state.currentDir);if(n==="/"&&(n=""),this.state.viewType==="Tile"&&this.refFileDiv.current?.scrollTop&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem("files.currentDir",n),r&&e&&(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)){this.setState({selected:n});return}if(n&&!this.state.folders[n]){this.browseFolder(n).then(o=>this.setState({folders:o,path:n,currentDir:n,selected:n,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(o=>console.error(`Cannot read folder: ${o.message}`));return}this.setState({currentDir:n,selected:n,path:n,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(""),this.state.viewType==="Tile"&&this.scrollPositions[this.state.currentDir]){const o=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=o)}})}select(e,r,n){r&&r.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",e),this.setState({selected:e,path:e,pathFocus:!1},()=>{if(this.props.onSelect){const o=Je.getFileExtension(e);(!this.props.filterFiles||o&&this.props.filterFiles.includes(o))&&(!this.state.filterByType||o&&Pr[this.state.filterByType].includes(o))?this.props.onSelect(e,!1,!!this.state.folders[e]):this.props.onSelect("")}n&&n()})}getText(e){if(e)return typeof e=="object"?e[this.props.lang]||e.en||void 0:e}renderFolder(e,r){if(this.state.filterEmpty&&!this.state.folders[e.id]?.length&&e.id!==mi&&!e.temp)return null;const n=r?NX:gv,o=this.state.viewType===kt?e.level*this.levelPadding:0,a=e.name===mi,l=a||e.name==="vis.0"||e.name==="vis-2.0",c=Je.getStyle(this.props.theme,we[`itemFolderIcon${this.state.viewType}`],l&&we.specialFolder);return v.createElement(ft,{component:"div",key:e.id,id:e.id,style:this.state.viewType===kt?{marginLeft:o,width:`calc(100% - ${o}px)`}:void 0,onClick:d=>this.state.viewType===kt?this.select(e.id,d):this.changeFolder(d,e.id),onDoubleClick:d=>this.state.viewType===kt&&this.toggleFolder(e,d),title:this.getText(e.title),className:"browserItem",sx:Je.getStyle(this.props.theme,we[`item${this.state.viewType}`],we[`itemFolder${this.state.viewType}`],this.state.selected===e.id?we.itemSelected:{},e.temp?we.itemFolderTemp:{})},v.createElement(n,{style:c,onClick:this.state.viewType===kt?d=>this.toggleFolder(e,d):void 0}),v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,we[`itemName${this.state.viewType}`],we[`itemNameFolder${this.state.viewType}`])},a?this.props.t("ra_User files"):e.name),v.createElement(ft,{component:"div",style:we[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.state.folders[e.id]?this.state.folders[e.id].length:""),v.createElement(ft,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode?this.formatAcl(e.acl):null),this.state.viewType===kt&&this.props.expertMode?v.createElement(ft,{component:"div",sx:{...we.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===kt&&this.props.allowDownload?v.createElement("div",{style:we[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===kt&&this.props.allowDelete&&this.state.folders[e.id]&&this.state.folders[e.id].length?v.createElement(cr,{"aria-label":"delete",onClick:d=>{d.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:we[`itemDeleteButton${this.state.viewType}`],size:"large"},v.createElement(Lp,{fontSize:"small"})):this.state.viewType===kt&&this.props.allowDelete?v.createElement(ft,{component:"div",sx:we[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return v.createElement(ft,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:e=>this.changeFolder(e),title:this.props.t("ra_Back to %s",ds(this.state.currentDir)),className:"browserItem",sx:Je.getStyle(this.props.theme,we[`item${this.state.viewType}`],we[`itemFolder${this.state.viewType}`])},v.createElement(gv,{style:Je.getStyle(this.props.theme,we[`itemFolderIcon${this.state.viewType}`])}),v.createElement(P$,{sx:we.itemFolderIconBack}),v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,we[`itemName${this.state.viewType}`],we[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(e){return v.createElement("div",{style:we[`itemSize${this.state.viewType}`]},e||e===0?Je.formatBytes(e):"")}formatAcl(e){const r=e?e.permissions||e.file:0;let n;return r?n=r.toString(16).padStart(3,"0"):n="",v.createElement("div",{style:we[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?v.createElement(cr,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:we[`itemAclButton${this.state.viewType}`]},n||"---"):n||"---")}getFileIcon(e){switch(e){case"json":case"json5":return v.createElement(A$,{style:we[`itemIcon${this.state.viewType}`]});case"css":return v.createElement(D$,{style:we[`itemIcon${this.state.viewType}`]});case"js":case"ts":return v.createElement(uy,{style:we[`itemIcon${this.state.viewType}`]});case"html":case"md":return v.createElement(nC,{style:we[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return v.createElement(Q$,{style:we[`itemIcon${this.state.viewType}`]});default:return v.createElement(oC,{style:we[`itemIcon${this.state.viewType}`]})}}static getEditFile(e){switch(e){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":case"csv":return!0;default:return!1}}setStateBackgroundImage=()=>{const e=["light","dark","colored","delete"];this.setState(({backgroundImage:r})=>r&&e.indexOf(r)!==-1&&e.length-1!==e.indexOf(r)?(this.localStorage.setItem("files.backgroundImage",e[e.indexOf(r)+1]),{backgroundImage:e[e.indexOf(r)+1]}):(this.localStorage.setItem("files.backgroundImage",e[0]),{backgroundImage:e[0]}))};getStyleBackgroundImage=()=>{switch(this.state.backgroundImage){case"light":return we.backgroundImageLight;case"dark":return we.backgroundImageDark;case"colored":return we.backgroundImageColored;case"delete":return null;default:return null}};renderFile(e){const r=this.state.viewType===kt?e.level*this.levelPadding:0,n=Je.getFileExtension(e.name);return v.createElement(ft,{component:"div",key:e.id,id:e.id,onDoubleClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Pr[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},onClick:o=>this.select(e.id,o),style:this.state.viewType===kt?{marginLeft:r,width:`calc(100% - ${r}px)`}:void 0,className:"browserItem",sx:Je.getStyle(this.props.theme,we[`item${this.state.viewType}`],we[`itemFile${this.state.viewType}`],this.state.selected===e.id?we.itemSelected:void 0)},n&&Pr.images.includes(n)?this.state.fileErrors.includes(e.id)?v.createElement(t2,{style:{...we[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...we[`itemNoImage${this.state.viewType}`]}}):v.createElement(Qd,{onError:o=>{o.target.onerror=null;const a=[...this.state.fileErrors];a.includes(e.id)||(a.push(e.id),this.setState({fileErrors:a}))},style:{...we[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+e.id,alt:e.name}):this.getFileIcon(n),v.createElement(ft,{component:"div",sx:we[`itemName${this.state.viewType}`]},e.name),v.createElement(ft,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(e.size)),v.createElement(ft,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode?this.formatAcl(e.acl):null),v.createElement(ft,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode&&r2.getEditFile(n)?v.createElement(cr,{"aria-label":"edit",onClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Pr[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},sx:we.itemDeleteButtonTable,size:"large"},v.createElement(j$,{fontSize:"small"})):v.createElement(ft,{component:"div",sx:we[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===kt&&this.props.allowDownload?v.createElement(ft,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:we.itemDownloadButtonTable,tabIndex:0,download:e.id,href:this.imagePrefix+e.id,onClick:o=>o.stopPropagation()},v.createElement(rL,null)):null,this.state.viewType===kt&&this.props.allowDelete&&e.id!=="vis.0/"&&e.id!=="vis-2.0/"&&e.id!==mi?v.createElement(cr,{"aria-label":"delete",onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:we[`itemDeleteButton${this.state.viewType}`],size:"large"},v.createElement(Lp,{fontSize:"small"})):this.state.viewType===kt&&this.props.allowDelete?v.createElement(ft,{component:"div",sx:we[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(e){if(this.state.folders?.[e]){if(this.state.viewType===x1){const n=[];return e&&e!=="/"&&n.push(this.renderBackFolder()),this.state.folders[e].forEach(o=>{o.folder?n.push(this.renderFolder(o)):(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&Pr[this.state.filterByType].includes(o.ext))&&n.push(this.renderFile(o))}),n}const r=[];return this.state.folders[e].forEach(n=>{if(n.folder){const o=this.state.expanded.includes(n.id),a=this.renderFolder(n,o);if(Array.isArray(a)?a.forEach(l=>r.push(l)):r.push(a),this.state.folders[n.id]&&o){const l=this.renderItems(n.id);Array.isArray(l)?l.forEach(c=>r.push(c)):r.push(l)}}else(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Pr[this.state.filterByType].includes(n.ext))&&r.push(this.renderFile(n))}),r}return v.createElement("div",{style:{position:"relative"}},v.createElement(Vv,{key:e,color:"secondary",size:24}),v.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const e=this.props.showTypeSelector?Tp[this.state.filterByType||"all"]||Tp.all:null,r=this.findFirstFolder(this.state.selected);return v.createElement(ly,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?v.createElement(cr,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...we.menuButton,...this.state.restrictToFolder?we.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},v.createElement(q$,{fontSize:"small"})):null,this.props.showExpertButton?v.createElement(cr,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...we.menuButton,...this.state.expertMode?we.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},v.createElement(DX,null)):null,this.props.showViewTypeButton?v.createElement(cr,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:we.menuButton,"aria-label":"view mode",onClick:()=>{const n=this.state.viewType===kt?x1:kt;this.localStorage.setItem("files.viewType",n);let o=this.state.selected;b1(o)&&(o=ds(o)),this.setState({viewType:n,currentDir:o},()=>{this.state.viewType===kt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==kt?v.createElement(Y$,{fontSize:"small"}):v.createElement(cL,{fontSize:"small"})):null,v.createElement(cr,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:we.menuButton,color:this.state.filterEmpty?"secondary":"inherit","aria-label":"filter empty",onClick:()=>{this.localStorage.setItem("file.empty",this.state.filterEmpty?"false":"true"),this.setState({filterEmpty:!this.state.filterEmpty})},size:"small"},v.createElement(H$,{fontSize:"small"})),v.createElement(cr,{edge:"start",title:this.props.t("ra_Reload files"),style:we.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},v.createElement(eL,{fontSize:"small"})),this.props.allowCreateFolder?v.createElement(cr,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:we.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},v.createElement(z$,{fontSize:"small"})):null,this.props.allowUpload?v.createElement(cr,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:we.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},v.createElement(C4,{fontSize:"small"})):null,this.props.showTypeSelector&&e?v.createElement($p,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:we.tooltip}}},v.createElement(cr,{size:"small",onClick:n=>this.setState({showTypesMenu:n.target})},v.createElement(e,{fontSize:"small"}))):null,this.state.showTypesMenu?v.createElement(QE,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(Tp).map(n=>{const o=Tp[n];return v.createElement(ur,{key:n,selected:this.state.filterByType===n,onClick:()=>{n==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",n),this.setState({filterByType:n,showTypesMenu:null}))}},v.createElement(GD,null,v.createElement(o,{fontSize:"small"})),v.createElement(QD,null,this.props.t(`ra_fileType_${n}`)))})):null,v.createElement($p,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:we.tooltip}}},v.createElement(cr,{color:"inherit",edge:"start",style:we.menuButton,onClick:this.setStateBackgroundImage,size:"small"},v.createElement(cy,{fontSize:"small"}))),this.state.viewType!==kt&&this.props.allowDelete?v.createElement($p,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:we.tooltip}}},v.createElement("span",null,v.createElement(cr,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===mi,color:"inherit",edge:"start",style:we.menuButton,onClick:n=>{n.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},v.createElement(Lp,{fontSize:"small"})))):null)}findItem(e,r){if(r=r||this.state.folders,!r)return null;const n=e.split("/");n.pop();const o=n.join("/")||"/";return r[o]&&r[o].find(a=>a.id===e)||null}renderInputDialog(){if(this.state.addFolder){const e=this.findFirstFolder(this.state.selected);return e?v.createElement(AX,{key:"inputDialog",applyText:this.props.t("ra_Create"),cancelText:this.props.t("ra_Cancel"),titleText:this.props.t("ra_Create new folder in %s",this.state.selected),promptText:this.props.t("ra_If no file will be created in the folder, it will disappear after the browser closed"),labelText:this.props.t("ra_Folder name"),verify:r=>this.state.folders[e].find(n=>n.name===r)?"":this.props.t("ra_Duplicate name"),onClose:r=>{if(r){const n={};Object.keys(this.state.folders).forEach(c=>n[c]=this.state.folders[c]);const o=this.findItem(e),a=`${e}/${r}`;n[e].push({id:a,level:(o?.level||0)+1,name:r,folder:!0,temp:!0}),n[e].sort(e8),n[a]=[];const l=[...this.state.expanded];l.includes(e)||(l.push(e),l.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(l)),this.setState({addFolder:!1,folders:n,expanded:l},()=>this.select(a))}else this.setState({addFolder:!1})},replace:r=>r.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const e=window.document.getElementsByClassName("browserItem");for(let r=0;rthis.setState({uploadFile:!1})},v.createElement(fa,null)),v.createElement(Jd,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:e=>{let r=e.length;e.forEach(n=>{const o=new FileReader;o.onabort=()=>console.log("file reading was aborted"),o.onerror=()=>console.log("file reading has failed"),o.onload=()=>{const a=this.findFirstFolder(this.state.selected);if(!a)window.alert(this.props.t("ra_Invalid parent folder!"));else{const l=`${a}/${n.name}`;this.uploadFile(l,o.result).then(()=>{--r||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const c=[...this.state.expanded];c.includes(a)||(c.push(a),c.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(c))),this.setState({expanded:c},()=>this.select(l))}else setTimeout(()=>this.browseFolder(a,null,!1,!0).then(c=>{const d=[...this.state.expanded];d.includes(a)||(d.push(a),d.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(d))),this.setState({folders:c,expanded:d},()=>this.select(l))}),500)})})}},o.readAsArrayBuffer(n)})}},({getRootProps:e,getInputProps:r})=>v.createElement("div",{style:{...we.uploadDiv,...this.state.uploadFile==="dragging"?we.uploadDivDragging:void 0},...e()},v.createElement("input",{...r()}),v.createElement(ft,{component:"div",sx:we.uploadCenterDiv},v.createElement("div",{style:we.uploadCenterTextAndIcon},v.createElement(C4,{style:we.uploadCenterIcon}),v.createElement("div",{style:we.uploadCenterText},this.state.uploadFile==="dragging"?this.props.t("ra_Drop file here"):this.props.t("ra_Place your files here or click here to open the browse dialog"))))))]:null}deleteRecursive(e){const r=this.findItem(e);if(r?.folder)return(this.state.folders[e]?Promise.all(this.state.folders[e].map(a=>this.deleteRecursive(a.id))):Promise.resolve()).then(()=>{if(r.level>=1){const a=e.split("/"),l=a.shift();this.props.socket.deleteFolder(l||"",a.join("/")).then(()=>{const c=JSON.parse(JSON.stringify(this.state.folders));delete c[r.id];const d=ds(r.id),f=c[d];if(f){const g=f.findIndex(u=>u.id===r.id);g!==-1&&f.splice(g,1),this.select(d,null,()=>this.setState({folders:c}))}})}});const n=e.split("/"),o=n.shift();return n.length?this.props.socket.deleteFile(o||"",n.join("/")).catch(a=>window.alert(`Cannot delete file: ${a}`)):Promise.resolve()}deleteItem(e){e=e||this.state.deleteItem,this.state.suppressDeleteConfirm&&(this.suppressDeleteConfirm=Date.now()+6e4*5),this.setState({deleteItem:"",suppressDeleteConfirm:!1},()=>this.deleteRecursive(e).then(()=>{const r={},n=this.state.expanded.indexOf(e);if(n!==-1){const o=[...this.state.expanded];o.splice(n,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.expanded=o}if(this.state.selected===e){const o=this.state.selected.split("/");o.pop(),r.selected=o.join("/")}if(this.supportSubscribes)this.setState(r);else{const o=this.findFirstFolder(e),a={};Object.keys(this.state.folders).forEach(l=>{l!==o&&!l.startsWith(`${o}/`)&&(a[l]=this.state.folders[l])}),r.folders=a,this.setState(r,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],a).then(l=>this.setState({folders:l})).catch(l=>console.error(l))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?v.createElement(Ho,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},v.createElement(Uo,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),v.createElement(Wo,null,v.createElement(Dd,null,this.props.t("ra_Are you sure?")),v.createElement(pt,{control:v.createElement(Lr,{checked:this.state.suppressDeleteConfirm,onChange:()=>{this.setState({suppressDeleteConfirm:!this.state.suppressDeleteConfirm})}}),label:this.props.t("ra_no confirm for 5 mins")})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),v.createElement(Vt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const e=this.props.FileViewer||iV;return this.state.viewer?v.createElement(e,{supportSubscribes:this.supportSubscribes||void 0,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile||void 0,themeType:this.props.themeType||"light",setStateBackgroundImage:this.setStateBackgroundImage,getStyleBackgroundImage:this.getStyleBackgroundImage,t:this.props.t,socket:this.props.socket,onClose:()=>this.setState({viewer:"",formatEditFile:""})}):null}renderError(){return this.state.errorText?v.createElement(SL,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(e){this.cacheFolders||=JSON.parse(JSON.stringify(this.state.folders));let r;e.forEach(n=>{const o=this.findItem(n.id,this.cacheFolders);o&&JSON.stringify(o.acl)!==JSON.stringify(n.acl)&&(o.acl=n.acl,r=!0)}),r&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const n=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:n})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let e=this.state.path;b1(this.state.path)&&(e=ds(this.state.path)),new Promise(r=>{this.state.folders[e]?r(!0):this.browseFolder(e).then(n=>this.setState({folders:n},()=>r(!0))).catch(n=>this.setState({errorText:n===Z6?this.props.t('ra_Cannot find "%s"',e):this.props.t('ra_Cannot read "%s"',e)}))}).then(r=>r&&this.setState({selected:this.state.path,currentDir:e,pathFocus:!1})).catch(r=>console.error(r))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const e=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),r=[];return v.createElement(yI,{style:{paddingLeft:8,color:"#FFF"}},e.map((n,o)=>{n&&r.push(n);const a=r.join("/");return othis.changeFolder(l,a||"/")},n||this.props.t("ra_Root")):v.createElement("div",{style:we.pathDivBreadcrumbSelected,key:`${this.state.selected}_${o}`,onClick:()=>this.setState({pathFocus:!0})},n)}))}renderPath(){return v.createElement(ft,{component:"div",key:"path",sx:we.pathDiv},this.state.pathFocus?v.createElement(lo,{value:this.state.path,onKeyDown:e=>{e.key==="Enter"?this.changeToPath():e.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:v.createElement(cr,{size:"small",onClick:()=>this.changeToPath()},v.createElement(G$,null)),onBlur:()=>this.changeToPath(),onChange:e=>this.setState({path:e.target.value}),style:we.pathDivInput}):this.renderBreadcrumb())}render(){return this.props.ready?(this.state.loadAllFolders&&!this.foldersLoading&&(this.foldersLoading=!0,setTimeout(()=>{this.setState({loadAllFolders:!1,folders:{}},()=>{this.foldersLoading=!1,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`))})},300)),v.createElement("div",{style:{...we.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===x1?this.renderPath():null,v.createElement("div",{style:{...we.filesDiv,...we[`filesDiv${this.state.viewType}`]},onClick:e=>{this.state.viewType!==kt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(e,this.state.currentDir||"/"):e.stopPropagation())},id:"dev",ref:this.refFileDiv},this.state.viewType===kt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==kt?v.createElement("div",{style:we.filesDivHint},this.props.t("ra_select_folder_hint")):null),this.props.allowUpload?this.renderInputDialog():null,this.props.allowUpload?this.renderUpload():null,this.props.allowDelete?this.renderDeleteDialog():null,this.props.allowView?this.renderViewDialog():null,this.state.modalEditOfAccess&&this.props.modalEditOfAccessControl?this.props.modalEditOfAccessControl(this):null,this.renderError())):v.createElement(DD,null)}}const aV=e2()(r2);function sV(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r?.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function lV(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}class Bp extends _.Component{svg;static REMOTE_SERVER=window.location.hostname.includes("iobroker.in");static REMOTE_PREFIX=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);constructor(e){super(e),this.state={svg:!!this.props.src?.startsWith("data:"),created:!0,color:this.props.color||"",src:this.props.src||"",imgError:!1,showError:!!this.props.showError},this.svg=this.state.svg&&this.state.src?this.getSvgFromData(this.state.src):null}static getDerivedStateFromProps(e,r){const n={};let o=!1;return e&&r&&e.src!==r.src&&(n.src=e.src,n.svg=e.src?.startsWith("data:"),n.created=!1,o=!0),e&&r&&e.color!==r.color&&(n.color=e.color,n.created=!1,o=!0),e&&r&&e.showError!==r.showError&&(n.showError=e.showError,o=!0),o?n:null}getSvgFromData(e){const r="data:image/svg+xml;base64,";if(!e.startsWith(r))return null;e=e.substring(r.length);try{e=atob(e);const n=sV(e),o=n.innerHTML,a=lV(n.attributes);return n.remove(),v.createElement(ft,{component:"svg",sx:this.props.sx,className:this.props.className,style:this.state.color?{color:this.state.color}:void 0,...a,dangerouslySetInnerHTML:{__html:o}})}catch{}return null}render(){if(this.state.svg)return this.state.created||setTimeout(()=>{this.svg=this.state.src?this.getSvgFromData(this.state.src):null,this.setState({created:!0})},50),this.svg;if(this.state.src){if(this.state.imgError||!this.state.src)return v.createElement(t2,{className:this.props.className});if(Bp.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let e=(this.props.imagePrefix||"")+this.state.src;return e.startsWith("./")?e=Bp.REMOTE_PREFIX+e.substring(2):e.startsWith("/")||(e=Bp.REMOTE_PREFIX+e),v.createElement(ft,{component:"img",sx:this.props.sx,className:this.props.className,src:`https://remote-files.iobroker.in${e}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return v.createElement(ft,{component:"img",sx:this.props.sx,className:this.props.className,src:(this.props.imagePrefix||"")+this.state.src,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return null}}var w1={},Zl={},Qi={},t8;function n2(){if(t8)return Qi;t8=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.StateType=Qi.Types=void 0;var t;(function(r){r.unknown="unknown",r.airCondition="airCondition",r.blind="blind",r.blindButtons="blindButtons",r.button="button",r.buttonSensor="buttonSensor",r.camera="camera",r.chart="chart",r.cie="cie",r.ct="ct",r.dimmer="dimmer",r.door="door",r.fireAlarm="fireAlarm",r.floodAlarm="floodAlarm",r.gate="gate",r.hue="hue",r.humidity="humidity",r.illuminance="illuminance",r.image="image",r.info="info",r.instance="instance",r.light="light",r.location="location",r.locationOne="locationOne",r.lock="lock",r.media="media",r.motion="motion",r.percentage="percentage",r.rgb="rgb",r.rgbSingle="rgbSingle",r.rgbwSingle="rgbwSingle",r.slider="slider",r.socket="socket",r.temperature="temperature",r.thermostat="thermostat",r.vacuumCleaner="vacuumCleaner",r.volume="volume",r.volumeGroup="volumeGroup",r.warning="warning",r.weatherCurrent="weatherCurrent",r.weatherForecast="weatherForecast",r.window="window",r.windowTilt="windowTilt"})(t||(Qi.Types=t={}));var e;return(function(r){r.Number="number",r.String="string",r.Boolean="boolean"})(e||(Qi.StateType=e={})),Qi}var Rr={},r8;function o2(){if(r8)return Rr;r8=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.checkEnum=t,Rr.roleOrEnum=e,Rr.roleOrEnumLight=o,Rr.roleOrEnumBlind=c,Rr.roleOrEnumGate=g,Rr.roleOrEnumWindow=m,Rr.roleOrEnumDoor=x,Rr.getEnums=E,Rr.getAllStatesInChannel=k,Rr.getAllStatesInDevice=I,Rr.getObjectsBelowId=O,Rr.getFunctionEnums=R,Rr.getParentId=M;function t(T,P){let N=!1;return T&&T.forEach(D=>{const C=D.lastIndexOf(".");C!==-1&&(D=D.substring(C+1));for(const $ in P)if(Object.prototype.hasOwnProperty.call(P,$)&&P[$].find(H=>H.test(D)))return N=!0,!1}),N}function e(T,P,N,D){return T.common.role&&N?.includes(T.common.role)?!0:t(P,D)}const r={en:[/lights?/i,/lamps?/i,/ceilings?/i],de:[/licht(er)?/i,/lampen?/i,/beleuchtung(en)?/i],ru:[/свет/i,/ламп[аы]/i,/торшеры?/,/подсветк[аи]/i,/лампочк[аи]/i,/светильники?/i]},n=["switch.light","dimmer","value.dimmer","level.dimmer","sensor.light","state.light"];function o(T,P){return e(T,P,n,r)}const a={en:[/blinds?/i,/windows?/i,/shutters?/i],de:[/rollladen?/i,/fenstern?/i,/beschattung(en)?/i,/jalousien?/i],ru:[/ставни/i,/рольставни/i,/окна|окно/,/жалюзи/i]},l=["blind","level.blind","value.blind","action.stop","button.stop","button.stop.blind","button.open.blind","button.close.blind","level.tilt","value.tilt","button.tilt.open","button.tilt.close","button.tilt.stop"];function c(T,P){return e(T,P,l,a)}const d={en:[/gates?/i],de:[/^toren$/i,/^tor$/i],ru:[/ворота/i]},f=["gate","value.gate","switch.gate","action.stop","button.stop"];function g(T,P){return e(T,P,f,d)}const u=["window","state.window","sensor.window","value.window"];function m(T,P){return e(T,P,u,a)}const y={en:[/doors?/i,/gates?/i,/wickets?/i,/entry|entries/i],de:[/^türe?/i,/^tuere?/i,/^tore?$/i,/einfahrt(en)?/i,/pforten?/i],ru:[/двери|дверь/i,/ворота/i,/калитка|калитки/,/въезды?/i,/входы?/i]},w=["door","state.door","sensor.door"];function x(T,P){return e(T,P,w,y)}function E(){return{door:{roles:w,words:y},window:{roles:u,words:a},blind:{roles:l,words:a},gate:{roles:f,words:d},light:{roles:n,words:r}}}function k(T,P){const N=[],D=new RegExp(`^${P.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+$`);return T.forEach(C=>D.test(C)&&N.push(C)),N}function I(T,P){const N=[],D=new RegExp(`^${P.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+\\.[^.]+$`);return T.forEach(C=>D.test(C)&&N.push(C)),N}function O(T,P){const N=[];P+=".";let D=0,C=T.length-1,$=-1;for(;D<=C;){const H=Math.floor((D+C)/2);T[H]=T.length)return N;for(let H=$;H{a[g].common.members.includes(l)&&f.push(g)}),!f.length&&((d=a[l])===null||d===void 0?void 0:d.type)==="state"){const g=(0,e.getParentId)(l);a[g]&&(a[g].type==="channel"||a[g].type==="device")&&this.enums.forEach(u=>{a[u].common.members.includes(g)&&f.push(u)})}return f.length?f:null}static copyState(a,l){const c=l||JSON.parse(JSON.stringify(a));return c.original=a.original||a,"enums"in a&&a.enums&&(c.enums=a.enums),"role"in a&&a.role&&(c.role=a.role),"channelRole"in a&&a.channelRole&&(c.channelRole=a.channelRole),c}_testOneState(a){var l,c,d,f,g,u;const m=a.objects,y=a.pattern,w=a.state,x=a.channelStates,E=a.usedIds,k=a.usedInCurrentDevice,I=a.ignoreIndicators,O=a.ignoreEnums,R=a.sortedKeys;let M=a.result,T=!1;for(const P of x)if(!(w.name==="COVER"&&M?.states.find(N=>N.id&&N.name==="COVER"))){if(w.indicator&&I){const D=P.split(".").pop()||"";if(D&&I.includes(D))continue}if(!w.indicator){if(k.includes(P))continue;if(!w.notSingle){if(!a.detectAllPossibleDevices){if(E.includes(P))continue}}}if(this._applyPattern(m,P,w,O,R)){if(M||(M=JSON.parse(JSON.stringify(r.patterns[y])),a.result=M,M?.states.forEach((N,D)=>Hn.copyState(r.patterns[y].states[D],N))),M.states.find(({id:N})=>N===P))T=!0;else for(const N of M.states)if(N.name===w.name){if(N.id){let D;a.favorId&&(P===a.favorId?D=!0:N.id===a.favorId&&(D=!1));const C=(d=(c=(l=m[N.id])===null||l===void 0?void 0:l.common)===null||c===void 0?void 0:c.role)!==null&&d!==void 0?d:"",$=(u=(g=(f=m[P])===null||f===void 0?void 0:f.common)===null||g===void 0?void 0:g.role)!==null&&u!==void 0?u:"",H=N.defaultRole;if(H&&D===void 0&&($===H?D=!0:C===H&&(D=!1)),D===void 0){const q=$.split("."),U=q.length,W=C.split("."),K=W.length;$===""||q[0]==="state"&&W[0]!=="state"?D=!1:q[0]!=="state"&&W[0]==="state"||U>K?D=!0:U1)){for(const N of x)if(N!==P&&(w.indicator||!k.includes(N)&&(w.notSingle||!E.includes(N)))&&this._applyPattern(m,N,w,O,R))if(w.indicator||k.push(N),Array.isArray(w)){const D=Hn.copyState(w[0]);D.id=N,M.states.push(D)}else{const D=Hn.copyState(w);D.id=N,M.states.push(D)}}}}return T}static findParentChannelOrDevice(a,l,c){if(!a[l])return;const d=l.split("."),f=l;if(a[l].type==="state"&&(d.pop(),l=d.join(".")),d.length<=2)return l;const g=a[l];if(g?.type==="device"||c&&g?.type==="channel")return l;if(c)return;d.pop();const u=d.join("."),m=a[u];if(!m)return g?l:f;if(m.type==="device"||d.length<=2)return u;if(g?.type==="channel")return l;d.pop();const y=d.join("."),w=a[y];return!w||w.type!=="device"&&w.type!=="channel"?u:y}static getChannelOrDeviceStates(a,l,c,d=!1,f=!1){var g;const u=(g=a[l])===null||g===void 0?void 0:g.type;switch(u){case void 0:return[...(0,e.getObjectsBelowId)(c,l)];case"state":case"channel":case"device":case"folder":if(d&&u!=="device"){const m=Hn.findParentChannelOrDevice(a,l);return m&&m!==l?[...(0,e.getObjectsBelowId)(c,m)]:[l]}if(u!=="state")return[...(0,e.getObjectsBelowId)(c,l)];if(f){const m=Hn.findParentChannelOrDevice(a,l,!0);return m&&m!==l?[...(0,e.getObjectsBelowId)(c,m)]:[l]}return[l];default:return[l]}}static patternIsAllowed(a,l,c){if(!a)return!1;if(Array.isArray(a.type)){for(let d=0;d{const f=a.indexOf(c),g=a.indexOf(d);if(f===-1||g===-1)return;const u=a.splice(f,1);a.splice(g,0,...u)}),a}_detectNext(a){var l,c,d,f;const{objects:g,id:u,_usedIdsOptional:m=[],ignoreIndicators:y,prioritizedTypes:w,detectParent:x,detectOnlyChannel:E,allowedTypes:k,excludedTypes:I,_keysOptional:O,detectAllPossibleDevices:R}=a;let{_patternList:M}=a;a._usedIdsOptional=m;const T=Hn.getChannelOrDeviceStates(g,u,O||[],x,E);if(!(!((l=g[u])===null||l===void 0)&&l.common)&&!T.length)return null;if((c=a._checkedPatterns)!==null&&c!==void 0||(a._checkedPatterns=[]),!M){const D=Object.keys(r.patterns).filter(C=>Hn.patternIsAllowed(r.patterns[C],k,I));M=w?this.sortTypes(D,w):D,a._patternList=M}const P={objects:g,channelStates:T,usedIds:m,ignoreIndicators:y||[],pattern:"unknown",usedInCurrentDevice:[],state:{},ignoreEnums:!!a.ignoreEnums,sortedKeys:O,favorId:a.detectParent?void 0:u,detectAllPossibleDevices:R},N=(d=g[u])===null||d===void 0?void 0:d.type;for(const D of M){if(a._checkedPatterns.includes(D))continue;a._checkedPatterns.push(D),delete P.result,P.pattern=D,P.usedInCurrentDevice=[];for(const $ of r.patterns[D].states){let H=!1;if(P.state=$,this._testOneState(P)&&(H=!0),$.required&&!H){delete P.result;break}}if(!Hn.allRequiredStatesFound(P))continue;P.usedInCurrentDevice.forEach($=>m.push($));let C;if(N!=="device"){const $=(f=Hn.findParentChannelOrDevice(g,u))!==null&&f!==void 0?f:u;if(g[$]&&(g[$].type==="channel"||g[$].type==="device")){C=(0,e.getObjectsBelowId)(O,$);for(const H of C)P.result.states.forEach((q,U)=>{!q.id&&(q.indicator||q.searchInParent)&&!q.noDeviceDetection&&this._applyPattern(g,H,q.original,!!a.ignoreEnums,P.sortedKeys)&&P.result&&(P.result.states[U].id=H)})}}if(P.result.states.forEach($=>Hn.cleanState($,P.objects)),a.limitTypesToOneOf){for(const $ of a.limitTypesToOneOf)if($.includes(D))for(const H of $)H===D||a._checkedPatterns.includes(H)||a._checkedPatterns.push(H)}return P.result}return null}detect(a){var l;const{objects:c,id:d,ignoreCache:f,detectAllPossibleDevices:g}=a;let{_keysOptional:u,_usedIdsOptional:m}=a;if(!f&&this.cache[d]){const{allowedTypes:x=[],excludedTypes:E=[]}=a;if(!x.length&&!E.length)return this.cache[d];const k=this.cache[d].filter(({type:I})=>x.includes(I)&&!E.includes(I));if(k.length)return k}u?a._keysOptionalSorted||u.sort():(u=Object.keys(c),u.sort(),a._keysOptional=u),m&&!a.detectParent&&(m=[],a._usedIdsOptional=m),a.ignoreEnums===void 0&&((l=a.allowedTypes)===null||l===void 0?void 0:l.length)===1&&(a.ignoreEnums=!0),g&&(a.excludedTypes||(a.excludedTypes=[]),a.excludedTypes.includes(t.Types.info)||a.excludedTypes.push(t.Types.info)),a._checkedPatterns=[];const y=[];let w;for(;w=this._detectNext(a);)y.push(w),a.detectAllPossibleDevices&&(a._usedIdsOptional=[]);return y.sort((x,E)=>{if(x.type===t.Types.info&&E.type!==t.Types.info)return 1;if(E.type===t.Types.info&&x.type!==t.Types.info)return-1;const k=x.states.find(M=>M.id===d&&M.required)?1:0,I=E.states.find(M=>M.id===d&&M.required)?1:0;if(k!==I)return I-k;if(!k){const M=x.states.find(P=>P.id===d)?1:0,T=E.states.find(P=>P.id===d)?1:0;if(M!==T)return T-M}const O=x.states.filter(M=>M.id).length;return E.states.filter(M=>M.id).length-O}),this.cache[d]=y.length?y:null,this.cache[d]}static getPatterns(){const a={};return Object.keys(r.patterns).forEach(l=>{const c=JSON.parse(JSON.stringify(r.patterns[l]));c.states.forEach((d,f)=>{const g=r.patterns[l].states[f];g.role&&(c.states[f].role=g.role.toString()),g.enums&&(c.states[f].enums=!0)}),a[l]=c}),a}};return Zl.ChannelDetector=n,n.getEnums=e.getEnums,Zl}var i8;function pV(){return i8||(i8=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.StateType=t.Types=t.roleOrEnumGate=t.roleOrEnumDoor=t.roleOrEnumWindow=t.roleOrEnumBlind=t.roleOrEnumLight=void 0;const e=uV();var r=o2();Object.defineProperty(t,"roleOrEnumLight",{enumerable:!0,get:function(){return r.roleOrEnumLight}}),Object.defineProperty(t,"roleOrEnumBlind",{enumerable:!0,get:function(){return r.roleOrEnumBlind}}),Object.defineProperty(t,"roleOrEnumWindow",{enumerable:!0,get:function(){return r.roleOrEnumWindow}}),Object.defineProperty(t,"roleOrEnumDoor",{enumerable:!0,get:function(){return r.roleOrEnumDoor}}),Object.defineProperty(t,"roleOrEnumGate",{enumerable:!0,get:function(){return r.roleOrEnumGate}}),t.default=e.ChannelDetector;var n=n2();Object.defineProperty(t,"Types",{enumerable:!0,get:function(){return n.Types}}),Object.defineProperty(t,"StateType",{enumerable:!0,get:function(){return n.StateType}})})(w1)),w1}var ot=pV(),bT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a8=v.createContext&&v.createContext(bT),dV=["attr","size","title"];function fV(t,e){if(t==null)return{};var r,n,o=hV(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;nv.createElement(e.tag,ud({key:r},e.attr),xT(e.child)))}function Zt(t){return e=>v.createElement(yV,cd({attr:ud({},t.attr)},e),xT(t.child))}function yV(t){var e=r=>{var{attr:n,size:o,title:a}=t,l=fV(t,dV),c=o||r.size||"1em",d;return r.className&&(d=r.className),t.className&&(d=(d?d+" ":"")+t.className),v.createElement("svg",cd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,l,{className:d,style:ud(ud({color:t.color||r.color},r.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&v.createElement("title",null,a),t.children)};return a8!==void 0?v.createElement(a8.Consumer,null,r=>e(r)):e(bT)}function bV(t){return Zt({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3l39.5 39.7z"},child:[]}]})(t)}function xV(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M24 5.25v13a.75.75 0 0 1-1.136.643L16.5 15.075v2.175A1.75 1.75 0 0 1 14.75 19h-13A1.75 1.75 0 0 1 0 17.25v-11C0 5.284.784 4.5 1.75 4.5h13c.966 0 1.75.784 1.75 1.75v2.175l6.364-3.818A.75.75 0 0 1 24 5.25Zm-9 1a.25.25 0 0 0-.25-.25h-13a.25.25 0 0 0-.25.25v11c0 .138.112.25.25.25h13a.25.25 0 0 0 .25-.25v-11Zm1.5 7.075 6 3.6V6.575l-6 3.6Z"},child:[]}]})(t)}function wV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},child:[]}]})(t)}function SV(t){return Zt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(t)}function EV(t){return Zt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},child:[]}]})(t)}function CV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"},child:[]}]})(t)}function TV(t){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"},child:[]}]})(t)}function l8(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"},child:[]}]})(t)}function kV(t){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(t)}function OV(t){return Zt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(t)}function _V(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(t)}function RV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"},child:[]}]})(t)}function MV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352.57 128c-28.09 0-54.09 4.52-77.06 12.86l12.41-123.11C289 7.31 279.81-1.18 269.33.13 189.63 10.13 128 77.64 128 159.43c0 28.09 4.52 54.09 12.86 77.06L17.75 224.08C7.31 223-1.18 232.19.13 242.67c10 79.7 77.51 141.33 159.3 141.33 28.09 0 54.09-4.52 77.06-12.86l-12.41 123.11c-1.05 10.43 8.11 18.93 18.59 17.62 79.7-10 141.33-77.51 141.33-159.3 0-28.09-4.52-54.09-12.86-77.06l123.11 12.41c10.44 1.05 18.93-8.11 17.62-18.59-10-79.7-77.51-141.33-159.3-141.33zM256 288a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"},child:[]}]})(t)}function PV(t){return Zt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"},child:[]}]})(t)}function c8(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 0 0 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10 10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z"},child:[]}]})(t)}function IV(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(t)}function AV(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(t)}function DV(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"},child:[]}]})(t)}function u8(t){return Zt({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M3.89,17.6c0-0.99,0.31-1.88,0.93-2.65s1.41-1.27,2.38-1.49c0.26-1.17,0.85-2.14,1.78-2.88c0.93-0.75,2-1.12,3.22-1.12 + c1.18,0,2.24,0.36,3.16,1.09c0.93,0.73,1.53,1.66,1.8,2.8h0.27c1.18,0,2.18,0.41,3.01,1.24s1.25,1.83,1.25,3 + c0,1.18-0.42,2.18-1.25,3.01s-1.83,1.25-3.01,1.25H8.16c-0.58,0-1.13-0.11-1.65-0.34S5.52,21,5.14,20.62 + c-0.38-0.38-0.68-0.84-0.91-1.36S3.89,18.17,3.89,17.6z M5.34,17.6c0,0.76,0.28,1.42,0.82,1.96s1.21,0.82,1.99,0.82h9.28 + c0.77,0,1.44-0.27,1.99-0.82c0.55-0.55,0.83-1.2,0.83-1.96c0-0.76-0.27-1.42-0.83-1.96c-0.55-0.54-1.21-0.82-1.99-0.82h-1.39 + c-0.1,0-0.15-0.05-0.15-0.15l-0.07-0.49c-0.1-0.94-0.5-1.73-1.19-2.35s-1.51-0.93-2.45-0.93c-0.94,0-1.76,0.31-2.46,0.94 + c-0.7,0.62-1.09,1.41-1.18,2.34l-0.07,0.42c0,0.1-0.05,0.15-0.16,0.15l-0.45,0.07c-0.72,0.06-1.32,0.36-1.81,0.89 + C5.59,16.24,5.34,16.87,5.34,17.6z M14.19,8.88c-0.1,0.09-0.08,0.16,0.07,0.21c0.43,0.19,0.79,0.37,1.08,0.55 + c0.11,0.03,0.19,0.02,0.22-0.03c0.61-0.57,1.31-0.86,2.12-0.86c0.81,0,1.5,0.27,2.1,0.81c0.59,0.54,0.92,1.21,0.99,2l0.09,0.64h1.42 + c0.65,0,1.21,0.23,1.68,0.7c0.47,0.47,0.7,1.02,0.7,1.66c0,0.6-0.21,1.12-0.62,1.57s-0.92,0.7-1.53,0.77c-0.1,0-0.15,0.05-0.15,0.16 + v1.13c0,0.11,0.05,0.16,0.15,0.16c1.01-0.06,1.86-0.46,2.55-1.19s1.04-1.6,1.04-2.6c0-1.06-0.37-1.96-1.12-2.7 + c-0.75-0.75-1.65-1.12-2.7-1.12h-0.15c-0.26-1-0.81-1.82-1.65-2.47c-0.83-0.65-1.77-0.97-2.8-0.97C16.28,7.29,15.11,7.82,14.19,8.88 + z`},child:[]}]})(t)}function NV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]},{tag:"path",attr:{d:"M363.5 148.5C334.8 119.8 296.6 104 256 104c-40.6 0-78.8 15.8-107.5 44.5C119.8 177.2 104 215.4 104 256s15.8 78.8 44.5 107.5C177.2 392.2 215.4 408 256 408c40.6 0 78.8-15.8 107.5-44.5C392.2 334.8 408 296.6 408 256s-15.8-78.8-44.5-107.5z"},child:[]}]})(t)}function $V(t){return Zt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 12a4 4 0 0 0 4 4m0 -8a4 4 0 0 0 -4 4"},child:[]},{tag:"path",attr:{d:"M3 12h1"},child:[]},{tag:"path",attr:{d:"M12 3v1"},child:[]},{tag:"path",attr:{d:"M12 20v1"},child:[]},{tag:"path",attr:{d:"M5.6 5.6l.7 .7"},child:[]},{tag:"path",attr:{d:"M6.3 17.7l-.7 .7"},child:[]},{tag:"path",attr:{d:"M20 7l-3 5h4l-3 5"},child:[]}]})(t)}function LV(t){return Zt({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"},child:[]},{tag:"path",attr:{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"},child:[]}]})(t)}function BV(t){return v.createElement("svg",{viewBox:"0 0 512 512",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M296,320H216a24,24,0,0,0,0,48h80a24,24,0,0,0,0-48Zm0,32H216a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}),v.createElement("path",{d:"M68.071,123.492c22.578-13.918,52.2-25.229,85.674-32.71l-3.49-15.615c-35.688,7.977-66.163,19.653-90.58,34.705-17.914,11.043-32.041,23.643-41.99,37.451l12.98,9.354C39.376,144.588,51.961,133.423,68.071,123.492Z"}),v.createElement("path",{d:"M435.533,137.112C409.439,121.027,374,108.967,332.845,102.144,322.474,87,288.213,80,256,80s-66.474,7-76.845,22.144C138,108.967,102.561,121.027,76.467,137.112,47.376,155.045,32,176.792,32,200v96c0,29,24.155,55.7,68.016,75.193C141.813,389.77,197.209,400,256,400s114.187-10.23,155.984-28.807C455.845,351.7,480,325,480,296V200C480,176.792,464.624,155.045,435.533,137.112ZM177.64,151.23C185.676,168.192,221.98,176,256,176s70.324-7.808,78.36-24.77c21.862,4.212,41.832,10.19,58.13,17.44C422.343,181.941,432,195.509,432,200s-9.657,18.059-39.51,31.33C357.224,247.008,307.475,256,256,256s-101.224-8.992-136.49-24.67C89.657,218.059,80,204.491,80,200s9.657-18.059,39.512-31.331C135.808,161.42,155.778,155.442,177.64,151.23Zm14.36-19c15.6,8,40.35,11.773,64,11.773s48.4-3.775,64-11.773V144c0,.687-2.715,5.08-15.618,9.381C291.577,157.649,274.4,160,256,160s-35.577-2.351-48.382-6.619C194.715,149.08,192,144.687,192,144Zm15.618-29.608C220.423,98.351,237.605,96,256,96s35.577,2.351,48.382,6.619C317.285,106.92,320,111.313,320,112s-2.715,5.08-15.618,9.381C291.577,125.649,274.4,128,256,128s-35.577-2.351-48.382-6.619C194.715,117.08,192,112.687,192,112S194.715,106.92,207.618,102.619ZM176,118.937v16.319c-23.589,4.453-45.254,10.9-62.99,18.794C82.779,167.489,64,185.1,64,200s18.779,32.511,49.01,45.95C150.249,262.505,202.367,272,256,272s105.751-9.5,142.99-26.05C429.221,232.511,448,214.9,448,200s-18.779-32.511-49.008-45.95c-17.738-7.89-39.4-14.341-62.992-18.794V118.937C411.852,132.7,464,165.41,464,200c0,21.967-21.328,44.044-58.516,60.572C365.688,278.259,312.6,288,256,288s-109.688-9.741-149.484-27.428C69.328,244.044,48,221.967,48,200,48,165.41,100.148,132.7,176,118.937ZM464,296c0,21.967-21.327,44.044-58.514,60.572C365.689,374.259,312.6,384,256,384s-109.689-9.741-149.486-27.428C69.327,340.044,48,317.967,48,296V239.371c11.522,13.444,29.066,25.621,52.018,35.822C141.814,293.77,197.211,304,256,304s114.186-10.23,155.982-28.807c22.952-10.2,40.5-22.378,52.018-35.822Z"}),v.createElement("path",{d:"M418.482,385.814C374.684,405.28,316.979,416,256,416a488.01,488.01,0,0,1-78.705-6.23l-2.59,15.789A504.064,504.064,0,0,0,256,432c63.169,0,123.181-11.21,168.981-31.565q1.3-.576,2.572-1.16l-6.655-14.55Q419.7,385.274,418.482,385.814Z"}),v.createElement("path",{d:"M436.123,377.062l7.754,14c5.883-3.259,11.492-6.728,16.674-10.31l-9.1-13.161C446.7,370.871,441.546,374.059,436.123,377.062Z"}),v.createElement("rect",{x:"248",y:"192",width:"16",height:"16"}),v.createElement("rect",{x:"280",y:"192",width:"16",height:"16"}),v.createElement("rect",{x:"216",y:"192",width:"16",height:"16"})))}function FV(t){return v.createElement("svg",{viewBox:"0 0 512 512",...t},v.createElement("path",{fill:"currentColor",d:"M298.667 298.667c17.643 0 32-14.357 32-32s-14.357-32-32-32-32 14.357-32 32c0 17.642 14.357 32 32 32zm0-42.667c5.867 0 10.667 4.779 10.667 10.667s-4.8 10.667-10.667 10.667S288 272.555 288 266.667 292.8 256 298.667 256z"}),v.createElement("path",{fill:"currentColor",d:"M448 490.667h-32v-480C416 4.779 411.221 0 405.333 0H106.667c-.597 0-1.131.256-1.707.341-.555.085-1.088.149-1.621.32-.939.32-1.749.789-2.56 1.344-.32.213-.704.277-1.003.533-.107.085-.149.213-.256.32-.768.704-1.365 1.579-1.899 2.496-.213.341-.512.619-.661.981-.597 1.345-.96 2.774-.96 4.332v480H64c-5.888 0-10.667 4.779-10.667 10.667C53.333 507.221 58.112 512 64 512h42.667c.576 0 1.173-.043 1.749-.149l256-42.667a10.672 10.672 0 0 0 8.917-10.517V53.333c0-5.227-3.776-9.664-8.917-10.517L235.541 21.333h159.125v480c0 5.888 4.779 10.667 10.667 10.667H448c5.888 0 10.667-4.779 10.667-10.667s-4.779-10.666-10.667-10.666zm-96-428.31v387.264l-234.667 39.125V23.253L352 62.357z"}))}function zV(t){return v.createElement("svg",{viewBox:"0 0 512.006 512.006",...t},v.createElement("path",{d:"M502.379 211.249c0 74.656-60.52 135.176-135.176 135.176-6.469.01-12.919-.473-19.311-1.448-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825a142.128 142.128 0 0 1 19.311-1.352c74.656 0 135.176 60.521 135.176 135.177z",fill:"#c52828"}),v.createElement("path",{d:"M463.757 211.249c-.029 67.173-49.378 124.131-115.865 133.728-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825 66.516 9.598 115.875 66.613 115.865 133.825z",fill:"#f44335"}),v.createElement("g",{fill:"#fdd834"},v.createElement("path",{d:"M380.527 230.56h-26.649a8.208 8.208 0 0 1-8.4-7.242l-7.242-90.472c-.212-4.47 3.235-8.275 7.705-8.497.232-.01.463-.01.695 0h41.036a8.105 8.105 0 0 1 8.4 7.802c.01.232.01.463 0 .695l-7.242 90.472c-.501 4.181-4.093 7.319-8.303 7.242zM362.085 269.181h10.235c7.84 0 14.194 6.353 14.194 14.194v10.235c0 7.84-6.353 14.194-14.194 14.194h-10.235c-7.84 0-14.194-6.353-14.194-14.194v-10.235c.001-7.84 6.354-14.194 14.194-14.194z"})),v.createElement("path",{d:"M308.015 332.714a132.057 132.057 0 0 1-24.332-15.256 138.367 138.367 0 0 1-25.587-26.456 134.123 134.123 0 0 1-26.07-79.754 136.453 136.453 0 0 1 3.09-28.966 129.801 129.801 0 0 1 9.655-28.966c-24.428-39.201-50.691-78.113-85.547-108.334-2.607-2.221-5.214-4.442-7.917-6.566a161.051 161.051 0 0 0-14.387-10.621 80.965 80.965 0 0 0-13.807-7.145c1.641 7.338 3.476 14.773 4.731 22.208a180.355 180.355 0 0 1 2.993 26.939v7.145a192.012 192.012 0 0 1-60.829 139.521 202.647 202.647 0 0 0-43.836 52.719 149.063 149.063 0 0 0-6.566 120.017 152.006 152.006 0 0 0 22.208 40.167 164.926 164.926 0 0 0 106.21 61.891 86.874 86.874 0 0 1-44.801-32.249 51.315 51.315 0 0 1-3.669-5.6 77.46 77.46 0 0 1-6.469-13.325 79.464 79.464 0 0 1 3.766-63.726 111.914 111.914 0 0 1 23.463-28.387 101.983 101.983 0 0 0 32.442-74.25v-3.862a97.875 97.875 0 0 0-4.731-27.132 112.539 112.539 0 0 1 10.911 6.566 108.053 108.053 0 0 1 30.222 30.801 100.963 100.963 0 0 1 15.835 46.443v8.4a100.92 100.92 0 0 1-18.249 57.933c22.98 13.035 38.622-8.593 44.994-28.966a60.067 60.067 0 0 0 2.51-12.842 88.458 88.458 0 0 1 28.966 61.312v5.214c-2.704 33.678-25.346 62.451-57.45 72.995 73.353-11.789 128.717-72.889 133.245-147.053a131.977 131.977 0 0 1-30.994-10.815z",fill:"#f57c00"}),v.createElement("path",{d:"M263.117 417.489v-5.214a88.462 88.462 0 0 0-28.966-61.312 60.129 60.129 0 0 1-2.51 12.842c-5.986 20.47-22.014 42.098-44.994 28.966a100.923 100.923 0 0 0 18.249-57.933v-.966-7.338a100.971 100.971 0 0 0-15.835-46.443 108.027 108.027 0 0 0-30.222-30.801 108.949 108.949 0 0 0-39.877-35.532 97.838 97.838 0 0 1 4.731 27.132v3.862a101.988 101.988 0 0 1-32.442 74.25 111.924 111.924 0 0 0-23.366 28.387 79.491 79.491 0 0 0-3.573 63.726 83.948 83.948 0 0 0 35.436 42.291 51.315 51.315 0 0 0 3.669 5.6 86.886 86.886 0 0 0 44.415 32.249 164.927 164.927 0 0 1-106.21-61.892 152.082 152.082 0 0 1-22.014-40.167 149.055 149.055 0 0 1 6.564-120.015 202.714 202.714 0 0 1 44.029-53.202A192.012 192.012 0 0 0 131.03 76.458v-7.145a180.486 180.486 0 0 0-2.993-26.939c-1.255-7.435-3.09-14.869-4.731-22.208a80.965 80.965 0 0 1 13.807 7.145 159.446 159.446 0 0 1 14.773 10.718c2.704 2.124 5.311 4.345 7.917 6.566 34.856 30.222 61.119 69.133 85.547 108.334a129.75 129.75 0 0 0-9.655 28.966 136.634 136.634 0 0 0-3.669 29.353 134.116 134.116 0 0 0 26.07 79.754 138.396 138.396 0 0 0 25.587 26.456 132.164 132.164 0 0 0 24.332 15.256 152.203 152.203 0 0 1-44.898 84.775z",fill:"#ff9801"}),v.createElement("path",{d:"M147.831 500.912h-1.448c-61.756-8.7-113.963-50.15-136.432-108.334a158.725 158.725 0 0 1 7.338-127.355 212.528 212.528 0 0 1 45.96-55.809 181.787 181.787 0 0 0 57.933-132.473v-6.759a171.298 171.298 0 0 0-2.8-25.587c-.966-5.697-2.221-11.2-3.476-16.704l-1.159-5.117c-1.178-5.204 2.076-10.37 7.28-11.548a9.663 9.663 0 0 1 5.948.541 89.473 89.473 0 0 1 15.449 8.014 172.47 172.47 0 0 1 15.449 11.2c41.036 32.732 70.871 77.244 95.589 117.314a9.673 9.673 0 0 1 .483 9.655 121.056 121.056 0 0 0-9.655 26.842 128.158 128.158 0 0 0-2.607 26.456c.01 59.198 41.374 110.333 99.258 122.721a9.655 9.655 0 0 1 7.628 9.655c-3.186 77.244-61.216 141.742-141.163 156.129-5.253.927-10.254-2.588-11.181-7.84a9.65 9.65 0 0 1 6.353-10.795c29.99-9.8 50.517-37.492 51.174-69.037a67.618 67.618 0 0 0-14.387-40.746 56.78 56.78 0 0 1-24.139 31.091 33.122 33.122 0 0 1-33.408-1.448c-4.644-2.626-6.276-8.516-3.659-13.16.145-.261.299-.502.473-.743a91.187 91.187 0 0 0 16.511-52.429v-.772a90.743 90.743 0 0 0-14.58-48.277 98.107 98.107 0 0 0-19.311-21.532v9.945a111.13 111.13 0 0 1-35.436 81.299 103.445 103.445 0 0 0-21.532 25.78 69.873 69.873 0 0 0-3.09 56.002 76.304 76.304 0 0 0 49.533 44.512c5.33.801 9.009 5.774 8.207 11.104-.801 5.328-5.774 8.997-11.103 8.205zM137.113 39.478v1.738a188.136 188.136 0 0 1 3.09 28.194v7.435A200.926 200.926 0 0 1 76.38 223.318a192.998 192.998 0 0 0-42.098 50.498 139.414 139.414 0 0 0-6.469 111.907 148.682 148.682 0 0 0 65.561 76.568 89.522 89.522 0 0 1-15.159-49.726 91.25 91.25 0 0 1 9.655-40.167 119.46 119.46 0 0 1 25.394-31.091 92.026 92.026 0 0 0 29.449-67.588v-3.09a88.799 88.799 0 0 0-4.248-24.911 9.653 9.653 0 0 1 6.237-12.147 9.638 9.638 0 0 1 7.473.657 119.392 119.392 0 0 1 44.705 40.649 110.062 110.062 0 0 1 17.669 58.898v1.159a110.343 110.343 0 0 1-13.035 52.139 12.555 12.555 0 0 0 4.731-1.448c9.655-5.31 17.283-22.497 18.345-35.436.434-5.31 5.088-9.269 10.409-8.844a9.61 9.61 0 0 1 6.006 2.761 95.586 95.586 0 0 1 32.153 68.168 89.528 89.528 0 0 1-13.711 47.408 146.774 146.774 0 0 0 69.133-108.817c-62.77-17.37-106.22-74.492-106.21-139.618a146.655 146.655 0 0 1 3.283-30.994 139.876 139.876 0 0 1 8.497-26.263c-23.27-37.077-51.27-78.402-88.541-108.045a113.049 113.049 0 0 0-8.496-6.467z"}),v.createElement("path",{d:"M367.203 356.081a144.841 144.841 0 0 1-89.506-30.994 143.882 143.882 0 0 1-55.326-113.838 146.655 146.655 0 0 1 3.283-30.994 140.652 140.652 0 0 1 10.814-31.091c23.965-50.498 74.839-82.699 130.735-82.747 79.986.019 144.813 64.875 144.803 144.861a144.848 144.848 0 0 1-55.297 113.809 143.543 143.543 0 0 1-89.506 30.994zm0-270.353c-48.47.019-92.586 27.943-113.355 71.74a121.83 121.83 0 0 0-9.655 26.939 127.805 127.805 0 0 0-2.51 26.842c.01 59.198 41.374 110.333 99.258 122.721a125.763 125.763 0 0 0 26.263 2.8c69.326 0 125.521-56.195 125.521-125.521S436.519 85.728 367.203 85.728z"}),v.createElement("path",{d:"M380.527 240.215h-26.649c-9.279.097-17.109-6.894-18.056-16.125l-7.242-90.085a17.201 17.201 0 0 1 4.538-13.035 18.38 18.38 0 0 1 13.518-5.89h41.036a18.375 18.375 0 0 1 13.518 5.89 17.204 17.204 0 0 1 4.635 13.035l-7.242 90.472c-1.139 9.076-8.912 15.854-18.056 15.738zm-25.49-19.311h24.525l6.952-86.899h-38.622l7.145 86.899zM372.32 317.459h-10.235c-13.151-.048-23.801-10.698-23.849-23.849v-10.235c.048-13.151 10.698-23.801 23.849-23.849h10.138c13.189 0 23.888 10.66 23.946 23.849v10.138c0 13.18-10.669 23.888-23.849 23.946zm-10.138-38.622a4.635 4.635 0 0 0-4.538 4.538v10.138a4.635 4.635 0 0 0 4.538 4.538h10.138a4.635 4.635 0 0 0 4.538-4.538v-10.138a4.635 4.635 0 0 0-4.538-4.538h-10.138z"}))}function jV(t){return v.createElement("svg",{viewBox:"0 0 512.002 512.002",...t},v.createElement("path",{d:"M481.929 324.35c0 65.951-53.464 119.415-119.415 119.415a111.938 111.938 0 0 1-17.059-1.279c-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221a125.333 125.333 0 0 1 17.059-1.194c65.951-.001 119.415 53.462 119.415 119.414z",fill:"#c52828"}),v.createElement("path",{d:"M447.81 324.35c-.026 59.341-43.621 109.657-102.356 118.135-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221 58.77 8.487 102.373 58.846 102.356 118.221z",fill:"#f44335"}),v.createElement("g",{fill:"#fdd834"},v.createElement("path",{d:"M374.285 341.409h-23.542a7.251 7.251 0 0 1-7.421-6.397l-6.397-79.923a7.174 7.174 0 0 1 6.807-7.506c.205-.009.409-.009.614 0h36.251a7.16 7.16 0 0 1 7.421 6.892c.009.205.009.409 0 .614l-6.397 79.923a7.249 7.249 0 0 1-7.336 6.397zM357.993 375.527h9.041c6.926 0 12.539 5.612 12.539 12.539v9.041c0 6.926-5.612 12.539-12.539 12.539h-9.041c-6.926 0-12.539-5.612-12.539-12.539v-9.041c0-6.926 5.621-12.539 12.539-12.539z"})),v.createElement("path",{d:"M318.415 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 159.575 159.575 0 0 1-61.413 12.283 149.268 149.268 0 0 1-20.556-1.365 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.753 152.753 0 0 1-12.368-60.219 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504 7.335-11.771c4.504-7.353 14.117-9.656 21.469-5.143a15.525 15.525 0 0 1 5.143 5.143l34.716 55.869c-2.644 4.18-5.032 8.53-7.335 12.709a96.424 96.424 0 0 0-11.515 44.439 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.344 115.344 0 0 0-11.6 31.048 120.546 120.546 0 0 0-2.729 25.589c.041 48.9 29.878 92.828 75.315 110.885z",fill:"#0377bc"}),v.createElement("path",{d:"M277.217 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 158.847 158.847 0 0 1-40.772 10.833 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.657 152.657 0 0 1-12.368-60.134 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504c9.212 14.671 18.339 29.427 27.465 44.098-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.323 115.323 0 0 0-12.283 31.133 120.546 120.546 0 0 0-2.729 25.589c.043 48.9 29.88 92.828 75.317 110.885z",fill:"#02a9f4"}),v.createElement("path",{d:"M411.388 144.545a477.911 477.911 0 0 0-27.636-43.842c-9.894-14.586-19.192-29.598-28.489-44.525L328.395 13.53c-3.037-4.708-9.323-6.065-14.031-3.028a10.259 10.259 0 0 0-3.028 3.028l-12.794 20.215-14.074 22.433c-9.297 14.927-18.595 29.939-28.489 44.525-6.994 10.236-13.989 20.471-20.301 31.133-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.758 98.758 0 0 0 29.939 70.284 106.83 106.83 0 0 0 9.98 8.53 119.423 119.423 0 0 1 84.017-60.902 114.9 114.9 0 0 1 21.068-1.877c5.186.009 10.372.324 15.524.938a119.369 119.369 0 0 1 39.578 12.539 96.462 96.462 0 0 0-6.228-73.866z",fill:"#0377bc"}),v.createElement("path",{d:"M379.573 188.899a93.046 93.046 0 0 1-1.535 17.059 131.537 131.537 0 0 0-15.524-1.024 114.797 114.797 0 0 0-21.068 1.877 119.425 119.425 0 0 0-84.017 60.902 106.96 106.96 0 0 1-9.98-8.53c-31.099-29.743-38.878-76.417-19.106-114.638 2.303-4.35 4.691-8.53 7.335-12.709 6.312-10.662 13.306-20.898 20.301-31.133 9.894-14.586 19.192-29.598 28.489-44.525l14.074-22.433 14.074 22.433c9.297 14.927 18.595 29.939 28.489 44.525a477.911 477.911 0 0 1 27.636 43.842 96.401 96.401 0 0 1 10.832 44.354z",fill:"#02a9f4"}),v.createElement("path",{d:"M187.656 512.002a167.398 167.398 0 0 1-64.655-12.88 165.226 165.226 0 0 1-88.623-86.746 160.466 160.466 0 0 1-13.05-63.631 158.81 158.81 0 0 1 17.656-72.928 698.388 698.388 0 0 1 39.663-63.887l3.412-5.032c12.027-17.998 23.627-36.677 34.886-54.76L167.1 71.531c6.986-11.353 21.861-14.893 33.214-7.898a24.1 24.1 0 0 1 7.898 7.898l17.059 27.38 17.827 28.404a8.521 8.521 0 0 1 0 9.383c-2.559 4.009-4.777 8.018-6.994 12.112a87.69 87.69 0 0 0-10.065 40.089 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83 99.608 99.608 0 0 0 9.212 7.847 8.534 8.534 0 0 1 2.303 10.918 106.955 106.955 0 0 0-10.747 28.745 112.483 112.483 0 0 0-2.559 23.712c.009 45.429 27.721 86.26 69.943 103.038 4.393 1.706 6.559 6.653 4.853 11.046a8.584 8.584 0 0 1-.93 1.749 162.407 162.407 0 0 1-20.301 24.139 164.29 164.29 0 0 1-52.884 34.886 167.489 167.489 0 0 1-64.653 12.795zm0-435.012a6.99 6.99 0 0 0-6.056 3.412l-50.154 80.69c-11.344 18.168-23.03 37.019-35.227 55.187l-3.412 5.032a687.543 687.543 0 0 0-38.725 62.266 141.613 141.613 0 0 0-15.695 65.166 143.56 143.56 0 0 0 11.686 56.893 148.16 148.16 0 0 0 79.411 77.79 152.855 152.855 0 0 0 116.344 0 147.616 147.616 0 0 0 47.425-31.133 143.446 143.446 0 0 0 12.027-13.306c-43.322-21.802-70.668-66.139-70.711-114.638a129.576 129.576 0 0 1 2.9-27.38 124.357 124.357 0 0 1 9.212-26.954 136.293 136.293 0 0 1-5.203-4.691 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 1.621-3.071 3.241-5.971 4.862-8.53l-14.927-24.054-17.059-27.38a7.087 7.087 0 0 0-6.141-3.837z"}),v.createElement("path",{d:"M99.971 442.4A8.521 8.521 0 0 1 94 439.926a129.631 129.631 0 0 1-28.318-41.113 126.28 126.28 0 0 1-10.236-50.069 124.503 124.503 0 0 1 13.818-57.234c1.868-4.325 6.883-6.32 11.208-4.452s6.32 6.883 4.452 11.208c-.162.375-.35.742-.563 1.092a107.494 107.494 0 0 0-11.856 49.387 109.211 109.211 0 0 0 8.53 43.331 112.626 112.626 0 0 0 24.565 35.739c3.344 3.318 3.369 8.717.051 12.061a8.549 8.549 0 0 1-6.022 2.525l.342-.001zM257.428 276.242a8.526 8.526 0 0 1-5.118-1.706 115.222 115.222 0 0 1-10.747-9.212 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 2.559-4.862 5.118-9.212 7.677-13.306 6.312-10.662 13.392-21.068 20.386-31.218 9.041-13.903 17.912-27.807 26.442-41.881L304 8.753c5.485-8.734 17.017-11.379 25.751-5.894a18.698 18.698 0 0 1 5.894 5.894l28.574 45.634c8.53 13.733 17.059 27.977 26.612 41.539l1.706 2.474a457.473 457.473 0 0 1 26.442 42.136 104.968 104.968 0 0 1 6.824 80.434c-1.433 4.487-6.235 6.969-10.722 5.536a8.282 8.282 0 0 1-1.39-.589 112.612 112.612 0 0 0-106.535 2.388 110.28 110.28 0 0 0-42.136 43.416 8.52 8.52 0 0 1-5.715 4.265l-1.877.256zm62.437-258.959a1.541 1.541 0 0 0-1.365.768l-28.489 45.378c-8.53 13.903-17.571 28.233-26.954 42.051-6.909 10.065-13.903 20.301-20.045 30.707-2.644 4.18-4.947 8.53-7.165 12.368a87.722 87.722 0 0 0-9.809 40.345 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83l1.791 1.706a127.216 127.216 0 0 1 43.331-41.369 129.73 129.73 0 0 1 113.359-7.25 87.904 87.904 0 0 0-8.53-57.831 444.102 444.102 0 0 0-25.589-40.516l-1.706-2.474c-9.383-13.818-18.339-28.148-26.954-42.051L321.23 18.05a1.532 1.532 0 0 0-1.365-.767z"}),v.createElement("path",{d:"M271.246 243.233a8.519 8.519 0 0 1-5.971-2.388 75.502 75.502 0 0 1-16.292-23.456 71.923 71.923 0 0 1-5.885-28.489 70.537 70.537 0 0 1 7.933-32.498c1.877-3.582 4.009-7.25 6.227-10.833l.512-.768a8.538 8.538 0 0 1 11.609-3.284 8.538 8.538 0 0 1 3.284 11.609 6.997 6.997 0 0 1-.392.631l-.512.853c-2.132 3.327-3.924 6.568-5.63 9.724a53.307 53.307 0 0 0-5.971 24.565 54.816 54.816 0 0 0 4.435 21.665 58.198 58.198 0 0 0 12.624 18.083c3.395 3.267 3.489 8.666.222 12.061a8.518 8.518 0 0 1-6.193 2.61v-.085z"}),v.createElement("path",{d:"M362.514 452.294c-70.66 0-127.945-57.285-127.945-127.945a129.576 129.576 0 0 1 2.9-27.38 123.98 123.98 0 0 1 12.453-33.351 127.15 127.15 0 0 1 48.619-50.154c37.94-21.495 84.136-22.518 122.997-2.729 62.744 32.489 87.275 109.7 54.777 172.452-22.005 42.512-65.916 69.184-113.801 69.107zm0-238.83c-40.763.009-78.234 22.382-97.579 58.257a107.238 107.238 0 0 0-10.747 28.83 112.818 112.818 0 0 0-2.559 23.798c0 61.243 49.643 110.885 110.885 110.885s110.885-49.642 110.885-110.885-49.643-110.885-110.885-110.885z"}),v.createElement("path",{d:"M374.285 349.939h-23.542c-8.231.085-15.157-6.141-15.95-14.33l-6.397-79.496a15.26 15.26 0 0 1 4.009-11.515 16.312 16.312 0 0 1 11.942-5.203h36.251a16.31 16.31 0 0 1 11.941 5.203 15.27 15.27 0 0 1 4.094 11.515l-6.397 79.923c-.999 8.026-7.865 14.013-15.951 13.903zm-22.519-17.06h21.665l6.141-76.767h-34.119l6.313 76.767zM367.034 418.176h-9.041c-11.617-.043-21.026-9.451-21.068-21.068v-9.041c.043-11.617 9.451-21.026 21.068-21.068h8.956c11.651 0 21.102 9.417 21.153 21.068v8.956c.001 11.651-9.416 21.11-21.068 21.153zm-8.956-34.119a4.095 4.095 0 0 0-4.009 4.009v8.956a4.095 4.095 0 0 0 4.009 4.009h8.956a4.095 4.095 0 0 0 4.009-4.009v-8.956a4.095 4.095 0 0 0-4.009-4.009h-8.956z"}))}function HV(t){return v.createElement("svg",{viewBox:"0 0 512 512",...t},v.createElement("path",{fill:"currentColor",d:"M462,226c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.52,0,10-4.48,10-10S467.52,226,462,226z"}),v.createElement("path",{fill:"currentColor",d:"M50,226c-5.52,0-10,4.48-10,10s4.48,10,10,10s10-4.48,10-10S55.52,226,50,226z"}),v.createElement("path",{fill:"currentColor",d:`M502,126h-0.027C508.265,117.637,512,107.248,512,96c0-27.57-22.43-50-50-50s-50,22.43-50,50 + c0,11.248,3.735,21.637,10.027,30H422c-5.522,0-10,4.478-10,10v50.03c-7.399,0.025-17.158,0.065-23,0.113V166.63 + c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.435c-0.931-0.964-1.899-2.045-2.923-3.258 + c-10.745-12.754-24.515-23.761-40.077-32.106V121.83c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.983 + c-12.92-4.643-26.438-7.5-40-8.448V96c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v30.365 + c-13.565,0.948-27.084,3.807-40,8.452V120.17c0-5.522-4.477-10-10-10s-10,4.478-10,10v23.542 + c-15.764,8.457-29.695,19.652-40.55,32.652c-0.758,0.908-1.587,1.755-2.45,2.566v-12.3c0-5.522-4.477-10-10-10s-10,4.478-10,10 + v20.385c-4.189,0.067-14.913,0.05-23,0.024V136c0-5.522-4.477-10-10-10h-0.027C96.265,117.637,100,107.248,100,96 + c0-27.57-22.43-50-50-50S0,68.43,0,96c0,11.248,3.735,21.637,10.027,30H10c-5.523,0-10,4.478-10,10v320c0,5.522,4.477,10,10,10h80 + c5.523,0,10-4.478,10-10v-11h312v11c0,5.522,4.478,10,10,10h80c5.522,0,10-4.478,10-10V136C512,130.478,507.522,126,502,126z + M80,446H20V146h20v50c0,5.522,4.477,10,10,10s10-4.478,10-10v-50h20V446z M50,126c-16.542,0-30-13.458-30-30s13.458-30,30-30 + s30,13.458,30,30S66.542,126,50,126z M123,425h-23v-19h23V425z M123,386h-23V247h23V386z M123,227h-23v-19.959 + c3.808,0.011,8.197,0.022,12.244,0.022c4.378,0,8.351-0.012,10.756-0.046V227z M186,425h-43v-19h43V425z M186,276v40v70h-43 + V244.817c16.149-3.513,31.29-11.046,43-21.321V276z M186,194.605c-2.373,2.327-4.659,4.785-6.815,7.365 + c-8.521,10.2-21.771,18.214-36.185,22.224v-21.525c6.846-3.098,13.007-7.736,17.806-13.49c7.006-8.391,15.56-15.917,25.194-22.232 + V194.605z M206,156.285c12.757-5.415,26.344-8.765,40-9.871v20.099c-14.162,1.416-27.777,5.83-40,12.895V156.285z M206,203.562 + c11.538-9.26,25.37-15.088,40-16.922V266h-40V203.562z M246,425h-40v-19h40V425z M246,386h-40v-60h40V386z M306,425h-40v-19h40 + V425z M306,386h-40v-60h40V386z M306,306H206v-20h100V306z M306,266h-40v-79.359c14.617,1.835,28.449,7.664,40,16.924V266z + M306,179.418c-12.232-7.071-25.847-11.487-40-12.904v-20.1c13.651,1.106,27.238,4.454,40,9.865V179.418z M369,425h-43v-19h43V425 + z M369,386h-43v-70v-40v-52.635c11.722,10.137,26.674,17.329,43,20.634V386z M369,223.458 + c-14.663-3.788-27.83-11.575-36.517-21.887c-2.039-2.417-4.216-4.742-6.483-6.965v-27.672c9.465,6.201,17.88,13.567,24.789,21.767 + c4.64,5.496,10.324,11.234,18.211,14.57V223.458z M412,425h-23v-19h23V425z M412,386h-23V246h23V386z M412,226h-23v-19.856 + c5.683-0.048,15.526-0.088,23-0.113V226z M492,446h-60V146h20v50c0,5.522,4.478,10,10,10c5.522,0,10-4.478,10-10v-50h20V446z + M462,126c-16.542,0-30-13.458-30-30s13.458-30,30-30s30,13.458,30,30S478.542,126,462,126z`}))}function qV(t){return v.createElement("svg",{viewBox:"0 0 511.448 511.448",...t},v.createElement("path",{d:"M344.556 112.216C318.38 78.84 291.34 44.344 269.516 7.32c-5.76-9.76-21.824-9.76-27.552 0-21.856 37.024-48.896 71.52-75.072 104.896-53.056 67.68-103.168 131.616-103.168 207.232 0 105.888 86.112 192 192 192s192-86.112 192-192c0-75.616-50.112-139.552-103.168-207.232z",fill:"#2196f3"}),v.createElement("g",{fill:"#fafafa"},v.createElement("path",{d:"M207.724 287.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.832 0-16 7.168-16 16s7.168 16 16 16 16-7.168 16-16-7.168-16-16-16zM303.724 447.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zM175.724 415.448a16.07 16.07 0 0 1-11.328-4.672c-6.24-6.24-6.24-16.384 0-22.624l160-160c6.24-6.24 16.384-6.24 22.624 0s6.24 16.384 0 22.624l-160 160a15.943 15.943 0 0 1-11.296 4.672z"})))}function p8(t){return v.createElement("svg",{viewBox:"0 0 508.16 508.16",...t},v.createElement("path",{d:"M504.18 13.67a3.924 3.924 0 0 0-.42.02H4a4 4 0 0 0-4 4v47.28a4 4 0 0 0 4 4h19.72l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.16a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h479.8a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.64-42.08h9.84a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h19.72a4 4 0 0 0 4-4V17.69a4 4 0 0 0-3.98-4.02zM99.08 486.49H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm26.8 378.24h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm.16-47.28h-18.96V68.97h18.96v39.28zm247.84 378.24h-240v-39.28h240v39.28zm-240-47.28v-39.28h239.68v39.28H133.88zm240-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm-240-47.28V68.97h239.84v39.28H133.88zm266.64 378.24h-18.64l-.32-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm.32-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm-18.96-47.28V68.97h18.8v39.28h-18.8zm63.56 8v39.28h-36.92v-39.28h36.92zm-36.76-8V68.97h36.92v39.28h-36.92zm36.76 55.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.76l-.16-39.28h36.92zm42.68 181.12h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h36.92v17.44a4 4 0 0 0 8 0v-17.44h22.04l12.48 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6V68.97h22.04l12.56 39.28zm11.56-47.28H8V21.69h491.76l-.08 39.28z",fill:"currentColor"}),v.createElement("path",{d:"M454.32 37.33h-13.76a4 4 0 0 0 0 8h13.76a4 4 0 0 0 0-8zM414.84 37.33h-96a4 4 0 0 0 0 8h96a4 4 0 0 0 0-8z",fill:"currentColor"}))}function WV(t){return v.createElement("svg",{viewBox:"0 0 63.907 63.907",fill:"currentColor",...t},v.createElement("circle",{fill:"currentColor",cx:30.515,cy:6.136,r:6.136}),v.createElement("path",{fill:"currentColor",d:"M47.399 27.455C42.346 24.53 38.2 20.579 34.71 15.931c-2.193-3.084-7.991-2.923-10.347-.097-3.584 3.487-6.625 7.081-9.037 10.677a3.209 3.209 0 0 0 5.329 3.573 54.205 54.205 0 0 1 3.59-4.734c-.051 3.333.116 9.347.2 12.05.028.9-.177 1.78-.595 2.579-3.308 6.317-5.424 12.294-7.572 19.606a3.37 3.37 0 1 0 6.465 1.901c1.982-6.742 3.897-12.201 6.884-17.981.152.006.304.006.458-.001 1.907 5.69 3.815 11.383 5.725 17.073 1.387 4.147 7.822 1.993 6.431-2.155-2.087-6.221-4.171-12.439-6.251-18.659-.121-.357-.414-1.755-.455-2.211-.344-3.832-.469-7.652-.432-11.477a51.027 51.027 0 0 0 9.782 7.328c3.597 2.088 6.063-3.891 2.514-5.948z"}))}function UV(t){return v.createElement("svg",{viewBox:"0 0 285 285",...t},v.createElement("g",null,v.createElement("path",{fill:"currentColor",d:`M88.4,87.996c2.525-2.146,2.832-5.933,0.687-8.458C82.801,72.144,79.34,62.719,79.34,53c0-22.607,18.393-41,41-41 + c22.607,0,41,18.393,41,41c0,9.729-3.467,19.161-9.761,26.557c-2.148,2.523-1.843,6.311,0.681,8.458 + c1.129,0.961,2.511,1.431,3.886,1.431c1.698,0,3.386-0.717,4.572-2.111C168.858,77.77,173.34,65.576,173.34,53 + c0-29.225-23.775-53-53-53c-29.225,0-53,23.775-53,53c0,12.563,4.476,24.748,12.602,34.31C82.089,89.835,85.873,90.141,88.4,87.996 + z`}),v.createElement("path",{fill:"currentColor",d:`M120.186,41.201c13.228,0,23.812,8.105,27.313,19.879c0.761-2.562,1.176-5.271,1.176-8.08 + c0-15.649-12.685-28.335-28.335-28.335c-15.648,0-28.334,12.686-28.334,28.335c0,2.623,0.364,5.16,1.031,7.571 + C96.691,49.076,107.152,41.201,120.186,41.201z`}),v.createElement("path",{fill:"currentColor",d:`M234.21,169.856c-3.769-22.452-19.597-26.04-27.034-26.462c-2.342-0.133-4.516-1.32-5.801-3.282 + c-5.388-8.225-12.609-10.4-18.742-10.4c-4.405,0-8.249,1.122-10.449,1.932c-0.275,0.102-0.559,0.15-0.837,0.15 + c-0.87,0-1.701-0.47-2.163-1.262c-5.472-9.387-13.252-11.809-19.822-11.809c-3.824,0-7.237,0.82-9.548,1.564 + c-0.241,0.077-0.764,0.114-1.001,0.114c-1.256,0-2.637-1.03-2.637-2.376V69.753c0-11.035-8.224-16.552-16.5-16.552 + c-8.276,0-16.5,5.517-16.5,16.552v84.912c0,4.989-3.811,8.074-7.918,8.074c-2.495,0-4.899-1.138-6.552-3.678l-7.937-12.281 + c-3.508-5.788-8.576-8.188-13.625-8.189c-11.412-0.001-22.574,12.258-14.644,25.344l62.491,119.692 + c0.408,0.782,1.225,1.373,2.108,1.373h87.757c1.253,0,2.289-1.075,2.365-2.325l2.196-35.816c0.025-0.413,0.162-0.84,0.39-1.186 + C231.591,212.679,237.828,191.414,234.21,169.856z`})))}function S1(t){return v.createElement("svg",{viewBox:"1 -10 511.99999 511",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M 405.5 150 C 405.5 232.566406 338.566406 299.5 256 299.5 C 173.433594 299.5 106.5 232.566406 106.5 150 C 106.5 67.433594 173.433594 0.5 256 0.5 C 338.566406 0.5 405.5 67.433594 405.5 150 Z M 405.5 150 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(25.882353%,75.294118%,88.627451%)",fillOpacity:1}}),v.createElement("path",{d:"M 512 342.921875 C 512 425.488281 445.066406 492.421875 362.5 492.421875 C 279.933594 492.421875 213 425.488281 213 342.921875 C 213 260.355469 279.933594 193.421875 362.5 193.421875 C 445.066406 193.421875 512 260.355469 512 342.921875 Z M 512 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,81.568627%,38.039216%)",fillOpacity:1}}),v.createElement("path",{d:"M 220.746094 295.308594 C 232.050781 298.039062 243.855469 299.5 256 299.5 C 321.917969 299.5 377.871094 256.835938 397.753906 197.613281 C 386.449219 194.878906 374.644531 193.421875 362.5 193.421875 C 296.582031 193.421875 240.628906 236.085938 220.746094 295.308594 Z M 220.746094 295.308594 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(28.627451%,74.117647%,56.470588%)",fillOpacity:1}}),v.createElement("path",{d:"M 299 342.921875 C 299 425.488281 232.066406 492.421875 149.5 492.421875 C 66.933594 492.421875 0 425.488281 0 342.921875 C 0 260.355469 66.933594 193.421875 149.5 193.421875 C 232.066406 193.421875 299 260.355469 299 342.921875 Z M 299 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(98.039216%,43.921569%,69.803922%)",fillOpacity:1}}),v.createElement("path",{d:"M 114.246094 197.613281 C 134.128906 256.835938 190.082031 299.5 256 299.5 C 268.144531 299.5 279.949219 298.039062 291.253906 295.308594 C 271.371094 236.085938 215.417969 193.421875 149.5 193.421875 C 137.355469 193.421875 125.550781 194.878906 114.246094 197.613281 Z M 114.246094 197.613281 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(68.627451%,48.235294%,77.647059%)",fillOpacity:1}}),v.createElement("path",{d:"M 213 342.921875 C 213 383.800781 229.414062 420.839844 256 447.828125 C 282.585938 420.839844 299 383.800781 299 342.921875 C 299 302.042969 282.585938 265.003906 256 238.015625 C 229.414062 265.003906 213 302.042969 213 342.921875 Z M 213 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(93.72549%,38.039216%,13.333333%)",fillOpacity:1}}),v.createElement("path",{d:"M 291.253906 295.320312 C 279.949219 298.046875 268.140625 299.5 256 299.5 C 243.859375 299.5 232.050781 298.046875 220.746094 295.320312 C 228.058594 273.542969 240.242188 254.015625 256 238.015625 C 271.757812 254.015625 283.941406 273.542969 291.253906 295.320312 Z M 291.253906 295.320312 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1}})))}function XV(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 365.445 365.445",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M146.7 162.775h-26.8a6.655 6.655 0 0 0-6.647 6.647v26.602a6.653 6.653 0 0 0 6.647 6.646h26.8a6.654 6.654 0 0 0 6.647-6.646v-26.602a6.655 6.655 0 0 0-6.647-6.647zM245.547 162.775h-26.801a6.653 6.653 0 0 0-6.646 6.647v26.602a6.652 6.652 0 0 0 6.646 6.646h26.801a6.654 6.654 0 0 0 6.646-6.646v-26.602a6.655 6.655 0 0 0-6.646-6.647z"})),v.createElement("path",{d:"M345.445 1.204H20c-11.046 0-20 8.954-20 20v323.037c0 11.045 8.954 20 20 20h325.445c11.045 0 20-8.955 20-20V21.204c0-11.045-8.953-20-20-20zM182.723 287.66c-57.955 0-104.937-46.981-104.937-104.937 0-57.957 46.982-104.938 104.937-104.938S287.66 124.767 287.66 182.723 240.678 287.66 182.723 287.66z",fill:"currentColor"}))}function VV(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 45.659 45.659",...t},v.createElement("path",{fill:"currentColor",d:"M30.619 27.309V7.781C30.619 3.49 27.124 0 22.833 0c-4.29 0-7.785 3.491-7.785 7.78v19.528a10.722 10.722 0 0 0-3.05 7.522c0 5.972 4.857 10.828 10.829 10.828 5.97 0 10.834-4.856 10.834-10.828 0-2.918-1.141-5.572-3.042-7.521zM22.825 42.66c-4.316 0-7.824-3.512-7.824-7.828 0-2.527 1.174-4.779 3.077-6.211V16.237h3.372c.552 0 1-.47 1-1.022 0-.553-.448-1.021-1-1.021h-3.372v-2.466h3.372c.552 0 1-.434 1-.986a.989.989 0 0 0-1-.986h-3.372V7.78c0-2.636 2.119-4.78 4.754-4.78 2.637 0 4.756 2.144 4.756 4.781v20.871c1.903 1.434 3.047 3.671 3.047 6.18 0 4.316-3.494 7.828-7.81 7.828z"}),v.createElement("path",{fill:"currentColor",d:"M25.334 30.463V18.632h-5.002v11.831a4.973 4.973 0 0 0-2.537 4.369 5.038 5.038 0 0 0 5.038 5.046 5.034 5.034 0 0 0 5.034-5.046c0-1.866-.982-3.495-2.533-4.369z"}))}function GV(t){return v.createElement("svg",{viewBox:"0 0 297 297",...t},v.createElement("g",null,v.createElement("path",{fill:"currentColor",d:"m243.404,138.042c-5.775,0-10.458,4.683-10.458,10.458 0,46.564-37.883,84.446-84.446,84.446s-84.446-37.882-84.446-84.446 37.883-84.446 84.446-84.446c5.775,0 10.458-4.683 10.458-10.458s-4.683-10.457-10.458-10.457c-58.097,0-105.361,47.265-105.361,105.361s47.264,105.361 105.361,105.361 105.361-47.264 105.361-105.361c0-5.775-4.681-10.458-10.457-10.458z"}),v.createElement("path",{fill:"currentColor",d:"m142.963,121.344l-20.272-30.41c-3.203-4.807-9.695-6.104-14.502-2.9-4.805,3.202-6.104,9.695-2.9,14.502l20.279,30.422c-3.015,4.436-4.78,9.787-4.78,15.543 0,15.281 12.432,27.713 27.713,27.713 15.281,0 27.713-12.432 27.713-27.713 0-15.281-12.432-27.713-27.713-27.713-1.897-0.001-3.749,0.191-5.538,0.556zm12.335,27.156c0,3.748-3.05,6.798-6.798,6.798s-6.798-3.05-6.798-6.798 3.05-6.798 6.798-6.798 6.798,3.05 6.798,6.798z"}),v.createElement("path",{fill:"currentColor",d:"M148.5,0C66.617,0,0,66.617,0,148.5S66.617,297,148.5,297S297,230.383,297,148.5S230.383,0,148.5,0z M158.958,275.653 v-6.366c0-5.775-4.683-10.458-10.458-10.458c-5.775,0-10.458,4.683-10.458,10.458v6.366 c-62.027-5.056-111.64-54.668-116.695-116.695h6.366c5.775,0,10.458-4.683,10.458-10.458s-4.683-10.458-10.458-10.458h-6.366 c5.056-62.027,54.668-111.64,116.695-116.695v6.366c0,5.775,4.683,10.458,10.458,10.458c5.775,0,10.458-4.683,10.458-10.458v-6.366 c62.027,5.056,111.64,54.668,116.695,116.695h-6.366c-5.775,0-10.458,4.683-10.458,10.458s4.683,10.458,10.458,10.458h6.366 C270.598,220.985,220.985,270.598,158.958,275.653z"})))}function KV(t){return v.createElement("svg",{viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M228.5 205.584h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5H228.5c-2.726 0-5 2.274-5 5s2.274 5 5 5z",fill:"currentColor"}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M232.826 280.905c-.339 3.356-18.813-.782-20.919-1.06l-45.073-5.94-45.074-5.94-14.507-1.912c-1.456-.192-6.201-.055-6.412-2.147-.621-6.157 0-12.699 0-18.878v-43.5-82.076-5.13c0-2.551 5.184-1.015 6.412-.853l35.438 4.67 83.723 11.035c1.457.192 6.201.055 6.412 2.147.169 1.673 0 3.451 0 5.13v144.454c0 6.448 10 6.448 10 0V136.451v-5.13c0-7.619-6.137-10.793-12.673-11.655l-28.531-3.76-88.411-11.652-9.897-1.304c-6.555-.864-12.473 4.9-12.473 11.38v144.832c0 2.023-.071 4.04.132 6.053.717 7.111 6.606 9.563 12.759 10.374l76.827 10.125 39.896 5.259 9.697 1.278c7.063.931 12.011-4.778 12.673-11.346.648-6.415-9.358-6.352-9.999 0z",fill:"currentColor"}))}function YV(t){return v.createElement("svg",{width:361,height:361,viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9zM265.732 265.178c.584 2.887-1.629 5.228-4.942 5.228H103.457c-3.313 0-6.474-2.341-7.058-5.228L75.24 130.633c-.584-2.887 1.628-5.228 4.942-5.228h157.333c3.313 0 6.474 2.34 7.058 5.228l21.159 134.545z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M247.194 199.667h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5h-6.639c-2.726 0-5 2.274-5 5s2.275 5 5 5z",fill:"currentColor"}))}ot.Types.airCondition+"",ot.Types.blind+"",ot.Types.blindButtons+"",ot.Types.button+"",ot.Types.buttonSensor+"",ot.Types.camera+"",ot.Types.chart+"",ot.Types.image+"",ot.Types.dimmer+"",ot.Types.door+"",ot.Types.fireAlarm+"",ot.Types.floodAlarm+"",ot.Types.gate+"",ot.Types.humidity+"",ot.Types.illuminance+"",ot.Types.info+"",ot.Types.light+"",ot.Types.lock+"",ot.Types.location+"",ot.Types.locationOne+"",ot.Types.media+"",ot.Types.motion+"",ot.Types.ct+"",ot.Types.percentage+"",ot.Types.rgb+"",ot.Types.rgbSingle+"",ot.Types.rgbwSingle+"",ot.Types.hue+"",ot.Types.cie+"",ot.Types.slider+"",ot.Types.socket+"",ot.Types.temperature+"",ot.Types.thermostat+"",ot.Types.vacuumCleaner+"",ot.Types.volume+"",ot.Types.volumeGroup+"",ot.Types.window+"",ot.Types.windowTilt+"",ot.Types.weatherCurrent+"",ot.Types.weatherForecast+"",ot.Types.warning+"",ot.Types.unknown+"",ot.Types.instance+"";class wT extends v.Component{static generateFile(e,r){const n=window.document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",window.document.body.appendChild(n),n.click(),window.document.body.removeChild(n)}handleFileSelect=e=>{const n=e.target?.files;if(!n||!n.length){console.error("No files found. Please report to developers");return}const o=n[0];if(o){const a=new window.FileReader;a.onload=()=>{const l=a.result?.toString()||"";try{const c=JSON.parse(l);c.native&&c.common?c.common.name!==this.props.common.name?this.props.onError&&this.props.onError(z.t("ra_otherConfig",c.common.name)):this.props.onLoad&&this.props.onLoad(c.native):this.props.onError&&this.props.onError(z.t("ra_invalidConfig"))}catch(c){this.props.onError&&this.props.onError(c?.toString())}},a.readAsText(o)}else alert("Failed to open JSON File")};download(){const e={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};e.common.news&&delete e.common.news,e.common.titleLang&&delete e.common.titleLang,e.common.desc&&delete e.common.desc,wT.generateFile(`${e._id}.json`,e)}upload(){const e=window.document.createElement("input");e.setAttribute("type","file"),e.setAttribute("id","files"),e.setAttribute("opacity","0"),e.addEventListener("change",this.handleFileSelect,!1),e.click()}render(){return v.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?v.createElement(Qd,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?v.createElement(ua,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{window.open(this.props.common.readme,"_blank")?.focus()}},v.createElement(U$,null)):null,v.createElement(ua,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Load configuration from file"),onClick:()=>this.upload()},v.createElement(sL,null)),v.createElement(ua,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Save configuration to file"),onClick:()=>this.download()},v.createElement(aL,null)))}}function JV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function QV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function ZV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function eG(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function tG(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),v.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}))}const d8={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};v.forwardRef(function(e,r){return v.createElement(J1,{sx:{...d8.root,...e?.style||void 0,...e.overflow==="auto"?d8.overflowAuto:void 0},ref:r},e.children)});v.createElement(tG,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(QV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(ZV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(JV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(nC,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(eG,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),v.createElement(J$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(oL,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(nL,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(iL,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(Z$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(tL,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(B$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(uy,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(gv,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});class mK extends v.Component{refTypo;height;width;constructor(e){super(e),this.state={closed:this.props.storeId?window.localStorage.getItem(this.props.storeId)==="true":!1},this.height=0,this.width=0,this.refTypo=v.createRef()}componentDidMount(){this.detectHeight()}onClick(){this.props.storeId&&this.props.closed===void 0&&(this.state.closed?window.localStorage.removeItem(this.props.storeId):window.localStorage.setItem(this.props.storeId,"true")),this.props.closed===void 0?this.setState({closed:!this.state.closed},()=>{this.props.onClose&&this.props.onClose(this.state.closed)}):this.props.onClose&&this.props.onClose(!this.props.closed)}detectHeight(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed;this.props.closeable&&!e&&this.refTypo.current&&window.requestAnimationFrame(()=>{(this.props.closed!==void 0?this.props.closed:this.state.closed)||this.refTypo.current&&(!this.height||this.width!==this.refTypo.current.clientWidth)&&(this.height=this.refTypo.current.clientHeight,this.width=this.refTypo.current.clientWidth,this.forceUpdate())})}componentDidUpdate(){this.detectHeight()}render(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed,r=e?uL:fa;return v.createElement(ft,{className:"iom-info-box",style:{whiteSpace:"preserve",display:"flex",gap:8,alignItems:e||this.props.iconPosition==="top"?"flex-start":"center",borderWidth:1,borderStyle:"solid",padding:4,borderRadius:5,marginBottom:8,maxWidth:"100%",transition:"height 0.5s",height:this.props.closeable?e?30:this.height||void 0:void 0,overflow:this.props.closeable?"hidden":void 0,position:"relative",...this.props.style},sx:{borderColor:n=>this.props.type==="ok"?n.palette.info.main:n.palette[this.props.type].main}},this.props.type==="ok"?v.createElement(Di,{style:{color:"#0F0"}}):this.props.type==="info"?v.createElement(V$,{color:"primary"}):v.createElement(pL,{color:this.props.type}),v.createElement(qn,{ref:this.refTypo},this.props.children),this.props.closeable?v.createElement(r,{sx:{color:n=>n.palette.mode==="dark"?"lightgray":"gray",cursor:"pointer",position:"absolute",top:4,right:4},onClick:()=>this.onClick()}):null,this.props.closeable?v.createElement("div",{style:{width:22}}):null,e?v.createElement(ft,{component:"div",sx:n=>{const o=n.palette[this.props.type==="ok"?"info":this.props.type].main;return{background:`linear-gradient(${o}00 0%, ${o}10 60%, ${o}90 100%)`}},style:{bottom:0,position:"absolute",left:0,right:0,height:10}}):null)}}const ce={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},E1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],kp=["January","February","March","April","May","June","July","August","September","October","November","December"],C1={minutes:"minutes",hours:"hours"},tc=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function $o(t){return t<10?`0${t}`:`${t}`}const f8={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function T1(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class wr extends _.Component{refFrom;refTo;refOnce;timerOnce=null;timerFrom=null;timerTo=null;constructor(e){super(e);let r;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{r=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(r=this.props.schedule);(!r||!Object.keys(r).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),r=f8),r={...f8,...r},r.valid.from||=wr.now2string(),this.refFrom=v.createRef(),this.refTo=v.createRef(),this.refOnce=v.createRef(),this.state={schedule:r,desc:wr.state2text(r)},JSON.stringify(r)!==this.props.schedule&&setTimeout(()=>this.props.onChange?.(JSON.stringify(r)),100)}componentWillUnmount(){this.timerOnce&&(clearTimeout(this.timerOnce),this.timerOnce=null),this.timerFrom&&(clearTimeout(this.timerFrom),this.timerFrom=null),this.timerTo&&(clearTimeout(this.timerTo),this.timerTo=null)}onChange(e,r){const n=JSON.stringify(e)!==JSON.stringify(this.state.schedule);if(r||n){n&&this.setState({schedule:e,desc:wr.state2text(e)});const o=JSON.parse(JSON.stringify(e));if(o.period.once){const a=o.period.once;delete o.period,o.period={once:a},delete o.valid}else if(o.period.days){const a=o.period.days,l=o.period.dows;delete o.period,o.period={days:a},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.weeks){const a=o.period.weeks,l=o.period.dows;delete o.period,o.period={weeks:a},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.months){const a=o.period.months,l=o.period.dates;delete o.period,o.period={months:a},l&&l!=="[]"&&(o.period.dates=l)}else if(o.period.years){const a=o.period.years,l=o.period.yearMonth,c=o.period.yearDate;delete o.period,o.period={years:a,yearDate:c},l&&(o.period.yearMonth=l)}if(o.time.exactTime?(delete o.time.end,delete o.time.mode,delete o.time.interval):delete o.time.exactTime,o.valid){if(o.valid.to||delete o.valid.to,o.period.days===1||o.period.weeks===1||o.period.months===1||o.period.years===1){const a=wr.string2date(o.valid.from),l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),a<=l&&delete o.valid.from}!o.valid.from&&!o.valid.to&&delete o.valid}this.props.onChange?.(JSON.stringify(o),wr.state2text(e))}}static state2text(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{return""}const r=[],n=wr.string2date(e.valid.from);if(e.period.once){const o=wr.string2date(e.period.once),a=new Date;if(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),oz.t(E1[l]));if(a.length===1)r.push(z.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(z.t("sch_desc_everyDay"));else{const l=a.pop();r.push(z.t("sch_desc_onWeekdays",a.join(", "),l))}}}else r.push(z.t("sch_desc_everyDay"));else r.push(z.t("sch_desc_everyNDay",e.period.days.toString()));else if(e.period.weeks)if(e.period.weeks===1?r.push(z.t("sch_desc_everyWeek")):r.push(z.t("sch_desc_everyNWeeks",e.period.weeks.toString())),e.period.dows){const o=JSON.parse(e.period.dows);if(o.length===2&&o[0]===0&&o[1]===6)r.push(z.t("sch_desc_onWeekends"));else if(o.length===5&&o[0]===1&&o[1]===2&&o[2]===3&&o[3]===4&&o[4]===5)r.push(z.t("sch_desc_onWorkdays"));else{const a=o.map(l=>z.t(E1[l]));if(a.length===1)r.push(z.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(z.t("sch_desc_everyDay"));else{const l=a.pop();r.push(z.t("sch_desc_onWeekdays",a.join(", "),l))}}}else return z.t("sch_desc_never");else if(e.period.months){if(e.period.dates){const o=JSON.parse(e.period.dates);if(o.length===1)r.push(z.t("sch_desc_onDate",o[0]));else if(o.length===31)r.push(z.t("sch_desc_onEveryDate"));else if(o.length){const a=o.pop();r.push(z.t("sch_desc_onDates",o.join(", "),a))}else return z.t("sch_desc_never")}else r.push(z.t("sch_desc_onEveryDate"));if(e.period.months===1)r.push(z.t("sch_desc_everyMonth"));else if(typeof e.period.months=="number")r.push(z.t("sch_desc_everyNMonths",e.period.months.toString()));else{const a=JSON.parse(e.period.months).map(l=>z.t(kp[l-1]));if(!a.length)return z.t("sch_desc_never");if(a.length===1)r.push(z.t("sch_desc_onMonth",a[0]));else if(a.length===12)r.push(z.t("sch_desc_everyMonth"));else{const l=a.pop();r.push(z.t("sch_desc_onMonths",a.join(", "),l))}}}else e.period.years&&(e.period.years===1?r.push(z.t("sch_desc_everyYear")):r.push(z.t("sch_desc_everyNYears",e.period.years.toString())),r.push(z.t("sch_desc_onDate",e.period.yearDate.toString(),e.period.yearMonth?z.t(kp[e.period.yearMonth-1]):z.t("sch_desc_everyMonth"))));if(e.time.exactTime)tc.includes(e.time.start)?r.push(z.t("sch_desc_atTime",z.t(`sch_astro_${e.time.start}`))):r.push(z.t("sch_desc_atTime",e.time.start));else{e.time.mode===C1.minutes?e.time.interval===1?r.push(z.t("sch_desc_everyMinute")):r.push(z.t("sch_desc_everyNMinutes",e.time.interval.toString())):e.time.interval===1?r.push(z.t("sch_desc_everyHour")):r.push(z.t("sch_desc_everyNHours",e.time.interval.toString()));const o=tc.indexOf(e.time.start)!==-1?z.t(`sch_astro_${e.time.start}`):e.time.start,a=tc.indexOf(e.time.end)!==-1?z.t(`sch_astro_${e.time.end}`):e.time.end;(o!=="00:00"||a!=="24:00"&&a!=="23:59")&&r.push(z.t("sch_desc_intervalFromTo",o,a))}return e.period.once||(n.getTime()>Date.now()&&e.valid.to?r.push(z.t("sch_desc_validFromTo",e.valid.from,e.valid.to)):n.getTime()>Date.now()?r.push(z.t("sch_desc_validFrom",e.valid.from)):e.valid.to&&r.push(z.t("sch_desc_validTo",e.valid.to))),r.join(" ")}getTimePeriodElements(){const e=this.state.schedule;let r=!1,n=!1,o=!1,a=!0;return e.time.start==="00:00"&&e.time.end==="24:00"?(r=!0,a=!1):e.time.start==="sunrise"?(n=!0,a=!1):e.time.start==="sunset"&&(o=!0,a=!1),v.createElement("div",{key:"timePeriod",style:ce.rowDiv},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!e.time.exactTime,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.exactTime=!1,this.onChange(l)}}),label:z.t("sch_intervalTime")})),v.createElement("div",{style:ce.settingsDiv},v.createElement("div",{style:ce.settingsDiv},!e.time.exactTime&&v.createElement("div",null,v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!a,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="23:59",this.onChange(l)}}),label:a?"":z.t("sch_fromTo")}),a&&[v.createElement(Ar,{variant:"standard",style:{...ce.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.start=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_from"),margin:"normal"}),v.createElement(Ar,{variant:"standard",style:ce.inputTime,key:"exactTimeTo",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.end=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_to"),margin:"normal"})])),!e.time.exactTime&&v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!r,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="24:00",this.onChange(l)}}),label:z.t("sch_wholeDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!n,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunrise",l.time.end="sunset",this.onChange(l)}}),label:z.t("sch_astroDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!o,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunset",l.time.end="sunrise",this.onChange(l)}}),label:z.t("sch_astroNight")}))),!e.time.exactTime&&this.getPeriodSettingsMinutes(a)))}getTimeExactElements(){const e=tc.includes(this.state.schedule.time.start);return v.createElement("div",{key:"timeExact",style:ce.rowDiv},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.exactTime=!0,this.onChange(r)}}),label:z.t("sch_exactTime")})),this.state.schedule.time.exactTime&&v.createElement(po,{variant:"standard",value:e?this.state.schedule.time.start:"00:00",onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)}},v.createElement(ur,{key:"specific",value:"00:00"},z.t("sch_specificTime")),tc.map(r=>v.createElement(ur,{key:r,value:r},z.t(`sch_astro_${r}`)))),this.state.schedule.time.exactTime&&!e&&v.createElement("div",{style:ce.settingsDiv},v.createElement(Ar,{variant:"standard",style:ce.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:r=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:r.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return v.createElement("hr",{style:ce.hr})}getPeriodModes(){const e=this.state.schedule,r=!e.period.dows&&!e.period.months&&!e.period.dates&&!e.period.years&&!e.period.days&&!e.period.weeks;return r&&!e.period.once&&(e.period.once=wr.now2string(!0)),[v.createElement("div",{key:"once",style:{...ce.rowDiv,...ce.rowOnce}},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.once||=wr.now2string(!0),n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,this.onChange(n)}}),label:z.t("sch_periodOnce")})),r&&v.createElement("div",{style:ce.settingsDiv},v.createElement(Ar,{variant:"standard",style:ce.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:T1(e.period.once),onChange:n=>{this.timerOnce&&clearTimeout(this.timerOnce),this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(o=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),l=wr.string2date(o);l.toString()!=="Invalid Date"&&(a.period.once=`${$o(l.getDate())}.${$o(l.getMonth()+1)}.${l.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_at"),margin:"normal"}))),v.createElement(ft,{component:"div",key:"days",sx:Je.getStyle(this.props.theme,ce.rowDiv,ce.rowDays)},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!e.period.days,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDaily")})),v.createElement("div",{style:ce.settingsDiv},this.getPeriodSettingsDaily(),e.period.days?this.getPeriodSettingsWeekdays():null)),v.createElement(ft,{component:"div",key:"weeks",sx:Je.getStyle(this.props.theme,ce.rowDiv,ce.rowDows)},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!e.period.weeks,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=e.period.weeks?0:1,n.period.dows||="[0]",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodWeekly")})),v.createElement(ft,{component:"div",style:ce.settingsDiv},v.createElement("div",{style:ce.settingsDiv},this.getPeriodSettingsWeekly()),v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,ce.settingsDiv,ce.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),v.createElement(ft,{component:"div",key:"months",sx:Je.getStyle(this.props.theme,ce.rowDiv,ce.rowMonths)},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!e.period.months,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,n.period.dows="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodMonthly")})),v.createElement("div",{style:ce.settingsDiv},this.getPeriodSettingsMonthly(),e.period.months?v.createElement(ft,null,v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,ce.settingsDiv,ce.rowMonthsDates)},v.createElement(pt,{control:v.createElement(Lr,{style:ce.inputRadio,checked:!!e.period.dates,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months||=1;const o=[];for(let a=1;a<=31;a++)o.push(a);n.period.dates||=JSON.stringify(o),n.period.dows="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDates")})),v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,ce.settingsDiv,ce.rowMonthsDates)},this.getPeriodSettingsDates())):null)),v.createElement(ft,{component:"div",key:"years",sx:Je.getStyle(this.props.theme,ce.rowDiv,ce.rowYears)},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!e.period.years,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,n.period.yearDate=1,n.period.yearMonth=1,n.period.dows="",n.period.months=0,n.period.dates="",n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodYearly")})),v.createElement("div",{style:ce.settingsDiv},v.createElement("div",{style:ce.settingsDiv},this.getPeriodSettingsYearly()),!!e.period.years&&v.createElement("div",{style:ce.settingsDiv},v.createElement("span",null,z.t("sch_on")),v.createElement(lo,{key:"input",value:this.state.schedule.period.yearDate,style:ce.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearDate=parseInt(n.target.value,10),o.period.yearDate<1&&(o.period.yearDate=31),o.period.yearDate>31&&(o.period.yearDate=1),this.onChange(o)}}),v.createElement(po,{variant:"standard",value:e.period.yearMonth,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearMonth=n.target.value,this.onChange(o)}},v.createElement(ur,{key:"every",value:0},z.t("sch_yearEveryMonth")),kp.map((n,o)=>v.createElement(ur,{key:n,value:o+1},z.t(n)))))))]}getPeriodSettingsMinutes(e){return v.createElement("div",{style:{display:"inline-block",marginTop:e?15:"inherit"}},v.createElement("label",{style:{marginLeft:4,marginRight:4}},z.t("sch_every")),v.createElement(lo,{value:this.state.schedule.time.interval,style:{...ce.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.interval=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement(po,{variant:"standard",value:this.state.schedule.time.mode,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.mode=r.target.value,this.onChange(n)}},v.createElement(ur,{value:C1.minutes},z.t("sch_periodMinutes")),v.createElement(ur,{value:C1.hours},z.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const e=this.state.schedule,r=e.period.dows&&e.period.dows!=="[1, 2, 3, 4, 5]"&&e.period.dows!=="[0, 6]";return[v.createElement("div",{key:"workdays"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[1, 2, 3, 4, 5]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWorkdays")})),v.createElement("div",{key:"weekend"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.dows==="[0, 6]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekend")})),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(pt,{style:{verticalAlign:"top"},control:v.createElement(Dt,{style:ce.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 1, 2, 3, 4, 5, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekdays")}),r&&(e.period.days===1||e.period.weeks)&&v.createElement(rm,{row:!0,style:{...ce.inputGroup,width:150}},[1,2,3,4,5,6,0].map(n=>v.createElement(pt,{key:`specific_${n}`,style:ce.inputGroupElement,control:v.createElement(Lr,{style:ce.inputSmallCheck,checked:e.period.dows.includes(n.toString()),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(a.period.dows)}catch{l=[]}o.target.checked&&!l.includes(n)?l.push(n):!o.target.checked&&l.includes(n)&&l.splice(l.indexOf(n),1),l.sort((c,d)=>c-d),a.period.dows=JSON.stringify(l),a.period.days&&(a.period.days=1),this.onChange(a)}}),label:z.t(E1[n])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const e=this.state.schedule;return[v.createElement("div",{key:"every_day"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.days===1&&!e.period.dows,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEveryDay")})),v.createElement("div",{key:"everyN_day"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.days>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=2,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.days>1&&[v.createElement(lo,{key:"input",value:this.state.schedule.period.days,style:ce.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=parseInt(r.target.value,10),n.period.dows="",this.onChange(n)}}),v.createElement("span",{key:"span",style:{paddingRight:10}},z.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const e=this.state.schedule;return[v.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.weeks===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=1,this.onChange(r)}}),label:z.t("sch_periodEveryWeek")})),v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.weeks>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.weeks>1&&[v.createElement(lo,{key:"input",value:this.state.schedule.period.weeks,style:ce.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement("span",{key:"text"},z.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const e=this.state.schedule,r=[];for(let o=1;o<=31;o++)r.push(o);const n=JSON.parse(e.period.dates);return v.createElement(rm,{row:!0,style:{...ce.inputGroup,maxWidth:620}},v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:n.length===31,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let l=1;l<=31;l++)a.push(l);o.period.dates=JSON.stringify(a),this.onChange(o)}}),label:z.t("sch_all")}),v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dates="[]",this.onChange(o)}}),label:z.t("sch_no_one")}),n.length!==31&&!!n.length&&v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],l=JSON.parse(o.period.dates);for(let c=1;c<=31;c++)l.includes(c)||a.push(c);a.sort((c,d)=>c-d),o.period.dates=JSON.stringify(a),this.onChange(o)}}),label:z.t("sch_invert")}),v.createElement("div",null),r.map(o=>v.createElement(pt,{key:`date_${o}`,style:o?ce.inputDateDay:{...ce.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:JSON.parse(e.period.dates).includes(o),onChange:a=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.dates)}catch{c=[]}a.target.checked&&!c.includes(o)?c.push(o):!a.target.checked&&c.includes(o)&&c.splice(c.indexOf(o),1),c.sort((d,f)=>d-f),l.period.dates=JSON.stringify(c),this.onChange(l)}}),label:o<10?[v.createElement("span",{key:"0",style:{opacity:0}},"0"),v.createElement("span",{key:"num"},o)]:o})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const e=this.state.schedule,r=typeof e.period.months=="string"?JSON.parse(e.period.months):[];return[v.createElement("div",{key:"every"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:typeof e.period.months=="number"&&e.period.months===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,this.onChange(e)}}),label:z.t("sch_periodEveryMonth")})),v.createElement("div",{key:"everyN"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:typeof e.period.months=="number"&&e.period.months>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=2,this.onChange(n)}}),label:z.t("sch_periodEvery")}),typeof e.period.months=="number"&&e.period.months>1&&[v.createElement(lo,{key:"input",value:e.period.months,style:ce.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=parseInt(n.target.value,10),o.period.months<1&&(o.period.months=1),this.onChange(o)}}),v.createElement("span",{key:"text"},z.t("sch_periodMonth"))]),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(pt,{style:{verticalAlign:"top"},control:v.createElement(Dt,{style:ce.inputRadio,checked:typeof e.period.months=="string",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(n)}}),label:z.t("sch_periodSpecificMonths")}),typeof e.period.months=="string"&&v.createElement(rm,{row:!0,style:ce.inputGroup},v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:r.length===12,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[];for(let a=1;a<=12;a++)o.push(a);n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_all")}),v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:!r.length,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[]",this.onChange(n)}}),label:z.t("sch_no_one")}),r.length!==12&&!!r.length&&v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:!1,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[],a=JSON.parse(n.period.months);for(let l=1;l<=12;l++)a.includes(l)||o.push(l);o.sort((l,c)=>l-c),n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_invert")}),v.createElement("div",null),kp.map((n,o)=>v.createElement(pt,{key:`month_${o}`,style:ce.inputGroupElement,control:v.createElement(Lr,{style:ce.inputSmallCheck,checked:typeof e.period.months=="string"?JSON.parse(e.period.months).includes(o+1):e.period.months===o,onChange:a=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.months)}catch{c=[]}a.target.checked&&!c.includes(o+1)?c.push(o+1):!a.target.checked&&c.includes(o+1)&&c.splice(c.indexOf(o+1),1),c.sort((d,f)=>d-f),l.period.months=JSON.stringify(c),this.onChange(l)}}),label:z.t(n)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const e=this.state.schedule;return[v.createElement("div",{key:"year"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.years===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,this.onChange(r)}}),label:z.t("sch_periodEveryYear")})),v.createElement("div",{key:"every"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.years>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.years>1&&[v.createElement(lo,{key:"input",value:this.state.schedule.period.years,style:ce.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=parseInt(r.target.value,10),n.period.years<1&&(n.period.years=1),this.onChange(n)}}),v.createElement("span",{key:"text"},z.t("sch_periodYear"))])]}static now2string(e){const r=new Date;return r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0),e&&(r.setDate(r.getDate()+2),r.setMilliseconds(r.getMilliseconds()-1)),`${$o(r.getDate())}.${$o(r.getMonth()+1)}.${$o(r.getFullYear())}`}static string2date(e){let r=e.split(".");return r.length===1?(r=e.split("-"),new Date(parseInt(r[0],10),parseInt(r[1],10)-1,parseInt(r[2],10))):new Date(parseInt(r[2],10),parseInt(r[1],10)-1,parseInt(r[0],10))}getValidSettings(){const e=this.state.schedule;return v.createElement("div",{style:ce.rowDiv},v.createElement("div",{style:{...ce.modeDiv,verticalAlign:"middle"}},v.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},z.t("sch_valid")),v.createElement("span",null,z.t("sch_validFrom"))),v.createElement("div",{style:ce.settingsDiv},v.createElement(Ar,{variant:"standard",style:{...ce.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:T1(e.valid.from),type:"date",onChange:r=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(n=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),a=wr.string2date(n);a.toString()!=="Invalid Date"&&(o.valid.from=`${$o(a.getDate())}.${$o(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),v.createElement(pt,{control:v.createElement(Lr,{style:ce.inputRadio,checked:!!e.valid.to,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.valid.to=r.valid.to?"":wr.now2string(!0),this.onChange(r)}}),label:z.t("sch_validTo")}),!!e.valid.to&&v.createElement(Ar,{variant:"standard",inputRef:this.refTo,style:{...ce.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:T1(e.valid.to),onChange:r=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(n=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),a=wr.string2date(n);a.toString()!=="Invalid Date"&&(o.valid.to=`${$o(a.getDate())}.${$o(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return v.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},v.createElement("div",null,this.state.desc),v.createElement("div",{style:ce.scrollWindow},v.createElement("h5",null,z.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),wr.getDivider(),v.createElement("h5",null,z.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&wr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}function rG({themeName:t,toggleTheme:e,t:r,className:n,style:o,size:a}){return v.createElement("div",{className:n||void 0,style:o||void 0},v.createElement($p,{title:r("ra_Change color theme"),slotProps:{popper:{sx:{pointerEvents:"none"}}}},v.createElement(cr,{onClick:()=>e(),size:a||"medium"},t==="dark"&&v.createElement(N$,{className:n}),t==="blue"&&v.createElement($$,{className:n}),t==="colored"&&v.createElement(cy,{className:n}),t!=="dark"&&t!=="blue"&&t!=="colored"&&v.createElement(L$,{className:n}))))}function h8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ST(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',xG=Number.isNaN||yo.isNaN;function mt(t){return typeof t=="number"&&!xG(t)}var O8=function(e){return e>0&&e<1/0};function k1(t){return typeof t>"u"}function ma(t){return vv(t)==="object"&&t!==null}var wG=Object.prototype.hasOwnProperty;function $s(t){if(!ma(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&wG.call(r,"isPrototypeOf")}catch{return!1}}function Gr(t){return typeof t=="function"}var SG=Array.prototype.slice;function IT(t){return Array.from?Array.from(t):SG.call(t)}function ar(t,e){return t&&Gr(e)&&(Array.isArray(t)||mt(t.length)?IT(t).forEach(function(r,n){e.call(t,r,n,t)}):ma(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Wt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){ma(a)&&Object.keys(a).forEach(function(l){e[l]=a[l]})}),e},EG=/\.\d*(?:0|9){12}\d*$/;function js(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return EG.test(t)?Math.round(t*e)/e:t}var CG=/^width|height|left|top|marginLeft|marginTop$/;function Si(t,e){var r=t.style;ar(e,function(n,o){CG.test(o)&&mt(n)&&(n="".concat(n,"px")),r[o]=n})}function TG(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function gr(t,e){if(e){if(mt(t.length)){ar(t,function(n){gr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function go(t,e){if(e){if(mt(t.length)){ar(t,function(r){go(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function Ls(t,e,r){if(e){if(mt(t.length)){ar(t,function(n){Ls(n,e,r)});return}r?gr(t,e):go(t,e)}}var kG=/([a-z\d])([A-Z])/g;function c2(t){return t.replace(kG,"$1-$2").toLowerCase()}function kv(t,e){return ma(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(c2(e)))}function Lc(t,e,r){ma(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(c2(e)),r)}function OG(t,e){if(ma(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(c2(e)))}var AT=/\s\s*/,DT=(function(){var t=!1;if(Zd){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});yo.addEventListener("test",r,n),yo.removeEventListener("test",r,n)}return t})();function zn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(AT).forEach(function(a){if(!DT){var l=t.listeners;l&&l[a]&&l[a][r]&&(o=l[a][r],delete l[a][r],Object.keys(l[a]).length===0&&delete l[a],Object.keys(l).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function Cn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(AT).forEach(function(a){if(n.once&&!DT){var l=t.listeners,c=l===void 0?{}:l;o=function(){delete c[a][r],t.removeEventListener(a,o,n);for(var f=arguments.length,g=new Array(f),u=0;uMath.abs(r)&&(r=m)})}),r}function _p(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:ST({startX:r,startY:n},o)}function MG(t){var e=0,r=0,n=0;return ar(t,function(o){var a=o.startX,l=o.startY;e+=a,r+=l,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function Ei(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=O8(n),l=O8(r);if(a&&l){var c=r*e;o==="contain"&&c>n||o==="cover"&&c90?{width:d,height:c}:{width:c,height:d}}function IG(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,l=e.naturalHeight,c=e.rotate,d=c===void 0?0:c,f=e.scaleX,g=f===void 0?1:f,u=e.scaleY,m=u===void 0?1:u,y=r.aspectRatio,w=r.naturalWidth,x=r.naturalHeight,E=n.fillColor,k=E===void 0?"transparent":E,I=n.imageSmoothingEnabled,O=I===void 0?!0:I,R=n.imageSmoothingQuality,M=R===void 0?"low":R,T=n.maxWidth,P=T===void 0?1/0:T,N=n.maxHeight,D=N===void 0?1/0:N,C=n.minWidth,$=C===void 0?0:C,H=n.minHeight,q=H===void 0?0:H,U=document.createElement("canvas"),W=U.getContext("2d"),K=Ei({aspectRatio:y,width:P,height:D}),re=Ei({aspectRatio:y,width:$,height:q},"cover"),Z=Math.min(K.width,Math.max(re.width,w)),V=Math.min(K.height,Math.max(re.height,x)),ee=Ei({aspectRatio:o,width:P,height:D}),F=Ei({aspectRatio:o,width:$,height:q},"cover"),J=Math.min(ee.width,Math.max(F.width,a)),pe=Math.min(ee.height,Math.max(F.height,l)),de=[-J/2,-pe/2,J,pe];return U.width=js(Z),U.height=js(V),W.fillStyle=k,W.fillRect(0,0,Z,V),W.save(),W.translate(Z/2,V/2),W.rotate(d*Math.PI/180),W.scale(g,m),W.imageSmoothingEnabled=O,W.imageSmoothingQuality=M,W.drawImage.apply(W,[t].concat(CT(de.map(function(ie){return Math.floor(js(ie))})))),W.restore(),U}var $T=String.fromCharCode;function AG(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push($T.apply(null,IT(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function LG(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var l=e.byteLength,c=2;c+1=8&&(a=f+u)}}}if(a){var m=e.getUint16(a,n),y,w;for(w=0;w=0?a:MT),height:Math.max(n.offsetHeight,l>=0?l:PT)};this.containerData=c,Si(o,{width:c.width,height:c.height}),gr(e,Kr),go(o,Kr)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,l=o?r.naturalWidth:r.naturalHeight,c=a/l,d=e.width,f=e.height;e.height*c>e.width?n===3?d=e.height*c:f=e.width/c:n===3?f=e.width/c:d=e.height*c;var g={aspectRatio:c,naturalWidth:a,naturalHeight:l,width:d,height:f};this.canvasData=g,this.limited=n===1||n===2,this.limitCanvas(!0,!0),g.width=Math.min(Math.max(g.width,g.minWidth),g.maxWidth),g.height=Math.min(Math.max(g.height,g.minHeight),g.maxHeight),g.left=(e.width-g.width)/2,g.top=(e.height-g.height)/2,g.oldLeft=g.left,g.oldTop=g.top,this.initialCanvasData=Wt({},g)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,l=this.cropBoxData,c=n.viewMode,d=a.aspectRatio,f=this.cropped&&l;if(e){var g=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;c>1?(g=Math.max(g,o.width),u=Math.max(u,o.height),c===3&&(u*d>g?g=u*d:u=g/d)):c>0&&(g?g=Math.max(g,f?l.width:0):u?u=Math.max(u,f?l.height:0):f&&(g=l.width,u=l.height,u*d>g?g=u*d:u=g/d));var m=Ei({aspectRatio:d,width:g,height:u});g=m.width,u=m.height,a.minWidth=g,a.minHeight=u,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(c>(f?0:1)){var y=o.width-a.width,w=o.height-a.height;a.minLeft=Math.min(0,y),a.minTop=Math.min(0,w),a.maxLeft=Math.max(0,y),a.maxTop=Math.max(0,w),f&&this.limited&&(a.minLeft=Math.min(l.left,l.left+(l.width-a.width)),a.minTop=Math.min(l.top,l.top+(l.height-a.height)),a.maxLeft=l.left,a.maxTop=l.top,c===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,y),a.maxLeft=Math.max(0,y)),a.height>=o.height&&(a.minTop=Math.min(0,w),a.maxTop=Math.max(0,w))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=PG({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),l=a.width,c=a.height,d=n.width*(l/n.naturalWidth),f=n.height*(c/n.naturalHeight);n.left-=(d-n.width)/2,n.top-=(f-n.height)/2,n.width=d,n.height=f,n.aspectRatio=l/c,n.naturalWidth=l,n.naturalHeight=c,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Wt({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,l=this.cropBoxData,c=this.limited,d=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,g=Number(n.minCropBoxHeight)||0,u=c?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,m=c?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;f=Math.min(f,o.width),g=Math.min(g,o.height),d&&(f&&g?g*d>f?g=f/d:f=g*d:f?g=f/d:g&&(f=g*d),m*d>u?m=u/d:u=m*d),l.minWidth=Math.min(f,u),l.minHeight=Math.min(g,m),l.maxWidth=u,l.maxHeight=m}r&&(c?(l.minLeft=Math.max(0,a.left),l.minTop=Math.max(0,a.top),l.maxLeft=Math.min(o.width,a.left+a.width)-l.width,l.maxTop=Math.min(o.height,a.top+a.height)-l.height):(l.minLeft=0,l.minTop=0,l.maxLeft=o.width-l.width,l.maxTop=o.height-l.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?kT:s2),Si(this.cropBox,Wt({width:n.width,height:n.height},Ec({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Hs(this.element,wv,this.getData())}},zG={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",l=document.createElement("img");if(r&&(l.crossOrigin=r),l.src=o,l.alt=a,this.viewBox.appendChild(l),this.viewBoxImage=l,!!n){var c=n;typeof n=="string"?c=e.ownerDocument.querySelectorAll(n):n.querySelector&&(c=[n]),this.previews=c,ar(c,function(d){var f=document.createElement("img");Lc(d,Op,{width:d.offsetWidth,height:d.offsetHeight,html:d.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=a,f.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',d.innerHTML="",d.appendChild(f)})}},resetPreview:function(){ar(this.previews,function(e){var r=kv(e,Op);Si(e,{width:r.width,height:r.height}),e.innerHTML=r.html,OG(e,Op)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,l=e.width,c=e.height,d=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(Si(this.viewBoxImage,Wt({width:l,height:c},Ec(Wt({translateX:-d,translateY:-f},e)))),ar(this.previews,function(g){var u=kv(g,Op),m=u.width,y=u.height,w=m,x=y,E=1;o&&(E=m/o,x=a*E),a&&x>y&&(E=y/a,w=o*E,x=y),Si(g,{width:w,height:x}),Si(g.getElementsByTagName("img")[0],Wt({width:l*E,height:c*E},Ec(Wt({translateX:-d*E,translateY:-f*E},e))))}))}},jG={bind:function(){var e=this.element,r=this.options,n=this.cropper;Gr(r.cropstart)&&Cn(e,Cv,r.cropstart),Gr(r.cropmove)&&Cn(e,Ev,r.cropmove),Gr(r.cropend)&&Cn(e,Sv,r.cropend),Gr(r.crop)&&Cn(e,wv,r.crop),Gr(r.zoom)&&Cn(e,Tv,r.zoom),Cn(n,b8,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&Cn(n,C8,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Cn(n,y8,this.onDblclick=this.dblclick.bind(this)),Cn(e.ownerDocument,x8,this.onCropMove=this.cropMove.bind(this)),Cn(e.ownerDocument,w8,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&Cn(window,E8,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;Gr(r.cropstart)&&zn(e,Cv,r.cropstart),Gr(r.cropmove)&&zn(e,Ev,r.cropmove),Gr(r.cropend)&&zn(e,Sv,r.cropend),Gr(r.crop)&&zn(e,wv,r.crop),Gr(r.zoom)&&zn(e,Tv,r.zoom),zn(n,b8,this.onCropStart),r.zoomable&&r.zoomOnWheel&&zn(n,C8,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&zn(n,y8,this.onDblclick),zn(e.ownerDocument,x8,this.onCropMove),zn(e.ownerDocument,w8,this.onCropEnd),r.responsive&&zn(window,E8,this.onResize)}},HG={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,l=Math.abs(o-1)>Math.abs(a-1)?o:a;if(l!==1){var c,d;e.restore&&(c=this.getCanvasData(),d=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(ar(c,function(f,g){c[g]=f*l})),this.setCropBoxData(ar(d,function(f,g){d[g]=f*l})))}}},dblclick:function(){this.disabled||this.options.dragMode===RT||this.setDragMode(TG(this.dragBox,bv)?_T:l2)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(mt(r)&&r!==1||mt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,l;e.changedTouches?ar(e.changedTouches,function(c){a[c.identifier]=_p(c)}):a[e.pointerId||0]=_p(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?l=OT:l=kv(e.target,$c),mG.test(l)&&Hs(this.element,Cv,{originalEvent:e,action:l})!==!1&&(e.preventDefault(),this.action=l,this.cropping=!1,l===TT&&(this.cropping=!0,gr(this.dragBox,pd)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),Hs(this.element,Ev,{originalEvent:e,action:r})!==!1&&(e.changedTouches?ar(e.changedTouches,function(o){Wt(n[o.identifier]||{},_p(o,!0))}):Wt(n[e.pointerId||0]||{},_p(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?ar(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Ls(this.dragBox,pd,this.cropped&&this.options.modal)),Hs(this.element,Sv,{originalEvent:e,action:r}))}}},qG={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,l=this.pointers,c=this.action,d=r.aspectRatio,f=a.left,g=a.top,u=a.width,m=a.height,y=f+u,w=g+m,x=0,E=0,k=o.width,I=o.height,O=!0,R;!d&&e.shiftKey&&(d=u&&m?u/m:1),this.limited&&(x=a.minLeft,E=a.minTop,k=x+Math.min(o.width,n.width,n.left+n.width),I=E+Math.min(o.height,n.height,n.top+n.height));var M=l[Object.keys(l)[0]],T={x:M.endX-M.startX,y:M.endY-M.startY},P=function(D){switch(D){case Zi:y+T.x>k&&(T.x=k-y);break;case ea:f+T.xI&&(T.y=I-w);break}};switch(c){case s2:f+=T.x,g+=T.y;break;case Zi:if(T.x>=0&&(y>=k||d&&(g<=E||w>=I))){O=!1;break}P(Zi),u+=T.x,u<0&&(c=ea,u=-u,f-=u),d&&(m=u/d,g+=(a.height-m)/2);break;case gi:if(T.y<=0&&(g<=E||d&&(f<=x||y>=k))){O=!1;break}P(gi),m-=T.y,g+=T.y,m<0&&(c=fs,m=-m,g-=m),d&&(u=m*d,f+=(a.width-u)/2);break;case ea:if(T.x<=0&&(f<=x||d&&(g<=E||w>=I))){O=!1;break}P(ea),u-=T.x,f+=T.x,u<0&&(c=Zi,u=-u,f-=u),d&&(m=u/d,g+=(a.height-m)/2);break;case fs:if(T.y>=0&&(w>=I||d&&(f<=x||y>=k))){O=!1;break}P(fs),m+=T.y,m<0&&(c=gi,m=-m,g-=m),d&&(u=m*d,f+=(a.width-u)/2);break;case rc:if(d){if(T.y<=0&&(g<=E||y>=k)){O=!1;break}P(gi),m-=T.y,g+=T.y,u=m*d}else P(gi),P(Zi),T.x>=0?yE&&(m-=T.y,g+=T.y):(m-=T.y,g+=T.y);u<0&&m<0?(c=ic,m=-m,u=-u,g-=m,f-=u):u<0?(c=nc,u=-u,f-=u):m<0&&(c=oc,m=-m,g-=m);break;case nc:if(d){if(T.y<=0&&(g<=E||f<=x)){O=!1;break}P(gi),m-=T.y,g+=T.y,u=m*d,f+=a.width-u}else P(gi),P(ea),T.x<=0?f>x?(u-=T.x,f+=T.x):T.y<=0&&g<=E&&(O=!1):(u-=T.x,f+=T.x),T.y<=0?g>E&&(m-=T.y,g+=T.y):(m-=T.y,g+=T.y);u<0&&m<0?(c=oc,m=-m,u=-u,g-=m,f-=u):u<0?(c=rc,u=-u,f-=u):m<0&&(c=ic,m=-m,g-=m);break;case ic:if(d){if(T.x<=0&&(f<=x||w>=I)){O=!1;break}P(ea),u-=T.x,f+=T.x,m=u/d}else P(fs),P(ea),T.x<=0?f>x?(u-=T.x,f+=T.x):T.y>=0&&w>=I&&(O=!1):(u-=T.x,f+=T.x),T.y>=0?w=0&&(y>=k||w>=I)){O=!1;break}P(Zi),u+=T.x,m=u/d}else P(fs),P(Zi),T.x>=0?y=0&&w>=I&&(O=!1):u+=T.x,T.y>=0?w0?c=T.y>0?oc:rc:T.x<0&&(f-=u,c=T.y>0?ic:nc),T.y<0&&(g-=m),this.cropped||(go(this.cropBox,Kr),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}O&&(a.width=u,a.height=m,a.left=f,a.top=g,this.action=c,this.renderCropBox()),ar(l,function(N){N.startX=N.endX,N.startY=N.endY})}},WG={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&gr(this.dragBox,pd),go(this.cropBox,Kr),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Wt({},this.initialImageData),this.canvasData=Wt({},this.initialCanvasData),this.cropBoxData=Wt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Wt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),go(this.dragBox,pd),gr(this.cropBox,Kr)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,ar(this.previews,function(n){n.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,go(this.cropper,g8)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,gr(this.cropper,g8)),this},destroy:function(){var e=this.element;return e[Ht]?(e[Ht]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(k1(e)?e:o+Number(e),k1(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(mt(e)&&(n.left=e,o=!0),mt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,l=a.width,c=a.height,d=a.naturalWidth,f=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var g=d*e,u=f*e;if(Hs(this.element,Tv,{ratio:e,oldRatio:l/d,originalEvent:n})===!1)return this;if(n){var m=this.pointers,y=NT(this.cropper),w=m&&Object.keys(m).length?MG(m):{pageX:n.pageX,pageY:n.pageY};a.left-=(g-l)*((w.pageX-y.left-a.left)/l),a.top-=(u-c)*((w.pageY-y.top-a.top)/c)}else $s(r)&&mt(r.x)&&mt(r.y)?(a.left-=(g-l)*((r.x-a.left)/l),a.top-=(u-c)*((r.y-a.top)/c)):(a.left-=(g-l)/2,a.top-=(u-c)/2);a.width=g,a.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),mt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,mt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(mt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(mt(e)&&(n.scaleX=e,o=!0),mt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,l;if(this.ready&&this.cropped){l={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var c=n.width/n.naturalWidth;if(ar(l,function(g,u){l[u]=g/c}),e){var d=Math.round(l.y+l.height),f=Math.round(l.x+l.width);l.x=Math.round(l.x),l.y=Math.round(l.y),l.width=f-l.x,l.height=d-l.y}}else l={x:0,y:0,width:0,height:0};return r.rotatable&&(l.rotate=n.rotate||0),r.scalable&&(l.scaleX=n.scaleX||1,l.scaleY=n.scaleY||1),l},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&$s(e)){var l=!1;r.rotatable&&mt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,l=!0),r.scalable&&(mt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,l=!0),mt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,l=!0)),l&&this.renderCanvas(!0,!0);var c=n.width/n.naturalWidth;mt(e.x)&&(a.left=e.x*c+o.left),mt(e.y)&&(a.top=e.y*c+o.top),mt(e.width)&&(a.width=e.width*c),mt(e.height)&&(a.height=e.height*c),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Wt({},this.containerData):{}},getImageData:function(){return this.sized?Wt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&ar(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&$s(e)&&(mt(e.left)&&(r.left=e.left),mt(e.top)&&(r.top=e.top),mt(e.width)?(r.width=e.width,r.height=e.width/n):mt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&$s(e)&&(mt(e.left)&&(r.left=e.left),mt(e.top)&&(r.top=e.top),mt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),mt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var r=this.canvasData,n=IG(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,l=o.y,c=o.width,d=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(a*=f,l*=f,c*=f,d*=f);var g=c/d,u=Ei({aspectRatio:g,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),m=Ei({aspectRatio:g,width:e.minWidth||0,height:e.minHeight||0},"cover"),y=Ei({aspectRatio:g,width:e.width||(f!==1?n.width:c),height:e.height||(f!==1?n.height:d)}),w=y.width,x=y.height;w=Math.min(u.width,Math.max(m.width,w)),x=Math.min(u.height,Math.max(m.height,x));var E=document.createElement("canvas"),k=E.getContext("2d");E.width=js(w),E.height=js(x),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,w,x);var I=e.imageSmoothingEnabled,O=I===void 0?!0:I,R=e.imageSmoothingQuality;k.imageSmoothingEnabled=O,R&&(k.imageSmoothingQuality=R);var M=n.width,T=n.height,P=a,N=l,D,C,$,H,q,U;P<=-c||P>M?(P=0,D=0,$=0,q=0):P<=0?($=-P,P=0,D=Math.min(M,c+P),q=D):P<=M&&($=0,D=Math.min(c,M-P),q=D),D<=0||N<=-d||N>T?(N=0,C=0,H=0,U=0):N<=0?(H=-N,N=0,C=Math.min(T,d+N),U=C):N<=T&&(H=0,C=Math.min(d,T-N),U=C);var W=[P,N,D,C];if(q>0&&U>0){var K=w/c;W.push($*K,H*K,q*K,U*K)}return k.drawImage.apply(k,[n].concat(CT(W.map(function(re){return Math.floor(js(re))})))),E},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!k1(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===l2,l=r.movable&&e===_T;e=a||l?e:RT,r.dragMode=e,Lc(n,$c,e),Ls(n,bv,a),Ls(n,xv,l),r.cropBoxMovable||(Lc(o,$c,e),Ls(o,bv,a),Ls(o,xv,l))}return this}},UG=yo.Cropper,LT=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(oG(this,t),!e||!yG.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Wt({},k8,$s(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return iG(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Ht]){if(r[Ht]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(gG.test(r)){vG.test(r)?this.read(NG(r)):this.clone();return}var l=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=c,l.onerror=c,l.ontimeout=c,l.onprogress=function(){l.getResponseHeader("content-type")!==T8&&l.abort()},l.onload=function(){n.read(l.response)},l.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&_8(r)&&o.crossOrigin&&(r=R8(r)),l.open("GET",r,!0),l.responseType="arraybuffer",l.withCredentials=o.crossOrigin==="use-credentials",l.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=LG(r),l=0,c=1,d=1;if(a>1){this.url=$G(r,T8);var f=BG(a);l=f.rotate,c=f.scaleX,d=f.scaleY}n.rotatable&&(o.rotate=l),n.scalable&&(o.scaleX=c,o.scaleY=d),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&_8(n)&&(o||(o="anonymous"),a=R8(n)),this.crossOrigin=o,this.crossOriginUrl=a;var l=document.createElement("img");o&&(l.crossOrigin=o),l.src=a||n,l.alt=r.alt||"The image to crop",this.image=l,l.onload=this.start.bind(this),l.onerror=this.stop.bind(this),gr(l,v8),r.parentNode.insertBefore(l,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=yo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(yo.navigator.userAgent),a=function(f,g){Wt(r.imageData,{naturalWidth:f,naturalHeight:g,aspectRatio:f/g}),r.initialImageData=Wt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var l=document.createElement("img"),c=document.body||document.documentElement;this.sizingImage=l,l.onload=function(){a(l.width,l.height),o||c.removeChild(l)},l.src=n.src,o||(l.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",c.appendChild(l))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,l=document.createElement("div");l.innerHTML=bG;var c=l.querySelector(".".concat(Ht,"-container")),d=c.querySelector(".".concat(Ht,"-canvas")),f=c.querySelector(".".concat(Ht,"-drag-box")),g=c.querySelector(".".concat(Ht,"-crop-box")),u=g.querySelector(".".concat(Ht,"-face"));this.container=a,this.cropper=c,this.canvas=d,this.dragBox=f,this.cropBox=g,this.viewBox=c.querySelector(".".concat(Ht,"-view-box")),this.face=u,d.appendChild(o),gr(r,Kr),a.insertBefore(c,r.nextSibling),go(o,v8),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,gr(g,Kr),n.guides||gr(g.getElementsByClassName("".concat(Ht,"-dashed")),Kr),n.center||gr(g.getElementsByClassName("".concat(Ht,"-center")),Kr),n.background&&gr(c,"".concat(Ht,"-bg")),n.highlight||gr(u,pG),n.cropBoxMovable&&(gr(u,xv),Lc(u,$c,s2)),n.cropBoxResizable||(gr(g.getElementsByClassName("".concat(Ht,"-line")),Kr),gr(g.getElementsByClassName("".concat(Ht,"-point")),Kr)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),Gr(n.ready)&&Cn(r,S8,n.ready,{once:!0}),Hs(r,S8)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),go(this.element,Kr)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=UG,t}},{key:"setDefaults",value:function(r){Wt(k8,$s(r)&&r)}}])})();Wt(LT.prototype,FG,zG,jG,HG,qG,WG);var aa=function(){return aa=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&N.zoomTo(re)})(P.currentTarget.cropper,O),E&&E(P)}}));k&&k(T)}return function(){var P,N;(N=(P=R.current)===null||P===void 0?void 0:P.cropper)===null||N===void 0||N.destroy()}}),[R]);var M=(function(T){return XG.reduce((function(P,N){var D=P,C=N;return D[C],_1(D,[typeof C=="symbol"?C:C+""])}),T)})(aa(aa({},I),{crossOrigin:d,src:a,alt:x}));return v.createElement("div",{style:l,className:c},v.createElement("img",aa({},M,{style:VG,ref:R})))}));const vi={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},GG={once:"once"},Ir={seconds:"seconds",minutes:"minutes"},M8=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function co(t){return t<10?`0${t}`:`${t}`}const KG={mode:"interval",interval:{period:1,unit:Ir.minutes}};function Fp(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),l=parseInt(o[1],10);for(let c=a;c<=l;c++)r.includes(c===7?0:c)||r.push(c===7?0:c)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function BT(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Ir.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Ir.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Ir.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Ir.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Ir.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Fp(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Ir.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Fp(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${co(parseInt(n.hours,10))}:${co(parseInt(n.minutes,10))}`,weekdays:Fp(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${co(parseInt(n.hours,10))}:${co(parseInt(n.minutes,10))}`,date:`${co(parseInt(n.date,10))}.${co(parseInt(n.months,10))}`}}),o}class Bc extends v.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=BT(r||"* * * * *",!0)||KG;this.state={extended:!1,cron:Bc.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Ir.minutes},intervalBetween:{period:1,unit:Ir.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let l=0;l60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Ir.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Ir.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Ir.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Ir.minutes,n.unit){case Ir.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Ir.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let l=parseInt(o[0],10)||0;l>23&&(l=23),l<0&&(l=0),r=`${a} ${l} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${co(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let l=parseInt(o[1],10)||0;l>59&&(l=59),l<0&&(l=0);let c=parseInt(o[0],10)||0;c>23&&(c=23),c<0&&(c=0);let d=parseInt(a[0],10)||1;d>31&&(d=31),d<1&&(d=1);let f=parseInt(a[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${l} ${c} ${d} ${f} *`}return r}recalcCron(){this.onChange(Bc.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return v.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},v.createElement("h5",null,z.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>v.createElement(pt,{key:M8[n],control:v.createElement(Lr,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),l=a.weekdays.indexOf(n);o.target.checked?l===-1&&a.weekdays.push(n):l!==-1&&a.weekdays.splice(l,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:z.t(M8[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),v.createElement(Ar,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(Ar,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),v.createElement(Ar,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(po,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},v.createElement(ur,{value:"seconds"},z.t("sc_seconds")),")",v.createElement(ur,{value:"minutes"},z.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return v.createElement(ms,{variant:"standard",sx:{...vi.formControl,"&.MuiFormControl-root":vi.formControlMarginRight}},v.createElement(Ar,{variant:"standard",key:"at",label:z.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${co(r.getMonth()+1)}`}return v.createElement(ms,{variant:"standard",style:vi.formControl},v.createElement(Ar,{variant:"standard",key:"date",label:z.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:vi.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return v.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),v.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_hours")),v.createElement(ms,{variant:"standard",style:vi.formControl},v.createElement(Np,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_from")),v.createElement(po,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(ur,{key:`B_${r}`,value:r},`${co(r)}:00`)))),v.createElement(ms,{variant:"standard",style:vi.formControl},v.createElement(Np,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_to")),v.createElement(po,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(ur,{key:`A_${r}`,value:r},`${co(r)}:00`)),!e.timeFrom&&v.createElement(ur,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[v.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return v.createElement("div",{style:vi.mainDiv},v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},v.createElement(Ar,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?z.t("sc_invalid_cron"):iT(this.state.cron,this.props.language||"en")),v.createElement("div",null,v.createElement(ms,{variant:"standard",style:{...vi.formControl,marginLeft:8,marginTop:8}},v.createElement(Np,null,z.t("ra_Repeat")),v.createElement(po,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},v.createElement(ur,{value:"once"},z.t("sc_once")),v.createElement(ur,{value:"interval"},z.t("sc_interval")),v.createElement(ur,{value:"intervalBetween"},z.t("sc_intervalBetween")),v.createElement(ur,{value:"specific"},z.t("sc_specific"))))),this.state.mode===GG.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const YG={dialogPaper:{height:"calc(100% - 96px)"}};class gK extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=wi.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?v.createElement(wL,{title:z.t("ra_Please confirm"),text:z.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return v.createElement(Ho,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":YG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),v.createElement(Uo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),v.createElement(Wo,{style:{height:"100%",overflow:"hidden"}},v.createElement(wi,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(qo,null,!!this.props.clearButton&&v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:v.createElement(Lp,null)},this.props.clear||z.t("ra_Clear")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Di,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(Nd,null)},this.props.cancel||z.t("ra_Cancel"))))}}const JG={dialogPaper:{height:"calc(100% - 96px)"}};class vK extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":BT(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return v.createElement(Ho,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":JG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(Uo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),v.createElement(Wo,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?v.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&v.createElement(v.Fragment,null,v.createElement(Dt,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),v.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},z.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&v.createElement(v.Fragment,null,v.createElement(Dt,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),v.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},z.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&v.createElement(v.Fragment,null,v.createElement(Dt,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),v.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},z.t("sc_cron")))):null,this.state.mode==="simple"&&v.createElement(Bc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()}),this.state.mode==="wizard"&&v.createElement(wr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&v.createElement(wi,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Di,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(Nd,null)},this.props.cancel||z.t("ra_Cancel"))))}}const ta={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class yK extends v.Component{dialogName;filters;constructor(e){super(e),this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const r=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(r)}catch{this.filters={}}e.filters&&(this.filters={...this.filters,...e.filters});let n=this.props.selected||[];typeof n!="object"?n=[n]:n=[...n],n=n.filter(o=>o),this.state={selected:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let e;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?e=[v.createElement("span",{key:"selected"},z.t("ra_Selected")," "),v.createElement("span",{key:"id",style:ta.headerID},this.state.selected)]:e=[v.createElement("span",{key:"selected"},z.t("ra_Selected")," "),v.createElement("span",{key:"id",style:ta.headerID},z.t("%s items",this.state.selected.length))]:e=this.props.title||z.t("ra_Please select file..."),v.createElement(Ho,{onClose:()=>{},maxWidth:!1,style:{zIndex:this.props.zIndex||void 0},sx:{"& .MuiDialog-paper":{...ta.dialog,...ta.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},v.createElement(Uo,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":ta.titleRoot}},e),v.createElement(Wo,{style:{...ta.content,...ta.contentMobile}},v.createElement(aV,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(r,n,o)=>{this.setState({selected:Array.isArray(r)?r:[r]},()=>n&&(!this.props.selectOnlyFolders||o)&&this.handleOk())},t:this.props.t||z.t,lang:this.props.lang||z.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:v.createElement(Di,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(Nd,null)},this.props.cancel||z.t("ra_Cancel"))))}}const QG={dialogPaper:{height:"calc(100% - 96px)"}};class bK extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return v.createElement(Ho,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":QG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(Uo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define CRON...")),v.createElement(Wo,{style:{height:"100%",overflow:"hidden"}},v.createElement(Bc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Di,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(Nd,null)},this.props.cancel||z.t("ra_Cancel"))))}}const ZG={"Sign out":"Sign out"},eK={"Sign out":"Abmelden"},tK={"Sign out":"Выйти"},rK={"Sign out":"sair"},nK={"Sign out":"Afmelden"},oK={"Sign out":"se déconnecter"},iK={"Sign out":"disconnessione"},aK={"Sign out":"desconectar"},sK={"Sign out":"Wyloguj się"},lK={"Sign out":"Вийти"},cK={"Sign out":"登出"},uK="0 8px 17px 0 rgba(0, 0, 0, .2),0 6px 20px 0 rgba(0, 0, 0, .19)",ra={root:t=>({padding:".75rem",[t.breakpoints.up("xl")]:{flex:"0 1 20%"}}),card:{display:"flex",flexDirection:"column",alignItems:"stretch",minHeight:"235px",position:"relative",overflow:"hidden",maxHeight:"235p","&:hover":{overflowY:"auto",boxShadow:uK}},img:{width:120,height:"auto",padding:"2rem .5rem",maxWidth:"100%"},content:{height:"170px",flexGrow:1,overflowY:"hidden"},action:{minHeight:"49px",padding:"16px 24px",justifyContent:"center",fontSize:"1.4rem"},contentGrid:{height:"100%",alignItems:"center"},colorOrange:t=>({color:t.palette.mode==="dark"?"#3399CC":"#164477"})};class Lo extends _.Component{constructor(e){super(e);const r=Lo.createTheme();this.state={theme:r,themeName:Lo.getThemeName(r),themeType:Lo.getThemeType(r),config:null,cards:[]},r.palette.mode==="dark"&&(document.body.style.backgroundColor="#030303"),z.setTranslations({en:ZG,de:eK,ru:tK,pt:rK,nl:nK,fr:oK,it:iK,es:aK,pl:sK,uk:lK,"zh-cn":cK})}componentDidMount(){fetch("config.json").then(e=>e.json()).then(e=>{z.setLanguage(e.systemLang);const r=[];for(let n=0;na.link===e.list[n].link)||r.push({link:e.list[n].link,img:e.list[n].img,name:o+(e.list[n].instance!==void 0?`.${e.list[n].instance}`:""),order:e.list[n].order})}this.setState({config:e,cards:r})})}static createTheme(e){return hL(Je.getThemeName(e))}static getThemeName(e){return e.name}static getThemeType(e){return e.palette.mode}toggleTheme=e=>{const r=this.state.themeName,n=e||Je.toggleTheme(r),o=Lo.createTheme(n);o.palette.mode==="dark"?document.body.style.backgroundColor="#030303":document.body.style.backgroundColor="#f0f0f0",this.setState({theme:o,themeName:n,themeType:Lo.getThemeType(o)})};static onLogout(){window.localStorage.removeItem("refresh_token"),window.localStorage.removeItem("refresh_token_exp"),window.localStorage.removeItem("access_token_exp"),window.sessionStorage.removeItem("refresh_token"),window.sessionStorage.removeItem("refresh_token_exp"),window.sessionStorage.removeItem("access_token_exp"),window.location.href="/logout"}renderCard(e,r){return L.jsx(J1,{size:{xs:12,sm:6,md:4,lg:3,xl:2},sx:Je.getStyle(this.state.theme,ra.root),style:{maxWidth:350,width:"100%"},children:L.jsx(zD,{href:e.link,underline:"none",target:"_self",rel:"noopener noreferrer",children:L.jsxs(MI,{sx:ra.card,children:[L.jsx(BI,{style:ra.content,children:L.jsx(J1,{container:!0,direction:"column",wrap:"nowrap",style:ra.contentGrid,children:L.jsx(WI,{style:ra.img,component:"img",image:e.img})})}),L.jsx(Y1,{}),L.jsxs(DI,{style:ra.action,children:[L.jsx(ft,{sx:ra.colorOrange,style:{flexGrow:1,textAlign:"center"},children:e.name}),L.jsx(cr,{onClick:n=>{n.stopPropagation(),n.preventDefault(),window.open(e.link,e.name)},children:L.jsx(K$,{})})]})]})})},r)}render(){const e=window.innerWidth<600;return L.jsx(qk,{injectFirst:!0,children:L.jsxs(IR,{theme:this.state.theme,children:[L.jsx(AE,{style:{backgroundColor:this.state.theme.palette.mode==="dark"?void 0:"#f0f0f0"},children:L.jsxs(ly,{style:{gap:8},children:[L.jsx("img",{src:"logo.svg",alt:"Logo",style:{height:e?32:48}}),L.jsx("div",{style:{flexGrow:1,textAlign:"center"},children:e?"":"ioBroker.web"}),this.state.config?.authEnabled?e?L.jsx(cr,{onClick:()=>Lo.onLogout(),children:L.jsx(E4,{})}):L.jsx(Vt,{variant:"outlined",startIcon:L.jsx(E4,{}),onClick:()=>Lo.onLogout(),children:z.t("Sign out")}):null,this.state.themeName!=="PT"&&this.state.themeName!=="DX"?L.jsx(rG,{t:z.t,themeName:this.state.themeName,toggleTheme:()=>this.toggleTheme()}):null]})}),L.jsx(rl,{className:this.state.themeType==="dark"?"theme-dark":"theme-light",style:{backgroundColor:this.state.themeType==="dark"?"#080808":"#f0f0f0",display:"flex",flexFlow:"wrap",overflow:"auto",justifyContent:"center",width:"calc(100% - 1rem)",height:"calc(100% - 1rem - 64px)",marginTop:64,overflowY:"auto",padding:"0.5rem"},component:"div",children:this.state.cards.map((r,n)=>this.renderCard(r,n))})]})})}}window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function pK(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const P8=document.getElementById("root");P8&&z7.createRoot(P8).render(L.jsx(Lo,{}));pK()});export default dK(); diff --git a/src-www/build/assets/index-O6PSQUbV.js b/src-www/build/assets/index-O6PSQUbV.js deleted file mode 100644 index a11bdc68..00000000 --- a/src-www/build/assets/index-O6PSQUbV.js +++ /dev/null @@ -1,277 +0,0 @@ -var Mk=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var YY=Mk((yn,bn)=>{function SE(t,e){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var wp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sm={exports:{}},rc={},lm={exports:{}},ut={};var Sw;function Pk(){if(Sw)return ut;Sw=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),u=Symbol.iterator;function m(I){return I===null||typeof I!="object"?null:(I=u&&I[u]||I["@@iterator"],typeof I=="function"?I:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function E(I,z,oe){this.props=I,this.context=z,this.refs=b,this.updater=oe||y}E.prototype.isReactComponent={},E.prototype.setState=function(I,z){if(typeof I!="object"&&typeof I!="function"&&I!=null)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,I,z,"setState")},E.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function k(){}k.prototype=E.prototype;function P(I,z,oe){this.props=I,this.context=z,this.refs=b,this.updater=oe||y}var _=P.prototype=new k;_.constructor=P,w(_,E.prototype),_.isPureReactComponent=!0;var R=Array.isArray,M=Object.prototype.hasOwnProperty,T={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function N(I,z,oe){var ie,re={},ae=null,he=null;if(z!=null)for(ie in z.ref!==void 0&&(he=z.ref),z.key!==void 0&&(ae=""+z.key),z)M.call(z,ie)&&!O.hasOwnProperty(ie)&&(re[ie]=z[ie]);var me=arguments.length-2;if(me===1)re.children=oe;else if(1>>1,z=Q[I];if(0>>1;Io(re,te))aeo(he,re)?(Q[I]=he,Q[ae]=te,I=ae):(Q[I]=re,Q[ie]=te,I=ie);else if(aeo(he,te))Q[I]=he,Q[ae]=te,I=ae;else break e}}return G}function o(Q,G){var te=Q.sortIndex-G.sortIndex;return te!==0?te:Q.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var d=[],f=[],g=1,u=null,m=3,y=!1,w=!1,b=!1,E=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(Q){for(var G=r(f);G!==null;){if(G.callback===null)n(f);else if(G.startTime<=Q)n(f),G.sortIndex=G.expirationTime,e(d,G);else break;G=r(f)}}function R(Q){if(b=!1,_(Q),!w)if(r(d)!==null)w=!0,K(M);else{var G=r(f);G!==null&&ee(R,G.startTime-Q)}}function M(Q,G){w=!1,b&&(b=!1,k(N),N=-1),y=!0;var te=m;try{for(_(G),u=r(d);u!==null&&(!(u.expirationTime>G)||Q&&!L());){var I=u.callback;if(typeof I=="function"){u.callback=null,m=u.priorityLevel;var z=I(u.expirationTime<=G);G=t.unstable_now(),typeof z=="function"?u.callback=z:u===r(d)&&n(d),_(G)}else n(d);u=r(d)}if(u!==null)var oe=!0;else{var ie=r(f);ie!==null&&ee(R,ie.startTime-G),oe=!1}return oe}finally{u=null,m=te,y=!1}}var T=!1,O=null,N=-1,$=5,C=-1;function L(){return!(t.unstable_now()-C<$)}function H(){if(O!==null){var Q=t.unstable_now();C=Q;var G=!0;try{G=O(!0,Q)}finally{G?W():(T=!1,O=null)}}else T=!1}var W;if(typeof P=="function")W=function(){P(H)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,U=X.port2;X.port1.onmessage=H,W=function(){U.postMessage(null)}}else W=function(){E(H,0)};function K(Q){O=Q,T||(T=!0,W())}function ee(Q,G){N=E(function(){Q(t.unstable_now())},G)}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(Q){Q.callback=null},t.unstable_continueExecution=function(){w||y||(w=!0,K(M))},t.unstable_forceFrameRate=function(Q){0>Q||125I?(Q.sortIndex=te,e(f,Q),r(d)===null&&Q===r(f)&&(b?(k(N),N=-1):b=!0,ee(R,te-I))):(Q.sortIndex=z,e(d,Q),w||y||(w=!0,K(M))),Q},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(Q){var G=m;return function(){var te=m;m=G;try{return Q.apply(this,arguments)}finally{m=te}}}})(pm)),pm}var _w;function Nk(){return _w||(_w=1,um.exports=Dk()),um.exports}var Ow;function $k(){if(Ow)return Qr;Ow=1;var t=Oa(),e=Nk();function r(a){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+a,p=1;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,g={},u={};function m(a){return d.call(u,a)?!0:d.call(g,a)?!1:f.test(a)?u[a]=!0:(g[a]=!0,!1)}function y(a,s,p,h){if(p!==null&&p.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return h?!1:p!==null?!p.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function w(a,s,p,h){if(s===null||typeof s>"u"||y(a,s,p,h))return!0;if(h)return!1;if(p!==null)switch(p.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function b(a,s,p,h,x,S,D){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=h,this.attributeNamespace=x,this.mustUseProperty=p,this.propertyName=a,this.type=s,this.sanitizeURL=S,this.removeEmptyString=D}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){E[a]=new b(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var s=a[0];E[s]=new b(s,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){E[a]=new b(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){E[a]=new b(a,2,!1,a,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(a){E[a]=new b(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){E[a]=new b(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){E[a]=new b(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){E[a]=new b(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){E[a]=new b(a,5,!1,a.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function P(a){return a[1].toUpperCase()}"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(a){var s=a.replace(k,P);E[s]=new b(s,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var s=a.replace(k,P);E[s]=new b(s,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var s=a.replace(k,P);E[s]=new b(s,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){E[a]=new b(a,1,!1,a.toLowerCase(),null,!1,!1)}),E.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){E[a]=new b(a,1,!1,a.toLowerCase(),null,!0,!0)});function _(a,s,p,h){var x=E.hasOwnProperty(s)?E[s]:null;(x!==null?x.type!==0:h||!(2F||x[D]!==S[F]){var q=` -`+x[D].replace(" at new "," at ");return a.displayName&&q.includes("")&&(q=q.replace("",a.displayName)),q}while(1<=D&&0<=F);break}}}finally{oe=!1,Error.prepareStackTrace=p}return(a=a?a.displayName||a.name:"")?z(a):""}function re(a){switch(a.tag){case 5:return z(a.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return a=ie(a.type,!1),a;case 11:return a=ie(a.type.render,!1),a;case 1:return a=ie(a.type,!0),a;default:return""}}function ae(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case O:return"Fragment";case T:return"Portal";case $:return"Profiler";case N:return"StrictMode";case W:return"Suspense";case X:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case L:return(a.displayName||"Context")+".Consumer";case C:return(a._context.displayName||"Context")+".Provider";case H:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case U:return s=a.displayName||null,s!==null?s:ae(a.type)||"Memo";case K:s=a._payload,a=a._init;try{return ae(a(s))}catch{}}return null}function he(a){var s=a.type;switch(a.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=s.render,a=a.displayName||a.name||"",s.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ae(s);case 8:return s===N?"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(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function me(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function ve(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function xe(a){var s=ve(a)?"checked":"value",p=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),h=""+a[s];if(!a.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,S=p.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return x.call(this)},set:function(D){h=""+D,S.call(this,D)}}),Object.defineProperty(a,s,{enumerable:p.enumerable}),{getValue:function(){return h},setValue:function(D){h=""+D},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Le(a){a._valueTracker||(a._valueTracker=xe(a))}function Ae(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var p=s.getValue(),h="";return a&&(h=ve(a)?a.checked?"true":"false":a.value),a=h,a!==p?(s.setValue(a),!0):!1}function nt(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Me(a,s){var p=s.checked;return te({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??a._wrapperState.initialChecked})}function _e(a,s){var p=s.defaultValue==null?"":s.defaultValue,h=s.checked!=null?s.checked:s.defaultChecked;p=me(s.value!=null?s.value:p),a._wrapperState={initialChecked:h,initialValue:p,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function mt(a,s){s=s.checked,s!=null&&_(a,"checked",s,!1)}function Ee(a,s){mt(a,s);var p=me(s.value),h=s.type;if(p!=null)h==="number"?(p===0&&a.value===""||a.value!=p)&&(a.value=""+p):a.value!==""+p&&(a.value=""+p);else if(h==="submit"||h==="reset"){a.removeAttribute("value");return}s.hasOwnProperty("value")?it(a,s.type,p):s.hasOwnProperty("defaultValue")&&it(a,s.type,me(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(a.defaultChecked=!!s.defaultChecked)}function Ie(a,s,p){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var h=s.type;if(!(h!=="submit"&&h!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+a._wrapperState.initialValue,p||s===a.value||(a.value=s),a.defaultValue=s}p=a.name,p!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,p!==""&&(a.name=p)}function it(a,s,p){(s!=="number"||nt(a.ownerDocument)!==a)&&(p==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+p&&(a.defaultValue=""+p))}var Ze=Array.isArray;function Xe(a,s,p,h){if(a=a.options,s){s={};for(var x=0;x"+s.valueOf().toString()+"",s=Be.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;s.firstChild;)a.appendChild(s.firstChild)}});function yt(a,s){if(s){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=s;return}}a.textContent=s}var Fe={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},Ht=["Webkit","ms","Moz","O"];Object.keys(Fe).forEach(function(a){Ht.forEach(function(s){s=s+a.charAt(0).toUpperCase()+a.substring(1),Fe[s]=Fe[a]})});function St(a,s,p){return s==null||typeof s=="boolean"||s===""?"":p||typeof s!="number"||s===0||Fe.hasOwnProperty(a)&&Fe[a]?(""+s).trim():s+"px"}function Ce(a,s){a=a.style;for(var p in s)if(s.hasOwnProperty(p)){var h=p.indexOf("--")===0,x=St(p,s[p],h);p==="float"&&(p="cssFloat"),h?a.setProperty(p,x):a[p]=x}}var lt=te({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 Et(a,s){if(s){if(lt[a]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,a));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function gr(a,s){if(a.indexOf("-")===-1)return typeof s.is=="string";switch(a){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 vr=null;function Ur(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Do=null,oo=null,Cn=null;function Ba(a){if(a=jl(a)){if(typeof Do!="function")throw Error(r(280));var s=a.stateNode;s&&(s=$u(s),Do(a.stateNode,a.type,s))}}function Fa(a){oo?Cn?Cn.push(a):Cn=[a]:oo=a}function za(){if(oo){var a=oo,s=Cn;if(Cn=oo=null,Ba(a),s)for(a=0;a>>=0,a===0?32:31-(X9(a)/V9|0)|0}var yu=64,bu=4194304;function El(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function xu(a,s){var p=a.pendingLanes;if(p===0)return 0;var h=0,x=a.suspendedLanes,S=a.pingedLanes,D=p&268435455;if(D!==0){var F=D&~x;F!==0?h=El(F):(S&=D,S!==0&&(h=El(S)))}else D=p&~x,D!==0?h=El(D):S!==0&&(h=El(S));if(h===0)return 0;if(s!==0&&s!==h&&(s&x)===0&&(x=h&-h,S=s&-s,x>=S||x===16&&(S&4194240)!==0))return s;if((h&4)!==0&&(h|=p&16),s=a.entangledLanes,s!==0)for(a=a.entanglements,s&=h;0p;p++)s.push(a);return s}function Cl(a,s,p){a.pendingLanes|=s,s!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,s=31-Hn(s),a[s]=p}function J9(a,s){var p=a.pendingLanes&~s;a.pendingLanes=s,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=s,a.mutableReadLanes&=s,a.entangledLanes&=s,s=a.entanglements;var h=a.eventTimes;for(a=a.expirationTimes;0=Al),mb=" ",gb=!1;function vb(a,s){switch(a){case"keyup":return T7.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yb(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ua=!1;function _7(a,s){switch(a){case"compositionend":return yb(s);case"keypress":return s.which!==32?null:(gb=!0,mb);case"textInput":return a=s.data,a===mb&&gb?null:a;default:return null}}function O7(a,s){if(Ua)return a==="compositionend"||!jf&&vb(a,s)?(a=cb(),Tu=Nf=pi=null,Ua=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:p,offset:s-a};a=h}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Tb(p)}}function _b(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?_b(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function Ob(){for(var a=window,s=nt();s instanceof a.HTMLIFrameElement;){try{var p=typeof s.contentWindow.location.href=="string"}catch{p=!1}if(p)a=s.contentWindow;else break;s=nt(a.document)}return s}function Wf(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function L7(a){var s=Ob(),p=a.focusedElem,h=a.selectionRange;if(s!==p&&p&&p.ownerDocument&&_b(p.ownerDocument.documentElement,p)){if(h!==null&&Wf(p)){if(s=h.start,a=h.end,a===void 0&&(a=s),"selectionStart"in p)p.selectionStart=s,p.selectionEnd=Math.min(a,p.value.length);else if(a=(s=p.ownerDocument||document)&&s.defaultView||window,a.getSelection){a=a.getSelection();var x=p.textContent.length,S=Math.min(h.start,x);h=h.end===void 0?S:Math.min(h.end,x),!a.extend&&S>h&&(x=h,h=S,S=x),x=kb(p,S);var D=kb(p,h);x&&D&&(a.rangeCount!==1||a.anchorNode!==x.node||a.anchorOffset!==x.offset||a.focusNode!==D.node||a.focusOffset!==D.offset)&&(s=s.createRange(),s.setStart(x.node,x.offset),a.removeAllRanges(),S>h?(a.addRange(s),a.extend(D.node,D.offset)):(s.setEnd(D.node,D.offset),a.addRange(s)))}}for(s=[],a=p;a=a.parentNode;)a.nodeType===1&&s.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,Xa=null,Uf=null,$l=null,Xf=!1;function Rb(a,s,p){var h=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Xf||Xa==null||Xa!==nt(h)||(h=Xa,"selectionStart"in h&&Wf(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),$l&&Nl($l,h)||($l=h,h=Iu(Uf,"onSelect"),0Ja||(a.current=oh[Ja],oh[Ja]=null,Ja--)}function $t(a,s){Ja++,oh[Ja]=a.current,a.current=s}var mi={},Pr=hi(mi),Vr=hi(!1),Yi=mi;function Qa(a,s){var p=a.type.contextTypes;if(!p)return mi;var h=a.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===s)return h.__reactInternalMemoizedMaskedChildContext;var x={},S;for(S in p)x[S]=s[S];return h&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=s,a.__reactInternalMemoizedMaskedChildContext=x),x}function Gr(a){return a=a.childContextTypes,a!=null}function Lu(){Ft(Vr),Ft(Pr)}function Wb(a,s,p){if(Pr.current!==mi)throw Error(r(168));$t(Pr,s),$t(Vr,p)}function Ub(a,s,p){var h=a.stateNode;if(s=s.childContextTypes,typeof h.getChildContext!="function")return p;h=h.getChildContext();for(var x in h)if(!(x in s))throw Error(r(108,he(a)||"Unknown",x));return te({},p,h)}function Bu(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||mi,Yi=Pr.current,$t(Pr,a),$t(Vr,Vr.current),!0}function Xb(a,s,p){var h=a.stateNode;if(!h)throw Error(r(169));p?(a=Ub(a,s,Yi),h.__reactInternalMemoizedMergedChildContext=a,Ft(Vr),Ft(Pr),$t(Pr,a)):Ft(Vr),$t(Vr,p)}var $o=null,Fu=!1,ih=!1;function Vb(a){$o===null?$o=[a]:$o.push(a)}function K7(a){Fu=!0,Vb(a)}function gi(){if(!ih&&$o!==null){ih=!0;var a=0,s=Pt;try{var p=$o;for(Pt=1;a>=D,x-=D,Lo=1<<32-Hn(s)+x|p<et?(xr=Ge,Ge=null):xr=Ge.sibling;var wt=ue(Y,Ge,J[et],ge);if(wt===null){Ge===null&&(Ge=xr);break}a&&Ge&&wt.alternate===null&&s(Y,Ge),V=S(wt,V,et),Ve===null?Ne=wt:Ve.sibling=wt,Ve=wt,Ge=xr}if(et===J.length)return p(Y,Ge),qt&&Qi(Y,et),Ne;if(Ge===null){for(;etet?(xr=Ge,Ge=null):xr=Ge.sibling;var Ti=ue(Y,Ge,wt.value,ge);if(Ti===null){Ge===null&&(Ge=xr);break}a&&Ge&&Ti.alternate===null&&s(Y,Ge),V=S(Ti,V,et),Ve===null?Ne=Ti:Ve.sibling=Ti,Ve=Ti,Ge=xr}if(wt.done)return p(Y,Ge),qt&&Qi(Y,et),Ne;if(Ge===null){for(;!wt.done;et++,wt=J.next())wt=fe(Y,wt.value,ge),wt!==null&&(V=S(wt,V,et),Ve===null?Ne=wt:Ve.sibling=wt,Ve=wt);return qt&&Qi(Y,et),Ne}for(Ge=h(Y,Ge);!wt.done;et++,wt=J.next())wt=ke(Ge,Y,et,wt.value,ge),wt!==null&&(a&&wt.alternate!==null&&Ge.delete(wt.key===null?et:wt.key),V=S(wt,V,et),Ve===null?Ne=wt:Ve.sibling=wt,Ve=wt);return a&&Ge.forEach(function(Rk){return s(Y,Rk)}),qt&&Qi(Y,et),Ne}function or(Y,V,J,ge){if(typeof J=="object"&&J!==null&&J.type===O&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case M:e:{for(var Ne=J.key,Ve=V;Ve!==null;){if(Ve.key===Ne){if(Ne=J.type,Ne===O){if(Ve.tag===7){p(Y,Ve.sibling),V=x(Ve,J.props.children),V.return=Y,Y=V;break e}}else if(Ve.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===K&&Zb(Ne)===Ve.type){p(Y,Ve.sibling),V=x(Ve,J.props),V.ref=Hl(Y,Ve,J),V.return=Y,Y=V;break e}p(Y,Ve);break}else s(Y,Ve);Ve=Ve.sibling}J.type===O?(V=aa(J.props.children,Y.mode,ge,J.key),V.return=Y,Y=V):(ge=fp(J.type,J.key,J.props,null,Y.mode,ge),ge.ref=Hl(Y,V,J),ge.return=Y,Y=ge)}return D(Y);case T:e:{for(Ve=J.key;V!==null;){if(V.key===Ve)if(V.tag===4&&V.stateNode.containerInfo===J.containerInfo&&V.stateNode.implementation===J.implementation){p(Y,V.sibling),V=x(V,J.children||[]),V.return=Y,Y=V;break e}else{p(Y,V);break}else s(Y,V);V=V.sibling}V=rm(J,Y.mode,ge),V.return=Y,Y=V}return D(Y);case K:return Ve=J._init,or(Y,V,Ve(J._payload),ge)}if(Ze(J))return Pe(Y,V,J,ge);if(G(J))return De(Y,V,J,ge);qu(Y,J)}return typeof J=="string"&&J!==""||typeof J=="number"?(J=""+J,V!==null&&V.tag===6?(p(Y,V.sibling),V=x(V,J),V.return=Y,Y=V):(p(Y,V),V=tm(J,Y.mode,ge),V.return=Y,Y=V),D(Y)):p(Y,V)}return or}var rs=ex(!0),tx=ex(!1),Wu=hi(null),Uu=null,ns=null,ph=null;function dh(){ph=ns=Uu=null}function fh(a){var s=Wu.current;Ft(Wu),a._currentValue=s}function hh(a,s,p){for(;a!==null;){var h=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),a===p)break;a=a.return}}function os(a,s){Uu=a,ph=ns=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&s)!==0&&(Kr=!0),a.firstContext=null)}function On(a){var s=a._currentValue;if(ph!==a)if(a={context:a,memoizedValue:s,next:null},ns===null){if(Uu===null)throw Error(r(308));ns=a,Uu.dependencies={lanes:0,firstContext:a}}else ns=ns.next=a;return s}var Zi=null;function mh(a){Zi===null?Zi=[a]:Zi.push(a)}function rx(a,s,p,h){var x=s.interleaved;return x===null?(p.next=p,mh(s)):(p.next=x.next,x.next=p),s.interleaved=p,Fo(a,h)}function Fo(a,s){a.lanes|=s;var p=a.alternate;for(p!==null&&(p.lanes|=s),p=a,a=a.return;a!==null;)a.childLanes|=s,p=a.alternate,p!==null&&(p.childLanes|=s),p=a,a=a.return;return p.tag===3?p.stateNode:null}var vi=!1;function gh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nx(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function zo(a,s){return{eventTime:a,lane:s,tag:0,payload:null,callback:null,next:null}}function yi(a,s,p){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(xt&2)!==0){var x=h.pending;return x===null?s.next=s:(s.next=x.next,x.next=s),h.pending=s,Fo(a,p)}return x=h.interleaved,x===null?(s.next=s,mh(h)):(s.next=x.next,x.next=s),h.interleaved=s,Fo(a,p)}function Xu(a,s,p){if(s=s.updateQueue,s!==null&&(s=s.shared,(p&4194240)!==0)){var h=s.lanes;h&=a.pendingLanes,p|=h,s.lanes=p,Mf(a,p)}}function ox(a,s){var p=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,p===h)){var x=null,S=null;if(p=p.firstBaseUpdate,p!==null){do{var D={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};S===null?x=S=D:S=S.next=D,p=p.next}while(p!==null);S===null?x=S=s:S=S.next=s}else x=S=s;p={baseState:h.baseState,firstBaseUpdate:x,lastBaseUpdate:S,shared:h.shared,effects:h.effects},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=s:a.next=s,p.lastBaseUpdate=s}function Vu(a,s,p,h){var x=a.updateQueue;vi=!1;var S=x.firstBaseUpdate,D=x.lastBaseUpdate,F=x.shared.pending;if(F!==null){x.shared.pending=null;var q=F,Z=q.next;q.next=null,D===null?S=Z:D.next=Z,D=q;var pe=a.alternate;pe!==null&&(pe=pe.updateQueue,F=pe.lastBaseUpdate,F!==D&&(F===null?pe.firstBaseUpdate=Z:F.next=Z,pe.lastBaseUpdate=q))}if(S!==null){var fe=x.baseState;D=0,pe=Z=q=null,F=S;do{var ue=F.lane,ke=F.eventTime;if((h&ue)===ue){pe!==null&&(pe=pe.next={eventTime:ke,lane:0,tag:F.tag,payload:F.payload,callback:F.callback,next:null});e:{var Pe=a,De=F;switch(ue=s,ke=p,De.tag){case 1:if(Pe=De.payload,typeof Pe=="function"){fe=Pe.call(ke,fe,ue);break e}fe=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=De.payload,ue=typeof Pe=="function"?Pe.call(ke,fe,ue):Pe,ue==null)break e;fe=te({},fe,ue);break e;case 2:vi=!0}}F.callback!==null&&F.lane!==0&&(a.flags|=64,ue=x.effects,ue===null?x.effects=[F]:ue.push(F))}else ke={eventTime:ke,lane:ue,tag:F.tag,payload:F.payload,callback:F.callback,next:null},pe===null?(Z=pe=ke,q=fe):pe=pe.next=ke,D|=ue;if(F=F.next,F===null){if(F=x.shared.pending,F===null)break;ue=F,F=ue.next,ue.next=null,x.lastBaseUpdate=ue,x.shared.pending=null}}while(!0);if(pe===null&&(q=fe),x.baseState=q,x.firstBaseUpdate=Z,x.lastBaseUpdate=pe,s=x.shared.interleaved,s!==null){x=s;do D|=x.lane,x=x.next;while(x!==s)}else S===null&&(x.shared.lanes=0);ra|=D,a.lanes=D,a.memoizedState=fe}}function ix(a,s,p){if(a=s.effects,s.effects=null,a!==null)for(s=0;sp?p:4,a(!0);var h=wh.transition;wh.transition={};try{a(!1),s()}finally{Pt=p,wh.transition=h}}function Cx(){return Rn().memoizedState}function Z7(a,s,p){var h=Si(a);if(p={lane:h,action:p,hasEagerState:!1,eagerState:null,next:null},Tx(a))kx(s,p);else if(p=rx(a,s,p,h),p!==null){var x=qr();Gn(p,a,h,x),_x(p,s,h)}}function ek(a,s,p){var h=Si(a),x={lane:h,action:p,hasEagerState:!1,eagerState:null,next:null};if(Tx(a))kx(s,x);else{var S=a.alternate;if(a.lanes===0&&(S===null||S.lanes===0)&&(S=s.lastRenderedReducer,S!==null))try{var D=s.lastRenderedState,F=S(D,p);if(x.hasEagerState=!0,x.eagerState=F,qn(F,D)){var q=s.interleaved;q===null?(x.next=x,mh(s)):(x.next=q.next,q.next=x),s.interleaved=x;return}}catch{}p=rx(a,s,x,h),p!==null&&(x=qr(),Gn(p,a,h,x),_x(p,s,h))}}function Tx(a){var s=a.alternate;return a===Kt||s!==null&&s===Kt}function kx(a,s){Xl=Yu=!0;var p=a.pending;p===null?s.next=s:(s.next=p.next,p.next=s),a.pending=s}function _x(a,s,p){if((p&4194240)!==0){var h=s.lanes;h&=a.pendingLanes,p|=h,s.lanes=p,Mf(a,p)}}var Zu={readContext:On,useCallback:Ar,useContext:Ar,useEffect:Ar,useImperativeHandle:Ar,useInsertionEffect:Ar,useLayoutEffect:Ar,useMemo:Ar,useReducer:Ar,useRef:Ar,useState:Ar,useDebugValue:Ar,useDeferredValue:Ar,useTransition:Ar,useMutableSource:Ar,useSyncExternalStore:Ar,useId:Ar,unstable_isNewReconciler:!1},tk={readContext:On,useCallback:function(a,s){return co().memoizedState=[a,s===void 0?null:s],a},useContext:On,useEffect:gx,useImperativeHandle:function(a,s,p){return p=p!=null?p.concat([a]):null,Ju(4194308,4,bx.bind(null,s,a),p)},useLayoutEffect:function(a,s){return Ju(4194308,4,a,s)},useInsertionEffect:function(a,s){return Ju(4,2,a,s)},useMemo:function(a,s){var p=co();return s=s===void 0?null:s,a=a(),p.memoizedState=[a,s],a},useReducer:function(a,s,p){var h=co();return s=p!==void 0?p(s):s,h.memoizedState=h.baseState=s,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:s},h.queue=a,a=a.dispatch=Z7.bind(null,Kt,a),[h.memoizedState,a]},useRef:function(a){var s=co();return a={current:a},s.memoizedState=a},useState:hx,useDebugValue:Oh,useDeferredValue:function(a){return co().memoizedState=a},useTransition:function(){var a=hx(!1),s=a[0];return a=Q7.bind(null,a[1]),co().memoizedState=a,[s,a]},useMutableSource:function(){},useSyncExternalStore:function(a,s,p){var h=Kt,x=co();if(qt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=s(),br===null)throw Error(r(349));(ta&30)!==0||cx(h,s,p)}x.memoizedState=p;var S={value:p,getSnapshot:s};return x.queue=S,gx(px.bind(null,h,S,a),[a]),h.flags|=2048,Kl(9,ux.bind(null,h,S,p,s),void 0,null),p},useId:function(){var a=co(),s=br.identifierPrefix;if(qt){var p=Bo,h=Lo;p=(h&~(1<<32-Hn(h)-1)).toString(32)+p,s=":"+s+"R"+p,p=Vl++,0<\/script>",a=a.removeChild(a.firstChild)):typeof h.is=="string"?a=D.createElement(p,{is:h.is}):(a=D.createElement(p),p==="select"&&(D=a,h.multiple?D.multiple=!0:h.size&&(D.size=h.size))):a=D.createElementNS(a,p),a[so]=s,a[zl]=h,Vx(a,s,!1,!1),s.stateNode=a;e:{switch(D=gr(p,h),p){case"dialog":Bt("cancel",a),Bt("close",a),x=h;break;case"iframe":case"object":case"embed":Bt("load",a),x=h;break;case"video":case"audio":for(x=0;xcs&&(s.flags|=128,h=!0,Yl(S,!1),s.lanes=4194304)}else{if(!h)if(a=Gu(D),a!==null){if(s.flags|=128,h=!0,p=a.updateQueue,p!==null&&(s.updateQueue=p,s.flags|=4),Yl(S,!0),S.tail===null&&S.tailMode==="hidden"&&!D.alternate&&!qt)return Ir(s),null}else 2*nr()-S.renderingStartTime>cs&&p!==1073741824&&(s.flags|=128,h=!0,Yl(S,!1),s.lanes=4194304);S.isBackwards?(D.sibling=s.child,s.child=D):(p=S.last,p!==null?p.sibling=D:s.child=D,S.last=D)}return S.tail!==null?(s=S.tail,S.rendering=s,S.tail=s.sibling,S.renderingStartTime=nr(),s.sibling=null,p=Gt.current,$t(Gt,h?p&1|2:p&1),s):(Ir(s),null);case 22:case 23:return Qh(),h=s.memoizedState!==null,a!==null&&a.memoizedState!==null!==h&&(s.flags|=8192),h&&(s.mode&1)!==0?(mn&1073741824)!==0&&(Ir(s),s.subtreeFlags&6&&(s.flags|=8192)):Ir(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function ck(a,s){switch(sh(s),s.tag){case 1:return Gr(s.type)&&Lu(),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return is(),Ft(Vr),Ft(Pr),xh(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 5:return yh(s),null;case 13:if(Ft(Gt),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));ts()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Ft(Gt),null;case 4:return is(),null;case 10:return fh(s.type._context),null;case 22:case 23:return Qh(),null;case 24:return null;default:return null}}var np=!1,Dr=!1,uk=typeof WeakSet=="function"?WeakSet:Set,Re=null;function ss(a,s){var p=a.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(h){Qt(a,s,h)}else p.current=null}function zh(a,s,p){try{p()}catch(h){Qt(a,s,h)}}var Yx=!1;function pk(a,s){if(Qf=Eu,a=Ob(),Wf(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else e:{p=(p=a.ownerDocument)&&p.defaultView||window;var h=p.getSelection&&p.getSelection();if(h&&h.rangeCount!==0){p=h.anchorNode;var x=h.anchorOffset,S=h.focusNode;h=h.focusOffset;try{p.nodeType,S.nodeType}catch{p=null;break e}var D=0,F=-1,q=-1,Z=0,pe=0,fe=a,ue=null;t:for(;;){for(var ke;fe!==p||x!==0&&fe.nodeType!==3||(F=D+x),fe!==S||h!==0&&fe.nodeType!==3||(q=D+h),fe.nodeType===3&&(D+=fe.nodeValue.length),(ke=fe.firstChild)!==null;)ue=fe,fe=ke;for(;;){if(fe===a)break t;if(ue===p&&++Z===x&&(F=D),ue===S&&++pe===h&&(q=D),(ke=fe.nextSibling)!==null)break;fe=ue,ue=fe.parentNode}fe=ke}p=F===-1||q===-1?null:{start:F,end:q}}else p=null}p=p||{start:0,end:0}}else p=null;for(Zf={focusedElem:a,selectionRange:p},Eu=!1,Re=s;Re!==null;)if(s=Re,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,Re=a;else for(;Re!==null;){s=Re;try{var Pe=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(Pe!==null){var De=Pe.memoizedProps,or=Pe.memoizedState,Y=s.stateNode,V=Y.getSnapshotBeforeUpdate(s.elementType===s.type?De:Un(s.type,De),or);Y.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var J=s.stateNode.containerInfo;J.nodeType===1?J.textContent="":J.nodeType===9&&J.documentElement&&J.removeChild(J.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ge){Qt(s,s.return,ge)}if(a=s.sibling,a!==null){a.return=s.return,Re=a;break}Re=s.return}return Pe=Yx,Yx=!1,Pe}function Jl(a,s,p){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var x=h=h.next;do{if((x.tag&a)===a){var S=x.destroy;x.destroy=void 0,S!==void 0&&zh(s,p,S)}x=x.next}while(x!==h)}}function op(a,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var p=s=s.next;do{if((p.tag&a)===a){var h=p.create;p.destroy=h()}p=p.next}while(p!==s)}}function jh(a){var s=a.ref;if(s!==null){var p=a.stateNode;a.tag,a=p,typeof s=="function"?s(a):s.current=a}}function Jx(a){var s=a.alternate;s!==null&&(a.alternate=null,Jx(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&(delete s[so],delete s[zl],delete s[nh],delete s[V7],delete s[G7])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Qx(a){return a.tag===5||a.tag===3||a.tag===4}function Zx(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Qx(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Hh(a,s,p){var h=a.tag;if(h===5||h===6)a=a.stateNode,s?p.nodeType===8?p.parentNode.insertBefore(a,s):p.insertBefore(a,s):(p.nodeType===8?(s=p.parentNode,s.insertBefore(a,p)):(s=p,s.appendChild(a)),p=p._reactRootContainer,p!=null||s.onclick!==null||(s.onclick=Nu));else if(h!==4&&(a=a.child,a!==null))for(Hh(a,s,p),a=a.sibling;a!==null;)Hh(a,s,p),a=a.sibling}function qh(a,s,p){var h=a.tag;if(h===5||h===6)a=a.stateNode,s?p.insertBefore(a,s):p.appendChild(a);else if(h!==4&&(a=a.child,a!==null))for(qh(a,s,p),a=a.sibling;a!==null;)qh(a,s,p),a=a.sibling}var Cr=null,Xn=!1;function bi(a,s,p){for(p=p.child;p!==null;)ew(a,s,p),p=p.sibling}function ew(a,s,p){if(ao&&typeof ao.onCommitFiberUnmount=="function")try{ao.onCommitFiberUnmount(vu,p)}catch{}switch(p.tag){case 5:Dr||ss(p,s);case 6:var h=Cr,x=Xn;Cr=null,bi(a,s,p),Cr=h,Xn=x,Cr!==null&&(Xn?(a=Cr,p=p.stateNode,a.nodeType===8?a.parentNode.removeChild(p):a.removeChild(p)):Cr.removeChild(p.stateNode));break;case 18:Cr!==null&&(Xn?(a=Cr,p=p.stateNode,a.nodeType===8?rh(a.parentNode,p):a.nodeType===1&&rh(a,p),Rl(a)):rh(Cr,p.stateNode));break;case 4:h=Cr,x=Xn,Cr=p.stateNode.containerInfo,Xn=!0,bi(a,s,p),Cr=h,Xn=x;break;case 0:case 11:case 14:case 15:if(!Dr&&(h=p.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){x=h=h.next;do{var S=x,D=S.destroy;S=S.tag,D!==void 0&&((S&2)!==0||(S&4)!==0)&&zh(p,s,D),x=x.next}while(x!==h)}bi(a,s,p);break;case 1:if(!Dr&&(ss(p,s),h=p.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=p.memoizedProps,h.state=p.memoizedState,h.componentWillUnmount()}catch(F){Qt(p,s,F)}bi(a,s,p);break;case 21:bi(a,s,p);break;case 22:p.mode&1?(Dr=(h=Dr)||p.memoizedState!==null,bi(a,s,p),Dr=h):bi(a,s,p);break;default:bi(a,s,p)}}function tw(a){var s=a.updateQueue;if(s!==null){a.updateQueue=null;var p=a.stateNode;p===null&&(p=a.stateNode=new uk),s.forEach(function(h){var x=xk.bind(null,a,h);p.has(h)||(p.add(h),h.then(x,x))})}}function Vn(a,s){var p=s.deletions;if(p!==null)for(var h=0;hx&&(x=D),h&=~S}if(h=x,h=nr()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*fk(h/1960))-h,10a?16:a,wi===null)var h=!1;else{if(a=wi,wi=null,cp=0,(xt&6)!==0)throw Error(r(331));var x=xt;for(xt|=4,Re=a.current;Re!==null;){var S=Re,D=S.child;if((Re.flags&16)!==0){var F=S.deletions;if(F!==null){for(var q=0;qnr()-Xh?oa(a,0):Uh|=p),Jr(a,s)}function hw(a,s){s===0&&((a.mode&1)===0?s=1:(s=bu,bu<<=1,(bu&130023424)===0&&(bu=4194304)));var p=qr();a=Fo(a,s),a!==null&&(Cl(a,s,p),Jr(a,p))}function bk(a){var s=a.memoizedState,p=0;s!==null&&(p=s.retryLane),hw(a,p)}function xk(a,s){var p=0;switch(a.tag){case 13:var h=a.stateNode,x=a.memoizedState;x!==null&&(p=x.retryLane);break;case 19:h=a.stateNode;break;default:throw Error(r(314))}h!==null&&h.delete(s),hw(a,p)}var mw;mw=function(a,s,p){if(a!==null)if(a.memoizedProps!==s.pendingProps||Vr.current)Kr=!0;else{if((a.lanes&p)===0&&(s.flags&128)===0)return Kr=!1,sk(a,s,p);Kr=(a.flags&131072)!==0}else Kr=!1,qt&&(s.flags&1048576)!==0&&Gb(s,ju,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;rp(a,s),a=s.pendingProps;var x=Qa(s,Pr.current);os(s,p),x=Eh(null,s,h,a,x,p);var S=Ch();return s.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Gr(h)?(S=!0,Bu(s)):S=!1,s.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,gh(s),x.updater=ep,s.stateNode=x,x._reactInternals=s,Mh(s,h,a,p),s=Dh(null,s,h,!0,S,p)):(s.tag=0,qt&&S&&ah(s),Hr(null,s,x,p),s=s.child),s;case 16:h=s.elementType;e:{switch(rp(a,s),a=s.pendingProps,x=h._init,h=x(h._payload),s.type=h,x=s.tag=Sk(h),a=Un(h,a),x){case 0:s=Ih(null,s,h,a,p);break e;case 1:s=jx(null,s,h,a,p);break e;case 11:s=$x(null,s,h,a,p);break e;case 14:s=Lx(null,s,h,Un(h.type,a),p);break e}throw Error(r(306,h,""))}return s;case 0:return h=s.type,x=s.pendingProps,x=s.elementType===h?x:Un(h,x),Ih(a,s,h,x,p);case 1:return h=s.type,x=s.pendingProps,x=s.elementType===h?x:Un(h,x),jx(a,s,h,x,p);case 3:e:{if(Hx(s),a===null)throw Error(r(387));h=s.pendingProps,S=s.memoizedState,x=S.element,nx(a,s),Vu(s,h,null,p);var D=s.memoizedState;if(h=D.element,S.isDehydrated)if(S={element:h,isDehydrated:!1,cache:D.cache,pendingSuspenseBoundaries:D.pendingSuspenseBoundaries,transitions:D.transitions},s.updateQueue.baseState=S,s.memoizedState=S,s.flags&256){x=as(Error(r(423)),s),s=qx(a,s,h,p,x);break e}else if(h!==x){x=as(Error(r(424)),s),s=qx(a,s,h,p,x);break e}else for(hn=fi(s.stateNode.containerInfo.firstChild),fn=s,qt=!0,Wn=null,p=tx(s,null,h,p),s.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(ts(),h===x){s=jo(a,s,p);break e}Hr(a,s,h,p)}s=s.child}return s;case 5:return ax(s),a===null&&ch(s),h=s.type,x=s.pendingProps,S=a!==null?a.memoizedProps:null,D=x.children,eh(h,x)?D=null:S!==null&&eh(h,S)&&(s.flags|=32),zx(a,s),Hr(a,s,D,p),s.child;case 6:return a===null&&ch(s),null;case 13:return Wx(a,s,p);case 4:return vh(s,s.stateNode.containerInfo),h=s.pendingProps,a===null?s.child=rs(s,null,h,p):Hr(a,s,h,p),s.child;case 11:return h=s.type,x=s.pendingProps,x=s.elementType===h?x:Un(h,x),$x(a,s,h,x,p);case 7:return Hr(a,s,s.pendingProps,p),s.child;case 8:return Hr(a,s,s.pendingProps.children,p),s.child;case 12:return Hr(a,s,s.pendingProps.children,p),s.child;case 10:e:{if(h=s.type._context,x=s.pendingProps,S=s.memoizedProps,D=x.value,$t(Wu,h._currentValue),h._currentValue=D,S!==null)if(qn(S.value,D)){if(S.children===x.children&&!Vr.current){s=jo(a,s,p);break e}}else for(S=s.child,S!==null&&(S.return=s);S!==null;){var F=S.dependencies;if(F!==null){D=S.child;for(var q=F.firstContext;q!==null;){if(q.context===h){if(S.tag===1){q=zo(-1,p&-p),q.tag=2;var Z=S.updateQueue;if(Z!==null){Z=Z.shared;var pe=Z.pending;pe===null?q.next=q:(q.next=pe.next,pe.next=q),Z.pending=q}}S.lanes|=p,q=S.alternate,q!==null&&(q.lanes|=p),hh(S.return,p,s),F.lanes|=p;break}q=q.next}}else if(S.tag===10)D=S.type===s.type?null:S.child;else if(S.tag===18){if(D=S.return,D===null)throw Error(r(341));D.lanes|=p,F=D.alternate,F!==null&&(F.lanes|=p),hh(D,p,s),D=S.sibling}else D=S.child;if(D!==null)D.return=S;else for(D=S;D!==null;){if(D===s){D=null;break}if(S=D.sibling,S!==null){S.return=D.return,D=S;break}D=D.return}S=D}Hr(a,s,x.children,p),s=s.child}return s;case 9:return x=s.type,h=s.pendingProps.children,os(s,p),x=On(x),h=h(x),s.flags|=1,Hr(a,s,h,p),s.child;case 14:return h=s.type,x=Un(h,s.pendingProps),x=Un(h.type,x),Lx(a,s,h,x,p);case 15:return Bx(a,s,s.type,s.pendingProps,p);case 17:return h=s.type,x=s.pendingProps,x=s.elementType===h?x:Un(h,x),rp(a,s),s.tag=1,Gr(h)?(a=!0,Bu(s)):a=!1,os(s,p),Rx(s,h,x),Mh(s,h,x,p),Dh(null,s,h,!0,a,p);case 19:return Xx(a,s,p);case 22:return Fx(a,s,p)}throw Error(r(156,s.tag))};function gw(a,s){return K2(a,s)}function wk(a,s,p,h){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pn(a,s,p,h){return new wk(a,s,p,h)}function em(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Sk(a){if(typeof a=="function")return em(a)?1:0;if(a!=null){if(a=a.$$typeof,a===H)return 11;if(a===U)return 14}return 2}function Ci(a,s){var p=a.alternate;return p===null?(p=Pn(a.tag,s,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p.alternate=a,a.alternate=p):(p.pendingProps=s,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=a.flags&14680064,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,s=a.dependencies,p.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p}function fp(a,s,p,h,x,S){var D=2;if(h=a,typeof a=="function")em(a)&&(D=1);else if(typeof a=="string")D=5;else e:switch(a){case O:return aa(p.children,x,S,s);case N:D=8,x|=8;break;case $:return a=Pn(12,p,s,x|2),a.elementType=$,a.lanes=S,a;case W:return a=Pn(13,p,s,x),a.elementType=W,a.lanes=S,a;case X:return a=Pn(19,p,s,x),a.elementType=X,a.lanes=S,a;case ee:return hp(p,x,S,s);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case C:D=10;break e;case L:D=9;break e;case H:D=11;break e;case U:D=14;break e;case K:D=16,h=null;break e}throw Error(r(130,a==null?a:typeof a,""))}return s=Pn(D,p,s,x),s.elementType=a,s.type=h,s.lanes=S,s}function aa(a,s,p,h){return a=Pn(7,a,h,s),a.lanes=p,a}function hp(a,s,p,h){return a=Pn(22,a,h,s),a.elementType=ee,a.lanes=p,a.stateNode={isHidden:!1},a}function tm(a,s,p){return a=Pn(6,a,null,s),a.lanes=p,a}function rm(a,s,p){return s=Pn(4,a.children!==null?a.children:[],a.key,s),s.lanes=p,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}function Ek(a,s,p,h,x){this.tag=s,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rf(0),this.expirationTimes=Rf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rf(0),this.identifierPrefix=h,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function nm(a,s,p,h,x,S,D,F,q){return a=new Ek(a,s,p,F,q),s===1?(s=1,S===!0&&(s|=8)):s=0,S=Pn(3,null,null,s),a.current=S,S.stateNode=a,S.memoizedState={element:h,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},gh(S),a}function Ck(a,s,p){var h=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),cm.exports=$k(),cm.exports}var Mw;function Lk(){if(Mw)return Sp;Mw=1;var t=CE();return Sp.createRoot=t.createRoot,Sp.hydrateRoot=t.hydrateRoot,Sp}var Bk=Lk();function Ko(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const eo="$$material";function nv(){return nv=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Or(pl,--an):0,rl--,cr===10&&(rl=1,Nd--),cr}function xn(){return cr=an2||jc(cr)>3?"":" "}function t_(t,e){for(;--e&&xn()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return nu(t,Gp()+(e<6&&Eo()==32&&xn()==32))}function iv(t){for(;xn();)switch(cr){case t:return an;case 34:case 39:t!==34&&t!==39&&iv(cr);break;case 40:t===41&&iv(t);break;case 92:xn();break}return an}function r_(t,e){for(;xn()&&t+cr!==57;)if(t+cr===84&&Eo()===47)break;return"/*"+nu(e,an-1)+"*"+Dd(t===47?t:xn())}function n_(t){for(;!jc(Eo());)xn();return nu(t,an)}function o_(t){return ME(Yp("",null,null,null,[""],t=RE(t),0,[0],t))}function Yp(t,e,r,n,o,i,l,c,d){for(var f=0,g=0,u=l,m=0,y=0,w=0,b=1,E=1,k=1,P=0,_="",R=o,M=i,T=n,O=_;E;)switch(w=P,P=xn()){case 40:if(w!=108&&Or(O,u-1)==58){ov(O+=kt(Kp(P),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:O+=Kp(P);break;case 9:case 10:case 13:case 32:O+=e_(w);break;case 92:O+=t_(Gp()-1,7);continue;case 47:switch(Eo()){case 42:case 47:Ep(i_(r_(xn(),Gp()),e,r),d);break;default:O+="/"}break;case 123*b:c[f++]=go(O)*k;case 125*b:case 59:case 0:switch(P){case 0:case 125:E=0;case 59+g:k==-1&&(O=kt(O,/\f/g,"")),y>0&&go(O)-u&&Ep(y>32?Nw(O+";",n,r,u-1):Nw(kt(O," ","")+";",n,r,u-2),d);break;case 59:O+=";";default:if(Ep(T=Dw(O,e,r,f,g,o,c,_,R=[],M=[],u),i),P===123)if(g===0)Yp(O,e,T,T,R,i,u,c,M);else switch(m===99&&Or(O,3)===110?100:m){case 100:case 108:case 109:case 115:Yp(t,T,T,n&&Ep(Dw(t,T,T,0,0,o,c,_,o,R=[],u),M),o,M,u,c,n?R:M);break;default:Yp(O,T,T,T,[""],M,0,c,M)}}f=g=y=0,b=k=1,_=O="",u=l;break;case 58:u=1+go(O),y=w;default:if(b<1){if(P==123)--b;else if(P==125&&b++==0&&Zk()==125)continue}switch(O+=Dd(P),P*b){case 38:k=g>0?1:(O+="\f",-1);break;case 44:c[f++]=(go(O)-1)*k,k=1;break;case 64:Eo()===45&&(O+=Kp(xn())),m=Eo(),g=u=go(_=O+=n_(Gp())),P++;break;case 45:w===45&&go(O)==2&&(b=0)}}return i}function Dw(t,e,r,n,o,i,l,c,d,f,g){for(var u=o-1,m=o===0?i:[""],y=sy(m),w=0,b=0,E=0;w0?m[k]+" "+P:kt(P,/&\f/g,m[k])))&&(d[E++]=_);return $d(t,e,r,o===0?iy:c,d,f,g)}function i_(t,e,r){return $d(t,e,r,TE,Dd(Qk()),zc(t,2,-2),0)}function Nw(t,e,r,n){return $d(t,e,r,ay,zc(t,0,n),zc(t,n+1,-1),n)}function Ys(t,e){for(var r="",n=sy(t),o=0;o6)switch(Or(t,e+1)){case 109:if(Or(t,e+4)!==45)break;case 102:return kt(t,/(.+:)(.+)-([^]+)/,"$1"+Ct+"$2-$3$1"+ld+(Or(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ov(t,"stretch")?AE(kt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Or(t,e+1)!==115)break;case 6444:switch(Or(t,go(t)-3-(~ov(t,"!important")&&10))){case 107:return kt(t,":",":"+Ct)+t;case 101:return kt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ct+(Or(t,14)===45?"inline-":"")+"box$3$1"+Ct+"$2$3$1"+$r+"$2box$3")+t}break;case 5936:switch(Or(t,e+11)){case 114:return Ct+t+$r+kt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ct+t+$r+kt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ct+t+$r+kt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ct+t+$r+t+t}return t}var h_=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case ay:e.return=AE(e.value,e.length);break;case kE:return Ys([nc(e,{value:kt(e.value,"@","@"+Ct)})],o);case iy:if(e.length)return Jk(e.props,function(i){switch(Yk(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ys([nc(e,{props:[kt(i,/:(read-\w+)/,":"+ld+"$1")]})],o);case"::placeholder":return Ys([nc(e,{props:[kt(i,/:(plac\w+)/,":"+Ct+"input-$1")]}),nc(e,{props:[kt(i,/:(plac\w+)/,":"+ld+"$1")]}),nc(e,{props:[kt(i,/:(plac\w+)/,$r+"input-$1")]})],o)}return""})}},m_=[h_],g_=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var E=b.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=e.stylisPlugins||m_,i={},l,c=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var E=b.getAttribute("data-emotion").split(" "),k=1;k=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var S_={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},E_=/[A-Z]|^ms/g,C_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DE=function(e){return e.charCodeAt(1)===45},zw=function(e){return e!=null&&typeof e!="boolean"},mm=PE(function(t){return DE(t)?t:t.replace(E_,"-$&").toLowerCase()}),jw=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(C_,function(n,o,i){return vo={name:o,styles:i,next:vo},o})}return S_[e]!==1&&!DE(e)&&typeof r=="number"&&r!==0?r+"px":r};function Hc(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return vo={name:o.name,styles:o.styles,next:vo},o.name;var i=r;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)vo={name:l.name,styles:l.styles,next:vo},l=l.next;var c=i.styles+";";return c}return T_(t,e,r)}case"function":{if(t!==void 0){var d=vo,f=r(t);return vo=d,Hc(t,e,f)}break}}var g=r;if(e==null)return g;var u=e[g];return u!==void 0?u:g}function T_(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?N_:$_},Xw=function(e,r,n){var o;if(r){var i=r.shouldForwardProp;o=e.__emotion_forwardProp&&i?function(l){return e.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},L_=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return ly(r,n,o),$E(function(){return cy(r,n,o)}),null},B_=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,i,l;r!==void 0&&(i=r.label,l=r.target);var c=Xw(e,r,n),d=c||Uw(o),f=!d("as");return function(){var g=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)u.push.apply(u,g);else{var m=g[0];u.push(m[0]);for(var y=g.length,w=1;w=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var j_={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 H_(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var q_=/[A-Z]|^ms/g,W_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BE=function(e){return e.charCodeAt(1)===45},Vw=function(e){return e!=null&&typeof e!="boolean"},gm=H_(function(t){return BE(t)?t:t.replace(q_,"-$&").toLowerCase()}),Gw=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(W_,function(n,o,i){return Ai={name:o,styles:i,next:Ai},o})}return j_[e]!==1&&!BE(e)&&typeof r=="number"&&r!==0?r+"px":r};function cd(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ai={name:o.name,styles:o.styles,next:Ai},o.name;var i=r;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)Ai={name:l.name,styles:l.styles,next:Ai},l=l.next;var c=i.styles+";";return c}return U_(t,e,r)}}var d=r;return d}function U_(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o0?Rr(fl,--sn):0,nl--,ur===10&&(nl=1,Fd--),ur}function wn(){return ur=sn2||Wc(ur)>3?"":" "}function cO(t,e){for(;--e&&wn()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return iu(t,Jp()+(e<6&&Co()==32&&wn()==32))}function cv(t){for(;wn();)switch(ur){case t:return sn;case 34:case 39:t!==34&&t!==39&&cv(ur);break;case 40:t===41&&cv(t);break;case 92:wn();break}return sn}function uO(t,e){for(;wn()&&t+ur!==57;)if(t+ur===84&&Co()===47)break;return"/*"+iu(e,sn-1)+"*"+Bd(t===47?t:wn())}function pO(t){for(;!Wc(Co());)wn();return iu(t,sn)}function dO(t){return UE(Zp("",null,null,null,[""],t=WE(t),0,[0],t))}function Zp(t,e,r,n,o,i,l,c,d){for(var f=0,g=0,u=l,m=0,y=0,w=0,b=1,E=1,k=1,P=0,_="",R=o,M=i,T=n,O=_;E;)switch(w=P,P=wn()){case 40:if(w!=108&&Rr(O,u-1)==58){lv(O+=_t(Qp(P),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:O+=Qp(P);break;case 9:case 10:case 13:case 32:O+=lO(w);break;case 92:O+=cO(Jp()-1,7);continue;case 47:switch(Co()){case 42:case 47:Cp(fO(uO(wn(),Jp()),e,r),d);break;default:O+="/"}break;case 123*b:c[f++]=yo(O)*k;case 125*b:case 59:case 0:switch(P){case 0:case 125:E=0;case 59+g:k==-1&&(O=_t(O,/\f/g,"")),y>0&&yo(O)-u&&Cp(y>32?e4(O+";",n,r,u-1):e4(_t(O," ","")+";",n,r,u-2),d);break;case 59:O+=";";default:if(Cp(T=Zw(O,e,r,f,g,o,c,_,R=[],M=[],u),i),P===123)if(g===0)Zp(O,e,T,T,R,i,u,c,M);else switch(m===99&&Rr(O,3)===110?100:m){case 100:case 108:case 109:case 115:Zp(t,T,T,n&&Cp(Zw(t,T,T,0,0,o,c,_,o,R=[],u),M),o,M,u,c,n?R:M);break;default:Zp(O,T,T,T,[""],M,0,c,M)}}f=g=y=0,b=k=1,_=O="",u=l;break;case 58:u=1+yo(O),y=w;default:if(b<1){if(P==123)--b;else if(P==125&&b++==0&&sO()==125)continue}switch(O+=Bd(P),P*b){case 38:k=g>0?1:(O+="\f",-1);break;case 44:c[f++]=(yo(O)-1)*k,k=1;break;case 64:Co()===45&&(O+=Qp(wn())),m=Co(),g=u=yo(_=O+=pO(Jp())),P++;break;case 45:w===45&&yo(O)==2&&(b=0)}}return i}function Zw(t,e,r,n,o,i,l,c,d,f,g){for(var u=o-1,m=o===0?i:[""],y=hy(m),w=0,b=0,E=0;w0?m[k]+" "+P:_t(P,/&\f/g,m[k])))&&(d[E++]=_);return zd(t,e,r,o===0?dy:c,d,f,g)}function fO(t,e,r){return zd(t,e,r,zE,Bd(aO()),qc(t,2,-2),0)}function e4(t,e,r,n){return zd(t,e,r,fy,qc(t,0,n),qc(t,n+1,-1),n)}function Js(t,e){for(var r="",n=hy(t),o=0;o6)switch(Rr(t,e+1)){case 109:if(Rr(t,e+4)!==45)break;case 102:return _t(t,/(.+:)(.+)-([^]+)/,"$1"+Tt+"$2-$3$1"+ud+(Rr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~lv(t,"stretch")?XE(_t(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Rr(t,e+1)!==115)break;case 6444:switch(Rr(t,yo(t)-3-(~lv(t,"!important")&&10))){case 107:return _t(t,":",":"+Tt)+t;case 101:return _t(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tt+(Rr(t,14)===45?"inline-":"")+"box$3$1"+Tt+"$2$3$1"+Lr+"$2box$3")+t}break;case 5936:switch(Rr(t,e+11)){case 114:return Tt+t+Lr+_t(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Tt+t+Lr+_t(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Tt+t+Lr+_t(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Tt+t+Lr+t+t}return t}var SO=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case fy:e.return=XE(e.value,e.length);break;case jE:return Js([oc(e,{value:_t(e.value,"@","@"+Tt)})],o);case dy:if(e.length)return iO(e.props,function(i){switch(oO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Js([oc(e,{props:[_t(i,/:(read-\w+)/,":"+ud+"$1")]})],o);case"::placeholder":return Js([oc(e,{props:[_t(i,/:(plac\w+)/,":"+Tt+"input-$1")]}),oc(e,{props:[_t(i,/:(plac\w+)/,":"+ud+"$1")]}),oc(e,{props:[_t(i,/:(plac\w+)/,Lr+"input-$1")]})],o)}return""})}},EO=[SO],CO=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var E=b.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=e.stylisPlugins||EO,i={},l,c=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var E=b.getAttribute("data-emotion").split(" "),k=1;k{const r=CO(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let Mi;if(typeof document=="object"&&(Mi=document.querySelector('[name="emotion-insertion-point"]'),!Mi)){Mi=document.createElement("meta"),Mi.setAttribute("name","emotion-insertion-point"),Mi.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(Mi)}function kO(t,e){if(t||e){class r extends FE{insert(i,l){return this.key&&this.key.endsWith("global")&&(this.before=Mi),super.insert(i,l)}}const n=TO({key:"css",insertionPoint:t?Mi:void 0},r);if(e){const o=n.insert;n.insert=(...i)=>(i[1].styles.match(/^@layer\s+[^{]*$/)||(i[1].styles=`@layer mui {${i[1].styles}}`),o(...i))}return n}}function _O(t){const{injectFirst:e,enableCssLayer:r,children:n}=t,o=A.useMemo(()=>{const i=`${e}-${r}`;if(typeof document=="object"&&xm.has(i))return xm.get(i);const l=kO(e,r);return xm.set(i,l),l},[e,r]);return o?B.jsx(__,{value:o,children:n}):n}function OO(t){return t==null||Object.keys(t).length===0}function VE(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(OO(o)?r:o):e;return B.jsx(A_,{styles:n})}function GE(t,e){return sv(t,e)}function RO(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const r4=[];function Li(t){return r4[0]=t,X_(r4)}var wm={exports:{}},At={};var n4;function MO(){if(n4)return At;n4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function w(b){if(typeof b=="object"&&b!==null){var E=b.$$typeof;switch(E){case t:switch(b=b.type,b){case r:case o:case n:case d:case f:case m:return b;default:switch(b=b&&b.$$typeof,b){case l:case c:case u:case g:return b;case i:return b;default:return E}}case e:return E}}}return At.ContextConsumer=i,At.ContextProvider=l,At.Element=t,At.ForwardRef=c,At.Fragment=r,At.Lazy=u,At.Memo=g,At.Portal=e,At.Profiler=o,At.StrictMode=n,At.Suspense=d,At.SuspenseList=f,At.isContextConsumer=function(b){return w(b)===i},At.isContextProvider=function(b){return w(b)===l},At.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},At.isForwardRef=function(b){return w(b)===c},At.isFragment=function(b){return w(b)===r},At.isLazy=function(b){return w(b)===u},At.isMemo=function(b){return w(b)===g},At.isPortal=function(b){return w(b)===e},At.isProfiler=function(b){return w(b)===o},At.isStrictMode=function(b){return w(b)===n},At.isSuspense=function(b){return w(b)===d},At.isSuspenseList=function(b){return w(b)===f},At.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===u||b.$$typeof===g||b.$$typeof===l||b.$$typeof===i||b.$$typeof===c||b.$$typeof===y||b.getModuleId!==void 0)},At.typeOf=w,At}var o4;function PO(){return o4||(o4=1,wm.exports=MO()),wm.exports}var KE=PO();function wo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function YE(t){if(A.isValidElement(t)||KE.isValidElementType(t)||!wo(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=YE(t[r])}),e}function jr(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return wo(t)&&wo(e)&&Object.keys(e).forEach(o=>{A.isValidElement(e[o])||KE.isValidElementType(e[o])?n[o]=e[o]:wo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&wo(t[o])?n[o]=jr(t[o],e[o],r):r.clone?n[o]=wo(e[o])?YE(e[o]):e[o]:n[o]=e[o]}),n}const AO=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function IO(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,i=AO(e),l=Object.keys(i);function c(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r})`}function d(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-n/100}${r})`}function f(m,y){const w=l.indexOf(y);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r}) and (max-width:${(w!==-1&&typeof e[l[w]]=="number"?e[l[w]]:y)-n/100}${r})`}function g(m){return l.indexOf(m)+1n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=e[o];return delete n[o],n[o]=i,n},{...e}):e}function DO(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function NO(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(i)}function $O(t){const e=(i,l)=>i.replace("@media",l?`@container ${l}`:"@container");function r(i,l){i.up=(...c)=>e(t.breakpoints.up(...c),l),i.down=(...c)=>e(t.breakpoints.down(...c),l),i.between=(...c)=>e(t.breakpoints.between(...c),l),i.only=(...c)=>e(t.breakpoints.only(...c),l),i.not=(...c)=>{const d=e(t.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},o=i=>(r(n,i),n);return r(o),{...t,containerQueries:o}}const LO={borderRadius:4};function Ic(t,e){return e?jr(t,e,{clone:!1}):t}const jd={xs:0,sm:600,md:900,lg:1200,xl:1536},a4={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${jd[t]}px)`},BO={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:jd[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Yo(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const i=n.breakpoints||a4;return e.reduce((l,c,d)=>(l[i.up(i.keys[d])]=r(e[d]),l),{})}if(typeof e=="object"){const i=n.breakpoints||a4;return Object.keys(e).reduce((l,c)=>{if(DO(i.keys,c)){const d=NO(n.containerQueries?n:BO,c);d&&(l[d]=r(e[c],c))}else if(Object.keys(i.values||jd).includes(c)){const d=i.up(c);l[d]=r(e[c],c)}else{const d=c;l[d]=e[d]}return l},{})}return r(e)}function FO(t={}){return t.keys?.reduce((r,n)=>{const o=t.up(n);return r[o]={},r},{})||{}}function s4(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function ye(t){if(typeof t!="string")throw new Error(Ko(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Ii(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function pd(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=Ii(t,r)||n,e&&(o=e(o,n,t)),o}function sr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,i=l=>{if(l[e]==null)return null;const c=l[e],d=l.theme,f=Ii(d,n)||{};return Yo(l,c,u=>{let m=pd(f,o,u);return u===m&&typeof u=="string"&&(m=pd(f,o,`${e}${u==="default"?"":ye(u)}`,u)),r===!1?m:{[r]:m}})};return i.propTypes={},i.filterProps=[e],i}function zO(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const jO={m:"margin",p:"padding"},HO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l4={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qO=zO(t=>{if(t.length>2)if(l4[t])t=l4[t];else return[t];const[e,r]=t.split(""),n=jO[e],o=HO[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),my=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...my,...gy];function au(t,e,r,n){const o=Ii(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const l=Math.abs(i),c=o[l];return i>=0?c:typeof c=="number"?-c:`-${c}`}:typeof o=="function"?o:()=>{}}function vy(t){return au(t,"spacing",8)}function su(t,e){return typeof e=="string"||e==null?e:t(e)}function WO(t,e){return r=>t.reduce((n,o)=>(n[o]=su(e,r),n),{})}function UO(t,e,r,n){if(!e.includes(r))return null;const o=qO(r),i=WO(o,n),l=t[r];return Yo(t,l,i)}function JE(t,e){const r=vy(t.theme);return Object.keys(t).map(n=>UO(t,e,n,r)).reduce(Ic,{})}function Zt(t){return JE(t,my)}Zt.propTypes={};Zt.filterProps=my;function er(t){return JE(t,gy)}er.propTypes={};er.filterProps=gy;function QE(t=8,e=vy({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(i=>{const l=e(i);return typeof l=="number"?`${l}px`:l}).join(" ");return r.mui=!0,r}function Hd(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>e[i]?Ic(o,e[i](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Nn(t){return typeof t!="number"?t:`${t}px solid`}function jn(t,e){return sr({prop:t,themeKey:"borders",transform:e})}const XO=jn("border",Nn),VO=jn("borderTop",Nn),GO=jn("borderRight",Nn),KO=jn("borderBottom",Nn),YO=jn("borderLeft",Nn),JO=jn("borderColor"),QO=jn("borderTopColor"),ZO=jn("borderRightColor"),eR=jn("borderBottomColor"),tR=jn("borderLeftColor"),rR=jn("outline",Nn),nR=jn("outlineColor"),qd=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=au(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:su(e,n)});return Yo(t,t.borderRadius,r)}return null};qd.propTypes={};qd.filterProps=["borderRadius"];Hd(XO,VO,GO,KO,YO,JO,QO,ZO,eR,tR,qd,rR,nR);const Wd=t=>{if(t.gap!==void 0&&t.gap!==null){const e=au(t.theme,"spacing",8),r=n=>({gap:su(e,n)});return Yo(t,t.gap,r)}return null};Wd.propTypes={};Wd.filterProps=["gap"];const Ud=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=au(t.theme,"spacing",8),r=n=>({columnGap:su(e,n)});return Yo(t,t.columnGap,r)}return null};Ud.propTypes={};Ud.filterProps=["columnGap"];const Xd=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=au(t.theme,"spacing",8),r=n=>({rowGap:su(e,n)});return Yo(t,t.rowGap,r)}return null};Xd.propTypes={};Xd.filterProps=["rowGap"];const oR=sr({prop:"gridColumn"}),iR=sr({prop:"gridRow"}),aR=sr({prop:"gridAutoFlow"}),sR=sr({prop:"gridAutoColumns"}),lR=sr({prop:"gridAutoRows"}),cR=sr({prop:"gridTemplateColumns"}),uR=sr({prop:"gridTemplateRows"}),pR=sr({prop:"gridTemplateAreas"}),dR=sr({prop:"gridArea"});Hd(Wd,Ud,Xd,oR,iR,aR,sR,lR,cR,uR,pR,dR);function Qs(t,e){return e==="grey"?e:t}const fR=sr({prop:"color",themeKey:"palette",transform:Qs}),hR=sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qs}),mR=sr({prop:"backgroundColor",themeKey:"palette",transform:Qs});Hd(fR,hR,mR);function vn(t){return t<=1&&t!==0?`${t*100}%`:t}const gR=sr({prop:"width",transform:vn}),yy=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{const n=t.theme?.breakpoints?.values?.[r]||jd[r];return n?t.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:vn(r)}};return Yo(t,t.maxWidth,e)}return null};yy.filterProps=["maxWidth"];const vR=sr({prop:"minWidth",transform:vn}),yR=sr({prop:"height",transform:vn}),bR=sr({prop:"maxHeight",transform:vn}),xR=sr({prop:"minHeight",transform:vn});sr({prop:"size",cssProperty:"width",transform:vn});sr({prop:"size",cssProperty:"height",transform:vn});const wR=sr({prop:"boxSizing"});Hd(gR,yy,vR,yR,bR,xR,wR);const lu={border:{themeKey:"borders",transform:Nn},borderTop:{themeKey:"borders",transform:Nn},borderRight:{themeKey:"borders",transform:Nn},borderBottom:{themeKey:"borders",transform:Nn},borderLeft:{themeKey:"borders",transform:Nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qd},color:{themeKey:"palette",transform:Qs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qs},backgroundColor:{themeKey:"palette",transform:Qs},p:{style:er},pt:{style:er},pr:{style:er},pb:{style:er},pl:{style:er},px:{style:er},py:{style:er},padding:{style:er},paddingTop:{style:er},paddingRight:{style:er},paddingBottom:{style:er},paddingLeft:{style:er},paddingX:{style:er},paddingY:{style:er},paddingInline:{style:er},paddingInlineStart:{style:er},paddingInlineEnd:{style:er},paddingBlock:{style:er},paddingBlockStart:{style:er},paddingBlockEnd:{style:er},m:{style:Zt},mt:{style:Zt},mr:{style:Zt},mb:{style:Zt},ml:{style:Zt},mx:{style:Zt},my:{style:Zt},margin:{style:Zt},marginTop:{style:Zt},marginRight:{style:Zt},marginBottom:{style:Zt},marginLeft:{style:Zt},marginX:{style:Zt},marginY:{style:Zt},marginInline:{style:Zt},marginInlineStart:{style:Zt},marginInlineEnd:{style:Zt},marginBlock:{style:Zt},marginBlockStart:{style:Zt},marginBlockEnd:{style:Zt},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wd},rowGap:{style:Xd},columnGap:{style:Ud},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vn},maxWidth:{style:yy},minWidth:{transform:vn},height:{transform:vn},maxHeight:{transform:vn},minHeight:{transform:vn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function SR(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function ER(t,e){return typeof t=="function"?t(e):t}function CR(){function t(r,n,o,i){const l={[r]:n,theme:o},c=i[r];if(!c)return{[r]:n};const{cssProperty:d=r,themeKey:f,transform:g,style:u}=c;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const m=Ii(o,f)||{};return u?u(l):Yo(l,n,w=>{let b=pd(m,g,w);return w===b&&typeof w=="string"&&(b=pd(m,g,`${r}${w==="default"?"":ye(w)}`,w)),d===!1?b:{[d]:b}})}function e(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const l=o.unstable_sxConfig??lu;function c(d){let f=d;if(typeof d=="function")f=d(o);else if(typeof d!="object")return d;if(!f)return null;const g=FO(o.breakpoints),u=Object.keys(g);let m=g;return Object.keys(f).forEach(y=>{const w=ER(f[y],o);if(w!=null)if(typeof w=="object")if(l[y])m=Ic(m,t(y,w,o,l));else{const b=Yo({theme:o},w,E=>({[y]:E}));SR(b,w)?m[y]=e({sx:w,theme:o,nested:!0}):m=Ic(m,b)}else m=Ic(m,t(y,w,o,l))}),!i&&o.modularCssLayers?{"@layer sx":i4(o,s4(u,m))}:i4(o,s4(u,m))}return Array.isArray(n)?n.map(c):c(n)}return e}const Bi=CR();Bi.filterProps=["sx"];function TR(t,e){const r=this;if(r.vars){if(!r.colorSchemes?.[t]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(t);return n==="&"?e:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:e})}return r.palette.mode===t?e:{}}function Vd(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...l}=t,c=IO(r),d=QE(o);let f=jr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...LO,...i}},l);return f=$O(f),f.applyStyles=TR,f=e.reduce((g,u)=>jr(g,u),f),f.unstable_sxConfig={...lu,...l?.unstable_sxConfig},f.unstable_sx=function(u){return Bi({sx:u,theme:this})},f}function kR(t){return Object.keys(t).length===0}function Gd(t=null){const e=A.useContext(ou);return!e||kR(e)?t:e}const _R=Vd();function cu(t=_R){return Gd(t)}function Sm(t){const e=Li(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function ZE({styles:t,themeId:e,defaultTheme:r={}}){const n=cu(r),o=e&&n[e]||n;let i=typeof t=="function"?t(o):t;return o.modularCssLayers&&(Array.isArray(i)?i=i.map(l=>Sm(typeof l=="function"?l(o):l)):i=Sm(i)),B.jsx(VE,{styles:i})}const OR=t=>{const e={systemProps:{},otherProps:{}},r=t?.theme?.unstable_sxConfig??lu;return Object.keys(t).forEach(n=>{r[n]?e.systemProps[n]=t[n]:e.otherProps[n]=t[n]}),e};function by(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=OR(r);let i;return Array.isArray(e)?i=[n,...e]:typeof e=="function"?i=(...l)=>{const c=e(...l);return wo(c)?{...n,...c}:n}:i={...n,...e},{...o,sx:i}}const c4=t=>t,RR=()=>{let t=c4;return{configure(e){t=e},generate(e){return t(e)},reset(){t=c4}}},eC=RR();function tC(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;ec!=="theme"&&c!=="sx"&&c!=="as"})(Bi);return A.forwardRef(function(d,f){const g=cu(r),{className:u,component:m="div",...y}=by(d);return B.jsx(i,{as:m,ref:f,className:Se(u,o?o(n):n),theme:e&&g[e]||g,...y})})}const PR={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qe(t,e,r="Mui"){const n=PR[e];return n?`${r}-${n}`:`${eC.generate(t)}-${e}`}function We(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=qe(t,o,r)}),n}function rC(t){const{variants:e,...r}=t,n={variants:e,style:Li(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Li(o.style))}),n}const AR=Vd();function Em(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function ba(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function IR(t){return t?(e,r)=>r[t]:null}function DR(t,e,r){t.theme=$R(t.theme)?r:t.theme[e]||t.theme}function ed(t,e,r){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>ed(t,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?ba(n.style,r):n.style;else{const{variants:i,...l}=n;o=r?ba(Li(l),r):l}return nC(t,n.variants,[o],r)}return n?.isProcessed?r?ba(Li(n.style),r):n.style:r?ba(Li(n),r):n}function nC(t,e,r=[],n=void 0){let o;e:for(let i=0;i{RO(c,T=>T.filter(O=>O!==Bi));const{name:f,slot:g,skipVariantsResolver:u,skipSx:m,overridesResolver:y=IR(BR(g)),...w}=d,b=f&&f.startsWith("Mui")||g?"components":"custom",E=u!==void 0?u:g&&g!=="Root"&&g!=="root"||!1,k=m||!1;let P=Em;g==="Root"||g==="root"?P=n:g?P=o:LR(c)&&(P=void 0);const _=GE(c,{shouldForwardProp:P,label:NR(),...w}),R=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(N){return ed(N,T,N.theme.modularCssLayers?b:void 0)};if(wo(T)){const O=rC(T);return function($){return O.variants?ed($,O,$.theme.modularCssLayers?b:void 0):$.theme.modularCssLayers?ba(O.style,b):O.style}}return T},M=(...T)=>{const O=[],N=T.map(R),$=[];if(O.push(i),f&&y&&$.push(function(W){const U=W.theme.components?.[f]?.styleOverrides;if(!U)return null;const K={};for(const ee in U)K[ee]=ed(W,U[ee],W.theme.modularCssLayers?"theme":void 0);return y(W,K)}),f&&!E&&$.push(function(W){const U=W.theme?.components?.[f]?.variants;return U?nC(W,U,[],W.theme.modularCssLayers?"theme":void 0):null}),k||$.push(Bi),Array.isArray(N[0])){const H=N.shift(),W=new Array(O.length).fill(""),X=new Array($.length).fill("");let U;U=[...W,...H,...X],U.raw=[...W,...H.raw,...X],O.unshift(U)}const C=[...O,...N,...$],L=_(...C);return c.muiName&&(L.muiName=c.muiName),L};return _.withConfig&&(M.withConfig=_.withConfig),M}}function NR(t,e){return void 0}function $R(t){for(const e in t)return!1;return!0}function LR(t){return typeof t=="string"&&t.charCodeAt(0)>96}function BR(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const FR=oC();function Uc(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=n;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const i=t[o],l=e[o];if(!l)r[o]=i||{};else if(!i)r[o]=l;else{r[o]={...l};for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const d=c;r[o][d]=Uc(i[d],l[d])}}}else r[o]===void 0&&(r[o]=t[o])}return r}function iC(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:Uc(e.components[r].defaultProps,n)}function zR({props:t,name:e,defaultTheme:r,themeId:n}){let o=cu(r);return n&&(o=o[n]||o),iC({theme:o,name:e,props:t})}const ln=typeof window<"u"?A.useLayoutEffect:A.useEffect;function jR(t,e,r,n,o){const[i,l]=A.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return ln(()=>{if(!r)return;const c=r(t),d=()=>{l(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[t,r]),i}const HR={...EE},aC=HR.useSyncExternalStore;function qR(t,e,r,n,o){const i=A.useCallback(()=>e,[e]),l=A.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:g}=n(t);return()=>g}return i},[i,t,n,o,r]),[c,d]=A.useMemo(()=>{if(r===null)return[i,()=>()=>{}];const g=r(t);return[()=>g.matches,u=>(g.addEventListener("change",u),()=>{g.removeEventListener("change",u)})]},[i,r,t]);return aC(d,c,l)}function sC(t={}){const{themeId:e}=t;return function(n,o={}){let i=Gd();i&&e&&(i=i[e]||i);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=l?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:g=!1}=iC({name:"MuiUseMediaQuery",props:o,theme:i});let u=typeof n=="function"?n(i):n;return u=u.replace(/^@media( ?)/m,""),u.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` -`)),(aC!==void 0?qR:jR)(u,c,d,f,g)}}sC();function WR(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function xy(t,e=0,r=1){return WR(t,e,r)}function UR(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Fi(t){if(t.type)return t;if(t.charAt(0)==="#")return Fi(UR(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Ko(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Ko(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const XR=t=>{const e=Fi(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Sc=(t,e)=>{try{return XR(t)}catch{return t}};function Kd(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function lC(t){t=Fi(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,i=n*Math.min(o,1-o),l=(f,g=(f+r/30)%12)=>o-i*Math.max(Math.min(g-3,9-g,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return t.type==="hsla"&&(c+="a",d.push(e[3])),Kd({type:c,values:d})}function uv(t){t=Fi(t);let e=t.type==="hsl"||t.type==="hsla"?Fi(lC(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function VR(t,e){const r=uv(t),n=uv(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Nt(t,e){return t=Fi(t),e=xy(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Kd(t)}function Tp(t,e,r){try{return Nt(t,e)}catch{return t}}function Yd(t,e){if(t=Fi(t),e=xy(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return Kd(t)}function It(t,e,r){try{return Yd(t,e)}catch{return t}}function Jd(t,e){if(t=Fi(t),e=xy(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return Kd(t)}function Dt(t,e,r){try{return Jd(t,e)}catch{return t}}function pv(t,e=.15){return uv(t)>.5?Yd(t,e):Jd(t,e)}function kp(t,e,r){try{return pv(t,e)}catch{return t}}function dv(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function Qd(t,e=166){let r;function n(...o){const i=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(i,e)}return n.clear=()=>{clearTimeout(r)},n}function td(t,e){return A.isValidElement(t)&&e.indexOf(t.type.muiName??t.type?._payload?.value?.muiName)!==-1}function cn(t){return t&&t.ownerDocument||document}function to(t){return cn(t).defaultView||window}function u4(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let p4=0;function GR(t){const[e,r]=A.useState(t),n=t||e;return A.useEffect(()=>{e==null&&(p4+=1,r(`mui-${p4}`))},[e]),n}const KR={...EE},d4=KR.useId;function Ra(t){if(d4!==void 0){const e=d4();return t??e}return GR(t)}function dd({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=A.useRef(t!==void 0),[i,l]=A.useState(e),c=o?t:i,d=A.useCallback(f=>{o||l(f)},[]);return[c,d]}function $n(t){const e=A.useRef(t);return ln(()=>{e.current=t}),A.useRef((...r)=>(0,e.current)(...r)).current}function Sr(...t){const e=A.useRef(void 0),r=A.useCallback(n=>{const o=t.map(i=>{if(i==null)return null;if(typeof i=="function"){const l=i,c=l(n);return typeof c=="function"?c:()=>{l(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},t);return A.useMemo(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}const f4={};function cC(t,e){const r=A.useRef(f4);return r.current===f4&&(r.current=t(e)),r}const YR=[];function JR(t){A.useEffect(t,YR)}class Zd{static create(){return new Zd}currentId=null;start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Us(){const t=cC(Zd.create).current;return JR(t.disposeEffect),t}function ol(t){try{return t.matches(":focus-visible")}catch{}return!1}function uC(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function Ue(t,e,r=void 0){const n={};for(const o in t){const i=t[o];let l="",c=!0;for(let d=0;dn.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function h4(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function fC(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=t;if(!e){const y=Se(r?.className,i,o?.className,n?.className),w={...r?.style,...o?.style,...n?.style},b={...r,...o,...n};return y.length>0&&(b.className=y),Object.keys(w).length>0&&(b.style=w),{props:b,internalRef:void 0}}const l=dC({...o,...n}),c=h4(n),d=h4(o),f=e(l),g=Se(f?.className,r?.className,i,o?.className,n?.className),u={...f?.style,...r?.style,...o?.style,...n?.style},m={...f,...r,...d,...c};return g.length>0&&(m.className=g),Object.keys(u).length>0&&(m.style=u),{props:m,internalRef:f.ref}}function hC(t,e,r){return typeof t=="function"?t(e,r):t}function Ea(t){const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...i}=t,l=o?{}:hC(r,n),{props:c,internalRef:d}=fC({...i,externalSlotProps:l}),f=Sr(d,l?.ref,t.additionalProps?.ref);return pC(e,{...c,ref:f},n)}function hl(t){return parseInt(A.version,10)>=19?t?.props?.ref||null:t?.ref||null}const mC=A.createContext(null);function wy(){return A.useContext(mC)}const ZR=typeof Symbol=="function"&&Symbol.for,eM=ZR?Symbol.for("mui.nested"):"__THEME_NESTED__";function tM(t,e){return typeof e=="function"?e(t):{...t,...e}}function rM(t){const{children:e,theme:r}=t,n=wy(),o=A.useMemo(()=>{const i=n===null?{...r}:tM(n,r);return i!=null&&(i[eM]=n!==null),i},[r,n]);return B.jsx(mC.Provider,{value:o,children:e})}const gC=A.createContext();function nM({value:t,...e}){return B.jsx(gC.Provider,{value:t??!0,...e})}const ml=()=>A.useContext(gC)??!1,vC=A.createContext(void 0);function oM({value:t,children:e}){return B.jsx(vC.Provider,{value:t,children:e})}function iM(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?Uc(o.defaultProps,n):!o.styleOverrides&&!o.variants?Uc(o,n):n}function aM({props:t,name:e}){const r=A.useContext(vC);return iM({props:t,name:e,theme:{components:r}})}function sM(t){const e=Gd(),r=Ra()||"",{modularCssLayers:n}=t;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,ln(()=>{const i=document.querySelector("head");if(!i)return;const l=i.firstChild;if(o){if(l&&l.hasAttribute?.("data-mui-layer-order")&&l.getAttribute("data-mui-layer-order")===r)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",r),c.textContent=o,i.prepend(c)}else i.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[o,r]),o?B.jsx(ZE,{styles:o}):null}const m4={};function g4(t,e,r,n=!1){return A.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const i=r(o),l=t?{...e,[t]:i}:i;return n?()=>l:l}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function yC(t){const{children:e,theme:r,themeId:n}=t,o=Gd(m4),i=wy()||m4,l=g4(n,o,r),c=g4(n,i,r,!0),d=(n?l[n]:l).direction==="rtl",f=sM(l);return B.jsx(rM,{theme:c,children:B.jsx(ou.Provider,{value:l,children:B.jsx(nM,{value:d,children:B.jsxs(oM,{value:n?l[n].components:l.components,children:[f,e]})})})})}const v4={theme:void 0};function lM(t){let e,r;return function(o){let i=e;return(i===void 0||o.theme!==r)&&(v4.theme=o.theme,i=rC(t(v4)),e=i,r=o.theme),i}}const Sy="mode",Ey="color-scheme",cM="data-color-scheme";function uM(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=Sy,colorSchemeStorageKey:i=Ey,attribute:l=cM,colorSchemeNode:c="document.documentElement",nonce:d}=t||{};let f="",g=l;if(l==="class"&&(g=".%s"),l==="data"&&(g="[data-%s]"),g.startsWith(".")){const m=g.substring(1);f+=`${c}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark)); - ${c}.classList.add('${m}'.replace('%s', colorScheme));`}const u=g.match(/\[([^\]]+)\]/);if(u){const[m,y]=u[1].split("=");y||(f+=`${c}.removeAttribute('${m}'.replace('%s', light)); - ${c}.removeAttribute('${m}'.replace('%s', dark));`),f+=` - ${c}.setAttribute('${m}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else f+=`${c}.setAttribute('${g}', colorScheme);`;return B.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() { -try { - let colorScheme = ''; - const mode = localStorage.getItem('${o}') || '${e}'; - const dark = localStorage.getItem('${i}-dark') || '${n}'; - const light = localStorage.getItem('${i}-light') || '${r}'; - if (mode === 'system') { - // handle system mode - const mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = dark - } else { - colorScheme = light - } - } - if (mode === 'light') { - colorScheme = light; - } - if (mode === 'dark') { - colorScheme = dark; - } - if (colorScheme) { - ${f} - } -} catch(e){}})();`}},"mui-color-scheme-init")}function pM(){}const dM=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let n;try{n=e.localStorage.getItem(t)}catch{}return n||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return pM;const n=o=>{const i=o.newValue;o.key===t&&r(i)};return e.addEventListener("storage",n),()=>{e.removeEventListener("storage",n)}}});function Cm(){}function y4(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function bC(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function fM(t){return bC(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function hM(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:i=Sy,colorSchemeStorageKey:l=Ey,storageWindow:c=typeof window>"u"?void 0:window,storageManager:d=dM,noSsr:f=!1}=t,g=o.join(","),u=o.length>1,m=A.useMemo(()=>d?.({key:i,storageWindow:c}),[d,i,c]),y=A.useMemo(()=>d?.({key:`${l}-light`,storageWindow:c}),[d,l,c]),w=A.useMemo(()=>d?.({key:`${l}-dark`,storageWindow:c}),[d,l,c]),[b,E]=A.useState(()=>{const N=m?.get(e)||e,$=y?.get(r)||r,C=w?.get(n)||n;return{mode:N,systemMode:y4(N),lightColorScheme:$,darkColorScheme:C}}),[k,P]=A.useState(f||!u);A.useEffect(()=>{P(!0)},[]);const _=fM(b),R=A.useCallback(N=>{E($=>{if(N===$.mode)return $;const C=N??e;return m?.set(C),{...$,mode:C,systemMode:y4(C)}})},[m,e]),M=A.useCallback(N=>{N?typeof N=="string"?N&&!g.includes(N)?console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`):E($=>{const C={...$};return bC($,L=>{L==="light"&&(y?.set(N),C.lightColorScheme=N),L==="dark"&&(w?.set(N),C.darkColorScheme=N)}),C}):E($=>{const C={...$},L=N.light===null?r:N.light,H=N.dark===null?n:N.dark;return L&&(g.includes(L)?(C.lightColorScheme=L,y?.set(L)):console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)),H&&(g.includes(H)?(C.darkColorScheme=H,w?.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),C}):E($=>(y?.set(r),w?.set(n),{...$,lightColorScheme:r,darkColorScheme:n}))},[g,y,w,r,n]),T=A.useCallback(N=>{b.mode==="system"&&E($=>{const C=N?.matches?"dark":"light";return $.systemMode===C?$:{...$,systemMode:C}})},[b.mode]),O=A.useRef(T);return O.current=T,A.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const N=(...C)=>O.current(...C),$=window.matchMedia("(prefers-color-scheme: dark)");return $.addListener(N),N($),()=>{$.removeListener(N)}},[u]),A.useEffect(()=>{if(u){const N=m?.subscribe(L=>{(!L||["light","dark","system"].includes(L))&&R(L||e)})||Cm,$=y?.subscribe(L=>{(!L||g.match(L))&&M({light:L})})||Cm,C=w?.subscribe(L=>{(!L||g.match(L))&&M({dark:L})})||Cm;return()=>{N(),$(),C()}}},[M,R,g,e,c,u,m,y,w]),{...b,mode:k?b.mode:void 0,systemMode:k?b.systemMode:void 0,colorScheme:k?_:void 0,setMode:R,setColorScheme:M}}const mM="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function gM(t){const{themeId:e,theme:r={},modeStorageKey:n=Sy,colorSchemeStorageKey:o=Ey,disableTransitionOnChange:i=!1,defaultColorScheme:l,resolveTheme:c}=t,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=A.createContext(void 0),g=()=>A.useContext(f)||d,u={},m={};function y(k){const{children:P,theme:_,modeStorageKey:R=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:T=i,storageManager:O,storageWindow:N=typeof window>"u"?void 0:window,documentNode:$=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:H=!1,defaultMode:W="system",noSsr:X}=k,U=A.useRef(!1),K=wy(),ee=A.useContext(f),Q=!!ee&&!L,G=A.useMemo(()=>_||(typeof r=="function"?r():r),[_]),te=G[e],I=te||G,{colorSchemes:z=u,components:oe=m,cssVarPrefix:ie}=I,re=Object.keys(z).filter(Ye=>!!z[Ye]).join(","),ae=A.useMemo(()=>re.split(","),[re]),he=typeof l=="string"?l:l.light,me=typeof l=="string"?l:l.dark,ve=z[he]&&z[me]?W:z[I.defaultColorScheme]?.palette?.mode||I.palette?.mode,{mode:xe,setMode:Le,systemMode:Ae,lightColorScheme:nt,darkColorScheme:Me,colorScheme:_e,setColorScheme:mt}=hM({supportedColorSchemes:ae,defaultLightColorScheme:he,defaultDarkColorScheme:me,modeStorageKey:R,colorSchemeStorageKey:M,defaultMode:ve,storageManager:O,storageWindow:N,noSsr:X});let Ee=xe,Ie=_e;Q&&(Ee=ee.mode,Ie=ee.colorScheme);const it=A.useMemo(()=>{const Ye=Ie||I.defaultColorScheme,se=I.generateThemeVars?.()||I.vars,be={...I,components:oe,colorSchemes:z,cssVarPrefix:ie,vars:se};if(typeof be.generateSpacing=="function"&&(be.spacing=be.generateSpacing()),Ye){const je=z[Ye];je&&typeof je=="object"&&Object.keys(je).forEach(Be=>{je[Be]&&typeof je[Be]=="object"?be[Be]={...be[Be],...je[Be]}:be[Be]=je[Be]})}return c?c(be):be},[I,Ie,oe,z,ie]),Ze=I.colorSchemeSelector;ln(()=>{if(Ie&&C&&Ze&&Ze!=="media"){const Ye=Ze;let se=Ze;if(Ye==="class"&&(se=".%s"),Ye==="data"&&(se="[data-%s]"),Ye?.startsWith("data-")&&!Ye.includes("%s")&&(se=`[${Ye}="%s"]`),se.startsWith("."))C.classList.remove(...ae.map(be=>se.substring(1).replace("%s",be))),C.classList.add(se.substring(1).replace("%s",Ie));else{const be=se.replace("%s",Ie).match(/\[([^\]]+)\]/);if(be){const[je,Be]=be[1].split("=");Be||ae.forEach(st=>{C.removeAttribute(je.replace(Ie,st))}),C.setAttribute(je,Be?Be.replace(/"|'/g,""):"")}else C.setAttribute(se,Ie)}}},[Ie,Ze,C,ae]),A.useEffect(()=>{let Ye;if(T&&U.current&&$){const se=$.createElement("style");se.appendChild($.createTextNode(mM)),$.head.appendChild(se),window.getComputedStyle($.body),Ye=setTimeout(()=>{$.head.removeChild(se)},1)}return()=>{clearTimeout(Ye)}},[Ie,T,$]),A.useEffect(()=>(U.current=!0,()=>{U.current=!1}),[]);const Xe=A.useMemo(()=>({allColorSchemes:ae,colorScheme:Ie,darkColorScheme:Me,lightColorScheme:nt,mode:Ee,setColorScheme:mt,setMode:Le,systemMode:Ae}),[ae,Ie,Me,nt,Ee,mt,Le,Ae,it.colorSchemeSelector]);let we=!0;(H||I.cssVariables===!1||Q&&K?.cssVarPrefix===ie)&&(we=!1);const at=B.jsxs(A.Fragment,{children:[B.jsx(yC,{themeId:te?e:void 0,theme:it,children:P}),we&&B.jsx(VE,{styles:it.generateStyleSheets?.()||[]})]});return Q?at:B.jsx(f.Provider,{value:Xe,children:at})}const w=typeof l=="string"?l:l.light,b=typeof l=="string"?l:l.dark;return{CssVarsProvider:y,useColorScheme:g,getInitColorSchemeScript:k=>uM({colorSchemeStorageKey:o,defaultLightColorScheme:w,defaultDarkColorScheme:b,modeStorageKey:n,...k})}}function vM(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const b4=(t,e,r,n=[])=>{let o=t;e.forEach((i,l)=>{l===e.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},yM=(t,e,r)=>{function n(o,i=[],l=[]){Object.entries(o).forEach(([c,d])=>{(!r||r&&!r([...i,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...i,c],Array.isArray(d)?[...l,c]:l):e([...i,c],d,l))})}n(t)},bM=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Tm(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},i={},l={};return yM(t,(c,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(c,d))){const g=`--${r?`${r}-`:""}${c.join("-")}`,u=bM(c,d);Object.assign(o,{[g]:u}),b4(i,c,`var(${g})`,f),b4(l,c,`var(${g}, ${u})`,f)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:l}}function xM(t,e={}){const{getSelector:r=E,disableCssColorScheme:n,colorSchemeSelector:o}=e,{colorSchemes:i={},components:l,defaultColorScheme:c="light",...d}=t,{vars:f,css:g,varsWithDefaults:u}=Tm(d,e);let m=u;const y={},{[c]:w,...b}=i;if(Object.entries(b||{}).forEach(([_,R])=>{const{vars:M,css:T,varsWithDefaults:O}=Tm(R,e);m=jr(m,O),y[_]={css:T,vars:M}}),w){const{css:_,vars:R,varsWithDefaults:M}=Tm(w,e);m=jr(m,M),y[c]={css:_,vars:R}}function E(_,R){let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),_){if(M==="media")return t.defaultColorScheme===_?":root":{[`@media (prefers-color-scheme: ${i[_]?.palette?.mode||_})`]:{":root":R}};if(M)return t.defaultColorScheme===_?`:root, ${M.replace("%s",String(_))}`:M.replace("%s",String(_))}return":root"}return{vars:m,generateThemeVars:()=>{let _={...f};return Object.entries(y).forEach(([,{vars:R}])=>{_=jr(_,R)}),_},generateStyleSheets:()=>{const _=[],R=t.defaultColorScheme||"light";function M(N,$){Object.keys($).length&&_.push(typeof N=="string"?{[N]:{...$}}:N)}M(r(void 0,{...g}),g);const{[R]:T,...O}=y;if(T){const{css:N}=T,$=i[R]?.palette?.mode,C=!n&&$?{colorScheme:$,...N}:{...N};M(r(R,{...C}),C)}return Object.entries(O).forEach(([N,{css:$}])=>{const C=i[N]?.palette?.mode,L=!n&&C?{colorScheme:C,...$}:{...$};M(r(N,{...L}),L)}),_}}}function wM(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const SM=(t,e)=>t.filter(r=>e.includes(r)),gl=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((o,i)=>{r((l,c)=>{i<=t.keys.length-1&&(i===0?Object.assign(l,c):l[t.up(t.keys[i])]=c)},o)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:SM(t.keys,Object.keys(e))).forEach(i=>{if(t.keys.includes(i)){const l=e[i];l!==void 0&&r((c,d)=>{n===i?Object.assign(c,d):c[t.up(i)]=d},l)}}):(typeof e=="number"||typeof e=="string")&&r((o,i)=>{Object.assign(o,i)},e)};function fd(t){return`--Grid-${t}Spacing`}function ef(t){return`--Grid-parent-${t}Spacing`}const x4="--Grid-columns",Zs="--Grid-parent-columns",EM=({theme:t,ownerState:e})=>{const r={};return gl(t.breakpoints,e.size,(n,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Zs}) - (var(${Zs}) - ${o}) * (var(${ef("column")}) / var(${Zs})))`}),n(r,i)}),r},CM=({theme:t,ownerState:e})=>{const r={};return gl(t.breakpoints,e.offset,(n,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Zs}) + var(${ef("column")}) * ${o} / var(${Zs}))`}),n(r,i)}),r},TM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={[x4]:12};return gl(t.breakpoints,e.columns,(n,o)=>{const i=o??12;n(r,{[x4]:i,"> *":{[Zs]:i}})}),r},kM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return gl(t.breakpoints,e.rowSpacing,(n,o)=>{const i=typeof o=="string"?o:t.spacing?.(o);n(r,{[fd("row")]:i,"> *":{[ef("row")]:i}})}),r},_M=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return gl(t.breakpoints,e.columnSpacing,(n,o)=>{const i=typeof o=="string"?o:t.spacing?.(o);n(r,{[fd("column")]:i,"> *":{[ef("column")]:i}})}),r},OM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return gl(t.breakpoints,e.direction,(n,o)=>{n(r,{flexDirection:o})}),r},RM=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${fd("row")}) var(${fd("column")})`}}),MM=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},PM=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([o,i])=>{r(i)&&n.push(`spacing-${o}-${String(i)}`)}),n}return[]},AM=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`];function IM(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(r=>{t[r]!==void 0&&delete t[r]})}const DM=Vd(),NM=FR("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function $M(t){return zR({props:t,name:"MuiGrid",defaultTheme:DM})}function LM(t={}){const{createStyledComponent:e=NM,useThemeProps:r=$M,useTheme:n=cu,componentName:o="MuiGrid"}=t,i=(f,g)=>{const{container:u,direction:m,spacing:y,wrap:w,size:b}=f,E={root:["root",u&&"container",w!=="wrap"&&`wrap-xs-${String(w)}`,...AM(m),...MM(b),...u?PM(y,g.breakpoints.keys[0]):[]]};return Ue(E,k=>qe(o,k),{})};function l(f,g,u=()=>!0){const m={};return f===null||(Array.isArray(f)?f.forEach((y,w)=>{y!==null&&u(y)&&g.keys[w]&&(m[g.keys[w]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const w=f[y];w!=null&&u(w)&&(m[y]=w)}):m[g.keys[0]]=f),m}const c=e(TM,_M,kM,EM,OM,RM,CM),d=A.forwardRef(function(g,u){const m=n(),y=r(g),w=by(y);IM(w,m.breakpoints);const{className:b,children:E,columns:k=12,container:P=!1,component:_="div",direction:R="row",wrap:M="wrap",size:T={},offset:O={},spacing:N=0,rowSpacing:$=N,columnSpacing:C=N,unstable_level:L=0,...H}=w,W=l(T,m.breakpoints,I=>I!==!1),X=l(O,m.breakpoints),U=g.columns??(L?void 0:k),K=g.spacing??(L?void 0:N),ee=g.rowSpacing??g.spacing??(L?void 0:$),Q=g.columnSpacing??g.spacing??(L?void 0:C),G={...w,level:L,columns:U,container:P,direction:R,wrap:M,spacing:K,rowSpacing:ee,columnSpacing:Q,size:W,offset:X},te=i(G,m);return B.jsx(c,{ref:u,as:_,ownerState:G,className:Se(te.root,b),...H,children:A.Children.map(E,I=>A.isValidElement(I)&&td(I,["Grid"])&&P&&I.props.container?A.cloneElement(I,{unstable_level:I.props?.unstable_level??L+1}):I)})});return d.muiName="Grid",d}const Xc={black:"#000",white:"#fff"},fv={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ps={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ds={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},_r={100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},fs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},hs={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ms={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function xC(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xc.white,default:Xc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const BM=xC();function wC(){return{text:{primary:Xc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const w4=wC();function S4(t,e,r,n){const o=n.light||n,i=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=Jd(t.main,o):e==="dark"&&(t.dark=Yd(t.main,i)))}function FM(t="light"){return t==="dark"?{main:fs[200],light:fs[50],dark:fs[400]}:{main:fs[700],light:fs[400],dark:fs[800]}}function zM(t="light"){return t==="dark"?{main:ps[200],light:ps[50],dark:ps[400]}:{main:ps[500],light:ps[300],dark:ps[700]}}function jM(t="light"){return t==="dark"?{main:ds[500],light:ds[300],dark:ds[700]}:{main:ds[700],light:ds[400],dark:ds[800]}}function HM(t="light"){return t==="dark"?{main:hs[400],light:hs[300],dark:hs[700]}:{main:hs[700],light:hs[500],dark:hs[900]}}function qM(t="light"){return t==="dark"?{main:ms[400],light:ms[300],dark:ms[700]}:{main:ms[800],light:ms[500],dark:ms[900]}}function WM(t="light"){return t==="dark"?{main:_r[400],light:_r[300],dark:_r[700]}:{main:"#ed6c02",light:_r[500],dark:_r[900]}}function Cy(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=t,i=t.primary||FM(e),l=t.secondary||zM(e),c=t.error||jM(e),d=t.info||HM(e),f=t.success||qM(e),g=t.warning||WM(e);function u(b){return VR(b,w4.text.primary)>=r?w4.text.primary:BM.text.primary}const m=({color:b,name:E,mainShade:k=500,lightShade:P=300,darkShade:_=700})=>{if(b={...b},!b.main&&b[k]&&(b.main=b[k]),!b.hasOwnProperty("main"))throw new Error(Ko(11,E?` (${E})`:"",k));if(typeof b.main!="string")throw new Error(Ko(12,E?` (${E})`:"",JSON.stringify(b.main)));return S4(b,"light",P,n),S4(b,"dark",_,n),b.contrastText||(b.contrastText=u(b.main)),b};let y;return e==="light"?y=xC():e==="dark"&&(y=wC()),jr({common:{...Xc},mode:e,primary:m({color:i,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:g,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:f,name:"success"}),grey:fv,contrastThreshold:r,getContrastText:u,augmentColor:m,tonalOffset:n,...y},o)}function UM(t){const e={};return Object.entries(t).forEach(n=>{const[o,i]=n;typeof i=="object"&&(e[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),e}function XM(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function VM(t){return Math.round(t*1e5)/1e5}const E4={textTransform:"uppercase"},C4='"Roboto", "Helvetica", "Arial", sans-serif';function SC(t,e){const{fontFamily:r=C4,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:g,...u}=typeof e=="function"?e(t):e,m=n/14,y=g||(E=>`${E/d*m}rem`),w=(E,k,P,_,R)=>({fontFamily:r,fontWeight:E,fontSize:y(k),lineHeight:P,...r===C4?{letterSpacing:`${VM(_/k)}em`}:{},...R,...f}),b={h1:w(o,96,1.167,-1.5),h2:w(o,60,1.2,-.5),h3:w(i,48,1.167,0),h4:w(i,34,1.235,.25),h5:w(i,24,1.334,0),h6:w(l,20,1.6,.15),subtitle1:w(i,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(i,16,1.5,.15),body2:w(i,14,1.43,.15),button:w(l,14,1.75,.4,E4),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,E4),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jr({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c,...b},u,{clone:!1})}const GM=.2,KM=.14,YM=.12;function Wt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${GM})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${KM})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${YM})`].join(",")}const JM=["none",Wt(0,2,1,-1,0,1,1,0,0,1,3,0),Wt(0,3,1,-2,0,2,2,0,0,1,5,0),Wt(0,3,3,-2,0,3,4,0,0,1,8,0),Wt(0,2,4,-1,0,4,5,0,0,1,10,0),Wt(0,3,5,-1,0,5,8,0,0,1,14,0),Wt(0,3,5,-1,0,6,10,0,0,1,18,0),Wt(0,4,5,-2,0,7,10,1,0,2,16,1),Wt(0,5,5,-3,0,8,10,1,0,3,14,2),Wt(0,5,6,-3,0,9,12,1,0,3,16,2),Wt(0,6,6,-3,0,10,14,1,0,4,18,3),Wt(0,6,7,-4,0,11,15,1,0,4,20,3),Wt(0,7,8,-4,0,12,17,2,0,5,22,4),Wt(0,7,8,-4,0,13,19,2,0,5,24,4),Wt(0,7,9,-4,0,14,21,2,0,5,26,4),Wt(0,8,9,-5,0,15,22,2,0,6,28,5),Wt(0,8,10,-5,0,16,24,2,0,6,30,5),Wt(0,8,11,-5,0,17,26,2,0,6,32,5),Wt(0,9,11,-5,0,18,28,2,0,7,34,6),Wt(0,9,12,-6,0,19,29,2,0,7,36,6),Wt(0,10,13,-6,0,20,31,3,0,8,38,7),Wt(0,10,13,-6,0,21,33,3,0,8,40,7),Wt(0,10,14,-6,0,22,35,3,0,8,42,7),Wt(0,11,14,-7,0,23,36,3,0,9,44,8),Wt(0,11,15,-7,0,24,38,3,0,9,46,8)],QM={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ZM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function T4(t){return`${Math.round(t)}ms`}function eP(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function tP(t){const e={...QM,...t.easing},r={...ZM,...t.duration};return{getAutoHeightDuration:eP,create:(o=["all"],i={})=>{const{duration:l=r.standard,easing:c=e.easeInOut,delay:d=0,...f}=i;return(Array.isArray(o)?o:[o]).map(g=>`${g} ${typeof l=="string"?l:T4(l)} ${c} ${typeof d=="string"?d:T4(d)}`).join(",")},...t,easing:e,duration:r}}const rP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function nP(t){return wo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function EC(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let i=0;ijr(y,w),m),m.unstable_sxConfig={...lu,...f?.unstable_sxConfig},m.unstable_sx=function(w){return Bi({sx:w,theme:this})},m.toRuntimeSource=EC,m}function mv(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const oP=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=mv(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function CC(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function TC(t){return t==="dark"?oP:[]}function iP(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,i=Cy(e);return{palette:i,opacity:{...CC(i.mode),...r},overlays:n||TC(i.mode),...o}}function aP(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const sP=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],lP=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const l={};return sP(t.cssVarPrefix).forEach(c=>{l[c]=r[c],delete r[c]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:i?{[i.replace("%s",e)]:l,[`${n}, ${i.replace("%s",e)}`]:r}:{[n]:{...r,...l}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(e))}`}else if(e){if(i==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(i)return i.replace("%s",String(e))}return n};function cP(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function ne(t,e,r){!t[e]&&r&&(t[e]=r)}function Ec(t){return typeof t!="string"||!t.startsWith("hsl")?t:lC(t)}function qo(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Sc(Ec(t[e])))}function uP(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const po=t=>{try{return t()}catch{}},pP=(t="mui")=>vM(t);function km(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=iP({...e,palette:{mode:o,...e?.palette}});return}const{palette:i,...l}=hv({...r,palette:{mode:o,...e?.palette}});return t[n]={...e,palette:i,opacity:{...CC(o),...e?.opacity},overlays:e?.overlays||TC(o)},l}function dP(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:l=aP,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...f}=t,g=Object.keys(r)[0],u=n||(r.light&&g!=="light"?"light":g),m=pP(i),{[u]:y,light:w,dark:b,...E}=r,k={...E};let P=y;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(P=!0),!P)throw new Error(Ko(21,u));const _=km(k,P,f,u);w&&!k.light&&km(k,w,void 0,"light"),b&&!k.dark&&km(k,b,void 0,"dark");let R={defaultColorScheme:u,..._,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:k,font:{...UM(_.typography),..._.font},spacing:uP(f.spacing)};Object.keys(R.colorSchemes).forEach($=>{const C=R.colorSchemes[$].palette,L=H=>{const W=H.split("-"),X=W[1],U=W[2];return m(H,C[X][U])};if(C.mode==="light"&&(ne(C.common,"background","#fff"),ne(C.common,"onBackground","#000")),C.mode==="dark"&&(ne(C.common,"background","#000"),ne(C.common,"onBackground","#fff")),cP(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){ne(C.Alert,"errorColor",It(C.error.light,.6)),ne(C.Alert,"infoColor",It(C.info.light,.6)),ne(C.Alert,"successColor",It(C.success.light,.6)),ne(C.Alert,"warningColor",It(C.warning.light,.6)),ne(C.Alert,"errorFilledBg",L("palette-error-main")),ne(C.Alert,"infoFilledBg",L("palette-info-main")),ne(C.Alert,"successFilledBg",L("palette-success-main")),ne(C.Alert,"warningFilledBg",L("palette-warning-main")),ne(C.Alert,"errorFilledColor",po(()=>C.getContrastText(C.error.main))),ne(C.Alert,"infoFilledColor",po(()=>C.getContrastText(C.info.main))),ne(C.Alert,"successFilledColor",po(()=>C.getContrastText(C.success.main))),ne(C.Alert,"warningFilledColor",po(()=>C.getContrastText(C.warning.main))),ne(C.Alert,"errorStandardBg",Dt(C.error.light,.9)),ne(C.Alert,"infoStandardBg",Dt(C.info.light,.9)),ne(C.Alert,"successStandardBg",Dt(C.success.light,.9)),ne(C.Alert,"warningStandardBg",Dt(C.warning.light,.9)),ne(C.Alert,"errorIconColor",L("palette-error-main")),ne(C.Alert,"infoIconColor",L("palette-info-main")),ne(C.Alert,"successIconColor",L("palette-success-main")),ne(C.Alert,"warningIconColor",L("palette-warning-main")),ne(C.AppBar,"defaultBg",L("palette-grey-100")),ne(C.Avatar,"defaultBg",L("palette-grey-400")),ne(C.Button,"inheritContainedBg",L("palette-grey-300")),ne(C.Button,"inheritContainedHoverBg",L("palette-grey-A100")),ne(C.Chip,"defaultBorder",L("palette-grey-400")),ne(C.Chip,"defaultAvatarColor",L("palette-grey-700")),ne(C.Chip,"defaultIconColor",L("palette-grey-700")),ne(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(C.LinearProgress,"primaryBg",Dt(C.primary.main,.62)),ne(C.LinearProgress,"secondaryBg",Dt(C.secondary.main,.62)),ne(C.LinearProgress,"errorBg",Dt(C.error.main,.62)),ne(C.LinearProgress,"infoBg",Dt(C.info.main,.62)),ne(C.LinearProgress,"successBg",Dt(C.success.main,.62)),ne(C.LinearProgress,"warningBg",Dt(C.warning.main,.62)),ne(C.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.11)`),ne(C.Slider,"primaryTrack",Dt(C.primary.main,.62)),ne(C.Slider,"secondaryTrack",Dt(C.secondary.main,.62)),ne(C.Slider,"errorTrack",Dt(C.error.main,.62)),ne(C.Slider,"infoTrack",Dt(C.info.main,.62)),ne(C.Slider,"successTrack",Dt(C.success.main,.62)),ne(C.Slider,"warningTrack",Dt(C.warning.main,.62));const H=kp(C.background.default,.8);ne(C.SnackbarContent,"bg",H),ne(C.SnackbarContent,"color",po(()=>C.getContrastText(H))),ne(C.SpeedDialAction,"fabHoverBg",kp(C.background.paper,.15)),ne(C.StepConnector,"border",L("palette-grey-400")),ne(C.StepContent,"border",L("palette-grey-400")),ne(C.Switch,"defaultColor",L("palette-common-white")),ne(C.Switch,"defaultDisabledColor",L("palette-grey-100")),ne(C.Switch,"primaryDisabledColor",Dt(C.primary.main,.62)),ne(C.Switch,"secondaryDisabledColor",Dt(C.secondary.main,.62)),ne(C.Switch,"errorDisabledColor",Dt(C.error.main,.62)),ne(C.Switch,"infoDisabledColor",Dt(C.info.main,.62)),ne(C.Switch,"successDisabledColor",Dt(C.success.main,.62)),ne(C.Switch,"warningDisabledColor",Dt(C.warning.main,.62)),ne(C.TableCell,"border",Dt(Tp(C.divider,1),.88)),ne(C.Tooltip,"bg",Tp(C.grey[700],.92))}if(C.mode==="dark"){ne(C.Alert,"errorColor",Dt(C.error.light,.6)),ne(C.Alert,"infoColor",Dt(C.info.light,.6)),ne(C.Alert,"successColor",Dt(C.success.light,.6)),ne(C.Alert,"warningColor",Dt(C.warning.light,.6)),ne(C.Alert,"errorFilledBg",L("palette-error-dark")),ne(C.Alert,"infoFilledBg",L("palette-info-dark")),ne(C.Alert,"successFilledBg",L("palette-success-dark")),ne(C.Alert,"warningFilledBg",L("palette-warning-dark")),ne(C.Alert,"errorFilledColor",po(()=>C.getContrastText(C.error.dark))),ne(C.Alert,"infoFilledColor",po(()=>C.getContrastText(C.info.dark))),ne(C.Alert,"successFilledColor",po(()=>C.getContrastText(C.success.dark))),ne(C.Alert,"warningFilledColor",po(()=>C.getContrastText(C.warning.dark))),ne(C.Alert,"errorStandardBg",It(C.error.light,.9)),ne(C.Alert,"infoStandardBg",It(C.info.light,.9)),ne(C.Alert,"successStandardBg",It(C.success.light,.9)),ne(C.Alert,"warningStandardBg",It(C.warning.light,.9)),ne(C.Alert,"errorIconColor",L("palette-error-main")),ne(C.Alert,"infoIconColor",L("palette-info-main")),ne(C.Alert,"successIconColor",L("palette-success-main")),ne(C.Alert,"warningIconColor",L("palette-warning-main")),ne(C.AppBar,"defaultBg",L("palette-grey-900")),ne(C.AppBar,"darkBg",L("palette-background-paper")),ne(C.AppBar,"darkColor",L("palette-text-primary")),ne(C.Avatar,"defaultBg",L("palette-grey-600")),ne(C.Button,"inheritContainedBg",L("palette-grey-800")),ne(C.Button,"inheritContainedHoverBg",L("palette-grey-700")),ne(C.Chip,"defaultBorder",L("palette-grey-700")),ne(C.Chip,"defaultAvatarColor",L("palette-grey-300")),ne(C.Chip,"defaultIconColor",L("palette-grey-300")),ne(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(C.LinearProgress,"primaryBg",It(C.primary.main,.5)),ne(C.LinearProgress,"secondaryBg",It(C.secondary.main,.5)),ne(C.LinearProgress,"errorBg",It(C.error.main,.5)),ne(C.LinearProgress,"infoBg",It(C.info.main,.5)),ne(C.LinearProgress,"successBg",It(C.success.main,.5)),ne(C.LinearProgress,"warningBg",It(C.warning.main,.5)),ne(C.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.13)`),ne(C.Slider,"primaryTrack",It(C.primary.main,.5)),ne(C.Slider,"secondaryTrack",It(C.secondary.main,.5)),ne(C.Slider,"errorTrack",It(C.error.main,.5)),ne(C.Slider,"infoTrack",It(C.info.main,.5)),ne(C.Slider,"successTrack",It(C.success.main,.5)),ne(C.Slider,"warningTrack",It(C.warning.main,.5));const H=kp(C.background.default,.98);ne(C.SnackbarContent,"bg",H),ne(C.SnackbarContent,"color",po(()=>C.getContrastText(H))),ne(C.SpeedDialAction,"fabHoverBg",kp(C.background.paper,.15)),ne(C.StepConnector,"border",L("palette-grey-600")),ne(C.StepContent,"border",L("palette-grey-600")),ne(C.Switch,"defaultColor",L("palette-grey-300")),ne(C.Switch,"defaultDisabledColor",L("palette-grey-600")),ne(C.Switch,"primaryDisabledColor",It(C.primary.main,.55)),ne(C.Switch,"secondaryDisabledColor",It(C.secondary.main,.55)),ne(C.Switch,"errorDisabledColor",It(C.error.main,.55)),ne(C.Switch,"infoDisabledColor",It(C.info.main,.55)),ne(C.Switch,"successDisabledColor",It(C.success.main,.55)),ne(C.Switch,"warningDisabledColor",It(C.warning.main,.55)),ne(C.TableCell,"border",It(Tp(C.divider,1),.68)),ne(C.Tooltip,"bg",Tp(C.grey[700],.92))}qo(C.background,"default"),qo(C.background,"paper"),qo(C.common,"background"),qo(C.common,"onBackground"),qo(C,"divider"),Object.keys(C).forEach(H=>{const W=C[H];H!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&ne(C[H],"mainChannel",Sc(Ec(W.main))),W.light&&ne(C[H],"lightChannel",Sc(Ec(W.light))),W.dark&&ne(C[H],"darkChannel",Sc(Ec(W.dark))),W.contrastText&&ne(C[H],"contrastTextChannel",Sc(Ec(W.contrastText))),H==="text"&&(qo(C[H],"primary"),qo(C[H],"secondary")),H==="action"&&(W.active&&qo(C[H],"active"),W.selected&&qo(C[H],"selected")))})}),R=e.reduce(($,C)=>jr($,C),R);const M={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:lP(R)},{vars:T,generateThemeVars:O,generateStyleSheets:N}=xM(R,M);return R.vars=T,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([$,C])=>{R[$]=C}),R.generateThemeVars=O,R.generateStyleSheets=N,R.generateSpacing=function(){return QE(f.spacing,vy(this))},R.getColorSchemeSelector=wM(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=l,R.unstable_sxConfig={...lu,...f?.unstable_sxConfig},R.unstable_sx=function(C){return Bi({sx:C,theme:this})},R.toRuntimeSource=EC,R}function k4(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:Cy({...r===!0?{}:r.palette,mode:e})})}function Vc(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...l}=t,c=i||"light",d=o?.[c],f={...o,...r?{[c]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return hv(t,...e);let g=r;"palette"in t||f[c]&&(f[c]!==!0?g=f[c].palette:c==="dark"&&(g={mode:"dark"}));const u=hv({...t,palette:g},...e);return u.defaultColorScheme=c,u.colorSchemes=f,u.palette.mode==="light"&&(u.colorSchemes.light={...f.light!==!0&&f.light,palette:u.palette},k4(u,"dark",f.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:u.palette},k4(u,"light",f.light)),u}return!r&&!("light"in f)&&c==="light"&&(f.light=!0),dP({...l,colorSchemes:f,defaultColorScheme:c,...typeof n!="boolean"&&n},...e)}const Ty=Vc();function Zo(){const t=cu(Ty);return t[eo]||t}function kC(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Er=t=>kC(t)&&t!=="classes",ce=oC({themeId:eo,defaultTheme:Ty,rootShouldForwardProp:Er});function fP({theme:t,...e}){const r=eo in t?t[eo]:void 0;return B.jsx(yC,{...e,themeId:r?eo:void 0,theme:r||t})}const _p={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:hP}=gM({themeId:eo,theme:()=>Vc({cssVariables:!0}),colorSchemeStorageKey:_p.colorSchemeStorageKey,modeStorageKey:_p.modeStorageKey,defaultColorScheme:{light:_p.defaultLightColorScheme,dark:_p.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:SC(t.palette,t.typography)};return e.unstable_sx=function(n){return Bi({sx:n,theme:this})},e}}),mP=hP;function gP({theme:t,...e}){const r=A.useMemo(()=>{if(typeof t=="function")return t;const n=eo in t?t[eo]:t;return"colorSchemes"in n?null:"vars"in n?t:{...t,vars:null}},[t]);return r?B.jsx(fP,{theme:r,...e}):B.jsx(mP,{theme:t,...e})}function vP(t){return B.jsx(ZE,{...t,defaultTheme:Ty,themeId:eo})}function yP(t){return function(r){return B.jsx(vP,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function bP(){return by}const Qe=lM;function Ke(t){return aM(t)}function xP(t){return qe("MuiSvgIcon",t)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wP=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${ye(e)}`,`fontSize${ye(r)}`]};return Ue(o,xP,n)},SP=ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${ye(r.color)}`],e[`fontSize${ye(r.fontSize)}`]]}})(Qe(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),gv=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:l="inherit",component:c="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:g=!1,titleAccess:u,viewBox:m="0 0 24 24",...y}=n,w=A.isValidElement(o)&&o.type==="svg",b={...n,color:l,component:c,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:g,viewBox:m,hasSvgAsChild:w},E={};g||(E.viewBox=m);const k=wP(b);return B.jsxs(SP,{as:c,className:Se(k.root,i),focusable:"false",color:f,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:r,...E,...y,...w&&o.props,ownerState:b,children:[w?o.props.children:o,u?B.jsx("title",{children:u}):null]})});gv.muiName="SvgIcon";function He(t,e){function r(n,o){return B.jsx(gv,{"data-testid":`${e}Icon`,ref:o,...n,children:t})}return r.muiName=gv.muiName,A.memo(A.forwardRef(r))}function _C(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const i=typeof e=="function"?e(o):e,l=typeof t=="function"?t({...o,...i}):t,c=Se(o?.className,i?.className,l?.className);return{...i,...l,...!!c&&{className:c},...i?.style&&l?.style&&{style:{...i.style,...l.style}},...i?.sx&&l?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=e,n=Se(r?.className,t?.className);return{...e,...t,...!!n&&{className:n},...r?.style&&t?.style&&{style:{...r.style,...t.style}},...r?.sx&&t?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function vv(){return vv=Object.assign?Object.assign.bind():function(t){for(var e=1;et.scrollTop;function md(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function MP(t){return qe("MuiPaper",t)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const PP=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,i={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return Ue(i,MP,o)},AP=ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Qe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),vl=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiPaper"}),o=Zo(),{className:i,component:l="div",elevation:c=1,square:d=!1,variant:f="elevation",...g}=n,u={...n,component:l,elevation:c,square:d,variant:f},m=PP(u);return B.jsx(AP,{as:l,ownerState:u,className:Se(m.root,i),ref:r,...g,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Nt("#fff",mv(c))}, ${Nt("#fff",mv(c))})`}},...g.style}})});function ct(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=e,{component:f,slots:g={[t]:void 0},slotProps:u={[t]:void 0},...m}=i,y=g[t]||n,w=hC(u[t],o),{props:{component:b,...E},internalRef:k}=fC({className:r,...d,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:w}),P=Sr(k,w?.ref,e.ref),_=t==="root"?b||f:b,R=pC(y,{...t==="root"&&!f&&!g[t]&&l,...t!=="root"&&!g[t]&&l,...E,..._&&!c&&{as:_},..._&&c&&{component:_},ref:P},o);return[y,R]}class gd{static create(){return new gd}static use(){const e=cC(gd.create).current,[r,n]=A.useState(!1);return e.shouldMount=r,e.setShouldMount=n,A.useEffect(e.mountEffect,[r]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=DP(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function IP(){return gd.use()}function DP(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function NP(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:l,in:c,onExited:d,timeout:f}=t,[g,u]=A.useState(!1),m=Se(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:l,height:l,top:-(l/2)+i,left:-(l/2)+o},w=Se(r.child,g&&r.childLeaving,n&&r.childPulsate);return!c&&!g&&u(!0),A.useEffect(()=>{if(!c&&d!=null){const b=setTimeout(d,f);return()=>{clearTimeout(b)}}},[d,c,f]),B.jsx("span",{className:m,style:y,children:B.jsx("span",{className:w})})}const Dn=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xv=550,$P=80,LP=Hi` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,BP=Hi` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,FP=Hi` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,zP=ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),jP=ce(NP,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${Dn.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${LP}; - animation-duration: ${xv}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - &.${Dn.ripplePulsate} { - animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; - } - - & .${Dn.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${Dn.childLeaving} { - opacity: 0; - animation-name: ${BP}; - animation-duration: ${xv}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - & .${Dn.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${FP}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,HP=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l,...c}=n,[d,f]=A.useState([]),g=A.useRef(0),u=A.useRef(null);A.useEffect(()=>{u.current&&(u.current(),u.current=null)},[d]);const m=A.useRef(!1),y=Us(),w=A.useRef(null),b=A.useRef(null),E=A.useCallback(R=>{const{pulsate:M,rippleX:T,rippleY:O,rippleSize:N,cb:$}=R;f(C=>[...C,B.jsx(jP,{classes:{ripple:Se(i.ripple,Dn.ripple),rippleVisible:Se(i.rippleVisible,Dn.rippleVisible),ripplePulsate:Se(i.ripplePulsate,Dn.ripplePulsate),child:Se(i.child,Dn.child),childLeaving:Se(i.childLeaving,Dn.childLeaving),childPulsate:Se(i.childPulsate,Dn.childPulsate)},timeout:xv,pulsate:M,rippleX:T,rippleY:O,rippleSize:N},g.current)]),g.current+=1,u.current=$},[i]),k=A.useCallback((R={},M={},T=()=>{})=>{const{pulsate:O=!1,center:N=o||M.pulsate,fakeElement:$=!1}=M;if(R?.type==="mousedown"&&m.current){m.current=!1;return}R?.type==="touchstart"&&(m.current=!0);const C=$?null:b.current,L=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,W,X;if(N||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)H=Math.round(L.width/2),W=Math.round(L.height/2);else{const{clientX:U,clientY:K}=R.touches&&R.touches.length>0?R.touches[0]:R;H=Math.round(U-L.left),W=Math.round(K-L.top)}if(N)X=Math.sqrt((2*L.width**2+L.height**2)/3),X%2===0&&(X+=1);else{const U=Math.max(Math.abs((C?C.clientWidth:0)-H),H)*2+2,K=Math.max(Math.abs((C?C.clientHeight:0)-W),W)*2+2;X=Math.sqrt(U**2+K**2)}R?.touches?w.current===null&&(w.current=()=>{E({pulsate:O,rippleX:H,rippleY:W,rippleSize:X,cb:T})},y.start($P,()=>{w.current&&(w.current(),w.current=null)})):E({pulsate:O,rippleX:H,rippleY:W,rippleSize:X,cb:T})},[o,E,y]),P=A.useCallback(()=>{k({},{pulsate:!0})},[k]),_=A.useCallback((R,M)=>{if(y.clear(),R?.type==="touchend"&&w.current){w.current(),w.current=null,y.start(0,()=>{_(R,M)});return}w.current=null,f(T=>T.length>0?T.slice(1):T),u.current=M},[y]);return A.useImperativeHandle(r,()=>({pulsate:P,start:k,stop:_}),[P,k,_]),B.jsx(zP,{className:Se(Dn.root,i.root,l),ref:b,...c,children:B.jsx(_y,{component:null,exit:!0,children:d})})});function qP(t){return qe("MuiButtonBase",t)}const WP=We("MuiButtonBase",["root","disabled","focusVisible"]),UP=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,l=Ue({root:["root",e&&"disabled",r&&"focusVisible"]},qP,o);return r&&n&&(l.root+=` ${n}`),l},XP=ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${WP.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),qi=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:c,component:d="button",disabled:f=!1,disableRipple:g=!1,disableTouchRipple:u=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:w="a",onBlur:b,onClick:E,onContextMenu:k,onDragLeave:P,onFocus:_,onFocusVisible:R,onKeyDown:M,onKeyUp:T,onMouseDown:O,onMouseLeave:N,onMouseUp:$,onTouchEnd:C,onTouchMove:L,onTouchStart:H,tabIndex:W=0,TouchRippleProps:X,touchRippleRef:U,type:K,...ee}=n,Q=A.useRef(null),G=IP(),te=Sr(G.ref,U),[I,z]=A.useState(!1);f&&I&&z(!1),A.useImperativeHandle(o,()=>({focusVisible:()=>{z(!0),Q.current.focus()}}),[]);const oe=G.shouldMount&&!g&&!f;A.useEffect(()=>{I&&m&&!g&&G.pulsate()},[g,m,I,G]);const ie=Wo(G,"start",O,u),re=Wo(G,"stop",k,u),ae=Wo(G,"stop",P,u),he=Wo(G,"stop",$,u),me=Wo(G,"stop",we=>{I&&we.preventDefault(),N&&N(we)},u),ve=Wo(G,"start",H,u),xe=Wo(G,"stop",C,u),Le=Wo(G,"stop",L,u),Ae=Wo(G,"stop",we=>{ol(we.target)||z(!1),b&&b(we)},!1),nt=$n(we=>{Q.current||(Q.current=we.currentTarget),ol(we.target)&&(z(!0),R&&R(we)),_&&_(we)}),Me=()=>{const we=Q.current;return d&&d!=="button"&&!(we.tagName==="A"&&we.href)},_e=$n(we=>{m&&!we.repeat&&I&&we.key===" "&&G.stop(we,()=>{G.start(we)}),we.target===we.currentTarget&&Me()&&we.key===" "&&we.preventDefault(),M&&M(we),we.target===we.currentTarget&&Me()&&we.key==="Enter"&&!f&&(we.preventDefault(),E&&E(we))}),mt=$n(we=>{m&&we.key===" "&&I&&!we.defaultPrevented&&G.stop(we,()=>{G.pulsate(we)}),T&&T(we),E&&we.target===we.currentTarget&&Me()&&we.key===" "&&!we.defaultPrevented&&E(we)});let Ee=d;Ee==="button"&&(ee.href||ee.to)&&(Ee=w);const Ie={};Ee==="button"?(Ie.type=K===void 0?"button":K,Ie.disabled=f):(!ee.href&&!ee.to&&(Ie.role="button"),f&&(Ie["aria-disabled"]=f));const it=Sr(r,Q),Ze={...n,centerRipple:i,component:d,disabled:f,disableRipple:g,disableTouchRipple:u,focusRipple:m,tabIndex:W,focusVisible:I},Xe=UP(Ze);return B.jsxs(XP,{as:Ee,className:Se(Xe.root,c),ownerState:Ze,onBlur:Ae,onClick:E,onContextMenu:re,onFocus:nt,onKeyDown:_e,onKeyUp:mt,onMouseDown:ie,onMouseLeave:me,onMouseUp:he,onDragLeave:ae,onTouchEnd:xe,onTouchMove:Le,onTouchStart:ve,ref:it,tabIndex:f?-1:W,type:K,...Ie,...ee,children:[l,oe?B.jsx(HP,{ref:te,center:i,...X}):null]})});function Wo(t,e,r,n=!1){return $n(o=>(r&&r(o),n||t[e](o),!0))}function VP(t){return typeof t.main=="string"}function GP(t,e=[]){if(!VP(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function ar(t=[]){return([,e])=>e&&GP(e,t)}function KP(t){return qe("MuiCircularProgress",t)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ki=44,wv=Hi` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`,Sv=Hi` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: -126px; - } -`,YP=typeof wv!="string"?dl` - animation: ${wv} 1.4s linear infinite; - `:null,JP=typeof Sv!="string"?dl` - animation: ${Sv} 1.4s ease-in-out infinite; - `:null,QP=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,i={root:["root",r,`color${ye(n)}`],svg:["svg"],circle:["circle",`circle${ye(r)}`,o&&"circleDisableShrink"]};return Ue(i,KP,e)},ZP=ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${ye(r.color)}`]]}})(Qe(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:YP||{animation:`${wv} 1.4s linear infinite`}},...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),eA=ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),tA=ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${ye(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Qe(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:JP||{animation:`${Sv} 1.4s ease-in-out infinite`}}]}))),Oy=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,size:c=40,style:d,thickness:f=3.6,value:g=0,variant:u="indeterminate",...m}=n,y={...n,color:i,disableShrink:l,size:c,thickness:f,value:g,variant:u},w=QP(y),b={},E={},k={};if(u==="determinate"){const P=2*Math.PI*((ki-f)/2);b.strokeDasharray=P.toFixed(3),k["aria-valuenow"]=Math.round(g),b.strokeDashoffset=`${((100-g)/100*P).toFixed(3)}px`,E.transform="rotate(-90deg)"}return B.jsx(ZP,{className:Se(w.root,o),style:{width:c,height:c,...E,...d},ownerState:y,ref:r,role:"progressbar",...k,...m,children:B.jsx(eA,{className:w.svg,ownerState:y,viewBox:`${ki/2} ${ki/2} ${ki} ${ki}`,children:B.jsx(tA,{className:w.circle,style:b,ownerState:y,cx:ki,cy:ki,r:(ki-f)/2,fill:"none",strokeWidth:f})})})});function rA(t){return qe("MuiIconButton",t)}const O4=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),nA=t=>{const{classes:e,disabled:r,color:n,edge:o,size:i,loading:l}=t,c={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${ye(n)}`,o&&`edge${ye(o)}`,`size${ye(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ue(c,rA,e)},oA=ce(qi,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${ye(r.color)}`],r.edge&&e[`edge${ye(r.edge)}`],e[`size${ye(r.size)}`]]}})(Qe(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Qe(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${O4.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${O4.loading}`]:{color:"transparent"}}))),iA=ce("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),hr=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiIconButton"}),{edge:o=!1,children:i,className:l,color:c="default",disabled:d=!1,disableFocusRipple:f=!1,size:g="medium",id:u,loading:m=null,loadingIndicator:y,...w}=n,b=Ra(u),E=y??B.jsx(Oy,{"aria-labelledby":b,color:"inherit",size:16}),k={...n,edge:o,color:c,disabled:d,disableFocusRipple:f,loading:m,loadingIndicator:E,size:g},P=nA(k);return B.jsxs(oA,{id:m?b:u,className:Se(P.root,l),centerRipple:!0,focusRipple:!f,disabled:d||m,ref:r,...w,ownerState:k,children:[typeof m=="boolean"&&B.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:B.jsx(iA,{className:P.loadingIndicator,ownerState:k,children:m&&E})}),i]})});function aA(t){return qe("MuiTypography",t)}const R4=We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),sA={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},lA=bP(),cA=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:l}=t,c={root:["root",i,t.align!=="inherit"&&`align${ye(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Ue(c,aA,l)},uA=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${ye(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Qe(({theme:t})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([e,r])=>e!=="inherit"&&r&&typeof r=="object").map(([e,r])=>({props:{variant:e},style:r})),...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette?.text||{}).filter(([,e])=>typeof e=="string").map(([e])=>({props:{color:`text${ye(e)}`},style:{color:(t.vars||t).palette.text[e]}})),{props:({ownerState:e})=>e.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),M4={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Qn=A.forwardRef(function(e,r){const{color:n,...o}=Ke({props:e,name:"MuiTypography"}),i=!sA[n],l=lA({...o,...i&&{color:n}}),{align:c="inherit",className:d,component:f,gutterBottom:g=!1,noWrap:u=!1,paragraph:m=!1,variant:y="body1",variantMapping:w=M4,...b}=l,E={...l,align:c,color:n,className:d,component:f,gutterBottom:g,noWrap:u,paragraph:m,variant:y,variantMapping:w},k=f||(m?"p":w[y]||M4[y])||"span",P=cA(E);return B.jsx(uA,{as:k,ref:r,className:Se(P.root,d),...b,ownerState:E,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...b.style}})});function pA(t){return qe("MuiAppBar",t)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const dA=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${ye(e)}`,`position${ye(r)}`]};return Ue(o,pA,n)},P4=(t,e)=>t?`${t?.replace(")","")}, ${e})`:e,fA=ce(vl,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${ye(r.position)}`],e[`color${ye(r.color)}`]]}})(Qe(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(ar(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].contrastText}})),{props:e=>e.enableColorOnDark===!0&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>e.enableColorOnDark===!1&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?P4(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?P4(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),AC=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:l=!1,position:c="fixed",...d}=n,f={...n,color:i,position:c,enableColorOnDark:l},g=dA(f);return B.jsx(fA,{square:!0,component:"header",ownerState:f,elevation:4,className:Se(g.root,o,c==="fixed"&&"mui-fixed"),ref:r,...d})});var nn="top",Bn="bottom",Fn="right",on="left",Ry="auto",uu=[nn,Bn,Fn,on],il="start",Gc="end",hA="clippingParents",IC="viewport",ic="popper",mA="reference",A4=uu.reduce(function(t,e){return t.concat([e+"-"+il,e+"-"+Gc])},[]),DC=[].concat(uu,[Ry]).reduce(function(t,e){return t.concat([e,e+"-"+il,e+"-"+Gc])},[]),gA="beforeRead",vA="read",yA="afterRead",bA="beforeMain",xA="main",wA="afterMain",SA="beforeWrite",EA="write",CA="afterWrite",TA=[gA,vA,yA,bA,xA,wA,SA,EA,CA];function Oo(t){return t?(t.nodeName||"").toLowerCase():null}function Sn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ca(t){var e=Sn(t).Element;return t instanceof e||t instanceof Element}function Ln(t){var e=Sn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function My(t){if(typeof ShadowRoot>"u")return!1;var e=Sn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function kA(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},i=e.elements[r];!Ln(i)||!Oo(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?i.removeAttribute(l):i.setAttribute(l,c===!0?"":c)}))})}function _A(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],i=e.attributes[n]||{},l=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),c=l.reduce(function(d,f){return d[f]="",d},{});!Ln(o)||!Oo(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(d){o.removeAttribute(d)}))})}}const OA={name:"applyStyles",enabled:!0,phase:"write",fn:kA,effect:_A,requires:["computeStyles"]};function To(t){return t.split("-")[0]}var wa=Math.max,vd=Math.min,al=Math.round;function Ev(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function NC(){return!/^((?!chrome|android).)*safari/i.test(Ev())}function sl(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,i=1;e&&Ln(t)&&(o=t.offsetWidth>0&&al(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&al(n.height)/t.offsetHeight||1);var l=Ca(t)?Sn(t):window,c=l.visualViewport,d=!NC()&&r,f=(n.left+(d&&c?c.offsetLeft:0))/o,g=(n.top+(d&&c?c.offsetTop:0))/i,u=n.width/o,m=n.height/i;return{width:u,height:m,top:g,right:f+u,bottom:g+m,left:f,x:f,y:g}}function Py(t){var e=sl(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function $C(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&My(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Jo(t){return Sn(t).getComputedStyle(t)}function RA(t){return["table","td","th"].indexOf(Oo(t))>=0}function Wi(t){return((Ca(t)?t.ownerDocument:t.document)||window.document).documentElement}function tf(t){return Oo(t)==="html"?t:t.assignedSlot||t.parentNode||(My(t)?t.host:null)||Wi(t)}function I4(t){return!Ln(t)||Jo(t).position==="fixed"?null:t.offsetParent}function MA(t){var e=/firefox/i.test(Ev()),r=/Trident/i.test(Ev());if(r&&Ln(t)){var n=Jo(t);if(n.position==="fixed")return null}var o=tf(t);for(My(o)&&(o=o.host);Ln(o)&&["html","body"].indexOf(Oo(o))<0;){var i=Jo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function pu(t){for(var e=Sn(t),r=I4(t);r&&RA(r)&&Jo(r).position==="static";)r=I4(r);return r&&(Oo(r)==="html"||Oo(r)==="body"&&Jo(r).position==="static")?e:r||MA(t)||e}function Ay(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Dc(t,e,r){return wa(t,vd(e,r))}function PA(t,e,r){var n=Dc(t,e,r);return n>r?r:n}function LC(){return{top:0,right:0,bottom:0,left:0}}function BC(t){return Object.assign({},LC(),t)}function FC(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var AA=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,BC(typeof e!="number"?e:FC(e,uu))};function IA(t){var e,r=t.state,n=t.name,o=t.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,c=To(r.placement),d=Ay(c),f=[on,Fn].indexOf(c)>=0,g=f?"height":"width";if(!(!i||!l)){var u=AA(o.padding,r),m=Py(i),y=d==="y"?nn:on,w=d==="y"?Bn:Fn,b=r.rects.reference[g]+r.rects.reference[d]-l[d]-r.rects.popper[g],E=l[d]-r.rects.reference[d],k=pu(i),P=k?d==="y"?k.clientHeight||0:k.clientWidth||0:0,_=b/2-E/2,R=u[y],M=P-m[g]-u[w],T=P/2-m[g]/2+_,O=Dc(R,T,M),N=d;r.modifiersData[n]=(e={},e[N]=O,e.centerOffset=O-T,e)}}function DA(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||$C(e.elements.popper,o)&&(e.elements.arrow=o))}const NA={name:"arrow",enabled:!0,phase:"main",fn:IA,effect:DA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ll(t){return t.split("-")[1]}var $A={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LA(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:al(r*o)/o||0,y:al(n*o)/o||0}}function D4(t){var e,r=t.popper,n=t.popperRect,o=t.placement,i=t.variation,l=t.offsets,c=t.position,d=t.gpuAcceleration,f=t.adaptive,g=t.roundOffsets,u=t.isFixed,m=l.x,y=m===void 0?0:m,w=l.y,b=w===void 0?0:w,E=typeof g=="function"?g({x:y,y:b}):{x:y,y:b};y=E.x,b=E.y;var k=l.hasOwnProperty("x"),P=l.hasOwnProperty("y"),_=on,R=nn,M=window;if(f){var T=pu(r),O="clientHeight",N="clientWidth";if(T===Sn(r)&&(T=Wi(r),Jo(T).position!=="static"&&c==="absolute"&&(O="scrollHeight",N="scrollWidth")),T=T,o===nn||(o===on||o===Fn)&&i===Gc){R=Bn;var $=u&&T===M&&M.visualViewport?M.visualViewport.height:T[O];b-=$-n.height,b*=d?1:-1}if(o===on||(o===nn||o===Bn)&&i===Gc){_=Fn;var C=u&&T===M&&M.visualViewport?M.visualViewport.width:T[N];y-=C-n.width,y*=d?1:-1}}var L=Object.assign({position:c},f&&$A),H=g===!0?LA({x:y,y:b},Sn(r)):{x:y,y:b};if(y=H.x,b=H.y,d){var W;return Object.assign({},L,(W={},W[R]=P?"0":"",W[_]=k?"0":"",W.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",W))}return Object.assign({},L,(e={},e[R]=P?b+"px":"",e[_]=k?y+"px":"",e.transform="",e))}function BA(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,l=i===void 0?!0:i,c=r.roundOffsets,d=c===void 0?!0:c,f={placement:To(e.placement),variation:ll(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,D4(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,D4(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const FA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:BA,data:{}};var Rp={passive:!0};function zA(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,i=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,d=Sn(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&f.forEach(function(g){g.addEventListener("scroll",r.update,Rp)}),c&&d.addEventListener("resize",r.update,Rp),function(){i&&f.forEach(function(g){g.removeEventListener("scroll",r.update,Rp)}),c&&d.removeEventListener("resize",r.update,Rp)}}const jA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zA,data:{}};var HA={left:"right",right:"left",bottom:"top",top:"bottom"};function rd(t){return t.replace(/left|right|bottom|top/g,function(e){return HA[e]})}var qA={start:"end",end:"start"};function N4(t){return t.replace(/start|end/g,function(e){return qA[e]})}function Iy(t){var e=Sn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Dy(t){return sl(Wi(t)).left+Iy(t).scrollLeft}function WA(t,e){var r=Sn(t),n=Wi(t),o=r.visualViewport,i=n.clientWidth,l=n.clientHeight,c=0,d=0;if(o){i=o.width,l=o.height;var f=NC();(f||!f&&e==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:i,height:l,x:c+Dy(t),y:d}}function UA(t){var e,r=Wi(t),n=Iy(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=wa(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=wa(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Dy(t),d=-n.scrollTop;return Jo(o||r).direction==="rtl"&&(c+=wa(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:c,y:d}}function Ny(t){var e=Jo(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function zC(t){return["html","body","#document"].indexOf(Oo(t))>=0?t.ownerDocument.body:Ln(t)&&Ny(t)?t:zC(tf(t))}function Nc(t,e){var r;e===void 0&&(e=[]);var n=zC(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=Sn(n),l=o?[i].concat(i.visualViewport||[],Ny(n)?n:[]):n,c=e.concat(l);return o?c:c.concat(Nc(tf(l)))}function Cv(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function XA(t,e){var r=sl(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function $4(t,e,r){return e===IC?Cv(WA(t,r)):Ca(e)?XA(e,r):Cv(UA(Wi(t)))}function VA(t){var e=Nc(tf(t)),r=["absolute","fixed"].indexOf(Jo(t).position)>=0,n=r&&Ln(t)?pu(t):t;return Ca(n)?e.filter(function(o){return Ca(o)&&$C(o,n)&&Oo(o)!=="body"}):[]}function GA(t,e,r,n){var o=e==="clippingParents"?VA(t):[].concat(e),i=[].concat(o,[r]),l=i[0],c=i.reduce(function(d,f){var g=$4(t,f,n);return d.top=wa(g.top,d.top),d.right=vd(g.right,d.right),d.bottom=vd(g.bottom,d.bottom),d.left=wa(g.left,d.left),d},$4(t,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function jC(t){var e=t.reference,r=t.element,n=t.placement,o=n?To(n):null,i=n?ll(n):null,l=e.x+e.width/2-r.width/2,c=e.y+e.height/2-r.height/2,d;switch(o){case nn:d={x:l,y:e.y-r.height};break;case Bn:d={x:l,y:e.y+e.height};break;case Fn:d={x:e.x+e.width,y:c};break;case on:d={x:e.x-r.width,y:c};break;default:d={x:e.x,y:e.y}}var f=o?Ay(o):null;if(f!=null){var g=f==="y"?"height":"width";switch(i){case il:d[f]=d[f]-(e[g]/2-r[g]/2);break;case Gc:d[f]=d[f]+(e[g]/2-r[g]/2);break}}return d}function Kc(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,l=i===void 0?t.strategy:i,c=r.boundary,d=c===void 0?hA:c,f=r.rootBoundary,g=f===void 0?IC:f,u=r.elementContext,m=u===void 0?ic:u,y=r.altBoundary,w=y===void 0?!1:y,b=r.padding,E=b===void 0?0:b,k=BC(typeof E!="number"?E:FC(E,uu)),P=m===ic?mA:ic,_=t.rects.popper,R=t.elements[w?P:m],M=GA(Ca(R)?R:R.contextElement||Wi(t.elements.popper),d,g,l),T=sl(t.elements.reference),O=jC({reference:T,element:_,placement:o}),N=Cv(Object.assign({},_,O)),$=m===ic?N:T,C={top:M.top-$.top+k.top,bottom:$.bottom-M.bottom+k.bottom,left:M.left-$.left+k.left,right:$.right-M.right+k.right},L=t.modifiersData.offset;if(m===ic&&L){var H=L[o];Object.keys(C).forEach(function(W){var X=[Fn,Bn].indexOf(W)>=0?1:-1,U=[nn,Bn].indexOf(W)>=0?"y":"x";C[W]+=H[U]*X})}return C}function KA(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,f=d===void 0?DC:d,g=ll(n),u=g?c?A4:A4.filter(function(w){return ll(w)===g}):uu,m=u.filter(function(w){return f.indexOf(w)>=0});m.length===0&&(m=u);var y=m.reduce(function(w,b){return w[b]=Kc(t,{placement:b,boundary:o,rootBoundary:i,padding:l})[To(b)],w},{});return Object.keys(y).sort(function(w,b){return y[w]-y[b]})}function YA(t){if(To(t)===Ry)return[];var e=rd(t);return[N4(t),e,N4(e)]}function JA(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,f=r.padding,g=r.boundary,u=r.rootBoundary,m=r.altBoundary,y=r.flipVariations,w=y===void 0?!0:y,b=r.allowedAutoPlacements,E=e.options.placement,k=To(E),P=k===E,_=d||(P||!w?[rd(E)]:YA(E)),R=[E].concat(_).reduce(function(ie,re){return ie.concat(To(re)===Ry?KA(e,{placement:re,boundary:g,rootBoundary:u,padding:f,flipVariations:w,allowedAutoPlacements:b}):re)},[]),M=e.rects.reference,T=e.rects.popper,O=new Map,N=!0,$=R[0],C=0;C=0,U=X?"width":"height",K=Kc(e,{placement:L,boundary:g,rootBoundary:u,altBoundary:m,padding:f}),ee=X?W?Fn:on:W?Bn:nn;M[U]>T[U]&&(ee=rd(ee));var Q=rd(ee),G=[];if(i&&G.push(K[H]<=0),c&&G.push(K[ee]<=0,K[Q]<=0),G.every(function(ie){return ie})){$=L,N=!1;break}O.set(L,G)}if(N)for(var te=w?3:1,I=function(re){var ae=R.find(function(he){var me=O.get(he);if(me)return me.slice(0,re).every(function(ve){return ve})});if(ae)return $=ae,"break"},z=te;z>0;z--){var oe=I(z);if(oe==="break")break}e.placement!==$&&(e.modifiersData[n]._skip=!0,e.placement=$,e.reset=!0)}}const QA={name:"flip",enabled:!0,phase:"main",fn:JA,requiresIfExists:["offset"],data:{_skip:!1}};function L4(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function B4(t){return[nn,Fn,Bn,on].some(function(e){return t[e]>=0})}function ZA(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,l=Kc(e,{elementContext:"reference"}),c=Kc(e,{altBoundary:!0}),d=L4(l,n),f=L4(c,o,i),g=B4(d),u=B4(f);e.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:g,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":u})}const eI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ZA};function tI(t,e,r){var n=To(t),o=[on,nn].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=i[0],c=i[1];return l=l||0,c=(c||0)*o,[on,Fn].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function rI(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,l=DC.reduce(function(g,u){return g[u]=tI(u,e.rects,i),g},{}),c=l[e.placement],d=c.x,f=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=l}const nI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rI};function oI(t){var e=t.state,r=t.name;e.modifiersData[r]=jC({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const iI={name:"popperOffsets",enabled:!0,phase:"read",fn:oI,data:{}};function aI(t){return t==="x"?"y":"x"}function sI(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,f=r.rootBoundary,g=r.altBoundary,u=r.padding,m=r.tether,y=m===void 0?!0:m,w=r.tetherOffset,b=w===void 0?0:w,E=Kc(e,{boundary:d,rootBoundary:f,padding:u,altBoundary:g}),k=To(e.placement),P=ll(e.placement),_=!P,R=Ay(k),M=aI(R),T=e.modifiersData.popperOffsets,O=e.rects.reference,N=e.rects.popper,$=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,C=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(T){if(i){var W,X=R==="y"?nn:on,U=R==="y"?Bn:Fn,K=R==="y"?"height":"width",ee=T[R],Q=ee+E[X],G=ee-E[U],te=y?-N[K]/2:0,I=P===il?O[K]:N[K],z=P===il?-N[K]:-O[K],oe=e.elements.arrow,ie=y&&oe?Py(oe):{width:0,height:0},re=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:LC(),ae=re[X],he=re[U],me=Dc(0,O[K],ie[K]),ve=_?O[K]/2-te-me-ae-C.mainAxis:I-me-ae-C.mainAxis,xe=_?-O[K]/2+te+me+he+C.mainAxis:z+me+he+C.mainAxis,Le=e.elements.arrow&&pu(e.elements.arrow),Ae=Le?R==="y"?Le.clientTop||0:Le.clientLeft||0:0,nt=(W=L?.[R])!=null?W:0,Me=ee+ve-nt-Ae,_e=ee+xe-nt,mt=Dc(y?vd(Q,Me):Q,ee,y?wa(G,_e):G);T[R]=mt,H[R]=mt-ee}if(c){var Ee,Ie=R==="x"?nn:on,it=R==="x"?Bn:Fn,Ze=T[M],Xe=M==="y"?"height":"width",we=Ze+E[Ie],at=Ze-E[it],Ye=[nn,on].indexOf(k)!==-1,se=(Ee=L?.[M])!=null?Ee:0,be=Ye?we:Ze-O[Xe]-N[Xe]-se+C.altAxis,je=Ye?Ze+O[Xe]+N[Xe]-se-C.altAxis:at,Be=y&&Ye?PA(be,Ze,je):Dc(y?be:we,Ze,y?je:at);T[M]=Be,H[M]=Be-Ze}e.modifiersData[n]=H}}const lI={name:"preventOverflow",enabled:!0,phase:"main",fn:sI,requiresIfExists:["offset"]};function cI(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function uI(t){return t===Sn(t)||!Ln(t)?Iy(t):cI(t)}function pI(t){var e=t.getBoundingClientRect(),r=al(e.width)/t.offsetWidth||1,n=al(e.height)/t.offsetHeight||1;return r!==1||n!==1}function dI(t,e,r){r===void 0&&(r=!1);var n=Ln(e),o=Ln(e)&&pI(e),i=Wi(e),l=sl(t,o,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Oo(e)!=="body"||Ny(i))&&(c=uI(e)),Ln(e)?(d=sl(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):i&&(d.x=Dy(i))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function fI(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=e.get(c);d&&o(d)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function hI(t){var e=fI(t);return TA.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function mI(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function gI(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var F4={placement:"bottom",modifiers:[],strategy:"absolute"};function z4(){for(var t=arguments.length,e=new Array(t),r=0;r{i||c(xI(o)||document.body)},[o,i]),ln(()=>{if(l&&!i)return u4(r,l),()=>{u4(r,null)}},[r,l,i]),i){if(A.isValidElement(n)){const f={ref:d};return A.cloneElement(n,f)}return n}return l&&MC.createPortal(n,l)});function wI(t){return qe("MuiPopper",t)}We("MuiPopper",["root"]);function SI(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function Tv(t){return typeof t=="function"?t():t}function EI(t){return t.nodeType!==void 0}const CI=t=>{const{classes:e}=t;return Ue({root:["root"]},wI,e)},TI={},kI=A.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:i,disablePortal:l,modifiers:c,open:d,placement:f,popperOptions:g,popperRef:u,slotProps:m={},slots:y={},TransitionProps:w,ownerState:b,...E}=e,k=A.useRef(null),P=Sr(k,r),_=A.useRef(null),R=Sr(_,u),M=A.useRef(R);ln(()=>{M.current=R},[R]),A.useImperativeHandle(u,()=>_.current,[]);const T=SI(f,i),[O,N]=A.useState(T),[$,C]=A.useState(Tv(n));A.useEffect(()=>{_.current&&_.current.forceUpdate()}),A.useEffect(()=>{n&&C(Tv(n))},[n]),ln(()=>{if(!$||!d)return;const U=Q=>{N(Q.placement)};let K=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{U(Q)}}];c!=null&&(K=K.concat(c)),g&&g.modifiers!=null&&(K=K.concat(g.modifiers));const ee=bI($,k.current,{placement:T,...g,modifiers:K});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[$,l,c,d,g,T]);const L={placement:O};w!==null&&(L.TransitionProps=w);const H=CI(e),W=y.root??"div",X=Ea({elementType:W,externalSlotProps:m.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:P},ownerState:e,className:H.root});return B.jsx(W,{...X,children:typeof o=="function"?o(L):o})}),_I=A.forwardRef(function(e,r){const{anchorEl:n,children:o,container:i,direction:l="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:f,open:g,placement:u="bottom",popperOptions:m=TI,popperRef:y,style:w,transition:b=!1,slotProps:E={},slots:k={},...P}=e,[_,R]=A.useState(!0),M=()=>{R(!1)},T=()=>{R(!0)};if(!d&&!g&&(!b||_))return null;let O;if(i)O=i;else if(n){const C=Tv(n);O=C&&EI(C)?cn(C).body:cn(null).body}const N=!g&&d&&(!b||_)?"none":void 0,$=b?{in:g,onEnter:M,onExited:T}:void 0;return B.jsx(HC,{disablePortal:c,container:O,children:B.jsx(kI,{anchorEl:n,direction:l,disablePortal:c,modifiers:f,ref:r,open:b?!_:g,placement:u,popperOptions:m,popperRef:y,slotProps:E,slots:k,...P,style:{position:"fixed",top:0,left:0,display:N,...w},TransitionProps:$,children:o})})}),OI=ce(_I,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),qC=A.forwardRef(function(e,r){const n=ml(),o=Ke({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:c,componentsProps:d,container:f,disablePortal:g,keepMounted:u,modifiers:m,open:y,placement:w,popperOptions:b,popperRef:E,transition:k,slots:P,slotProps:_,...R}=o,M=P?.root??c?.Root,T={anchorEl:i,container:f,disablePortal:g,keepMounted:u,modifiers:m,open:y,placement:w,popperOptions:b,popperRef:E,transition:k,...R};return B.jsx(OI,{as:l,direction:n?"rtl":"ltr",slots:{root:M},slotProps:_??d,...T,ref:r})});function Mp(t){return parseInt(t,10)||0}const RI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function MI(t){for(const e in t)return!1;return!0}function j4(t){return MI(t)||t.outerHeightStyle===0&&!t.overflowing}const PI=A.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:i=1,style:l,value:c,...d}=e,{current:f}=A.useRef(c!=null),g=A.useRef(null),u=Sr(r,g),m=A.useRef(null),y=A.useRef(null),w=A.useCallback(()=>{const _=g.current,R=y.current;if(!_||!R)return;const T=to(_).getComputedStyle(_);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=T.width,R.value=_.value||e.placeholder||"x",R.value.slice(-1)===` -`&&(R.value+=" ");const O=T.boxSizing,N=Mp(T.paddingBottom)+Mp(T.paddingTop),$=Mp(T.borderBottomWidth)+Mp(T.borderTopWidth),C=R.scrollHeight;R.value="x";const L=R.scrollHeight;let H=C;i&&(H=Math.max(Number(i)*L,H)),o&&(H=Math.min(Number(o)*L,H)),H=Math.max(H,L);const W=H+(O==="border-box"?N+$:0),X=Math.abs(H-C)<=1;return{outerHeightStyle:W,overflowing:X}},[o,i,e.placeholder]),b=$n(()=>{const _=g.current,R=w();if(!_||!R||j4(R))return!1;const M=R.outerHeightStyle;return m.current!=null&&m.current!==M}),E=A.useCallback(()=>{const _=g.current,R=w();if(!_||!R||j4(R))return;const M=R.outerHeightStyle;m.current!==M&&(m.current=M,_.style.height=`${M}px`),_.style.overflow=R.overflowing?"hidden":""},[w]),k=A.useRef(-1);ln(()=>{const _=Qd(E),R=g?.current;if(!R)return;const M=to(R);M.addEventListener("resize",_);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{b()&&(T.unobserve(R),cancelAnimationFrame(k.current),E(),k.current=requestAnimationFrame(()=>{T.observe(R)}))}),T.observe(R)),()=>{_.clear(),cancelAnimationFrame(k.current),M.removeEventListener("resize",_),T&&T.disconnect()}},[w,E,b]),ln(()=>{E()});const P=_=>{f||E(),n&&n(_)};return B.jsxs(A.Fragment,{children:[B.jsx("textarea",{value:c,onChange:P,ref:u,rows:i,style:l,...d}),B.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...RI.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function kv(t){return typeof t=="string"}function Ui({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const $y=A.createContext(void 0);function Po(){return A.useContext($y)}function H4(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function yd(t,e=!1){return t&&(H4(t.value)&&t.value!==""||e&&H4(t.defaultValue)&&t.defaultValue!=="")}function AI(t){return t.startAdornment}function II(t){return qe("MuiInputBase",t)}const cl=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var q4;const rf=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${ye(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},nf=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},DI=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:i,focused:l,formControl:c,fullWidth:d,hiddenLabel:f,multiline:g,readOnly:u,size:m,startAdornment:y,type:w}=t,b={root:["root",`color${ye(r)}`,n&&"disabled",o&&"error",d&&"fullWidth",l&&"focused",c&&"formControl",m&&m!=="medium"&&`size${ye(m)}`,g&&"multiline",y&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",u&&"readOnly"],input:["input",n&&"disabled",w==="search"&&"inputTypeSearch",g&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]};return Ue(b,II,e)},of=ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rf})(Qe(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${cl.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),af=ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nf})(Qe(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${cl.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${cl.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),W4=yP({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ly=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:l,className:c,color:d,components:f={},componentsProps:g={},defaultValue:u,disabled:m,disableInjectingGlobalStyles:y,endAdornment:w,error:b,fullWidth:E=!1,id:k,inputComponent:P="input",inputProps:_={},inputRef:R,margin:M,maxRows:T,minRows:O,multiline:N=!1,name:$,onBlur:C,onChange:L,onClick:H,onFocus:W,onKeyDown:X,onKeyUp:U,placeholder:K,readOnly:ee,renderSuffix:Q,rows:G,size:te,slotProps:I={},slots:z={},startAdornment:oe,type:ie="text",value:re,...ae}=n,he=_.value!=null?_.value:re,{current:me}=A.useRef(he!=null),ve=A.useRef(),xe=A.useCallback(Fe=>{},[]),Le=Sr(ve,R,_.ref,xe),[Ae,nt]=A.useState(!1),Me=Po(),_e=Ui({props:n,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=Me?Me.focused:Ae,A.useEffect(()=>{!Me&&m&&Ae&&(nt(!1),C&&C())},[Me,m,Ae,C]);const mt=Me&&Me.onFilled,Ee=Me&&Me.onEmpty,Ie=A.useCallback(Fe=>{yd(Fe)?mt&&mt():Ee&&Ee()},[mt,Ee]);ln(()=>{me&&Ie({value:he})},[he,Ie,me]);const it=Fe=>{W&&W(Fe),_.onFocus&&_.onFocus(Fe),Me&&Me.onFocus?Me.onFocus(Fe):nt(!0)},Ze=Fe=>{C&&C(Fe),_.onBlur&&_.onBlur(Fe),Me&&Me.onBlur?Me.onBlur(Fe):nt(!1)},Xe=(Fe,...Ht)=>{if(!me){const St=Fe.target||ve.current;if(St==null)throw new Error(Ko(1));Ie({value:St.value})}_.onChange&&_.onChange(Fe,...Ht),L&&L(Fe,...Ht)};A.useEffect(()=>{Ie(ve.current)},[]);const we=Fe=>{ve.current&&Fe.currentTarget===Fe.target&&ve.current.focus(),H&&H(Fe)};let at=P,Ye=_;N&&at==="input"&&(G?Ye={type:void 0,minRows:G,maxRows:G,...Ye}:Ye={type:void 0,maxRows:T,minRows:O,...Ye},at=PI);const se=Fe=>{Ie(Fe.animationName==="mui-auto-fill-cancel"?ve.current:{value:"x"})};A.useEffect(()=>{Me&&Me.setAdornedStart(!!oe)},[Me,oe]);const be={...n,color:_e.color||"primary",disabled:_e.disabled,endAdornment:w,error:_e.error,focused:_e.focused,formControl:Me,fullWidth:E,hiddenLabel:_e.hiddenLabel,multiline:N,size:_e.size,startAdornment:oe,type:ie},je=DI(be),Be=z.root||f.Root||of,st=I.root||g.root||{},yt=z.input||f.Input||af;return Ye={...Ye,...I.input??g.input},B.jsxs(A.Fragment,{children:[!y&&typeof W4=="function"&&(q4||(q4=B.jsx(W4,{}))),B.jsxs(Be,{...st,ref:r,onClick:we,...ae,...!kv(Be)&&{ownerState:{...be,...st.ownerState}},className:Se(je.root,st.className,c,ee&&"MuiInputBase-readOnly"),children:[oe,B.jsx($y.Provider,{value:null,children:B.jsx(yt,{"aria-invalid":_e.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:u,disabled:_e.disabled,id:k,onAnimationStart:se,name:$,placeholder:K,readOnly:ee,required:_e.required,rows:G,value:he,onKeyDown:X,onKeyUp:U,type:ie,...Ye,...!kv(yt)&&{as:at,ownerState:{...be,...Ye.ownerState}},ref:Le,className:Se(je.input,Ye.className,ee&&"MuiInputBase-readOnly"),onBlur:Ze,onChange:Xe,onFocus:it})}),w,Q?Q({..._e,startAdornment:oe}):null]})]})});function NI(t){return qe("MuiInput",t)}const ac={...cl,...We("MuiInput",["root","underline","input"])};function $I(t){return qe("MuiOutlinedInput",t)}const fo={...cl,...We("MuiOutlinedInput",["root","notchedOutline","input"])};function LI(t){return qe("MuiFilledInput",t)}const sa={...cl,...We("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},BI=He(B.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),FI={entering:{opacity:1},entered:{opacity:1}},_v=A.forwardRef(function(e,r){const n=Zo(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:c,easing:d,in:f,onEnter:g,onEntered:u,onEntering:m,onExit:y,onExited:w,onExiting:b,style:E,timeout:k=o,TransitionComponent:P=Mo,..._}=e,R=A.useRef(null),M=Sr(R,hl(c),r),T=X=>U=>{if(X){const K=R.current;U===void 0?X(K):X(K,U)}},O=T(m),N=T((X,U)=>{PC(X);const K=md({style:E,timeout:k,easing:d},{mode:"enter"});X.style.webkitTransition=n.transitions.create("opacity",K),X.style.transition=n.transitions.create("opacity",K),g&&g(X,U)}),$=T(u),C=T(b),L=T(X=>{const U=md({style:E,timeout:k,easing:d},{mode:"exit"});X.style.webkitTransition=n.transitions.create("opacity",U),X.style.transition=n.transitions.create("opacity",U),y&&y(X)}),H=T(w),W=X=>{i&&i(R.current,X)};return B.jsx(P,{appear:l,in:f,nodeRef:R,onEnter:N,onEntered:$,onEntering:O,onExit:L,onExited:H,onExiting:C,addEndListener:W,timeout:k,..._,children:(X,{ownerState:U,...K})=>A.cloneElement(c,{style:{opacity:0,visibility:X==="exited"&&!f?"hidden":void 0,...FI[X],...E,...c.props.style},ref:M,...K})})});function zI(t){return qe("MuiBackdrop",t)}We("MuiBackdrop",["root","invisible"]);const jI=t=>{const{classes:e,invisible:r}=t;return Ue({root:["root",r&&"invisible"]},zI,e)},HI=ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),WC=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiBackdrop"}),{children:o,className:i,component:l="div",invisible:c=!1,open:d,components:f={},componentsProps:g={},slotProps:u={},slots:m={},TransitionComponent:y,transitionDuration:w,...b}=n,E={...n,component:l,invisible:c},k=jI(E),P={transition:y,root:f.Root,...m},_={...g,...u},R={slots:P,slotProps:_},[M,T]=ct("root",{elementType:HI,externalForwardedProps:R,className:Se(k.root,i),ownerState:E}),[O,N]=ct("transition",{elementType:_v,externalForwardedProps:R,ownerState:E});return B.jsx(O,{in:d,timeout:w,...b,...N,children:B.jsx(M,{"aria-hidden":!0,...T,classes:k,ref:r,children:o})})}),qI=We("MuiBox",["root"]),WI=Vc(),ht=MR({themeId:eo,defaultTheme:WI,defaultClassName:qI.root,generateClassName:eC.generate}),UI=He(B.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),XI=ce(qi,{name:"MuiBreadcrumbCollapsed"})(Qe(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:pv(t.palette.grey[200],.12)}:{backgroundColor:pv(t.palette.grey[600],.12)}}}))),VI=ce(UI)({width:24,height:16});function GI(t){const{slots:e={},slotProps:r={},...n}=t,o=t;return B.jsx("li",{children:B.jsx(XI,{focusRipple:!0,...n,ownerState:o,children:B.jsx(VI,{as:e.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function KI(t){return qe("MuiBreadcrumbs",t)}const YI=We("MuiBreadcrumbs",["root","ol","li","separator"]),JI=t=>{const{classes:e}=t;return Ue({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},KI,e)},QI=ce(Qn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${YI.li}`]:e.li},e.root]})({}),ZI=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),eD=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function tD(t,e,r,n){return t.reduce((o,i,l)=>(l{const N=()=>{E(!0);const $=R.current.querySelector("a[href],button,[tabindex]");$&&$.focus()};return u+g>=O.length?O:[...O.slice(0,u),B.jsx(GI,{"aria-label":f,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:_},onClick:N},"ellipsis"),...O.slice(O.length-g,O.length)]},T=A.Children.toArray(o).filter(O=>A.isValidElement(O)).map((O,N)=>B.jsx("li",{className:P.li,children:O},`child-${N}`));return B.jsx(QI,{ref:r,component:l,color:"textSecondary",className:Se(P.root,i),ownerState:k,...w,children:B.jsx(ZI,{className:P.ol,ref:R,ownerState:k,children:tD(b||m&&T.length<=m?T:M(T),P.separator,y,k)})})});function nD(t){return qe("MuiButton",t)}const la=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),oD=A.createContext({}),iD=A.createContext(void 0),aD=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:i,loading:l,loadingPosition:c,classes:d}=t,f={root:["root",l&&"loading",i,`${i}${ye(e)}`,`size${ye(o)}`,`${i}Size${ye(o)}`,`color${ye(e)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${ye(c)}`],startIcon:["icon","startIcon",`iconSize${ye(o)}`],endIcon:["icon","endIcon",`iconSize${ye(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},g=Ue(f,nD,d);return{...d,...g}},UC=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],sD=ce(qi,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${ye(r.color)}`],e[`size${ye(r.size)}`],e[`${r.variant}Size${ye(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${la.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${la.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${la.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${la.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(ar()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:Nt(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${la.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${la.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${la.loading}`]:{color:"transparent"}}}]}})),lD=ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${ye(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...UC]})),cD=ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${ye(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...UC]})),uD=ce("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),U4=ce("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Yt=A.forwardRef(function(e,r){const n=A.useContext(oD),o=A.useContext(iD),i=Uc(n,e),l=Ke({props:i,name:"MuiButton"}),{children:c,color:d="primary",component:f="button",className:g,disabled:u=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:w,focusVisibleClassName:b,fullWidth:E=!1,id:k,loading:P=null,loadingIndicator:_,loadingPosition:R="center",size:M="medium",startIcon:T,type:O,variant:N="text",...$}=l,C=Ra(k),L=_??B.jsx(Oy,{"aria-labelledby":C,color:"inherit",size:16}),H={...l,color:d,component:f,disabled:u,disableElevation:m,disableFocusRipple:y,fullWidth:E,loading:P,loadingIndicator:L,loadingPosition:R,size:M,type:O,variant:N},W=aD(H),X=(T||P&&R==="start")&&B.jsx(lD,{className:W.startIcon,ownerState:H,children:T||B.jsx(U4,{className:W.loadingIconPlaceholder,ownerState:H})}),U=(w||P&&R==="end")&&B.jsx(cD,{className:W.endIcon,ownerState:H,children:w||B.jsx(U4,{className:W.loadingIconPlaceholder,ownerState:H})}),K=o||"",ee=typeof P=="boolean"?B.jsx("span",{className:W.loadingWrapper,style:{display:"contents"},children:P&&B.jsx(uD,{className:W.loadingIndicator,ownerState:H,children:L})}):null;return B.jsxs(sD,{ownerState:H,className:Se(n.className,W.root,g,K),component:f,disabled:u||P,focusRipple:!y,focusVisibleClassName:Se(W.focusVisible,b),ref:r,type:O,id:P?C:k,...$,classes:W,children:[X,R!=="end"&&ee,c,R==="end"&&ee,U]})});function pD(t){return qe("MuiCard",t)}We("MuiCard",["root"]);const dD=t=>{const{classes:e}=t;return Ue({root:["root"]},pD,e)},fD=ce(vl,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})({overflow:"hidden"}),hD=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCard"}),{className:o,raised:i=!1,...l}=n,c={...n,raised:i},d=dD(c);return B.jsx(fD,{className:Se(d.root,o),elevation:i?8:void 0,ref:r,ownerState:c,...l})});function mD(t){return qe("MuiCardActions",t)}We("MuiCardActions",["root","spacing"]);const gD=t=>{const{classes:e,disableSpacing:r}=t;return Ue({root:["root",!r&&"spacing"]},mD,e)},vD=ce("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),yD=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i,...l}=n,c={...n,disableSpacing:o},d=gD(c);return B.jsx(vD,{className:Se(d.root,i),ownerState:c,ref:r,...l})});function bD(t){return qe("MuiCardContent",t)}We("MuiCardContent",["root"]);const xD=t=>{const{classes:e}=t;return Ue({root:["root"]},bD,e)},wD=ce("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:16,"&:last-child":{paddingBottom:24}}),SD=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCardContent"}),{className:o,component:i="div",...l}=n,c={...n,component:i},d=xD(c);return B.jsx(wD,{as:i,className:Se(d.root,o),ownerState:c,ref:r,...l})});function ED(t){return qe("MuiCardMedia",t)}We("MuiCardMedia",["root","media","img"]);const CD=t=>{const{classes:e,isMediaComponent:r,isImageComponent:n}=t;return Ue({root:["root",r&&"media",n&&"img"]},ED,e)},TD=ce("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{isMediaComponent:n,isImageComponent:o}=r;return[e.root,n&&e.media,o&&e.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),kD=["video","audio","picture","iframe","img"],_D=["picture","img"],OD=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCardMedia"}),{children:o,className:i,component:l="div",image:c,src:d,style:f,...g}=n,u=kD.includes(l),m=!u&&c?{backgroundImage:`url("${c}")`,...f}:f,y={...n,component:l,isMediaComponent:u,isImageComponent:_D.includes(l)},w=CD(y);return B.jsx(TD,{className:Se(w.root,i),as:l,role:!u&&c?"img":void 0,ref:r,style:m,ownerState:y,src:u?c||d:void 0,...g,children:o})});function RD(t){return qe("PrivateSwitchBase",t)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const MD=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${ye(o)}`],input:["input"]};return Ue(i,RD,e)},PD=ce(qi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),AD=ce("input",{name:"MuiSwitchBase",shouldForwardProp:Er})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),XC=A.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:i,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:f=!1,icon:g,id:u,inputProps:m,inputRef:y,name:w,onBlur:b,onChange:E,onFocus:k,readOnly:P,required:_=!1,tabIndex:R,type:M,value:T,slots:O={},slotProps:N={},...$}=e,[C,L]=dd({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),H=Po(),W=re=>{k&&k(re),H&&H.onFocus&&H.onFocus(re)},X=re=>{b&&b(re),H&&H.onBlur&&H.onBlur(re)},U=re=>{if(re.nativeEvent.defaultPrevented)return;const ae=re.target.checked;L(ae),E&&E(re,ae)};let K=c;H&&typeof K>"u"&&(K=H.disabled);const ee=M==="checkbox"||M==="radio",Q={...e,checked:C,disabled:K,disableFocusRipple:d,edge:f},G=MD(Q),te={slots:O,slotProps:{input:m,...N}},[I,z]=ct("root",{ref:r,elementType:PD,className:G.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...$},getSlotProps:re=>({...re,onFocus:ae=>{re.onFocus?.(ae),W(ae)},onBlur:ae=>{re.onBlur?.(ae),X(ae)}}),ownerState:Q,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:K,role:void 0,tabIndex:null}}),[oe,ie]=ct("input",{ref:y,elementType:AD,className:G.input,externalForwardedProps:te,getSlotProps:re=>({onChange:ae=>{re.onChange?.(ae),U(ae)}}),ownerState:Q,additionalProps:{autoFocus:n,checked:o,defaultChecked:l,disabled:K,id:ee?u:void 0,name:w,readOnly:P,required:_,tabIndex:R,type:M,...M==="checkbox"&&T===void 0?{}:{value:T}}});return B.jsxs(I,{...z,children:[B.jsx(oe,{...ie}),C?i:g]})}),ID=He(B.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),DD=He(B.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ND=He(B.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $D(t){return qe("MuiCheckbox",t)}const _m=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),LD=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,i={root:["root",r&&"indeterminate",`color${ye(n)}`,`size${ye(o)}`]},l=Ue(i,$D,e);return{...e,...l}},BD=ce(XC,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${ye(r.size)}`],r.color!=="default"&&e[`color${ye(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e},style:{[`&.${_m.checked}, &.${_m.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${_m.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),FD=B.jsx(DD,{}),zD=B.jsx(ID,{}),jD=B.jsx(ND,{}),Wr=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCheckbox"}),{checkedIcon:o=FD,color:i="primary",icon:l=zD,indeterminate:c=!1,indeterminateIcon:d=jD,inputProps:f,size:g="medium",disableRipple:u=!1,className:m,slots:y={},slotProps:w={},...b}=n,E=c?d:l,k=c?d:o,P={...n,disableRipple:u,color:i,indeterminate:c,size:g},_=LD(P),R=w.input??f,[M,T]=ct("root",{ref:r,elementType:BD,className:Se(_.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:w,...b},ownerState:P,additionalProps:{type:"checkbox",icon:A.cloneElement(E,{fontSize:E.props.fontSize??g}),checkedIcon:A.cloneElement(k,{fontSize:k.props.fontSize??g}),disableRipple:u,slots:y,slotProps:{input:_C(typeof R=="function"?R(P):R,{"data-indeterminate":c})}}});return B.jsx(M,{...T,classes:_})});function HD(t){const e=cn(t);return e.body===t?to(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function $c(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function X4(t){return parseInt(to(t).getComputedStyle(t).paddingRight,10)||0}function qD(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function V4(t,e,r,n,o){const i=[e,r,...n];[].forEach.call(t.children,l=>{const c=!i.includes(l),d=!qD(l);c&&d&&$c(l,o)})}function Om(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function WD(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(HD(n)){const l=uC(to(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${X4(n)+l}px`;const c=cn(n).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${X4(d)+l}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=cn(n).body;else{const l=n.parentElement,c=to(n);i=l?.nodeName==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:l,property:c})=>{i?l.style.setProperty(c,i):l.style.removeProperty(c)})}}function UD(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class XD{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&$c(e.modalRef,!1);const o=UD(r);V4(r,e.mount,e.modalRef,o,!0);const i=Om(this.containers,l=>l.container===r);return i!==-1?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=Om(this.containers,i=>i.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=WD(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=Om(this.containers,l=>l.modals.includes(e)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&$c(e.modalRef,r),V4(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=i.modals[i.modals.length-1];l.modalRef&&$c(l.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const VD=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function GD(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function KD(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function YD(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||KD(t))}function JD(t){const e=[],r=[];return Array.from(t.querySelectorAll(VD)).forEach((n,o)=>{const i=GD(n);i===-1||!YD(n)||(i===0?e.push(n):r.push({documentOrder:o,tabIndex:i,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function QD(){return!0}function ZD(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=JD,isEnabled:l=QD,open:c}=t,d=A.useRef(!1),f=A.useRef(null),g=A.useRef(null),u=A.useRef(null),m=A.useRef(null),y=A.useRef(!1),w=A.useRef(null),b=Sr(hl(e),w),E=A.useRef(null);A.useEffect(()=>{!c||!w.current||(y.current=!r)},[r,c]),A.useEffect(()=>{if(!c||!w.current)return;const _=cn(w.current);return w.current.contains(_.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),y.current&&w.current.focus()),()=>{o||(u.current&&u.current.focus&&(d.current=!0,u.current.focus()),u.current=null)}},[c]),A.useEffect(()=>{if(!c||!w.current)return;const _=cn(w.current),R=O=>{E.current=O,!(n||!l()||O.key!=="Tab")&&_.activeElement===w.current&&O.shiftKey&&(d.current=!0,g.current&&g.current.focus())},M=()=>{const O=w.current;if(O===null)return;if(!_.hasFocus()||!l()||d.current){d.current=!1;return}if(O.contains(_.activeElement)||n&&_.activeElement!==f.current&&_.activeElement!==g.current)return;if(_.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let N=[];if((_.activeElement===f.current||_.activeElement===g.current)&&(N=i(w.current)),N.length>0){const $=!!(E.current?.shiftKey&&E.current?.key==="Tab"),C=N[0],L=N[N.length-1];typeof C!="string"&&typeof L!="string"&&($?L.focus():C.focus())}else O.focus()};_.addEventListener("focusin",M),_.addEventListener("keydown",R,!0);const T=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(T),_.removeEventListener("focusin",M),_.removeEventListener("keydown",R,!0)}},[r,n,o,l,c,i]);const k=_=>{u.current===null&&(u.current=_.relatedTarget),y.current=!0,m.current=_.target;const R=e.props.onFocus;R&&R(_)},P=_=>{u.current===null&&(u.current=_.relatedTarget),y.current=!0};return B.jsxs(A.Fragment,{children:[B.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:f,"data-testid":"sentinelStart"}),A.cloneElement(e,{ref:b,onFocus:k}),B.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:g,"data-testid":"sentinelEnd"})]})}function eN(t){return typeof t=="function"?t():t}function tN(t){return t?t.props.hasOwnProperty("in"):!1}const G4=()=>{},Pp=new XD;function rN(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:g}=t,u=A.useRef({}),m=A.useRef(null),y=A.useRef(null),w=Sr(y,g),[b,E]=A.useState(!f),k=tN(c);let P=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(P=!1);const _=()=>cn(m.current),R=()=>(u.current.modalRef=y.current,u.current.mount=m.current,u.current),M=()=>{Pp.mount(R(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},T=$n(()=>{const U=eN(e)||_().body;Pp.add(R(),U),y.current&&M()}),O=()=>Pp.isTopModal(R()),N=$n(U=>{m.current=U,U&&(f&&O()?M():y.current&&$c(y.current,P))}),$=A.useCallback(()=>{Pp.remove(R(),P)},[P]);A.useEffect(()=>()=>{$()},[$]),A.useEffect(()=>{f?T():(!k||!o)&&$()},[f,$,k,o,T]);const C=U=>K=>{U.onKeyDown?.(K),!(K.key!=="Escape"||K.which===229||!O())&&(r||(K.stopPropagation(),d&&d(K,"escapeKeyDown")))},L=U=>K=>{U.onClick?.(K),K.target===K.currentTarget&&d&&d(K,"backdropClick")};return{getRootProps:(U={})=>{const K=dC(t);delete K.onTransitionEnter,delete K.onTransitionExited;const ee={...K,...U};return{role:"presentation",...ee,onKeyDown:C(ee),ref:w}},getBackdropProps:(U={})=>{const K=U;return{"aria-hidden":!0,...K,onClick:L(K),open:f}},getTransitionProps:()=>{const U=()=>{E(!1),i&&i()},K=()=>{E(!0),l&&l(),o&&$()};return{onEnter:dv(U,c?.props.onEnter??G4),onExited:dv(K,c?.props.onExited??G4)}},rootRef:w,portalRef:N,isTopModal:O,exited:b,hasTransition:k}}function nN(t){return qe("MuiModal",t)}We("MuiModal",["root","hidden","backdrop"]);const oN=t=>{const{open:e,exited:r,classes:n}=t;return Ue({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},nN,n)},iN=ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Qe(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),aN=ce(WC,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),VC=A.forwardRef(function(e,r){const n=Ke({name:"MuiModal",props:e}),{BackdropComponent:o=aN,BackdropProps:i,classes:l,className:c,closeAfterTransition:d=!1,children:f,container:g,component:u,components:m={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:E=!1,disablePortal:k=!1,disableRestoreFocus:P=!1,disableScrollLock:_=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:T,onClose:O,onTransitionEnter:N,onTransitionExited:$,open:C,slotProps:L={},slots:H={},theme:W,...X}=n,U={...n,closeAfterTransition:d,disableAutoFocus:w,disableEnforceFocus:b,disableEscapeKeyDown:E,disablePortal:k,disableRestoreFocus:P,disableScrollLock:_,hideBackdrop:R,keepMounted:M},{getRootProps:K,getBackdropProps:ee,getTransitionProps:Q,portalRef:G,isTopModal:te,exited:I,hasTransition:z}=rN({...U,rootRef:r}),oe={...U,exited:I},ie=oN(oe),re={};if(f.props.tabIndex===void 0&&(re.tabIndex="-1"),z){const{onEnter:Le,onExited:Ae}=Q();re.onEnter=Le,re.onExited=Ae}const ae={slots:{root:m.Root,backdrop:m.Backdrop,...H},slotProps:{...y,...L}},[he,me]=ct("root",{ref:r,elementType:iN,externalForwardedProps:{...ae,...X,component:u},getSlotProps:K,ownerState:oe,className:Se(c,ie?.root,!oe.open&&oe.exited&&ie?.hidden)}),[ve,xe]=ct("backdrop",{ref:i?.ref,elementType:o,externalForwardedProps:ae,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:Le=>ee({...Le,onClick:Ae=>{T&&T(Ae),Le?.onClick&&Le.onClick(Ae)}}),className:Se(i?.className,ie?.backdrop),ownerState:oe});return!M&&!C&&(!z||I)?null:B.jsx(HC,{ref:G,container:g,disablePortal:k,children:B.jsxs(he,{...me,children:[!R&&o?B.jsx(ve,{...xe}):null,B.jsx(ZD,{disableEnforceFocus:b,disableAutoFocus:w,disableRestoreFocus:P,isEnabled:te,open:C,children:A.cloneElement(f,re)})]})})});function sN(t){return qe("MuiDialog",t)}const Rm=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),GC=A.createContext({}),lN=ce(WC,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),cN=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=t,l={root:["root"],container:["container",`scroll${ye(r)}`],paper:["paper",`paperScroll${ye(r)}`,`paperWidth${ye(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ue(l,sN,e)},uN=ce(VC,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),pN=ce("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${ye(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),dN=ce(vl,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${ye(r.scroll)}`],e[`paperWidth${ye(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Qe(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${Rm.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${Rm.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Rm.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ei=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialog"}),o=Zo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:f,BackdropProps:g,children:u,className:m,disableEscapeKeyDown:y=!1,fullScreen:w=!1,fullWidth:b=!1,maxWidth:E="sm",onBackdropClick:k,onClick:P,onClose:_,open:R,PaperComponent:M=vl,PaperProps:T={},scroll:O="paper",slots:N={},slotProps:$={},TransitionComponent:C=_v,transitionDuration:L=i,TransitionProps:H,...W}=n,X={...n,disableEscapeKeyDown:y,fullScreen:w,fullWidth:b,maxWidth:E,scroll:O},U=cN(X),K=A.useRef(),ee=Me=>{K.current=Me.target===Me.currentTarget},Q=Me=>{P&&P(Me),K.current&&(K.current=null,k&&k(Me),_&&_(Me,"backdropClick"))},G=Ra(c),te=A.useMemo(()=>({titleId:G}),[G]),I={transition:C,...N},z={transition:H,paper:T,backdrop:g,...$},oe={slots:I,slotProps:z},[ie,re]=ct("root",{elementType:uN,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:X,className:Se(U.root,m),ref:r}),[ae,he]=ct("backdrop",{elementType:lN,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:X}),[me,ve]=ct("paper",{elementType:dN,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:X,className:Se(U.paper,T.className)}),[xe,Le]=ct("container",{elementType:pN,externalForwardedProps:oe,ownerState:X,className:Se(U.container)}),[Ae,nt]=ct("transition",{elementType:_v,externalForwardedProps:oe,ownerState:X,additionalProps:{appear:!0,in:R,timeout:L,role:"presentation"}});return B.jsx(ie,{closeAfterTransition:!0,slots:{backdrop:ae},slotProps:{backdrop:{transitionDuration:L,as:f,...he}},disableEscapeKeyDown:y,onClose:_,open:R,onClick:Q,...re,...W,children:B.jsx(Ae,{...nt,children:B.jsx(xe,{onMouseDown:ee,...Le,children:B.jsx(me,{as:M,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":G,"aria-modal":d,...ve,children:B.jsx(GC.Provider,{value:te,children:u})})})})})});function fN(t){return qe("MuiDialogActions",t)}We("MuiDialogActions",["root","spacing"]);const hN=t=>{const{classes:e,disableSpacing:r}=t;return Ue({root:["root",!r&&"spacing"]},fN,e)},mN=ce("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),ti=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...l}=n,c={...n,disableSpacing:i},d=hN(c);return B.jsx(mN,{className:Se(d.root,o),ownerState:c,ref:r,...l})});function gN(t){return qe("MuiDialogContent",t)}We("MuiDialogContent",["root","dividers"]);function vN(t){return qe("MuiDialogTitle",t)}const yN=We("MuiDialogTitle",["root"]),bN=t=>{const{classes:e,dividers:r}=t;return Ue({root:["root",r&&"dividers"]},gN,e)},xN=ce("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Qe(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${yN.root} + &`]:{paddingTop:0}}}]}))),ri=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...l}=n,c={...n,dividers:i},d=bN(c);return B.jsx(xN,{className:Se(d.root,o),ownerState:c,ref:r,...l})});function wN(t){return qe("MuiDialogContentText",t)}We("MuiDialogContentText",["root"]);const SN=t=>{const{classes:e}=t,n=Ue({root:["root"]},wN,e);return{...e,...n}},EN=ce(Qn,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),sf=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogContentText"}),{children:o,className:i,...l}=n,c=SN(l);return B.jsx(EN,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:l,className:Se(c.root,i),...n,classes:c})}),CN=t=>{const{classes:e}=t;return Ue({root:["root"]},vN,e)},TN=ce(Qn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),ni=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogTitle"}),{className:o,id:i,...l}=n,c=n,d=CN(c),{titleId:f=i}=A.useContext(GC);return B.jsx(TN,{component:"h2",className:Se(d.root,o),ownerState:c,ref:r,variant:"h6",id:i??f,...l})});function kN(t){return qe("MuiDivider",t)}const K4=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_N=t=>{const{absolute:e,children:r,classes:n,flexItem:o,light:i,orientation:l,textAlign:c,variant:d}=t;return Ue({root:["root",e&&"absolute",d,i&&"light",l==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},kN,n)},ON=ce("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.absolute&&e.absolute,e[r.variant],r.light&&e.light,r.orientation==="vertical"&&e.vertical,r.flexItem&&e.flexItem,r.children&&e.withChildren,r.children&&r.orientation==="vertical"&&e.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&e.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&e.textAlignLeft]}})(Qe(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:Nt(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&e.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>e.orientation==="vertical"&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>e.textAlign==="right"&&e.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>e.textAlign==="left"&&e.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),RN=ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.wrapper,r.orientation==="vertical"&&e.wrapperVertical]}})(Qe(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),Ov=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDivider"}),{absolute:o=!1,children:i,className:l,orientation:c="horizontal",component:d=i||c==="vertical"?"div":"hr",flexItem:f=!1,light:g=!1,role:u=d!=="hr"?"separator":void 0,textAlign:m="center",variant:y="fullWidth",...w}=n,b={...n,absolute:o,component:d,flexItem:f,light:g,orientation:c,role:u,textAlign:m,variant:y},E=_N(b);return B.jsx(ON,{as:d,className:Se(E.root,l),role:u,ref:r,ownerState:b,"aria-orientation":u==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...w,children:i?B.jsx(RN,{className:E.wrapper,ownerState:b,children:i}):null})});Ov&&(Ov.muiSkipListHighlight=!0);function MN(t){return qe("MuiFab",t)}const Y4=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),PN=t=>{const{color:e,variant:r,classes:n,size:o}=t,i={root:["root",r,`size${ye(o)}`,e==="inherit"?"colorInherit":e]},l=Ue(i,MN,n);return{...n,...l}},AN=ce(qi,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>Er(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${ye(r.size)}`],r.color==="inherit"&&e.colorInherit,e[ye(r.size)],e[r.color]]}})(Qe(({theme:t})=>({...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:t.palette.getContrastText?.(t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${Y4.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),Qe(({theme:t})=>({variants:[...Object.entries(t.palette).filter(ar(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Qe(({theme:t})=>({[`&.${Y4.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),Sa=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFab"}),{children:o,className:i,color:l="default",component:c="button",disabled:d=!1,disableFocusRipple:f=!1,focusVisibleClassName:g,size:u="large",variant:m="circular",...y}=n,w={...n,color:l,component:c,disabled:d,disableFocusRipple:f,size:u,variant:m},b=PN(w);return B.jsx(AN,{className:Se(b.root,i),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:Se(b.focusVisible,g),ownerState:w,ref:r,...y,classes:b,children:o})}),IN=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:i,hiddenLabel:l,multiline:c}=t,d={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ye(i)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},f=Ue(d,LI,e);return{...e,...f}},DN=ce(of,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...rf(t,e),!r.disableUnderline&&e.underline]}})(Qe(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${sa.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${sa.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${sa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sa.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${sa.disabled}, .${sa.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${sa.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(ar()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),NN=ce(af,{name:"MuiFilledInput",slot:"Input",overridesResolver:nf})(Qe(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),By=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:l,fullWidth:c=!1,hiddenLabel:d,inputComponent:f="input",multiline:g=!1,slotProps:u,slots:m={},type:y="text",...w}=n,b={...n,disableUnderline:o,fullWidth:c,inputComponent:f,multiline:g,type:y},E=IN(n),k={root:{ownerState:b},input:{ownerState:b}},P=u??l?jr(k,u??l):k,_=m.root??i.Root??DN,R=m.input??i.Input??NN;return B.jsx(Ly,{slots:{root:_,input:R},slotProps:P,fullWidth:c,inputComponent:f,multiline:g,ref:r,type:y,...w,classes:E})});By.muiName="Input";function $N(t){return qe("MuiFormControl",t)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const LN=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${ye(r)}`,n&&"fullWidth"]};return Ue(o,$N,e)},BN=ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${ye(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),_s=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormControl"}),{children:o,className:i,color:l="primary",component:c="div",disabled:d=!1,error:f=!1,focused:g,fullWidth:u=!1,hiddenLabel:m=!1,margin:y="none",required:w=!1,size:b="medium",variant:E="outlined",...k}=n,P={...n,color:l,component:c,disabled:d,error:f,fullWidth:u,hiddenLabel:m,margin:y,required:w,size:b,variant:E},_=LN(P),[R,M]=A.useState(()=>{let U=!1;return o&&A.Children.forEach(o,K=>{if(!td(K,["Input","Select"]))return;const ee=td(K,["Select"])?K.props.input:K;ee&&AI(ee.props)&&(U=!0)}),U}),[T,O]=A.useState(()=>{let U=!1;return o&&A.Children.forEach(o,K=>{td(K,["Input","Select"])&&(yd(K.props,!0)||yd(K.props.inputProps,!0))&&(U=!0)}),U}),[N,$]=A.useState(!1);d&&N&&$(!1);const C=g!==void 0&&!d?g:N;let L;A.useRef(!1);const H=A.useCallback(()=>{O(!0)},[]),W=A.useCallback(()=>{O(!1)},[]),X=A.useMemo(()=>({adornedStart:R,setAdornedStart:M,color:l,disabled:d,error:f,filled:T,focused:C,fullWidth:u,hiddenLabel:m,size:b,onBlur:()=>{$(!1)},onFocus:()=>{$(!0)},onEmpty:W,onFilled:H,registerEffect:L,required:w,variant:E}),[R,l,d,f,T,C,u,m,L,W,H,w,b,E]);return B.jsx($y.Provider,{value:X,children:B.jsx(BN,{as:c,ownerState:P,className:Se(_.root,i),ref:r,...k,children:o})})});function FN(t){return qe("MuiFormControlLabel",t)}const Tc=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),zN=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:i}=t,l={root:["root",r&&"disabled",`labelPlacement${ye(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ue(l,FN,e)},jN=ce("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Tc.label}`]:e.label},e.root,e[`labelPlacement${ye(r.labelPlacement)}`]]}})(Qe(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Tc.disabled}`]:{cursor:"default"},[`& .${Tc.label}`]:{[`&.${Tc.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),HN=ce("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Qe(({theme:t})=>({[`&.${Tc.error}`]:{color:(t.vars||t).palette.error.main}}))),dt=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:l={},control:c,disabled:d,disableTypography:f,inputRef:g,label:u,labelPlacement:m="end",name:y,onChange:w,required:b,slots:E={},slotProps:k={},value:P,..._}=n,R=Po(),M=d??c.props.disabled??R?.disabled,T=b??c.props.required,O={disabled:M,required:T};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof c.props[U]>"u"&&typeof n[U]<"u"&&(O[U]=n[U])});const N=Ui({props:n,muiFormControl:R,states:["error"]}),$={...n,disabled:M,labelPlacement:m,required:T,error:N.error},C=zN($),L={slots:E,slotProps:{...l,...k}},[H,W]=ct("typography",{elementType:Qn,externalForwardedProps:L,ownerState:$});let X=u;return X!=null&&X.type!==Qn&&!f&&(X=B.jsx(H,{component:"span",...W,className:Se(C.label,W?.className),children:X})),B.jsxs(jN,{className:Se(C.root,i),ownerState:$,ref:r,..._,children:[A.cloneElement(c,O),T?B.jsxs("div",{children:[X,B.jsxs(HN,{ownerState:$,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):X]})});function qN(t){return qe("MuiFormGroup",t)}We("MuiFormGroup",["root","row","error"]);const WN=t=>{const{classes:e,row:r,error:n}=t;return Ue({root:["root",r&&"row",n&&"error"]},qN,e)},UN=ce("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Mm=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormGroup"}),{className:o,row:i=!1,...l}=n,c=Po(),d=Ui({props:n,muiFormControl:c,states:["error"]}),f={...n,row:i,error:d.error},g=WN(f);return B.jsx(UN,{className:Se(g.root,o),ownerState:f,ref:r,...l})});function XN(t){return qe("MuiFormHelperText",t)}const J4=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Q4;const VN=t=>{const{classes:e,contained:r,size:n,disabled:o,error:i,filled:l,focused:c,required:d}=t,f={root:["root",o&&"disabled",i&&"error",n&&`size${ye(n)}`,r&&"contained",c&&"focused",l&&"filled",d&&"required"]};return Ue(f,XN,e)},GN=ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${ye(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${J4.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${J4.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),KN=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormHelperText"}),{children:o,className:i,component:l="p",disabled:c,error:d,filled:f,focused:g,margin:u,required:m,variant:y,...w}=n,b=Po(),E=Ui({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),k={...n,component:l,contained:E.variant==="filled"||E.variant==="outlined",variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required};delete k.ownerState;const P=VN(k);return B.jsx(GN,{as:l,className:Se(P.root,i),ref:r,...w,ownerState:k,children:o===" "?Q4||(Q4=B.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function YN(t){return qe("MuiFormLabel",t)}const Lc=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),JN=t=>{const{classes:e,color:r,focused:n,disabled:o,error:i,filled:l,required:c}=t,d={root:["root",`color${ye(r)}`,o&&"disabled",i&&"error",l&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",i&&"error"]};return Ue(d,YN,e)},QN=ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e},style:{[`&.${Lc.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${Lc.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Lc.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),ZN=ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Qe(({theme:t})=>({[`&.${Lc.error}`]:{color:(t.vars||t).palette.error.main}}))),e$=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormLabel"}),{children:o,className:i,color:l,component:c="label",disabled:d,error:f,filled:g,focused:u,required:m,...y}=n,w=Po(),b=Ui({props:n,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),E={...n,color:b.color||"primary",component:c,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},k=JN(E);return B.jsxs(QN,{as:c,ownerState:E,className:Se(k.root,i),ref:r,...y,children:[o,b.required&&B.jsxs(ZN,{ownerState:E,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})}),Rv=LM({createStyledComponent:ce("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.container&&e.container]}}),componentName:"MuiGrid2",useThemeProps:t=>Ke({props:t,name:"MuiGrid2"}),useTheme:Zo});function Mv(t){return`scale(${t}, ${t**2})`}const t$={entering:{opacity:1,transform:Mv(1)},entered:{opacity:1,transform:"none"}},Pm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bd=A.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:i,easing:l,in:c,onEnter:d,onEntered:f,onEntering:g,onExit:u,onExited:m,onExiting:y,style:w,timeout:b="auto",TransitionComponent:E=Mo,...k}=e,P=Us(),_=A.useRef(),R=Zo(),M=A.useRef(null),T=Sr(M,hl(i),r),O=U=>K=>{if(U){const ee=M.current;K===void 0?U(ee):U(ee,K)}},N=O(g),$=O((U,K)=>{PC(U);const{duration:ee,delay:Q,easing:G}=md({style:w,timeout:b,easing:l},{mode:"enter"});let te;b==="auto"?(te=R.transitions.getAutoHeightDuration(U.clientHeight),_.current=te):te=ee,U.style.transition=[R.transitions.create("opacity",{duration:te,delay:Q}),R.transitions.create("transform",{duration:Pm?te:te*.666,delay:Q,easing:G})].join(","),d&&d(U,K)}),C=O(f),L=O(y),H=O(U=>{const{duration:K,delay:ee,easing:Q}=md({style:w,timeout:b,easing:l},{mode:"exit"});let G;b==="auto"?(G=R.transitions.getAutoHeightDuration(U.clientHeight),_.current=G):G=K,U.style.transition=[R.transitions.create("opacity",{duration:G,delay:ee}),R.transitions.create("transform",{duration:Pm?G:G*.666,delay:Pm?ee:ee||G*.333,easing:Q})].join(","),U.style.opacity=0,U.style.transform=Mv(.75),u&&u(U)}),W=O(m),X=U=>{b==="auto"&&P.start(_.current||0,U),n&&n(M.current,U)};return B.jsx(E,{appear:o,in:c,nodeRef:M,onEnter:$,onEntered:C,onEntering:N,onExit:H,onExited:W,onExiting:L,addEndListener:X,timeout:b==="auto"?null:b,...k,children:(U,{ownerState:K,...ee})=>A.cloneElement(i,{style:{opacity:0,transform:Mv(.75),visibility:U==="exited"&&!c?"hidden":void 0,...t$[U],...w,...i.props.style},ref:T,...ee})})});bd&&(bd.muiSupportAuto=!0);const r$=sC({themeId:eo}),n$=t=>{const{classes:e,disableUnderline:r}=t,o=Ue({root:["root",!r&&"underline"],input:["input"]},NI,e);return{...e,...o}},o$=ce(of,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...rf(t,e),!r.disableUnderline&&e.underline]}})(Qe(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ac.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ac.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ac.disabled}, .${ac.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ac.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(ar()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),i$=ce(af,{name:"MuiInput",slot:"Input",overridesResolver:nf})({}),bo=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:g,slots:u={},type:m="text",...y}=n,w=n$(n),E={root:{ownerState:{disableUnderline:o}}},k=g??l?jr(g??l,E):E,P=u.root??i.Root??o$,_=u.input??i.Input??i$;return B.jsx(Ly,{slots:{root:P,input:_},slotProps:k,fullWidth:c,inputComponent:d,multiline:f,ref:r,type:m,...y,classes:w})});bo.muiName="Input";function a$(t){return qe("MuiInputLabel",t)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const s$=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:i,variant:l,required:c}=t,d={root:["root",r&&"formControl",!i&&"animated",o&&"shrink",n&&n!=="normal"&&`size${ye(n)}`,l],asterisk:[c&&"asterisk"]},f=Ue(d,a$,e);return{...e,...f}},l$=ce(e$,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Lc.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Qe(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),nd=A.forwardRef(function(e,r){const n=Ke({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:i,shrink:l,variant:c,className:d,...f}=n,g=Po();let u=l;typeof u>"u"&&g&&(u=g.filled||g.focused||g.adornedStart);const m=Ui({props:n,muiFormControl:g,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:g,shrink:u,size:m.size,variant:m.variant,required:m.required,focused:m.focused},w=s$(y);return B.jsx(l$,{"data-shrink":u,ref:r,className:Se(w.root,d),...f,ownerState:y,classes:w})});function c$(t){return qe("MuiLinearProgress",t)}We("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Pv=4,Av=Hi` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`,u$=typeof Av!="string"?dl` - animation: ${Av} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `:null,Iv=Hi` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`,p$=typeof Iv!="string"?dl` - animation: ${Iv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `:null,Dv=Hi` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`,d$=typeof Dv!="string"?dl` - animation: ${Dv} 3s infinite linear; - `:null,f$=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${ye(n)}`,r],dashed:["dashed",`dashedColor${ye(n)}`],bar1:["bar","bar1",`barColor${ye(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${ye(n)}`,r==="buffer"&&`color${ye(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ue(o,c$,e)},Fy=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Jd(t.palette[e].main,.62):Yd(t.palette[e].main,.5),h$=ce("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${ye(r.color)}`],e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e},style:{backgroundColor:Fy(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),m$=ce("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${ye(r.color)}`]]}})(Qe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(ar()).map(([e])=>{const r=Fy(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),d$||{animation:`${Dv} 3s infinite linear`}),g$=ce("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${ye(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Pv}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Pv}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:u$||{animation:`${Av} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),v$=ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${ye(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:Fy(t,e),transition:`transform .${Pv}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:p$||{animation:`${Iv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),y$=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:l,valueBuffer:c,variant:d="indeterminate",...f}=n,g={...n,color:i,variant:d},u=f$(g),m=ml(),y={},w={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&l!==void 0){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let b=l-100;m&&(b=-b),w.bar1.transform=`translateX(${b}%)`}if(d==="buffer"&&c!==void 0){let b=(c||0)-100;m&&(b=-b),w.bar2.transform=`translateX(${b}%)`}return B.jsxs(h$,{className:Se(u.root,o),ownerState:g,role:"progressbar",...y,ref:r,...f,children:[d==="buffer"?B.jsx(m$,{className:u.dashed,ownerState:g}):null,B.jsx(g$,{className:u.bar1,ownerState:g,style:w.bar1}),d==="determinate"?null:B.jsx(v$,{className:u.bar2,ownerState:g,style:w.bar2})]})});function b$(t){return qe("MuiLink",t)}const x$=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),w$=({theme:t,ownerState:e})=>{const r=e.color,n=Ii(t,`palette.${r}.main`,!1)||Ii(t,`palette.${r}`,!1)||e.color,o=Ii(t,`palette.${r}.mainChannel`)||Ii(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Nt(n,.4)},Z4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},S$=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,i={root:["root",`underline${ye(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Ue(i,b$,e)},E$=ce(Qn,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${ye(r.underline)}`],r.component==="button"&&e.button]}})(Qe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:Nt(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Nt(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Nt(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${x$.focusVisible}`]:{outline:"auto"}}}]}))),C$=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiLink"}),o=Zo(),{className:i,color:l="primary",component:c="a",onBlur:d,onFocus:f,TypographyClasses:g,underline:u="always",variant:m="inherit",sx:y,...w}=n,[b,E]=A.useState(!1),k=M=>{ol(M.target)||E(!1),d&&d(M)},P=M=>{ol(M.target)&&E(!0),f&&f(M)},_={...n,color:l,component:c,focusVisible:b,underline:u,variant:m},R=S$(_);return B.jsx(E$,{color:l,className:Se(R.root,i),classes:g,component:c,onBlur:k,onFocus:P,ref:r,ownerState:_,variant:m,...w,sx:[...Z4[l]===void 0?[{color:l}]:[],...Array.isArray(y)?y:[y]],style:{...w.style,...u==="always"&&l!=="inherit"&&!Z4[l]&&{"--Link-underlineColor":w$({theme:o,ownerState:_})}}})}),Yc=A.createContext({});function T$(t){return qe("MuiList",t)}We("MuiList",["root","padding","dense","subheader"]);const k$=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return Ue({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},T$,e)},_$=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),O$=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f,...g}=n,u=A.useMemo(()=>({dense:c}),[c]),m={...n,component:l,dense:c,disablePadding:d},y=k$(m);return B.jsx(Yc.Provider,{value:u,children:B.jsxs(_$,{as:l,className:Se(y.root,i),ref:r,ownerState:m,...g,children:[f,o]})})});function R$(t){return qe("MuiListItemIcon",t)}const e5=We("MuiListItemIcon",["root","alignItemsFlexStart"]),M$=t=>{const{alignItems:e,classes:r}=t;return Ue({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},R$,r)},P$=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Qe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),A$=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiListItemIcon"}),{className:o,...i}=n,l=A.useContext(Yc),c={...n,alignItems:l.alignItems},d=M$(c);return B.jsx(P$,{className:Se(d.root,o),ownerState:c,ref:r,...i})});function I$(t){return qe("MuiListItemText",t)}const Xs=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),D$=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:i}=t;return Ue({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},I$,e)},N$=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Xs.primary}`]:e.primary},{[`& .${Xs.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${R4.root}:where(& .${Xs.primary})`]:{display:"block"},[`.${R4.root}:where(& .${Xs.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),$$=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiListItemText"}),{children:o,className:i,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:f,secondary:g,secondaryTypographyProps:u,slots:m={},slotProps:y={},...w}=n,{dense:b}=A.useContext(Yc);let E=d??o,k=g;const P={...n,disableTypography:l,inset:c,primary:!!E,secondary:!!k,dense:b},_=D$(P),R={slots:m,slotProps:{primary:f,secondary:u,...y}},[M,T]=ct("root",{className:Se(_.root,i),elementType:N$,externalForwardedProps:{...R,...w},ownerState:P,ref:r}),[O,N]=ct("primary",{className:_.primary,elementType:Qn,externalForwardedProps:R,ownerState:P}),[$,C]=ct("secondary",{className:_.secondary,elementType:Qn,externalForwardedProps:R,ownerState:P});return E!=null&&E.type!==Qn&&!l&&(E=B.jsx(O,{variant:b?"body2":"body1",component:N?.variant?void 0:"span",...N,children:E})),k!=null&&k.type!==Qn&&!l&&(k=B.jsx($,{variant:"body2",color:"textSecondary",...C,children:k})),B.jsxs(M,{...T,children:[E,k]})});function Am(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function t5(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function KC(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function sc(t,e,r,n,o,i){let l=!1,c=o(t,e,e?r:!1);for(;c;){if(c===t.firstChild){if(l)return!1;l=!0}const d=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!KC(c,i)||d)c=o(t,c,r);else return c.focus(),!0}return!1}const L$=A.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:g,variant:u="selectedMenu",...m}=e,y=A.useRef(null),w=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ln(()=>{o&&y.current.focus()},[o]),A.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:R})=>{const M=!y.current.style.width;if(_.clientHeight{const R=y.current,M=_.key;if(_.ctrlKey||_.metaKey||_.altKey){g&&g(_);return}const O=cn(R).activeElement;if(M==="ArrowDown")_.preventDefault(),sc(R,O,f,d,Am);else if(M==="ArrowUp")_.preventDefault(),sc(R,O,f,d,t5);else if(M==="Home")_.preventDefault(),sc(R,null,f,d,Am);else if(M==="End")_.preventDefault(),sc(R,null,f,d,t5);else if(M.length===1){const N=w.current,$=M.toLowerCase(),C=performance.now();N.keys.length>0&&(C-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&$!==N.keys[0]&&(N.repeating=!1)),N.lastTime=C,N.keys.push($);const L=O&&!N.repeating&&KC(O,N);N.previousKeyMatched&&(L||sc(R,O,!1,d,Am,N))?_.preventDefault():N.previousKeyMatched=!1}g&&g(_)},E=Sr(y,r);let k=-1;A.Children.forEach(l,(_,R)=>{if(!A.isValidElement(_)){k===R&&(k+=1,k>=l.length&&(k=-1));return}_.props.disabled||(u==="selectedMenu"&&_.props.selected||k===-1)&&(k=R),k===R&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(k+=1,k>=l.length&&(k=-1))});const P=A.Children.map(l,(_,R)=>{if(R===k){const M={};return i&&(M.autoFocus=!0),_.props.tabIndex===void 0&&u==="selectedMenu"&&(M.tabIndex=0),A.cloneElement(_,M)}return _});return B.jsx(O$,{role:"menu",ref:E,className:c,onKeyDown:b,tabIndex:o?0:-1,...m,children:P})});function B$(t){return qe("MuiPopover",t)}We("MuiPopover",["root","paper"]);function r5(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function n5(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function o5(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Ap(t){return typeof t=="function"?t():t}const F$=t=>{const{classes:e}=t;return Ue({root:["root"],paper:["paper"]},B$,e)},z$=ce(VC,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),YC=ce(vl,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),j$=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:g,container:u,elevation:m=8,marginThreshold:y=16,open:w,PaperProps:b={},slots:E={},slotProps:k={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:R="auto",TransitionProps:M={},disableScrollLock:T=!1,...O}=n,N=A.useRef(),$={...n,anchorOrigin:l,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:P,TransitionComponent:_,transitionDuration:R,TransitionProps:M},C=F$($),L=A.useCallback(()=>{if(d==="anchorPosition")return c;const xe=Ap(i),Ae=(xe&&xe.nodeType===1?xe:cn(N.current).body).getBoundingClientRect();return{top:Ae.top+r5(Ae,l.vertical),left:Ae.left+n5(Ae,l.horizontal)}},[i,l.horizontal,l.vertical,c,d]),H=A.useCallback(xe=>({vertical:r5(xe,P.vertical),horizontal:n5(xe,P.horizontal)}),[P.horizontal,P.vertical]),W=A.useCallback(xe=>{const Le={width:xe.offsetWidth,height:xe.offsetHeight},Ae=H(Le);if(d==="none")return{top:null,left:null,transformOrigin:o5(Ae)};const nt=L();let Me=nt.top-Ae.vertical,_e=nt.left-Ae.horizontal;const mt=Me+Le.height,Ee=_e+Le.width,Ie=to(Ap(i)),it=Ie.innerHeight-y,Ze=Ie.innerWidth-y;if(y!==null&&Meit){const Xe=mt-it;Me-=Xe,Ae.vertical+=Xe}if(y!==null&&_eZe){const Xe=Ee-Ze;_e-=Xe,Ae.horizontal+=Xe}return{top:`${Math.round(Me)}px`,left:`${Math.round(_e)}px`,transformOrigin:o5(Ae)}},[i,d,L,H,y]),[X,U]=A.useState(w),K=A.useCallback(()=>{const xe=N.current;if(!xe)return;const Le=W(xe);Le.top!==null&&xe.style.setProperty("top",Le.top),Le.left!==null&&(xe.style.left=Le.left),xe.style.transformOrigin=Le.transformOrigin,U(!0)},[W]);A.useEffect(()=>(T&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[i,T,K]);const ee=()=>{K()},Q=()=>{U(!1)};A.useEffect(()=>{w&&K()}),A.useImperativeHandle(o,()=>w?{updatePosition:()=>{K()}}:null,[w,K]),A.useEffect(()=>{if(!w)return;const xe=Qd(()=>{K()}),Le=to(Ap(i));return Le.addEventListener("resize",xe),()=>{xe.clear(),Le.removeEventListener("resize",xe)}},[i,w,K]);let G=R;const te={slots:{transition:_,...E},slotProps:{transition:M,paper:b,...k}},[I,z]=ct("transition",{elementType:bd,externalForwardedProps:te,ownerState:$,getSlotProps:xe=>({...xe,onEntering:(Le,Ae)=>{xe.onEntering?.(Le,Ae),ee()},onExited:Le=>{xe.onExited?.(Le),Q()}}),additionalProps:{appear:!0,in:w}});R==="auto"&&!I.muiSupportAuto&&(G=void 0);const oe=u||(i?cn(Ap(i)).body:void 0),[ie,{slots:re,slotProps:ae,...he}]=ct("root",{ref:r,elementType:z$,externalForwardedProps:{...te,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:_C(typeof k.backdrop=="function"?k.backdrop($):k.backdrop,{invisible:!0})},container:oe,open:w},ownerState:$,className:Se(C.root,g)}),[me,ve]=ct("paper",{ref:N,className:C.paper,elementType:YC,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:X?void 0:{opacity:0}},ownerState:$});return B.jsx(ie,{...he,...!kv(ie)&&{slots:re,slotProps:ae,disableScrollLock:T},children:B.jsx(I,{...z,timeout:G,children:B.jsx(me,{...ve,children:f})})})});function H$(t){return qe("MuiMenu",t)}We("MuiMenu",["root","paper","list"]);const q$={vertical:"top",horizontal:"right"},W$={vertical:"top",horizontal:"left"},U$=t=>{const{classes:e}=t;return Ue({root:["root"],paper:["paper"],list:["list"]},H$,e)},X$=ce(j$,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),V$=ce(YC,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),G$=ce(L$,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),JC=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:g,PaperProps:u={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:w,...b}={},variant:E="selectedMenu",slots:k={},slotProps:P={},..._}=n,R=ml(),M={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:d,onEntering:w,PaperProps:u,transitionDuration:y,TransitionProps:b,variant:E},T=U$(M),O=o&&!c&&g,N=A.useRef(null),$=(G,te)=>{N.current&&N.current.adjustStyleForScrollbar(G,{direction:R?"rtl":"ltr"}),w&&w(G,te)},C=G=>{G.key==="Tab"&&(G.preventDefault(),f&&f(G,"tabKeyDown"))};let L=-1;A.Children.map(i,(G,te)=>{A.isValidElement(G)&&(G.props.disabled||(E==="selectedMenu"&&G.props.selected||L===-1)&&(L=te))});const H={slots:k,slotProps:{list:d,transition:b,paper:u,...P}},W=Ea({elementType:k.root,externalSlotProps:P.root,ownerState:M,className:[T.root,l]}),[X,U]=ct("paper",{className:T.paper,elementType:V$,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:M}),[K,ee]=ct("list",{className:Se(T.list,d.className),elementType:G$,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:G=>({...G,onKeyDown:te=>{C(te),G.onKeyDown?.(te)}}),ownerState:M}),Q=typeof H.slotProps.transition=="function"?H.slotProps.transition(M):H.slotProps.transition;return B.jsx(X$,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?q$:W$,slots:{root:k.root,paper:X,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:W,paper:U,backdrop:typeof P.backdrop=="function"?P.backdrop(M):P.backdrop,transition:{...Q,onEntering:(...G)=>{$(...G),Q?.onEntering?.(...G)}}},open:g,ref:r,transitionDuration:y,ownerState:M,..._,classes:m,children:B.jsx(K,{actions:N,autoFocus:o&&(L===-1||c),autoFocusItem:O,variant:E,...ee,children:i})})});function K$(t){return qe("MuiMenuItem",t)}const lc=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Y$=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},J$=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:i,classes:l}=t,d=Ue({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},K$,l);return{...l,...d}},Q$=ce(qi,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Y$})(Qe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lc.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${lc.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${lc.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${lc.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${lc.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${K4.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${K4.inset}`]:{marginLeft:52},[`& .${Xs.root}`]:{marginTop:0,marginBottom:0},[`& .${Xs.inset}`]:{paddingLeft:36},[`& .${e5.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${e5.root} svg`]:{fontSize:"1.25rem"}}}]}))),mr=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:f,role:g="menuitem",tabIndex:u,className:m,...y}=n,w=A.useContext(Yc),b=A.useMemo(()=>({dense:l||w.dense||!1,disableGutters:d}),[w.dense,l,d]),E=A.useRef(null);ln(()=>{o&&E.current&&E.current.focus()},[o]);const k={...n,dense:b.dense,divider:c,disableGutters:d},P=J$(n),_=Sr(E,r);let R;return n.disabled||(R=u!==void 0?u:-1),B.jsx(Yc.Provider,{value:b,children:B.jsx(Q$,{ref:_,role:g,tabIndex:R,component:i,focusVisibleClassName:Se(P.focusVisible,f),className:Se(P.root,m),...y,ownerState:k,classes:P})})});function Z$(t){return qe("MuiNativeSelect",t)}const zy=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),eL=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ye(r)}`,i&&"iconOpen",n&&"disabled"]};return Ue(c,Z$,e)},QC=ce("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${zy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),tL=ce(QC,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Er,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${zy.multiple}`]:e.multiple}]}})({}),ZC=ce("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${zy.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),rL=ce(ZC,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ye(r.variant)}`],r.open&&e.iconOpen]}})({}),nL=A.forwardRef(function(e,r){const{className:n,disabled:o,error:i,IconComponent:l,inputRef:c,variant:d="standard",...f}=e,g={...e,disabled:o,variant:d,error:i},u=eL(g);return B.jsxs(A.Fragment,{children:[B.jsx(tL,{ownerState:g,className:Se(u.select,n),disabled:o,ref:c||r,...f}),e.multiple?null:B.jsx(rL,{as:l,ownerState:g,className:u.icon})]})});var i5;const oL=ce("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Er})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),iL=ce("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Er})(Qe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function aL(t){const{children:e,classes:r,className:n,label:o,notched:i,...l}=t,c=o!=null&&o!=="",d={...t,notched:i,withLabel:c};return B.jsx(oL,{"aria-hidden":!0,className:n,ownerState:d,...l,children:B.jsx(iL,{ownerState:d,children:c?B.jsx("span",{children:o}):i5||(i5=B.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const sL=t=>{const{classes:e}=t,n=Ue({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$I,e);return{...e,...n}},lL=ce(of,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rf})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${fo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${fo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${fo.focused} .${fo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(ar()).map(([r])=>({props:{color:r},style:{[`&.${fo.focused} .${fo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${fo.error} .${fo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${fo.disabled} .${fo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),cL=ce(aL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),uL=ce(af,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nf})(Qe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),jy=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:f,slots:g={},slotProps:u={},type:m="text",...y}=n,w=sL(n),b=Po(),E=Ui({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:b,fullWidth:i,hiddenLabel:E.hiddenLabel,multiline:d,size:E.size,type:m},P=g.root??o.Root??lL,_=g.input??o.Input??uL,[R,M]=ct("notchedOutline",{elementType:cL,className:w.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:u},additionalProps:{label:c!=null&&c!==""&&E.required?B.jsxs(A.Fragment,{children:[c," ","*"]}):c}});return B.jsx(Ly,{slots:{root:P,input:_},slotProps:u,renderSuffix:T=>B.jsx(R,{...M,notched:typeof f<"u"?f:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:i,inputComponent:l,multiline:d,ref:r,type:m,...y,classes:{...w,notchedOutline:null}})});jy.muiName="Input";const pL=He(B.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),dL=He(B.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),fL=ce("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Er})({position:"relative",display:"flex"}),hL=ce(pL,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),mL=ce(dL,{name:"MuiRadioButtonIcon"})(Qe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function eT(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return B.jsxs(fL,{className:r.root,ownerState:o,children:[B.jsx(hL,{fontSize:n,className:r.background,ownerState:o}),B.jsx(mL,{fontSize:n,className:r.dot,ownerState:o})]})}const gL=A.createContext(void 0);function vL(){return A.useContext(gL)}function yL(t){return qe("MuiRadio",t)}const a5=We("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),bL=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${ye(r)}`,n!=="medium"&&`size${ye(n)}`]};return{...e,...Ue(o,yL,e)}},xL=ce(XC,{shouldForwardProp:t=>Er(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${ye(r.size)}`],e[`color${ye(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${a5.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(ar()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${a5.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function wL(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const SL=B.jsx(eT,{checked:!0}),EL=B.jsx(eT,{}),Lt=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:i=SL,color:l="primary",icon:c=EL,name:d,onChange:f,size:g="medium",className:u,disabled:m,disableRipple:y=!1,slots:w={},slotProps:b={},inputProps:E,...k}=n,P=Po();let _=m;P&&typeof _>"u"&&(_=P.disabled),_??=!1;const R={...n,disabled:_,disableRipple:y,color:l,size:g},M=bL(R),T=vL();let O=o;const N=dv(f,T&&T.onChange);let $=d;T&&(typeof O>"u"&&(O=wL(T.value,n.value)),typeof $>"u"&&($=T.name));const C=b.input??E,[L,H]=ct("root",{ref:r,elementType:xL,className:Se(M.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:w,slotProps:b,...k},getSlotProps:W=>({...W,onChange:(X,...U)=>{W.onChange?.(X,...U),N(X,...U)}}),ownerState:R,additionalProps:{type:"radio",icon:A.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:A.cloneElement(i,{fontSize:i.props.fontSize??g}),disabled:_,name:$,checked:O,slots:w,slotProps:{input:typeof C=="function"?C(R):C}}});return B.jsx(L,{...H,classes:M})});function tT(t){return qe("MuiSelect",t)}const cc=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var s5;const CL=ce(QC,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${cc.select}`]:e.select},{[`&.${cc.select}`]:e[r.variant]},{[`&.${cc.error}`]:e.error},{[`&.${cc.multiple}`]:e.multiple}]}})({[`&.${cc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),TL=ce(ZC,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ye(r.variant)}`],r.open&&e.iconOpen]}})({}),kL=ce("input",{shouldForwardProp:t=>kC(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function l5(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function _L(t){return t==null||typeof t=="string"&&!t.trim()}const OL=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ye(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ue(c,tT,e)},RL=A.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:g,disabled:u,displayEmpty:m,error:y=!1,IconComponent:w,inputRef:b,labelId:E,MenuProps:k={},multiple:P,name:_,onBlur:R,onChange:M,onClose:T,onFocus:O,onOpen:N,open:$,readOnly:C,renderValue:L,required:H,SelectDisplayProps:W={},tabIndex:X,type:U,value:K,variant:ee="standard",...Q}=e,[G,te]=dd({controlled:K,default:g,name:"Select"}),[I,z]=dd({controlled:$,default:f,name:"Select"}),oe=A.useRef(null),ie=A.useRef(null),[re,ae]=A.useState(null),{current:he}=A.useRef($!=null),[me,ve]=A.useState(),xe=Sr(r,b),Le=A.useCallback(Ce=>{ie.current=Ce,Ce&&ae(Ce)},[]),Ae=re?.parentNode;A.useImperativeHandle(xe,()=>({focus:()=>{ie.current.focus()},node:oe.current,value:G}),[G]),A.useEffect(()=>{f&&I&&re&&!he&&(ve(l?null:Ae.clientWidth),ie.current.focus())},[re,l]),A.useEffect(()=>{i&&ie.current.focus()},[i]),A.useEffect(()=>{if(!E)return;const Ce=cn(ie.current).getElementById(E);if(Ce){const lt=()=>{getSelection().isCollapsed&&ie.current.focus()};return Ce.addEventListener("click",lt),()=>{Ce.removeEventListener("click",lt)}}},[E]);const nt=(Ce,lt)=>{Ce?N&&N(lt):T&&T(lt),he||(ve(l?null:Ae.clientWidth),z(Ce))},Me=Ce=>{Ce.button===0&&(Ce.preventDefault(),ie.current.focus(),nt(!0,Ce))},_e=Ce=>{nt(!1,Ce)},mt=A.Children.toArray(c),Ee=Ce=>{const lt=mt.find(Et=>Et.props.value===Ce.target.value);lt!==void 0&&(te(lt.props.value),M&&M(Ce,lt))},Ie=Ce=>lt=>{let Et;if(lt.currentTarget.hasAttribute("tabindex")){if(P){Et=Array.isArray(G)?G.slice():[];const gr=G.indexOf(Ce.props.value);gr===-1?Et.push(Ce.props.value):Et.splice(gr,1)}else Et=Ce.props.value;if(Ce.props.onClick&&Ce.props.onClick(lt),G!==Et&&(te(Et),M)){const gr=lt.nativeEvent||lt,vr=new gr.constructor(gr.type,gr);Object.defineProperty(vr,"target",{writable:!0,value:{value:Et,name:_}}),M(vr,Ce)}P||nt(!1,lt)}},it=Ce=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(Ce.key)&&(Ce.preventDefault(),nt(!0,Ce))},Ze=re!==null&&I,Xe=Ce=>{!Ze&&R&&(Object.defineProperty(Ce,"target",{writable:!0,value:{value:G,name:_}}),R(Ce))};delete Q["aria-invalid"];let we,at;const Ye=[];let se=!1;(yd({value:G})||m)&&(L?we=L(G):se=!0);const be=mt.map(Ce=>{if(!A.isValidElement(Ce))return null;let lt;if(P){if(!Array.isArray(G))throw new Error(Ko(2));lt=G.some(Et=>l5(Et,Ce.props.value)),lt&&se&&Ye.push(Ce.props.children)}else lt=l5(G,Ce.props.value),lt&&se&&(at=Ce.props.children);return A.cloneElement(Ce,{"aria-selected":lt?"true":"false",onClick:Ie(Ce),onKeyUp:Et=>{Et.key===" "&&Et.preventDefault(),Ce.props.onKeyUp&&Ce.props.onKeyUp(Et)},role:"option",selected:lt,value:void 0,"data-value":Ce.props.value})});se&&(P?Ye.length===0?we=null:we=Ye.reduce((Ce,lt,Et)=>(Ce.push(lt),Et{const{classes:e}=t,n=Ue({root:["root"]},tT,e);return{...e,...n}},Hy={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Er(t)&&t!=="variant",slot:"Root"},PL=ce(bo,Hy)(""),AL=ce(jy,Hy)(""),IL=ce(By,Hy)(""),So=A.forwardRef(function(e,r){const n=Ke({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:g=BI,id:u,input:m,inputProps:y,label:w,labelId:b,MenuProps:E,multiple:k=!1,native:P=!1,onClose:_,onOpen:R,open:M,renderValue:T,SelectDisplayProps:O,variant:N="outlined",...$}=n,C=P?nL:RL,L=Po(),H=Ui({props:n,muiFormControl:L,states:["variant","error"]}),W=H.variant||N,X={...n,variant:W,classes:l},U=ML(X),{root:K,...ee}=U,Q=m||{standard:B.jsx(PL,{ownerState:X}),outlined:B.jsx(AL,{label:w,ownerState:X}),filled:B.jsx(IL,{ownerState:X})}[W],G=Sr(r,hl(Q));return B.jsx(A.Fragment,{children:A.cloneElement(Q,{inputComponent:C,inputProps:{children:i,error:H.error,IconComponent:g,variant:W,type:void 0,multiple:k,...P?{id:u}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:b,MenuProps:E,onClose:_,onOpen:R,open:M,renderValue:T,SelectDisplayProps:{id:u,...O}},...y,classes:y?jr(ee,y.classes):ee,...m?m.props.inputProps:{}},...(k&&P||f)&&W==="outlined"?{notched:!0}:{},ref:G,className:Se(Q.props.className,c,U.root),...!m&&{variant:W},...$})})});So.muiName="Select";function DL(t){return qe("MuiTooltip",t)}const tr=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function NL(t){return Math.round(t*1e5)/1e5}const $L=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${ye(i.split("-")[0])}`],arrow:["arrow"]};return Ue(l,DL,e)},LL=ce(qC,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Qe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${tr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${tr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${tr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${tr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${tr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${tr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),BL=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${ye(r.placement.split("-")[0])}`]]}})(Qe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${tr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${tr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${tr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${NL(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${tr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${tr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${tr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${tr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${tr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${tr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),FL=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Qe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ip=!1;const c5=new Zd;let uc={x:0,y:0};function Dp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const od=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:l,components:c={},componentsProps:d={},describeChild:f=!1,disableFocusListener:g=!1,disableHoverListener:u=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:w=100,enterNextDelay:b=0,enterTouchDelay:E=700,followCursor:k=!1,id:P,leaveDelay:_=0,leaveTouchDelay:R=1500,onClose:M,onOpen:T,open:O,placement:N="bottom",PopperComponent:$,PopperProps:C={},slotProps:L={},slots:H={},title:W,TransitionComponent:X,TransitionProps:U,...K}=n,ee=A.isValidElement(i)?i:B.jsx("span",{children:i}),Q=Zo(),G=ml(),[te,I]=A.useState(),[z,oe]=A.useState(null),ie=A.useRef(!1),re=m||k,ae=Us(),he=Us(),me=Us(),ve=Us(),[xe,Le]=dd({controlled:O,default:!1,name:"Tooltip",state:"open"});let Ae=xe;const nt=Ra(P),Me=A.useRef(),_e=$n(()=>{Me.current!==void 0&&(document.body.style.WebkitUserSelect=Me.current,Me.current=void 0),ve.clear()});A.useEffect(()=>_e,[_e]);const mt=rt=>{c5.clear(),Ip=!0,Le(!0),T&&!Ae&&T(rt)},Ee=$n(rt=>{c5.start(800+_,()=>{Ip=!1}),Le(!1),M&&Ae&&M(rt),ae.start(Q.transitions.duration.shortest,()=>{ie.current=!1})}),Ie=rt=>{ie.current&&rt.type!=="touchstart"||(te&&te.removeAttribute("title"),he.clear(),me.clear(),w||Ip&&b?he.start(Ip?b:w,()=>{mt(rt)}):mt(rt))},it=rt=>{he.clear(),me.start(_,()=>{Ee(rt)})},[,Ze]=A.useState(!1),Xe=rt=>{ol(rt.target)||(Ze(!1),it(rt))},we=rt=>{te||I(rt.currentTarget),ol(rt.target)&&(Ze(!0),Ie(rt))},at=rt=>{ie.current=!0;const Xr=ee.props;Xr.onTouchStart&&Xr.onTouchStart(rt)},Ye=rt=>{at(rt),me.clear(),ae.clear(),_e(),Me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(E,()=>{document.body.style.WebkitUserSelect=Me.current,Ie(rt)})},se=rt=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(rt),_e(),me.start(R,()=>{Ee(rt)})};A.useEffect(()=>{if(!Ae)return;function rt(Xr){Xr.key==="Escape"&&Ee(Xr)}return document.addEventListener("keydown",rt),()=>{document.removeEventListener("keydown",rt)}},[Ee,Ae]);const be=Sr(hl(ee),I,r);!W&&W!==0&&(Ae=!1);const je=A.useRef(),Be=rt=>{const Xr=ee.props;Xr.onMouseMove&&Xr.onMouseMove(rt),uc={x:rt.clientX,y:rt.clientY},je.current&&je.current.update()},st={},yt=typeof W=="string";f?(st.title=!Ae&&yt&&!u?W:null,st["aria-describedby"]=Ae?nt:null):(st["aria-label"]=yt?W:null,st["aria-labelledby"]=Ae&&!yt?nt:null);const Fe={...st,...K,...ee.props,className:Se(K.className,ee.props.className),onTouchStart:at,ref:be,...k?{onMouseMove:Be}:{}},Ht={};y||(Fe.onTouchStart=Ye,Fe.onTouchEnd=se),u||(Fe.onMouseOver=Dp(Ie,Fe.onMouseOver),Fe.onMouseLeave=Dp(it,Fe.onMouseLeave),re||(Ht.onMouseOver=Ie,Ht.onMouseLeave=it)),g||(Fe.onFocus=Dp(we,Fe.onFocus),Fe.onBlur=Dp(Xe,Fe.onBlur),re||(Ht.onFocus=we,Ht.onBlur=Xe));const St={...n,isRtl:G,arrow:o,disableInteractive:re,placement:N,PopperComponentProp:$,touch:ie.current},Ce=typeof L.popper=="function"?L.popper(St):L.popper,lt=A.useMemo(()=>{let rt=[{name:"arrow",enabled:!!z,options:{element:z,padding:4}}];return C.popperOptions?.modifiers&&(rt=rt.concat(C.popperOptions.modifiers)),Ce?.popperOptions?.modifiers&&(rt=rt.concat(Ce.popperOptions.modifiers)),{...C.popperOptions,...Ce?.popperOptions,modifiers:rt}},[z,C.popperOptions,Ce?.popperOptions]),Et=$L(St),gr=typeof L.transition=="function"?L.transition(St):L.transition,vr={slots:{popper:c.Popper,transition:c.Transition??X,tooltip:c.Tooltip,arrow:c.Arrow,...H},slotProps:{arrow:L.arrow??d.arrow,popper:{...C,...Ce??d.popper},tooltip:L.tooltip??d.tooltip,transition:{...U,...gr??d.transition}}},[Ur,Do]=ct("popper",{elementType:LL,externalForwardedProps:vr,ownerState:St,className:Se(Et.popper,C?.className)}),[oo,Cn]=ct("transition",{elementType:bd,externalForwardedProps:vr,ownerState:St}),[Ba,Fa]=ct("tooltip",{elementType:BL,className:Et.tooltip,externalForwardedProps:vr,ownerState:St}),[za,ja]=ct("arrow",{elementType:FL,className:Et.arrow,externalForwardedProps:vr,ownerState:St,ref:oe});return B.jsxs(A.Fragment,{children:[A.cloneElement(ee,Fe),B.jsx(Ur,{as:$??qC,placement:N,anchorEl:k?{getBoundingClientRect:()=>({top:uc.y,left:uc.x,right:uc.x,bottom:uc.y,width:0,height:0})}:te,popperRef:je,open:te?Ae:!1,id:nt,transition:!0,...Ht,...Do,popperOptions:lt,children:({TransitionProps:rt})=>B.jsx(oo,{timeout:Q.transitions.duration.shorter,...rt,...Cn,children:B.jsxs(Ba,{...Fa,children:[W,o?B.jsx(za,{...ja}):null]})})})]})});function zL(t){return qe("MuiTab",t)}const An=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),jL=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:i,label:l,selected:c,disabled:d}=t,f={root:["root",i&&l&&"labelIcon",`textColor${ye(r)}`,n&&"fullWidth",o&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return Ue(f,zL,e)},HL=ce(qi,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${ye(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${An.iconWrapper}`]:e.iconWrapper},{[`& .${An.icon}`]:e.icon}]}})(Qe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${An.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${An.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${An.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${An.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${An.selected}`]:{opacity:1},[`&.${An.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${An.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${An.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${An.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${An.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),vs=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:f="top",indicator:g,label:u,onChange:m,onClick:y,onFocus:w,selected:b,selectionFollowsFocus:E,textColor:k="inherit",value:P,wrapped:_=!1,...R}=n,M={...n,disabled:i,disableFocusRipple:l,selected:b,icon:!!d,iconPosition:f,label:!!u,fullWidth:c,textColor:k,wrapped:_},T=jL(M),O=d&&u&&A.isValidElement(d)?A.cloneElement(d,{className:Se(T.icon,d.props.className)}):d,N=C=>{!b&&m&&m(C,P),y&&y(C)},$=C=>{E&&!b&&m&&m(C,P),w&&w(C)};return B.jsxs(HL,{focusRipple:!l,className:Se(T.root,o),ref:r,role:"tab","aria-selected":b,disabled:i,onClick:N,onFocus:$,ownerState:M,tabIndex:b?0:-1,...R,children:[f==="top"||f==="start"?B.jsxs(A.Fragment,{children:[O,u]}):B.jsxs(A.Fragment,{children:[u,O]}),g]})});function qL(t){return qe("MuiToolbar",t)}We("MuiToolbar",["root","gutters","regular","dense"]);const WL=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Ue({root:["root",!r&&"gutters",n]},qL,e)},UL=ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),qy=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:c="regular",...d}=n,f={...n,component:i,disableGutters:l,variant:c},g=WL(f);return B.jsx(UL,{as:i,className:Se(g.root,o),ref:r,ownerState:f,...d})}),XL=He(B.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),VL=He(B.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function GL(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function KL(t,e,r,n={},o=()=>{}){const{ease:i=GL,duration:l=300}=n;let c=null;const d=e[t];let f=!1;const g=()=>{f=!0},u=m=>{if(f){o(new Error("Animation cancelled"));return}c===null&&(c=m);const y=Math.min(1,(m-c)/l);if(e[t]=i(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(u)};return d===r?(o(new Error("Element already at target position")),g):(requestAnimationFrame(u),g)}const YL={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function JL(t){const{onChange:e,...r}=t,n=A.useRef(),o=A.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return ln(()=>{const l=Qd(()=>{const d=n.current;i(),d!==n.current&&e(n.current)}),c=to(o.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[e]),A.useEffect(()=>{i(),e(n.current)},[e]),B.jsx("div",{style:YL,...r,ref:o})}function QL(t){return qe("MuiTabScrollButton",t)}const ZL=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),eB=t=>{const{classes:e,orientation:r,disabled:n}=t;return Ue({root:["root",r,n&&"disabled"]},QL,e)},tB=ce(qi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${ZL.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),rB=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:l={},direction:c,orientation:d,disabled:f,...g}=n,u=ml(),m={isRtl:u,...n},y=eB(m),w=i.StartScrollButtonIcon??XL,b=i.EndScrollButtonIcon??VL,E=Ea({elementType:w,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),k=Ea({elementType:b,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return B.jsx(tB,{component:"div",className:Se(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...g,style:{...g.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:c==="left"?B.jsx(w,{...E}):B.jsx(b,{...k})})});function nB(t){return qe("MuiTabs",t)}const Im=We("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),u5=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,p5=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,Np=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=r(t,o);else{o.focus();return}}},oB=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:l,scrollButtonsHideMobile:c,classes:d}=t;return Ue({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},nB,d)},iB=ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Im.scrollButtons}`]:e.scrollButtons},{[`& .${Im.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Qe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Im.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),aB=ce("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),sB=ce("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),lB=ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Qe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),cB=ce(JL)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),d5={},uB=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTabs"}),o=Zo(),i=ml(),{"aria-label":l,"aria-labelledby":c,action:d,centered:f=!1,children:g,className:u,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:w="primary",onChange:b,orientation:E="horizontal",ScrollButtonComponent:k,scrollButtons:P="auto",selectionFollowsFocus:_,slots:R={},slotProps:M={},TabIndicatorProps:T={},TabScrollButtonProps:O={},textColor:N="primary",value:$,variant:C="standard",visibleScrollbar:L=!1,...H}=n,W=C==="scrollable",X=E==="vertical",U=X?"scrollTop":"scrollLeft",K=X?"top":"left",ee=X?"bottom":"right",Q=X?"clientHeight":"clientWidth",G=X?"height":"width",te={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:w,orientation:E,vertical:X,scrollButtons:P,textColor:N,variant:C,visibleScrollbar:L,fixed:!W,hideScrollbar:W&&!L,scrollableX:W&&!X,scrollableY:W&&X,centered:f&&!W,scrollButtonsHideMobile:!y},I=oB(te),z=Ea({elementType:R.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:te}),oe=Ea({elementType:R.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:te}),[ie,re]=A.useState(!1),[ae,he]=A.useState(d5),[me,ve]=A.useState(!1),[xe,Le]=A.useState(!1),[Ae,nt]=A.useState(!1),[Me,_e]=A.useState({overflow:"hidden",scrollbarWidth:0}),mt=new Map,Ee=A.useRef(null),Ie=A.useRef(null),it={slots:R,slotProps:{indicator:T,scrollButton:O,...M}},Ze=()=>{const Oe=Ee.current;let ze;if(Oe){const ft=Oe.getBoundingClientRect();ze={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollWidth:Oe.scrollWidth,top:ft.top,bottom:ft.bottom,left:ft.left,right:ft.right}}let bt;if(Oe&&$!==!1){const ft=Ie.current.children;if(ft.length>0){const Jt=ft[mt.get($)];bt=Jt?Jt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:bt}},Xe=$n(()=>{const{tabsMeta:Oe,tabMeta:ze}=Ze();let bt=0,ft;X?(ft="top",ze&&Oe&&(bt=ze.top-Oe.top+Oe.scrollTop)):(ft=i?"right":"left",ze&&Oe&&(bt=(i?-1:1)*(ze[ft]-Oe[ft]+Oe.scrollLeft)));const Jt={[ft]:bt,[G]:ze?ze[G]:0};if(typeof ae[ft]!="number"||typeof ae[G]!="number")he(Jt);else{const Mr=Math.abs(ae[ft]-Jt[ft]),Tn=Math.abs(ae[G]-Jt[G]);(Mr>=1||Tn>=1)&&he(Jt)}}),we=(Oe,{animation:ze=!0}={})=>{ze?KL(U,Ee.current,Oe,{duration:o.transitions.duration.standard}):Ee.current[U]=Oe},at=Oe=>{let ze=Ee.current[U];X?ze+=Oe:ze+=Oe*(i?-1:1),we(ze)},Ye=()=>{const Oe=Ee.current[Q];let ze=0;const bt=Array.from(Ie.current.children);for(let ft=0;ftOe){ft===0&&(ze=Oe);break}ze+=Jt[Q]}return ze},se=()=>{at(-1*Ye())},be=()=>{at(Ye())},[je,{onChange:Be,...st}]=ct("scrollbar",{className:Se(I.scrollableX,I.hideScrollbar),elementType:cB,shouldForwardComponentProp:!0,externalForwardedProps:it,ownerState:te}),yt=A.useCallback(Oe=>{Be?.(Oe),_e({overflow:null,scrollbarWidth:Oe})},[Be]),[Fe,Ht]=ct("scrollButtons",{className:Se(I.scrollButtons,O.className),elementType:rB,externalForwardedProps:it,ownerState:te,additionalProps:{orientation:E,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:z,endScrollButtonIcon:oe}}}),St=()=>{const Oe={};Oe.scrollbarSizeListener=W?B.jsx(je,{...st,onChange:yt}):null;const bt=W&&(P==="auto"&&(me||xe)||P===!0);return Oe.scrollButtonStart=bt?B.jsx(Fe,{direction:i?"right":"left",onClick:se,disabled:!me,...Ht}):null,Oe.scrollButtonEnd=bt?B.jsx(Fe,{direction:i?"left":"right",onClick:be,disabled:!xe,...Ht}):null,Oe},Ce=$n(Oe=>{const{tabsMeta:ze,tabMeta:bt}=Ze();if(!(!bt||!ze)){if(bt[K]ze[ee]){const ft=ze[U]+(bt[ee]-ze[ee]);we(ft,{animation:Oe})}}}),lt=$n(()=>{W&&P!==!1&&nt(!Ae)});A.useEffect(()=>{const Oe=Qd(()=>{Ee.current&&Xe()});let ze;const bt=Mr=>{Mr.forEach(Tn=>{Tn.removedNodes.forEach(io=>{ze?.unobserve(io)}),Tn.addedNodes.forEach(io=>{ze?.observe(io)})}),Oe(),lt()},ft=to(Ee.current);ft.addEventListener("resize",Oe);let Jt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(Oe),Array.from(Ie.current.children).forEach(Mr=>{ze.observe(Mr)})),typeof MutationObserver<"u"&&(Jt=new MutationObserver(bt),Jt.observe(Ie.current,{childList:!0})),()=>{Oe.clear(),ft.removeEventListener("resize",Oe),Jt?.disconnect(),ze?.disconnect()}},[Xe,lt]),A.useEffect(()=>{const Oe=Array.from(Ie.current.children),ze=Oe.length;if(typeof IntersectionObserver<"u"&&ze>0&&W&&P!==!1){const bt=Oe[0],ft=Oe[ze-1],Jt={root:Ee.current,threshold:.99},Mr=Sl=>{ve(!Sl[0].isIntersecting)},Tn=new IntersectionObserver(Mr,Jt);Tn.observe(bt);const io=Sl=>{Le(!Sl[0].isIntersecting)},Ha=new IntersectionObserver(io,Jt);return Ha.observe(ft),()=>{Tn.disconnect(),Ha.disconnect()}}},[W,P,Ae,g?.length]),A.useEffect(()=>{re(!0)},[]),A.useEffect(()=>{Xe()}),A.useEffect(()=>{Ce(d5!==ae)},[Ce,ae]),A.useImperativeHandle(d,()=>({updateIndicator:Xe,updateScrollButtons:lt}),[Xe,lt]);const[Et,gr]=ct("indicator",{className:Se(I.indicator,T.className),elementType:lB,externalForwardedProps:it,ownerState:te,additionalProps:{style:ae}}),vr=B.jsx(Et,{...gr});let Ur=0;const Do=A.Children.map(g,Oe=>{if(!A.isValidElement(Oe))return null;const ze=Oe.props.value===void 0?Ur:Oe.props.value;mt.set(ze,Ur);const bt=ze===$;return Ur+=1,A.cloneElement(Oe,{fullWidth:C==="fullWidth",indicator:bt&&!ie&&vr,selected:bt,selectionFollowsFocus:_,onChange:b,textColor:N,value:ze,...Ur===1&&$===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}})}),oo=Oe=>{if(Oe.altKey||Oe.shiftKey||Oe.ctrlKey||Oe.metaKey)return;const ze=Ie.current,bt=cn(ze).activeElement;if(bt.getAttribute("role")!=="tab")return;let Jt=E==="horizontal"?"ArrowLeft":"ArrowUp",Mr=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&i&&(Jt="ArrowRight",Mr="ArrowLeft"),Oe.key){case Jt:Oe.preventDefault(),Np(ze,bt,p5);break;case Mr:Oe.preventDefault(),Np(ze,bt,u5);break;case"Home":Oe.preventDefault(),Np(ze,null,u5);break;case"End":Oe.preventDefault(),Np(ze,null,p5);break}},Cn=St(),[Ba,Fa]=ct("root",{ref:r,className:Se(I.root,u),elementType:iB,externalForwardedProps:{...it,...H,component:m},ownerState:te}),[za,ja]=ct("scroller",{ref:Ee,className:I.scroller,elementType:aB,externalForwardedProps:it,ownerState:te,additionalProps:{style:{overflow:Me.overflow,[X?`margin${i?"Left":"Right"}`:"marginBottom"]:L?void 0:-Me.scrollbarWidth}}}),[rt,Xr]=ct("list",{ref:Ie,className:Se(I.list,I.flexContainer),elementType:sB,externalForwardedProps:it,ownerState:te,getSlotProps:Oe=>({...Oe,onKeyDown:ze=>{oo(ze),Oe.onKeyDown?.(ze)}})});return B.jsxs(Ba,{...Fa,children:[Cn.scrollButtonStart,Cn.scrollbarSizeListener,B.jsxs(za,{...ja,children:[B.jsx(rt,{"aria-label":l,"aria-labelledby":c,"aria-orientation":E==="vertical"?"vertical":null,role:"tablist",...Xr,children:Do}),ie&&vr]}),Cn.scrollButtonEnd]})});function pB(t){return qe("MuiTextField",t)}We("MuiTextField",["root"]);const dB={standard:bo,filled:By,outlined:jy},fB=t=>{const{classes:e}=t;return Ue({root:["root"]},pB,e)},hB=ce(_s,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),zr=A.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:c,color:d="primary",defaultValue:f,disabled:g=!1,error:u=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:w,id:b,InputLabelProps:E,inputProps:k,InputProps:P,inputRef:_,label:R,maxRows:M,minRows:T,multiline:O=!1,name:N,onBlur:$,onChange:C,onFocus:L,placeholder:H,required:W=!1,rows:X,select:U=!1,SelectProps:K,slots:ee={},slotProps:Q={},type:G,value:te,variant:I="outlined",...z}=n,oe={...n,autoFocus:i,color:d,disabled:g,error:u,fullWidth:y,multiline:O,required:W,select:U,variant:I},ie=fB(oe),re=Ra(b),ae=w&&re?`${re}-helper-text`:void 0,he=R&&re?`${re}-label`:void 0,me=dB[I],ve={slots:ee,slotProps:{input:P,inputLabel:E,htmlInput:k,formHelperText:m,select:K,...Q}},xe={},Le=ve.slotProps.inputLabel;I==="outlined"&&(Le&&typeof Le.shrink<"u"&&(xe.notched=Le.shrink),xe.label=R),U&&((!K||!K.native)&&(xe.id=void 0),xe["aria-describedby"]=void 0);const[Ae,nt]=ct("root",{elementType:hB,shouldForwardComponentProp:!0,externalForwardedProps:{...ve,...z},ownerState:oe,className:Se(ie.root,c),ref:r,additionalProps:{disabled:g,error:u,fullWidth:y,required:W,color:d,variant:I}}),[Me,_e]=ct("input",{elementType:me,externalForwardedProps:ve,additionalProps:xe,ownerState:oe}),[mt,Ee]=ct("inputLabel",{elementType:nd,externalForwardedProps:ve,ownerState:oe}),[Ie,it]=ct("htmlInput",{elementType:"input",externalForwardedProps:ve,ownerState:oe}),[Ze,Xe]=ct("formHelperText",{elementType:KN,externalForwardedProps:ve,ownerState:oe}),[we,at]=ct("select",{elementType:So,externalForwardedProps:ve,ownerState:oe}),Ye=B.jsx(Me,{"aria-describedby":ae,autoComplete:o,autoFocus:i,defaultValue:f,fullWidth:y,multiline:O,name:N,rows:X,maxRows:M,minRows:T,type:G,value:te,id:re,inputRef:_,onBlur:$,onChange:C,onFocus:L,placeholder:H,inputProps:it,slots:{input:ee.htmlInput?Ie:void 0},..._e});return B.jsxs(Ae,{...nt,children:[R!=null&&R!==""&&B.jsx(mt,{htmlFor:re,id:he,...Ee,children:R}),U?B.jsx(we,{"aria-describedby":ae,id:re,labelId:he,value:te,input:Ye,...at,children:l}):Ye,w&&B.jsx(Ze,{id:ae,...Xe,children:w})]})}),mB=He(B.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),gB=He(B.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),vB=He(B.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),yB=He(B.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),bB=He(B.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),xB=He(B.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),Wy=He(B.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),wB=He(B.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),SB=He(B.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),lf=He(B.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Xi=He(B.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Ta=He(B.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Uy=He(B.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),EB=He(B.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),CB=He(B.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),id=He(B.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),rT=He(B.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),TB=He(B.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),kB=He(B.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),_B=He(B.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),OB=He(B.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),RB=He(B.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),MB=He(B.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),PB=He(B.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),nT=He(B.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),AB=He(B.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),IB=He(B.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch"),DB=He(B.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),NB=He(B.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),f5=He(B.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),$B=He(B.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),LB=He(B.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),h5=He(B.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),BB=He(B.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),FB=He(B.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),Nv=He(B.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),zB=He(B.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),jB=He(B.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),HB=He(B.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),qB=He(B.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),WB=He(B.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),UB=He(B.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),XB=He(B.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),VB=He(B.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),GB=He(B.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),KB=He(B.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),Dm=11/23/100;function m5(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substring(1,3),16),e.g=parseInt(t.substring(3,5),16),e.b=parseInt(t.substring(5,7),16);else if(t.length===4){const r=t[1],n=t[2],o=t[3];e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function YB(t){return`#${Math.round(t.r).toString(16).padStart(2,"0")}${Math.round(t.g).toString(16).padStart(2,"0")}${Math.round(t.b).toString(16).padStart(2,"0")}`}function JB(t,e,r){const n=m5(t),o=m5(e);return n.r+=o.r*(.05+Dm*(r-1)),n.g+=o.g*(.05+Dm*(r-1)),n.b+=o.b*(.05+Dm*(r-1)),YB(n)}function $p(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:JB(t,e,n)};return r}function QB(t,e){let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:_r[200],"&:hover":{color:_r[100]}}},MuiPaper:$p("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:_r[400],"&:hover":{color:_r[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:_r[200],"&:hover":{color:_r[100]}}},MuiPaper:$p("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:_r[400],"&:hover":{color:_r[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="NW"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:_r[400],"&:hover":{color:_r[300]}}},MuiPaper:$p("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#00af78"},secondary:{main:"#005a40"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="HA"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:"#db0a33","&:hover":{color:"#FF0a33"}}},MuiPaper:$p("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#970720"},secondary:{main:"#db0a33"},expert:"#db0a33",text:{primary:"#ffffff",secondary:"#ffffff"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:_r[400],"&:hover":{color:_r[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:r.palette?.primary?.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:fv[300],dark:fv[400]});const o=Vc(r),i=o.palette;return Vc(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:i.grey?.[300],color:i.getContrastText&&i.grey?.[300]?i.getContrastText(i.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:i.text?.primary,borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${i.action?.disabledBackground}`},"&:hover":{borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Nt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}},{props:{variant:"text",color:"grey"},style:{color:i.text?.primary,"&:hover":{backgroundColor:Nt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}}]}}})}typeof globalThis.process<"u"&&(globalThis.location||={href:"http://localhost:8081/",protocol:"http:",host:"localhost:8081",pathname:"/",hostname:"localhost",reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(t,e)=>{globalThis.localStorage._keys[t]=e},getItem:t=>t in globalThis.localStorage._keys?globalThis.localStorage._keys[t]:null,removeItem:t=>{t in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[t]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:"en"});var g5;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(g5||(g5={}));var xd;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(xd||(xd={}));xd.PERMISSION_ERROR;xd.NOT_CONNECTED;function ZB(){const t=document.getSelection();if(!t?.rangeCount)return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const v5={"text/plain":"Text","text/html":"Url",default:"Text"},eF="Copy to clipboard: #{key}, Enter";function tF(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function rF(t,e){let r,n,o,i,l=!1;e=e||{};const c=e.debug||!1;try{if(r=ZB(),n=document.createRange(),o=document.getSelection(),i=document.createElement("span"),i.textContent=t,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top="0px",i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.userSelect="text",i.addEventListener("copy",f=>{if(f.stopPropagation(),e?.format)if(f.preventDefault(),typeof f.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData?.clearData();const g=v5[e.format]||v5.default;window.clipboardData?.setData(g,t)}else f.clipboardData?.clearData(),f.clipboardData?.setData(e.format,t)}),document.body.appendChild(i),n.selectNodeContents(i),o?.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){c&&console.error("unable to copy using execCommand: ",d),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),l=!0}catch(f){c&&console.error("unable to copy using clipboardData: ",f),c&&console.error("falling back to prompt");const g=tF("message"in e?e.message||"":eF);window.prompt(g,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),i&&document.body.removeChild(i),r&&r()}return l}class j{static translations={};static unknownTranslations=[];static lang=window.sysLang||"en";static _disableWarning=!1;static setLanguage(e){e&&(j.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(i=>{const l=i,c={},d=n[l];Object.keys(d).forEach(f=>{f&&d&&(f.startsWith(o)?c[f]=d[f]:c[`${o}${f}`]=d[f])}),e[l]=c})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;j.translations[o]||={},Object.assign(j.translations[o],e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(i=>{const l=i,c=j.translations[l];c?c[n]?c[n]!==o[l]&&console.warn(`Translation for word "${n}" in "${l}" was ignored: existing = "${c[n]}", new = ${o[l]}`):c[n]=o[l]:console.warn(`Used unknown language: ${l}`)})});else{j.translations[r]||console.warn(`Used unknown language: ${r}`),j.translations[r]||={};const n=j.translations[r];Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(j.translations=e)}static getLanguage(){return j.lang}static t(e,...r){const n=j.translations[j.lang];if(n){const o=n[e];if(o)e=o;else if(j.unknownTranslations.includes(e)||(j.unknownTranslations.push(e),!j._disableWarning&&console.log(`Translate: ${e}`)),j.lang!=="en"&&j.translations.en){const i=j.translations.en[e];i&&(e=i)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(j.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):e&&typeof e=="object"&&(j.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(j.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){j._disableWarning=!!e}}window.i18nShow=j.i18nShow;window.i18nDisableWarning=j.disableWarning;const ho="material",nF=["Su","Mo","Tu","We","Th","Fr","Sa"],oF=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Nm={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},y5={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"};class Je{static namespace=ho;static INSTANCES="instances";static dateFormat=["DD","MM"];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const i=Math.floor(e).toString().padStart(2,"0");let l="";return r&&(l+=`${r} ${j.t("ra_daysShortText")} `),l+=`${n}:${o}:${i}`,l}static getObjectName(e,r,n,o,i){const l=e[r];let c;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n?.name){const d=n.name;typeof d=="object"?c=o.language&&d[o.language]||d.en:c=d}else if(i&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!i&&l?.common){const d=l.common.name||l.common.desc;d&&typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else{const d=r.lastIndexOf(".");c=r.substring(d+1).replace(/[_.]/g," "),c=Je.CapitalWords(c)}return c?.trim()||""}static getObjectNameFromObj(e,r,n,o,i){const l=e;let c=e?._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r?.name){const d=r.name;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d}else if(o&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!o&&l?.common?.name){let d=l.common.name;!d&&l.common.desc&&(d=l.common.desc),typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}return i?c:c.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[ho];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subOrder&&i[l].subOrder[r])return JSON.parse(JSON.stringify(i[l].subOrder[r]))}else if(i[l].order)return JSON.parse(JSON.stringify(i[l].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[ho];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subURLs&&i[l].subURLs[r])return JSON.parse(JSON.stringify(i[l].subURLs[r]))}else if(i[l].URLs)return JSON.parse(JSON.stringify(i[l].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[i]=o.splice(r,1);return o.splice(n,0,i),o}static getSettings(e,r,n){let o;const i=e?._id||r?.id;let l;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?l=e.common:l=e,l?.custom?(o=l.custom,o=o[ho]&&o[ho][r.user||"admin"]?JSON.parse(JSON.stringify(o[ho][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),l&&(!o.color&&l.color&&(o.color=l.color),!o.icon&&l.icon&&(o.icon=l.icon),!o.name&&l.name&&(o.name=l.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&i){const c=i.lastIndexOf(".");o.name=i.substring(c+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=Je.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[ho]=e.common.custom[ho]||{},e.common.custom[ho][n.user||"admin"]=r;const o=e.common.custom[ho][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e?.icon?e.icon.length<=2?v.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?v.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):v.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){if(typeof e=="object"&&(r=e,e=r?._id),r?.common?.icon){let n=r.common.icon;if(typeof n=="string"&&n.length<=2||n.startsWith("data:image"))return n;const o=e.split(".");return o[0]==="system"?n=`adapter/${o[2]}${n.startsWith("/")?"":"/"}${n}`:n=`adapter/${o[0]}${n.startsWith("/")?"":"/"}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?n=`../../${n}`:window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(e){return e?Je.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,i;const l=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(l&&l.length===4)n=parseInt(l[1],10),o=parseInt(l[2],10),i=parseInt(l[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16)}return n*.299+o*.587+i*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}static getWindDirection(e){return e>=0&&e<11.25?"N":e>=11.25&&e<33.75?"NNE":e>=33.75&&e<56.25?"NE":e>=56.25&&e<78.75?"ENE":e>=78.75&&e<101.25?"E":e>=101.25&&e<123.75?"ESE":e>=123.75&&e<146.25?"SE":e>=146.25&&e<168.75?"SSE":e>=168.75&&e<191.25?"S":e>=191.25&&e<213.75?"SSW":e>=213.75&&e<236.25?"SW":e>=236.25&&e<258.75?"WSW":e>=258.75&&e<281.25?"W":e>=281.25&&e<303.75?"WNW":e>=303.75&&e<326.25?"NW":e>=326.25&&e<348.75?"NNW":"N"}static padding(e){return typeof e=="string"?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(e){e&&(Je.dateFormat=e.toUpperCase().split(/[.-/]/),Je.dateFormat.splice(Je.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],i=o.find(l=>l>31);if(i!==void 0){o.splice(o.indexOf(i),1);const l=o.find(c=>c>12);l?(o.splice(o.indexOf(l),1),e=new Date(i,o[0]-1,l)):Je.dateFormat[0][0]==="M"&&Je.dateFormat[1][0]==="D"?(e=new Date(i,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[1]-1,o[0]))):Je.dateFormat[0][0]==="D"&&Je.dateFormat[1][0]==="M"?(e=new Date(i,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=j.t(`ra_dow_${nF[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${j.t(`ra_month_${oF[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/
||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const i=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),i&&n.push(v.createElement("span",{key:`a${o++}`},i)),r[0].startsWith(""))n.push(v.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(v.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(v.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return l?.common?.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const i=e[r];return i?.common?.custom&&i.common.custom[n]&&i.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=e?.common?.custom?.[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName={}):o.common.smartName={}}static removeSmartName(e,r,n){const o=e;n?o?.common?.custom?.[r]&&(o.common.custom[r]=null):o.common.smartName=null}static updateSmartName(e,r,n,o,i,l){const c=j.getLanguage(),d=e;if(typeof d.common.smartName=="string"){const f=d.common.smartName;d.common.smartName={},d.common.smartName[c]=f}if(d.native?.byON){delete d.native.byON;let f=d.common.smartName;f&&typeof f!="object"&&(f={en:f,[c]:f}),d.common.smartName=f}if(o!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},o?d.common.custom[i].smartName.smartType=o:delete d.common.custom[i].smartName.smartType):(d.common.smartName||={},o?d.common.smartName.smartType=o:delete d.common.smartName.smartType)),n!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},d.common.custom[i].smartName.byON=n):(d.common.smartName||={},d.common.smartName.byON=n)),r!==void 0){let f;if(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},f=d.common.custom[i].smartName):(d.common.smartName||={},f=d.common.smartName),f[c]=r,f&&(!f[c]||f[c]===d.common.name&&!d.common.role)){delete f[c];let g=!0;for(const u in f)if(Object.prototype.hasOwnProperty.call(f,u)){g=!1;break}if(g)if(l&&d.common.custom?.[i])d.common.custom[i].smartName.byON===void 0?delete d.common.custom[i]:(delete d.common.custom[i].en,delete d.common.custom[i].de,delete d.common.custom[i].ru,delete d.common.custom[i].nl,delete d.common.custom[i].pl,delete d.common.custom[i].it,delete d.common.custom[i].fr,delete d.common.custom[i].pt,delete d.common.custom[i].es,delete d.common.custom[i].uk,delete d.common.custom[i]["zh-cn"]);else if(d.common.smartName&&d.common.smartName.byON!==void 0){const u=d.common.smartName;delete u.en,delete u.de,delete u.ru,delete u.nl,delete u.pl,delete u.it,delete u.fr,delete u.pt,delete u.es,delete u.uk,delete u["zh-cn"]}else d.common.smartName=null}}}static updateSmartNameEx(e,r){const n=j.getLanguage(),o=e;if(typeof o.common.smartName=="string"){const i=o.common.smartName;o.common.smartName={},o.common.smartName[n]=i}if(o.native?.byON){delete o.native.byON;let i=o.common.smartName;i&&typeof i!="object"&&(i={en:i,[n]:i}),o.common.smartName=i}if(r.smartType!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},r.smartType?o.common.custom[r.instanceId].smartName.smartType=r.smartType:delete o.common.custom[r.instanceId].smartName.smartType):(o.common.smartName||={},r.smartType?o.common.smartName.smartType=r.smartType:delete o.common.smartName.smartType)),r.byON!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.byON=r.byON):(o.common.smartName||={},o.common.smartName.byON=r.byON)),r.noAutoDetect!==void 0&&(r.noCommon?r.noAutoDetect?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.noAutoDetect=r.noAutoDetect):o.common.custom?.[r.instanceId]?.smartName&&delete o.common.custom[r.instanceId].smartName.noAutoDetect:!r.noAutoDetect&&o.common.smartName?delete o.common.smartName.noAutoDetect:(o.common.smartName||={},o.common.smartName.noAutoDetect=r.noAutoDetect)),r.smartName!==void 0){let i;if(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},i=o.common.custom[r.instanceId].smartName):(o.common.smartName||={},i=o.common.smartName),i[n]=r.smartName,i&&(!i[n]||i[n]===o.common.name&&!o.common.role)){delete i[n];let l=!0;for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){l=!1;break}if(l)if(r.noCommon&&o.common.custom?.[r.instanceId])o.common.custom[r.instanceId].smartName.byON===void 0?delete o.common.custom[r.instanceId]:(delete o.common.custom[r.instanceId].en,delete o.common.custom[r.instanceId].de,delete o.common.custom[r.instanceId].ru,delete o.common.custom[r.instanceId].nl,delete o.common.custom[r.instanceId].pl,delete o.common.custom[r.instanceId].it,delete o.common.custom[r.instanceId].fr,delete o.common.custom[r.instanceId].pt,delete o.common.custom[r.instanceId].es,delete o.common.custom[r.instanceId].uk,delete o.common.custom[r.instanceId]["zh-cn"]);else if(o.common.smartName&&o.common.smartName.byON!==void 0){const c=o.common.smartName;delete c.en,delete c.de,delete c.ru,delete c.nl,delete c.pl,delete c.it,delete c.fr,delete c.pt,delete c.es,delete c.uk,delete c["zh-cn"]}else o.common.smartName=null}}}static disableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName=!1):o.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),rF(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const c=(255-o).toString(16),d=(255-i).toString(16),f=(255-l).toString(16);return`#${c.padStart(2,"0")}${d.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else e.startsWith("#")&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let i=(r*.4124+n*.3576+o*.1805)/.95047,l=r*.2126+n*.7152+o*.0722,c=(r*.0193+n*.1192+o*.9505)/1.08883;return i=i>.008856?i**.33333333:7.787*i+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,c=c>.008856?c**.33333333:7.787*c+.137931,[116*l-16,500*(i-l),200*(l-c)]}static colorDistance(e,r){const n=Je.color2rgb(e),o=Je.color2rgb(r);if(!n||!o)return 0;const i=Je.rgb2lab(n),l=Je.rgb2lab(o),c=i[0]-l[0],d=i[1]-l[1],f=i[2]-l[2],g=Math.sqrt(i[1]*i[1]+i[2]*i[2]),u=Math.sqrt(l[1]*l[1]+l[2]*l[2]),m=g-u;let y=d*d+f*f-m*m;y=y<0?0:Math.sqrt(y);const w=1+.045*g,b=1+.015*g,E=c,k=m/w,P=y/b,_=E*E+k*k+P*P;return _<0?0:_}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),i=decodeURIComponent(o[0]).trim();if(o.length>1){const l=decodeURIComponent(o[1]);if(l==="true")r[i]=!0;else if(l==="false")r[i]=!1;else{const c=parseFloat(l);c.toString()===l?r[i]=c:r[i]=l}}else r[i]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${i}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${i}`,n+=` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`,n}static formatTime(e){if(e){e=Math.round(e);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),i=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){const r=Je.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` -`);for(let l=0;l{if(!l.trim())return;const c=l.indexOf(":");if(c!==-1){const d=l.substring(0,c).trim();let f=l.substring(c+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[d]=!0:f==="false"?r[d]=!1:parseFloat(f).toString()===r[d]?r[d]=parseFloat(f):r[d]=f}else r[l.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=Nm[e];let o;return n?o=[n]:e&1?o=[Nm[1],`0x${(e&65534).toString(16)}`]:e&2?o=[Nm[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){const r=e?.common?.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const o=r.split(";");n={};for(let i=0;in[i]=o):e?.common.type==="string"?r.forEach(o=>n[o]=o):e?.common.type==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const i=new FileReader;i.onload=()=>o(i.result?.toString()||""),i.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(y5).find(n=>e.startsWith(n));return r?y5[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.toLowerCase().startsWith("stable")))}static isStringInteger(e){return typeof e=="number"?Math.round(e)===e:parseInt(e,10).toString()===e}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getStyle(e,...r){const n={};for(let o=0;o{if(typeof r[o][i]=="function")n[i]=r[o][i](e);else if(typeof r[o][i]=="object"){const l=r[o][i];n[i]={},Object.keys(l).forEach(c=>{typeof l[c]=="function"?n[i][c]=l(e):(l[c]||l[c]===0)&&(n[i][c]=l[c])})}else(r[o][i]||r[o][i]===0)&&(n[i]=r[o][i])});return n}}const $m={buttonIcon:{marginRight:8}};class QY extends v.Component{isIFrame;constructor(e){super(e);const r=e.newReact===void 0?!0:e.newReact;if(e.isIFrame!==void 0)this.isIFrame=e.isIFrame;else try{this.isIFrame=!r&&window.self!==window.top}catch{this.isIFrame=!r}}render(){const e=this.props.noTextOnButtons,r={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},n={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(n.minHeight=48),this.props.error&&(r.border="1px solid red"),v.createElement(qy,{style:n},v.createElement(Sa,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:r},v.createElement(Nv,{style:e?void 0:$m.buttonIcon}),!e&&j.t("ra_Save")),v.createElement(Sa,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...r,marginLeft:10}},v.createElement(Nv,{style:e?void 0:$m.buttonIcon}),e?"+":j.t("ra_Save and close"),e&&v.createElement(Ta,null)),v.createElement("div",{style:{flexGrow:1}}),v.createElement(Sa,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:r},v.createElement(Ta,{style:e?void 0:$m.buttonIcon}),!e&&j.t("ra_Close")))}}const b5={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class iF extends A.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}handleOk(){this.state.suppress&&(window._localStorage||window.localStorage).setItem(this.props.dialogName,Date.now()+(this.props.suppressQuestionMinutes||2)*6e4),this.props.onClose&&this.props.onClose(!0)}handleCancel(){this.props.onClose&&this.props.onClose(!1)}render(){return typeof this.state.suppress=="number"?(setTimeout(()=>this.props.onClose&&this.props.onClose(!0),100),null):v.createElement(ei,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},v.createElement(ni,{id:"ar_confirmation_dialog_title"},this.props.title||j.t("ra_Are you sure?")),v.createElement(ri,null,v.createElement(sf,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?v.createElement("br",null):null,this.props.suppressQuestionMinutes?v.createElement(dt,{sx:{"& .FormControlLabel-label":b5.suppress,"&.FormControlLabel-root":b5.suppressRoot},control:v.createElement(Wr,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||j.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),v.createElement(ti,null,v.createElement(Yt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Xi,null)},this.props.ok||j.t("ra_Ok")),v.createElement(Yt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(Ta,null)},this.props.cancel||j.t("ra_Cancel"))))}}class aF extends A.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return v.createElement(ei,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},v.createElement(ni,{id:"ar_alert_dialog_title"},this.props.title||j.t("ra_Error")),v.createElement(ri,null,v.createElement(sf,{id:"ar_alert_dialog_description"},this.props.text||j.t("ra_Unknown error!"))),v.createElement(ti,null,v.createElement(Yt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Xi,null)},j.t("ra_Ok"))))}}var Zr={},ys={},Lm,x5;function oT(){if(x5)return Lm;x5=1;var t=typeof wp=="object"&&wp&&wp.Object===Object&℘return Lm=t,Lm}var Bm,w5;function Ao(){if(w5)return Bm;w5=1;var t=oT(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return Bm=r,Bm}var Fm,S5;function du(){if(S5)return Fm;S5=1;var t=Ao(),e=t.Symbol;return Fm=e,Fm}var zm,E5;function sF(){if(E5)return zm;E5=1;var t=du(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function i(l){var c=r.call(l,o),d=l[o];try{l[o]=void 0;var f=!0}catch{}var g=n.call(l);return f&&(c?l[o]=d:delete l[o]),g}return zm=i,zm}var jm,C5;function lF(){if(C5)return jm;C5=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return jm=r,jm}var Hm,T5;function Ma(){if(T5)return Hm;T5=1;var t=du(),e=sF(),r=lF(),n="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function l(c){return c==null?c===void 0?o:n:i&&i in Object(c)?e(c):r(c)}return Hm=l,Hm}var qm,k5;function ro(){if(k5)return qm;k5=1;var t=Array.isArray;return qm=t,qm}var Wm,_5;function oi(){if(_5)return Wm;_5=1;function t(e){return e!=null&&typeof e=="object"}return Wm=t,Wm}var Um,O5;function cF(){if(O5)return Um;O5=1;var t=Ma(),e=ro(),r=oi(),n="[object String]";function o(i){return typeof i=="string"||!e(i)&&r(i)&&t(i)==n}return Um=o,Um}var Xm,R5;function uF(){if(R5)return Xm;R5=1;function t(e){return function(r,n,o){for(var i=-1,l=Object(r),c=o(r),d=c.length;d--;){var f=c[e?d:++i];if(n(l[f],f,l)===!1)break}return r}}return Xm=t,Xm}var Vm,M5;function pF(){if(M5)return Vm;M5=1;var t=uF(),e=t();return Vm=e,Vm}var Gm,P5;function dF(){if(P5)return Gm;P5=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return Zm=e,Zm}var e0,B5;function mF(){if(B5)return e0;B5=1;var t=Ma(),e=Vy(),r=oi(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",g="[object Number]",u="[object Object]",m="[object RegExp]",y="[object Set]",w="[object String]",b="[object WeakMap]",E="[object ArrayBuffer]",k="[object DataView]",P="[object Float32Array]",_="[object Float64Array]",R="[object Int8Array]",M="[object Int16Array]",T="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",$="[object Uint16Array]",C="[object Uint32Array]",L={};L[P]=L[_]=L[R]=L[M]=L[T]=L[O]=L[N]=L[$]=L[C]=!0,L[n]=L[o]=L[E]=L[i]=L[k]=L[l]=L[c]=L[d]=L[f]=L[g]=L[u]=L[m]=L[y]=L[w]=L[b]=!1;function H(W){return r(W)&&e(W.length)&&!!L[t(W)]}return e0=H,e0}var t0,F5;function Gy(){if(F5)return t0;F5=1;function t(e){return function(r){return e(r)}}return t0=t,t0}var _c={exports:{}};_c.exports;var z5;function Ky(){return z5||(z5=1,(function(t,e){var r=oT(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===n,l=i&&r.process,c=(function(){try{var d=o&&o.require&&o.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}})();t.exports=c})(_c,_c.exports)),_c.exports}var r0,j5;function sT(){if(j5)return r0;j5=1;var t=mF(),e=Gy(),r=Ky(),n=r&&r.isTypedArray,o=n?e(n):t;return r0=o,r0}var n0,H5;function lT(){if(H5)return n0;H5=1;var t=dF(),e=iT(),r=ro(),n=Xy(),o=aT(),i=sT(),l=Object.prototype,c=l.hasOwnProperty;function d(f,g){var u=r(f),m=!u&&e(f),y=!u&&!m&&n(f),w=!u&&!m&&!y&&i(f),b=u||m||y||w,E=b?t(f.length,String):[],k=E.length;for(var P in f)(g||c.call(f,P))&&!(b&&(P=="length"||y&&(P=="offset"||P=="parent")||w&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||o(P,k)))&&E.push(P);return E}return n0=d,n0}var o0,q5;function Yy(){if(q5)return o0;q5=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return o0=e,o0}var i0,W5;function cT(){if(W5)return i0;W5=1;function t(e,r){return function(n){return e(r(n))}}return i0=t,i0}var a0,U5;function gF(){if(U5)return a0;U5=1;var t=cT(),e=t(Object.keys,Object);return a0=e,a0}var s0,X5;function vF(){if(X5)return s0;X5=1;var t=Yy(),e=gF(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!t(i))return e(i);var l=[];for(var c in Object(i))n.call(i,c)&&c!="constructor"&&l.push(c);return l}return s0=o,s0}var l0,V5;function yl(){if(V5)return l0;V5=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return l0=t,l0}var c0,G5;function uT(){if(G5)return c0;G5=1;var t=Ma(),e=yl(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function l(c){if(!e(c))return!1;var d=t(c);return d==n||d==o||d==r||d==i}return c0=l,c0}var u0,K5;function cf(){if(K5)return u0;K5=1;var t=uT(),e=Vy();function r(n){return n!=null&&e(n.length)&&!t(n)}return u0=r,u0}var p0,Y5;function fu(){if(Y5)return p0;Y5=1;var t=lT(),e=vF(),r=cf();function n(o){return r(o)?t(o):e(o)}return p0=n,p0}var d0,J5;function pT(){if(J5)return d0;J5=1;var t=pF(),e=fu();function r(n,o){return n&&t(n,o,e)}return d0=r,d0}var f0,Q5;function dT(){if(Q5)return f0;Q5=1;function t(e){return e}return f0=t,f0}var h0,Z5;function yF(){if(Z5)return h0;Z5=1;var t=dT();function e(r){return typeof r=="function"?r:t}return h0=e,h0}var m0,e3;function Jy(){if(e3)return m0;e3=1;var t=pT(),e=yF();function r(n,o){return n&&t(n,e(o))}return m0=r,m0}var g0,t3;function Qy(){if(t3)return g0;t3=1;var t=cT(),e=t(Object.getPrototypeOf,Object);return g0=e,g0}var v0,r3;function bF(){if(r3)return v0;r3=1;var t=Ma(),e=Qy(),r=oi(),n="[object Object]",o=Function.prototype,i=Object.prototype,l=o.toString,c=i.hasOwnProperty,d=l.call(Object);function f(g){if(!r(g)||t(g)!=n)return!1;var u=e(g);if(u===null)return!0;var m=c.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&l.call(m)==d}return v0=f,v0}var y0,n3;function fT(){if(n3)return y0;n3=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,i=Array(o);++n-1}return C0=e,C0}var T0,u3;function CF(){if(u3)return T0;u3=1;var t=uf();function e(r,n){var o=this.__data__,i=t(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return T0=e,T0}var k0,p3;function pf(){if(p3)return k0;p3=1;var t=xF(),e=wF(),r=SF(),n=EF(),o=CF();function i(l){var c=-1,d=l==null?0:l.length;for(this.clear();++cy))return!1;var b=u.get(l),E=u.get(c);if(b&&E)return b==c&&E==l;var k=-1,P=!0,_=d&o?new t:void 0;for(u.set(l,c),u.set(c,l);++k0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,c.default)(u,function(y){Array.isArray(y)?g(y).map(function(w){return m.push(w)}):(0,i.default)(y)?(0,n.default)(y,function(w,b){w===!0&&m.push(b),m.push(b+"-"+w)}):(0,e.default)(y)&&m.push(y)}),m};return ys.default=f,ys}var bs={},Zg,FS;function Rz(){if(FS)return Zg;FS=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],g=d.default&&(0,n.default)(d.default)||{};return f.map(function(u){var m=d[u];return m&&(0,e.default)(m,function(y,w){g[w]||(g[w]={}),g[w]=o({},g[w],m[w])}),u}),g};return bs.default=l,bs}var xs={},v6;function tj(){if(v6)return xs;v6=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.autoprefix=void 0;var t=Jy(),e=n(t),r=Object.assign||function(l){for(var c=1;c1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,w,b,E;o(this,m);for(var k=arguments.length,P=Array(k),_=0;_1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,w,b,E;o(this,m);for(var k=arguments.length,P=Array(k),_=0;_1&&arguments[1]!==void 0?arguments[1]:!0;o[c]=d};return r===0&&i("first-child"),r===n-1&&i("last-child"),(r===0||r%2===0)&&i("even"),Math.abs(r%2)===1&&i("odd"),i("nth-child",r),o};return Lp.default=t,Lp}var w6;function ij(){if(w6)return Zr;w6=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.ReactCSS=Zr.loop=Zr.handleActive=Zr.handleHover=Zr.hover=void 0;var t=Oz(),e=m(t),r=ej(),n=m(r),o=tj(),i=m(o),l=rj(),c=m(l),d=nj(),f=m(d),g=oj(),u=m(g);function m(w){return w&&w.__esModule?w:{default:w}}Zr.hover=c.default,Zr.handleHover=c.default,Zr.handleActive=f.default,Zr.loop=u.default;var y=Zr.ReactCSS=function(b){for(var E=arguments.length,k=Array(E>1?E-1:0),P=1;Pc?m=1:m=Math.round(u*100/c)/100,r.a!==m)return{h:r.h,s:r.s,l:r.l,a:m,source:"rgb"}}else{var y=void 0;if(g<0?y=0:g>l?y=1:y=Math.round(g*100/l)/100,o!==y)return{h:r.h,s:r.s,l:r.l,a:y,source:"rgb"}}return null},R1={},sj=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var i=o?new o:document.createElement("canvas");i.width=n*2,i.height=n*2;var l=i.getContext("2d");return l?(l.fillStyle=e,l.fillRect(0,0,i.width,i.height),l.fillStyle=r,l.fillRect(0,0,n,n),l.translate(n,n),l.fillRect(0,0,n,n),i.toDataURL()):null},lj=function(e,r,n,o){var i=e+"-"+r+"-"+n+(o?"-server":"");if(R1[i])return R1[i];var l=sj(e,r,n,o);return R1[i]=l,l},S6=Object.assign||function(t){for(var e=1;e-1},Sj=function(e){return Number(String(e).replace(/%/g,""))},Ej=1,vt=(function(t){vj(e,t);function e(r){mj(this,e);var n=gj(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var i=Sj(o.target.value);if(!isNaN(i)&&wj(o.keyCode)){var l=n.getArrowOffset(),c=o.keyCode===RT?i+l:i-l;n.setUpdatedValue(c,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var i=Math.round(n.props.value+o.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+Ej++,n}return fj(e,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return hj({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||yj}},{key:"setUpdatedValue",value:function(n,o){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=tt({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return v.createElement("div",{style:o.wrap},v.createElement("input",{id:this.inputId,style:o.input,ref:function(l){return n.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?v.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e})(A.PureComponent||A.Component),Cj=function(e,r,n,o){var i=o.clientWidth,l=o.clientHeight,c=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,d=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=c-(o.getBoundingClientRect().left+window.pageXOffset),g=d-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(g<0)u=359;else if(g>l)u=0;else{var m=-(g*100/l)+100;u=360*m/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var y=void 0;if(f<0)y=0;else if(f>i)y=359;else{var w=f*100/i;y=360*w/100}if(n.h!==y)return{h:y,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},Tj=(function(){function t(e,r){for(var n=0;n-1}function Dj(t,e){var r=this.__data__,n=vf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function ii(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=jH}function wl(t){return t!=null&&f2(t.length)&&!u2(t)}function HH(t){return ji(t)&&wl(t)}function qH(){return!1}var LT=typeof yn=="object"&&yn&&!yn.nodeType&&yn,P6=LT&&typeof bn=="object"&&bn&&!bn.nodeType&&bn,WH=P6&&P6.exports===LT,A6=WH?no.Buffer:void 0,UH=A6?A6.isBuffer:void 0,Cd=UH||qH,XH="[object Object]",VH=Function.prototype,GH=Object.prototype,BT=VH.toString,KH=GH.hasOwnProperty,YH=BT.call(Object);function JH(t){if(!ji(t)||Aa(t)!=XH)return!1;var e=NT(t);if(e===null)return!0;var r=KH.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&BT.call(r)==YH}var QH="[object Arguments]",ZH="[object Array]",eq="[object Boolean]",tq="[object Date]",rq="[object Error]",nq="[object Function]",oq="[object Map]",iq="[object Number]",aq="[object Object]",sq="[object RegExp]",lq="[object Set]",cq="[object String]",uq="[object WeakMap]",pq="[object ArrayBuffer]",dq="[object DataView]",fq="[object Float32Array]",hq="[object Float64Array]",mq="[object Int8Array]",gq="[object Int16Array]",vq="[object Int32Array]",yq="[object Uint8Array]",bq="[object Uint8ClampedArray]",xq="[object Uint16Array]",wq="[object Uint32Array]",zt={};zt[fq]=zt[hq]=zt[mq]=zt[gq]=zt[vq]=zt[yq]=zt[bq]=zt[xq]=zt[wq]=!0;zt[QH]=zt[ZH]=zt[pq]=zt[eq]=zt[dq]=zt[tq]=zt[rq]=zt[nq]=zt[oq]=zt[iq]=zt[aq]=zt[sq]=zt[lq]=zt[cq]=zt[uq]=!1;function Sq(t){return ji(t)&&f2(t.length)&&!!zt[Aa(t)]}function Eq(t){return function(e){return t(e)}}var FT=typeof yn=="object"&&yn&&!yn.nodeType&&yn,Bc=FT&&typeof bn=="object"&&bn&&!bn.nodeType&&bn,Cq=Bc&&Bc.exports===FT,P1=Cq&&MT.process,I6=(function(){try{var t=Bc&&Bc.require&&Bc.require("util").types;return t||P1&&P1.binding&&P1.binding("util")}catch{}})(),D6=I6&&I6.isTypedArray,h2=D6?Eq(D6):Sq;function Lv(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Tq=Object.prototype,kq=Tq.hasOwnProperty;function _q(t,e,r){var n=t[e];(!(kq.call(t,e)&&hu(n,r))||r===void 0&&!(e in t))&&p2(t,e,r)}function Oq(t,e,r,n){var o=!r;r||(r={});for(var i=-1,l=e.length;++i-1&&t%1==0&&t0){if(++e>=Wq)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Gq=Vq(qq);function Kq(t,e){return Gq(jq(t,e,bf),t+"")}function Yq(t,e,r){if(!zn(r))return!1;var n=typeof e;return(n=="number"?wl(r)&&m2(e,r.length):n=="string"&&e in r)?hu(r[e],t):!1}function Jq(t){return Kq(function(e,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(o--,i):void 0,l&&Yq(r[0],r[1],l)&&(i=o<3?void 0:i,o=1),e=Object(e);++n=e||O<0||u&&N>=i}function k(){var T=A1();if(E(T))return P(T);c=setTimeout(k,b(T))}function P(T){return c=void 0,m&&n?y(T):(n=o=void 0,l)}function _(){c!==void 0&&clearTimeout(c),f=0,n=d=o=c=void 0}function R(){return c===void 0?l:P(A1())}function M(){var T=A1(),O=E(T);if(n=arguments,o=this,d=T,O){if(c===void 0)return w(d);if(u)return clearTimeout(c),c=setTimeout(k,e),y(d)}return c===void 0&&(c=setTimeout(k,e)),l}return M.cancel=_,M.flush=R,M}var uW="Expected a function";function pW(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(uW);return zn(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),qT(t,e,{leading:n,maxWait:e,trailing:o})}var dW=function(e,r,n){var o=n.getBoundingClientRect(),i=o.width,l=o.height,c=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,d=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=c-(n.getBoundingClientRect().left+window.pageXOffset),g=d-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>i&&(f=i),g<0?g=0:g>l&&(g=l);var u=f/i,m=1-g/l;return{h:r.h,s:u,v:m,a:r.a,source:"hsv"}},fW=(function(){function t(e,r){for(var n=0;n=0,i=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return $e(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification($W,arguments)},brighten:function(){return this._applyModification(LW,arguments)},darken:function(){return this._applyModification(BW,arguments)},desaturate:function(){return this._applyModification(IW,arguments)},saturate:function(){return this._applyModification(DW,arguments)},greyscale:function(){return this._applyModification(NW,arguments)},spin:function(){return this._applyModification(FW,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(HW,arguments)},complement:function(){return this._applyCombination(zW,arguments)},monochromatic:function(){return this._applyCombination(qW,arguments)},splitcomplement:function(){return this._applyCombination(jW,arguments)},triad:function(){return this._applyCombination(H6,[3])},tetrad:function(){return this._applyCombination(H6,[4])}};$e.fromRatio=function(t,e){if(Td(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=Rc(t[n]));t=r}return $e(t,e)};function OW(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,i=null,l=!1,c=!1;return typeof t=="string"&&(t=GW(t)),Td(t)=="object"&&(Uo(t.r)&&Uo(t.g)&&Uo(t.b)?(e=RW(t.r,t.g,t.b),l=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Uo(t.h)&&Uo(t.s)&&Uo(t.v)?(n=Rc(t.s),o=Rc(t.v),e=PW(t.h,n,o),l=!0,c="hsv"):Uo(t.h)&&Uo(t.s)&&Uo(t.l)&&(n=Rc(t.s),i=Rc(t.l),e=MW(t.h,n,i),l=!0,c="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=UT(r),{ok:l,format:t.format||c,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function RW(t,e,r){return{r:Xt(t,255)*255,g:Xt(e,255)*255,b:Xt(r,255)*255}}function B6(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),i,l,c=(n+o)/2;if(n==o)i=l=0;else{var d=n-o;switch(l=c>.5?d/(2-n-o):d/(n+o),n){case t:i=(e-r)/d+(e1&&(u-=1),u<1/6?f+(g-f)*6*u:u<1/2?g:u<2/3?f+(g-f)*(2/3-u)*6:f}if(e===0)n=o=i=r;else{var c=r<.5?r*(1+e):r+e-r*e,d=2*r-c;n=l(d,c,t+1/3),o=l(d,c,t),i=l(d,c,t-1/3)}return{r:n*255,g:o*255,b:i*255}}function F6(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),i,l,c=n,d=n-o;if(l=n===0?0:d/n,n==o)i=0;else{switch(n){case t:i=(e-r)/d+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,i.push($e(n));return i}function qW(t,e){e=e||6;for(var r=$e(t).toHsv(),n=r.h,o=r.s,i=r.v,l=[],c=1/e;e--;)l.push($e({h:n,s:o,v:i})),i=(i+c)%1;return l}$e.mix=function(t,e,r){r=r===0?0:r||50;var n=$e(t).toRgb(),o=$e(e).toRgb(),i=r/100,l={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return $e(l)};$e.readability=function(t,e){var r=$e(t),n=$e(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};$e.isReadable=function(t,e,r){var n=$e.readability(t,e),o,i;switch(i=!1,o=KW(r),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};$e.mostReadable=function(t,e,r){var n=null,o=0,i,l,c,d;r=r||{},l=r.includeFallbackColors,c=r.level,d=r.size;for(var f=0;fo&&(o=i,n=$e(e[f]));return $e.isReadable(t,n,{level:c,size:d})||!l?n:(r.includeFallbackColors=!1,$e.mostReadable(t,["#fff","#000"],r))};var Bv=$e.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},WW=$e.hexNames=UW(Bv);function UW(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function UT(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Xt(t,e){XW(t)&&(t="100%");var r=VW(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Sf(t){return Math.min(1,Math.max(0,t))}function gn(t){return parseInt(t,16)}function XW(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function VW(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Zn(t){return t.length==1?"0"+t:""+t}function Rc(t){return t<=1&&(t=t*100+"%"),t}function XT(t){return Math.round(parseFloat(t)*255).toString(16)}function q6(t){return gn(t)/255}var Yn=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Uo(t){return!!Yn.CSS_UNIT.exec(t)}function GW(t){t=t.replace(kW,"").replace(_W,"").toLowerCase();var e=!1;if(Bv[t])t=Bv[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Yn.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=Yn.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Yn.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=Yn.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Yn.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=Yn.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Yn.hex8.exec(t))?{r:gn(r[1]),g:gn(r[2]),b:gn(r[3]),a:q6(r[4]),format:e?"name":"hex8"}:(r=Yn.hex6.exec(t))?{r:gn(r[1]),g:gn(r[2]),b:gn(r[3]),format:e?"name":"hex"}:(r=Yn.hex4.exec(t))?{r:gn(r[1]+""+r[1]),g:gn(r[2]+""+r[2]),b:gn(r[3]+""+r[3]),a:q6(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=Yn.hex3.exec(t))?{r:gn(r[1]+""+r[1]),g:gn(r[2]+""+r[2]),b:gn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function KW(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var W6=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return TW(r,function(i){if(e[i]&&(n+=1,isNaN(e[i])||(o+=1),i==="s"||i==="l")){var l=/^\d+%$/;l.test(e[i])&&(o+=1)}}),n===o?e:!1},Mc=function(e,r){var n=e.hex?$e(e.hex):$e(e),o=n.toHsl(),i=n.toHsv(),l=n.toRgb(),c=n.toHex();o.s===0&&(o.h=r||0,i.h=r||0);var d=c==="000000"&&l.a===0;return{hsl:o,hex:d?"transparent":"#"+c,rgb:l,hsv:i,oldHue:e.h||r||o.h,source:e.source}},Vi=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&$e(e).isValid()},v2=function(e){if(!e)return"#fff";var r=Mc(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},I1=function(e,r){var n=e.replace("°","");return $e(r+" ("+n+")")._ok},dc=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return(function(n){nU(o,n);function o(){var i,l,c,d;rU(this,o);for(var f=arguments.length,g=Array(f),u=0;uc))return!1;var f=i.get(t),g=i.get(e);if(f&&g)return f==e&&g==t;var u=-1,m=!0,y=r&mU?new kd:void 0;for(i.set(t,e),i.set(e,t);++u=0||Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f]);return d}var i=24;return Fp.default=function(l){var c=l.fill,d=c===void 0?"currentColor":c,f=l.width,g=f===void 0?i:f,u=l.height,m=u===void 0?i:u,y=l.style,w=y===void 0?{}:y,b=o(l,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+i+" "+i,style:t({fill:d,width:g,height:m},w)},b),r.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},Fp}var _X=kX();const OX=Qo(_X);var RX=(function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},i)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(a8(o.s)?n.props.hsl.s:o.s),l:Number(a8(o.l)?n.props.hsl.l:o.l),source:"hsl"},i))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return RX(e,[{key:"render",value:function(){var n=this,o=tt({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=v.createElement("div",{style:o.fields,className:"flexbox-fix"},v.createElement("div",{style:o.field},v.createElement(vt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=v.createElement("div",{style:o.fields,className:"flexbox-fix"},v.createElement("div",{style:o.field},v.createElement(vt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(vt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(vt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),v.createElement("div",{style:o.alpha},v.createElement(vt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=v.createElement("div",{style:o.fields,className:"flexbox-fix"},v.createElement("div",{style:o.field},v.createElement(vt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(vt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(vt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),v.createElement("div",{style:o.alpha},v.createElement(vt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),v.createElement("div",{style:o.wrap,className:"flexbox-fix"},i,v.createElement("div",{style:o.toggle},v.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(c){return n.icon=c}},v.createElement(OX,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e})(v.Component);r9.defaultProps={view:"hex"};var l8=function(){var e=tt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return v.createElement("div",{style:e.picker})},IX=function(){var e=tt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return v.createElement("div",{style:e.picker})},E2=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,i=e.rgb,l=e.hsl,c=e.hsv,d=e.hex,f=e.renderers,g=e.styles,u=g===void 0?{}:g,m=e.className,y=m===void 0?"":m,w=e.defaultView,b=tt(un({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},u),{disableAlpha:o});return v.createElement("div",{style:b.picker,className:"chrome-picker "+y},v.createElement("div",{style:b.saturation},v.createElement(wf,{style:b.Saturation,hsl:l,hsv:c,pointer:IX,onChange:n})),v.createElement("div",{style:b.body},v.createElement("div",{style:b.controls,className:"flexbox-fix"},v.createElement("div",{style:b.color},v.createElement("div",{style:b.swatch},v.createElement("div",{style:b.active}),v.createElement(bl,{renderers:f}))),v.createElement("div",{style:b.toggles},v.createElement("div",{style:b.hue},v.createElement(xl,{style:b.Hue,hsl:l,pointer:l8,onChange:n})),v.createElement("div",{style:b.alpha},v.createElement(c2,{style:b.Alpha,rgb:i,hsl:l,pointer:l8,renderers:f,onChange:n})))),v.createElement(r9,{rgb:i,hsl:l,hex:d,view:w,onChange:n,disableAlpha:o})))};E2.propTypes={width:le.oneOfType([le.string,le.number]),disableAlpha:le.bool,styles:le.object,defaultView:le.oneOf(["hex","rgb","hsl"])};E2.defaultProps={width:225,disableAlpha:!1,styles:{}};pn(E2);var DX=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,i=e.onSwatchHover,l=e.active,c=tt({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:v2(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return v.createElement(Na,{style:c.color,color:r,onClick:o,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},v.createElement("div",{style:c.dot}))},NX=function(e){var r=e.hex,n=e.rgb,o=e.onChange,i=tt({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),l=function(d,f){d.r||d.g||d.b?o({r:d.r||n.r,g:d.g||n.g,b:d.b||n.b,source:"rgb"},f):o({hex:d.hex,source:"hex"},f)};return v.createElement("div",{style:i.fields,className:"flexbox-fix"},v.createElement("div",{style:i.active}),v.createElement(vt,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:l}),v.createElement(vt,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:l}),v.createElement(vt,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:l}),v.createElement(vt,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:l}))},C2=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,i=e.hex,l=e.rgb,c=e.styles,d=c===void 0?{}:c,f=e.className,g=f===void 0?"":f,u=tt(un({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},d)),m=function(w,b){w.hex?Vi(w.hex)&&r({hex:w.hex,source:"hex"},b):r(w,b)};return v.createElement(mu,{style:u.Compact,styles:d},v.createElement("div",{style:u.compact,className:"compact-picker "+g},v.createElement("div",null,$a(o,function(y){return v.createElement(DX,{key:y,color:y,active:y.toLowerCase()===i,onClick:m,onSwatchHover:n})}),v.createElement("div",{style:u.clear})),v.createElement(NX,{hex:i,rgb:l,onChange:m})))};C2.propTypes={colors:le.arrayOf(le.string),styles:le.object};C2.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};pn(C2);var $X=function(e){var r=e.hover,n=e.color,o=e.onClick,i=e.onSwatchHover,l={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},c=tt({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:l}},{hover:r});return v.createElement("div",{style:c.swatch},v.createElement(Na,{color:n,onClick:o,onHover:i,focusStyle:l}))};const LX=l2.handleHover($X);var T2=function(e){var r=e.width,n=e.colors,o=e.onChange,i=e.onSwatchHover,l=e.triangle,c=e.styles,d=c===void 0?{}:c,f=e.className,g=f===void 0?"":f,u=tt(un({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},d),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right","bottom-left-triangle":l==="bottom-left","bottom-right-triangle":l==="bottom-right"}),m=function(w,b){return o({hex:w,source:"hex"},b)};return v.createElement("div",{style:u.card,className:"github-picker "+g},v.createElement("div",{style:u.triangleShadow}),v.createElement("div",{style:u.triangle}),$a(n,function(y){return v.createElement(LX,{color:y,key:y,onClick:m,onSwatchHover:i})}))};T2.propTypes={width:le.oneOfType([le.string,le.number]),colors:le.arrayOf(le.string),triangle:le.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:le.object};T2.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};pn(T2);var BX=function(e){var r=e.direction,n=tt({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return v.createElement("div",{style:n.picker})},FX=Object.assign||function(t){for(var e=1;e.5});return v.createElement("div",{style:n.picker})},qX=function(){var e=tt({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return v.createElement("div",{style:e.pointer},v.createElement("div",{style:e.left},v.createElement("div",{style:e.leftInside})),v.createElement("div",{style:e.right},v.createElement("div",{style:e.rightInside})))},c8=function(e){var r=e.onClick,n=e.label,o=e.children,i=e.active,l=tt({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return v.createElement("div",{style:l.button,onClick:r},n||o)},WX=function(e){var r=e.rgb,n=e.currentColor,o=tt({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return v.createElement("div",null,v.createElement("div",{style:o.label},"new"),v.createElement("div",{style:o.swatches},v.createElement("div",{style:o.new}),v.createElement("div",{style:o.current})),v.createElement("div",{style:o.label},"current"))},UX=(function(){function t(e,r){for(var n=0;n100&&(g.a=100),g.a/=100,r({h:o.h,s:o.s,l:o.l,a:g.a,source:"rgb"},u))};return v.createElement("div",{style:c.fields,className:"flexbox-fix"},v.createElement("div",{style:c.double},v.createElement(vt,{style:{input:c.input,label:c.label},label:"hex",value:i.replace("#",""),onChange:d})),v.createElement("div",{style:c.single},v.createElement(vt,{style:{input:c.input,label:c.label},label:"r",value:n.r,onChange:d,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:c.single},v.createElement(vt,{style:{input:c.input,label:c.label},label:"g",value:n.g,onChange:d,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:c.single},v.createElement(vt,{style:{input:c.input,label:c.label},label:"b",value:n.b,onChange:d,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:c.alpha},v.createElement(vt,{style:{input:c.input,label:c.label},label:"a",value:Math.round(n.a*100),onChange:d,dragLabel:"true",dragMax:"100"})))},YX=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f]);return d}var i=24;return zp.default=function(l){var c=l.fill,d=c===void 0?"currentColor":c,f=l.width,g=f===void 0?i:f,u=l.height,m=u===void 0?i:u,y=l.style,w=y===void 0?{}:y,b=o(l,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+i+" "+i,style:t({fill:d,width:g,height:m},w)},b),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},zp}var tV=eV();const rV=Qo(tV);var nV=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,i=e.onSwatchHover,l=e.first,c=e.last,d=e.active,f=tt({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:v2(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:l,last:c,active:d,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return v.createElement(Na,{color:r,style:f.color,onClick:o,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},v.createElement("div",{style:f.check},v.createElement(rV,null)))},oV=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,i=e.active,l=tt({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return v.createElement("div",{style:l.group},$a(o,function(c,d){return v.createElement(nV,{key:c,color:c,active:c.toLowerCase()===i,first:d===0,last:d===o.length-1,onClick:r,onSwatchHover:n})}))},M2=function(e){var r=e.width,n=e.height,o=e.onChange,i=e.onSwatchHover,l=e.colors,c=e.hex,d=e.styles,f=d===void 0?{}:d,g=e.className,u=g===void 0?"":g,m=tt(un({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),y=function(b,E){return o({hex:b,source:"hex"},E)};return v.createElement("div",{style:m.picker,className:"swatches-picker "+u},v.createElement(mu,null,v.createElement("div",{style:m.overflow},v.createElement("div",{style:m.body},$a(l,function(w){return v.createElement(oV,{key:w.toString(),group:w,active:c,onClick:y,onSwatchHover:i})}),v.createElement("div",{style:m.clear})))))};M2.propTypes={width:le.oneOfType([le.string,le.number]),height:le.oneOfType([le.string,le.number]),colors:le.arrayOf(le.arrayOf(le.string)),styles:le.object};M2.defaultProps={width:320,height:240,colors:[[Os[900],Os[700],Os[500],Os[300],Os[100]],[Rs[900],Rs[700],Rs[500],Rs[300],Rs[100]],[Ms[900],Ms[700],Ms[500],Ms[300],Ms[100]],[Ps[900],Ps[700],Ps[500],Ps[300],Ps[100]],[As[900],As[700],As[500],As[300],As[100]],[Is[900],Is[700],Is[500],Is[300],Is[100]],[Ds[900],Ds[700],Ds[500],Ds[300],Ds[100]],[Ns[900],Ns[700],Ns[500],Ns[300],Ns[100]],[$s[900],$s[700],$s[500],$s[300],$s[100]],["#194D33",Pc[700],Pc[500],Pc[300],Pc[100]],[Ls[900],Ls[700],Ls[500],Ls[300],Ls[100]],[Bs[900],Bs[700],Bs[500],Bs[300],Bs[100]],[Fs[900],Fs[700],Fs[500],Fs[300],Fs[100]],[zs[900],zs[700],zs[500],zs[300],zs[100]],[js[900],js[700],js[500],js[300],js[100]],[Hs[900],Hs[700],Hs[500],Hs[300],Hs[100]],[qs[900],qs[700],qs[500],qs[300],qs[100]],[Ws[900],Ws[700],Ws[500],Ws[300],Ws[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};pn(M2);var P2=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,i=e.colors,l=e.width,c=e.triangle,d=e.styles,f=d===void 0?{}:d,g=e.className,u=g===void 0?"":g,m=tt(un({default:{card:{width:l,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},f),{"hide-triangle":c==="hide","top-left-triangle":c==="top-left","top-right-triangle":c==="top-right"}),y=function(b,E){Vi(b)&&r({hex:b,source:"hex"},E)};return v.createElement("div",{style:m.card,className:"twitter-picker "+u},v.createElement("div",{style:m.triangleShadow}),v.createElement("div",{style:m.triangle}),v.createElement("div",{style:m.body},$a(i,function(w,b){return v.createElement(Na,{key:b,color:w,hex:w,style:m.swatch,onClick:y,onHover:n,focusStyle:{boxShadow:"0 0 4px "+w}})}),v.createElement("div",{style:m.hash},"#"),v.createElement(vt,{label:null,style:{input:m.input},value:o.replace("#",""),onChange:y}),v.createElement("div",{style:m.clear})))};P2.propTypes={width:le.oneOfType([le.string,le.number]),triangle:le.oneOf(["hide","top-left","top-right"]),colors:le.arrayOf(le.string),styles:le.object};P2.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};pn(P2);var A2=function(e){var r=tt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(e.hsl.s*100)+"%, "+Math.round(e.hsl.l*100)+"%)"}}});return v.createElement("div",{style:r.picker})};A2.propTypes={hsl:le.shape({h:le.number,s:le.number,l:le.number,a:le.number})};A2.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var I2=function(e){var r=tt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return v.createElement("div",{style:r.picker})};I2.propTypes={hsl:le.shape({h:le.number,s:le.number,l:le.number,a:le.number})};I2.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var iV=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,i=e.hex,l=e.hsv,c=function(y,w){if(y.hex)Vi(y.hex)&&r({hex:y.hex,source:"hex"},w);else if(y.rgb){var b=y.rgb.split(",");I1(y.rgb,"rgb")&&r({r:b[0],g:b[1],b:b[2],a:1,source:"rgb"},w)}else if(y.hsv){var E=y.hsv.split(",");I1(y.hsv,"hsv")&&(E[2]=E[2].replace("%",""),E[1]=E[1].replace("%",""),E[0]=E[0].replace("°",""),E[1]==1?E[1]=.01:E[2]==1&&(E[2]=.01),r({h:Number(E[0]),s:Number(E[1]),v:Number(E[2]),source:"hsv"},w))}else if(y.hsl){var k=y.hsl.split(",");I1(y.hsl,"hsl")&&(k[2]=k[2].replace("%",""),k[1]=k[1].replace("%",""),k[0]=k[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(k[0]),s:Number(k[1]),v:Number(k[2]),source:"hsl"},w))}},d=tt({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),f=n.r+", "+n.g+", "+n.b,g=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",u=Math.round(l.h)+"°, "+Math.round(l.s*100)+"%, "+Math.round(l.v*100)+"%";return v.createElement("div",{style:d.wrap,className:"flexbox-fix"},v.createElement("div",{style:d.fields},v.createElement("div",{style:d.double},v.createElement(vt,{style:{input:d.input,label:d.label},label:"hex",value:i,onChange:c})),v.createElement("div",{style:d.column},v.createElement("div",{style:d.single},v.createElement(vt,{style:{input:d.input2,label:d.label2},label:"rgb",value:f,onChange:c})),v.createElement("div",{style:d.single},v.createElement(vt,{style:{input:d.input2,label:d.label2},label:"hsv",value:u,onChange:c})),v.createElement("div",{style:d.single},v.createElement(vt,{style:{input:d.input2,label:d.label2},label:"hsl",value:g,onChange:c})))))},D2=function(e){var r=e.width,n=e.onChange,o=e.rgb,i=e.hsl,l=e.hsv,c=e.hex,d=e.header,f=e.styles,g=f===void 0?{}:f,u=e.className,m=u===void 0?"":u,y=tt(un({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+o.r+", "+o.g+", "+o.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},g));return v.createElement("div",{style:y.picker,className:"google-picker "+m},v.createElement("div",{style:y.head},d),v.createElement("div",{style:y.swatch}),v.createElement("div",{style:y.saturation},v.createElement(wf,{hsl:i,hsv:l,pointer:A2,onChange:n})),v.createElement("div",{style:y.body},v.createElement("div",{style:y.controls,className:"flexbox-fix"},v.createElement("div",{style:y.hue},v.createElement(xl,{style:y.Hue,hsl:i,radius:"4px",pointer:I2,onChange:n}))),v.createElement(iV,{rgb:o,hsl:i,hex:c,hsv:l,onChange:n})))};D2.propTypes={width:le.oneOfType([le.string,le.number]),styles:le.object,header:le.string};D2.defaultProps={width:652,styles:{},header:"Color picker"};pn(D2);var N1={exports:{}},p8;function Io(){return p8||(p8=1,(function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949(l,c,d){Object.defineProperty(c,"__esModule",{value:!0}),c.CronParser=void 0;var f=d(515),g=(function(){function u(m,y,w){y===void 0&&(y=!0),w===void 0&&(w=!1),this.expression=m,this.dayOfWeekStartIndexZero=y,this.monthStartIndexZero=w}return u.prototype.parse=function(){var m,y,w=(m=this.expression)!==null&&m!==void 0?m:"";if(w==="@reboot")return y=["@reboot","","","","","",""],y;if(w.startsWith("@")){var b=this.parseSpecial(this.expression);y=this.extractParts(b)}else y=this.extractParts(this.expression);return this.normalize(y),this.validate(y),y},u.prototype.parseSpecial=function(m){var y={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},w=y[m];if(!w)throw new Error("Unknown special expression.");return w},u.prototype.extractParts=function(m){if(!this.expression)throw new Error("cron expression is empty");for(var y=m.trim().split(/[ ]+/),w=0;w7)throw new Error("Expression has ".concat(y.length," parts; too many!"));return y},u.prototype.normalize=function(m){var y=this;if(m[3]=m[3].replace("?","*"),m[5]=m[5].replace("?","*"),m[2]=m[2].replace("?","*"),m[0].indexOf("0/")==0&&(m[0]=m[0].replace("0/","*/")),m[1].indexOf("0/")==0&&(m[1]=m[1].replace("0/","*/")),m[2].indexOf("0/")==0&&(m[2]=m[2].replace("0/","*/")),m[3].indexOf("1/")==0&&(m[3]=m[3].replace("1/","*/")),m[4].indexOf("1/")==0&&(m[4]=m[4].replace("1/","*/")),m[6].indexOf("1/")==0&&(m[6]=m[6].replace("1/","*/")),m[5]=m[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var T=M.replace(/\D/,""),O=T;return y.dayOfWeekStartIndexZero?T=="7"&&(O="0"):O=(parseInt(T)-1).toString(),M.replace(T,O)}),m[5]=="L"&&(m[5]="6"),m[3]=="?"&&(m[3]="*"),m[3].indexOf("W")>-1&&(m[3].indexOf(",")>-1||m[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var w={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var b in w)m[5]=m[5].replace(new RegExp(b,"gi"),w[b].toString());m[4]=m[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var T=M.replace(/\D/,""),O=T;return y.monthStartIndexZero&&(O=(parseInt(T)+1).toString()),M.replace(T,O)});var E={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var k in E)m[4]=m[4].replace(new RegExp(k,"gi"),E[k].toString());m[0]=="0"&&(m[0]=""),!/\*|\-|\,|\//.test(m[2])&&(/\*|\//.test(m[1])||/\*|\//.test(m[0]))&&(m[2]+="-".concat(m[2]));for(var P=0;P-1&&!/^\*|\-|\,/.test(m[P])){var _=null;switch(P){case 4:_="12";break;case 5:_="6";break;case 6:_="9999";break;default:_=null;break}if(_!==null){var R=m[P].split("/");m[P]="".concat(R[0],"-").concat(_,"/").concat(R[1])}}},u.prototype.validate=function(m){var y="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(m[0],y),this.validateOnlyExpectedCharactersFound(m[1],y),this.validateOnlyExpectedCharactersFound(m[2],y),this.validateOnlyExpectedCharactersFound(m[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(m[4],y),this.validateOnlyExpectedCharactersFound(m[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(m[6],y),this.validateAnyRanges(m)},u.prototype.validateAnyRanges=function(m){f.default.secondRange(m[0]),f.default.minuteRange(m[1]),f.default.hourRange(m[2]),f.default.dayOfMonthRange(m[3]),f.default.monthRange(m[4],this.monthStartIndexZero),f.default.dayOfWeekRange(m[5],this.dayOfWeekStartIndexZero)},u.prototype.validateOnlyExpectedCharactersFound=function(m,y){var w=m.match(new RegExp("[^".concat(y,"]+"),"gi"));if(w&&w.length)throw new Error("Expression contains invalid values: '".concat(w.toString(),"'"))},u})();c.CronParser=g},333(l,c,d){Object.defineProperty(c,"__esModule",{value:!0}),c.ExpressionDescriptor=void 0;var f=d(823),g=d(949),u=(function(){function m(y,w){if(this.expression=y,this.options=w,this.expressionParts=new Array(5),!this.options.locale&&m.defaultLocale&&(this.options.locale=m.defaultLocale),!m.locales[this.options.locale]){var b=Object.keys(m.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(b,"'.")),this.options.locale=b}this.i18n=m.locales[this.options.locale],w.use24HourTimeFormat===void 0&&(w.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return m.toString=function(y,w){var b=w===void 0?{}:w,E=b.throwExceptionOnParseError,k=E===void 0?!0:E,P=b.verbose,_=P===void 0?!1:P,R=b.dayOfWeekStartIndexZero,M=R===void 0?!0:R,T=b.monthStartIndexZero,O=T===void 0?!1:T,N=b.use24HourTimeFormat,$=b.trimHoursLeadingZero,C=$===void 0?!1:$,L=b.locale,H=L===void 0?null:L,W=b.logicalAndDayFields,X=W===void 0?!1:W,U={throwExceptionOnParseError:k,verbose:_,dayOfWeekStartIndexZero:M,monthStartIndexZero:O,use24HourTimeFormat:N,trimHoursLeadingZero:C,locale:H,logicalAndDayFields:X};U.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var K=new m(y,U);return K.getFullDescription()},m.initialize=function(y,w){w===void 0&&(w="en"),m.specialCharacters=["/","-",",","*"],m.defaultLocale=w,y.load(m.locales)},m.prototype.getFullDescription=function(){var y,w,b="";try{var E=new g.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=E.parse(),this.expressionParts[0]==="@reboot")return((w=(y=this.i18n).atReboot)===null||w===void 0?void 0:w.call(y))||"Run once, at startup";var k=this.getTimeOfDayDescription(),P=this.getDayOfMonthDescription(),_=this.getMonthDescription(),R=this.getDayOfWeekDescription(),M=this.getYearDescription();b+=k+P+R+_+M,b=this.transformVerbosity(b,!!this.options.verbose),b=b.charAt(0).toLocaleUpperCase()+b.substr(1)}catch(T){if(!this.options.throwExceptionOnParseError)b=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(T)}return b},m.prototype.getTimeOfDayDescription=function(){var y=this.expressionParts[0],w=this.expressionParts[1],b=this.expressionParts[2],E="";if(!f.StringUtilities.containsAny(w,m.specialCharacters)&&!f.StringUtilities.containsAny(b,m.specialCharacters)&&!f.StringUtilities.containsAny(y,m.specialCharacters))E+=this.i18n.atSpace()+this.formatTime(b,w,y);else if(!y&&w.indexOf("-")>-1&&!(w.indexOf(",")>-1)&&!(w.indexOf("/")>-1)&&!f.StringUtilities.containsAny(b,m.specialCharacters)){var k=w.split("-");E+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(b,k[0],""),this.formatTime(b,k[1],""))}else if(!y&&b.indexOf(",")>-1&&b.indexOf("-")==-1&&b.indexOf("/")==-1&&!f.StringUtilities.containsAny(w,m.specialCharacters)){var P=b.split(",");E+=this.i18n.at();for(var _=0;_-1?P=E.substring(0,E.indexOf("#")):E.indexOf("L")>-1&&(P=P.replace("L",""));var _=parseInt(P),R=y.i18n.daysOfTheWeekInCase?y.i18n.daysOfTheWeekInCase(k)[_]:w[_];if(E.indexOf("#")>-1){var M=null,T=E.substring(E.indexOf("#")+1),O=E.substring(0,E.indexOf("#"));switch(T){case"1":M=y.i18n.first(O);break;case"2":M=y.i18n.second(O);break;case"3":M=y.i18n.third(O);break;case"4":M=y.i18n.fourth(O);break;case"5":M=y.i18n.fifth(O);break}R=M+" "+R}return R},function(E){return parseInt(E)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0DaysOfTheWeek(E),E)},function(E){var k=E.substring(0,E.indexOf("-")),P=y.expressionParts[3]!="*";return P?y.i18n.commaAndX0ThroughX1(k):y.i18n.commaX0ThroughX1(k)},function(E){var k=null;if(E.indexOf("#")>-1){var P=E.substring(E.indexOf("#")+1),_=E.substring(0,E.indexOf("#"));k=y.i18n.commaOnThe(P,_).trim()+y.i18n.spaceX0OfTheMonth()}else if(E.indexOf("L")>-1)k=y.i18n.commaOnTheLastX0OfTheMonth(E.replace("L",""));else{var R=y.expressionParts[3]!="*";R?y.options.logicalAndDayFields?k=y.i18n.commaOnlyOnX0(E):k=y.i18n.commaAndOnX0():k=y.i18n.commaOnlyOnX0(E)}return k}),b},m.prototype.getMonthDescription=function(){var y=this,w=this.i18n.monthsOfTheYear(),b=this.getSegmentDescription(this.expressionParts[4],"",function(E,k){return k&&y.i18n.monthsOfTheYearInCase?y.i18n.monthsOfTheYearInCase(k)[parseInt(E)-1]:w[parseInt(E)-1]},function(E){return parseInt(E)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0Months(E),E)},function(E){return y.i18n.commaMonthX0ThroughMonthX1()||y.i18n.commaX0ThroughX1()},function(E){return y.i18n.commaOnlyInMonthX0?y.i18n.commaOnlyInMonthX0():y.i18n.commaOnlyInX0()});return b},m.prototype.getDayOfMonthDescription=function(){var y=this,w=null,b=this.expressionParts[3];switch(b){case"L":w=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":w=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var E=b.match(/(\d{1,2}W)|(W\d{1,2})/);if(E){var k=parseInt(E[0].replace("W","")),P=k==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),k.toString());w=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),P);break}else{var _=b.match(/L-(\d{1,2})/);if(_){var R=_[1];w=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(R),R);break}else{if(b=="*"&&this.expressionParts[5]!="*")return"";w=this.getSegmentDescription(b,this.i18n.commaEveryDay(),function(M){return M=="L"?y.i18n.lastDay():y.i18n.dayX0?f.StringUtilities.format(y.i18n.dayX0(),M):M},function(M){return M=="1"?y.i18n.commaEveryDay():y.i18n.commaEveryX0Days(M)},function(M){return y.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return y.i18n.commaOnDayX0OfTheMonth(M)})}break}}return w},m.prototype.getYearDescription=function(){var y=this,w=this.getSegmentDescription(this.expressionParts[6],"",function(b){return/^\d+$/.test(b)?new Date(parseInt(b),1).getFullYear().toString():b},function(b){return f.StringUtilities.format(y.i18n.commaEveryX0Years(b),b)},function(b){return y.i18n.commaYearX0ThroughYearX1()||y.i18n.commaX0ThroughX1()},function(b){return y.i18n.commaOnlyInYearX0?y.i18n.commaOnlyInYearX0():y.i18n.commaOnlyInX0()});return w},m.prototype.getSegmentDescription=function(y,w,b,E,k,P){var _=null,R=y.indexOf("/")>-1,M=y.indexOf("-")>-1,T=y.indexOf(",")>-1;if(!y)_="";else if(y==="*")_=w;else if(!R&&!M&&!T)_=f.StringUtilities.format(P(y),b(y));else if(T){for(var O=y.split(","),N="",$=0;$0&&O.length>2&&(N+=",",$0&&O.length>1&&($==O.length-1||O.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),O[$].indexOf("/")>-1||O[$].indexOf("-")>-1){var C=O[$].indexOf("-")>-1&&O[$].indexOf("/")==-1,L=this.getSegmentDescription(O[$],w,b,E,C?this.i18n.commaX0ThroughX1:k,P);C&&(L=L.replace(", ","")),N+=L}else if(!R)N+=b(O[$]);else{var H=this.getSegmentDescription(O[$],w,b,E,k,P);H&&H.startsWith(", ")&&(H=H.substring(2)),N+=H}R?_=N:_=f.StringUtilities.format(P(y),N)}else if(R){var O=y.split("/");if(_=f.StringUtilities.format(E(O[1]),O[1]),O[0].indexOf("-")>-1){var W=this.generateRangeSegmentDescription(O[0],k,b);W.indexOf(", ")!=0&&(_+=", "),_+=W}else if(O[0].indexOf("*")==-1){var X=f.StringUtilities.format(P(O[0]),b(O[0]));X=X.replace(", ",""),_+=f.StringUtilities.format(this.i18n.commaStartingX0(),X)}}else M&&(_=this.generateRangeSegmentDescription(y,k,b));return _},m.prototype.generateRangeSegmentDescription=function(y,w,b){var E="",k=y.split("-"),P=b(k[0],1),_=b(k[1],2),R=w(y);return E+=f.StringUtilities.format(R,P,_),E},m.prototype.formatTime=function(y,w,b){var E=0,k=0,P=parseInt(y)+E,_=parseInt(w)+k;_>=60?(_-=60,P+=1):_<0&&(_+=60,P-=1),P>=24?P=P-24:P<0&&(P=24+P);var R="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),R=M?"".concat(this.getPeriod(P)," "):" ".concat(this.getPeriod(P)),P>12&&(P-=12),P===0&&(P=12));var T="";b&&(T=":".concat(("00"+b).substring(b.length)));var O=P.toString(),N=("00"+O).substring(O.length),$=_.toString(),C=("00"+$).substring($.length),L=this.options.trimHoursLeadingZero?O:N;return"".concat(M?R:"").concat(L,":").concat(C).concat(T).concat(M?"":R)},m.prototype.transformVerbosity=function(y,w){if(!w&&(y=y.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),y=y.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),y=y.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),y=y.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var b=0,E=Object.entries(this.i18n.conciseVerbosityReplacements());b=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},m.locales={},m})();c.ExpressionDescriptor=u},747(l,c,d){Object.defineProperty(c,"__esModule",{value:!0}),c.enLocaleLoader=void 0;var f=d(486),g=(function(){function u(){}return u.prototype.load=function(m){m.en=new f.en},u})();c.enLocaleLoader=g},486(l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.en=void 0;var d=(function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days in a month"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f.prototype.atReboot=function(){return"Run once, at startup"},f.prototype.onTheHour=function(){return"on the hour"},f})();c.en=d},515(l,c){Object.defineProperty(c,"__esModule",{value:!0});function d(g,u){if(!g)throw new Error(u)}var f=(function(){function g(){}return g.secondRange=function(u){for(var m=u.split(","),y=0;y=0&&w<=59,"seconds part must be >= 0 and <= 59")}},g.minuteRange=function(u){for(var m=u.split(","),y=0;y=0&&w<=59,"minutes part must be >= 0 and <= 59")}},g.hourRange=function(u){for(var m=u.split(","),y=0;y=0&&w<=23,"hours part must be >= 0 and <= 23")}},g.dayOfMonthRange=function(u){for(var m=u.split(","),y=0;y=1&&w<=31,"DOM part must be >= 1 and <= 31")}},g.monthRange=function(u,m){for(var y=u.split(","),w=0;w=1&&b<=12,m?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},g.dayOfWeekRange=function(u,m){for(var y=u.split(","),w=0;w=0&&b<=6,m?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},g})();c.default=f},823(l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.StringUtilities=void 0;var d=(function(){function f(){}return f.format=function(g){for(var u=[],m=1;m-1})},f})();c.StringUtilities=d}},n={};function o(l){var c=n[l];if(c!==void 0)return c.exports;var d=n[l]={exports:{}};return r[l](d,d.exports,o),d.exports}var i={};return(()=>{var l=i;Object.defineProperty(l,"__esModule",{value:!0}),l.toString=void 0;var c=o(333),d=o(747);c.ExpressionDescriptor.initialize(new d.enLocaleLoader),l.default=c.ExpressionDescriptor;var f=c.ExpressionDescriptor.toString;l.toString=f})(),i})())})(N1)),N1.exports}var aV=Io();const sV=Qo(aV);var $1={exports:{}},d8;function lV(){return d8||(d8=1,(function(t,e){(function(n,o){t.exports=o(Io())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function i(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,i),y.exports}i.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return i.d(m,{a:m}),m},i.d=(u,m)=>{for(var y in m)i.o(m,y)&&!i.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},i.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};i.r(l);var c=i(93),d=i.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.fr=void 0;var g=(function(){function u(){}return u.prototype.conciseVerbosityReplacements=function(){return{"de le":"du"}},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},u.prototype.everyMinute=function(){return"toutes les minutes"},u.prototype.everyHour=function(){return"toutes les heures"},u.prototype.atSpace=function(){return"À "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},u.prototype.at=function(){return"À"},u.prototype.spaceAnd=function(){return" et"},u.prototype.everySecond=function(){return"toutes les secondes"},u.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},u.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},u.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},u.prototype.everyX0Hours=function(){return"toutes les %s heures"},u.prototype.betweenX0AndX1=function(){return"de %s à %s"},u.prototype.atX0=function(){return"%s"},u.prototype.commaEveryDay=function(){return", tous les jours"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},u.prototype.commaX0ThroughX1=function(){return", de %s à %s"},u.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},u.prototype.first=function(){return"premier"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"troisième"},u.prototype.fourth=function(){return"quatrième"},u.prototype.fifth=function(){return"cinquième"},u.prototype.commaOnThe=function(){return", le "},u.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},u.prototype.lastDay=function(){return"le dernier jour"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},u.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},u.prototype.commaAndOnX0=function(){return", et %s"},u.prototype.commaEveryX0Months=function(){return", tous les %s mois"},u.prototype.commaOnlyInX0=function(){return", uniquement en %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},u.prototype.firstWeekday=function(){return"premier jour ouvrable"},u.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Days=function(){return", tous les %s jours"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},u.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryHour=function(){return", chaque heure"},u.prototype.commaEveryX0Years=function(){return", tous les %s ans"},u.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},u.prototype.commaStartingX0=function(){return", à partir de %s"},u.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},u.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},u.prototype.onTheHour=function(){return"à l'heure pile"},u})();return f.fr=g,d().locales.fr=new g,l})())})($1)),$1.exports}lV();var L1={exports:{}},f8;function cV(){return f8||(f8=1,(function(t,e){(function(n,o){t.exports=o(Io())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function i(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,i),y.exports}i.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return i.d(m,{a:m}),m},i.d=(u,m)=>{for(var y in m)i.o(m,y)&&!i.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},i.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};i.r(l);var c=i(93),d=i.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.es=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocurrió un error mientras se generaba la descripción de la expresión. Revise la sintaxis de la expresión de cron."},u.prototype.at=function(){return"A las"},u.prototype.atSpace=function(){return"A las "},u.prototype.atX0=function(){return"a las %s"},u.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},u.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},u.prototype.commaEveryDay=function(){return", cada día"},u.prototype.commaEveryX0Days=function(){return", cada %s días"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},u.prototype.commaEveryX0Months=function(){return", cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},u.prototype.commaOnlyInX0=function(){return", sólo en %s"},u.prototype.commaOnlyOnX0=function(){return", sólo el %s"},u.prototype.commaAndOnX0=function(){return", y el %s"},u.prototype.commaOnThe=function(){return", en el "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},u.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},u.prototype.everyHour=function(){return"cada hora"},u.prototype.everyMinute=function(){return"cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},u.prototype.everySecond=function(){return"cada segundo"},u.prototype.everyX0Hours=function(){return"cada %s horas"},u.prototype.everyX0Minutes=function(){return"cada %s minutos"},u.prototype.everyX0Seconds=function(){return"cada %s segundos"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primero"},u.prototype.firstWeekday=function(){return"primer día de la semana"},u.prototype.fourth=function(){return"cuarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},u.prototype.second=function(){return"segundo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},u.prototype.spaceAnd=function(){return" y"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},u.prototype.lastDay=function(){return"el último día"},u.prototype.third=function(){return"tercer"},u.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},u.prototype.commaEveryX0Years=function(){return", cada %s años"},u.prototype.commaStartingX0=function(){return", comenzando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},u.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},u.prototype.onTheHour=function(){return"en punto"},u})();return f.es=g,d().locales.es=new g,l})())})(L1)),L1.exports}cV();var B1={exports:{}},h8;function uV(){return h8||(h8=1,(function(t,e){(function(n,o){t.exports=o(Io())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function i(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,i),y.exports}i.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return i.d(m,{a:m}),m},i.d=(u,m)=>{for(var y in m)i.o(m,y)&&!i.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},i.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};i.r(l);var c=i(93),d=i.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.de=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"jede Minute"},u.prototype.everyHour=function(){return"jede Stunde"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},u.prototype.atSpace=function(){return"Um "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},u.prototype.at=function(){return"Um"},u.prototype.spaceAnd=function(){return" und"},u.prototype.everySecond=function(){return"Jede Sekunde"},u.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},u.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},u.prototype.everyX0Minutes=function(){return"alle %s Minuten"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},u.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},u.prototype.everyX0Hours=function(){return"alle %s Stunden"},u.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},u.prototype.atX0=function(){return"um %s"},u.prototype.commaEveryDay=function(){return", jeden Tag"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},u.prototype.commaX0ThroughX1=function(){return", %s bis %s"},u.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},u.prototype.first=function(){return"ersten"},u.prototype.second=function(){return"zweiten"},u.prototype.third=function(){return"dritten"},u.prototype.fourth=function(){return"vierten"},u.prototype.fifth=function(){return"fünften"},u.prototype.commaOnThe=function(){return", am "},u.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},u.prototype.lastDay=function(){return"der letzte Tag"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},u.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},u.prototype.commaAndOnX0=function(){return", und jeden %s"},u.prototype.commaEveryX0Months=function(){return", alle %s Monate"},u.prototype.commaOnlyInX0=function(){return", nur im %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},u.prototype.firstWeekday=function(){return"ersten Werktag"},u.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},u.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},u.prototype.commaEveryX0Days=function(){return", alle %s Tage"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},u.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},u.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},u.prototype.commaStartingX0=function(){return", beginnend %s"},u.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},u.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},u.prototype.onTheHour=function(){return"zur vollen Stunde"},u})();return f.de=g,d().locales.de=new g,l})())})(B1)),B1.exports}uV();var F1={exports:{}},m8;function pV(){return m8||(m8=1,(function(t,e){(function(n,o){t.exports=o(Io())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function i(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,i),y.exports}i.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return i.d(m,{a:m}),m},i.d=(u,m)=>{for(var y in m)i.o(m,y)&&!i.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},i.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};i.r(l);var c=i(93),d=i.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.it=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},u.prototype.at=function(){return"Alle"},u.prototype.atSpace=function(){return"Alle "},u.prototype.atX0=function(){return"alle %s"},u.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},u.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},u.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},u.prototype.commaEveryDay=function(){return", ogni giorno"},u.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},u.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},u.prototype.commaEveryX0Years=function(){return", ogni %s anni"},u.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},u.prototype.commaOnlyInX0=function(){return", solo in %s"},u.prototype.commaOnlyOnX0=function(){return", solo il %s"},u.prototype.commaAndOnX0=function(){return", e il %s"},u.prototype.commaOnThe=function(){return", il "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},u.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},u.prototype.commaX0ThroughX1=function(){return", %s al %s"},u.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},u.prototype.everyHour=function(){return"ogni ora"},u.prototype.everyMinute=function(){return"ogni minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},u.prototype.everySecond=function(){return"ogni secondo"},u.prototype.everyX0Hours=function(){return"ogni %s ore"},u.prototype.everyX0Minutes=function(){return"ogni %s minuti"},u.prototype.everyX0Seconds=function(){return"ogni %s secondi"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primo"},u.prototype.firstWeekday=function(){return"primo giorno della settimana"},u.prototype.fourth=function(){return"quarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},u.prototype.second=function(){return"secondo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},u.prototype.lastDay=function(){return"l'ultimo giorno"},u.prototype.third=function(){return"terzo"},u.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},u.prototype.commaStartingX0=function(){return", a partire %s"},u.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},u.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},u.prototype.onTheHour=function(){return"all'ora esatta"},u})();return f.it=g,d().locales.it=new g,l})())})(F1)),F1.exports}pV();var z1={exports:{}},g8;function dV(){return g8||(g8=1,(function(t,e){(function(n,o){t.exports=o(Io())})(globalThis,r=>(()=>{var n={93(y){y.exports=r}},o={};function i(y){var w=o[y];if(w!==void 0)return w.exports;var b=o[y]={exports:{}};return n[y](b,b.exports,i),b.exports}i.n=y=>{var w=y&&y.__esModule?()=>y.default:()=>y;return i.d(w,{a:w}),w},i.d=(y,w)=>{for(var b in w)i.o(w,b)&&!i.o(y,b)&&Object.defineProperty(y,b,{enumerable:!0,get:w[b]})},i.o=(y,w)=>Object.prototype.hasOwnProperty.call(y,w),i.r=y=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var l={};i.r(l);var c=i(93),d=i.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.ru=void 0;var g=function(y,w){var b=Number(y);return b!==void 0?w[b%100>4&&b%100<20?2:[2,0,1,1,1,2][b%10<5?Math.abs(b)%10:5]]:w[2]},u=function(y,w){var b=Number(y);return b!==void 0?w[b===0?0:b===1||b===2||b===4?1:2]:w[1]},m=(function(){function y(){}return y.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},y.prototype.atX0MinutesPastTheHourGt20=function(){return null},y.prototype.commaMonthX0ThroughMonthX1=function(){return null},y.prototype.commaYearX0ThroughYearX1=function(){return null},y.prototype.use24HourTimeFormatByDefault=function(){return!0},y.prototype.everyMinute=function(){return"каждую минуту"},y.prototype.everyHour=function(){return"каждый час"},y.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},y.prototype.atSpace=function(){return"В "},y.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},y.prototype.at=function(){return"В"},y.prototype.spaceAnd=function(){return" и"},y.prototype.everySecond=function(){return"каждую секунду"},y.prototype.everyX0Seconds=function(w){return g(w,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},y.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},y.prototype.atX0SecondsPastTheMinute=function(w){return g(w,["в %s секунду","в %s секунды","в %s секунд"])},y.prototype.everyX0Minutes=function(w){return g(w,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},y.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},y.prototype.atX0MinutesPastTheHour=function(w){return g(w,["в %s минуту","в %s минуты","в %s минут"])},y.prototype.everyX0Hours=function(w){return g(w,["каждый %s час","каждые %s часа","каждые %s часов"])},y.prototype.betweenX0AndX1=function(){return"с %s по %s"},y.prototype.atX0=function(){return"в %s"},y.prototype.commaEveryDay=function(){return", каждый день"},y.prototype.commaEveryX0DaysOfTheWeek=function(w){return g(w,[", каждый %s день недели",", каждые %s дня недели",", каждые %s дней недели"])},y.prototype.commaX0ThroughX1=function(w){return w&&(w[0]=="2"||w[0]=="3")?", со %s по %s":", с %s по %s"},y.prototype.commaAndX0ThroughX1=function(w){return w&&(w[0]=="2"||w[0]=="3")?" и со %s по %s":" и с %s по %s"},y.prototype.first=function(w){return u(w,["первое","первый","первую"])},y.prototype.second=function(w){return u(w,["второе","второй","вторую"])},y.prototype.third=function(w){return u(w,["третье","третий","третью"])},y.prototype.fourth=function(w){return u(w,["четвертое","четвертый","четвертую"])},y.prototype.fifth=function(w){return u(w,["пятое","пятый","пятую"])},y.prototype.commaOnThe=function(w){return w==="2"?", во ":", в "},y.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},y.prototype.lastDay=function(){return"последний день"},y.prototype.commaOnTheLastX0OfTheMonth=function(w){return u(w,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},y.prototype.commaOnlyOnX0=function(w){return w&&w[0]==="2"?", только во %s":", только в %s"},y.prototype.commaAndOnX0=function(){return", и %s"},y.prototype.commaEveryX0Months=function(w){return g(w,[""," каждые %s месяца"," каждые %s месяцев"])},y.prototype.commaOnlyInMonthX0=function(){return", только %s"},y.prototype.commaOnlyInX0=function(){return", только в %s"},y.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},y.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},y.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(w){return g(w,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},y.prototype.firstWeekday=function(){return"первый будний день"},y.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},y.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},y.prototype.commaEveryX0Days=function(w){return g(w,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},y.prototype.commaBetweenDayX0AndX1OfTheMonth=function(w){return w&&w.substring(0,w.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},y.prototype.commaOnDayX0OfTheMonth=function(w){return w&&w[0]=="2"?", во %s число месяца":", в %s число месяца"},y.prototype.commaEveryX0Years=function(w){return g(w,[", каждый %s год",", каждые %s года",", каждые %s лет"])},y.prototype.commaStartingX0=function(){return", начало %s"},y.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},y.prototype.daysOfTheWeekInCase=function(w){return w===void 0&&(w=2),w==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},y.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},y.prototype.monthsOfTheYearInCase=function(w){return w==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},y.prototype.onTheHour=function(){return"ровно в час"},y})();return f.ru=m,d().locales.ru=new m,l})())})(z1)),z1.exports}dV();var j1={exports:{}},v8;function fV(){return v8||(v8=1,(function(t,e){(function(n,o){t.exports=o(Io())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function i(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,i),y.exports}i.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return i.d(m,{a:m}),m},i.d=(u,m)=>{for(var y in m)i.o(m,y)&&!i.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},i.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};i.r(l);var c=i(93),d=i.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.zh_CN=void 0;var g=(function(){function u(){}return u.prototype.setPeriodBeforeTime=function(){return!0},u.prototype.pm=function(){return"下午"},u.prototype.am=function(){return"上午"},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.everyMinute=function(){return"每分钟"},u.prototype.everyHour=function(){return"每小时"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},u.prototype.atSpace=function(){return"在"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},u.prototype.at=function(){return"在"},u.prototype.spaceAnd=function(){return" 和"},u.prototype.everySecond=function(){return"每秒"},u.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分钟后的第 %s 到 %s 秒"},u.prototype.atX0SecondsPastTheMinute=function(){return"在一分钟后的第 %s 秒"},u.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整点后的第 %s 到 %s 分钟"},u.prototype.atX0MinutesPastTheHour=function(){return"在整点后的第 %s 分钟"},u.prototype.everyX0Hours=function(){return"每隔 %s 小时"},u.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},u.prototype.atX0=function(){return"在%s"},u.prototype.commaEveryDay=function(){return", 每天"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},u.prototype.commaX0ThroughX1=function(){return", %s至%s"},u.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},u.prototype.first=function(){return"第一个"},u.prototype.second=function(){return"第二个"},u.prototype.third=function(){return"第三个"},u.prototype.fourth=function(){return"第四个"},u.prototype.fifth=function(){return"第五个"},u.prototype.commaOnThe=function(){return", 限每月的"},u.prototype.spaceX0OfTheMonth=function(){return"%s"},u.prototype.lastDay=function(){return"本月最后一天"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},u.prototype.commaOnlyOnX0=function(){return", 仅%s"},u.prototype.commaAndOnX0=function(){return", 或者为%s"},u.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},u.prototype.commaOnlyInX0=function(){return", 仅限%s"},u.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},u.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},u.prototype.firstWeekday=function(){return"第一个工作日"},u.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},u.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},u.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},u.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},u.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},u.prototype.commaStartingX0=function(){return", %s开始"},u.prototype.dayX0=function(){return" %s 号"},u.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},u.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u.prototype.onTheHour=function(){return"整点"},u})();return f.zh_CN=g,d().locales.zh_CN=new g,l})())})(j1)),j1.exports}fV();var H1={exports:{}},y8;function hV(){return y8||(y8=1,(function(t,e){(function(n,o){t.exports=o(Io())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function i(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,i),y.exports}i.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return i.d(m,{a:m}),m},i.d=(u,m)=>{for(var y in m)i.o(m,y)&&!i.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},i.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};i.r(l);var c=i(93),d=i.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.uk=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"щохвилини"},u.prototype.everyHour=function(){return"щогодини"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},u.prototype.atSpace=function(){return"О "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},u.prototype.at=function(){return"О"},u.prototype.spaceAnd=function(){return" та"},u.prototype.everySecond=function(){return"Щосекунди"},u.prototype.everyX0Seconds=function(){return"кожні %s секунд"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},u.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},u.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},u.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},u.prototype.everyX0Hours=function(){return"кожні %s годин"},u.prototype.betweenX0AndX1=function(){return"між %s та %s"},u.prototype.atX0=function(){return"о %s"},u.prototype.commaEveryDay=function(){return", щоденно"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},u.prototype.commaX0ThroughX1=function(){return", %s по %s"},u.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},u.prototype.first=function(){return"перший"},u.prototype.second=function(){return"другий"},u.prototype.third=function(){return"третій"},u.prototype.fourth=function(){return"четвертий"},u.prototype.fifth=function(){return"п'ятий"},u.prototype.commaOnThe=function(){return", в "},u.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},u.prototype.lastDay=function(){return"останній день"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},u.prototype.commaOnlyOnX0=function(){return", тільки в %s"},u.prototype.commaAndOnX0=function(){return", і в %s"},u.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},u.prototype.commaOnlyInX0=function(){return", тільки в %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},u.prototype.firstWeekday=function(){return"перший будень"},u.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},u.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},u.prototype.commaEveryX0Days=function(){return", кожен %s день"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},u.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},u.prototype.commaEveryX0Years=function(){return", кожні %s роки"},u.prototype.commaStartingX0=function(){return", початок %s"},u.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},u.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},u.prototype.onTheHour=function(){return"рівно о годині"},u})();return f.uk=g,d().locales.uk=new g,l})())})(H1)),H1.exports}hV();var q1={exports:{}},b8;function mV(){return b8||(b8=1,(function(t,e){(function(n,o){t.exports=o(Io())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function i(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,i),y.exports}i.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return i.d(m,{a:m}),m},i.d=(u,m)=>{for(var y in m)i.o(m,y)&&!i.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},i.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};i.r(l);var c=i(93),d=i.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.pt_BR=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},u.prototype.at=function(){return"às"},u.prototype.atSpace=function(){return"às "},u.prototype.atX0=function(){return"Às %s"},u.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},u.prototype.betweenX0AndX1=function(){return"entre %s e %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},u.prototype.commaEveryDay=function(){return", a cada dia"},u.prototype.commaEveryX0Days=function(){return", a cada %s dias"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},u.prototype.commaEveryX0Months=function(){return", a cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},u.prototype.commaOnlyInX0=function(m){return m&&m.length>1&&m[1]==="-"?"somente %s":", somente em %s"},u.prototype.commaOnlyOnX0=function(m){return m&&m.length>1&&m[1]==="-"?", somente %s":", somente de %s"},u.prototype.commaAndOnX0=function(){return", e de %s"},u.prototype.commaOnThe=function(m,y){return y==="6"||y==="0"?", no":", na "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},u.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},u.prototype.everyHour=function(){return"a cada hora"},u.prototype.everyMinute=function(){return"a cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},u.prototype.everySecond=function(){return"a cada segundo"},u.prototype.everyX0Hours=function(){return"a cada %s horas"},u.prototype.everyX0Minutes=function(){return"a cada %s minutos"},u.prototype.everyX0Seconds=function(){return"a cada %s segundos"},u.prototype.fifth=function(m){return m==="6"||m==="0"?"quinto":"quinta"},u.prototype.first=function(m){return m==="6"||m==="0"?"primeiro":"primeira"},u.prototype.firstWeekday=function(){return"primeiro dia da semana"},u.prototype.fourth=function(m){return m==="6"||m==="0"?"quarto":"quarta"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},u.prototype.second=function(m){return m==="6"||m==="0"?"segundo":"segunda"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},u.prototype.lastDay=function(){return"o último dia"},u.prototype.third=function(m){return m==="6"||m==="0"?"terceiro":"terceira"},u.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},u.prototype.commaEveryX0Years=function(){return", a cada %s anos"},u.prototype.commaStartingX0=function(){return", iniciando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},u.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},u.prototype.onTheHour=function(){return"na hora certa"},u})();return f.pt_BR=g,d().locales.pt_BR=new g,l})())})(q1)),q1.exports}mV();var W1={exports:{}},x8;function gV(){return x8||(x8=1,(function(t,e){(function(n,o){t.exports=o(Io())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function i(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,i),y.exports}i.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return i.d(m,{a:m}),m},i.d=(u,m)=>{for(var y in m)i.o(m,y)&&!i.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},i.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};i.r(l);var c=i(93),d=i.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.pl=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},u.prototype.at=function(){return"O"},u.prototype.atSpace=function(){return"O "},u.prototype.atX0=function(){return"o %s"},u.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},u.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},u.prototype.betweenX0AndX1=function(){return"od %s do %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},u.prototype.commaEveryDay=function(){return", co dzień"},u.prototype.commaEveryX0Days=function(){return", co %s dni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},u.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},u.prototype.commaEveryX0Years=function(){return", co %s lat"},u.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},u.prototype.commaOnlyInX0=function(){return", tylko %s"},u.prototype.commaOnlyOnX0=function(){return", tylko %s"},u.prototype.commaAndOnX0=function(){return", i %s"},u.prototype.commaOnThe=function(){return", "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},u.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},u.prototype.commaX0ThroughX1=function(){return", od %s do %s"},u.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},u.prototype.everyHour=function(){return"co godzinę"},u.prototype.everyMinute=function(){return"co minutę"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},u.prototype.everySecond=function(){return"co sekundę"},u.prototype.everyX0Hours=function(){return"co %s godzin"},u.prototype.everyX0Minutes=function(){return"co %s minut"},u.prototype.everyX0Seconds=function(){return"co %s sekund"},u.prototype.fifth=function(){return"piąty"},u.prototype.first=function(){return"pierwszy"},u.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},u.prototype.fourth=function(){return"czwarty"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},u.prototype.second=function(){return"drugi"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},u.prototype.spaceAnd=function(){return" i"},u.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},u.prototype.lastDay=function(){return"ostatni dzień"},u.prototype.third=function(){return"trzeci"},u.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},u.prototype.commaStartingX0=function(){return", startowy %s"},u.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},u.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},u.prototype.onTheHour=function(){return"o pełnej godzinie"},u})();return f.pl=g,d().locales.pl=new g,l})())})(W1)),W1.exports}gV();function o9(t,e){return sV.toString(t,{locale:e})}const en={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},vV=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],yV=["January","February","March","April","May","June","July","August","September","October","November","December"];function w8(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const l=parseInt(i[1],10);for(let c=parseInt(i[0],10);c<=l;c++)r.push(c)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function S8(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(i=>parseInt(i,10)),t.sort((i,l)=>i-l);let n=t[0],o=t[0];for(let i=1;ithis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=Di.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=w8(this.state[r],n),i=o.indexOf(e);i!==-1?o.splice(i,1):(o.push(e),o.sort()),this.setCronAttr(r,S8(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let i=0;ithis.onToggle(!1,e,r)},j.t("ra_Deselect all")),v.createElement(Yt,{key:"addall",variant:"contained",style:en.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},j.t("ra_Select all")),v.createElement("div",{key:"all"},n.map(i=>[r===7&&i===4||r===12&&i===7||r===31&&!((i-1)%10)||r===60&&i&&!(i%10)||r===24&&i&&!(i%6)?v.createElement("div",{key:`allInner${i}`,style:{width:"100%"}}):null,v.createElement(Yt,{key:`_${i}`,variant:o.indexOf(i)!==-1?"contained":"outlined",style:en.numberButton,color:o.indexOf(i)!==-1?"secondary":"primary",onClick:()=>this.onToggle(i,e,r)},r===7?j.t(vV[i]):r===12?yV[i-1]:i)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",i=n==null?!1:n.toString().includes("/"),l;if(this.state.modes[e]===null){l=o?"every":i?"everyN":"specific";const d=JSON.parse(JSON.stringify(this.state.modes));return d[e]=l,setTimeout(()=>this.setState({modes:d},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",i=this.state.modes[e]==="everyN",l=this.state.modes[e];let c=1;return i&&n&&(c=parseInt(n.replace("*/",""),10)||1),v.createElement("div",null,v.createElement(So,{variant:"standard",style:{...en.periodSelect,verticalAlign:"bottom"},value:l,onChange:d=>{const f=JSON.parse(JSON.stringify(this.state.modes));if(f[e]=d.target.value,d.target.value==="every")this.setCronAttr(e,"*",f);else if(d.target.value==="everyN"){const g=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${g}`,f)}else if(d.target.value==="specific"){let g=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!g&&(e==="months"||e==="dates")&&(g=1),this.setCronAttr(e,S8(g,r),f)}}},v.createElement(mr,{key:"every",value:"every"},j.t(`sc_every_${e}`)),v.createElement(mr,{key:"everyN",value:"everyN"},j.t(`sc_everyN_${e}`)),v.createElement(mr,{key:"specific",value:"specific"},j.t(`sc_specific_${e}`))),i&&v.createElement(zr,{variant:"standard",key:"interval",label:j.t(`sc_${e}`),value:c,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:d=>{this.setState({[e]:`*/${d.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!i&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?j.t("ra_Invalid CRON"):o9(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return v.createElement("div",{style:en.mainDiv},v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},v.createElement(zr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},Di.convertCronToText(this.state.cron,this.props.language||"en"),v.createElement("span",{style:en.warning},n?j.t("ra_warning_every_second"):r?j.t("ra_warning_every_minute"):"")),v.createElement(dt,{control:v.createElement(Wr,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:j.t("ra_use seconds")}),v.createElement(AC,{position:"static",sx:{"&.MuiAppBar-root":en.appBar},color:"secondary"},v.createElement(uB,{value:this.state.tab,style:en.appBar,color:"secondary",onChange:(o,i)=>this.setState({tab:i})},this.state.seconds!==!1&&v.createElement(vs,{id:"sc_seconds",label:j.t("sc_seconds")}),v.createElement(vs,{id:"minutes",label:j.t("sc_minutes")}),v.createElement(vs,{id:"hours",label:j.t("sc_hours")}),v.createElement(vs,{id:"dates",label:j.t("sc_dates")}),v.createElement(vs,{id:"months",label:j.t("sc_months")}),v.createElement(vs,{id:"dow",label:j.t("sc_dows")}))),e===0&&v.createElement("div",{style:en.tabContent},this.getPeriodsTab("seconds",60)),e===1&&v.createElement("div",{style:en.tabContent},this.getPeriodsTab("minutes",60)),e===2&&v.createElement("div",{style:en.tabContent},this.getPeriodsTab("hours",24)),e===3&&v.createElement("div",{style:en.tabContent},this.getPeriodsTab("dates",31)),e===4&&v.createElement("div",{style:en.tabContent},this.getPeriodsTab("months",12)),e===5&&v.createElement("div",{style:en.tabContent},this.getPeriodsTab("dow",7)))}}function La(t,e,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function c(g){try{f(n.next(g))}catch(u){l(u)}}function d(g){try{f(n.throw(g))}catch(u){l(u)}}function f(g){g.done?i(g.value):o(g.value).then(c,d)}f((n=n.apply(t,e||[])).next())})}const bV=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 ul(t,e,r){const n=xV(t),{webkitRelativePath:o}=t,i=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&E8(n,"path",i),E8(n,"relativePath",i),n}function xV(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=bV.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function E8(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const wV=[".DS_Store","Thumbs.db"];function SV(t){return La(this,void 0,void 0,function*(){return _d(t)&&EV(t.dataTransfer)?_V(t.dataTransfer,t.type):CV(t)?TV(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?kV(t):[]})}function EV(t){return _d(t)}function CV(t){return _d(t)&&_d(t.target)}function _d(t){return typeof t=="object"&&t!==null}function TV(t){return qv(t.target.files).map(e=>ul(e))}function kV(t){return La(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>ul(r))})}function _V(t,e){return La(this,void 0,void 0,function*(){if(t.items){const r=qv(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(OV));return C8(i9(n))}return C8(qv(t.files).map(r=>ul(r)))})}function C8(t){return t.filter(e=>wV.indexOf(e.name)===-1)}function qv(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?i9(r):[r]],[])}function T8(t,e){return La(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const i=yield t.getAsFileSystemHandle();if(i===null)throw new Error(`${t} is not a File`);if(i!==void 0){const l=yield i.getFile();return l.handle=i,ul(l)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return ul(n,(r=e?.fullPath)!==null&&r!==void 0?r:void 0)})}function RV(t){return La(this,void 0,void 0,function*(){return t.isDirectory?a9(t):MV(t)})}function a9(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function i(){e.readEntries(l=>La(this,void 0,void 0,function*(){if(l.length){const c=Promise.all(l.map(RV));o.push(c),i()}else try{const c=yield Promise.all(o);r(c)}catch(c){n(c)}}),l=>{n(l)})}i()})}function MV(t){return La(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=ul(n,t.fullPath);e(o)},n=>{r(n)})})})}var jp={},k8;function PV(){return k8||(k8=1,jp.__esModule=!0,jp.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some(function(l){var c=l.trim().toLowerCase();return c.charAt(0)==="."?n.toLowerCase().endsWith(c):c.endsWith("/*")?i===c.replace(/\/.*$/,""):o===c})}return!0}),jp}var AV=PV();const U1=Qo(AV);function _8(t){return NV(t)||DV(t)||l9(t)||IV()}function IV(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function NV(t){if(Array.isArray(t))return Wv(t)}function O8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function R8(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:zV,message:"File type must be ".concat(n)}},M8=function(e){return{code:jV,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},P8=function(e){return{code:HV,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},UV={code:qV,message:"Too many files"};function XV(t){return t.type===""&&typeof t.getAsFile=="function"}function c9(t,e){var r=t.type==="application/x-moz-file"||FV(t,e)||XV(t);return[r,r?null:WV(e)]}function u9(t,e,r){if(va(t.size))if(va(e)&&va(r)){if(t.size>r)return[!1,M8(r)];if(t.sizer)return[!1,M8(r)]}return[!0,null]}function va(t){return t!=null}function VV(t){var e=t.files,r=t.accept,n=t.minSize,o=t.maxSize,i=t.multiple,l=t.maxFiles,c=t.validator;return!i&&e.length>1||i&&l>=1&&e.length>l?!1:e.every(function(d){var f=c9(d,r),g=Zc(f,1),u=g[0],m=u9(d,n,o),y=Zc(m,1),w=y[0],b=c?c(d):null;return u&&w&&!b})}function Od(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function hc(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function A8(t){t.preventDefault()}function GV(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function KV(t){return t.indexOf("Edge/")!==-1}function YV(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return GV(t)||KV(t)}function mo(){for(var t=arguments.length,e=new Array(t),r=0;r1?o-1:0),l=1;lt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function dG(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,i;for(i=0;i=0)&&(r[o]=t[o]);return r}var Cf=A.forwardRef(function(t,e){var r=t.children,n=Rd(t,rG),o=fG(n),i=o.open,l=Rd(o,nG);return A.useImperativeHandle(e,function(){return{open:i}},[i]),v.createElement(A.Fragment,null,r(jt(jt({},l),{},{open:i})))});Cf.displayName="Dropzone";var h9={disabled:!1,getFilesFromEvent:SV,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};Cf.defaultProps=h9;Cf.propTypes={children:le.func,accept:le.objectOf(le.arrayOf(le.string)),multiple:le.bool,preventDropOnDocument:le.bool,noClick:le.bool,noKeyboard:le.bool,noDrag:le.bool,noDragEventsBubbling:le.bool,minSize:le.number,maxSize:le.number,maxFiles:le.number,disabled:le.bool,getFilesFromEvent:le.func,onFileDialogCancel:le.func,onFileDialogOpen:le.func,useFsAccessApi:le.bool,autoFocus:le.bool,onDragEnter:le.func,onDragLeave:le.func,onDragOver:le.func,onDrop:le.func,onDropAccepted:le.func,onDropRejected:le.func,onError:le.func,validator:le.func};var Vv={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function fG(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=jt(jt({},h9),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,i=e.maxSize,l=e.minSize,c=e.multiple,d=e.maxFiles,f=e.onDragEnter,g=e.onDragLeave,u=e.onDragOver,m=e.onDrop,y=e.onDropAccepted,w=e.onDropRejected,b=e.onFileDialogCancel,E=e.onFileDialogOpen,k=e.useFsAccessApi,P=e.autoFocus,_=e.preventDropOnDocument,R=e.noClick,M=e.noKeyboard,T=e.noDrag,O=e.noDragEventsBubbling,N=e.onError,$=e.validator,C=A.useMemo(function(){return ZV(r)},[r]),L=A.useMemo(function(){return QV(r)},[r]),H=A.useMemo(function(){return typeof E=="function"?E:N8},[E]),W=A.useMemo(function(){return typeof b=="function"?b:N8},[b]),X=A.useRef(null),U=A.useRef(null),K=A.useReducer(hG,Vv),ee=X1(K,2),Q=ee[0],G=ee[1],te=Q.isFocused,I=Q.isFileDialogActive,z=A.useRef(typeof window<"u"&&window.isSecureContext&&k&&JV()),oe=function(){!z.current&&I&&setTimeout(function(){if(U.current){var be=U.current.files;be.length||(G({type:"closeDialog"}),W())}},300)};A.useEffect(function(){return window.addEventListener("focus",oe,!1),function(){window.removeEventListener("focus",oe,!1)}},[U,I,W,z]);var ie=A.useRef([]),re=A.useRef([]),ae=function(be){X.current&&X.current.contains(be.target)||(be.preventDefault(),ie.current=[])};A.useEffect(function(){return _&&(document.addEventListener("dragover",A8,!1),document.addEventListener("drop",ae,!1)),function(){_&&(document.removeEventListener("dragover",A8),document.removeEventListener("drop",ae))}},[X,_]),A.useEffect(function(){var se=function(yt){re.current=[].concat(I8(re.current),[yt.target]),hc(yt)&&G({isDragGlobal:!0,type:"setDragGlobal"})},be=function(yt){re.current=re.current.filter(function(Fe){return Fe!==yt.target&&Fe!==null}),!(re.current.length>0)&&G({isDragGlobal:!1,type:"setDragGlobal"})},je=function(){re.current=[],G({isDragGlobal:!1,type:"setDragGlobal"})},Be=function(){re.current=[],G({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",se,!1),document.addEventListener("dragleave",be,!1),document.addEventListener("dragend",je,!1),document.addEventListener("drop",Be,!1),function(){document.removeEventListener("dragenter",se),document.removeEventListener("dragleave",be),document.removeEventListener("dragend",je),document.removeEventListener("drop",Be)}},[X]),A.useEffect(function(){return!n&&P&&X.current&&X.current.focus(),function(){}},[X,P,n]);var he=A.useCallback(function(se){N?N(se):console.error(se)},[N]),me=A.useCallback(function(se){se.preventDefault(),se.persist(),Xe(se),ie.current=[].concat(I8(ie.current),[se.target]),hc(se)&&Promise.resolve(o(se)).then(function(be){if(!(Od(se)&&!O)){var je=be.length,Be=je>0&&VV({files:be,accept:C,minSize:l,maxSize:i,multiple:c,maxFiles:d,validator:$}),st=je>0&&!Be;G({isDragAccept:Be,isDragReject:st,isDragActive:!0,type:"setDraggedFiles"}),f&&f(se)}}).catch(function(be){return he(be)})},[o,f,he,O,C,l,i,c,d,$]),ve=A.useCallback(function(se){se.preventDefault(),se.persist(),Xe(se);var be=hc(se);if(be&&se.dataTransfer)try{se.dataTransfer.dropEffect="copy"}catch{}return be&&u&&u(se),!1},[u,O]),xe=A.useCallback(function(se){se.preventDefault(),se.persist(),Xe(se);var be=ie.current.filter(function(Be){return X.current&&X.current.contains(Be)}),je=be.indexOf(se.target);je!==-1&&be.splice(je,1),ie.current=be,!(be.length>0)&&(G({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),hc(se)&&g&&g(se))},[X,g,O]),Le=A.useCallback(function(se,be){var je=[],Be=[];se.forEach(function(st){var yt=c9(st,C),Fe=X1(yt,2),Ht=Fe[0],St=Fe[1],Ce=u9(st,l,i),lt=X1(Ce,2),Et=lt[0],gr=lt[1],vr=$?$(st):null;if(Ht&&Et&&!vr)je.push(st);else{var Ur=[St,gr];vr&&(Ur=Ur.concat(vr)),Be.push({file:st,errors:Ur.filter(function(Do){return Do})})}}),(!c&&je.length>1||c&&d>=1&&je.length>d)&&(je.forEach(function(st){Be.push({file:st,errors:[UV]})}),je.splice(0)),G({acceptedFiles:je,fileRejections:Be,type:"setFiles"}),m&&m(je,Be,be),Be.length>0&&w&&w(Be,be),je.length>0&&y&&y(je,be)},[G,c,C,l,i,d,m,y,w,$]),Ae=A.useCallback(function(se){se.preventDefault(),se.persist(),Xe(se),ie.current=[],hc(se)&&Promise.resolve(o(se)).then(function(be){Od(se)&&!O||Le(be,se)}).catch(function(be){return he(be)}),G({type:"reset"})},[o,Le,he,O]),nt=A.useCallback(function(){if(z.current){G({type:"openDialog"}),H();var se={multiple:c,types:L};window.showOpenFilePicker(se).then(function(be){return o(be)}).then(function(be){Le(be,null),G({type:"closeDialog"})}).catch(function(be){eG(be)?(W(be),G({type:"closeDialog"})):tG(be)?(z.current=!1,U.current?(U.current.value=null,U.current.click()):he(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 was provided."))):he(be)});return}U.current&&(G({type:"openDialog"}),H(),U.current.value=null,U.current.click())},[G,H,W,k,Le,he,L,c]),Me=A.useCallback(function(se){!X.current||!X.current.isEqualNode(se.target)||(se.key===" "||se.key==="Enter"||se.keyCode===32||se.keyCode===13)&&(se.preventDefault(),nt())},[X,nt]),_e=A.useCallback(function(){G({type:"focus"})},[]),mt=A.useCallback(function(){G({type:"blur"})},[]),Ee=A.useCallback(function(){R||(YV()?setTimeout(nt,0):nt())},[R,nt]),Ie=function(be){return n?null:be},it=function(be){return M?null:Ie(be)},Ze=function(be){return T?null:Ie(be)},Xe=function(be){O&&be.stopPropagation()},we=A.useMemo(function(){return function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},be=se.refKey,je=be===void 0?"ref":be,Be=se.role,st=se.onKeyDown,yt=se.onFocus,Fe=se.onBlur,Ht=se.onClick,St=se.onDragEnter,Ce=se.onDragOver,lt=se.onDragLeave,Et=se.onDrop,gr=Rd(se,oG);return jt(jt(Xv({onKeyDown:it(mo(st,Me)),onFocus:it(mo(yt,_e)),onBlur:it(mo(Fe,mt)),onClick:Ie(mo(Ht,Ee)),onDragEnter:Ze(mo(St,me)),onDragOver:Ze(mo(Ce,ve)),onDragLeave:Ze(mo(lt,xe)),onDrop:Ze(mo(Et,Ae)),role:typeof Be=="string"&&Be!==""?Be:"presentation"},je,X),!n&&!M?{tabIndex:0}:{}),gr)}},[X,Me,_e,mt,Ee,me,ve,xe,Ae,M,T,n]),at=A.useCallback(function(se){se.stopPropagation()},[]),Ye=A.useMemo(function(){return function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},be=se.refKey,je=be===void 0?"ref":be,Be=se.onChange,st=se.onClick,yt=Rd(se,iG),Fe=Xv({accept:C,multiple:c,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:Ie(mo(Be,Ae)),onClick:Ie(mo(st,at)),tabIndex:-1},je,U);return jt(jt({},Fe),yt)}},[U,r,c,Ae,n]);return jt(jt({},Q),{},{isFocused:te&&!n,getRootProps:we,getInputProps:Ye,rootRef:X,inputRef:U,open:Ie(nt)})}function hG(t,e){switch(e.type){case"focus":return jt(jt({},t),{},{isFocused:!0});case"blur":return jt(jt({},t),{},{isFocused:!1});case"openDialog":return jt(jt({},Vv),{},{isFileDialogActive:!0});case"closeDialog":return jt(jt({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return jt(jt({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return jt(jt({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:!1});case"setDragGlobal":return jt(jt({},t),{},{isDragGlobal:e.isDragGlobal});case"reset":return jt({},Vv);default:return t}}function N8(){}function mG(){const t=Zo();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=r$(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function N2(){return t=>function(r){const n=mG();return v.createElement(t,{...r,width:n})}}function gG(t){const[e,r]=v.useState(t.input||t.value||""),[n,o]=v.useState("");return v.createElement(ei,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},v.createElement(ni,{id:"form-dialog-title"},t.titleText),v.createElement(ri,null,v.createElement(sf,null,t.promptText),v.createElement(zr,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:i=>i.code==="Enter"&&e&&t.onClose(e),onChange:i=>{let l="";t.verify&&(l=t.verify(i.target.value)),t.rule?r(t.rule(i.target.value)):r(i.target.value),o(l)},fullWidth:!0})),v.createElement(ti,null,v.createElement(Yt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:v.createElement(Xi,null)},t.applyText||j.t("ra_Ok")),v.createElement(Yt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:v.createElement(Ta,null)},t.cancelText||j.t("ra_Cancel"))))}const vG=N2()(gG);function yG(t){return v.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"m414.928297,149.715165 c-2.639376,-57.222555 -35.669446,-106.505345 -83.345894,-132.039151 c-3.758948,-2.049842 -7.636885,-3.932022 -11.590542,-5.641125 c-19.303146,-8.394083 -40.607459,-13.050853 -63.004303,-13.050853 c-84.113909,0 -152.791790,65.703174 -157.718988,148.605566 l0.043268,-0.010816 v0.281245 c0,3.061243 -0.146031,16.750306 -0.146031,16.750306 l-2.352723,5.224668 h15.744315 c5.916964,-19.384275 24.078904,-32.635245 45.513024,-32.635245 c26.231510,0 47.573684,21.915481 47.573684,48.146991 c0,26.226103 -21.342174,47.146409 -47.573684,47.146409 c-25.111939,0 -45.734774,-19.735831 -47.443879,-44.658471 h-18.789334 c-0.400232,0 -0.778832,0.638209 -1.162839,0.584122 l-19.762875,55.199753 c-2.774590,7.696379 2.926030,16.214860 11.103771,16.214860 h17.020735 l-0.129805,87.899899 c0,17.356066 14.073071,31.174935 31.429136,31.174935 h56.205745 v82.648189 c0,12.877778 12.937273,22.580734 25.815051,22.580734 h144.597825 c12.877778,0 23.429877,-9.702955 23.429877,-22.580734 v-166.037352 c0,-22.645636 5.976457,-44.761234 16.561008,-64.789128 c11.055093,-20.925714 17.523731,-44.620611 18.129489,-69.792045 c0.027042,-1.260193 0.037858,-2.552839 0.037858,-3.845485 c0,-2.466302 -0.070310,-4.938014 -0.183890,-7.377273 zm-155.393308,-11.731165 h-13.456494 v13.559257 c0,4.732489 -4.267352,8.567157 -8.999842,8.567157 c-4.727079,0 -8.999842,-3.834667 -8.999842,-8.567157 v-13.559257 h-12.185483 c-4.732489,0 -8.567157,-4.267352 -8.567157,-8.999842 c0,-4.727079 3.834667,-8.999842 8.567157,-8.999842 h12.185483 v-12.077311 c0,-4.732489 4.272762,-8.567157 8.999842,-8.567157 c4.732489,0 8.999842,3.834667 8.999842,8.567157 v12.077311 h13.456494 c4.727079,0 8.567157,4.272762 8.567157,8.999842 c0,4.732489 -3.840077,8.999842 -8.567157,8.999842 zm0,0"}),v.createElement("path",{fill:"currentColor",d:"m187.695312 285.875c3.9375-3.980469 6.414063-9.449219 6.414063-15.523438 0-12.128906-9.855469-21.980468-21.984375-21.980468-6.007812 0-11.472656 2.410156-15.457031 6.347656-4.023438 4.003906-6.523438 9.539062-6.523438 15.636719 0 12.125 9.855469 21.980469 21.980469 21.980469 6.078125 0 11.585938-2.476563 15.570312-6.460938zm0 0"}))}function Gv(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"m524,128l-192,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,288c0,26.51 21.49,48 48,48l416,0c26.51,0 48,-21.49 48,-48l0,-224c0,-26.51 -21.49,-48 -48,-48z"}))}function bG(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"m631.75617,292.093l-72.424,124.155a63.997,63.997 0 0 1 -55.281,31.752l-399.964,0c-18.523,0 -30.064,-20.093 -20.731,-36.093l72.424,-124.155a64,64 0 0 1 55.282,-31.752l399.964,0c18.523,0 30.064,20.093 20.73,36.093zm-420.694,-68.093l328,0l0,-48c0,-26.51 -21.49,-48 -48,-48l-160,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,278.046l69.077,-118.418c17.137,-29.378 48.912,-47.628 82.923,-47.628z"}))}function $2(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"#EE3333",d:"M256,0C114.844,0,0,114.844,0,256s114.844,256,256,256s256-114.844,256-256S397.156,0,256,0z M256,448 c-105.865,0-192-86.135-192-192c0-40.406,12.25-78.604,35.542-111.198l267.656,267.656C334.604,435.75,296.406,448,256,448z M412.458,367.198L144.802,99.542C177.396,76.25,215.594,64,256,64c105.865,0,192,86.135,192,192 C448,296.406,435.75,334.604,412.458,367.198z"}))}var xG=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((i,l)=>l===0?i.replace(/\s+/g,""):i.trim());if(n&&o){const i=n.replace(/(\w)-(\w)/g,(c,d,f)=>`${d}${f.toUpperCase()}`);let l=o.trim();Number.isNaN(Number(o))||(l=Number(o)),e[n.startsWith("-")?n:i]=l}return e},{});function wG(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var SG=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],$8={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function EG(t,e){const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return A.createElement(TG(t.nodeName),CG(t,r),L8(t.childNodes,n,o));case 3:{const i=t.nodeValue?.toString()??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;const l=t.parentNode.nodeName.toLowerCase();return SG.includes(l)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${l}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return L8(t.childNodes,n,e);default:return null}}function CG(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=xG(o.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[$8[o.name]||o.name]=!0;break;default:r[$8[o.name]||o.name]=o.value}})}return r}function L8(t,e,r){const n=[...t].map((o,i)=>Md(o,{...r,index:i,level:e+1})).filter(Boolean);return n.length?n:null}function TG(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function m9(t,e={}){return typeof t=="string"?kG(t,e):t instanceof Node?Md(t,e):null}function Md(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:i}=e;let l=t,c=`${o}-${n}`;const d=[];return i&&o===0&&(c=`${wG()}-${c}`),Array.isArray(r)&&r.forEach(f=>{f.condition(l,c,o)&&(typeof f.pre=="function"&&(l=f.pre(l,c,o),l instanceof Node||(l=t)),typeof f.post=="function"&&d.push(f.post(l,c,o)))}),d.length?d:EG(l,{key:c,level:o,...e})}function kG(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:i="text/html"}=e;try{const c=new DOMParser().parseFromString(t,i);if(r){const{childNodes:f}=c.body;return n?f:[...f].map(g=>Md(g,e))}const d=c.querySelector(o)||c.body.childNodes[0];if(!(d instanceof Node))throw new TypeError("Error parsing input");return n?d:Md(d,e)}catch{}return null}var _G=Object.defineProperty,OG=(t,e,r)=>e in t?_G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Hp=(t,e,r)=>OG(t,typeof e!="symbol"?e+"":e,r),B8="react-inlinesvg",RG=10,Mt={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function MG(t){return t[Math.floor(Math.random()*t.length)]}function Ac(){return!!(typeof window<"u"&&window.document?.createElement)}function PG(){return NG()&&typeof window<"u"&&window!==null}function AG(t,...e){const r={};for(const n in t)({}).hasOwnProperty.call(t,n)&&(e.includes(n)||(r[n]=t[n]));return r}function IG(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let i=0;i299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(i=>o.includes(i)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function DG(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function NG(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}var $G=class{constructor(){Hp(this,"cacheApi"),Hp(this,"cacheStore"),Hp(this,"subscribers",[]),Hp(this,"isReady",!1),this.cacheStore=new Map;let t=B8,e=!1;Ac()&&(t=window.REACT_INLINESVG_CACHE_NAME??B8,e=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),e?caches.open(t).then(r=>{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;const r=[...this.subscribers];this.subscribers.length=0,r.forEach(n=>{try{n()}catch(o){console.error(`Error in CacheStore subscriber callback: ${o.message}`)}})}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),this.cacheStore.get(t)?.content??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){return this.cacheStore.get(t)?.status===Mt.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!r?.content){this.cacheStore.set(t,{content:"",status:Mt.LOADING});try{const n=await g9(t,e);this.cacheStore.set(t,{content:n,status:Mt.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Mt.LOADED)return;if(r?.status===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Mt.LOADING});const n=await this.cacheApi?.match(t);if(n){const o=await n.text();this.cacheStore.set(t,{content:o,status:Mt.LOADED});return}try{await this.cacheApi?.add(new Request(t,e));const i=await(await this.cacheApi?.match(t))?.text()??"";this.cacheStore.set(t,{content:i,status:Mt.LOADED})}catch(o){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),o}}async handleLoading(t,e){for(let r=0;r({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();await Promise.allSettled(t.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function F8(t){const e=A.useRef(void 0);return A.useEffect(()=>{e.current=t}),e.current}function LG(t){const{baseURL:e,content:r,description:n,handleError:o,hash:i,preProcessor:l,title:c,uniquifyIDs:d=!1}=t;try{const f=BG(r,l),g=m9(f,{nodeOnly:!0});if(!g||!(g instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const u=v9(g,{baseURL:e,hash:i,uniquifyIDs:d});if(n){const m=u.querySelector("desc");m?.parentNode&&m.parentNode.removeChild(m);const y=document.createElementNS("http://www.w3.org/2000/svg","desc");y.innerHTML=n,u.prepend(y)}if(typeof c<"u"){const m=u.querySelector("title");if(m?.parentNode&&m.parentNode.removeChild(m),c){const y=document.createElementNS("http://www.w3.org/2000/svg","title");y.innerHTML=c,u.prepend(y)}}return u}catch(f){return o(f)}}function BG(t,e){return e?e(t):t}function v9(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,i=["id","href","xlink:href","xlink:role","xlink:arcrole"],l=["href","xlink:href"],c=(d,f)=>l.includes(d)&&(f?!f.includes("#"):!1);return o&&[...t.children].forEach(d=>{if(d.attributes?.length){const f=Object.values(d.attributes).map(g=>{const u=g,m=/url\((.*?)\)/.exec(g.value);return m?.[1]&&(u.value=g.value.replace(m[0],`url(${r}${m[1]}__${n})`)),u});i.forEach(g=>{const u=f.find(m=>m.name===g);u&&!c(g,u.value)&&(u.value=`${u.value}__${n}`)})}return d.children.length?v9(d,e):d}),t}var Vs;function FG(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:i,loader:l=null,onError:c,onLoad:d,src:f,title:g,uniqueHash:u}=t,[m,y]=A.useReducer((X,U)=>({...X,...U}),{content:"",element:null,isCached:e&&Vs.isCached(t.src),status:Mt.IDLE}),{content:w,element:b,isCached:E,status:k}=m,P=F8(t),_=F8(m),R=A.useRef(u??IG(8)),M=A.useRef(!1),T=A.useRef(!1),O=A.useCallback(X=>{M.current&&(y({status:X.message==="Browser does not support SVG"?Mt.UNSUPPORTED:Mt.FAILED}),c?.(X))},[c]),N=A.useCallback((X,U=!1)=>{M.current&&y({content:X,isCached:U,status:Mt.LOADED})},[]),$=A.useCallback(async()=>{const X=await g9(f,o);N(X)},[o,N,f]),C=A.useCallback(()=>{try{const X=LG({...t,handleError:O,hash:R.current,content:w}),U=m9(X);if(!U||!A.isValidElement(U))throw new Error("Could not convert the src to a React element");y({element:U,status:Mt.READY})}catch(X){O(X)}},[w,O,t]),L=A.useCallback(async()=>{const X=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(f);let U;if(X?U=X[1]?window.atob(X[2]):decodeURIComponent(X[2]):f.includes("{M.current&&y({content:"",element:null,isCached:!1,status:Mt.LOADING})},[]);A.useEffect(()=>{if(M.current=!0,!(!Ac()||T.current)){try{if(k===Mt.IDLE){if(!PG())throw new Error("Browser does not support SVG");if(!f)throw new Error("Missing src");H()}}catch(X){O(X)}return T.current=!0,()=>{M.current=!1}}},[]),A.useEffect(()=>{if(!(!Ac()||!P)&&P.src!==f){if(!f){O(new Error("Missing src"));return}H()}},[O,H,P,f]),A.useEffect(()=>{k===Mt.LOADED&&C()},[k,C]),A.useEffect(()=>{!Ac()||!P||P.src!==f||(P.title!==g||P.description!==n)&&C()},[n,C,P,f,g]),A.useEffect(()=>{if(_)switch(k){case Mt.LOADING:{_.status!==Mt.LOADING&&L();break}case Mt.LOADED:{_.status!==Mt.LOADED&&C();break}case Mt.READY:{_.status!==Mt.READY&&d?.(f,E);break}}},[L,C,E,d,_,f,k]);const W=AG(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Ac()?b?A.cloneElement(b,{ref:i,...W}):[Mt.UNSUPPORTED,Mt.FAILED].includes(k)?r:l:l}function zG(t){Vs||(Vs=new $G);const{loader:e}=t,[r,n]=A.useState(Vs.isReady);return A.useEffect(()=>{r||Vs.onReady(()=>{n(!0)})},[r]),r?v.createElement(FG,{...t}):e}const jG=window.location.hostname.endsWith("iobroker.in"),z8=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1),Tf=v.forwardRef(function(e,r){if(e.src){if(typeof e.src=="string"){if(e.src.length<3)return e.sx?v.createElement(ht,{component:"span",sx:e.sx,ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src):v.createElement("span",{ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src);if(e.src.startsWith("data:image/svg"))return v.createElement(zG,{title:e.title||void 0,src:e.src,className:e.className?`iconOwn ${e.className}`:"iconOwn",width:e.style?.width||28,height:e.style?.height||e.style?.width||28,style:e.style||void 0});if(jG&&!e.src.startsWith("http://")&&!e.src.startsWith("https://")){let n=e.src;return n.startsWith("./")?n=z8+n.substring(2):n.startsWith("/")||(n=z8+n),e.sx?v.createElement(ht,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)}):v.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)})}return e.sx?v.createElement(ht,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError}):v.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError})}return e.src}return null});Tf.displayName="Icon";const ca={dialog:{height:"100%"},paper:{height:"calc(100% - 64px)"},content:{textAlign:"center"},textarea:{width:"100%",height:"100%"},img:{width:"auto",height:"calc(100% - 5px)",objectFit:"contain"},dialogTitle:{justifyContent:"space-between",display:"flex"}},Br={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics","csv"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function j8(t,e){let r="";const n=new Uint8Array(t?.data||t),o=n.byteLength;for(let i=0;i{let i="";o.file!==void 0&&(i=o.file);const l={copyPossible:this.state.copyPossible,ext:this.state.ext};if(i.type==="Buffer")if(n.toLowerCase().endsWith(".json5")){l.ext="json5",l.copyPossible=!0;try{i=atob(j8(i,!0))}catch{console.error("Cannot convert base64 to string"),i=""}}else{const c=Je.detectMimeType(j8(i));c&&(l.ext=c,l.copyPossible=Br.code.includes(c)||Br.txt.includes(c))}l.copyPossible&&(l.ext&&Br.txt.includes(l.ext)?(l.text=i,l.editingValue=i):l.ext&&Br.code.includes(l.ext)&&(l.code=i,l.editingValue=i)),this.setState(l)}).catch(o=>window.alert(`Cannot read file: ${o}`))}}componentDidMount(){this.readFile();const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(r,n,this.onFileChanged).catch(o=>window.alert(`Cannot subscribe on file: ${o}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.unsubscribeFiles(r,n,this.onFileChanged)}onFileChanged=(e,r,n)=>{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,n===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))};getEditorOrViewer(){return v.createElement(zr,{variant:"standard",style:ca.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&Br.images.includes(this.state.ext)?this.state.imgError?v.createElement($2,{style:{...ca.img,...this.props.getStyleBackgroundImage()}}):v.createElement(Tf,{onError:e=>{e.target.onerror=null,this.setState({imgError:!0})},style:{...ca.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Br.audio.includes(this.state.ext)?v.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Br.video.includes(this.state.ext)?v.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},v.createElement("source",{src:this.props.href,type:`video/${this.state.ext}`}))):this.state.code!==null||this.state.text!==null||this.state.editing?this.getEditorOrViewer():null}onSave(){}render(){return v.createElement(ei,{sx:{"&.MuiDialog-scrollPaper":ca.dialog,"& .MuiDialog-paper":ca.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},v.createElement("div",{style:ca.dialogTitle},v.createElement(ni,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Br.images.includes(this.state.ext)&&v.createElement("div",null,v.createElement(hr,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},v.createElement(Wy,null)))),v.createElement(ri,{style:ca.content},this.getContent()),v.createElement(ti,null,this.state.copyPossible?v.createElement(Yt,{color:"grey",onClick:e=>{e.stopPropagation(),e.preventDefault(),Je.copyToClipboard(this.state.text||this.state.code||"")},startIcon:v.createElement(EB,null)},this.props.t("Copy content")):null,this.state.editing?v.createElement(Yt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:v.createElement(Nv,null)},this.props.t("Save")):null,v.createElement(Yt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:v.createElement(Ta,null)},this.props.t("Close"))))}}const qG=N2()(HG),Es=32,Xo=32,qp=120,H8=64,q8="Not found",Wp={all:nT,images:MB,code:Uy,txt:OB,audio:gB,video:XB},Te={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 8px)",overflowX:"hidden",overflowY:"auto",padding:8},filesDivHint:{position:"absolute",bottom:0,left:20,opacity:.7,fontStyle:"italic",fontSize:12},filesDivTable:{height:"calc(100% - 56px)"},filesDivTile:{height:"calc(100% - 104px)",display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${H8}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:qp,width:H8,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:Je.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:qp-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:(t.palette.mode==="dark","#FFF")}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:qp-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:qp-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:Je.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:Es,display:"inline-flex",lineHeight:`${Es}px`,"&:hover":{background:t.palette.secondary.light,color:Je.invertColor(t.palette.secondary.main,!0)}}),itemNameTable:{display:"inline-block",pl:"10px",fontSize:"1rem",verticalAlign:"top",flexGrow:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden","@media screen and (max-width: 500px)":{textAlign:"end",direction:"rtl"}},itemNameFolderTable:{fontWeight:"bold"},itemSizeTable:{display:"inline-block",width:60,verticalAlign:"top",textAlign:"right",whiteSpace:"nowrap"},itemAccessTable:{verticalAlign:"top",width:60,textAlign:"right",paddingRight:5,display:"flex",justifyContent:"center"},itemImageTable:{display:"inline-block",width:30,marginTop:1,objectFit:"contain",maxHeight:30},itemNoImageTable:{marginTop:6},itemIconTable:{display:"inline-block",marginTop:1,width:30,height:30},itemFolderTable:{},itemFolderTemp:{opacity:.4},itemFolderIconTable:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:Xo,height:Es,minWidth:Xo,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${Xo/2}px`,"&:hover":{backgroundColor:t.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.08)"},"& span":{pt:"9px"},"& svg":{width:14,height:14,fontSize:"1rem",mt:"-3px",verticalAlign:"middle",color:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:Xo,height:Es,minWidth:Xo,padding:0},itemAclButtonTable:{width:Xo,height:Es,minWidth:Xo,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:Xo,height:Es,minWidth:Xo,verticalAlign:"top",padding:0,"& svg":{width:18,height:18,fontSize:"1.5rem"}},uploadDiv:{top:0,zIndex:1,bottom:0,left:0,right:0,position:"absolute",opacity:.9,textAlign:"center",background:"#FFFFFF"},uploadDivDragging:{opacity:1},uploadCenterDiv:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.palette.mode==="dark"?"#222":"#CCC",display:"flex",alignItems:"center",justifyContent:"center"}),uploadCenterIcon:{width:"25%",height:"25%"},uploadCenterText:{fontSize:24,fontWeight:"bold"},uploadCloseButton:{zIndex:2,position:"absolute",top:30,right:30},uploadCenterTextAndIcon:{position:"absolute",height:"30%",width:"100%",margin:"auto",opacity:.3},menuButtonExpertActive:{color:"#c00000"},menuButtonRestrictActive:{color:"#c05000"},pathDiv:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText,borderRadius:"4px 4px 0 0"}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer",color:"white","&:hover":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:"#FFF"},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},_i="0_userdata.0";function Cs(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function V1(t){const e=Je.getFileExtension(t);return!!(e?.toLowerCase().match(/[a-z]+/)&&e.length<5)}const Rt="Table",G1="Tile";function W8(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.named.startsWith(`${this.limitToPath}/`)||d===this.limitToPath||this.limitToPath?.startsWith(`${d}/`)))}catch{n=[]}let o;this.props.showViewTypeButton?o=this.localStorage.getItem("files.viewType")||Rt:o=Rt;let i=this.props.selected||this.localStorage.getItem("files.selected")||_i,l;if(e.restrictToFolder){i=e.restrictToFolder,l=e.restrictToFolder;const d=e.restrictToFolder.split("/");n=[];let f="";for(let g=0;g{if(this.state.viewType===Rt&&!this.findItem(this.state.selected)){const r=this.state.selected.split("/");for(;r.length&&!this.findItem(r.join("/"));)r.pop();let n;r.length?n=r.join("/"):n=_i,this.setState({selected:n,path:n,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){this.mounted&&document.getElementById(this.state.selected)?.scrollIntoView()}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`)),this.browseList=[],this.browseListRunning=!1,this.supportSubscribes=await this.props.socket.checkFeatureSupported("BINARY_STATE_EVENT"),this.supportSubscribes&&await this.props.socket.subscribeFiles("*","*",this.onFileChange)}componentWillUnmount(){this.supportSubscribes&&this.props.socket.unsubscribeFiles("*","*",this.onFileChange),this.mounted=!1,this.browseList=null,this.browseListRunning=!1,Object.values(this._tempTimeout).forEach(e=>{e&&clearTimeout(e)}),this._tempTimeout={}}browseFoldersCb(e,r,n){if(!e?.length)n(r);else{const o=e.shift();o?this.browseFolder(o,r).catch(i=>console.error(`Cannot read folder ${o}: ${i.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(e,r,n),0)}):setTimeout(()=>this.browseFoldersCb(e,r,n),0)}}browseFolders(e,r){let n;return r?n=r:(n={},Object.keys(this.state.folders).forEach(o=>n[o]=this.state.folders[o])),e?.length?new Promise(o=>{this.browseFoldersCb(e,n,o)}):Promise.resolve(n)}readDirSerial(e,r){return new Promise((n,o)=>{this.browseList&&(this.browseList.push({resolve:n,reject:o,adapter:e,relPath:r}),this.browseListRunning||this.processBrowseList())})}processBrowseList(e=0){!this.browseListRunning&&this.browseList&&this.browseList.length&&(this.browseListRunning=!0,this.browseList.length>10?this.browseList.length%10||this.setState({queueLength:this.browseList.length}):this.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath||"").then(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.resolve;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.reject;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(e,r,n,o){let i;if(r?i=r:(i={},Object.keys(this.state.folders).forEach(u=>{i[u]=this.state.folders[u]})),i[e]&&!o)return n?Promise.resolve(i):new Promise((u,m)=>{Promise.all(i[e].filter(y=>y.folder).map(y=>this.browseFolder(y.id,i,!0).catch(()=>{}))).then(()=>u(i)).catch(y=>m(new Error(y)))});if(!e||e==="/"){try{let u=await this.props.socket.readMetaItems();const m=[];let y=null;if(this.state.restrictToFolder){const b=this.state.restrictToFolder.split("/")[0];u=u.filter(E=>E._id===b)}else this.state.expertMode||(u=u.filter(b=>!b._id.endsWith(".admin")));const w=u.findIndex(b=>b._id==="system.meta.uuid");if(w!==-1&&u.splice(w,1),u.forEach(b=>{if(this.limitToObjectID&&this.limitToObjectID!==b._id)return;const E={id:b._id,name:b._id,title:b.common&&b.common.name||b._id,meta:!0,from:b.from,ts:b.ts,color:b.common&&b.common.color,icon:b.common&&b.common.icon,folder:!0,acl:b.acl,level:0};E.id===_i?y=E:m.push(E)}),m.sort((b,E)=>b.id>E.id?1:b.idb.folder).map(b=>this.browseFolder(b.id,i,!0).catch(()=>{}))).then(()=>i)}catch(u){const m=u;this.initialReadFinished&&window.alert(`Cannot read meta items: ${m.message}`),i[e||"/"]=[]}return i}const l=e.split("/"),c=l.length,d=l.shift(),f=l.join("/");let g;try{g=await this.readDirSerial(d||"",f)}catch(u){if(u==="Not exists"&&d==="0_userdata.0")g=[];else throw u}try{const u=[];if(g.forEach(m=>{const y={id:`${e}/${m.file}`,ext:Je.getFileExtension(m.file),folder:m.isDir,name:m.file,size:m.stats?.size,modified:m.modifiedAt,acl:m.acl,level:c};this.state.restrictToFolder?(y.folder&&(y.id.startsWith(`${this.state.restrictToFolder}/`)||y.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${y.id}/`))||y.id.startsWith(`${this.state.restrictToFolder}/`))&&u.push(y):this.limitToPath?(y.folder&&(y.id.startsWith(`${this.limitToPath}/`)||y.id===this.limitToPath||this.limitToPath.startsWith(`${y.id}/`))||y.id.startsWith(`${this.limitToPath}/`))&&u.push(y):u.push(y)}),u.sort(W8),i[e]=u,!n)return Promise.all(u.filter(m=>m.folder).map(m=>this.browseFolder(m.id,i,!0))).then(()=>i)}catch(u){const m=u;this.initialReadFinished&&window.alert(`Cannot read ${d}${f?`/${f}`:""}: ${m?.message}`),i[e]=[]}return i}toggleFolder(e,r){r?.stopPropagation();const n=[...this.state.expanded],o=n.indexOf(e.id);o===-1?(n.push(e.id),n.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(n)),e.temp?this.setState({expanded:n}):this.browseFolder(e.id).then(i=>this.setState({expanded:n,folders:i})).catch(i=>window.alert(i===q8?this.props.t('ra_Cannot find "%s"',e.id):this.props.t('ra_Cannot read "%s"',e.id)))):(n.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(n)),this.setState({expanded:n}))}onFileChange=(e,r,n)=>{const o=`${e}/${r}`,i=o.lastIndexOf("/"),l=o.substring(0,i);console.log(`File changed ${o}[${n}]`),this.state.folders[l]&&(this._tempTimeout[l]&&clearTimeout(this._tempTimeout[l]),this._tempTimeout[l]=setTimeout(()=>{delete this._tempTimeout[l],this.browseFolder(l,null,!1,!0).then(c=>this.setState({folders:c})).catch(c=>console.error(`Cannot read folder: ${c.message}`))},300))};changeFolder(e,r){e?.stopPropagation(),this.lastSelect=Date.now();let n=r||Cs(this.state.currentDir);if(n==="/"&&(n=""),this.state.viewType==="Tile"&&this.refFileDiv.current?.scrollTop&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem("files.currentDir",n),r&&e&&(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)){this.setState({selected:n});return}if(n&&!this.state.folders[n]){this.browseFolder(n).then(o=>this.setState({folders:o,path:n,currentDir:n,selected:n,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(o=>console.error(`Cannot read folder: ${o.message}`));return}this.setState({currentDir:n,selected:n,path:n,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(""),this.state.viewType==="Tile"&&this.scrollPositions[this.state.currentDir]){const o=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=o)}})}select(e,r,n){r&&r.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",e),this.setState({selected:e,path:e,pathFocus:!1},()=>{if(this.props.onSelect){const o=Je.getFileExtension(e);(!this.props.filterFiles||o&&this.props.filterFiles.includes(o))&&(!this.state.filterByType||o&&Br[this.state.filterByType].includes(o))?this.props.onSelect(e,!1,!!this.state.folders[e]):this.props.onSelect("")}n&&n()})}getText(e){if(e)return typeof e=="object"?e[this.props.lang]||e.en||void 0:e}renderFolder(e,r){if(this.state.filterEmpty&&!this.state.folders[e.id]?.length&&e.id!==_i&&!e.temp)return null;const n=r?bG:Gv,o=this.state.viewType===Rt?e.level*this.levelPadding:0,i=e.name===_i,l=i||e.name==="vis.0"||e.name==="vis-2.0",c=Je.getStyle(this.props.theme,Te[`itemFolderIcon${this.state.viewType}`],l&&Te.specialFolder);return v.createElement(ht,{component:"div",key:e.id,id:e.id,style:this.state.viewType===Rt?{marginLeft:o,width:`calc(100% - ${o}px)`}:void 0,onClick:d=>this.state.viewType===Rt?this.select(e.id,d):this.changeFolder(d,e.id),onDoubleClick:d=>this.state.viewType===Rt&&this.toggleFolder(e,d),title:this.getText(e.title),className:"browserItem",sx:Je.getStyle(this.props.theme,Te[`item${this.state.viewType}`],Te[`itemFolder${this.state.viewType}`],this.state.selected===e.id?Te.itemSelected:{},e.temp?Te.itemFolderTemp:{})},v.createElement(n,{style:c,onClick:this.state.viewType===Rt?d=>this.toggleFolder(e,d):void 0}),v.createElement(ht,{component:"div",sx:Je.getStyle(this.props.theme,Te[`itemName${this.state.viewType}`],Te[`itemNameFolder${this.state.viewType}`])},i?this.props.t("ra_User files"):e.name),v.createElement(ht,{component:"div",style:Te[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Rt&&this.state.folders[e.id]?this.state.folders[e.id].length:""),v.createElement(ht,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Rt&&this.props.expertMode?this.formatAcl(e.acl):null),this.state.viewType===Rt&&this.props.expertMode?v.createElement(ht,{component:"div",sx:{...Te.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===Rt&&this.props.allowDownload?v.createElement("div",{style:Te[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===Rt&&this.props.allowDelete&&this.state.folders[e.id]&&this.state.folders[e.id].length?v.createElement(hr,{"aria-label":"delete",onClick:d=>{d.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:Te[`itemDeleteButton${this.state.viewType}`],size:"large"},v.createElement(id,{fontSize:"small"})):this.state.viewType===Rt&&this.props.allowDelete?v.createElement(ht,{component:"div",sx:Te[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return v.createElement(ht,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:e=>this.changeFolder(e),title:this.props.t("ra_Back to %s",Cs(this.state.currentDir)),className:"browserItem",sx:Je.getStyle(this.props.theme,Te[`item${this.state.viewType}`],Te[`itemFolder${this.state.viewType}`])},v.createElement(Gv,{style:Je.getStyle(this.props.theme,Te[`itemFolderIcon${this.state.viewType}`])}),v.createElement(mB,{sx:Te.itemFolderIconBack}),v.createElement(ht,{component:"div",sx:Je.getStyle(this.props.theme,Te[`itemName${this.state.viewType}`],Te[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(e){return v.createElement("div",{style:Te[`itemSize${this.state.viewType}`]},e||e===0?Je.formatBytes(e):"")}formatAcl(e){const r=e?e.permissions||e.file:0;let n;return r?n=r.toString(16).padStart(3,"0"):n="",v.createElement("div",{style:Te[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?v.createElement(hr,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:Te[`itemAclButton${this.state.viewType}`]},n||"---"):n||"---")}getFileIcon(e){switch(e){case"json":case"json5":return v.createElement(vB,{style:Te[`itemIcon${this.state.viewType}`]});case"css":return v.createElement(yB,{style:Te[`itemIcon${this.state.viewType}`]});case"js":case"ts":return v.createElement(Uy,{style:Te[`itemIcon${this.state.viewType}`]});case"html":case"md":return v.createElement(rT,{style:Te[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return v.createElement($B,{style:Te[`itemIcon${this.state.viewType}`]});default:return v.createElement(nT,{style:Te[`itemIcon${this.state.viewType}`]})}}static getEditFile(e){switch(e){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":case"csv":return!0;default:return!1}}setStateBackgroundImage=()=>{const e=["light","dark","colored","delete"];this.setState(({backgroundImage:r})=>r&&e.indexOf(r)!==-1&&e.length-1!==e.indexOf(r)?(this.localStorage.setItem("files.backgroundImage",e[e.indexOf(r)+1]),{backgroundImage:e[e.indexOf(r)+1]}):(this.localStorage.setItem("files.backgroundImage",e[0]),{backgroundImage:e[0]}))};getStyleBackgroundImage=()=>{switch(this.state.backgroundImage){case"light":return Te.backgroundImageLight;case"dark":return Te.backgroundImageDark;case"colored":return Te.backgroundImageColored;case"delete":return null;default:return null}};renderFile(e){const r=this.state.viewType===Rt?e.level*this.levelPadding:0,n=Je.getFileExtension(e.name);return v.createElement(ht,{component:"div",key:e.id,id:e.id,onDoubleClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Br[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},onClick:o=>this.select(e.id,o),style:this.state.viewType===Rt?{marginLeft:r,width:`calc(100% - ${r}px)`}:void 0,className:"browserItem",sx:Je.getStyle(this.props.theme,Te[`item${this.state.viewType}`],Te[`itemFile${this.state.viewType}`],this.state.selected===e.id?Te.itemSelected:void 0)},n&&Br.images.includes(n)?this.state.fileErrors.includes(e.id)?v.createElement($2,{style:{...Te[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...Te[`itemNoImage${this.state.viewType}`]}}):v.createElement(Tf,{onError:o=>{o.target.onerror=null;const i=[...this.state.fileErrors];i.includes(e.id)||(i.push(e.id),this.setState({fileErrors:i}))},style:{...Te[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+e.id,alt:e.name}):this.getFileIcon(n),v.createElement(ht,{component:"div",sx:Te[`itemName${this.state.viewType}`]},e.name),v.createElement(ht,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(e.size)),v.createElement(ht,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Rt&&this.props.expertMode?this.formatAcl(e.acl):null),v.createElement(ht,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Rt&&this.props.expertMode&&L2.getEditFile(n)?v.createElement(hr,{"aria-label":"edit",onClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Br[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},sx:Te.itemDeleteButtonTable,size:"large"},v.createElement(TB,{fontSize:"small"})):v.createElement(ht,{component:"div",sx:Te[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===Rt&&this.props.allowDownload?v.createElement(ht,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:Te.itemDownloadButtonTable,tabIndex:0,download:e.id,href:this.imagePrefix+e.id,onClick:o=>o.stopPropagation()},v.createElement(zB,null)):null,this.state.viewType===Rt&&this.props.allowDelete&&e.id!=="vis.0/"&&e.id!=="vis-2.0/"&&e.id!==_i?v.createElement(hr,{"aria-label":"delete",onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:Te[`itemDeleteButton${this.state.viewType}`],size:"large"},v.createElement(id,{fontSize:"small"})):this.state.viewType===Rt&&this.props.allowDelete?v.createElement(ht,{component:"div",sx:Te[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(e){if(this.state.folders?.[e]){if(this.state.viewType===G1){const n=[];return e&&e!=="/"&&n.push(this.renderBackFolder()),this.state.folders[e].forEach(o=>{o.folder?n.push(this.renderFolder(o)):(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&Br[this.state.filterByType].includes(o.ext))&&n.push(this.renderFile(o))}),n}const r=[];return this.state.folders[e].forEach(n=>{if(n.folder){const o=this.state.expanded.includes(n.id),i=this.renderFolder(n,o);if(Array.isArray(i)?i.forEach(l=>r.push(l)):r.push(i),this.state.folders[n.id]&&o){const l=this.renderItems(n.id);Array.isArray(l)?l.forEach(c=>r.push(c)):r.push(l)}}else(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Br[this.state.filterByType].includes(n.ext))&&r.push(this.renderFile(n))}),r}return v.createElement("div",{style:{position:"relative"}},v.createElement(Oy,{key:e,color:"secondary",size:24}),v.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const e=this.props.showTypeSelector?Wp[this.state.filterByType||"all"]||Wp.all:null,r=this.findFirstFolder(this.state.selected);return v.createElement(qy,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?v.createElement(hr,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...Te.menuButton,...this.state.restrictToFolder?Te.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},v.createElement(_B,{fontSize:"small"})):null,this.props.showExpertButton?v.createElement(hr,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...Te.menuButton,...this.state.expertMode?Te.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},v.createElement(yG,null)):null,this.props.showViewTypeButton?v.createElement(hr,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:Te.menuButton,"aria-label":"view mode",onClick:()=>{const n=this.state.viewType===Rt?G1:Rt;this.localStorage.setItem("files.viewType",n);let o=this.state.selected;V1(o)&&(o=Cs(o)),this.setState({viewType:n,currentDir:o},()=>{this.state.viewType===Rt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==Rt?v.createElement(DB,{fontSize:"small"}):v.createElement(VB,{fontSize:"small"})):null,v.createElement(hr,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:Te.menuButton,color:this.state.filterEmpty?"secondary":"inherit","aria-label":"filter empty",onClick:()=>{this.localStorage.setItem("file.empty",this.state.filterEmpty?"false":"true"),this.setState({filterEmpty:!this.state.filterEmpty})},size:"small"},v.createElement(kB,{fontSize:"small"})),v.createElement(hr,{edge:"start",title:this.props.t("ra_Reload files"),style:Te.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},v.createElement(BB,{fontSize:"small"})),this.props.allowCreateFolder?v.createElement(hr,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:Te.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},v.createElement(CB,{fontSize:"small"})):null,this.props.allowUpload?v.createElement(hr,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:Te.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},v.createElement(h5,{fontSize:"small"})):null,this.props.showTypeSelector&&e?v.createElement(od,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:Te.tooltip}}},v.createElement(hr,{size:"small",onClick:n=>this.setState({showTypesMenu:n.target})},v.createElement(e,{fontSize:"small"}))):null,this.state.showTypesMenu?v.createElement(JC,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(Wp).map(n=>{const o=Wp[n];return v.createElement(mr,{key:n,selected:this.state.filterByType===n,onClick:()=>{n==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",n),this.setState({filterByType:n,showTypesMenu:null}))}},v.createElement(A$,null,v.createElement(o,{fontSize:"small"})),v.createElement($$,null,this.props.t(`ra_fileType_${n}`)))})):null,v.createElement(od,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:Te.tooltip}}},v.createElement(hr,{color:"inherit",edge:"start",style:Te.menuButton,onClick:this.setStateBackgroundImage,size:"small"},v.createElement(Wy,{fontSize:"small"}))),this.state.viewType!==Rt&&this.props.allowDelete?v.createElement(od,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:Te.tooltip}}},v.createElement("span",null,v.createElement(hr,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===_i,color:"inherit",edge:"start",style:Te.menuButton,onClick:n=>{n.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},v.createElement(id,{fontSize:"small"})))):null)}findItem(e,r){if(r=r||this.state.folders,!r)return null;const n=e.split("/");n.pop();const o=n.join("/")||"/";return r[o]&&r[o].find(i=>i.id===e)||null}renderInputDialog(){if(this.state.addFolder){const e=this.findFirstFolder(this.state.selected);return e?v.createElement(vG,{key:"inputDialog",applyText:this.props.t("ra_Create"),cancelText:this.props.t("ra_Cancel"),titleText:this.props.t("ra_Create new folder in %s",this.state.selected),promptText:this.props.t("ra_If no file will be created in the folder, it will disappear after the browser closed"),labelText:this.props.t("ra_Folder name"),verify:r=>this.state.folders[e].find(n=>n.name===r)?"":this.props.t("ra_Duplicate name"),onClose:r=>{if(r){const n={};Object.keys(this.state.folders).forEach(c=>n[c]=this.state.folders[c]);const o=this.findItem(e),i=`${e}/${r}`;n[e].push({id:i,level:(o?.level||0)+1,name:r,folder:!0,temp:!0}),n[e].sort(W8),n[i]=[];const l=[...this.state.expanded];l.includes(e)||(l.push(e),l.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(l)),this.setState({addFolder:!1,folders:n,expanded:l},()=>this.select(i))}else this.setState({addFolder:!1})},replace:r=>r.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const e=window.document.getElementsByClassName("browserItem");for(let r=0;rthis.setState({uploadFile:!1})},v.createElement(Ta,null)),v.createElement(Cf,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:e=>{let r=e.length;e.forEach(n=>{const o=new FileReader;o.onabort=()=>console.log("file reading was aborted"),o.onerror=()=>console.log("file reading has failed"),o.onload=()=>{const i=this.findFirstFolder(this.state.selected);if(!i)window.alert(this.props.t("ra_Invalid parent folder!"));else{const l=`${i}/${n.name}`;this.uploadFile(l,o.result).then(()=>{--r||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const c=[...this.state.expanded];c.includes(i)||(c.push(i),c.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(c))),this.setState({expanded:c},()=>this.select(l))}else setTimeout(()=>this.browseFolder(i,null,!1,!0).then(c=>{const d=[...this.state.expanded];d.includes(i)||(d.push(i),d.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(d))),this.setState({folders:c,expanded:d},()=>this.select(l))}),500)})})}},o.readAsArrayBuffer(n)})}},({getRootProps:e,getInputProps:r})=>v.createElement("div",{style:{...Te.uploadDiv,...this.state.uploadFile==="dragging"?Te.uploadDivDragging:void 0},...e()},v.createElement("input",{...r()}),v.createElement(ht,{component:"div",sx:Te.uploadCenterDiv},v.createElement("div",{style:Te.uploadCenterTextAndIcon},v.createElement(h5,{style:Te.uploadCenterIcon}),v.createElement("div",{style:Te.uploadCenterText},this.state.uploadFile==="dragging"?this.props.t("ra_Drop file here"):this.props.t("ra_Place your files here or click here to open the browse dialog"))))))]:null}deleteRecursive(e){const r=this.findItem(e);if(r?.folder)return(this.state.folders[e]?Promise.all(this.state.folders[e].map(i=>this.deleteRecursive(i.id))):Promise.resolve()).then(()=>{if(r.level>=1){const i=e.split("/"),l=i.shift();this.props.socket.deleteFolder(l||"",i.join("/")).then(()=>{const c=JSON.parse(JSON.stringify(this.state.folders));delete c[r.id];const d=Cs(r.id),f=c[d];if(f){const g=f.findIndex(u=>u.id===r.id);g!==-1&&f.splice(g,1),this.select(d,null,()=>this.setState({folders:c}))}})}});const n=e.split("/"),o=n.shift();return n.length?this.props.socket.deleteFile(o||"",n.join("/")).catch(i=>window.alert(`Cannot delete file: ${i}`)):Promise.resolve()}deleteItem(e){e=e||this.state.deleteItem,this.state.suppressDeleteConfirm&&(this.suppressDeleteConfirm=Date.now()+6e4*5),this.setState({deleteItem:"",suppressDeleteConfirm:!1},()=>this.deleteRecursive(e).then(()=>{const r={},n=this.state.expanded.indexOf(e);if(n!==-1){const o=[...this.state.expanded];o.splice(n,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.expanded=o}if(this.state.selected===e){const o=this.state.selected.split("/");o.pop(),r.selected=o.join("/")}if(this.supportSubscribes)this.setState(r);else{const o=this.findFirstFolder(e),i={};Object.keys(this.state.folders).forEach(l=>{l!==o&&!l.startsWith(`${o}/`)&&(i[l]=this.state.folders[l])}),r.folders=i,this.setState(r,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],i).then(l=>this.setState({folders:l})).catch(l=>console.error(l))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?v.createElement(ei,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},v.createElement(ni,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),v.createElement(ri,null,v.createElement(sf,null,this.props.t("ra_Are you sure?")),v.createElement(dt,{control:v.createElement(Wr,{checked:this.state.suppressDeleteConfirm,onChange:()=>{this.setState({suppressDeleteConfirm:!this.state.suppressDeleteConfirm})}}),label:this.props.t("ra_no confirm for 5 mins")})),v.createElement(ti,null,v.createElement(Yt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),v.createElement(Yt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const e=this.props.FileViewer||qG;return this.state.viewer?v.createElement(e,{supportSubscribes:this.supportSubscribes||void 0,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile||void 0,themeType:this.props.themeType||"light",setStateBackgroundImage:this.setStateBackgroundImage,getStyleBackgroundImage:this.getStyleBackgroundImage,t:this.props.t,socket:this.props.socket,onClose:()=>this.setState({viewer:"",formatEditFile:""})}):null}renderError(){return this.state.errorText?v.createElement(aF,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(e){this.cacheFolders||=JSON.parse(JSON.stringify(this.state.folders));let r;e.forEach(n=>{const o=this.findItem(n.id,this.cacheFolders);o&&JSON.stringify(o.acl)!==JSON.stringify(n.acl)&&(o.acl=n.acl,r=!0)}),r&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const n=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:n})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let e=this.state.path;V1(this.state.path)&&(e=Cs(this.state.path)),new Promise(r=>{this.state.folders[e]?r(!0):this.browseFolder(e).then(n=>this.setState({folders:n},()=>r(!0))).catch(n=>this.setState({errorText:n===q8?this.props.t('ra_Cannot find "%s"',e):this.props.t('ra_Cannot read "%s"',e)}))}).then(r=>r&&this.setState({selected:this.state.path,currentDir:e,pathFocus:!1})).catch(r=>console.error(r))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const e=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),r=[];return v.createElement(rD,{style:{paddingLeft:8,color:"#FFF"}},e.map((n,o)=>{n&&r.push(n);const i=r.join("/");return othis.changeFolder(l,i||"/")},n||this.props.t("ra_Root")):v.createElement("div",{style:Te.pathDivBreadcrumbSelected,key:`${this.state.selected}_${o}`,onClick:()=>this.setState({pathFocus:!0})},n)}))}renderPath(){return v.createElement(ht,{component:"div",key:"path",sx:Te.pathDiv},this.state.pathFocus?v.createElement(bo,{value:this.state.path,onKeyDown:e=>{e.key==="Enter"?this.changeToPath():e.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:v.createElement(hr,{size:"small",onClick:()=>this.changeToPath()},v.createElement(AB,null)),onBlur:()=>this.changeToPath(),onChange:e=>this.setState({path:e.target.value}),style:Te.pathDivInput}):this.renderBreadcrumb())}render(){return this.props.ready?(this.state.loadAllFolders&&!this.foldersLoading&&(this.foldersLoading=!0,setTimeout(()=>{this.setState({loadAllFolders:!1,folders:{}},()=>{this.foldersLoading=!1,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`))})},300)),v.createElement("div",{style:{...Te.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===G1?this.renderPath():null,v.createElement("div",{style:{...Te.filesDiv,...Te[`filesDiv${this.state.viewType}`]},onClick:e=>{this.state.viewType!==Rt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(e,this.state.currentDir||"/"):e.stopPropagation())},id:"dev",ref:this.refFileDiv},this.state.viewType===Rt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==Rt?v.createElement("div",{style:Te.filesDivHint},this.props.t("ra_select_folder_hint")):null),this.props.allowUpload?this.renderInputDialog():null,this.props.allowUpload?this.renderUpload():null,this.props.allowDelete?this.renderDeleteDialog():null,this.props.allowView?this.renderViewDialog():null,this.state.modalEditOfAccess&&this.props.modalEditOfAccessControl?this.props.modalEditOfAccessControl(this):null,this.renderError())):v.createElement(y$,null)}}const WG=N2()(L2);function UG(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r?.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function XG(t){const e={};if(!t)return e;for(let r,n=0;ni[1].toUpperCase()),e[r]=t[n].value}return e}class ad extends A.Component{svg;static REMOTE_SERVER=window.location.hostname.includes("iobroker.in");static REMOTE_PREFIX=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);constructor(e){super(e),this.state={svg:!!this.props.src?.startsWith("data:"),created:!0,color:this.props.color||"",src:this.props.src||"",imgError:!1,showError:!!this.props.showError},this.svg=this.state.svg&&this.state.src?this.getSvgFromData(this.state.src):null}static getDerivedStateFromProps(e,r){const n={};let o=!1;return e&&r&&e.src!==r.src&&(n.src=e.src,n.svg=e.src?.startsWith("data:"),n.created=!1,o=!0),e&&r&&e.color!==r.color&&(n.color=e.color,n.created=!1,o=!0),e&&r&&e.showError!==r.showError&&(n.showError=e.showError,o=!0),o?n:null}getSvgFromData(e){const r="data:image/svg+xml;base64,";if(!e.startsWith(r))return null;e=e.substring(r.length);try{e=atob(e);const n=UG(e),o=n.innerHTML,i=XG(n.attributes);return n.remove(),v.createElement(ht,{component:"svg",sx:this.props.sx,className:this.props.className,style:this.state.color?{color:this.state.color}:void 0,...i,dangerouslySetInnerHTML:{__html:o}})}catch{}return null}render(){if(this.state.svg)return this.state.created||setTimeout(()=>{this.svg=this.state.src?this.getSvgFromData(this.state.src):null,this.setState({created:!0})},50),this.svg;if(this.state.src){if(this.state.imgError||!this.state.src)return v.createElement($2,{className:this.props.className});if(ad.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let e=(this.props.imagePrefix||"")+this.state.src;return e.startsWith("./")?e=ad.REMOTE_PREFIX+e.substring(2):e.startsWith("/")||(e=ad.REMOTE_PREFIX+e),v.createElement(ht,{component:"img",sx:this.props.sx,className:this.props.className,src:`https://remote-files.iobroker.in${e}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return v.createElement(ht,{component:"img",sx:this.props.sx,className:this.props.className,src:(this.props.imagePrefix||"")+this.state.src,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return null}}var K1={},mc={},ua={},U8;function B2(){if(U8)return ua;U8=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.StateType=ua.Types=void 0;var t;(function(r){r.unknown="unknown",r.airCondition="airCondition",r.blind="blind",r.blindButtons="blindButtons",r.button="button",r.buttonSensor="buttonSensor",r.camera="camera",r.chart="chart",r.cie="cie",r.ct="ct",r.dimmer="dimmer",r.door="door",r.fireAlarm="fireAlarm",r.floodAlarm="floodAlarm",r.gate="gate",r.hue="hue",r.humidity="humidity",r.illuminance="illuminance",r.image="image",r.info="info",r.instance="instance",r.light="light",r.location="location",r.locationOne="locationOne",r.lock="lock",r.media="media",r.motion="motion",r.percentage="percentage",r.rgb="rgb",r.rgbSingle="rgbSingle",r.rgbwSingle="rgbwSingle",r.slider="slider",r.socket="socket",r.temperature="temperature",r.thermostat="thermostat",r.vacuumCleaner="vacuumCleaner",r.volume="volume",r.volumeGroup="volumeGroup",r.warning="warning",r.weatherCurrent="weatherCurrent",r.weatherForecast="weatherForecast",r.window="window",r.windowTilt="windowTilt"})(t||(ua.Types=t={}));var e;return(function(r){r.Number="number",r.String="string",r.Boolean="boolean"})(e||(ua.StateType=e={})),ua}var Nr={},X8;function F2(){if(X8)return Nr;X8=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.checkEnum=t,Nr.roleOrEnum=e,Nr.roleOrEnumLight=o,Nr.roleOrEnumBlind=c,Nr.roleOrEnumGate=g,Nr.roleOrEnumWindow=m,Nr.roleOrEnumDoor=b,Nr.getEnums=E,Nr.getAllStatesInChannel=k,Nr.getAllStatesInDevice=P,Nr.getObjectsBelowId=_,Nr.getFunctionEnums=R,Nr.getParentId=M;function t(T,O){let N=!1;return T&&T.forEach($=>{const C=$.lastIndexOf(".");C!==-1&&($=$.substring(C+1));for(const L in O)if(Object.prototype.hasOwnProperty.call(O,L)&&O[L].find(H=>H.test($)))return N=!0,!1}),N}function e(T,O,N,$){return T.common.role&&N?.includes(T.common.role)?!0:t(O,$)}const r={en:[/lights?/i,/lamps?/i,/ceilings?/i],de:[/licht(er)?/i,/lampen?/i,/beleuchtung(en)?/i],ru:[/свет/i,/ламп[аы]/i,/торшеры?/,/подсветк[аи]/i,/лампочк[аи]/i,/светильники?/i]},n=["switch.light","dimmer","value.dimmer","level.dimmer","sensor.light","state.light"];function o(T,O){return e(T,O,n,r)}const i={en:[/blinds?/i,/windows?/i,/shutters?/i],de:[/rollladen?/i,/fenstern?/i,/beschattung(en)?/i,/jalousien?/i],ru:[/ставни/i,/рольставни/i,/окна|окно/,/жалюзи/i]},l=["blind","level.blind","value.blind","action.stop","button.stop","button.stop.blind","button.open.blind","button.close.blind","level.tilt","value.tilt","button.tilt.open","button.tilt.close","button.tilt.stop"];function c(T,O){return e(T,O,l,i)}const d={en:[/gates?/i],de:[/^toren$/i,/^tor$/i],ru:[/ворота/i]},f=["gate","value.gate","switch.gate","action.stop","button.stop"];function g(T,O){return e(T,O,f,d)}const u=["window","state.window","sensor.window","value.window"];function m(T,O){return e(T,O,u,i)}const y={en:[/doors?/i,/gates?/i,/wickets?/i,/entry|entries/i],de:[/^türe?/i,/^tuere?/i,/^tore?$/i,/einfahrt(en)?/i,/pforten?/i],ru:[/двери|дверь/i,/ворота/i,/калитка|калитки/,/въезды?/i,/входы?/i]},w=["door","state.door","sensor.door"];function b(T,O){return e(T,O,w,y)}function E(){return{door:{roles:w,words:y},window:{roles:u,words:i},blind:{roles:l,words:i},gate:{roles:f,words:d},light:{roles:n,words:r}}}function k(T,O){const N=[],$=new RegExp(`^${O.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+$`);return T.forEach(C=>$.test(C)&&N.push(C)),N}function P(T,O){const N=[],$=new RegExp(`^${O.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+\\.[^.]+$`);return T.forEach(C=>$.test(C)&&N.push(C)),N}function _(T,O){const N=[];O+=".";let $=0,C=T.length-1,L=-1;for(;$<=C;){const H=Math.floor(($+C)/2);T[H]=T.length)return N;for(let H=L;H{i[g].common.members.includes(l)&&f.push(g)}),!f.length&&((d=i[l])===null||d===void 0?void 0:d.type)==="state"){const g=(0,e.getParentId)(l);i[g]&&(i[g].type==="channel"||i[g].type==="device")&&this.enums.forEach(u=>{i[u].common.members.includes(g)&&f.push(u)})}return f.length?f:null}static copyState(i,l){const c=l||JSON.parse(JSON.stringify(i));return c.original=i.original||i,"enums"in i&&i.enums&&(c.enums=i.enums),"role"in i&&i.role&&(c.role=i.role),"channelRole"in i&&i.channelRole&&(c.channelRole=i.channelRole),c}_testOneState(i){var l,c,d,f,g,u;const m=i.objects,y=i.pattern,w=i.state,b=i.channelStates,E=i.usedIds,k=i.usedInCurrentDevice,P=i.ignoreIndicators,_=i.ignoreEnums,R=i.sortedKeys;let M=i.result,T=!1;for(const O of b)if(!(w.name==="COVER"&&M?.states.find(N=>N.id&&N.name==="COVER"))){if(w.indicator&&P){const $=O.split(".").pop()||"";if($&&P.includes($))continue}if(!w.indicator){if(k.includes(O))continue;if(!w.notSingle){if(!i.detectAllPossibleDevices){if(E.includes(O))continue}}}if(this._applyPattern(m,O,w,_,R)){if(M||(M=JSON.parse(JSON.stringify(r.patterns[y])),i.result=M,M?.states.forEach((N,$)=>Jn.copyState(r.patterns[y].states[$],N))),M.states.find(({id:N})=>N===O))T=!0;else for(const N of M.states)if(N.name===w.name){if(N.id){let $;i.favorId&&(O===i.favorId?$=!0:N.id===i.favorId&&($=!1));const C=(d=(c=(l=m[N.id])===null||l===void 0?void 0:l.common)===null||c===void 0?void 0:c.role)!==null&&d!==void 0?d:"",L=(u=(g=(f=m[O])===null||f===void 0?void 0:f.common)===null||g===void 0?void 0:g.role)!==null&&u!==void 0?u:"",H=N.defaultRole;if(H&&$===void 0&&(L===H?$=!0:C===H&&($=!1)),$===void 0){const W=L.split("."),X=W.length,U=C.split("."),K=U.length;L===""||W[0]==="state"&&U[0]!=="state"?$=!1:W[0]!=="state"&&U[0]==="state"||X>K?$=!0:X1)){for(const N of b)if(N!==O&&(w.indicator||!k.includes(N)&&(w.notSingle||!E.includes(N)))&&this._applyPattern(m,N,w,_,R))if(w.indicator||k.push(N),Array.isArray(w)){const $=Jn.copyState(w[0]);$.id=N,M.states.push($)}else{const $=Jn.copyState(w);$.id=N,M.states.push($)}}}}return T}static findParentChannelOrDevice(i,l,c){if(!i[l])return;const d=l.split("."),f=l;if(i[l].type==="state"&&(d.pop(),l=d.join(".")),d.length<=2)return l;const g=i[l];if(g?.type==="device"||c&&g?.type==="channel")return l;if(c)return;d.pop();const u=d.join("."),m=i[u];if(!m)return g?l:f;if(m.type==="device"||d.length<=2)return u;if(g?.type==="channel")return l;d.pop();const y=d.join("."),w=i[y];return!w||w.type!=="device"&&w.type!=="channel"?u:y}static getChannelOrDeviceStates(i,l,c,d=!1,f=!1){var g;const u=(g=i[l])===null||g===void 0?void 0:g.type;switch(u){case void 0:return[...(0,e.getObjectsBelowId)(c,l)];case"state":case"channel":case"device":case"folder":if(d&&u!=="device"){const m=Jn.findParentChannelOrDevice(i,l);return m&&m!==l?[...(0,e.getObjectsBelowId)(c,m)]:[l]}if(u!=="state")return[...(0,e.getObjectsBelowId)(c,l)];if(f){const m=Jn.findParentChannelOrDevice(i,l,!0);return m&&m!==l?[...(0,e.getObjectsBelowId)(c,m)]:[l]}return[l];default:return[l]}}static patternIsAllowed(i,l,c){if(!i)return!1;if(Array.isArray(i.type)){for(let d=0;d{const f=i.indexOf(c),g=i.indexOf(d);if(f===-1||g===-1)return;const u=i.splice(f,1);i.splice(g,0,...u)}),i}_detectNext(i){var l,c,d,f;const{objects:g,id:u,_usedIdsOptional:m=[],ignoreIndicators:y,prioritizedTypes:w,detectParent:b,detectOnlyChannel:E,allowedTypes:k,excludedTypes:P,_keysOptional:_,detectAllPossibleDevices:R}=i;let{_patternList:M}=i;i._usedIdsOptional=m;const T=Jn.getChannelOrDeviceStates(g,u,_||[],b,E);if(!(!((l=g[u])===null||l===void 0)&&l.common)&&!T.length)return null;if((c=i._checkedPatterns)!==null&&c!==void 0||(i._checkedPatterns=[]),!M){const $=Object.keys(r.patterns).filter(C=>Jn.patternIsAllowed(r.patterns[C],k,P));M=w?this.sortTypes($,w):$,i._patternList=M}const O={objects:g,channelStates:T,usedIds:m,ignoreIndicators:y||[],pattern:"unknown",usedInCurrentDevice:[],state:{},ignoreEnums:!!i.ignoreEnums,sortedKeys:_,favorId:i.detectParent?void 0:u,detectAllPossibleDevices:R},N=(d=g[u])===null||d===void 0?void 0:d.type;for(const $ of M){if(i._checkedPatterns.includes($))continue;i._checkedPatterns.push($),delete O.result,O.pattern=$,O.usedInCurrentDevice=[];for(const L of r.patterns[$].states){let H=!1;if(O.state=L,this._testOneState(O)&&(H=!0),L.required&&!H){delete O.result;break}}if(!Jn.allRequiredStatesFound(O))continue;O.usedInCurrentDevice.forEach(L=>m.push(L));let C;if(N!=="device"){const L=(f=Jn.findParentChannelOrDevice(g,u))!==null&&f!==void 0?f:u;if(g[L]&&(g[L].type==="channel"||g[L].type==="device")){C=(0,e.getObjectsBelowId)(_,L);for(const H of C)O.result.states.forEach((W,X)=>{!W.id&&(W.indicator||W.searchInParent)&&!W.noDeviceDetection&&this._applyPattern(g,H,W.original,!!i.ignoreEnums,O.sortedKeys)&&O.result&&(O.result.states[X].id=H)})}}if(O.result.states.forEach(L=>Jn.cleanState(L,O.objects)),i.limitTypesToOneOf){for(const L of i.limitTypesToOneOf)if(L.includes($))for(const H of L)H===$||i._checkedPatterns.includes(H)||i._checkedPatterns.push(H)}return O.result}return null}detect(i){var l;const{objects:c,id:d,ignoreCache:f,detectAllPossibleDevices:g}=i;let{_keysOptional:u,_usedIdsOptional:m}=i;if(!f&&this.cache[d]){const{allowedTypes:b=[],excludedTypes:E=[]}=i;if(!b.length&&!E.length)return this.cache[d];const k=this.cache[d].filter(({type:P})=>b.includes(P)&&!E.includes(P));if(k.length)return k}u?i._keysOptionalSorted||u.sort():(u=Object.keys(c),u.sort(),i._keysOptional=u),m&&!i.detectParent&&(m=[],i._usedIdsOptional=m),i.ignoreEnums===void 0&&((l=i.allowedTypes)===null||l===void 0?void 0:l.length)===1&&(i.ignoreEnums=!0),g&&(i.excludedTypes||(i.excludedTypes=[]),i.excludedTypes.includes(t.Types.info)||i.excludedTypes.push(t.Types.info)),i._checkedPatterns=[];const y=[];let w;for(;w=this._detectNext(i);)y.push(w),i.detectAllPossibleDevices&&(i._usedIdsOptional=[]);return y.sort((b,E)=>{if(b.type===t.Types.info&&E.type!==t.Types.info)return 1;if(E.type===t.Types.info&&b.type!==t.Types.info)return-1;const k=b.states.find(M=>M.id===d&&M.required)?1:0,P=E.states.find(M=>M.id===d&&M.required)?1:0;if(k!==P)return P-k;if(!k){const M=b.states.find(O=>O.id===d)?1:0,T=E.states.find(O=>O.id===d)?1:0;if(M!==T)return T-M}const _=b.states.filter(M=>M.id).length;return E.states.filter(M=>M.id).length-_}),this.cache[d]=y.length?y:null,this.cache[d]}static getPatterns(){const i={};return Object.keys(r.patterns).forEach(l=>{const c=JSON.parse(JSON.stringify(r.patterns[l]));c.states.forEach((d,f)=>{const g=r.patterns[l].states[f];g.role&&(c.states[f].role=g.role.toString()),g.enums&&(c.states[f].enums=!0)}),i[l]=c}),i}};return mc.ChannelDetector=n,n.getEnums=e.getEnums,mc}var K8;function KG(){return K8||(K8=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.StateType=t.Types=t.roleOrEnumGate=t.roleOrEnumDoor=t.roleOrEnumWindow=t.roleOrEnumBlind=t.roleOrEnumLight=void 0;const e=GG();var r=F2();Object.defineProperty(t,"roleOrEnumLight",{enumerable:!0,get:function(){return r.roleOrEnumLight}}),Object.defineProperty(t,"roleOrEnumBlind",{enumerable:!0,get:function(){return r.roleOrEnumBlind}}),Object.defineProperty(t,"roleOrEnumWindow",{enumerable:!0,get:function(){return r.roleOrEnumWindow}}),Object.defineProperty(t,"roleOrEnumDoor",{enumerable:!0,get:function(){return r.roleOrEnumDoor}}),Object.defineProperty(t,"roleOrEnumGate",{enumerable:!0,get:function(){return r.roleOrEnumGate}}),t.default=e.ChannelDetector;var n=B2();Object.defineProperty(t,"Types",{enumerable:!0,get:function(){return n.Types}}),Object.defineProperty(t,"StateType",{enumerable:!0,get:function(){return n.StateType}})})(K1)),K1}var ot=KG(),y9={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Y8=v.createContext&&v.createContext(y9),YG=["attr","size","title"];function JG(t,e){if(t==null)return{};var r,n,o=QG(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;nv.createElement(e.tag,Ad({key:r},e.attr),b9(e.child)))}function rr(t){return e=>v.createElement(rK,Pd({attr:Ad({},t.attr)},e),b9(t.child))}function rK(t){var e=r=>{var{attr:n,size:o,title:i}=t,l=JG(t,YG),c=o||r.size||"1em",d;return r.className&&(d=r.className),t.className&&(d=(d?d+" ":"")+t.className),v.createElement("svg",Pd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,l,{className:d,style:Ad(Ad({color:t.color||r.color},r.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&v.createElement("title",null,i),t.children)};return Y8!==void 0?v.createElement(Y8.Consumer,null,r=>e(r)):e(y9)}function nK(t){return rr({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3l39.5 39.7z"},child:[]}]})(t)}function oK(t){return rr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M24 5.25v13a.75.75 0 0 1-1.136.643L16.5 15.075v2.175A1.75 1.75 0 0 1 14.75 19h-13A1.75 1.75 0 0 1 0 17.25v-11C0 5.284.784 4.5 1.75 4.5h13c.966 0 1.75.784 1.75 1.75v2.175l6.364-3.818A.75.75 0 0 1 24 5.25Zm-9 1a.25.25 0 0 0-.25-.25h-13a.25.25 0 0 0-.25.25v11c0 .138.112.25.25.25h13a.25.25 0 0 0 .25-.25v-11Zm1.5 7.075 6 3.6V6.575l-6 3.6Z"},child:[]}]})(t)}function iK(t){return rr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},child:[]}]})(t)}function aK(t){return rr({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(t)}function sK(t){return rr({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},child:[]}]})(t)}function lK(t){return rr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"},child:[]}]})(t)}function cK(t){return rr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"},child:[]}]})(t)}function Q8(t){return rr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"},child:[]}]})(t)}function uK(t){return rr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(t)}function pK(t){return rr({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(t)}function dK(t){return rr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(t)}function fK(t){return rr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"},child:[]}]})(t)}function hK(t){return rr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352.57 128c-28.09 0-54.09 4.52-77.06 12.86l12.41-123.11C289 7.31 279.81-1.18 269.33.13 189.63 10.13 128 77.64 128 159.43c0 28.09 4.52 54.09 12.86 77.06L17.75 224.08C7.31 223-1.18 232.19.13 242.67c10 79.7 77.51 141.33 159.3 141.33 28.09 0 54.09-4.52 77.06-12.86l-12.41 123.11c-1.05 10.43 8.11 18.93 18.59 17.62 79.7-10 141.33-77.51 141.33-159.3 0-28.09-4.52-54.09-12.86-77.06l123.11 12.41c10.44 1.05 18.93-8.11 17.62-18.59-10-79.7-77.51-141.33-159.3-141.33zM256 288a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"},child:[]}]})(t)}function mK(t){return rr({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"},child:[]}]})(t)}function Z8(t){return rr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 0 0 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10 10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z"},child:[]}]})(t)}function gK(t){return rr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(t)}function vK(t){return rr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(t)}function yK(t){return rr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"},child:[]}]})(t)}function eE(t){return rr({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M3.89,17.6c0-0.99,0.31-1.88,0.93-2.65s1.41-1.27,2.38-1.49c0.26-1.17,0.85-2.14,1.78-2.88c0.93-0.75,2-1.12,3.22-1.12 - c1.18,0,2.24,0.36,3.16,1.09c0.93,0.73,1.53,1.66,1.8,2.8h0.27c1.18,0,2.18,0.41,3.01,1.24s1.25,1.83,1.25,3 - c0,1.18-0.42,2.18-1.25,3.01s-1.83,1.25-3.01,1.25H8.16c-0.58,0-1.13-0.11-1.65-0.34S5.52,21,5.14,20.62 - c-0.38-0.38-0.68-0.84-0.91-1.36S3.89,18.17,3.89,17.6z M5.34,17.6c0,0.76,0.28,1.42,0.82,1.96s1.21,0.82,1.99,0.82h9.28 - c0.77,0,1.44-0.27,1.99-0.82c0.55-0.55,0.83-1.2,0.83-1.96c0-0.76-0.27-1.42-0.83-1.96c-0.55-0.54-1.21-0.82-1.99-0.82h-1.39 - c-0.1,0-0.15-0.05-0.15-0.15l-0.07-0.49c-0.1-0.94-0.5-1.73-1.19-2.35s-1.51-0.93-2.45-0.93c-0.94,0-1.76,0.31-2.46,0.94 - c-0.7,0.62-1.09,1.41-1.18,2.34l-0.07,0.42c0,0.1-0.05,0.15-0.16,0.15l-0.45,0.07c-0.72,0.06-1.32,0.36-1.81,0.89 - C5.59,16.24,5.34,16.87,5.34,17.6z M14.19,8.88c-0.1,0.09-0.08,0.16,0.07,0.21c0.43,0.19,0.79,0.37,1.08,0.55 - c0.11,0.03,0.19,0.02,0.22-0.03c0.61-0.57,1.31-0.86,2.12-0.86c0.81,0,1.5,0.27,2.1,0.81c0.59,0.54,0.92,1.21,0.99,2l0.09,0.64h1.42 - c0.65,0,1.21,0.23,1.68,0.7c0.47,0.47,0.7,1.02,0.7,1.66c0,0.6-0.21,1.12-0.62,1.57s-0.92,0.7-1.53,0.77c-0.1,0-0.15,0.05-0.15,0.16 - v1.13c0,0.11,0.05,0.16,0.15,0.16c1.01-0.06,1.86-0.46,2.55-1.19s1.04-1.6,1.04-2.6c0-1.06-0.37-1.96-1.12-2.7 - c-0.75-0.75-1.65-1.12-2.7-1.12h-0.15c-0.26-1-0.81-1.82-1.65-2.47c-0.83-0.65-1.77-0.97-2.8-0.97C16.28,7.29,15.11,7.82,14.19,8.88 - z`},child:[]}]})(t)}function bK(t){return rr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]},{tag:"path",attr:{d:"M363.5 148.5C334.8 119.8 296.6 104 256 104c-40.6 0-78.8 15.8-107.5 44.5C119.8 177.2 104 215.4 104 256s15.8 78.8 44.5 107.5C177.2 392.2 215.4 408 256 408c40.6 0 78.8-15.8 107.5-44.5C392.2 334.8 408 296.6 408 256s-15.8-78.8-44.5-107.5z"},child:[]}]})(t)}function xK(t){return rr({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 12a4 4 0 0 0 4 4m0 -8a4 4 0 0 0 -4 4"},child:[]},{tag:"path",attr:{d:"M3 12h1"},child:[]},{tag:"path",attr:{d:"M12 3v1"},child:[]},{tag:"path",attr:{d:"M12 20v1"},child:[]},{tag:"path",attr:{d:"M5.6 5.6l.7 .7"},child:[]},{tag:"path",attr:{d:"M6.3 17.7l-.7 .7"},child:[]},{tag:"path",attr:{d:"M20 7l-3 5h4l-3 5"},child:[]}]})(t)}function wK(t){return rr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"},child:[]},{tag:"path",attr:{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"},child:[]}]})(t)}function SK(t){return v.createElement("svg",{viewBox:"0 0 512 512",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M296,320H216a24,24,0,0,0,0,48h80a24,24,0,0,0,0-48Zm0,32H216a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}),v.createElement("path",{d:"M68.071,123.492c22.578-13.918,52.2-25.229,85.674-32.71l-3.49-15.615c-35.688,7.977-66.163,19.653-90.58,34.705-17.914,11.043-32.041,23.643-41.99,37.451l12.98,9.354C39.376,144.588,51.961,133.423,68.071,123.492Z"}),v.createElement("path",{d:"M435.533,137.112C409.439,121.027,374,108.967,332.845,102.144,322.474,87,288.213,80,256,80s-66.474,7-76.845,22.144C138,108.967,102.561,121.027,76.467,137.112,47.376,155.045,32,176.792,32,200v96c0,29,24.155,55.7,68.016,75.193C141.813,389.77,197.209,400,256,400s114.187-10.23,155.984-28.807C455.845,351.7,480,325,480,296V200C480,176.792,464.624,155.045,435.533,137.112ZM177.64,151.23C185.676,168.192,221.98,176,256,176s70.324-7.808,78.36-24.77c21.862,4.212,41.832,10.19,58.13,17.44C422.343,181.941,432,195.509,432,200s-9.657,18.059-39.51,31.33C357.224,247.008,307.475,256,256,256s-101.224-8.992-136.49-24.67C89.657,218.059,80,204.491,80,200s9.657-18.059,39.512-31.331C135.808,161.42,155.778,155.442,177.64,151.23Zm14.36-19c15.6,8,40.35,11.773,64,11.773s48.4-3.775,64-11.773V144c0,.687-2.715,5.08-15.618,9.381C291.577,157.649,274.4,160,256,160s-35.577-2.351-48.382-6.619C194.715,149.08,192,144.687,192,144Zm15.618-29.608C220.423,98.351,237.605,96,256,96s35.577,2.351,48.382,6.619C317.285,106.92,320,111.313,320,112s-2.715,5.08-15.618,9.381C291.577,125.649,274.4,128,256,128s-35.577-2.351-48.382-6.619C194.715,117.08,192,112.687,192,112S194.715,106.92,207.618,102.619ZM176,118.937v16.319c-23.589,4.453-45.254,10.9-62.99,18.794C82.779,167.489,64,185.1,64,200s18.779,32.511,49.01,45.95C150.249,262.505,202.367,272,256,272s105.751-9.5,142.99-26.05C429.221,232.511,448,214.9,448,200s-18.779-32.511-49.008-45.95c-17.738-7.89-39.4-14.341-62.992-18.794V118.937C411.852,132.7,464,165.41,464,200c0,21.967-21.328,44.044-58.516,60.572C365.688,278.259,312.6,288,256,288s-109.688-9.741-149.484-27.428C69.328,244.044,48,221.967,48,200,48,165.41,100.148,132.7,176,118.937ZM464,296c0,21.967-21.327,44.044-58.514,60.572C365.689,374.259,312.6,384,256,384s-109.689-9.741-149.486-27.428C69.327,340.044,48,317.967,48,296V239.371c11.522,13.444,29.066,25.621,52.018,35.822C141.814,293.77,197.211,304,256,304s114.186-10.23,155.982-28.807c22.952-10.2,40.5-22.378,52.018-35.822Z"}),v.createElement("path",{d:"M418.482,385.814C374.684,405.28,316.979,416,256,416a488.01,488.01,0,0,1-78.705-6.23l-2.59,15.789A504.064,504.064,0,0,0,256,432c63.169,0,123.181-11.21,168.981-31.565q1.3-.576,2.572-1.16l-6.655-14.55Q419.7,385.274,418.482,385.814Z"}),v.createElement("path",{d:"M436.123,377.062l7.754,14c5.883-3.259,11.492-6.728,16.674-10.31l-9.1-13.161C446.7,370.871,441.546,374.059,436.123,377.062Z"}),v.createElement("rect",{x:"248",y:"192",width:"16",height:"16"}),v.createElement("rect",{x:"280",y:"192",width:"16",height:"16"}),v.createElement("rect",{x:"216",y:"192",width:"16",height:"16"})))}function EK(t){return v.createElement("svg",{viewBox:"0 0 512 512",...t},v.createElement("path",{fill:"currentColor",d:"M298.667 298.667c17.643 0 32-14.357 32-32s-14.357-32-32-32-32 14.357-32 32c0 17.642 14.357 32 32 32zm0-42.667c5.867 0 10.667 4.779 10.667 10.667s-4.8 10.667-10.667 10.667S288 272.555 288 266.667 292.8 256 298.667 256z"}),v.createElement("path",{fill:"currentColor",d:"M448 490.667h-32v-480C416 4.779 411.221 0 405.333 0H106.667c-.597 0-1.131.256-1.707.341-.555.085-1.088.149-1.621.32-.939.32-1.749.789-2.56 1.344-.32.213-.704.277-1.003.533-.107.085-.149.213-.256.32-.768.704-1.365 1.579-1.899 2.496-.213.341-.512.619-.661.981-.597 1.345-.96 2.774-.96 4.332v480H64c-5.888 0-10.667 4.779-10.667 10.667C53.333 507.221 58.112 512 64 512h42.667c.576 0 1.173-.043 1.749-.149l256-42.667a10.672 10.672 0 0 0 8.917-10.517V53.333c0-5.227-3.776-9.664-8.917-10.517L235.541 21.333h159.125v480c0 5.888 4.779 10.667 10.667 10.667H448c5.888 0 10.667-4.779 10.667-10.667s-4.779-10.666-10.667-10.666zm-96-428.31v387.264l-234.667 39.125V23.253L352 62.357z"}))}function CK(t){return v.createElement("svg",{viewBox:"0 0 512.006 512.006",...t},v.createElement("path",{d:"M502.379 211.249c0 74.656-60.52 135.176-135.176 135.176-6.469.01-12.919-.473-19.311-1.448-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825a142.128 142.128 0 0 1 19.311-1.352c74.656 0 135.176 60.521 135.176 135.177z",fill:"#c52828"}),v.createElement("path",{d:"M463.757 211.249c-.029 67.173-49.378 124.131-115.865 133.728-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825 66.516 9.598 115.875 66.613 115.865 133.825z",fill:"#f44335"}),v.createElement("g",{fill:"#fdd834"},v.createElement("path",{d:"M380.527 230.56h-26.649a8.208 8.208 0 0 1-8.4-7.242l-7.242-90.472c-.212-4.47 3.235-8.275 7.705-8.497.232-.01.463-.01.695 0h41.036a8.105 8.105 0 0 1 8.4 7.802c.01.232.01.463 0 .695l-7.242 90.472c-.501 4.181-4.093 7.319-8.303 7.242zM362.085 269.181h10.235c7.84 0 14.194 6.353 14.194 14.194v10.235c0 7.84-6.353 14.194-14.194 14.194h-10.235c-7.84 0-14.194-6.353-14.194-14.194v-10.235c.001-7.84 6.354-14.194 14.194-14.194z"})),v.createElement("path",{d:"M308.015 332.714a132.057 132.057 0 0 1-24.332-15.256 138.367 138.367 0 0 1-25.587-26.456 134.123 134.123 0 0 1-26.07-79.754 136.453 136.453 0 0 1 3.09-28.966 129.801 129.801 0 0 1 9.655-28.966c-24.428-39.201-50.691-78.113-85.547-108.334-2.607-2.221-5.214-4.442-7.917-6.566a161.051 161.051 0 0 0-14.387-10.621 80.965 80.965 0 0 0-13.807-7.145c1.641 7.338 3.476 14.773 4.731 22.208a180.355 180.355 0 0 1 2.993 26.939v7.145a192.012 192.012 0 0 1-60.829 139.521 202.647 202.647 0 0 0-43.836 52.719 149.063 149.063 0 0 0-6.566 120.017 152.006 152.006 0 0 0 22.208 40.167 164.926 164.926 0 0 0 106.21 61.891 86.874 86.874 0 0 1-44.801-32.249 51.315 51.315 0 0 1-3.669-5.6 77.46 77.46 0 0 1-6.469-13.325 79.464 79.464 0 0 1 3.766-63.726 111.914 111.914 0 0 1 23.463-28.387 101.983 101.983 0 0 0 32.442-74.25v-3.862a97.875 97.875 0 0 0-4.731-27.132 112.539 112.539 0 0 1 10.911 6.566 108.053 108.053 0 0 1 30.222 30.801 100.963 100.963 0 0 1 15.835 46.443v8.4a100.92 100.92 0 0 1-18.249 57.933c22.98 13.035 38.622-8.593 44.994-28.966a60.067 60.067 0 0 0 2.51-12.842 88.458 88.458 0 0 1 28.966 61.312v5.214c-2.704 33.678-25.346 62.451-57.45 72.995 73.353-11.789 128.717-72.889 133.245-147.053a131.977 131.977 0 0 1-30.994-10.815z",fill:"#f57c00"}),v.createElement("path",{d:"M263.117 417.489v-5.214a88.462 88.462 0 0 0-28.966-61.312 60.129 60.129 0 0 1-2.51 12.842c-5.986 20.47-22.014 42.098-44.994 28.966a100.923 100.923 0 0 0 18.249-57.933v-.966-7.338a100.971 100.971 0 0 0-15.835-46.443 108.027 108.027 0 0 0-30.222-30.801 108.949 108.949 0 0 0-39.877-35.532 97.838 97.838 0 0 1 4.731 27.132v3.862a101.988 101.988 0 0 1-32.442 74.25 111.924 111.924 0 0 0-23.366 28.387 79.491 79.491 0 0 0-3.573 63.726 83.948 83.948 0 0 0 35.436 42.291 51.315 51.315 0 0 0 3.669 5.6 86.886 86.886 0 0 0 44.415 32.249 164.927 164.927 0 0 1-106.21-61.892 152.082 152.082 0 0 1-22.014-40.167 149.055 149.055 0 0 1 6.564-120.015 202.714 202.714 0 0 1 44.029-53.202A192.012 192.012 0 0 0 131.03 76.458v-7.145a180.486 180.486 0 0 0-2.993-26.939c-1.255-7.435-3.09-14.869-4.731-22.208a80.965 80.965 0 0 1 13.807 7.145 159.446 159.446 0 0 1 14.773 10.718c2.704 2.124 5.311 4.345 7.917 6.566 34.856 30.222 61.119 69.133 85.547 108.334a129.75 129.75 0 0 0-9.655 28.966 136.634 136.634 0 0 0-3.669 29.353 134.116 134.116 0 0 0 26.07 79.754 138.396 138.396 0 0 0 25.587 26.456 132.164 132.164 0 0 0 24.332 15.256 152.203 152.203 0 0 1-44.898 84.775z",fill:"#ff9801"}),v.createElement("path",{d:"M147.831 500.912h-1.448c-61.756-8.7-113.963-50.15-136.432-108.334a158.725 158.725 0 0 1 7.338-127.355 212.528 212.528 0 0 1 45.96-55.809 181.787 181.787 0 0 0 57.933-132.473v-6.759a171.298 171.298 0 0 0-2.8-25.587c-.966-5.697-2.221-11.2-3.476-16.704l-1.159-5.117c-1.178-5.204 2.076-10.37 7.28-11.548a9.663 9.663 0 0 1 5.948.541 89.473 89.473 0 0 1 15.449 8.014 172.47 172.47 0 0 1 15.449 11.2c41.036 32.732 70.871 77.244 95.589 117.314a9.673 9.673 0 0 1 .483 9.655 121.056 121.056 0 0 0-9.655 26.842 128.158 128.158 0 0 0-2.607 26.456c.01 59.198 41.374 110.333 99.258 122.721a9.655 9.655 0 0 1 7.628 9.655c-3.186 77.244-61.216 141.742-141.163 156.129-5.253.927-10.254-2.588-11.181-7.84a9.65 9.65 0 0 1 6.353-10.795c29.99-9.8 50.517-37.492 51.174-69.037a67.618 67.618 0 0 0-14.387-40.746 56.78 56.78 0 0 1-24.139 31.091 33.122 33.122 0 0 1-33.408-1.448c-4.644-2.626-6.276-8.516-3.659-13.16.145-.261.299-.502.473-.743a91.187 91.187 0 0 0 16.511-52.429v-.772a90.743 90.743 0 0 0-14.58-48.277 98.107 98.107 0 0 0-19.311-21.532v9.945a111.13 111.13 0 0 1-35.436 81.299 103.445 103.445 0 0 0-21.532 25.78 69.873 69.873 0 0 0-3.09 56.002 76.304 76.304 0 0 0 49.533 44.512c5.33.801 9.009 5.774 8.207 11.104-.801 5.328-5.774 8.997-11.103 8.205zM137.113 39.478v1.738a188.136 188.136 0 0 1 3.09 28.194v7.435A200.926 200.926 0 0 1 76.38 223.318a192.998 192.998 0 0 0-42.098 50.498 139.414 139.414 0 0 0-6.469 111.907 148.682 148.682 0 0 0 65.561 76.568 89.522 89.522 0 0 1-15.159-49.726 91.25 91.25 0 0 1 9.655-40.167 119.46 119.46 0 0 1 25.394-31.091 92.026 92.026 0 0 0 29.449-67.588v-3.09a88.799 88.799 0 0 0-4.248-24.911 9.653 9.653 0 0 1 6.237-12.147 9.638 9.638 0 0 1 7.473.657 119.392 119.392 0 0 1 44.705 40.649 110.062 110.062 0 0 1 17.669 58.898v1.159a110.343 110.343 0 0 1-13.035 52.139 12.555 12.555 0 0 0 4.731-1.448c9.655-5.31 17.283-22.497 18.345-35.436.434-5.31 5.088-9.269 10.409-8.844a9.61 9.61 0 0 1 6.006 2.761 95.586 95.586 0 0 1 32.153 68.168 89.528 89.528 0 0 1-13.711 47.408 146.774 146.774 0 0 0 69.133-108.817c-62.77-17.37-106.22-74.492-106.21-139.618a146.655 146.655 0 0 1 3.283-30.994 139.876 139.876 0 0 1 8.497-26.263c-23.27-37.077-51.27-78.402-88.541-108.045a113.049 113.049 0 0 0-8.496-6.467z"}),v.createElement("path",{d:"M367.203 356.081a144.841 144.841 0 0 1-89.506-30.994 143.882 143.882 0 0 1-55.326-113.838 146.655 146.655 0 0 1 3.283-30.994 140.652 140.652 0 0 1 10.814-31.091c23.965-50.498 74.839-82.699 130.735-82.747 79.986.019 144.813 64.875 144.803 144.861a144.848 144.848 0 0 1-55.297 113.809 143.543 143.543 0 0 1-89.506 30.994zm0-270.353c-48.47.019-92.586 27.943-113.355 71.74a121.83 121.83 0 0 0-9.655 26.939 127.805 127.805 0 0 0-2.51 26.842c.01 59.198 41.374 110.333 99.258 122.721a125.763 125.763 0 0 0 26.263 2.8c69.326 0 125.521-56.195 125.521-125.521S436.519 85.728 367.203 85.728z"}),v.createElement("path",{d:"M380.527 240.215h-26.649c-9.279.097-17.109-6.894-18.056-16.125l-7.242-90.085a17.201 17.201 0 0 1 4.538-13.035 18.38 18.38 0 0 1 13.518-5.89h41.036a18.375 18.375 0 0 1 13.518 5.89 17.204 17.204 0 0 1 4.635 13.035l-7.242 90.472c-1.139 9.076-8.912 15.854-18.056 15.738zm-25.49-19.311h24.525l6.952-86.899h-38.622l7.145 86.899zM372.32 317.459h-10.235c-13.151-.048-23.801-10.698-23.849-23.849v-10.235c.048-13.151 10.698-23.801 23.849-23.849h10.138c13.189 0 23.888 10.66 23.946 23.849v10.138c0 13.18-10.669 23.888-23.849 23.946zm-10.138-38.622a4.635 4.635 0 0 0-4.538 4.538v10.138a4.635 4.635 0 0 0 4.538 4.538h10.138a4.635 4.635 0 0 0 4.538-4.538v-10.138a4.635 4.635 0 0 0-4.538-4.538h-10.138z"}))}function TK(t){return v.createElement("svg",{viewBox:"0 0 512.002 512.002",...t},v.createElement("path",{d:"M481.929 324.35c0 65.951-53.464 119.415-119.415 119.415a111.938 111.938 0 0 1-17.059-1.279c-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221a125.333 125.333 0 0 1 17.059-1.194c65.951-.001 119.415 53.462 119.415 119.414z",fill:"#c52828"}),v.createElement("path",{d:"M447.81 324.35c-.026 59.341-43.621 109.657-102.356 118.135-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221 58.77 8.487 102.373 58.846 102.356 118.221z",fill:"#f44335"}),v.createElement("g",{fill:"#fdd834"},v.createElement("path",{d:"M374.285 341.409h-23.542a7.251 7.251 0 0 1-7.421-6.397l-6.397-79.923a7.174 7.174 0 0 1 6.807-7.506c.205-.009.409-.009.614 0h36.251a7.16 7.16 0 0 1 7.421 6.892c.009.205.009.409 0 .614l-6.397 79.923a7.249 7.249 0 0 1-7.336 6.397zM357.993 375.527h9.041c6.926 0 12.539 5.612 12.539 12.539v9.041c0 6.926-5.612 12.539-12.539 12.539h-9.041c-6.926 0-12.539-5.612-12.539-12.539v-9.041c0-6.926 5.621-12.539 12.539-12.539z"})),v.createElement("path",{d:"M318.415 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 159.575 159.575 0 0 1-61.413 12.283 149.268 149.268 0 0 1-20.556-1.365 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.753 152.753 0 0 1-12.368-60.219 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504 7.335-11.771c4.504-7.353 14.117-9.656 21.469-5.143a15.525 15.525 0 0 1 5.143 5.143l34.716 55.869c-2.644 4.18-5.032 8.53-7.335 12.709a96.424 96.424 0 0 0-11.515 44.439 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.344 115.344 0 0 0-11.6 31.048 120.546 120.546 0 0 0-2.729 25.589c.041 48.9 29.878 92.828 75.315 110.885z",fill:"#0377bc"}),v.createElement("path",{d:"M277.217 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 158.847 158.847 0 0 1-40.772 10.833 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.657 152.657 0 0 1-12.368-60.134 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504c9.212 14.671 18.339 29.427 27.465 44.098-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.323 115.323 0 0 0-12.283 31.133 120.546 120.546 0 0 0-2.729 25.589c.043 48.9 29.88 92.828 75.317 110.885z",fill:"#02a9f4"}),v.createElement("path",{d:"M411.388 144.545a477.911 477.911 0 0 0-27.636-43.842c-9.894-14.586-19.192-29.598-28.489-44.525L328.395 13.53c-3.037-4.708-9.323-6.065-14.031-3.028a10.259 10.259 0 0 0-3.028 3.028l-12.794 20.215-14.074 22.433c-9.297 14.927-18.595 29.939-28.489 44.525-6.994 10.236-13.989 20.471-20.301 31.133-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.758 98.758 0 0 0 29.939 70.284 106.83 106.83 0 0 0 9.98 8.53 119.423 119.423 0 0 1 84.017-60.902 114.9 114.9 0 0 1 21.068-1.877c5.186.009 10.372.324 15.524.938a119.369 119.369 0 0 1 39.578 12.539 96.462 96.462 0 0 0-6.228-73.866z",fill:"#0377bc"}),v.createElement("path",{d:"M379.573 188.899a93.046 93.046 0 0 1-1.535 17.059 131.537 131.537 0 0 0-15.524-1.024 114.797 114.797 0 0 0-21.068 1.877 119.425 119.425 0 0 0-84.017 60.902 106.96 106.96 0 0 1-9.98-8.53c-31.099-29.743-38.878-76.417-19.106-114.638 2.303-4.35 4.691-8.53 7.335-12.709 6.312-10.662 13.306-20.898 20.301-31.133 9.894-14.586 19.192-29.598 28.489-44.525l14.074-22.433 14.074 22.433c9.297 14.927 18.595 29.939 28.489 44.525a477.911 477.911 0 0 1 27.636 43.842 96.401 96.401 0 0 1 10.832 44.354z",fill:"#02a9f4"}),v.createElement("path",{d:"M187.656 512.002a167.398 167.398 0 0 1-64.655-12.88 165.226 165.226 0 0 1-88.623-86.746 160.466 160.466 0 0 1-13.05-63.631 158.81 158.81 0 0 1 17.656-72.928 698.388 698.388 0 0 1 39.663-63.887l3.412-5.032c12.027-17.998 23.627-36.677 34.886-54.76L167.1 71.531c6.986-11.353 21.861-14.893 33.214-7.898a24.1 24.1 0 0 1 7.898 7.898l17.059 27.38 17.827 28.404a8.521 8.521 0 0 1 0 9.383c-2.559 4.009-4.777 8.018-6.994 12.112a87.69 87.69 0 0 0-10.065 40.089 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83 99.608 99.608 0 0 0 9.212 7.847 8.534 8.534 0 0 1 2.303 10.918 106.955 106.955 0 0 0-10.747 28.745 112.483 112.483 0 0 0-2.559 23.712c.009 45.429 27.721 86.26 69.943 103.038 4.393 1.706 6.559 6.653 4.853 11.046a8.584 8.584 0 0 1-.93 1.749 162.407 162.407 0 0 1-20.301 24.139 164.29 164.29 0 0 1-52.884 34.886 167.489 167.489 0 0 1-64.653 12.795zm0-435.012a6.99 6.99 0 0 0-6.056 3.412l-50.154 80.69c-11.344 18.168-23.03 37.019-35.227 55.187l-3.412 5.032a687.543 687.543 0 0 0-38.725 62.266 141.613 141.613 0 0 0-15.695 65.166 143.56 143.56 0 0 0 11.686 56.893 148.16 148.16 0 0 0 79.411 77.79 152.855 152.855 0 0 0 116.344 0 147.616 147.616 0 0 0 47.425-31.133 143.446 143.446 0 0 0 12.027-13.306c-43.322-21.802-70.668-66.139-70.711-114.638a129.576 129.576 0 0 1 2.9-27.38 124.357 124.357 0 0 1 9.212-26.954 136.293 136.293 0 0 1-5.203-4.691 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 1.621-3.071 3.241-5.971 4.862-8.53l-14.927-24.054-17.059-27.38a7.087 7.087 0 0 0-6.141-3.837z"}),v.createElement("path",{d:"M99.971 442.4A8.521 8.521 0 0 1 94 439.926a129.631 129.631 0 0 1-28.318-41.113 126.28 126.28 0 0 1-10.236-50.069 124.503 124.503 0 0 1 13.818-57.234c1.868-4.325 6.883-6.32 11.208-4.452s6.32 6.883 4.452 11.208c-.162.375-.35.742-.563 1.092a107.494 107.494 0 0 0-11.856 49.387 109.211 109.211 0 0 0 8.53 43.331 112.626 112.626 0 0 0 24.565 35.739c3.344 3.318 3.369 8.717.051 12.061a8.549 8.549 0 0 1-6.022 2.525l.342-.001zM257.428 276.242a8.526 8.526 0 0 1-5.118-1.706 115.222 115.222 0 0 1-10.747-9.212 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 2.559-4.862 5.118-9.212 7.677-13.306 6.312-10.662 13.392-21.068 20.386-31.218 9.041-13.903 17.912-27.807 26.442-41.881L304 8.753c5.485-8.734 17.017-11.379 25.751-5.894a18.698 18.698 0 0 1 5.894 5.894l28.574 45.634c8.53 13.733 17.059 27.977 26.612 41.539l1.706 2.474a457.473 457.473 0 0 1 26.442 42.136 104.968 104.968 0 0 1 6.824 80.434c-1.433 4.487-6.235 6.969-10.722 5.536a8.282 8.282 0 0 1-1.39-.589 112.612 112.612 0 0 0-106.535 2.388 110.28 110.28 0 0 0-42.136 43.416 8.52 8.52 0 0 1-5.715 4.265l-1.877.256zm62.437-258.959a1.541 1.541 0 0 0-1.365.768l-28.489 45.378c-8.53 13.903-17.571 28.233-26.954 42.051-6.909 10.065-13.903 20.301-20.045 30.707-2.644 4.18-4.947 8.53-7.165 12.368a87.722 87.722 0 0 0-9.809 40.345 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83l1.791 1.706a127.216 127.216 0 0 1 43.331-41.369 129.73 129.73 0 0 1 113.359-7.25 87.904 87.904 0 0 0-8.53-57.831 444.102 444.102 0 0 0-25.589-40.516l-1.706-2.474c-9.383-13.818-18.339-28.148-26.954-42.051L321.23 18.05a1.532 1.532 0 0 0-1.365-.767z"}),v.createElement("path",{d:"M271.246 243.233a8.519 8.519 0 0 1-5.971-2.388 75.502 75.502 0 0 1-16.292-23.456 71.923 71.923 0 0 1-5.885-28.489 70.537 70.537 0 0 1 7.933-32.498c1.877-3.582 4.009-7.25 6.227-10.833l.512-.768a8.538 8.538 0 0 1 11.609-3.284 8.538 8.538 0 0 1 3.284 11.609 6.997 6.997 0 0 1-.392.631l-.512.853c-2.132 3.327-3.924 6.568-5.63 9.724a53.307 53.307 0 0 0-5.971 24.565 54.816 54.816 0 0 0 4.435 21.665 58.198 58.198 0 0 0 12.624 18.083c3.395 3.267 3.489 8.666.222 12.061a8.518 8.518 0 0 1-6.193 2.61v-.085z"}),v.createElement("path",{d:"M362.514 452.294c-70.66 0-127.945-57.285-127.945-127.945a129.576 129.576 0 0 1 2.9-27.38 123.98 123.98 0 0 1 12.453-33.351 127.15 127.15 0 0 1 48.619-50.154c37.94-21.495 84.136-22.518 122.997-2.729 62.744 32.489 87.275 109.7 54.777 172.452-22.005 42.512-65.916 69.184-113.801 69.107zm0-238.83c-40.763.009-78.234 22.382-97.579 58.257a107.238 107.238 0 0 0-10.747 28.83 112.818 112.818 0 0 0-2.559 23.798c0 61.243 49.643 110.885 110.885 110.885s110.885-49.642 110.885-110.885-49.643-110.885-110.885-110.885z"}),v.createElement("path",{d:"M374.285 349.939h-23.542c-8.231.085-15.157-6.141-15.95-14.33l-6.397-79.496a15.26 15.26 0 0 1 4.009-11.515 16.312 16.312 0 0 1 11.942-5.203h36.251a16.31 16.31 0 0 1 11.941 5.203 15.27 15.27 0 0 1 4.094 11.515l-6.397 79.923c-.999 8.026-7.865 14.013-15.951 13.903zm-22.519-17.06h21.665l6.141-76.767h-34.119l6.313 76.767zM367.034 418.176h-9.041c-11.617-.043-21.026-9.451-21.068-21.068v-9.041c.043-11.617 9.451-21.026 21.068-21.068h8.956c11.651 0 21.102 9.417 21.153 21.068v8.956c.001 11.651-9.416 21.11-21.068 21.153zm-8.956-34.119a4.095 4.095 0 0 0-4.009 4.009v8.956a4.095 4.095 0 0 0 4.009 4.009h8.956a4.095 4.095 0 0 0 4.009-4.009v-8.956a4.095 4.095 0 0 0-4.009-4.009h-8.956z"}))}function kK(t){return v.createElement("svg",{viewBox:"0 0 512 512",...t},v.createElement("path",{fill:"currentColor",d:"M462,226c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.52,0,10-4.48,10-10S467.52,226,462,226z"}),v.createElement("path",{fill:"currentColor",d:"M50,226c-5.52,0-10,4.48-10,10s4.48,10,10,10s10-4.48,10-10S55.52,226,50,226z"}),v.createElement("path",{fill:"currentColor",d:`M502,126h-0.027C508.265,117.637,512,107.248,512,96c0-27.57-22.43-50-50-50s-50,22.43-50,50 - c0,11.248,3.735,21.637,10.027,30H422c-5.522,0-10,4.478-10,10v50.03c-7.399,0.025-17.158,0.065-23,0.113V166.63 - c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.435c-0.931-0.964-1.899-2.045-2.923-3.258 - c-10.745-12.754-24.515-23.761-40.077-32.106V121.83c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.983 - c-12.92-4.643-26.438-7.5-40-8.448V96c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v30.365 - c-13.565,0.948-27.084,3.807-40,8.452V120.17c0-5.522-4.477-10-10-10s-10,4.478-10,10v23.542 - c-15.764,8.457-29.695,19.652-40.55,32.652c-0.758,0.908-1.587,1.755-2.45,2.566v-12.3c0-5.522-4.477-10-10-10s-10,4.478-10,10 - v20.385c-4.189,0.067-14.913,0.05-23,0.024V136c0-5.522-4.477-10-10-10h-0.027C96.265,117.637,100,107.248,100,96 - c0-27.57-22.43-50-50-50S0,68.43,0,96c0,11.248,3.735,21.637,10.027,30H10c-5.523,0-10,4.478-10,10v320c0,5.522,4.477,10,10,10h80 - c5.523,0,10-4.478,10-10v-11h312v11c0,5.522,4.478,10,10,10h80c5.522,0,10-4.478,10-10V136C512,130.478,507.522,126,502,126z - M80,446H20V146h20v50c0,5.522,4.477,10,10,10s10-4.478,10-10v-50h20V446z M50,126c-16.542,0-30-13.458-30-30s13.458-30,30-30 - s30,13.458,30,30S66.542,126,50,126z M123,425h-23v-19h23V425z M123,386h-23V247h23V386z M123,227h-23v-19.959 - c3.808,0.011,8.197,0.022,12.244,0.022c4.378,0,8.351-0.012,10.756-0.046V227z M186,425h-43v-19h43V425z M186,276v40v70h-43 - V244.817c16.149-3.513,31.29-11.046,43-21.321V276z M186,194.605c-2.373,2.327-4.659,4.785-6.815,7.365 - c-8.521,10.2-21.771,18.214-36.185,22.224v-21.525c6.846-3.098,13.007-7.736,17.806-13.49c7.006-8.391,15.56-15.917,25.194-22.232 - V194.605z M206,156.285c12.757-5.415,26.344-8.765,40-9.871v20.099c-14.162,1.416-27.777,5.83-40,12.895V156.285z M206,203.562 - c11.538-9.26,25.37-15.088,40-16.922V266h-40V203.562z M246,425h-40v-19h40V425z M246,386h-40v-60h40V386z M306,425h-40v-19h40 - V425z M306,386h-40v-60h40V386z M306,306H206v-20h100V306z M306,266h-40v-79.359c14.617,1.835,28.449,7.664,40,16.924V266z - M306,179.418c-12.232-7.071-25.847-11.487-40-12.904v-20.1c13.651,1.106,27.238,4.454,40,9.865V179.418z M369,425h-43v-19h43V425 - z M369,386h-43v-70v-40v-52.635c11.722,10.137,26.674,17.329,43,20.634V386z M369,223.458 - c-14.663-3.788-27.83-11.575-36.517-21.887c-2.039-2.417-4.216-4.742-6.483-6.965v-27.672c9.465,6.201,17.88,13.567,24.789,21.767 - c4.64,5.496,10.324,11.234,18.211,14.57V223.458z M412,425h-23v-19h23V425z M412,386h-23V246h23V386z M412,226h-23v-19.856 - c5.683-0.048,15.526-0.088,23-0.113V226z M492,446h-60V146h20v50c0,5.522,4.478,10,10,10c5.522,0,10-4.478,10-10v-50h20V446z - M462,126c-16.542,0-30-13.458-30-30s13.458-30,30-30s30,13.458,30,30S478.542,126,462,126z`}))}function _K(t){return v.createElement("svg",{viewBox:"0 0 511.448 511.448",...t},v.createElement("path",{d:"M344.556 112.216C318.38 78.84 291.34 44.344 269.516 7.32c-5.76-9.76-21.824-9.76-27.552 0-21.856 37.024-48.896 71.52-75.072 104.896-53.056 67.68-103.168 131.616-103.168 207.232 0 105.888 86.112 192 192 192s192-86.112 192-192c0-75.616-50.112-139.552-103.168-207.232z",fill:"#2196f3"}),v.createElement("g",{fill:"#fafafa"},v.createElement("path",{d:"M207.724 287.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.832 0-16 7.168-16 16s7.168 16 16 16 16-7.168 16-16-7.168-16-16-16zM303.724 447.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zM175.724 415.448a16.07 16.07 0 0 1-11.328-4.672c-6.24-6.24-6.24-16.384 0-22.624l160-160c6.24-6.24 16.384-6.24 22.624 0s6.24 16.384 0 22.624l-160 160a15.943 15.943 0 0 1-11.296 4.672z"})))}function tE(t){return v.createElement("svg",{viewBox:"0 0 508.16 508.16",...t},v.createElement("path",{d:"M504.18 13.67a3.924 3.924 0 0 0-.42.02H4a4 4 0 0 0-4 4v47.28a4 4 0 0 0 4 4h19.72l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.16a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h479.8a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.64-42.08h9.84a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h19.72a4 4 0 0 0 4-4V17.69a4 4 0 0 0-3.98-4.02zM99.08 486.49H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm26.8 378.24h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm.16-47.28h-18.96V68.97h18.96v39.28zm247.84 378.24h-240v-39.28h240v39.28zm-240-47.28v-39.28h239.68v39.28H133.88zm240-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm-240-47.28V68.97h239.84v39.28H133.88zm266.64 378.24h-18.64l-.32-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm.32-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm-18.96-47.28V68.97h18.8v39.28h-18.8zm63.56 8v39.28h-36.92v-39.28h36.92zm-36.76-8V68.97h36.92v39.28h-36.92zm36.76 55.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.76l-.16-39.28h36.92zm42.68 181.12h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h36.92v17.44a4 4 0 0 0 8 0v-17.44h22.04l12.48 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6V68.97h22.04l12.56 39.28zm11.56-47.28H8V21.69h491.76l-.08 39.28z",fill:"currentColor"}),v.createElement("path",{d:"M454.32 37.33h-13.76a4 4 0 0 0 0 8h13.76a4 4 0 0 0 0-8zM414.84 37.33h-96a4 4 0 0 0 0 8h96a4 4 0 0 0 0-8z",fill:"currentColor"}))}function OK(t){return v.createElement("svg",{viewBox:"0 0 63.907 63.907",fill:"currentColor",...t},v.createElement("circle",{fill:"currentColor",cx:30.515,cy:6.136,r:6.136}),v.createElement("path",{fill:"currentColor",d:"M47.399 27.455C42.346 24.53 38.2 20.579 34.71 15.931c-2.193-3.084-7.991-2.923-10.347-.097-3.584 3.487-6.625 7.081-9.037 10.677a3.209 3.209 0 0 0 5.329 3.573 54.205 54.205 0 0 1 3.59-4.734c-.051 3.333.116 9.347.2 12.05.028.9-.177 1.78-.595 2.579-3.308 6.317-5.424 12.294-7.572 19.606a3.37 3.37 0 1 0 6.465 1.901c1.982-6.742 3.897-12.201 6.884-17.981.152.006.304.006.458-.001 1.907 5.69 3.815 11.383 5.725 17.073 1.387 4.147 7.822 1.993 6.431-2.155-2.087-6.221-4.171-12.439-6.251-18.659-.121-.357-.414-1.755-.455-2.211-.344-3.832-.469-7.652-.432-11.477a51.027 51.027 0 0 0 9.782 7.328c3.597 2.088 6.063-3.891 2.514-5.948z"}))}function RK(t){return v.createElement("svg",{viewBox:"0 0 285 285",...t},v.createElement("g",null,v.createElement("path",{fill:"currentColor",d:`M88.4,87.996c2.525-2.146,2.832-5.933,0.687-8.458C82.801,72.144,79.34,62.719,79.34,53c0-22.607,18.393-41,41-41 - c22.607,0,41,18.393,41,41c0,9.729-3.467,19.161-9.761,26.557c-2.148,2.523-1.843,6.311,0.681,8.458 - c1.129,0.961,2.511,1.431,3.886,1.431c1.698,0,3.386-0.717,4.572-2.111C168.858,77.77,173.34,65.576,173.34,53 - c0-29.225-23.775-53-53-53c-29.225,0-53,23.775-53,53c0,12.563,4.476,24.748,12.602,34.31C82.089,89.835,85.873,90.141,88.4,87.996 - z`}),v.createElement("path",{fill:"currentColor",d:`M120.186,41.201c13.228,0,23.812,8.105,27.313,19.879c0.761-2.562,1.176-5.271,1.176-8.08 - c0-15.649-12.685-28.335-28.335-28.335c-15.648,0-28.334,12.686-28.334,28.335c0,2.623,0.364,5.16,1.031,7.571 - C96.691,49.076,107.152,41.201,120.186,41.201z`}),v.createElement("path",{fill:"currentColor",d:`M234.21,169.856c-3.769-22.452-19.597-26.04-27.034-26.462c-2.342-0.133-4.516-1.32-5.801-3.282 - c-5.388-8.225-12.609-10.4-18.742-10.4c-4.405,0-8.249,1.122-10.449,1.932c-0.275,0.102-0.559,0.15-0.837,0.15 - c-0.87,0-1.701-0.47-2.163-1.262c-5.472-9.387-13.252-11.809-19.822-11.809c-3.824,0-7.237,0.82-9.548,1.564 - c-0.241,0.077-0.764,0.114-1.001,0.114c-1.256,0-2.637-1.03-2.637-2.376V69.753c0-11.035-8.224-16.552-16.5-16.552 - c-8.276,0-16.5,5.517-16.5,16.552v84.912c0,4.989-3.811,8.074-7.918,8.074c-2.495,0-4.899-1.138-6.552-3.678l-7.937-12.281 - c-3.508-5.788-8.576-8.188-13.625-8.189c-11.412-0.001-22.574,12.258-14.644,25.344l62.491,119.692 - c0.408,0.782,1.225,1.373,2.108,1.373h87.757c1.253,0,2.289-1.075,2.365-2.325l2.196-35.816c0.025-0.413,0.162-0.84,0.39-1.186 - C231.591,212.679,237.828,191.414,234.21,169.856z`})))}function Y1(t){return v.createElement("svg",{viewBox:"1 -10 511.99999 511",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M 405.5 150 C 405.5 232.566406 338.566406 299.5 256 299.5 C 173.433594 299.5 106.5 232.566406 106.5 150 C 106.5 67.433594 173.433594 0.5 256 0.5 C 338.566406 0.5 405.5 67.433594 405.5 150 Z M 405.5 150 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(25.882353%,75.294118%,88.627451%)",fillOpacity:1}}),v.createElement("path",{d:"M 512 342.921875 C 512 425.488281 445.066406 492.421875 362.5 492.421875 C 279.933594 492.421875 213 425.488281 213 342.921875 C 213 260.355469 279.933594 193.421875 362.5 193.421875 C 445.066406 193.421875 512 260.355469 512 342.921875 Z M 512 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,81.568627%,38.039216%)",fillOpacity:1}}),v.createElement("path",{d:"M 220.746094 295.308594 C 232.050781 298.039062 243.855469 299.5 256 299.5 C 321.917969 299.5 377.871094 256.835938 397.753906 197.613281 C 386.449219 194.878906 374.644531 193.421875 362.5 193.421875 C 296.582031 193.421875 240.628906 236.085938 220.746094 295.308594 Z M 220.746094 295.308594 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(28.627451%,74.117647%,56.470588%)",fillOpacity:1}}),v.createElement("path",{d:"M 299 342.921875 C 299 425.488281 232.066406 492.421875 149.5 492.421875 C 66.933594 492.421875 0 425.488281 0 342.921875 C 0 260.355469 66.933594 193.421875 149.5 193.421875 C 232.066406 193.421875 299 260.355469 299 342.921875 Z M 299 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(98.039216%,43.921569%,69.803922%)",fillOpacity:1}}),v.createElement("path",{d:"M 114.246094 197.613281 C 134.128906 256.835938 190.082031 299.5 256 299.5 C 268.144531 299.5 279.949219 298.039062 291.253906 295.308594 C 271.371094 236.085938 215.417969 193.421875 149.5 193.421875 C 137.355469 193.421875 125.550781 194.878906 114.246094 197.613281 Z M 114.246094 197.613281 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(68.627451%,48.235294%,77.647059%)",fillOpacity:1}}),v.createElement("path",{d:"M 213 342.921875 C 213 383.800781 229.414062 420.839844 256 447.828125 C 282.585938 420.839844 299 383.800781 299 342.921875 C 299 302.042969 282.585938 265.003906 256 238.015625 C 229.414062 265.003906 213 302.042969 213 342.921875 Z M 213 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(93.72549%,38.039216%,13.333333%)",fillOpacity:1}}),v.createElement("path",{d:"M 291.253906 295.320312 C 279.949219 298.046875 268.140625 299.5 256 299.5 C 243.859375 299.5 232.050781 298.046875 220.746094 295.320312 C 228.058594 273.542969 240.242188 254.015625 256 238.015625 C 271.757812 254.015625 283.941406 273.542969 291.253906 295.320312 Z M 291.253906 295.320312 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1}})))}function MK(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 365.445 365.445",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M146.7 162.775h-26.8a6.655 6.655 0 0 0-6.647 6.647v26.602a6.653 6.653 0 0 0 6.647 6.646h26.8a6.654 6.654 0 0 0 6.647-6.646v-26.602a6.655 6.655 0 0 0-6.647-6.647zM245.547 162.775h-26.801a6.653 6.653 0 0 0-6.646 6.647v26.602a6.652 6.652 0 0 0 6.646 6.646h26.801a6.654 6.654 0 0 0 6.646-6.646v-26.602a6.655 6.655 0 0 0-6.646-6.647z"})),v.createElement("path",{d:"M345.445 1.204H20c-11.046 0-20 8.954-20 20v323.037c0 11.045 8.954 20 20 20h325.445c11.045 0 20-8.955 20-20V21.204c0-11.045-8.953-20-20-20zM182.723 287.66c-57.955 0-104.937-46.981-104.937-104.937 0-57.957 46.982-104.938 104.937-104.938S287.66 124.767 287.66 182.723 240.678 287.66 182.723 287.66z",fill:"currentColor"}))}function PK(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 45.659 45.659",...t},v.createElement("path",{fill:"currentColor",d:"M30.619 27.309V7.781C30.619 3.49 27.124 0 22.833 0c-4.29 0-7.785 3.491-7.785 7.78v19.528a10.722 10.722 0 0 0-3.05 7.522c0 5.972 4.857 10.828 10.829 10.828 5.97 0 10.834-4.856 10.834-10.828 0-2.918-1.141-5.572-3.042-7.521zM22.825 42.66c-4.316 0-7.824-3.512-7.824-7.828 0-2.527 1.174-4.779 3.077-6.211V16.237h3.372c.552 0 1-.47 1-1.022 0-.553-.448-1.021-1-1.021h-3.372v-2.466h3.372c.552 0 1-.434 1-.986a.989.989 0 0 0-1-.986h-3.372V7.78c0-2.636 2.119-4.78 4.754-4.78 2.637 0 4.756 2.144 4.756 4.781v20.871c1.903 1.434 3.047 3.671 3.047 6.18 0 4.316-3.494 7.828-7.81 7.828z"}),v.createElement("path",{fill:"currentColor",d:"M25.334 30.463V18.632h-5.002v11.831a4.973 4.973 0 0 0-2.537 4.369 5.038 5.038 0 0 0 5.038 5.046 5.034 5.034 0 0 0 5.034-5.046c0-1.866-.982-3.495-2.533-4.369z"}))}function AK(t){return v.createElement("svg",{viewBox:"0 0 297 297",...t},v.createElement("g",null,v.createElement("path",{fill:"currentColor",d:"m243.404,138.042c-5.775,0-10.458,4.683-10.458,10.458 0,46.564-37.883,84.446-84.446,84.446s-84.446-37.882-84.446-84.446 37.883-84.446 84.446-84.446c5.775,0 10.458-4.683 10.458-10.458s-4.683-10.457-10.458-10.457c-58.097,0-105.361,47.265-105.361,105.361s47.264,105.361 105.361,105.361 105.361-47.264 105.361-105.361c0-5.775-4.681-10.458-10.457-10.458z"}),v.createElement("path",{fill:"currentColor",d:"m142.963,121.344l-20.272-30.41c-3.203-4.807-9.695-6.104-14.502-2.9-4.805,3.202-6.104,9.695-2.9,14.502l20.279,30.422c-3.015,4.436-4.78,9.787-4.78,15.543 0,15.281 12.432,27.713 27.713,27.713 15.281,0 27.713-12.432 27.713-27.713 0-15.281-12.432-27.713-27.713-27.713-1.897-0.001-3.749,0.191-5.538,0.556zm12.335,27.156c0,3.748-3.05,6.798-6.798,6.798s-6.798-3.05-6.798-6.798 3.05-6.798 6.798-6.798 6.798,3.05 6.798,6.798z"}),v.createElement("path",{fill:"currentColor",d:"M148.5,0C66.617,0,0,66.617,0,148.5S66.617,297,148.5,297S297,230.383,297,148.5S230.383,0,148.5,0z M158.958,275.653 v-6.366c0-5.775-4.683-10.458-10.458-10.458c-5.775,0-10.458,4.683-10.458,10.458v6.366 c-62.027-5.056-111.64-54.668-116.695-116.695h6.366c5.775,0,10.458-4.683,10.458-10.458s-4.683-10.458-10.458-10.458h-6.366 c5.056-62.027,54.668-111.64,116.695-116.695v6.366c0,5.775,4.683,10.458,10.458,10.458c5.775,0,10.458-4.683,10.458-10.458v-6.366 c62.027,5.056,111.64,54.668,116.695,116.695h-6.366c-5.775,0-10.458,4.683-10.458,10.458s4.683,10.458,10.458,10.458h6.366 C270.598,220.985,220.985,270.598,158.958,275.653z"})))}function IK(t){return v.createElement("svg",{viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M228.5 205.584h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5H228.5c-2.726 0-5 2.274-5 5s2.274 5 5 5z",fill:"currentColor"}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M232.826 280.905c-.339 3.356-18.813-.782-20.919-1.06l-45.073-5.94-45.074-5.94-14.507-1.912c-1.456-.192-6.201-.055-6.412-2.147-.621-6.157 0-12.699 0-18.878v-43.5-82.076-5.13c0-2.551 5.184-1.015 6.412-.853l35.438 4.67 83.723 11.035c1.457.192 6.201.055 6.412 2.147.169 1.673 0 3.451 0 5.13v144.454c0 6.448 10 6.448 10 0V136.451v-5.13c0-7.619-6.137-10.793-12.673-11.655l-28.531-3.76-88.411-11.652-9.897-1.304c-6.555-.864-12.473 4.9-12.473 11.38v144.832c0 2.023-.071 4.04.132 6.053.717 7.111 6.606 9.563 12.759 10.374l76.827 10.125 39.896 5.259 9.697 1.278c7.063.931 12.011-4.778 12.673-11.346.648-6.415-9.358-6.352-9.999 0z",fill:"currentColor"}))}function DK(t){return v.createElement("svg",{width:361,height:361,viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9zM265.732 265.178c.584 2.887-1.629 5.228-4.942 5.228H103.457c-3.313 0-6.474-2.341-7.058-5.228L75.24 130.633c-.584-2.887 1.628-5.228 4.942-5.228h157.333c3.313 0 6.474 2.34 7.058 5.228l21.159 134.545z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M247.194 199.667h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5h-6.639c-2.726 0-5 2.274-5 5s2.275 5 5 5z",fill:"currentColor"}))}ot.Types.airCondition+"",ot.Types.blind+"",ot.Types.blindButtons+"",ot.Types.button+"",ot.Types.buttonSensor+"",ot.Types.camera+"",ot.Types.chart+"",ot.Types.image+"",ot.Types.dimmer+"",ot.Types.door+"",ot.Types.fireAlarm+"",ot.Types.floodAlarm+"",ot.Types.gate+"",ot.Types.humidity+"",ot.Types.illuminance+"",ot.Types.info+"",ot.Types.light+"",ot.Types.lock+"",ot.Types.location+"",ot.Types.locationOne+"",ot.Types.media+"",ot.Types.motion+"",ot.Types.ct+"",ot.Types.percentage+"",ot.Types.rgb+"",ot.Types.rgbSingle+"",ot.Types.rgbwSingle+"",ot.Types.hue+"",ot.Types.cie+"",ot.Types.slider+"",ot.Types.socket+"",ot.Types.temperature+"",ot.Types.thermostat+"",ot.Types.vacuumCleaner+"",ot.Types.volume+"",ot.Types.volumeGroup+"",ot.Types.window+"",ot.Types.windowTilt+"",ot.Types.weatherCurrent+"",ot.Types.weatherForecast+"",ot.Types.warning+"",ot.Types.unknown+"",ot.Types.instance+"";class x9 extends v.Component{static generateFile(e,r){const n=window.document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",window.document.body.appendChild(n),n.click(),window.document.body.removeChild(n)}handleFileSelect=e=>{const n=e.target?.files;if(!n||!n.length){console.error("No files found. Please report to developers");return}const o=n[0];if(o){const i=new window.FileReader;i.onload=()=>{const l=i.result?.toString()||"";try{const c=JSON.parse(l);c.native&&c.common?c.common.name!==this.props.common.name?this.props.onError&&this.props.onError(j.t("ra_otherConfig",c.common.name)):this.props.onLoad&&this.props.onLoad(c.native):this.props.onError&&this.props.onError(j.t("ra_invalidConfig"))}catch(c){this.props.onError&&this.props.onError(c?.toString())}},i.readAsText(o)}else alert("Failed to open JSON File")};download(){const e={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};e.common.news&&delete e.common.news,e.common.titleLang&&delete e.common.titleLang,e.common.desc&&delete e.common.desc,x9.generateFile(`${e._id}.json`,e)}upload(){const e=window.document.createElement("input");e.setAttribute("type","file"),e.setAttribute("id","files"),e.setAttribute("opacity","0"),e.addEventListener("change",this.handleFileSelect,!1),e.click()}render(){return v.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?v.createElement(Tf,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?v.createElement(Sa,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{window.open(this.props.common.readme,"_blank")?.focus()}},v.createElement(RB,null)):null,v.createElement(Sa,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:j.t("ra_Load configuration from file"),onClick:()=>this.upload()},v.createElement(UB,null)),v.createElement(Sa,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:j.t("ra_Save configuration to file"),onClick:()=>this.download()},v.createElement(WB,null)))}}function NK(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function $K(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function LK(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function BK(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function FK(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),v.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}))}const rE={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};v.forwardRef(function(e,r){return v.createElement(Rv,{sx:{...rE.root,...e?.style||void 0,...e.overflow==="auto"?rE.overflowAuto:void 0},ref:r},e.children)});v.createElement(FK,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement($K,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(LK,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(NK,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(rT,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(BK,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),v.createElement(NB,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(HB,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(jB,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(qB,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(LB,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(FB,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(SB,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(Uy,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(Gv,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});class ZY extends v.Component{refTypo;height;width;constructor(e){super(e),this.state={closed:this.props.storeId?window.localStorage.getItem(this.props.storeId)==="true":!1},this.height=0,this.width=0,this.refTypo=v.createRef()}componentDidMount(){this.detectHeight()}onClick(){this.props.storeId&&this.props.closed===void 0&&(this.state.closed?window.localStorage.removeItem(this.props.storeId):window.localStorage.setItem(this.props.storeId,"true")),this.props.closed===void 0?this.setState({closed:!this.state.closed},()=>{this.props.onClose&&this.props.onClose(this.state.closed)}):this.props.onClose&&this.props.onClose(!this.props.closed)}detectHeight(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed;this.props.closeable&&!e&&this.refTypo.current&&window.requestAnimationFrame(()=>{(this.props.closed!==void 0?this.props.closed:this.state.closed)||this.refTypo.current&&(!this.height||this.width!==this.refTypo.current.clientWidth)&&(this.height=this.refTypo.current.clientHeight,this.width=this.refTypo.current.clientWidth,this.forceUpdate())})}componentDidUpdate(){this.detectHeight()}render(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed,r=e?GB:Ta;return v.createElement(ht,{className:"iom-info-box",style:{whiteSpace:"preserve",display:"flex",gap:8,alignItems:e||this.props.iconPosition==="top"?"flex-start":"center",borderWidth:1,borderStyle:"solid",padding:4,borderRadius:5,marginBottom:8,maxWidth:"100%",transition:"height 0.5s",height:this.props.closeable?e?30:this.height||void 0:void 0,overflow:this.props.closeable?"hidden":void 0,position:"relative",...this.props.style},sx:{borderColor:n=>this.props.type==="ok"?n.palette.info.main:n.palette[this.props.type].main}},this.props.type==="ok"?v.createElement(Xi,{style:{color:"#0F0"}}):this.props.type==="info"?v.createElement(PB,{color:"primary"}):v.createElement(KB,{color:this.props.type}),v.createElement(Qn,{ref:this.refTypo},this.props.children),this.props.closeable?v.createElement(r,{sx:{color:n=>n.palette.mode==="dark"?"lightgray":"gray",cursor:"pointer",position:"absolute",top:4,right:4},onClick:()=>this.onClick()}):null,this.props.closeable?v.createElement("div",{style:{width:22}}):null,e?v.createElement(ht,{component:"div",sx:n=>{const o=n.palette[this.props.type==="ok"?"info":this.props.type].main;return{background:`linear-gradient(${o}00 0%, ${o}10 60%, ${o}90 100%)`}},style:{bottom:0,position:"absolute",left:0,right:0,height:10}}):null)}}const de={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},J1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Up=["January","February","March","April","May","June","July","August","September","October","November","December"],Q1={minutes:"minutes",hours:"hours"},vc=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function Vo(t){return t<10?`0${t}`:`${t}`}const nE={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function Z1(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class kr extends A.Component{refFrom;refTo;refOnce;timerOnce=null;timerFrom=null;timerTo=null;constructor(e){super(e);let r;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{r=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(r=this.props.schedule);(!r||!Object.keys(r).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),r=nE),r={...nE,...r},r.valid.from||=kr.now2string(),this.refFrom=v.createRef(),this.refTo=v.createRef(),this.refOnce=v.createRef(),this.state={schedule:r,desc:kr.state2text(r)},JSON.stringify(r)!==this.props.schedule&&setTimeout(()=>this.props.onChange?.(JSON.stringify(r)),100)}componentWillUnmount(){this.timerOnce&&(clearTimeout(this.timerOnce),this.timerOnce=null),this.timerFrom&&(clearTimeout(this.timerFrom),this.timerFrom=null),this.timerTo&&(clearTimeout(this.timerTo),this.timerTo=null)}onChange(e,r){const n=JSON.stringify(e)!==JSON.stringify(this.state.schedule);if(r||n){n&&this.setState({schedule:e,desc:kr.state2text(e)});const o=JSON.parse(JSON.stringify(e));if(o.period.once){const i=o.period.once;delete o.period,o.period={once:i},delete o.valid}else if(o.period.days){const i=o.period.days,l=o.period.dows;delete o.period,o.period={days:i},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.weeks){const i=o.period.weeks,l=o.period.dows;delete o.period,o.period={weeks:i},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.months){const i=o.period.months,l=o.period.dates;delete o.period,o.period={months:i},l&&l!=="[]"&&(o.period.dates=l)}else if(o.period.years){const i=o.period.years,l=o.period.yearMonth,c=o.period.yearDate;delete o.period,o.period={years:i,yearDate:c},l&&(o.period.yearMonth=l)}if(o.time.exactTime?(delete o.time.end,delete o.time.mode,delete o.time.interval):delete o.time.exactTime,o.valid){if(o.valid.to||delete o.valid.to,o.period.days===1||o.period.weeks===1||o.period.months===1||o.period.years===1){const i=kr.string2date(o.valid.from),l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),i<=l&&delete o.valid.from}!o.valid.from&&!o.valid.to&&delete o.valid}this.props.onChange?.(JSON.stringify(o),kr.state2text(e))}}static state2text(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{return""}const r=[],n=kr.string2date(e.valid.from);if(e.period.once){const o=kr.string2date(e.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),oj.t(J1[l]));if(i.length===1)r.push(j.t("sch_desc_onWeekday",i[0]));else if(i.length===7)r.push(j.t("sch_desc_everyDay"));else{const l=i.pop();r.push(j.t("sch_desc_onWeekdays",i.join(", "),l))}}}else r.push(j.t("sch_desc_everyDay"));else r.push(j.t("sch_desc_everyNDay",e.period.days.toString()));else if(e.period.weeks)if(e.period.weeks===1?r.push(j.t("sch_desc_everyWeek")):r.push(j.t("sch_desc_everyNWeeks",e.period.weeks.toString())),e.period.dows){const o=JSON.parse(e.period.dows);if(o.length===2&&o[0]===0&&o[1]===6)r.push(j.t("sch_desc_onWeekends"));else if(o.length===5&&o[0]===1&&o[1]===2&&o[2]===3&&o[3]===4&&o[4]===5)r.push(j.t("sch_desc_onWorkdays"));else{const i=o.map(l=>j.t(J1[l]));if(i.length===1)r.push(j.t("sch_desc_onWeekday",i[0]));else if(i.length===7)r.push(j.t("sch_desc_everyDay"));else{const l=i.pop();r.push(j.t("sch_desc_onWeekdays",i.join(", "),l))}}}else return j.t("sch_desc_never");else if(e.period.months){if(e.period.dates){const o=JSON.parse(e.period.dates);if(o.length===1)r.push(j.t("sch_desc_onDate",o[0]));else if(o.length===31)r.push(j.t("sch_desc_onEveryDate"));else if(o.length){const i=o.pop();r.push(j.t("sch_desc_onDates",o.join(", "),i))}else return j.t("sch_desc_never")}else r.push(j.t("sch_desc_onEveryDate"));if(e.period.months===1)r.push(j.t("sch_desc_everyMonth"));else if(typeof e.period.months=="number")r.push(j.t("sch_desc_everyNMonths",e.period.months.toString()));else{const i=JSON.parse(e.period.months).map(l=>j.t(Up[l-1]));if(!i.length)return j.t("sch_desc_never");if(i.length===1)r.push(j.t("sch_desc_onMonth",i[0]));else if(i.length===12)r.push(j.t("sch_desc_everyMonth"));else{const l=i.pop();r.push(j.t("sch_desc_onMonths",i.join(", "),l))}}}else e.period.years&&(e.period.years===1?r.push(j.t("sch_desc_everyYear")):r.push(j.t("sch_desc_everyNYears",e.period.years.toString())),r.push(j.t("sch_desc_onDate",e.period.yearDate.toString(),e.period.yearMonth?j.t(Up[e.period.yearMonth-1]):j.t("sch_desc_everyMonth"))));if(e.time.exactTime)vc.includes(e.time.start)?r.push(j.t("sch_desc_atTime",j.t(`sch_astro_${e.time.start}`))):r.push(j.t("sch_desc_atTime",e.time.start));else{e.time.mode===Q1.minutes?e.time.interval===1?r.push(j.t("sch_desc_everyMinute")):r.push(j.t("sch_desc_everyNMinutes",e.time.interval.toString())):e.time.interval===1?r.push(j.t("sch_desc_everyHour")):r.push(j.t("sch_desc_everyNHours",e.time.interval.toString()));const o=vc.indexOf(e.time.start)!==-1?j.t(`sch_astro_${e.time.start}`):e.time.start,i=vc.indexOf(e.time.end)!==-1?j.t(`sch_astro_${e.time.end}`):e.time.end;(o!=="00:00"||i!=="24:00"&&i!=="23:59")&&r.push(j.t("sch_desc_intervalFromTo",o,i))}return e.period.once||(n.getTime()>Date.now()&&e.valid.to?r.push(j.t("sch_desc_validFromTo",e.valid.from,e.valid.to)):n.getTime()>Date.now()?r.push(j.t("sch_desc_validFrom",e.valid.from)):e.valid.to&&r.push(j.t("sch_desc_validTo",e.valid.to))),r.join(" ")}getTimePeriodElements(){const e=this.state.schedule;let r=!1,n=!1,o=!1,i=!0;return e.time.start==="00:00"&&e.time.end==="24:00"?(r=!0,i=!1):e.time.start==="sunrise"?(n=!0,i=!1):e.time.start==="sunset"&&(o=!0,i=!1),v.createElement("div",{key:"timePeriod",style:de.rowDiv},v.createElement("div",{style:de.modeDiv},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!e.time.exactTime,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.exactTime=!1,this.onChange(l)}}),label:j.t("sch_intervalTime")})),v.createElement("div",{style:de.settingsDiv},v.createElement("div",{style:de.settingsDiv},!e.time.exactTime&&v.createElement("div",null,v.createElement("div",null,v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!i,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="23:59",this.onChange(l)}}),label:i?"":j.t("sch_fromTo")}),i&&[v.createElement(zr,{variant:"standard",style:{...de.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.start=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:j.t("sch_from"),margin:"normal"}),v.createElement(zr,{variant:"standard",style:de.inputTime,key:"exactTimeTo",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.end=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:j.t("sch_to"),margin:"normal"})])),!e.time.exactTime&&v.createElement("div",null,v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!r,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="24:00",this.onChange(l)}}),label:j.t("sch_wholeDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!n,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunrise",l.time.end="sunset",this.onChange(l)}}),label:j.t("sch_astroDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!o,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunset",l.time.end="sunrise",this.onChange(l)}}),label:j.t("sch_astroNight")}))),!e.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const e=vc.includes(this.state.schedule.time.start);return v.createElement("div",{key:"timeExact",style:de.rowDiv},v.createElement("div",{style:de.modeDiv},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.exactTime=!0,this.onChange(r)}}),label:j.t("sch_exactTime")})),this.state.schedule.time.exactTime&&v.createElement(So,{variant:"standard",value:e?this.state.schedule.time.start:"00:00",onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)}},v.createElement(mr,{key:"specific",value:"00:00"},j.t("sch_specificTime")),vc.map(r=>v.createElement(mr,{key:r,value:r},j.t(`sch_astro_${r}`)))),this.state.schedule.time.exactTime&&!e&&v.createElement("div",{style:de.settingsDiv},v.createElement(zr,{variant:"standard",style:de.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:r=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:r.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return v.createElement("hr",{style:de.hr})}getPeriodModes(){const e=this.state.schedule,r=!e.period.dows&&!e.period.months&&!e.period.dates&&!e.period.years&&!e.period.days&&!e.period.weeks;return r&&!e.period.once&&(e.period.once=kr.now2string(!0)),[v.createElement("div",{key:"once",style:{...de.rowDiv,...de.rowOnce}},v.createElement("div",{style:de.modeDiv},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.once||=kr.now2string(!0),n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,this.onChange(n)}}),label:j.t("sch_periodOnce")})),r&&v.createElement("div",{style:de.settingsDiv},v.createElement(zr,{variant:"standard",style:de.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:Z1(e.period.once),onChange:n=>{this.timerOnce&&clearTimeout(this.timerOnce),this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(o=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),l=kr.string2date(o);l.toString()!=="Invalid Date"&&(i.period.once=`${Vo(l.getDate())}.${Vo(l.getMonth()+1)}.${l.getFullYear()}`,this.onChange(i))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},label:j.t("sch_at"),margin:"normal"}))),v.createElement(ht,{component:"div",key:"days",sx:Je.getStyle(this.props.theme,de.rowDiv,de.rowDays)},v.createElement("div",{style:de.modeDiv},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!e.period.days,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodDaily")})),v.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsDaily(),e.period.days?this.getPeriodSettingsWeekdays():null)),v.createElement(ht,{component:"div",key:"weeks",sx:Je.getStyle(this.props.theme,de.rowDiv,de.rowDows)},v.createElement("div",{style:de.modeDiv},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!e.period.weeks,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=e.period.weeks?0:1,n.period.dows||="[0]",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodWeekly")})),v.createElement(ht,{component:"div",style:de.settingsDiv},v.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsWeekly()),v.createElement(ht,{component:"div",sx:Je.getStyle(this.props.theme,de.settingsDiv,de.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),v.createElement(ht,{component:"div",key:"months",sx:Je.getStyle(this.props.theme,de.rowDiv,de.rowMonths)},v.createElement("div",{style:de.modeDiv},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!e.period.months,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,n.period.dows="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodMonthly")})),v.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsMonthly(),e.period.months?v.createElement(ht,null,v.createElement(ht,{component:"div",sx:Je.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},v.createElement(dt,{control:v.createElement(Wr,{style:de.inputRadio,checked:!!e.period.dates,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months||=1;const o=[];for(let i=1;i<=31;i++)o.push(i);n.period.dates||=JSON.stringify(o),n.period.dows="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodDates")})),v.createElement(ht,{component:"div",sx:Je.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},this.getPeriodSettingsDates())):null)),v.createElement(ht,{component:"div",key:"years",sx:Je.getStyle(this.props.theme,de.rowDiv,de.rowYears)},v.createElement("div",{style:de.modeDiv},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:!!e.period.years,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,n.period.yearDate=1,n.period.yearMonth=1,n.period.dows="",n.period.months=0,n.period.dates="",n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:j.t("sch_periodYearly")})),v.createElement("div",{style:de.settingsDiv},v.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsYearly()),!!e.period.years&&v.createElement("div",{style:de.settingsDiv},v.createElement("span",null,j.t("sch_on")),v.createElement(bo,{key:"input",value:this.state.schedule.period.yearDate,style:de.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearDate=parseInt(n.target.value,10),o.period.yearDate<1&&(o.period.yearDate=31),o.period.yearDate>31&&(o.period.yearDate=1),this.onChange(o)}}),v.createElement(So,{variant:"standard",value:e.period.yearMonth,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearMonth=n.target.value,this.onChange(o)}},v.createElement(mr,{key:"every",value:0},j.t("sch_yearEveryMonth")),Up.map((n,o)=>v.createElement(mr,{key:n,value:o+1},j.t(n)))))))]}getPeriodSettingsMinutes(e){return v.createElement("div",{style:{display:"inline-block",marginTop:e?15:"inherit"}},v.createElement("label",{style:{marginLeft:4,marginRight:4}},j.t("sch_every")),v.createElement(bo,{value:this.state.schedule.time.interval,style:{...de.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.interval=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement(So,{variant:"standard",value:this.state.schedule.time.mode,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.mode=r.target.value,this.onChange(n)}},v.createElement(mr,{value:Q1.minutes},j.t("sch_periodMinutes")),v.createElement(mr,{value:Q1.hours},j.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const e=this.state.schedule,r=e.period.dows&&e.period.dows!=="[1, 2, 3, 4, 5]"&&e.period.dows!=="[0, 6]";return[v.createElement("div",{key:"workdays"},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:e.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[1, 2, 3, 4, 5]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:j.t("sch_periodWorkdays")})),v.createElement("div",{key:"weekend"},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:e.period.dows==="[0, 6]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:j.t("sch_periodWeekend")})),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(dt,{style:{verticalAlign:"top"},control:v.createElement(Lt,{style:de.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 1, 2, 3, 4, 5, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:j.t("sch_periodWeekdays")}),r&&(e.period.days===1||e.period.weeks)&&v.createElement(Mm,{row:!0,style:{...de.inputGroup,width:150}},[1,2,3,4,5,6,0].map(n=>v.createElement(dt,{key:`specific_${n}`,style:de.inputGroupElement,control:v.createElement(Wr,{style:de.inputSmallCheck,checked:e.period.dows.includes(n.toString()),onChange:o=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dows)}catch{l=[]}o.target.checked&&!l.includes(n)?l.push(n):!o.target.checked&&l.includes(n)&&l.splice(l.indexOf(n),1),l.sort((c,d)=>c-d),i.period.dows=JSON.stringify(l),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:j.t(J1[n])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const e=this.state.schedule;return[v.createElement("div",{key:"every_day"},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:e.period.days===1&&!e.period.dows,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",this.onChange(r)}}),label:j.t("sch_periodEveryDay")})),v.createElement("div",{key:"everyN_day"},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:e.period.days>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=2,r.period.dows="",this.onChange(r)}}),label:j.t("sch_periodEvery")}),e.period.days>1&&[v.createElement(bo,{key:"input",value:this.state.schedule.period.days,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=parseInt(r.target.value,10),n.period.dows="",this.onChange(n)}}),v.createElement("span",{key:"span",style:{paddingRight:10}},j.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const e=this.state.schedule;return[v.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},v.createElement("div",null,v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:e.period.weeks===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=1,this.onChange(r)}}),label:j.t("sch_periodEveryWeek")})),v.createElement("div",null,v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:e.period.weeks>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=2,this.onChange(r)}}),label:j.t("sch_periodEvery")}),e.period.weeks>1&&[v.createElement(bo,{key:"input",value:this.state.schedule.period.weeks,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement("span",{key:"text"},j.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const e=this.state.schedule,r=[];for(let o=1;o<=31;o++)r.push(o);const n=JSON.parse(e.period.dates);return v.createElement(Mm,{row:!0,style:{...de.inputGroup,maxWidth:620}},v.createElement(dt,{style:de.inputDateDay,control:v.createElement(Wr,{style:de.inputDateDayCheck,checked:n.length===31,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let l=1;l<=31;l++)i.push(l);o.period.dates=JSON.stringify(i),this.onChange(o)}}),label:j.t("sch_all")}),v.createElement(dt,{style:de.inputDateDay,control:v.createElement(Wr,{style:de.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dates="[]",this.onChange(o)}}),label:j.t("sch_no_one")}),n.length!==31&&!!n.length&&v.createElement(dt,{style:de.inputDateDay,control:v.createElement(Wr,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),i=[],l=JSON.parse(o.period.dates);for(let c=1;c<=31;c++)l.includes(c)||i.push(c);i.sort((c,d)=>c-d),o.period.dates=JSON.stringify(i),this.onChange(o)}}),label:j.t("sch_invert")}),v.createElement("div",null),r.map(o=>v.createElement(dt,{key:`date_${o}`,style:o?de.inputDateDay:{...de.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:v.createElement(Wr,{style:de.inputDateDayCheck,checked:JSON.parse(e.period.dates).includes(o),onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.dates)}catch{c=[]}i.target.checked&&!c.includes(o)?c.push(o):!i.target.checked&&c.includes(o)&&c.splice(c.indexOf(o),1),c.sort((d,f)=>d-f),l.period.dates=JSON.stringify(c),this.onChange(l)}}),label:o<10?[v.createElement("span",{key:"0",style:{opacity:0}},"0"),v.createElement("span",{key:"num"},o)]:o})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const e=this.state.schedule,r=typeof e.period.months=="string"?JSON.parse(e.period.months):[];return[v.createElement("div",{key:"every"},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:typeof e.period.months=="number"&&e.period.months===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,this.onChange(e)}}),label:j.t("sch_periodEveryMonth")})),v.createElement("div",{key:"everyN"},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:typeof e.period.months=="number"&&e.period.months>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=2,this.onChange(n)}}),label:j.t("sch_periodEvery")}),typeof e.period.months=="number"&&e.period.months>1&&[v.createElement(bo,{key:"input",value:e.period.months,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=parseInt(n.target.value,10),o.period.months<1&&(o.period.months=1),this.onChange(o)}}),v.createElement("span",{key:"text"},j.t("sch_periodMonth"))]),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(dt,{style:{verticalAlign:"top"},control:v.createElement(Lt,{style:de.inputRadio,checked:typeof e.period.months=="string",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(n)}}),label:j.t("sch_periodSpecificMonths")}),typeof e.period.months=="string"&&v.createElement(Mm,{row:!0,style:de.inputGroup},v.createElement(dt,{style:de.inputDateDay,control:v.createElement(Wr,{style:de.inputDateDayCheck,checked:r.length===12,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[];for(let i=1;i<=12;i++)o.push(i);n.period.months=JSON.stringify(o),this.onChange(n)}}),label:j.t("sch_all")}),v.createElement(dt,{style:de.inputDateDay,control:v.createElement(Wr,{style:de.inputDateDayCheck,checked:!r.length,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[]",this.onChange(n)}}),label:j.t("sch_no_one")}),r.length!==12&&!!r.length&&v.createElement(dt,{style:de.inputDateDay,control:v.createElement(Wr,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[],i=JSON.parse(n.period.months);for(let l=1;l<=12;l++)i.includes(l)||o.push(l);o.sort((l,c)=>l-c),n.period.months=JSON.stringify(o),this.onChange(n)}}),label:j.t("sch_invert")}),v.createElement("div",null),Up.map((n,o)=>v.createElement(dt,{key:`month_${o}`,style:de.inputGroupElement,control:v.createElement(Wr,{style:de.inputSmallCheck,checked:typeof e.period.months=="string"?JSON.parse(e.period.months).includes(o+1):e.period.months===o,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.months)}catch{c=[]}i.target.checked&&!c.includes(o+1)?c.push(o+1):!i.target.checked&&c.includes(o+1)&&c.splice(c.indexOf(o+1),1),c.sort((d,f)=>d-f),l.period.months=JSON.stringify(c),this.onChange(l)}}),label:j.t(n)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const e=this.state.schedule;return[v.createElement("div",{key:"year"},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:e.period.years===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,this.onChange(r)}}),label:j.t("sch_periodEveryYear")})),v.createElement("div",{key:"every"},v.createElement(dt,{control:v.createElement(Lt,{style:de.inputRadio,checked:e.period.years>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=2,this.onChange(r)}}),label:j.t("sch_periodEvery")}),e.period.years>1&&[v.createElement(bo,{key:"input",value:this.state.schedule.period.years,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=parseInt(r.target.value,10),n.period.years<1&&(n.period.years=1),this.onChange(n)}}),v.createElement("span",{key:"text"},j.t("sch_periodYear"))])]}static now2string(e){const r=new Date;return r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0),e&&(r.setDate(r.getDate()+2),r.setMilliseconds(r.getMilliseconds()-1)),`${Vo(r.getDate())}.${Vo(r.getMonth()+1)}.${Vo(r.getFullYear())}`}static string2date(e){let r=e.split(".");return r.length===1?(r=e.split("-"),new Date(parseInt(r[0],10),parseInt(r[1],10)-1,parseInt(r[2],10))):new Date(parseInt(r[2],10),parseInt(r[1],10)-1,parseInt(r[0],10))}getValidSettings(){const e=this.state.schedule;return v.createElement("div",{style:de.rowDiv},v.createElement("div",{style:{...de.modeDiv,verticalAlign:"middle"}},v.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},j.t("sch_valid")),v.createElement("span",null,j.t("sch_validFrom"))),v.createElement("div",{style:de.settingsDiv},v.createElement(zr,{variant:"standard",style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:Z1(e.valid.from),type:"date",onChange:r=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(n=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),i=kr.string2date(n);i.toString()!=="Invalid Date"&&(o.valid.from=`${Vo(i.getDate())}.${Vo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),v.createElement(dt,{control:v.createElement(Wr,{style:de.inputRadio,checked:!!e.valid.to,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.valid.to=r.valid.to?"":kr.now2string(!0),this.onChange(r)}}),label:j.t("sch_validTo")}),!!e.valid.to&&v.createElement(zr,{variant:"standard",inputRef:this.refTo,style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:Z1(e.valid.to),onChange:r=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(n=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),i=kr.string2date(n);i.toString()!=="Invalid Date"&&(o.valid.to=`${Vo(i.getDate())}.${Vo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return v.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},v.createElement("div",null,this.state.desc),v.createElement("div",{style:de.scrollWindow},v.createElement("h5",null,j.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),kr.getDivider(),v.createElement("h5",null,j.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&kr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}function zK({themeName:t,toggleTheme:e,t:r,className:n,style:o,size:i}){return v.createElement("div",{className:n||void 0,style:o||void 0},v.createElement(od,{title:r("ra_Change color theme"),slotProps:{popper:{sx:{pointerEvents:"none"}}}},v.createElement(hr,{onClick:()=>e(),size:i||"medium"},t==="dark"&&v.createElement(bB,{className:n}),t==="blue"&&v.createElement(xB,{className:n}),t==="colored"&&v.createElement(Wy,{className:n}),t!=="dark"&&t!=="blue"&&t!=="colored"&&v.createElement(wB,{className:n}))))}function oE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function w9(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',oY=Number.isNaN||Ro.isNaN;function gt(t){return typeof t=="number"&&!oY(t)}var vE=function(e){return e>0&&e<1/0};function ev(t){return typeof t>"u"}function _a(t){return Kv(t)==="object"&&t!==null}var iY=Object.prototype.hasOwnProperty;function Gs(t){if(!_a(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&iY.call(r,"isPrototypeOf")}catch{return!1}}function tn(t){return typeof t=="function"}var aY=Array.prototype.slice;function P9(t){return Array.from?Array.from(t):aY.call(t)}function pr(t,e){return t&&tn(e)&&(Array.isArray(t)||gt(t.length)?P9(t).forEach(function(r,n){e.call(t,r,n,t)}):_a(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Vt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(i){_a(i)&&Object.keys(i).forEach(function(l){e[l]=i[l]})}),e},sY=/\.\d*(?:0|9){12}\d*$/;function el(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return sY.test(t)?Math.round(t*e)/e:t}var lY=/^width|height|left|top|marginLeft|marginTop$/;function Ni(t,e){var r=t.style;pr(e,function(n,o){lY.test(o)&>(n)&&(n="".concat(n,"px")),r[o]=n})}function cY(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function wr(t,e){if(e){if(gt(t.length)){pr(t,function(n){wr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function _o(t,e){if(e){if(gt(t.length)){pr(t,function(r){_o(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function Ks(t,e,r){if(e){if(gt(t.length)){pr(t,function(n){Ks(n,e,r)});return}r?wr(t,e):_o(t,e)}}var uY=/([a-z\d])([A-Z])/g;function W2(t){return t.replace(uY,"$1-$2").toLowerCase()}function oy(t,e){return _a(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(W2(e)))}function tu(t,e,r){_a(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(W2(e)),r)}function pY(t,e){if(_a(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(W2(e)))}var A9=/\s\s*/,I9=(function(){var t=!1;if(kf){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(i){e=i}});Ro.addEventListener("test",r,n),Ro.removeEventListener("test",r,n)}return t})();function Kn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(A9).forEach(function(i){if(!I9){var l=t.listeners;l&&l[i]&&l[i][r]&&(o=l[i][r],delete l[i][r],Object.keys(l[i]).length===0&&delete l[i],Object.keys(l).length===0&&delete t.listeners)}t.removeEventListener(i,o,n)})}function In(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(A9).forEach(function(i){if(n.once&&!I9){var l=t.listeners,c=l===void 0?{}:l;o=function(){delete c[i][r],t.removeEventListener(i,o,n);for(var f=arguments.length,g=new Array(f),u=0;uMath.abs(r)&&(r=m)})}),r}function Vp(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:w9({startX:r,startY:n},o)}function hY(t){var e=0,r=0,n=0;return pr(t,function(o){var i=o.startX,l=o.startY;e+=i,r+=l,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function $i(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",i=vE(n),l=vE(r);if(i&&l){var c=r*e;o==="contain"&&c>n||o==="cover"&&c90?{width:d,height:c}:{width:c,height:d}}function gY(t,e,r,n){var o=e.aspectRatio,i=e.naturalWidth,l=e.naturalHeight,c=e.rotate,d=c===void 0?0:c,f=e.scaleX,g=f===void 0?1:f,u=e.scaleY,m=u===void 0?1:u,y=r.aspectRatio,w=r.naturalWidth,b=r.naturalHeight,E=n.fillColor,k=E===void 0?"transparent":E,P=n.imageSmoothingEnabled,_=P===void 0?!0:P,R=n.imageSmoothingQuality,M=R===void 0?"low":R,T=n.maxWidth,O=T===void 0?1/0:T,N=n.maxHeight,$=N===void 0?1/0:N,C=n.minWidth,L=C===void 0?0:C,H=n.minHeight,W=H===void 0?0:H,X=document.createElement("canvas"),U=X.getContext("2d"),K=$i({aspectRatio:y,width:O,height:$}),ee=$i({aspectRatio:y,width:L,height:W},"cover"),Q=Math.min(K.width,Math.max(ee.width,w)),G=Math.min(K.height,Math.max(ee.height,b)),te=$i({aspectRatio:o,width:O,height:$}),I=$i({aspectRatio:o,width:L,height:W},"cover"),z=Math.min(te.width,Math.max(I.width,i)),oe=Math.min(te.height,Math.max(I.height,l)),ie=[-z/2,-oe/2,z,oe];return X.width=el(Q),X.height=el(G),U.fillStyle=k,U.fillRect(0,0,Q,G),U.save(),U.translate(Q/2,G/2),U.rotate(d*Math.PI/180),U.scale(g,m),U.imageSmoothingEnabled=_,U.imageSmoothingQuality=M,U.drawImage.apply(U,[t].concat(E9(ie.map(function(re){return Math.floor(el(re))})))),U.restore(),X}var N9=String.fromCharCode;function vY(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(N9.apply(null,P9(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function wY(t){var e=new DataView(t),r;try{var n,o,i;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var l=e.byteLength,c=2;c+1=8&&(i=f+u)}}}if(i){var m=e.getUint16(i,n),y,w;for(w=0;w=0?i:R9),height:Math.max(n.offsetHeight,l>=0?l:M9)};this.containerData=c,Ni(o,{width:c.width,height:c.height}),wr(e,rn),_o(o,rn)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,i=o?r.naturalHeight:r.naturalWidth,l=o?r.naturalWidth:r.naturalHeight,c=i/l,d=e.width,f=e.height;e.height*c>e.width?n===3?d=e.height*c:f=e.width/c:n===3?f=e.width/c:d=e.height*c;var g={aspectRatio:c,naturalWidth:i,naturalHeight:l,width:d,height:f};this.canvasData=g,this.limited=n===1||n===2,this.limitCanvas(!0,!0),g.width=Math.min(Math.max(g.width,g.minWidth),g.maxWidth),g.height=Math.min(Math.max(g.height,g.minHeight),g.maxHeight),g.left=(e.width-g.width)/2,g.top=(e.height-g.height)/2,g.oldLeft=g.left,g.oldTop=g.top,this.initialCanvasData=Vt({},g)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,i=this.canvasData,l=this.cropBoxData,c=n.viewMode,d=i.aspectRatio,f=this.cropped&&l;if(e){var g=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;c>1?(g=Math.max(g,o.width),u=Math.max(u,o.height),c===3&&(u*d>g?g=u*d:u=g/d)):c>0&&(g?g=Math.max(g,f?l.width:0):u?u=Math.max(u,f?l.height:0):f&&(g=l.width,u=l.height,u*d>g?g=u*d:u=g/d));var m=$i({aspectRatio:d,width:g,height:u});g=m.width,u=m.height,i.minWidth=g,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(r)if(c>(f?0:1)){var y=o.width-i.width,w=o.height-i.height;i.minLeft=Math.min(0,y),i.minTop=Math.min(0,w),i.maxLeft=Math.max(0,y),i.maxTop=Math.max(0,w),f&&this.limited&&(i.minLeft=Math.min(l.left,l.left+(l.width-i.width)),i.minTop=Math.min(l.top,l.top+(l.height-i.height)),i.maxLeft=l.left,i.maxTop=l.top,c===2&&(i.width>=o.width&&(i.minLeft=Math.min(0,y),i.maxLeft=Math.max(0,y)),i.height>=o.height&&(i.minTop=Math.min(0,w),i.maxTop=Math.max(0,w))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=o.width,i.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var i=mY({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),l=i.width,c=i.height,d=n.width*(l/n.naturalWidth),f=n.height*(c/n.naturalHeight);n.left-=(d-n.width)/2,n.top-=(f-n.height)/2,n.width=d,n.height=f,n.aspectRatio=l/c,n.naturalWidth=l,n.naturalHeight=c,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*o),i.height=Math.max(i.minHeight,i.height*o),i.left=r.left+(r.width-i.width)/2,i.top=r.top+(r.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=Vt({},i)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,i=this.canvasData,l=this.cropBoxData,c=this.limited,d=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,g=Number(n.minCropBoxHeight)||0,u=c?Math.min(o.width,i.width,i.width+i.left,o.width-i.left):o.width,m=c?Math.min(o.height,i.height,i.height+i.top,o.height-i.top):o.height;f=Math.min(f,o.width),g=Math.min(g,o.height),d&&(f&&g?g*d>f?g=f/d:f=g*d:f?g=f/d:g&&(f=g*d),m*d>u?m=u/d:u=m*d),l.minWidth=Math.min(f,u),l.minHeight=Math.min(g,m),l.maxWidth=u,l.maxHeight=m}r&&(c?(l.minLeft=Math.max(0,i.left),l.minTop=Math.max(0,i.top),l.maxLeft=Math.min(o.width,i.left+i.width)-l.width,l.maxTop=Math.min(o.height,i.top+i.height)-l.height):(l.minLeft=0,l.minTop=0,l.maxLeft=o.width-l.width,l.maxTop=o.height-l.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?T9:H2),Ni(this.cropBox,Vt({width:n.width,height:n.height},Fc({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),tl(this.element,Zv,this.getData())}},CY={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",l=document.createElement("img");if(r&&(l.crossOrigin=r),l.src=o,l.alt=i,this.viewBox.appendChild(l),this.viewBoxImage=l,!!n){var c=n;typeof n=="string"?c=e.ownerDocument.querySelectorAll(n):n.querySelector&&(c=[n]),this.previews=c,pr(c,function(d){var f=document.createElement("img");tu(d,Xp,{width:d.offsetWidth,height:d.offsetHeight,html:d.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=i,f.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',d.innerHTML="",d.appendChild(f)})}},resetPreview:function(){pr(this.previews,function(e){var r=oy(e,Xp);Ni(e,{width:r.width,height:r.height}),e.innerHTML=r.html,pY(e,Xp)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,i=n.height,l=e.width,c=e.height,d=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(Ni(this.viewBoxImage,Vt({width:l,height:c},Fc(Vt({translateX:-d,translateY:-f},e)))),pr(this.previews,function(g){var u=oy(g,Xp),m=u.width,y=u.height,w=m,b=y,E=1;o&&(E=m/o,b=i*E),i&&b>y&&(E=y/i,w=o*E,b=y),Ni(g,{width:w,height:b}),Ni(g.getElementsByTagName("img")[0],Vt({width:l*E,height:c*E},Fc(Vt({translateX:-d*E,translateY:-f*E},e))))}))}},TY={bind:function(){var e=this.element,r=this.options,n=this.cropper;tn(r.cropstart)&&In(e,ry,r.cropstart),tn(r.cropmove)&&In(e,ty,r.cropmove),tn(r.cropend)&&In(e,ey,r.cropend),tn(r.crop)&&In(e,Zv,r.crop),tn(r.zoom)&&In(e,ny,r.zoom),In(n,cE,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&In(n,hE,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&In(n,lE,this.onDblclick=this.dblclick.bind(this)),In(e.ownerDocument,uE,this.onCropMove=this.cropMove.bind(this)),In(e.ownerDocument,pE,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&In(window,fE,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;tn(r.cropstart)&&Kn(e,ry,r.cropstart),tn(r.cropmove)&&Kn(e,ty,r.cropmove),tn(r.cropend)&&Kn(e,ey,r.cropend),tn(r.crop)&&Kn(e,Zv,r.crop),tn(r.zoom)&&Kn(e,ny,r.zoom),Kn(n,cE,this.onCropStart),r.zoomable&&r.zoomOnWheel&&Kn(n,hE,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Kn(n,lE,this.onDblclick),Kn(e.ownerDocument,uE,this.onCropMove),Kn(e.ownerDocument,pE,this.onCropEnd),r.responsive&&Kn(window,fE,this.onResize)}},kY={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,i=r.offsetHeight/n.height,l=Math.abs(o-1)>Math.abs(i-1)?o:i;if(l!==1){var c,d;e.restore&&(c=this.getCanvasData(),d=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(pr(c,function(f,g){c[g]=f*l})),this.setCropBoxData(pr(d,function(f,g){d[g]=f*l})))}}},dblclick:function(){this.disabled||this.options.dragMode===O9||this.setDragMode(cY(this.dragBox,Jv)?_9:q2)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(gt(r)&&r!==1||gt(n)&&n!==0||e.ctrlKey))){var o=this.options,i=this.pointers,l;e.changedTouches?pr(e.changedTouches,function(c){i[c.identifier]=Vp(c)}):i[e.pointerId||0]=Vp(e),Object.keys(i).length>1&&o.zoomable&&o.zoomOnTouch?l=k9:l=oy(e.target,eu),ZK.test(l)&&tl(this.element,ry,{originalEvent:e,action:l})!==!1&&(e.preventDefault(),this.action=l,this.cropping=!1,l===C9&&(this.cropping=!0,wr(this.dragBox,Id)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),tl(this.element,ty,{originalEvent:e,action:r})!==!1&&(e.changedTouches?pr(e.changedTouches,function(o){Vt(n[o.identifier]||{},Vp(o,!0))}):Vt(n[e.pointerId||0]||{},Vp(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?pr(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Ks(this.dragBox,Id,this.cropped&&this.options.modal)),tl(this.element,ey,{originalEvent:e,action:r}))}}},_Y={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,i=this.cropBoxData,l=this.pointers,c=this.action,d=r.aspectRatio,f=i.left,g=i.top,u=i.width,m=i.height,y=f+u,w=g+m,b=0,E=0,k=o.width,P=o.height,_=!0,R;!d&&e.shiftKey&&(d=u&&m?u/m:1),this.limited&&(b=i.minLeft,E=i.minTop,k=b+Math.min(o.width,n.width,n.left+n.width),P=E+Math.min(o.height,n.height,n.top+n.height));var M=l[Object.keys(l)[0]],T={x:M.endX-M.startX,y:M.endY-M.startY},O=function($){switch($){case pa:y+T.x>k&&(T.x=k-y);break;case da:f+T.xP&&(T.y=P-w);break}};switch(c){case H2:f+=T.x,g+=T.y;break;case pa:if(T.x>=0&&(y>=k||d&&(g<=E||w>=P))){_=!1;break}O(pa),u+=T.x,u<0&&(c=da,u=-u,f-=u),d&&(m=u/d,g+=(i.height-m)/2);break;case Oi:if(T.y<=0&&(g<=E||d&&(f<=b||y>=k))){_=!1;break}O(Oi),m-=T.y,g+=T.y,m<0&&(c=Ts,m=-m,g-=m),d&&(u=m*d,f+=(i.width-u)/2);break;case da:if(T.x<=0&&(f<=b||d&&(g<=E||w>=P))){_=!1;break}O(da),u-=T.x,f+=T.x,u<0&&(c=pa,u=-u,f-=u),d&&(m=u/d,g+=(i.height-m)/2);break;case Ts:if(T.y>=0&&(w>=P||d&&(f<=b||y>=k))){_=!1;break}O(Ts),m+=T.y,m<0&&(c=Oi,m=-m,g-=m),d&&(u=m*d,f+=(i.width-u)/2);break;case yc:if(d){if(T.y<=0&&(g<=E||y>=k)){_=!1;break}O(Oi),m-=T.y,g+=T.y,u=m*d}else O(Oi),O(pa),T.x>=0?yE&&(m-=T.y,g+=T.y):(m-=T.y,g+=T.y);u<0&&m<0?(c=wc,m=-m,u=-u,g-=m,f-=u):u<0?(c=bc,u=-u,f-=u):m<0&&(c=xc,m=-m,g-=m);break;case bc:if(d){if(T.y<=0&&(g<=E||f<=b)){_=!1;break}O(Oi),m-=T.y,g+=T.y,u=m*d,f+=i.width-u}else O(Oi),O(da),T.x<=0?f>b?(u-=T.x,f+=T.x):T.y<=0&&g<=E&&(_=!1):(u-=T.x,f+=T.x),T.y<=0?g>E&&(m-=T.y,g+=T.y):(m-=T.y,g+=T.y);u<0&&m<0?(c=xc,m=-m,u=-u,g-=m,f-=u):u<0?(c=yc,u=-u,f-=u):m<0&&(c=wc,m=-m,g-=m);break;case wc:if(d){if(T.x<=0&&(f<=b||w>=P)){_=!1;break}O(da),u-=T.x,f+=T.x,m=u/d}else O(Ts),O(da),T.x<=0?f>b?(u-=T.x,f+=T.x):T.y>=0&&w>=P&&(_=!1):(u-=T.x,f+=T.x),T.y>=0?w=0&&(y>=k||w>=P)){_=!1;break}O(pa),u+=T.x,m=u/d}else O(Ts),O(pa),T.x>=0?y=0&&w>=P&&(_=!1):u+=T.x,T.y>=0?w0?c=T.y>0?xc:yc:T.x<0&&(f-=u,c=T.y>0?wc:bc),T.y<0&&(g-=m),this.cropped||(_o(this.cropBox,rn),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}_&&(i.width=u,i.height=m,i.left=f,i.top=g,this.action=c,this.renderCropBox()),pr(l,function(N){N.startX=N.endX,N.startY=N.endY})}},OY={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&wr(this.dragBox,Id),_o(this.cropBox,rn),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Vt({},this.initialImageData),this.canvasData=Vt({},this.initialCanvasData),this.cropBoxData=Vt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Vt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),_o(this.dragBox,Id),wr(this.cropBox,rn)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,pr(this.previews,function(n){n.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,_o(this.cropper,aE)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,wr(this.cropper,aE)),this},destroy:function(){var e=this.element;return e[Ut]?(e[Ut]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,i=n.top;return this.moveTo(ev(e)?e:o+Number(e),ev(r)?r:i+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(gt(e)&&(n.left=e,o=!0),gt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,i=this.canvasData,l=i.width,c=i.height,d=i.naturalWidth,f=i.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var g=d*e,u=f*e;if(tl(this.element,ny,{ratio:e,oldRatio:l/d,originalEvent:n})===!1)return this;if(n){var m=this.pointers,y=D9(this.cropper),w=m&&Object.keys(m).length?hY(m):{pageX:n.pageX,pageY:n.pageY};i.left-=(g-l)*((w.pageX-y.left-i.left)/l),i.top-=(u-c)*((w.pageY-y.top-i.top)/c)}else Gs(r)&>(r.x)&>(r.y)?(i.left-=(g-l)*((r.x-i.left)/l),i.top-=(u-c)*((r.y-i.top)/c)):(i.left-=(g-l)/2,i.top-=(u-c)/2);i.width=g,i.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),gt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,gt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(gt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(gt(e)&&(n.scaleX=e,o=!0),gt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,i=this.cropBoxData,l;if(this.ready&&this.cropped){l={x:i.left-o.left,y:i.top-o.top,width:i.width,height:i.height};var c=n.width/n.naturalWidth;if(pr(l,function(g,u){l[u]=g/c}),e){var d=Math.round(l.y+l.height),f=Math.round(l.x+l.width);l.x=Math.round(l.x),l.y=Math.round(l.y),l.width=f-l.x,l.height=d-l.y}}else l={x:0,y:0,width:0,height:0};return r.rotatable&&(l.rotate=n.rotate||0),r.scalable&&(l.scaleX=n.scaleX||1,l.scaleY=n.scaleY||1),l},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,i={};if(this.ready&&!this.disabled&&Gs(e)){var l=!1;r.rotatable&>(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,l=!0),r.scalable&&(gt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,l=!0),gt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,l=!0)),l&&this.renderCanvas(!0,!0);var c=n.width/n.naturalWidth;gt(e.x)&&(i.left=e.x*c+o.left),gt(e.y)&&(i.top=e.y*c+o.top),gt(e.width)&&(i.width=e.width*c),gt(e.height)&&(i.height=e.height*c),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?Vt({},this.containerData):{}},getImageData:function(){return this.sized?Vt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&pr(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&Gs(e)&&(gt(e.left)&&(r.left=e.left),gt(e.top)&&(r.top=e.top),gt(e.width)?(r.width=e.width,r.height=e.width/n):gt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,i;return this.ready&&this.cropped&&!this.disabled&&Gs(e)&&(gt(e.left)&&(r.left=e.left),gt(e.top)&&(r.top=e.top),gt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),gt(e.height)&&e.height!==r.height&&(i=!0,r.height=e.height),n&&(o?r.height=r.width/n:i&&(r.width=r.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var r=this.canvasData,n=gY(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),i=o.x,l=o.y,c=o.width,d=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(i*=f,l*=f,c*=f,d*=f);var g=c/d,u=$i({aspectRatio:g,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),m=$i({aspectRatio:g,width:e.minWidth||0,height:e.minHeight||0},"cover"),y=$i({aspectRatio:g,width:e.width||(f!==1?n.width:c),height:e.height||(f!==1?n.height:d)}),w=y.width,b=y.height;w=Math.min(u.width,Math.max(m.width,w)),b=Math.min(u.height,Math.max(m.height,b));var E=document.createElement("canvas"),k=E.getContext("2d");E.width=el(w),E.height=el(b),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,w,b);var P=e.imageSmoothingEnabled,_=P===void 0?!0:P,R=e.imageSmoothingQuality;k.imageSmoothingEnabled=_,R&&(k.imageSmoothingQuality=R);var M=n.width,T=n.height,O=i,N=l,$,C,L,H,W,X;O<=-c||O>M?(O=0,$=0,L=0,W=0):O<=0?(L=-O,O=0,$=Math.min(M,c+O),W=$):O<=M&&(L=0,$=Math.min(c,M-O),W=$),$<=0||N<=-d||N>T?(N=0,C=0,H=0,X=0):N<=0?(H=-N,N=0,C=Math.min(T,d+N),X=C):N<=T&&(H=0,C=Math.min(d,T-N),X=C);var U=[O,N,$,C];if(W>0&&X>0){var K=w/c;U.push(L*K,H*K,W*K,X*K)}return k.drawImage.apply(k,[n].concat(E9(U.map(function(ee){return Math.floor(el(ee))})))),E},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!ev(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var i=e===q2,l=r.movable&&e===_9;e=i||l?e:O9,r.dragMode=e,tu(n,eu,e),Ks(n,Jv,i),Ks(n,Qv,l),r.cropBoxMovable||(tu(o,eu,e),Ks(o,Jv,i),Ks(o,Qv,l))}return this}},RY=Ro.Cropper,$9=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(HK(this,t),!e||!rY.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Vt({},gE,Gs(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return qK(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Ut]){if(r[Ut]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,i=this.options;if(!i.rotatable&&!i.scalable&&(i.checkOrientation=!1),!i.checkOrientation||!window.ArrayBuffer){this.clone();return}if(eY.test(r)){tY.test(r)?this.read(bY(r)):this.clone();return}var l=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=c,l.onerror=c,l.ontimeout=c,l.onprogress=function(){l.getResponseHeader("content-type")!==mE&&l.abort()},l.onload=function(){n.read(l.response)},l.onloadend=function(){n.reloading=!1,n.xhr=null},i.checkCrossOrigin&&yE(r)&&o.crossOrigin&&(r=bE(r)),l.open("GET",r,!0),l.responseType="arraybuffer",l.withCredentials=o.crossOrigin==="use-credentials",l.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,i=wY(r),l=0,c=1,d=1;if(i>1){this.url=xY(r,mE);var f=SY(i);l=f.rotate,c=f.scaleX,d=f.scaleY}n.rotatable&&(o.rotate=l),n.scalable&&(o.scaleX=c,o.scaleY=d),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,i=n;this.options.checkCrossOrigin&&yE(n)&&(o||(o="anonymous"),i=bE(n)),this.crossOrigin=o,this.crossOriginUrl=i;var l=document.createElement("img");o&&(l.crossOrigin=o),l.src=i||n,l.alt=r.alt||"The image to crop",this.image=l,l.onload=this.start.bind(this),l.onerror=this.stop.bind(this),wr(l,sE),r.parentNode.insertBefore(l,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=Ro.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Ro.navigator.userAgent),i=function(f,g){Vt(r.imageData,{naturalWidth:f,naturalHeight:g,aspectRatio:f/g}),r.initialImageData=Vt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){i(n.naturalWidth,n.naturalHeight);return}var l=document.createElement("img"),c=document.body||document.documentElement;this.sizingImage=l,l.onload=function(){i(l.width,l.height),o||c.removeChild(l)},l.src=n.src,o||(l.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",c.appendChild(l))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,i=r.parentNode,l=document.createElement("div");l.innerHTML=nY;var c=l.querySelector(".".concat(Ut,"-container")),d=c.querySelector(".".concat(Ut,"-canvas")),f=c.querySelector(".".concat(Ut,"-drag-box")),g=c.querySelector(".".concat(Ut,"-crop-box")),u=g.querySelector(".".concat(Ut,"-face"));this.container=i,this.cropper=c,this.canvas=d,this.dragBox=f,this.cropBox=g,this.viewBox=c.querySelector(".".concat(Ut,"-view-box")),this.face=u,d.appendChild(o),wr(r,rn),i.insertBefore(c,r.nextSibling),_o(o,sE),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,wr(g,rn),n.guides||wr(g.getElementsByClassName("".concat(Ut,"-dashed")),rn),n.center||wr(g.getElementsByClassName("".concat(Ut,"-center")),rn),n.background&&wr(c,"".concat(Ut,"-bg")),n.highlight||wr(u,KK),n.cropBoxMovable&&(wr(u,Qv),tu(u,eu,H2)),n.cropBoxResizable||(wr(g.getElementsByClassName("".concat(Ut,"-line")),rn),wr(g.getElementsByClassName("".concat(Ut,"-point")),rn)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),tn(n.ready)&&In(r,dE,n.ready,{once:!0}),tl(r,dE)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),_o(this.element,rn)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=RY,t}},{key:"setDefaults",value:function(r){Vt(gE,Gs(r)&&r)}}])})();Vt($9.prototype,EY,CY,TY,kY,_Y,OY);var ya=function(){return ya=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&N.zoomTo(ee)})(O.currentTarget.cropper,_),E&&E(O)}}));k&&k(T)}return function(){var O,N;(N=(O=R.current)===null||O===void 0?void 0:O.cropper)===null||N===void 0||N.destroy()}}),[R]);var M=(function(T){return MY.reduce((function(O,N){var $=O,C=N;return $[C],rv($,[typeof C=="symbol"?C:C+""])}),T)})(ya(ya({},P),{crossOrigin:d,src:i,alt:b}));return v.createElement("div",{style:l,className:c},v.createElement("img",ya({},M,{style:PY,ref:R})))}));const Ri={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},AY={once:"once"},Fr={seconds:"seconds",minutes:"minutes"},xE=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function xo(t){return t<10?`0${t}`:`${t}`}const IY={mode:"interval",interval:{period:1,unit:Fr.minutes}};function sd(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const i=parseInt(o[0],10),l=parseInt(o[1],10);for(let c=i;c<=l;c++)r.includes(c===7?0:c)||r.push(c===7?0:c)}else{n==="7"&&(n="0");const i=parseInt(n,10);r.includes(i)||r.push(i)}}),r.sort(),r}function L9(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Fr.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Fr.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Fr.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Fr.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Fr.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:sd(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Fr.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:sd(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${xo(parseInt(n.hours,10))}:${xo(parseInt(n.minutes,10))}`,weekdays:sd(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${xo(parseInt(n.hours,10))}:${xo(parseInt(n.minutes,10))}`,date:`${xo(parseInt(n.date,10))}.${xo(parseInt(n.months,10))}`}}),o}class ru extends v.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=L9(r||"* * * * *",!0)||IY;this.state={extended:!1,cron:ru.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Fr.minutes},intervalBetween:{period:1,unit:Fr.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,i=null;if(!e.length)return"_";for(let l=0;l60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Fr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Fr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Fr.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Fr.minutes,n.unit){case Fr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Fr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let i=parseInt(o[1],10)||0;i>59&&(i=59),i<0&&(i=0);let l=parseInt(o[0],10)||0;l>23&&(l=23),l<0&&(l=0),r=`${i} ${l} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${xo(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),i=n.date.split(".");let l=parseInt(o[1],10)||0;l>59&&(l=59),l<0&&(l=0);let c=parseInt(o[0],10)||0;c>23&&(c=23),c<0&&(c=0);let d=parseInt(i[0],10)||1;d>31&&(d=31),d<1&&(d=1);let f=parseInt(i[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${l} ${c} ${d} ${f} *`}return r}recalcCron(){this.onChange(ru.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return v.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},v.createElement("h5",null,j.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>v.createElement(dt,{key:xE[n],control:v.createElement(Wr,{checked:r.weekdays.includes(n),onChange:o=>{const i=JSON.parse(JSON.stringify(this.state[e])),l=i.weekdays.indexOf(n);o.target.checked?l===-1&&i.weekdays.push(n):l!==-1&&i.weekdays.splice(l,1),i.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:i},()=>this.recalcCron()):this.setState({specific:i},()=>this.recalcCron())},value:n.toString()}),label:j.t(xE[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},j.t("sc_period")),v.createElement(zr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:j.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(zr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:j.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},j.t("sc_period")),v.createElement(zr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:j.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(So,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},v.createElement(mr,{value:"seconds"},j.t("sc_seconds")),")",v.createElement(mr,{value:"minutes"},j.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return v.createElement(_s,{variant:"standard",sx:{...Ri.formControl,"&.MuiFormControl-root":Ri.formControlMarginRight}},v.createElement(zr,{variant:"standard",key:"at",label:j.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${xo(r.getMonth()+1)}`}return v.createElement(_s,{variant:"standard",style:Ri.formControl},v.createElement(zr,{variant:"standard",key:"date",label:j.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:Ri.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return v.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),v.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},v.createElement("h5",{style:{marginBottom:5}},j.t("sc_hours")),v.createElement(_s,{variant:"standard",style:Ri.formControl},v.createElement(nd,{shrink:!0,htmlFor:"age-label-placeholder"},j.t("sc_from")),v.createElement(So,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(mr,{key:`B_${r}`,value:r},`${xo(r)}:00`)))),v.createElement(_s,{variant:"standard",style:Ri.formControl},v.createElement(nd,{shrink:!0,htmlFor:"age-label-placeholder"},j.t("sc_to")),v.createElement(So,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(mr,{key:`A_${r}`,value:r},`${xo(r)}:00`)),!e.timeFrom&&v.createElement(mr,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[v.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return v.createElement("div",{style:Ri.mainDiv},v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},v.createElement(zr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?j.t("sc_invalid_cron"):o9(this.state.cron,this.props.language||"en")),v.createElement("div",null,v.createElement(_s,{variant:"standard",style:{...Ri.formControl,marginLeft:8,marginTop:8}},v.createElement(nd,null,j.t("ra_Repeat")),v.createElement(So,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},v.createElement(mr,{value:"once"},j.t("sc_once")),v.createElement(mr,{value:"interval"},j.t("sc_interval")),v.createElement(mr,{value:"intervalBetween"},j.t("sc_intervalBetween")),v.createElement(mr,{value:"specific"},j.t("sc_specific"))))),this.state.mode===AY.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const DY={dialogPaper:{height:"calc(100% - 96px)"}};class eJ extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Di.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?v.createElement(iF,{title:j.t("ra_Please confirm"),text:j.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return v.createElement(ei,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":DY.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),v.createElement(ni,{id:"cron-dialog-title"},this.props.title||j.t("ra_Define schedule...")),v.createElement(ri,{style:{height:"100%",overflow:"hidden"}},v.createElement(Di,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:j.getLanguage()})),v.createElement(ti,null,!!this.props.clearButton&&v.createElement(Yt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:v.createElement(id,null)},this.props.clear||j.t("ra_Clear")),v.createElement(Yt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Xi,null)},this.props.ok||j.t("ra_Ok")),v.createElement(Yt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(lf,null)},this.props.cancel||j.t("ra_Cancel"))))}}const NY={dialogPaper:{height:"calc(100% - 96px)"}};class tJ extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":L9(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return v.createElement(ei,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":NY.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(ni,{id:"cron-dialog-title"},this.props.title||j.t("ra_Define schedule...")),v.createElement(ri,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?v.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&v.createElement(v.Fragment,null,v.createElement(Lt,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),v.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},j.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&v.createElement(v.Fragment,null,v.createElement(Lt,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),v.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},j.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&v.createElement(v.Fragment,null,v.createElement(Lt,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),v.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},j.t("sc_cron")))):null,this.state.mode==="simple"&&v.createElement(ru,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:j.getLanguage()}),this.state.mode==="wizard"&&v.createElement(kr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&v.createElement(Di,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:j.getLanguage()})),v.createElement(ti,null,v.createElement(Yt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Xi,null)},this.props.ok||j.t("ra_Ok")),v.createElement(Yt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(lf,null)},this.props.cancel||j.t("ra_Cancel"))))}}const fa={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class rJ extends v.Component{dialogName;filters;constructor(e){super(e),this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const r=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(r)}catch{this.filters={}}e.filters&&(this.filters={...this.filters,...e.filters});let n=this.props.selected||[];typeof n!="object"?n=[n]:n=[...n],n=n.filter(o=>o),this.state={selected:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let e;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?e=[v.createElement("span",{key:"selected"},j.t("ra_Selected")," "),v.createElement("span",{key:"id",style:fa.headerID},this.state.selected)]:e=[v.createElement("span",{key:"selected"},j.t("ra_Selected")," "),v.createElement("span",{key:"id",style:fa.headerID},j.t("%s items",this.state.selected.length))]:e=this.props.title||j.t("ra_Please select file..."),v.createElement(ei,{onClose:()=>{},maxWidth:!1,style:{zIndex:this.props.zIndex||void 0},sx:{"& .MuiDialog-paper":{...fa.dialog,...fa.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},v.createElement(ni,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":fa.titleRoot}},e),v.createElement(ri,{style:{...fa.content,...fa.contentMobile}},v.createElement(WG,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(r,n,o)=>{this.setState({selected:Array.isArray(r)?r:[r]},()=>n&&(!this.props.selectOnlyFolders||o)&&this.handleOk())},t:this.props.t||j.t,lang:this.props.lang||j.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),v.createElement(ti,null,v.createElement(Yt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:v.createElement(Xi,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||j.t("ra_Ok")),v.createElement(Yt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(lf,null)},this.props.cancel||j.t("ra_Cancel"))))}}const $Y={dialogPaper:{height:"calc(100% - 96px)"}};class nJ extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return v.createElement(ei,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":$Y.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(ni,{id:"cron-dialog-title"},this.props.title||j.t("ra_Define CRON...")),v.createElement(ri,{style:{height:"100%",overflow:"hidden"}},v.createElement(ru,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:j.getLanguage()})),v.createElement(ti,null,v.createElement(Yt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Xi,null)},this.props.ok||j.t("ra_Ok")),v.createElement(Yt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(lf,null)},this.props.cancel||j.t("ra_Cancel"))))}}const LY={"Sign out":"Sign out"},BY={"Sign out":"Abmelden"},FY={"Sign out":"Выйти"},zY={"Sign out":"sair"},jY={"Sign out":"Afmelden"},HY={"Sign out":"se déconnecter"},qY={"Sign out":"disconnessione"},WY={"Sign out":"desconectar"},UY={"Sign out":"Wyloguj się"},XY={"Sign out":"Вийти"},VY={"Sign out":"登出"},GY="0 8px 17px 0 rgba(0, 0, 0, .2),0 6px 20px 0 rgba(0, 0, 0, .19)",ha={root:t=>({padding:".75rem",[t.breakpoints.up("xl")]:{flex:"0 1 20%"}}),card:{display:"flex",flexDirection:"column",alignItems:"stretch",minHeight:"235px",position:"relative",overflow:"hidden",maxHeight:"235p","&:hover":{overflowY:"auto",boxShadow:GY}},img:{width:120,height:"auto",padding:"2rem .5rem",maxWidth:"100%"},content:{height:"170px",flexGrow:1,overflowY:"hidden"},action:{minHeight:"49px",padding:"16px 24px",justifyContent:"center",fontSize:"1.4rem"},contentGrid:{height:"100%",alignItems:"center"},colorOrange:t=>({color:t.palette.mode==="dark"?"#3399CC":"#164477"})};class Go extends A.Component{constructor(e){super(e);const r=Go.createTheme();this.state={theme:r,themeName:Go.getThemeName(r),themeType:Go.getThemeType(r),config:null,cards:[]},r.palette.mode==="dark"&&(document.body.style.backgroundColor="#030303"),j.setTranslations({en:LY,de:BY,ru:FY,pt:zY,nl:jY,fr:HY,it:qY,es:WY,pl:UY,uk:XY,"zh-cn":VY})}componentDidMount(){fetch("config.json").then(e=>e.json()).then(e=>{j.setLanguage(e.systemLang);const r=[];for(let n=0;ni.link===e.list[n].link)||r.push({link:e.list[n].link,img:e.list[n].img,name:o+(e.list[n].instance!==void 0?`.${e.list[n].instance}`:""),order:e.list[n].order})}this.setState({config:e,cards:r})})}static createTheme(e){return QB(Je.getThemeName(e))}static getThemeName(e){return e.name}static getThemeType(e){return e.palette.mode}toggleTheme=e=>{const r=this.state.themeName,n=e||Je.toggleTheme(r),o=Go.createTheme(n);o.palette.mode==="dark"?document.body.style.backgroundColor="#030303":document.body.style.backgroundColor="#f0f0f0",this.setState({theme:o,themeName:n,themeType:Go.getThemeType(o)})};static onLogout(){window.localStorage.removeItem("refresh_token"),window.localStorage.removeItem("refresh_token_exp"),window.localStorage.removeItem("access_token_exp"),window.sessionStorage.removeItem("refresh_token"),window.sessionStorage.removeItem("refresh_token_exp"),window.sessionStorage.removeItem("access_token_exp"),window.location.href="/logout"}renderCard(e,r){return B.jsx(Rv,{size:{xs:12,sm:6,md:4,lg:3,xl:2},sx:Je.getStyle(this.state.theme,ha.root),style:{maxWidth:350,width:"100%"},children:B.jsx(C$,{href:e.link,underline:"none",target:"_self",rel:"noopener noreferrer",children:B.jsxs(hD,{sx:ha.card,children:[B.jsx(SD,{style:ha.content,children:B.jsx(Rv,{container:!0,direction:"column",wrap:"nowrap",style:ha.contentGrid,children:B.jsx(OD,{style:ha.img,component:"img",image:e.img})})}),B.jsx(Ov,{}),B.jsxs(yD,{style:ha.action,children:[B.jsx(ht,{sx:ha.colorOrange,style:{flexGrow:1,textAlign:"center"},children:e.name}),B.jsx(hr,{onClick:n=>{n.stopPropagation(),n.preventDefault(),window.open(e.link,e.name)},children:B.jsx(IB,{})})]})]})})},r)}render(){const e=window.innerWidth<600;return B.jsx(_O,{injectFirst:!0,children:B.jsxs(gP,{theme:this.state.theme,children:[B.jsx(AC,{style:{backgroundColor:this.state.theme.palette.mode==="dark"?void 0:"#f0f0f0"},children:B.jsxs(qy,{style:{gap:8},children:[B.jsx("img",{src:"logo.svg",alt:"Logo",style:{height:e?32:48}}),B.jsx("div",{style:{flexGrow:1,textAlign:"center"},children:e?"":"ioBroker.web"}),this.state.config?.authEnabled?e?B.jsx(hr,{onClick:()=>Go.onLogout(),children:B.jsx(f5,{})}):B.jsx(Yt,{variant:"outlined",startIcon:B.jsx(f5,{}),onClick:()=>Go.onLogout(),children:j.t("Sign out")}):null,this.state.themeName!=="PT"&&this.state.themeName!=="DX"?B.jsx(zK,{t:j.t,themeName:this.state.themeName,toggleTheme:()=>this.toggleTheme()}):null]})}),B.jsx(vl,{className:this.state.themeType==="dark"?"theme-dark":"theme-light",style:{backgroundColor:this.state.themeType==="dark"?"#080808":"#f0f0f0",display:"flex",flexFlow:"wrap",overflow:"auto",justifyContent:"center",width:"calc(100% - 1rem)",height:"calc(100% - 1rem - 64px)",marginTop:64,overflowY:"auto",padding:"0.5rem"},component:"div",children:this.state.cards.map((r,n)=>this.renderCard(r,n))})]})})}}window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function KY(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const wE=document.getElementById("root");wE&&Bk.createRoot(wE).render(B.jsx(Go,{}));KY()});export default YY(); diff --git a/src-www/build/index.html b/src-www/build/index.html index ee6dffc8..a11af6db 100644 --- a/src-www/build/index.html +++ b/src-www/build/index.html @@ -97,7 +97,7 @@ window.loginLanguage = lang; } - + diff --git a/www/assets/index-DqtpjWjP.js b/www/assets/index-DqtpjWjP.js new file mode 100644 index 00000000..b52ff8ed --- /dev/null +++ b/www/assets/index-DqtpjWjP.js @@ -0,0 +1,277 @@ +var P7=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var dK=P7((un,pn)=>{function I7(t,e){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var np=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ri(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Nh={exports:{}},jl={},$h={exports:{}},ut={};var jx;function A7(){if(jx)return ut;jx=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),u=Symbol.iterator;function m(F){return F===null||typeof F!="object"?null:(F=u&&F[u]||F["@@iterator"],typeof F=="function"?F:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function E(F,J,pe){this.props=F,this.context=J,this.refs=x,this.updater=pe||y}E.prototype.isReactComponent={},E.prototype.setState=function(F,J){if(typeof F!="object"&&typeof F!="function"&&F!=null)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,F,J,"setState")},E.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function k(){}k.prototype=E.prototype;function I(F,J,pe){this.props=F,this.context=J,this.refs=x,this.updater=pe||y}var O=I.prototype=new k;O.constructor=I,w(O,E.prototype),O.isPureReactComponent=!0;var R=Array.isArray,M=Object.prototype.hasOwnProperty,T={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function N(F,J,pe){var de,ie={},fe=null,Se=null;if(J!=null)for(de in J.ref!==void 0&&(Se=J.ref),J.key!==void 0&&(fe=""+J.key),J)M.call(J,de)&&!P.hasOwnProperty(de)&&(ie[de]=J[de]);var Ce=arguments.length-2;if(Ce===1)ie.children=pe;else if(1>>1,J=Z[F];if(0>>1;Fo(ie,ee))feo(Se,ie)?(Z[F]=Se,Z[fe]=ee,F=fe):(Z[F]=ie,Z[de]=ee,F=de);else if(feo(Se,ee))Z[F]=Se,Z[fe]=ee,F=fe;else break e}}return V}function o(Z,V){var ee=Z.sortIndex-V.sortIndex;return ee!==0?ee:Z.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var d=[],f=[],g=1,u=null,m=3,y=!1,w=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(Z){for(var V=r(f);V!==null;){if(V.callback===null)n(f);else if(V.startTime<=Z)n(f),V.sortIndex=V.expirationTime,e(d,V);else break;V=r(f)}}function R(Z){if(x=!1,O(Z),!w)if(r(d)!==null)w=!0,K(M);else{var V=r(f);V!==null&&re(R,V.startTime-Z)}}function M(Z,V){w=!1,x&&(x=!1,k(N),N=-1),y=!0;var ee=m;try{for(O(V),u=r(d);u!==null&&(!(u.expirationTime>V)||Z&&!$());){var F=u.callback;if(typeof F=="function"){u.callback=null,m=u.priorityLevel;var J=F(u.expirationTime<=V);V=t.unstable_now(),typeof J=="function"?u.callback=J:u===r(d)&&n(d),O(V)}else n(d);u=r(d)}if(u!==null)var pe=!0;else{var de=r(f);de!==null&&re(R,de.startTime-V),pe=!1}return pe}finally{u=null,m=ee,y=!1}}var T=!1,P=null,N=-1,D=5,C=-1;function $(){return!(t.unstable_now()-CZ||125F?(Z.sortIndex=ee,e(f,Z),r(d)===null&&Z===r(f)&&(x?(k(N),N=-1):x=!0,re(R,ee-F))):(Z.sortIndex=J,e(d,Z),w||y||(w=!0,K(M))),Z},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(Z){var V=m;return function(){var ee=m;m=V;try{return Z.apply(this,arguments)}finally{m=ee}}}})(Fh)),Fh}var Xx;function L7(){return Xx||(Xx=1,Bh.exports=$7()),Bh.exports}var Vx;function B7(){if(Vx)return Ur;Vx=1;var t=ga(),e=L7();function r(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,p=1;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,g={},u={};function m(i){return d.call(u,i)?!0:d.call(g,i)?!1:f.test(i)?u[i]=!0:(g[i]=!0,!1)}function y(i,s,p,h){if(p!==null&&p.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return h?!1:p!==null?!p.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function w(i,s,p,h){if(s===null||typeof s>"u"||y(i,s,p,h))return!0;if(h)return!1;if(p!==null)switch(p.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function x(i,s,p,h,b,S,A){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=h,this.attributeNamespace=b,this.mustUseProperty=p,this.propertyName=i,this.type=s,this.sanitizeURL=S,this.removeEmptyString=A}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){E[i]=new x(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];E[s]=new x(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){E[i]=new x(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){E[i]=new x(i,2,!1,i,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(i){E[i]=new x(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){E[i]=new x(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){E[i]=new x(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){E[i]=new x(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){E[i]=new x(i,5,!1,i.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function I(i){return i[1].toUpperCase()}"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(i){var s=i.replace(k,I);E[s]=new x(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(k,I);E[s]=new x(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(k,I);E[s]=new x(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){E[i]=new x(i,1,!1,i.toLowerCase(),null,!1,!1)}),E.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){E[i]=new x(i,1,!1,i.toLowerCase(),null,!0,!0)});function O(i,s,p,h){var b=E.hasOwnProperty(s)?E[s]:null;(b!==null?b.type!==0:h||!(2B||b[A]!==S[B]){var j=` +`+b[A].replace(" at new "," at ");return i.displayName&&j.includes("")&&(j=j.replace("",i.displayName)),j}while(1<=A&&0<=B);break}}}finally{pe=!1,Error.prepareStackTrace=p}return(i=i?i.displayName||i.name:"")?J(i):""}function ie(i){switch(i.tag){case 5:return J(i.type);case 16:return J("Lazy");case 13:return J("Suspense");case 19:return J("SuspenseList");case 0:case 2:case 15:return i=de(i.type,!1),i;case 11:return i=de(i.type.render,!1),i;case 1:return i=de(i.type,!0),i;default:return""}}function fe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case P:return"Fragment";case T:return"Portal";case D:return"Profiler";case N:return"StrictMode";case q:return"Suspense";case U:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case $:return(i.displayName||"Context")+".Consumer";case C:return(i._context.displayName||"Context")+".Provider";case H:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case W:return s=i.displayName||null,s!==null?s:fe(i.type)||"Memo";case K:s=i._payload,i=i._init;try{return fe(i(s))}catch{}}return null}function Se(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(s);case 8:return s===N?"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(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ce(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Oe(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ke(i){var s=Oe(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,S=p.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return b.call(this)},set:function(A){h=""+A,S.call(this,A)}}),Object.defineProperty(i,s,{enumerable:p.enumerable}),{getValue:function(){return h},setValue:function(A){h=""+A},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Le(i){i._valueTracker||(i._valueTracker=ke(i))}function Ie(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var p=s.getValue(),h="";return i&&(h=Oe(i)?i.checked?"true":"false":i.value),i=h,i!==p?(s.setValue(i),!0):!1}function nt(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Me(i,s){var p=s.checked;return ee({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??i._wrapperState.initialChecked})}function Te(i,s){var p=s.defaultValue==null?"":s.defaultValue,h=s.checked!=null?s.checked:s.defaultChecked;p=Ce(s.value!=null?s.value:p),i._wrapperState={initialChecked:h,initialValue:p,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ht(i,s){s=s.checked,s!=null&&O(i,"checked",s,!1)}function be(i,s){ht(i,s);var p=Ce(s.value),h=s.type;if(p!=null)h==="number"?(p===0&&i.value===""||i.value!=p)&&(i.value=""+p):i.value!==""+p&&(i.value=""+p);else if(h==="submit"||h==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?it(i,s.type,p):s.hasOwnProperty("defaultValue")&&it(i,s.type,Ce(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function Ae(i,s,p){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var h=s.type;if(!(h!=="submit"&&h!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,p||s===i.value||(i.value=s),i.defaultValue=s}p=i.name,p!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,p!==""&&(i.name=p)}function it(i,s,p){(s!=="number"||nt(i.ownerDocument)!==i)&&(p==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+p&&(i.defaultValue=""+p))}var Ze=Array.isArray;function Xe(i,s,p,h){if(i=i.options,s){s={};for(var b=0;b"+s.valueOf().toString()+"",s=Be.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function vt(i,s){if(s){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=s;return}}i.textContent=s}var Fe={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},Ft=["Webkit","ms","Moz","O"];Object.keys(Fe).forEach(function(i){Ft.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),Fe[s]=Fe[i]})});function wt(i,s,p){return s==null||typeof s=="boolean"||s===""?"":p||typeof s!="number"||s===0||Fe.hasOwnProperty(i)&&Fe[i]?(""+s).trim():s+"px"}function xe(i,s){i=i.style;for(var p in s)if(s.hasOwnProperty(p)){var h=p.indexOf("--")===0,b=wt(p,s[p],h);p==="float"&&(p="cssFloat"),h?i.setProperty(p,b):i[p]=b}}var lt=ee({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 St(i,s){if(s){if(lt[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function pr(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){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 dr=null;function Br(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Eo=null,Kn=null,mn=null;function ka(i){if(i=kl(i)){if(typeof Eo!="function")throw Error(r(280));var s=i.stateNode;s&&(s=yu(s),Eo(i.stateNode,i.type,s))}}function Oa(i){Kn?mn?mn.push(i):mn=[i]:Kn=i}function _a(){if(Kn){var i=Kn,s=mn;if(mn=Kn=null,ka(i),s)for(i=0;i>>=0,i===0?32:31-(VT(i)/GT|0)|0}var eu=64,tu=4194304;function ll(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function ru(i,s){var p=i.pendingLanes;if(p===0)return 0;var h=0,b=i.suspendedLanes,S=i.pingedLanes,A=p&268435455;if(A!==0){var B=A&~b;B!==0?h=ll(B):(S&=A,S!==0&&(h=ll(S)))}else A=p&~b,A!==0?h=ll(A):S!==0&&(h=ll(S));if(h===0)return 0;if(s!==0&&s!==h&&(s&b)===0&&(b=h&-h,S=s&-s,b>=S||b===16&&(S&4194240)!==0))return s;if((h&4)!==0&&(h|=p&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=h;0p;p++)s.push(i);return s}function cl(i,s,p){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-An(s),i[s]=p}function QT(i,s){var p=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var h=i.eventTimes;for(i=i.expirationTimes;0=vl),D2=" ",N2=!1;function $2(i,s){switch(i){case"keyup":return k9.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L2(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Aa=!1;function _9(i,s){switch(i){case"compositionend":return L2(s);case"keypress":return s.which!==32?null:(N2=!0,D2);case"textInput":return i=s.data,i===D2&&N2?null:i;default:return null}}function R9(i,s){if(Aa)return i==="compositionend"||!mf&&$2(i,s)?(i=_2(),su=cf=Zo=null,Aa=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:p,offset:s-i};i=h}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=W2(p)}}function X2(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?X2(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function V2(){for(var i=window,s=nt();s instanceof i.HTMLIFrameElement;){try{var p=typeof s.contentWindow.location.href=="string"}catch{p=!1}if(p)i=s.contentWindow;else break;s=nt(i.document)}return s}function yf(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function B9(i){var s=V2(),p=i.focusedElem,h=i.selectionRange;if(s!==p&&p&&p.ownerDocument&&X2(p.ownerDocument.documentElement,p)){if(h!==null&&yf(p)){if(s=h.start,i=h.end,i===void 0&&(i=s),"selectionStart"in p)p.selectionStart=s,p.selectionEnd=Math.min(i,p.value.length);else if(i=(s=p.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var b=p.textContent.length,S=Math.min(h.start,b);h=h.end===void 0?S:Math.min(h.end,b),!i.extend&&S>h&&(b=h,h=S,S=b),b=U2(p,S);var A=U2(p,h);b&&A&&(i.rangeCount!==1||i.anchorNode!==b.node||i.anchorOffset!==b.offset||i.focusNode!==A.node||i.focusOffset!==A.offset)&&(s=s.createRange(),s.setStart(b.node,b.offset),i.removeAllRanges(),S>h?(i.addRange(s),i.extend(A.node,A.offset)):(s.setEnd(A.node,A.offset),i.addRange(s)))}}for(s=[],i=p;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,Da=null,bf=null,wl=null,xf=!1;function G2(i,s,p){var h=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;xf||Da==null||Da!==nt(h)||(h=Da,"selectionStart"in h&&yf(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),wl&&xl(wl,h)||(wl=h,h=mu(bf,"onSelect"),0Fa||(i.current=If[Fa],If[Fa]=null,Fa--)}function At(i,s){Fa++,If[Fa]=i.current,i.current=s}var ni={},Tr=ri(ni),zr=ri(!1),Bi=ni;function za(i,s){var p=i.type.contextTypes;if(!p)return ni;var h=i.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===s)return h.__reactInternalMemoizedMaskedChildContext;var b={},S;for(S in p)b[S]=s[S];return h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=b),b}function jr(i){return i=i.childContextTypes,i!=null}function bu(){$t(zr),$t(Tr)}function cb(i,s,p){if(Tr.current!==ni)throw Error(r(168));At(Tr,s),At(zr,p)}function ub(i,s,p){var h=i.stateNode;if(s=s.childContextTypes,typeof h.getChildContext!="function")return p;h=h.getChildContext();for(var b in h)if(!(b in s))throw Error(r(108,Se(i)||"Unknown",b));return ee({},p,h)}function xu(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ni,Bi=Tr.current,At(Tr,i),At(zr,zr.current),!0}function pb(i,s,p){var h=i.stateNode;if(!h)throw Error(r(169));p?(i=ub(i,s,Bi),h.__reactInternalMemoizedMergedChildContext=i,$t(zr),$t(Tr),At(Tr,i)):$t(zr),At(zr,p)}var To=null,wu=!1,Af=!1;function db(i){To===null?To=[i]:To.push(i)}function Y9(i){wu=!0,db(i)}function oi(){if(!Af&&To!==null){Af=!0;var i=0,s=_t;try{var p=To;for(_t=1;i>=A,b-=A,ko=1<<32-An(s)+b|p<et?(mr=Ge,Ge=null):mr=Ge.sibling;var xt=se(G,Ge,Y[et],he);if(xt===null){Ge===null&&(Ge=mr);break}i&&Ge&&xt.alternate===null&&s(G,Ge),X=S(xt,X,et),Ve===null?Ne=xt:Ve.sibling=xt,Ve=xt,Ge=mr}if(et===Y.length)return p(G,Ge),zt&&zi(G,et),Ne;if(Ge===null){for(;etet?(mr=Ge,Ge=null):mr=Ge.sibling;var fi=se(G,Ge,xt.value,he);if(fi===null){Ge===null&&(Ge=mr);break}i&&Ge&&fi.alternate===null&&s(G,Ge),X=S(fi,X,et),Ve===null?Ne=fi:Ve.sibling=fi,Ve=fi,Ge=mr}if(xt.done)return p(G,Ge),zt&&zi(G,et),Ne;if(Ge===null){for(;!xt.done;et++,xt=Y.next())xt=ue(G,xt.value,he),xt!==null&&(X=S(xt,X,et),Ve===null?Ne=xt:Ve.sibling=xt,Ve=xt);return zt&&zi(G,et),Ne}for(Ge=h(G,Ge);!xt.done;et++,xt=Y.next())xt=Ee(Ge,G,et,xt.value,he),xt!==null&&(i&&xt.alternate!==null&&Ge.delete(xt.key===null?et:xt.key),X=S(xt,X,et),Ve===null?Ne=xt:Ve.sibling=xt,Ve=xt);return i&&Ge.forEach(function(M7){return s(G,M7)}),zt&&zi(G,et),Ne}function tr(G,X,Y,he){if(typeof Y=="object"&&Y!==null&&Y.type===P&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case M:e:{for(var Ne=Y.key,Ve=X;Ve!==null;){if(Ve.key===Ne){if(Ne=Y.type,Ne===P){if(Ve.tag===7){p(G,Ve.sibling),X=b(Ve,Y.props.children),X.return=G,G=X;break e}}else if(Ve.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===K&&yb(Ne)===Ve.type){p(G,Ve.sibling),X=b(Ve,Y.props),X.ref=Ol(G,Ve,Y),X.return=G,G=X;break e}p(G,Ve);break}else s(G,Ve);Ve=Ve.sibling}Y.type===P?(X=Gi(Y.props.children,G.mode,he,Y.key),X.return=G,G=X):(he=Ku(Y.type,Y.key,Y.props,null,G.mode,he),he.ref=Ol(G,X,Y),he.return=G,G=he)}return A(G);case T:e:{for(Ve=Y.key;X!==null;){if(X.key===Ve)if(X.tag===4&&X.stateNode.containerInfo===Y.containerInfo&&X.stateNode.implementation===Y.implementation){p(G,X.sibling),X=b(X,Y.children||[]),X.return=G,G=X;break e}else{p(G,X);break}else s(G,X);X=X.sibling}X=Mh(Y,G.mode,he),X.return=G,G=X}return A(G);case K:return Ve=Y._init,tr(G,X,Ve(Y._payload),he)}if(Ze(Y))return Pe(G,X,Y,he);if(V(Y))return De(G,X,Y,he);Tu(G,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"?(Y=""+Y,X!==null&&X.tag===6?(p(G,X.sibling),X=b(X,Y),X.return=G,G=X):(p(G,X),X=Rh(Y,G.mode,he),X.return=G,G=X),A(G)):p(G,X)}return tr}var Wa=bb(!0),xb=bb(!1),ku=ri(null),Ou=null,Ua=null,Ff=null;function zf(){Ff=Ua=Ou=null}function jf(i){var s=ku.current;$t(ku),i._currentValue=s}function Hf(i,s,p){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===p)break;i=i.return}}function Xa(i,s){Ou=i,Ff=Ua=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(Hr=!0),i.firstContext=null)}function bn(i){var s=i._currentValue;if(Ff!==i)if(i={context:i,memoizedValue:s,next:null},Ua===null){if(Ou===null)throw Error(r(308));Ua=i,Ou.dependencies={lanes:0,firstContext:i}}else Ua=Ua.next=i;return s}var ji=null;function qf(i){ji===null?ji=[i]:ji.push(i)}function wb(i,s,p,h){var b=s.interleaved;return b===null?(p.next=p,qf(s)):(p.next=b.next,b.next=p),s.interleaved=p,_o(i,h)}function _o(i,s){i.lanes|=s;var p=i.alternate;for(p!==null&&(p.lanes|=s),p=i,i=i.return;i!==null;)i.childLanes|=s,p=i.alternate,p!==null&&(p.childLanes|=s),p=i,i=i.return;return p.tag===3?p.stateNode:null}var ii=!1;function Wf(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sb(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ro(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function ai(i,s,p){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(bt&2)!==0){var b=h.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),h.pending=s,_o(i,p)}return b=h.interleaved,b===null?(s.next=s,qf(h)):(s.next=b.next,b.next=s),h.interleaved=s,_o(i,p)}function _u(i,s,p){if(s=s.updateQueue,s!==null&&(s=s.shared,(p&4194240)!==0)){var h=s.lanes;h&=i.pendingLanes,p|=h,s.lanes=p,nf(i,p)}}function Eb(i,s){var p=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,p===h)){var b=null,S=null;if(p=p.firstBaseUpdate,p!==null){do{var A={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};S===null?b=S=A:S=S.next=A,p=p.next}while(p!==null);S===null?b=S=s:S=S.next=s}else b=S=s;p={baseState:h.baseState,firstBaseUpdate:b,lastBaseUpdate:S,shared:h.shared,effects:h.effects},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=s:i.next=s,p.lastBaseUpdate=s}function Ru(i,s,p,h){var b=i.updateQueue;ii=!1;var S=b.firstBaseUpdate,A=b.lastBaseUpdate,B=b.shared.pending;if(B!==null){b.shared.pending=null;var j=B,Q=j.next;j.next=null,A===null?S=Q:A.next=Q,A=j;var le=i.alternate;le!==null&&(le=le.updateQueue,B=le.lastBaseUpdate,B!==A&&(B===null?le.firstBaseUpdate=Q:B.next=Q,le.lastBaseUpdate=j))}if(S!==null){var ue=b.baseState;A=0,le=Q=j=null,B=S;do{var se=B.lane,Ee=B.eventTime;if((h&se)===se){le!==null&&(le=le.next={eventTime:Ee,lane:0,tag:B.tag,payload:B.payload,callback:B.callback,next:null});e:{var Pe=i,De=B;switch(se=s,Ee=p,De.tag){case 1:if(Pe=De.payload,typeof Pe=="function"){ue=Pe.call(Ee,ue,se);break e}ue=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=De.payload,se=typeof Pe=="function"?Pe.call(Ee,ue,se):Pe,se==null)break e;ue=ee({},ue,se);break e;case 2:ii=!0}}B.callback!==null&&B.lane!==0&&(i.flags|=64,se=b.effects,se===null?b.effects=[B]:se.push(B))}else Ee={eventTime:Ee,lane:se,tag:B.tag,payload:B.payload,callback:B.callback,next:null},le===null?(Q=le=Ee,j=ue):le=le.next=Ee,A|=se;if(B=B.next,B===null){if(B=b.shared.pending,B===null)break;se=B,B=se.next,se.next=null,b.lastBaseUpdate=se,b.shared.pending=null}}while(!0);if(le===null&&(j=ue),b.baseState=j,b.firstBaseUpdate=Q,b.lastBaseUpdate=le,s=b.shared.interleaved,s!==null){b=s;do A|=b.lane,b=b.next;while(b!==s)}else S===null&&(b.shared.lanes=0);Wi|=A,i.lanes=A,i.memoizedState=ue}}function Cb(i,s,p){if(i=s.effects,s.effects=null,i!==null)for(s=0;sp?p:4,i(!0);var h=Kf.transition;Kf.transition={};try{i(!1),s()}finally{_t=p,Kf.transition=h}}function qb(){return xn().memoizedState}function e7(i,s,p){var h=ui(i);if(p={lane:h,action:p,hasEagerState:!1,eagerState:null,next:null},Wb(i))Ub(s,p);else if(p=wb(i,s,p,h),p!==null){var b=$r();Fn(p,i,h,b),Xb(p,s,h)}}function t7(i,s,p){var h=ui(i),b={lane:h,action:p,hasEagerState:!1,eagerState:null,next:null};if(Wb(i))Ub(s,b);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=s.lastRenderedReducer,S!==null))try{var A=s.lastRenderedState,B=S(A,p);if(b.hasEagerState=!0,b.eagerState=B,Dn(B,A)){var j=s.interleaved;j===null?(b.next=b,qf(s)):(b.next=j.next,j.next=b),s.interleaved=b;return}}catch{}p=wb(i,s,b,h),p!==null&&(b=$r(),Fn(p,i,h,b),Xb(p,s,h))}}function Wb(i){var s=i.alternate;return i===Xt||s!==null&&s===Xt}function Ub(i,s){Pl=Iu=!0;var p=i.pending;p===null?s.next=s:(s.next=p.next,p.next=s),i.pending=s}function Xb(i,s,p){if((p&4194240)!==0){var h=s.lanes;h&=i.pendingLanes,p|=h,s.lanes=p,nf(i,p)}}var Nu={readContext:bn,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useInsertionEffect:kr,useLayoutEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useMutableSource:kr,useSyncExternalStore:kr,useId:kr,unstable_isNewReconciler:!1},r7={readContext:bn,useCallback:function(i,s){return eo().memoizedState=[i,s===void 0?null:s],i},useContext:bn,useEffect:Nb,useImperativeHandle:function(i,s,p){return p=p!=null?p.concat([i]):null,Au(4194308,4,Bb.bind(null,s,i),p)},useLayoutEffect:function(i,s){return Au(4194308,4,i,s)},useInsertionEffect:function(i,s){return Au(4,2,i,s)},useMemo:function(i,s){var p=eo();return s=s===void 0?null:s,i=i(),p.memoizedState=[i,s],i},useReducer:function(i,s,p){var h=eo();return s=p!==void 0?p(s):s,h.memoizedState=h.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},h.queue=i,i=i.dispatch=e7.bind(null,Xt,i),[h.memoizedState,i]},useRef:function(i){var s=eo();return i={current:i},s.memoizedState=i},useState:Ab,useDebugValue:rh,useDeferredValue:function(i){return eo().memoizedState=i},useTransition:function(){var i=Ab(!1),s=i[0];return i=Z9.bind(null,i[1]),eo().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,p){var h=Xt,b=eo();if(zt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=s(),hr===null)throw Error(r(349));(qi&30)!==0||_b(h,s,p)}b.memoizedState=p;var S={value:p,getSnapshot:s};return b.queue=S,Nb(Mb.bind(null,h,S,i),[i]),h.flags|=2048,Dl(9,Rb.bind(null,h,S,p,s),void 0,null),p},useId:function(){var i=eo(),s=hr.identifierPrefix;if(zt){var p=Oo,h=ko;p=(h&~(1<<32-An(h)-1)).toString(32)+p,s=":"+s+"R"+p,p=Il++,0<\/script>",i=i.removeChild(i.firstChild)):typeof h.is=="string"?i=A.createElement(p,{is:h.is}):(i=A.createElement(p),p==="select"&&(A=i,h.multiple?A.multiple=!0:h.size&&(A.size=h.size))):i=A.createElementNS(i,p),i[Qn]=s,i[Tl]=h,dx(i,s,!1,!1),s.stateNode=i;e:{switch(A=pr(p,h),p){case"dialog":Nt("cancel",i),Nt("close",i),b=h;break;case"iframe":case"object":case"embed":Nt("load",i),b=h;break;case"video":case"audio":for(b=0;bJa&&(s.flags|=128,h=!0,Nl(S,!1),s.lanes=4194304)}else{if(!h)if(i=Mu(A),i!==null){if(s.flags|=128,h=!0,p=i.updateQueue,p!==null&&(s.updateQueue=p,s.flags|=4),Nl(S,!0),S.tail===null&&S.tailMode==="hidden"&&!A.alternate&&!zt)return Or(s),null}else 2*er()-S.renderingStartTime>Ja&&p!==1073741824&&(s.flags|=128,h=!0,Nl(S,!1),s.lanes=4194304);S.isBackwards?(A.sibling=s.child,s.child=A):(p=S.last,p!==null?p.sibling=A:s.child=A,S.last=A)}return S.tail!==null?(s=S.tail,S.rendering=s,S.tail=s.sibling,S.renderingStartTime=er(),s.sibling=null,p=Ut.current,At(Ut,h?p&1|2:p&1),s):(Or(s),null);case 22:case 23:return kh(),h=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==h&&(s.flags|=8192),h&&(s.mode&1)!==0?(sn&1073741824)!==0&&(Or(s),s.subtreeFlags&6&&(s.flags|=8192)):Or(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function u7(i,s){switch(Nf(s),s.tag){case 1:return jr(s.type)&&bu(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Va(),$t(zr),$t(Tr),Gf(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return Xf(s),null;case 13:if($t(Ut),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));qa()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return $t(Ut),null;case 4:return Va(),null;case 10:return jf(s.type._context),null;case 22:case 23:return kh(),null;case 24:return null;default:return null}}var Fu=!1,_r=!1,p7=typeof WeakSet=="function"?WeakSet:Set,Re=null;function Ka(i,s){var p=i.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(h){Kt(i,s,h)}else p.current=null}function hh(i,s,p){try{p()}catch(h){Kt(i,s,h)}}var mx=!1;function d7(i,s){if(kf=iu,i=V2(),yf(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var h=p.getSelection&&p.getSelection();if(h&&h.rangeCount!==0){p=h.anchorNode;var b=h.anchorOffset,S=h.focusNode;h=h.focusOffset;try{p.nodeType,S.nodeType}catch{p=null;break e}var A=0,B=-1,j=-1,Q=0,le=0,ue=i,se=null;t:for(;;){for(var Ee;ue!==p||b!==0&&ue.nodeType!==3||(B=A+b),ue!==S||h!==0&&ue.nodeType!==3||(j=A+h),ue.nodeType===3&&(A+=ue.nodeValue.length),(Ee=ue.firstChild)!==null;)se=ue,ue=Ee;for(;;){if(ue===i)break t;if(se===p&&++Q===b&&(B=A),se===S&&++le===h&&(j=A),(Ee=ue.nextSibling)!==null)break;ue=se,se=ue.parentNode}ue=Ee}p=B===-1||j===-1?null:{start:B,end:j}}else p=null}p=p||{start:0,end:0}}else p=null;for(Of={focusedElem:i,selectionRange:p},iu=!1,Re=s;Re!==null;)if(s=Re,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Re=i;else for(;Re!==null;){s=Re;try{var Pe=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(Pe!==null){var De=Pe.memoizedProps,tr=Pe.memoizedState,G=s.stateNode,X=G.getSnapshotBeforeUpdate(s.elementType===s.type?De:$n(s.type,De),tr);G.__reactInternalSnapshotBeforeUpdate=X}break;case 3:var Y=s.stateNode.containerInfo;Y.nodeType===1?Y.textContent="":Y.nodeType===9&&Y.documentElement&&Y.removeChild(Y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(he){Kt(s,s.return,he)}if(i=s.sibling,i!==null){i.return=s.return,Re=i;break}Re=s.return}return Pe=mx,mx=!1,Pe}function $l(i,s,p){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var b=h=h.next;do{if((b.tag&i)===i){var S=b.destroy;b.destroy=void 0,S!==void 0&&hh(s,p,S)}b=b.next}while(b!==h)}}function zu(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var p=s=s.next;do{if((p.tag&i)===i){var h=p.create;p.destroy=h()}p=p.next}while(p!==s)}}function mh(i){var s=i.ref;if(s!==null){var p=i.stateNode;i.tag,i=p,typeof s=="function"?s(i):s.current=i}}function gx(i){var s=i.alternate;s!==null&&(i.alternate=null,gx(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[Qn],delete s[Tl],delete s[Pf],delete s[G9],delete s[K9])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function vx(i){return i.tag===5||i.tag===3||i.tag===4}function yx(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||vx(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function gh(i,s,p){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?p.nodeType===8?p.parentNode.insertBefore(i,s):p.insertBefore(i,s):(p.nodeType===8?(s=p.parentNode,s.insertBefore(i,p)):(s=p,s.appendChild(i)),p=p._reactRootContainer,p!=null||s.onclick!==null||(s.onclick=vu));else if(h!==4&&(i=i.child,i!==null))for(gh(i,s,p),i=i.sibling;i!==null;)gh(i,s,p),i=i.sibling}function vh(i,s,p){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?p.insertBefore(i,s):p.appendChild(i);else if(h!==4&&(i=i.child,i!==null))for(vh(i,s,p),i=i.sibling;i!==null;)vh(i,s,p),i=i.sibling}var br=null,Ln=!1;function si(i,s,p){for(p=p.child;p!==null;)bx(i,s,p),p=p.sibling}function bx(i,s,p){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Zc,p)}catch{}switch(p.tag){case 5:_r||Ka(p,s);case 6:var h=br,b=Ln;br=null,si(i,s,p),br=h,Ln=b,br!==null&&(Ln?(i=br,p=p.stateNode,i.nodeType===8?i.parentNode.removeChild(p):i.removeChild(p)):br.removeChild(p.stateNode));break;case 18:br!==null&&(Ln?(i=br,p=p.stateNode,i.nodeType===8?Mf(i.parentNode,p):i.nodeType===1&&Mf(i,p),hl(i)):Mf(br,p.stateNode));break;case 4:h=br,b=Ln,br=p.stateNode.containerInfo,Ln=!0,si(i,s,p),br=h,Ln=b;break;case 0:case 11:case 14:case 15:if(!_r&&(h=p.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){b=h=h.next;do{var S=b,A=S.destroy;S=S.tag,A!==void 0&&((S&2)!==0||(S&4)!==0)&&hh(p,s,A),b=b.next}while(b!==h)}si(i,s,p);break;case 1:if(!_r&&(Ka(p,s),h=p.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=p.memoizedProps,h.state=p.memoizedState,h.componentWillUnmount()}catch(B){Kt(p,s,B)}si(i,s,p);break;case 21:si(i,s,p);break;case 22:p.mode&1?(_r=(h=_r)||p.memoizedState!==null,si(i,s,p),_r=h):si(i,s,p);break;default:si(i,s,p)}}function xx(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var p=i.stateNode;p===null&&(p=i.stateNode=new p7),s.forEach(function(h){var b=w7.bind(null,i,h);p.has(h)||(p.add(h),h.then(b,b))})}}function Bn(i,s){var p=s.deletions;if(p!==null)for(var h=0;hb&&(b=A),h&=~S}if(h=b,h=er()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*h7(h/1960))-h,10i?16:i,ci===null)var h=!1;else{if(i=ci,ci=null,Uu=0,(bt&6)!==0)throw Error(r(331));var b=bt;for(bt|=4,Re=i.current;Re!==null;){var S=Re,A=S.child;if((Re.flags&16)!==0){var B=S.deletions;if(B!==null){for(var j=0;jer()-xh?Xi(i,0):bh|=p),Wr(i,s)}function Ax(i,s){s===0&&((i.mode&1)===0?s=1:(s=tu,tu<<=1,(tu&130023424)===0&&(tu=4194304)));var p=$r();i=_o(i,s),i!==null&&(cl(i,s,p),Wr(i,p))}function x7(i){var s=i.memoizedState,p=0;s!==null&&(p=s.retryLane),Ax(i,p)}function w7(i,s){var p=0;switch(i.tag){case 13:var h=i.stateNode,b=i.memoizedState;b!==null&&(p=b.retryLane);break;case 19:h=i.stateNode;break;default:throw Error(r(314))}h!==null&&h.delete(s),Ax(i,p)}var Dx;Dx=function(i,s,p){if(i!==null)if(i.memoizedProps!==s.pendingProps||zr.current)Hr=!0;else{if((i.lanes&p)===0&&(s.flags&128)===0)return Hr=!1,l7(i,s,p);Hr=(i.flags&131072)!==0}else Hr=!1,zt&&(s.flags&1048576)!==0&&fb(s,Eu,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;Bu(i,s),i=s.pendingProps;var b=za(s,Tr.current);Xa(s,p),b=Jf(null,s,h,i,b,p);var S=Qf();return s.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,jr(h)?(S=!0,xu(s)):S=!1,s.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,Wf(s),b.updater=$u,s.stateNode=b,b._reactInternals=s,oh(s,h,i,p),s=lh(null,s,h,!0,S,p)):(s.tag=0,zt&&S&&Df(s),Nr(null,s,b,p),s=s.child),s;case 16:h=s.elementType;e:{switch(Bu(i,s),i=s.pendingProps,b=h._init,h=b(h._payload),s.type=h,b=s.tag=E7(h),i=$n(h,i),b){case 0:s=sh(null,s,h,i,p);break e;case 1:s=ax(null,s,h,i,p);break e;case 11:s=tx(null,s,h,i,p);break e;case 14:s=rx(null,s,h,$n(h.type,i),p);break e}throw Error(r(306,h,""))}return s;case 0:return h=s.type,b=s.pendingProps,b=s.elementType===h?b:$n(h,b),sh(i,s,h,b,p);case 1:return h=s.type,b=s.pendingProps,b=s.elementType===h?b:$n(h,b),ax(i,s,h,b,p);case 3:e:{if(sx(s),i===null)throw Error(r(387));h=s.pendingProps,S=s.memoizedState,b=S.element,Sb(i,s),Ru(s,h,null,p);var A=s.memoizedState;if(h=A.element,S.isDehydrated)if(S={element:h,isDehydrated:!1,cache:A.cache,pendingSuspenseBoundaries:A.pendingSuspenseBoundaries,transitions:A.transitions},s.updateQueue.baseState=S,s.memoizedState=S,s.flags&256){b=Ga(Error(r(423)),s),s=lx(i,s,h,p,b);break e}else if(h!==b){b=Ga(Error(r(424)),s),s=lx(i,s,h,p,b);break e}else for(an=ti(s.stateNode.containerInfo.firstChild),on=s,zt=!0,Nn=null,p=xb(s,null,h,p),s.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(qa(),h===b){s=Mo(i,s,p);break e}Nr(i,s,h,p)}s=s.child}return s;case 5:return Tb(s),i===null&&Lf(s),h=s.type,b=s.pendingProps,S=i!==null?i.memoizedProps:null,A=b.children,_f(h,b)?A=null:S!==null&&_f(h,S)&&(s.flags|=32),ix(i,s),Nr(i,s,A,p),s.child;case 6:return i===null&&Lf(s),null;case 13:return cx(i,s,p);case 4:return Uf(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=Wa(s,null,h,p):Nr(i,s,h,p),s.child;case 11:return h=s.type,b=s.pendingProps,b=s.elementType===h?b:$n(h,b),tx(i,s,h,b,p);case 7:return Nr(i,s,s.pendingProps,p),s.child;case 8:return Nr(i,s,s.pendingProps.children,p),s.child;case 12:return Nr(i,s,s.pendingProps.children,p),s.child;case 10:e:{if(h=s.type._context,b=s.pendingProps,S=s.memoizedProps,A=b.value,At(ku,h._currentValue),h._currentValue=A,S!==null)if(Dn(S.value,A)){if(S.children===b.children&&!zr.current){s=Mo(i,s,p);break e}}else for(S=s.child,S!==null&&(S.return=s);S!==null;){var B=S.dependencies;if(B!==null){A=S.child;for(var j=B.firstContext;j!==null;){if(j.context===h){if(S.tag===1){j=Ro(-1,p&-p),j.tag=2;var Q=S.updateQueue;if(Q!==null){Q=Q.shared;var le=Q.pending;le===null?j.next=j:(j.next=le.next,le.next=j),Q.pending=j}}S.lanes|=p,j=S.alternate,j!==null&&(j.lanes|=p),Hf(S.return,p,s),B.lanes|=p;break}j=j.next}}else if(S.tag===10)A=S.type===s.type?null:S.child;else if(S.tag===18){if(A=S.return,A===null)throw Error(r(341));A.lanes|=p,B=A.alternate,B!==null&&(B.lanes|=p),Hf(A,p,s),A=S.sibling}else A=S.child;if(A!==null)A.return=S;else for(A=S;A!==null;){if(A===s){A=null;break}if(S=A.sibling,S!==null){S.return=A.return,A=S;break}A=A.return}S=A}Nr(i,s,b.children,p),s=s.child}return s;case 9:return b=s.type,h=s.pendingProps.children,Xa(s,p),b=bn(b),h=h(b),s.flags|=1,Nr(i,s,h,p),s.child;case 14:return h=s.type,b=$n(h,s.pendingProps),b=$n(h.type,b),rx(i,s,h,b,p);case 15:return nx(i,s,s.type,s.pendingProps,p);case 17:return h=s.type,b=s.pendingProps,b=s.elementType===h?b:$n(h,b),Bu(i,s),s.tag=1,jr(h)?(i=!0,xu(s)):i=!1,Xa(s,p),Gb(s,h,b),oh(s,h,b,p),lh(null,s,h,!0,i,p);case 19:return px(i,s,p);case 22:return ox(i,s,p)}throw Error(r(156,s.tag))};function Nx(i,s){return h2(i,s)}function S7(i,s,p,h){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(i,s,p,h){return new S7(i,s,p,h)}function _h(i){return i=i.prototype,!(!i||!i.isReactComponent)}function E7(i){if(typeof i=="function")return _h(i)?1:0;if(i!=null){if(i=i.$$typeof,i===H)return 11;if(i===W)return 14}return 2}function di(i,s){var p=i.alternate;return p===null?(p=Sn(i.tag,s,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=s,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&14680064,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,s=i.dependencies,p.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p}function Ku(i,s,p,h,b,S){var A=2;if(h=i,typeof i=="function")_h(i)&&(A=1);else if(typeof i=="string")A=5;else e:switch(i){case P:return Gi(p.children,b,S,s);case N:A=8,b|=8;break;case D:return i=Sn(12,p,s,b|2),i.elementType=D,i.lanes=S,i;case q:return i=Sn(13,p,s,b),i.elementType=q,i.lanes=S,i;case U:return i=Sn(19,p,s,b),i.elementType=U,i.lanes=S,i;case re:return Yu(p,b,S,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case C:A=10;break e;case $:A=9;break e;case H:A=11;break e;case W:A=14;break e;case K:A=16,h=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return s=Sn(A,p,s,b),s.elementType=i,s.type=h,s.lanes=S,s}function Gi(i,s,p,h){return i=Sn(7,i,h,s),i.lanes=p,i}function Yu(i,s,p,h){return i=Sn(22,i,h,s),i.elementType=re,i.lanes=p,i.stateNode={isHidden:!1},i}function Rh(i,s,p){return i=Sn(6,i,null,s),i.lanes=p,i}function Mh(i,s,p){return s=Sn(4,i.children!==null?i.children:[],i.key,s),s.lanes=p,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function C7(i,s,p,h,b){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rf(0),this.expirationTimes=rf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rf(0),this.identifierPrefix=h,this.onRecoverableError=b,this.mutableSourceEagerHydrationData=null}function Ph(i,s,p,h,b,S,A,B,j){return i=new C7(i,s,p,B,j),s===1?(s=1,S===!0&&(s|=8)):s=0,S=Sn(3,null,null,s),i.current=S,S.stateNode=i,S.memoizedState={element:h,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wf(S),i}function T7(i,s,p){var h=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Lh.exports=B7(),Lh.exports}var Kx;function F7(){if(Kx)return op;Kx=1;var t=I8();return op.createRoot=t.createRoot,op.hydrateRoot=t.hydrateRoot,op}var z7=F7();function Bo(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Un="$$material";function jp(){return jp=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Er(Js,--Qr):0,qs--,ir===10&&(qs=1,fd--),ir}function dn(){return ir=Qr2||Tc(ir)>3?"":" "}function Z7(t,e){for(;--e&&dn()&&!(ir<48||ir>102||ir>57&&ir<65||ir>70&&ir<97););return Fc(t,Rp()+(e<6&&fo()==32&&dn()==32))}function M1(t){for(;dn();)switch(ir){case t:return Qr;case 34:case 39:t!==34&&t!==39&&M1(ir);break;case 40:t===41&&M1(t);break;case 92:dn();break}return Qr}function ek(t,e){for(;dn()&&t+ir!==57;)if(t+ir===84&&fo()===47)break;return"/*"+Fc(e,Qr-1)+"*"+dd(t===47?t:dn())}function tk(t){for(;!Tc(fo());)dn();return Fc(t,Qr)}function rk(t){return F8(Pp("",null,null,null,[""],t=B8(t),0,[0],t))}function Pp(t,e,r,n,o,a,l,c,d){for(var f=0,g=0,u=l,m=0,y=0,w=0,x=1,E=1,k=1,I=0,O="",R=o,M=a,T=n,P=O;E;)switch(w=I,I=dn()){case 40:if(w!=108&&Er(P,u-1)==58){R1(P+=Ct(Mp(I),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:P+=Mp(I);break;case 9:case 10:case 13:case 32:P+=Q7(w);break;case 92:P+=Z7(Rp()-1,7);continue;case 47:switch(fo()){case 42:case 47:ip(nk(ek(dn(),Rp()),e,r),d);break;default:P+="/"}break;case 123*x:c[f++]=ao(P)*k;case 125*x:case 59:case 0:switch(I){case 0:case 125:E=0;case 59+g:k==-1&&(P=Ct(P,/\f/g,"")),y>0&&ao(P)-u&&ip(y>32?Jx(P+";",n,r,u-1):Jx(Ct(P," ","")+";",n,r,u-2),d);break;case 59:P+=";";default:if(ip(T=Yx(P,e,r,f,g,o,c,O,R=[],M=[],u),a),I===123)if(g===0)Pp(P,e,T,T,R,a,u,c,M);else switch(m===99&&Er(P,3)===110?100:m){case 100:case 108:case 109:case 115:Pp(t,T,T,n&&ip(Yx(t,T,T,0,0,o,c,O,o,R=[],u),M),o,M,u,c,n?R:M);break;default:Pp(P,T,T,T,[""],M,0,c,M)}}f=g=y=0,x=k=1,O=P="",u=l;break;case 58:u=1+ao(P),y=w;default:if(x<1){if(I==123)--x;else if(I==125&&x++==0&&J7()==125)continue}switch(P+=dd(I),I*x){case 38:k=g>0?1:(P+="\f",-1);break;case 44:c[f++]=(ao(P)-1)*k,k=1;break;case 64:fo()===45&&(P+=Mp(dn())),m=fo(),g=u=ao(O=P+=tk(Rp())),I++;break;case 45:w===45&&ao(P)==2&&(x=0)}}return a}function Yx(t,e,r,n,o,a,l,c,d,f,g){for(var u=o-1,m=o===0?a:[""],y=Rv(m),w=0,x=0,E=0;w0?m[k]+" "+I:Ct(I,/&\f/g,m[k])))&&(d[E++]=O);return hd(t,e,r,o===0?Ov:c,d,f,g)}function nk(t,e,r){return hd(t,e,r,D8,dd(Y7()),Cc(t,2,-2),0)}function Jx(t,e,r,n){return hd(t,e,r,_v,Cc(t,0,n),Cc(t,n+1,-1),n)}function Bs(t,e){for(var r="",n=Rv(t),o=0;o6)switch(Er(t,e+1)){case 109:if(Er(t,e+4)!==45)break;case 102:return Ct(t,/(.+:)(.+)-([^]+)/,"$1"+Et+"$2-$3$1"+Hp+(Er(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~R1(t,"stretch")?j8(Ct(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Er(t,e+1)!==115)break;case 6444:switch(Er(t,ao(t)-3-(~R1(t,"!important")&&10))){case 107:return Ct(t,":",":"+Et)+t;case 101:return Ct(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Et+(Er(t,14)===45?"inline-":"")+"box$3$1"+Et+"$2$3$1"+Mr+"$2box$3")+t}break;case 5936:switch(Er(t,e+11)){case 114:return Et+t+Mr+Ct(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Et+t+Mr+Ct(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Et+t+Mr+Ct(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Et+t+Mr+t+t}return t}var dk=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case _v:e.return=j8(e.value,e.length);break;case N8:return Bs([Hl(e,{value:Ct(e.value,"@","@"+Et)})],o);case Ov:if(e.length)return K7(e.props,function(a){switch(G7(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bs([Hl(e,{props:[Ct(a,/:(read-\w+)/,":"+Hp+"$1")]})],o);case"::placeholder":return Bs([Hl(e,{props:[Ct(a,/:(plac\w+)/,":"+Et+"input-$1")]}),Hl(e,{props:[Ct(a,/:(plac\w+)/,":"+Hp+"$1")]}),Hl(e,{props:[Ct(a,/:(plac\w+)/,Mr+"input-$1")]})],o)}return""})}},fk=[dk],H8=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var E=x.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||fk,a={},l,c=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var E=x.getAttribute("data-emotion").split(" "),k=1;k=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var bk={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},xk=/[A-Z]|^ms/g,wk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W8=function(e){return e.charCodeAt(1)===45},rw=function(e){return e!=null&&typeof e!="boolean"},Hh=z8(function(t){return W8(t)?t:t.replace(xk,"-$&").toLowerCase()}),nw=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(wk,function(n,o,a){return so={name:o,styles:a,next:so},o})}return bk[e]!==1&&!W8(e)&&typeof r=="number"&&r!==0?r+"px":r};function kc(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return so={name:o.name,styles:o.styles,next:so},o.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)so={name:l.name,styles:l.styles,next:so},l=l.next;var c=a.styles+";";return c}return Sk(t,e,r)}case"function":{if(t!==void 0){var d=so,f=r(t);return so=d,kc(t,e,f)}break}}var g=r;if(e==null)return g;var u=e[g];return u!==void 0?u:g}function Sk(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?Ik:Ak},lw=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(l){return e.__emotion_forwardProp(l)&&a(l)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},Dk=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return Mv(r,n,o),X8(function(){return Pv(r,n,o)}),null},Nk=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,l;r!==void 0&&(a=r.label,l=r.target);var c=lw(e,r,n),d=c||sw(o),f=!d("as");return function(){var g=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)u.push.apply(u,g);else{var m=g[0];u.push(m[0]);for(var y=g.length,w=1;w{const r=H8(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let yi;if(typeof document=="object"&&(yi=document.querySelector('[name="emotion-insertion-point"]'),!yi)){yi=document.createElement("meta"),yi.setAttribute("name","emotion-insertion-point"),yi.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(yi)}function Hk(t,e){if(t||e){class r extends A8{insert(a,l){return this.key&&this.key.endsWith("global")&&(this.before=yi),super.insert(a,l)}}const n=jk({key:"css",insertionPoint:t?yi:void 0},r);if(e){const o=n.insert;n.insert=(...a)=>(a[1].styles.match(/^@layer\s+[^{]*$/)||(a[1].styles=`@layer mui {${a[1].styles}}`),o(...a))}return n}}function qk(t){const{injectFirst:e,enableCssLayer:r,children:n}=t,o=_.useMemo(()=>{const a=`${e}-${r}`;if(typeof document=="object"&&Xh.has(a))return Xh.get(a);const l=Hk(e,r);return Xh.set(a,l),l},[e,r]);return o?L.jsx(Ck,{value:o,children:n}):n}function Wk(t){return t==null||Object.keys(t).length===0}function G8(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(Wk(o)?r:o):e;return L.jsx(Rk,{styles:n})}function K8(t,e){return I1(t,e)}function Uk(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const dw=[];function Ci(t){return dw[0]=t,zc(dw)}var Vh={exports:{}},Rt={};var fw;function Xk(){if(fw)return Rt;fw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function w(x){if(typeof x=="object"&&x!==null){var E=x.$$typeof;switch(E){case t:switch(x=x.type,x){case r:case o:case n:case d:case f:case m:return x;default:switch(x=x&&x.$$typeof,x){case l:case c:case u:case g:return x;case a:return x;default:return E}}case e:return E}}}return Rt.ContextConsumer=a,Rt.ContextProvider=l,Rt.Element=t,Rt.ForwardRef=c,Rt.Fragment=r,Rt.Lazy=u,Rt.Memo=g,Rt.Portal=e,Rt.Profiler=o,Rt.StrictMode=n,Rt.Suspense=d,Rt.SuspenseList=f,Rt.isContextConsumer=function(x){return w(x)===a},Rt.isContextProvider=function(x){return w(x)===l},Rt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Rt.isForwardRef=function(x){return w(x)===c},Rt.isFragment=function(x){return w(x)===r},Rt.isLazy=function(x){return w(x)===u},Rt.isMemo=function(x){return w(x)===g},Rt.isPortal=function(x){return w(x)===e},Rt.isProfiler=function(x){return w(x)===o},Rt.isStrictMode=function(x){return w(x)===n},Rt.isSuspense=function(x){return w(x)===d},Rt.isSuspenseList=function(x){return w(x)===f},Rt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===o||x===n||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===u||x.$$typeof===g||x.$$typeof===l||x.$$typeof===a||x.$$typeof===c||x.$$typeof===y||x.getModuleId!==void 0)},Rt.typeOf=w,Rt}var hw;function Vk(){return hw||(hw=1,Vh.exports=Xk()),Vh.exports}var Y8=Vk();function uo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function J8(t){if(_.isValidElement(t)||Y8.isValidElementType(t)||!uo(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=J8(t[r])}),e}function Dr(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return uo(t)&&uo(e)&&Object.keys(e).forEach(o=>{_.isValidElement(e[o])||Y8.isValidElementType(e[o])?n[o]=e[o]:uo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&uo(t[o])?n[o]=Dr(t[o],e[o],r):r.clone?n[o]=uo(e[o])?J8(e[o]):e[o]:n[o]=e[o]}),n}const Gk=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Kk(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,a=Gk(e),l=Object.keys(a);function c(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r})`}function d(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-n/100}${r})`}function f(m,y){const w=l.indexOf(y);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r}) and (max-width:${(w!==-1&&typeof e[l[w]]=="number"?e[l[w]]:y)-n/100}${r})`}function g(m){return l.indexOf(m)+1n.startsWith("@container")).sort((n,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return r.length?r.reduce((n,o)=>{const a=e[o];return delete n[o],n[o]=a,n},{...e}):e}function Yk(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function Jk(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(a)}function Qk(t){const e=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function r(a,l){a.up=(...c)=>e(t.breakpoints.up(...c),l),a.down=(...c)=>e(t.breakpoints.down(...c),l),a.between=(...c)=>e(t.breakpoints.between(...c),l),a.only=(...c)=>e(t.breakpoints.only(...c),l),a.not=(...c)=>{const d=e(t.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},o=a=>(r(n,a),n);return r(o),{...t,containerQueries:o}}const Zk={borderRadius:4};function vc(t,e){return e?Dr(t,e,{clone:!1}):t}const md={xs:0,sm:600,md:900,lg:1200,xl:1536},gw={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${md[t]}px)`},eO={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:md[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Fo(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||gw;return e.reduce((l,c,d)=>(l[a.up(a.keys[d])]=r(e[d]),l),{})}if(typeof e=="object"){const a=n.breakpoints||gw;return Object.keys(e).reduce((l,c)=>{if(Yk(a.keys,c)){const d=Jk(n.containerQueries?n:eO,c);d&&(l[d]=r(e[c],c))}else if(Object.keys(a.values||md).includes(c)){const d=a.up(c);l[d]=r(e[c],c)}else{const d=c;l[d]=e[d]}return l},{})}return r(e)}function tO(t={}){return t.keys?.reduce((r,n)=>{const o=t.up(n);return r[o]={},r},{})||{}}function vw(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function me(t){if(typeof t!="string")throw new Error(Bo(7));return t.charAt(0).toUpperCase()+t.slice(1)}function xi(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function qp(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=xi(t,r)||n,e&&(o=e(o,n,t)),o}function nr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,a=l=>{if(l[e]==null)return null;const c=l[e],d=l.theme,f=xi(d,n)||{};return Fo(l,c,u=>{let m=qp(f,o,u);return u===m&&typeof u=="string"&&(m=qp(f,o,`${e}${u==="default"?"":me(u)}`,u)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[e],a}function rO(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const nO={m:"margin",p:"padding"},oO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yw={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},iO=rO(t=>{if(t.length>2)if(yw[t])t=yw[t];else return[t];const[e,r]=t.split(""),n=nO[e],o=oO[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Dv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Dv,...Nv];function Hc(t,e,r,n){const o=xi(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),c=o[l];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof o=="function"?o:()=>{}}function $v(t){return Hc(t,"spacing",8)}function qc(t,e){return typeof e=="string"||e==null?e:t(e)}function aO(t,e){return r=>t.reduce((n,o)=>(n[o]=qc(e,r),n),{})}function sO(t,e,r,n){if(!e.includes(r))return null;const o=iO(r),a=aO(o,n),l=t[r];return Fo(t,l,a)}function Q8(t,e){const r=$v(t.theme);return Object.keys(t).map(n=>sO(t,e,n,r)).reduce(vc,{})}function Yt(t){return Q8(t,Dv)}Yt.propTypes={};Yt.filterProps=Dv;function Jt(t){return Q8(t,Nv)}Jt.propTypes={};Jt.filterProps=Nv;function Z8(t=8,e=$v({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const l=e(a);return typeof l=="number"?`${l}px`:l}).join(" ");return r.mui=!0,r}function gd(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>e[a]?vc(o,e[a](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function kn(t){return typeof t!="number"?t:`${t}px solid`}function In(t,e){return nr({prop:t,themeKey:"borders",transform:e})}const lO=In("border",kn),cO=In("borderTop",kn),uO=In("borderRight",kn),pO=In("borderBottom",kn),dO=In("borderLeft",kn),fO=In("borderColor"),hO=In("borderTopColor"),mO=In("borderRightColor"),gO=In("borderBottomColor"),vO=In("borderLeftColor"),yO=In("outline",kn),bO=In("outlineColor"),vd=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Hc(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:qc(e,n)});return Fo(t,t.borderRadius,r)}return null};vd.propTypes={};vd.filterProps=["borderRadius"];gd(lO,cO,uO,pO,dO,fO,hO,mO,gO,vO,vd,yO,bO);const yd=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Hc(t.theme,"spacing",8),r=n=>({gap:qc(e,n)});return Fo(t,t.gap,r)}return null};yd.propTypes={};yd.filterProps=["gap"];const bd=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Hc(t.theme,"spacing",8),r=n=>({columnGap:qc(e,n)});return Fo(t,t.columnGap,r)}return null};bd.propTypes={};bd.filterProps=["columnGap"];const xd=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Hc(t.theme,"spacing",8),r=n=>({rowGap:qc(e,n)});return Fo(t,t.rowGap,r)}return null};xd.propTypes={};xd.filterProps=["rowGap"];const xO=nr({prop:"gridColumn"}),wO=nr({prop:"gridRow"}),SO=nr({prop:"gridAutoFlow"}),EO=nr({prop:"gridAutoColumns"}),CO=nr({prop:"gridAutoRows"}),TO=nr({prop:"gridTemplateColumns"}),kO=nr({prop:"gridTemplateRows"}),OO=nr({prop:"gridTemplateAreas"}),_O=nr({prop:"gridArea"});gd(yd,bd,xd,xO,wO,SO,EO,CO,TO,kO,OO,_O);function Fs(t,e){return e==="grey"?e:t}const RO=nr({prop:"color",themeKey:"palette",transform:Fs}),MO=nr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fs}),PO=nr({prop:"backgroundColor",themeKey:"palette",transform:Fs});gd(RO,MO,PO);function cn(t){return t<=1&&t!==0?`${t*100}%`:t}const IO=nr({prop:"width",transform:cn}),Lv=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{const n=t.theme?.breakpoints?.values?.[r]||md[r];return n?t.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:cn(r)}};return Fo(t,t.maxWidth,e)}return null};Lv.filterProps=["maxWidth"];const AO=nr({prop:"minWidth",transform:cn}),DO=nr({prop:"height",transform:cn}),NO=nr({prop:"maxHeight",transform:cn}),$O=nr({prop:"minHeight",transform:cn});nr({prop:"size",cssProperty:"width",transform:cn});nr({prop:"size",cssProperty:"height",transform:cn});const LO=nr({prop:"boxSizing"});gd(IO,Lv,AO,DO,NO,$O,LO);const Wc={border:{themeKey:"borders",transform:kn},borderTop:{themeKey:"borders",transform:kn},borderRight:{themeKey:"borders",transform:kn},borderBottom:{themeKey:"borders",transform:kn},borderLeft:{themeKey:"borders",transform:kn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:kn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vd},color:{themeKey:"palette",transform:Fs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fs},backgroundColor:{themeKey:"palette",transform:Fs},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Yt},mt:{style:Yt},mr:{style:Yt},mb:{style:Yt},ml:{style:Yt},mx:{style:Yt},my:{style:Yt},margin:{style:Yt},marginTop:{style:Yt},marginRight:{style:Yt},marginBottom:{style:Yt},marginLeft:{style:Yt},marginX:{style:Yt},marginY:{style:Yt},marginInline:{style:Yt},marginInlineStart:{style:Yt},marginInlineEnd:{style:Yt},marginBlock:{style:Yt},marginBlockStart:{style:Yt},marginBlockEnd:{style:Yt},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:yd},rowGap:{style:xd},columnGap:{style:bd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cn},maxWidth:{style:Lv},minWidth:{transform:cn},height:{transform:cn},maxHeight:{transform:cn},minHeight:{transform:cn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function BO(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function FO(t,e){return typeof t=="function"?t(e):t}function zO(){function t(r,n,o,a){const l={[r]:n,theme:o},c=a[r];if(!c)return{[r]:n};const{cssProperty:d=r,themeKey:f,transform:g,style:u}=c;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const m=xi(o,f)||{};return u?u(l):Fo(l,n,w=>{let x=qp(m,g,w);return w===x&&typeof w=="string"&&(x=qp(m,g,`${r}${w==="default"?"":me(w)}`,w)),d===!1?x:{[d]:x}})}function e(r){const{sx:n,theme:o={},nested:a}=r||{};if(!n)return null;const l=o.unstable_sxConfig??Wc;function c(d){let f=d;if(typeof d=="function")f=d(o);else if(typeof d!="object")return d;if(!f)return null;const g=tO(o.breakpoints),u=Object.keys(g);let m=g;return Object.keys(f).forEach(y=>{const w=FO(f[y],o);if(w!=null)if(typeof w=="object")if(l[y])m=vc(m,t(y,w,o,l));else{const x=Fo({theme:o},w,E=>({[y]:E}));BO(x,w)?m[y]=e({sx:w,theme:o,nested:!0}):m=vc(m,x)}else m=vc(m,t(y,w,o,l))}),!a&&o.modularCssLayers?{"@layer sx":mw(o,vw(u,m))}:mw(o,vw(u,m))}return Array.isArray(n)?n.map(c):c(n)}return e}const Ti=zO();Ti.filterProps=["sx"];function jO(t,e){const r=this;if(r.vars){if(!r.colorSchemes?.[t]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(t);return n==="&"?e:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:e})}return r.palette.mode===t?e:{}}function wd(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...l}=t,c=Kk(r),d=Z8(o);let f=Dr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...Zk,...a}},l);return f=Qk(f),f.applyStyles=jO,f=e.reduce((g,u)=>Dr(g,u),f),f.unstable_sxConfig={...Wc,...l?.unstable_sxConfig},f.unstable_sx=function(u){return Ti({sx:u,theme:this})},f}function HO(t){return Object.keys(t).length===0}function Sd(t=null){const e=_.useContext(jc);return!e||HO(e)?t:e}const qO=wd();function Uc(t=qO){return Sd(t)}function Gh(t){const e=Ci(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function eE({styles:t,themeId:e,defaultTheme:r={}}){const n=Uc(r),o=e&&n[e]||n;let a=typeof t=="function"?t(o):t;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(l=>Gh(typeof l=="function"?l(o):l)):a=Gh(a)),L.jsx(G8,{styles:a})}const WO=t=>{const e={systemProps:{},otherProps:{}},r=t?.theme?.unstable_sxConfig??Wc;return Object.keys(t).forEach(n=>{r[n]?e.systemProps[n]=t[n]:e.otherProps[n]=t[n]}),e};function Bv(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=WO(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...l)=>{const c=e(...l);return uo(c)?{...n,...c}:n}:a={...n,...e},{...o,sx:a}}const bw=t=>t,UO=()=>{let t=bw;return{configure(e){t=e},generate(e){return t(e)},reset(){t=bw}}},tE=UO();function rE(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;ec!=="theme"&&c!=="sx"&&c!=="as"})(Ti);return _.forwardRef(function(d,f){const g=Uc(r),{className:u,component:m="div",...y}=Bv(d);return L.jsx(a,{as:m,ref:f,className:ye(u,o?o(n):n),theme:e&&g[e]||g,...y})})}const VO={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qe(t,e,r="Mui"){const n=VO[e];return n?`${r}-${n}`:`${tE.generate(t)}-${e}`}function We(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=qe(t,o,r)}),n}function nE(t){const{variants:e,...r}=t,n={variants:e,style:Ci(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Ci(o.style))}),n}const GO=wd();function Kh(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function sa(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function KO(t){return t?(e,r)=>r[t]:null}function YO(t,e,r){t.theme=QO(t.theme)?r:t.theme[e]||t.theme}function Ip(t,e,r){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>Ip(t,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?sa(n.style,r):n.style;else{const{variants:a,...l}=n;o=r?sa(Ci(l),r):l}return oE(t,n.variants,[o],r)}return n?.isProcessed?r?sa(Ci(n.style),r):n.style:r?sa(Ci(n),r):n}function oE(t,e,r=[],n=void 0){let o;e:for(let a=0;a{Uk(c,T=>T.filter(P=>P!==Ti));const{name:f,slot:g,skipVariantsResolver:u,skipSx:m,overridesResolver:y=KO(e_(g)),...w}=d,x=f&&f.startsWith("Mui")||g?"components":"custom",E=u!==void 0?u:g&&g!=="Root"&&g!=="root"||!1,k=m||!1;let I=Kh;g==="Root"||g==="root"?I=n:g?I=o:ZO(c)&&(I=void 0);const O=K8(c,{shouldForwardProp:I,label:JO(),...w}),R=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(N){return Ip(N,T,N.theme.modularCssLayers?x:void 0)};if(uo(T)){const P=nE(T);return function(D){return P.variants?Ip(D,P,D.theme.modularCssLayers?x:void 0):D.theme.modularCssLayers?sa(P.style,x):P.style}}return T},M=(...T)=>{const P=[],N=T.map(R),D=[];if(P.push(a),f&&y&&D.push(function(q){const W=q.theme.components?.[f]?.styleOverrides;if(!W)return null;const K={};for(const re in W)K[re]=Ip(q,W[re],q.theme.modularCssLayers?"theme":void 0);return y(q,K)}),f&&!E&&D.push(function(q){const W=q.theme?.components?.[f]?.variants;return W?oE(q,W,[],q.theme.modularCssLayers?"theme":void 0):null}),k||D.push(Ti),Array.isArray(N[0])){const H=N.shift(),q=new Array(P.length).fill(""),U=new Array(D.length).fill("");let W;W=[...q,...H,...U],W.raw=[...q,...H.raw,...U],P.unshift(W)}const C=[...P,...N,...D],$=O(...C);return c.muiName&&($.muiName=c.muiName),$};return O.withConfig&&(M.withConfig=O.withConfig),M}}function JO(t,e){return void 0}function QO(t){for(const e in t)return!1;return!0}function ZO(t){return typeof t=="string"&&t.charCodeAt(0)>96}function e_(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const t_=iE();function Oc(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=n;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=t[o],l=e[o];if(!l)r[o]=a||{};else if(!a)r[o]=l;else{r[o]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;r[o][d]=Oc(a[d],l[d])}}}else r[o]===void 0&&(r[o]=t[o])}return r}function aE(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:Oc(e.components[r].defaultProps,n)}function r_({props:t,name:e,defaultTheme:r,themeId:n}){let o=Uc(r);return n&&(o=o[n]||o),aE({theme:o,name:e,props:t})}const Zr=typeof window<"u"?_.useLayoutEffect:_.useEffect;function n_(t,e,r,n,o){const[a,l]=_.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return Zr(()=>{if(!r)return;const c=r(t),d=()=>{l(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[t,r]),a}const o_={...zp},sE=o_.useSyncExternalStore;function i_(t,e,r,n,o){const a=_.useCallback(()=>e,[e]),l=_.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:g}=n(t);return()=>g}return a},[a,t,n,o,r]),[c,d]=_.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const g=r(t);return[()=>g.matches,u=>(g.addEventListener("change",u),()=>{g.removeEventListener("change",u)})]},[a,r,t]);return sE(d,c,l)}function lE(t={}){const{themeId:e}=t;return function(n,o={}){let a=Sd();a&&e&&(a=a[e]||a);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=l?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:g=!1}=aE({name:"MuiUseMediaQuery",props:o,theme:a});let u=typeof n=="function"?n(a):n;return u=u.replace(/^@media( ?)/m,""),u.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` +`)),(sE!==void 0?i_:n_)(u,c,d,f,g)}}lE();function a_(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function Fv(t,e=0,r=1){return a_(t,e,r)}function s_(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ki(t){if(t.type)return t;if(t.charAt(0)==="#")return ki(s_(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Bo(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Bo(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const l_=t=>{const e=ki(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ac=(t,e)=>{try{return l_(t)}catch{return t}};function Ed(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function cE(t){t=ki(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,a=n*Math.min(o,1-o),l=(f,g=(f+r/30)%12)=>o-a*Math.max(Math.min(g-3,9-g,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return t.type==="hsla"&&(c+="a",d.push(e[3])),Ed({type:c,values:d})}function A1(t){t=ki(t);let e=t.type==="hsl"||t.type==="hsla"?ki(cE(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function c_(t,e){const r=A1(t),n=A1(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function It(t,e){return t=ki(t),e=Fv(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Ed(t)}function ap(t,e,r){try{return It(t,e)}catch{return t}}function Cd(t,e){if(t=ki(t),e=Fv(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return Ed(t)}function Mt(t,e,r){try{return Cd(t,e)}catch{return t}}function Td(t,e){if(t=ki(t),e=Fv(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return Ed(t)}function Pt(t,e,r){try{return Td(t,e)}catch{return t}}function D1(t,e=.15){return A1(t)>.5?Cd(t,e):Td(t,e)}function sp(t,e,r){try{return D1(t,e)}catch{return t}}function N1(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function kd(t,e=166){let r;function n(...o){const a=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function Ap(t,e){return _.isValidElement(t)&&e.indexOf(t.type.muiName??t.type?._payload?.value?.muiName)!==-1}function en(t){return t&&t.ownerDocument||document}function Xn(t){return en(t).defaultView||window}function xw(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let ww=0;function u_(t){const[e,r]=_.useState(t),n=t||e;return _.useEffect(()=>{e==null&&(ww+=1,r(`mui-${ww}`))},[e]),n}const p_={...zp},Sw=p_.useId;function va(t){if(Sw!==void 0){const e=Sw();return t??e}return u_(t)}function Wp({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=_.useRef(t!==void 0),[a,l]=_.useState(e),c=o?t:a,d=_.useCallback(f=>{o||l(f)},[]);return[c,d]}function On(t){const e=_.useRef(t);return Zr(()=>{e.current=t}),_.useRef((...r)=>(0,e.current)(...r)).current}function vr(...t){const e=_.useRef(void 0),r=_.useCallback(n=>{const o=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const l=a,c=l(n);return typeof c=="function"?c:()=>{l(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},t);return _.useMemo(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}const Ew={};function uE(t,e){const r=_.useRef(Ew);return r.current===Ew&&(r.current=t(e)),r}const d_=[];function f_(t){_.useEffect(t,d_)}class Od{static create(){return new Od}currentId=null;start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function As(){const t=uE(Od.create).current;return f_(t.disposeEffect),t}function Ws(t){try{return t.matches(":focus-visible")}catch{}return!1}function pE(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function Ue(t,e,r=void 0){const n={};for(const o in t){const a=t[o];let l="",c=!0;for(let d=0;dn.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Cw(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function hE(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=t;if(!e){const y=ye(r?.className,a,o?.className,n?.className),w={...r?.style,...o?.style,...n?.style},x={...r,...o,...n};return y.length>0&&(x.className=y),Object.keys(w).length>0&&(x.style=w),{props:x,internalRef:void 0}}const l=fE({...o,...n}),c=Cw(n),d=Cw(o),f=e(l),g=ye(f?.className,r?.className,a,o?.className,n?.className),u={...f?.style,...r?.style,...o?.style,...n?.style},m={...f,...r,...d,...c};return g.length>0&&(m.className=g),Object.keys(u).length>0&&(m.style=u),{props:m,internalRef:f.ref}}function mE(t,e,r){return typeof t=="function"?t(e,r):t}function pa(t){const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=t,l=o?{}:mE(r,n),{props:c,internalRef:d}=hE({...a,externalSlotProps:l}),f=vr(d,l?.ref,t.additionalProps?.ref);return dE(e,{...c,ref:f},n)}function Zs(t){return parseInt(_.version,10)>=19?t?.props?.ref||null:t?.ref||null}const gE=_.createContext(null);function zv(){return _.useContext(gE)}const m_=typeof Symbol=="function"&&Symbol.for,g_=m_?Symbol.for("mui.nested"):"__THEME_NESTED__";function v_(t,e){return typeof e=="function"?e(t):{...t,...e}}function y_(t){const{children:e,theme:r}=t,n=zv(),o=_.useMemo(()=>{const a=n===null?{...r}:v_(n,r);return a!=null&&(a[g_]=n!==null),a},[r,n]);return L.jsx(gE.Provider,{value:o,children:e})}const vE=_.createContext();function b_({value:t,...e}){return L.jsx(vE.Provider,{value:t??!0,...e})}const el=()=>_.useContext(vE)??!1,yE=_.createContext(void 0);function x_({value:t,children:e}){return L.jsx(yE.Provider,{value:t,children:e})}function w_(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?Oc(o.defaultProps,n):!o.styleOverrides&&!o.variants?Oc(o,n):n}function S_({props:t,name:e}){const r=_.useContext(yE);return w_({props:t,name:e,theme:{components:r}})}function E_(t){const e=Sd(),r=va()||"",{modularCssLayers:n}=t;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Zr(()=>{const a=document.querySelector("head");if(!a)return;const l=a.firstChild;if(o){if(l&&l.hasAttribute?.("data-mui-layer-order")&&l.getAttribute("data-mui-layer-order")===r)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",r),c.textContent=o,a.prepend(c)}else a.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[o,r]),o?L.jsx(eE,{styles:o}):null}const Tw={};function kw(t,e,r,n=!1){return _.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const a=r(o),l=t?{...e,[t]:a}:a;return n?()=>l:l}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function bE(t){const{children:e,theme:r,themeId:n}=t,o=Sd(Tw),a=zv()||Tw,l=kw(n,o,r),c=kw(n,a,r,!0),d=(n?l[n]:l).direction==="rtl",f=E_(l);return L.jsx(y_,{theme:c,children:L.jsx(jc.Provider,{value:l,children:L.jsx(b_,{value:d,children:L.jsxs(x_,{value:n?l[n].components:l.components,children:[f,e]})})})})}const Ow={theme:void 0};function C_(t){let e,r;return function(o){let a=e;return(a===void 0||o.theme!==r)&&(Ow.theme=o.theme,a=nE(t(Ow)),e=a,r=o.theme),a}}const jv="mode",Hv="color-scheme",T_="data-color-scheme";function k_(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=jv,colorSchemeStorageKey:a=Hv,attribute:l=T_,colorSchemeNode:c="document.documentElement",nonce:d}=t||{};let f="",g=l;if(l==="class"&&(g=".%s"),l==="data"&&(g="[data-%s]"),g.startsWith(".")){const m=g.substring(1);f+=`${c}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark)); + ${c}.classList.add('${m}'.replace('%s', colorScheme));`}const u=g.match(/\[([^\]]+)\]/);if(u){const[m,y]=u[1].split("=");y||(f+=`${c}.removeAttribute('${m}'.replace('%s', light)); + ${c}.removeAttribute('${m}'.replace('%s', dark));`),f+=` + ${c}.setAttribute('${m}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else f+=`${c}.setAttribute('${g}', colorScheme);`;return L.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${e}'; + const dark = localStorage.getItem('${a}-dark') || '${n}'; + const light = localStorage.getItem('${a}-light') || '${r}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${f} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function O_(){}const __=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let n;try{n=e.localStorage.getItem(t)}catch{}return n||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return O_;const n=o=>{const a=o.newValue;o.key===t&&r(a)};return e.addEventListener("storage",n),()=>{e.removeEventListener("storage",n)}}});function Yh(){}function _w(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function xE(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function R_(t){return xE(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function M_(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=jv,colorSchemeStorageKey:l=Hv,storageWindow:c=typeof window>"u"?void 0:window,storageManager:d=__,noSsr:f=!1}=t,g=o.join(","),u=o.length>1,m=_.useMemo(()=>d?.({key:a,storageWindow:c}),[d,a,c]),y=_.useMemo(()=>d?.({key:`${l}-light`,storageWindow:c}),[d,l,c]),w=_.useMemo(()=>d?.({key:`${l}-dark`,storageWindow:c}),[d,l,c]),[x,E]=_.useState(()=>{const N=m?.get(e)||e,D=y?.get(r)||r,C=w?.get(n)||n;return{mode:N,systemMode:_w(N),lightColorScheme:D,darkColorScheme:C}}),[k,I]=_.useState(f||!u);_.useEffect(()=>{I(!0)},[]);const O=R_(x),R=_.useCallback(N=>{E(D=>{if(N===D.mode)return D;const C=N??e;return m?.set(C),{...D,mode:C,systemMode:_w(C)}})},[m,e]),M=_.useCallback(N=>{N?typeof N=="string"?N&&!g.includes(N)?console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`):E(D=>{const C={...D};return xE(D,$=>{$==="light"&&(y?.set(N),C.lightColorScheme=N),$==="dark"&&(w?.set(N),C.darkColorScheme=N)}),C}):E(D=>{const C={...D},$=N.light===null?r:N.light,H=N.dark===null?n:N.dark;return $&&(g.includes($)?(C.lightColorScheme=$,y?.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),H&&(g.includes(H)?(C.darkColorScheme=H,w?.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),C}):E(D=>(y?.set(r),w?.set(n),{...D,lightColorScheme:r,darkColorScheme:n}))},[g,y,w,r,n]),T=_.useCallback(N=>{x.mode==="system"&&E(D=>{const C=N?.matches?"dark":"light";return D.systemMode===C?D:{...D,systemMode:C}})},[x.mode]),P=_.useRef(T);return P.current=T,_.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const N=(...C)=>P.current(...C),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(N),N(D),()=>{D.removeListener(N)}},[u]),_.useEffect(()=>{if(u){const N=m?.subscribe($=>{(!$||["light","dark","system"].includes($))&&R($||e)})||Yh,D=y?.subscribe($=>{(!$||g.match($))&&M({light:$})})||Yh,C=w?.subscribe($=>{(!$||g.match($))&&M({dark:$})})||Yh;return()=>{N(),D(),C()}}},[M,R,g,e,c,u,m,y,w]),{...x,mode:k?x.mode:void 0,systemMode:k?x.systemMode:void 0,colorScheme:k?O:void 0,setMode:R,setColorScheme:M}}const P_="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function I_(t){const{themeId:e,theme:r={},modeStorageKey:n=jv,colorSchemeStorageKey:o=Hv,disableTransitionOnChange:a=!1,defaultColorScheme:l,resolveTheme:c}=t,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=_.createContext(void 0),g=()=>_.useContext(f)||d,u={},m={};function y(k){const{children:I,theme:O,modeStorageKey:R=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:T=a,storageManager:P,storageWindow:N=typeof window>"u"?void 0:window,documentNode:D=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:H=!1,defaultMode:q="system",noSsr:U}=k,W=_.useRef(!1),K=zv(),re=_.useContext(f),Z=!!re&&!$,V=_.useMemo(()=>O||(typeof r=="function"?r():r),[O]),ee=V[e],F=ee||V,{colorSchemes:J=u,components:pe=m,cssVarPrefix:de}=F,ie=Object.keys(J).filter(Ye=>!!J[Ye]).join(","),fe=_.useMemo(()=>ie.split(","),[ie]),Se=typeof l=="string"?l:l.light,Ce=typeof l=="string"?l:l.dark,Oe=J[Se]&&J[Ce]?q:J[F.defaultColorScheme]?.palette?.mode||F.palette?.mode,{mode:ke,setMode:Le,systemMode:Ie,lightColorScheme:nt,darkColorScheme:Me,colorScheme:Te,setColorScheme:ht}=M_({supportedColorSchemes:fe,defaultLightColorScheme:Se,defaultDarkColorScheme:Ce,modeStorageKey:R,colorSchemeStorageKey:M,defaultMode:Oe,storageManager:P,storageWindow:N,noSsr:U});let be=ke,Ae=Te;Z&&(be=re.mode,Ae=re.colorScheme);const it=_.useMemo(()=>{const Ye=Ae||F.defaultColorScheme,ne=F.generateThemeVars?.()||F.vars,ge={...F,components:pe,colorSchemes:J,cssVarPrefix:de,vars:ne};if(typeof ge.generateSpacing=="function"&&(ge.spacing=ge.generateSpacing()),Ye){const je=J[Ye];je&&typeof je=="object"&&Object.keys(je).forEach(Be=>{je[Be]&&typeof je[Be]=="object"?ge[Be]={...ge[Be],...je[Be]}:ge[Be]=je[Be]})}return c?c(ge):ge},[F,Ae,pe,J,de]),Ze=F.colorSchemeSelector;Zr(()=>{if(Ae&&C&&Ze&&Ze!=="media"){const Ye=Ze;let ne=Ze;if(Ye==="class"&&(ne=".%s"),Ye==="data"&&(ne="[data-%s]"),Ye?.startsWith("data-")&&!Ye.includes("%s")&&(ne=`[${Ye}="%s"]`),ne.startsWith("."))C.classList.remove(...fe.map(ge=>ne.substring(1).replace("%s",ge))),C.classList.add(ne.substring(1).replace("%s",Ae));else{const ge=ne.replace("%s",Ae).match(/\[([^\]]+)\]/);if(ge){const[je,Be]=ge[1].split("=");Be||fe.forEach(st=>{C.removeAttribute(je.replace(Ae,st))}),C.setAttribute(je,Be?Be.replace(/"|'/g,""):"")}else C.setAttribute(ne,Ae)}}},[Ae,Ze,C,fe]),_.useEffect(()=>{let Ye;if(T&&W.current&&D){const ne=D.createElement("style");ne.appendChild(D.createTextNode(P_)),D.head.appendChild(ne),window.getComputedStyle(D.body),Ye=setTimeout(()=>{D.head.removeChild(ne)},1)}return()=>{clearTimeout(Ye)}},[Ae,T,D]),_.useEffect(()=>(W.current=!0,()=>{W.current=!1}),[]);const Xe=_.useMemo(()=>({allColorSchemes:fe,colorScheme:Ae,darkColorScheme:Me,lightColorScheme:nt,mode:be,setColorScheme:ht,setMode:Le,systemMode:Ie}),[fe,Ae,Me,nt,be,ht,Le,Ie,it.colorSchemeSelector]);let ve=!0;(H||F.cssVariables===!1||Z&&K?.cssVarPrefix===de)&&(ve=!1);const at=L.jsxs(_.Fragment,{children:[L.jsx(bE,{themeId:ee?e:void 0,theme:it,children:I}),ve&&L.jsx(G8,{styles:it.generateStyleSheets?.()||[]})]});return Z?at:L.jsx(f.Provider,{value:Xe,children:at})}const w=typeof l=="string"?l:l.light,x=typeof l=="string"?l:l.dark;return{CssVarsProvider:y,useColorScheme:g,getInitColorSchemeScript:k=>k_({colorSchemeStorageKey:o,defaultLightColorScheme:w,defaultDarkColorScheme:x,modeStorageKey:n,...k})}}function A_(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const Rw=(t,e,r,n=[])=>{let o=t;e.forEach((a,l)=>{l===e.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},D_=(t,e,r)=>{function n(o,a=[],l=[]){Object.entries(o).forEach(([c,d])=>{(!r||r&&!r([...a,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...a,c],Array.isArray(d)?[...l,c]:l):e([...a,c],d,l))})}n(t)},N_=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Jh(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},a={},l={};return D_(t,(c,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(c,d))){const g=`--${r?`${r}-`:""}${c.join("-")}`,u=N_(c,d);Object.assign(o,{[g]:u}),Rw(a,c,`var(${g})`,f),Rw(l,c,`var(${g}, ${u})`,f)}},c=>c[0]==="vars"),{css:o,vars:a,varsWithDefaults:l}}function $_(t,e={}){const{getSelector:r=E,disableCssColorScheme:n,colorSchemeSelector:o}=e,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=t,{vars:f,css:g,varsWithDefaults:u}=Jh(d,e);let m=u;const y={},{[c]:w,...x}=a;if(Object.entries(x||{}).forEach(([O,R])=>{const{vars:M,css:T,varsWithDefaults:P}=Jh(R,e);m=Dr(m,P),y[O]={css:T,vars:M}}),w){const{css:O,vars:R,varsWithDefaults:M}=Jh(w,e);m=Dr(m,M),y[c]={css:O,vars:R}}function E(O,R){let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),O){if(M==="media")return t.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${a[O]?.palette?.mode||O})`]:{":root":R}};if(M)return t.defaultColorScheme===O?`:root, ${M.replace("%s",String(O))}`:M.replace("%s",String(O))}return":root"}return{vars:m,generateThemeVars:()=>{let O={...f};return Object.entries(y).forEach(([,{vars:R}])=>{O=Dr(O,R)}),O},generateStyleSheets:()=>{const O=[],R=t.defaultColorScheme||"light";function M(N,D){Object.keys(D).length&&O.push(typeof N=="string"?{[N]:{...D}}:N)}M(r(void 0,{...g}),g);const{[R]:T,...P}=y;if(T){const{css:N}=T,D=a[R]?.palette?.mode,C=!n&&D?{colorScheme:D,...N}:{...N};M(r(R,{...C}),C)}return Object.entries(P).forEach(([N,{css:D}])=>{const C=a[N]?.palette?.mode,$=!n&&C?{colorScheme:C,...D}:{...D};M(r(N,{...$}),$)}),O}}}function L_(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const B_=(t,e)=>t.filter(r=>e.includes(r)),tl=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((o,a)=>{r((l,c)=>{a<=t.keys.length-1&&(a===0?Object.assign(l,c):l[t.up(t.keys[a])]=c)},o)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:B_(t.keys,Object.keys(e))).forEach(a=>{if(t.keys.includes(a)){const l=e[a];l!==void 0&&r((c,d)=>{n===a?Object.assign(c,d):c[t.up(a)]=d},l)}}):(typeof e=="number"||typeof e=="string")&&r((o,a)=>{Object.assign(o,a)},e)};function Up(t){return`--Grid-${t}Spacing`}function _d(t){return`--Grid-parent-${t}Spacing`}const Mw="--Grid-columns",zs="--Grid-parent-columns",F_=({theme:t,ownerState:e})=>{const r={};return tl(t.breakpoints,e.size,(n,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${zs}) - (var(${zs}) - ${o}) * (var(${_d("column")}) / var(${zs})))`}),n(r,a)}),r},z_=({theme:t,ownerState:e})=>{const r={};return tl(t.breakpoints,e.offset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${zs}) + var(${_d("column")}) * ${o} / var(${zs}))`}),n(r,a)}),r},j_=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={[Mw]:12};return tl(t.breakpoints,e.columns,(n,o)=>{const a=o??12;n(r,{[Mw]:a,"> *":{[zs]:a}})}),r},H_=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return tl(t.breakpoints,e.rowSpacing,(n,o)=>{const a=typeof o=="string"?o:t.spacing?.(o);n(r,{[Up("row")]:a,"> *":{[_d("row")]:a}})}),r},q_=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return tl(t.breakpoints,e.columnSpacing,(n,o)=>{const a=typeof o=="string"?o:t.spacing?.(o);n(r,{[Up("column")]:a,"> *":{[_d("column")]:a}})}),r},W_=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return tl(t.breakpoints,e.direction,(n,o)=>{n(r,{flexDirection:o})}),r},U_=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${Up("row")}) var(${Up("column")})`}}),X_=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},V_=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},G_=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`];function K_(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(r=>{t[r]!==void 0&&delete t[r]})}const Y_=wd(),J_=t_("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function Q_(t){return r_({props:t,name:"MuiGrid",defaultTheme:Y_})}function Z_(t={}){const{createStyledComponent:e=J_,useThemeProps:r=Q_,useTheme:n=Uc,componentName:o="MuiGrid"}=t,a=(f,g)=>{const{container:u,direction:m,spacing:y,wrap:w,size:x}=f,E={root:["root",u&&"container",w!=="wrap"&&`wrap-xs-${String(w)}`,...G_(m),...X_(x),...u?V_(y,g.breakpoints.keys[0]):[]]};return Ue(E,k=>qe(o,k),{})};function l(f,g,u=()=>!0){const m={};return f===null||(Array.isArray(f)?f.forEach((y,w)=>{y!==null&&u(y)&&g.keys[w]&&(m[g.keys[w]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const w=f[y];w!=null&&u(w)&&(m[y]=w)}):m[g.keys[0]]=f),m}const c=e(j_,q_,H_,F_,W_,U_,z_),d=_.forwardRef(function(g,u){const m=n(),y=r(g),w=Bv(y);K_(w,m.breakpoints);const{className:x,children:E,columns:k=12,container:I=!1,component:O="div",direction:R="row",wrap:M="wrap",size:T={},offset:P={},spacing:N=0,rowSpacing:D=N,columnSpacing:C=N,unstable_level:$=0,...H}=w,q=l(T,m.breakpoints,F=>F!==!1),U=l(P,m.breakpoints),W=g.columns??($?void 0:k),K=g.spacing??($?void 0:N),re=g.rowSpacing??g.spacing??($?void 0:D),Z=g.columnSpacing??g.spacing??($?void 0:C),V={...w,level:$,columns:W,container:I,direction:R,wrap:M,spacing:K,rowSpacing:re,columnSpacing:Z,size:q,offset:U},ee=a(V,m);return L.jsx(c,{ref:u,as:O,ownerState:V,className:ye(ee.root,x),...H,children:_.Children.map(E,F=>_.isValidElement(F)&&Ap(F,["Grid"])&&I&&F.props.container?_.cloneElement(F,{unstable_level:F.props?.unstable_level??$+1}):F)})});return d.muiName="Grid",d}const _c={black:"#000",white:"#fff"},$1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Za={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},es={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Sr={100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ts={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},rs={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ns={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function wE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:_c.white,default:_c.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const eR=wE();function SE(){return{text:{primary:_c.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:_c.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Pw=SE();function Iw(t,e,r,n){const o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=Td(t.main,o):e==="dark"&&(t.dark=Cd(t.main,a)))}function tR(t="light"){return t==="dark"?{main:ts[200],light:ts[50],dark:ts[400]}:{main:ts[700],light:ts[400],dark:ts[800]}}function rR(t="light"){return t==="dark"?{main:Za[200],light:Za[50],dark:Za[400]}:{main:Za[500],light:Za[300],dark:Za[700]}}function nR(t="light"){return t==="dark"?{main:es[500],light:es[300],dark:es[700]}:{main:es[700],light:es[400],dark:es[800]}}function oR(t="light"){return t==="dark"?{main:rs[400],light:rs[300],dark:rs[700]}:{main:rs[700],light:rs[500],dark:rs[900]}}function iR(t="light"){return t==="dark"?{main:ns[400],light:ns[300],dark:ns[700]}:{main:ns[800],light:ns[500],dark:ns[900]}}function aR(t="light"){return t==="dark"?{main:Sr[400],light:Sr[300],dark:Sr[700]}:{main:"#ed6c02",light:Sr[500],dark:Sr[900]}}function qv(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=t,a=t.primary||tR(e),l=t.secondary||rR(e),c=t.error||nR(e),d=t.info||oR(e),f=t.success||iR(e),g=t.warning||aR(e);function u(x){return c_(x,Pw.text.primary)>=r?Pw.text.primary:eR.text.primary}const m=({color:x,name:E,mainShade:k=500,lightShade:I=300,darkShade:O=700})=>{if(x={...x},!x.main&&x[k]&&(x.main=x[k]),!x.hasOwnProperty("main"))throw new Error(Bo(11,E?` (${E})`:"",k));if(typeof x.main!="string")throw new Error(Bo(12,E?` (${E})`:"",JSON.stringify(x.main)));return Iw(x,"light",I,n),Iw(x,"dark",O,n),x.contrastText||(x.contrastText=u(x.main)),x};let y;return e==="light"?y=wE():e==="dark"&&(y=SE()),Dr({common:{..._c},mode:e,primary:m({color:a,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:g,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:f,name:"success"}),grey:$1,contrastThreshold:r,getContrastText:u,augmentColor:m,tonalOffset:n,...y},o)}function sR(t){const e={};return Object.entries(t).forEach(n=>{const[o,a]=n;typeof a=="object"&&(e[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function lR(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function cR(t){return Math.round(t*1e5)/1e5}const Aw={textTransform:"uppercase"},Dw='"Roboto", "Helvetica", "Arial", sans-serif';function EE(t,e){const{fontFamily:r=Dw,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:g,...u}=typeof e=="function"?e(t):e,m=n/14,y=g||(E=>`${E/d*m}rem`),w=(E,k,I,O,R)=>({fontFamily:r,fontWeight:E,fontSize:y(k),lineHeight:I,...r===Dw?{letterSpacing:`${cR(O/k)}em`}:{},...R,...f}),x={h1:w(o,96,1.167,-1.5),h2:w(o,60,1.2,-.5),h3:w(a,48,1.167,0),h4:w(a,34,1.235,.25),h5:w(a,24,1.334,0),h6:w(l,20,1.6,.15),subtitle1:w(a,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(a,16,1.5,.15),body2:w(a,14,1.43,.15),button:w(l,14,1.75,.4,Aw),caption:w(a,12,1.66,.4),overline:w(a,12,2.66,1,Aw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dr({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c,...x},u,{clone:!1})}const uR=.2,pR=.14,dR=.12;function jt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${uR})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${pR})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${dR})`].join(",")}const fR=["none",jt(0,2,1,-1,0,1,1,0,0,1,3,0),jt(0,3,1,-2,0,2,2,0,0,1,5,0),jt(0,3,3,-2,0,3,4,0,0,1,8,0),jt(0,2,4,-1,0,4,5,0,0,1,10,0),jt(0,3,5,-1,0,5,8,0,0,1,14,0),jt(0,3,5,-1,0,6,10,0,0,1,18,0),jt(0,4,5,-2,0,7,10,1,0,2,16,1),jt(0,5,5,-3,0,8,10,1,0,3,14,2),jt(0,5,6,-3,0,9,12,1,0,3,16,2),jt(0,6,6,-3,0,10,14,1,0,4,18,3),jt(0,6,7,-4,0,11,15,1,0,4,20,3),jt(0,7,8,-4,0,12,17,2,0,5,22,4),jt(0,7,8,-4,0,13,19,2,0,5,24,4),jt(0,7,9,-4,0,14,21,2,0,5,26,4),jt(0,8,9,-5,0,15,22,2,0,6,28,5),jt(0,8,10,-5,0,16,24,2,0,6,30,5),jt(0,8,11,-5,0,17,26,2,0,6,32,5),jt(0,9,11,-5,0,18,28,2,0,7,34,6),jt(0,9,12,-6,0,19,29,2,0,7,36,6),jt(0,10,13,-6,0,20,31,3,0,8,38,7),jt(0,10,13,-6,0,21,33,3,0,8,40,7),jt(0,10,14,-6,0,22,35,3,0,8,42,7),jt(0,11,14,-7,0,23,36,3,0,9,44,8),jt(0,11,15,-7,0,24,38,3,0,9,46,8)],hR={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},mR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Nw(t){return`${Math.round(t)}ms`}function gR(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function vR(t){const e={...hR,...t.easing},r={...mR,...t.duration};return{getAutoHeightDuration:gR,create:(o=["all"],a={})=>{const{duration:l=r.standard,easing:c=e.easeInOut,delay:d=0,...f}=a;return(Array.isArray(o)?o:[o]).map(g=>`${g} ${typeof l=="string"?l:Nw(l)} ${c} ${typeof d=="string"?d:Nw(d)}`).join(",")},...t,easing:e,duration:r}}const yR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function bR(t){return uo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function CE(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let a=0;aDr(y,w),m),m.unstable_sxConfig={...Wc,...f?.unstable_sxConfig},m.unstable_sx=function(w){return Ti({sx:w,theme:this})},m.toRuntimeSource=CE,m}function B1(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const xR=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=B1(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function TE(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function kE(t){return t==="dark"?xR:[]}function wR(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,a=qv(e);return{palette:a,opacity:{...TE(a.mode),...r},overlays:n||kE(a.mode),...o}}function SR(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const ER=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],CR=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const l={};return ER(t.cssVarPrefix).forEach(c=>{l[c]=r[c],delete r[c]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:a?{[a.replace("%s",e)]:l,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...l}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function TR(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function te(t,e,r){!t[e]&&r&&(t[e]=r)}function sc(t){return typeof t!="string"||!t.startsWith("hsl")?t:cE(t)}function Io(t,e){`${e}Channel`in t||(t[`${e}Channel`]=ac(sc(t[e])))}function kR(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const ro=t=>{try{return t()}catch{}},OR=(t="mui")=>A_(t);function Qh(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=wR({...e,palette:{mode:o,...e?.palette}});return}const{palette:a,...l}=L1({...r,palette:{mode:o,...e?.palette}});return t[n]={...e,palette:a,opacity:{...TE(o),...e?.opacity},overlays:e?.overlays||kE(o)},l}function _R(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=SR,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...f}=t,g=Object.keys(r)[0],u=n||(r.light&&g!=="light"?"light":g),m=OR(a),{[u]:y,light:w,dark:x,...E}=r,k={...E};let I=y;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(I=!0),!I)throw new Error(Bo(21,u));const O=Qh(k,I,f,u);w&&!k.light&&Qh(k,w,void 0,"light"),x&&!k.dark&&Qh(k,x,void 0,"dark");let R={defaultColorScheme:u,...O,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:k,font:{...sR(O.typography),...O.font},spacing:kR(f.spacing)};Object.keys(R.colorSchemes).forEach(D=>{const C=R.colorSchemes[D].palette,$=H=>{const q=H.split("-"),U=q[1],W=q[2];return m(H,C[U][W])};if(C.mode==="light"&&(te(C.common,"background","#fff"),te(C.common,"onBackground","#000")),C.mode==="dark"&&(te(C.common,"background","#000"),te(C.common,"onBackground","#fff")),TR(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){te(C.Alert,"errorColor",Mt(C.error.light,.6)),te(C.Alert,"infoColor",Mt(C.info.light,.6)),te(C.Alert,"successColor",Mt(C.success.light,.6)),te(C.Alert,"warningColor",Mt(C.warning.light,.6)),te(C.Alert,"errorFilledBg",$("palette-error-main")),te(C.Alert,"infoFilledBg",$("palette-info-main")),te(C.Alert,"successFilledBg",$("palette-success-main")),te(C.Alert,"warningFilledBg",$("palette-warning-main")),te(C.Alert,"errorFilledColor",ro(()=>C.getContrastText(C.error.main))),te(C.Alert,"infoFilledColor",ro(()=>C.getContrastText(C.info.main))),te(C.Alert,"successFilledColor",ro(()=>C.getContrastText(C.success.main))),te(C.Alert,"warningFilledColor",ro(()=>C.getContrastText(C.warning.main))),te(C.Alert,"errorStandardBg",Pt(C.error.light,.9)),te(C.Alert,"infoStandardBg",Pt(C.info.light,.9)),te(C.Alert,"successStandardBg",Pt(C.success.light,.9)),te(C.Alert,"warningStandardBg",Pt(C.warning.light,.9)),te(C.Alert,"errorIconColor",$("palette-error-main")),te(C.Alert,"infoIconColor",$("palette-info-main")),te(C.Alert,"successIconColor",$("palette-success-main")),te(C.Alert,"warningIconColor",$("palette-warning-main")),te(C.AppBar,"defaultBg",$("palette-grey-100")),te(C.Avatar,"defaultBg",$("palette-grey-400")),te(C.Button,"inheritContainedBg",$("palette-grey-300")),te(C.Button,"inheritContainedHoverBg",$("palette-grey-A100")),te(C.Chip,"defaultBorder",$("palette-grey-400")),te(C.Chip,"defaultAvatarColor",$("palette-grey-700")),te(C.Chip,"defaultIconColor",$("palette-grey-700")),te(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),te(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),te(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),te(C.LinearProgress,"primaryBg",Pt(C.primary.main,.62)),te(C.LinearProgress,"secondaryBg",Pt(C.secondary.main,.62)),te(C.LinearProgress,"errorBg",Pt(C.error.main,.62)),te(C.LinearProgress,"infoBg",Pt(C.info.main,.62)),te(C.LinearProgress,"successBg",Pt(C.success.main,.62)),te(C.LinearProgress,"warningBg",Pt(C.warning.main,.62)),te(C.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),te(C.Slider,"primaryTrack",Pt(C.primary.main,.62)),te(C.Slider,"secondaryTrack",Pt(C.secondary.main,.62)),te(C.Slider,"errorTrack",Pt(C.error.main,.62)),te(C.Slider,"infoTrack",Pt(C.info.main,.62)),te(C.Slider,"successTrack",Pt(C.success.main,.62)),te(C.Slider,"warningTrack",Pt(C.warning.main,.62));const H=sp(C.background.default,.8);te(C.SnackbarContent,"bg",H),te(C.SnackbarContent,"color",ro(()=>C.getContrastText(H))),te(C.SpeedDialAction,"fabHoverBg",sp(C.background.paper,.15)),te(C.StepConnector,"border",$("palette-grey-400")),te(C.StepContent,"border",$("palette-grey-400")),te(C.Switch,"defaultColor",$("palette-common-white")),te(C.Switch,"defaultDisabledColor",$("palette-grey-100")),te(C.Switch,"primaryDisabledColor",Pt(C.primary.main,.62)),te(C.Switch,"secondaryDisabledColor",Pt(C.secondary.main,.62)),te(C.Switch,"errorDisabledColor",Pt(C.error.main,.62)),te(C.Switch,"infoDisabledColor",Pt(C.info.main,.62)),te(C.Switch,"successDisabledColor",Pt(C.success.main,.62)),te(C.Switch,"warningDisabledColor",Pt(C.warning.main,.62)),te(C.TableCell,"border",Pt(ap(C.divider,1),.88)),te(C.Tooltip,"bg",ap(C.grey[700],.92))}if(C.mode==="dark"){te(C.Alert,"errorColor",Pt(C.error.light,.6)),te(C.Alert,"infoColor",Pt(C.info.light,.6)),te(C.Alert,"successColor",Pt(C.success.light,.6)),te(C.Alert,"warningColor",Pt(C.warning.light,.6)),te(C.Alert,"errorFilledBg",$("palette-error-dark")),te(C.Alert,"infoFilledBg",$("palette-info-dark")),te(C.Alert,"successFilledBg",$("palette-success-dark")),te(C.Alert,"warningFilledBg",$("palette-warning-dark")),te(C.Alert,"errorFilledColor",ro(()=>C.getContrastText(C.error.dark))),te(C.Alert,"infoFilledColor",ro(()=>C.getContrastText(C.info.dark))),te(C.Alert,"successFilledColor",ro(()=>C.getContrastText(C.success.dark))),te(C.Alert,"warningFilledColor",ro(()=>C.getContrastText(C.warning.dark))),te(C.Alert,"errorStandardBg",Mt(C.error.light,.9)),te(C.Alert,"infoStandardBg",Mt(C.info.light,.9)),te(C.Alert,"successStandardBg",Mt(C.success.light,.9)),te(C.Alert,"warningStandardBg",Mt(C.warning.light,.9)),te(C.Alert,"errorIconColor",$("palette-error-main")),te(C.Alert,"infoIconColor",$("palette-info-main")),te(C.Alert,"successIconColor",$("palette-success-main")),te(C.Alert,"warningIconColor",$("palette-warning-main")),te(C.AppBar,"defaultBg",$("palette-grey-900")),te(C.AppBar,"darkBg",$("palette-background-paper")),te(C.AppBar,"darkColor",$("palette-text-primary")),te(C.Avatar,"defaultBg",$("palette-grey-600")),te(C.Button,"inheritContainedBg",$("palette-grey-800")),te(C.Button,"inheritContainedHoverBg",$("palette-grey-700")),te(C.Chip,"defaultBorder",$("palette-grey-700")),te(C.Chip,"defaultAvatarColor",$("palette-grey-300")),te(C.Chip,"defaultIconColor",$("palette-grey-300")),te(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),te(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),te(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),te(C.LinearProgress,"primaryBg",Mt(C.primary.main,.5)),te(C.LinearProgress,"secondaryBg",Mt(C.secondary.main,.5)),te(C.LinearProgress,"errorBg",Mt(C.error.main,.5)),te(C.LinearProgress,"infoBg",Mt(C.info.main,.5)),te(C.LinearProgress,"successBg",Mt(C.success.main,.5)),te(C.LinearProgress,"warningBg",Mt(C.warning.main,.5)),te(C.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),te(C.Slider,"primaryTrack",Mt(C.primary.main,.5)),te(C.Slider,"secondaryTrack",Mt(C.secondary.main,.5)),te(C.Slider,"errorTrack",Mt(C.error.main,.5)),te(C.Slider,"infoTrack",Mt(C.info.main,.5)),te(C.Slider,"successTrack",Mt(C.success.main,.5)),te(C.Slider,"warningTrack",Mt(C.warning.main,.5));const H=sp(C.background.default,.98);te(C.SnackbarContent,"bg",H),te(C.SnackbarContent,"color",ro(()=>C.getContrastText(H))),te(C.SpeedDialAction,"fabHoverBg",sp(C.background.paper,.15)),te(C.StepConnector,"border",$("palette-grey-600")),te(C.StepContent,"border",$("palette-grey-600")),te(C.Switch,"defaultColor",$("palette-grey-300")),te(C.Switch,"defaultDisabledColor",$("palette-grey-600")),te(C.Switch,"primaryDisabledColor",Mt(C.primary.main,.55)),te(C.Switch,"secondaryDisabledColor",Mt(C.secondary.main,.55)),te(C.Switch,"errorDisabledColor",Mt(C.error.main,.55)),te(C.Switch,"infoDisabledColor",Mt(C.info.main,.55)),te(C.Switch,"successDisabledColor",Mt(C.success.main,.55)),te(C.Switch,"warningDisabledColor",Mt(C.warning.main,.55)),te(C.TableCell,"border",Mt(ap(C.divider,1),.68)),te(C.Tooltip,"bg",ap(C.grey[700],.92))}Io(C.background,"default"),Io(C.background,"paper"),Io(C.common,"background"),Io(C.common,"onBackground"),Io(C,"divider"),Object.keys(C).forEach(H=>{const q=C[H];H!=="tonalOffset"&&q&&typeof q=="object"&&(q.main&&te(C[H],"mainChannel",ac(sc(q.main))),q.light&&te(C[H],"lightChannel",ac(sc(q.light))),q.dark&&te(C[H],"darkChannel",ac(sc(q.dark))),q.contrastText&&te(C[H],"contrastTextChannel",ac(sc(q.contrastText))),H==="text"&&(Io(C[H],"primary"),Io(C[H],"secondary")),H==="action"&&(q.active&&Io(C[H],"active"),q.selected&&Io(C[H],"selected")))})}),R=e.reduce((D,C)=>Dr(D,C),R);const M={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:CR(R)},{vars:T,generateThemeVars:P,generateStyleSheets:N}=$_(R,M);return R.vars=T,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([D,C])=>{R[D]=C}),R.generateThemeVars=P,R.generateStyleSheets=N,R.generateSpacing=function(){return Z8(f.spacing,$v(this))},R.getColorSchemeSelector=L_(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=l,R.unstable_sxConfig={...Wc,...f?.unstable_sxConfig},R.unstable_sx=function(C){return Ti({sx:C,theme:this})},R.toRuntimeSource=CE,R}function $w(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:qv({...r===!0?{}:r.palette,mode:e})})}function Rc(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...l}=t,c=a||"light",d=o?.[c],f={...o,...r?{[c]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return L1(t,...e);let g=r;"palette"in t||f[c]&&(f[c]!==!0?g=f[c].palette:c==="dark"&&(g={mode:"dark"}));const u=L1({...t,palette:g},...e);return u.defaultColorScheme=c,u.colorSchemes=f,u.palette.mode==="light"&&(u.colorSchemes.light={...f.light!==!0&&f.light,palette:u.palette},$w(u,"dark",f.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:u.palette},$w(u,"light",f.light)),u}return!r&&!("light"in f)&&c==="light"&&(f.light=!0),_R({...l,colorSchemes:f,defaultColorScheme:c,...typeof n!="boolean"&&n},...e)}const Wv=Rc();function jo(){const t=Uc(Wv);return t[Un]||t}function OE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const yr=t=>OE(t)&&t!=="classes",ae=iE({themeId:Un,defaultTheme:Wv,rootShouldForwardProp:yr});function RR({theme:t,...e}){const r=Un in t?t[Un]:void 0;return L.jsx(bE,{...e,themeId:r?Un:void 0,theme:r||t})}const lp={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:MR}=I_({themeId:Un,theme:()=>Rc({cssVariables:!0}),colorSchemeStorageKey:lp.colorSchemeStorageKey,modeStorageKey:lp.modeStorageKey,defaultColorScheme:{light:lp.defaultLightColorScheme,dark:lp.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:EE(t.palette,t.typography)};return e.unstable_sx=function(n){return Ti({sx:n,theme:this})},e}}),PR=MR;function IR({theme:t,...e}){const r=_.useMemo(()=>{if(typeof t=="function")return t;const n=Un in t?t[Un]:t;return"colorSchemes"in n?null:"vars"in n?t:{...t,vars:null}},[t]);return r?L.jsx(RR,{theme:r,...e}):L.jsx(PR,{theme:t,...e})}function AR(t){return L.jsx(eE,{...t,defaultTheme:Wv,themeId:Un})}function DR(t){return function(r){return L.jsx(AR,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function NR(){return Bv}const Qe=C_;function Ke(t){return S_(t)}function $R(t){return qe("MuiSvgIcon",t)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const LR=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${me(e)}`,`fontSize${me(r)}`]};return Ue(o,$R,n)},BR=ae("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${me(r.color)}`],e[`fontSize${me(r.fontSize)}`]]}})(Qe(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),F1=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiSvgIcon"}),{children:o,className:a,color:l="inherit",component:c="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:g=!1,titleAccess:u,viewBox:m="0 0 24 24",...y}=n,w=_.isValidElement(o)&&o.type==="svg",x={...n,color:l,component:c,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:g,viewBox:m,hasSvgAsChild:w},E={};g||(E.viewBox=m);const k=LR(x);return L.jsxs(BR,{as:c,className:ye(k.root,a),focusable:"false",color:f,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:r,...E,...y,...w&&o.props,ownerState:x,children:[w?o.props.children:o,u?L.jsx("title",{children:u}):null]})});F1.muiName="SvgIcon";function He(t,e){function r(n,o){return L.jsx(F1,{"data-testid":`${e}Icon`,ref:o,...n,children:t})}return r.muiName=F1.muiName,_.memo(_.forwardRef(r))}function _E(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const a=typeof e=="function"?e(o):e,l=typeof t=="function"?t({...o,...a}):t,c=ye(o?.className,a?.className,l?.className);return{...a,...l,...!!c&&{className:c},...a?.style&&l?.style&&{style:{...a.style,...l.style}},...a?.sx&&l?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=e,n=ye(r?.className,t?.className);return{...e,...t,...!!n&&{className:n},...r?.style&&t?.style&&{style:{...r.style,...t.style}},...r?.sx&&t?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function RE(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function z1(t,e){return z1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},z1(t,e)}function ME(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,z1(t,e)}var PE=I8();const cp=Ri(PE),Lw={disabled:!1},Xp=v.createContext(null);var FR=function(e){return e.scrollTop},lc="unmounted",na="exited",oa="entering",hs="entered",j1="exiting",bo=(function(t){ME(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var l=o,c=l&&!l.isMounting?n.enter:n.appear,d;return a.appearStatus=null,n.in?c?(d=na,a.appearStatus=oa):d=hs:n.unmountOnExit||n.mountOnEnter?d=lc:d=na,a.state={status:d},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var l=o.in;return l&&a.status===lc?{status:na}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==oa&&l!==hs&&(a=oa):(l===oa||l===hs)&&(a=j1)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,l,c;return a=l=c=o,o!=null&&typeof o!="number"&&(a=o.exit,l=o.enter,c=o.appear!==void 0?o.appear:l),{exit:a,enter:l,appear:c}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===oa){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:cp.findDOMNode(this);l&&FR(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===na&&this.setState({status:lc})},r.performEnter=function(o){var a=this,l=this.props.enter,c=this.context?this.context.isMounting:o,d=this.props.nodeRef?[c]:[cp.findDOMNode(this),c],f=d[0],g=d[1],u=this.getTimeouts(),m=c?u.appear:u.enter;if(!o&&!l||Lw.disabled){this.safeSetState({status:hs},function(){a.props.onEntered(f)});return}this.props.onEnter(f,g),this.safeSetState({status:oa},function(){a.props.onEntering(f,g),a.onTransitionEnd(m,function(){a.safeSetState({status:hs},function(){a.props.onEntered(f,g)})})})},r.performExit=function(){var o=this,a=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:cp.findDOMNode(this);if(!a||Lw.disabled){this.safeSetState({status:na},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:j1},function(){o.props.onExiting(c),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:na},function(){o.props.onExited(c)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,a.nextCallback=null,o(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:cp.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=d[0],g=d[1];this.props.addEndListener(f,g)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===lc)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=RE(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Xp.Provider,{value:null},typeof l=="function"?l(o,c):v.cloneElement(v.Children.only(l),c))},e})(v.Component);bo.contextType=Xp;bo.propTypes={};function os(){}bo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:os,onEntering:os,onEntered:os,onExit:os,onExiting:os,onExited:os};bo.UNMOUNTED=lc;bo.EXITED=na;bo.ENTERING=oa;bo.ENTERED=hs;bo.EXITING=j1;function zR(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uv(t,e){var r=function(a){return e&&_.isValidElement(a)?e(a):a},n=Object.create(null);return t&&_.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function jR(t,e){t=t||{},e=e||{};function r(g){return g in e?e[g]:t[g]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var l,c={};for(var d in e){if(n[d])for(l=0;lt.scrollTop;function Vp(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function XR(t){return qe("MuiPaper",t)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const VR=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return Ue(a,XR,o)},GR=ae("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Qe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),rl=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiPaper"}),o=jo(),{className:a,component:l="div",elevation:c=1,square:d=!1,variant:f="elevation",...g}=n,u={...n,component:l,elevation:c,square:d,variant:f},m=VR(u);return L.jsx(GR,{as:l,ownerState:u,className:ye(m.root,a),ref:r,...g,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${It("#fff",B1(c))}, ${It("#fff",B1(c))})`}},...g.style}})});function ct(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=e,{component:f,slots:g={[t]:void 0},slotProps:u={[t]:void 0},...m}=a,y=g[t]||n,w=mE(u[t],o),{props:{component:x,...E},internalRef:k}=hE({className:r,...d,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:w}),I=vr(k,w?.ref,e.ref),O=t==="root"?x||f:x,R=dE(y,{...t==="root"&&!f&&!g[t]&&l,...t!=="root"&&!g[t]&&l,...E,...O&&!c&&{as:O},...O&&c&&{component:O},ref:I},o);return[y,R]}class Gp{static create(){return new Gp}static use(){const e=uE(Gp.create).current,[r,n]=_.useState(!1);return e.shouldMount=r,e.setShouldMount=n,_.useEffect(e.mountEffect,[r]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=YR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function KR(){return Gp.use()}function YR(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function JR(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:l,in:c,onExited:d,timeout:f}=t,[g,u]=_.useState(!1),m=ye(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:l,height:l,top:-(l/2)+a,left:-(l/2)+o},w=ye(r.child,g&&r.childLeaving,n&&r.childPulsate);return!c&&!g&&u(!0),_.useEffect(()=>{if(!c&&d!=null){const x=setTimeout(d,f);return()=>{clearTimeout(x)}}},[d,c,f]),L.jsx("span",{className:m,style:y,children:L.jsx("span",{className:w})})}const Tn=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),H1=550,QR=80,ZR=Mi` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,eM=Mi` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,tM=Mi` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,rM=ae("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),nM=ae(JR,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${Tn.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${ZR}; + animation-duration: ${H1}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${Tn.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${Tn.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${Tn.childLeaving} { + opacity: 0; + animation-name: ${eM}; + animation-duration: ${H1}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${Tn.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${tM}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,oM=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:l,...c}=n,[d,f]=_.useState([]),g=_.useRef(0),u=_.useRef(null);_.useEffect(()=>{u.current&&(u.current(),u.current=null)},[d]);const m=_.useRef(!1),y=As(),w=_.useRef(null),x=_.useRef(null),E=_.useCallback(R=>{const{pulsate:M,rippleX:T,rippleY:P,rippleSize:N,cb:D}=R;f(C=>[...C,L.jsx(nM,{classes:{ripple:ye(a.ripple,Tn.ripple),rippleVisible:ye(a.rippleVisible,Tn.rippleVisible),ripplePulsate:ye(a.ripplePulsate,Tn.ripplePulsate),child:ye(a.child,Tn.child),childLeaving:ye(a.childLeaving,Tn.childLeaving),childPulsate:ye(a.childPulsate,Tn.childPulsate)},timeout:H1,pulsate:M,rippleX:T,rippleY:P,rippleSize:N},g.current)]),g.current+=1,u.current=D},[a]),k=_.useCallback((R={},M={},T=()=>{})=>{const{pulsate:P=!1,center:N=o||M.pulsate,fakeElement:D=!1}=M;if(R?.type==="mousedown"&&m.current){m.current=!1;return}R?.type==="touchstart"&&(m.current=!0);const C=D?null:x.current,$=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,q,U;if(N||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)H=Math.round($.width/2),q=Math.round($.height/2);else{const{clientX:W,clientY:K}=R.touches&&R.touches.length>0?R.touches[0]:R;H=Math.round(W-$.left),q=Math.round(K-$.top)}if(N)U=Math.sqrt((2*$.width**2+$.height**2)/3),U%2===0&&(U+=1);else{const W=Math.max(Math.abs((C?C.clientWidth:0)-H),H)*2+2,K=Math.max(Math.abs((C?C.clientHeight:0)-q),q)*2+2;U=Math.sqrt(W**2+K**2)}R?.touches?w.current===null&&(w.current=()=>{E({pulsate:P,rippleX:H,rippleY:q,rippleSize:U,cb:T})},y.start(QR,()=>{w.current&&(w.current(),w.current=null)})):E({pulsate:P,rippleX:H,rippleY:q,rippleSize:U,cb:T})},[o,E,y]),I=_.useCallback(()=>{k({},{pulsate:!0})},[k]),O=_.useCallback((R,M)=>{if(y.clear(),R?.type==="touchend"&&w.current){w.current(),w.current=null,y.start(0,()=>{O(R,M)});return}w.current=null,f(T=>T.length>0?T.slice(1):T),u.current=M},[y]);return _.useImperativeHandle(r,()=>({pulsate:I,start:k,stop:O}),[I,k,O]),L.jsx(rM,{className:ye(Tn.root,a.root,l),ref:x,...c,children:L.jsx(Xv,{component:null,exit:!0,children:d})})});function iM(t){return qe("MuiButtonBase",t)}const aM=We("MuiButtonBase",["root","disabled","focusVisible"]),sM=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,l=Ue({root:["root",e&&"disabled",r&&"focusVisible"]},iM,o);return r&&n&&(l.root+=` ${n}`),l},lM=ae("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Pi=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:l,className:c,component:d="button",disabled:f=!1,disableRipple:g=!1,disableTouchRipple:u=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:w="a",onBlur:x,onClick:E,onContextMenu:k,onDragLeave:I,onFocus:O,onFocusVisible:R,onKeyDown:M,onKeyUp:T,onMouseDown:P,onMouseLeave:N,onMouseUp:D,onTouchEnd:C,onTouchMove:$,onTouchStart:H,tabIndex:q=0,TouchRippleProps:U,touchRippleRef:W,type:K,...re}=n,Z=_.useRef(null),V=KR(),ee=vr(V.ref,W),[F,J]=_.useState(!1);f&&F&&J(!1),_.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),Z.current.focus()}}),[]);const pe=V.shouldMount&&!g&&!f;_.useEffect(()=>{F&&m&&!g&&V.pulsate()},[g,m,F,V]);const de=Ao(V,"start",P,u),ie=Ao(V,"stop",k,u),fe=Ao(V,"stop",I,u),Se=Ao(V,"stop",D,u),Ce=Ao(V,"stop",ve=>{F&&ve.preventDefault(),N&&N(ve)},u),Oe=Ao(V,"start",H,u),ke=Ao(V,"stop",C,u),Le=Ao(V,"stop",$,u),Ie=Ao(V,"stop",ve=>{Ws(ve.target)||J(!1),x&&x(ve)},!1),nt=On(ve=>{Z.current||(Z.current=ve.currentTarget),Ws(ve.target)&&(J(!0),R&&R(ve)),O&&O(ve)}),Me=()=>{const ve=Z.current;return d&&d!=="button"&&!(ve.tagName==="A"&&ve.href)},Te=On(ve=>{m&&!ve.repeat&&F&&ve.key===" "&&V.stop(ve,()=>{V.start(ve)}),ve.target===ve.currentTarget&&Me()&&ve.key===" "&&ve.preventDefault(),M&&M(ve),ve.target===ve.currentTarget&&Me()&&ve.key==="Enter"&&!f&&(ve.preventDefault(),E&&E(ve))}),ht=On(ve=>{m&&ve.key===" "&&F&&!ve.defaultPrevented&&V.stop(ve,()=>{V.pulsate(ve)}),T&&T(ve),E&&ve.target===ve.currentTarget&&Me()&&ve.key===" "&&!ve.defaultPrevented&&E(ve)});let be=d;be==="button"&&(re.href||re.to)&&(be=w);const Ae={};be==="button"?(Ae.type=K===void 0?"button":K,Ae.disabled=f):(!re.href&&!re.to&&(Ae.role="button"),f&&(Ae["aria-disabled"]=f));const it=vr(r,Z),Ze={...n,centerRipple:a,component:d,disabled:f,disableRipple:g,disableTouchRipple:u,focusRipple:m,tabIndex:q,focusVisible:F},Xe=sM(Ze);return L.jsxs(lM,{as:be,className:ye(Xe.root,c),ownerState:Ze,onBlur:Ie,onClick:E,onContextMenu:ie,onFocus:nt,onKeyDown:Te,onKeyUp:ht,onMouseDown:de,onMouseLeave:Ce,onMouseUp:Se,onDragLeave:fe,onTouchEnd:ke,onTouchMove:Le,onTouchStart:Oe,ref:it,tabIndex:f?-1:q,type:K,...Ae,...re,children:[l,pe?L.jsx(oM,{ref:ee,center:a,...U}):null]})});function Ao(t,e,r,n=!1){return On(o=>(r&&r(o),n||t[e](o),!0))}function cM(t){return typeof t.main=="string"}function uM(t,e=[]){if(!cM(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function rr(t=[]){return([,e])=>e&&uM(e,t)}function pM(t){return qe("MuiCircularProgress",t)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const hi=44,q1=Mi` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,W1=Mi` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: -126px; + } +`,dM=typeof q1!="string"?Qs` + animation: ${q1} 1.4s linear infinite; + `:null,fM=typeof W1!="string"?Qs` + animation: ${W1} 1.4s ease-in-out infinite; + `:null,hM=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,a={root:["root",r,`color${me(n)}`],svg:["svg"],circle:["circle",`circle${me(r)}`,o&&"circleDisableShrink"]};return Ue(a,pM,e)},mM=ae("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:dM||{animation:`${q1} 1.4s linear infinite`}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),gM=ae("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),vM=ae("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${me(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Qe(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:fM||{animation:`${W1} 1.4s ease-in-out infinite`}}]}))),Vv=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:l=!1,size:c=40,style:d,thickness:f=3.6,value:g=0,variant:u="indeterminate",...m}=n,y={...n,color:a,disableShrink:l,size:c,thickness:f,value:g,variant:u},w=hM(y),x={},E={},k={};if(u==="determinate"){const I=2*Math.PI*((hi-f)/2);x.strokeDasharray=I.toFixed(3),k["aria-valuenow"]=Math.round(g),x.strokeDashoffset=`${((100-g)/100*I).toFixed(3)}px`,E.transform="rotate(-90deg)"}return L.jsx(mM,{className:ye(w.root,o),style:{width:c,height:c,...E,...d},ownerState:y,ref:r,role:"progressbar",...k,...m,children:L.jsx(gM,{className:w.svg,ownerState:y,viewBox:`${hi/2} ${hi/2} ${hi} ${hi}`,children:L.jsx(vM,{className:w.circle,style:x,ownerState:y,cx:hi,cy:hi,r:(hi-f)/2,fill:"none",strokeWidth:f})})})});function yM(t){return qe("MuiIconButton",t)}const Bw=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),bM=t=>{const{classes:e,disabled:r,color:n,edge:o,size:a,loading:l}=t,c={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${me(n)}`,o&&`edge${me(o)}`,`size${me(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ue(c,yM,e)},xM=ae(Pi,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${me(r.color)}`],r.edge&&e[`edge${me(r.edge)}`],e[`size${me(r.size)}`]]}})(Qe(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Qe(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Bw.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Bw.loading}`]:{color:"transparent"}}))),wM=ae("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),cr=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:l,color:c="default",disabled:d=!1,disableFocusRipple:f=!1,size:g="medium",id:u,loading:m=null,loadingIndicator:y,...w}=n,x=va(u),E=y??L.jsx(Vv,{"aria-labelledby":x,color:"inherit",size:16}),k={...n,edge:o,color:c,disabled:d,disableFocusRipple:f,loading:m,loadingIndicator:E,size:g},I=bM(k);return L.jsxs(xM,{id:m?x:u,className:ye(I.root,l),centerRipple:!0,focusRipple:!f,disabled:d||m,ref:r,...w,ownerState:k,children:[typeof m=="boolean"&&L.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:L.jsx(wM,{className:I.loadingIndicator,ownerState:k,children:m&&E})}),a]})});function SM(t){return qe("MuiTypography",t)}const Fw=We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),EM={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},CM=NR(),TM=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:l}=t,c={root:["root",a,t.align!=="inherit"&&`align${me(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Ue(c,SM,l)},kM=ae("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${me(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Qe(({theme:t})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([e,r])=>e!=="inherit"&&r&&typeof r=="object").map(([e,r])=>({props:{variant:e},style:r})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette?.text||{}).filter(([,e])=>typeof e=="string").map(([e])=>({props:{color:`text${me(e)}`},style:{color:(t.vars||t).palette.text[e]}})),{props:({ownerState:e})=>e.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),zw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},qn=_.forwardRef(function(e,r){const{color:n,...o}=Ke({props:e,name:"MuiTypography"}),a=!EM[n],l=CM({...o,...a&&{color:n}}),{align:c="inherit",className:d,component:f,gutterBottom:g=!1,noWrap:u=!1,paragraph:m=!1,variant:y="body1",variantMapping:w=zw,...x}=l,E={...l,align:c,color:n,className:d,component:f,gutterBottom:g,noWrap:u,paragraph:m,variant:y,variantMapping:w},k=f||(m?"p":w[y]||zw[y])||"span",I=TM(E);return L.jsx(kM,{as:k,ref:r,className:ye(I.root,d),...x,ownerState:E,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...x.style}})});function OM(t){return qe("MuiAppBar",t)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _M=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${me(e)}`,`position${me(r)}`]};return Ue(o,OM,n)},jw=(t,e)=>t?`${t?.replace(")","")}, ${e})`:e,RM=ae(rl,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${me(r.position)}`],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(rr(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].contrastText}})),{props:e=>e.enableColorOnDark===!0&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>e.enableColorOnDark===!1&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?jw(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?jw(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),AE=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:l=!1,position:c="fixed",...d}=n,f={...n,color:a,position:c,enableColorOnDark:l},g=_M(f);return L.jsx(RM,{square:!0,component:"header",ownerState:f,elevation:4,className:ye(g.root,o,c==="fixed"&&"mui-fixed"),ref:r,...d})});var Yr="top",Rn="bottom",Mn="right",Jr="left",Gv="auto",Xc=[Yr,Rn,Mn,Jr],Us="start",Mc="end",MM="clippingParents",DE="viewport",ql="popper",PM="reference",Hw=Xc.reduce(function(t,e){return t.concat([e+"-"+Us,e+"-"+Mc])},[]),NE=[].concat(Xc,[Gv]).reduce(function(t,e){return t.concat([e,e+"-"+Us,e+"-"+Mc])},[]),IM="beforeRead",AM="read",DM="afterRead",NM="beforeMain",$M="main",LM="afterMain",BM="beforeWrite",FM="write",zM="afterWrite",jM=[IM,AM,DM,NM,$M,LM,BM,FM,zM];function vo(t){return t?(t.nodeName||"").toLowerCase():null}function fn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function da(t){var e=fn(t).Element;return t instanceof e||t instanceof Element}function _n(t){var e=fn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Kv(t){if(typeof ShadowRoot>"u")return!1;var e=fn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function HM(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},a=e.elements[r];!_n(a)||!vo(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function qM(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],a=e.attributes[n]||{},l=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),c=l.reduce(function(d,f){return d[f]="",d},{});!_n(o)||!vo(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(d){o.removeAttribute(d)}))})}}const WM={name:"applyStyles",enabled:!0,phase:"write",fn:HM,effect:qM,requires:["computeStyles"]};function ho(t){return t.split("-")[0]}var ca=Math.max,Kp=Math.min,Xs=Math.round;function U1(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $E(){return!/^((?!chrome|android).)*safari/i.test(U1())}function Vs(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&_n(t)&&(o=t.offsetWidth>0&&Xs(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Xs(n.height)/t.offsetHeight||1);var l=da(t)?fn(t):window,c=l.visualViewport,d=!$E()&&r,f=(n.left+(d&&c?c.offsetLeft:0))/o,g=(n.top+(d&&c?c.offsetTop:0))/a,u=n.width/o,m=n.height/a;return{width:u,height:m,top:g,right:f+u,bottom:g+m,left:f,x:f,y:g}}function Yv(t){var e=Vs(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function LE(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Kv(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function zo(t){return fn(t).getComputedStyle(t)}function UM(t){return["table","td","th"].indexOf(vo(t))>=0}function Ii(t){return((da(t)?t.ownerDocument:t.document)||window.document).documentElement}function Rd(t){return vo(t)==="html"?t:t.assignedSlot||t.parentNode||(Kv(t)?t.host:null)||Ii(t)}function qw(t){return!_n(t)||zo(t).position==="fixed"?null:t.offsetParent}function XM(t){var e=/firefox/i.test(U1()),r=/Trident/i.test(U1());if(r&&_n(t)){var n=zo(t);if(n.position==="fixed")return null}var o=Rd(t);for(Kv(o)&&(o=o.host);_n(o)&&["html","body"].indexOf(vo(o))<0;){var a=zo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Vc(t){for(var e=fn(t),r=qw(t);r&&UM(r)&&zo(r).position==="static";)r=qw(r);return r&&(vo(r)==="html"||vo(r)==="body"&&zo(r).position==="static")?e:r||XM(t)||e}function Jv(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function yc(t,e,r){return ca(t,Kp(e,r))}function VM(t,e,r){var n=yc(t,e,r);return n>r?r:n}function BE(){return{top:0,right:0,bottom:0,left:0}}function FE(t){return Object.assign({},BE(),t)}function zE(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var GM=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,FE(typeof e!="number"?e:zE(e,Xc))};function KM(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=ho(r.placement),d=Jv(c),f=[Jr,Mn].indexOf(c)>=0,g=f?"height":"width";if(!(!a||!l)){var u=GM(o.padding,r),m=Yv(a),y=d==="y"?Yr:Jr,w=d==="y"?Rn:Mn,x=r.rects.reference[g]+r.rects.reference[d]-l[d]-r.rects.popper[g],E=l[d]-r.rects.reference[d],k=Vc(a),I=k?d==="y"?k.clientHeight||0:k.clientWidth||0:0,O=x/2-E/2,R=u[y],M=I-m[g]-u[w],T=I/2-m[g]/2+O,P=yc(R,T,M),N=d;r.modifiersData[n]=(e={},e[N]=P,e.centerOffset=P-T,e)}}function YM(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||LE(e.elements.popper,o)&&(e.elements.arrow=o))}const JM={name:"arrow",enabled:!0,phase:"main",fn:KM,effect:YM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gs(t){return t.split("-")[1]}var QM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZM(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Xs(r*o)/o||0,y:Xs(n*o)/o||0}}function Ww(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,l=t.offsets,c=t.position,d=t.gpuAcceleration,f=t.adaptive,g=t.roundOffsets,u=t.isFixed,m=l.x,y=m===void 0?0:m,w=l.y,x=w===void 0?0:w,E=typeof g=="function"?g({x:y,y:x}):{x:y,y:x};y=E.x,x=E.y;var k=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),O=Jr,R=Yr,M=window;if(f){var T=Vc(r),P="clientHeight",N="clientWidth";if(T===fn(r)&&(T=Ii(r),zo(T).position!=="static"&&c==="absolute"&&(P="scrollHeight",N="scrollWidth")),T=T,o===Yr||(o===Jr||o===Mn)&&a===Mc){R=Rn;var D=u&&T===M&&M.visualViewport?M.visualViewport.height:T[P];x-=D-n.height,x*=d?1:-1}if(o===Jr||(o===Yr||o===Rn)&&a===Mc){O=Mn;var C=u&&T===M&&M.visualViewport?M.visualViewport.width:T[N];y-=C-n.width,y*=d?1:-1}}var $=Object.assign({position:c},f&&QM),H=g===!0?ZM({x:y,y:x},fn(r)):{x:y,y:x};if(y=H.x,x=H.y,d){var q;return Object.assign({},$,(q={},q[R]=I?"0":"",q[O]=k?"0":"",q.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",q))}return Object.assign({},$,(e={},e[R]=I?x+"px":"",e[O]=k?y+"px":"",e.transform="",e))}function eP(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,d=c===void 0?!0:c,f={placement:ho(e.placement),variation:Gs(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ww(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ww(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const tP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eP,data:{}};var up={passive:!0};function rP(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,d=fn(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(g){g.addEventListener("scroll",r.update,up)}),c&&d.addEventListener("resize",r.update,up),function(){a&&f.forEach(function(g){g.removeEventListener("scroll",r.update,up)}),c&&d.removeEventListener("resize",r.update,up)}}const nP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rP,data:{}};var oP={left:"right",right:"left",bottom:"top",top:"bottom"};function Dp(t){return t.replace(/left|right|bottom|top/g,function(e){return oP[e]})}var iP={start:"end",end:"start"};function Uw(t){return t.replace(/start|end/g,function(e){return iP[e]})}function Qv(t){var e=fn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Zv(t){return Vs(Ii(t)).left+Qv(t).scrollLeft}function aP(t,e){var r=fn(t),n=Ii(t),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,d=0;if(o){a=o.width,l=o.height;var f=$E();(f||!f&&e==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:l,x:c+Zv(t),y:d}}function sP(t){var e,r=Ii(t),n=Qv(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=ca(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ca(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Zv(t),d=-n.scrollTop;return zo(o||r).direction==="rtl"&&(c+=ca(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:c,y:d}}function ey(t){var e=zo(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function jE(t){return["html","body","#document"].indexOf(vo(t))>=0?t.ownerDocument.body:_n(t)&&ey(t)?t:jE(Rd(t))}function bc(t,e){var r;e===void 0&&(e=[]);var n=jE(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),a=fn(n),l=o?[a].concat(a.visualViewport||[],ey(n)?n:[]):n,c=e.concat(l);return o?c:c.concat(bc(Rd(l)))}function X1(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lP(t,e){var r=Vs(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Xw(t,e,r){return e===DE?X1(aP(t,r)):da(e)?lP(e,r):X1(sP(Ii(t)))}function cP(t){var e=bc(Rd(t)),r=["absolute","fixed"].indexOf(zo(t).position)>=0,n=r&&_n(t)?Vc(t):t;return da(n)?e.filter(function(o){return da(o)&&LE(o,n)&&vo(o)!=="body"}):[]}function uP(t,e,r,n){var o=e==="clippingParents"?cP(t):[].concat(e),a=[].concat(o,[r]),l=a[0],c=a.reduce(function(d,f){var g=Xw(t,f,n);return d.top=ca(g.top,d.top),d.right=Kp(g.right,d.right),d.bottom=Kp(g.bottom,d.bottom),d.left=ca(g.left,d.left),d},Xw(t,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function HE(t){var e=t.reference,r=t.element,n=t.placement,o=n?ho(n):null,a=n?Gs(n):null,l=e.x+e.width/2-r.width/2,c=e.y+e.height/2-r.height/2,d;switch(o){case Yr:d={x:l,y:e.y-r.height};break;case Rn:d={x:l,y:e.y+e.height};break;case Mn:d={x:e.x+e.width,y:c};break;case Jr:d={x:e.x-r.width,y:c};break;default:d={x:e.x,y:e.y}}var f=o?Jv(o):null;if(f!=null){var g=f==="y"?"height":"width";switch(a){case Us:d[f]=d[f]-(e[g]/2-r[g]/2);break;case Mc:d[f]=d[f]+(e[g]/2-r[g]/2);break}}return d}function Pc(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,a=r.strategy,l=a===void 0?t.strategy:a,c=r.boundary,d=c===void 0?MM:c,f=r.rootBoundary,g=f===void 0?DE:f,u=r.elementContext,m=u===void 0?ql:u,y=r.altBoundary,w=y===void 0?!1:y,x=r.padding,E=x===void 0?0:x,k=FE(typeof E!="number"?E:zE(E,Xc)),I=m===ql?PM:ql,O=t.rects.popper,R=t.elements[w?I:m],M=uP(da(R)?R:R.contextElement||Ii(t.elements.popper),d,g,l),T=Vs(t.elements.reference),P=HE({reference:T,element:O,placement:o}),N=X1(Object.assign({},O,P)),D=m===ql?N:T,C={top:M.top-D.top+k.top,bottom:D.bottom-M.bottom+k.bottom,left:M.left-D.left+k.left,right:D.right-M.right+k.right},$=t.modifiersData.offset;if(m===ql&&$){var H=$[o];Object.keys(C).forEach(function(q){var U=[Mn,Rn].indexOf(q)>=0?1:-1,W=[Yr,Rn].indexOf(q)>=0?"y":"x";C[q]+=H[W]*U})}return C}function pP(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,f=d===void 0?NE:d,g=Gs(n),u=g?c?Hw:Hw.filter(function(w){return Gs(w)===g}):Xc,m=u.filter(function(w){return f.indexOf(w)>=0});m.length===0&&(m=u);var y=m.reduce(function(w,x){return w[x]=Pc(t,{placement:x,boundary:o,rootBoundary:a,padding:l})[ho(x)],w},{});return Object.keys(y).sort(function(w,x){return y[w]-y[x]})}function dP(t){if(ho(t)===Gv)return[];var e=Dp(t);return[Uw(t),e,Uw(e)]}function fP(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,f=r.padding,g=r.boundary,u=r.rootBoundary,m=r.altBoundary,y=r.flipVariations,w=y===void 0?!0:y,x=r.allowedAutoPlacements,E=e.options.placement,k=ho(E),I=k===E,O=d||(I||!w?[Dp(E)]:dP(E)),R=[E].concat(O).reduce(function(de,ie){return de.concat(ho(ie)===Gv?pP(e,{placement:ie,boundary:g,rootBoundary:u,padding:f,flipVariations:w,allowedAutoPlacements:x}):ie)},[]),M=e.rects.reference,T=e.rects.popper,P=new Map,N=!0,D=R[0],C=0;C=0,W=U?"width":"height",K=Pc(e,{placement:$,boundary:g,rootBoundary:u,altBoundary:m,padding:f}),re=U?q?Mn:Jr:q?Rn:Yr;M[W]>T[W]&&(re=Dp(re));var Z=Dp(re),V=[];if(a&&V.push(K[H]<=0),c&&V.push(K[re]<=0,K[Z]<=0),V.every(function(de){return de})){D=$,N=!1;break}P.set($,V)}if(N)for(var ee=w?3:1,F=function(ie){var fe=R.find(function(Se){var Ce=P.get(Se);if(Ce)return Ce.slice(0,ie).every(function(Oe){return Oe})});if(fe)return D=fe,"break"},J=ee;J>0;J--){var pe=F(J);if(pe==="break")break}e.placement!==D&&(e.modifiersData[n]._skip=!0,e.placement=D,e.reset=!0)}}const hP={name:"flip",enabled:!0,phase:"main",fn:fP,requiresIfExists:["offset"],data:{_skip:!1}};function Vw(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Gw(t){return[Yr,Mn,Rn,Jr].some(function(e){return t[e]>=0})}function mP(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,l=Pc(e,{elementContext:"reference"}),c=Pc(e,{altBoundary:!0}),d=Vw(l,n),f=Vw(c,o,a),g=Gw(d),u=Gw(f);e.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:g,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":u})}const gP={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mP};function vP(t,e,r){var n=ho(t),o=[Jr,Yr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*o,[Jr,Mn].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function yP(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=o===void 0?[0,0]:o,l=NE.reduce(function(g,u){return g[u]=vP(u,e.rects,a),g},{}),c=l[e.placement],d=c.x,f=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=l}const bP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yP};function xP(t){var e=t.state,r=t.name;e.modifiersData[r]=HE({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const wP={name:"popperOffsets",enabled:!0,phase:"read",fn:xP,data:{}};function SP(t){return t==="x"?"y":"x"}function EP(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,f=r.rootBoundary,g=r.altBoundary,u=r.padding,m=r.tether,y=m===void 0?!0:m,w=r.tetherOffset,x=w===void 0?0:w,E=Pc(e,{boundary:d,rootBoundary:f,padding:u,altBoundary:g}),k=ho(e.placement),I=Gs(e.placement),O=!I,R=Jv(k),M=SP(R),T=e.modifiersData.popperOffsets,P=e.rects.reference,N=e.rects.popper,D=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,C=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(T){if(a){var q,U=R==="y"?Yr:Jr,W=R==="y"?Rn:Mn,K=R==="y"?"height":"width",re=T[R],Z=re+E[U],V=re-E[W],ee=y?-N[K]/2:0,F=I===Us?P[K]:N[K],J=I===Us?-N[K]:-P[K],pe=e.elements.arrow,de=y&&pe?Yv(pe):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:BE(),fe=ie[U],Se=ie[W],Ce=yc(0,P[K],de[K]),Oe=O?P[K]/2-ee-Ce-fe-C.mainAxis:F-Ce-fe-C.mainAxis,ke=O?-P[K]/2+ee+Ce+Se+C.mainAxis:J+Ce+Se+C.mainAxis,Le=e.elements.arrow&&Vc(e.elements.arrow),Ie=Le?R==="y"?Le.clientTop||0:Le.clientLeft||0:0,nt=(q=$?.[R])!=null?q:0,Me=re+Oe-nt-Ie,Te=re+ke-nt,ht=yc(y?Kp(Z,Me):Z,re,y?ca(V,Te):V);T[R]=ht,H[R]=ht-re}if(c){var be,Ae=R==="x"?Yr:Jr,it=R==="x"?Rn:Mn,Ze=T[M],Xe=M==="y"?"height":"width",ve=Ze+E[Ae],at=Ze-E[it],Ye=[Yr,Jr].indexOf(k)!==-1,ne=(be=$?.[M])!=null?be:0,ge=Ye?ve:Ze-P[Xe]-N[Xe]-ne+C.altAxis,je=Ye?Ze+P[Xe]+N[Xe]-ne-C.altAxis:at,Be=y&&Ye?VM(ge,Ze,je):yc(y?ge:ve,Ze,y?je:at);T[M]=Be,H[M]=Be-Ze}e.modifiersData[n]=H}}const CP={name:"preventOverflow",enabled:!0,phase:"main",fn:EP,requiresIfExists:["offset"]};function TP(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function kP(t){return t===fn(t)||!_n(t)?Qv(t):TP(t)}function OP(t){var e=t.getBoundingClientRect(),r=Xs(e.width)/t.offsetWidth||1,n=Xs(e.height)/t.offsetHeight||1;return r!==1||n!==1}function _P(t,e,r){r===void 0&&(r=!1);var n=_n(e),o=_n(e)&&OP(e),a=Ii(e),l=Vs(t,o,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((vo(e)!=="body"||ey(a))&&(c=kP(e)),_n(e)?(d=Vs(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=Zv(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function RP(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function o(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=e.get(c);d&&o(d)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||o(a)}),n}function MP(t){var e=RP(t);return jM.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function PP(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function IP(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Kw={placement:"bottom",modifiers:[],strategy:"absolute"};function Yw(){for(var t=arguments.length,e=new Array(t),r=0;r{a||c($P(o)||document.body)},[o,a]),Zr(()=>{if(l&&!a)return xw(r,l),()=>{xw(r,null)}},[r,l,a]),a){if(_.isValidElement(n)){const f={ref:d};return _.cloneElement(n,f)}return n}return l&&PE.createPortal(n,l)});function LP(t){return qe("MuiPopper",t)}We("MuiPopper",["root"]);function BP(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function V1(t){return typeof t=="function"?t():t}function FP(t){return t.nodeType!==void 0}const zP=t=>{const{classes:e}=t;return Ue({root:["root"]},LP,e)},jP={},HP=_.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:a,disablePortal:l,modifiers:c,open:d,placement:f,popperOptions:g,popperRef:u,slotProps:m={},slots:y={},TransitionProps:w,ownerState:x,...E}=e,k=_.useRef(null),I=vr(k,r),O=_.useRef(null),R=vr(O,u),M=_.useRef(R);Zr(()=>{M.current=R},[R]),_.useImperativeHandle(u,()=>O.current,[]);const T=BP(f,a),[P,N]=_.useState(T),[D,C]=_.useState(V1(n));_.useEffect(()=>{O.current&&O.current.forceUpdate()}),_.useEffect(()=>{n&&C(V1(n))},[n]),Zr(()=>{if(!D||!d)return;const W=Z=>{N(Z.placement)};let K=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{W(Z)}}];c!=null&&(K=K.concat(c)),g&&g.modifiers!=null&&(K=K.concat(g.modifiers));const re=NP(D,k.current,{placement:T,...g,modifiers:K});return M.current(re),()=>{re.destroy(),M.current(null)}},[D,l,c,d,g,T]);const $={placement:P};w!==null&&($.TransitionProps=w);const H=zP(e),q=y.root??"div",U=pa({elementType:q,externalSlotProps:m.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:I},ownerState:e,className:H.root});return L.jsx(q,{...U,children:typeof o=="function"?o($):o})}),qP=_.forwardRef(function(e,r){const{anchorEl:n,children:o,container:a,direction:l="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:f,open:g,placement:u="bottom",popperOptions:m=jP,popperRef:y,style:w,transition:x=!1,slotProps:E={},slots:k={},...I}=e,[O,R]=_.useState(!0),M=()=>{R(!1)},T=()=>{R(!0)};if(!d&&!g&&(!x||O))return null;let P;if(a)P=a;else if(n){const C=V1(n);P=C&&FP(C)?en(C).body:en(null).body}const N=!g&&d&&(!x||O)?"none":void 0,D=x?{in:g,onEnter:M,onExited:T}:void 0;return L.jsx(qE,{disablePortal:c,container:P,children:L.jsx(HP,{anchorEl:n,direction:l,disablePortal:c,modifiers:f,ref:r,open:x?!O:g,placement:u,popperOptions:m,popperRef:y,slotProps:E,slots:k,...I,style:{position:"fixed",top:0,left:0,display:N,...w},TransitionProps:D,children:o})})}),WP=ae(qP,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),WE=_.forwardRef(function(e,r){const n=el(),o=Ke({props:e,name:"MuiPopper"}),{anchorEl:a,component:l,components:c,componentsProps:d,container:f,disablePortal:g,keepMounted:u,modifiers:m,open:y,placement:w,popperOptions:x,popperRef:E,transition:k,slots:I,slotProps:O,...R}=o,M=I?.root??c?.Root,T={anchorEl:a,container:f,disablePortal:g,keepMounted:u,modifiers:m,open:y,placement:w,popperOptions:x,popperRef:E,transition:k,...R};return L.jsx(WP,{as:l,direction:n?"rtl":"ltr",slots:{root:M},slotProps:O??d,...T,ref:r})});function pp(t){return parseInt(t,10)||0}const UP={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function XP(t){for(const e in t)return!1;return!0}function Jw(t){return XP(t)||t.outerHeightStyle===0&&!t.overflowing}const VP=_.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:l,value:c,...d}=e,{current:f}=_.useRef(c!=null),g=_.useRef(null),u=vr(r,g),m=_.useRef(null),y=_.useRef(null),w=_.useCallback(()=>{const O=g.current,R=y.current;if(!O||!R)return;const T=Xn(O).getComputedStyle(O);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=T.width,R.value=O.value||e.placeholder||"x",R.value.slice(-1)===` +`&&(R.value+=" ");const P=T.boxSizing,N=pp(T.paddingBottom)+pp(T.paddingTop),D=pp(T.borderBottomWidth)+pp(T.borderTopWidth),C=R.scrollHeight;R.value="x";const $=R.scrollHeight;let H=C;a&&(H=Math.max(Number(a)*$,H)),o&&(H=Math.min(Number(o)*$,H)),H=Math.max(H,$);const q=H+(P==="border-box"?N+D:0),U=Math.abs(H-C)<=1;return{outerHeightStyle:q,overflowing:U}},[o,a,e.placeholder]),x=On(()=>{const O=g.current,R=w();if(!O||!R||Jw(R))return!1;const M=R.outerHeightStyle;return m.current!=null&&m.current!==M}),E=_.useCallback(()=>{const O=g.current,R=w();if(!O||!R||Jw(R))return;const M=R.outerHeightStyle;m.current!==M&&(m.current=M,O.style.height=`${M}px`),O.style.overflow=R.overflowing?"hidden":""},[w]),k=_.useRef(-1);Zr(()=>{const O=kd(E),R=g?.current;if(!R)return;const M=Xn(R);M.addEventListener("resize",O);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{x()&&(T.unobserve(R),cancelAnimationFrame(k.current),E(),k.current=requestAnimationFrame(()=>{T.observe(R)}))}),T.observe(R)),()=>{O.clear(),cancelAnimationFrame(k.current),M.removeEventListener("resize",O),T&&T.disconnect()}},[w,E,x]),Zr(()=>{E()});const I=O=>{f||E(),n&&n(O)};return L.jsxs(_.Fragment,{children:[L.jsx("textarea",{value:c,onChange:I,ref:u,rows:a,style:l,...d}),L.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...UP.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function G1(t){return typeof t=="string"}function Ai({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const ty=_.createContext(void 0);function xo(){return _.useContext(ty)}function Qw(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Yp(t,e=!1){return t&&(Qw(t.value)&&t.value!==""||e&&Qw(t.defaultValue)&&t.defaultValue!=="")}function GP(t){return t.startAdornment}function KP(t){return qe("MuiInputBase",t)}const Ks=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Zw;const Md=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${me(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Pd=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},YP=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:a,focused:l,formControl:c,fullWidth:d,hiddenLabel:f,multiline:g,readOnly:u,size:m,startAdornment:y,type:w}=t,x={root:["root",`color${me(r)}`,n&&"disabled",o&&"error",d&&"fullWidth",l&&"focused",c&&"formControl",m&&m!=="medium"&&`size${me(m)}`,g&&"multiline",y&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",u&&"readOnly"],input:["input",n&&"disabled",w==="search"&&"inputTypeSearch",g&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",u&&"readOnly"]};return Ue(x,KP,e)},Id=ae("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Md})(Qe(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ks.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Ad=ae("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pd})(Qe(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ks.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ks.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),e4=DR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ry=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:l,className:c,color:d,components:f={},componentsProps:g={},defaultValue:u,disabled:m,disableInjectingGlobalStyles:y,endAdornment:w,error:x,fullWidth:E=!1,id:k,inputComponent:I="input",inputProps:O={},inputRef:R,margin:M,maxRows:T,minRows:P,multiline:N=!1,name:D,onBlur:C,onChange:$,onClick:H,onFocus:q,onKeyDown:U,onKeyUp:W,placeholder:K,readOnly:re,renderSuffix:Z,rows:V,size:ee,slotProps:F={},slots:J={},startAdornment:pe,type:de="text",value:ie,...fe}=n,Se=O.value!=null?O.value:ie,{current:Ce}=_.useRef(Se!=null),Oe=_.useRef(),ke=_.useCallback(Fe=>{},[]),Le=vr(Oe,R,O.ref,ke),[Ie,nt]=_.useState(!1),Me=xo(),Te=Ai({props:n,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=Me?Me.focused:Ie,_.useEffect(()=>{!Me&&m&&Ie&&(nt(!1),C&&C())},[Me,m,Ie,C]);const ht=Me&&Me.onFilled,be=Me&&Me.onEmpty,Ae=_.useCallback(Fe=>{Yp(Fe)?ht&&ht():be&&be()},[ht,be]);Zr(()=>{Ce&&Ae({value:Se})},[Se,Ae,Ce]);const it=Fe=>{q&&q(Fe),O.onFocus&&O.onFocus(Fe),Me&&Me.onFocus?Me.onFocus(Fe):nt(!0)},Ze=Fe=>{C&&C(Fe),O.onBlur&&O.onBlur(Fe),Me&&Me.onBlur?Me.onBlur(Fe):nt(!1)},Xe=(Fe,...Ft)=>{if(!Ce){const wt=Fe.target||Oe.current;if(wt==null)throw new Error(Bo(1));Ae({value:wt.value})}O.onChange&&O.onChange(Fe,...Ft),$&&$(Fe,...Ft)};_.useEffect(()=>{Ae(Oe.current)},[]);const ve=Fe=>{Oe.current&&Fe.currentTarget===Fe.target&&Oe.current.focus(),H&&H(Fe)};let at=I,Ye=O;N&&at==="input"&&(V?Ye={type:void 0,minRows:V,maxRows:V,...Ye}:Ye={type:void 0,maxRows:T,minRows:P,...Ye},at=VP);const ne=Fe=>{Ae(Fe.animationName==="mui-auto-fill-cancel"?Oe.current:{value:"x"})};_.useEffect(()=>{Me&&Me.setAdornedStart(!!pe)},[Me,pe]);const ge={...n,color:Te.color||"primary",disabled:Te.disabled,endAdornment:w,error:Te.error,focused:Te.focused,formControl:Me,fullWidth:E,hiddenLabel:Te.hiddenLabel,multiline:N,size:Te.size,startAdornment:pe,type:de},je=YP(ge),Be=J.root||f.Root||Id,st=F.root||g.root||{},vt=J.input||f.Input||Ad;return Ye={...Ye,...F.input??g.input},L.jsxs(_.Fragment,{children:[!y&&typeof e4=="function"&&(Zw||(Zw=L.jsx(e4,{}))),L.jsxs(Be,{...st,ref:r,onClick:ve,...fe,...!G1(Be)&&{ownerState:{...ge,...st.ownerState}},className:ye(je.root,st.className,c,re&&"MuiInputBase-readOnly"),children:[pe,L.jsx(ty.Provider,{value:null,children:L.jsx(vt,{"aria-invalid":Te.error,"aria-describedby":o,autoComplete:a,autoFocus:l,defaultValue:u,disabled:Te.disabled,id:k,onAnimationStart:ne,name:D,placeholder:K,readOnly:re,required:Te.required,rows:V,value:Se,onKeyDown:U,onKeyUp:W,type:de,...Ye,...!G1(vt)&&{as:at,ownerState:{...ge,...Ye.ownerState}},ref:Le,className:ye(je.input,Ye.className,re&&"MuiInputBase-readOnly"),onBlur:Ze,onChange:Xe,onFocus:it})}),w,Z?Z({...Te,startAdornment:pe}):null]})]})});function JP(t){return qe("MuiInput",t)}const Wl={...Ks,...We("MuiInput",["root","underline","input"])};function QP(t){return qe("MuiOutlinedInput",t)}const no={...Ks,...We("MuiOutlinedInput",["root","notchedOutline","input"])};function ZP(t){return qe("MuiFilledInput",t)}const Ki={...Ks,...We("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},eI=He(L.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),tI={entering:{opacity:1},entered:{opacity:1}},K1=_.forwardRef(function(e,r){const n=jo(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,easing:d,in:f,onEnter:g,onEntered:u,onEntering:m,onExit:y,onExited:w,onExiting:x,style:E,timeout:k=o,TransitionComponent:I=bo,...O}=e,R=_.useRef(null),M=vr(R,Zs(c),r),T=U=>W=>{if(U){const K=R.current;W===void 0?U(K):U(K,W)}},P=T(m),N=T((U,W)=>{IE(U);const K=Vp({style:E,timeout:k,easing:d},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",K),U.style.transition=n.transitions.create("opacity",K),g&&g(U,W)}),D=T(u),C=T(x),$=T(U=>{const W=Vp({style:E,timeout:k,easing:d},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",W),U.style.transition=n.transitions.create("opacity",W),y&&y(U)}),H=T(w),q=U=>{a&&a(R.current,U)};return L.jsx(I,{appear:l,in:f,nodeRef:R,onEnter:N,onEntered:D,onEntering:P,onExit:$,onExited:H,onExiting:C,addEndListener:q,timeout:k,...O,children:(U,{ownerState:W,...K})=>_.cloneElement(c,{style:{opacity:0,visibility:U==="exited"&&!f?"hidden":void 0,...tI[U],...E,...c.props.style},ref:M,...K})})});function rI(t){return qe("MuiBackdrop",t)}We("MuiBackdrop",["root","invisible"]);const nI=t=>{const{classes:e,invisible:r}=t;return Ue({root:["root",r&&"invisible"]},rI,e)},oI=ae("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),UE=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:l="div",invisible:c=!1,open:d,components:f={},componentsProps:g={},slotProps:u={},slots:m={},TransitionComponent:y,transitionDuration:w,...x}=n,E={...n,component:l,invisible:c},k=nI(E),I={transition:y,root:f.Root,...m},O={...g,...u},R={slots:I,slotProps:O},[M,T]=ct("root",{elementType:oI,externalForwardedProps:R,className:ye(k.root,a),ownerState:E}),[P,N]=ct("transition",{elementType:K1,externalForwardedProps:R,ownerState:E});return L.jsx(P,{in:d,timeout:w,...x,...N,children:L.jsx(M,{"aria-hidden":!0,...T,classes:k,ref:r,children:o})})}),iI=We("MuiBox",["root"]),aI=Rc(),ft=XO({themeId:Un,defaultTheme:aI,defaultClassName:iI.root,generateClassName:tE.generate}),sI=He(L.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),lI=ae(Pi,{name:"MuiBreadcrumbCollapsed"})(Qe(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:D1(t.palette.grey[200],.12)}:{backgroundColor:D1(t.palette.grey[600],.12)}}}))),cI=ae(sI)({width:24,height:16});function uI(t){const{slots:e={},slotProps:r={},...n}=t,o=t;return L.jsx("li",{children:L.jsx(lI,{focusRipple:!0,...n,ownerState:o,children:L.jsx(cI,{as:e.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function pI(t){return qe("MuiBreadcrumbs",t)}const dI=We("MuiBreadcrumbs",["root","ol","li","separator"]),fI=t=>{const{classes:e}=t;return Ue({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},pI,e)},hI=ae(qn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${dI.li}`]:e.li},e.root]})({}),mI=ae("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),gI=ae("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function vI(t,e,r,n){return t.reduce((o,a,l)=>(l{const N=()=>{E(!0);const D=R.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return u+g>=P.length?P:[...P.slice(0,u),L.jsx(uI,{"aria-label":f,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:O},onClick:N},"ellipsis"),...P.slice(P.length-g,P.length)]},T=_.Children.toArray(o).filter(P=>_.isValidElement(P)).map((P,N)=>L.jsx("li",{className:I.li,children:P},`child-${N}`));return L.jsx(hI,{ref:r,component:l,color:"textSecondary",className:ye(I.root,a),ownerState:k,...w,children:L.jsx(mI,{className:I.ol,ref:R,ownerState:k,children:vI(x||m&&T.length<=m?T:M(T),I.separator,y,k)})})});function bI(t){return qe("MuiButton",t)}const Yi=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),xI=_.createContext({}),wI=_.createContext(void 0),SI=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:a,loading:l,loadingPosition:c,classes:d}=t,f={root:["root",l&&"loading",a,`${a}${me(e)}`,`size${me(o)}`,`${a}Size${me(o)}`,`color${me(e)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${me(c)}`],startIcon:["icon","startIcon",`iconSize${me(o)}`],endIcon:["icon","endIcon",`iconSize${me(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},g=Ue(f,bI,d);return{...d,...g}},XE=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],EI=ae(Pi,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${me(r.color)}`],e[`size${me(r.size)}`],e[`${r.variant}Size${me(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Yi.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Yi.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Yi.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Yi.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(rr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:It(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Yi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Yi.loading}`]:{color:"transparent"}}}]}})),CI=ae("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${me(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...XE]})),TI=ae("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${me(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...XE]})),kI=ae("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),t4=ae("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Vt=_.forwardRef(function(e,r){const n=_.useContext(xI),o=_.useContext(wI),a=Oc(n,e),l=Ke({props:a,name:"MuiButton"}),{children:c,color:d="primary",component:f="button",className:g,disabled:u=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:w,focusVisibleClassName:x,fullWidth:E=!1,id:k,loading:I=null,loadingIndicator:O,loadingPosition:R="center",size:M="medium",startIcon:T,type:P,variant:N="text",...D}=l,C=va(k),$=O??L.jsx(Vv,{"aria-labelledby":C,color:"inherit",size:16}),H={...l,color:d,component:f,disabled:u,disableElevation:m,disableFocusRipple:y,fullWidth:E,loading:I,loadingIndicator:$,loadingPosition:R,size:M,type:P,variant:N},q=SI(H),U=(T||I&&R==="start")&&L.jsx(CI,{className:q.startIcon,ownerState:H,children:T||L.jsx(t4,{className:q.loadingIconPlaceholder,ownerState:H})}),W=(w||I&&R==="end")&&L.jsx(TI,{className:q.endIcon,ownerState:H,children:w||L.jsx(t4,{className:q.loadingIconPlaceholder,ownerState:H})}),K=o||"",re=typeof I=="boolean"?L.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:I&&L.jsx(kI,{className:q.loadingIndicator,ownerState:H,children:$})}):null;return L.jsxs(EI,{ownerState:H,className:ye(n.className,q.root,g,K),component:f,disabled:u||I,focusRipple:!y,focusVisibleClassName:ye(q.focusVisible,x),ref:r,type:P,id:I?C:k,...D,classes:q,children:[U,R!=="end"&&re,c,R==="end"&&re,W]})});function OI(t){return qe("MuiCard",t)}We("MuiCard",["root"]);const _I=t=>{const{classes:e}=t;return Ue({root:["root"]},OI,e)},RI=ae(rl,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})({overflow:"hidden"}),MI=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCard"}),{className:o,raised:a=!1,...l}=n,c={...n,raised:a},d=_I(c);return L.jsx(RI,{className:ye(d.root,o),elevation:a?8:void 0,ref:r,ownerState:c,...l})});function PI(t){return qe("MuiCardActions",t)}We("MuiCardActions",["root","spacing"]);const II=t=>{const{classes:e,disableSpacing:r}=t;return Ue({root:["root",!r&&"spacing"]},PI,e)},AI=ae("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),DI=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a,...l}=n,c={...n,disableSpacing:o},d=II(c);return L.jsx(AI,{className:ye(d.root,a),ownerState:c,ref:r,...l})});function NI(t){return qe("MuiCardContent",t)}We("MuiCardContent",["root"]);const $I=t=>{const{classes:e}=t;return Ue({root:["root"]},NI,e)},LI=ae("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:16,"&:last-child":{paddingBottom:24}}),BI=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCardContent"}),{className:o,component:a="div",...l}=n,c={...n,component:a},d=$I(c);return L.jsx(LI,{as:a,className:ye(d.root,o),ownerState:c,ref:r,...l})});function FI(t){return qe("MuiCardMedia",t)}We("MuiCardMedia",["root","media","img"]);const zI=t=>{const{classes:e,isMediaComponent:r,isImageComponent:n}=t;return Ue({root:["root",r&&"media",n&&"img"]},FI,e)},jI=ae("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{isMediaComponent:n,isImageComponent:o}=r;return[e.root,n&&e.media,o&&e.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),HI=["video","audio","picture","iframe","img"],qI=["picture","img"],WI=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCardMedia"}),{children:o,className:a,component:l="div",image:c,src:d,style:f,...g}=n,u=HI.includes(l),m=!u&&c?{backgroundImage:`url("${c}")`,...f}:f,y={...n,component:l,isMediaComponent:u,isImageComponent:qI.includes(l)},w=zI(y);return L.jsx(jI,{className:ye(w.root,a),as:l,role:!u&&c?"img":void 0,ref:r,style:m,ownerState:y,src:u?c||d:void 0,...g,children:o})});function UI(t){return qe("PrivateSwitchBase",t)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const XI=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${me(o)}`],input:["input"]};return Ue(a,UI,e)},VI=ae(Pi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),GI=ae("input",{name:"MuiSwitchBase",shouldForwardProp:yr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),VE=_.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:a,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:f=!1,icon:g,id:u,inputProps:m,inputRef:y,name:w,onBlur:x,onChange:E,onFocus:k,readOnly:I,required:O=!1,tabIndex:R,type:M,value:T,slots:P={},slotProps:N={},...D}=e,[C,$]=Wp({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),H=xo(),q=ie=>{k&&k(ie),H&&H.onFocus&&H.onFocus(ie)},U=ie=>{x&&x(ie),H&&H.onBlur&&H.onBlur(ie)},W=ie=>{if(ie.nativeEvent.defaultPrevented)return;const fe=ie.target.checked;$(fe),E&&E(ie,fe)};let K=c;H&&typeof K>"u"&&(K=H.disabled);const re=M==="checkbox"||M==="radio",Z={...e,checked:C,disabled:K,disableFocusRipple:d,edge:f},V=XI(Z),ee={slots:P,slotProps:{input:m,...N}},[F,J]=ct("root",{ref:r,elementType:VI,className:V.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,component:"span",...D},getSlotProps:ie=>({...ie,onFocus:fe=>{ie.onFocus?.(fe),q(fe)},onBlur:fe=>{ie.onBlur?.(fe),U(fe)}}),ownerState:Z,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:K,role:void 0,tabIndex:null}}),[pe,de]=ct("input",{ref:y,elementType:GI,className:V.input,externalForwardedProps:ee,getSlotProps:ie=>({onChange:fe=>{ie.onChange?.(fe),W(fe)}}),ownerState:Z,additionalProps:{autoFocus:n,checked:o,defaultChecked:l,disabled:K,id:re?u:void 0,name:w,readOnly:I,required:O,tabIndex:R,type:M,...M==="checkbox"&&T===void 0?{}:{value:T}}});return L.jsxs(F,{...J,children:[L.jsx(pe,{...de}),C?a:g]})}),KI=He(L.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),YI=He(L.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),JI=He(L.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function QI(t){return qe("MuiCheckbox",t)}const Zh=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ZI=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,a={root:["root",r&&"indeterminate",`color${me(n)}`,`size${me(o)}`]},l=Ue(a,QI,e);return{...e,...l}},eA=ae(VE,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${me(r.size)}`],r.color!=="default"&&e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{[`&.${Zh.checked}, &.${Zh.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${Zh.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),tA=L.jsx(YI,{}),rA=L.jsx(KI,{}),nA=L.jsx(JI,{}),Lr=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiCheckbox"}),{checkedIcon:o=tA,color:a="primary",icon:l=rA,indeterminate:c=!1,indeterminateIcon:d=nA,inputProps:f,size:g="medium",disableRipple:u=!1,className:m,slots:y={},slotProps:w={},...x}=n,E=c?d:l,k=c?d:o,I={...n,disableRipple:u,color:a,indeterminate:c,size:g},O=ZI(I),R=w.input??f,[M,T]=ct("root",{ref:r,elementType:eA,className:ye(O.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:w,...x},ownerState:I,additionalProps:{type:"checkbox",icon:_.cloneElement(E,{fontSize:E.props.fontSize??g}),checkedIcon:_.cloneElement(k,{fontSize:k.props.fontSize??g}),disableRipple:u,slots:y,slotProps:{input:_E(typeof R=="function"?R(I):R,{"data-indeterminate":c})}}});return L.jsx(M,{...T,classes:O})});function oA(t){const e=en(t);return e.body===t?Xn(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function xc(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function r4(t){return parseInt(Xn(t).getComputedStyle(t).paddingRight,10)||0}function iA(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function n4(t,e,r,n,o){const a=[e,r,...n];[].forEach.call(t.children,l=>{const c=!a.includes(l),d=!iA(l);c&&d&&xc(l,o)})}function em(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function aA(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(oA(n)){const l=pE(Xn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${r4(n)+l}px`;const c=en(n).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${r4(d)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=en(n).body;else{const l=n.parentElement,c=Xn(n);a=l?.nodeName==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:l,property:c})=>{a?l.style.setProperty(c,a):l.style.removeProperty(c)})}}function sA(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class lA{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&xc(e.modalRef,!1);const o=sA(r);n4(r,e.mount,e.modalRef,o,!0);const a=em(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=em(this.containers,a=>a.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=aA(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=em(this.containers,l=>l.modals.includes(e)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&xc(e.modalRef,r),n4(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&xc(l.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const cA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uA(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function pA(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function dA(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||pA(t))}function fA(t){const e=[],r=[];return Array.from(t.querySelectorAll(cA)).forEach((n,o)=>{const a=uA(n);a===-1||!dA(n)||(a===0?e.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function hA(){return!0}function mA(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=fA,isEnabled:l=hA,open:c}=t,d=_.useRef(!1),f=_.useRef(null),g=_.useRef(null),u=_.useRef(null),m=_.useRef(null),y=_.useRef(!1),w=_.useRef(null),x=vr(Zs(e),w),E=_.useRef(null);_.useEffect(()=>{!c||!w.current||(y.current=!r)},[r,c]),_.useEffect(()=>{if(!c||!w.current)return;const O=en(w.current);return w.current.contains(O.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),y.current&&w.current.focus()),()=>{o||(u.current&&u.current.focus&&(d.current=!0,u.current.focus()),u.current=null)}},[c]),_.useEffect(()=>{if(!c||!w.current)return;const O=en(w.current),R=P=>{E.current=P,!(n||!l()||P.key!=="Tab")&&O.activeElement===w.current&&P.shiftKey&&(d.current=!0,g.current&&g.current.focus())},M=()=>{const P=w.current;if(P===null)return;if(!O.hasFocus()||!l()||d.current){d.current=!1;return}if(P.contains(O.activeElement)||n&&O.activeElement!==f.current&&O.activeElement!==g.current)return;if(O.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let N=[];if((O.activeElement===f.current||O.activeElement===g.current)&&(N=a(w.current)),N.length>0){const D=!!(E.current?.shiftKey&&E.current?.key==="Tab"),C=N[0],$=N[N.length-1];typeof C!="string"&&typeof $!="string"&&(D?$.focus():C.focus())}else P.focus()};O.addEventListener("focusin",M),O.addEventListener("keydown",R,!0);const T=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(T),O.removeEventListener("focusin",M),O.removeEventListener("keydown",R,!0)}},[r,n,o,l,c,a]);const k=O=>{u.current===null&&(u.current=O.relatedTarget),y.current=!0,m.current=O.target;const R=e.props.onFocus;R&&R(O)},I=O=>{u.current===null&&(u.current=O.relatedTarget),y.current=!0};return L.jsxs(_.Fragment,{children:[L.jsx("div",{tabIndex:c?0:-1,onFocus:I,ref:f,"data-testid":"sentinelStart"}),_.cloneElement(e,{ref:x,onFocus:k}),L.jsx("div",{tabIndex:c?0:-1,onFocus:I,ref:g,"data-testid":"sentinelEnd"})]})}function gA(t){return typeof t=="function"?t():t}function vA(t){return t?t.props.hasOwnProperty("in"):!1}const o4=()=>{},dp=new lA;function yA(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:g}=t,u=_.useRef({}),m=_.useRef(null),y=_.useRef(null),w=vr(y,g),[x,E]=_.useState(!f),k=vA(c);let I=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(I=!1);const O=()=>en(m.current),R=()=>(u.current.modalRef=y.current,u.current.mount=m.current,u.current),M=()=>{dp.mount(R(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},T=On(()=>{const W=gA(e)||O().body;dp.add(R(),W),y.current&&M()}),P=()=>dp.isTopModal(R()),N=On(W=>{m.current=W,W&&(f&&P()?M():y.current&&xc(y.current,I))}),D=_.useCallback(()=>{dp.remove(R(),I)},[I]);_.useEffect(()=>()=>{D()},[D]),_.useEffect(()=>{f?T():(!k||!o)&&D()},[f,D,k,o,T]);const C=W=>K=>{W.onKeyDown?.(K),!(K.key!=="Escape"||K.which===229||!P())&&(r||(K.stopPropagation(),d&&d(K,"escapeKeyDown")))},$=W=>K=>{W.onClick?.(K),K.target===K.currentTarget&&d&&d(K,"backdropClick")};return{getRootProps:(W={})=>{const K=fE(t);delete K.onTransitionEnter,delete K.onTransitionExited;const re={...K,...W};return{role:"presentation",...re,onKeyDown:C(re),ref:w}},getBackdropProps:(W={})=>{const K=W;return{"aria-hidden":!0,...K,onClick:$(K),open:f}},getTransitionProps:()=>{const W=()=>{E(!1),a&&a()},K=()=>{E(!0),l&&l(),o&&D()};return{onEnter:N1(W,c?.props.onEnter??o4),onExited:N1(K,c?.props.onExited??o4)}},rootRef:w,portalRef:N,isTopModal:P,exited:x,hasTransition:k}}function bA(t){return qe("MuiModal",t)}We("MuiModal",["root","hidden","backdrop"]);const xA=t=>{const{open:e,exited:r,classes:n}=t;return Ue({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},bA,n)},wA=ae("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Qe(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),SA=ae(UE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),GE=_.forwardRef(function(e,r){const n=Ke({name:"MuiModal",props:e}),{BackdropComponent:o=SA,BackdropProps:a,classes:l,className:c,closeAfterTransition:d=!1,children:f,container:g,component:u,components:m={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:k=!1,disableRestoreFocus:I=!1,disableScrollLock:O=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:T,onClose:P,onTransitionEnter:N,onTransitionExited:D,open:C,slotProps:$={},slots:H={},theme:q,...U}=n,W={...n,closeAfterTransition:d,disableAutoFocus:w,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:k,disableRestoreFocus:I,disableScrollLock:O,hideBackdrop:R,keepMounted:M},{getRootProps:K,getBackdropProps:re,getTransitionProps:Z,portalRef:V,isTopModal:ee,exited:F,hasTransition:J}=yA({...W,rootRef:r}),pe={...W,exited:F},de=xA(pe),ie={};if(f.props.tabIndex===void 0&&(ie.tabIndex="-1"),J){const{onEnter:Le,onExited:Ie}=Z();ie.onEnter=Le,ie.onExited=Ie}const fe={slots:{root:m.Root,backdrop:m.Backdrop,...H},slotProps:{...y,...$}},[Se,Ce]=ct("root",{ref:r,elementType:wA,externalForwardedProps:{...fe,...U,component:u},getSlotProps:K,ownerState:pe,className:ye(c,de?.root,!pe.open&&pe.exited&&de?.hidden)}),[Oe,ke]=ct("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:fe,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Le=>re({...Le,onClick:Ie=>{T&&T(Ie),Le?.onClick&&Le.onClick(Ie)}}),className:ye(a?.className,de?.backdrop),ownerState:pe});return!M&&!C&&(!J||F)?null:L.jsx(qE,{ref:V,container:g,disablePortal:k,children:L.jsxs(Se,{...Ce,children:[!R&&o?L.jsx(Oe,{...ke}):null,L.jsx(mA,{disableEnforceFocus:x,disableAutoFocus:w,disableRestoreFocus:I,isEnabled:ee,open:C,children:_.cloneElement(f,ie)})]})})});function EA(t){return qe("MuiDialog",t)}const tm=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),KE=_.createContext({}),CA=ae(UE,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),TA=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=t,l={root:["root"],container:["container",`scroll${me(r)}`],paper:["paper",`paperScroll${me(r)}`,`paperWidth${me(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Ue(l,EA,e)},kA=ae(GE,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),OA=ae("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${me(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),_A=ae(rl,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${me(r.scroll)}`],e[`paperWidth${me(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Qe(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${tm.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${tm.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${tm.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Ho=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialog"}),o=jo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:f,BackdropProps:g,children:u,className:m,disableEscapeKeyDown:y=!1,fullScreen:w=!1,fullWidth:x=!1,maxWidth:E="sm",onBackdropClick:k,onClick:I,onClose:O,open:R,PaperComponent:M=rl,PaperProps:T={},scroll:P="paper",slots:N={},slotProps:D={},TransitionComponent:C=K1,transitionDuration:$=a,TransitionProps:H,...q}=n,U={...n,disableEscapeKeyDown:y,fullScreen:w,fullWidth:x,maxWidth:E,scroll:P},W=TA(U),K=_.useRef(),re=Me=>{K.current=Me.target===Me.currentTarget},Z=Me=>{I&&I(Me),K.current&&(K.current=null,k&&k(Me),O&&O(Me,"backdropClick"))},V=va(c),ee=_.useMemo(()=>({titleId:V}),[V]),F={transition:C,...N},J={transition:H,paper:T,backdrop:g,...D},pe={slots:F,slotProps:J},[de,ie]=ct("root",{elementType:kA,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:U,className:ye(W.root,m),ref:r}),[fe,Se]=ct("backdrop",{elementType:CA,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:U}),[Ce,Oe]=ct("paper",{elementType:_A,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:U,className:ye(W.paper,T.className)}),[ke,Le]=ct("container",{elementType:OA,externalForwardedProps:pe,ownerState:U,className:ye(W.container)}),[Ie,nt]=ct("transition",{elementType:K1,externalForwardedProps:pe,ownerState:U,additionalProps:{appear:!0,in:R,timeout:$,role:"presentation"}});return L.jsx(de,{closeAfterTransition:!0,slots:{backdrop:fe},slotProps:{backdrop:{transitionDuration:$,as:f,...Se}},disableEscapeKeyDown:y,onClose:O,open:R,onClick:Z,...ie,...q,children:L.jsx(Ie,{...nt,children:L.jsx(ke,{onMouseDown:re,...Le,children:L.jsx(Ce,{as:M,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":V,"aria-modal":d,...Oe,children:L.jsx(KE.Provider,{value:ee,children:u})})})})})});function RA(t){return qe("MuiDialogActions",t)}We("MuiDialogActions",["root","spacing"]);const MA=t=>{const{classes:e,disableSpacing:r}=t;return Ue({root:["root",!r&&"spacing"]},RA,e)},PA=ae("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),qo=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...l}=n,c={...n,disableSpacing:a},d=MA(c);return L.jsx(PA,{className:ye(d.root,o),ownerState:c,ref:r,...l})});function IA(t){return qe("MuiDialogContent",t)}We("MuiDialogContent",["root","dividers"]);function AA(t){return qe("MuiDialogTitle",t)}const DA=We("MuiDialogTitle",["root"]),NA=t=>{const{classes:e,dividers:r}=t;return Ue({root:["root",r&&"dividers"]},IA,e)},$A=ae("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Qe(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${DA.root} + &`]:{paddingTop:0}}}]}))),Wo=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...l}=n,c={...n,dividers:a},d=NA(c);return L.jsx($A,{className:ye(d.root,o),ownerState:c,ref:r,...l})});function LA(t){return qe("MuiDialogContentText",t)}We("MuiDialogContentText",["root"]);const BA=t=>{const{classes:e}=t,n=Ue({root:["root"]},LA,e);return{...e,...n}},FA=ae(qn,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Dd=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogContentText"}),{children:o,className:a,...l}=n,c=BA(l);return L.jsx(FA,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:l,className:ye(c.root,a),...n,classes:c})}),zA=t=>{const{classes:e}=t;return Ue({root:["root"]},AA,e)},jA=ae(qn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),Uo=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDialogTitle"}),{className:o,id:a,...l}=n,c=n,d=zA(c),{titleId:f=a}=_.useContext(KE);return L.jsx(jA,{component:"h2",className:ye(d.root,o),ownerState:c,ref:r,variant:"h6",id:a??f,...l})});function HA(t){return qe("MuiDivider",t)}const i4=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),qA=t=>{const{absolute:e,children:r,classes:n,flexItem:o,light:a,orientation:l,textAlign:c,variant:d}=t;return Ue({root:["root",e&&"absolute",d,a&&"light",l==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},HA,n)},WA=ae("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.absolute&&e.absolute,e[r.variant],r.light&&e.light,r.orientation==="vertical"&&e.vertical,r.flexItem&&e.flexItem,r.children&&e.withChildren,r.children&&r.orientation==="vertical"&&e.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&e.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&e.textAlignLeft]}})(Qe(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:It(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&e.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>e.orientation==="vertical"&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>e.textAlign==="right"&&e.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>e.textAlign==="left"&&e.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),UA=ae("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.wrapper,r.orientation==="vertical"&&e.wrapperVertical]}})(Qe(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),Y1=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiDivider"}),{absolute:o=!1,children:a,className:l,orientation:c="horizontal",component:d=a||c==="vertical"?"div":"hr",flexItem:f=!1,light:g=!1,role:u=d!=="hr"?"separator":void 0,textAlign:m="center",variant:y="fullWidth",...w}=n,x={...n,absolute:o,component:d,flexItem:f,light:g,orientation:c,role:u,textAlign:m,variant:y},E=qA(x);return L.jsx(WA,{as:d,className:ye(E.root,l),role:u,ref:r,ownerState:x,"aria-orientation":u==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...w,children:a?L.jsx(UA,{className:E.wrapper,ownerState:x,children:a}):null})});Y1&&(Y1.muiSkipListHighlight=!0);function XA(t){return qe("MuiFab",t)}const a4=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),VA=t=>{const{color:e,variant:r,classes:n,size:o}=t,a={root:["root",r,`size${me(o)}`,e==="inherit"?"colorInherit":e]},l=Ue(a,XA,n);return{...n,...l}},GA=ae(Pi,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>yr(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${me(r.size)}`],r.color==="inherit"&&e.colorInherit,e[me(r.size)],e[r.color]]}})(Qe(({theme:t})=>({...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:t.palette.getContrastText?.(t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${a4.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),Qe(({theme:t})=>({variants:[...Object.entries(t.palette).filter(rr(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Qe(({theme:t})=>({[`&.${a4.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),ua=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFab"}),{children:o,className:a,color:l="default",component:c="button",disabled:d=!1,disableFocusRipple:f=!1,focusVisibleClassName:g,size:u="large",variant:m="circular",...y}=n,w={...n,color:l,component:c,disabled:d,disableFocusRipple:f,size:u,variant:m},x=VA(w);return L.jsx(GA,{className:ye(x.root,a),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:ye(x.focusVisible,g),ownerState:w,ref:r,...y,classes:x,children:o})}),KA=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:l,multiline:c}=t,d={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${me(a)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},f=Ue(d,ZP,e);return{...e,...f}},YA=ae(Id,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Md(t,e),!r.disableUnderline&&e.underline]}})(Qe(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${Ki.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${Ki.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ki.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ki.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ki.disabled}, .${Ki.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Ki.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(rr()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),JA=ae(Ad,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pd})(Qe(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ny=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:l,fullWidth:c=!1,hiddenLabel:d,inputComponent:f="input",multiline:g=!1,slotProps:u,slots:m={},type:y="text",...w}=n,x={...n,disableUnderline:o,fullWidth:c,inputComponent:f,multiline:g,type:y},E=KA(n),k={root:{ownerState:x},input:{ownerState:x}},I=u??l?Dr(k,u??l):k,O=m.root??a.Root??YA,R=m.input??a.Input??JA;return L.jsx(ry,{slots:{root:O,input:R},slotProps:I,fullWidth:c,inputComponent:f,multiline:g,ref:r,type:y,...w,classes:E})});ny.muiName="Input";function QA(t){return qe("MuiFormControl",t)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ZA=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${me(r)}`,n&&"fullWidth"]};return Ue(o,QA,e)},eD=ae("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${me(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ms=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormControl"}),{children:o,className:a,color:l="primary",component:c="div",disabled:d=!1,error:f=!1,focused:g,fullWidth:u=!1,hiddenLabel:m=!1,margin:y="none",required:w=!1,size:x="medium",variant:E="outlined",...k}=n,I={...n,color:l,component:c,disabled:d,error:f,fullWidth:u,hiddenLabel:m,margin:y,required:w,size:x,variant:E},O=ZA(I),[R,M]=_.useState(()=>{let W=!1;return o&&_.Children.forEach(o,K=>{if(!Ap(K,["Input","Select"]))return;const re=Ap(K,["Select"])?K.props.input:K;re&&GP(re.props)&&(W=!0)}),W}),[T,P]=_.useState(()=>{let W=!1;return o&&_.Children.forEach(o,K=>{Ap(K,["Input","Select"])&&(Yp(K.props,!0)||Yp(K.props.inputProps,!0))&&(W=!0)}),W}),[N,D]=_.useState(!1);d&&N&&D(!1);const C=g!==void 0&&!d?g:N;let $;_.useRef(!1);const H=_.useCallback(()=>{P(!0)},[]),q=_.useCallback(()=>{P(!1)},[]),U=_.useMemo(()=>({adornedStart:R,setAdornedStart:M,color:l,disabled:d,error:f,filled:T,focused:C,fullWidth:u,hiddenLabel:m,size:x,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:q,onFilled:H,registerEffect:$,required:w,variant:E}),[R,l,d,f,T,C,u,m,$,q,H,w,x,E]);return L.jsx(ty.Provider,{value:U,children:L.jsx(eD,{as:c,ownerState:I,className:ye(O.root,a),ref:r,...k,children:o})})});function tD(t){return qe("MuiFormControlLabel",t)}const cc=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),rD=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:a}=t,l={root:["root",r&&"disabled",`labelPlacement${me(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ue(l,tD,e)},nD=ae("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${cc.label}`]:e.label},e.root,e[`labelPlacement${me(r.labelPlacement)}`]]}})(Qe(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${cc.disabled}`]:{cursor:"default"},[`& .${cc.label}`]:{[`&.${cc.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),oD=ae("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Qe(({theme:t})=>({[`&.${cc.error}`]:{color:(t.vars||t).palette.error.main}}))),pt=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:l={},control:c,disabled:d,disableTypography:f,inputRef:g,label:u,labelPlacement:m="end",name:y,onChange:w,required:x,slots:E={},slotProps:k={},value:I,...O}=n,R=xo(),M=d??c.props.disabled??R?.disabled,T=x??c.props.required,P={disabled:M,required:T};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof c.props[W]>"u"&&typeof n[W]<"u"&&(P[W]=n[W])});const N=Ai({props:n,muiFormControl:R,states:["error"]}),D={...n,disabled:M,labelPlacement:m,required:T,error:N.error},C=rD(D),$={slots:E,slotProps:{...l,...k}},[H,q]=ct("typography",{elementType:qn,externalForwardedProps:$,ownerState:D});let U=u;return U!=null&&U.type!==qn&&!f&&(U=L.jsx(H,{component:"span",...q,className:ye(C.label,q?.className),children:U})),L.jsxs(nD,{className:ye(C.root,a),ownerState:D,ref:r,...O,children:[_.cloneElement(c,P),T?L.jsxs("div",{children:[U,L.jsxs(oD,{ownerState:D,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):U]})});function iD(t){return qe("MuiFormGroup",t)}We("MuiFormGroup",["root","row","error"]);const aD=t=>{const{classes:e,row:r,error:n}=t;return Ue({root:["root",r&&"row",n&&"error"]},iD,e)},sD=ae("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),rm=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormGroup"}),{className:o,row:a=!1,...l}=n,c=xo(),d=Ai({props:n,muiFormControl:c,states:["error"]}),f={...n,row:a,error:d.error},g=aD(f);return L.jsx(sD,{className:ye(g.root,o),ownerState:f,ref:r,...l})});function lD(t){return qe("MuiFormHelperText",t)}const s4=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var l4;const cD=t=>{const{classes:e,contained:r,size:n,disabled:o,error:a,filled:l,focused:c,required:d}=t,f={root:["root",o&&"disabled",a&&"error",n&&`size${me(n)}`,r&&"contained",c&&"focused",l&&"filled",d&&"required"]};return Ue(f,lD,e)},uD=ae("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${me(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${s4.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${s4.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),pD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:l="p",disabled:c,error:d,filled:f,focused:g,margin:u,required:m,variant:y,...w}=n,x=xo(),E=Ai({props:n,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),k={...n,component:l,contained:E.variant==="filled"||E.variant==="outlined",variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required};delete k.ownerState;const I=cD(k);return L.jsx(uD,{as:l,className:ye(I.root,a),ref:r,...w,ownerState:k,children:o===" "?l4||(l4=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function dD(t){return qe("MuiFormLabel",t)}const wc=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),fD=t=>{const{classes:e,color:r,focused:n,disabled:o,error:a,filled:l,required:c}=t,d={root:["root",`color${me(r)}`,o&&"disabled",a&&"error",l&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return Ue(d,dD,e)},hD=ae("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{[`&.${wc.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${wc.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${wc.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),mD=ae("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Qe(({theme:t})=>({[`&.${wc.error}`]:{color:(t.vars||t).palette.error.main}}))),gD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:l,component:c="label",disabled:d,error:f,filled:g,focused:u,required:m,...y}=n,w=xo(),x=Ai({props:n,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),E={...n,color:x.color||"primary",component:c,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},k=fD(E);return L.jsxs(hD,{as:c,ownerState:E,className:ye(k.root,a),ref:r,...y,children:[o,x.required&&L.jsxs(mD,{ownerState:E,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})}),J1=Z_({createStyledComponent:ae("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.container&&e.container]}}),componentName:"MuiGrid2",useThemeProps:t=>Ke({props:t,name:"MuiGrid2"}),useTheme:jo});function Q1(t){return`scale(${t}, ${t**2})`}const vD={entering:{opacity:1,transform:Q1(1)},entered:{opacity:1,transform:"none"}},nm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jp=_.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:l,in:c,onEnter:d,onEntered:f,onEntering:g,onExit:u,onExited:m,onExiting:y,style:w,timeout:x="auto",TransitionComponent:E=bo,...k}=e,I=As(),O=_.useRef(),R=jo(),M=_.useRef(null),T=vr(M,Zs(a),r),P=W=>K=>{if(W){const re=M.current;K===void 0?W(re):W(re,K)}},N=P(g),D=P((W,K)=>{IE(W);const{duration:re,delay:Z,easing:V}=Vp({style:w,timeout:x,easing:l},{mode:"enter"});let ee;x==="auto"?(ee=R.transitions.getAutoHeightDuration(W.clientHeight),O.current=ee):ee=re,W.style.transition=[R.transitions.create("opacity",{duration:ee,delay:Z}),R.transitions.create("transform",{duration:nm?ee:ee*.666,delay:Z,easing:V})].join(","),d&&d(W,K)}),C=P(f),$=P(y),H=P(W=>{const{duration:K,delay:re,easing:Z}=Vp({style:w,timeout:x,easing:l},{mode:"exit"});let V;x==="auto"?(V=R.transitions.getAutoHeightDuration(W.clientHeight),O.current=V):V=K,W.style.transition=[R.transitions.create("opacity",{duration:V,delay:re}),R.transitions.create("transform",{duration:nm?V:V*.666,delay:nm?re:re||V*.333,easing:Z})].join(","),W.style.opacity=0,W.style.transform=Q1(.75),u&&u(W)}),q=P(m),U=W=>{x==="auto"&&I.start(O.current||0,W),n&&n(M.current,W)};return L.jsx(E,{appear:o,in:c,nodeRef:M,onEnter:D,onEntered:C,onEntering:N,onExit:H,onExited:q,onExiting:$,addEndListener:U,timeout:x==="auto"?null:x,...k,children:(W,{ownerState:K,...re})=>_.cloneElement(a,{style:{opacity:0,transform:Q1(.75),visibility:W==="exited"&&!c?"hidden":void 0,...vD[W],...w,...a.props.style},ref:T,...re})})});Jp&&(Jp.muiSupportAuto=!0);const yD=lE({themeId:Un}),bD=t=>{const{classes:e,disableUnderline:r}=t,o=Ue({root:["root",!r&&"underline"],input:["input"]},JP,e);return{...e,...o}},xD=ae(Id,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Md(t,e),!r.disableUnderline&&e.underline]}})(Qe(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wl.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wl.disabled}, .${Wl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(rr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),wD=ae(Ad,{name:"MuiInput",slot:"Input",overridesResolver:Pd})({}),lo=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:g,slots:u={},type:m="text",...y}=n,w=bD(n),E={root:{ownerState:{disableUnderline:o}}},k=g??l?Dr(g??l,E):E,I=u.root??a.Root??xD,O=u.input??a.Input??wD;return L.jsx(ry,{slots:{root:I,input:O},slotProps:k,fullWidth:c,inputComponent:d,multiline:f,ref:r,type:m,...y,classes:w})});lo.muiName="Input";function SD(t){return qe("MuiInputLabel",t)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ED=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:a,variant:l,required:c}=t,d={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${me(n)}`,l],asterisk:[c&&"asterisk"]},f=Ue(d,SD,e);return{...e,...f}},CD=ae(gD,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${wc.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Qe(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Np=_.forwardRef(function(e,r){const n=Ke({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:l,variant:c,className:d,...f}=n,g=xo();let u=l;typeof u>"u"&&g&&(u=g.filled||g.focused||g.adornedStart);const m=Ai({props:n,muiFormControl:g,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:g,shrink:u,size:m.size,variant:m.variant,required:m.required,focused:m.focused},w=ED(y);return L.jsx(CD,{"data-shrink":u,ref:r,className:ye(w.root,d),...f,ownerState:y,classes:w})});function TD(t){return qe("MuiLinearProgress",t)}We("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Z1=4,ev=Mi` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,kD=typeof ev!="string"?Qs` + animation: ${ev} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,tv=Mi` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,OD=typeof tv!="string"?Qs` + animation: ${tv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,rv=Mi` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,_D=typeof rv!="string"?Qs` + animation: ${rv} 3s infinite linear; + `:null,RD=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${me(n)}`,r],dashed:["dashed",`dashedColor${me(n)}`],bar1:["bar","bar1",`barColor${me(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${me(n)}`,r==="buffer"&&`color${me(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ue(o,TD,e)},oy=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Td(t.palette[e].main,.62):Cd(t.palette[e].main,.5),MD=ae("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:oy(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),PD=ae("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${me(r.color)}`]]}})(Qe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>{const r=oy(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),_D||{animation:`${rv} 3s infinite linear`}),ID=ae("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Z1}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Z1}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:kD||{animation:`${ev} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),AD=ae("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:oy(t,e),transition:`transform .${Z1}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:OD||{animation:`${tv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),DD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:l,valueBuffer:c,variant:d="indeterminate",...f}=n,g={...n,color:a,variant:d},u=RD(g),m=el(),y={},w={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&l!==void 0){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let x=l-100;m&&(x=-x),w.bar1.transform=`translateX(${x}%)`}if(d==="buffer"&&c!==void 0){let x=(c||0)-100;m&&(x=-x),w.bar2.transform=`translateX(${x}%)`}return L.jsxs(MD,{className:ye(u.root,o),ownerState:g,role:"progressbar",...y,ref:r,...f,children:[d==="buffer"?L.jsx(PD,{className:u.dashed,ownerState:g}):null,L.jsx(ID,{className:u.bar1,ownerState:g,style:w.bar1}),d==="determinate"?null:L.jsx(AD,{className:u.bar2,ownerState:g,style:w.bar2})]})});function ND(t){return qe("MuiLink",t)}const $D=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),LD=({theme:t,ownerState:e})=>{const r=e.color,n=xi(t,`palette.${r}.main`,!1)||xi(t,`palette.${r}`,!1)||e.color,o=xi(t,`palette.${r}.mainChannel`)||xi(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:It(n,.4)},c4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},BD=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,a={root:["root",`underline${me(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Ue(a,ND,e)},FD=ae(qn,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${me(r.underline)}`],r.component==="button"&&e.button]}})(Qe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:It(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:It(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:It(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$D.focusVisible}`]:{outline:"auto"}}}]}))),zD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiLink"}),o=jo(),{className:a,color:l="primary",component:c="a",onBlur:d,onFocus:f,TypographyClasses:g,underline:u="always",variant:m="inherit",sx:y,...w}=n,[x,E]=_.useState(!1),k=M=>{Ws(M.target)||E(!1),d&&d(M)},I=M=>{Ws(M.target)&&E(!0),f&&f(M)},O={...n,color:l,component:c,focusVisible:x,underline:u,variant:m},R=BD(O);return L.jsx(FD,{color:l,className:ye(R.root,a),classes:g,component:c,onBlur:k,onFocus:I,ref:r,ownerState:O,variant:m,...w,sx:[...c4[l]===void 0?[{color:l}]:[],...Array.isArray(y)?y:[y]],style:{...w.style,...u==="always"&&l!=="inherit"&&!c4[l]&&{"--Link-underlineColor":LD({theme:o,ownerState:O})}}})}),Ic=_.createContext({});function jD(t){return qe("MuiList",t)}We("MuiList",["root","padding","dense","subheader"]);const HD=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return Ue({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},jD,e)},qD=ae("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),WD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiList"}),{children:o,className:a,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f,...g}=n,u=_.useMemo(()=>({dense:c}),[c]),m={...n,component:l,dense:c,disablePadding:d},y=HD(m);return L.jsx(Ic.Provider,{value:u,children:L.jsxs(qD,{as:l,className:ye(y.root,a),ref:r,ownerState:m,...g,children:[f,o]})})});function UD(t){return qe("MuiListItemIcon",t)}const u4=We("MuiListItemIcon",["root","alignItemsFlexStart"]),XD=t=>{const{alignItems:e,classes:r}=t;return Ue({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},UD,r)},VD=ae("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Qe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),GD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,l=_.useContext(Ic),c={...n,alignItems:l.alignItems},d=XD(c);return L.jsx(VD,{className:ye(d.root,o),ownerState:c,ref:r,...a})});function KD(t){return qe("MuiListItemText",t)}const Ds=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),YD=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return Ue({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},KD,e)},JD=ae("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ds.primary}`]:e.primary},{[`& .${Ds.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Fw.root}:where(& .${Ds.primary})`]:{display:"block"},[`.${Fw.root}:where(& .${Ds.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),QD=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:f,secondary:g,secondaryTypographyProps:u,slots:m={},slotProps:y={},...w}=n,{dense:x}=_.useContext(Ic);let E=d??o,k=g;const I={...n,disableTypography:l,inset:c,primary:!!E,secondary:!!k,dense:x},O=YD(I),R={slots:m,slotProps:{primary:f,secondary:u,...y}},[M,T]=ct("root",{className:ye(O.root,a),elementType:JD,externalForwardedProps:{...R,...w},ownerState:I,ref:r}),[P,N]=ct("primary",{className:O.primary,elementType:qn,externalForwardedProps:R,ownerState:I}),[D,C]=ct("secondary",{className:O.secondary,elementType:qn,externalForwardedProps:R,ownerState:I});return E!=null&&E.type!==qn&&!l&&(E=L.jsx(P,{variant:x?"body2":"body1",component:N?.variant?void 0:"span",...N,children:E})),k!=null&&k.type!==qn&&!l&&(k=L.jsx(D,{variant:"body2",color:"textSecondary",...C,children:k})),L.jsxs(M,{...T,children:[E,k]})});function om(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function p4(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function YE(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Ul(t,e,r,n,o,a){let l=!1,c=o(t,e,e?r:!1);for(;c;){if(c===t.firstChild){if(l)return!1;l=!0}const d=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!YE(c,a)||d)c=o(t,c,r);else return c.focus(),!0}return!1}const ZD=_.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:g,variant:u="selectedMenu",...m}=e,y=_.useRef(null),w=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zr(()=>{o&&y.current.focus()},[o]),_.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(O,{direction:R})=>{const M=!y.current.style.width;if(O.clientHeight{const R=y.current,M=O.key;if(O.ctrlKey||O.metaKey||O.altKey){g&&g(O);return}const P=en(R).activeElement;if(M==="ArrowDown")O.preventDefault(),Ul(R,P,f,d,om);else if(M==="ArrowUp")O.preventDefault(),Ul(R,P,f,d,p4);else if(M==="Home")O.preventDefault(),Ul(R,null,f,d,om);else if(M==="End")O.preventDefault(),Ul(R,null,f,d,p4);else if(M.length===1){const N=w.current,D=M.toLowerCase(),C=performance.now();N.keys.length>0&&(C-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&D!==N.keys[0]&&(N.repeating=!1)),N.lastTime=C,N.keys.push(D);const $=P&&!N.repeating&&YE(P,N);N.previousKeyMatched&&($||Ul(R,P,!1,d,om,N))?O.preventDefault():N.previousKeyMatched=!1}g&&g(O)},E=vr(y,r);let k=-1;_.Children.forEach(l,(O,R)=>{if(!_.isValidElement(O)){k===R&&(k+=1,k>=l.length&&(k=-1));return}O.props.disabled||(u==="selectedMenu"&&O.props.selected||k===-1)&&(k=R),k===R&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(k+=1,k>=l.length&&(k=-1))});const I=_.Children.map(l,(O,R)=>{if(R===k){const M={};return a&&(M.autoFocus=!0),O.props.tabIndex===void 0&&u==="selectedMenu"&&(M.tabIndex=0),_.cloneElement(O,M)}return O});return L.jsx(WD,{role:"menu",ref:E,className:c,onKeyDown:x,tabIndex:o?0:-1,...m,children:I})});function eN(t){return qe("MuiPopover",t)}We("MuiPopover",["root","paper"]);function d4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function f4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function h4(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function fp(t){return typeof t=="function"?t():t}const tN=t=>{const{classes:e}=t;return Ue({root:["root"],paper:["paper"]},eN,e)},rN=ae(GE,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),JE=ae(rl,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),nN=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:g,container:u,elevation:m=8,marginThreshold:y=16,open:w,PaperProps:x={},slots:E={},slotProps:k={},transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:O,transitionDuration:R="auto",TransitionProps:M={},disableScrollLock:T=!1,...P}=n,N=_.useRef(),D={...n,anchorOrigin:l,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:I,TransitionComponent:O,transitionDuration:R,TransitionProps:M},C=tN(D),$=_.useCallback(()=>{if(d==="anchorPosition")return c;const ke=fp(a),Ie=(ke&&ke.nodeType===1?ke:en(N.current).body).getBoundingClientRect();return{top:Ie.top+d4(Ie,l.vertical),left:Ie.left+f4(Ie,l.horizontal)}},[a,l.horizontal,l.vertical,c,d]),H=_.useCallback(ke=>({vertical:d4(ke,I.vertical),horizontal:f4(ke,I.horizontal)}),[I.horizontal,I.vertical]),q=_.useCallback(ke=>{const Le={width:ke.offsetWidth,height:ke.offsetHeight},Ie=H(Le);if(d==="none")return{top:null,left:null,transformOrigin:h4(Ie)};const nt=$();let Me=nt.top-Ie.vertical,Te=nt.left-Ie.horizontal;const ht=Me+Le.height,be=Te+Le.width,Ae=Xn(fp(a)),it=Ae.innerHeight-y,Ze=Ae.innerWidth-y;if(y!==null&&Meit){const Xe=ht-it;Me-=Xe,Ie.vertical+=Xe}if(y!==null&&TeZe){const Xe=be-Ze;Te-=Xe,Ie.horizontal+=Xe}return{top:`${Math.round(Me)}px`,left:`${Math.round(Te)}px`,transformOrigin:h4(Ie)}},[a,d,$,H,y]),[U,W]=_.useState(w),K=_.useCallback(()=>{const ke=N.current;if(!ke)return;const Le=q(ke);Le.top!==null&&ke.style.setProperty("top",Le.top),Le.left!==null&&(ke.style.left=Le.left),ke.style.transformOrigin=Le.transformOrigin,W(!0)},[q]);_.useEffect(()=>(T&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[a,T,K]);const re=()=>{K()},Z=()=>{W(!1)};_.useEffect(()=>{w&&K()}),_.useImperativeHandle(o,()=>w?{updatePosition:()=>{K()}}:null,[w,K]),_.useEffect(()=>{if(!w)return;const ke=kd(()=>{K()}),Le=Xn(fp(a));return Le.addEventListener("resize",ke),()=>{ke.clear(),Le.removeEventListener("resize",ke)}},[a,w,K]);let V=R;const ee={slots:{transition:O,...E},slotProps:{transition:M,paper:x,...k}},[F,J]=ct("transition",{elementType:Jp,externalForwardedProps:ee,ownerState:D,getSlotProps:ke=>({...ke,onEntering:(Le,Ie)=>{ke.onEntering?.(Le,Ie),re()},onExited:Le=>{ke.onExited?.(Le),Z()}}),additionalProps:{appear:!0,in:w}});R==="auto"&&!F.muiSupportAuto&&(V=void 0);const pe=u||(a?en(fp(a)).body:void 0),[de,{slots:ie,slotProps:fe,...Se}]=ct("root",{ref:r,elementType:rN,externalForwardedProps:{...ee,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:_E(typeof k.backdrop=="function"?k.backdrop(D):k.backdrop,{invisible:!0})},container:pe,open:w},ownerState:D,className:ye(C.root,g)}),[Ce,Oe]=ct("paper",{ref:N,className:C.paper,elementType:JE,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:U?void 0:{opacity:0}},ownerState:D});return L.jsx(de,{...Se,...!G1(de)&&{slots:ie,slotProps:fe,disableScrollLock:T},children:L.jsx(F,{...J,timeout:V,children:L.jsx(Ce,{...Oe,children:f})})})});function oN(t){return qe("MuiMenu",t)}We("MuiMenu",["root","paper","list"]);const iN={vertical:"top",horizontal:"right"},aN={vertical:"top",horizontal:"left"},sN=t=>{const{classes:e}=t;return Ue({root:["root"],paper:["paper"],list:["list"]},oN,e)},lN=ae(nN,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),cN=ae(JE,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uN=ae(ZD,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),QE=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:g,PaperProps:u={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:w,...x}={},variant:E="selectedMenu",slots:k={},slotProps:I={},...O}=n,R=el(),M={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:d,onEntering:w,PaperProps:u,transitionDuration:y,TransitionProps:x,variant:E},T=sN(M),P=o&&!c&&g,N=_.useRef(null),D=(V,ee)=>{N.current&&N.current.adjustStyleForScrollbar(V,{direction:R?"rtl":"ltr"}),w&&w(V,ee)},C=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let $=-1;_.Children.map(a,(V,ee)=>{_.isValidElement(V)&&(V.props.disabled||(E==="selectedMenu"&&V.props.selected||$===-1)&&($=ee))});const H={slots:k,slotProps:{list:d,transition:x,paper:u,...I}},q=pa({elementType:k.root,externalSlotProps:I.root,ownerState:M,className:[T.root,l]}),[U,W]=ct("paper",{className:T.paper,elementType:cN,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:M}),[K,re]=ct("list",{className:ye(T.list,d.className),elementType:uN,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:V=>({...V,onKeyDown:ee=>{C(ee),V.onKeyDown?.(ee)}}),ownerState:M}),Z=typeof H.slotProps.transition=="function"?H.slotProps.transition(M):H.slotProps.transition;return L.jsx(lN,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?iN:aN,slots:{root:k.root,paper:U,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:q,paper:W,backdrop:typeof I.backdrop=="function"?I.backdrop(M):I.backdrop,transition:{...Z,onEntering:(...V)=>{D(...V),Z?.onEntering?.(...V)}}},open:g,ref:r,transitionDuration:y,ownerState:M,...O,classes:m,children:L.jsx(K,{actions:N,autoFocus:o&&($===-1||c),autoFocusItem:P,variant:E,...re,children:a})})});function pN(t){return qe("MuiMenuItem",t)}const Xl=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),dN=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},fN=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:l}=t,d=Ue({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},pN,l);return{...l,...d}},hN=ae(Pi,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:dN})(Qe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:It(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Xl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:It(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Xl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:It(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:It(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Xl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Xl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${i4.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${i4.inset}`]:{marginLeft:52},[`& .${Ds.root}`]:{marginTop:0,marginBottom:0},[`& .${Ds.inset}`]:{paddingLeft:36},[`& .${u4.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${u4.root} svg`]:{fontSize:"1.25rem"}}}]}))),ur=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:f,role:g="menuitem",tabIndex:u,className:m,...y}=n,w=_.useContext(Ic),x=_.useMemo(()=>({dense:l||w.dense||!1,disableGutters:d}),[w.dense,l,d]),E=_.useRef(null);Zr(()=>{o&&E.current&&E.current.focus()},[o]);const k={...n,dense:x.dense,divider:c,disableGutters:d},I=fN(n),O=vr(E,r);let R;return n.disabled||(R=u!==void 0?u:-1),L.jsx(Ic.Provider,{value:x,children:L.jsx(hN,{ref:O,role:g,tabIndex:R,component:a,focusVisibleClassName:ye(I.focusVisible,f),className:ye(I.root,m),...y,ownerState:k,classes:I})})});function mN(t){return qe("MuiNativeSelect",t)}const iy=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),gN=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,a&&"iconOpen",n&&"disabled"]};return Ue(c,mN,e)},ZE=ae("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${iy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),vN=ae(ZE,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yr,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${iy.multiple}`]:e.multiple}]}})({}),eC=ae("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${iy.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),yN=ae(eC,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),bN=_.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:l,inputRef:c,variant:d="standard",...f}=e,g={...e,disabled:o,variant:d,error:a},u=gN(g);return L.jsxs(_.Fragment,{children:[L.jsx(vN,{ownerState:g,className:ye(u.select,n),disabled:o,ref:c||r,...f}),e.multiple?null:L.jsx(yN,{as:l,ownerState:g,className:u.icon})]})});var m4;const xN=ae("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:yr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),wN=ae("legend",{name:"MuiNotchedOutlined",shouldForwardProp:yr})(Qe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function SN(t){const{children:e,classes:r,className:n,label:o,notched:a,...l}=t,c=o!=null&&o!=="",d={...t,notched:a,withLabel:c};return L.jsx(xN,{"aria-hidden":!0,className:n,ownerState:d,...l,children:L.jsx(wN,{ownerState:d,children:c?L.jsx("span",{children:o}):m4||(m4=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const EN=t=>{const{classes:e}=t,n=Ue({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},QP,e);return{...e,...n}},CN=ae(Id,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Md})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${no.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${no.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${no.focused} .${no.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(rr()).map(([r])=>({props:{color:r},style:{[`&.${no.focused} .${no.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${no.error} .${no.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${no.disabled} .${no.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),TN=ae(SN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),kN=ae(Ad,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pd})(Qe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),ay=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:f,slots:g={},slotProps:u={},type:m="text",...y}=n,w=EN(n),x=xo(),E=Ai({props:n,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:a,hiddenLabel:E.hiddenLabel,multiline:d,size:E.size,type:m},I=g.root??o.Root??CN,O=g.input??o.Input??kN,[R,M]=ct("notchedOutline",{elementType:TN,className:w.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:u},additionalProps:{label:c!=null&&c!==""&&E.required?L.jsxs(_.Fragment,{children:[c," ","*"]}):c}});return L.jsx(ry,{slots:{root:I,input:O},slotProps:u,renderSuffix:T=>L.jsx(R,{...M,notched:typeof f<"u"?f:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:a,inputComponent:l,multiline:d,ref:r,type:m,...y,classes:{...w,notchedOutline:null}})});ay.muiName="Input";const ON=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),_N=He(L.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),RN=ae("span",{name:"MuiRadioButtonIcon",shouldForwardProp:yr})({position:"relative",display:"flex"}),MN=ae(ON,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),PN=ae(_N,{name:"MuiRadioButtonIcon"})(Qe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function tC(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return L.jsxs(RN,{className:r.root,ownerState:o,children:[L.jsx(MN,{fontSize:n,className:r.background,ownerState:o}),L.jsx(PN,{fontSize:n,className:r.dot,ownerState:o})]})}const IN=_.createContext(void 0);function AN(){return _.useContext(IN)}function DN(t){return qe("MuiRadio",t)}const g4=We("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),NN=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${me(r)}`,n!=="medium"&&`size${me(n)}`]};return{...e,...Ue(o,DN,e)}},$N=ae(VE,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${me(r.size)}`],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${g4.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:It(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${g4.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function LN(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const BN=L.jsx(tC,{checked:!0}),FN=L.jsx(tC,{}),Dt=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=BN,color:l="primary",icon:c=FN,name:d,onChange:f,size:g="medium",className:u,disabled:m,disableRipple:y=!1,slots:w={},slotProps:x={},inputProps:E,...k}=n,I=xo();let O=m;I&&typeof O>"u"&&(O=I.disabled),O??=!1;const R={...n,disabled:O,disableRipple:y,color:l,size:g},M=NN(R),T=AN();let P=o;const N=N1(f,T&&T.onChange);let D=d;T&&(typeof P>"u"&&(P=LN(T.value,n.value)),typeof D>"u"&&(D=T.name));const C=x.input??E,[$,H]=ct("root",{ref:r,elementType:$N,className:ye(M.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:w,slotProps:x,...k},getSlotProps:q=>({...q,onChange:(U,...W)=>{q.onChange?.(U,...W),N(U,...W)}}),ownerState:R,additionalProps:{type:"radio",icon:_.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:_.cloneElement(a,{fontSize:a.props.fontSize??g}),disabled:O,name:D,checked:P,slots:w,slotProps:{input:typeof C=="function"?C(R):C}}});return L.jsx($,{...H,classes:M})});function rC(t){return qe("MuiSelect",t)}const Vl=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var v4;const zN=ae(ZE,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Vl.select}`]:e.select},{[`&.${Vl.select}`]:e[r.variant]},{[`&.${Vl.error}`]:e.error},{[`&.${Vl.multiple}`]:e.multiple}]}})({[`&.${Vl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jN=ae(eC,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),HN=ae("input",{shouldForwardProp:t=>OE(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function y4(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function qN(t){return t==null||typeof t=="string"&&!t.trim()}const WN=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ue(c,rC,e)},UN=_.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:g,disabled:u,displayEmpty:m,error:y=!1,IconComponent:w,inputRef:x,labelId:E,MenuProps:k={},multiple:I,name:O,onBlur:R,onChange:M,onClose:T,onFocus:P,onOpen:N,open:D,readOnly:C,renderValue:$,required:H,SelectDisplayProps:q={},tabIndex:U,type:W,value:K,variant:re="standard",...Z}=e,[V,ee]=Wp({controlled:K,default:g,name:"Select"}),[F,J]=Wp({controlled:D,default:f,name:"Select"}),pe=_.useRef(null),de=_.useRef(null),[ie,fe]=_.useState(null),{current:Se}=_.useRef(D!=null),[Ce,Oe]=_.useState(),ke=vr(r,x),Le=_.useCallback(xe=>{de.current=xe,xe&&fe(xe)},[]),Ie=ie?.parentNode;_.useImperativeHandle(ke,()=>({focus:()=>{de.current.focus()},node:pe.current,value:V}),[V]),_.useEffect(()=>{f&&F&&ie&&!Se&&(Oe(l?null:Ie.clientWidth),de.current.focus())},[ie,l]),_.useEffect(()=>{a&&de.current.focus()},[a]),_.useEffect(()=>{if(!E)return;const xe=en(de.current).getElementById(E);if(xe){const lt=()=>{getSelection().isCollapsed&&de.current.focus()};return xe.addEventListener("click",lt),()=>{xe.removeEventListener("click",lt)}}},[E]);const nt=(xe,lt)=>{xe?N&&N(lt):T&&T(lt),Se||(Oe(l?null:Ie.clientWidth),J(xe))},Me=xe=>{xe.button===0&&(xe.preventDefault(),de.current.focus(),nt(!0,xe))},Te=xe=>{nt(!1,xe)},ht=_.Children.toArray(c),be=xe=>{const lt=ht.find(St=>St.props.value===xe.target.value);lt!==void 0&&(ee(lt.props.value),M&&M(xe,lt))},Ae=xe=>lt=>{let St;if(lt.currentTarget.hasAttribute("tabindex")){if(I){St=Array.isArray(V)?V.slice():[];const pr=V.indexOf(xe.props.value);pr===-1?St.push(xe.props.value):St.splice(pr,1)}else St=xe.props.value;if(xe.props.onClick&&xe.props.onClick(lt),V!==St&&(ee(St),M)){const pr=lt.nativeEvent||lt,dr=new pr.constructor(pr.type,pr);Object.defineProperty(dr,"target",{writable:!0,value:{value:St,name:O}}),M(dr,xe)}I||nt(!1,lt)}},it=xe=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(xe.key)&&(xe.preventDefault(),nt(!0,xe))},Ze=ie!==null&&F,Xe=xe=>{!Ze&&R&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:V,name:O}}),R(xe))};delete Z["aria-invalid"];let ve,at;const Ye=[];let ne=!1;(Yp({value:V})||m)&&($?ve=$(V):ne=!0);const ge=ht.map(xe=>{if(!_.isValidElement(xe))return null;let lt;if(I){if(!Array.isArray(V))throw new Error(Bo(2));lt=V.some(St=>y4(St,xe.props.value)),lt&&ne&&Ye.push(xe.props.children)}else lt=y4(V,xe.props.value),lt&&ne&&(at=xe.props.children);return _.cloneElement(xe,{"aria-selected":lt?"true":"false",onClick:Ae(xe),onKeyUp:St=>{St.key===" "&&St.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp(St)},role:"option",selected:lt,value:void 0,"data-value":xe.props.value})});ne&&(I?Ye.length===0?ve=null:ve=Ye.reduce((xe,lt,St)=>(xe.push(lt),St{const{classes:e}=t,n=Ue({root:["root"]},rC,e);return{...e,...n}},sy={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>yr(t)&&t!=="variant",slot:"Root"},VN=ae(lo,sy)(""),GN=ae(ay,sy)(""),KN=ae(ny,sy)(""),po=_.forwardRef(function(e,r){const n=Ke({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:g=eI,id:u,input:m,inputProps:y,label:w,labelId:x,MenuProps:E,multiple:k=!1,native:I=!1,onClose:O,onOpen:R,open:M,renderValue:T,SelectDisplayProps:P,variant:N="outlined",...D}=n,C=I?bN:UN,$=xo(),H=Ai({props:n,muiFormControl:$,states:["variant","error"]}),q=H.variant||N,U={...n,variant:q,classes:l},W=XN(U),{root:K,...re}=W,Z=m||{standard:L.jsx(VN,{ownerState:U}),outlined:L.jsx(GN,{label:w,ownerState:U}),filled:L.jsx(KN,{ownerState:U})}[q],V=vr(r,Zs(Z));return L.jsx(_.Fragment,{children:_.cloneElement(Z,{inputComponent:C,inputProps:{children:a,error:H.error,IconComponent:g,variant:q,type:void 0,multiple:k,...I?{id:u}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:x,MenuProps:E,onClose:O,onOpen:R,open:M,renderValue:T,SelectDisplayProps:{id:u,...P}},...y,classes:y?Dr(re,y.classes):re,...m?m.props.inputProps:{}},...(k&&I||f)&&q==="outlined"?{notched:!0}:{},ref:V,className:ye(Z.props.className,c,W.root),...!m&&{variant:q},...D})})});po.muiName="Select";function YN(t){return qe("MuiTooltip",t)}const Qt=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function JN(t){return Math.round(t*1e5)/1e5}const QN=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${me(a.split("-")[0])}`],arrow:["arrow"]};return Ue(l,YN,e)},ZN=ae(WE,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Qe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Qt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),e$=ae("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${me(r.placement.split("-")[0])}`]]}})(Qe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:It(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Qt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Qt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${JN(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),t$=ae("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Qe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:It(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hp=!1;const b4=new Od;let Gl={x:0,y:0};function mp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const $p=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:l,components:c={},componentsProps:d={},describeChild:f=!1,disableFocusListener:g=!1,disableHoverListener:u=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:w=100,enterNextDelay:x=0,enterTouchDelay:E=700,followCursor:k=!1,id:I,leaveDelay:O=0,leaveTouchDelay:R=1500,onClose:M,onOpen:T,open:P,placement:N="bottom",PopperComponent:D,PopperProps:C={},slotProps:$={},slots:H={},title:q,TransitionComponent:U,TransitionProps:W,...K}=n,re=_.isValidElement(a)?a:L.jsx("span",{children:a}),Z=jo(),V=el(),[ee,F]=_.useState(),[J,pe]=_.useState(null),de=_.useRef(!1),ie=m||k,fe=As(),Se=As(),Ce=As(),Oe=As(),[ke,Le]=Wp({controlled:P,default:!1,name:"Tooltip",state:"open"});let Ie=ke;const nt=va(I),Me=_.useRef(),Te=On(()=>{Me.current!==void 0&&(document.body.style.WebkitUserSelect=Me.current,Me.current=void 0),Oe.clear()});_.useEffect(()=>Te,[Te]);const ht=rt=>{b4.clear(),hp=!0,Le(!0),T&&!Ie&&T(rt)},be=On(rt=>{b4.start(800+O,()=>{hp=!1}),Le(!1),M&&Ie&&M(rt),fe.start(Z.transitions.duration.shortest,()=>{de.current=!1})}),Ae=rt=>{de.current&&rt.type!=="touchstart"||(ee&&ee.removeAttribute("title"),Se.clear(),Ce.clear(),w||hp&&x?Se.start(hp?x:w,()=>{ht(rt)}):ht(rt))},it=rt=>{Se.clear(),Ce.start(O,()=>{be(rt)})},[,Ze]=_.useState(!1),Xe=rt=>{Ws(rt.target)||(Ze(!1),it(rt))},ve=rt=>{ee||F(rt.currentTarget),Ws(rt.target)&&(Ze(!0),Ae(rt))},at=rt=>{de.current=!0;const Fr=re.props;Fr.onTouchStart&&Fr.onTouchStart(rt)},Ye=rt=>{at(rt),Ce.clear(),fe.clear(),Te(),Me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Oe.start(E,()=>{document.body.style.WebkitUserSelect=Me.current,Ae(rt)})},ne=rt=>{re.props.onTouchEnd&&re.props.onTouchEnd(rt),Te(),Ce.start(R,()=>{be(rt)})};_.useEffect(()=>{if(!Ie)return;function rt(Fr){Fr.key==="Escape"&&be(Fr)}return document.addEventListener("keydown",rt),()=>{document.removeEventListener("keydown",rt)}},[be,Ie]);const ge=vr(Zs(re),F,r);!q&&q!==0&&(Ie=!1);const je=_.useRef(),Be=rt=>{const Fr=re.props;Fr.onMouseMove&&Fr.onMouseMove(rt),Gl={x:rt.clientX,y:rt.clientY},je.current&&je.current.update()},st={},vt=typeof q=="string";f?(st.title=!Ie&&vt&&!u?q:null,st["aria-describedby"]=Ie?nt:null):(st["aria-label"]=vt?q:null,st["aria-labelledby"]=Ie&&!vt?nt:null);const Fe={...st,...K,...re.props,className:ye(K.className,re.props.className),onTouchStart:at,ref:ge,...k?{onMouseMove:Be}:{}},Ft={};y||(Fe.onTouchStart=Ye,Fe.onTouchEnd=ne),u||(Fe.onMouseOver=mp(Ae,Fe.onMouseOver),Fe.onMouseLeave=mp(it,Fe.onMouseLeave),ie||(Ft.onMouseOver=Ae,Ft.onMouseLeave=it)),g||(Fe.onFocus=mp(ve,Fe.onFocus),Fe.onBlur=mp(Xe,Fe.onBlur),ie||(Ft.onFocus=ve,Ft.onBlur=Xe));const wt={...n,isRtl:V,arrow:o,disableInteractive:ie,placement:N,PopperComponentProp:D,touch:de.current},xe=typeof $.popper=="function"?$.popper(wt):$.popper,lt=_.useMemo(()=>{let rt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return C.popperOptions?.modifiers&&(rt=rt.concat(C.popperOptions.modifiers)),xe?.popperOptions?.modifiers&&(rt=rt.concat(xe.popperOptions.modifiers)),{...C.popperOptions,...xe?.popperOptions,modifiers:rt}},[J,C.popperOptions,xe?.popperOptions]),St=QN(wt),pr=typeof $.transition=="function"?$.transition(wt):$.transition,dr={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...H},slotProps:{arrow:$.arrow??d.arrow,popper:{...C,...xe??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...W,...pr??d.transition}}},[Br,Eo]=ct("popper",{elementType:ZN,externalForwardedProps:dr,ownerState:wt,className:ye(St.popper,C?.className)}),[Kn,mn]=ct("transition",{elementType:Jp,externalForwardedProps:dr,ownerState:wt}),[ka,Oa]=ct("tooltip",{elementType:e$,className:St.tooltip,externalForwardedProps:dr,ownerState:wt}),[_a,Ra]=ct("arrow",{elementType:t$,className:St.arrow,externalForwardedProps:dr,ownerState:wt,ref:pe});return L.jsxs(_.Fragment,{children:[_.cloneElement(re,Fe),L.jsx(Br,{as:D??WE,placement:N,anchorEl:k?{getBoundingClientRect:()=>({top:Gl.y,left:Gl.x,right:Gl.x,bottom:Gl.y,width:0,height:0})}:ee,popperRef:je,open:ee?Ie:!1,id:nt,transition:!0,...Ft,...Eo,popperOptions:lt,children:({TransitionProps:rt})=>L.jsx(Kn,{timeout:Z.transitions.duration.shorter,...rt,...mn,children:L.jsxs(ka,{...Oa,children:[q,o?L.jsx(_a,{...Ra}):null]})})})]})});function r$(t){return qe("MuiTab",t)}const En=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),n$=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:l,selected:c,disabled:d}=t,f={root:["root",a&&l&&"labelIcon",`textColor${me(r)}`,n&&"fullWidth",o&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return Ue(f,r$,e)},o$=ae(Pi,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${me(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${En.iconWrapper}`]:e.iconWrapper},{[`& .${En.icon}`]:e.icon}]}})(Qe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${En.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${En.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${En.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${En.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${En.selected}`]:{opacity:1},[`&.${En.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${En.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${En.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${En.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${En.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),is=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:f="top",indicator:g,label:u,onChange:m,onClick:y,onFocus:w,selected:x,selectionFollowsFocus:E,textColor:k="inherit",value:I,wrapped:O=!1,...R}=n,M={...n,disabled:a,disableFocusRipple:l,selected:x,icon:!!d,iconPosition:f,label:!!u,fullWidth:c,textColor:k,wrapped:O},T=n$(M),P=d&&u&&_.isValidElement(d)?_.cloneElement(d,{className:ye(T.icon,d.props.className)}):d,N=C=>{!x&&m&&m(C,I),y&&y(C)},D=C=>{E&&!x&&m&&m(C,I),w&&w(C)};return L.jsxs(o$,{focusRipple:!l,className:ye(T.root,o),ref:r,role:"tab","aria-selected":x,disabled:a,onClick:N,onFocus:D,ownerState:M,tabIndex:x?0:-1,...R,children:[f==="top"||f==="start"?L.jsxs(_.Fragment,{children:[P,u]}):L.jsxs(_.Fragment,{children:[u,P]}),g]})});function i$(t){return qe("MuiToolbar",t)}We("MuiToolbar",["root","gutters","regular","dense"]);const a$=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Ue({root:["root",!r&&"gutters",n]},i$,e)},s$=ae("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),ly=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:l=!1,variant:c="regular",...d}=n,f={...n,component:a,disableGutters:l,variant:c},g=a$(f);return L.jsx(s$,{as:a,className:ye(g.root,o),ref:r,ownerState:f,...d})}),l$=He(L.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),c$=He(L.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function u$(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function p$(t,e,r,n={},o=()=>{}){const{ease:a=u$,duration:l=300}=n;let c=null;const d=e[t];let f=!1;const g=()=>{f=!0},u=m=>{if(f){o(new Error("Animation cancelled"));return}c===null&&(c=m);const y=Math.min(1,(m-c)/l);if(e[t]=a(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(u)};return d===r?(o(new Error("Element already at target position")),g):(requestAnimationFrame(u),g)}const d$={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function f$(t){const{onChange:e,...r}=t,n=_.useRef(),o=_.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return Zr(()=>{const l=kd(()=>{const d=n.current;a(),d!==n.current&&e(n.current)}),c=Xn(o.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[e]),_.useEffect(()=>{a(),e(n.current)},[e]),L.jsx("div",{style:d$,...r,ref:o})}function h$(t){return qe("MuiTabScrollButton",t)}const m$=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),g$=t=>{const{classes:e,orientation:r,disabled:n}=t;return Ue({root:["root",r,n&&"disabled"]},h$,e)},v$=ae(Pi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${m$.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),y$=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:l={},direction:c,orientation:d,disabled:f,...g}=n,u=el(),m={isRtl:u,...n},y=g$(m),w=a.StartScrollButtonIcon??l$,x=a.EndScrollButtonIcon??c$,E=pa({elementType:w,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),k=pa({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return L.jsx(v$,{component:"div",className:ye(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...g,style:{...g.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:c==="left"?L.jsx(w,{...E}):L.jsx(x,{...k})})});function b$(t){return qe("MuiTabs",t)}const im=We("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),x4=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,w4=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,gp=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},x$=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:l,scrollButtonsHideMobile:c,classes:d}=t;return Ue({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},b$,d)},w$=ae("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${im.scrollButtons}`]:e.scrollButtons},{[`& .${im.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Qe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${im.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),S$=ae("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),E$=ae("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),C$=ae("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Qe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),T$=ae(f$)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),S4={},k$=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTabs"}),o=jo(),a=el(),{"aria-label":l,"aria-labelledby":c,action:d,centered:f=!1,children:g,className:u,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:w="primary",onChange:x,orientation:E="horizontal",ScrollButtonComponent:k,scrollButtons:I="auto",selectionFollowsFocus:O,slots:R={},slotProps:M={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:N="primary",value:D,variant:C="standard",visibleScrollbar:$=!1,...H}=n,q=C==="scrollable",U=E==="vertical",W=U?"scrollTop":"scrollLeft",K=U?"top":"left",re=U?"bottom":"right",Z=U?"clientHeight":"clientWidth",V=U?"height":"width",ee={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:w,orientation:E,vertical:U,scrollButtons:I,textColor:N,variant:C,visibleScrollbar:$,fixed:!q,hideScrollbar:q&&!$,scrollableX:q&&!U,scrollableY:q&&U,centered:f&&!q,scrollButtonsHideMobile:!y},F=x$(ee),J=pa({elementType:R.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:ee}),pe=pa({elementType:R.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:ee}),[de,ie]=_.useState(!1),[fe,Se]=_.useState(S4),[Ce,Oe]=_.useState(!1),[ke,Le]=_.useState(!1),[Ie,nt]=_.useState(!1),[Me,Te]=_.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,be=_.useRef(null),Ae=_.useRef(null),it={slots:R,slotProps:{indicator:T,scrollButton:P,...M}},Ze=()=>{const _e=be.current;let ze;if(_e){const dt=_e.getBoundingClientRect();ze={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollWidth:_e.scrollWidth,top:dt.top,bottom:dt.bottom,left:dt.left,right:dt.right}}let yt;if(_e&&D!==!1){const dt=Ae.current.children;if(dt.length>0){const Gt=dt[ht.get(D)];yt=Gt?Gt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:yt}},Xe=On(()=>{const{tabsMeta:_e,tabMeta:ze}=Ze();let yt=0,dt;U?(dt="top",ze&&_e&&(yt=ze.top-_e.top+_e.scrollTop)):(dt=a?"right":"left",ze&&_e&&(yt=(a?-1:1)*(ze[dt]-_e[dt]+_e.scrollLeft)));const Gt={[dt]:yt,[V]:ze?ze[V]:0};if(typeof fe[dt]!="number"||typeof fe[V]!="number")Se(Gt);else{const Cr=Math.abs(fe[dt]-Gt[dt]),gn=Math.abs(fe[V]-Gt[V]);(Cr>=1||gn>=1)&&Se(Gt)}}),ve=(_e,{animation:ze=!0}={})=>{ze?p$(W,be.current,_e,{duration:o.transitions.duration.standard}):be.current[W]=_e},at=_e=>{let ze=be.current[W];U?ze+=_e:ze+=_e*(a?-1:1),ve(ze)},Ye=()=>{const _e=be.current[Z];let ze=0;const yt=Array.from(Ae.current.children);for(let dt=0;dt_e){dt===0&&(ze=_e);break}ze+=Gt[Z]}return ze},ne=()=>{at(-1*Ye())},ge=()=>{at(Ye())},[je,{onChange:Be,...st}]=ct("scrollbar",{className:ye(F.scrollableX,F.hideScrollbar),elementType:T$,shouldForwardComponentProp:!0,externalForwardedProps:it,ownerState:ee}),vt=_.useCallback(_e=>{Be?.(_e),Te({overflow:null,scrollbarWidth:_e})},[Be]),[Fe,Ft]=ct("scrollButtons",{className:ye(F.scrollButtons,P.className),elementType:y$,externalForwardedProps:it,ownerState:ee,additionalProps:{orientation:E,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:J,endScrollButtonIcon:pe}}}),wt=()=>{const _e={};_e.scrollbarSizeListener=q?L.jsx(je,{...st,onChange:vt}):null;const yt=q&&(I==="auto"&&(Ce||ke)||I===!0);return _e.scrollButtonStart=yt?L.jsx(Fe,{direction:a?"right":"left",onClick:ne,disabled:!Ce,...Ft}):null,_e.scrollButtonEnd=yt?L.jsx(Fe,{direction:a?"left":"right",onClick:ge,disabled:!ke,...Ft}):null,_e},xe=On(_e=>{const{tabsMeta:ze,tabMeta:yt}=Ze();if(!(!yt||!ze)){if(yt[K]ze[re]){const dt=ze[W]+(yt[re]-ze[re]);ve(dt,{animation:_e})}}}),lt=On(()=>{q&&I!==!1&&nt(!Ie)});_.useEffect(()=>{const _e=kd(()=>{be.current&&Xe()});let ze;const yt=Cr=>{Cr.forEach(gn=>{gn.removedNodes.forEach(Yn=>{ze?.unobserve(Yn)}),gn.addedNodes.forEach(Yn=>{ze?.observe(Yn)})}),_e(),lt()},dt=Xn(be.current);dt.addEventListener("resize",_e);let Gt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(_e),Array.from(Ae.current.children).forEach(Cr=>{ze.observe(Cr)})),typeof MutationObserver<"u"&&(Gt=new MutationObserver(yt),Gt.observe(Ae.current,{childList:!0})),()=>{_e.clear(),dt.removeEventListener("resize",_e),Gt?.disconnect(),ze?.disconnect()}},[Xe,lt]),_.useEffect(()=>{const _e=Array.from(Ae.current.children),ze=_e.length;if(typeof IntersectionObserver<"u"&&ze>0&&q&&I!==!1){const yt=_e[0],dt=_e[ze-1],Gt={root:be.current,threshold:.99},Cr=sl=>{Oe(!sl[0].isIntersecting)},gn=new IntersectionObserver(Cr,Gt);gn.observe(yt);const Yn=sl=>{Le(!sl[0].isIntersecting)},Ma=new IntersectionObserver(Yn,Gt);return Ma.observe(dt),()=>{gn.disconnect(),Ma.disconnect()}}},[q,I,Ie,g?.length]),_.useEffect(()=>{ie(!0)},[]),_.useEffect(()=>{Xe()}),_.useEffect(()=>{xe(S4!==fe)},[xe,fe]),_.useImperativeHandle(d,()=>({updateIndicator:Xe,updateScrollButtons:lt}),[Xe,lt]);const[St,pr]=ct("indicator",{className:ye(F.indicator,T.className),elementType:C$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:fe}}),dr=L.jsx(St,{...pr});let Br=0;const Eo=_.Children.map(g,_e=>{if(!_.isValidElement(_e))return null;const ze=_e.props.value===void 0?Br:_e.props.value;ht.set(ze,Br);const yt=ze===D;return Br+=1,_.cloneElement(_e,{fullWidth:C==="fullWidth",indicator:yt&&!de&&dr,selected:yt,selectionFollowsFocus:O,onChange:x,textColor:N,value:ze,...Br===1&&D===!1&&!_e.props.tabIndex?{tabIndex:0}:{}})}),Kn=_e=>{if(_e.altKey||_e.shiftKey||_e.ctrlKey||_e.metaKey)return;const ze=Ae.current,yt=en(ze).activeElement;if(yt.getAttribute("role")!=="tab")return;let Gt=E==="horizontal"?"ArrowLeft":"ArrowUp",Cr=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&a&&(Gt="ArrowRight",Cr="ArrowLeft"),_e.key){case Gt:_e.preventDefault(),gp(ze,yt,w4);break;case Cr:_e.preventDefault(),gp(ze,yt,x4);break;case"Home":_e.preventDefault(),gp(ze,null,x4);break;case"End":_e.preventDefault(),gp(ze,null,w4);break}},mn=wt(),[ka,Oa]=ct("root",{ref:r,className:ye(F.root,u),elementType:w$,externalForwardedProps:{...it,...H,component:m},ownerState:ee}),[_a,Ra]=ct("scroller",{ref:be,className:F.scroller,elementType:S$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:{overflow:Me.overflow,[U?`margin${a?"Left":"Right"}`:"marginBottom"]:$?void 0:-Me.scrollbarWidth}}}),[rt,Fr]=ct("list",{ref:Ae,className:ye(F.list,F.flexContainer),elementType:E$,externalForwardedProps:it,ownerState:ee,getSlotProps:_e=>({..._e,onKeyDown:ze=>{Kn(ze),_e.onKeyDown?.(ze)}})});return L.jsxs(ka,{...Oa,children:[mn.scrollButtonStart,mn.scrollbarSizeListener,L.jsxs(_a,{...Ra,children:[L.jsx(rt,{"aria-label":l,"aria-labelledby":c,"aria-orientation":E==="vertical"?"vertical":null,role:"tablist",...Fr,children:Eo}),de&&dr]}),mn.scrollButtonEnd]})});function O$(t){return qe("MuiTextField",t)}We("MuiTextField",["root"]);const _$={standard:lo,filled:ny,outlined:ay},R$=t=>{const{classes:e}=t;return Ue({root:["root"]},O$,e)},M$=ae(ms,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Ar=_.forwardRef(function(e,r){const n=Ke({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:l,className:c,color:d="primary",defaultValue:f,disabled:g=!1,error:u=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:w,id:x,InputLabelProps:E,inputProps:k,InputProps:I,inputRef:O,label:R,maxRows:M,minRows:T,multiline:P=!1,name:N,onBlur:D,onChange:C,onFocus:$,placeholder:H,required:q=!1,rows:U,select:W=!1,SelectProps:K,slots:re={},slotProps:Z={},type:V,value:ee,variant:F="outlined",...J}=n,pe={...n,autoFocus:a,color:d,disabled:g,error:u,fullWidth:y,multiline:P,required:q,select:W,variant:F},de=R$(pe),ie=va(x),fe=w&&ie?`${ie}-helper-text`:void 0,Se=R&&ie?`${ie}-label`:void 0,Ce=_$[F],Oe={slots:re,slotProps:{input:I,inputLabel:E,htmlInput:k,formHelperText:m,select:K,...Z}},ke={},Le=Oe.slotProps.inputLabel;F==="outlined"&&(Le&&typeof Le.shrink<"u"&&(ke.notched=Le.shrink),ke.label=R),W&&((!K||!K.native)&&(ke.id=void 0),ke["aria-describedby"]=void 0);const[Ie,nt]=ct("root",{elementType:M$,shouldForwardComponentProp:!0,externalForwardedProps:{...Oe,...J},ownerState:pe,className:ye(de.root,c),ref:r,additionalProps:{disabled:g,error:u,fullWidth:y,required:q,color:d,variant:F}}),[Me,Te]=ct("input",{elementType:Ce,externalForwardedProps:Oe,additionalProps:ke,ownerState:pe}),[ht,be]=ct("inputLabel",{elementType:Np,externalForwardedProps:Oe,ownerState:pe}),[Ae,it]=ct("htmlInput",{elementType:"input",externalForwardedProps:Oe,ownerState:pe}),[Ze,Xe]=ct("formHelperText",{elementType:pD,externalForwardedProps:Oe,ownerState:pe}),[ve,at]=ct("select",{elementType:po,externalForwardedProps:Oe,ownerState:pe}),Ye=L.jsx(Me,{"aria-describedby":fe,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:y,multiline:P,name:N,rows:U,maxRows:M,minRows:T,type:V,value:ee,id:ie,inputRef:O,onBlur:D,onChange:C,onFocus:$,placeholder:H,inputProps:it,slots:{input:re.htmlInput?Ae:void 0},...Te});return L.jsxs(Ie,{...nt,children:[R!=null&&R!==""&&L.jsx(ht,{htmlFor:ie,id:Se,...be,children:R}),W?L.jsx(ve,{"aria-describedby":fe,id:ie,labelId:Se,value:ee,input:Ye,...at,children:l}):Ye,w&&L.jsx(Ze,{id:fe,...Xe,children:w})]})}),P$=He(L.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),I$=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),A$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),D$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),N$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),$$=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),cy=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),L$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),B$=He(L.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Nd=He(L.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Di=He(L.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),fa=He(L.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uy=He(L.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),F$=He(L.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),z$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),Lp=He(L.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),nC=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),j$=He(L.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),H$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),q$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),W$=He(L.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),U$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),X$=He(L.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),V$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),oC=He(L.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),G$=He(L.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),K$=He(L.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch"),Y$=He(L.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),J$=He(L.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),E4=He(L.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),Q$=He(L.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),Z$=He(L.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),C4=He(L.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),eL=He(L.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),tL=He(L.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),nv=He(L.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),rL=He(L.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),nL=He(L.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),oL=He(L.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),iL=He(L.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),aL=He(L.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),sL=He(L.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),lL=He(L.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),cL=He(L.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),uL=He(L.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),pL=He(L.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),am=11/23/100;function T4(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substring(1,3),16),e.g=parseInt(t.substring(3,5),16),e.b=parseInt(t.substring(5,7),16);else if(t.length===4){const r=t[1],n=t[2],o=t[3];e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function dL(t){return`#${Math.round(t.r).toString(16).padStart(2,"0")}${Math.round(t.g).toString(16).padStart(2,"0")}${Math.round(t.b).toString(16).padStart(2,"0")}`}function fL(t,e,r){const n=T4(t),o=T4(e);return n.r+=o.r*(.05+am*(r-1)),n.g+=o.g*(.05+am*(r-1)),n.b+=o.b*(.05+am*(r-1)),dL(n)}function vp(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:fL(t,e,n)};return r}function hL(t,e){let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[200],"&:hover":{color:Sr[100]}}},MuiPaper:vp("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[400],"&:hover":{color:Sr[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[200],"&:hover":{color:Sr[100]}}},MuiPaper:vp("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[400],"&:hover":{color:Sr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="NW"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[400],"&:hover":{color:Sr[300]}}},MuiPaper:vp("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#00af78"},secondary:{main:"#005a40"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="HA"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:"#db0a33","&:hover":{color:"#FF0a33"}}},MuiPaper:vp("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#970720"},secondary:{main:"#db0a33"},expert:"#db0a33",text:{primary:"#ffffff",secondary:"#ffffff"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Sr[400],"&:hover":{color:Sr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:r.palette?.primary?.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:$1[300],dark:$1[400]});const o=Rc(r),a=o.palette;return Rc(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:a.grey?.[300],color:a.getContrastText&&a.grey?.[300]?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:a.text?.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${a.action?.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:It(a.text?.primary||"",a.action?.hoverOpacity||.04)}}},{props:{variant:"text",color:"grey"},style:{color:a.text?.primary,"&:hover":{backgroundColor:It(a.text?.primary||"",a.action?.hoverOpacity||.04)}}}]}}})}typeof globalThis.process<"u"&&(globalThis.location||={href:"http://localhost:8081/",protocol:"http:",host:"localhost:8081",pathname:"/",hostname:"localhost",reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(t,e)=>{globalThis.localStorage._keys[t]=e},getItem:t=>t in globalThis.localStorage._keys?globalThis.localStorage._keys[t]:null,removeItem:t=>{t in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[t]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:"en"});var k4;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(k4||(k4={}));var Qp;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Qp||(Qp={}));Qp.PERMISSION_ERROR;Qp.NOT_CONNECTED;function mL(){const t=document.getSelection();if(!t?.rangeCount)return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const O4={"text/plain":"Text","text/html":"Url",default:"Text"},gL="Copy to clipboard: #{key}, Enter";function vL(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function yL(t,e){let r,n,o,a,l=!1;e=e||{};const c=e.debug||!1;try{if(r=mL(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top="0px",a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.userSelect="text",a.addEventListener("copy",f=>{if(f.stopPropagation(),e?.format)if(f.preventDefault(),typeof f.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData?.clearData();const g=O4[e.format]||O4.default;window.clipboardData?.setData(g,t)}else f.clipboardData?.clearData(),f.clipboardData?.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o?.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){c&&console.error("unable to copy using execCommand: ",d),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),l=!0}catch(f){c&&console.error("unable to copy using clipboardData: ",f),c&&console.error("falling back to prompt");const g=vL("message"in e?e.message||"":gL);window.prompt(g,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return l}class z{static translations={};static unknownTranslations=[];static lang=window.sysLang||"en";static _disableWarning=!1;static setLanguage(e){e&&(z.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const l=a,c={},d=n[l];Object.keys(d).forEach(f=>{f&&d&&(f.startsWith(o)?c[f]=d[f]:c[`${o}${f}`]=d[f])}),e[l]=c})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;z.translations[o]||={},Object.assign(z.translations[o],e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const l=a,c=z.translations[l];c?c[n]?c[n]!==o[l]&&console.warn(`Translation for word "${n}" in "${l}" was ignored: existing = "${c[n]}", new = ${o[l]}`):c[n]=o[l]:console.warn(`Used unknown language: ${l}`)})});else{z.translations[r]||console.warn(`Used unknown language: ${r}`),z.translations[r]||={};const n=z.translations[r];Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(z.translations=e)}static getLanguage(){return z.lang}static t(e,...r){const n=z.translations[z.lang];if(n){const o=n[e];if(o)e=o;else if(z.unknownTranslations.includes(e)||(z.unknownTranslations.push(e),!z._disableWarning&&console.log(`Translate: ${e}`)),z.lang!=="en"&&z.translations.en){const a=z.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(z.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):e&&typeof e=="object"&&(z.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(z.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){z._disableWarning=!!e}}window.i18nShow=z.i18nShow;window.i18nDisableWarning=z.disableWarning;const oo="material",bL=["Su","Mo","Tu","We","Th","Fr","Sa"],xL=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],sm={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},_4={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"};class Je{static namespace=oo;static INSTANCES="instances";static dateFormat=["DD","MM"];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let l="";return r&&(l+=`${r} ${z.t("ra_daysShortText")} `),l+=`${n}:${o}:${a}`,l}static getObjectName(e,r,n,o,a){const l=e[r];let c;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n?.name){const d=n.name;typeof d=="object"?c=o.language&&d[o.language]||d.en:c=d}else if(a&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!a&&l?.common){const d=l.common.name||l.common.desc;d&&typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else{const d=r.lastIndexOf(".");c=r.substring(d+1).replace(/[_.]/g," "),c=Je.CapitalWords(c)}return c?.trim()||""}static getObjectNameFromObj(e,r,n,o,a){const l=e;let c=e?._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r?.name){const d=r.name;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d}else if(o&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!o&&l?.common?.name){let d=l.common.name;!d&&l.common.desc&&(d=l.common.desc),typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}return a?c:c.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o?.custom){a=o.custom[oo];const l=n.user||"admin";if(a&&a[l]){if(r){if(a[l].subOrder&&a[l].subOrder[r])return JSON.parse(JSON.stringify(a[l].subOrder[r]))}else if(a[l].order)return JSON.parse(JSON.stringify(a[l].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o?.custom){a=o.custom[oo];const l=n.user||"admin";if(a&&a[l]){if(r){if(a[l].subURLs&&a[l].subURLs[r])return JSON.parse(JSON.stringify(a[l].subURLs[r]))}else if(a[l].URLs)return JSON.parse(JSON.stringify(a[l].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=e?._id||r?.id;let l;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?l=e.common:l=e,l?.custom?(o=l.custom,o=o[oo]&&o[oo][r.user||"admin"]?JSON.parse(JSON.stringify(o[oo][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),l&&(!o.color&&l.color&&(o.color=l.color),!o.icon&&l.icon&&(o.icon=l.icon),!o.name&&l.name&&(o.name=l.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const c=a.lastIndexOf(".");o.name=a.substring(c+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=Je.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[oo]=e.common.custom[oo]||{},e.common.custom[oo][n.user||"admin"]=r;const o=e.common.custom[oo][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e?.icon?e.icon.length<=2?v.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?v.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):v.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){if(typeof e=="object"&&(r=e,e=r?._id),r?.common?.icon){let n=r.common.icon;if(typeof n=="string"&&n.length<=2||n.startsWith("data:image"))return n;const o=e.split(".");return o[0]==="system"?n=`adapter/${o[2]}${n.startsWith("/")?"":"/"}${n}`:n=`adapter/${o[0]}${n.startsWith("/")?"":"/"}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?n=`../../${n}`:window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(e){return e?Je.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const l=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(l&&l.length===4)n=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}static getWindDirection(e){return e>=0&&e<11.25?"N":e>=11.25&&e<33.75?"NNE":e>=33.75&&e<56.25?"NE":e>=56.25&&e<78.75?"ENE":e>=78.75&&e<101.25?"E":e>=101.25&&e<123.75?"ESE":e>=123.75&&e<146.25?"SE":e>=146.25&&e<168.75?"SSE":e>=168.75&&e<191.25?"S":e>=191.25&&e<213.75?"SSW":e>=213.75&&e<236.25?"SW":e>=236.25&&e<258.75?"WSW":e>=258.75&&e<281.25?"W":e>=281.25&&e<303.75?"WNW":e>=303.75&&e<326.25?"NW":e>=326.25&&e<348.75?"NNW":"N"}static padding(e){return typeof e=="string"?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(e){e&&(Je.dateFormat=e.toUpperCase().split(/[.-/]/),Je.dateFormat.splice(Je.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(l=>l>31);if(a!==void 0){o.splice(o.indexOf(a),1);const l=o.find(c=>c>12);l?(o.splice(o.indexOf(l),1),e=new Date(a,o[0]-1,l)):Je.dateFormat[0][0]==="M"&&Je.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):Je.dateFormat[0][0]==="D"&&Je.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=z.t(`ra_dow_${bL[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${z.t(`ra_month_${xL[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/
||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(v.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(v.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(v.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(v.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return l?.common?.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return a?.common?.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=e?.common?.custom?.[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName={}):o.common.smartName={}}static removeSmartName(e,r,n){const o=e;n?o?.common?.custom?.[r]&&(o.common.custom[r]=null):o.common.smartName=null}static updateSmartName(e,r,n,o,a,l){const c=z.getLanguage(),d=e;if(typeof d.common.smartName=="string"){const f=d.common.smartName;d.common.smartName={},d.common.smartName[c]=f}if(d.native?.byON){delete d.native.byON;let f=d.common.smartName;f&&typeof f!="object"&&(f={en:f,[c]:f}),d.common.smartName=f}if(o!==void 0&&(l?(d.common.custom||={},d.common.custom[a]||={},d.common.custom[a].smartName||={},o?d.common.custom[a].smartName.smartType=o:delete d.common.custom[a].smartName.smartType):(d.common.smartName||={},o?d.common.smartName.smartType=o:delete d.common.smartName.smartType)),n!==void 0&&(l?(d.common.custom||={},d.common.custom[a]||={},d.common.custom[a].smartName||={},d.common.custom[a].smartName.byON=n):(d.common.smartName||={},d.common.smartName.byON=n)),r!==void 0){let f;if(l?(d.common.custom||={},d.common.custom[a]||={},d.common.custom[a].smartName||={},f=d.common.custom[a].smartName):(d.common.smartName||={},f=d.common.smartName),f[c]=r,f&&(!f[c]||f[c]===d.common.name&&!d.common.role)){delete f[c];let g=!0;for(const u in f)if(Object.prototype.hasOwnProperty.call(f,u)){g=!1;break}if(g)if(l&&d.common.custom?.[a])d.common.custom[a].smartName.byON===void 0?delete d.common.custom[a]:(delete d.common.custom[a].en,delete d.common.custom[a].de,delete d.common.custom[a].ru,delete d.common.custom[a].nl,delete d.common.custom[a].pl,delete d.common.custom[a].it,delete d.common.custom[a].fr,delete d.common.custom[a].pt,delete d.common.custom[a].es,delete d.common.custom[a].uk,delete d.common.custom[a]["zh-cn"]);else if(d.common.smartName&&d.common.smartName.byON!==void 0){const u=d.common.smartName;delete u.en,delete u.de,delete u.ru,delete u.nl,delete u.pl,delete u.it,delete u.fr,delete u.pt,delete u.es,delete u.uk,delete u["zh-cn"]}else d.common.smartName=null}}}static updateSmartNameEx(e,r){const n=z.getLanguage(),o=e;if(typeof o.common.smartName=="string"){const a=o.common.smartName;o.common.smartName={},o.common.smartName[n]=a}if(o.native?.byON){delete o.native.byON;let a=o.common.smartName;a&&typeof a!="object"&&(a={en:a,[n]:a}),o.common.smartName=a}if(r.smartType!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},r.smartType?o.common.custom[r.instanceId].smartName.smartType=r.smartType:delete o.common.custom[r.instanceId].smartName.smartType):(o.common.smartName||={},r.smartType?o.common.smartName.smartType=r.smartType:delete o.common.smartName.smartType)),r.byON!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.byON=r.byON):(o.common.smartName||={},o.common.smartName.byON=r.byON)),r.noAutoDetect!==void 0&&(r.noCommon?r.noAutoDetect?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.noAutoDetect=r.noAutoDetect):o.common.custom?.[r.instanceId]?.smartName&&delete o.common.custom[r.instanceId].smartName.noAutoDetect:!r.noAutoDetect&&o.common.smartName?delete o.common.smartName.noAutoDetect:(o.common.smartName||={},o.common.smartName.noAutoDetect=r.noAutoDetect)),r.smartName!==void 0){let a;if(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},a=o.common.custom[r.instanceId].smartName):(o.common.smartName||={},a=o.common.smartName),a[n]=r.smartName,a&&(!a[n]||a[n]===o.common.name&&!o.common.role)){delete a[n];let l=!0;for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){l=!1;break}if(l)if(r.noCommon&&o.common.custom?.[r.instanceId])o.common.custom[r.instanceId].smartName.byON===void 0?delete o.common.custom[r.instanceId]:(delete o.common.custom[r.instanceId].en,delete o.common.custom[r.instanceId].de,delete o.common.custom[r.instanceId].ru,delete o.common.custom[r.instanceId].nl,delete o.common.custom[r.instanceId].pl,delete o.common.custom[r.instanceId].it,delete o.common.custom[r.instanceId].fr,delete o.common.custom[r.instanceId].pt,delete o.common.custom[r.instanceId].es,delete o.common.custom[r.instanceId].uk,delete o.common.custom[r.instanceId]["zh-cn"]);else if(o.common.smartName&&o.common.smartName.byON!==void 0){const c=o.common.smartName;delete c.en,delete c.de,delete c.ru,delete c.nl,delete c.pl,delete c.it,delete c.fr,delete c.pt,delete c.es,delete c.uk,delete c["zh-cn"]}else o.common.smartName=null}}}static disableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName=!1):o.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),yL(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const c=(255-o).toString(16),d=(255-a).toString(16),f=(255-l).toString(16);return`#${c.padStart(2,"0")}${d.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else e.startsWith("#")&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,l=r*.2126+n*.7152+o*.0722,c=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,c=c>.008856?c**.33333333:7.787*c+.137931,[116*l-16,500*(a-l),200*(l-c)]}static colorDistance(e,r){const n=Je.color2rgb(e),o=Je.color2rgb(r);if(!n||!o)return 0;const a=Je.rgb2lab(n),l=Je.rgb2lab(o),c=a[0]-l[0],d=a[1]-l[1],f=a[2]-l[2],g=Math.sqrt(a[1]*a[1]+a[2]*a[2]),u=Math.sqrt(l[1]*l[1]+l[2]*l[2]),m=g-u;let y=d*d+f*f-m*m;y=y<0?0:Math.sqrt(y);const w=1+.045*g,x=1+.015*g,E=c,k=m/w,I=y/x,O=E*E+k*k+I*I;return O<0?0:O}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const l=decodeURIComponent(o[1]);if(l==="true")r[a]=!0;else if(l==="false")r[a]=!1;else{const c=parseFloat(l);c.toString()===l?r[a]=c:r[a]=l}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,n+=` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`,n}static formatTime(e){if(e){e=Math.round(e);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){const r=Je.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const a=o.replace(/\r/g,"").split(` +`);for(let l=0;l{if(!l.trim())return;const c=l.indexOf(":");if(c!==-1){const d=l.substring(0,c).trim();let f=l.substring(c+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[d]=!0:f==="false"?r[d]=!1:parseFloat(f).toString()===r[d]?r[d]=parseFloat(f):r[d]=f}else r[l.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=sm[e];let o;return n?o=[n]:e&1?o=[sm[1],`0x${(e&65534).toString(16)}`]:e&2?o=[sm[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){const r=e?.common?.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const o=r.split(";");n={};for(let a=0;an[a]=o):e?.common.type==="string"?r.forEach(o=>n[o]=o):e?.common.type==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>o(a.result?.toString()||""),a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(_4).find(n=>e.startsWith(n));return r?_4[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.toLowerCase().startsWith("stable")))}static isStringInteger(e){return typeof e=="number"?Math.round(e)===e:parseInt(e,10).toString()===e}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getStyle(e,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const l=r[o][a];n[a]={},Object.keys(l).forEach(c=>{typeof l[c]=="function"?n[a][c]=l(e):(l[c]||l[c]===0)&&(n[a][c]=l[c])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}}const lm={buttonIcon:{marginRight:8}};class hK extends v.Component{isIFrame;constructor(e){super(e);const r=e.newReact===void 0?!0:e.newReact;if(e.isIFrame!==void 0)this.isIFrame=e.isIFrame;else try{this.isIFrame=!r&&window.self!==window.top}catch{this.isIFrame=!r}}render(){const e=this.props.noTextOnButtons,r={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},n={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(n.minHeight=48),this.props.error&&(r.border="1px solid red"),v.createElement(ly,{style:n},v.createElement(ua,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:r},v.createElement(nv,{style:e?void 0:lm.buttonIcon}),!e&&z.t("ra_Save")),v.createElement(ua,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...r,marginLeft:10}},v.createElement(nv,{style:e?void 0:lm.buttonIcon}),e?"+":z.t("ra_Save and close"),e&&v.createElement(fa,null)),v.createElement("div",{style:{flexGrow:1}}),v.createElement(ua,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:r},v.createElement(fa,{style:e?void 0:lm.buttonIcon}),!e&&z.t("ra_Close")))}}const R4={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class wL extends _.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}handleOk(){this.state.suppress&&(window._localStorage||window.localStorage).setItem(this.props.dialogName,Date.now()+(this.props.suppressQuestionMinutes||2)*6e4),this.props.onClose&&this.props.onClose(!0)}handleCancel(){this.props.onClose&&this.props.onClose(!1)}render(){return typeof this.state.suppress=="number"?(setTimeout(()=>this.props.onClose&&this.props.onClose(!0),100),null):v.createElement(Ho,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},v.createElement(Uo,{id:"ar_confirmation_dialog_title"},this.props.title||z.t("ra_Are you sure?")),v.createElement(Wo,null,v.createElement(Dd,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?v.createElement("br",null):null,this.props.suppressQuestionMinutes?v.createElement(pt,{sx:{"& .FormControlLabel-label":R4.suppress,"&.FormControlLabel-root":R4.suppressRoot},control:v.createElement(Lr,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||z.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),v.createElement(qo,null,v.createElement(Vt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Di,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(fa,null)},this.props.cancel||z.t("ra_Cancel"))))}}class SL extends _.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return v.createElement(Ho,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},v.createElement(Uo,{id:"ar_alert_dialog_title"},this.props.title||z.t("ra_Error")),v.createElement(Wo,null,v.createElement(Dd,{id:"ar_alert_dialog_description"},this.props.text||z.t("ra_Unknown error!"))),v.createElement(qo,null,v.createElement(Vt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Di,null)},z.t("ra_Ok"))))}}var Xr={},as={},cm,M4;function iC(){if(M4)return cm;M4=1;var t=typeof np=="object"&&np&&np.Object===Object&&np;return cm=t,cm}var um,P4;function wo(){if(P4)return um;P4=1;var t=iC(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return um=r,um}var pm,I4;function Gc(){if(I4)return pm;I4=1;var t=wo(),e=t.Symbol;return pm=e,pm}var dm,A4;function EL(){if(A4)return dm;A4=1;var t=Gc(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(l){var c=r.call(l,o),d=l[o];try{l[o]=void 0;var f=!0}catch{}var g=n.call(l);return f&&(c?l[o]=d:delete l[o]),g}return dm=a,dm}var fm,D4;function CL(){if(D4)return fm;D4=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return fm=r,fm}var hm,N4;function ya(){if(N4)return hm;N4=1;var t=Gc(),e=EL(),r=CL(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function l(c){return c==null?c===void 0?o:n:a&&a in Object(c)?e(c):r(c)}return hm=l,hm}var mm,$4;function Vn(){if($4)return mm;$4=1;var t=Array.isArray;return mm=t,mm}var gm,L4;function Xo(){if(L4)return gm;L4=1;function t(e){return e!=null&&typeof e=="object"}return gm=t,gm}var vm,B4;function TL(){if(B4)return vm;B4=1;var t=ya(),e=Vn(),r=Xo(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return vm=o,vm}var ym,F4;function kL(){if(F4)return ym;F4=1;function t(e){return function(r,n,o){for(var a=-1,l=Object(r),c=o(r),d=c.length;d--;){var f=c[e?d:++a];if(n(l[f],f,l)===!1)break}return r}}return ym=t,ym}var bm,z4;function OL(){if(z4)return bm;z4=1;var t=kL(),e=t();return bm=e,bm}var xm,j4;function _L(){if(j4)return xm;j4=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return Tm=e,Tm}var km,G4;function PL(){if(G4)return km;G4=1;var t=ya(),e=dy(),r=Xo(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",g="[object Number]",u="[object Object]",m="[object RegExp]",y="[object Set]",w="[object String]",x="[object WeakMap]",E="[object ArrayBuffer]",k="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",R="[object Int8Array]",M="[object Int16Array]",T="[object Int32Array]",P="[object Uint8Array]",N="[object Uint8ClampedArray]",D="[object Uint16Array]",C="[object Uint32Array]",$={};$[I]=$[O]=$[R]=$[M]=$[T]=$[P]=$[N]=$[D]=$[C]=!0,$[n]=$[o]=$[E]=$[a]=$[k]=$[l]=$[c]=$[d]=$[f]=$[g]=$[u]=$[m]=$[y]=$[w]=$[x]=!1;function H(q){return r(q)&&e(q.length)&&!!$[t(q)]}return km=H,km}var Om,K4;function fy(){if(K4)return Om;K4=1;function t(e){return function(r){return e(r)}}return Om=t,Om}var pc={exports:{}};pc.exports;var Y4;function hy(){return Y4||(Y4=1,(function(t,e){var r=iC(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,l=a&&r.process,c=(function(){try{var d=o&&o.require&&o.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}})();t.exports=c})(pc,pc.exports)),pc.exports}var _m,J4;function lC(){if(J4)return _m;J4=1;var t=PL(),e=fy(),r=hy(),n=r&&r.isTypedArray,o=n?e(n):t;return _m=o,_m}var Rm,Q4;function cC(){if(Q4)return Rm;Q4=1;var t=_L(),e=aC(),r=Vn(),n=py(),o=sC(),a=lC(),l=Object.prototype,c=l.hasOwnProperty;function d(f,g){var u=r(f),m=!u&&e(f),y=!u&&!m&&n(f),w=!u&&!m&&!y&&a(f),x=u||m||y||w,E=x?t(f.length,String):[],k=E.length;for(var I in f)(g||c.call(f,I))&&!(x&&(I=="length"||y&&(I=="offset"||I=="parent")||w&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||o(I,k)))&&E.push(I);return E}return Rm=d,Rm}var Mm,Z4;function my(){if(Z4)return Mm;Z4=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return Mm=e,Mm}var Pm,e5;function uC(){if(e5)return Pm;e5=1;function t(e,r){return function(n){return e(r(n))}}return Pm=t,Pm}var Im,t5;function IL(){if(t5)return Im;t5=1;var t=uC(),e=t(Object.keys,Object);return Im=e,Im}var Am,r5;function AL(){if(r5)return Am;r5=1;var t=my(),e=IL(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var l=[];for(var c in Object(a))n.call(a,c)&&c!="constructor"&&l.push(c);return l}return Am=o,Am}var Dm,n5;function nl(){if(n5)return Dm;n5=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return Dm=t,Dm}var Nm,o5;function pC(){if(o5)return Nm;o5=1;var t=ya(),e=nl(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function l(c){if(!e(c))return!1;var d=t(c);return d==n||d==o||d==r||d==a}return Nm=l,Nm}var $m,i5;function $d(){if(i5)return $m;i5=1;var t=pC(),e=dy();function r(n){return n!=null&&e(n.length)&&!t(n)}return $m=r,$m}var Lm,a5;function Kc(){if(a5)return Lm;a5=1;var t=cC(),e=AL(),r=$d();function n(o){return r(o)?t(o):e(o)}return Lm=n,Lm}var Bm,s5;function dC(){if(s5)return Bm;s5=1;var t=OL(),e=Kc();function r(n,o){return n&&t(n,o,e)}return Bm=r,Bm}var Fm,l5;function fC(){if(l5)return Fm;l5=1;function t(e){return e}return Fm=t,Fm}var zm,c5;function DL(){if(c5)return zm;c5=1;var t=fC();function e(r){return typeof r=="function"?r:t}return zm=e,zm}var jm,u5;function gy(){if(u5)return jm;u5=1;var t=dC(),e=DL();function r(n,o){return n&&t(n,e(o))}return jm=r,jm}var Hm,p5;function vy(){if(p5)return Hm;p5=1;var t=uC(),e=t(Object.getPrototypeOf,Object);return Hm=e,Hm}var qm,d5;function NL(){if(d5)return qm;d5=1;var t=ya(),e=vy(),r=Xo(),n="[object Object]",o=Function.prototype,a=Object.prototype,l=o.toString,c=a.hasOwnProperty,d=l.call(Object);function f(g){if(!r(g)||t(g)!=n)return!1;var u=e(g);if(u===null)return!0;var m=c.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&l.call(m)==d}return qm=f,qm}var Wm,f5;function hC(){if(f5)return Wm;f5=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return Ym=e,Ym}var Jm,x5;function zL(){if(x5)return Jm;x5=1;var t=Ld();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return Jm=e,Jm}var Qm,w5;function Bd(){if(w5)return Qm;w5=1;var t=$L(),e=LL(),r=BL(),n=FL(),o=zL();function a(l){var c=-1,d=l==null?0:l.length;for(this.clear();++cy))return!1;var x=u.get(l),E=u.get(c);if(x&&E)return x==c&&E==l;var k=-1,I=!0,O=d&o?new t:void 0;for(u.set(l,c),u.set(c,l);++k0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,c.default)(u,function(y){Array.isArray(y)?g(y).map(function(w){return m.push(w)}):(0,a.default)(y)?(0,n.default)(y,function(w,x){w===!0&&m.push(x),m.push(x+"-"+w)}):(0,e.default)(y)&&m.push(y)}),m};return as.default=f,as}var ss={},Tg,K3;function UB(){if(K3)return Tg;K3=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],g=d.default&&(0,n.default)(d.default)||{};return f.map(function(u){var m=d[u];return m&&(0,e.default)(m,function(y,w){g[w]||(g[w]={}),g[w]=o({},g[w],m[w])}),u}),g};return ss.default=l,ss}var ls={},OS;function vF(){if(OS)return ls;OS=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.autoprefix=void 0;var t=gy(),e=n(t),r=Object.assign||function(l){for(var c=1;c1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,w,x,E;o(this,m);for(var k=arguments.length,I=Array(k),O=0;O1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,w,x,E;o(this,m);for(var k=arguments.length,I=Array(k),O=0;O1&&arguments[1]!==void 0?arguments[1]:!0;o[c]=d};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return yp.default=t,yp}var PS;function wF(){if(PS)return Xr;PS=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.ReactCSS=Xr.loop=Xr.handleActive=Xr.handleHover=Xr.hover=void 0;var t=WB(),e=m(t),r=gF(),n=m(r),o=vF(),a=m(o),l=yF(),c=m(l),d=bF(),f=m(d),g=xF(),u=m(g);function m(w){return w&&w.__esModule?w:{default:w}}Xr.hover=c.default,Xr.handleHover=c.default,Xr.handleActive=f.default,Xr.loop=u.default;var y=Xr.ReactCSS=function(x){for(var E=arguments.length,k=Array(E>1?E-1:0),I=1;Ic?m=1:m=Math.round(u*100/c)/100,r.a!==m)return{h:r.h,s:r.s,l:r.l,a:m,source:"rgb"}}else{var y=void 0;if(g<0?y=0:g>l?y=1:y=Math.round(g*100/l)/100,o!==y)return{h:r.h,s:r.s,l:r.l,a:y,source:"rgb"}}return null},t1={},EF=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var l=a.getContext("2d");return l?(l.fillStyle=e,l.fillRect(0,0,a.width,a.height),l.fillStyle=r,l.fillRect(0,0,n,n),l.translate(n,n),l.fillRect(0,0,n,n),a.toDataURL()):null},CF=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(t1[a])return t1[a];var l=EF(e,r,n,o);return t1[a]=l,l},IS=Object.assign||function(t){for(var e=1;e-1},BF=function(e){return Number(String(e).replace(/%/g,""))},FF=1,gt=(function(t){AF(e,t);function e(r){PF(this,e);var n=IF(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var a=BF(o.target.value);if(!isNaN(a)&&LF(o.keyCode)){var l=n.getArrowOffset(),c=o.keyCode===MC?a+l:a-l;n.setUpdatedValue(c,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var a=Math.round(n.props.value+o.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+FF++,n}return RF(e,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return MF({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DF}},{key:"setUpdatedValue",value:function(n,o){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=tt({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return v.createElement("div",{style:o.wrap},v.createElement("input",{id:this.inputId,style:o.input,ref:function(l){return n.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?v.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e})(_.PureComponent||_.Component),zF=function(e,r,n,o){var a=o.clientWidth,l=o.clientHeight,c=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,d=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=c-(o.getBoundingClientRect().left+window.pageXOffset),g=d-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(g<0)u=359;else if(g>l)u=0;else{var m=-(g*100/l)+100;u=360*m/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var y=void 0;if(f<0)y=0;else if(f>a)y=359;else{var w=f*100/a;y=360*w/100}if(n.h!==y)return{h:y,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},jF=(function(){function t(e,r){for(var n=0;n-1}function YF(t,e){var r=this.__data__,n=Wd(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Vo(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=nj}function al(t){return t!=null&&Iy(t.length)&&!Ry(t)}function oj(t){return _i(t)&&al(t)}function ij(){return!1}var BC=typeof un=="object"&&un&&!un.nodeType&&un,jS=BC&&typeof pn=="object"&&pn&&!pn.nodeType&&pn,aj=jS&&jS.exports===BC,HS=aj?Gn.Buffer:void 0,sj=HS?HS.isBuffer:void 0,rd=sj||ij,lj="[object Object]",cj=Function.prototype,uj=Object.prototype,FC=cj.toString,pj=uj.hasOwnProperty,dj=FC.call(Object);function fj(t){if(!_i(t)||xa(t)!=lj)return!1;var e=$C(t);if(e===null)return!0;var r=pj.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&FC.call(r)==dj}var hj="[object Arguments]",mj="[object Array]",gj="[object Boolean]",vj="[object Date]",yj="[object Error]",bj="[object Function]",xj="[object Map]",wj="[object Number]",Sj="[object Object]",Ej="[object RegExp]",Cj="[object Set]",Tj="[object String]",kj="[object WeakMap]",Oj="[object ArrayBuffer]",_j="[object DataView]",Rj="[object Float32Array]",Mj="[object Float64Array]",Pj="[object Int8Array]",Ij="[object Int16Array]",Aj="[object Int32Array]",Dj="[object Uint8Array]",Nj="[object Uint8ClampedArray]",$j="[object Uint16Array]",Lj="[object Uint32Array]",Lt={};Lt[Rj]=Lt[Mj]=Lt[Pj]=Lt[Ij]=Lt[Aj]=Lt[Dj]=Lt[Nj]=Lt[$j]=Lt[Lj]=!0;Lt[hj]=Lt[mj]=Lt[Oj]=Lt[gj]=Lt[_j]=Lt[vj]=Lt[yj]=Lt[bj]=Lt[xj]=Lt[wj]=Lt[Sj]=Lt[Ej]=Lt[Cj]=Lt[Tj]=Lt[kj]=!1;function Bj(t){return _i(t)&&Iy(t.length)&&!!Lt[xa(t)]}function Fj(t){return function(e){return t(e)}}var zC=typeof un=="object"&&un&&!un.nodeType&&un,Sc=zC&&typeof pn=="object"&&pn&&!pn.nodeType&&pn,zj=Sc&&Sc.exports===zC,n1=zj&&PC.process,qS=(function(){try{var t=Sc&&Sc.require&&Sc.require("util").types;return t||n1&&n1.binding&&n1.binding("util")}catch{}})(),WS=qS&&qS.isTypedArray,Ay=WS?Fj(WS):Bj;function iv(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var jj=Object.prototype,Hj=jj.hasOwnProperty;function qj(t,e,r){var n=t[e];(!(Hj.call(t,e)&&Yc(n,r))||r===void 0&&!(e in t))&&My(t,e,r)}function Wj(t,e,r,n){var o=!r;r||(r={});for(var a=-1,l=e.length;++a-1&&t%1==0&&t0){if(++e>=aH)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var uH=cH(iH);function pH(t,e){return uH(nH(t,e,Xd),t+"")}function dH(t,e,r){if(!Pn(r))return!1;var n=typeof e;return(n=="number"?al(r)&&Dy(e,r.length):n=="string"&&e in r)?Yc(r[e],t):!1}function fH(t){return pH(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,l&&dH(r[0],r[1],l)&&(a=o<3?void 0:a,o=1),e=Object(e);++n=e||P<0||u&&N>=a}function k(){var T=o1();if(E(T))return I(T);c=setTimeout(k,x(T))}function I(T){return c=void 0,m&&n?y(T):(n=o=void 0,l)}function O(){c!==void 0&&clearTimeout(c),f=0,n=d=o=c=void 0}function R(){return c===void 0?l:I(o1())}function M(){var T=o1(),P=E(T);if(n=arguments,o=this,d=T,P){if(c===void 0)return w(d);if(u)return clearTimeout(c),c=setTimeout(k,e),y(d)}return c===void 0&&(c=setTimeout(k,e)),l}return M.cancel=O,M.flush=R,M}var kH="Expected a function";function OH(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(kH);return Pn(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),WC(t,e,{leading:n,maxWait:e,trailing:o})}var _H=function(e,r,n){var o=n.getBoundingClientRect(),a=o.width,l=o.height,c=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,d=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=c-(n.getBoundingClientRect().left+window.pageXOffset),g=d-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),g<0?g=0:g>l&&(g=l);var u=f/a,m=1-g/l;return{h:r.h,s:u,v:m,a:r.a,source:"hsv"}},RH=(function(){function t(e,r){for(var n=0;n=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return $e(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(QH,arguments)},brighten:function(){return this._applyModification(ZH,arguments)},darken:function(){return this._applyModification(eq,arguments)},desaturate:function(){return this._applyModification(KH,arguments)},saturate:function(){return this._applyModification(YH,arguments)},greyscale:function(){return this._applyModification(JH,arguments)},spin:function(){return this._applyModification(tq,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(oq,arguments)},complement:function(){return this._applyCombination(rq,arguments)},monochromatic:function(){return this._applyCombination(iq,arguments)},splitcomplement:function(){return this._applyCombination(nq,arguments)},triad:function(){return this._applyCombination(QS,[3])},tetrad:function(){return this._applyCombination(QS,[4])}};$e.fromRatio=function(t,e){if(nd(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=fc(t[n]));t=r}return $e(t,e)};function WH(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,l=!1,c=!1;return typeof t=="string"&&(t=uq(t)),nd(t)=="object"&&(Do(t.r)&&Do(t.g)&&Do(t.b)?(e=UH(t.r,t.g,t.b),l=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Do(t.h)&&Do(t.s)&&Do(t.v)?(n=fc(t.s),o=fc(t.v),e=VH(t.h,n,o),l=!0,c="hsv"):Do(t.h)&&Do(t.s)&&Do(t.l)&&(n=fc(t.s),a=fc(t.l),e=XH(t.h,n,a),l=!0,c="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=XC(r),{ok:l,format:t.format||c,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function UH(t,e,r){return{r:qt(t,255)*255,g:qt(e,255)*255,b:qt(r,255)*255}}function GS(t,e,r){t=qt(t,255),e=qt(e,255),r=qt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,l,c=(n+o)/2;if(n==o)a=l=0;else{var d=n-o;switch(l=c>.5?d/(2-n-o):d/(n+o),n){case t:a=(e-r)/d+(e1&&(u-=1),u<1/6?f+(g-f)*6*u:u<1/2?g:u<2/3?f+(g-f)*(2/3-u)*6:f}if(e===0)n=o=a=r;else{var c=r<.5?r*(1+e):r+e-r*e,d=2*r-c;n=l(d,c,t+1/3),o=l(d,c,t),a=l(d,c,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function KS(t,e,r){t=qt(t,255),e=qt(e,255),r=qt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,l,c=n,d=n-o;if(l=n===0?0:d/n,n==o)a=0;else{switch(n){case t:a=(e-r)/d+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push($e(n));return a}function iq(t,e){e=e||6;for(var r=$e(t).toHsv(),n=r.h,o=r.s,a=r.v,l=[],c=1/e;e--;)l.push($e({h:n,s:o,v:a})),a=(a+c)%1;return l}$e.mix=function(t,e,r){r=r===0?0:r||50;var n=$e(t).toRgb(),o=$e(e).toRgb(),a=r/100,l={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return $e(l)};$e.readability=function(t,e){var r=$e(t),n=$e(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};$e.isReadable=function(t,e,r){var n=$e.readability(t,e),o,a;switch(a=!1,o=pq(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};$e.mostReadable=function(t,e,r){var n=null,o=0,a,l,c,d;r=r||{},l=r.includeFallbackColors,c=r.level,d=r.size;for(var f=0;fo&&(o=a,n=$e(e[f]));return $e.isReadable(t,n,{level:c,size:d})||!l?n:(r.includeFallbackColors=!1,$e.mostReadable(t,["#fff","#000"],r))};var av=$e.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},aq=$e.hexNames=sq(av);function sq(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function XC(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function qt(t,e){lq(t)&&(t="100%");var r=cq(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Kd(t){return Math.min(1,Math.max(0,t))}function ln(t){return parseInt(t,16)}function lq(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function cq(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Wn(t){return t.length==1?"0"+t:""+t}function fc(t){return t<=1&&(t=t*100+"%"),t}function VC(t){return Math.round(parseFloat(t)*255).toString(16)}function ZS(t){return ln(t)/255}var jn=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Do(t){return!!jn.CSS_UNIT.exec(t)}function uq(t){t=t.replace(HH,"").replace(qH,"").toLowerCase();var e=!1;if(av[t])t=av[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=jn.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=jn.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=jn.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=jn.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=jn.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=jn.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=jn.hex8.exec(t))?{r:ln(r[1]),g:ln(r[2]),b:ln(r[3]),a:ZS(r[4]),format:e?"name":"hex8"}:(r=jn.hex6.exec(t))?{r:ln(r[1]),g:ln(r[2]),b:ln(r[3]),format:e?"name":"hex"}:(r=jn.hex4.exec(t))?{r:ln(r[1]+""+r[1]),g:ln(r[2]+""+r[2]),b:ln(r[3]+""+r[3]),a:ZS(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=jn.hex3.exec(t))?{r:ln(r[1]+""+r[1]),g:ln(r[2]+""+r[2]),b:ln(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function pq(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var e6=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return jH(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var l=/^\d+%$/;l.test(e[a])&&(o+=1)}}),n===o?e:!1},hc=function(e,r){var n=e.hex?$e(e.hex):$e(e),o=n.toHsl(),a=n.toHsv(),l=n.toRgb(),c=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var d=c==="000000"&&l.a===0;return{hsl:o,hex:d?"transparent":"#"+c,rgb:l,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Ni=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&$e(e).isValid()},$y=function(e){if(!e)return"#fff";var r=hc(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},i1=function(e,r){var n=e.replace("°","");return $e(r+" ("+n+")")._ok},Yl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return(function(n){bq(o,n);function o(){var a,l,c,d;yq(this,o);for(var f=arguments.length,g=Array(f),u=0;uc))return!1;var f=a.get(t),g=a.get(e);if(f&&g)return f==e&&g==t;var u=-1,m=!0,y=r&Pq?new od:void 0;for(a.set(t,e),a.set(e,t);++u=0||Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f]);return d}var a=24;return xp.default=function(l){var c=l.fill,d=c===void 0?"currentColor":c,f=l.width,g=f===void 0?a:f,u=l.height,m=u===void 0?a:u,y=l.style,w=y===void 0?{}:y,x=o(l,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:d,width:g,height:m},w)},x),r.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},xp}var qW=HW();const WW=Ri(qW);var UW=(function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(g6(o.s)?n.props.hsl.s:o.s),l:Number(g6(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return UW(e,[{key:"render",value:function(){var n=this,o=tt({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),a=void 0;return this.state.view==="hex"?a=v.createElement("div",{style:o.fields,className:"flexbox-fix"},v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=v.createElement("div",{style:o.fields,className:"flexbox-fix"},v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),v.createElement("div",{style:o.alpha},v.createElement(gt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=v.createElement("div",{style:o.fields,className:"flexbox-fix"},v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),v.createElement("div",{style:o.field},v.createElement(gt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),v.createElement("div",{style:o.alpha},v.createElement(gt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),v.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,v.createElement("div",{style:o.toggle},v.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(c){return n.icon=c}},v.createElement(WW,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e})(v.Component);nT.defaultProps={view:"hex"};var y6=function(){var e=tt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return v.createElement("div",{style:e.picker})},KW=function(){var e=tt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return v.createElement("div",{style:e.picker})},Hy=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,l=e.hsl,c=e.hsv,d=e.hex,f=e.renderers,g=e.styles,u=g===void 0?{}:g,m=e.className,y=m===void 0?"":m,w=e.defaultView,x=tt(tn({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},u),{disableAlpha:o});return v.createElement("div",{style:x.picker,className:"chrome-picker "+y},v.createElement("div",{style:x.saturation},v.createElement(Gd,{style:x.Saturation,hsl:l,hsv:c,pointer:KW,onChange:n})),v.createElement("div",{style:x.body},v.createElement("div",{style:x.controls,className:"flexbox-fix"},v.createElement("div",{style:x.color},v.createElement("div",{style:x.swatch},v.createElement("div",{style:x.active}),v.createElement(ol,{renderers:f}))),v.createElement("div",{style:x.toggles},v.createElement("div",{style:x.hue},v.createElement(il,{style:x.Hue,hsl:l,pointer:y6,onChange:n})),v.createElement("div",{style:x.alpha},v.createElement(_y,{style:x.Alpha,rgb:a,hsl:l,pointer:y6,renderers:f,onChange:n})))),v.createElement(nT,{rgb:a,hsl:l,hex:d,view:w,onChange:n,disableAlpha:o})))};Hy.propTypes={width:oe.oneOfType([oe.string,oe.number]),disableAlpha:oe.bool,styles:oe.object,defaultView:oe.oneOf(["hex","rgb","hsl"])};Hy.defaultProps={width:225,disableAlpha:!1,styles:{}};rn(Hy);var YW=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,l=e.active,c=tt({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:$y(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return v.createElement(Ea,{style:c.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},v.createElement("div",{style:c.dot}))},JW=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=tt({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),l=function(d,f){d.r||d.g||d.b?o({r:d.r||n.r,g:d.g||n.g,b:d.b||n.b,source:"rgb"},f):o({hex:d.hex,source:"hex"},f)};return v.createElement("div",{style:a.fields,className:"flexbox-fix"},v.createElement("div",{style:a.active}),v.createElement(gt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:l}),v.createElement(gt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:l}),v.createElement(gt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:l}),v.createElement(gt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:l}))},qy=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,l=e.rgb,c=e.styles,d=c===void 0?{}:c,f=e.className,g=f===void 0?"":f,u=tt(tn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},d)),m=function(w,x){w.hex?Ni(w.hex)&&r({hex:w.hex,source:"hex"},x):r(w,x)};return v.createElement(Jc,{style:u.Compact,styles:d},v.createElement("div",{style:u.compact,className:"compact-picker "+g},v.createElement("div",null,Ca(o,function(y){return v.createElement(YW,{key:y,color:y,active:y.toLowerCase()===a,onClick:m,onSwatchHover:n})}),v.createElement("div",{style:u.clear})),v.createElement(JW,{hex:a,rgb:l,onChange:m})))};qy.propTypes={colors:oe.arrayOf(oe.string),styles:oe.object};qy.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};rn(qy);var QW=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,l={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},c=tt({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:l}},{hover:r});return v.createElement("div",{style:c.swatch},v.createElement(Ea,{color:n,onClick:o,onHover:a,focusStyle:l}))};const ZW=Oy.handleHover(QW);var Wy=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,l=e.triangle,c=e.styles,d=c===void 0?{}:c,f=e.className,g=f===void 0?"":f,u=tt(tn({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},d),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right","bottom-left-triangle":l==="bottom-left","bottom-right-triangle":l==="bottom-right"}),m=function(w,x){return o({hex:w,source:"hex"},x)};return v.createElement("div",{style:u.card,className:"github-picker "+g},v.createElement("div",{style:u.triangleShadow}),v.createElement("div",{style:u.triangle}),Ca(n,function(y){return v.createElement(ZW,{color:y,key:y,onClick:m,onSwatchHover:a})}))};Wy.propTypes={width:oe.oneOfType([oe.string,oe.number]),colors:oe.arrayOf(oe.string),triangle:oe.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:oe.object};Wy.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};rn(Wy);var eU=function(e){var r=e.direction,n=tt({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return v.createElement("div",{style:n.picker})},tU=Object.assign||function(t){for(var e=1;e.5});return v.createElement("div",{style:n.picker})},iU=function(){var e=tt({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return v.createElement("div",{style:e.pointer},v.createElement("div",{style:e.left},v.createElement("div",{style:e.leftInside})),v.createElement("div",{style:e.right},v.createElement("div",{style:e.rightInside})))},b6=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,l=tt({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return v.createElement("div",{style:l.button,onClick:r},n||o)},aU=function(e){var r=e.rgb,n=e.currentColor,o=tt({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return v.createElement("div",null,v.createElement("div",{style:o.label},"new"),v.createElement("div",{style:o.swatches},v.createElement("div",{style:o.new}),v.createElement("div",{style:o.current})),v.createElement("div",{style:o.label},"current"))},sU=(function(){function t(e,r){for(var n=0;n100&&(g.a=100),g.a/=100,r({h:o.h,s:o.s,l:o.l,a:g.a,source:"rgb"},u))};return v.createElement("div",{style:c.fields,className:"flexbox-fix"},v.createElement("div",{style:c.double},v.createElement(gt,{style:{input:c.input,label:c.label},label:"hex",value:a.replace("#",""),onChange:d})),v.createElement("div",{style:c.single},v.createElement(gt,{style:{input:c.input,label:c.label},label:"r",value:n.r,onChange:d,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:c.single},v.createElement(gt,{style:{input:c.input,label:c.label},label:"g",value:n.g,onChange:d,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:c.single},v.createElement(gt,{style:{input:c.input,label:c.label},label:"b",value:n.b,onChange:d,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:c.alpha},v.createElement(gt,{style:{input:c.input,label:c.label},label:"a",value:Math.round(n.a*100),onChange:d,dragLabel:"true",dragMax:"100"})))},dU=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f]);return d}var a=24;return wp.default=function(l){var c=l.fill,d=c===void 0?"currentColor":c,f=l.width,g=f===void 0?a:f,u=l.height,m=u===void 0?a:u,y=l.style,w=y===void 0?{}:y,x=o(l,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:d,width:g,height:m},w)},x),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},wp}var vU=gU();const yU=Ri(vU);var bU=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,l=e.first,c=e.last,d=e.active,f=tt({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:$y(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:l,last:c,active:d,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return v.createElement(Ea,{color:r,style:f.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},v.createElement("div",{style:f.check},v.createElement(yU,null)))},xU=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,l=tt({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return v.createElement("div",{style:l.group},Ca(o,function(c,d){return v.createElement(bU,{key:c,color:c,active:c.toLowerCase()===a,first:d===0,last:d===o.length-1,onClick:r,onSwatchHover:n})}))},Ky=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,l=e.colors,c=e.hex,d=e.styles,f=d===void 0?{}:d,g=e.className,u=g===void 0?"":g,m=tt(tn({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),y=function(x,E){return o({hex:x,source:"hex"},E)};return v.createElement("div",{style:m.picker,className:"swatches-picker "+u},v.createElement(Jc,null,v.createElement("div",{style:m.overflow},v.createElement("div",{style:m.body},Ca(l,function(w){return v.createElement(xU,{key:w.toString(),group:w,active:c,onClick:y,onSwatchHover:a})}),v.createElement("div",{style:m.clear})))))};Ky.propTypes={width:oe.oneOfType([oe.string,oe.number]),height:oe.oneOfType([oe.string,oe.number]),colors:oe.arrayOf(oe.arrayOf(oe.string)),styles:oe.object};Ky.defaultProps={width:320,height:240,colors:[[gs[900],gs[700],gs[500],gs[300],gs[100]],[vs[900],vs[700],vs[500],vs[300],vs[100]],[ys[900],ys[700],ys[500],ys[300],ys[100]],[bs[900],bs[700],bs[500],bs[300],bs[100]],[xs[900],xs[700],xs[500],xs[300],xs[100]],[ws[900],ws[700],ws[500],ws[300],ws[100]],[Ss[900],Ss[700],Ss[500],Ss[300],Ss[100]],[Es[900],Es[700],Es[500],Es[300],Es[100]],[Cs[900],Cs[700],Cs[500],Cs[300],Cs[100]],["#194D33",mc[700],mc[500],mc[300],mc[100]],[Ts[900],Ts[700],Ts[500],Ts[300],Ts[100]],[ks[900],ks[700],ks[500],ks[300],ks[100]],[Os[900],Os[700],Os[500],Os[300],Os[100]],[_s[900],_s[700],_s[500],_s[300],_s[100]],[Rs[900],Rs[700],Rs[500],Rs[300],Rs[100]],[Ms[900],Ms[700],Ms[500],Ms[300],Ms[100]],[Ps[900],Ps[700],Ps[500],Ps[300],Ps[100]],[Is[900],Is[700],Is[500],Is[300],Is[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};rn(Ky);var Yy=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,l=e.width,c=e.triangle,d=e.styles,f=d===void 0?{}:d,g=e.className,u=g===void 0?"":g,m=tt(tn({default:{card:{width:l,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},f),{"hide-triangle":c==="hide","top-left-triangle":c==="top-left","top-right-triangle":c==="top-right"}),y=function(x,E){Ni(x)&&r({hex:x,source:"hex"},E)};return v.createElement("div",{style:m.card,className:"twitter-picker "+u},v.createElement("div",{style:m.triangleShadow}),v.createElement("div",{style:m.triangle}),v.createElement("div",{style:m.body},Ca(a,function(w,x){return v.createElement(Ea,{key:x,color:w,hex:w,style:m.swatch,onClick:y,onHover:n,focusStyle:{boxShadow:"0 0 4px "+w}})}),v.createElement("div",{style:m.hash},"#"),v.createElement(gt,{label:null,style:{input:m.input},value:o.replace("#",""),onChange:y}),v.createElement("div",{style:m.clear})))};Yy.propTypes={width:oe.oneOfType([oe.string,oe.number]),triangle:oe.oneOf(["hide","top-left","top-right"]),colors:oe.arrayOf(oe.string),styles:oe.object};Yy.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};rn(Yy);var Jy=function(e){var r=tt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(e.hsl.s*100)+"%, "+Math.round(e.hsl.l*100)+"%)"}}});return v.createElement("div",{style:r.picker})};Jy.propTypes={hsl:oe.shape({h:oe.number,s:oe.number,l:oe.number,a:oe.number})};Jy.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Qy=function(e){var r=tt({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return v.createElement("div",{style:r.picker})};Qy.propTypes={hsl:oe.shape({h:oe.number,s:oe.number,l:oe.number,a:oe.number})};Qy.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var wU=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,l=e.hsv,c=function(y,w){if(y.hex)Ni(y.hex)&&r({hex:y.hex,source:"hex"},w);else if(y.rgb){var x=y.rgb.split(",");i1(y.rgb,"rgb")&&r({r:x[0],g:x[1],b:x[2],a:1,source:"rgb"},w)}else if(y.hsv){var E=y.hsv.split(",");i1(y.hsv,"hsv")&&(E[2]=E[2].replace("%",""),E[1]=E[1].replace("%",""),E[0]=E[0].replace("°",""),E[1]==1?E[1]=.01:E[2]==1&&(E[2]=.01),r({h:Number(E[0]),s:Number(E[1]),v:Number(E[2]),source:"hsv"},w))}else if(y.hsl){var k=y.hsl.split(",");i1(y.hsl,"hsl")&&(k[2]=k[2].replace("%",""),k[1]=k[1].replace("%",""),k[0]=k[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(k[0]),s:Number(k[1]),v:Number(k[2]),source:"hsl"},w))}},d=tt({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),f=n.r+", "+n.g+", "+n.b,g=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",u=Math.round(l.h)+"°, "+Math.round(l.s*100)+"%, "+Math.round(l.v*100)+"%";return v.createElement("div",{style:d.wrap,className:"flexbox-fix"},v.createElement("div",{style:d.fields},v.createElement("div",{style:d.double},v.createElement(gt,{style:{input:d.input,label:d.label},label:"hex",value:a,onChange:c})),v.createElement("div",{style:d.column},v.createElement("div",{style:d.single},v.createElement(gt,{style:{input:d.input2,label:d.label2},label:"rgb",value:f,onChange:c})),v.createElement("div",{style:d.single},v.createElement(gt,{style:{input:d.input2,label:d.label2},label:"hsv",value:u,onChange:c})),v.createElement("div",{style:d.single},v.createElement(gt,{style:{input:d.input2,label:d.label2},label:"hsl",value:g,onChange:c})))))},Zy=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,l=e.hsv,c=e.hex,d=e.header,f=e.styles,g=f===void 0?{}:f,u=e.className,m=u===void 0?"":u,y=tt(tn({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+o.r+", "+o.g+", "+o.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},g));return v.createElement("div",{style:y.picker,className:"google-picker "+m},v.createElement("div",{style:y.head},d),v.createElement("div",{style:y.swatch}),v.createElement("div",{style:y.saturation},v.createElement(Gd,{hsl:a,hsv:l,pointer:Jy,onChange:n})),v.createElement("div",{style:y.body},v.createElement("div",{style:y.controls,className:"flexbox-fix"},v.createElement("div",{style:y.hue},v.createElement(il,{style:y.Hue,hsl:a,radius:"4px",pointer:Qy,onChange:n}))),v.createElement(wU,{rgb:o,hsl:a,hex:c,hsv:l,onChange:n})))};Zy.propTypes={width:oe.oneOfType([oe.string,oe.number]),styles:oe.object,header:oe.string};Zy.defaultProps={width:652,styles:{},header:"Color picker"};rn(Zy);var s1={exports:{}},w6;function So(){return w6||(w6=1,(function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949(l,c,d){Object.defineProperty(c,"__esModule",{value:!0}),c.CronParser=void 0;var f=d(515),g=(function(){function u(m,y,w){y===void 0&&(y=!0),w===void 0&&(w=!1),this.expression=m,this.dayOfWeekStartIndexZero=y,this.monthStartIndexZero=w}return u.prototype.parse=function(){var m,y,w=(m=this.expression)!==null&&m!==void 0?m:"";if(w==="@reboot")return y=["@reboot","","","","","",""],y;if(w.startsWith("@")){var x=this.parseSpecial(this.expression);y=this.extractParts(x)}else y=this.extractParts(this.expression);return this.normalize(y),this.validate(y),y},u.prototype.parseSpecial=function(m){var y={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},w=y[m];if(!w)throw new Error("Unknown special expression.");return w},u.prototype.extractParts=function(m){if(!this.expression)throw new Error("cron expression is empty");for(var y=m.trim().split(/[ ]+/),w=0;w7)throw new Error("Expression has ".concat(y.length," parts; too many!"));return y},u.prototype.normalize=function(m){var y=this;if(m[3]=m[3].replace("?","*"),m[5]=m[5].replace("?","*"),m[2]=m[2].replace("?","*"),m[0].indexOf("0/")==0&&(m[0]=m[0].replace("0/","*/")),m[1].indexOf("0/")==0&&(m[1]=m[1].replace("0/","*/")),m[2].indexOf("0/")==0&&(m[2]=m[2].replace("0/","*/")),m[3].indexOf("1/")==0&&(m[3]=m[3].replace("1/","*/")),m[4].indexOf("1/")==0&&(m[4]=m[4].replace("1/","*/")),m[6].indexOf("1/")==0&&(m[6]=m[6].replace("1/","*/")),m[5]=m[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var T=M.replace(/\D/,""),P=T;return y.dayOfWeekStartIndexZero?T=="7"&&(P="0"):P=(parseInt(T)-1).toString(),M.replace(T,P)}),m[5]=="L"&&(m[5]="6"),m[3]=="?"&&(m[3]="*"),m[3].indexOf("W")>-1&&(m[3].indexOf(",")>-1||m[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var w={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var x in w)m[5]=m[5].replace(new RegExp(x,"gi"),w[x].toString());m[4]=m[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var T=M.replace(/\D/,""),P=T;return y.monthStartIndexZero&&(P=(parseInt(T)+1).toString()),M.replace(T,P)});var E={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var k in E)m[4]=m[4].replace(new RegExp(k,"gi"),E[k].toString());m[0]=="0"&&(m[0]=""),!/\*|\-|\,|\//.test(m[2])&&(/\*|\//.test(m[1])||/\*|\//.test(m[0]))&&(m[2]+="-".concat(m[2]));for(var I=0;I-1&&!/^\*|\-|\,/.test(m[I])){var O=null;switch(I){case 4:O="12";break;case 5:O="6";break;case 6:O="9999";break;default:O=null;break}if(O!==null){var R=m[I].split("/");m[I]="".concat(R[0],"-").concat(O,"/").concat(R[1])}}},u.prototype.validate=function(m){var y="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(m[0],y),this.validateOnlyExpectedCharactersFound(m[1],y),this.validateOnlyExpectedCharactersFound(m[2],y),this.validateOnlyExpectedCharactersFound(m[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(m[4],y),this.validateOnlyExpectedCharactersFound(m[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(m[6],y),this.validateAnyRanges(m)},u.prototype.validateAnyRanges=function(m){f.default.secondRange(m[0]),f.default.minuteRange(m[1]),f.default.hourRange(m[2]),f.default.dayOfMonthRange(m[3]),f.default.monthRange(m[4],this.monthStartIndexZero),f.default.dayOfWeekRange(m[5],this.dayOfWeekStartIndexZero)},u.prototype.validateOnlyExpectedCharactersFound=function(m,y){var w=m.match(new RegExp("[^".concat(y,"]+"),"gi"));if(w&&w.length)throw new Error("Expression contains invalid values: '".concat(w.toString(),"'"))},u})();c.CronParser=g},333(l,c,d){Object.defineProperty(c,"__esModule",{value:!0}),c.ExpressionDescriptor=void 0;var f=d(823),g=d(949),u=(function(){function m(y,w){if(this.expression=y,this.options=w,this.expressionParts=new Array(5),!this.options.locale&&m.defaultLocale&&(this.options.locale=m.defaultLocale),!m.locales[this.options.locale]){var x=Object.keys(m.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(x,"'.")),this.options.locale=x}this.i18n=m.locales[this.options.locale],w.use24HourTimeFormat===void 0&&(w.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return m.toString=function(y,w){var x=w===void 0?{}:w,E=x.throwExceptionOnParseError,k=E===void 0?!0:E,I=x.verbose,O=I===void 0?!1:I,R=x.dayOfWeekStartIndexZero,M=R===void 0?!0:R,T=x.monthStartIndexZero,P=T===void 0?!1:T,N=x.use24HourTimeFormat,D=x.trimHoursLeadingZero,C=D===void 0?!1:D,$=x.locale,H=$===void 0?null:$,q=x.logicalAndDayFields,U=q===void 0?!1:q,W={throwExceptionOnParseError:k,verbose:O,dayOfWeekStartIndexZero:M,monthStartIndexZero:P,use24HourTimeFormat:N,trimHoursLeadingZero:C,locale:H,logicalAndDayFields:U};W.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var K=new m(y,W);return K.getFullDescription()},m.initialize=function(y,w){w===void 0&&(w="en"),m.specialCharacters=["/","-",",","*"],m.defaultLocale=w,y.load(m.locales)},m.prototype.getFullDescription=function(){var y,w,x="";try{var E=new g.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=E.parse(),this.expressionParts[0]==="@reboot")return((w=(y=this.i18n).atReboot)===null||w===void 0?void 0:w.call(y))||"Run once, at startup";var k=this.getTimeOfDayDescription(),I=this.getDayOfMonthDescription(),O=this.getMonthDescription(),R=this.getDayOfWeekDescription(),M=this.getYearDescription();x+=k+I+R+O+M,x=this.transformVerbosity(x,!!this.options.verbose),x=x.charAt(0).toLocaleUpperCase()+x.substr(1)}catch(T){if(!this.options.throwExceptionOnParseError)x=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(T)}return x},m.prototype.getTimeOfDayDescription=function(){var y=this.expressionParts[0],w=this.expressionParts[1],x=this.expressionParts[2],E="";if(!f.StringUtilities.containsAny(w,m.specialCharacters)&&!f.StringUtilities.containsAny(x,m.specialCharacters)&&!f.StringUtilities.containsAny(y,m.specialCharacters))E+=this.i18n.atSpace()+this.formatTime(x,w,y);else if(!y&&w.indexOf("-")>-1&&!(w.indexOf(",")>-1)&&!(w.indexOf("/")>-1)&&!f.StringUtilities.containsAny(x,m.specialCharacters)){var k=w.split("-");E+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(x,k[0],""),this.formatTime(x,k[1],""))}else if(!y&&x.indexOf(",")>-1&&x.indexOf("-")==-1&&x.indexOf("/")==-1&&!f.StringUtilities.containsAny(w,m.specialCharacters)){var I=x.split(",");E+=this.i18n.at();for(var O=0;O-1?I=E.substring(0,E.indexOf("#")):E.indexOf("L")>-1&&(I=I.replace("L",""));var O=parseInt(I),R=y.i18n.daysOfTheWeekInCase?y.i18n.daysOfTheWeekInCase(k)[O]:w[O];if(E.indexOf("#")>-1){var M=null,T=E.substring(E.indexOf("#")+1),P=E.substring(0,E.indexOf("#"));switch(T){case"1":M=y.i18n.first(P);break;case"2":M=y.i18n.second(P);break;case"3":M=y.i18n.third(P);break;case"4":M=y.i18n.fourth(P);break;case"5":M=y.i18n.fifth(P);break}R=M+" "+R}return R},function(E){return parseInt(E)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0DaysOfTheWeek(E),E)},function(E){var k=E.substring(0,E.indexOf("-")),I=y.expressionParts[3]!="*";return I?y.i18n.commaAndX0ThroughX1(k):y.i18n.commaX0ThroughX1(k)},function(E){var k=null;if(E.indexOf("#")>-1){var I=E.substring(E.indexOf("#")+1),O=E.substring(0,E.indexOf("#"));k=y.i18n.commaOnThe(I,O).trim()+y.i18n.spaceX0OfTheMonth()}else if(E.indexOf("L")>-1)k=y.i18n.commaOnTheLastX0OfTheMonth(E.replace("L",""));else{var R=y.expressionParts[3]!="*";R?y.options.logicalAndDayFields?k=y.i18n.commaOnlyOnX0(E):k=y.i18n.commaAndOnX0():k=y.i18n.commaOnlyOnX0(E)}return k}),x},m.prototype.getMonthDescription=function(){var y=this,w=this.i18n.monthsOfTheYear(),x=this.getSegmentDescription(this.expressionParts[4],"",function(E,k){return k&&y.i18n.monthsOfTheYearInCase?y.i18n.monthsOfTheYearInCase(k)[parseInt(E)-1]:w[parseInt(E)-1]},function(E){return parseInt(E)==1?"":f.StringUtilities.format(y.i18n.commaEveryX0Months(E),E)},function(E){return y.i18n.commaMonthX0ThroughMonthX1()||y.i18n.commaX0ThroughX1()},function(E){return y.i18n.commaOnlyInMonthX0?y.i18n.commaOnlyInMonthX0():y.i18n.commaOnlyInX0()});return x},m.prototype.getDayOfMonthDescription=function(){var y=this,w=null,x=this.expressionParts[3];switch(x){case"L":w=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":w=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var E=x.match(/(\d{1,2}W)|(W\d{1,2})/);if(E){var k=parseInt(E[0].replace("W","")),I=k==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),k.toString());w=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),I);break}else{var O=x.match(/L-(\d{1,2})/);if(O){var R=O[1];w=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(R),R);break}else{if(x=="*"&&this.expressionParts[5]!="*")return"";w=this.getSegmentDescription(x,this.i18n.commaEveryDay(),function(M){return M=="L"?y.i18n.lastDay():y.i18n.dayX0?f.StringUtilities.format(y.i18n.dayX0(),M):M},function(M){return M=="1"?y.i18n.commaEveryDay():y.i18n.commaEveryX0Days(M)},function(M){return y.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return y.i18n.commaOnDayX0OfTheMonth(M)})}break}}return w},m.prototype.getYearDescription=function(){var y=this,w=this.getSegmentDescription(this.expressionParts[6],"",function(x){return/^\d+$/.test(x)?new Date(parseInt(x),1).getFullYear().toString():x},function(x){return f.StringUtilities.format(y.i18n.commaEveryX0Years(x),x)},function(x){return y.i18n.commaYearX0ThroughYearX1()||y.i18n.commaX0ThroughX1()},function(x){return y.i18n.commaOnlyInYearX0?y.i18n.commaOnlyInYearX0():y.i18n.commaOnlyInX0()});return w},m.prototype.getSegmentDescription=function(y,w,x,E,k,I){var O=null,R=y.indexOf("/")>-1,M=y.indexOf("-")>-1,T=y.indexOf(",")>-1;if(!y)O="";else if(y==="*")O=w;else if(!R&&!M&&!T)O=f.StringUtilities.format(I(y),x(y));else if(T){for(var P=y.split(","),N="",D=0;D0&&P.length>2&&(N+=",",D0&&P.length>1&&(D==P.length-1||P.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),P[D].indexOf("/")>-1||P[D].indexOf("-")>-1){var C=P[D].indexOf("-")>-1&&P[D].indexOf("/")==-1,$=this.getSegmentDescription(P[D],w,x,E,C?this.i18n.commaX0ThroughX1:k,I);C&&($=$.replace(", ","")),N+=$}else if(!R)N+=x(P[D]);else{var H=this.getSegmentDescription(P[D],w,x,E,k,I);H&&H.startsWith(", ")&&(H=H.substring(2)),N+=H}R?O=N:O=f.StringUtilities.format(I(y),N)}else if(R){var P=y.split("/");if(O=f.StringUtilities.format(E(P[1]),P[1]),P[0].indexOf("-")>-1){var q=this.generateRangeSegmentDescription(P[0],k,x);q.indexOf(", ")!=0&&(O+=", "),O+=q}else if(P[0].indexOf("*")==-1){var U=f.StringUtilities.format(I(P[0]),x(P[0]));U=U.replace(", ",""),O+=f.StringUtilities.format(this.i18n.commaStartingX0(),U)}}else M&&(O=this.generateRangeSegmentDescription(y,k,x));return O},m.prototype.generateRangeSegmentDescription=function(y,w,x){var E="",k=y.split("-"),I=x(k[0],1),O=x(k[1],2),R=w(y);return E+=f.StringUtilities.format(R,I,O),E},m.prototype.formatTime=function(y,w,x){var E=0,k=0,I=parseInt(y)+E,O=parseInt(w)+k;O>=60?(O-=60,I+=1):O<0&&(O+=60,I-=1),I>=24?I=I-24:I<0&&(I=24+I);var R="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),R=M?"".concat(this.getPeriod(I)," "):" ".concat(this.getPeriod(I)),I>12&&(I-=12),I===0&&(I=12));var T="";x&&(T=":".concat(("00"+x).substring(x.length)));var P=I.toString(),N=("00"+P).substring(P.length),D=O.toString(),C=("00"+D).substring(D.length),$=this.options.trimHoursLeadingZero?P:N;return"".concat(M?R:"").concat($,":").concat(C).concat(T).concat(M?"":R)},m.prototype.transformVerbosity=function(y,w){if(!w&&(y=y.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),y=y.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),y=y.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),y=y.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var x=0,E=Object.entries(this.i18n.conciseVerbosityReplacements());x=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},m.locales={},m})();c.ExpressionDescriptor=u},747(l,c,d){Object.defineProperty(c,"__esModule",{value:!0}),c.enLocaleLoader=void 0;var f=d(486),g=(function(){function u(){}return u.prototype.load=function(m){m.en=new f.en},u})();c.enLocaleLoader=g},486(l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.en=void 0;var d=(function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days in a month"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f.prototype.atReboot=function(){return"Run once, at startup"},f.prototype.onTheHour=function(){return"on the hour"},f})();c.en=d},515(l,c){Object.defineProperty(c,"__esModule",{value:!0});function d(g,u){if(!g)throw new Error(u)}var f=(function(){function g(){}return g.secondRange=function(u){for(var m=u.split(","),y=0;y=0&&w<=59,"seconds part must be >= 0 and <= 59")}},g.minuteRange=function(u){for(var m=u.split(","),y=0;y=0&&w<=59,"minutes part must be >= 0 and <= 59")}},g.hourRange=function(u){for(var m=u.split(","),y=0;y=0&&w<=23,"hours part must be >= 0 and <= 23")}},g.dayOfMonthRange=function(u){for(var m=u.split(","),y=0;y=1&&w<=31,"DOM part must be >= 1 and <= 31")}},g.monthRange=function(u,m){for(var y=u.split(","),w=0;w=1&&x<=12,m?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},g.dayOfWeekRange=function(u,m){for(var y=u.split(","),w=0;w=0&&x<=6,m?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},g})();c.default=f},823(l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.StringUtilities=void 0;var d=(function(){function f(){}return f.format=function(g){for(var u=[],m=1;m-1})},f})();c.StringUtilities=d}},n={};function o(l){var c=n[l];if(c!==void 0)return c.exports;var d=n[l]={exports:{}};return r[l](d,d.exports,o),d.exports}var a={};return(()=>{var l=a;Object.defineProperty(l,"__esModule",{value:!0}),l.toString=void 0;var c=o(333),d=o(747);c.ExpressionDescriptor.initialize(new d.enLocaleLoader),l.default=c.ExpressionDescriptor;var f=c.ExpressionDescriptor.toString;l.toString=f})(),a})())})(s1)),s1.exports}var SU=So();const EU=Ri(SU);var l1={exports:{}},S6;function CU(){return S6||(S6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.fr=void 0;var g=(function(){function u(){}return u.prototype.conciseVerbosityReplacements=function(){return{"de le":"du"}},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},u.prototype.everyMinute=function(){return"toutes les minutes"},u.prototype.everyHour=function(){return"toutes les heures"},u.prototype.atSpace=function(){return"À "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},u.prototype.at=function(){return"À"},u.prototype.spaceAnd=function(){return" et"},u.prototype.everySecond=function(){return"toutes les secondes"},u.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},u.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},u.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},u.prototype.everyX0Hours=function(){return"toutes les %s heures"},u.prototype.betweenX0AndX1=function(){return"de %s à %s"},u.prototype.atX0=function(){return"%s"},u.prototype.commaEveryDay=function(){return", tous les jours"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},u.prototype.commaX0ThroughX1=function(){return", de %s à %s"},u.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},u.prototype.first=function(){return"premier"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"troisième"},u.prototype.fourth=function(){return"quatrième"},u.prototype.fifth=function(){return"cinquième"},u.prototype.commaOnThe=function(){return", le "},u.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},u.prototype.lastDay=function(){return"le dernier jour"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},u.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},u.prototype.commaAndOnX0=function(){return", et %s"},u.prototype.commaEveryX0Months=function(){return", tous les %s mois"},u.prototype.commaOnlyInX0=function(){return", uniquement en %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},u.prototype.firstWeekday=function(){return"premier jour ouvrable"},u.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Days=function(){return", tous les %s jours"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},u.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryHour=function(){return", chaque heure"},u.prototype.commaEveryX0Years=function(){return", tous les %s ans"},u.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},u.prototype.commaStartingX0=function(){return", à partir de %s"},u.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},u.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},u.prototype.onTheHour=function(){return"à l'heure pile"},u})();return f.fr=g,d().locales.fr=new g,l})())})(l1)),l1.exports}CU();var c1={exports:{}},E6;function TU(){return E6||(E6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.es=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocurrió un error mientras se generaba la descripción de la expresión. Revise la sintaxis de la expresión de cron."},u.prototype.at=function(){return"A las"},u.prototype.atSpace=function(){return"A las "},u.prototype.atX0=function(){return"a las %s"},u.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},u.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},u.prototype.commaEveryDay=function(){return", cada día"},u.prototype.commaEveryX0Days=function(){return", cada %s días"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},u.prototype.commaEveryX0Months=function(){return", cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},u.prototype.commaOnlyInX0=function(){return", sólo en %s"},u.prototype.commaOnlyOnX0=function(){return", sólo el %s"},u.prototype.commaAndOnX0=function(){return", y el %s"},u.prototype.commaOnThe=function(){return", en el "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},u.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},u.prototype.everyHour=function(){return"cada hora"},u.prototype.everyMinute=function(){return"cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},u.prototype.everySecond=function(){return"cada segundo"},u.prototype.everyX0Hours=function(){return"cada %s horas"},u.prototype.everyX0Minutes=function(){return"cada %s minutos"},u.prototype.everyX0Seconds=function(){return"cada %s segundos"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primero"},u.prototype.firstWeekday=function(){return"primer día de la semana"},u.prototype.fourth=function(){return"cuarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},u.prototype.second=function(){return"segundo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},u.prototype.spaceAnd=function(){return" y"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},u.prototype.lastDay=function(){return"el último día"},u.prototype.third=function(){return"tercer"},u.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},u.prototype.commaEveryX0Years=function(){return", cada %s años"},u.prototype.commaStartingX0=function(){return", comenzando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},u.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},u.prototype.onTheHour=function(){return"en punto"},u})();return f.es=g,d().locales.es=new g,l})())})(c1)),c1.exports}TU();var u1={exports:{}},C6;function kU(){return C6||(C6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.de=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"jede Minute"},u.prototype.everyHour=function(){return"jede Stunde"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},u.prototype.atSpace=function(){return"Um "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},u.prototype.at=function(){return"Um"},u.prototype.spaceAnd=function(){return" und"},u.prototype.everySecond=function(){return"Jede Sekunde"},u.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},u.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},u.prototype.everyX0Minutes=function(){return"alle %s Minuten"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},u.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},u.prototype.everyX0Hours=function(){return"alle %s Stunden"},u.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},u.prototype.atX0=function(){return"um %s"},u.prototype.commaEveryDay=function(){return", jeden Tag"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},u.prototype.commaX0ThroughX1=function(){return", %s bis %s"},u.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},u.prototype.first=function(){return"ersten"},u.prototype.second=function(){return"zweiten"},u.prototype.third=function(){return"dritten"},u.prototype.fourth=function(){return"vierten"},u.prototype.fifth=function(){return"fünften"},u.prototype.commaOnThe=function(){return", am "},u.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},u.prototype.lastDay=function(){return"der letzte Tag"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},u.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},u.prototype.commaAndOnX0=function(){return", und jeden %s"},u.prototype.commaEveryX0Months=function(){return", alle %s Monate"},u.prototype.commaOnlyInX0=function(){return", nur im %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},u.prototype.firstWeekday=function(){return"ersten Werktag"},u.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},u.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},u.prototype.commaEveryX0Days=function(){return", alle %s Tage"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},u.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},u.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},u.prototype.commaStartingX0=function(){return", beginnend %s"},u.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},u.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},u.prototype.onTheHour=function(){return"zur vollen Stunde"},u})();return f.de=g,d().locales.de=new g,l})())})(u1)),u1.exports}kU();var p1={exports:{}},T6;function OU(){return T6||(T6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.it=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},u.prototype.at=function(){return"Alle"},u.prototype.atSpace=function(){return"Alle "},u.prototype.atX0=function(){return"alle %s"},u.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},u.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},u.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},u.prototype.commaEveryDay=function(){return", ogni giorno"},u.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},u.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},u.prototype.commaEveryX0Years=function(){return", ogni %s anni"},u.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},u.prototype.commaOnlyInX0=function(){return", solo in %s"},u.prototype.commaOnlyOnX0=function(){return", solo il %s"},u.prototype.commaAndOnX0=function(){return", e il %s"},u.prototype.commaOnThe=function(){return", il "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},u.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},u.prototype.commaX0ThroughX1=function(){return", %s al %s"},u.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},u.prototype.everyHour=function(){return"ogni ora"},u.prototype.everyMinute=function(){return"ogni minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},u.prototype.everySecond=function(){return"ogni secondo"},u.prototype.everyX0Hours=function(){return"ogni %s ore"},u.prototype.everyX0Minutes=function(){return"ogni %s minuti"},u.prototype.everyX0Seconds=function(){return"ogni %s secondi"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primo"},u.prototype.firstWeekday=function(){return"primo giorno della settimana"},u.prototype.fourth=function(){return"quarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},u.prototype.second=function(){return"secondo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},u.prototype.lastDay=function(){return"l'ultimo giorno"},u.prototype.third=function(){return"terzo"},u.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},u.prototype.commaStartingX0=function(){return", a partire %s"},u.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},u.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},u.prototype.onTheHour=function(){return"all'ora esatta"},u})();return f.it=g,d().locales.it=new g,l})())})(p1)),p1.exports}OU();var d1={exports:{}},k6;function _U(){return k6||(k6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(y){y.exports=r}},o={};function a(y){var w=o[y];if(w!==void 0)return w.exports;var x=o[y]={exports:{}};return n[y](x,x.exports,a),x.exports}a.n=y=>{var w=y&&y.__esModule?()=>y.default:()=>y;return a.d(w,{a:w}),w},a.d=(y,w)=>{for(var x in w)a.o(w,x)&&!a.o(y,x)&&Object.defineProperty(y,x,{enumerable:!0,get:w[x]})},a.o=(y,w)=>Object.prototype.hasOwnProperty.call(y,w),a.r=y=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.ru=void 0;var g=function(y,w){var x=Number(y);return x!==void 0?w[x%100>4&&x%100<20?2:[2,0,1,1,1,2][x%10<5?Math.abs(x)%10:5]]:w[2]},u=function(y,w){var x=Number(y);return x!==void 0?w[x===0?0:x===1||x===2||x===4?1:2]:w[1]},m=(function(){function y(){}return y.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},y.prototype.atX0MinutesPastTheHourGt20=function(){return null},y.prototype.commaMonthX0ThroughMonthX1=function(){return null},y.prototype.commaYearX0ThroughYearX1=function(){return null},y.prototype.use24HourTimeFormatByDefault=function(){return!0},y.prototype.everyMinute=function(){return"каждую минуту"},y.prototype.everyHour=function(){return"каждый час"},y.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},y.prototype.atSpace=function(){return"В "},y.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},y.prototype.at=function(){return"В"},y.prototype.spaceAnd=function(){return" и"},y.prototype.everySecond=function(){return"каждую секунду"},y.prototype.everyX0Seconds=function(w){return g(w,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},y.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},y.prototype.atX0SecondsPastTheMinute=function(w){return g(w,["в %s секунду","в %s секунды","в %s секунд"])},y.prototype.everyX0Minutes=function(w){return g(w,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},y.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},y.prototype.atX0MinutesPastTheHour=function(w){return g(w,["в %s минуту","в %s минуты","в %s минут"])},y.prototype.everyX0Hours=function(w){return g(w,["каждый %s час","каждые %s часа","каждые %s часов"])},y.prototype.betweenX0AndX1=function(){return"с %s по %s"},y.prototype.atX0=function(){return"в %s"},y.prototype.commaEveryDay=function(){return", каждый день"},y.prototype.commaEveryX0DaysOfTheWeek=function(w){return g(w,[", каждый %s день недели",", каждые %s дня недели",", каждые %s дней недели"])},y.prototype.commaX0ThroughX1=function(w){return w&&(w[0]=="2"||w[0]=="3")?", со %s по %s":", с %s по %s"},y.prototype.commaAndX0ThroughX1=function(w){return w&&(w[0]=="2"||w[0]=="3")?" и со %s по %s":" и с %s по %s"},y.prototype.first=function(w){return u(w,["первое","первый","первую"])},y.prototype.second=function(w){return u(w,["второе","второй","вторую"])},y.prototype.third=function(w){return u(w,["третье","третий","третью"])},y.prototype.fourth=function(w){return u(w,["четвертое","четвертый","четвертую"])},y.prototype.fifth=function(w){return u(w,["пятое","пятый","пятую"])},y.prototype.commaOnThe=function(w){return w==="2"?", во ":", в "},y.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},y.prototype.lastDay=function(){return"последний день"},y.prototype.commaOnTheLastX0OfTheMonth=function(w){return u(w,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},y.prototype.commaOnlyOnX0=function(w){return w&&w[0]==="2"?", только во %s":", только в %s"},y.prototype.commaAndOnX0=function(){return", и %s"},y.prototype.commaEveryX0Months=function(w){return g(w,[""," каждые %s месяца"," каждые %s месяцев"])},y.prototype.commaOnlyInMonthX0=function(){return", только %s"},y.prototype.commaOnlyInX0=function(){return", только в %s"},y.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},y.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},y.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(w){return g(w,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},y.prototype.firstWeekday=function(){return"первый будний день"},y.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},y.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},y.prototype.commaEveryX0Days=function(w){return g(w,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},y.prototype.commaBetweenDayX0AndX1OfTheMonth=function(w){return w&&w.substring(0,w.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},y.prototype.commaOnDayX0OfTheMonth=function(w){return w&&w[0]=="2"?", во %s число месяца":", в %s число месяца"},y.prototype.commaEveryX0Years=function(w){return g(w,[", каждый %s год",", каждые %s года",", каждые %s лет"])},y.prototype.commaStartingX0=function(){return", начало %s"},y.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},y.prototype.daysOfTheWeekInCase=function(w){return w===void 0&&(w=2),w==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},y.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},y.prototype.monthsOfTheYearInCase=function(w){return w==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},y.prototype.onTheHour=function(){return"ровно в час"},y})();return f.ru=m,d().locales.ru=new m,l})())})(d1)),d1.exports}_U();var f1={exports:{}},O6;function RU(){return O6||(O6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.zh_CN=void 0;var g=(function(){function u(){}return u.prototype.setPeriodBeforeTime=function(){return!0},u.prototype.pm=function(){return"下午"},u.prototype.am=function(){return"上午"},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.everyMinute=function(){return"每分钟"},u.prototype.everyHour=function(){return"每小时"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},u.prototype.atSpace=function(){return"在"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},u.prototype.at=function(){return"在"},u.prototype.spaceAnd=function(){return" 和"},u.prototype.everySecond=function(){return"每秒"},u.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分钟后的第 %s 到 %s 秒"},u.prototype.atX0SecondsPastTheMinute=function(){return"在一分钟后的第 %s 秒"},u.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整点后的第 %s 到 %s 分钟"},u.prototype.atX0MinutesPastTheHour=function(){return"在整点后的第 %s 分钟"},u.prototype.everyX0Hours=function(){return"每隔 %s 小时"},u.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},u.prototype.atX0=function(){return"在%s"},u.prototype.commaEveryDay=function(){return", 每天"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},u.prototype.commaX0ThroughX1=function(){return", %s至%s"},u.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},u.prototype.first=function(){return"第一个"},u.prototype.second=function(){return"第二个"},u.prototype.third=function(){return"第三个"},u.prototype.fourth=function(){return"第四个"},u.prototype.fifth=function(){return"第五个"},u.prototype.commaOnThe=function(){return", 限每月的"},u.prototype.spaceX0OfTheMonth=function(){return"%s"},u.prototype.lastDay=function(){return"本月最后一天"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},u.prototype.commaOnlyOnX0=function(){return", 仅%s"},u.prototype.commaAndOnX0=function(){return", 或者为%s"},u.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},u.prototype.commaOnlyInX0=function(){return", 仅限%s"},u.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},u.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},u.prototype.firstWeekday=function(){return"第一个工作日"},u.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},u.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},u.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},u.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},u.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},u.prototype.commaStartingX0=function(){return", %s开始"},u.prototype.dayX0=function(){return" %s 号"},u.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},u.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u.prototype.onTheHour=function(){return"整点"},u})();return f.zh_CN=g,d().locales.zh_CN=new g,l})())})(f1)),f1.exports}RU();var h1={exports:{}},_6;function MU(){return _6||(_6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.uk=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"щохвилини"},u.prototype.everyHour=function(){return"щогодини"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},u.prototype.atSpace=function(){return"О "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},u.prototype.at=function(){return"О"},u.prototype.spaceAnd=function(){return" та"},u.prototype.everySecond=function(){return"Щосекунди"},u.prototype.everyX0Seconds=function(){return"кожні %s секунд"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},u.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},u.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},u.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},u.prototype.everyX0Hours=function(){return"кожні %s годин"},u.prototype.betweenX0AndX1=function(){return"між %s та %s"},u.prototype.atX0=function(){return"о %s"},u.prototype.commaEveryDay=function(){return", щоденно"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},u.prototype.commaX0ThroughX1=function(){return", %s по %s"},u.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},u.prototype.first=function(){return"перший"},u.prototype.second=function(){return"другий"},u.prototype.third=function(){return"третій"},u.prototype.fourth=function(){return"четвертий"},u.prototype.fifth=function(){return"п'ятий"},u.prototype.commaOnThe=function(){return", в "},u.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},u.prototype.lastDay=function(){return"останній день"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},u.prototype.commaOnlyOnX0=function(){return", тільки в %s"},u.prototype.commaAndOnX0=function(){return", і в %s"},u.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},u.prototype.commaOnlyInX0=function(){return", тільки в %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},u.prototype.firstWeekday=function(){return"перший будень"},u.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},u.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},u.prototype.commaEveryX0Days=function(){return", кожен %s день"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},u.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},u.prototype.commaEveryX0Years=function(){return", кожні %s роки"},u.prototype.commaStartingX0=function(){return", початок %s"},u.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},u.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},u.prototype.onTheHour=function(){return"рівно о годині"},u})();return f.uk=g,d().locales.uk=new g,l})())})(h1)),h1.exports}MU();var m1={exports:{}},R6;function PU(){return R6||(R6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.pt_BR=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},u.prototype.at=function(){return"às"},u.prototype.atSpace=function(){return"às "},u.prototype.atX0=function(){return"Às %s"},u.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},u.prototype.betweenX0AndX1=function(){return"entre %s e %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},u.prototype.commaEveryDay=function(){return", a cada dia"},u.prototype.commaEveryX0Days=function(){return", a cada %s dias"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},u.prototype.commaEveryX0Months=function(){return", a cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},u.prototype.commaOnlyInX0=function(m){return m&&m.length>1&&m[1]==="-"?"somente %s":", somente em %s"},u.prototype.commaOnlyOnX0=function(m){return m&&m.length>1&&m[1]==="-"?", somente %s":", somente de %s"},u.prototype.commaAndOnX0=function(){return", e de %s"},u.prototype.commaOnThe=function(m,y){return y==="6"||y==="0"?", no":", na "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},u.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},u.prototype.everyHour=function(){return"a cada hora"},u.prototype.everyMinute=function(){return"a cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},u.prototype.everySecond=function(){return"a cada segundo"},u.prototype.everyX0Hours=function(){return"a cada %s horas"},u.prototype.everyX0Minutes=function(){return"a cada %s minutos"},u.prototype.everyX0Seconds=function(){return"a cada %s segundos"},u.prototype.fifth=function(m){return m==="6"||m==="0"?"quinto":"quinta"},u.prototype.first=function(m){return m==="6"||m==="0"?"primeiro":"primeira"},u.prototype.firstWeekday=function(){return"primeiro dia da semana"},u.prototype.fourth=function(m){return m==="6"||m==="0"?"quarto":"quarta"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},u.prototype.second=function(m){return m==="6"||m==="0"?"segundo":"segunda"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},u.prototype.lastDay=function(){return"o último dia"},u.prototype.third=function(m){return m==="6"||m==="0"?"terceiro":"terceira"},u.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},u.prototype.commaEveryX0Years=function(){return", a cada %s anos"},u.prototype.commaStartingX0=function(){return", iniciando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},u.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},u.prototype.onTheHour=function(){return"na hora certa"},u})();return f.pt_BR=g,d().locales.pt_BR=new g,l})())})(m1)),m1.exports}PU();var g1={exports:{}},M6;function IU(){return M6||(M6=1,(function(t,e){(function(n,o){t.exports=o(So())})(globalThis,r=>(()=>{var n={93(u){u.exports=r}},o={};function a(u){var m=o[u];if(m!==void 0)return m.exports;var y=o[u]={exports:{}};return n[u](y,y.exports,a),y.exports}a.n=u=>{var m=u&&u.__esModule?()=>u.default:()=>u;return a.d(m,{a:m}),m},a.d=(u,m)=>{for(var y in m)a.o(m,y)&&!a.o(u,y)&&Object.defineProperty(u,y,{enumerable:!0,get:m[y]})},a.o=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var l={};a.r(l);var c=a(93),d=a.n(c),f=l;Object.defineProperty(f,"__esModule",{value:!0}),f.pl=void 0;var g=(function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},u.prototype.at=function(){return"O"},u.prototype.atSpace=function(){return"O "},u.prototype.atX0=function(){return"o %s"},u.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},u.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},u.prototype.betweenX0AndX1=function(){return"od %s do %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},u.prototype.commaEveryDay=function(){return", co dzień"},u.prototype.commaEveryX0Days=function(){return", co %s dni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},u.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},u.prototype.commaEveryX0Years=function(){return", co %s lat"},u.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},u.prototype.commaOnlyInX0=function(){return", tylko %s"},u.prototype.commaOnlyOnX0=function(){return", tylko %s"},u.prototype.commaAndOnX0=function(){return", i %s"},u.prototype.commaOnThe=function(){return", "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},u.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},u.prototype.commaX0ThroughX1=function(){return", od %s do %s"},u.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},u.prototype.everyHour=function(){return"co godzinę"},u.prototype.everyMinute=function(){return"co minutę"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},u.prototype.everySecond=function(){return"co sekundę"},u.prototype.everyX0Hours=function(){return"co %s godzin"},u.prototype.everyX0Minutes=function(){return"co %s minut"},u.prototype.everyX0Seconds=function(){return"co %s sekund"},u.prototype.fifth=function(){return"piąty"},u.prototype.first=function(){return"pierwszy"},u.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},u.prototype.fourth=function(){return"czwarty"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},u.prototype.second=function(){return"drugi"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},u.prototype.spaceAnd=function(){return" i"},u.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},u.prototype.lastDay=function(){return"ostatni dzień"},u.prototype.third=function(){return"trzeci"},u.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},u.prototype.commaStartingX0=function(){return", startowy %s"},u.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},u.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},u.prototype.onTheHour=function(){return"o pełnej godzinie"},u})();return f.pl=g,d().locales.pl=new g,l})())})(g1)),g1.exports}IU();function iT(t,e){return EU.toString(t,{locale:e})}const Vr={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},AU=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],DU=["January","February","March","April","May","June","July","August","September","October","November","December"];function P6(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const l=parseInt(a[1],10);for(let c=parseInt(a[0],10);c<=l;c++)r.push(c)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function I6(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,l)=>a-l);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=wi.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=P6(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,I6(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},z.t("ra_Deselect all")),v.createElement(Vt,{key:"addall",variant:"contained",style:Vr.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},z.t("ra_Select all")),v.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?v.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,v.createElement(Vt,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:Vr.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?z.t(AU[a]):r===12?DU[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),l;if(this.state.modes[e]===null){l=o?"every":a?"everyN":"specific";const d=JSON.parse(JSON.stringify(this.state.modes));return d[e]=l,setTimeout(()=>this.setState({modes:d},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",l=this.state.modes[e];let c=1;return a&&n&&(c=parseInt(n.replace("*/",""),10)||1),v.createElement("div",null,v.createElement(po,{variant:"standard",style:{...Vr.periodSelect,verticalAlign:"bottom"},value:l,onChange:d=>{const f=JSON.parse(JSON.stringify(this.state.modes));if(f[e]=d.target.value,d.target.value==="every")this.setCronAttr(e,"*",f);else if(d.target.value==="everyN"){const g=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${g}`,f)}else if(d.target.value==="specific"){let g=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!g&&(e==="months"||e==="dates")&&(g=1),this.setCronAttr(e,I6(g,r),f)}}},v.createElement(ur,{key:"every",value:"every"},z.t(`sc_every_${e}`)),v.createElement(ur,{key:"everyN",value:"everyN"},z.t(`sc_everyN_${e}`)),v.createElement(ur,{key:"specific",value:"specific"},z.t(`sc_specific_${e}`))),a&&v.createElement(Ar,{variant:"standard",key:"interval",label:z.t(`sc_${e}`),value:c,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:d=>{this.setState({[e]:`*/${d.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?z.t("ra_Invalid CRON"):iT(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return v.createElement("div",{style:Vr.mainDiv},v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},v.createElement(Ar,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},wi.convertCronToText(this.state.cron,this.props.language||"en"),v.createElement("span",{style:Vr.warning},n?z.t("ra_warning_every_second"):r?z.t("ra_warning_every_minute"):"")),v.createElement(pt,{control:v.createElement(Lr,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:z.t("ra_use seconds")}),v.createElement(AE,{position:"static",sx:{"&.MuiAppBar-root":Vr.appBar},color:"secondary"},v.createElement(k$,{value:this.state.tab,style:Vr.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&v.createElement(is,{id:"sc_seconds",label:z.t("sc_seconds")}),v.createElement(is,{id:"minutes",label:z.t("sc_minutes")}),v.createElement(is,{id:"hours",label:z.t("sc_hours")}),v.createElement(is,{id:"dates",label:z.t("sc_dates")}),v.createElement(is,{id:"months",label:z.t("sc_months")}),v.createElement(is,{id:"dow",label:z.t("sc_dows")}))),e===0&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("seconds",60)),e===1&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("minutes",60)),e===2&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("hours",24)),e===3&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("dates",31)),e===4&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("months",12)),e===5&&v.createElement("div",{style:Vr.tabContent},this.getPeriodsTab("dow",7)))}}function Ta(t,e,r,n){function o(a){return a instanceof r?a:new r(function(l){l(a)})}return new(r||(r=Promise))(function(a,l){function c(g){try{f(n.next(g))}catch(u){l(u)}}function d(g){try{f(n.throw(g))}catch(u){l(u)}}function f(g){g.done?a(g.value):o(g.value).then(c,d)}f((n=n.apply(t,e||[])).next())})}const NU=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 Ys(t,e,r){const n=$U(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&A6(n,"path",a),A6(n,"relativePath",a),n}function $U(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=NU.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function A6(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const LU=[".DS_Store","Thumbs.db"];function BU(t){return Ta(this,void 0,void 0,function*(){return id(t)&&FU(t.dataTransfer)?qU(t.dataTransfer,t.type):zU(t)?jU(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?HU(t):[]})}function FU(t){return id(t)}function zU(t){return id(t)&&id(t.target)}function id(t){return typeof t=="object"&&t!==null}function jU(t){return pv(t.target.files).map(e=>Ys(e))}function HU(t){return Ta(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Ys(r))})}function qU(t,e){return Ta(this,void 0,void 0,function*(){if(t.items){const r=pv(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(WU));return D6(aT(n))}return D6(pv(t.files).map(r=>Ys(r)))})}function D6(t){return t.filter(e=>LU.indexOf(e.name)===-1)}function pv(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?aT(r):[r]],[])}function N6(t,e){return Ta(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const l=yield a.getFile();return l.handle=a,Ys(l)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Ys(n,(r=e?.fullPath)!==null&&r!==void 0?r:void 0)})}function UU(t){return Ta(this,void 0,void 0,function*(){return t.isDirectory?sT(t):XU(t)})}function sT(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(l=>Ta(this,void 0,void 0,function*(){if(l.length){const c=Promise.all(l.map(UU));o.push(c),a()}else try{const c=yield Promise.all(o);r(c)}catch(c){n(c)}}),l=>{n(l)})}a()})}function XU(t){return Ta(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=Ys(n,t.fullPath);e(o)},n=>{r(n)})})})}var Sp={},$6;function VU(){return $6||($6=1,Sp.__esModule=!0,Sp.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(l){var c=l.trim().toLowerCase();return c.charAt(0)==="."?n.toLowerCase().endsWith(c):c.endsWith("/*")?a===c.replace(/\/.*$/,""):o===c})}return!0}),Sp}var GU=VU();const v1=Ri(GU);function L6(t){return JU(t)||YU(t)||cT(t)||KU()}function KU(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YU(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function JU(t){if(Array.isArray(t))return dv(t)}function B6(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function F6(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:rX,message:"File type must be ".concat(n)}},z6=function(e){return{code:nX,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},j6=function(e){return{code:oX,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},sX={code:iX,message:"Too many files"};function lX(t){return t.type===""&&typeof t.getAsFile=="function"}function uT(t,e){var r=t.type==="application/x-moz-file"||tX(t,e)||lX(t);return[r,r?null:aX(e)]}function pT(t,e,r){if(ia(t.size))if(ia(e)&&ia(r)){if(t.size>r)return[!1,z6(r)];if(t.sizer)return[!1,z6(r)]}return[!0,null]}function ia(t){return t!=null}function cX(t){var e=t.files,r=t.accept,n=t.minSize,o=t.maxSize,a=t.multiple,l=t.maxFiles,c=t.validator;return!a&&e.length>1||a&&l>=1&&e.length>l?!1:e.every(function(d){var f=uT(d,r),g=Nc(f,1),u=g[0],m=pT(d,n,o),y=Nc(m,1),w=y[0],x=c?c(d):null;return u&&w&&!x})}function ad(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function Ql(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function H6(t){t.preventDefault()}function uX(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function pX(t){return t.indexOf("Edge/")!==-1}function dX(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return uX(t)||pX(t)}function io(){for(var t=arguments.length,e=new Array(t),r=0;r1?o-1:0),l=1;lt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function _X(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var Jd=_.forwardRef(function(t,e){var r=t.children,n=sd(t,yX),o=RX(n),a=o.open,l=sd(o,bX);return _.useImperativeHandle(e,function(){return{open:a}},[a]),v.createElement(_.Fragment,null,r(Bt(Bt({},l),{},{open:a})))});Jd.displayName="Dropzone";var mT={disabled:!1,getFilesFromEvent:BU,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};Jd.defaultProps=mT;Jd.propTypes={children:oe.func,accept:oe.objectOf(oe.arrayOf(oe.string)),multiple:oe.bool,preventDropOnDocument:oe.bool,noClick:oe.bool,noKeyboard:oe.bool,noDrag:oe.bool,noDragEventsBubbling:oe.bool,minSize:oe.number,maxSize:oe.number,maxFiles:oe.number,disabled:oe.bool,getFilesFromEvent:oe.func,onFileDialogCancel:oe.func,onFileDialogOpen:oe.func,useFsAccessApi:oe.bool,autoFocus:oe.bool,onDragEnter:oe.func,onDragLeave:oe.func,onDragOver:oe.func,onDrop:oe.func,onDropAccepted:oe.func,onDropRejected:oe.func,onError:oe.func,validator:oe.func};var mv={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function RX(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Bt(Bt({},mT),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,l=e.minSize,c=e.multiple,d=e.maxFiles,f=e.onDragEnter,g=e.onDragLeave,u=e.onDragOver,m=e.onDrop,y=e.onDropAccepted,w=e.onDropRejected,x=e.onFileDialogCancel,E=e.onFileDialogOpen,k=e.useFsAccessApi,I=e.autoFocus,O=e.preventDropOnDocument,R=e.noClick,M=e.noKeyboard,T=e.noDrag,P=e.noDragEventsBubbling,N=e.onError,D=e.validator,C=_.useMemo(function(){return mX(r)},[r]),$=_.useMemo(function(){return hX(r)},[r]),H=_.useMemo(function(){return typeof E=="function"?E:U6},[E]),q=_.useMemo(function(){return typeof x=="function"?x:U6},[x]),U=_.useRef(null),W=_.useRef(null),K=_.useReducer(MX,mv),re=y1(K,2),Z=re[0],V=re[1],ee=Z.isFocused,F=Z.isFileDialogActive,J=_.useRef(typeof window<"u"&&window.isSecureContext&&k&&fX()),pe=function(){!J.current&&F&&setTimeout(function(){if(W.current){var ge=W.current.files;ge.length||(V({type:"closeDialog"}),q())}},300)};_.useEffect(function(){return window.addEventListener("focus",pe,!1),function(){window.removeEventListener("focus",pe,!1)}},[W,F,q,J]);var de=_.useRef([]),ie=_.useRef([]),fe=function(ge){U.current&&U.current.contains(ge.target)||(ge.preventDefault(),de.current=[])};_.useEffect(function(){return O&&(document.addEventListener("dragover",H6,!1),document.addEventListener("drop",fe,!1)),function(){O&&(document.removeEventListener("dragover",H6),document.removeEventListener("drop",fe))}},[U,O]),_.useEffect(function(){var ne=function(vt){ie.current=[].concat(q6(ie.current),[vt.target]),Ql(vt)&&V({isDragGlobal:!0,type:"setDragGlobal"})},ge=function(vt){ie.current=ie.current.filter(function(Fe){return Fe!==vt.target&&Fe!==null}),!(ie.current.length>0)&&V({isDragGlobal:!1,type:"setDragGlobal"})},je=function(){ie.current=[],V({isDragGlobal:!1,type:"setDragGlobal"})},Be=function(){ie.current=[],V({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",ne,!1),document.addEventListener("dragleave",ge,!1),document.addEventListener("dragend",je,!1),document.addEventListener("drop",Be,!1),function(){document.removeEventListener("dragenter",ne),document.removeEventListener("dragleave",ge),document.removeEventListener("dragend",je),document.removeEventListener("drop",Be)}},[U]),_.useEffect(function(){return!n&&I&&U.current&&U.current.focus(),function(){}},[U,I,n]);var Se=_.useCallback(function(ne){N?N(ne):console.error(ne)},[N]),Ce=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne),de.current=[].concat(q6(de.current),[ne.target]),Ql(ne)&&Promise.resolve(o(ne)).then(function(ge){if(!(ad(ne)&&!P)){var je=ge.length,Be=je>0&&cX({files:ge,accept:C,minSize:l,maxSize:a,multiple:c,maxFiles:d,validator:D}),st=je>0&&!Be;V({isDragAccept:Be,isDragReject:st,isDragActive:!0,type:"setDraggedFiles"}),f&&f(ne)}}).catch(function(ge){return Se(ge)})},[o,f,Se,P,C,l,a,c,d,D]),Oe=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne);var ge=Ql(ne);if(ge&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return ge&&u&&u(ne),!1},[u,P]),ke=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne);var ge=de.current.filter(function(Be){return U.current&&U.current.contains(Be)}),je=ge.indexOf(ne.target);je!==-1&&ge.splice(je,1),de.current=ge,!(ge.length>0)&&(V({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ql(ne)&&g&&g(ne))},[U,g,P]),Le=_.useCallback(function(ne,ge){var je=[],Be=[];ne.forEach(function(st){var vt=uT(st,C),Fe=y1(vt,2),Ft=Fe[0],wt=Fe[1],xe=pT(st,l,a),lt=y1(xe,2),St=lt[0],pr=lt[1],dr=D?D(st):null;if(Ft&&St&&!dr)je.push(st);else{var Br=[wt,pr];dr&&(Br=Br.concat(dr)),Be.push({file:st,errors:Br.filter(function(Eo){return Eo})})}}),(!c&&je.length>1||c&&d>=1&&je.length>d)&&(je.forEach(function(st){Be.push({file:st,errors:[sX]})}),je.splice(0)),V({acceptedFiles:je,fileRejections:Be,type:"setFiles"}),m&&m(je,Be,ge),Be.length>0&&w&&w(Be,ge),je.length>0&&y&&y(je,ge)},[V,c,C,l,a,d,m,y,w,D]),Ie=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),Xe(ne),de.current=[],Ql(ne)&&Promise.resolve(o(ne)).then(function(ge){ad(ne)&&!P||Le(ge,ne)}).catch(function(ge){return Se(ge)}),V({type:"reset"})},[o,Le,Se,P]),nt=_.useCallback(function(){if(J.current){V({type:"openDialog"}),H();var ne={multiple:c,types:$};window.showOpenFilePicker(ne).then(function(ge){return o(ge)}).then(function(ge){Le(ge,null),V({type:"closeDialog"})}).catch(function(ge){gX(ge)?(q(ge),V({type:"closeDialog"})):vX(ge)?(J.current=!1,W.current?(W.current.value=null,W.current.click()):Se(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 was provided."))):Se(ge)});return}W.current&&(V({type:"openDialog"}),H(),W.current.value=null,W.current.click())},[V,H,q,k,Le,Se,$,c]),Me=_.useCallback(function(ne){!U.current||!U.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),nt())},[U,nt]),Te=_.useCallback(function(){V({type:"focus"})},[]),ht=_.useCallback(function(){V({type:"blur"})},[]),be=_.useCallback(function(){R||(dX()?setTimeout(nt,0):nt())},[R,nt]),Ae=function(ge){return n?null:ge},it=function(ge){return M?null:Ae(ge)},Ze=function(ge){return T?null:Ae(ge)},Xe=function(ge){P&&ge.stopPropagation()},ve=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ge=ne.refKey,je=ge===void 0?"ref":ge,Be=ne.role,st=ne.onKeyDown,vt=ne.onFocus,Fe=ne.onBlur,Ft=ne.onClick,wt=ne.onDragEnter,xe=ne.onDragOver,lt=ne.onDragLeave,St=ne.onDrop,pr=sd(ne,xX);return Bt(Bt(hv({onKeyDown:it(io(st,Me)),onFocus:it(io(vt,Te)),onBlur:it(io(Fe,ht)),onClick:Ae(io(Ft,be)),onDragEnter:Ze(io(wt,Ce)),onDragOver:Ze(io(xe,Oe)),onDragLeave:Ze(io(lt,ke)),onDrop:Ze(io(St,Ie)),role:typeof Be=="string"&&Be!==""?Be:"presentation"},je,U),!n&&!M?{tabIndex:0}:{}),pr)}},[U,Me,Te,ht,be,Ce,Oe,ke,Ie,M,T,n]),at=_.useCallback(function(ne){ne.stopPropagation()},[]),Ye=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ge=ne.refKey,je=ge===void 0?"ref":ge,Be=ne.onChange,st=ne.onClick,vt=sd(ne,wX),Fe=hv({accept:C,multiple:c,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:Ae(io(Be,Ie)),onClick:Ae(io(st,at)),tabIndex:-1},je,W);return Bt(Bt({},Fe),vt)}},[W,r,c,Ie,n]);return Bt(Bt({},Z),{},{isFocused:ee&&!n,getRootProps:ve,getInputProps:Ye,rootRef:U,inputRef:W,open:Ae(nt)})}function MX(t,e){switch(e.type){case"focus":return Bt(Bt({},t),{},{isFocused:!0});case"blur":return Bt(Bt({},t),{},{isFocused:!1});case"openDialog":return Bt(Bt({},mv),{},{isFileDialogActive:!0});case"closeDialog":return Bt(Bt({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Bt(Bt({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Bt(Bt({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:!1});case"setDragGlobal":return Bt(Bt({},t),{},{isDragGlobal:e.isDragGlobal});case"reset":return Bt({},mv);default:return t}}function U6(){}function PX(){const t=jo();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=yD(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function e2(){return t=>function(r){const n=PX();return v.createElement(t,{...r,width:n})}}function IX(t){const[e,r]=v.useState(t.input||t.value||""),[n,o]=v.useState("");return v.createElement(Ho,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},v.createElement(Uo,{id:"form-dialog-title"},t.titleText),v.createElement(Wo,null,v.createElement(Dd,null,t.promptText),v.createElement(Ar,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let l="";t.verify&&(l=t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(l)},fullWidth:!0})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:v.createElement(Di,null)},t.applyText||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:v.createElement(fa,null)},t.cancelText||z.t("ra_Cancel"))))}const AX=e2()(IX);function DX(t){return v.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"m414.928297,149.715165 c-2.639376,-57.222555 -35.669446,-106.505345 -83.345894,-132.039151 c-3.758948,-2.049842 -7.636885,-3.932022 -11.590542,-5.641125 c-19.303146,-8.394083 -40.607459,-13.050853 -63.004303,-13.050853 c-84.113909,0 -152.791790,65.703174 -157.718988,148.605566 l0.043268,-0.010816 v0.281245 c0,3.061243 -0.146031,16.750306 -0.146031,16.750306 l-2.352723,5.224668 h15.744315 c5.916964,-19.384275 24.078904,-32.635245 45.513024,-32.635245 c26.231510,0 47.573684,21.915481 47.573684,48.146991 c0,26.226103 -21.342174,47.146409 -47.573684,47.146409 c-25.111939,0 -45.734774,-19.735831 -47.443879,-44.658471 h-18.789334 c-0.400232,0 -0.778832,0.638209 -1.162839,0.584122 l-19.762875,55.199753 c-2.774590,7.696379 2.926030,16.214860 11.103771,16.214860 h17.020735 l-0.129805,87.899899 c0,17.356066 14.073071,31.174935 31.429136,31.174935 h56.205745 v82.648189 c0,12.877778 12.937273,22.580734 25.815051,22.580734 h144.597825 c12.877778,0 23.429877,-9.702955 23.429877,-22.580734 v-166.037352 c0,-22.645636 5.976457,-44.761234 16.561008,-64.789128 c11.055093,-20.925714 17.523731,-44.620611 18.129489,-69.792045 c0.027042,-1.260193 0.037858,-2.552839 0.037858,-3.845485 c0,-2.466302 -0.070310,-4.938014 -0.183890,-7.377273 zm-155.393308,-11.731165 h-13.456494 v13.559257 c0,4.732489 -4.267352,8.567157 -8.999842,8.567157 c-4.727079,0 -8.999842,-3.834667 -8.999842,-8.567157 v-13.559257 h-12.185483 c-4.732489,0 -8.567157,-4.267352 -8.567157,-8.999842 c0,-4.727079 3.834667,-8.999842 8.567157,-8.999842 h12.185483 v-12.077311 c0,-4.732489 4.272762,-8.567157 8.999842,-8.567157 c4.732489,0 8.999842,3.834667 8.999842,8.567157 v12.077311 h13.456494 c4.727079,0 8.567157,4.272762 8.567157,8.999842 c0,4.732489 -3.840077,8.999842 -8.567157,8.999842 zm0,0"}),v.createElement("path",{fill:"currentColor",d:"m187.695312 285.875c3.9375-3.980469 6.414063-9.449219 6.414063-15.523438 0-12.128906-9.855469-21.980468-21.984375-21.980468-6.007812 0-11.472656 2.410156-15.457031 6.347656-4.023438 4.003906-6.523438 9.539062-6.523438 15.636719 0 12.125 9.855469 21.980469 21.980469 21.980469 6.078125 0 11.585938-2.476563 15.570312-6.460938zm0 0"}))}function gv(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"m524,128l-192,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,288c0,26.51 21.49,48 48,48l416,0c26.51,0 48,-21.49 48,-48l0,-224c0,-26.51 -21.49,-48 -48,-48z"}))}function NX(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"m631.75617,292.093l-72.424,124.155a63.997,63.997 0 0 1 -55.281,31.752l-399.964,0c-18.523,0 -30.064,-20.093 -20.731,-36.093l72.424,-124.155a64,64 0 0 1 55.282,-31.752l399.964,0c18.523,0 30.064,20.093 20.73,36.093zm-420.694,-68.093l328,0l0,-48c0,-26.51 -21.49,-48 -48,-48l-160,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,278.046l69.077,-118.418c17.137,-29.378 48.912,-47.628 82.923,-47.628z"}))}function t2(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"#EE3333",d:"M256,0C114.844,0,0,114.844,0,256s114.844,256,256,256s256-114.844,256-256S397.156,0,256,0z M256,448 c-105.865,0-192-86.135-192-192c0-40.406,12.25-78.604,35.542-111.198l267.656,267.656C334.604,435.75,296.406,448,256,448z M412.458,367.198L144.802,99.542C177.396,76.25,215.594,64,256,64c105.865,0,192,86.135,192,192 C448,296.406,435.75,334.604,412.458,367.198z"}))}var $X=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,l)=>l===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(c,d,f)=>`${d}${f.toUpperCase()}`);let l=o.trim();Number.isNaN(Number(o))||(l=Number(o)),e[n.startsWith("-")?n:a]=l}return e},{});function LX(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var BX=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],X6={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function FX(t,e){const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return _.createElement(jX(t.nodeName),zX(t,r),V6(t.childNodes,n,o));case 3:{const a=t.nodeValue?.toString()??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(a)&&!/[\u00A0\u202F]/.test(a))return null;if(!t.parentNode)return a;const l=t.parentNode.nodeName.toLowerCase();return BX.includes(l)?(/\S/.test(a)&&console.warn(`A textNode is not allowed inside '${l}'. Your text "${a}" will be ignored`),null):a}case 8:return null;case 11:return V6(t.childNodes,n,e);default:return null}}function zX(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=$X(o.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[X6[o.name]||o.name]=!0;break;default:r[X6[o.name]||o.name]=o.value}})}return r}function V6(t,e,r){const n=[...t].map((o,a)=>ld(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function jX(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function gT(t,e={}){return typeof t=="string"?HX(t,e):t instanceof Node?ld(t,e):null}function ld(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let l=t,c=`${o}-${n}`;const d=[];return a&&o===0&&(c=`${LX()}-${c}`),Array.isArray(r)&&r.forEach(f=>{f.condition(l,c,o)&&(typeof f.pre=="function"&&(l=f.pre(l,c,o),l instanceof Node||(l=t)),typeof f.post=="function"&&d.push(f.post(l,c,o)))}),d.length?d:FX(l,{key:c,level:o,...e})}function HX(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const c=new DOMParser().parseFromString(t,a);if(r){const{childNodes:f}=c.body;return n?f:[...f].map(g=>ld(g,e))}const d=c.querySelector(o)||c.body.childNodes[0];if(!(d instanceof Node))throw new TypeError("Error parsing input");return n?d:ld(d,e)}catch{}return null}var qX=Object.defineProperty,WX=(t,e,r)=>e in t?qX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ep=(t,e,r)=>WX(t,typeof e!="symbol"?e+"":e,r),G6="react-inlinesvg",UX=10,Ot={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function XX(t){return t[Math.floor(Math.random()*t.length)]}function gc(){return!!(typeof window<"u"&&window.document?.createElement)}function VX(){return JX()&&typeof window<"u"&&window!==null}function GX(t,...e){const r={};for(const n in t)({}).hasOwnProperty.call(t,n)&&(e.includes(n)||(r[n]=t[n]));return r}function KX(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function YX(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function JX(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}var QX=class{constructor(){Ep(this,"cacheApi"),Ep(this,"cacheStore"),Ep(this,"subscribers",[]),Ep(this,"isReady",!1),this.cacheStore=new Map;let t=G6,e=!1;gc()&&(t=window.REACT_INLINESVG_CACHE_NAME??G6,e=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),e?caches.open(t).then(r=>{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;const r=[...this.subscribers];this.subscribers.length=0,r.forEach(n=>{try{n()}catch(o){console.error(`Error in CacheStore subscriber callback: ${o.message}`)}})}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),this.cacheStore.get(t)?.content??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){return this.cacheStore.get(t)?.status===Ot.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Ot.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Ot.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!r?.content){this.cacheStore.set(t,{content:"",status:Ot.LOADING});try{const n=await vT(t,e);this.cacheStore.set(t,{content:n,status:Ot.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Ot.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){const r=this.cacheStore.get(t);if(r?.status===Ot.LOADED)return;if(r?.status===Ot.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Ot.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Ot.LOADING});const n=await this.cacheApi?.match(t);if(n){const o=await n.text();this.cacheStore.set(t,{content:o,status:Ot.LOADED});return}try{await this.cacheApi?.add(new Request(t,e));const a=await(await this.cacheApi?.match(t))?.text()??"";this.cacheStore.set(t,{content:a,status:Ot.LOADED})}catch(o){throw this.cacheStore.set(t,{content:"",status:Ot.FAILED}),o}}async handleLoading(t,e){for(let r=0;r({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();await Promise.allSettled(t.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function K6(t){const e=_.useRef(void 0);return _.useEffect(()=>{e.current=t}),e.current}function ZX(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:l,title:c,uniquifyIDs:d=!1}=t;try{const f=eV(r,l),g=gT(f,{nodeOnly:!0});if(!g||!(g instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const u=yT(g,{baseURL:e,hash:a,uniquifyIDs:d});if(n){const m=u.querySelector("desc");m?.parentNode&&m.parentNode.removeChild(m);const y=document.createElementNS("http://www.w3.org/2000/svg","desc");y.innerHTML=n,u.prepend(y)}if(typeof c<"u"){const m=u.querySelector("title");if(m?.parentNode&&m.parentNode.removeChild(m),c){const y=document.createElementNS("http://www.w3.org/2000/svg","title");y.innerHTML=c,u.prepend(y)}}return u}catch(f){return o(f)}}function eV(t,e){return e?e(t):t}function yT(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],l=["href","xlink:href"],c=(d,f)=>l.includes(d)&&(f?!f.includes("#"):!1);return o&&[...t.children].forEach(d=>{if(d.attributes?.length){const f=Object.values(d.attributes).map(g=>{const u=g,m=/url\((.*?)\)/.exec(g.value);return m?.[1]&&(u.value=g.value.replace(m[0],`url(${r}${m[1]}__${n})`)),u});a.forEach(g=>{const u=f.find(m=>m.name===g);u&&!c(g,u.value)&&(u.value=`${u.value}__${n}`)})}return d.children.length?yT(d,e):d}),t}var Ns;function tV(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:l=null,onError:c,onLoad:d,src:f,title:g,uniqueHash:u}=t,[m,y]=_.useReducer((U,W)=>({...U,...W}),{content:"",element:null,isCached:e&&Ns.isCached(t.src),status:Ot.IDLE}),{content:w,element:x,isCached:E,status:k}=m,I=K6(t),O=K6(m),R=_.useRef(u??KX(8)),M=_.useRef(!1),T=_.useRef(!1),P=_.useCallback(U=>{M.current&&(y({status:U.message==="Browser does not support SVG"?Ot.UNSUPPORTED:Ot.FAILED}),c?.(U))},[c]),N=_.useCallback((U,W=!1)=>{M.current&&y({content:U,isCached:W,status:Ot.LOADED})},[]),D=_.useCallback(async()=>{const U=await vT(f,o);N(U)},[o,N,f]),C=_.useCallback(()=>{try{const U=ZX({...t,handleError:P,hash:R.current,content:w}),W=gT(U);if(!W||!_.isValidElement(W))throw new Error("Could not convert the src to a React element");y({element:W,status:Ot.READY})}catch(U){P(U)}},[w,P,t]),$=_.useCallback(async()=>{const U=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(f);let W;if(U?W=U[1]?window.atob(U[2]):decodeURIComponent(U[2]):f.includes("{M.current&&y({content:"",element:null,isCached:!1,status:Ot.LOADING})},[]);_.useEffect(()=>{if(M.current=!0,!(!gc()||T.current)){try{if(k===Ot.IDLE){if(!VX())throw new Error("Browser does not support SVG");if(!f)throw new Error("Missing src");H()}}catch(U){P(U)}return T.current=!0,()=>{M.current=!1}}},[]),_.useEffect(()=>{if(!(!gc()||!I)&&I.src!==f){if(!f){P(new Error("Missing src"));return}H()}},[P,H,I,f]),_.useEffect(()=>{k===Ot.LOADED&&C()},[k,C]),_.useEffect(()=>{!gc()||!I||I.src!==f||(I.title!==g||I.description!==n)&&C()},[n,C,I,f,g]),_.useEffect(()=>{if(O)switch(k){case Ot.LOADING:{O.status!==Ot.LOADING&&$();break}case Ot.LOADED:{O.status!==Ot.LOADED&&C();break}case Ot.READY:{O.status!==Ot.READY&&d?.(f,E);break}}},[$,C,E,d,O,f,k]);const q=GX(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return gc()?x?_.cloneElement(x,{ref:a,...q}):[Ot.UNSUPPORTED,Ot.FAILED].includes(k)?r:l:l}function rV(t){Ns||(Ns=new QX);const{loader:e}=t,[r,n]=_.useState(Ns.isReady);return _.useEffect(()=>{r||Ns.onReady(()=>{n(!0)})},[r]),r?v.createElement(tV,{...t}):e}const nV=window.location.hostname.endsWith("iobroker.in"),Y6=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1),Qd=v.forwardRef(function(e,r){if(e.src){if(typeof e.src=="string"){if(e.src.length<3)return e.sx?v.createElement(ft,{component:"span",sx:e.sx,ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src):v.createElement("span",{ref:r,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:"iconOwn"},e.src);if(e.src.startsWith("data:image/svg"))return v.createElement(rV,{title:e.title||void 0,src:e.src,className:e.className?`iconOwn ${e.className}`:"iconOwn",width:e.style?.width||28,height:e.style?.height||e.style?.width||28,style:e.style||void 0});if(nV&&!e.src.startsWith("http://")&&!e.src.startsWith("https://")){let n=e.src;return n.startsWith("./")?n=Y6+n.substring(2):n.startsWith("/")||(n=Y6+n),e.sx?v.createElement(ft,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)}):v.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:r,onError:o=>e.onError?.(o)})}return e.sx?v.createElement(ft,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError}):v.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:"iconOwn",src:e.src,alt:e.alt||void 0,ref:r,onError:e.onError})}return e.src}return null});Qd.displayName="Icon";const Ji={dialog:{height:"100%"},paper:{height:"calc(100% - 64px)"},content:{textAlign:"center"},textarea:{width:"100%",height:"100%"},img:{width:"auto",height:"calc(100% - 5px)",objectFit:"contain"},dialogTitle:{justifyContent:"space-between",display:"flex"}},Pr={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics","csv"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function J6(t,e){let r="";const n=new Uint8Array(t?.data||t),o=n.byteLength;for(let a=0;a{let a="";o.file!==void 0&&(a=o.file);const l={copyPossible:this.state.copyPossible,ext:this.state.ext};if(a.type==="Buffer")if(n.toLowerCase().endsWith(".json5")){l.ext="json5",l.copyPossible=!0;try{a=atob(J6(a,!0))}catch{console.error("Cannot convert base64 to string"),a=""}}else{const c=Je.detectMimeType(J6(a));c&&(l.ext=c,l.copyPossible=Pr.code.includes(c)||Pr.txt.includes(c))}l.copyPossible&&(l.ext&&Pr.txt.includes(l.ext)?(l.text=a,l.editingValue=a):l.ext&&Pr.code.includes(l.ext)&&(l.code=a,l.editingValue=a)),this.setState(l)}).catch(o=>window.alert(`Cannot read file: ${o}`))}}componentDidMount(){this.readFile();const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(r,n,this.onFileChanged).catch(o=>window.alert(`Cannot subscribe on file: ${o}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const e=this.props.href.split("/");e.splice(0,2);const r=e[0],n=e.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.unsubscribeFiles(r,n,this.onFileChanged)}onFileChanged=(e,r,n)=>{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,n===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))};getEditorOrViewer(){return v.createElement(Ar,{variant:"standard",style:Ji.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&Pr.images.includes(this.state.ext)?this.state.imgError?v.createElement(t2,{style:{...Ji.img,...this.props.getStyleBackgroundImage()}}):v.createElement(Qd,{onError:e=>{e.target.onerror=null,this.setState({imgError:!0})},style:{...Ji.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Pr.audio.includes(this.state.ext)?v.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Pr.video.includes(this.state.ext)?v.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},v.createElement("source",{src:this.props.href,type:`video/${this.state.ext}`}))):this.state.code!==null||this.state.text!==null||this.state.editing?this.getEditorOrViewer():null}onSave(){}render(){return v.createElement(Ho,{sx:{"&.MuiDialog-scrollPaper":Ji.dialog,"& .MuiDialog-paper":Ji.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},v.createElement("div",{style:Ji.dialogTitle},v.createElement(Uo,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Pr.images.includes(this.state.ext)&&v.createElement("div",null,v.createElement(cr,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},v.createElement(cy,null)))),v.createElement(Wo,{style:Ji.content},this.getContent()),v.createElement(qo,null,this.state.copyPossible?v.createElement(Vt,{color:"grey",onClick:e=>{e.stopPropagation(),e.preventDefault(),Je.copyToClipboard(this.state.text||this.state.code||"")},startIcon:v.createElement(F$,null)},this.props.t("Copy content")):null,this.state.editing?v.createElement(Vt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:v.createElement(nv,null)},this.props.t("Save")):null,v.createElement(Vt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:v.createElement(fa,null)},this.props.t("Close"))))}}const iV=e2()(oV),ps=32,No=32,Cp=120,Q6=64,Z6="Not found",Tp={all:oC,images:X$,code:uy,txt:W$,audio:I$,video:lL},we={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 8px)",overflowX:"hidden",overflowY:"auto",padding:8},filesDivHint:{position:"absolute",bottom:0,left:20,opacity:.7,fontStyle:"italic",fontSize:12},filesDivTable:{height:"calc(100% - 56px)"},filesDivTile:{height:"calc(100% - 104px)",display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${Q6}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:Cp,width:Q6,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:Je.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:Cp-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:(t.palette.mode==="dark","#FFF")}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:Cp-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:Cp-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:Je.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:ps,display:"inline-flex",lineHeight:`${ps}px`,"&:hover":{background:t.palette.secondary.light,color:Je.invertColor(t.palette.secondary.main,!0)}}),itemNameTable:{display:"inline-block",pl:"10px",fontSize:"1rem",verticalAlign:"top",flexGrow:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden","@media screen and (max-width: 500px)":{textAlign:"end",direction:"rtl"}},itemNameFolderTable:{fontWeight:"bold"},itemSizeTable:{display:"inline-block",width:60,verticalAlign:"top",textAlign:"right",whiteSpace:"nowrap"},itemAccessTable:{verticalAlign:"top",width:60,textAlign:"right",paddingRight:5,display:"flex",justifyContent:"center"},itemImageTable:{display:"inline-block",width:30,marginTop:1,objectFit:"contain",maxHeight:30},itemNoImageTable:{marginTop:6},itemIconTable:{display:"inline-block",marginTop:1,width:30,height:30},itemFolderTable:{},itemFolderTemp:{opacity:.4},itemFolderIconTable:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:No,height:ps,minWidth:No,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${No/2}px`,"&:hover":{backgroundColor:t.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.08)"},"& span":{pt:"9px"},"& svg":{width:14,height:14,fontSize:"1rem",mt:"-3px",verticalAlign:"middle",color:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:No,height:ps,minWidth:No,padding:0},itemAclButtonTable:{width:No,height:ps,minWidth:No,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:No,height:ps,minWidth:No,verticalAlign:"top",padding:0,"& svg":{width:18,height:18,fontSize:"1.5rem"}},uploadDiv:{top:0,zIndex:1,bottom:0,left:0,right:0,position:"absolute",opacity:.9,textAlign:"center",background:"#FFFFFF"},uploadDivDragging:{opacity:1},uploadCenterDiv:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.palette.mode==="dark"?"#222":"#CCC",display:"flex",alignItems:"center",justifyContent:"center"}),uploadCenterIcon:{width:"25%",height:"25%"},uploadCenterText:{fontSize:24,fontWeight:"bold"},uploadCloseButton:{zIndex:2,position:"absolute",top:30,right:30},uploadCenterTextAndIcon:{position:"absolute",height:"30%",width:"100%",margin:"auto",opacity:.3},menuButtonExpertActive:{color:"#c00000"},menuButtonRestrictActive:{color:"#c05000"},pathDiv:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText,borderRadius:"4px 4px 0 0"}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer",color:"white","&:hover":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:"#FFF"},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},mi="0_userdata.0";function ds(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function b1(t){const e=Je.getFileExtension(t);return!!(e?.toLowerCase().match(/[a-z]+/)&&e.length<5)}const kt="Table",x1="Tile";function e8(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.named.startsWith(`${this.limitToPath}/`)||d===this.limitToPath||this.limitToPath?.startsWith(`${d}/`)))}catch{n=[]}let o;this.props.showViewTypeButton?o=this.localStorage.getItem("files.viewType")||kt:o=kt;let a=this.props.selected||this.localStorage.getItem("files.selected")||mi,l;if(e.restrictToFolder){a=e.restrictToFolder,l=e.restrictToFolder;const d=e.restrictToFolder.split("/");n=[];let f="";for(let g=0;g{if(this.state.viewType===kt&&!this.findItem(this.state.selected)){const r=this.state.selected.split("/");for(;r.length&&!this.findItem(r.join("/"));)r.pop();let n;r.length?n=r.join("/"):n=mi,this.setState({selected:n,path:n,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){this.mounted&&document.getElementById(this.state.selected)?.scrollIntoView()}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`)),this.browseList=[],this.browseListRunning=!1,this.supportSubscribes=await this.props.socket.checkFeatureSupported("BINARY_STATE_EVENT"),this.supportSubscribes&&await this.props.socket.subscribeFiles("*","*",this.onFileChange)}componentWillUnmount(){this.supportSubscribes&&this.props.socket.unsubscribeFiles("*","*",this.onFileChange),this.mounted=!1,this.browseList=null,this.browseListRunning=!1,Object.values(this._tempTimeout).forEach(e=>{e&&clearTimeout(e)}),this._tempTimeout={}}browseFoldersCb(e,r,n){if(!e?.length)n(r);else{const o=e.shift();o?this.browseFolder(o,r).catch(a=>console.error(`Cannot read folder ${o}: ${a.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(e,r,n),0)}):setTimeout(()=>this.browseFoldersCb(e,r,n),0)}}browseFolders(e,r){let n;return r?n=r:(n={},Object.keys(this.state.folders).forEach(o=>n[o]=this.state.folders[o])),e?.length?new Promise(o=>{this.browseFoldersCb(e,n,o)}):Promise.resolve(n)}readDirSerial(e,r){return new Promise((n,o)=>{this.browseList&&(this.browseList.push({resolve:n,reject:o,adapter:e,relPath:r}),this.browseListRunning||this.processBrowseList())})}processBrowseList(e=0){!this.browseListRunning&&this.browseList&&this.browseList.length&&(this.browseListRunning=!0,this.browseList.length>10?this.browseList.length%10||this.setState({queueLength:this.browseList.length}):this.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath||"").then(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.resolve;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(r=>{if(this.browseList){const n=this.browseList.shift();if(n){const o=n.reject;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,o&&o(r),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(e,r,n,o){let a;if(r?a=r:(a={},Object.keys(this.state.folders).forEach(u=>{a[u]=this.state.folders[u]})),a[e]&&!o)return n?Promise.resolve(a):new Promise((u,m)=>{Promise.all(a[e].filter(y=>y.folder).map(y=>this.browseFolder(y.id,a,!0).catch(()=>{}))).then(()=>u(a)).catch(y=>m(new Error(y)))});if(!e||e==="/"){try{let u=await this.props.socket.readMetaItems();const m=[];let y=null;if(this.state.restrictToFolder){const x=this.state.restrictToFolder.split("/")[0];u=u.filter(E=>E._id===x)}else this.state.expertMode||(u=u.filter(x=>!x._id.endsWith(".admin")));const w=u.findIndex(x=>x._id==="system.meta.uuid");if(w!==-1&&u.splice(w,1),u.forEach(x=>{if(this.limitToObjectID&&this.limitToObjectID!==x._id)return;const E={id:x._id,name:x._id,title:x.common&&x.common.name||x._id,meta:!0,from:x.from,ts:x.ts,color:x.common&&x.common.color,icon:x.common&&x.common.icon,folder:!0,acl:x.acl,level:0};E.id===mi?y=E:m.push(E)}),m.sort((x,E)=>x.id>E.id?1:x.idx.folder).map(x=>this.browseFolder(x.id,a,!0).catch(()=>{}))).then(()=>a)}catch(u){const m=u;this.initialReadFinished&&window.alert(`Cannot read meta items: ${m.message}`),a[e||"/"]=[]}return a}const l=e.split("/"),c=l.length,d=l.shift(),f=l.join("/");let g;try{g=await this.readDirSerial(d||"",f)}catch(u){if(u==="Not exists"&&d==="0_userdata.0")g=[];else throw u}try{const u=[];if(g.forEach(m=>{const y={id:`${e}/${m.file}`,ext:Je.getFileExtension(m.file),folder:m.isDir,name:m.file,size:m.stats?.size,modified:m.modifiedAt,acl:m.acl,level:c};this.state.restrictToFolder?(y.folder&&(y.id.startsWith(`${this.state.restrictToFolder}/`)||y.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${y.id}/`))||y.id.startsWith(`${this.state.restrictToFolder}/`))&&u.push(y):this.limitToPath?(y.folder&&(y.id.startsWith(`${this.limitToPath}/`)||y.id===this.limitToPath||this.limitToPath.startsWith(`${y.id}/`))||y.id.startsWith(`${this.limitToPath}/`))&&u.push(y):u.push(y)}),u.sort(e8),a[e]=u,!n)return Promise.all(u.filter(m=>m.folder).map(m=>this.browseFolder(m.id,a,!0))).then(()=>a)}catch(u){const m=u;this.initialReadFinished&&window.alert(`Cannot read ${d}${f?`/${f}`:""}: ${m?.message}`),a[e]=[]}return a}toggleFolder(e,r){r?.stopPropagation();const n=[...this.state.expanded],o=n.indexOf(e.id);o===-1?(n.push(e.id),n.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(n)),e.temp?this.setState({expanded:n}):this.browseFolder(e.id).then(a=>this.setState({expanded:n,folders:a})).catch(a=>window.alert(a===Z6?this.props.t('ra_Cannot find "%s"',e.id):this.props.t('ra_Cannot read "%s"',e.id)))):(n.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(n)),this.setState({expanded:n}))}onFileChange=(e,r,n)=>{const o=`${e}/${r}`,a=o.lastIndexOf("/"),l=o.substring(0,a);console.log(`File changed ${o}[${n}]`),this.state.folders[l]&&(this._tempTimeout[l]&&clearTimeout(this._tempTimeout[l]),this._tempTimeout[l]=setTimeout(()=>{delete this._tempTimeout[l],this.browseFolder(l,null,!1,!0).then(c=>this.setState({folders:c})).catch(c=>console.error(`Cannot read folder: ${c.message}`))},300))};changeFolder(e,r){e?.stopPropagation(),this.lastSelect=Date.now();let n=r||ds(this.state.currentDir);if(n==="/"&&(n=""),this.state.viewType==="Tile"&&this.refFileDiv.current?.scrollTop&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem("files.currentDir",n),r&&e&&(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)){this.setState({selected:n});return}if(n&&!this.state.folders[n]){this.browseFolder(n).then(o=>this.setState({folders:o,path:n,currentDir:n,selected:n,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(o=>console.error(`Cannot read folder: ${o.message}`));return}this.setState({currentDir:n,selected:n,path:n,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(""),this.state.viewType==="Tile"&&this.scrollPositions[this.state.currentDir]){const o=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=o)}})}select(e,r,n){r&&r.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",e),this.setState({selected:e,path:e,pathFocus:!1},()=>{if(this.props.onSelect){const o=Je.getFileExtension(e);(!this.props.filterFiles||o&&this.props.filterFiles.includes(o))&&(!this.state.filterByType||o&&Pr[this.state.filterByType].includes(o))?this.props.onSelect(e,!1,!!this.state.folders[e]):this.props.onSelect("")}n&&n()})}getText(e){if(e)return typeof e=="object"?e[this.props.lang]||e.en||void 0:e}renderFolder(e,r){if(this.state.filterEmpty&&!this.state.folders[e.id]?.length&&e.id!==mi&&!e.temp)return null;const n=r?NX:gv,o=this.state.viewType===kt?e.level*this.levelPadding:0,a=e.name===mi,l=a||e.name==="vis.0"||e.name==="vis-2.0",c=Je.getStyle(this.props.theme,we[`itemFolderIcon${this.state.viewType}`],l&&we.specialFolder);return v.createElement(ft,{component:"div",key:e.id,id:e.id,style:this.state.viewType===kt?{marginLeft:o,width:`calc(100% - ${o}px)`}:void 0,onClick:d=>this.state.viewType===kt?this.select(e.id,d):this.changeFolder(d,e.id),onDoubleClick:d=>this.state.viewType===kt&&this.toggleFolder(e,d),title:this.getText(e.title),className:"browserItem",sx:Je.getStyle(this.props.theme,we[`item${this.state.viewType}`],we[`itemFolder${this.state.viewType}`],this.state.selected===e.id?we.itemSelected:{},e.temp?we.itemFolderTemp:{})},v.createElement(n,{style:c,onClick:this.state.viewType===kt?d=>this.toggleFolder(e,d):void 0}),v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,we[`itemName${this.state.viewType}`],we[`itemNameFolder${this.state.viewType}`])},a?this.props.t("ra_User files"):e.name),v.createElement(ft,{component:"div",style:we[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.state.folders[e.id]?this.state.folders[e.id].length:""),v.createElement(ft,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode?this.formatAcl(e.acl):null),this.state.viewType===kt&&this.props.expertMode?v.createElement(ft,{component:"div",sx:{...we.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===kt&&this.props.allowDownload?v.createElement("div",{style:we[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===kt&&this.props.allowDelete&&this.state.folders[e.id]&&this.state.folders[e.id].length?v.createElement(cr,{"aria-label":"delete",onClick:d=>{d.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:we[`itemDeleteButton${this.state.viewType}`],size:"large"},v.createElement(Lp,{fontSize:"small"})):this.state.viewType===kt&&this.props.allowDelete?v.createElement(ft,{component:"div",sx:we[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return v.createElement(ft,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:e=>this.changeFolder(e),title:this.props.t("ra_Back to %s",ds(this.state.currentDir)),className:"browserItem",sx:Je.getStyle(this.props.theme,we[`item${this.state.viewType}`],we[`itemFolder${this.state.viewType}`])},v.createElement(gv,{style:Je.getStyle(this.props.theme,we[`itemFolderIcon${this.state.viewType}`])}),v.createElement(P$,{sx:we.itemFolderIconBack}),v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,we[`itemName${this.state.viewType}`],we[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(e){return v.createElement("div",{style:we[`itemSize${this.state.viewType}`]},e||e===0?Je.formatBytes(e):"")}formatAcl(e){const r=e?e.permissions||e.file:0;let n;return r?n=r.toString(16).padStart(3,"0"):n="",v.createElement("div",{style:we[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?v.createElement(cr,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:we[`itemAclButton${this.state.viewType}`]},n||"---"):n||"---")}getFileIcon(e){switch(e){case"json":case"json5":return v.createElement(A$,{style:we[`itemIcon${this.state.viewType}`]});case"css":return v.createElement(D$,{style:we[`itemIcon${this.state.viewType}`]});case"js":case"ts":return v.createElement(uy,{style:we[`itemIcon${this.state.viewType}`]});case"html":case"md":return v.createElement(nC,{style:we[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return v.createElement(Q$,{style:we[`itemIcon${this.state.viewType}`]});default:return v.createElement(oC,{style:we[`itemIcon${this.state.viewType}`]})}}static getEditFile(e){switch(e){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":case"csv":return!0;default:return!1}}setStateBackgroundImage=()=>{const e=["light","dark","colored","delete"];this.setState(({backgroundImage:r})=>r&&e.indexOf(r)!==-1&&e.length-1!==e.indexOf(r)?(this.localStorage.setItem("files.backgroundImage",e[e.indexOf(r)+1]),{backgroundImage:e[e.indexOf(r)+1]}):(this.localStorage.setItem("files.backgroundImage",e[0]),{backgroundImage:e[0]}))};getStyleBackgroundImage=()=>{switch(this.state.backgroundImage){case"light":return we.backgroundImageLight;case"dark":return we.backgroundImageDark;case"colored":return we.backgroundImageColored;case"delete":return null;default:return null}};renderFile(e){const r=this.state.viewType===kt?e.level*this.levelPadding:0,n=Je.getFileExtension(e.name);return v.createElement(ft,{component:"div",key:e.id,id:e.id,onDoubleClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Pr[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},onClick:o=>this.select(e.id,o),style:this.state.viewType===kt?{marginLeft:r,width:`calc(100% - ${r}px)`}:void 0,className:"browserItem",sx:Je.getStyle(this.props.theme,we[`item${this.state.viewType}`],we[`itemFile${this.state.viewType}`],this.state.selected===e.id?we.itemSelected:void 0)},n&&Pr.images.includes(n)?this.state.fileErrors.includes(e.id)?v.createElement(t2,{style:{...we[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...we[`itemNoImage${this.state.viewType}`]}}):v.createElement(Qd,{onError:o=>{o.target.onerror=null;const a=[...this.state.fileErrors];a.includes(e.id)||(a.push(e.id),this.setState({fileErrors:a}))},style:{...we[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+e.id,alt:e.name}):this.getFileIcon(n),v.createElement(ft,{component:"div",sx:we[`itemName${this.state.viewType}`]},e.name),v.createElement(ft,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(e.size)),v.createElement(ft,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode?this.formatAcl(e.acl):null),v.createElement(ft,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode&&r2.getEditFile(n)?v.createElement(cr,{"aria-label":"edit",onClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&Pr[this.state.filterByType].includes(e.ext))&&this.props.onSelect(e.id,!0,!!this.state.folders[e.id]):this.setState({viewer:this.imagePrefix+e.id,formatEditFile:n})},sx:we.itemDeleteButtonTable,size:"large"},v.createElement(j$,{fontSize:"small"})):v.createElement(ft,{component:"div",sx:we[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===kt&&this.props.allowDownload?v.createElement(ft,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:we.itemDownloadButtonTable,tabIndex:0,download:e.id,href:this.imagePrefix+e.id,onClick:o=>o.stopPropagation()},v.createElement(rL,null)):null,this.state.viewType===kt&&this.props.allowDelete&&e.id!=="vis.0/"&&e.id!=="vis-2.0/"&&e.id!==mi?v.createElement(cr,{"aria-label":"delete",onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:we[`itemDeleteButton${this.state.viewType}`],size:"large"},v.createElement(Lp,{fontSize:"small"})):this.state.viewType===kt&&this.props.allowDelete?v.createElement(ft,{component:"div",sx:we[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(e){if(this.state.folders?.[e]){if(this.state.viewType===x1){const n=[];return e&&e!=="/"&&n.push(this.renderBackFolder()),this.state.folders[e].forEach(o=>{o.folder?n.push(this.renderFolder(o)):(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&Pr[this.state.filterByType].includes(o.ext))&&n.push(this.renderFile(o))}),n}const r=[];return this.state.folders[e].forEach(n=>{if(n.folder){const o=this.state.expanded.includes(n.id),a=this.renderFolder(n,o);if(Array.isArray(a)?a.forEach(l=>r.push(l)):r.push(a),this.state.folders[n.id]&&o){const l=this.renderItems(n.id);Array.isArray(l)?l.forEach(c=>r.push(c)):r.push(l)}}else(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Pr[this.state.filterByType].includes(n.ext))&&r.push(this.renderFile(n))}),r}return v.createElement("div",{style:{position:"relative"}},v.createElement(Vv,{key:e,color:"secondary",size:24}),v.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const e=this.props.showTypeSelector?Tp[this.state.filterByType||"all"]||Tp.all:null,r=this.findFirstFolder(this.state.selected);return v.createElement(ly,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?v.createElement(cr,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...we.menuButton,...this.state.restrictToFolder?we.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},v.createElement(q$,{fontSize:"small"})):null,this.props.showExpertButton?v.createElement(cr,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...we.menuButton,...this.state.expertMode?we.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},v.createElement(DX,null)):null,this.props.showViewTypeButton?v.createElement(cr,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:we.menuButton,"aria-label":"view mode",onClick:()=>{const n=this.state.viewType===kt?x1:kt;this.localStorage.setItem("files.viewType",n);let o=this.state.selected;b1(o)&&(o=ds(o)),this.setState({viewType:n,currentDir:o},()=>{this.state.viewType===kt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==kt?v.createElement(Y$,{fontSize:"small"}):v.createElement(cL,{fontSize:"small"})):null,v.createElement(cr,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:we.menuButton,color:this.state.filterEmpty?"secondary":"inherit","aria-label":"filter empty",onClick:()=>{this.localStorage.setItem("file.empty",this.state.filterEmpty?"false":"true"),this.setState({filterEmpty:!this.state.filterEmpty})},size:"small"},v.createElement(H$,{fontSize:"small"})),v.createElement(cr,{edge:"start",title:this.props.t("ra_Reload files"),style:we.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},v.createElement(eL,{fontSize:"small"})),this.props.allowCreateFolder?v.createElement(cr,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:we.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},v.createElement(z$,{fontSize:"small"})):null,this.props.allowUpload?v.createElement(cr,{edge:"start",disabled:!this.state.selected||!r||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:we.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},v.createElement(C4,{fontSize:"small"})):null,this.props.showTypeSelector&&e?v.createElement($p,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:we.tooltip}}},v.createElement(cr,{size:"small",onClick:n=>this.setState({showTypesMenu:n.target})},v.createElement(e,{fontSize:"small"}))):null,this.state.showTypesMenu?v.createElement(QE,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(Tp).map(n=>{const o=Tp[n];return v.createElement(ur,{key:n,selected:this.state.filterByType===n,onClick:()=>{n==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",n),this.setState({filterByType:n,showTypesMenu:null}))}},v.createElement(GD,null,v.createElement(o,{fontSize:"small"})),v.createElement(QD,null,this.props.t(`ra_fileType_${n}`)))})):null,v.createElement($p,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:we.tooltip}}},v.createElement(cr,{color:"inherit",edge:"start",style:we.menuButton,onClick:this.setStateBackgroundImage,size:"small"},v.createElement(cy,{fontSize:"small"}))),this.state.viewType!==kt&&this.props.allowDelete?v.createElement($p,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:we.tooltip}}},v.createElement("span",null,v.createElement(cr,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===mi,color:"inherit",edge:"start",style:we.menuButton,onClick:n=>{n.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},v.createElement(Lp,{fontSize:"small"})))):null)}findItem(e,r){if(r=r||this.state.folders,!r)return null;const n=e.split("/");n.pop();const o=n.join("/")||"/";return r[o]&&r[o].find(a=>a.id===e)||null}renderInputDialog(){if(this.state.addFolder){const e=this.findFirstFolder(this.state.selected);return e?v.createElement(AX,{key:"inputDialog",applyText:this.props.t("ra_Create"),cancelText:this.props.t("ra_Cancel"),titleText:this.props.t("ra_Create new folder in %s",this.state.selected),promptText:this.props.t("ra_If no file will be created in the folder, it will disappear after the browser closed"),labelText:this.props.t("ra_Folder name"),verify:r=>this.state.folders[e].find(n=>n.name===r)?"":this.props.t("ra_Duplicate name"),onClose:r=>{if(r){const n={};Object.keys(this.state.folders).forEach(c=>n[c]=this.state.folders[c]);const o=this.findItem(e),a=`${e}/${r}`;n[e].push({id:a,level:(o?.level||0)+1,name:r,folder:!0,temp:!0}),n[e].sort(e8),n[a]=[];const l=[...this.state.expanded];l.includes(e)||(l.push(e),l.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(l)),this.setState({addFolder:!1,folders:n,expanded:l},()=>this.select(a))}else this.setState({addFolder:!1})},replace:r=>r.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const e=window.document.getElementsByClassName("browserItem");for(let r=0;rthis.setState({uploadFile:!1})},v.createElement(fa,null)),v.createElement(Jd,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:e=>{let r=e.length;e.forEach(n=>{const o=new FileReader;o.onabort=()=>console.log("file reading was aborted"),o.onerror=()=>console.log("file reading has failed"),o.onload=()=>{const a=this.findFirstFolder(this.state.selected);if(!a)window.alert(this.props.t("ra_Invalid parent folder!"));else{const l=`${a}/${n.name}`;this.uploadFile(l,o.result).then(()=>{--r||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const c=[...this.state.expanded];c.includes(a)||(c.push(a),c.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(c))),this.setState({expanded:c},()=>this.select(l))}else setTimeout(()=>this.browseFolder(a,null,!1,!0).then(c=>{const d=[...this.state.expanded];d.includes(a)||(d.push(a),d.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(d))),this.setState({folders:c,expanded:d},()=>this.select(l))}),500)})})}},o.readAsArrayBuffer(n)})}},({getRootProps:e,getInputProps:r})=>v.createElement("div",{style:{...we.uploadDiv,...this.state.uploadFile==="dragging"?we.uploadDivDragging:void 0},...e()},v.createElement("input",{...r()}),v.createElement(ft,{component:"div",sx:we.uploadCenterDiv},v.createElement("div",{style:we.uploadCenterTextAndIcon},v.createElement(C4,{style:we.uploadCenterIcon}),v.createElement("div",{style:we.uploadCenterText},this.state.uploadFile==="dragging"?this.props.t("ra_Drop file here"):this.props.t("ra_Place your files here or click here to open the browse dialog"))))))]:null}deleteRecursive(e){const r=this.findItem(e);if(r?.folder)return(this.state.folders[e]?Promise.all(this.state.folders[e].map(a=>this.deleteRecursive(a.id))):Promise.resolve()).then(()=>{if(r.level>=1){const a=e.split("/"),l=a.shift();this.props.socket.deleteFolder(l||"",a.join("/")).then(()=>{const c=JSON.parse(JSON.stringify(this.state.folders));delete c[r.id];const d=ds(r.id),f=c[d];if(f){const g=f.findIndex(u=>u.id===r.id);g!==-1&&f.splice(g,1),this.select(d,null,()=>this.setState({folders:c}))}})}});const n=e.split("/"),o=n.shift();return n.length?this.props.socket.deleteFile(o||"",n.join("/")).catch(a=>window.alert(`Cannot delete file: ${a}`)):Promise.resolve()}deleteItem(e){e=e||this.state.deleteItem,this.state.suppressDeleteConfirm&&(this.suppressDeleteConfirm=Date.now()+6e4*5),this.setState({deleteItem:"",suppressDeleteConfirm:!1},()=>this.deleteRecursive(e).then(()=>{const r={},n=this.state.expanded.indexOf(e);if(n!==-1){const o=[...this.state.expanded];o.splice(n,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.expanded=o}if(this.state.selected===e){const o=this.state.selected.split("/");o.pop(),r.selected=o.join("/")}if(this.supportSubscribes)this.setState(r);else{const o=this.findFirstFolder(e),a={};Object.keys(this.state.folders).forEach(l=>{l!==o&&!l.startsWith(`${o}/`)&&(a[l]=this.state.folders[l])}),r.folders=a,this.setState(r,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],a).then(l=>this.setState({folders:l})).catch(l=>console.error(l))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?v.createElement(Ho,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},v.createElement(Uo,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),v.createElement(Wo,null,v.createElement(Dd,null,this.props.t("ra_Are you sure?")),v.createElement(pt,{control:v.createElement(Lr,{checked:this.state.suppressDeleteConfirm,onChange:()=>{this.setState({suppressDeleteConfirm:!this.state.suppressDeleteConfirm})}}),label:this.props.t("ra_no confirm for 5 mins")})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),v.createElement(Vt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const e=this.props.FileViewer||iV;return this.state.viewer?v.createElement(e,{supportSubscribes:this.supportSubscribes||void 0,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile||void 0,themeType:this.props.themeType||"light",setStateBackgroundImage:this.setStateBackgroundImage,getStyleBackgroundImage:this.getStyleBackgroundImage,t:this.props.t,socket:this.props.socket,onClose:()=>this.setState({viewer:"",formatEditFile:""})}):null}renderError(){return this.state.errorText?v.createElement(SL,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(e){this.cacheFolders||=JSON.parse(JSON.stringify(this.state.folders));let r;e.forEach(n=>{const o=this.findItem(n.id,this.cacheFolders);o&&JSON.stringify(o.acl)!==JSON.stringify(n.acl)&&(o.acl=n.acl,r=!0)}),r&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const n=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:n})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let e=this.state.path;b1(this.state.path)&&(e=ds(this.state.path)),new Promise(r=>{this.state.folders[e]?r(!0):this.browseFolder(e).then(n=>this.setState({folders:n},()=>r(!0))).catch(n=>this.setState({errorText:n===Z6?this.props.t('ra_Cannot find "%s"',e):this.props.t('ra_Cannot read "%s"',e)}))}).then(r=>r&&this.setState({selected:this.state.path,currentDir:e,pathFocus:!1})).catch(r=>console.error(r))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const e=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),r=[];return v.createElement(yI,{style:{paddingLeft:8,color:"#FFF"}},e.map((n,o)=>{n&&r.push(n);const a=r.join("/");return othis.changeFolder(l,a||"/")},n||this.props.t("ra_Root")):v.createElement("div",{style:we.pathDivBreadcrumbSelected,key:`${this.state.selected}_${o}`,onClick:()=>this.setState({pathFocus:!0})},n)}))}renderPath(){return v.createElement(ft,{component:"div",key:"path",sx:we.pathDiv},this.state.pathFocus?v.createElement(lo,{value:this.state.path,onKeyDown:e=>{e.key==="Enter"?this.changeToPath():e.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:v.createElement(cr,{size:"small",onClick:()=>this.changeToPath()},v.createElement(G$,null)),onBlur:()=>this.changeToPath(),onChange:e=>this.setState({path:e.target.value}),style:we.pathDivInput}):this.renderBreadcrumb())}render(){return this.props.ready?(this.state.loadAllFolders&&!this.foldersLoading&&(this.foldersLoading=!0,setTimeout(()=>{this.setState({loadAllFolders:!1,folders:{}},()=>{this.foldersLoading=!1,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`))})},300)),v.createElement("div",{style:{...we.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===x1?this.renderPath():null,v.createElement("div",{style:{...we.filesDiv,...we[`filesDiv${this.state.viewType}`]},onClick:e=>{this.state.viewType!==kt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(e,this.state.currentDir||"/"):e.stopPropagation())},id:"dev",ref:this.refFileDiv},this.state.viewType===kt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==kt?v.createElement("div",{style:we.filesDivHint},this.props.t("ra_select_folder_hint")):null),this.props.allowUpload?this.renderInputDialog():null,this.props.allowUpload?this.renderUpload():null,this.props.allowDelete?this.renderDeleteDialog():null,this.props.allowView?this.renderViewDialog():null,this.state.modalEditOfAccess&&this.props.modalEditOfAccessControl?this.props.modalEditOfAccessControl(this):null,this.renderError())):v.createElement(DD,null)}}const aV=e2()(r2);function sV(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r?.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function lV(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}class Bp extends _.Component{svg;static REMOTE_SERVER=window.location.hostname.includes("iobroker.in");static REMOTE_PREFIX=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);constructor(e){super(e),this.state={svg:!!this.props.src?.startsWith("data:"),created:!0,color:this.props.color||"",src:this.props.src||"",imgError:!1,showError:!!this.props.showError},this.svg=this.state.svg&&this.state.src?this.getSvgFromData(this.state.src):null}static getDerivedStateFromProps(e,r){const n={};let o=!1;return e&&r&&e.src!==r.src&&(n.src=e.src,n.svg=e.src?.startsWith("data:"),n.created=!1,o=!0),e&&r&&e.color!==r.color&&(n.color=e.color,n.created=!1,o=!0),e&&r&&e.showError!==r.showError&&(n.showError=e.showError,o=!0),o?n:null}getSvgFromData(e){const r="data:image/svg+xml;base64,";if(!e.startsWith(r))return null;e=e.substring(r.length);try{e=atob(e);const n=sV(e),o=n.innerHTML,a=lV(n.attributes);return n.remove(),v.createElement(ft,{component:"svg",sx:this.props.sx,className:this.props.className,style:this.state.color?{color:this.state.color}:void 0,...a,dangerouslySetInnerHTML:{__html:o}})}catch{}return null}render(){if(this.state.svg)return this.state.created||setTimeout(()=>{this.svg=this.state.src?this.getSvgFromData(this.state.src):null,this.setState({created:!0})},50),this.svg;if(this.state.src){if(this.state.imgError||!this.state.src)return v.createElement(t2,{className:this.props.className});if(Bp.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let e=(this.props.imagePrefix||"")+this.state.src;return e.startsWith("./")?e=Bp.REMOTE_PREFIX+e.substring(2):e.startsWith("/")||(e=Bp.REMOTE_PREFIX+e),v.createElement(ft,{component:"img",sx:this.props.sx,className:this.props.className,src:`https://remote-files.iobroker.in${e}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return v.createElement(ft,{component:"img",sx:this.props.sx,className:this.props.className,src:(this.props.imagePrefix||"")+this.state.src,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return null}}var w1={},Zl={},Qi={},t8;function n2(){if(t8)return Qi;t8=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.StateType=Qi.Types=void 0;var t;(function(r){r.unknown="unknown",r.airCondition="airCondition",r.blind="blind",r.blindButtons="blindButtons",r.button="button",r.buttonSensor="buttonSensor",r.camera="camera",r.chart="chart",r.cie="cie",r.ct="ct",r.dimmer="dimmer",r.door="door",r.fireAlarm="fireAlarm",r.floodAlarm="floodAlarm",r.gate="gate",r.hue="hue",r.humidity="humidity",r.illuminance="illuminance",r.image="image",r.info="info",r.instance="instance",r.light="light",r.location="location",r.locationOne="locationOne",r.lock="lock",r.media="media",r.motion="motion",r.percentage="percentage",r.rgb="rgb",r.rgbSingle="rgbSingle",r.rgbwSingle="rgbwSingle",r.slider="slider",r.socket="socket",r.temperature="temperature",r.thermostat="thermostat",r.vacuumCleaner="vacuumCleaner",r.volume="volume",r.volumeGroup="volumeGroup",r.warning="warning",r.weatherCurrent="weatherCurrent",r.weatherForecast="weatherForecast",r.window="window",r.windowTilt="windowTilt"})(t||(Qi.Types=t={}));var e;return(function(r){r.Number="number",r.String="string",r.Boolean="boolean"})(e||(Qi.StateType=e={})),Qi}var Rr={},r8;function o2(){if(r8)return Rr;r8=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.checkEnum=t,Rr.roleOrEnum=e,Rr.roleOrEnumLight=o,Rr.roleOrEnumBlind=c,Rr.roleOrEnumGate=g,Rr.roleOrEnumWindow=m,Rr.roleOrEnumDoor=x,Rr.getEnums=E,Rr.getAllStatesInChannel=k,Rr.getAllStatesInDevice=I,Rr.getObjectsBelowId=O,Rr.getFunctionEnums=R,Rr.getParentId=M;function t(T,P){let N=!1;return T&&T.forEach(D=>{const C=D.lastIndexOf(".");C!==-1&&(D=D.substring(C+1));for(const $ in P)if(Object.prototype.hasOwnProperty.call(P,$)&&P[$].find(H=>H.test(D)))return N=!0,!1}),N}function e(T,P,N,D){return T.common.role&&N?.includes(T.common.role)?!0:t(P,D)}const r={en:[/lights?/i,/lamps?/i,/ceilings?/i],de:[/licht(er)?/i,/lampen?/i,/beleuchtung(en)?/i],ru:[/свет/i,/ламп[аы]/i,/торшеры?/,/подсветк[аи]/i,/лампочк[аи]/i,/светильники?/i]},n=["switch.light","dimmer","value.dimmer","level.dimmer","sensor.light","state.light"];function o(T,P){return e(T,P,n,r)}const a={en:[/blinds?/i,/windows?/i,/shutters?/i],de:[/rollladen?/i,/fenstern?/i,/beschattung(en)?/i,/jalousien?/i],ru:[/ставни/i,/рольставни/i,/окна|окно/,/жалюзи/i]},l=["blind","level.blind","value.blind","action.stop","button.stop","button.stop.blind","button.open.blind","button.close.blind","level.tilt","value.tilt","button.tilt.open","button.tilt.close","button.tilt.stop"];function c(T,P){return e(T,P,l,a)}const d={en:[/gates?/i],de:[/^toren$/i,/^tor$/i],ru:[/ворота/i]},f=["gate","value.gate","switch.gate","action.stop","button.stop"];function g(T,P){return e(T,P,f,d)}const u=["window","state.window","sensor.window","value.window"];function m(T,P){return e(T,P,u,a)}const y={en:[/doors?/i,/gates?/i,/wickets?/i,/entry|entries/i],de:[/^türe?/i,/^tuere?/i,/^tore?$/i,/einfahrt(en)?/i,/pforten?/i],ru:[/двери|дверь/i,/ворота/i,/калитка|калитки/,/въезды?/i,/входы?/i]},w=["door","state.door","sensor.door"];function x(T,P){return e(T,P,w,y)}function E(){return{door:{roles:w,words:y},window:{roles:u,words:a},blind:{roles:l,words:a},gate:{roles:f,words:d},light:{roles:n,words:r}}}function k(T,P){const N=[],D=new RegExp(`^${P.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+$`);return T.forEach(C=>D.test(C)&&N.push(C)),N}function I(T,P){const N=[],D=new RegExp(`^${P.replace(/([$^.)([\]{}])/g,"\\$1")}\\.[^.]+\\.[^.]+$`);return T.forEach(C=>D.test(C)&&N.push(C)),N}function O(T,P){const N=[];P+=".";let D=0,C=T.length-1,$=-1;for(;D<=C;){const H=Math.floor((D+C)/2);T[H]=T.length)return N;for(let H=$;H{a[g].common.members.includes(l)&&f.push(g)}),!f.length&&((d=a[l])===null||d===void 0?void 0:d.type)==="state"){const g=(0,e.getParentId)(l);a[g]&&(a[g].type==="channel"||a[g].type==="device")&&this.enums.forEach(u=>{a[u].common.members.includes(g)&&f.push(u)})}return f.length?f:null}static copyState(a,l){const c=l||JSON.parse(JSON.stringify(a));return c.original=a.original||a,"enums"in a&&a.enums&&(c.enums=a.enums),"role"in a&&a.role&&(c.role=a.role),"channelRole"in a&&a.channelRole&&(c.channelRole=a.channelRole),c}_testOneState(a){var l,c,d,f,g,u;const m=a.objects,y=a.pattern,w=a.state,x=a.channelStates,E=a.usedIds,k=a.usedInCurrentDevice,I=a.ignoreIndicators,O=a.ignoreEnums,R=a.sortedKeys;let M=a.result,T=!1;for(const P of x)if(!(w.name==="COVER"&&M?.states.find(N=>N.id&&N.name==="COVER"))){if(w.indicator&&I){const D=P.split(".").pop()||"";if(D&&I.includes(D))continue}if(!w.indicator){if(k.includes(P))continue;if(!w.notSingle){if(!a.detectAllPossibleDevices){if(E.includes(P))continue}}}if(this._applyPattern(m,P,w,O,R)){if(M||(M=JSON.parse(JSON.stringify(r.patterns[y])),a.result=M,M?.states.forEach((N,D)=>Hn.copyState(r.patterns[y].states[D],N))),M.states.find(({id:N})=>N===P))T=!0;else for(const N of M.states)if(N.name===w.name){if(N.id){let D;a.favorId&&(P===a.favorId?D=!0:N.id===a.favorId&&(D=!1));const C=(d=(c=(l=m[N.id])===null||l===void 0?void 0:l.common)===null||c===void 0?void 0:c.role)!==null&&d!==void 0?d:"",$=(u=(g=(f=m[P])===null||f===void 0?void 0:f.common)===null||g===void 0?void 0:g.role)!==null&&u!==void 0?u:"",H=N.defaultRole;if(H&&D===void 0&&($===H?D=!0:C===H&&(D=!1)),D===void 0){const q=$.split("."),U=q.length,W=C.split("."),K=W.length;$===""||q[0]==="state"&&W[0]!=="state"?D=!1:q[0]!=="state"&&W[0]==="state"||U>K?D=!0:U1)){for(const N of x)if(N!==P&&(w.indicator||!k.includes(N)&&(w.notSingle||!E.includes(N)))&&this._applyPattern(m,N,w,O,R))if(w.indicator||k.push(N),Array.isArray(w)){const D=Hn.copyState(w[0]);D.id=N,M.states.push(D)}else{const D=Hn.copyState(w);D.id=N,M.states.push(D)}}}}return T}static findParentChannelOrDevice(a,l,c){if(!a[l])return;const d=l.split("."),f=l;if(a[l].type==="state"&&(d.pop(),l=d.join(".")),d.length<=2)return l;const g=a[l];if(g?.type==="device"||c&&g?.type==="channel")return l;if(c)return;d.pop();const u=d.join("."),m=a[u];if(!m)return g?l:f;if(m.type==="device"||d.length<=2)return u;if(g?.type==="channel")return l;d.pop();const y=d.join("."),w=a[y];return!w||w.type!=="device"&&w.type!=="channel"?u:y}static getChannelOrDeviceStates(a,l,c,d=!1,f=!1){var g;const u=(g=a[l])===null||g===void 0?void 0:g.type;switch(u){case void 0:return[...(0,e.getObjectsBelowId)(c,l)];case"state":case"channel":case"device":case"folder":if(d&&u!=="device"){const m=Hn.findParentChannelOrDevice(a,l);return m&&m!==l?[...(0,e.getObjectsBelowId)(c,m)]:[l]}if(u!=="state")return[...(0,e.getObjectsBelowId)(c,l)];if(f){const m=Hn.findParentChannelOrDevice(a,l,!0);return m&&m!==l?[...(0,e.getObjectsBelowId)(c,m)]:[l]}return[l];default:return[l]}}static patternIsAllowed(a,l,c){if(!a)return!1;if(Array.isArray(a.type)){for(let d=0;d{const f=a.indexOf(c),g=a.indexOf(d);if(f===-1||g===-1)return;const u=a.splice(f,1);a.splice(g,0,...u)}),a}_detectNext(a){var l,c,d,f;const{objects:g,id:u,_usedIdsOptional:m=[],ignoreIndicators:y,prioritizedTypes:w,detectParent:x,detectOnlyChannel:E,allowedTypes:k,excludedTypes:I,_keysOptional:O,detectAllPossibleDevices:R}=a;let{_patternList:M}=a;a._usedIdsOptional=m;const T=Hn.getChannelOrDeviceStates(g,u,O||[],x,E);if(!(!((l=g[u])===null||l===void 0)&&l.common)&&!T.length)return null;if((c=a._checkedPatterns)!==null&&c!==void 0||(a._checkedPatterns=[]),!M){const D=Object.keys(r.patterns).filter(C=>Hn.patternIsAllowed(r.patterns[C],k,I));M=w?this.sortTypes(D,w):D,a._patternList=M}const P={objects:g,channelStates:T,usedIds:m,ignoreIndicators:y||[],pattern:"unknown",usedInCurrentDevice:[],state:{},ignoreEnums:!!a.ignoreEnums,sortedKeys:O,favorId:a.detectParent?void 0:u,detectAllPossibleDevices:R},N=(d=g[u])===null||d===void 0?void 0:d.type;for(const D of M){if(a._checkedPatterns.includes(D))continue;a._checkedPatterns.push(D),delete P.result,P.pattern=D,P.usedInCurrentDevice=[];for(const $ of r.patterns[D].states){let H=!1;if(P.state=$,this._testOneState(P)&&(H=!0),$.required&&!H){delete P.result;break}}if(!Hn.allRequiredStatesFound(P))continue;P.usedInCurrentDevice.forEach($=>m.push($));let C;if(N!=="device"){const $=(f=Hn.findParentChannelOrDevice(g,u))!==null&&f!==void 0?f:u;if(g[$]&&(g[$].type==="channel"||g[$].type==="device")){C=(0,e.getObjectsBelowId)(O,$);for(const H of C)P.result.states.forEach((q,U)=>{!q.id&&(q.indicator||q.searchInParent)&&!q.noDeviceDetection&&this._applyPattern(g,H,q.original,!!a.ignoreEnums,P.sortedKeys)&&P.result&&(P.result.states[U].id=H)})}}if(P.result.states.forEach($=>Hn.cleanState($,P.objects)),a.limitTypesToOneOf){for(const $ of a.limitTypesToOneOf)if($.includes(D))for(const H of $)H===D||a._checkedPatterns.includes(H)||a._checkedPatterns.push(H)}return P.result}return null}detect(a){var l;const{objects:c,id:d,ignoreCache:f,detectAllPossibleDevices:g}=a;let{_keysOptional:u,_usedIdsOptional:m}=a;if(!f&&this.cache[d]){const{allowedTypes:x=[],excludedTypes:E=[]}=a;if(!x.length&&!E.length)return this.cache[d];const k=this.cache[d].filter(({type:I})=>x.includes(I)&&!E.includes(I));if(k.length)return k}u?a._keysOptionalSorted||u.sort():(u=Object.keys(c),u.sort(),a._keysOptional=u),m&&!a.detectParent&&(m=[],a._usedIdsOptional=m),a.ignoreEnums===void 0&&((l=a.allowedTypes)===null||l===void 0?void 0:l.length)===1&&(a.ignoreEnums=!0),g&&(a.excludedTypes||(a.excludedTypes=[]),a.excludedTypes.includes(t.Types.info)||a.excludedTypes.push(t.Types.info)),a._checkedPatterns=[];const y=[];let w;for(;w=this._detectNext(a);)y.push(w),a.detectAllPossibleDevices&&(a._usedIdsOptional=[]);return y.sort((x,E)=>{if(x.type===t.Types.info&&E.type!==t.Types.info)return 1;if(E.type===t.Types.info&&x.type!==t.Types.info)return-1;const k=x.states.find(M=>M.id===d&&M.required)?1:0,I=E.states.find(M=>M.id===d&&M.required)?1:0;if(k!==I)return I-k;if(!k){const M=x.states.find(P=>P.id===d)?1:0,T=E.states.find(P=>P.id===d)?1:0;if(M!==T)return T-M}const O=x.states.filter(M=>M.id).length;return E.states.filter(M=>M.id).length-O}),this.cache[d]=y.length?y:null,this.cache[d]}static getPatterns(){const a={};return Object.keys(r.patterns).forEach(l=>{const c=JSON.parse(JSON.stringify(r.patterns[l]));c.states.forEach((d,f)=>{const g=r.patterns[l].states[f];g.role&&(c.states[f].role=g.role.toString()),g.enums&&(c.states[f].enums=!0)}),a[l]=c}),a}};return Zl.ChannelDetector=n,n.getEnums=e.getEnums,Zl}var i8;function pV(){return i8||(i8=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.StateType=t.Types=t.roleOrEnumGate=t.roleOrEnumDoor=t.roleOrEnumWindow=t.roleOrEnumBlind=t.roleOrEnumLight=void 0;const e=uV();var r=o2();Object.defineProperty(t,"roleOrEnumLight",{enumerable:!0,get:function(){return r.roleOrEnumLight}}),Object.defineProperty(t,"roleOrEnumBlind",{enumerable:!0,get:function(){return r.roleOrEnumBlind}}),Object.defineProperty(t,"roleOrEnumWindow",{enumerable:!0,get:function(){return r.roleOrEnumWindow}}),Object.defineProperty(t,"roleOrEnumDoor",{enumerable:!0,get:function(){return r.roleOrEnumDoor}}),Object.defineProperty(t,"roleOrEnumGate",{enumerable:!0,get:function(){return r.roleOrEnumGate}}),t.default=e.ChannelDetector;var n=n2();Object.defineProperty(t,"Types",{enumerable:!0,get:function(){return n.Types}}),Object.defineProperty(t,"StateType",{enumerable:!0,get:function(){return n.StateType}})})(w1)),w1}var ot=pV(),bT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a8=v.createContext&&v.createContext(bT),dV=["attr","size","title"];function fV(t,e){if(t==null)return{};var r,n,o=hV(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;nv.createElement(e.tag,ud({key:r},e.attr),xT(e.child)))}function Zt(t){return e=>v.createElement(yV,cd({attr:ud({},t.attr)},e),xT(t.child))}function yV(t){var e=r=>{var{attr:n,size:o,title:a}=t,l=fV(t,dV),c=o||r.size||"1em",d;return r.className&&(d=r.className),t.className&&(d=(d?d+" ":"")+t.className),v.createElement("svg",cd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,l,{className:d,style:ud(ud({color:t.color||r.color},r.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&v.createElement("title",null,a),t.children)};return a8!==void 0?v.createElement(a8.Consumer,null,r=>e(r)):e(bT)}function bV(t){return Zt({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3l39.5 39.7z"},child:[]}]})(t)}function xV(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M24 5.25v13a.75.75 0 0 1-1.136.643L16.5 15.075v2.175A1.75 1.75 0 0 1 14.75 19h-13A1.75 1.75 0 0 1 0 17.25v-11C0 5.284.784 4.5 1.75 4.5h13c.966 0 1.75.784 1.75 1.75v2.175l6.364-3.818A.75.75 0 0 1 24 5.25Zm-9 1a.25.25 0 0 0-.25-.25h-13a.25.25 0 0 0-.25.25v11c0 .138.112.25.25.25h13a.25.25 0 0 0 .25-.25v-11Zm1.5 7.075 6 3.6V6.575l-6 3.6Z"},child:[]}]})(t)}function wV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},child:[]}]})(t)}function SV(t){return Zt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(t)}function EV(t){return Zt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},child:[]}]})(t)}function CV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"},child:[]}]})(t)}function TV(t){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"},child:[]}]})(t)}function l8(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"},child:[]}]})(t)}function kV(t){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(t)}function OV(t){return Zt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(t)}function _V(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(t)}function RV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"},child:[]}]})(t)}function MV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352.57 128c-28.09 0-54.09 4.52-77.06 12.86l12.41-123.11C289 7.31 279.81-1.18 269.33.13 189.63 10.13 128 77.64 128 159.43c0 28.09 4.52 54.09 12.86 77.06L17.75 224.08C7.31 223-1.18 232.19.13 242.67c10 79.7 77.51 141.33 159.3 141.33 28.09 0 54.09-4.52 77.06-12.86l-12.41 123.11c-1.05 10.43 8.11 18.93 18.59 17.62 79.7-10 141.33-77.51 141.33-159.3 0-28.09-4.52-54.09-12.86-77.06l123.11 12.41c10.44 1.05 18.93-8.11 17.62-18.59-10-79.7-77.51-141.33-159.3-141.33zM256 288a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"},child:[]}]})(t)}function PV(t){return Zt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"},child:[]}]})(t)}function c8(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 0 0 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10 10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z"},child:[]}]})(t)}function IV(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(t)}function AV(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(t)}function DV(t){return Zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"},child:[]}]})(t)}function u8(t){return Zt({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M3.89,17.6c0-0.99,0.31-1.88,0.93-2.65s1.41-1.27,2.38-1.49c0.26-1.17,0.85-2.14,1.78-2.88c0.93-0.75,2-1.12,3.22-1.12 + c1.18,0,2.24,0.36,3.16,1.09c0.93,0.73,1.53,1.66,1.8,2.8h0.27c1.18,0,2.18,0.41,3.01,1.24s1.25,1.83,1.25,3 + c0,1.18-0.42,2.18-1.25,3.01s-1.83,1.25-3.01,1.25H8.16c-0.58,0-1.13-0.11-1.65-0.34S5.52,21,5.14,20.62 + c-0.38-0.38-0.68-0.84-0.91-1.36S3.89,18.17,3.89,17.6z M5.34,17.6c0,0.76,0.28,1.42,0.82,1.96s1.21,0.82,1.99,0.82h9.28 + c0.77,0,1.44-0.27,1.99-0.82c0.55-0.55,0.83-1.2,0.83-1.96c0-0.76-0.27-1.42-0.83-1.96c-0.55-0.54-1.21-0.82-1.99-0.82h-1.39 + c-0.1,0-0.15-0.05-0.15-0.15l-0.07-0.49c-0.1-0.94-0.5-1.73-1.19-2.35s-1.51-0.93-2.45-0.93c-0.94,0-1.76,0.31-2.46,0.94 + c-0.7,0.62-1.09,1.41-1.18,2.34l-0.07,0.42c0,0.1-0.05,0.15-0.16,0.15l-0.45,0.07c-0.72,0.06-1.32,0.36-1.81,0.89 + C5.59,16.24,5.34,16.87,5.34,17.6z M14.19,8.88c-0.1,0.09-0.08,0.16,0.07,0.21c0.43,0.19,0.79,0.37,1.08,0.55 + c0.11,0.03,0.19,0.02,0.22-0.03c0.61-0.57,1.31-0.86,2.12-0.86c0.81,0,1.5,0.27,2.1,0.81c0.59,0.54,0.92,1.21,0.99,2l0.09,0.64h1.42 + c0.65,0,1.21,0.23,1.68,0.7c0.47,0.47,0.7,1.02,0.7,1.66c0,0.6-0.21,1.12-0.62,1.57s-0.92,0.7-1.53,0.77c-0.1,0-0.15,0.05-0.15,0.16 + v1.13c0,0.11,0.05,0.16,0.15,0.16c1.01-0.06,1.86-0.46,2.55-1.19s1.04-1.6,1.04-2.6c0-1.06-0.37-1.96-1.12-2.7 + c-0.75-0.75-1.65-1.12-2.7-1.12h-0.15c-0.26-1-0.81-1.82-1.65-2.47c-0.83-0.65-1.77-0.97-2.8-0.97C16.28,7.29,15.11,7.82,14.19,8.88 + z`},child:[]}]})(t)}function NV(t){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]},{tag:"path",attr:{d:"M363.5 148.5C334.8 119.8 296.6 104 256 104c-40.6 0-78.8 15.8-107.5 44.5C119.8 177.2 104 215.4 104 256s15.8 78.8 44.5 107.5C177.2 392.2 215.4 408 256 408c40.6 0 78.8-15.8 107.5-44.5C392.2 334.8 408 296.6 408 256s-15.8-78.8-44.5-107.5z"},child:[]}]})(t)}function $V(t){return Zt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 12a4 4 0 0 0 4 4m0 -8a4 4 0 0 0 -4 4"},child:[]},{tag:"path",attr:{d:"M3 12h1"},child:[]},{tag:"path",attr:{d:"M12 3v1"},child:[]},{tag:"path",attr:{d:"M12 20v1"},child:[]},{tag:"path",attr:{d:"M5.6 5.6l.7 .7"},child:[]},{tag:"path",attr:{d:"M6.3 17.7l-.7 .7"},child:[]},{tag:"path",attr:{d:"M20 7l-3 5h4l-3 5"},child:[]}]})(t)}function LV(t){return Zt({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"},child:[]},{tag:"path",attr:{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"},child:[]}]})(t)}function BV(t){return v.createElement("svg",{viewBox:"0 0 512 512",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M296,320H216a24,24,0,0,0,0,48h80a24,24,0,0,0,0-48Zm0,32H216a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}),v.createElement("path",{d:"M68.071,123.492c22.578-13.918,52.2-25.229,85.674-32.71l-3.49-15.615c-35.688,7.977-66.163,19.653-90.58,34.705-17.914,11.043-32.041,23.643-41.99,37.451l12.98,9.354C39.376,144.588,51.961,133.423,68.071,123.492Z"}),v.createElement("path",{d:"M435.533,137.112C409.439,121.027,374,108.967,332.845,102.144,322.474,87,288.213,80,256,80s-66.474,7-76.845,22.144C138,108.967,102.561,121.027,76.467,137.112,47.376,155.045,32,176.792,32,200v96c0,29,24.155,55.7,68.016,75.193C141.813,389.77,197.209,400,256,400s114.187-10.23,155.984-28.807C455.845,351.7,480,325,480,296V200C480,176.792,464.624,155.045,435.533,137.112ZM177.64,151.23C185.676,168.192,221.98,176,256,176s70.324-7.808,78.36-24.77c21.862,4.212,41.832,10.19,58.13,17.44C422.343,181.941,432,195.509,432,200s-9.657,18.059-39.51,31.33C357.224,247.008,307.475,256,256,256s-101.224-8.992-136.49-24.67C89.657,218.059,80,204.491,80,200s9.657-18.059,39.512-31.331C135.808,161.42,155.778,155.442,177.64,151.23Zm14.36-19c15.6,8,40.35,11.773,64,11.773s48.4-3.775,64-11.773V144c0,.687-2.715,5.08-15.618,9.381C291.577,157.649,274.4,160,256,160s-35.577-2.351-48.382-6.619C194.715,149.08,192,144.687,192,144Zm15.618-29.608C220.423,98.351,237.605,96,256,96s35.577,2.351,48.382,6.619C317.285,106.92,320,111.313,320,112s-2.715,5.08-15.618,9.381C291.577,125.649,274.4,128,256,128s-35.577-2.351-48.382-6.619C194.715,117.08,192,112.687,192,112S194.715,106.92,207.618,102.619ZM176,118.937v16.319c-23.589,4.453-45.254,10.9-62.99,18.794C82.779,167.489,64,185.1,64,200s18.779,32.511,49.01,45.95C150.249,262.505,202.367,272,256,272s105.751-9.5,142.99-26.05C429.221,232.511,448,214.9,448,200s-18.779-32.511-49.008-45.95c-17.738-7.89-39.4-14.341-62.992-18.794V118.937C411.852,132.7,464,165.41,464,200c0,21.967-21.328,44.044-58.516,60.572C365.688,278.259,312.6,288,256,288s-109.688-9.741-149.484-27.428C69.328,244.044,48,221.967,48,200,48,165.41,100.148,132.7,176,118.937ZM464,296c0,21.967-21.327,44.044-58.514,60.572C365.689,374.259,312.6,384,256,384s-109.689-9.741-149.486-27.428C69.327,340.044,48,317.967,48,296V239.371c11.522,13.444,29.066,25.621,52.018,35.822C141.814,293.77,197.211,304,256,304s114.186-10.23,155.982-28.807c22.952-10.2,40.5-22.378,52.018-35.822Z"}),v.createElement("path",{d:"M418.482,385.814C374.684,405.28,316.979,416,256,416a488.01,488.01,0,0,1-78.705-6.23l-2.59,15.789A504.064,504.064,0,0,0,256,432c63.169,0,123.181-11.21,168.981-31.565q1.3-.576,2.572-1.16l-6.655-14.55Q419.7,385.274,418.482,385.814Z"}),v.createElement("path",{d:"M436.123,377.062l7.754,14c5.883-3.259,11.492-6.728,16.674-10.31l-9.1-13.161C446.7,370.871,441.546,374.059,436.123,377.062Z"}),v.createElement("rect",{x:"248",y:"192",width:"16",height:"16"}),v.createElement("rect",{x:"280",y:"192",width:"16",height:"16"}),v.createElement("rect",{x:"216",y:"192",width:"16",height:"16"})))}function FV(t){return v.createElement("svg",{viewBox:"0 0 512 512",...t},v.createElement("path",{fill:"currentColor",d:"M298.667 298.667c17.643 0 32-14.357 32-32s-14.357-32-32-32-32 14.357-32 32c0 17.642 14.357 32 32 32zm0-42.667c5.867 0 10.667 4.779 10.667 10.667s-4.8 10.667-10.667 10.667S288 272.555 288 266.667 292.8 256 298.667 256z"}),v.createElement("path",{fill:"currentColor",d:"M448 490.667h-32v-480C416 4.779 411.221 0 405.333 0H106.667c-.597 0-1.131.256-1.707.341-.555.085-1.088.149-1.621.32-.939.32-1.749.789-2.56 1.344-.32.213-.704.277-1.003.533-.107.085-.149.213-.256.32-.768.704-1.365 1.579-1.899 2.496-.213.341-.512.619-.661.981-.597 1.345-.96 2.774-.96 4.332v480H64c-5.888 0-10.667 4.779-10.667 10.667C53.333 507.221 58.112 512 64 512h42.667c.576 0 1.173-.043 1.749-.149l256-42.667a10.672 10.672 0 0 0 8.917-10.517V53.333c0-5.227-3.776-9.664-8.917-10.517L235.541 21.333h159.125v480c0 5.888 4.779 10.667 10.667 10.667H448c5.888 0 10.667-4.779 10.667-10.667s-4.779-10.666-10.667-10.666zm-96-428.31v387.264l-234.667 39.125V23.253L352 62.357z"}))}function zV(t){return v.createElement("svg",{viewBox:"0 0 512.006 512.006",...t},v.createElement("path",{d:"M502.379 211.249c0 74.656-60.52 135.176-135.176 135.176-6.469.01-12.919-.473-19.311-1.448-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825a142.128 142.128 0 0 1 19.311-1.352c74.656 0 135.176 60.521 135.176 135.177z",fill:"#c52828"}),v.createElement("path",{d:"M463.757 211.249c-.029 67.173-49.378 124.131-115.865 133.728-66.487-9.598-115.837-66.555-115.866-133.728-.019-67.212 49.349-124.227 115.866-133.825 66.516 9.598 115.875 66.613 115.865 133.825z",fill:"#f44335"}),v.createElement("g",{fill:"#fdd834"},v.createElement("path",{d:"M380.527 230.56h-26.649a8.208 8.208 0 0 1-8.4-7.242l-7.242-90.472c-.212-4.47 3.235-8.275 7.705-8.497.232-.01.463-.01.695 0h41.036a8.105 8.105 0 0 1 8.4 7.802c.01.232.01.463 0 .695l-7.242 90.472c-.501 4.181-4.093 7.319-8.303 7.242zM362.085 269.181h10.235c7.84 0 14.194 6.353 14.194 14.194v10.235c0 7.84-6.353 14.194-14.194 14.194h-10.235c-7.84 0-14.194-6.353-14.194-14.194v-10.235c.001-7.84 6.354-14.194 14.194-14.194z"})),v.createElement("path",{d:"M308.015 332.714a132.057 132.057 0 0 1-24.332-15.256 138.367 138.367 0 0 1-25.587-26.456 134.123 134.123 0 0 1-26.07-79.754 136.453 136.453 0 0 1 3.09-28.966 129.801 129.801 0 0 1 9.655-28.966c-24.428-39.201-50.691-78.113-85.547-108.334-2.607-2.221-5.214-4.442-7.917-6.566a161.051 161.051 0 0 0-14.387-10.621 80.965 80.965 0 0 0-13.807-7.145c1.641 7.338 3.476 14.773 4.731 22.208a180.355 180.355 0 0 1 2.993 26.939v7.145a192.012 192.012 0 0 1-60.829 139.521 202.647 202.647 0 0 0-43.836 52.719 149.063 149.063 0 0 0-6.566 120.017 152.006 152.006 0 0 0 22.208 40.167 164.926 164.926 0 0 0 106.21 61.891 86.874 86.874 0 0 1-44.801-32.249 51.315 51.315 0 0 1-3.669-5.6 77.46 77.46 0 0 1-6.469-13.325 79.464 79.464 0 0 1 3.766-63.726 111.914 111.914 0 0 1 23.463-28.387 101.983 101.983 0 0 0 32.442-74.25v-3.862a97.875 97.875 0 0 0-4.731-27.132 112.539 112.539 0 0 1 10.911 6.566 108.053 108.053 0 0 1 30.222 30.801 100.963 100.963 0 0 1 15.835 46.443v8.4a100.92 100.92 0 0 1-18.249 57.933c22.98 13.035 38.622-8.593 44.994-28.966a60.067 60.067 0 0 0 2.51-12.842 88.458 88.458 0 0 1 28.966 61.312v5.214c-2.704 33.678-25.346 62.451-57.45 72.995 73.353-11.789 128.717-72.889 133.245-147.053a131.977 131.977 0 0 1-30.994-10.815z",fill:"#f57c00"}),v.createElement("path",{d:"M263.117 417.489v-5.214a88.462 88.462 0 0 0-28.966-61.312 60.129 60.129 0 0 1-2.51 12.842c-5.986 20.47-22.014 42.098-44.994 28.966a100.923 100.923 0 0 0 18.249-57.933v-.966-7.338a100.971 100.971 0 0 0-15.835-46.443 108.027 108.027 0 0 0-30.222-30.801 108.949 108.949 0 0 0-39.877-35.532 97.838 97.838 0 0 1 4.731 27.132v3.862a101.988 101.988 0 0 1-32.442 74.25 111.924 111.924 0 0 0-23.366 28.387 79.491 79.491 0 0 0-3.573 63.726 83.948 83.948 0 0 0 35.436 42.291 51.315 51.315 0 0 0 3.669 5.6 86.886 86.886 0 0 0 44.415 32.249 164.927 164.927 0 0 1-106.21-61.892 152.082 152.082 0 0 1-22.014-40.167 149.055 149.055 0 0 1 6.564-120.015 202.714 202.714 0 0 1 44.029-53.202A192.012 192.012 0 0 0 131.03 76.458v-7.145a180.486 180.486 0 0 0-2.993-26.939c-1.255-7.435-3.09-14.869-4.731-22.208a80.965 80.965 0 0 1 13.807 7.145 159.446 159.446 0 0 1 14.773 10.718c2.704 2.124 5.311 4.345 7.917 6.566 34.856 30.222 61.119 69.133 85.547 108.334a129.75 129.75 0 0 0-9.655 28.966 136.634 136.634 0 0 0-3.669 29.353 134.116 134.116 0 0 0 26.07 79.754 138.396 138.396 0 0 0 25.587 26.456 132.164 132.164 0 0 0 24.332 15.256 152.203 152.203 0 0 1-44.898 84.775z",fill:"#ff9801"}),v.createElement("path",{d:"M147.831 500.912h-1.448c-61.756-8.7-113.963-50.15-136.432-108.334a158.725 158.725 0 0 1 7.338-127.355 212.528 212.528 0 0 1 45.96-55.809 181.787 181.787 0 0 0 57.933-132.473v-6.759a171.298 171.298 0 0 0-2.8-25.587c-.966-5.697-2.221-11.2-3.476-16.704l-1.159-5.117c-1.178-5.204 2.076-10.37 7.28-11.548a9.663 9.663 0 0 1 5.948.541 89.473 89.473 0 0 1 15.449 8.014 172.47 172.47 0 0 1 15.449 11.2c41.036 32.732 70.871 77.244 95.589 117.314a9.673 9.673 0 0 1 .483 9.655 121.056 121.056 0 0 0-9.655 26.842 128.158 128.158 0 0 0-2.607 26.456c.01 59.198 41.374 110.333 99.258 122.721a9.655 9.655 0 0 1 7.628 9.655c-3.186 77.244-61.216 141.742-141.163 156.129-5.253.927-10.254-2.588-11.181-7.84a9.65 9.65 0 0 1 6.353-10.795c29.99-9.8 50.517-37.492 51.174-69.037a67.618 67.618 0 0 0-14.387-40.746 56.78 56.78 0 0 1-24.139 31.091 33.122 33.122 0 0 1-33.408-1.448c-4.644-2.626-6.276-8.516-3.659-13.16.145-.261.299-.502.473-.743a91.187 91.187 0 0 0 16.511-52.429v-.772a90.743 90.743 0 0 0-14.58-48.277 98.107 98.107 0 0 0-19.311-21.532v9.945a111.13 111.13 0 0 1-35.436 81.299 103.445 103.445 0 0 0-21.532 25.78 69.873 69.873 0 0 0-3.09 56.002 76.304 76.304 0 0 0 49.533 44.512c5.33.801 9.009 5.774 8.207 11.104-.801 5.328-5.774 8.997-11.103 8.205zM137.113 39.478v1.738a188.136 188.136 0 0 1 3.09 28.194v7.435A200.926 200.926 0 0 1 76.38 223.318a192.998 192.998 0 0 0-42.098 50.498 139.414 139.414 0 0 0-6.469 111.907 148.682 148.682 0 0 0 65.561 76.568 89.522 89.522 0 0 1-15.159-49.726 91.25 91.25 0 0 1 9.655-40.167 119.46 119.46 0 0 1 25.394-31.091 92.026 92.026 0 0 0 29.449-67.588v-3.09a88.799 88.799 0 0 0-4.248-24.911 9.653 9.653 0 0 1 6.237-12.147 9.638 9.638 0 0 1 7.473.657 119.392 119.392 0 0 1 44.705 40.649 110.062 110.062 0 0 1 17.669 58.898v1.159a110.343 110.343 0 0 1-13.035 52.139 12.555 12.555 0 0 0 4.731-1.448c9.655-5.31 17.283-22.497 18.345-35.436.434-5.31 5.088-9.269 10.409-8.844a9.61 9.61 0 0 1 6.006 2.761 95.586 95.586 0 0 1 32.153 68.168 89.528 89.528 0 0 1-13.711 47.408 146.774 146.774 0 0 0 69.133-108.817c-62.77-17.37-106.22-74.492-106.21-139.618a146.655 146.655 0 0 1 3.283-30.994 139.876 139.876 0 0 1 8.497-26.263c-23.27-37.077-51.27-78.402-88.541-108.045a113.049 113.049 0 0 0-8.496-6.467z"}),v.createElement("path",{d:"M367.203 356.081a144.841 144.841 0 0 1-89.506-30.994 143.882 143.882 0 0 1-55.326-113.838 146.655 146.655 0 0 1 3.283-30.994 140.652 140.652 0 0 1 10.814-31.091c23.965-50.498 74.839-82.699 130.735-82.747 79.986.019 144.813 64.875 144.803 144.861a144.848 144.848 0 0 1-55.297 113.809 143.543 143.543 0 0 1-89.506 30.994zm0-270.353c-48.47.019-92.586 27.943-113.355 71.74a121.83 121.83 0 0 0-9.655 26.939 127.805 127.805 0 0 0-2.51 26.842c.01 59.198 41.374 110.333 99.258 122.721a125.763 125.763 0 0 0 26.263 2.8c69.326 0 125.521-56.195 125.521-125.521S436.519 85.728 367.203 85.728z"}),v.createElement("path",{d:"M380.527 240.215h-26.649c-9.279.097-17.109-6.894-18.056-16.125l-7.242-90.085a17.201 17.201 0 0 1 4.538-13.035 18.38 18.38 0 0 1 13.518-5.89h41.036a18.375 18.375 0 0 1 13.518 5.89 17.204 17.204 0 0 1 4.635 13.035l-7.242 90.472c-1.139 9.076-8.912 15.854-18.056 15.738zm-25.49-19.311h24.525l6.952-86.899h-38.622l7.145 86.899zM372.32 317.459h-10.235c-13.151-.048-23.801-10.698-23.849-23.849v-10.235c.048-13.151 10.698-23.801 23.849-23.849h10.138c13.189 0 23.888 10.66 23.946 23.849v10.138c0 13.18-10.669 23.888-23.849 23.946zm-10.138-38.622a4.635 4.635 0 0 0-4.538 4.538v10.138a4.635 4.635 0 0 0 4.538 4.538h10.138a4.635 4.635 0 0 0 4.538-4.538v-10.138a4.635 4.635 0 0 0-4.538-4.538h-10.138z"}))}function jV(t){return v.createElement("svg",{viewBox:"0 0 512.002 512.002",...t},v.createElement("path",{d:"M481.929 324.35c0 65.951-53.464 119.415-119.415 119.415a111.938 111.938 0 0 1-17.059-1.279c-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221a125.333 125.333 0 0 1 17.059-1.194c65.951-.001 119.415 53.462 119.415 119.414z",fill:"#c52828"}),v.createElement("path",{d:"M447.81 324.35c-.026 59.341-43.621 109.657-102.356 118.135-58.735-8.478-102.33-58.795-102.356-118.135-.017-59.375 43.595-109.742 102.356-118.221 58.77 8.487 102.373 58.846 102.356 118.221z",fill:"#f44335"}),v.createElement("g",{fill:"#fdd834"},v.createElement("path",{d:"M374.285 341.409h-23.542a7.251 7.251 0 0 1-7.421-6.397l-6.397-79.923a7.174 7.174 0 0 1 6.807-7.506c.205-.009.409-.009.614 0h36.251a7.16 7.16 0 0 1 7.421 6.892c.009.205.009.409 0 .614l-6.397 79.923a7.249 7.249 0 0 1-7.336 6.397zM357.993 375.527h9.041c6.926 0 12.539 5.612 12.539 12.539v9.041c0 6.926-5.612 12.539-12.539 12.539h-9.041c-6.926 0-12.539-5.612-12.539-12.539v-9.041c0-6.926 5.621-12.539 12.539-12.539z"})),v.createElement("path",{d:"M318.415 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 159.575 159.575 0 0 1-61.413 12.283 149.268 149.268 0 0 1-20.556-1.365 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.753 152.753 0 0 1-12.368-60.219 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504 7.335-11.771c4.504-7.353 14.117-9.656 21.469-5.143a15.525 15.525 0 0 1 5.143 5.143l34.716 55.869c-2.644 4.18-5.032 8.53-7.335 12.709a96.424 96.424 0 0 0-11.515 44.439 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.344 115.344 0 0 0-11.6 31.048 120.546 120.546 0 0 0-2.729 25.589c.041 48.9 29.878 92.828 75.315 110.885z",fill:"#0377bc"}),v.createElement("path",{d:"M277.217 435.235a153.553 153.553 0 0 1-19.192 22.859 157.081 157.081 0 0 1-50.154 33.095 158.847 158.847 0 0 1-40.772 10.833 155.17 155.17 0 0 1-40.857-10.833 156.698 156.698 0 0 1-84.017-82.311 152.657 152.657 0 0 1-12.368-60.134 150.27 150.27 0 0 1 17.059-69.005 752.602 752.602 0 0 1 42.648-68.237c15.268-22.774 29.513-46.145 44.013-69.346l34.119-54.504c9.212 14.671 18.339 29.427 27.465 44.098-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.026 98.026 0 0 0 8.018 38.725 100.313 100.313 0 0 0 21.921 31.56 106.83 106.83 0 0 0 9.98 8.53 115.323 115.323 0 0 0-12.283 31.133 120.546 120.546 0 0 0-2.729 25.589c.043 48.9 29.88 92.828 75.317 110.885z",fill:"#02a9f4"}),v.createElement("path",{d:"M411.388 144.545a477.911 477.911 0 0 0-27.636-43.842c-9.894-14.586-19.192-29.598-28.489-44.525L328.395 13.53c-3.037-4.708-9.323-6.065-14.031-3.028a10.259 10.259 0 0 0-3.028 3.028l-12.794 20.215-14.074 22.433c-9.297 14.927-18.595 29.939-28.489 44.525-6.994 10.236-13.989 20.471-20.301 31.133-2.644 4.18-5.032 8.53-7.335 12.709a96.502 96.502 0 0 0-10.833 44.354 98.758 98.758 0 0 0 29.939 70.284 106.83 106.83 0 0 0 9.98 8.53 119.423 119.423 0 0 1 84.017-60.902 114.9 114.9 0 0 1 21.068-1.877c5.186.009 10.372.324 15.524.938a119.369 119.369 0 0 1 39.578 12.539 96.462 96.462 0 0 0-6.228-73.866z",fill:"#0377bc"}),v.createElement("path",{d:"M379.573 188.899a93.046 93.046 0 0 1-1.535 17.059 131.537 131.537 0 0 0-15.524-1.024 114.797 114.797 0 0 0-21.068 1.877 119.425 119.425 0 0 0-84.017 60.902 106.96 106.96 0 0 1-9.98-8.53c-31.099-29.743-38.878-76.417-19.106-114.638 2.303-4.35 4.691-8.53 7.335-12.709 6.312-10.662 13.306-20.898 20.301-31.133 9.894-14.586 19.192-29.598 28.489-44.525l14.074-22.433 14.074 22.433c9.297 14.927 18.595 29.939 28.489 44.525a477.911 477.911 0 0 1 27.636 43.842 96.401 96.401 0 0 1 10.832 44.354z",fill:"#02a9f4"}),v.createElement("path",{d:"M187.656 512.002a167.398 167.398 0 0 1-64.655-12.88 165.226 165.226 0 0 1-88.623-86.746 160.466 160.466 0 0 1-13.05-63.631 158.81 158.81 0 0 1 17.656-72.928 698.388 698.388 0 0 1 39.663-63.887l3.412-5.032c12.027-17.998 23.627-36.677 34.886-54.76L167.1 71.531c6.986-11.353 21.861-14.893 33.214-7.898a24.1 24.1 0 0 1 7.898 7.898l17.059 27.38 17.827 28.404a8.521 8.521 0 0 1 0 9.383c-2.559 4.009-4.777 8.018-6.994 12.112a87.69 87.69 0 0 0-10.065 40.089 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83 99.608 99.608 0 0 0 9.212 7.847 8.534 8.534 0 0 1 2.303 10.918 106.955 106.955 0 0 0-10.747 28.745 112.483 112.483 0 0 0-2.559 23.712c.009 45.429 27.721 86.26 69.943 103.038 4.393 1.706 6.559 6.653 4.853 11.046a8.584 8.584 0 0 1-.93 1.749 162.407 162.407 0 0 1-20.301 24.139 164.29 164.29 0 0 1-52.884 34.886 167.489 167.489 0 0 1-64.653 12.795zm0-435.012a6.99 6.99 0 0 0-6.056 3.412l-50.154 80.69c-11.344 18.168-23.03 37.019-35.227 55.187l-3.412 5.032a687.543 687.543 0 0 0-38.725 62.266 141.613 141.613 0 0 0-15.695 65.166 143.56 143.56 0 0 0 11.686 56.893 148.16 148.16 0 0 0 79.411 77.79 152.855 152.855 0 0 0 116.344 0 147.616 147.616 0 0 0 47.425-31.133 143.446 143.446 0 0 0 12.027-13.306c-43.322-21.802-70.668-66.139-70.711-114.638a129.576 129.576 0 0 1 2.9-27.38 124.357 124.357 0 0 1 9.212-26.954 136.293 136.293 0 0 1-5.203-4.691 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 1.621-3.071 3.241-5.971 4.862-8.53l-14.927-24.054-17.059-27.38a7.087 7.087 0 0 0-6.141-3.837z"}),v.createElement("path",{d:"M99.971 442.4A8.521 8.521 0 0 1 94 439.926a129.631 129.631 0 0 1-28.318-41.113 126.28 126.28 0 0 1-10.236-50.069 124.503 124.503 0 0 1 13.818-57.234c1.868-4.325 6.883-6.32 11.208-4.452s6.32 6.883 4.452 11.208c-.162.375-.35.742-.563 1.092a107.494 107.494 0 0 0-11.856 49.387 109.211 109.211 0 0 0 8.53 43.331 112.626 112.626 0 0 0 24.565 35.739c3.344 3.318 3.369 8.717.051 12.061a8.549 8.549 0 0 1-6.022 2.525l.342-.001zM257.428 276.242a8.526 8.526 0 0 1-5.118-1.706 115.222 115.222 0 0 1-10.747-9.212 109.87 109.87 0 0 1-23.798-34.119 106.411 106.411 0 0 1-8.53-42.136c0-16.803 4.035-33.359 11.771-48.278 2.559-4.862 5.118-9.212 7.677-13.306 6.312-10.662 13.392-21.068 20.386-31.218 9.041-13.903 17.912-27.807 26.442-41.881L304 8.753c5.485-8.734 17.017-11.379 25.751-5.894a18.698 18.698 0 0 1 5.894 5.894l28.574 45.634c8.53 13.733 17.059 27.977 26.612 41.539l1.706 2.474a457.473 457.473 0 0 1 26.442 42.136 104.968 104.968 0 0 1 6.824 80.434c-1.433 4.487-6.235 6.969-10.722 5.536a8.282 8.282 0 0 1-1.39-.589 112.612 112.612 0 0 0-106.535 2.388 110.28 110.28 0 0 0-42.136 43.416 8.52 8.52 0 0 1-5.715 4.265l-1.877.256zm62.437-258.959a1.541 1.541 0 0 0-1.365.768l-28.489 45.378c-8.53 13.903-17.571 28.233-26.954 42.051-6.909 10.065-13.903 20.301-20.045 30.707-2.644 4.18-4.947 8.53-7.165 12.368a87.722 87.722 0 0 0-9.809 40.345 89.456 89.456 0 0 0 7.335 35.398 92.438 92.438 0 0 0 20.045 28.83l1.791 1.706a127.216 127.216 0 0 1 43.331-41.369 129.73 129.73 0 0 1 113.359-7.25 87.904 87.904 0 0 0-8.53-57.831 444.102 444.102 0 0 0-25.589-40.516l-1.706-2.474c-9.383-13.818-18.339-28.148-26.954-42.051L321.23 18.05a1.532 1.532 0 0 0-1.365-.767z"}),v.createElement("path",{d:"M271.246 243.233a8.519 8.519 0 0 1-5.971-2.388 75.502 75.502 0 0 1-16.292-23.456 71.923 71.923 0 0 1-5.885-28.489 70.537 70.537 0 0 1 7.933-32.498c1.877-3.582 4.009-7.25 6.227-10.833l.512-.768a8.538 8.538 0 0 1 11.609-3.284 8.538 8.538 0 0 1 3.284 11.609 6.997 6.997 0 0 1-.392.631l-.512.853c-2.132 3.327-3.924 6.568-5.63 9.724a53.307 53.307 0 0 0-5.971 24.565 54.816 54.816 0 0 0 4.435 21.665 58.198 58.198 0 0 0 12.624 18.083c3.395 3.267 3.489 8.666.222 12.061a8.518 8.518 0 0 1-6.193 2.61v-.085z"}),v.createElement("path",{d:"M362.514 452.294c-70.66 0-127.945-57.285-127.945-127.945a129.576 129.576 0 0 1 2.9-27.38 123.98 123.98 0 0 1 12.453-33.351 127.15 127.15 0 0 1 48.619-50.154c37.94-21.495 84.136-22.518 122.997-2.729 62.744 32.489 87.275 109.7 54.777 172.452-22.005 42.512-65.916 69.184-113.801 69.107zm0-238.83c-40.763.009-78.234 22.382-97.579 58.257a107.238 107.238 0 0 0-10.747 28.83 112.818 112.818 0 0 0-2.559 23.798c0 61.243 49.643 110.885 110.885 110.885s110.885-49.642 110.885-110.885-49.643-110.885-110.885-110.885z"}),v.createElement("path",{d:"M374.285 349.939h-23.542c-8.231.085-15.157-6.141-15.95-14.33l-6.397-79.496a15.26 15.26 0 0 1 4.009-11.515 16.312 16.312 0 0 1 11.942-5.203h36.251a16.31 16.31 0 0 1 11.941 5.203 15.27 15.27 0 0 1 4.094 11.515l-6.397 79.923c-.999 8.026-7.865 14.013-15.951 13.903zm-22.519-17.06h21.665l6.141-76.767h-34.119l6.313 76.767zM367.034 418.176h-9.041c-11.617-.043-21.026-9.451-21.068-21.068v-9.041c.043-11.617 9.451-21.026 21.068-21.068h8.956c11.651 0 21.102 9.417 21.153 21.068v8.956c.001 11.651-9.416 21.11-21.068 21.153zm-8.956-34.119a4.095 4.095 0 0 0-4.009 4.009v8.956a4.095 4.095 0 0 0 4.009 4.009h8.956a4.095 4.095 0 0 0 4.009-4.009v-8.956a4.095 4.095 0 0 0-4.009-4.009h-8.956z"}))}function HV(t){return v.createElement("svg",{viewBox:"0 0 512 512",...t},v.createElement("path",{fill:"currentColor",d:"M462,226c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.52,0,10-4.48,10-10S467.52,226,462,226z"}),v.createElement("path",{fill:"currentColor",d:"M50,226c-5.52,0-10,4.48-10,10s4.48,10,10,10s10-4.48,10-10S55.52,226,50,226z"}),v.createElement("path",{fill:"currentColor",d:`M502,126h-0.027C508.265,117.637,512,107.248,512,96c0-27.57-22.43-50-50-50s-50,22.43-50,50 + c0,11.248,3.735,21.637,10.027,30H422c-5.522,0-10,4.478-10,10v50.03c-7.399,0.025-17.158,0.065-23,0.113V166.63 + c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.435c-0.931-0.964-1.899-2.045-2.923-3.258 + c-10.745-12.754-24.515-23.761-40.077-32.106V121.83c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v12.983 + c-12.92-4.643-26.438-7.5-40-8.448V96c0-5.522-4.478-10-10-10c-5.522,0-10,4.478-10,10v30.365 + c-13.565,0.948-27.084,3.807-40,8.452V120.17c0-5.522-4.477-10-10-10s-10,4.478-10,10v23.542 + c-15.764,8.457-29.695,19.652-40.55,32.652c-0.758,0.908-1.587,1.755-2.45,2.566v-12.3c0-5.522-4.477-10-10-10s-10,4.478-10,10 + v20.385c-4.189,0.067-14.913,0.05-23,0.024V136c0-5.522-4.477-10-10-10h-0.027C96.265,117.637,100,107.248,100,96 + c0-27.57-22.43-50-50-50S0,68.43,0,96c0,11.248,3.735,21.637,10.027,30H10c-5.523,0-10,4.478-10,10v320c0,5.522,4.477,10,10,10h80 + c5.523,0,10-4.478,10-10v-11h312v11c0,5.522,4.478,10,10,10h80c5.522,0,10-4.478,10-10V136C512,130.478,507.522,126,502,126z + M80,446H20V146h20v50c0,5.522,4.477,10,10,10s10-4.478,10-10v-50h20V446z M50,126c-16.542,0-30-13.458-30-30s13.458-30,30-30 + s30,13.458,30,30S66.542,126,50,126z M123,425h-23v-19h23V425z M123,386h-23V247h23V386z M123,227h-23v-19.959 + c3.808,0.011,8.197,0.022,12.244,0.022c4.378,0,8.351-0.012,10.756-0.046V227z M186,425h-43v-19h43V425z M186,276v40v70h-43 + V244.817c16.149-3.513,31.29-11.046,43-21.321V276z M186,194.605c-2.373,2.327-4.659,4.785-6.815,7.365 + c-8.521,10.2-21.771,18.214-36.185,22.224v-21.525c6.846-3.098,13.007-7.736,17.806-13.49c7.006-8.391,15.56-15.917,25.194-22.232 + V194.605z M206,156.285c12.757-5.415,26.344-8.765,40-9.871v20.099c-14.162,1.416-27.777,5.83-40,12.895V156.285z M206,203.562 + c11.538-9.26,25.37-15.088,40-16.922V266h-40V203.562z M246,425h-40v-19h40V425z M246,386h-40v-60h40V386z M306,425h-40v-19h40 + V425z M306,386h-40v-60h40V386z M306,306H206v-20h100V306z M306,266h-40v-79.359c14.617,1.835,28.449,7.664,40,16.924V266z + M306,179.418c-12.232-7.071-25.847-11.487-40-12.904v-20.1c13.651,1.106,27.238,4.454,40,9.865V179.418z M369,425h-43v-19h43V425 + z M369,386h-43v-70v-40v-52.635c11.722,10.137,26.674,17.329,43,20.634V386z M369,223.458 + c-14.663-3.788-27.83-11.575-36.517-21.887c-2.039-2.417-4.216-4.742-6.483-6.965v-27.672c9.465,6.201,17.88,13.567,24.789,21.767 + c4.64,5.496,10.324,11.234,18.211,14.57V223.458z M412,425h-23v-19h23V425z M412,386h-23V246h23V386z M412,226h-23v-19.856 + c5.683-0.048,15.526-0.088,23-0.113V226z M492,446h-60V146h20v50c0,5.522,4.478,10,10,10c5.522,0,10-4.478,10-10v-50h20V446z + M462,126c-16.542,0-30-13.458-30-30s13.458-30,30-30s30,13.458,30,30S478.542,126,462,126z`}))}function qV(t){return v.createElement("svg",{viewBox:"0 0 511.448 511.448",...t},v.createElement("path",{d:"M344.556 112.216C318.38 78.84 291.34 44.344 269.516 7.32c-5.76-9.76-21.824-9.76-27.552 0-21.856 37.024-48.896 71.52-75.072 104.896-53.056 67.68-103.168 131.616-103.168 207.232 0 105.888 86.112 192 192 192s192-86.112 192-192c0-75.616-50.112-139.552-103.168-207.232z",fill:"#2196f3"}),v.createElement("g",{fill:"#fafafa"},v.createElement("path",{d:"M207.724 287.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.832 0-16 7.168-16 16s7.168 16 16 16 16-7.168 16-16-7.168-16-16-16zM303.724 447.448c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48-21.536 48-48 48zm0-64c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zM175.724 415.448a16.07 16.07 0 0 1-11.328-4.672c-6.24-6.24-6.24-16.384 0-22.624l160-160c6.24-6.24 16.384-6.24 22.624 0s6.24 16.384 0 22.624l-160 160a15.943 15.943 0 0 1-11.296 4.672z"})))}function p8(t){return v.createElement("svg",{viewBox:"0 0 508.16 508.16",...t},v.createElement("path",{d:"M504.18 13.67a3.924 3.924 0 0 0-.42.02H4a4 4 0 0 0-4 4v47.28a4 4 0 0 0 4 4h19.72l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.04a4 4 0 0 0 3.8 5.24h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.08a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42.16a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h9.64l-13.44 42a4 4 0 0 0 .56 3.56 4 4 0 0 0 3.24 1.64h479.8a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.44-42.08h9.64a4 4 0 0 0 3.24-1.64 4 4 0 0 0 .56-3.56l-13.64-42.08h9.84a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h9.44a4 4 0 0 0 4-5.24l-13.44-42.04h19.72a4 4 0 0 0 4-4V17.69a4 4 0 0 0-3.98-4.02zM99.08 486.49H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm0-47.28H19.56l12.56-39.28h66.96v39.28zm26.8 378.24h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm0-47.28h-18.8v-39.28h18.8v39.28zm.16-47.28h-18.96V68.97h18.96v39.28zm247.84 378.24h-240v-39.28h240v39.28zm-240-47.28v-39.28h239.68v39.28H133.88zm240-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm0-47.28h-240v-39.28h240v39.28zm-240-47.28V68.97h239.84v39.28H133.88zm266.64 378.24h-18.64l-.32-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm.32-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm0-47.28h-18.96v-39.28h18.96v39.28zm-18.96-47.28V68.97h18.8v39.28h-18.8zm63.56 8v39.28h-36.92v-39.28h36.92zm-36.76-8V68.97h36.92v39.28h-36.92zm36.76 55.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.92v-39.28h36.92zm0 47.28v39.28h-36.76l-.16-39.28h36.92zm42.68 181.12h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h66.96l12.48 39.28zm0-47.28h-79.44v-39.28h36.92v17.44a4 4 0 0 0 8 0v-17.44h22.04l12.48 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6v-39.28h22.04l12.56 39.28zm0-47.28h-34.6V68.97h22.04l12.56 39.28zm11.56-47.28H8V21.69h491.76l-.08 39.28z",fill:"currentColor"}),v.createElement("path",{d:"M454.32 37.33h-13.76a4 4 0 0 0 0 8h13.76a4 4 0 0 0 0-8zM414.84 37.33h-96a4 4 0 0 0 0 8h96a4 4 0 0 0 0-8z",fill:"currentColor"}))}function WV(t){return v.createElement("svg",{viewBox:"0 0 63.907 63.907",fill:"currentColor",...t},v.createElement("circle",{fill:"currentColor",cx:30.515,cy:6.136,r:6.136}),v.createElement("path",{fill:"currentColor",d:"M47.399 27.455C42.346 24.53 38.2 20.579 34.71 15.931c-2.193-3.084-7.991-2.923-10.347-.097-3.584 3.487-6.625 7.081-9.037 10.677a3.209 3.209 0 0 0 5.329 3.573 54.205 54.205 0 0 1 3.59-4.734c-.051 3.333.116 9.347.2 12.05.028.9-.177 1.78-.595 2.579-3.308 6.317-5.424 12.294-7.572 19.606a3.37 3.37 0 1 0 6.465 1.901c1.982-6.742 3.897-12.201 6.884-17.981.152.006.304.006.458-.001 1.907 5.69 3.815 11.383 5.725 17.073 1.387 4.147 7.822 1.993 6.431-2.155-2.087-6.221-4.171-12.439-6.251-18.659-.121-.357-.414-1.755-.455-2.211-.344-3.832-.469-7.652-.432-11.477a51.027 51.027 0 0 0 9.782 7.328c3.597 2.088 6.063-3.891 2.514-5.948z"}))}function UV(t){return v.createElement("svg",{viewBox:"0 0 285 285",...t},v.createElement("g",null,v.createElement("path",{fill:"currentColor",d:`M88.4,87.996c2.525-2.146,2.832-5.933,0.687-8.458C82.801,72.144,79.34,62.719,79.34,53c0-22.607,18.393-41,41-41 + c22.607,0,41,18.393,41,41c0,9.729-3.467,19.161-9.761,26.557c-2.148,2.523-1.843,6.311,0.681,8.458 + c1.129,0.961,2.511,1.431,3.886,1.431c1.698,0,3.386-0.717,4.572-2.111C168.858,77.77,173.34,65.576,173.34,53 + c0-29.225-23.775-53-53-53c-29.225,0-53,23.775-53,53c0,12.563,4.476,24.748,12.602,34.31C82.089,89.835,85.873,90.141,88.4,87.996 + z`}),v.createElement("path",{fill:"currentColor",d:`M120.186,41.201c13.228,0,23.812,8.105,27.313,19.879c0.761-2.562,1.176-5.271,1.176-8.08 + c0-15.649-12.685-28.335-28.335-28.335c-15.648,0-28.334,12.686-28.334,28.335c0,2.623,0.364,5.16,1.031,7.571 + C96.691,49.076,107.152,41.201,120.186,41.201z`}),v.createElement("path",{fill:"currentColor",d:`M234.21,169.856c-3.769-22.452-19.597-26.04-27.034-26.462c-2.342-0.133-4.516-1.32-5.801-3.282 + c-5.388-8.225-12.609-10.4-18.742-10.4c-4.405,0-8.249,1.122-10.449,1.932c-0.275,0.102-0.559,0.15-0.837,0.15 + c-0.87,0-1.701-0.47-2.163-1.262c-5.472-9.387-13.252-11.809-19.822-11.809c-3.824,0-7.237,0.82-9.548,1.564 + c-0.241,0.077-0.764,0.114-1.001,0.114c-1.256,0-2.637-1.03-2.637-2.376V69.753c0-11.035-8.224-16.552-16.5-16.552 + c-8.276,0-16.5,5.517-16.5,16.552v84.912c0,4.989-3.811,8.074-7.918,8.074c-2.495,0-4.899-1.138-6.552-3.678l-7.937-12.281 + c-3.508-5.788-8.576-8.188-13.625-8.189c-11.412-0.001-22.574,12.258-14.644,25.344l62.491,119.692 + c0.408,0.782,1.225,1.373,2.108,1.373h87.757c1.253,0,2.289-1.075,2.365-2.325l2.196-35.816c0.025-0.413,0.162-0.84,0.39-1.186 + C231.591,212.679,237.828,191.414,234.21,169.856z`})))}function S1(t){return v.createElement("svg",{viewBox:"1 -10 511.99999 511",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M 405.5 150 C 405.5 232.566406 338.566406 299.5 256 299.5 C 173.433594 299.5 106.5 232.566406 106.5 150 C 106.5 67.433594 173.433594 0.5 256 0.5 C 338.566406 0.5 405.5 67.433594 405.5 150 Z M 405.5 150 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(25.882353%,75.294118%,88.627451%)",fillOpacity:1}}),v.createElement("path",{d:"M 512 342.921875 C 512 425.488281 445.066406 492.421875 362.5 492.421875 C 279.933594 492.421875 213 425.488281 213 342.921875 C 213 260.355469 279.933594 193.421875 362.5 193.421875 C 445.066406 193.421875 512 260.355469 512 342.921875 Z M 512 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,81.568627%,38.039216%)",fillOpacity:1}}),v.createElement("path",{d:"M 220.746094 295.308594 C 232.050781 298.039062 243.855469 299.5 256 299.5 C 321.917969 299.5 377.871094 256.835938 397.753906 197.613281 C 386.449219 194.878906 374.644531 193.421875 362.5 193.421875 C 296.582031 193.421875 240.628906 236.085938 220.746094 295.308594 Z M 220.746094 295.308594 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(28.627451%,74.117647%,56.470588%)",fillOpacity:1}}),v.createElement("path",{d:"M 299 342.921875 C 299 425.488281 232.066406 492.421875 149.5 492.421875 C 66.933594 492.421875 0 425.488281 0 342.921875 C 0 260.355469 66.933594 193.421875 149.5 193.421875 C 232.066406 193.421875 299 260.355469 299 342.921875 Z M 299 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(98.039216%,43.921569%,69.803922%)",fillOpacity:1}}),v.createElement("path",{d:"M 114.246094 197.613281 C 134.128906 256.835938 190.082031 299.5 256 299.5 C 268.144531 299.5 279.949219 298.039062 291.253906 295.308594 C 271.371094 236.085938 215.417969 193.421875 149.5 193.421875 C 137.355469 193.421875 125.550781 194.878906 114.246094 197.613281 Z M 114.246094 197.613281 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(68.627451%,48.235294%,77.647059%)",fillOpacity:1}}),v.createElement("path",{d:"M 213 342.921875 C 213 383.800781 229.414062 420.839844 256 447.828125 C 282.585938 420.839844 299 383.800781 299 342.921875 C 299 302.042969 282.585938 265.003906 256 238.015625 C 229.414062 265.003906 213 302.042969 213 342.921875 Z M 213 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(93.72549%,38.039216%,13.333333%)",fillOpacity:1}}),v.createElement("path",{d:"M 291.253906 295.320312 C 279.949219 298.046875 268.140625 299.5 256 299.5 C 243.859375 299.5 232.050781 298.046875 220.746094 295.320312 C 228.058594 273.542969 240.242188 254.015625 256 238.015625 C 271.757812 254.015625 283.941406 273.542969 291.253906 295.320312 Z M 291.253906 295.320312 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1}})))}function XV(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 365.445 365.445",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M146.7 162.775h-26.8a6.655 6.655 0 0 0-6.647 6.647v26.602a6.653 6.653 0 0 0 6.647 6.646h26.8a6.654 6.654 0 0 0 6.647-6.646v-26.602a6.655 6.655 0 0 0-6.647-6.647zM245.547 162.775h-26.801a6.653 6.653 0 0 0-6.646 6.647v26.602a6.652 6.652 0 0 0 6.646 6.646h26.801a6.654 6.654 0 0 0 6.646-6.646v-26.602a6.655 6.655 0 0 0-6.646-6.647z"})),v.createElement("path",{d:"M345.445 1.204H20c-11.046 0-20 8.954-20 20v323.037c0 11.045 8.954 20 20 20h325.445c11.045 0 20-8.955 20-20V21.204c0-11.045-8.953-20-20-20zM182.723 287.66c-57.955 0-104.937-46.981-104.937-104.937 0-57.957 46.982-104.938 104.937-104.938S287.66 124.767 287.66 182.723 240.678 287.66 182.723 287.66z",fill:"currentColor"}))}function VV(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 45.659 45.659",...t},v.createElement("path",{fill:"currentColor",d:"M30.619 27.309V7.781C30.619 3.49 27.124 0 22.833 0c-4.29 0-7.785 3.491-7.785 7.78v19.528a10.722 10.722 0 0 0-3.05 7.522c0 5.972 4.857 10.828 10.829 10.828 5.97 0 10.834-4.856 10.834-10.828 0-2.918-1.141-5.572-3.042-7.521zM22.825 42.66c-4.316 0-7.824-3.512-7.824-7.828 0-2.527 1.174-4.779 3.077-6.211V16.237h3.372c.552 0 1-.47 1-1.022 0-.553-.448-1.021-1-1.021h-3.372v-2.466h3.372c.552 0 1-.434 1-.986a.989.989 0 0 0-1-.986h-3.372V7.78c0-2.636 2.119-4.78 4.754-4.78 2.637 0 4.756 2.144 4.756 4.781v20.871c1.903 1.434 3.047 3.671 3.047 6.18 0 4.316-3.494 7.828-7.81 7.828z"}),v.createElement("path",{fill:"currentColor",d:"M25.334 30.463V18.632h-5.002v11.831a4.973 4.973 0 0 0-2.537 4.369 5.038 5.038 0 0 0 5.038 5.046 5.034 5.034 0 0 0 5.034-5.046c0-1.866-.982-3.495-2.533-4.369z"}))}function GV(t){return v.createElement("svg",{viewBox:"0 0 297 297",...t},v.createElement("g",null,v.createElement("path",{fill:"currentColor",d:"m243.404,138.042c-5.775,0-10.458,4.683-10.458,10.458 0,46.564-37.883,84.446-84.446,84.446s-84.446-37.882-84.446-84.446 37.883-84.446 84.446-84.446c5.775,0 10.458-4.683 10.458-10.458s-4.683-10.457-10.458-10.457c-58.097,0-105.361,47.265-105.361,105.361s47.264,105.361 105.361,105.361 105.361-47.264 105.361-105.361c0-5.775-4.681-10.458-10.457-10.458z"}),v.createElement("path",{fill:"currentColor",d:"m142.963,121.344l-20.272-30.41c-3.203-4.807-9.695-6.104-14.502-2.9-4.805,3.202-6.104,9.695-2.9,14.502l20.279,30.422c-3.015,4.436-4.78,9.787-4.78,15.543 0,15.281 12.432,27.713 27.713,27.713 15.281,0 27.713-12.432 27.713-27.713 0-15.281-12.432-27.713-27.713-27.713-1.897-0.001-3.749,0.191-5.538,0.556zm12.335,27.156c0,3.748-3.05,6.798-6.798,6.798s-6.798-3.05-6.798-6.798 3.05-6.798 6.798-6.798 6.798,3.05 6.798,6.798z"}),v.createElement("path",{fill:"currentColor",d:"M148.5,0C66.617,0,0,66.617,0,148.5S66.617,297,148.5,297S297,230.383,297,148.5S230.383,0,148.5,0z M158.958,275.653 v-6.366c0-5.775-4.683-10.458-10.458-10.458c-5.775,0-10.458,4.683-10.458,10.458v6.366 c-62.027-5.056-111.64-54.668-116.695-116.695h6.366c5.775,0,10.458-4.683,10.458-10.458s-4.683-10.458-10.458-10.458h-6.366 c5.056-62.027,54.668-111.64,116.695-116.695v6.366c0,5.775,4.683,10.458,10.458,10.458c5.775,0,10.458-4.683,10.458-10.458v-6.366 c62.027,5.056,111.64,54.668,116.695,116.695h-6.366c-5.775,0-10.458,4.683-10.458,10.458s4.683,10.458,10.458,10.458h6.366 C270.598,220.985,220.985,270.598,158.958,275.653z"})))}function KV(t){return v.createElement("svg",{viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M228.5 205.584h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5H228.5c-2.726 0-5 2.274-5 5s2.274 5 5 5z",fill:"currentColor"}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M232.826 280.905c-.339 3.356-18.813-.782-20.919-1.06l-45.073-5.94-45.074-5.94-14.507-1.912c-1.456-.192-6.201-.055-6.412-2.147-.621-6.157 0-12.699 0-18.878v-43.5-82.076-5.13c0-2.551 5.184-1.015 6.412-.853l35.438 4.67 83.723 11.035c1.457.192 6.201.055 6.412 2.147.169 1.673 0 3.451 0 5.13v144.454c0 6.448 10 6.448 10 0V136.451v-5.13c0-7.619-6.137-10.793-12.673-11.655l-28.531-3.76-88.411-11.652-9.897-1.304c-6.555-.864-12.473 4.9-12.473 11.38v144.832c0 2.023-.071 4.04.132 6.053.717 7.111 6.606 9.563 12.759 10.374l76.827 10.125 39.896 5.259 9.697 1.278c7.063.931 12.011-4.778 12.673-11.346.648-6.415-9.358-6.352-9.999 0z",fill:"currentColor"}))}function YV(t){return v.createElement("svg",{width:361,height:361,viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9zM265.732 265.178c.584 2.887-1.629 5.228-4.942 5.228H103.457c-3.313 0-6.474-2.341-7.058-5.228L75.24 130.633c-.584-2.887 1.628-5.228 4.942-5.228h157.333c3.313 0 6.474 2.34 7.058 5.228l21.159 134.545z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M247.194 199.667h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5h-6.639c-2.726 0-5 2.274-5 5s2.275 5 5 5z",fill:"currentColor"}))}ot.Types.airCondition+"",ot.Types.blind+"",ot.Types.blindButtons+"",ot.Types.button+"",ot.Types.buttonSensor+"",ot.Types.camera+"",ot.Types.chart+"",ot.Types.image+"",ot.Types.dimmer+"",ot.Types.door+"",ot.Types.fireAlarm+"",ot.Types.floodAlarm+"",ot.Types.gate+"",ot.Types.humidity+"",ot.Types.illuminance+"",ot.Types.info+"",ot.Types.light+"",ot.Types.lock+"",ot.Types.location+"",ot.Types.locationOne+"",ot.Types.media+"",ot.Types.motion+"",ot.Types.ct+"",ot.Types.percentage+"",ot.Types.rgb+"",ot.Types.rgbSingle+"",ot.Types.rgbwSingle+"",ot.Types.hue+"",ot.Types.cie+"",ot.Types.slider+"",ot.Types.socket+"",ot.Types.temperature+"",ot.Types.thermostat+"",ot.Types.vacuumCleaner+"",ot.Types.volume+"",ot.Types.volumeGroup+"",ot.Types.window+"",ot.Types.windowTilt+"",ot.Types.weatherCurrent+"",ot.Types.weatherForecast+"",ot.Types.warning+"",ot.Types.unknown+"",ot.Types.instance+"";class wT extends v.Component{static generateFile(e,r){const n=window.document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",window.document.body.appendChild(n),n.click(),window.document.body.removeChild(n)}handleFileSelect=e=>{const n=e.target?.files;if(!n||!n.length){console.error("No files found. Please report to developers");return}const o=n[0];if(o){const a=new window.FileReader;a.onload=()=>{const l=a.result?.toString()||"";try{const c=JSON.parse(l);c.native&&c.common?c.common.name!==this.props.common.name?this.props.onError&&this.props.onError(z.t("ra_otherConfig",c.common.name)):this.props.onLoad&&this.props.onLoad(c.native):this.props.onError&&this.props.onError(z.t("ra_invalidConfig"))}catch(c){this.props.onError&&this.props.onError(c?.toString())}},a.readAsText(o)}else alert("Failed to open JSON File")};download(){const e={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};e.common.news&&delete e.common.news,e.common.titleLang&&delete e.common.titleLang,e.common.desc&&delete e.common.desc,wT.generateFile(`${e._id}.json`,e)}upload(){const e=window.document.createElement("input");e.setAttribute("type","file"),e.setAttribute("id","files"),e.setAttribute("opacity","0"),e.addEventListener("change",this.handleFileSelect,!1),e.click()}render(){return v.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?v.createElement(Qd,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?v.createElement(ua,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{window.open(this.props.common.readme,"_blank")?.focus()}},v.createElement(U$,null)):null,v.createElement(ua,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Load configuration from file"),onClick:()=>this.upload()},v.createElement(sL,null)),v.createElement(ua,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Save configuration to file"),onClick:()=>this.download()},v.createElement(aL,null)))}}function JV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function QV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function ZV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function eG(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function tG(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),v.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}))}const d8={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};v.forwardRef(function(e,r){return v.createElement(J1,{sx:{...d8.root,...e?.style||void 0,...e.overflow==="auto"?d8.overflowAuto:void 0},ref:r},e.children)});v.createElement(tG,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(QV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(ZV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(JV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(nC,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(eG,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),v.createElement(J$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(oL,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(nL,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(iL,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(Z$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(tL,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(B$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(uy,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(gv,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});class mK extends v.Component{refTypo;height;width;constructor(e){super(e),this.state={closed:this.props.storeId?window.localStorage.getItem(this.props.storeId)==="true":!1},this.height=0,this.width=0,this.refTypo=v.createRef()}componentDidMount(){this.detectHeight()}onClick(){this.props.storeId&&this.props.closed===void 0&&(this.state.closed?window.localStorage.removeItem(this.props.storeId):window.localStorage.setItem(this.props.storeId,"true")),this.props.closed===void 0?this.setState({closed:!this.state.closed},()=>{this.props.onClose&&this.props.onClose(this.state.closed)}):this.props.onClose&&this.props.onClose(!this.props.closed)}detectHeight(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed;this.props.closeable&&!e&&this.refTypo.current&&window.requestAnimationFrame(()=>{(this.props.closed!==void 0?this.props.closed:this.state.closed)||this.refTypo.current&&(!this.height||this.width!==this.refTypo.current.clientWidth)&&(this.height=this.refTypo.current.clientHeight,this.width=this.refTypo.current.clientWidth,this.forceUpdate())})}componentDidUpdate(){this.detectHeight()}render(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed,r=e?uL:fa;return v.createElement(ft,{className:"iom-info-box",style:{whiteSpace:"preserve",display:"flex",gap:8,alignItems:e||this.props.iconPosition==="top"?"flex-start":"center",borderWidth:1,borderStyle:"solid",padding:4,borderRadius:5,marginBottom:8,maxWidth:"100%",transition:"height 0.5s",height:this.props.closeable?e?30:this.height||void 0:void 0,overflow:this.props.closeable?"hidden":void 0,position:"relative",...this.props.style},sx:{borderColor:n=>this.props.type==="ok"?n.palette.info.main:n.palette[this.props.type].main}},this.props.type==="ok"?v.createElement(Di,{style:{color:"#0F0"}}):this.props.type==="info"?v.createElement(V$,{color:"primary"}):v.createElement(pL,{color:this.props.type}),v.createElement(qn,{ref:this.refTypo},this.props.children),this.props.closeable?v.createElement(r,{sx:{color:n=>n.palette.mode==="dark"?"lightgray":"gray",cursor:"pointer",position:"absolute",top:4,right:4},onClick:()=>this.onClick()}):null,this.props.closeable?v.createElement("div",{style:{width:22}}):null,e?v.createElement(ft,{component:"div",sx:n=>{const o=n.palette[this.props.type==="ok"?"info":this.props.type].main;return{background:`linear-gradient(${o}00 0%, ${o}10 60%, ${o}90 100%)`}},style:{bottom:0,position:"absolute",left:0,right:0,height:10}}):null)}}const ce={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},E1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],kp=["January","February","March","April","May","June","July","August","September","October","November","December"],C1={minutes:"minutes",hours:"hours"},tc=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function $o(t){return t<10?`0${t}`:`${t}`}const f8={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function T1(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class wr extends _.Component{refFrom;refTo;refOnce;timerOnce=null;timerFrom=null;timerTo=null;constructor(e){super(e);let r;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{r=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(r=this.props.schedule);(!r||!Object.keys(r).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),r=f8),r={...f8,...r},r.valid.from||=wr.now2string(),this.refFrom=v.createRef(),this.refTo=v.createRef(),this.refOnce=v.createRef(),this.state={schedule:r,desc:wr.state2text(r)},JSON.stringify(r)!==this.props.schedule&&setTimeout(()=>this.props.onChange?.(JSON.stringify(r)),100)}componentWillUnmount(){this.timerOnce&&(clearTimeout(this.timerOnce),this.timerOnce=null),this.timerFrom&&(clearTimeout(this.timerFrom),this.timerFrom=null),this.timerTo&&(clearTimeout(this.timerTo),this.timerTo=null)}onChange(e,r){const n=JSON.stringify(e)!==JSON.stringify(this.state.schedule);if(r||n){n&&this.setState({schedule:e,desc:wr.state2text(e)});const o=JSON.parse(JSON.stringify(e));if(o.period.once){const a=o.period.once;delete o.period,o.period={once:a},delete o.valid}else if(o.period.days){const a=o.period.days,l=o.period.dows;delete o.period,o.period={days:a},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.weeks){const a=o.period.weeks,l=o.period.dows;delete o.period,o.period={weeks:a},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.months){const a=o.period.months,l=o.period.dates;delete o.period,o.period={months:a},l&&l!=="[]"&&(o.period.dates=l)}else if(o.period.years){const a=o.period.years,l=o.period.yearMonth,c=o.period.yearDate;delete o.period,o.period={years:a,yearDate:c},l&&(o.period.yearMonth=l)}if(o.time.exactTime?(delete o.time.end,delete o.time.mode,delete o.time.interval):delete o.time.exactTime,o.valid){if(o.valid.to||delete o.valid.to,o.period.days===1||o.period.weeks===1||o.period.months===1||o.period.years===1){const a=wr.string2date(o.valid.from),l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),a<=l&&delete o.valid.from}!o.valid.from&&!o.valid.to&&delete o.valid}this.props.onChange?.(JSON.stringify(o),wr.state2text(e))}}static state2text(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{return""}const r=[],n=wr.string2date(e.valid.from);if(e.period.once){const o=wr.string2date(e.period.once),a=new Date;if(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),oz.t(E1[l]));if(a.length===1)r.push(z.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(z.t("sch_desc_everyDay"));else{const l=a.pop();r.push(z.t("sch_desc_onWeekdays",a.join(", "),l))}}}else r.push(z.t("sch_desc_everyDay"));else r.push(z.t("sch_desc_everyNDay",e.period.days.toString()));else if(e.period.weeks)if(e.period.weeks===1?r.push(z.t("sch_desc_everyWeek")):r.push(z.t("sch_desc_everyNWeeks",e.period.weeks.toString())),e.period.dows){const o=JSON.parse(e.period.dows);if(o.length===2&&o[0]===0&&o[1]===6)r.push(z.t("sch_desc_onWeekends"));else if(o.length===5&&o[0]===1&&o[1]===2&&o[2]===3&&o[3]===4&&o[4]===5)r.push(z.t("sch_desc_onWorkdays"));else{const a=o.map(l=>z.t(E1[l]));if(a.length===1)r.push(z.t("sch_desc_onWeekday",a[0]));else if(a.length===7)r.push(z.t("sch_desc_everyDay"));else{const l=a.pop();r.push(z.t("sch_desc_onWeekdays",a.join(", "),l))}}}else return z.t("sch_desc_never");else if(e.period.months){if(e.period.dates){const o=JSON.parse(e.period.dates);if(o.length===1)r.push(z.t("sch_desc_onDate",o[0]));else if(o.length===31)r.push(z.t("sch_desc_onEveryDate"));else if(o.length){const a=o.pop();r.push(z.t("sch_desc_onDates",o.join(", "),a))}else return z.t("sch_desc_never")}else r.push(z.t("sch_desc_onEveryDate"));if(e.period.months===1)r.push(z.t("sch_desc_everyMonth"));else if(typeof e.period.months=="number")r.push(z.t("sch_desc_everyNMonths",e.period.months.toString()));else{const a=JSON.parse(e.period.months).map(l=>z.t(kp[l-1]));if(!a.length)return z.t("sch_desc_never");if(a.length===1)r.push(z.t("sch_desc_onMonth",a[0]));else if(a.length===12)r.push(z.t("sch_desc_everyMonth"));else{const l=a.pop();r.push(z.t("sch_desc_onMonths",a.join(", "),l))}}}else e.period.years&&(e.period.years===1?r.push(z.t("sch_desc_everyYear")):r.push(z.t("sch_desc_everyNYears",e.period.years.toString())),r.push(z.t("sch_desc_onDate",e.period.yearDate.toString(),e.period.yearMonth?z.t(kp[e.period.yearMonth-1]):z.t("sch_desc_everyMonth"))));if(e.time.exactTime)tc.includes(e.time.start)?r.push(z.t("sch_desc_atTime",z.t(`sch_astro_${e.time.start}`))):r.push(z.t("sch_desc_atTime",e.time.start));else{e.time.mode===C1.minutes?e.time.interval===1?r.push(z.t("sch_desc_everyMinute")):r.push(z.t("sch_desc_everyNMinutes",e.time.interval.toString())):e.time.interval===1?r.push(z.t("sch_desc_everyHour")):r.push(z.t("sch_desc_everyNHours",e.time.interval.toString()));const o=tc.indexOf(e.time.start)!==-1?z.t(`sch_astro_${e.time.start}`):e.time.start,a=tc.indexOf(e.time.end)!==-1?z.t(`sch_astro_${e.time.end}`):e.time.end;(o!=="00:00"||a!=="24:00"&&a!=="23:59")&&r.push(z.t("sch_desc_intervalFromTo",o,a))}return e.period.once||(n.getTime()>Date.now()&&e.valid.to?r.push(z.t("sch_desc_validFromTo",e.valid.from,e.valid.to)):n.getTime()>Date.now()?r.push(z.t("sch_desc_validFrom",e.valid.from)):e.valid.to&&r.push(z.t("sch_desc_validTo",e.valid.to))),r.join(" ")}getTimePeriodElements(){const e=this.state.schedule;let r=!1,n=!1,o=!1,a=!0;return e.time.start==="00:00"&&e.time.end==="24:00"?(r=!0,a=!1):e.time.start==="sunrise"?(n=!0,a=!1):e.time.start==="sunset"&&(o=!0,a=!1),v.createElement("div",{key:"timePeriod",style:ce.rowDiv},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!e.time.exactTime,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.exactTime=!1,this.onChange(l)}}),label:z.t("sch_intervalTime")})),v.createElement("div",{style:ce.settingsDiv},v.createElement("div",{style:ce.settingsDiv},!e.time.exactTime&&v.createElement("div",null,v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!a,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="23:59",this.onChange(l)}}),label:a?"":z.t("sch_fromTo")}),a&&[v.createElement(Ar,{variant:"standard",style:{...ce.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.start=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_from"),margin:"normal"}),v.createElement(Ar,{variant:"standard",style:ce.inputTime,key:"exactTimeTo",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.end=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_to"),margin:"normal"})])),!e.time.exactTime&&v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!r,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="24:00",this.onChange(l)}}),label:z.t("sch_wholeDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!n,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunrise",l.time.end="sunset",this.onChange(l)}}),label:z.t("sch_astroDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!o,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunset",l.time.end="sunrise",this.onChange(l)}}),label:z.t("sch_astroNight")}))),!e.time.exactTime&&this.getPeriodSettingsMinutes(a)))}getTimeExactElements(){const e=tc.includes(this.state.schedule.time.start);return v.createElement("div",{key:"timeExact",style:ce.rowDiv},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.exactTime=!0,this.onChange(r)}}),label:z.t("sch_exactTime")})),this.state.schedule.time.exactTime&&v.createElement(po,{variant:"standard",value:e?this.state.schedule.time.start:"00:00",onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)}},v.createElement(ur,{key:"specific",value:"00:00"},z.t("sch_specificTime")),tc.map(r=>v.createElement(ur,{key:r,value:r},z.t(`sch_astro_${r}`)))),this.state.schedule.time.exactTime&&!e&&v.createElement("div",{style:ce.settingsDiv},v.createElement(Ar,{variant:"standard",style:ce.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:r=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:r.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return v.createElement("hr",{style:ce.hr})}getPeriodModes(){const e=this.state.schedule,r=!e.period.dows&&!e.period.months&&!e.period.dates&&!e.period.years&&!e.period.days&&!e.period.weeks;return r&&!e.period.once&&(e.period.once=wr.now2string(!0)),[v.createElement("div",{key:"once",style:{...ce.rowDiv,...ce.rowOnce}},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.once||=wr.now2string(!0),n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,this.onChange(n)}}),label:z.t("sch_periodOnce")})),r&&v.createElement("div",{style:ce.settingsDiv},v.createElement(Ar,{variant:"standard",style:ce.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:T1(e.period.once),onChange:n=>{this.timerOnce&&clearTimeout(this.timerOnce),this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(o=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),l=wr.string2date(o);l.toString()!=="Invalid Date"&&(a.period.once=`${$o(l.getDate())}.${$o(l.getMonth()+1)}.${l.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_at"),margin:"normal"}))),v.createElement(ft,{component:"div",key:"days",sx:Je.getStyle(this.props.theme,ce.rowDiv,ce.rowDays)},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!e.period.days,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDaily")})),v.createElement("div",{style:ce.settingsDiv},this.getPeriodSettingsDaily(),e.period.days?this.getPeriodSettingsWeekdays():null)),v.createElement(ft,{component:"div",key:"weeks",sx:Je.getStyle(this.props.theme,ce.rowDiv,ce.rowDows)},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!e.period.weeks,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=e.period.weeks?0:1,n.period.dows||="[0]",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodWeekly")})),v.createElement(ft,{component:"div",style:ce.settingsDiv},v.createElement("div",{style:ce.settingsDiv},this.getPeriodSettingsWeekly()),v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,ce.settingsDiv,ce.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),v.createElement(ft,{component:"div",key:"months",sx:Je.getStyle(this.props.theme,ce.rowDiv,ce.rowMonths)},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!e.period.months,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,n.period.dows="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodMonthly")})),v.createElement("div",{style:ce.settingsDiv},this.getPeriodSettingsMonthly(),e.period.months?v.createElement(ft,null,v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,ce.settingsDiv,ce.rowMonthsDates)},v.createElement(pt,{control:v.createElement(Lr,{style:ce.inputRadio,checked:!!e.period.dates,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months||=1;const o=[];for(let a=1;a<=31;a++)o.push(a);n.period.dates||=JSON.stringify(o),n.period.dows="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDates")})),v.createElement(ft,{component:"div",sx:Je.getStyle(this.props.theme,ce.settingsDiv,ce.rowMonthsDates)},this.getPeriodSettingsDates())):null)),v.createElement(ft,{component:"div",key:"years",sx:Je.getStyle(this.props.theme,ce.rowDiv,ce.rowYears)},v.createElement("div",{style:ce.modeDiv},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:!!e.period.years,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,n.period.yearDate=1,n.period.yearMonth=1,n.period.dows="",n.period.months=0,n.period.dates="",n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodYearly")})),v.createElement("div",{style:ce.settingsDiv},v.createElement("div",{style:ce.settingsDiv},this.getPeriodSettingsYearly()),!!e.period.years&&v.createElement("div",{style:ce.settingsDiv},v.createElement("span",null,z.t("sch_on")),v.createElement(lo,{key:"input",value:this.state.schedule.period.yearDate,style:ce.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearDate=parseInt(n.target.value,10),o.period.yearDate<1&&(o.period.yearDate=31),o.period.yearDate>31&&(o.period.yearDate=1),this.onChange(o)}}),v.createElement(po,{variant:"standard",value:e.period.yearMonth,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearMonth=n.target.value,this.onChange(o)}},v.createElement(ur,{key:"every",value:0},z.t("sch_yearEveryMonth")),kp.map((n,o)=>v.createElement(ur,{key:n,value:o+1},z.t(n)))))))]}getPeriodSettingsMinutes(e){return v.createElement("div",{style:{display:"inline-block",marginTop:e?15:"inherit"}},v.createElement("label",{style:{marginLeft:4,marginRight:4}},z.t("sch_every")),v.createElement(lo,{value:this.state.schedule.time.interval,style:{...ce.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.interval=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement(po,{variant:"standard",value:this.state.schedule.time.mode,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.mode=r.target.value,this.onChange(n)}},v.createElement(ur,{value:C1.minutes},z.t("sch_periodMinutes")),v.createElement(ur,{value:C1.hours},z.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const e=this.state.schedule,r=e.period.dows&&e.period.dows!=="[1, 2, 3, 4, 5]"&&e.period.dows!=="[0, 6]";return[v.createElement("div",{key:"workdays"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[1, 2, 3, 4, 5]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWorkdays")})),v.createElement("div",{key:"weekend"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.dows==="[0, 6]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekend")})),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(pt,{style:{verticalAlign:"top"},control:v.createElement(Dt,{style:ce.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 1, 2, 3, 4, 5, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekdays")}),r&&(e.period.days===1||e.period.weeks)&&v.createElement(rm,{row:!0,style:{...ce.inputGroup,width:150}},[1,2,3,4,5,6,0].map(n=>v.createElement(pt,{key:`specific_${n}`,style:ce.inputGroupElement,control:v.createElement(Lr,{style:ce.inputSmallCheck,checked:e.period.dows.includes(n.toString()),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(a.period.dows)}catch{l=[]}o.target.checked&&!l.includes(n)?l.push(n):!o.target.checked&&l.includes(n)&&l.splice(l.indexOf(n),1),l.sort((c,d)=>c-d),a.period.dows=JSON.stringify(l),a.period.days&&(a.period.days=1),this.onChange(a)}}),label:z.t(E1[n])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const e=this.state.schedule;return[v.createElement("div",{key:"every_day"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.days===1&&!e.period.dows,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEveryDay")})),v.createElement("div",{key:"everyN_day"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.days>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=2,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.days>1&&[v.createElement(lo,{key:"input",value:this.state.schedule.period.days,style:ce.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=parseInt(r.target.value,10),n.period.dows="",this.onChange(n)}}),v.createElement("span",{key:"span",style:{paddingRight:10}},z.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const e=this.state.schedule;return[v.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.weeks===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=1,this.onChange(r)}}),label:z.t("sch_periodEveryWeek")})),v.createElement("div",null,v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.weeks>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.weeks>1&&[v.createElement(lo,{key:"input",value:this.state.schedule.period.weeks,style:ce.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement("span",{key:"text"},z.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const e=this.state.schedule,r=[];for(let o=1;o<=31;o++)r.push(o);const n=JSON.parse(e.period.dates);return v.createElement(rm,{row:!0,style:{...ce.inputGroup,maxWidth:620}},v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:n.length===31,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let l=1;l<=31;l++)a.push(l);o.period.dates=JSON.stringify(a),this.onChange(o)}}),label:z.t("sch_all")}),v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dates="[]",this.onChange(o)}}),label:z.t("sch_no_one")}),n.length!==31&&!!n.length&&v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],l=JSON.parse(o.period.dates);for(let c=1;c<=31;c++)l.includes(c)||a.push(c);a.sort((c,d)=>c-d),o.period.dates=JSON.stringify(a),this.onChange(o)}}),label:z.t("sch_invert")}),v.createElement("div",null),r.map(o=>v.createElement(pt,{key:`date_${o}`,style:o?ce.inputDateDay:{...ce.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:JSON.parse(e.period.dates).includes(o),onChange:a=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.dates)}catch{c=[]}a.target.checked&&!c.includes(o)?c.push(o):!a.target.checked&&c.includes(o)&&c.splice(c.indexOf(o),1),c.sort((d,f)=>d-f),l.period.dates=JSON.stringify(c),this.onChange(l)}}),label:o<10?[v.createElement("span",{key:"0",style:{opacity:0}},"0"),v.createElement("span",{key:"num"},o)]:o})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const e=this.state.schedule,r=typeof e.period.months=="string"?JSON.parse(e.period.months):[];return[v.createElement("div",{key:"every"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:typeof e.period.months=="number"&&e.period.months===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,this.onChange(e)}}),label:z.t("sch_periodEveryMonth")})),v.createElement("div",{key:"everyN"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:typeof e.period.months=="number"&&e.period.months>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=2,this.onChange(n)}}),label:z.t("sch_periodEvery")}),typeof e.period.months=="number"&&e.period.months>1&&[v.createElement(lo,{key:"input",value:e.period.months,style:ce.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=parseInt(n.target.value,10),o.period.months<1&&(o.period.months=1),this.onChange(o)}}),v.createElement("span",{key:"text"},z.t("sch_periodMonth"))]),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(pt,{style:{verticalAlign:"top"},control:v.createElement(Dt,{style:ce.inputRadio,checked:typeof e.period.months=="string",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(n)}}),label:z.t("sch_periodSpecificMonths")}),typeof e.period.months=="string"&&v.createElement(rm,{row:!0,style:ce.inputGroup},v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:r.length===12,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[];for(let a=1;a<=12;a++)o.push(a);n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_all")}),v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:!r.length,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[]",this.onChange(n)}}),label:z.t("sch_no_one")}),r.length!==12&&!!r.length&&v.createElement(pt,{style:ce.inputDateDay,control:v.createElement(Lr,{style:ce.inputDateDayCheck,checked:!1,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[],a=JSON.parse(n.period.months);for(let l=1;l<=12;l++)a.includes(l)||o.push(l);o.sort((l,c)=>l-c),n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_invert")}),v.createElement("div",null),kp.map((n,o)=>v.createElement(pt,{key:`month_${o}`,style:ce.inputGroupElement,control:v.createElement(Lr,{style:ce.inputSmallCheck,checked:typeof e.period.months=="string"?JSON.parse(e.period.months).includes(o+1):e.period.months===o,onChange:a=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.months)}catch{c=[]}a.target.checked&&!c.includes(o+1)?c.push(o+1):!a.target.checked&&c.includes(o+1)&&c.splice(c.indexOf(o+1),1),c.sort((d,f)=>d-f),l.period.months=JSON.stringify(c),this.onChange(l)}}),label:z.t(n)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const e=this.state.schedule;return[v.createElement("div",{key:"year"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.years===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,this.onChange(r)}}),label:z.t("sch_periodEveryYear")})),v.createElement("div",{key:"every"},v.createElement(pt,{control:v.createElement(Dt,{style:ce.inputRadio,checked:e.period.years>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.years>1&&[v.createElement(lo,{key:"input",value:this.state.schedule.period.years,style:ce.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=parseInt(r.target.value,10),n.period.years<1&&(n.period.years=1),this.onChange(n)}}),v.createElement("span",{key:"text"},z.t("sch_periodYear"))])]}static now2string(e){const r=new Date;return r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0),e&&(r.setDate(r.getDate()+2),r.setMilliseconds(r.getMilliseconds()-1)),`${$o(r.getDate())}.${$o(r.getMonth()+1)}.${$o(r.getFullYear())}`}static string2date(e){let r=e.split(".");return r.length===1?(r=e.split("-"),new Date(parseInt(r[0],10),parseInt(r[1],10)-1,parseInt(r[2],10))):new Date(parseInt(r[2],10),parseInt(r[1],10)-1,parseInt(r[0],10))}getValidSettings(){const e=this.state.schedule;return v.createElement("div",{style:ce.rowDiv},v.createElement("div",{style:{...ce.modeDiv,verticalAlign:"middle"}},v.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},z.t("sch_valid")),v.createElement("span",null,z.t("sch_validFrom"))),v.createElement("div",{style:ce.settingsDiv},v.createElement(Ar,{variant:"standard",style:{...ce.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:T1(e.valid.from),type:"date",onChange:r=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(n=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),a=wr.string2date(n);a.toString()!=="Invalid Date"&&(o.valid.from=`${$o(a.getDate())}.${$o(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),v.createElement(pt,{control:v.createElement(Lr,{style:ce.inputRadio,checked:!!e.valid.to,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.valid.to=r.valid.to?"":wr.now2string(!0),this.onChange(r)}}),label:z.t("sch_validTo")}),!!e.valid.to&&v.createElement(Ar,{variant:"standard",inputRef:this.refTo,style:{...ce.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:T1(e.valid.to),onChange:r=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(n=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),a=wr.string2date(n);a.toString()!=="Invalid Date"&&(o.valid.to=`${$o(a.getDate())}.${$o(a.getMonth()+1)}.${a.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return v.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},v.createElement("div",null,this.state.desc),v.createElement("div",{style:ce.scrollWindow},v.createElement("h5",null,z.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),wr.getDivider(),v.createElement("h5",null,z.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&wr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}function rG({themeName:t,toggleTheme:e,t:r,className:n,style:o,size:a}){return v.createElement("div",{className:n||void 0,style:o||void 0},v.createElement($p,{title:r("ra_Change color theme"),slotProps:{popper:{sx:{pointerEvents:"none"}}}},v.createElement(cr,{onClick:()=>e(),size:a||"medium"},t==="dark"&&v.createElement(N$,{className:n}),t==="blue"&&v.createElement($$,{className:n}),t==="colored"&&v.createElement(cy,{className:n}),t!=="dark"&&t!=="blue"&&t!=="colored"&&v.createElement(L$,{className:n}))))}function h8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ST(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',xG=Number.isNaN||yo.isNaN;function mt(t){return typeof t=="number"&&!xG(t)}var O8=function(e){return e>0&&e<1/0};function k1(t){return typeof t>"u"}function ma(t){return vv(t)==="object"&&t!==null}var wG=Object.prototype.hasOwnProperty;function $s(t){if(!ma(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&wG.call(r,"isPrototypeOf")}catch{return!1}}function Gr(t){return typeof t=="function"}var SG=Array.prototype.slice;function IT(t){return Array.from?Array.from(t):SG.call(t)}function ar(t,e){return t&&Gr(e)&&(Array.isArray(t)||mt(t.length)?IT(t).forEach(function(r,n){e.call(t,r,n,t)}):ma(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Wt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){ma(a)&&Object.keys(a).forEach(function(l){e[l]=a[l]})}),e},EG=/\.\d*(?:0|9){12}\d*$/;function js(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return EG.test(t)?Math.round(t*e)/e:t}var CG=/^width|height|left|top|marginLeft|marginTop$/;function Si(t,e){var r=t.style;ar(e,function(n,o){CG.test(o)&&mt(n)&&(n="".concat(n,"px")),r[o]=n})}function TG(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function gr(t,e){if(e){if(mt(t.length)){ar(t,function(n){gr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function go(t,e){if(e){if(mt(t.length)){ar(t,function(r){go(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function Ls(t,e,r){if(e){if(mt(t.length)){ar(t,function(n){Ls(n,e,r)});return}r?gr(t,e):go(t,e)}}var kG=/([a-z\d])([A-Z])/g;function c2(t){return t.replace(kG,"$1-$2").toLowerCase()}function kv(t,e){return ma(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(c2(e)))}function Lc(t,e,r){ma(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(c2(e)),r)}function OG(t,e){if(ma(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(c2(e)))}var AT=/\s\s*/,DT=(function(){var t=!1;if(Zd){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});yo.addEventListener("test",r,n),yo.removeEventListener("test",r,n)}return t})();function zn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(AT).forEach(function(a){if(!DT){var l=t.listeners;l&&l[a]&&l[a][r]&&(o=l[a][r],delete l[a][r],Object.keys(l[a]).length===0&&delete l[a],Object.keys(l).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function Cn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(AT).forEach(function(a){if(n.once&&!DT){var l=t.listeners,c=l===void 0?{}:l;o=function(){delete c[a][r],t.removeEventListener(a,o,n);for(var f=arguments.length,g=new Array(f),u=0;uMath.abs(r)&&(r=m)})}),r}function _p(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:ST({startX:r,startY:n},o)}function MG(t){var e=0,r=0,n=0;return ar(t,function(o){var a=o.startX,l=o.startY;e+=a,r+=l,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function Ei(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=O8(n),l=O8(r);if(a&&l){var c=r*e;o==="contain"&&c>n||o==="cover"&&c90?{width:d,height:c}:{width:c,height:d}}function IG(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,l=e.naturalHeight,c=e.rotate,d=c===void 0?0:c,f=e.scaleX,g=f===void 0?1:f,u=e.scaleY,m=u===void 0?1:u,y=r.aspectRatio,w=r.naturalWidth,x=r.naturalHeight,E=n.fillColor,k=E===void 0?"transparent":E,I=n.imageSmoothingEnabled,O=I===void 0?!0:I,R=n.imageSmoothingQuality,M=R===void 0?"low":R,T=n.maxWidth,P=T===void 0?1/0:T,N=n.maxHeight,D=N===void 0?1/0:N,C=n.minWidth,$=C===void 0?0:C,H=n.minHeight,q=H===void 0?0:H,U=document.createElement("canvas"),W=U.getContext("2d"),K=Ei({aspectRatio:y,width:P,height:D}),re=Ei({aspectRatio:y,width:$,height:q},"cover"),Z=Math.min(K.width,Math.max(re.width,w)),V=Math.min(K.height,Math.max(re.height,x)),ee=Ei({aspectRatio:o,width:P,height:D}),F=Ei({aspectRatio:o,width:$,height:q},"cover"),J=Math.min(ee.width,Math.max(F.width,a)),pe=Math.min(ee.height,Math.max(F.height,l)),de=[-J/2,-pe/2,J,pe];return U.width=js(Z),U.height=js(V),W.fillStyle=k,W.fillRect(0,0,Z,V),W.save(),W.translate(Z/2,V/2),W.rotate(d*Math.PI/180),W.scale(g,m),W.imageSmoothingEnabled=O,W.imageSmoothingQuality=M,W.drawImage.apply(W,[t].concat(CT(de.map(function(ie){return Math.floor(js(ie))})))),W.restore(),U}var $T=String.fromCharCode;function AG(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push($T.apply(null,IT(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function LG(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var l=e.byteLength,c=2;c+1=8&&(a=f+u)}}}if(a){var m=e.getUint16(a,n),y,w;for(w=0;w=0?a:MT),height:Math.max(n.offsetHeight,l>=0?l:PT)};this.containerData=c,Si(o,{width:c.width,height:c.height}),gr(e,Kr),go(o,Kr)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,l=o?r.naturalWidth:r.naturalHeight,c=a/l,d=e.width,f=e.height;e.height*c>e.width?n===3?d=e.height*c:f=e.width/c:n===3?f=e.width/c:d=e.height*c;var g={aspectRatio:c,naturalWidth:a,naturalHeight:l,width:d,height:f};this.canvasData=g,this.limited=n===1||n===2,this.limitCanvas(!0,!0),g.width=Math.min(Math.max(g.width,g.minWidth),g.maxWidth),g.height=Math.min(Math.max(g.height,g.minHeight),g.maxHeight),g.left=(e.width-g.width)/2,g.top=(e.height-g.height)/2,g.oldLeft=g.left,g.oldTop=g.top,this.initialCanvasData=Wt({},g)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,l=this.cropBoxData,c=n.viewMode,d=a.aspectRatio,f=this.cropped&&l;if(e){var g=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;c>1?(g=Math.max(g,o.width),u=Math.max(u,o.height),c===3&&(u*d>g?g=u*d:u=g/d)):c>0&&(g?g=Math.max(g,f?l.width:0):u?u=Math.max(u,f?l.height:0):f&&(g=l.width,u=l.height,u*d>g?g=u*d:u=g/d));var m=Ei({aspectRatio:d,width:g,height:u});g=m.width,u=m.height,a.minWidth=g,a.minHeight=u,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(c>(f?0:1)){var y=o.width-a.width,w=o.height-a.height;a.minLeft=Math.min(0,y),a.minTop=Math.min(0,w),a.maxLeft=Math.max(0,y),a.maxTop=Math.max(0,w),f&&this.limited&&(a.minLeft=Math.min(l.left,l.left+(l.width-a.width)),a.minTop=Math.min(l.top,l.top+(l.height-a.height)),a.maxLeft=l.left,a.maxTop=l.top,c===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,y),a.maxLeft=Math.max(0,y)),a.height>=o.height&&(a.minTop=Math.min(0,w),a.maxTop=Math.max(0,w))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=PG({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),l=a.width,c=a.height,d=n.width*(l/n.naturalWidth),f=n.height*(c/n.naturalHeight);n.left-=(d-n.width)/2,n.top-=(f-n.height)/2,n.width=d,n.height=f,n.aspectRatio=l/c,n.naturalWidth=l,n.naturalHeight=c,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Wt({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,l=this.cropBoxData,c=this.limited,d=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,g=Number(n.minCropBoxHeight)||0,u=c?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,m=c?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;f=Math.min(f,o.width),g=Math.min(g,o.height),d&&(f&&g?g*d>f?g=f/d:f=g*d:f?g=f/d:g&&(f=g*d),m*d>u?m=u/d:u=m*d),l.minWidth=Math.min(f,u),l.minHeight=Math.min(g,m),l.maxWidth=u,l.maxHeight=m}r&&(c?(l.minLeft=Math.max(0,a.left),l.minTop=Math.max(0,a.top),l.maxLeft=Math.min(o.width,a.left+a.width)-l.width,l.maxTop=Math.min(o.height,a.top+a.height)-l.height):(l.minLeft=0,l.minTop=0,l.maxLeft=o.width-l.width,l.maxTop=o.height-l.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?kT:s2),Si(this.cropBox,Wt({width:n.width,height:n.height},Ec({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Hs(this.element,wv,this.getData())}},zG={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",l=document.createElement("img");if(r&&(l.crossOrigin=r),l.src=o,l.alt=a,this.viewBox.appendChild(l),this.viewBoxImage=l,!!n){var c=n;typeof n=="string"?c=e.ownerDocument.querySelectorAll(n):n.querySelector&&(c=[n]),this.previews=c,ar(c,function(d){var f=document.createElement("img");Lc(d,Op,{width:d.offsetWidth,height:d.offsetHeight,html:d.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=a,f.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',d.innerHTML="",d.appendChild(f)})}},resetPreview:function(){ar(this.previews,function(e){var r=kv(e,Op);Si(e,{width:r.width,height:r.height}),e.innerHTML=r.html,OG(e,Op)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,l=e.width,c=e.height,d=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(Si(this.viewBoxImage,Wt({width:l,height:c},Ec(Wt({translateX:-d,translateY:-f},e)))),ar(this.previews,function(g){var u=kv(g,Op),m=u.width,y=u.height,w=m,x=y,E=1;o&&(E=m/o,x=a*E),a&&x>y&&(E=y/a,w=o*E,x=y),Si(g,{width:w,height:x}),Si(g.getElementsByTagName("img")[0],Wt({width:l*E,height:c*E},Ec(Wt({translateX:-d*E,translateY:-f*E},e))))}))}},jG={bind:function(){var e=this.element,r=this.options,n=this.cropper;Gr(r.cropstart)&&Cn(e,Cv,r.cropstart),Gr(r.cropmove)&&Cn(e,Ev,r.cropmove),Gr(r.cropend)&&Cn(e,Sv,r.cropend),Gr(r.crop)&&Cn(e,wv,r.crop),Gr(r.zoom)&&Cn(e,Tv,r.zoom),Cn(n,b8,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&Cn(n,C8,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Cn(n,y8,this.onDblclick=this.dblclick.bind(this)),Cn(e.ownerDocument,x8,this.onCropMove=this.cropMove.bind(this)),Cn(e.ownerDocument,w8,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&Cn(window,E8,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;Gr(r.cropstart)&&zn(e,Cv,r.cropstart),Gr(r.cropmove)&&zn(e,Ev,r.cropmove),Gr(r.cropend)&&zn(e,Sv,r.cropend),Gr(r.crop)&&zn(e,wv,r.crop),Gr(r.zoom)&&zn(e,Tv,r.zoom),zn(n,b8,this.onCropStart),r.zoomable&&r.zoomOnWheel&&zn(n,C8,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&zn(n,y8,this.onDblclick),zn(e.ownerDocument,x8,this.onCropMove),zn(e.ownerDocument,w8,this.onCropEnd),r.responsive&&zn(window,E8,this.onResize)}},HG={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,l=Math.abs(o-1)>Math.abs(a-1)?o:a;if(l!==1){var c,d;e.restore&&(c=this.getCanvasData(),d=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(ar(c,function(f,g){c[g]=f*l})),this.setCropBoxData(ar(d,function(f,g){d[g]=f*l})))}}},dblclick:function(){this.disabled||this.options.dragMode===RT||this.setDragMode(TG(this.dragBox,bv)?_T:l2)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(mt(r)&&r!==1||mt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,l;e.changedTouches?ar(e.changedTouches,function(c){a[c.identifier]=_p(c)}):a[e.pointerId||0]=_p(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?l=OT:l=kv(e.target,$c),mG.test(l)&&Hs(this.element,Cv,{originalEvent:e,action:l})!==!1&&(e.preventDefault(),this.action=l,this.cropping=!1,l===TT&&(this.cropping=!0,gr(this.dragBox,pd)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),Hs(this.element,Ev,{originalEvent:e,action:r})!==!1&&(e.changedTouches?ar(e.changedTouches,function(o){Wt(n[o.identifier]||{},_p(o,!0))}):Wt(n[e.pointerId||0]||{},_p(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?ar(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Ls(this.dragBox,pd,this.cropped&&this.options.modal)),Hs(this.element,Sv,{originalEvent:e,action:r}))}}},qG={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,l=this.pointers,c=this.action,d=r.aspectRatio,f=a.left,g=a.top,u=a.width,m=a.height,y=f+u,w=g+m,x=0,E=0,k=o.width,I=o.height,O=!0,R;!d&&e.shiftKey&&(d=u&&m?u/m:1),this.limited&&(x=a.minLeft,E=a.minTop,k=x+Math.min(o.width,n.width,n.left+n.width),I=E+Math.min(o.height,n.height,n.top+n.height));var M=l[Object.keys(l)[0]],T={x:M.endX-M.startX,y:M.endY-M.startY},P=function(D){switch(D){case Zi:y+T.x>k&&(T.x=k-y);break;case ea:f+T.xI&&(T.y=I-w);break}};switch(c){case s2:f+=T.x,g+=T.y;break;case Zi:if(T.x>=0&&(y>=k||d&&(g<=E||w>=I))){O=!1;break}P(Zi),u+=T.x,u<0&&(c=ea,u=-u,f-=u),d&&(m=u/d,g+=(a.height-m)/2);break;case gi:if(T.y<=0&&(g<=E||d&&(f<=x||y>=k))){O=!1;break}P(gi),m-=T.y,g+=T.y,m<0&&(c=fs,m=-m,g-=m),d&&(u=m*d,f+=(a.width-u)/2);break;case ea:if(T.x<=0&&(f<=x||d&&(g<=E||w>=I))){O=!1;break}P(ea),u-=T.x,f+=T.x,u<0&&(c=Zi,u=-u,f-=u),d&&(m=u/d,g+=(a.height-m)/2);break;case fs:if(T.y>=0&&(w>=I||d&&(f<=x||y>=k))){O=!1;break}P(fs),m+=T.y,m<0&&(c=gi,m=-m,g-=m),d&&(u=m*d,f+=(a.width-u)/2);break;case rc:if(d){if(T.y<=0&&(g<=E||y>=k)){O=!1;break}P(gi),m-=T.y,g+=T.y,u=m*d}else P(gi),P(Zi),T.x>=0?yE&&(m-=T.y,g+=T.y):(m-=T.y,g+=T.y);u<0&&m<0?(c=ic,m=-m,u=-u,g-=m,f-=u):u<0?(c=nc,u=-u,f-=u):m<0&&(c=oc,m=-m,g-=m);break;case nc:if(d){if(T.y<=0&&(g<=E||f<=x)){O=!1;break}P(gi),m-=T.y,g+=T.y,u=m*d,f+=a.width-u}else P(gi),P(ea),T.x<=0?f>x?(u-=T.x,f+=T.x):T.y<=0&&g<=E&&(O=!1):(u-=T.x,f+=T.x),T.y<=0?g>E&&(m-=T.y,g+=T.y):(m-=T.y,g+=T.y);u<0&&m<0?(c=oc,m=-m,u=-u,g-=m,f-=u):u<0?(c=rc,u=-u,f-=u):m<0&&(c=ic,m=-m,g-=m);break;case ic:if(d){if(T.x<=0&&(f<=x||w>=I)){O=!1;break}P(ea),u-=T.x,f+=T.x,m=u/d}else P(fs),P(ea),T.x<=0?f>x?(u-=T.x,f+=T.x):T.y>=0&&w>=I&&(O=!1):(u-=T.x,f+=T.x),T.y>=0?w=0&&(y>=k||w>=I)){O=!1;break}P(Zi),u+=T.x,m=u/d}else P(fs),P(Zi),T.x>=0?y=0&&w>=I&&(O=!1):u+=T.x,T.y>=0?w0?c=T.y>0?oc:rc:T.x<0&&(f-=u,c=T.y>0?ic:nc),T.y<0&&(g-=m),this.cropped||(go(this.cropBox,Kr),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}O&&(a.width=u,a.height=m,a.left=f,a.top=g,this.action=c,this.renderCropBox()),ar(l,function(N){N.startX=N.endX,N.startY=N.endY})}},WG={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&gr(this.dragBox,pd),go(this.cropBox,Kr),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Wt({},this.initialImageData),this.canvasData=Wt({},this.initialCanvasData),this.cropBoxData=Wt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Wt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),go(this.dragBox,pd),gr(this.cropBox,Kr)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,ar(this.previews,function(n){n.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,go(this.cropper,g8)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,gr(this.cropper,g8)),this},destroy:function(){var e=this.element;return e[Ht]?(e[Ht]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(k1(e)?e:o+Number(e),k1(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(mt(e)&&(n.left=e,o=!0),mt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,l=a.width,c=a.height,d=a.naturalWidth,f=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var g=d*e,u=f*e;if(Hs(this.element,Tv,{ratio:e,oldRatio:l/d,originalEvent:n})===!1)return this;if(n){var m=this.pointers,y=NT(this.cropper),w=m&&Object.keys(m).length?MG(m):{pageX:n.pageX,pageY:n.pageY};a.left-=(g-l)*((w.pageX-y.left-a.left)/l),a.top-=(u-c)*((w.pageY-y.top-a.top)/c)}else $s(r)&&mt(r.x)&&mt(r.y)?(a.left-=(g-l)*((r.x-a.left)/l),a.top-=(u-c)*((r.y-a.top)/c)):(a.left-=(g-l)/2,a.top-=(u-c)/2);a.width=g,a.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),mt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,mt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(mt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(mt(e)&&(n.scaleX=e,o=!0),mt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,l;if(this.ready&&this.cropped){l={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var c=n.width/n.naturalWidth;if(ar(l,function(g,u){l[u]=g/c}),e){var d=Math.round(l.y+l.height),f=Math.round(l.x+l.width);l.x=Math.round(l.x),l.y=Math.round(l.y),l.width=f-l.x,l.height=d-l.y}}else l={x:0,y:0,width:0,height:0};return r.rotatable&&(l.rotate=n.rotate||0),r.scalable&&(l.scaleX=n.scaleX||1,l.scaleY=n.scaleY||1),l},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&$s(e)){var l=!1;r.rotatable&&mt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,l=!0),r.scalable&&(mt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,l=!0),mt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,l=!0)),l&&this.renderCanvas(!0,!0);var c=n.width/n.naturalWidth;mt(e.x)&&(a.left=e.x*c+o.left),mt(e.y)&&(a.top=e.y*c+o.top),mt(e.width)&&(a.width=e.width*c),mt(e.height)&&(a.height=e.height*c),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Wt({},this.containerData):{}},getImageData:function(){return this.sized?Wt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&ar(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&$s(e)&&(mt(e.left)&&(r.left=e.left),mt(e.top)&&(r.top=e.top),mt(e.width)?(r.width=e.width,r.height=e.width/n):mt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&$s(e)&&(mt(e.left)&&(r.left=e.left),mt(e.top)&&(r.top=e.top),mt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),mt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var r=this.canvasData,n=IG(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,l=o.y,c=o.width,d=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(a*=f,l*=f,c*=f,d*=f);var g=c/d,u=Ei({aspectRatio:g,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),m=Ei({aspectRatio:g,width:e.minWidth||0,height:e.minHeight||0},"cover"),y=Ei({aspectRatio:g,width:e.width||(f!==1?n.width:c),height:e.height||(f!==1?n.height:d)}),w=y.width,x=y.height;w=Math.min(u.width,Math.max(m.width,w)),x=Math.min(u.height,Math.max(m.height,x));var E=document.createElement("canvas"),k=E.getContext("2d");E.width=js(w),E.height=js(x),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,w,x);var I=e.imageSmoothingEnabled,O=I===void 0?!0:I,R=e.imageSmoothingQuality;k.imageSmoothingEnabled=O,R&&(k.imageSmoothingQuality=R);var M=n.width,T=n.height,P=a,N=l,D,C,$,H,q,U;P<=-c||P>M?(P=0,D=0,$=0,q=0):P<=0?($=-P,P=0,D=Math.min(M,c+P),q=D):P<=M&&($=0,D=Math.min(c,M-P),q=D),D<=0||N<=-d||N>T?(N=0,C=0,H=0,U=0):N<=0?(H=-N,N=0,C=Math.min(T,d+N),U=C):N<=T&&(H=0,C=Math.min(d,T-N),U=C);var W=[P,N,D,C];if(q>0&&U>0){var K=w/c;W.push($*K,H*K,q*K,U*K)}return k.drawImage.apply(k,[n].concat(CT(W.map(function(re){return Math.floor(js(re))})))),E},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!k1(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===l2,l=r.movable&&e===_T;e=a||l?e:RT,r.dragMode=e,Lc(n,$c,e),Ls(n,bv,a),Ls(n,xv,l),r.cropBoxMovable||(Lc(o,$c,e),Ls(o,bv,a),Ls(o,xv,l))}return this}},UG=yo.Cropper,LT=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(oG(this,t),!e||!yG.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Wt({},k8,$s(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return iG(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Ht]){if(r[Ht]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(gG.test(r)){vG.test(r)?this.read(NG(r)):this.clone();return}var l=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=c,l.onerror=c,l.ontimeout=c,l.onprogress=function(){l.getResponseHeader("content-type")!==T8&&l.abort()},l.onload=function(){n.read(l.response)},l.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&_8(r)&&o.crossOrigin&&(r=R8(r)),l.open("GET",r,!0),l.responseType="arraybuffer",l.withCredentials=o.crossOrigin==="use-credentials",l.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=LG(r),l=0,c=1,d=1;if(a>1){this.url=$G(r,T8);var f=BG(a);l=f.rotate,c=f.scaleX,d=f.scaleY}n.rotatable&&(o.rotate=l),n.scalable&&(o.scaleX=c,o.scaleY=d),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&_8(n)&&(o||(o="anonymous"),a=R8(n)),this.crossOrigin=o,this.crossOriginUrl=a;var l=document.createElement("img");o&&(l.crossOrigin=o),l.src=a||n,l.alt=r.alt||"The image to crop",this.image=l,l.onload=this.start.bind(this),l.onerror=this.stop.bind(this),gr(l,v8),r.parentNode.insertBefore(l,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=yo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(yo.navigator.userAgent),a=function(f,g){Wt(r.imageData,{naturalWidth:f,naturalHeight:g,aspectRatio:f/g}),r.initialImageData=Wt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var l=document.createElement("img"),c=document.body||document.documentElement;this.sizingImage=l,l.onload=function(){a(l.width,l.height),o||c.removeChild(l)},l.src=n.src,o||(l.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",c.appendChild(l))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,l=document.createElement("div");l.innerHTML=bG;var c=l.querySelector(".".concat(Ht,"-container")),d=c.querySelector(".".concat(Ht,"-canvas")),f=c.querySelector(".".concat(Ht,"-drag-box")),g=c.querySelector(".".concat(Ht,"-crop-box")),u=g.querySelector(".".concat(Ht,"-face"));this.container=a,this.cropper=c,this.canvas=d,this.dragBox=f,this.cropBox=g,this.viewBox=c.querySelector(".".concat(Ht,"-view-box")),this.face=u,d.appendChild(o),gr(r,Kr),a.insertBefore(c,r.nextSibling),go(o,v8),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,gr(g,Kr),n.guides||gr(g.getElementsByClassName("".concat(Ht,"-dashed")),Kr),n.center||gr(g.getElementsByClassName("".concat(Ht,"-center")),Kr),n.background&&gr(c,"".concat(Ht,"-bg")),n.highlight||gr(u,pG),n.cropBoxMovable&&(gr(u,xv),Lc(u,$c,s2)),n.cropBoxResizable||(gr(g.getElementsByClassName("".concat(Ht,"-line")),Kr),gr(g.getElementsByClassName("".concat(Ht,"-point")),Kr)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),Gr(n.ready)&&Cn(r,S8,n.ready,{once:!0}),Hs(r,S8)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),go(this.element,Kr)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=UG,t}},{key:"setDefaults",value:function(r){Wt(k8,$s(r)&&r)}}])})();Wt(LT.prototype,FG,zG,jG,HG,qG,WG);var aa=function(){return aa=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&N.zoomTo(re)})(P.currentTarget.cropper,O),E&&E(P)}}));k&&k(T)}return function(){var P,N;(N=(P=R.current)===null||P===void 0?void 0:P.cropper)===null||N===void 0||N.destroy()}}),[R]);var M=(function(T){return XG.reduce((function(P,N){var D=P,C=N;return D[C],_1(D,[typeof C=="symbol"?C:C+""])}),T)})(aa(aa({},I),{crossOrigin:d,src:a,alt:x}));return v.createElement("div",{style:l,className:c},v.createElement("img",aa({},M,{style:VG,ref:R})))}));const vi={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},GG={once:"once"},Ir={seconds:"seconds",minutes:"minutes"},M8=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function co(t){return t<10?`0${t}`:`${t}`}const KG={mode:"interval",interval:{period:1,unit:Ir.minutes}};function Fp(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),l=parseInt(o[1],10);for(let c=a;c<=l;c++)r.includes(c===7?0:c)||r.push(c===7?0:c)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function BT(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Ir.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Ir.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Ir.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Ir.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Ir.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Fp(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Ir.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Fp(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${co(parseInt(n.hours,10))}:${co(parseInt(n.minutes,10))}`,weekdays:Fp(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${co(parseInt(n.hours,10))}:${co(parseInt(n.minutes,10))}`,date:`${co(parseInt(n.date,10))}.${co(parseInt(n.months,10))}`}}),o}class Bc extends v.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=BT(r||"* * * * *",!0)||KG;this.state={extended:!1,cron:Bc.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Ir.minutes},intervalBetween:{period:1,unit:Ir.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let l=0;l60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Ir.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Ir.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Ir.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Ir.minutes,n.unit){case Ir.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Ir.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let l=parseInt(o[0],10)||0;l>23&&(l=23),l<0&&(l=0),r=`${a} ${l} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${co(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let l=parseInt(o[1],10)||0;l>59&&(l=59),l<0&&(l=0);let c=parseInt(o[0],10)||0;c>23&&(c=23),c<0&&(c=0);let d=parseInt(a[0],10)||1;d>31&&(d=31),d<1&&(d=1);let f=parseInt(a[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${l} ${c} ${d} ${f} *`}return r}recalcCron(){this.onChange(Bc.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return v.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},v.createElement("h5",null,z.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>v.createElement(pt,{key:M8[n],control:v.createElement(Lr,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),l=a.weekdays.indexOf(n);o.target.checked?l===-1&&a.weekdays.push(n):l!==-1&&a.weekdays.splice(l,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:z.t(M8[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),v.createElement(Ar,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(Ar,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),v.createElement(Ar,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(po,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},v.createElement(ur,{value:"seconds"},z.t("sc_seconds")),")",v.createElement(ur,{value:"minutes"},z.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return v.createElement(ms,{variant:"standard",sx:{...vi.formControl,"&.MuiFormControl-root":vi.formControlMarginRight}},v.createElement(Ar,{variant:"standard",key:"at",label:z.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${co(r.getMonth()+1)}`}return v.createElement(ms,{variant:"standard",style:vi.formControl},v.createElement(Ar,{variant:"standard",key:"date",label:z.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:vi.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return v.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),v.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_hours")),v.createElement(ms,{variant:"standard",style:vi.formControl},v.createElement(Np,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_from")),v.createElement(po,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(ur,{key:`B_${r}`,value:r},`${co(r)}:00`)))),v.createElement(ms,{variant:"standard",style:vi.formControl},v.createElement(Np,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_to")),v.createElement(po,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(ur,{key:`A_${r}`,value:r},`${co(r)}:00`)),!e.timeFrom&&v.createElement(ur,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[v.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return v.createElement("div",{style:vi.mainDiv},v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},v.createElement(Ar,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?z.t("sc_invalid_cron"):iT(this.state.cron,this.props.language||"en")),v.createElement("div",null,v.createElement(ms,{variant:"standard",style:{...vi.formControl,marginLeft:8,marginTop:8}},v.createElement(Np,null,z.t("ra_Repeat")),v.createElement(po,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},v.createElement(ur,{value:"once"},z.t("sc_once")),v.createElement(ur,{value:"interval"},z.t("sc_interval")),v.createElement(ur,{value:"intervalBetween"},z.t("sc_intervalBetween")),v.createElement(ur,{value:"specific"},z.t("sc_specific"))))),this.state.mode===GG.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const YG={dialogPaper:{height:"calc(100% - 96px)"}};class gK extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=wi.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?v.createElement(wL,{title:z.t("ra_Please confirm"),text:z.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return v.createElement(Ho,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":YG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),v.createElement(Uo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),v.createElement(Wo,{style:{height:"100%",overflow:"hidden"}},v.createElement(wi,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(qo,null,!!this.props.clearButton&&v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:v.createElement(Lp,null)},this.props.clear||z.t("ra_Clear")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Di,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(Nd,null)},this.props.cancel||z.t("ra_Cancel"))))}}const JG={dialogPaper:{height:"calc(100% - 96px)"}};class vK extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":BT(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return v.createElement(Ho,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":JG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(Uo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),v.createElement(Wo,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?v.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&v.createElement(v.Fragment,null,v.createElement(Dt,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),v.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},z.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&v.createElement(v.Fragment,null,v.createElement(Dt,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),v.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},z.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&v.createElement(v.Fragment,null,v.createElement(Dt,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),v.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},z.t("sc_cron")))):null,this.state.mode==="simple"&&v.createElement(Bc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()}),this.state.mode==="wizard"&&v.createElement(wr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&v.createElement(wi,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Di,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(Nd,null)},this.props.cancel||z.t("ra_Cancel"))))}}const ta={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class yK extends v.Component{dialogName;filters;constructor(e){super(e),this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const r=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(r)}catch{this.filters={}}e.filters&&(this.filters={...this.filters,...e.filters});let n=this.props.selected||[];typeof n!="object"?n=[n]:n=[...n],n=n.filter(o=>o),this.state={selected:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let e;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?e=[v.createElement("span",{key:"selected"},z.t("ra_Selected")," "),v.createElement("span",{key:"id",style:ta.headerID},this.state.selected)]:e=[v.createElement("span",{key:"selected"},z.t("ra_Selected")," "),v.createElement("span",{key:"id",style:ta.headerID},z.t("%s items",this.state.selected.length))]:e=this.props.title||z.t("ra_Please select file..."),v.createElement(Ho,{onClose:()=>{},maxWidth:!1,style:{zIndex:this.props.zIndex||void 0},sx:{"& .MuiDialog-paper":{...ta.dialog,...ta.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},v.createElement(Uo,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":ta.titleRoot}},e),v.createElement(Wo,{style:{...ta.content,...ta.contentMobile}},v.createElement(aV,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(r,n,o)=>{this.setState({selected:Array.isArray(r)?r:[r]},()=>n&&(!this.props.selectOnlyFolders||o)&&this.handleOk())},t:this.props.t||z.t,lang:this.props.lang||z.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:v.createElement(Di,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(Nd,null)},this.props.cancel||z.t("ra_Cancel"))))}}const QG={dialogPaper:{height:"calc(100% - 96px)"}};class bK extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return v.createElement(Ho,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":QG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(Uo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define CRON...")),v.createElement(Wo,{style:{height:"100%",overflow:"hidden"}},v.createElement(Bc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(qo,null,v.createElement(Vt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Di,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(Nd,null)},this.props.cancel||z.t("ra_Cancel"))))}}const ZG={"Sign out":"Sign out"},eK={"Sign out":"Abmelden"},tK={"Sign out":"Выйти"},rK={"Sign out":"sair"},nK={"Sign out":"Afmelden"},oK={"Sign out":"se déconnecter"},iK={"Sign out":"disconnessione"},aK={"Sign out":"desconectar"},sK={"Sign out":"Wyloguj się"},lK={"Sign out":"Вийти"},cK={"Sign out":"登出"},uK="0 8px 17px 0 rgba(0, 0, 0, .2),0 6px 20px 0 rgba(0, 0, 0, .19)",ra={root:t=>({padding:".75rem",[t.breakpoints.up("xl")]:{flex:"0 1 20%"}}),card:{display:"flex",flexDirection:"column",alignItems:"stretch",minHeight:"235px",position:"relative",overflow:"hidden",maxHeight:"235p","&:hover":{overflowY:"auto",boxShadow:uK}},img:{width:120,height:"auto",padding:"2rem .5rem",maxWidth:"100%"},content:{height:"170px",flexGrow:1,overflowY:"hidden"},action:{minHeight:"49px",padding:"16px 24px",justifyContent:"center",fontSize:"1.4rem"},contentGrid:{height:"100%",alignItems:"center"},colorOrange:t=>({color:t.palette.mode==="dark"?"#3399CC":"#164477"})};class Lo extends _.Component{constructor(e){super(e);const r=Lo.createTheme();this.state={theme:r,themeName:Lo.getThemeName(r),themeType:Lo.getThemeType(r),config:null,cards:[]},r.palette.mode==="dark"&&(document.body.style.backgroundColor="#030303"),z.setTranslations({en:ZG,de:eK,ru:tK,pt:rK,nl:nK,fr:oK,it:iK,es:aK,pl:sK,uk:lK,"zh-cn":cK})}componentDidMount(){fetch("config.json").then(e=>e.json()).then(e=>{z.setLanguage(e.systemLang);const r=[];for(let n=0;na.link===e.list[n].link)||r.push({link:e.list[n].link,img:e.list[n].img,name:o+(e.list[n].instance!==void 0?`.${e.list[n].instance}`:""),order:e.list[n].order})}this.setState({config:e,cards:r})})}static createTheme(e){return hL(Je.getThemeName(e))}static getThemeName(e){return e.name}static getThemeType(e){return e.palette.mode}toggleTheme=e=>{const r=this.state.themeName,n=e||Je.toggleTheme(r),o=Lo.createTheme(n);o.palette.mode==="dark"?document.body.style.backgroundColor="#030303":document.body.style.backgroundColor="#f0f0f0",this.setState({theme:o,themeName:n,themeType:Lo.getThemeType(o)})};static onLogout(){window.localStorage.removeItem("refresh_token"),window.localStorage.removeItem("refresh_token_exp"),window.localStorage.removeItem("access_token_exp"),window.sessionStorage.removeItem("refresh_token"),window.sessionStorage.removeItem("refresh_token_exp"),window.sessionStorage.removeItem("access_token_exp"),window.location.href="/logout"}renderCard(e,r){return L.jsx(J1,{size:{xs:12,sm:6,md:4,lg:3,xl:2},sx:Je.getStyle(this.state.theme,ra.root),style:{maxWidth:350,width:"100%"},children:L.jsx(zD,{href:e.link,underline:"none",target:"_self",rel:"noopener noreferrer",children:L.jsxs(MI,{sx:ra.card,children:[L.jsx(BI,{style:ra.content,children:L.jsx(J1,{container:!0,direction:"column",wrap:"nowrap",style:ra.contentGrid,children:L.jsx(WI,{style:ra.img,component:"img",image:e.img})})}),L.jsx(Y1,{}),L.jsxs(DI,{style:ra.action,children:[L.jsx(ft,{sx:ra.colorOrange,style:{flexGrow:1,textAlign:"center"},children:e.name}),L.jsx(cr,{onClick:n=>{n.stopPropagation(),n.preventDefault(),window.open(e.link,e.name)},children:L.jsx(K$,{})})]})]})})},r)}render(){const e=window.innerWidth<600;return L.jsx(qk,{injectFirst:!0,children:L.jsxs(IR,{theme:this.state.theme,children:[L.jsx(AE,{style:{backgroundColor:this.state.theme.palette.mode==="dark"?void 0:"#f0f0f0"},children:L.jsxs(ly,{style:{gap:8},children:[L.jsx("img",{src:"logo.svg",alt:"Logo",style:{height:e?32:48}}),L.jsx("div",{style:{flexGrow:1,textAlign:"center"},children:e?"":"ioBroker.web"}),this.state.config?.authEnabled?e?L.jsx(cr,{onClick:()=>Lo.onLogout(),children:L.jsx(E4,{})}):L.jsx(Vt,{variant:"outlined",startIcon:L.jsx(E4,{}),onClick:()=>Lo.onLogout(),children:z.t("Sign out")}):null,this.state.themeName!=="PT"&&this.state.themeName!=="DX"?L.jsx(rG,{t:z.t,themeName:this.state.themeName,toggleTheme:()=>this.toggleTheme()}):null]})}),L.jsx(rl,{className:this.state.themeType==="dark"?"theme-dark":"theme-light",style:{backgroundColor:this.state.themeType==="dark"?"#080808":"#f0f0f0",display:"flex",flexFlow:"wrap",overflow:"auto",justifyContent:"center",width:"calc(100% - 1rem)",height:"calc(100% - 1rem - 64px)",marginTop:64,overflowY:"auto",padding:"0.5rem"},component:"div",children:this.state.cards.map((r,n)=>this.renderCard(r,n))})]})})}}window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function pK(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const P8=document.getElementById("root");P8&&z7.createRoot(P8).render(L.jsx(Lo,{}));pK()});export default dK(); diff --git a/www/index.html b/www/index.html index ee6dffc8..a11af6db 100644 --- a/www/index.html +++ b/www/index.html @@ -97,7 +97,7 @@ window.loginLanguage = lang; } - + diff --git a/www/login/index.html b/www/login/index.html index 20870c21..e611c743 100644 --- a/www/login/index.html +++ b/www/login/index.html @@ -49,18 +49,18 @@ window.loginLanguage = lang; } - + C231.591,212.679,237.828,191.414,234.21,169.856z`})))}function k1(t){return v.createElement("svg",{viewBox:"1 -10 511.99999 511",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M 405.5 150 C 405.5 232.566406 338.566406 299.5 256 299.5 C 173.433594 299.5 106.5 232.566406 106.5 150 C 106.5 67.433594 173.433594 0.5 256 0.5 C 338.566406 0.5 405.5 67.433594 405.5 150 Z M 405.5 150 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(25.882353%,75.294118%,88.627451%)",fillOpacity:1}}),v.createElement("path",{d:"M 512 342.921875 C 512 425.488281 445.066406 492.421875 362.5 492.421875 C 279.933594 492.421875 213 425.488281 213 342.921875 C 213 260.355469 279.933594 193.421875 362.5 193.421875 C 445.066406 193.421875 512 260.355469 512 342.921875 Z M 512 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,81.568627%,38.039216%)",fillOpacity:1}}),v.createElement("path",{d:"M 220.746094 295.308594 C 232.050781 298.039062 243.855469 299.5 256 299.5 C 321.917969 299.5 377.871094 256.835938 397.753906 197.613281 C 386.449219 194.878906 374.644531 193.421875 362.5 193.421875 C 296.582031 193.421875 240.628906 236.085938 220.746094 295.308594 Z M 220.746094 295.308594 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(28.627451%,74.117647%,56.470588%)",fillOpacity:1}}),v.createElement("path",{d:"M 299 342.921875 C 299 425.488281 232.066406 492.421875 149.5 492.421875 C 66.933594 492.421875 0 425.488281 0 342.921875 C 0 260.355469 66.933594 193.421875 149.5 193.421875 C 232.066406 193.421875 299 260.355469 299 342.921875 Z M 299 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(98.039216%,43.921569%,69.803922%)",fillOpacity:1}}),v.createElement("path",{d:"M 114.246094 197.613281 C 134.128906 256.835938 190.082031 299.5 256 299.5 C 268.144531 299.5 279.949219 298.039062 291.253906 295.308594 C 271.371094 236.085938 215.417969 193.421875 149.5 193.421875 C 137.355469 193.421875 125.550781 194.878906 114.246094 197.613281 Z M 114.246094 197.613281 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(68.627451%,48.235294%,77.647059%)",fillOpacity:1}}),v.createElement("path",{d:"M 213 342.921875 C 213 383.800781 229.414062 420.839844 256 447.828125 C 282.585938 420.839844 299 383.800781 299 342.921875 C 299 302.042969 282.585938 265.003906 256 238.015625 C 229.414062 265.003906 213 302.042969 213 342.921875 Z M 213 342.921875 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(93.72549%,38.039216%,13.333333%)",fillOpacity:1}}),v.createElement("path",{d:"M 291.253906 295.320312 C 279.949219 298.046875 268.140625 299.5 256 299.5 C 243.859375 299.5 232.050781 298.046875 220.746094 295.320312 C 228.058594 273.542969 240.242188 254.015625 256 238.015625 C 271.757812 254.015625 283.941406 273.542969 291.253906 295.320312 Z M 291.253906 295.320312 ",style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1}})))}function OV(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 365.445 365.445",...t},v.createElement("g",{fill:"currentColor"},v.createElement("path",{d:"M146.7 162.775h-26.8a6.655 6.655 0 0 0-6.647 6.647v26.602a6.653 6.653 0 0 0 6.647 6.646h26.8a6.654 6.654 0 0 0 6.647-6.646v-26.602a6.655 6.655 0 0 0-6.647-6.647zM245.547 162.775h-26.801a6.653 6.653 0 0 0-6.646 6.647v26.602a6.652 6.652 0 0 0 6.646 6.646h26.801a6.654 6.654 0 0 0 6.646-6.646v-26.602a6.655 6.655 0 0 0-6.646-6.647z"})),v.createElement("path",{d:"M345.445 1.204H20c-11.046 0-20 8.954-20 20v323.037c0 11.045 8.954 20 20 20h325.445c11.045 0 20-8.955 20-20V21.204c0-11.045-8.953-20-20-20zM182.723 287.66c-57.955 0-104.937-46.981-104.937-104.937 0-57.957 46.982-104.938 104.937-104.938S287.66 124.767 287.66 182.723 240.678 287.66 182.723 287.66z",fill:"currentColor"}))}function RV(t){return v.createElement("svg",{width:32,height:32,viewBox:"0 0 45.659 45.659",...t},v.createElement("path",{fill:"currentColor",d:"M30.619 27.309V7.781C30.619 3.49 27.124 0 22.833 0c-4.29 0-7.785 3.491-7.785 7.78v19.528a10.722 10.722 0 0 0-3.05 7.522c0 5.972 4.857 10.828 10.829 10.828 5.97 0 10.834-4.856 10.834-10.828 0-2.918-1.141-5.572-3.042-7.521zM22.825 42.66c-4.316 0-7.824-3.512-7.824-7.828 0-2.527 1.174-4.779 3.077-6.211V16.237h3.372c.552 0 1-.47 1-1.022 0-.553-.448-1.021-1-1.021h-3.372v-2.466h3.372c.552 0 1-.434 1-.986a.989.989 0 0 0-1-.986h-3.372V7.78c0-2.636 2.119-4.78 4.754-4.78 2.637 0 4.756 2.144 4.756 4.781v20.871c1.903 1.434 3.047 3.671 3.047 6.18 0 4.316-3.494 7.828-7.81 7.828z"}),v.createElement("path",{fill:"currentColor",d:"M25.334 30.463V18.632h-5.002v11.831a4.973 4.973 0 0 0-2.537 4.369 5.038 5.038 0 0 0 5.038 5.046 5.034 5.034 0 0 0 5.034-5.046c0-1.866-.982-3.495-2.533-4.369z"}))}function PV(t){return v.createElement("svg",{viewBox:"0 0 297 297",...t},v.createElement("g",null,v.createElement("path",{fill:"currentColor",d:"m243.404,138.042c-5.775,0-10.458,4.683-10.458,10.458 0,46.564-37.883,84.446-84.446,84.446s-84.446-37.882-84.446-84.446 37.883-84.446 84.446-84.446c5.775,0 10.458-4.683 10.458-10.458s-4.683-10.457-10.458-10.457c-58.097,0-105.361,47.265-105.361,105.361s47.264,105.361 105.361,105.361 105.361-47.264 105.361-105.361c0-5.775-4.681-10.458-10.457-10.458z"}),v.createElement("path",{fill:"currentColor",d:"m142.963,121.344l-20.272-30.41c-3.203-4.807-9.695-6.104-14.502-2.9-4.805,3.202-6.104,9.695-2.9,14.502l20.279,30.422c-3.015,4.436-4.78,9.787-4.78,15.543 0,15.281 12.432,27.713 27.713,27.713 15.281,0 27.713-12.432 27.713-27.713 0-15.281-12.432-27.713-27.713-27.713-1.897-0.001-3.749,0.191-5.538,0.556zm12.335,27.156c0,3.748-3.05,6.798-6.798,6.798s-6.798-3.05-6.798-6.798 3.05-6.798 6.798-6.798 6.798,3.05 6.798,6.798z"}),v.createElement("path",{fill:"currentColor",d:"M148.5,0C66.617,0,0,66.617,0,148.5S66.617,297,148.5,297S297,230.383,297,148.5S230.383,0,148.5,0z M158.958,275.653 v-6.366c0-5.775-4.683-10.458-10.458-10.458c-5.775,0-10.458,4.683-10.458,10.458v6.366 c-62.027-5.056-111.64-54.668-116.695-116.695h6.366c5.775,0,10.458-4.683,10.458-10.458s-4.683-10.458-10.458-10.458h-6.366 c5.056-62.027,54.668-111.64,116.695-116.695v6.366c0,5.775,4.683,10.458,10.458,10.458c5.775,0,10.458-4.683,10.458-10.458v-6.366 c62.027,5.056,111.64,54.668,116.695,116.695h-6.366c-5.775,0-10.458,4.683-10.458,10.458s4.683,10.458,10.458,10.458h6.366 C270.598,220.985,220.985,270.598,158.958,275.653z"})))}function MV(t){return v.createElement("svg",{viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M228.5 205.584h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5H228.5c-2.726 0-5 2.274-5 5s2.274 5 5 5z",fill:"currentColor"}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M232.826 280.905c-.339 3.356-18.813-.782-20.919-1.06l-45.073-5.94-45.074-5.94-14.507-1.912c-1.456-.192-6.201-.055-6.412-2.147-.621-6.157 0-12.699 0-18.878v-43.5-82.076-5.13c0-2.551 5.184-1.015 6.412-.853l35.438 4.67 83.723 11.035c1.457.192 6.201.055 6.412 2.147.169 1.673 0 3.451 0 5.13v144.454c0 6.448 10 6.448 10 0V136.451v-5.13c0-7.619-6.137-10.793-12.673-11.655l-28.531-3.76-88.411-11.652-9.897-1.304c-6.555-.864-12.473 4.9-12.473 11.38v144.832c0 2.023-.071 4.04.132 6.053.717 7.111 6.606 9.563 12.759 10.374l76.827 10.125 39.896 5.259 9.697 1.278c7.063.931 12.011-4.778 12.673-11.346.648-6.415-9.358-6.352-9.999 0z",fill:"currentColor"}))}function IV(t){return v.createElement("svg",{width:361,height:361,viewBox:"0 0 361 361",...t},v.createElement("path",{d:"M267.826 263.303c0 3.91-3.156 7.082-7.05 7.082l-157.885.021c-3.894 0-7.05-3.171-7.05-7.083v-157.5c0-3.911 3.156-7.083 7.05-7.083l157.885-.021c3.894 0 7.05 3.172 7.05 7.083v157.501z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M267.826 103.208c0 2.485-2.711 4.5-6.053 4.5l-159.88.021c-3.342 0-6.052-2.015-6.052-4.5v-9c0-2.485 2.71-4.5 6.052-4.5l159.88-.021c3.342 0 6.053 2.015 6.053 4.5v9zM265.732 265.178c.584 2.887-1.629 5.228-4.942 5.228H103.457c-3.313 0-6.474-2.341-7.058-5.228L75.24 130.633c-.584-2.887 1.628-5.228 4.942-5.228h157.333c3.313 0 6.474 2.34 7.058 5.228l21.159 134.545z",fill:"none",stroke:"currentColor",strokeWidth:10,strokeMiterlimit:10}),v.createElement("path",{d:"M247.194 199.667h6.639c2.726 0 5-2.274 5-5s-2.274-5-5-5h-6.639c-2.726 0-5 2.274-5 5s2.275 5 5 5z",fill:"currentColor"}))}ot.Types.airCondition+"",ot.Types.blind+"",ot.Types.blindButtons+"",ot.Types.button+"",ot.Types.buttonSensor+"",ot.Types.camera+"",ot.Types.chart+"",ot.Types.image+"",ot.Types.dimmer+"",ot.Types.door+"",ot.Types.fireAlarm+"",ot.Types.floodAlarm+"",ot.Types.gate+"",ot.Types.humidity+"",ot.Types.illuminance+"",ot.Types.info+"",ot.Types.light+"",ot.Types.lock+"",ot.Types.location+"",ot.Types.locationOne+"",ot.Types.media+"",ot.Types.motion+"",ot.Types.ct+"",ot.Types.percentage+"",ot.Types.rgb+"",ot.Types.rgbSingle+"",ot.Types.rgbwSingle+"",ot.Types.hue+"",ot.Types.cie+"",ot.Types.slider+"",ot.Types.socket+"",ot.Types.temperature+"",ot.Types.thermostat+"",ot.Types.vacuumCleaner+"",ot.Types.volume+"",ot.Types.volumeGroup+"",ot.Types.window+"",ot.Types.windowTilt+"",ot.Types.weatherCurrent+"",ot.Types.weatherForecast+"",ot.Types.warning+"",ot.Types.unknown+"",ot.Types.instance+"";let xY=class EC extends v.Component{static generateFile(e,r){const n=window.document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",window.document.body.appendChild(n),n.click(),window.document.body.removeChild(n)}handleFileSelect=e=>{const n=e.target?.files;if(!n||!n.length){console.error("No files found. Please report to developers");return}const o=n[0];if(o){const i=new window.FileReader;i.onload=()=>{const l=i.result?.toString()||"";try{const c=JSON.parse(l);c.native&&c.common?c.common.name!==this.props.common.name?this.props.onError&&this.props.onError(z.t("ra_otherConfig",c.common.name)):this.props.onLoad&&this.props.onLoad(c.native):this.props.onError&&this.props.onError(z.t("ra_invalidConfig"))}catch(c){this.props.onError&&this.props.onError(c?.toString())}},i.readAsText(o)}else alert("Failed to open JSON File")};download(){const e={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};e.common.news&&delete e.common.news,e.common.titleLang&&delete e.common.titleLang,e.common.desc&&delete e.common.desc,EC.generateFile(`${e._id}.json`,e)}upload(){const e=window.document.createElement("input");e.setAttribute("type","file"),e.setAttribute("id","files"),e.setAttribute("opacity","0"),e.addEventListener("change",this.handleFileSelect,!1),e.click()}render(){return v.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?v.createElement(rf,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?v.createElement(fa,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{window.open(this.props.common.readme,"_blank")?.focus()}},v.createElement(k$,null)):null,v.createElement(fa,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Load configuration from file"),onClick:()=>this.upload()},v.createElement(j$,null)),v.createElement(fa,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:z.t("ra_Save configuration to file"),onClick:()=>this.download()},v.createElement(z$,null)))}};function AV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function DV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function NV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("g",{fill:"currentColor"},v.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),v.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),v.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),v.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"})))}function $V(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("path",{fill:"currentColor",d:"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"}))}function LV(t){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},v.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),v.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}))}const f8={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};v.forwardRef(function(e,r){return v.createElement(YT,{sx:{...f8.root,...e?.style||void 0,...e.overflow==="auto"?f8.overflowAuto:void 0},ref:r},e.children)});v.createElement(LV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(DV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(NV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(AV,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(iE,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement($V,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),v.createElement(M$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(F$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(L$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(B$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(A$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(N$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(b$,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(uy,{className:"itemIcon",style:{verticalAlign:"middle"}}),v.createElement(yv,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});class SY extends v.Component{refTypo;height;width;constructor(e){super(e),this.state={closed:this.props.storeId?window.localStorage.getItem(this.props.storeId)==="true":!1},this.height=0,this.width=0,this.refTypo=v.createRef()}componentDidMount(){this.detectHeight()}onClick(){this.props.storeId&&this.props.closed===void 0&&(this.state.closed?window.localStorage.removeItem(this.props.storeId):window.localStorage.setItem(this.props.storeId,"true")),this.props.closed===void 0?this.setState({closed:!this.state.closed},()=>{this.props.onClose&&this.props.onClose(this.state.closed)}):this.props.onClose&&this.props.onClose(!this.props.closed)}detectHeight(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed;this.props.closeable&&!e&&this.refTypo.current&&window.requestAnimationFrame(()=>{(this.props.closed!==void 0?this.props.closed:this.state.closed)||this.refTypo.current&&(!this.height||this.width!==this.refTypo.current.clientWidth)&&(this.height=this.refTypo.current.clientHeight,this.width=this.refTypo.current.clientWidth,this.forceUpdate())})}componentDidUpdate(){this.detectHeight()}render(){const e=this.props.closed!==void 0?this.props.closed:this.state.closed,r=e?sE:ga;return v.createElement(pt,{className:"iom-info-box",style:{whiteSpace:"preserve",display:"flex",gap:8,alignItems:e||this.props.iconPosition==="top"?"flex-start":"center",borderWidth:1,borderStyle:"solid",padding:4,borderRadius:5,marginBottom:8,maxWidth:"100%",transition:"height 0.5s",height:this.props.closeable?e?30:this.height||void 0:void 0,overflow:this.props.closeable?"hidden":void 0,position:"relative",...this.props.style},sx:{borderColor:n=>this.props.type==="ok"?n.palette.info.main:n.palette[this.props.type].main}},this.props.type==="ok"?v.createElement(Fi,{style:{color:"#0F0"}}):this.props.type==="info"?v.createElement(O$,{color:"primary"}):v.createElement(W$,{color:this.props.type}),v.createElement(dn,{ref:this.refTypo},this.props.children),this.props.closeable?v.createElement(r,{sx:{color:n=>n.palette.mode==="dark"?"lightgray":"gray",cursor:"pointer",position:"absolute",top:4,right:4},onClick:()=>this.onClick()}):null,this.props.closeable?v.createElement("div",{style:{width:22}}):null,e?v.createElement(pt,{component:"div",sx:n=>{const o=n.palette[this.props.type==="ok"?"info":this.props.type].main;return{background:`linear-gradient(${o}00 0%, ${o}10 60%, ${o}90 100%)`}},style:{bottom:0,position:"absolute",left:0,right:0,height:10}}):null)}}const le={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},_1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Pd=["January","February","March","April","May","June","July","August","September","October","November","December"],O1={minutes:"minutes",hours:"hours"},oc=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function Fo(t){return t<10?`0${t}`:`${t}`}const h8={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function R1(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class Sr extends O.Component{refFrom;refTo;refOnce;timerOnce=null;timerFrom=null;timerTo=null;constructor(e){super(e);let r;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{r=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(r=this.props.schedule);(!r||!Object.keys(r).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),r=h8),r={...h8,...r},r.valid.from||=Sr.now2string(),this.refFrom=v.createRef(),this.refTo=v.createRef(),this.refOnce=v.createRef(),this.state={schedule:r,desc:Sr.state2text(r)},JSON.stringify(r)!==this.props.schedule&&setTimeout(()=>this.props.onChange?.(JSON.stringify(r)),100)}componentWillUnmount(){this.timerOnce&&(clearTimeout(this.timerOnce),this.timerOnce=null),this.timerFrom&&(clearTimeout(this.timerFrom),this.timerFrom=null),this.timerTo&&(clearTimeout(this.timerTo),this.timerTo=null)}onChange(e,r){const n=JSON.stringify(e)!==JSON.stringify(this.state.schedule);if(r||n){n&&this.setState({schedule:e,desc:Sr.state2text(e)});const o=JSON.parse(JSON.stringify(e));if(o.period.once){const i=o.period.once;delete o.period,o.period={once:i},delete o.valid}else if(o.period.days){const i=o.period.days,l=o.period.dows;delete o.period,o.period={days:i},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.weeks){const i=o.period.weeks,l=o.period.dows;delete o.period,o.period={weeks:i},l&&l!=="[]"&&(o.period.dows=l)}else if(o.period.months){const i=o.period.months,l=o.period.dates;delete o.period,o.period={months:i},l&&l!=="[]"&&(o.period.dates=l)}else if(o.period.years){const i=o.period.years,l=o.period.yearMonth,c=o.period.yearDate;delete o.period,o.period={years:i,yearDate:c},l&&(o.period.yearMonth=l)}if(o.time.exactTime?(delete o.time.end,delete o.time.mode,delete o.time.interval):delete o.time.exactTime,o.valid){if(o.valid.to||delete o.valid.to,o.period.days===1||o.period.weeks===1||o.period.months===1||o.period.years===1){const i=Sr.string2date(o.valid.from),l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),i<=l&&delete o.valid.from}!o.valid.from&&!o.valid.to&&delete o.valid}this.props.onChange?.(JSON.stringify(o),Sr.state2text(e))}}static state2text(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{return""}const r=[],n=Sr.string2date(e.valid.from);if(e.period.once){const o=Sr.string2date(e.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),oz.t(_1[l]));if(i.length===1)r.push(z.t("sch_desc_onWeekday",i[0]));else if(i.length===7)r.push(z.t("sch_desc_everyDay"));else{const l=i.pop();r.push(z.t("sch_desc_onWeekdays",i.join(", "),l))}}}else r.push(z.t("sch_desc_everyDay"));else r.push(z.t("sch_desc_everyNDay",e.period.days.toString()));else if(e.period.weeks)if(e.period.weeks===1?r.push(z.t("sch_desc_everyWeek")):r.push(z.t("sch_desc_everyNWeeks",e.period.weeks.toString())),e.period.dows){const o=JSON.parse(e.period.dows);if(o.length===2&&o[0]===0&&o[1]===6)r.push(z.t("sch_desc_onWeekends"));else if(o.length===5&&o[0]===1&&o[1]===2&&o[2]===3&&o[3]===4&&o[4]===5)r.push(z.t("sch_desc_onWorkdays"));else{const i=o.map(l=>z.t(_1[l]));if(i.length===1)r.push(z.t("sch_desc_onWeekday",i[0]));else if(i.length===7)r.push(z.t("sch_desc_everyDay"));else{const l=i.pop();r.push(z.t("sch_desc_onWeekdays",i.join(", "),l))}}}else return z.t("sch_desc_never");else if(e.period.months){if(e.period.dates){const o=JSON.parse(e.period.dates);if(o.length===1)r.push(z.t("sch_desc_onDate",o[0]));else if(o.length===31)r.push(z.t("sch_desc_onEveryDate"));else if(o.length){const i=o.pop();r.push(z.t("sch_desc_onDates",o.join(", "),i))}else return z.t("sch_desc_never")}else r.push(z.t("sch_desc_onEveryDate"));if(e.period.months===1)r.push(z.t("sch_desc_everyMonth"));else if(typeof e.period.months=="number")r.push(z.t("sch_desc_everyNMonths",e.period.months.toString()));else{const i=JSON.parse(e.period.months).map(l=>z.t(Pd[l-1]));if(!i.length)return z.t("sch_desc_never");if(i.length===1)r.push(z.t("sch_desc_onMonth",i[0]));else if(i.length===12)r.push(z.t("sch_desc_everyMonth"));else{const l=i.pop();r.push(z.t("sch_desc_onMonths",i.join(", "),l))}}}else e.period.years&&(e.period.years===1?r.push(z.t("sch_desc_everyYear")):r.push(z.t("sch_desc_everyNYears",e.period.years.toString())),r.push(z.t("sch_desc_onDate",e.period.yearDate.toString(),e.period.yearMonth?z.t(Pd[e.period.yearMonth-1]):z.t("sch_desc_everyMonth"))));if(e.time.exactTime)oc.includes(e.time.start)?r.push(z.t("sch_desc_atTime",z.t(`sch_astro_${e.time.start}`))):r.push(z.t("sch_desc_atTime",e.time.start));else{e.time.mode===O1.minutes?e.time.interval===1?r.push(z.t("sch_desc_everyMinute")):r.push(z.t("sch_desc_everyNMinutes",e.time.interval.toString())):e.time.interval===1?r.push(z.t("sch_desc_everyHour")):r.push(z.t("sch_desc_everyNHours",e.time.interval.toString()));const o=oc.indexOf(e.time.start)!==-1?z.t(`sch_astro_${e.time.start}`):e.time.start,i=oc.indexOf(e.time.end)!==-1?z.t(`sch_astro_${e.time.end}`):e.time.end;(o!=="00:00"||i!=="24:00"&&i!=="23:59")&&r.push(z.t("sch_desc_intervalFromTo",o,i))}return e.period.once||(n.getTime()>Date.now()&&e.valid.to?r.push(z.t("sch_desc_validFromTo",e.valid.from,e.valid.to)):n.getTime()>Date.now()?r.push(z.t("sch_desc_validFrom",e.valid.from)):e.valid.to&&r.push(z.t("sch_desc_validTo",e.valid.to))),r.join(" ")}getTimePeriodElements(){const e=this.state.schedule;let r=!1,n=!1,o=!1,i=!0;return e.time.start==="00:00"&&e.time.end==="24:00"?(r=!0,i=!1):e.time.start==="sunrise"?(n=!0,i=!1):e.time.start==="sunset"&&(o=!0,i=!1),v.createElement("div",{key:"timePeriod",style:le.rowDiv},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!e.time.exactTime,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.exactTime=!1,this.onChange(l)}}),label:z.t("sch_intervalTime")})),v.createElement("div",{style:le.settingsDiv},v.createElement("div",{style:le.settingsDiv},!e.time.exactTime&&v.createElement("div",null,v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!i,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="23:59",this.onChange(l)}}),label:i?"":z.t("sch_fromTo")}),i&&[v.createElement(vr,{variant:"standard",style:{...le.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.start=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_from"),margin:"normal"}),v.createElement(vr,{variant:"standard",style:le.inputTime,key:"exactTimeTo",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.schedule));c.time.end=l.target.value,this.onChange(c)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_to"),margin:"normal"})])),!e.time.exactTime&&v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!r,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="24:00",this.onChange(l)}}),label:z.t("sch_wholeDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!n,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunrise",l.time.end="sunset",this.onChange(l)}}),label:z.t("sch_astroDay")})),!e.time.exactTime&&v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!o,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunset",l.time.end="sunrise",this.onChange(l)}}),label:z.t("sch_astroNight")}))),!e.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const e=oc.includes(this.state.schedule.time.start);return v.createElement("div",{key:"timeExact",style:le.rowDiv},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.exactTime=!0,this.onChange(r)}}),label:z.t("sch_exactTime")})),this.state.schedule.time.exactTime&&v.createElement(ho,{variant:"standard",value:e?this.state.schedule.time.start:"00:00",onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)}},v.createElement(cr,{key:"specific",value:"00:00"},z.t("sch_specificTime")),oc.map(r=>v.createElement(cr,{key:r,value:r},z.t(`sch_astro_${r}`)))),this.state.schedule.time.exactTime&&!e&&v.createElement("div",{style:le.settingsDiv},v.createElement(vr,{variant:"standard",style:le.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:r=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:r.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.start=r.target.value,this.onChange(n)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return v.createElement("hr",{style:le.hr})}getPeriodModes(){const e=this.state.schedule,r=!e.period.dows&&!e.period.months&&!e.period.dates&&!e.period.years&&!e.period.days&&!e.period.weeks;return r&&!e.period.once&&(e.period.once=Sr.now2string(!0)),[v.createElement("div",{key:"once",style:{...le.rowDiv,...le.rowOnce}},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.once||=Sr.now2string(!0),n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,this.onChange(n)}}),label:z.t("sch_periodOnce")})),r&&v.createElement("div",{style:le.settingsDiv},v.createElement(vr,{variant:"standard",style:le.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:R1(e.period.once),onChange:n=>{this.timerOnce&&clearTimeout(this.timerOnce),this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(o=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),l=Sr.string2date(o);l.toString()!=="Invalid Date"&&(i.period.once=`${Fo(l.getDate())}.${Fo(l.getMonth()+1)}.${l.getFullYear()}`,this.onChange(i))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},label:z.t("sch_at"),margin:"normal"}))),v.createElement(pt,{component:"div",key:"days",sx:Ge.getStyle(this.props.theme,le.rowDiv,le.rowDays)},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!e.period.days,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDaily")})),v.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsDaily(),e.period.days?this.getPeriodSettingsWeekdays():null)),v.createElement(pt,{component:"div",key:"weeks",sx:Ge.getStyle(this.props.theme,le.rowDiv,le.rowDows)},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!e.period.weeks,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=e.period.weeks?0:1,n.period.dows||="[0]",n.period.months="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodWeekly")})),v.createElement(pt,{component:"div",style:le.settingsDiv},v.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsWeekly()),v.createElement(pt,{component:"div",sx:Ge.getStyle(this.props.theme,le.settingsDiv,le.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),v.createElement(pt,{component:"div",key:"months",sx:Ge.getStyle(this.props.theme,le.rowDiv,le.rowMonths)},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!e.period.months,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,n.period.dows="",n.period.dates="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodMonthly")})),v.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsMonthly(),e.period.months?v.createElement(pt,null,v.createElement(pt,{component:"div",sx:Ge.getStyle(this.props.theme,le.settingsDiv,le.rowMonthsDates)},v.createElement(ct,{control:v.createElement(Ar,{style:le.inputRadio,checked:!!e.period.dates,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months||=1;const o=[];for(let i=1;i<=31;i++)o.push(i);n.period.dates||=JSON.stringify(o),n.period.dows="",n.period.years=0,n.period.yearDate=0,n.period.yearMonth=0,n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodDates")})),v.createElement(pt,{component:"div",sx:Ge.getStyle(this.props.theme,le.settingsDiv,le.rowMonthsDates)},this.getPeriodSettingsDates())):null)),v.createElement(pt,{component:"div",key:"years",sx:Ge.getStyle(this.props.theme,le.rowDiv,le.rowYears)},v.createElement("div",{style:le.modeDiv},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:!!e.period.years,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,n.period.yearDate=1,n.period.yearMonth=1,n.period.dows="",n.period.months=0,n.period.dates="",n.period.weeks=0,n.period.days=0,n.period.once="",this.onChange(n)}}),label:z.t("sch_periodYearly")})),v.createElement("div",{style:le.settingsDiv},v.createElement("div",{style:le.settingsDiv},this.getPeriodSettingsYearly()),!!e.period.years&&v.createElement("div",{style:le.settingsDiv},v.createElement("span",null,z.t("sch_on")),v.createElement(uo,{key:"input",value:this.state.schedule.period.yearDate,style:le.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearDate=parseInt(n.target.value,10),o.period.yearDate<1&&(o.period.yearDate=31),o.period.yearDate>31&&(o.period.yearDate=1),this.onChange(o)}}),v.createElement(ho,{variant:"standard",value:e.period.yearMonth,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearMonth=n.target.value,this.onChange(o)}},v.createElement(cr,{key:"every",value:0},z.t("sch_yearEveryMonth")),Pd.map((n,o)=>v.createElement(cr,{key:n,value:o+1},z.t(n)))))))]}getPeriodSettingsMinutes(e){return v.createElement("div",{style:{display:"inline-block",marginTop:e?15:"inherit"}},v.createElement("label",{style:{marginLeft:4,marginRight:4}},z.t("sch_every")),v.createElement(uo,{value:this.state.schedule.time.interval,style:{...le.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.interval=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement(ho,{variant:"standard",value:this.state.schedule.time.mode,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.mode=r.target.value,this.onChange(n)}},v.createElement(cr,{value:O1.minutes},z.t("sch_periodMinutes")),v.createElement(cr,{value:O1.hours},z.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const e=this.state.schedule,r=e.period.dows&&e.period.dows!=="[1, 2, 3, 4, 5]"&&e.period.dows!=="[0, 6]";return[v.createElement("div",{key:"workdays"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[1, 2, 3, 4, 5]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWorkdays")})),v.createElement("div",{key:"weekend"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.dows==="[0, 6]",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekend")})),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(ct,{style:{verticalAlign:"top"},control:v.createElement(At,{style:le.inputRadio,checked:!!r,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.dows="[0, 1, 2, 3, 4, 5, 6]",n.period.days&&(n.period.days=1),this.onChange(n)}}),label:z.t("sch_periodWeekdays")}),r&&(e.period.days===1||e.period.weeks)&&v.createElement(am,{row:!0,style:{...le.inputGroup,width:150}},[1,2,3,4,5,6,0].map(n=>v.createElement(ct,{key:`specific_${n}`,style:le.inputGroupElement,control:v.createElement(Ar,{style:le.inputSmallCheck,checked:e.period.dows.includes(n.toString()),onChange:o=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dows)}catch{l=[]}o.target.checked&&!l.includes(n)?l.push(n):!o.target.checked&&l.includes(n)&&l.splice(l.indexOf(n),1),l.sort((c,d)=>c-d),i.period.dows=JSON.stringify(l),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:z.t(_1[n])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const e=this.state.schedule;return[v.createElement("div",{key:"every_day"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.days===1&&!e.period.dows,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEveryDay")})),v.createElement("div",{key:"everyN_day"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.days>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=2,r.period.dows="",this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.days>1&&[v.createElement(uo,{key:"input",value:this.state.schedule.period.days,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=parseInt(r.target.value,10),n.period.dows="",this.onChange(n)}}),v.createElement("span",{key:"span",style:{paddingRight:10}},z.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const e=this.state.schedule;return[v.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.weeks===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=1,this.onChange(r)}}),label:z.t("sch_periodEveryWeek")})),v.createElement("div",null,v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.weeks>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.weeks>1&&[v.createElement(uo,{key:"input",value:this.state.schedule.period.weeks,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=parseInt(r.target.value,10),this.onChange(n)}}),v.createElement("span",{key:"text"},z.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const e=this.state.schedule,r=[];for(let o=1;o<=31;o++)r.push(o);const n=JSON.parse(e.period.dates);return v.createElement(am,{row:!0,style:{...le.inputGroup,maxWidth:620}},v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:n.length===31,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let l=1;l<=31;l++)i.push(l);o.period.dates=JSON.stringify(i),this.onChange(o)}}),label:z.t("sch_all")}),v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dates="[]",this.onChange(o)}}),label:z.t("sch_no_one")}),n.length!==31&&!!n.length&&v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),i=[],l=JSON.parse(o.period.dates);for(let c=1;c<=31;c++)l.includes(c)||i.push(c);i.sort((c,d)=>c-d),o.period.dates=JSON.stringify(i),this.onChange(o)}}),label:z.t("sch_invert")}),v.createElement("div",null),r.map(o=>v.createElement(ct,{key:`date_${o}`,style:o?le.inputDateDay:{...le.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:JSON.parse(e.period.dates).includes(o),onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.dates)}catch{c=[]}i.target.checked&&!c.includes(o)?c.push(o):!i.target.checked&&c.includes(o)&&c.splice(c.indexOf(o),1),c.sort((d,f)=>d-f),l.period.dates=JSON.stringify(c),this.onChange(l)}}),label:o<10?[v.createElement("span",{key:"0",style:{opacity:0}},"0"),v.createElement("span",{key:"num"},o)]:o})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const e=this.state.schedule,r=typeof e.period.months=="string"?JSON.parse(e.period.months):[];return[v.createElement("div",{key:"every"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:typeof e.period.months=="number"&&e.period.months===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=1,this.onChange(e)}}),label:z.t("sch_periodEveryMonth")})),v.createElement("div",{key:"everyN"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:typeof e.period.months=="number"&&e.period.months>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months=2,this.onChange(n)}}),label:z.t("sch_periodEvery")}),typeof e.period.months=="number"&&e.period.months>1&&[v.createElement(uo,{key:"input",value:e.period.months,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=parseInt(n.target.value,10),o.period.months<1&&(o.period.months=1),this.onChange(o)}}),v.createElement("span",{key:"text"},z.t("sch_periodMonth"))]),v.createElement("div",{key:"specific",style:{verticalAlign:"top"}},v.createElement(ct,{style:{verticalAlign:"top"},control:v.createElement(At,{style:le.inputRadio,checked:typeof e.period.months=="string",onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(n)}}),label:z.t("sch_periodSpecificMonths")}),typeof e.period.months=="string"&&v.createElement(am,{row:!0,style:le.inputGroup},v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:r.length===12,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[];for(let i=1;i<=12;i++)o.push(i);n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_all")}),v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:!r.length,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.months="[]",this.onChange(n)}}),label:z.t("sch_no_one")}),r.length!==12&&!!r.length&&v.createElement(ct,{style:le.inputDateDay,control:v.createElement(Ar,{style:le.inputDateDayCheck,checked:!1,onChange:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule)),o=[],i=JSON.parse(n.period.months);for(let l=1;l<=12;l++)i.includes(l)||o.push(l);o.sort((l,c)=>l-c),n.period.months=JSON.stringify(o),this.onChange(n)}}),label:z.t("sch_invert")}),v.createElement("div",null),Pd.map((n,o)=>v.createElement(ct,{key:`month_${o}`,style:le.inputGroupElement,control:v.createElement(Ar,{style:le.inputSmallCheck,checked:typeof e.period.months=="string"?JSON.parse(e.period.months).includes(o+1):e.period.months===o,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let c;try{c=JSON.parse(l.period.months)}catch{c=[]}i.target.checked&&!c.includes(o+1)?c.push(o+1):!i.target.checked&&c.includes(o+1)&&c.splice(c.indexOf(o+1),1),c.sort((d,f)=>d-f),l.period.months=JSON.stringify(c),this.onChange(l)}}),label:z.t(n)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const e=this.state.schedule;return[v.createElement("div",{key:"year"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.years===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,this.onChange(r)}}),label:z.t("sch_periodEveryYear")})),v.createElement("div",{key:"every"},v.createElement(ct,{control:v.createElement(At,{style:le.inputRadio,checked:e.period.years>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=2,this.onChange(r)}}),label:z.t("sch_periodEvery")}),e.period.years>1&&[v.createElement(uo,{key:"input",value:this.state.schedule.period.years,style:le.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=parseInt(r.target.value,10),n.period.years<1&&(n.period.years=1),this.onChange(n)}}),v.createElement("span",{key:"text"},z.t("sch_periodYear"))])]}static now2string(e){const r=new Date;return r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0),e&&(r.setDate(r.getDate()+2),r.setMilliseconds(r.getMilliseconds()-1)),`${Fo(r.getDate())}.${Fo(r.getMonth()+1)}.${Fo(r.getFullYear())}`}static string2date(e){let r=e.split(".");return r.length===1?(r=e.split("-"),new Date(parseInt(r[0],10),parseInt(r[1],10)-1,parseInt(r[2],10))):new Date(parseInt(r[2],10),parseInt(r[1],10)-1,parseInt(r[0],10))}getValidSettings(){const e=this.state.schedule;return v.createElement("div",{style:le.rowDiv},v.createElement("div",{style:{...le.modeDiv,verticalAlign:"middle"}},v.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},z.t("sch_valid")),v.createElement("span",null,z.t("sch_validFrom"))),v.createElement("div",{style:le.settingsDiv},v.createElement(vr,{variant:"standard",style:{...le.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:R1(e.valid.from),type:"date",onChange:r=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(n=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),i=Sr.string2date(n);i.toString()!=="Invalid Date"&&(o.valid.from=`${Fo(i.getDate())}.${Fo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),v.createElement(ct,{control:v.createElement(Ar,{style:le.inputRadio,checked:!!e.valid.to,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.valid.to=r.valid.to?"":Sr.now2string(!0),this.onChange(r)}}),label:z.t("sch_validTo")}),!!e.valid.to&&v.createElement(vr,{variant:"standard",inputRef:this.refTo,style:{...le.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:R1(e.valid.to),onChange:r=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(n=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),i=Sr.string2date(n);i.toString()!=="Invalid Date"&&(o.valid.to=`${Fo(i.getDate())}.${Fo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(o))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return v.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},v.createElement("div",null,this.state.desc),v.createElement("div",{style:le.scrollWindow},v.createElement("h5",null,z.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),Sr.getDivider(),v.createElement("h5",null,z.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&Sr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}function FV({themeName:t,toggleTheme:e,t:r,className:n,style:o,size:i}){return v.createElement("div",{className:n||void 0,style:o||void 0},v.createElement(zd,{title:r("ra_Change color theme"),slotProps:{popper:{sx:{pointerEvents:"none"}}}},v.createElement(mr,{onClick:()=>e(),size:i||"medium"},t==="dark"&&v.createElement(g$,{className:n}),t==="blue"&&v.createElement(v$,{className:n}),t==="colored"&&v.createElement(cy,{className:n}),t!=="dark"&&t!=="blue"&&t!=="colored"&&v.createElement(y$,{className:n}))))}function m8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function CC(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',rG=Number.isNaN||wo.isNaN;function mt(t){return typeof t=="number"&&!rG(t)}var O8=function(e){return e>0&&e<1/0};function P1(t){return typeof t>"u"}function ya(t){return bv(t)==="object"&&t!==null}var nG=Object.prototype.hasOwnProperty;function Bs(t){if(!ya(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&nG.call(r,"isPrototypeOf")}catch{return!1}}function Kr(t){return typeof t=="function"}var oG=Array.prototype.slice;function NC(t){return Array.from?Array.from(t):oG.call(t)}function ar(t,e){return t&&Kr(e)&&(Array.isArray(t)||mt(t.length)?NC(t).forEach(function(r,n){e.call(t,r,n,t)}):ya(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Wt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(i){ya(i)&&Object.keys(i).forEach(function(l){e[l]=i[l]})}),e},iG=/\.\d*(?:0|9){12}\d*$/;function Ws(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return iG.test(t)?Math.round(t*e)/e:t}var aG=/^width|height|left|top|marginLeft|marginTop$/;function ki(t,e){var r=t.style;ar(e,function(n,o){aG.test(o)&&mt(n)&&(n="".concat(n,"px")),r[o]=n})}function sG(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function gr(t,e){if(e){if(mt(t.length)){ar(t,function(n){gr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function yo(t,e){if(e){if(mt(t.length)){ar(t,function(r){yo(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function zs(t,e,r){if(e){if(mt(t.length)){ar(t,function(n){zs(n,e,r)});return}r?gr(t,e):yo(t,e)}}var lG=/([a-z\d])([A-Z])/g;function c2(t){return t.replace(lG,"$1-$2").toLowerCase()}function Ov(t,e){return ya(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(c2(e)))}function zc(t,e,r){ya(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(c2(e)),r)}function cG(t,e){if(ya(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(c2(e)))}var $C=/\s\s*/,LC=(function(){var t=!1;if(nf){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(i){e=i}});wo.addEventListener("test",r,n),wo.removeEventListener("test",r,n)}return t})();function Hn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split($C).forEach(function(i){if(!LC){var l=t.listeners;l&&l[i]&&l[i][r]&&(o=l[i][r],delete l[i][r],Object.keys(l[i]).length===0&&delete l[i],Object.keys(l).length===0&&delete t.listeners)}t.removeEventListener(i,o,n)})}function kn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split($C).forEach(function(i){if(n.once&&!LC){var l=t.listeners,c=l===void 0?{}:l;o=function(){delete c[i][r],t.removeEventListener(i,o,n);for(var f=arguments.length,g=new Array(f),u=0;uMath.abs(r)&&(r=m)})}),r}function Id(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:CC({startX:r,startY:n},o)}function pG(t){var e=0,r=0,n=0;return ar(t,function(o){var i=o.startX,l=o.startY;e+=i,r+=l,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function _i(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",i=O8(n),l=O8(r);if(i&&l){var c=r*e;o==="contain"&&c>n||o==="cover"&&c90?{width:d,height:c}:{width:c,height:d}}function hG(t,e,r,n){var o=e.aspectRatio,i=e.naturalWidth,l=e.naturalHeight,c=e.rotate,d=c===void 0?0:c,f=e.scaleX,g=f===void 0?1:f,u=e.scaleY,m=u===void 0?1:u,y=r.aspectRatio,x=r.naturalWidth,w=r.naturalHeight,T=n.fillColor,k=T===void 0?"transparent":T,I=n.imageSmoothingEnabled,_=I===void 0?!0:I,R=n.imageSmoothingQuality,P=R===void 0?"low":R,C=n.maxWidth,M=C===void 0?1/0:C,N=n.maxHeight,D=N===void 0?1/0:N,E=n.minWidth,$=E===void 0?0:E,H=n.minHeight,q=H===void 0?0:H,U=document.createElement("canvas"),W=U.getContext("2d"),K=_i({aspectRatio:y,width:M,height:D}),re=_i({aspectRatio:y,width:$,height:q},"cover"),Z=Math.min(K.width,Math.max(re.width,x)),V=Math.min(K.height,Math.max(re.height,w)),ee=_i({aspectRatio:o,width:M,height:D}),B=_i({aspectRatio:o,width:$,height:q},"cover"),J=Math.min(ee.width,Math.max(B.width,i)),de=Math.min(ee.height,Math.max(B.height,l)),pe=[-J/2,-de/2,J,de];return U.width=Ws(Z),U.height=Ws(V),W.fillStyle=k,W.fillRect(0,0,Z,V),W.save(),W.translate(Z/2,V/2),W.rotate(d*Math.PI/180),W.scale(g,m),W.imageSmoothingEnabled=_,W.imageSmoothingQuality=P,W.drawImage.apply(W,[t].concat(_C(pe.map(function(ie){return Math.floor(Ws(ie))})))),W.restore(),U}var BC=String.fromCharCode;function mG(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(BC.apply(null,NC(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function bG(t){var e=new DataView(t),r;try{var n,o,i;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var l=e.byteLength,c=2;c+1=8&&(i=f+u)}}}if(i){var m=e.getUint16(i,n),y,x;for(x=0;x=0?i:AC),height:Math.max(n.offsetHeight,l>=0?l:DC)};this.containerData=c,ki(o,{width:c.width,height:c.height}),gr(e,Yr),yo(o,Yr)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,i=o?r.naturalHeight:r.naturalWidth,l=o?r.naturalWidth:r.naturalHeight,c=i/l,d=e.width,f=e.height;e.height*c>e.width?n===3?d=e.height*c:f=e.width/c:n===3?f=e.width/c:d=e.height*c;var g={aspectRatio:c,naturalWidth:i,naturalHeight:l,width:d,height:f};this.canvasData=g,this.limited=n===1||n===2,this.limitCanvas(!0,!0),g.width=Math.min(Math.max(g.width,g.minWidth),g.maxWidth),g.height=Math.min(Math.max(g.height,g.minHeight),g.maxHeight),g.left=(e.width-g.width)/2,g.top=(e.height-g.height)/2,g.oldLeft=g.left,g.oldTop=g.top,this.initialCanvasData=Wt({},g)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,i=this.canvasData,l=this.cropBoxData,c=n.viewMode,d=i.aspectRatio,f=this.cropped&&l;if(e){var g=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;c>1?(g=Math.max(g,o.width),u=Math.max(u,o.height),c===3&&(u*d>g?g=u*d:u=g/d)):c>0&&(g?g=Math.max(g,f?l.width:0):u?u=Math.max(u,f?l.height:0):f&&(g=l.width,u=l.height,u*d>g?g=u*d:u=g/d));var m=_i({aspectRatio:d,width:g,height:u});g=m.width,u=m.height,i.minWidth=g,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(r)if(c>(f?0:1)){var y=o.width-i.width,x=o.height-i.height;i.minLeft=Math.min(0,y),i.minTop=Math.min(0,x),i.maxLeft=Math.max(0,y),i.maxTop=Math.max(0,x),f&&this.limited&&(i.minLeft=Math.min(l.left,l.left+(l.width-i.width)),i.minTop=Math.min(l.top,l.top+(l.height-i.height)),i.maxLeft=l.left,i.maxTop=l.top,c===2&&(i.width>=o.width&&(i.minLeft=Math.min(0,y),i.maxLeft=Math.max(0,y)),i.height>=o.height&&(i.minTop=Math.min(0,x),i.maxTop=Math.max(0,x))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=o.width,i.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var i=fG({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),l=i.width,c=i.height,d=n.width*(l/n.naturalWidth),f=n.height*(c/n.naturalHeight);n.left-=(d-n.width)/2,n.top-=(f-n.height)/2,n.width=d,n.height=f,n.aspectRatio=l/c,n.naturalWidth=l,n.naturalHeight=c,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*o),i.height=Math.max(i.minHeight,i.height*o),i.left=r.left+(r.width-i.width)/2,i.top=r.top+(r.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=Wt({},i)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,i=this.canvasData,l=this.cropBoxData,c=this.limited,d=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,g=Number(n.minCropBoxHeight)||0,u=c?Math.min(o.width,i.width,i.width+i.left,o.width-i.left):o.width,m=c?Math.min(o.height,i.height,i.height+i.top,o.height-i.top):o.height;f=Math.min(f,o.width),g=Math.min(g,o.height),d&&(f&&g?g*d>f?g=f/d:f=g*d:f?g=f/d:g&&(f=g*d),m*d>u?m=u/d:u=m*d),l.minWidth=Math.min(f,u),l.minHeight=Math.min(g,m),l.maxWidth=u,l.maxHeight=m}r&&(c?(l.minLeft=Math.max(0,i.left),l.minTop=Math.max(0,i.top),l.maxLeft=Math.min(o.width,i.left+i.width)-l.width,l.maxTop=Math.min(o.height,i.top+i.height)-l.height):(l.minLeft=0,l.minTop=0,l.maxLeft=o.width-l.width,l.maxTop=o.height-l.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?RC:s2),ki(this.cropBox,Wt({width:n.width,height:n.height},kc({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Us(this.element,Tv,this.getData())}},SG={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",l=document.createElement("img");if(r&&(l.crossOrigin=r),l.src=o,l.alt=i,this.viewBox.appendChild(l),this.viewBoxImage=l,!!n){var c=n;typeof n=="string"?c=e.ownerDocument.querySelectorAll(n):n.querySelector&&(c=[n]),this.previews=c,ar(c,function(d){var f=document.createElement("img");zc(d,Md,{width:d.offsetWidth,height:d.offsetHeight,html:d.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=i,f.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',d.innerHTML="",d.appendChild(f)})}},resetPreview:function(){ar(this.previews,function(e){var r=Ov(e,Md);ki(e,{width:r.width,height:r.height}),e.innerHTML=r.html,cG(e,Md)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,i=n.height,l=e.width,c=e.height,d=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(ki(this.viewBoxImage,Wt({width:l,height:c},kc(Wt({translateX:-d,translateY:-f},e)))),ar(this.previews,function(g){var u=Ov(g,Md),m=u.width,y=u.height,x=m,w=y,T=1;o&&(T=m/o,w=i*T),i&&w>y&&(T=y/i,x=o*T,w=y),ki(g,{width:x,height:w}),ki(g.getElementsByTagName("img")[0],Wt({width:l*T,height:c*T},kc(Wt({translateX:-d*T,translateY:-f*T},e))))}))}},TG={bind:function(){var e=this.element,r=this.options,n=this.cropper;Kr(r.cropstart)&&kn(e,kv,r.cropstart),Kr(r.cropmove)&&kn(e,Cv,r.cropmove),Kr(r.cropend)&&kn(e,Ev,r.cropend),Kr(r.crop)&&kn(e,Tv,r.crop),Kr(r.zoom)&&kn(e,_v,r.zoom),kn(n,w8,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&kn(n,C8,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&kn(n,b8,this.onDblclick=this.dblclick.bind(this)),kn(e.ownerDocument,x8,this.onCropMove=this.cropMove.bind(this)),kn(e.ownerDocument,S8,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&kn(window,E8,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;Kr(r.cropstart)&&Hn(e,kv,r.cropstart),Kr(r.cropmove)&&Hn(e,Cv,r.cropmove),Kr(r.cropend)&&Hn(e,Ev,r.cropend),Kr(r.crop)&&Hn(e,Tv,r.crop),Kr(r.zoom)&&Hn(e,_v,r.zoom),Hn(n,w8,this.onCropStart),r.zoomable&&r.zoomOnWheel&&Hn(n,C8,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Hn(n,b8,this.onDblclick),Hn(e.ownerDocument,x8,this.onCropMove),Hn(e.ownerDocument,S8,this.onCropEnd),r.responsive&&Hn(window,E8,this.onResize)}},EG={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,i=r.offsetHeight/n.height,l=Math.abs(o-1)>Math.abs(i-1)?o:i;if(l!==1){var c,d;e.restore&&(c=this.getCanvasData(),d=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(ar(c,function(f,g){c[g]=f*l})),this.setCropBoxData(ar(d,function(f,g){d[g]=f*l})))}}},dblclick:function(){this.disabled||this.options.dragMode===IC||this.setDragMode(sG(this.dragBox,xv)?MC:l2)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(mt(r)&&r!==1||mt(n)&&n!==0||e.ctrlKey))){var o=this.options,i=this.pointers,l;e.changedTouches?ar(e.changedTouches,function(c){i[c.identifier]=Id(c)}):i[e.pointerId||0]=Id(e),Object.keys(i).length>1&&o.zoomable&&o.zoomOnTouch?l=PC:l=Ov(e.target,Bc),JV.test(l)&&Us(this.element,kv,{originalEvent:e,action:l})!==!1&&(e.preventDefault(),this.action=l,this.cropping=!1,l===OC&&(this.cropping=!0,gr(this.dragBox,hp)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),Us(this.element,Cv,{originalEvent:e,action:r})!==!1&&(e.changedTouches?ar(e.changedTouches,function(o){Wt(n[o.identifier]||{},Id(o,!0))}):Wt(n[e.pointerId||0]||{},Id(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?ar(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,zs(this.dragBox,hp,this.cropped&&this.options.modal)),Us(this.element,Ev,{originalEvent:e,action:r}))}}},CG={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,i=this.cropBoxData,l=this.pointers,c=this.action,d=r.aspectRatio,f=i.left,g=i.top,u=i.width,m=i.height,y=f+u,x=g+m,w=0,T=0,k=o.width,I=o.height,_=!0,R;!d&&e.shiftKey&&(d=u&&m?u/m:1),this.limited&&(w=i.minLeft,T=i.minTop,k=w+Math.min(o.width,n.width,n.left+n.width),I=T+Math.min(o.height,n.height,n.top+n.height));var P=l[Object.keys(l)[0]],C={x:P.endX-P.startX,y:P.endY-P.startY},M=function(D){switch(D){case na:y+C.x>k&&(C.x=k-y);break;case oa:f+C.xI&&(C.y=I-x);break}};switch(c){case s2:f+=C.x,g+=C.y;break;case na:if(C.x>=0&&(y>=k||d&&(g<=T||x>=I))){_=!1;break}M(na),u+=C.x,u<0&&(c=oa,u=-u,f-=u),d&&(m=u/d,g+=(i.height-m)/2);break;case vi:if(C.y<=0&&(g<=T||d&&(f<=w||y>=k))){_=!1;break}M(vi),m-=C.y,g+=C.y,m<0&&(c=gs,m=-m,g-=m),d&&(u=m*d,f+=(i.width-u)/2);break;case oa:if(C.x<=0&&(f<=w||d&&(g<=T||x>=I))){_=!1;break}M(oa),u-=C.x,f+=C.x,u<0&&(c=na,u=-u,f-=u),d&&(m=u/d,g+=(i.height-m)/2);break;case gs:if(C.y>=0&&(x>=I||d&&(f<=w||y>=k))){_=!1;break}M(gs),m+=C.y,m<0&&(c=vi,m=-m,g-=m),d&&(u=m*d,f+=(i.width-u)/2);break;case ic:if(d){if(C.y<=0&&(g<=T||y>=k)){_=!1;break}M(vi),m-=C.y,g+=C.y,u=m*d}else M(vi),M(na),C.x>=0?yT&&(m-=C.y,g+=C.y):(m-=C.y,g+=C.y);u<0&&m<0?(c=lc,m=-m,u=-u,g-=m,f-=u):u<0?(c=ac,u=-u,f-=u):m<0&&(c=sc,m=-m,g-=m);break;case ac:if(d){if(C.y<=0&&(g<=T||f<=w)){_=!1;break}M(vi),m-=C.y,g+=C.y,u=m*d,f+=i.width-u}else M(vi),M(oa),C.x<=0?f>w?(u-=C.x,f+=C.x):C.y<=0&&g<=T&&(_=!1):(u-=C.x,f+=C.x),C.y<=0?g>T&&(m-=C.y,g+=C.y):(m-=C.y,g+=C.y);u<0&&m<0?(c=sc,m=-m,u=-u,g-=m,f-=u):u<0?(c=ic,u=-u,f-=u):m<0&&(c=lc,m=-m,g-=m);break;case lc:if(d){if(C.x<=0&&(f<=w||x>=I)){_=!1;break}M(oa),u-=C.x,f+=C.x,m=u/d}else M(gs),M(oa),C.x<=0?f>w?(u-=C.x,f+=C.x):C.y>=0&&x>=I&&(_=!1):(u-=C.x,f+=C.x),C.y>=0?x=0&&(y>=k||x>=I)){_=!1;break}M(na),u+=C.x,m=u/d}else M(gs),M(na),C.x>=0?y=0&&x>=I&&(_=!1):u+=C.x,C.y>=0?x0?c=C.y>0?sc:ic:C.x<0&&(f-=u,c=C.y>0?lc:ac),C.y<0&&(g-=m),this.cropped||(yo(this.cropBox,Yr),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}_&&(i.width=u,i.height=m,i.left=f,i.top=g,this.action=c,this.renderCropBox()),ar(l,function(N){N.startX=N.endX,N.startY=N.endY})}},kG={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&gr(this.dragBox,hp),yo(this.cropBox,Yr),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Wt({},this.initialImageData),this.canvasData=Wt({},this.initialCanvasData),this.cropBoxData=Wt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Wt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),yo(this.dragBox,hp),gr(this.cropBox,Yr)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,ar(this.previews,function(n){n.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,yo(this.cropper,v8)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,gr(this.cropper,v8)),this},destroy:function(){var e=this.element;return e[Ht]?(e[Ht]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,i=n.top;return this.moveTo(P1(e)?e:o+Number(e),P1(r)?r:i+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(mt(e)&&(n.left=e,o=!0),mt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,i=this.canvasData,l=i.width,c=i.height,d=i.naturalWidth,f=i.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var g=d*e,u=f*e;if(Us(this.element,_v,{ratio:e,oldRatio:l/d,originalEvent:n})===!1)return this;if(n){var m=this.pointers,y=FC(this.cropper),x=m&&Object.keys(m).length?pG(m):{pageX:n.pageX,pageY:n.pageY};i.left-=(g-l)*((x.pageX-y.left-i.left)/l),i.top-=(u-c)*((x.pageY-y.top-i.top)/c)}else Bs(r)&&mt(r.x)&&mt(r.y)?(i.left-=(g-l)*((r.x-i.left)/l),i.top-=(u-c)*((r.y-i.top)/c)):(i.left-=(g-l)/2,i.top-=(u-c)/2);i.width=g,i.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),mt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,mt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(mt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(mt(e)&&(n.scaleX=e,o=!0),mt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,i=this.cropBoxData,l;if(this.ready&&this.cropped){l={x:i.left-o.left,y:i.top-o.top,width:i.width,height:i.height};var c=n.width/n.naturalWidth;if(ar(l,function(g,u){l[u]=g/c}),e){var d=Math.round(l.y+l.height),f=Math.round(l.x+l.width);l.x=Math.round(l.x),l.y=Math.round(l.y),l.width=f-l.x,l.height=d-l.y}}else l={x:0,y:0,width:0,height:0};return r.rotatable&&(l.rotate=n.rotate||0),r.scalable&&(l.scaleX=n.scaleX||1,l.scaleY=n.scaleY||1),l},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,i={};if(this.ready&&!this.disabled&&Bs(e)){var l=!1;r.rotatable&&mt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,l=!0),r.scalable&&(mt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,l=!0),mt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,l=!0)),l&&this.renderCanvas(!0,!0);var c=n.width/n.naturalWidth;mt(e.x)&&(i.left=e.x*c+o.left),mt(e.y)&&(i.top=e.y*c+o.top),mt(e.width)&&(i.width=e.width*c),mt(e.height)&&(i.height=e.height*c),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?Wt({},this.containerData):{}},getImageData:function(){return this.sized?Wt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&ar(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&Bs(e)&&(mt(e.left)&&(r.left=e.left),mt(e.top)&&(r.top=e.top),mt(e.width)?(r.width=e.width,r.height=e.width/n):mt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,i;return this.ready&&this.cropped&&!this.disabled&&Bs(e)&&(mt(e.left)&&(r.left=e.left),mt(e.top)&&(r.top=e.top),mt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),mt(e.height)&&e.height!==r.height&&(i=!0,r.height=e.height),n&&(o?r.height=r.width/n:i&&(r.width=r.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var r=this.canvasData,n=hG(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),i=o.x,l=o.y,c=o.width,d=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(i*=f,l*=f,c*=f,d*=f);var g=c/d,u=_i({aspectRatio:g,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),m=_i({aspectRatio:g,width:e.minWidth||0,height:e.minHeight||0},"cover"),y=_i({aspectRatio:g,width:e.width||(f!==1?n.width:c),height:e.height||(f!==1?n.height:d)}),x=y.width,w=y.height;x=Math.min(u.width,Math.max(m.width,x)),w=Math.min(u.height,Math.max(m.height,w));var T=document.createElement("canvas"),k=T.getContext("2d");T.width=Ws(x),T.height=Ws(w),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,x,w);var I=e.imageSmoothingEnabled,_=I===void 0?!0:I,R=e.imageSmoothingQuality;k.imageSmoothingEnabled=_,R&&(k.imageSmoothingQuality=R);var P=n.width,C=n.height,M=i,N=l,D,E,$,H,q,U;M<=-c||M>P?(M=0,D=0,$=0,q=0):M<=0?($=-M,M=0,D=Math.min(P,c+M),q=D):M<=P&&($=0,D=Math.min(c,P-M),q=D),D<=0||N<=-d||N>C?(N=0,E=0,H=0,U=0):N<=0?(H=-N,N=0,E=Math.min(C,d+N),U=E):N<=C&&(H=0,E=Math.min(d,C-N),U=E);var W=[M,N,D,E];if(q>0&&U>0){var K=x/c;W.push($*K,H*K,q*K,U*K)}return k.drawImage.apply(k,[n].concat(_C(W.map(function(re){return Math.floor(Ws(re))})))),T},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!P1(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var i=e===l2,l=r.movable&&e===MC;e=i||l?e:IC,r.dragMode=e,zc(n,Bc,e),zs(n,xv,i),zs(n,Sv,l),r.cropBoxMovable||(zc(o,Bc,e),zs(o,xv,i),zs(o,Sv,l))}return this}},_G=wo.Cropper,zC=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(zV(this,t),!e||!eG.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Wt({},_8,Bs(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return jV(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Ht]){if(r[Ht]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,i=this.options;if(!i.rotatable&&!i.scalable&&(i.checkOrientation=!1),!i.checkOrientation||!window.ArrayBuffer){this.clone();return}if(QV.test(r)){ZV.test(r)?this.read(vG(r)):this.clone();return}var l=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=c,l.onerror=c,l.ontimeout=c,l.onprogress=function(){l.getResponseHeader("content-type")!==k8&&l.abort()},l.onload=function(){n.read(l.response)},l.onloadend=function(){n.reloading=!1,n.xhr=null},i.checkCrossOrigin&&R8(r)&&o.crossOrigin&&(r=P8(r)),l.open("GET",r,!0),l.responseType="arraybuffer",l.withCredentials=o.crossOrigin==="use-credentials",l.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,i=bG(r),l=0,c=1,d=1;if(i>1){this.url=yG(r,k8);var f=wG(i);l=f.rotate,c=f.scaleX,d=f.scaleY}n.rotatable&&(o.rotate=l),n.scalable&&(o.scaleX=c,o.scaleY=d),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,i=n;this.options.checkCrossOrigin&&R8(n)&&(o||(o="anonymous"),i=P8(n)),this.crossOrigin=o,this.crossOriginUrl=i;var l=document.createElement("img");o&&(l.crossOrigin=o),l.src=i||n,l.alt=r.alt||"The image to crop",this.image=l,l.onload=this.start.bind(this),l.onerror=this.stop.bind(this),gr(l,y8),r.parentNode.insertBefore(l,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=wo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(wo.navigator.userAgent),i=function(f,g){Wt(r.imageData,{naturalWidth:f,naturalHeight:g,aspectRatio:f/g}),r.initialImageData=Wt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){i(n.naturalWidth,n.naturalHeight);return}var l=document.createElement("img"),c=document.body||document.documentElement;this.sizingImage=l,l.onload=function(){i(l.width,l.height),o||c.removeChild(l)},l.src=n.src,o||(l.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",c.appendChild(l))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,i=r.parentNode,l=document.createElement("div");l.innerHTML=tG;var c=l.querySelector(".".concat(Ht,"-container")),d=c.querySelector(".".concat(Ht,"-canvas")),f=c.querySelector(".".concat(Ht,"-drag-box")),g=c.querySelector(".".concat(Ht,"-crop-box")),u=g.querySelector(".".concat(Ht,"-face"));this.container=i,this.cropper=c,this.canvas=d,this.dragBox=f,this.cropBox=g,this.viewBox=c.querySelector(".".concat(Ht,"-view-box")),this.face=u,d.appendChild(o),gr(r,Yr),i.insertBefore(c,r.nextSibling),yo(o,y8),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,gr(g,Yr),n.guides||gr(g.getElementsByClassName("".concat(Ht,"-dashed")),Yr),n.center||gr(g.getElementsByClassName("".concat(Ht,"-center")),Yr),n.background&&gr(c,"".concat(Ht,"-bg")),n.highlight||gr(u,VV),n.cropBoxMovable&&(gr(u,Sv),zc(u,Bc,s2)),n.cropBoxResizable||(gr(g.getElementsByClassName("".concat(Ht,"-line")),Yr),gr(g.getElementsByClassName("".concat(Ht,"-point")),Yr)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),Kr(n.ready)&&kn(r,T8,n.ready,{once:!0}),Us(r,T8)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),yo(this.element,Yr)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=_G,t}},{key:"setDefaults",value:function(r){Wt(_8,Bs(r)&&r)}}])})();Wt(zC.prototype,xG,SG,TG,EG,CG,kG);var ca=function(){return ca=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&N.zoomTo(re)})(M.currentTarget.cropper,_),T&&T(M)}}));k&&k(C)}return function(){var M,N;(N=(M=R.current)===null||M===void 0?void 0:M.cropper)===null||N===void 0||N.destroy()}}),[R]);var P=(function(C){return OG.reduce((function(M,N){var D=M,E=N;return D[E],I1(D,[typeof E=="symbol"?E:E+""])}),C)})(ca(ca({},I),{crossOrigin:d,src:i,alt:w}));return v.createElement("div",{style:l,className:c},v.createElement("img",ca({},P,{style:RG,ref:R})))}));const yi={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},PG={once:"once"},Nr={seconds:"seconds",minutes:"minutes"},M8=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function po(t){return t<10?`0${t}`:`${t}`}const MG={mode:"interval",interval:{period:1,unit:Nr.minutes}};function qd(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const i=parseInt(o[0],10),l=parseInt(o[1],10);for(let c=i;c<=l;c++)r.includes(c===7?0:c)||r.push(c===7?0:c)}else{n==="7"&&(n="0");const i=parseInt(n,10);r.includes(i)||r.push(i)}}),r.sort(),r}function jC(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Nr.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Nr.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Nr.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Nr.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Nr.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:qd(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Nr.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:qd(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${po(parseInt(n.hours,10))}:${po(parseInt(n.minutes,10))}`,weekdays:qd(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${po(parseInt(n.hours,10))}:${po(parseInt(n.minutes,10))}`,date:`${po(parseInt(n.date,10))}.${po(parseInt(n.months,10))}`}}),o}class jc extends v.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=jC(r||"* * * * *",!0)||MG;this.state={extended:!1,cron:jc.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Nr.minutes},intervalBetween:{period:1,unit:Nr.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,i=null;if(!e.length)return"_";for(let l=0;l60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Nr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Nr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Nr.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Nr.minutes,n.unit){case Nr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Nr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let i=parseInt(o[1],10)||0;i>59&&(i=59),i<0&&(i=0);let l=parseInt(o[0],10)||0;l>23&&(l=23),l<0&&(l=0),r=`${i} ${l} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${po(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),i=n.date.split(".");let l=parseInt(o[1],10)||0;l>59&&(l=59),l<0&&(l=0);let c=parseInt(o[0],10)||0;c>23&&(c=23),c<0&&(c=0);let d=parseInt(i[0],10)||1;d>31&&(d=31),d<1&&(d=1);let f=parseInt(i[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${l} ${c} ${d} ${f} *`}return r}recalcCron(){this.onChange(jc.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return v.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},v.createElement("h5",null,z.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>v.createElement(ct,{key:M8[n],control:v.createElement(Ar,{checked:r.weekdays.includes(n),onChange:o=>{const i=JSON.parse(JSON.stringify(this.state[e])),l=i.weekdays.indexOf(n);o.target.checked?l===-1&&i.weekdays.push(n):l!==-1&&i.weekdays.splice(l,1),i.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:i},()=>this.recalcCron()):this.setState({specific:i},()=>this.recalcCron())},value:n.toString()}),label:z.t(M8[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),v.createElement(vr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(vr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):v.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_period")),v.createElement(vr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:z.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),v.createElement(ho,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},v.createElement(cr,{value:"seconds"},z.t("sc_seconds")),")",v.createElement(cr,{value:"minutes"},z.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return v.createElement(ys,{variant:"standard",sx:{...yi.formControl,"&.MuiFormControl-root":yi.formControlMarginRight}},v.createElement(vr,{variant:"standard",key:"at",label:z.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${po(r.getMonth()+1)}`}return v.createElement(ys,{variant:"standard",style:yi.formControl},v.createElement(vr,{variant:"standard",key:"date",label:z.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:yi.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return v.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),v.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},v.createElement("h5",{style:{marginBottom:5}},z.t("sc_hours")),v.createElement(ys,{variant:"standard",style:yi.formControl},v.createElement(Bd,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_from")),v.createElement(ho,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(cr,{key:`B_${r}`,value:r},`${po(r)}:00`)))),v.createElement(ys,{variant:"standard",style:yi.formControl},v.createElement(Bd,{shrink:!0,htmlFor:"age-label-placeholder"},z.t("sc_to")),v.createElement(ho,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>v.createElement(cr,{key:`A_${r}`,value:r},`${po(r)}:00`)),!e.timeFrom&&v.createElement(cr,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[v.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return v.createElement("div",{style:yi.mainDiv},v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},v.createElement(vr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),v.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?z.t("sc_invalid_cron"):lC(this.state.cron,this.props.language||"en")),v.createElement("div",null,v.createElement(ys,{variant:"standard",style:{...yi.formControl,marginLeft:8,marginTop:8}},v.createElement(Bd,null,z.t("ra_Repeat")),v.createElement(ho,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},v.createElement(cr,{value:"once"},z.t("sc_once")),v.createElement(cr,{value:"interval"},z.t("sc_interval")),v.createElement(cr,{value:"intervalBetween"},z.t("sc_intervalBetween")),v.createElement(cr,{value:"specific"},z.t("sc_specific"))))),this.state.mode===PG.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const IG={dialogPaper:{height:"calc(100% - 96px)"}};class TY extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Ci.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?v.createElement(nL,{title:z.t("ra_Please confirm"),text:z.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return v.createElement(qo,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":IG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),v.createElement(Xo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),v.createElement(Uo,{style:{height:"100%",overflow:"hidden"}},v.createElement(Ci,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(Wo,null,!!this.props.clearButton&&v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:v.createElement(jd,null)},this.props.clear||z.t("ra_Clear")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Fi,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(Bp,null)},this.props.cancel||z.t("ra_Cancel"))))}}const AG={dialogPaper:{height:"calc(100% - 96px)"}};class EY extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":jC(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return v.createElement(qo,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":AG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(Xo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define schedule...")),v.createElement(Uo,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?v.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&v.createElement(v.Fragment,null,v.createElement(At,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),v.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},z.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&v.createElement(v.Fragment,null,v.createElement(At,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),v.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},z.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&v.createElement(v.Fragment,null,v.createElement(At,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),v.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},z.t("sc_cron")))):null,this.state.mode==="simple"&&v.createElement(jc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()}),this.state.mode==="wizard"&&v.createElement(Sr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&v.createElement(Ci,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(Wo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Fi,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(Bp,null)},this.props.cancel||z.t("ra_Cancel"))))}}const ia={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class CY extends v.Component{dialogName;filters;constructor(e){super(e),this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const r=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(r)}catch{this.filters={}}e.filters&&(this.filters={...this.filters,...e.filters});let n=this.props.selected||[];typeof n!="object"?n=[n]:n=[...n],n=n.filter(o=>o),this.state={selected:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let e;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?e=[v.createElement("span",{key:"selected"},z.t("ra_Selected")," "),v.createElement("span",{key:"id",style:ia.headerID},this.state.selected)]:e=[v.createElement("span",{key:"selected"},z.t("ra_Selected")," "),v.createElement("span",{key:"id",style:ia.headerID},z.t("%s items",this.state.selected.length))]:e=this.props.title||z.t("ra_Please select file..."),v.createElement(qo,{onClose:()=>{},maxWidth:!1,style:{zIndex:this.props.zIndex||void 0},sx:{"& .MuiDialog-paper":{...ia.dialog,...ia.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},v.createElement(Xo,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":ia.titleRoot}},e),v.createElement(Uo,{style:{...ia.content,...ia.contentMobile}},v.createElement(HX,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(r,n,o)=>{this.setState({selected:Array.isArray(r)?r:[r]},()=>n&&(!this.props.selectOnlyFolders||o)&&this.handleOk())},t:this.props.t||z.t,lang:this.props.lang||z.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),v.createElement(Wo,null,v.createElement(Vt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:v.createElement(Fi,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:v.createElement(Bp,null)},this.props.cancel||z.t("ra_Cancel"))))}}const DG={dialogPaper:{height:"calc(100% - 96px)"}};class kY extends v.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return v.createElement(qo,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":DG.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},v.createElement(Xo,{id:"cron-dialog-title"},this.props.title||z.t("ra_Define CRON...")),v.createElement(Uo,{style:{height:"100%",overflow:"hidden"}},v.createElement(jc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:z.getLanguage()})),v.createElement(Wo,null,v.createElement(Vt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:v.createElement(Fi,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(Bp,null)},this.props.cancel||z.t("ra_Cancel"))))}}const NG="Cannot get access token",$G="Login name",LG="Password",FG="Log in",BG="Web Login",zG="Stay signed in",jG="Wrong password or username",HG={cannotGetAccessToken:NG,enterLogin:$G,enterPassword:LG,login:FG,loginTitle:BG,"ra_Change color theme":"Change color theme",staySignedIn:zG,wrongPassword:jG},qG="Zugriffstoken kann nicht abgerufen werden",WG="Anmeldename",UG="Passwort",XG="Einloggen",VG="Web-Anmeldung",GG="Angemeldet bleiben",KG="Falsches Passwort oder falscher Benutzername",YG={cannotGetAccessToken:qG,enterLogin:WG,enterPassword:UG,login:XG,loginTitle:VG,"ra_Change color theme":"Farbdesign ändern",staySignedIn:GG,wrongPassword:KG},JG="Невозможно получить токен доступа",QG="Имя пользователя",ZG="Пароль",eK="Авторизоваться",tK="Веб-логин",rK="Оставайтесь в системе",nK="Неправильный пароль или имя пользователя",oK={cannotGetAccessToken:JG,enterLogin:QG,enterPassword:ZG,login:eK,loginTitle:tK,"ra_Change color theme":"Изменить цветовую тему",staySignedIn:rK,wrongPassword:nK},iK="Não é possível obter o token de acesso",aK="Nome de login",sK="Senha",lK="Conecte-se",cK="Login na Web",uK="Permanecer conectado",dK="Senha ou nome de usuário incorreto",pK={cannotGetAccessToken:iK,enterLogin:aK,enterPassword:sK,login:lK,loginTitle:cK,"ra_Change color theme":"Alterar tema de cor",staySignedIn:uK,wrongPassword:dK},fK="Kan geen toegangstoken verkrijgen",hK="Inlognaam",mK="Wachtwoord",gK="Inloggen",vK="Web-inlog",yK="Blijf ingelogd",bK="Verkeerd wachtwoord of gebruikersnaam",wK={cannotGetAccessToken:fK,enterLogin:hK,enterPassword:mK,login:gK,loginTitle:vK,"ra_Change color theme":"Kleurenthema wijzigen",staySignedIn:yK,wrongPassword:bK},xK="Impossible d'obtenir le jeton d'accès",SK="Nom d'utilisateur",TK="Mot de passe",EK="Se connecter",CK="Connexion Web",kK="Rester connecté",_K="Mot de passe ou nom d'utilisateur incorrect",OK={cannotGetAccessToken:xK,enterLogin:SK,enterPassword:TK,login:EK,loginTitle:CK,"ra_Change color theme":"Changer le thème de couleur",staySignedIn:kK,wrongPassword:_K},RK="Impossibile ottenere il token di accesso",PK="Nome di accesso",MK="Password",IK="Login",AK="Accesso Web",DK="Rimani connesso",NK="Password o nome utente errati",$K={cannotGetAccessToken:RK,enterLogin:PK,enterPassword:MK,login:IK,loginTitle:AK,"ra_Change color theme":"Cambia tema colore",staySignedIn:DK,wrongPassword:NK},LK="No se puede obtener el token de acceso",FK="Nombre de usuario",BK="Contraseña",zK="Acceso",jK="Inicio de sesión web",HK="Mantenerse conectado",qK="Contraseña o nombre de usuario incorrecto",WK={cannotGetAccessToken:LK,enterLogin:FK,enterPassword:BK,login:zK,loginTitle:jK,"ra_Change color theme":"Cambiar el tema de color",staySignedIn:HK,wrongPassword:qK},UK="Nie można uzyskać tokena dostępu",XK="Nazwa logowania",VK="Hasło",GK="Zaloguj się",KK="Logowanie przez sieć",YK="Pozostań zalogowany",JK="Nieprawidłowe hasło lub nazwa użytkownika",QK={cannotGetAccessToken:UK,enterLogin:XK,enterPassword:VK,login:GK,loginTitle:KK,"ra_Change color theme":"Zmień motyw kolorów",staySignedIn:YK,wrongPassword:JK},ZK="Не вдається отримати маркер доступу",eY="Ім'я для входу",tY="Пароль",rY="авторизуватися",nY="Веб-вхід",oY="Залишайтеся в системі",iY="Неправильний пароль або ім'я користувача",aY={cannotGetAccessToken:ZK,enterLogin:eY,enterPassword:tY,login:rY,loginTitle:nY,"ra_Change color theme":"Змінити кольорову тему",staySignedIn:oY,wrongPassword:iY},sY="无法获取访问令牌",lY="登录名",cY="密码",uY="登录",dY="Web 登录",pY="保持登录状态",fY="密码或用户名错误",hY={cannotGetAccessToken:sY,enterLogin:lY,enterPassword:cY,login:uY,loginTitle:dY,"ra_Change color theme":"更改颜色主题",staySignedIn:pY,wrongPassword:fY},mY="0 4px 7px 5px rgb(0 0 0 / 14%), 0 3px 1px 1px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%)",bi={root:{padding:10,margin:"auto",display:"flex",height:"100%",alignItems:"center",borderRadius:0,justifyContent:"center"},paper:t=>({backgroundColor:t.palette.background.paper+(t.palette.background.paper.length<7?"d":"dd"),p:"24px",overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",maxHeight:500,maxWidth:380,boxShadow:mY}),form:{width:"100%",marginTop:8},submit:{margin:8},alert:{marginTop:16,backgroundColor:"#f44336",padding:8,color:"#fff",borderRadius:4,fontSize:16},ioBrokerLink:{textTransform:"inherit"},marginTop:{marginTop:"auto"}};function gY(t){return L.jsx("div",{style:{width:100,textAlign:"center"},children:L.jsx("svg",{viewBox:"0 0 512 512",width:"100px",height:"100px",children:L.jsx("path",{fill:t.color,d:"M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})})})}class so extends O.Component{formRef;passwordRef;constructor(e){super(e);const r=window.loginOauth2!=="false"?this.authenticateWithRefreshToken():!1,n=so.createTheme();this.state={inProcess:!1,stayLoggedIn:!1,showPassword:!1,username:"",password:"",error:"",loggingIn:r,theme:n,themeName:so.getThemeName(n),themeType:so.getThemeType(n)},this.formRef=v.createRef(),z.setTranslations({en:HG,de:YG,ru:oK,pt:pK,nl:wK,fr:OK,it:$K,es:WK,pl:QK,uk:aY,"zh-cn":hY}),z.setLanguage(window.loginLanguage||"en");const o=window.document.body;o.style.backgroundColor=window.loginBackgroundColor,o.style.backgroundImage=window.loginBackgroundImage,o.style.backgroundSize="cover",this.passwordRef=v.createRef()}static createTheme(e){return V$(Ge.getThemeName(e))}static getThemeName(e){return e.name}static getThemeType(e){return e.palette.mode}toggleTheme=e=>{const r=this.state.themeName,n=e||Ge.toggleTheme(r),o=so.createTheme(n);this.setState({theme:o,themeName:n,themeType:so.getThemeType(o)})};static async getAdapterName(){const e=await fetch("../name");return e.ok?await e.text():"web.0"}static async processTokenAnswer(e,r){if(r.ok){const n=await r.json();if(n?.access_token){const o=await so.getAdapterName();Ir.saveTokensStatic(n,e);const l=new URL(window.location.href).searchParams.get("href");let c;return l?(c=l,c.startsWith("#")&&(c=`./${c}`)):c="./",o.startsWith("web.")?window.location.href=c:window.location.href=`${c}${c.includes("?")?"&":"?"}token=${n.access_token}`,!0}}return Ir.deleteTokensStatic(),!1}authenticateWithRefreshToken(){const e=Ir.readTokens();return e?.refresh_token?(fetch("../oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&refresh_token=${e.refresh_token}&stayloggedin=${e.stayLoggedIn}&client_id=ioBroker`}).then(async r=>{await so.processTokenAnswer(e.stayLoggedIn,r),this.setState({inProcess:!1,loggingIn:!1})}).catch(r=>{console.error(`Cannot fetch access token: ${r}`),this.setState({inProcess:!1,loggingIn:!1})}),!0):!1}render(){const e=`${window.location.port==="3000"?`${window.location.protocol}//${window.location.hostname}:8082/`:"/login"}?${window.location.port==="3000"?"dev&":""}href=${window.location.hash}`,r=window.loginLink&&window.loginLink!=="@@loginLink@@"?window.loginLink:"https://www.iobroker.net/",n=window.loginMotto&&window.loginMotto!=="@@loginMotto@@"?window.loginMotto:"Discover awesome. ",o=window.loginBackgroundColor&&window.loginBackgroundColor!=="inherit"&&window.loginBackgroundColor!=="@@loginBackgroundColor@@"||window.loginBackgroundImage&&window.loginBackgroundImage!=="@@loginBackgroundImage@@"?{background:"#00000000"}:{};let i;return this.state.loggingIn?i=L.jsx("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:"..."}):i=L.jsxs(Gs,{sx:bi.paper,children:[L.jsxs(YT,{container:!0,direction:"column",alignItems:"center",children:[window.loginLogo&&window.loginLogo!=="@@loginLogo@@"?L.jsx(pt,{sx:{height:50,width:102,lineHeight:"50px",backgroundColor:l=>l.palette.mode==="dark"?"#000":"#fff",borderRadius:"5px",padding:"5px"},children:L.jsx("img",{src:window.loginLogo,alt:"logo",style:{maxWidth:"100%",maxHeight:"100%"}})}):window.loginHideLogo==="false"||window.loginHideLogo==="@@loginHideLogo@@"?L.jsx(gY,{color:this.state.themeType==="dark"?"#FFF":"#000"}):null,L.jsx(dn,{component:"h1",variant:"h5",children:window.loginTitle&&window.loginTitle!=="@@loginTitle@@"?window.loginTitle:z.t("loginTitle")}),window.location.search.includes("error")||this.state.error?L.jsx("div",{style:bi.alert,children:this.state.error||z.t("wrongPassword")}):null,L.jsxs("form",{ref:this.formRef,style:bi.form,action:e,method:"post",children:[L.jsx(vr,{variant:"outlined",margin:"normal",disabled:this.state.inProcess,required:!0,value:this.state.username,onChange:l=>this.setState({username:l.target.value}),fullWidth:!0,size:"small",id:"username",label:z.t("enterLogin"),name:"username",autoComplete:"username",autoFocus:!0}),L.jsx(vr,{variant:"outlined",margin:"normal",disabled:this.state.inProcess,required:!0,fullWidth:!0,ref:this.passwordRef,value:this.state.password,onChange:l=>this.setState({password:l.target.value}),slotProps:{input:{endAdornment:this.state.password?L.jsx(mr,{tabIndex:-1,"aria-label":"toggle password visibility",children:L.jsx(sE,{onMouseDown:()=>this.setState({showPassword:!0}),onMouseUp:()=>{this.setState({showPassword:!1},()=>{setTimeout(()=>this.passwordRef.current?.focus(),50)})}})}):null}},size:"small",name:"password",label:z.t("enterPassword"),type:this.state.showPassword?"text":"password",id:"password",autoComplete:"current-password"}),L.jsx(ct,{control:L.jsx(Ar,{id:"stayloggedin",name:"stayloggedin",value:"on",checked:this.state.stayLoggedIn,onChange:l=>this.setState({stayLoggedIn:l.target.checked}),color:"primary",disabled:this.state.inProcess}),label:z.t("staySignedIn")}),L.jsx("input",{id:"origin",type:"hidden",name:"origin",value:window.location.pathname+window.location.search.replace("&error","")}),L.jsx(Vt,{type:"submit",disabled:this.state.inProcess||!this.state.username||!this.state.password,onClick:()=>{window.loginOauth2==="false"?(this.formRef.current?.submit(),setTimeout(()=>this.setState({inProcess:!0}),50)):this.setState({inProcess:!0,error:""},async()=>{const l=await fetch("../oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=password&username=${encodeURIComponent(this.state.username)}&password=${encodeURIComponent(this.state.password)}&stayloggedin=${this.state.stayLoggedIn}&client_id=ioBroker`});await so.processTokenAnswer(this.state.stayLoggedIn,l)?this.setState({inProcess:!1}):this.setState({inProcess:!1,error:z.t("wrongPassword")})})},fullWidth:!0,variant:"contained",color:"primary",style:bi.submit,children:this.state.inProcess?L.jsx(Ip,{size:24}):z.t("login")})]})]}),L.jsx(pt,{style:bi.marginTop,children:L.jsxs(dn,{variant:"body2",color:"textSecondary",align:"center",children:[window.loginLink&&window.loginLink!=="@@loginLink@@"?L.jsx(u4,{style:bi.ioBrokerLink,color:"inherit",href:r,rel:"noopener noreferrer",target:"_blank",children:n}):null,!window.loginLink||window.loginLink==="@@loginLink@@"?n:null,!window.loginLink||window.loginLink==="@@loginLink@@"?L.jsx(u4,{style:bi.ioBrokerLink,color:"inherit",href:r,rel:"noopener noreferrer",target:"_blank",children:"ioBroker"}):null]})})]}),L.jsx(X7,{injectFirst:!0,children:L.jsxs(NR,{theme:this.state.theme,children:[this.state.themeName!=="PT"&&this.state.themeName!=="DX"?L.jsx(FV,{t:z.t,style:{position:"absolute",top:10,right:10},themeName:this.state.themeName,toggleTheme:()=>this.toggleTheme()}):null,L.jsx(Gs,{className:this.state.themeType==="dark"?"theme-dark":"theme-light",component:"main",style:{...bi.root,...o},children:i})]})})}}window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function vY(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const I8=document.getElementById("root");I8&&qk.createRoot(I8).render(L.jsx(so,{}));vY()});export default yY(); From b2f93b3d8c0d7dff47e5b1b9fe47fa98b91277e4 Mon Sep 17 00:00:00 2001 From: Bluefox Date: Fri, 12 Jun 2026 21:52:11 +0200 Subject: [PATCH 3/7] Update index_m.html --- admin/index_m.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/index_m.html b/admin/index_m.html index c7a8fe86..b8e1da8c 100644 --- a/admin/index_m.html +++ b/admin/index_m.html @@ -20,7 +20,7 @@ /> ioBroker.web - + From 6f74ed19712a23047e410a17afebee6e5fa3cfa8 Mon Sep 17 00:00:00 2001 From: Bluefox Date: Fri, 12 Jun 2026 21:54:25 +0200 Subject: [PATCH 4/7] Update index.html --- src-www/build/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-www/build/index.html b/src-www/build/index.html index a11af6db..ee6dffc8 100644 --- a/src-www/build/index.html +++ b/src-www/build/index.html @@ -97,7 +97,7 @@ window.loginLanguage = lang; } - + From 5bf060b41bc75b42c1c13769a7b8f86d1924cf2d Mon Sep 17 00:00:00 2001 From: Bluefox Date: Fri, 12 Jun 2026 21:55:11 +0200 Subject: [PATCH 5/7] Update index.html --- www/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/index.html b/www/index.html index a11af6db..ee6dffc8 100644 --- a/www/index.html +++ b/www/index.html @@ -97,7 +97,7 @@ window.loginLanguage = lang; } - + From 54833f3df52848ab46891bc63b4b5424fcb507fa Mon Sep 17 00:00:00 2001 From: Bluefox Date: Fri, 12 Jun 2026 21:56:08 +0200 Subject: [PATCH 6/7] Update index.html --- www/login/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/login/index.html b/www/login/index.html index e611c743..0d1178ed 100644 --- a/www/login/index.html +++ b/www/login/index.html @@ -243,7 +243,7 @@ } `,uD=typeof ov!="string"?rl` animation: ${ov} 3s infinite linear; - `:null,dD=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${me(n)}`,r],dashed:["dashed",`dashedColor${me(n)}`],bar1:["bar","bar1",`barColor${me(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${me(n)}`,r==="buffer"&&`color${me(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ye(o,sD,e)},iy=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Op(t.palette[e].main,.62):_p(t.palette[e].main,.5),pD=ce("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:iy(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),fD=ce("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${me(r.color)}`]]}})(Qe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>{const r=iy(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),uD||{animation:`${ov} 3s infinite linear`}),hD=ce("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${tv}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${tv}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:lD||{animation:`${rv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),mD=ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:iy(t,e),transition:`transform .${tv}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:cD||{animation:`${nv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),gD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:l,valueBuffer:c,variant:d="indeterminate",...f}=n,g={...n,color:i,variant:d},u=dD(g),m=ol(),y={},x={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&l!==void 0){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let w=l-100;m&&(w=-w),x.bar1.transform=`translateX(${w}%)`}if(d==="buffer"&&c!==void 0){let w=(c||0)-100;m&&(w=-w),x.bar2.transform=`translateX(${w}%)`}return L.jsxs(pD,{className:xe(u.root,o),ownerState:g,role:"progressbar",...y,ref:r,...f,children:[d==="buffer"?L.jsx(fD,{className:u.dashed,ownerState:g}):null,L.jsx(hD,{className:u.bar1,ownerState:g,style:x.bar1}),d==="determinate"?null:L.jsx(mD,{className:u.bar2,ownerState:g,style:x.bar2})]})});function vD(t){return Ke("MuiLink",t)}const yD=Ve("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),bD=({theme:t,ownerState:e})=>{const r=e.color,n=Ti(t,`palette.${r}.main`,!1)||Ti(t,`palette.${r}`,!1)||e.color,o=Ti(t,`palette.${r}.mainChannel`)||Ti(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Dt(n,.4)},c4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wD=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,i={root:["root",`underline${me(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Ye(i,vD,e)},xD=ce(dn,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${me(r.underline)}`],r.component==="button"&&e.button]}})(Qe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:Dt(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Dt(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Dt(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yD.focusVisible}`]:{outline:"auto"}}}]}))),u4=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiLink"}),o=Ho(),{className:i,color:l="primary",component:c="a",onBlur:d,onFocus:f,TypographyClasses:g,underline:u="always",variant:m="inherit",sx:y,...x}=n,[w,T]=O.useState(!1),k=P=>{Vs(P.target)||T(!1),d&&d(P)},I=P=>{Vs(P.target)&&T(!0),f&&f(P)},_={...n,color:l,component:c,focusVisible:w,underline:u,variant:m},R=wD(_);return L.jsx(xD,{color:l,className:xe(R.root,i),classes:g,component:c,onBlur:k,onFocus:I,ref:r,ownerState:_,variant:m,...x,sx:[...c4[l]===void 0?[{color:l}]:[],...Array.isArray(y)?y:[y]],style:{...x.style,...u==="always"&&l!=="inherit"&&!c4[l]&&{"--Link-underlineColor":bD({theme:o,ownerState:_})}}})}),Nc=O.createContext({});function SD(t){return Ke("MuiList",t)}Ve("MuiList",["root","padding","dense","subheader"]);const TD=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return Ye({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},SD,e)},ED=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),CD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f,...g}=n,u=O.useMemo(()=>({dense:c}),[c]),m={...n,component:l,dense:c,disablePadding:d},y=TD(m);return L.jsx(Nc.Provider,{value:u,children:L.jsxs(ED,{as:l,className:xe(y.root,i),ref:r,ownerState:m,...g,children:[f,o]})})});function kD(t){return Ke("MuiListItemIcon",t)}const d4=Ve("MuiListItemIcon",["root","alignItemsFlexStart"]),_D=t=>{const{alignItems:e,classes:r}=t;return Ye({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},kD,r)},OD=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Qe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),RD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiListItemIcon"}),{className:o,...i}=n,l=O.useContext(Nc),c={...n,alignItems:l.alignItems},d=_D(c);return L.jsx(OD,{className:xe(d.root,o),ownerState:c,ref:r,...i})});function PD(t){return Ke("MuiListItemText",t)}const Ls=Ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),MD=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:i}=t;return Ye({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},PD,e)},ID=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ls.primary}`]:e.primary},{[`& .${Ls.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Bx.root}:where(& .${Ls.primary})`]:{display:"block"},[`.${Bx.root}:where(& .${Ls.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),AD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiListItemText"}),{children:o,className:i,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:f,secondary:g,secondaryTypographyProps:u,slots:m={},slotProps:y={},...x}=n,{dense:w}=O.useContext(Nc);let T=d??o,k=g;const I={...n,disableTypography:l,inset:c,primary:!!T,secondary:!!k,dense:w},_=MD(I),R={slots:m,slotProps:{primary:f,secondary:u,...y}},[P,C]=ut("root",{className:xe(_.root,i),elementType:ID,externalForwardedProps:{...R,...x},ownerState:I,ref:r}),[M,N]=ut("primary",{className:_.primary,elementType:dn,externalForwardedProps:R,ownerState:I}),[D,E]=ut("secondary",{className:_.secondary,elementType:dn,externalForwardedProps:R,ownerState:I});return T!=null&&T.type!==dn&&!l&&(T=L.jsx(M,{variant:w?"body2":"body1",component:N?.variant?void 0:"span",...N,children:T})),k!=null&&k.type!==dn&&!l&&(k=L.jsx(D,{variant:"body2",color:"textSecondary",...E,children:k})),L.jsxs(P,{...C,children:[T,k]})});function lm(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function p4(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function JT(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Gl(t,e,r,n,o,i){let l=!1,c=o(t,e,e?r:!1);for(;c;){if(c===t.firstChild){if(l)return!1;l=!0}const d=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!JT(c,i)||d)c=o(t,c,r);else return c.focus(),!0}return!1}const DD=O.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:g,variant:u="selectedMenu",...m}=e,y=O.useRef(null),x=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});en(()=>{o&&y.current.focus()},[o]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:R})=>{const P=!y.current.style.width;if(_.clientHeight{const R=y.current,P=_.key;if(_.ctrlKey||_.metaKey||_.altKey){g&&g(_);return}const M=tn(R).activeElement;if(P==="ArrowDown")_.preventDefault(),Gl(R,M,f,d,lm);else if(P==="ArrowUp")_.preventDefault(),Gl(R,M,f,d,p4);else if(P==="Home")_.preventDefault(),Gl(R,null,f,d,lm);else if(P==="End")_.preventDefault(),Gl(R,null,f,d,p4);else if(P.length===1){const N=x.current,D=P.toLowerCase(),E=performance.now();N.keys.length>0&&(E-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&D!==N.keys[0]&&(N.repeating=!1)),N.lastTime=E,N.keys.push(D);const $=M&&!N.repeating&&JT(M,N);N.previousKeyMatched&&($||Gl(R,M,!1,d,lm,N))?_.preventDefault():N.previousKeyMatched=!1}g&&g(_)},T=yr(y,r);let k=-1;O.Children.forEach(l,(_,R)=>{if(!O.isValidElement(_)){k===R&&(k+=1,k>=l.length&&(k=-1));return}_.props.disabled||(u==="selectedMenu"&&_.props.selected||k===-1)&&(k=R),k===R&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(k+=1,k>=l.length&&(k=-1))});const I=O.Children.map(l,(_,R)=>{if(R===k){const P={};return i&&(P.autoFocus=!0),_.props.tabIndex===void 0&&u==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(_,P)}return _});return L.jsx(CD,{role:"menu",ref:T,className:c,onKeyDown:w,tabIndex:o?0:-1,...m,children:I})});function ND(t){return Ke("MuiPopover",t)}Ve("MuiPopover",["root","paper"]);function f4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function h4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function m4(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function gd(t){return typeof t=="function"?t():t}const $D=t=>{const{classes:e}=t;return Ye({root:["root"],paper:["paper"]},ND,e)},LD=ce(GT,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),QT=ce(Gs,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),FD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:g,container:u,elevation:m=8,marginThreshold:y=16,open:x,PaperProps:w={},slots:T={},slotProps:k={},transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:R="auto",TransitionProps:P={},disableScrollLock:C=!1,...M}=n,N=O.useRef(),D={...n,anchorOrigin:l,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:I,TransitionComponent:_,transitionDuration:R,TransitionProps:P},E=$D(D),$=O.useCallback(()=>{if(d==="anchorPosition")return c;const ke=gd(i),Ie=(ke&&ke.nodeType===1?ke:tn(N.current).body).getBoundingClientRect();return{top:Ie.top+f4(Ie,l.vertical),left:Ie.left+h4(Ie,l.horizontal)}},[i,l.horizontal,l.vertical,c,d]),H=O.useCallback(ke=>({vertical:f4(ke,I.vertical),horizontal:h4(ke,I.horizontal)}),[I.horizontal,I.vertical]),q=O.useCallback(ke=>{const Le={width:ke.offsetWidth,height:ke.offsetHeight},Ie=H(Le);if(d==="none")return{top:null,left:null,transformOrigin:m4(Ie)};const nt=$();let Pe=nt.top-Ie.vertical,Ce=nt.left-Ie.horizontal;const ht=Pe+Le.height,ye=Ce+Le.width,Ae=Vn(gd(i)),it=Ae.innerHeight-y,Je=Ae.innerWidth-y;if(y!==null&&Peit){const qe=ht-it;Pe-=qe,Ie.vertical+=qe}if(y!==null&&CeJe){const qe=ye-Je;Ce-=qe,Ie.horizontal+=qe}return{top:`${Math.round(Pe)}px`,left:`${Math.round(Ce)}px`,transformOrigin:m4(Ie)}},[i,d,$,H,y]),[U,W]=O.useState(x),K=O.useCallback(()=>{const ke=N.current;if(!ke)return;const Le=q(ke);Le.top!==null&&ke.style.setProperty("top",Le.top),Le.left!==null&&(ke.style.left=Le.left),ke.style.transformOrigin=Le.transformOrigin,W(!0)},[q]);O.useEffect(()=>(C&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[i,C,K]);const re=()=>{K()},Z=()=>{W(!1)};O.useEffect(()=>{x&&K()}),O.useImperativeHandle(o,()=>x?{updatePosition:()=>{K()}}:null,[x,K]),O.useEffect(()=>{if(!x)return;const ke=Rp(()=>{K()}),Le=Vn(gd(i));return Le.addEventListener("resize",ke),()=>{ke.clear(),Le.removeEventListener("resize",ke)}},[i,x,K]);let V=R;const ee={slots:{transition:_,...T},slotProps:{transition:P,paper:w,...k}},[B,J]=ut("transition",{elementType:tp,externalForwardedProps:ee,ownerState:D,getSlotProps:ke=>({...ke,onEntering:(Le,Ie)=>{ke.onEntering?.(Le,Ie),re()},onExited:Le=>{ke.onExited?.(Le),Z()}}),additionalProps:{appear:!0,in:x}});R==="auto"&&!B.muiSupportAuto&&(V=void 0);const de=u||(i?tn(gd(i)).body:void 0),[pe,{slots:ie,slotProps:fe,...Se}]=ut("root",{ref:r,elementType:LD,externalForwardedProps:{...ee,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:T.backdrop},slotProps:{backdrop:RT(typeof k.backdrop=="function"?k.backdrop(D):k.backdrop,{invisible:!0})},container:de,open:x},ownerState:D,className:xe(E.root,g)}),[Ee,_e]=ut("paper",{ref:N,className:E.paper,elementType:QT,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:U?void 0:{opacity:0}},ownerState:D});return L.jsx(pe,{...Se,...!Q1(pe)&&{slots:ie,slotProps:fe,disableScrollLock:C},children:L.jsx(B,{...J,timeout:V,children:L.jsx(Ee,{..._e,children:f})})})});function BD(t){return Ke("MuiMenu",t)}Ve("MuiMenu",["root","paper","list"]);const zD={vertical:"top",horizontal:"right"},jD={vertical:"top",horizontal:"left"},HD=t=>{const{classes:e}=t;return Ye({root:["root"],paper:["paper"],list:["list"]},BD,e)},qD=ce(FD,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),WD=ce(QT,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),UD=ce(DD,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),ZT=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:g,PaperProps:u={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:x,...w}={},variant:T="selectedMenu",slots:k={},slotProps:I={},..._}=n,R=ol(),P={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:d,onEntering:x,PaperProps:u,transitionDuration:y,TransitionProps:w,variant:T},C=HD(P),M=o&&!c&&g,N=O.useRef(null),D=(V,ee)=>{N.current&&N.current.adjustStyleForScrollbar(V,{direction:R?"rtl":"ltr"}),x&&x(V,ee)},E=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let $=-1;O.Children.map(i,(V,ee)=>{O.isValidElement(V)&&(V.props.disabled||(T==="selectedMenu"&&V.props.selected||$===-1)&&($=ee))});const H={slots:k,slotProps:{list:d,transition:w,paper:u,...I}},q=ha({elementType:k.root,externalSlotProps:I.root,ownerState:P,className:[C.root,l]}),[U,W]=ut("paper",{className:C.paper,elementType:WD,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:P}),[K,re]=ut("list",{className:xe(C.list,d.className),elementType:UD,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:V=>({...V,onKeyDown:ee=>{E(ee),V.onKeyDown?.(ee)}}),ownerState:P}),Z=typeof H.slotProps.transition=="function"?H.slotProps.transition(P):H.slotProps.transition;return L.jsx(qD,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?zD:jD,slots:{root:k.root,paper:U,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:q,paper:W,backdrop:typeof I.backdrop=="function"?I.backdrop(P):I.backdrop,transition:{...Z,onEntering:(...V)=>{D(...V),Z?.onEntering?.(...V)}}},open:g,ref:r,transitionDuration:y,ownerState:P,..._,classes:m,children:L.jsx(K,{actions:N,autoFocus:o&&($===-1||c),autoFocusItem:M,variant:T,...re,children:i})})});function XD(t){return Ke("MuiMenuItem",t)}const Kl=Ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VD=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},GD=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:i,classes:l}=t,d=Ye({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},XD,l);return{...l,...d}},KD=ce(Ni,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:VD})(Qe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Kl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Kl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Kl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Kl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${i4.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${i4.inset}`]:{marginLeft:52},[`& .${Ls.root}`]:{marginTop:0,marginBottom:0},[`& .${Ls.inset}`]:{paddingLeft:36},[`& .${d4.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${d4.root} svg`]:{fontSize:"1.25rem"}}}]}))),cr=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:f,role:g="menuitem",tabIndex:u,className:m,...y}=n,x=O.useContext(Nc),w=O.useMemo(()=>({dense:l||x.dense||!1,disableGutters:d}),[x.dense,l,d]),T=O.useRef(null);en(()=>{o&&T.current&&T.current.focus()},[o]);const k={...n,dense:w.dense,divider:c,disableGutters:d},I=GD(n),_=yr(T,r);let R;return n.disabled||(R=u!==void 0?u:-1),L.jsx(Nc.Provider,{value:w,children:L.jsx(KD,{ref:_,role:g,tabIndex:R,component:i,focusVisibleClassName:xe(I.focusVisible,f),className:xe(I.root,m),...y,ownerState:k,classes:I})})});function YD(t){return Ke("MuiNativeSelect",t)}const ay=Ve("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JD=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,i&&"iconOpen",n&&"disabled"]};return Ye(c,YD,e)},eE=ce("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ay.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),QD=ce(eE,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:br,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${ay.multiple}`]:e.multiple}]}})({}),tE=ce("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ay.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ZD=ce(tE,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),eN=O.forwardRef(function(e,r){const{className:n,disabled:o,error:i,IconComponent:l,inputRef:c,variant:d="standard",...f}=e,g={...e,disabled:o,variant:d,error:i},u=JD(g);return L.jsxs(O.Fragment,{children:[L.jsx(QD,{ownerState:g,className:xe(u.select,n),disabled:o,ref:c||r,...f}),e.multiple?null:L.jsx(ZD,{as:l,ownerState:g,className:u.icon})]})});var g4;const tN=ce("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:br})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rN=ce("legend",{name:"MuiNotchedOutlined",shouldForwardProp:br})(Qe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function nN(t){const{children:e,classes:r,className:n,label:o,notched:i,...l}=t,c=o!=null&&o!=="",d={...t,notched:i,withLabel:c};return L.jsx(tN,{"aria-hidden":!0,className:n,ownerState:d,...l,children:L.jsx(rN,{ownerState:d,children:c?L.jsx("span",{children:o}):g4||(g4=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const oN=t=>{const{classes:e}=t,n=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rI,e);return{...e,...n}},iN=ce($p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Dp})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${oo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${oo.focused} .${oo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(rr()).map(([r])=>({props:{color:r},style:{[`&.${oo.focused} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${oo.error} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${oo.disabled} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),aN=ce(nN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),sN=ce(Lp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Np})(Qe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),sy=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:f,slots:g={},slotProps:u={},type:m="text",...y}=n,x=oN(n),w=So(),T=Li({props:n,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:w,fullWidth:i,hiddenLabel:T.hiddenLabel,multiline:d,size:T.size,type:m},I=g.root??o.Root??iN,_=g.input??o.Input??sN,[R,P]=ut("notchedOutline",{elementType:aN,className:x.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:u},additionalProps:{label:c!=null&&c!==""&&T.required?L.jsxs(O.Fragment,{children:[c," ","*"]}):c}});return L.jsx(ny,{slots:{root:I,input:_},slotProps:u,renderSuffix:C=>L.jsx(R,{...P,notched:typeof f<"u"?f:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:i,inputComponent:l,multiline:d,ref:r,type:m,...y,classes:{...x,notchedOutline:null}})});sy.muiName="Input";const lN=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),cN=He(L.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),uN=ce("span",{name:"MuiRadioButtonIcon",shouldForwardProp:br})({position:"relative",display:"flex"}),dN=ce(lN,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),pN=ce(cN,{name:"MuiRadioButtonIcon"})(Qe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function rE(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return L.jsxs(uN,{className:r.root,ownerState:o,children:[L.jsx(dN,{fontSize:n,className:r.background,ownerState:o}),L.jsx(pN,{fontSize:n,className:r.dot,ownerState:o})]})}const fN=O.createContext(void 0);function hN(){return O.useContext(fN)}function mN(t){return Ke("MuiRadio",t)}const v4=Ve("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),gN=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${me(r)}`,n!=="medium"&&`size${me(n)}`]};return{...e,...Ye(o,mN,e)}},vN=ce(VT,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${me(r.size)}`],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${v4.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Dt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Dt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${v4.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function yN(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const bN=L.jsx(rE,{checked:!0}),wN=L.jsx(rE,{}),At=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:i=bN,color:l="primary",icon:c=wN,name:d,onChange:f,size:g="medium",className:u,disabled:m,disableRipple:y=!1,slots:x={},slotProps:w={},inputProps:T,...k}=n,I=So();let _=m;I&&typeof _>"u"&&(_=I.disabled),_??=!1;const R={...n,disabled:_,disableRipple:y,color:l,size:g},P=gN(R),C=hN();let M=o;const N=B1(f,C&&C.onChange);let D=d;C&&(typeof M>"u"&&(M=yN(C.value,n.value)),typeof D>"u"&&(D=C.name));const E=w.input??T,[$,H]=ut("root",{ref:r,elementType:vN,className:xe(P.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:w,...k},getSlotProps:q=>({...q,onChange:(U,...W)=>{q.onChange?.(U,...W),N(U,...W)}}),ownerState:R,additionalProps:{type:"radio",icon:O.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:O.cloneElement(i,{fontSize:i.props.fontSize??g}),disabled:_,name:D,checked:M,slots:x,slotProps:{input:typeof E=="function"?E(R):E}}});return L.jsx($,{...H,classes:P})});function nE(t){return Ke("MuiSelect",t)}const Yl=Ve("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var y4;const xN=ce(eE,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Yl.select}`]:e.select},{[`&.${Yl.select}`]:e[r.variant]},{[`&.${Yl.error}`]:e.error},{[`&.${Yl.multiple}`]:e.multiple}]}})({[`&.${Yl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SN=ce(tE,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),TN=ce("input",{shouldForwardProp:t=>OT(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function b4(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function EN(t){return t==null||typeof t=="string"&&!t.trim()}const CN=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ye(c,nE,e)},kN=O.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:g,disabled:u,displayEmpty:m,error:y=!1,IconComponent:x,inputRef:w,labelId:T,MenuProps:k={},multiple:I,name:_,onBlur:R,onChange:P,onClose:C,onFocus:M,onOpen:N,open:D,readOnly:E,renderValue:$,required:H,SelectDisplayProps:q={},tabIndex:U,type:W,value:K,variant:re="standard",...Z}=e,[V,ee]=Gd({controlled:K,default:g,name:"Select"}),[B,J]=Gd({controlled:D,default:f,name:"Select"}),de=O.useRef(null),pe=O.useRef(null),[ie,fe]=O.useState(null),{current:Se}=O.useRef(D!=null),[Ee,_e]=O.useState(),ke=yr(r,w),Le=O.useCallback(be=>{pe.current=be,be&&fe(be)},[]),Ie=ie?.parentNode;O.useImperativeHandle(ke,()=>({focus:()=>{pe.current.focus()},node:de.current,value:V}),[V]),O.useEffect(()=>{f&&B&&ie&&!Se&&(_e(l?null:Ie.clientWidth),pe.current.focus())},[ie,l]),O.useEffect(()=>{i&&pe.current.focus()},[i]),O.useEffect(()=>{if(!T)return;const be=tn(pe.current).getElementById(T);if(be){const lt=()=>{getSelection().isCollapsed&&pe.current.focus()};return be.addEventListener("click",lt),()=>{be.removeEventListener("click",lt)}}},[T]);const nt=(be,lt)=>{be?N&&N(lt):C&&C(lt),Se||(_e(l?null:Ie.clientWidth),J(be))},Pe=be=>{be.button===0&&(be.preventDefault(),pe.current.focus(),nt(!0,be))},Ce=be=>{nt(!1,be)},ht=O.Children.toArray(c),ye=be=>{const lt=ht.find(St=>St.props.value===be.target.value);lt!==void 0&&(ee(lt.props.value),P&&P(be,lt))},Ae=be=>lt=>{let St;if(lt.currentTarget.hasAttribute("tabindex")){if(I){St=Array.isArray(V)?V.slice():[];const ur=V.indexOf(be.props.value);ur===-1?St.push(be.props.value):St.splice(ur,1)}else St=be.props.value;if(be.props.onClick&&be.props.onClick(lt),V!==St&&(ee(St),P)){const ur=lt.nativeEvent||lt,dr=new ur.constructor(ur.type,ur);Object.defineProperty(dr,"target",{writable:!0,value:{value:St,name:_}}),P(dr,be)}I||nt(!1,lt)}},it=be=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(be.key)&&(be.preventDefault(),nt(!0,be))},Je=ie!==null&&B,qe=be=>{!Je&&R&&(Object.defineProperty(be,"target",{writable:!0,value:{value:V,name:_}}),R(be))};delete Z["aria-invalid"];let ve,at;const Xe=[];let ne=!1;(ep({value:V})||m)&&($?ve=$(V):ne=!0);const ge=ht.map(be=>{if(!O.isValidElement(be))return null;let lt;if(I){if(!Array.isArray(V))throw new Error(Bo(2));lt=V.some(St=>b4(St,be.props.value)),lt&&ne&&Xe.push(be.props.children)}else lt=b4(V,be.props.value),lt&&ne&&(at=be.props.children);return O.cloneElement(be,{"aria-selected":lt?"true":"false",onClick:Ae(be),onKeyUp:St=>{St.key===" "&&St.preventDefault(),be.props.onKeyUp&&be.props.onKeyUp(St)},role:"option",selected:lt,value:void 0,"data-value":be.props.value})});ne&&(I?Xe.length===0?ve=null:ve=Xe.reduce((be,lt,St)=>(be.push(lt),St{const{classes:e}=t,n=Ye({root:["root"]},nE,e);return{...e,...n}},ly={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>br(t)&&t!=="variant",slot:"Root"},ON=ce(uo,ly)(""),RN=ce(sy,ly)(""),PN=ce(oy,ly)(""),ho=O.forwardRef(function(e,r){const n=et({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:g=oI,id:u,input:m,inputProps:y,label:x,labelId:w,MenuProps:T,multiple:k=!1,native:I=!1,onClose:_,onOpen:R,open:P,renderValue:C,SelectDisplayProps:M,variant:N="outlined",...D}=n,E=I?eN:kN,$=So(),H=Li({props:n,muiFormControl:$,states:["variant","error"]}),q=H.variant||N,U={...n,variant:q,classes:l},W=_N(U),{root:K,...re}=W,Z=m||{standard:L.jsx(ON,{ownerState:U}),outlined:L.jsx(RN,{label:x,ownerState:U}),filled:L.jsx(PN,{ownerState:U})}[q],V=yr(r,nl(Z));return L.jsx(O.Fragment,{children:O.cloneElement(Z,{inputComponent:E,inputProps:{children:i,error:H.error,IconComponent:g,variant:q,type:void 0,multiple:k,...I?{id:u}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:T,onClose:_,onOpen:R,open:P,renderValue:C,SelectDisplayProps:{id:u,...M}},...y,classes:y?$r(re,y.classes):re,...m?m.props.inputProps:{}},...(k&&I||f)&&q==="outlined"?{notched:!0}:{},ref:V,className:xe(Z.props.className,c,W.root),...!m&&{variant:q},...D})})});ho.muiName="Select";function MN(t){return Ke("MuiTooltip",t)}const Qt=Ve("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function IN(t){return Math.round(t*1e5)/1e5}const AN=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${me(i.split("-")[0])}`],arrow:["arrow"]};return Ye(l,MN,e)},DN=ce(WT,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Qe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Qt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),NN=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${me(r.placement.split("-")[0])}`]]}})(Qe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Dt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Qt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Qt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${IN(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),$N=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Qe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Dt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let vd=!1;const w4=new Pp;let Jl={x:0,y:0};function yd(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const zd=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:l,components:c={},componentsProps:d={},describeChild:f=!1,disableFocusListener:g=!1,disableHoverListener:u=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:x=100,enterNextDelay:w=0,enterTouchDelay:T=700,followCursor:k=!1,id:I,leaveDelay:_=0,leaveTouchDelay:R=1500,onClose:P,onOpen:C,open:M,placement:N="bottom",PopperComponent:D,PopperProps:E={},slotProps:$={},slots:H={},title:q,TransitionComponent:U,TransitionProps:W,...K}=n,re=O.isValidElement(i)?i:L.jsx("span",{children:i}),Z=Ho(),V=ol(),[ee,B]=O.useState(),[J,de]=O.useState(null),pe=O.useRef(!1),ie=m||k,fe=$s(),Se=$s(),Ee=$s(),_e=$s(),[ke,Le]=Gd({controlled:M,default:!1,name:"Tooltip",state:"open"});let Ie=ke;const nt=wa(I),Pe=O.useRef(),Ce=Rn(()=>{Pe.current!==void 0&&(document.body.style.WebkitUserSelect=Pe.current,Pe.current=void 0),_e.clear()});O.useEffect(()=>Ce,[Ce]);const ht=rt=>{w4.clear(),vd=!0,Le(!0),C&&!Ie&&C(rt)},ye=Rn(rt=>{w4.start(800+_,()=>{vd=!1}),Le(!1),P&&Ie&&P(rt),fe.start(Z.transitions.duration.shortest,()=>{pe.current=!1})}),Ae=rt=>{pe.current&&rt.type!=="touchstart"||(ee&&ee.removeAttribute("title"),Se.clear(),Ee.clear(),x||vd&&w?Se.start(vd?w:x,()=>{ht(rt)}):ht(rt))},it=rt=>{Se.clear(),Ee.start(_,()=>{ye(rt)})},[,Je]=O.useState(!1),qe=rt=>{Vs(rt.target)||(Je(!1),it(rt))},ve=rt=>{ee||B(rt.currentTarget),Vs(rt.target)&&(Je(!0),Ae(rt))},at=rt=>{pe.current=!0;const zr=re.props;zr.onTouchStart&&zr.onTouchStart(rt)},Xe=rt=>{at(rt),Ee.clear(),fe.clear(),Ce(),Pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",_e.start(T,()=>{document.body.style.WebkitUserSelect=Pe.current,Ae(rt)})},ne=rt=>{re.props.onTouchEnd&&re.props.onTouchEnd(rt),Ce(),Ee.start(R,()=>{ye(rt)})};O.useEffect(()=>{if(!Ie)return;function rt(zr){zr.key==="Escape"&&ye(zr)}return document.addEventListener("keydown",rt),()=>{document.removeEventListener("keydown",rt)}},[ye,Ie]);const ge=yr(nl(re),B,r);!q&&q!==0&&(Ie=!1);const je=O.useRef(),Fe=rt=>{const zr=re.props;zr.onMouseMove&&zr.onMouseMove(rt),Jl={x:rt.clientX,y:rt.clientY},je.current&&je.current.update()},st={},vt=typeof q=="string";f?(st.title=!Ie&&vt&&!u?q:null,st["aria-describedby"]=Ie?nt:null):(st["aria-label"]=vt?q:null,st["aria-labelledby"]=Ie&&!vt?nt:null);const Be={...st,...K,...re.props,className:xe(K.className,re.props.className),onTouchStart:at,ref:ge,...k?{onMouseMove:Fe}:{}},Bt={};y||(Be.onTouchStart=Xe,Be.onTouchEnd=ne),u||(Be.onMouseOver=yd(Ae,Be.onMouseOver),Be.onMouseLeave=yd(it,Be.onMouseLeave),ie||(Bt.onMouseOver=Ae,Bt.onMouseLeave=it)),g||(Be.onFocus=yd(ve,Be.onFocus),Be.onBlur=yd(qe,Be.onBlur),ie||(Bt.onFocus=ve,Bt.onBlur=qe));const xt={...n,isRtl:V,arrow:o,disableInteractive:ie,placement:N,PopperComponentProp:D,touch:pe.current},be=typeof $.popper=="function"?$.popper(xt):$.popper,lt=O.useMemo(()=>{let rt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return E.popperOptions?.modifiers&&(rt=rt.concat(E.popperOptions.modifiers)),be?.popperOptions?.modifiers&&(rt=rt.concat(be.popperOptions.modifiers)),{...E.popperOptions,...be?.popperOptions,modifiers:rt}},[J,E.popperOptions,be?.popperOptions]),St=AN(xt),ur=typeof $.transition=="function"?$.transition(xt):$.transition,dr={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...H},slotProps:{arrow:$.arrow??d.arrow,popper:{...E,...be??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...W,...ur??d.transition}}},[Br,Co]=ut("popper",{elementType:DN,externalForwardedProps:dr,ownerState:xt,className:xe(St.popper,E?.className)}),[Yn,vn]=ut("transition",{elementType:tp,externalForwardedProps:dr,ownerState:xt}),[Ra,Pa]=ut("tooltip",{elementType:NN,className:St.tooltip,externalForwardedProps:dr,ownerState:xt}),[Ma,Ia]=ut("arrow",{elementType:$N,className:St.arrow,externalForwardedProps:dr,ownerState:xt,ref:de});return L.jsxs(O.Fragment,{children:[O.cloneElement(re,Be),L.jsx(Br,{as:D??WT,placement:N,anchorEl:k?{getBoundingClientRect:()=>({top:Jl.y,left:Jl.x,right:Jl.x,bottom:Jl.y,width:0,height:0})}:ee,popperRef:je,open:ee?Ie:!1,id:nt,transition:!0,...Bt,...Co,popperOptions:lt,children:({TransitionProps:rt})=>L.jsx(Yn,{timeout:Z.transitions.duration.shorter,...rt,...vn,children:L.jsxs(Ra,{...Pa,children:[q,o?L.jsx(Ma,{...Ia}):null]})})})]})});function LN(t){return Ke("MuiTab",t)}const Cn=Ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),FN=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:i,label:l,selected:c,disabled:d}=t,f={root:["root",i&&l&&"labelIcon",`textColor${me(r)}`,n&&"fullWidth",o&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return Ye(f,LN,e)},BN=ce(Ni,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${me(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Cn.iconWrapper}`]:e.iconWrapper},{[`& .${Cn.icon}`]:e.icon}]}})(Qe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Cn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Cn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Cn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Cn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Cn.selected}`]:{opacity:1},[`&.${Cn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Cn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Cn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Cn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Cn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),ls=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:f="top",indicator:g,label:u,onChange:m,onClick:y,onFocus:x,selected:w,selectionFollowsFocus:T,textColor:k="inherit",value:I,wrapped:_=!1,...R}=n,P={...n,disabled:i,disableFocusRipple:l,selected:w,icon:!!d,iconPosition:f,label:!!u,fullWidth:c,textColor:k,wrapped:_},C=FN(P),M=d&&u&&O.isValidElement(d)?O.cloneElement(d,{className:xe(C.icon,d.props.className)}):d,N=E=>{!w&&m&&m(E,I),y&&y(E)},D=E=>{T&&!w&&m&&m(E,I),x&&x(E)};return L.jsxs(BN,{focusRipple:!l,className:xe(C.root,o),ref:r,role:"tab","aria-selected":w,disabled:i,onClick:N,onFocus:D,ownerState:P,tabIndex:w?0:-1,...R,children:[f==="top"||f==="start"?L.jsxs(O.Fragment,{children:[M,u]}):L.jsxs(O.Fragment,{children:[u,M]}),g]})});function zN(t){return Ke("MuiToolbar",t)}Ve("MuiToolbar",["root","gutters","regular","dense"]);const jN=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Ye({root:["root",!r&&"gutters",n]},zN,e)},HN=ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),oE=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:c="regular",...d}=n,f={...n,component:i,disableGutters:l,variant:c},g=jN(f);return L.jsx(HN,{as:i,className:xe(g.root,o),ref:r,ownerState:f,...d})}),qN=He(L.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),WN=He(L.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function UN(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function XN(t,e,r,n={},o=()=>{}){const{ease:i=UN,duration:l=300}=n;let c=null;const d=e[t];let f=!1;const g=()=>{f=!0},u=m=>{if(f){o(new Error("Animation cancelled"));return}c===null&&(c=m);const y=Math.min(1,(m-c)/l);if(e[t]=i(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(u)};return d===r?(o(new Error("Element already at target position")),g):(requestAnimationFrame(u),g)}const VN={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function GN(t){const{onChange:e,...r}=t,n=O.useRef(),o=O.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return en(()=>{const l=Rp(()=>{const d=n.current;i(),d!==n.current&&e(n.current)}),c=Vn(o.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[e]),O.useEffect(()=>{i(),e(n.current)},[e]),L.jsx("div",{style:VN,...r,ref:o})}function KN(t){return Ke("MuiTabScrollButton",t)}const YN=Ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JN=t=>{const{classes:e,orientation:r,disabled:n}=t;return Ye({root:["root",r,n&&"disabled"]},KN,e)},QN=ce(Ni,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${YN.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),ZN=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:l={},direction:c,orientation:d,disabled:f,...g}=n,u=ol(),m={isRtl:u,...n},y=JN(m),x=i.StartScrollButtonIcon??qN,w=i.EndScrollButtonIcon??WN,T=ha({elementType:x,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),k=ha({elementType:w,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return L.jsx(QN,{component:"div",className:xe(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...g,style:{...g.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:c==="left"?L.jsx(x,{...T}):L.jsx(w,{...k})})});function e$(t){return Ke("MuiTabs",t)}const cm=Ve("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),x4=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,S4=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,bd=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=r(t,o);else{o.focus();return}}},t$=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:l,scrollButtonsHideMobile:c,classes:d}=t;return Ye({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},e$,d)},r$=ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${cm.scrollButtons}`]:e.scrollButtons},{[`& .${cm.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Qe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${cm.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),n$=ce("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),o$=ce("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),i$=ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Qe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),a$=ce(GN)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),T4={},s$=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTabs"}),o=Ho(),i=ol(),{"aria-label":l,"aria-labelledby":c,action:d,centered:f=!1,children:g,className:u,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:x="primary",onChange:w,orientation:T="horizontal",ScrollButtonComponent:k,scrollButtons:I="auto",selectionFollowsFocus:_,slots:R={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:M={},textColor:N="primary",value:D,variant:E="standard",visibleScrollbar:$=!1,...H}=n,q=E==="scrollable",U=T==="vertical",W=U?"scrollTop":"scrollLeft",K=U?"top":"left",re=U?"bottom":"right",Z=U?"clientHeight":"clientWidth",V=U?"height":"width",ee={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:x,orientation:T,vertical:U,scrollButtons:I,textColor:N,variant:E,visibleScrollbar:$,fixed:!q,hideScrollbar:q&&!$,scrollableX:q&&!U,scrollableY:q&&U,centered:f&&!q,scrollButtonsHideMobile:!y},B=t$(ee),J=ha({elementType:R.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:ee}),de=ha({elementType:R.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:ee}),[pe,ie]=O.useState(!1),[fe,Se]=O.useState(T4),[Ee,_e]=O.useState(!1),[ke,Le]=O.useState(!1),[Ie,nt]=O.useState(!1),[Pe,Ce]=O.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ye=O.useRef(null),Ae=O.useRef(null),it={slots:R,slotProps:{indicator:C,scrollButton:M,...P}},Je=()=>{const Oe=ye.current;let ze;if(Oe){const ft=Oe.getBoundingClientRect();ze={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollWidth:Oe.scrollWidth,top:ft.top,bottom:ft.bottom,left:ft.left,right:ft.right}}let yt;if(Oe&&D!==!1){const ft=Ae.current.children;if(ft.length>0){const Gt=ft[ht.get(D)];yt=Gt?Gt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:yt}},qe=Rn(()=>{const{tabsMeta:Oe,tabMeta:ze}=Je();let yt=0,ft;U?(ft="top",ze&&Oe&&(yt=ze.top-Oe.top+Oe.scrollTop)):(ft=i?"right":"left",ze&&Oe&&(yt=(i?-1:1)*(ze[ft]-Oe[ft]+Oe.scrollLeft)));const Gt={[ft]:yt,[V]:ze?ze[V]:0};if(typeof fe[ft]!="number"||typeof fe[V]!="number")Se(Gt);else{const Cr=Math.abs(fe[ft]-Gt[ft]),yn=Math.abs(fe[V]-Gt[V]);(Cr>=1||yn>=1)&&Se(Gt)}}),ve=(Oe,{animation:ze=!0}={})=>{ze?XN(W,ye.current,Oe,{duration:o.transitions.duration.standard}):ye.current[W]=Oe},at=Oe=>{let ze=ye.current[W];U?ze+=Oe:ze+=Oe*(i?-1:1),ve(ze)},Xe=()=>{const Oe=ye.current[Z];let ze=0;const yt=Array.from(Ae.current.children);for(let ft=0;ftOe){ft===0&&(ze=Oe);break}ze+=Gt[Z]}return ze},ne=()=>{at(-1*Xe())},ge=()=>{at(Xe())},[je,{onChange:Fe,...st}]=ut("scrollbar",{className:xe(B.scrollableX,B.hideScrollbar),elementType:a$,shouldForwardComponentProp:!0,externalForwardedProps:it,ownerState:ee}),vt=O.useCallback(Oe=>{Fe?.(Oe),Ce({overflow:null,scrollbarWidth:Oe})},[Fe]),[Be,Bt]=ut("scrollButtons",{className:xe(B.scrollButtons,M.className),elementType:ZN,externalForwardedProps:it,ownerState:ee,additionalProps:{orientation:T,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:J,endScrollButtonIcon:de}}}),xt=()=>{const Oe={};Oe.scrollbarSizeListener=q?L.jsx(je,{...st,onChange:vt}):null;const yt=q&&(I==="auto"&&(Ee||ke)||I===!0);return Oe.scrollButtonStart=yt?L.jsx(Be,{direction:i?"right":"left",onClick:ne,disabled:!Ee,...Bt}):null,Oe.scrollButtonEnd=yt?L.jsx(Be,{direction:i?"left":"right",onClick:ge,disabled:!ke,...Bt}):null,Oe},be=Rn(Oe=>{const{tabsMeta:ze,tabMeta:yt}=Je();if(!(!yt||!ze)){if(yt[K]ze[re]){const ft=ze[W]+(yt[re]-ze[re]);ve(ft,{animation:Oe})}}}),lt=Rn(()=>{q&&I!==!1&&nt(!Ie)});O.useEffect(()=>{const Oe=Rp(()=>{ye.current&&qe()});let ze;const yt=Cr=>{Cr.forEach(yn=>{yn.removedNodes.forEach(Jn=>{ze?.unobserve(Jn)}),yn.addedNodes.forEach(Jn=>{ze?.observe(Jn)})}),Oe(),lt()},ft=Vn(ye.current);ft.addEventListener("resize",Oe);let Gt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(Oe),Array.from(Ae.current.children).forEach(Cr=>{ze.observe(Cr)})),typeof MutationObserver<"u"&&(Gt=new MutationObserver(yt),Gt.observe(Ae.current,{childList:!0})),()=>{Oe.clear(),ft.removeEventListener("resize",Oe),Gt?.disconnect(),ze?.disconnect()}},[qe,lt]),O.useEffect(()=>{const Oe=Array.from(Ae.current.children),ze=Oe.length;if(typeof IntersectionObserver<"u"&&ze>0&&q&&I!==!1){const yt=Oe[0],ft=Oe[ze-1],Gt={root:ye.current,threshold:.99},Cr=ul=>{_e(!ul[0].isIntersecting)},yn=new IntersectionObserver(Cr,Gt);yn.observe(yt);const Jn=ul=>{Le(!ul[0].isIntersecting)},Aa=new IntersectionObserver(Jn,Gt);return Aa.observe(ft),()=>{yn.disconnect(),Aa.disconnect()}}},[q,I,Ie,g?.length]),O.useEffect(()=>{ie(!0)},[]),O.useEffect(()=>{qe()}),O.useEffect(()=>{be(T4!==fe)},[be,fe]),O.useImperativeHandle(d,()=>({updateIndicator:qe,updateScrollButtons:lt}),[qe,lt]);const[St,ur]=ut("indicator",{className:xe(B.indicator,C.className),elementType:i$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:fe}}),dr=L.jsx(St,{...ur});let Br=0;const Co=O.Children.map(g,Oe=>{if(!O.isValidElement(Oe))return null;const ze=Oe.props.value===void 0?Br:Oe.props.value;ht.set(ze,Br);const yt=ze===D;return Br+=1,O.cloneElement(Oe,{fullWidth:E==="fullWidth",indicator:yt&&!pe&&dr,selected:yt,selectionFollowsFocus:_,onChange:w,textColor:N,value:ze,...Br===1&&D===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}})}),Yn=Oe=>{if(Oe.altKey||Oe.shiftKey||Oe.ctrlKey||Oe.metaKey)return;const ze=Ae.current,yt=tn(ze).activeElement;if(yt.getAttribute("role")!=="tab")return;let Gt=T==="horizontal"?"ArrowLeft":"ArrowUp",Cr=T==="horizontal"?"ArrowRight":"ArrowDown";switch(T==="horizontal"&&i&&(Gt="ArrowRight",Cr="ArrowLeft"),Oe.key){case Gt:Oe.preventDefault(),bd(ze,yt,S4);break;case Cr:Oe.preventDefault(),bd(ze,yt,x4);break;case"Home":Oe.preventDefault(),bd(ze,null,x4);break;case"End":Oe.preventDefault(),bd(ze,null,S4);break}},vn=xt(),[Ra,Pa]=ut("root",{ref:r,className:xe(B.root,u),elementType:r$,externalForwardedProps:{...it,...H,component:m},ownerState:ee}),[Ma,Ia]=ut("scroller",{ref:ye,className:B.scroller,elementType:n$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:{overflow:Pe.overflow,[U?`margin${i?"Left":"Right"}`:"marginBottom"]:$?void 0:-Pe.scrollbarWidth}}}),[rt,zr]=ut("list",{ref:Ae,className:xe(B.list,B.flexContainer),elementType:o$,externalForwardedProps:it,ownerState:ee,getSlotProps:Oe=>({...Oe,onKeyDown:ze=>{Yn(ze),Oe.onKeyDown?.(ze)}})});return L.jsxs(Ra,{...Pa,children:[vn.scrollButtonStart,vn.scrollbarSizeListener,L.jsxs(Ma,{...Ia,children:[L.jsx(rt,{"aria-label":l,"aria-labelledby":c,"aria-orientation":T==="vertical"?"vertical":null,role:"tablist",...zr,children:Co}),pe&&dr]}),vn.scrollButtonEnd]})});function l$(t){return Ke("MuiTextField",t)}Ve("MuiTextField",["root"]);const c$={standard:uo,filled:oy,outlined:sy},u$=t=>{const{classes:e}=t;return Ye({root:["root"]},l$,e)},d$=ce(ys,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),vr=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:c,color:d="primary",defaultValue:f,disabled:g=!1,error:u=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:x,id:w,InputLabelProps:T,inputProps:k,InputProps:I,inputRef:_,label:R,maxRows:P,minRows:C,multiline:M=!1,name:N,onBlur:D,onChange:E,onFocus:$,placeholder:H,required:q=!1,rows:U,select:W=!1,SelectProps:K,slots:re={},slotProps:Z={},type:V,value:ee,variant:B="outlined",...J}=n,de={...n,autoFocus:i,color:d,disabled:g,error:u,fullWidth:y,multiline:M,required:q,select:W,variant:B},pe=u$(de),ie=wa(w),fe=x&&ie?`${ie}-helper-text`:void 0,Se=R&&ie?`${ie}-label`:void 0,Ee=c$[B],_e={slots:re,slotProps:{input:I,inputLabel:T,htmlInput:k,formHelperText:m,select:K,...Z}},ke={},Le=_e.slotProps.inputLabel;B==="outlined"&&(Le&&typeof Le.shrink<"u"&&(ke.notched=Le.shrink),ke.label=R),W&&((!K||!K.native)&&(ke.id=void 0),ke["aria-describedby"]=void 0);const[Ie,nt]=ut("root",{elementType:d$,shouldForwardComponentProp:!0,externalForwardedProps:{..._e,...J},ownerState:de,className:xe(pe.root,c),ref:r,additionalProps:{disabled:g,error:u,fullWidth:y,required:q,color:d,variant:B}}),[Pe,Ce]=ut("input",{elementType:Ee,externalForwardedProps:_e,additionalProps:ke,ownerState:de}),[ht,ye]=ut("inputLabel",{elementType:Bd,externalForwardedProps:_e,ownerState:de}),[Ae,it]=ut("htmlInput",{elementType:"input",externalForwardedProps:_e,ownerState:de}),[Je,qe]=ut("formHelperText",{elementType:VA,externalForwardedProps:_e,ownerState:de}),[ve,at]=ut("select",{elementType:ho,externalForwardedProps:_e,ownerState:de}),Xe=L.jsx(Pe,{"aria-describedby":fe,autoComplete:o,autoFocus:i,defaultValue:f,fullWidth:y,multiline:M,name:N,rows:U,maxRows:P,minRows:C,type:V,value:ee,id:ie,inputRef:_,onBlur:D,onChange:E,onFocus:$,placeholder:H,inputProps:it,slots:{input:re.htmlInput?Ae:void 0},...Ce});return L.jsxs(Ie,{...nt,children:[R!=null&&R!==""&&L.jsx(ht,{htmlFor:ie,id:Se,...ye,children:R}),W?L.jsx(ve,{"aria-describedby":fe,id:ie,labelId:Se,value:ee,input:Xe,...at,children:l}):Xe,x&&L.jsx(Je,{id:fe,...qe,children:x})]})}),p$=He(L.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),f$=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),h$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),m$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),g$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),v$=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),cy=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),y$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),b$=He(L.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Bp=He(L.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Fi=He(L.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),ga=He(L.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uy=He(L.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),w$=He(L.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),x$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),jd=He(L.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),iE=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),S$=He(L.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),T$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),E$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),C$=He(L.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),k$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),_$=He(L.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),O$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),aE=He(L.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),R$=He(L.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),P$=He(L.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),M$=He(L.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),I$=He(L.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),A$=He(L.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),E4=He(L.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),D$=He(L.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),N$=He(L.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),iv=He(L.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),$$=He(L.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),L$=He(L.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),F$=He(L.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),B$=He(L.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),z$=He(L.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),j$=He(L.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),H$=He(L.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),q$=He(L.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),sE=He(L.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),W$=He(L.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),um=11/23/100;function C4(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substring(1,3),16),e.g=parseInt(t.substring(3,5),16),e.b=parseInt(t.substring(5,7),16);else if(t.length===4){const r=t[1],n=t[2],o=t[3];e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function U$(t){return`#${Math.round(t.r).toString(16).padStart(2,"0")}${Math.round(t.g).toString(16).padStart(2,"0")}${Math.round(t.b).toString(16).padStart(2,"0")}`}function X$(t,e,r){const n=C4(t),o=C4(e);return n.r+=o.r*(.05+um*(r-1)),n.g+=o.g*(.05+um*(r-1)),n.b+=o.b*(.05+um*(r-1)),U$(n)}function wd(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:X$(t,e,n)};return r}function V$(t,e){let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[200],"&:hover":{color:Tr[100]}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[200],"&:hover":{color:Tr[100]}}},MuiPaper:wd("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="NW"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#00af78"},secondary:{main:"#005a40"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="HA"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:"#db0a33","&:hover":{color:"#FF0a33"}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#970720"},secondary:{main:"#db0a33"},expert:"#db0a33",text:{primary:"#ffffff",secondary:"#ffffff"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:r.palette?.primary?.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:z1[300],dark:z1[400]});const o=Ic(r),i=o.palette;return Ic(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:i.grey?.[300],color:i.getContrastText&&i.grey?.[300]?i.getContrastText(i.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:i.text?.primary,borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${i.action?.disabledBackground}`},"&:hover":{borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Dt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}},{props:{variant:"text",color:"grey"},style:{color:i.text?.primary,"&:hover":{backgroundColor:Dt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}}]}}})}function G$(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function K$(t){return t?.rows.map(e=>e.value).filter(e=>!!e)??[]}function k4(t){return t?.startsWith("system.host.")||(t=`system.host.${t}`),t}function _4(t){return new Promise(e=>{setTimeout(e,t)})}function xd(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}typeof globalThis.process<"u"&&(globalThis.location||={href:"http://localhost:8081/",protocol:"http:",host:"localhost:8081",pathname:"/",hostname:"localhost",reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(t,e)=>{globalThis.localStorage._keys[t]=e},getItem:t=>t in globalThis.localStorage._keys?globalThis.localStorage._keys[t]:null,removeItem:t=>{t in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[t]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:"en"});var xi;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(xi||(xi={}));var Ei;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ei||(Ei={}));Ei.PERMISSION_ERROR;Ei.NOT_CONNECTED;const Y$=["material","echarts","vis"];class Ir{props;connId;lastAccessToken=null;ignoreState="";connected=!1;subscribed=!1;firstConnect=!0;waitForRestart=!1;loaded=!1;simStates={};objectViewCached;constructor(e){this.props=this.applyDefaultProps(e),this.connId=`${this.props.name?`${this.props.name}-`:""}${Math.round(Math.random()*1e6).toString().padStart(6,"0")}`,this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||globalThis.location.protocol,host:e.host||globalThis.location.hostname,port:e.port||(globalThis.location.port==="3000"?8081:globalThis.location.port),ioTimeout:Math.max(e.ioTimeout||2e4,2e4),cmdTimeout:Math.max(e.cmdTimeout||5e3,5e3),admin5only:e.admin5only||!1,autoSubscribes:e.autoSubscribes??[],autoSubscribeLog:e.autoSubscribeLog??!1,doNotLoadACL:e.doNotLoadACL??!0,doNotLoadAllObjects:e.doNotLoadAllObjects??!0}}statesSubscribes={};filesSubscribes={};objectsSubscribes={};objects={};states={};acl=null;isSecure=!1;onReadyDone=!1;onConnectionHandlers=[];onLogHandlers=[];onCmdStdoutHandler;onCmdStderrHandler;onCmdExitHandler;onError(e){(this.props.onError??console.error)(e)}_socket;_waitForSocketPromise;_waitForFirstConnectionPromise=G$();_instanceSubscriptions={};_promises={};_authTimer=null;_refreshTimer=null;_systemConfig;get systemConfig(){return this._systemConfig}systemLang="en";static isWeb(){return globalThis.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(this.props.connect){e();return}if(typeof globalThis.io>"u"&&typeof globalThis.iob>"u")if(typeof globalThis.registerSocketOnLoad=="function")globalThis.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(globalThis.io||globalThis.iob)return e();await _4(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||globalThis.location.protocol).replace(":",""),o=globalThis.location.pathname;if(globalThis.location.hostname==="iobroker.net"||globalThis.location.hostname==="iobroker.pro")o="";else{if(globalThis.socketUrl){const d=new globalThis.URL(globalThis.socketUrl);e=d.hostname,r=d.port,n=d.protocol.replace(":","")}const c=o.lastIndexOf("/");if(c!==-1&&(o=o.substring(0,c+1)),Ir.isWeb()){const d=o.split("/");d.length>2&&(d.pop(),d.pop(),Y$.includes(d[d.length-1])&&d.pop(),o=d.join("/"),o.endsWith("/")||(o+="/"))}}const i=r?`${n}://${e}:${r}`:`${n}://${e}`,l=this.props.connect||(globalThis.io||globalThis.iob).connect;return this._socket=l(i,{path:o.endsWith("/")?`${o}socket.io`:`${o}/socket.io`,query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on("connect",c=>{globalThis.addEventListener?.("storage",this.onAccessTokenUpdated);const d=Ir.readTokens();if(d&&!d.owner){const f=Date.now();this.saveTokens({access_token:d.access_token,refresh_token:d.refresh_token,expires_in:Math.round((d.expires_in.getTime()-f)/1e3),refresh_token_expires_in:Math.round((d.refresh_token_expires_in.getTime()-f)/1e3),token_type:"Bearer"},d.stayLoggedIn)}this.onReadyDone=!1,c!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(f=>{const[g,u,m]=f.version.split(".");parseInt(g,10)*1e4+parseInt(u,10)*100+parseInt(m,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(x,w)=>this.onPreConnect(x,w))}).catch(f=>this.onError({message:f.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(f,g)=>{this.onPreConnect(f,g)})}),this._socket.on("reconnect",()=>{this.onReadyDone=!1,this.props.onProgress?.(xi.READY),this.connected=!0,this.waitForRestart?globalThis.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(c=>c(!0)))}),this._socket.on("disconnect",()=>{this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,this.props.onProgress?.(xi.CONNECTING),this.onConnectionHandlers.forEach(c=>c(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",c=>{this.props.onLog?.(c),this.onLogHandlers.forEach(d=>d(c))}),this._socket.on("error",c=>{let d;c==null?d="":typeof c.toString=="function"?d=c.toString():(d=JSON.stringify(c),console.error(`Received strange error: ${d}`)),d.includes("User not authorized")?this.authenticate():d.includes("websocket error")?(console.error(`Socket Error => reload: ${c}`),globalThis.location.reload()):console.error(`Socket Error: ${c}`)}),this._socket.on("connect_error",c=>console.error(`Connect error: ${c}`)),this._socket.on("permissionError",c=>this.onError({message:"no permission",operation:c.operation,type:c.type,id:c.id||""})),this._socket.on("objectChange",(c,d)=>{setTimeout(()=>this.objectChange(c,d),0)}),this._socket.on("stateChange",(c,d)=>{setTimeout(()=>this.stateChange(c,d),0)}),this._socket.on("im",(c,d,f)=>{setTimeout(()=>this.instanceMessage(c,d,f),0)}),this._socket.on("fileChange",(c,d,f)=>{setTimeout(()=>this.fileChange(c,d,f),0)}),this._socket.on("cmdStdout",(c,d)=>{this.onCmdStdoutHandler?.(c,d)}),this._socket.on("cmdStderr",(c,d)=>{this.onCmdStderrHandler?.(c,d)}),this._socket.on("cmdExit",(c,d)=>{this.onCmdExitHandler?.(c,d)}),Promise.resolve()}onPreConnect(e,r){this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?globalThis.location.reload():(this.firstConnect?this.loadData().catch(n=>{console.error(`Cannot load data: ${n}`)}):this.props.onProgress?.(xi.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(n=>n(!0)),this.checkAccessTokenExpire()),this._waitForFirstConnectionPromise.resolve()}static readTokens(){let e=globalThis.sessionStorage.getItem("iob_tokens");const r=!e;if(e||(e=globalThis.localStorage.getItem("iob_tokens")),!e)return null;const[n,o,i,l,c]=e.split(";"),d=new Date(o);return d.getTime(){if(e.key==="iob_tokens"){const r=Ir.readTokens();r&&(console.log(`Tab ${this.connId} received updated token: ${r.access_token}`),this.updateTokenExpiration(r.access_token))}};updateTokenExpiration(e){this.lastAccessToken!==e&&(this.lastAccessToken=e,this._socket.emit("updateTokenExpiration",e,(r,n)=>{r?(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token: ${r}`),globalThis.location.reload()):n?console.log(`[UPDATE/${new Date().toISOString()}] server accepted new token: ${e}`):(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token`),globalThis.location.reload())})),this.checkAccessTokenExpire()}refreshTokens(e,r){if(!e){console.log(`[REFRESH/${new Date().toISOString()}] No token structure found => reloading the page`),setTimeout(()=>globalThis.location.reload(),500);return}r||!e.owner||e.owner===this.connId?(console.log(`[REFRESH/${new Date().toISOString()}] claim ownership of the token`),this.acquireTokenLock()?(console.log(`[REFRESH/${new Date().toISOString()}] refreshing token`),fetch("./oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&refresh_token=${e.refresh_token}&client_id=ioBroker&stayloggedin=${e.stayLoggedIn}`}).then(n=>{if(n.ok)return n.json();throw new Error("Cannot refresh access token")}).then(n=>{if(n.access_token)console.log(`[REFRESH/${new Date().toISOString()}] received new token: ${n.access_token}`),this.saveTokens(n,e.stayLoggedIn),this.releaseTokenLock(),this.updateTokenExpiration(n.access_token);else throw new Error("Cannot get access token")}).catch(n=>{console.warn(`[REFRESH/${new Date().toISOString()}] cannot refresh token: ${n}`),this.releaseTokenLock(),this.deleteTokens(e.stayLoggedIn),console.error(n),globalThis.location.reload()})):(console.log(`[REFRESH/${new Date().toISOString()}] Someone else is updating the token, so wait for the next check`),this.checkAccessTokenExpire())):this.lastAccessToken!==e.access_token&&this.updateTokenExpiration(e.access_token)}acquireTokenLock(){const e=Date.now(),r=globalThis.localStorage.getItem("iob_token_semaphore");if(r)try{const o=JSON.parse(r);if(e{o?(console.log(`[TOKEN/${new Date().toISOString()}] Token will be prolonged`),this.refreshTokens(e,n)):(console.log(`[TOKEN/${new Date().toISOString()}] Token will not be prolonged. Reloading the page`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))})):(console.log(`[TOKEN/${new Date().toISOString()}] No tokenTimeoutHandler defined. Prolonging the token`),this.refreshTokens(e,n))):this.lastAccessToken!==e.access_token?(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token, but we will inform the server about new token`),this.refreshTokens(e)):(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token and the token did not change. Check in 3 seconds if the owner updated the token`),this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},3e3)):(console.log(`[TOKEN/${new Date().toISOString()}] We do not have a refresh token, so we need to reauthenticate`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))}else this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},r-Date.now()-3e4>12e4?12e4:r-Date.now()-3e4)}}}static isCloud(){return globalThis.location.hostname.includes("amazonaws.com")||globalThis.location.hostname.includes("iobroker.in")?!0:typeof globalThis.socketUrl>"u"?!1:globalThis.socketUrl.includes("iobroker.in")||globalThis.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o||null)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await _4(Ir.isCloud()?5e3:1e3)}}async doLoadData(){if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(e){this.onError(`Cannot read user permissions: ${e}`);return}try{this.props.admin5only&&!Ir.isWeb()&&(!globalThis.vendorPrefix||globalThis.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(e){this.onError(`Cannot read system config: ${e}`);return}this._systemConfig&&(this.systemLang=this._systemConfig.common?.language,this.systemLang||(this.systemLang=globalThis.navigator.userLanguage||globalThis.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang="en"),this._systemConfig.common.language=this.systemLang)),this.props.onLanguage?.(this.systemLang),this.loaded=!0,this.props.onProgress?.(xi.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),this.props.onProgress?.(xi.READY),this.onReadyDone||(this.onReadyDone=!0,this.props.onReady?.(this.objects))}}authenticate(){globalThis.location.search.includes("&href=")?globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}${globalThis.location.search}`:globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}?login&href=${encodeURIComponent(globalThis.location.search+globalThis.location.hash)}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let i;if(Array.isArray(r)?i=r:i=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const l=[];for(let c=0;cc.includes("*"))){let c;for(let d=0;dconsole.error(`Cannot call state change handler: ${m}`))}}}else try{const c=await(Ir.isWeb()?this.getStates(i):this.getForeignStates(i));if(c)for(const[d,f]of Object.entries(c)){const g=o(d,f);g instanceof Promise&&g.catch(u=>console.error(`Cannot call state change handler: ${u}`))}}catch(c){console.error(`Cannot getState "${i.join(", ")}": ${c.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const d=c(e,r,n);d instanceof Promise&&d.catch(f=>console.error(`Cannot call object change handler: ${f}`))}catch(d){console.error(`Error by callback of objectChange: ${d}`)}});if(o){const i=this.props.onObjectChange?.(e,r);i instanceof Promise&&i.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const i=o(e,r??null);i instanceof Promise&&i.catch(l=>console.error(`Cannot call state change handler: ${l}`))}catch(i){console.error(`Error by callback of stateChanged: ${i}`)}}instanceMessage(e,r,n){this._instanceSubscriptions[r]?.forEach(o=>{if(o.messageType===e){const i=o.callback(n,r,e);i instanceof Promise&&i.catch(l=>console.error(`Cannot call instance message handler: ${l}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const i of o.cbs)try{i(e,r,n)}catch(l){console.error(`Error by callback of fileChange: ${l}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const i=[];for(let l=0;l{const u={elapsed:!1,clearTimeout:()=>{}};let m;n!==!1&&(m=setTimeout(()=>{u.elapsed=!0,o?.(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],g(new Error(Ei.TIMEOUT))},n??this.props.cmdTimeout),u.clearTimeout=()=>{clearTimeout(m)});try{await c(f,g,u)}catch(y){e&&this._promises[e]instanceof Promise&&delete this._promises[e],g(new Error(y.toString()))}});return e&&(this._promises[e]=d),d}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,i)=>{this.states=i??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,i)=>{o?n(o):r(i)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,i)=>{o?n(o):r(i)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,i=>{i?o(i):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,i)=>{if(e&&e===this.ignoreState){let l;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?l=r:l={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=l,this.statesSubscribes[e])for(const c of this.statesSubscribes[e].cbs)try{const d=c(e,l);d instanceof Promise&&d.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(d){console.error(`Error by callback of stateChanged: ${d}`)}o();return}this._socket.emit("setState",e,r,l=>{l?i(l):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Ir.isWeb()?"getObjects":"getAllObjects",(i,l)=>{r||this.props.onProgress?.(xi.OBJECTS_LOADED),i?o(i):(this.objects=l??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,i)=>{o?n(o):r(i)})}})}_subscribe(e){if(e&&!this.subscribed){this.subscribed=!0,this.props.autoSubscribes?.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("subscribeObjects",r),Object.keys(this.objectsSubscribes).forEach(n=>this._socket.emit("subscribeObjects",n)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("subscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,i]=n.split("$%$");this._socket.emit("subscribeFiles",o,i)})}else if(!e&&this.subscribed){this.subscribed=!1,this.props.autoSubscribes?.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("unsubscribeObjects",r),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("unsubscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,i]=n.split("$%$");this._socket.emit("unsubscribeFiles",o,i)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},i=>{i?o(i):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},i=>{i?o(i):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,i=>{i?o(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,i)=>{o?n(o):r(i)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,i=>{o(i)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,i=>{i?o(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,1)}registerCmdStdoutHandler(e){this.onCmdStdoutHandler=e}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(e){this.onCmdStderrHandler=e}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(e){this.onCmdExitHandler=e}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(e,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(i,l)=>{if(i)o(i);else{const c={};if(l)for(let d=0;d{n||="",o||="香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(c,d)=>{if(c)l(c);else{const f={};if(d&&d.rows)for(let g=0;g{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{n?r(n):e(o.rows?.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(i,l)=>{i?o(i):n(l)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(l,c,d)=>{l?i(l):o({file:c,mimeType:d})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,l=>{l?i(l):o()});else{const l=btoa(new Uint8Array(n).reduce((c,d)=>c+String.fromCharCode(d),""));this._socket.emit("writeFile64",e,r,l,c=>{c?i(c):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,i=>{i?o(i):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,i=>{i?o(i):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("rename",e,r,n,l=>{l?i(l):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("renameFile",e,r,n,l=>{l?i(l):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(i,l,c)=>{e=k4(e),this._socket.emit("cmdExec",e,n,r,d=>{c.elapsed||(c.clearTimeout(),d?l(d):i())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??={},n.common??={},n.native??={},r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,i)=>{o?n(o):(i??={},i.common??={},i.native??={},r(i))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,i)=>{o?n(o):r(i??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(i,l)=>{i?o(i):n(l)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(i,l)=>{i?o(i):n(l)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(i,l,c,d)=>{i?o(i):n({values:l,sessionId:d,step:c})})}})}getIpAddresses(e,r){return e=k4(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n(o?.common.address??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,i,l)=>{o&&!i&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:i,serverName:l})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(i,l)=>{i?o(i):n(!!l)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{const r=await this.getObject("system.meta.uuid");e(r?.native?.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(i,l)=>{i?o(i):n(l)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",i=`${o}香`,l=await this.getObjectViewSystem("instance",o,i),c=Object.values(l);n(e?c.filter(d=>d.common.name===e):c)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),i=Object.values(o);n(e?i.filter(l=>l.common.name===e):i)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,i)=>{o?n(o):r(K$(i))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(i,l)=>{this._socket.emit("clientSubscribe",e,r,n,(c,d)=>{c?l(c):d&&(d.error?l(d.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),i(d)))})}})}unsubscribeFromInstance(e,r,n){e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const i=[];do{o=!1;const l=this._instanceSubscriptions[e]?.findIndex(c=>(!r||c.messageType===r)&&(!n||c.callback===n));if(l!=null&&l!==-1){o=!0;const c=this._instanceSubscriptions[e][l].messageType;this._instanceSubscriptions[e].splice(l,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(f=>f.messageType===c)||i.push(this.request({commandTimeout:!1,executor:(f,g)=>{this._socket.emit("clientUnsubscribe",e,r,(u,m)=>u?g(u):f(m))}}))}}while(o&&(!n||!r));return i.length?Promise.all(i).then(l=>!!l.find(c=>c)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}destroy(){if(this._socket){const e=this._socket;try{typeof e.destroy=="function"?e.destroy():typeof e.close=="function"&&e.close(!0)}catch{}}globalThis.removeEventListener?.("storage",this.onAccessTokenUpdated),this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this._refreshTimer&&(clearTimeout(this._refreshTimer),this._refreshTimer=null),this.onConnectionHandlers.length=0,this.onLogHandlers.length=0;for(const e of Object.keys(this.statesSubscribes))delete this.statesSubscribes[e];for(const e of Object.keys(this.objectsSubscribes))delete this.objectsSubscribes[e];for(const e of Object.keys(this.filesSubscribes))delete this.filesSubscribes[e];this._instanceSubscriptions={},this.connected=!1,this.onReadyDone=!1}}function J$(){const t=document.getSelection();if(!t?.rangeCount)return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const O4={"text/plain":"Text","text/html":"Url",default:"Text"},Q$="Copy to clipboard: #{key}, Enter";function Z$(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function eL(t,e){let r,n,o,i,l=!1;e=e||{};const c=e.debug||!1;try{if(r=J$(),n=document.createRange(),o=document.getSelection(),i=document.createElement("span"),i.textContent=t,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top="0px",i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.userSelect="text",i.addEventListener("copy",f=>{if(f.stopPropagation(),e?.format)if(f.preventDefault(),typeof f.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData?.clearData();const g=O4[e.format]||O4.default;window.clipboardData?.setData(g,t)}else f.clipboardData?.clearData(),f.clipboardData?.setData(e.format,t)}),document.body.appendChild(i),n.selectNodeContents(i),o?.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){c&&console.error("unable to copy using execCommand: ",d),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),l=!0}catch(f){c&&console.error("unable to copy using clipboardData: ",f),c&&console.error("falling back to prompt");const g=Z$("message"in e?e.message||"":Q$);window.prompt(g,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),i&&document.body.removeChild(i),r&&r()}return l}class z{static translations={};static unknownTranslations=[];static lang=window.sysLang||"en";static _disableWarning=!1;static setLanguage(e){e&&(z.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(i=>{const l=i,c={},d=n[l];Object.keys(d).forEach(f=>{f&&d&&(f.startsWith(o)?c[f]=d[f]:c[`${o}${f}`]=d[f])}),e[l]=c})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;z.translations[o]||={},Object.assign(z.translations[o],e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(i=>{const l=i,c=z.translations[l];c?c[n]?c[n]!==o[l]&&console.warn(`Translation for word "${n}" in "${l}" was ignored: existing = "${c[n]}", new = ${o[l]}`):c[n]=o[l]:console.warn(`Used unknown language: ${l}`)})});else{z.translations[r]||console.warn(`Used unknown language: ${r}`),z.translations[r]||={};const n=z.translations[r];Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(z.translations=e)}static getLanguage(){return z.lang}static t(e,...r){const n=z.translations[z.lang];if(n){const o=n[e];if(o)e=o;else if(z.unknownTranslations.includes(e)||(z.unknownTranslations.push(e),!z._disableWarning&&console.log(`Translate: ${e}`)),z.lang!=="en"&&z.translations.en){const i=z.translations.en[e];i&&(e=i)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(z.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):e&&typeof e=="object"&&(z.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(z.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){z._disableWarning=!!e}}window.i18nShow=z.i18nShow;window.i18nDisableWarning=z.disableWarning;const io="material",tL=["Su","Mo","Tu","We","Th","Fr","Sa"],rL=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dm={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},R4={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"};class Ge{static namespace=io;static INSTANCES="instances";static dateFormat=["DD","MM"];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const i=Math.floor(e).toString().padStart(2,"0");let l="";return r&&(l+=`${r} ${z.t("ra_daysShortText")} `),l+=`${n}:${o}:${i}`,l}static getObjectName(e,r,n,o,i){const l=e[r];let c;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n?.name){const d=n.name;typeof d=="object"?c=o.language&&d[o.language]||d.en:c=d}else if(i&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!i&&l?.common){const d=l.common.name||l.common.desc;d&&typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else{const d=r.lastIndexOf(".");c=r.substring(d+1).replace(/[_.]/g," "),c=Ge.CapitalWords(c)}return c?.trim()||""}static getObjectNameFromObj(e,r,n,o,i){const l=e;let c=e?._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r?.name){const d=r.name;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d}else if(o&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!o&&l?.common?.name){let d=l.common.name;!d&&l.common.desc&&(d=l.common.desc),typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}return i?c:c.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[io];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subOrder&&i[l].subOrder[r])return JSON.parse(JSON.stringify(i[l].subOrder[r]))}else if(i[l].order)return JSON.parse(JSON.stringify(i[l].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[io];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subURLs&&i[l].subURLs[r])return JSON.parse(JSON.stringify(i[l].subURLs[r]))}else if(i[l].URLs)return JSON.parse(JSON.stringify(i[l].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[i]=o.splice(r,1);return o.splice(n,0,i),o}static getSettings(e,r,n){let o;const i=e?._id||r?.id;let l;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?l=e.common:l=e,l?.custom?(o=l.custom,o=o[io]&&o[io][r.user||"admin"]?JSON.parse(JSON.stringify(o[io][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),l&&(!o.color&&l.color&&(o.color=l.color),!o.icon&&l.icon&&(o.icon=l.icon),!o.name&&l.name&&(o.name=l.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&i){const c=i.lastIndexOf(".");o.name=i.substring(c+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=Ge.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[io]=e.common.custom[io]||{},e.common.custom[io][n.user||"admin"]=r;const o=e.common.custom[io][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e?.icon?e.icon.length<=2?v.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?v.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):v.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){if(typeof e=="object"&&(r=e,e=r?._id),r?.common?.icon){let n=r.common.icon;if(typeof n=="string"&&n.length<=2||n.startsWith("data:image"))return n;const o=e.split(".");return o[0]==="system"?n=`adapter/${o[2]}${n.startsWith("/")?"":"/"}${n}`:n=`adapter/${o[0]}${n.startsWith("/")?"":"/"}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?n=`../../${n}`:window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(e){return e?Ge.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,i;const l=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(l&&l.length===4)n=parseInt(l[1],10),o=parseInt(l[2],10),i=parseInt(l[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16)}return n*.299+o*.587+i*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}static getWindDirection(e){return e>=0&&e<11.25?"N":e>=11.25&&e<33.75?"NNE":e>=33.75&&e<56.25?"NE":e>=56.25&&e<78.75?"ENE":e>=78.75&&e<101.25?"E":e>=101.25&&e<123.75?"ESE":e>=123.75&&e<146.25?"SE":e>=146.25&&e<168.75?"SSE":e>=168.75&&e<191.25?"S":e>=191.25&&e<213.75?"SSW":e>=213.75&&e<236.25?"SW":e>=236.25&&e<258.75?"WSW":e>=258.75&&e<281.25?"W":e>=281.25&&e<303.75?"WNW":e>=303.75&&e<326.25?"NW":e>=326.25&&e<348.75?"NNW":"N"}static padding(e){return typeof e=="string"?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(e){e&&(Ge.dateFormat=e.toUpperCase().split(/[.-/]/),Ge.dateFormat.splice(Ge.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],i=o.find(l=>l>31);if(i!==void 0){o.splice(o.indexOf(i),1);const l=o.find(c=>c>12);l?(o.splice(o.indexOf(l),1),e=new Date(i,o[0]-1,l)):Ge.dateFormat[0][0]==="M"&&Ge.dateFormat[1][0]==="D"?(e=new Date(i,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[1]-1,o[0]))):Ge.dateFormat[0][0]==="D"&&Ge.dateFormat[1][0]==="M"?(e=new Date(i,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=z.t(`ra_dow_${tL[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${z.t(`ra_month_${rL[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/
||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const i=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),i&&n.push(v.createElement("span",{key:`a${o++}`},i)),r[0].startsWith(""))n.push(v.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(v.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(v.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return l?.common?.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const i=e[r];return i?.common?.custom&&i.common.custom[n]&&i.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=e?.common?.custom?.[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName={}):o.common.smartName={}}static removeSmartName(e,r,n){const o=e;n?o?.common?.custom?.[r]&&(o.common.custom[r]=null):o.common.smartName=null}static updateSmartName(e,r,n,o,i,l){const c=z.getLanguage(),d=e;if(typeof d.common.smartName=="string"){const f=d.common.smartName;d.common.smartName={},d.common.smartName[c]=f}if(d.native?.byON){delete d.native.byON;let f=d.common.smartName;f&&typeof f!="object"&&(f={en:f,[c]:f}),d.common.smartName=f}if(o!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},o?d.common.custom[i].smartName.smartType=o:delete d.common.custom[i].smartName.smartType):(d.common.smartName||={},o?d.common.smartName.smartType=o:delete d.common.smartName.smartType)),n!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},d.common.custom[i].smartName.byON=n):(d.common.smartName||={},d.common.smartName.byON=n)),r!==void 0){let f;if(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},f=d.common.custom[i].smartName):(d.common.smartName||={},f=d.common.smartName),f[c]=r,f&&(!f[c]||f[c]===d.common.name&&!d.common.role)){delete f[c];let g=!0;for(const u in f)if(Object.prototype.hasOwnProperty.call(f,u)){g=!1;break}if(g)if(l&&d.common.custom?.[i])d.common.custom[i].smartName.byON===void 0?delete d.common.custom[i]:(delete d.common.custom[i].en,delete d.common.custom[i].de,delete d.common.custom[i].ru,delete d.common.custom[i].nl,delete d.common.custom[i].pl,delete d.common.custom[i].it,delete d.common.custom[i].fr,delete d.common.custom[i].pt,delete d.common.custom[i].es,delete d.common.custom[i].uk,delete d.common.custom[i]["zh-cn"]);else if(d.common.smartName&&d.common.smartName.byON!==void 0){const u=d.common.smartName;delete u.en,delete u.de,delete u.ru,delete u.nl,delete u.pl,delete u.it,delete u.fr,delete u.pt,delete u.es,delete u.uk,delete u["zh-cn"]}else d.common.smartName=null}}}static updateSmartNameEx(e,r){const n=z.getLanguage(),o=e;if(typeof o.common.smartName=="string"){const i=o.common.smartName;o.common.smartName={},o.common.smartName[n]=i}if(o.native?.byON){delete o.native.byON;let i=o.common.smartName;i&&typeof i!="object"&&(i={en:i,[n]:i}),o.common.smartName=i}if(r.smartType!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},r.smartType?o.common.custom[r.instanceId].smartName.smartType=r.smartType:delete o.common.custom[r.instanceId].smartName.smartType):(o.common.smartName||={},r.smartType?o.common.smartName.smartType=r.smartType:delete o.common.smartName.smartType)),r.byON!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.byON=r.byON):(o.common.smartName||={},o.common.smartName.byON=r.byON)),r.noAutoDetect!==void 0&&(r.noCommon?r.noAutoDetect?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.noAutoDetect=r.noAutoDetect):o.common.custom?.[r.instanceId]?.smartName&&delete o.common.custom[r.instanceId].smartName.noAutoDetect:!r.noAutoDetect&&o.common.smartName?delete o.common.smartName.noAutoDetect:(o.common.smartName||={},o.common.smartName.noAutoDetect=r.noAutoDetect)),r.smartName!==void 0){let i;if(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},i=o.common.custom[r.instanceId].smartName):(o.common.smartName||={},i=o.common.smartName),i[n]=r.smartName,i&&(!i[n]||i[n]===o.common.name&&!o.common.role)){delete i[n];let l=!0;for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){l=!1;break}if(l)if(r.noCommon&&o.common.custom?.[r.instanceId])o.common.custom[r.instanceId].smartName.byON===void 0?delete o.common.custom[r.instanceId]:(delete o.common.custom[r.instanceId].en,delete o.common.custom[r.instanceId].de,delete o.common.custom[r.instanceId].ru,delete o.common.custom[r.instanceId].nl,delete o.common.custom[r.instanceId].pl,delete o.common.custom[r.instanceId].it,delete o.common.custom[r.instanceId].fr,delete o.common.custom[r.instanceId].pt,delete o.common.custom[r.instanceId].es,delete o.common.custom[r.instanceId].uk,delete o.common.custom[r.instanceId]["zh-cn"]);else if(o.common.smartName&&o.common.smartName.byON!==void 0){const c=o.common.smartName;delete c.en,delete c.de,delete c.ru,delete c.nl,delete c.pl,delete c.it,delete c.fr,delete c.pt,delete c.es,delete c.uk,delete c["zh-cn"]}else o.common.smartName=null}}}static disableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName=!1):o.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),eL(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const c=(255-o).toString(16),d=(255-i).toString(16),f=(255-l).toString(16);return`#${c.padStart(2,"0")}${d.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else e.startsWith("#")&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let i=(r*.4124+n*.3576+o*.1805)/.95047,l=r*.2126+n*.7152+o*.0722,c=(r*.0193+n*.1192+o*.9505)/1.08883;return i=i>.008856?i**.33333333:7.787*i+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,c=c>.008856?c**.33333333:7.787*c+.137931,[116*l-16,500*(i-l),200*(l-c)]}static colorDistance(e,r){const n=Ge.color2rgb(e),o=Ge.color2rgb(r);if(!n||!o)return 0;const i=Ge.rgb2lab(n),l=Ge.rgb2lab(o),c=i[0]-l[0],d=i[1]-l[1],f=i[2]-l[2],g=Math.sqrt(i[1]*i[1]+i[2]*i[2]),u=Math.sqrt(l[1]*l[1]+l[2]*l[2]),m=g-u;let y=d*d+f*f-m*m;y=y<0?0:Math.sqrt(y);const x=1+.045*g,w=1+.015*g,T=c,k=m/x,I=y/w,_=T*T+k*k+I*I;return _<0?0:_}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),i=decodeURIComponent(o[0]).trim();if(o.length>1){const l=decodeURIComponent(o[1]);if(l==="true")r[i]=!0;else if(l==="false")r[i]=!1;else{const c=parseFloat(l);c.toString()===l?r[i]=c:r[i]=l}}else r[i]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${i}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${i}`,n+=` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`,n}static formatTime(e){if(e){e=Math.round(e);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),i=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){const r=Ge.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` + `:null,dD=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${me(n)}`,r],dashed:["dashed",`dashedColor${me(n)}`],bar1:["bar","bar1",`barColor${me(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${me(n)}`,r==="buffer"&&`color${me(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ye(o,sD,e)},iy=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Op(t.palette[e].main,.62):_p(t.palette[e].main,.5),pD=ce("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:iy(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),fD=ce("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${me(r.color)}`]]}})(Qe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>{const r=iy(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),uD||{animation:`${ov} 3s infinite linear`}),hD=ce("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${tv}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${tv}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:lD||{animation:`${rv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),mD=ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:iy(t,e),transition:`transform .${tv}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:cD||{animation:`${nv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),gD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:l,valueBuffer:c,variant:d="indeterminate",...f}=n,g={...n,color:i,variant:d},u=dD(g),m=ol(),y={},x={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&l!==void 0){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let w=l-100;m&&(w=-w),x.bar1.transform=`translateX(${w}%)`}if(d==="buffer"&&c!==void 0){let w=(c||0)-100;m&&(w=-w),x.bar2.transform=`translateX(${w}%)`}return L.jsxs(pD,{className:xe(u.root,o),ownerState:g,role:"progressbar",...y,ref:r,...f,children:[d==="buffer"?L.jsx(fD,{className:u.dashed,ownerState:g}):null,L.jsx(hD,{className:u.bar1,ownerState:g,style:x.bar1}),d==="determinate"?null:L.jsx(mD,{className:u.bar2,ownerState:g,style:x.bar2})]})});function vD(t){return Ke("MuiLink",t)}const yD=Ve("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),bD=({theme:t,ownerState:e})=>{const r=e.color,n=Ti(t,`palette.${r}.main`,!1)||Ti(t,`palette.${r}`,!1)||e.color,o=Ti(t,`palette.${r}.mainChannel`)||Ti(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Dt(n,.4)},c4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wD=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,i={root:["root",`underline${me(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Ye(i,vD,e)},xD=ce(dn,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${me(r.underline)}`],r.component==="button"&&e.button]}})(Qe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:Dt(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Dt(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Dt(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yD.focusVisible}`]:{outline:"auto"}}}]}))),u4=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiLink"}),o=Ho(),{className:i,color:l="primary",component:c="a",onBlur:d,onFocus:f,TypographyClasses:g,underline:u="always",variant:m="inherit",sx:y,...x}=n,[w,T]=O.useState(!1),k=P=>{Vs(P.target)||T(!1),d&&d(P)},I=P=>{Vs(P.target)&&T(!0),f&&f(P)},_={...n,color:l,component:c,focusVisible:w,underline:u,variant:m},R=wD(_);return L.jsx(xD,{color:l,className:xe(R.root,i),classes:g,component:c,onBlur:k,onFocus:I,ref:r,ownerState:_,variant:m,...x,sx:[...c4[l]===void 0?[{color:l}]:[],...Array.isArray(y)?y:[y]],style:{...x.style,...u==="always"&&l!=="inherit"&&!c4[l]&&{"--Link-underlineColor":bD({theme:o,ownerState:_})}}})}),Nc=O.createContext({});function SD(t){return Ke("MuiList",t)}Ve("MuiList",["root","padding","dense","subheader"]);const TD=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return Ye({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},SD,e)},ED=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),CD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f,...g}=n,u=O.useMemo(()=>({dense:c}),[c]),m={...n,component:l,dense:c,disablePadding:d},y=TD(m);return L.jsx(Nc.Provider,{value:u,children:L.jsxs(ED,{as:l,className:xe(y.root,i),ref:r,ownerState:m,...g,children:[f,o]})})});function kD(t){return Ke("MuiListItemIcon",t)}const d4=Ve("MuiListItemIcon",["root","alignItemsFlexStart"]),_D=t=>{const{alignItems:e,classes:r}=t;return Ye({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},kD,r)},OD=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Qe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),RD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiListItemIcon"}),{className:o,...i}=n,l=O.useContext(Nc),c={...n,alignItems:l.alignItems},d=_D(c);return L.jsx(OD,{className:xe(d.root,o),ownerState:c,ref:r,...i})});function PD(t){return Ke("MuiListItemText",t)}const Ls=Ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),MD=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:i}=t;return Ye({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},PD,e)},ID=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ls.primary}`]:e.primary},{[`& .${Ls.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Bx.root}:where(& .${Ls.primary})`]:{display:"block"},[`.${Bx.root}:where(& .${Ls.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),AD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiListItemText"}),{children:o,className:i,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:f,secondary:g,secondaryTypographyProps:u,slots:m={},slotProps:y={},...x}=n,{dense:w}=O.useContext(Nc);let T=d??o,k=g;const I={...n,disableTypography:l,inset:c,primary:!!T,secondary:!!k,dense:w},_=MD(I),R={slots:m,slotProps:{primary:f,secondary:u,...y}},[P,C]=ut("root",{className:xe(_.root,i),elementType:ID,externalForwardedProps:{...R,...x},ownerState:I,ref:r}),[M,N]=ut("primary",{className:_.primary,elementType:dn,externalForwardedProps:R,ownerState:I}),[D,E]=ut("secondary",{className:_.secondary,elementType:dn,externalForwardedProps:R,ownerState:I});return T!=null&&T.type!==dn&&!l&&(T=L.jsx(M,{variant:w?"body2":"body1",component:N?.variant?void 0:"span",...N,children:T})),k!=null&&k.type!==dn&&!l&&(k=L.jsx(D,{variant:"body2",color:"textSecondary",...E,children:k})),L.jsxs(P,{...C,children:[T,k]})});function lm(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function p4(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function JT(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Gl(t,e,r,n,o,i){let l=!1,c=o(t,e,e?r:!1);for(;c;){if(c===t.firstChild){if(l)return!1;l=!0}const d=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!JT(c,i)||d)c=o(t,c,r);else return c.focus(),!0}return!1}const DD=O.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:g,variant:u="selectedMenu",...m}=e,y=O.useRef(null),x=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});en(()=>{o&&y.current.focus()},[o]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:R})=>{const P=!y.current.style.width;if(_.clientHeight{const R=y.current,P=_.key;if(_.ctrlKey||_.metaKey||_.altKey){g&&g(_);return}const M=tn(R).activeElement;if(P==="ArrowDown")_.preventDefault(),Gl(R,M,f,d,lm);else if(P==="ArrowUp")_.preventDefault(),Gl(R,M,f,d,p4);else if(P==="Home")_.preventDefault(),Gl(R,null,f,d,lm);else if(P==="End")_.preventDefault(),Gl(R,null,f,d,p4);else if(P.length===1){const N=x.current,D=P.toLowerCase(),E=performance.now();N.keys.length>0&&(E-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&D!==N.keys[0]&&(N.repeating=!1)),N.lastTime=E,N.keys.push(D);const $=M&&!N.repeating&&JT(M,N);N.previousKeyMatched&&($||Gl(R,M,!1,d,lm,N))?_.preventDefault():N.previousKeyMatched=!1}g&&g(_)},T=yr(y,r);let k=-1;O.Children.forEach(l,(_,R)=>{if(!O.isValidElement(_)){k===R&&(k+=1,k>=l.length&&(k=-1));return}_.props.disabled||(u==="selectedMenu"&&_.props.selected||k===-1)&&(k=R),k===R&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(k+=1,k>=l.length&&(k=-1))});const I=O.Children.map(l,(_,R)=>{if(R===k){const P={};return i&&(P.autoFocus=!0),_.props.tabIndex===void 0&&u==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(_,P)}return _});return L.jsx(CD,{role:"menu",ref:T,className:c,onKeyDown:w,tabIndex:o?0:-1,...m,children:I})});function ND(t){return Ke("MuiPopover",t)}Ve("MuiPopover",["root","paper"]);function f4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function h4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function m4(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function gd(t){return typeof t=="function"?t():t}const $D=t=>{const{classes:e}=t;return Ye({root:["root"],paper:["paper"]},ND,e)},LD=ce(GT,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),QT=ce(Gs,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),FD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:g,container:u,elevation:m=8,marginThreshold:y=16,open:x,PaperProps:w={},slots:T={},slotProps:k={},transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:R="auto",TransitionProps:P={},disableScrollLock:C=!1,...M}=n,N=O.useRef(),D={...n,anchorOrigin:l,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:I,TransitionComponent:_,transitionDuration:R,TransitionProps:P},E=$D(D),$=O.useCallback(()=>{if(d==="anchorPosition")return c;const ke=gd(i),Ie=(ke&&ke.nodeType===1?ke:tn(N.current).body).getBoundingClientRect();return{top:Ie.top+f4(Ie,l.vertical),left:Ie.left+h4(Ie,l.horizontal)}},[i,l.horizontal,l.vertical,c,d]),H=O.useCallback(ke=>({vertical:f4(ke,I.vertical),horizontal:h4(ke,I.horizontal)}),[I.horizontal,I.vertical]),q=O.useCallback(ke=>{const Le={width:ke.offsetWidth,height:ke.offsetHeight},Ie=H(Le);if(d==="none")return{top:null,left:null,transformOrigin:m4(Ie)};const nt=$();let Pe=nt.top-Ie.vertical,Ce=nt.left-Ie.horizontal;const ht=Pe+Le.height,ye=Ce+Le.width,Ae=Vn(gd(i)),it=Ae.innerHeight-y,Je=Ae.innerWidth-y;if(y!==null&&Peit){const qe=ht-it;Pe-=qe,Ie.vertical+=qe}if(y!==null&&CeJe){const qe=ye-Je;Ce-=qe,Ie.horizontal+=qe}return{top:`${Math.round(Pe)}px`,left:`${Math.round(Ce)}px`,transformOrigin:m4(Ie)}},[i,d,$,H,y]),[U,W]=O.useState(x),K=O.useCallback(()=>{const ke=N.current;if(!ke)return;const Le=q(ke);Le.top!==null&&ke.style.setProperty("top",Le.top),Le.left!==null&&(ke.style.left=Le.left),ke.style.transformOrigin=Le.transformOrigin,W(!0)},[q]);O.useEffect(()=>(C&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[i,C,K]);const re=()=>{K()},Z=()=>{W(!1)};O.useEffect(()=>{x&&K()}),O.useImperativeHandle(o,()=>x?{updatePosition:()=>{K()}}:null,[x,K]),O.useEffect(()=>{if(!x)return;const ke=Rp(()=>{K()}),Le=Vn(gd(i));return Le.addEventListener("resize",ke),()=>{ke.clear(),Le.removeEventListener("resize",ke)}},[i,x,K]);let V=R;const ee={slots:{transition:_,...T},slotProps:{transition:P,paper:w,...k}},[B,J]=ut("transition",{elementType:tp,externalForwardedProps:ee,ownerState:D,getSlotProps:ke=>({...ke,onEntering:(Le,Ie)=>{ke.onEntering?.(Le,Ie),re()},onExited:Le=>{ke.onExited?.(Le),Z()}}),additionalProps:{appear:!0,in:x}});R==="auto"&&!B.muiSupportAuto&&(V=void 0);const de=u||(i?tn(gd(i)).body:void 0),[pe,{slots:ie,slotProps:fe,...Se}]=ut("root",{ref:r,elementType:LD,externalForwardedProps:{...ee,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:T.backdrop},slotProps:{backdrop:RT(typeof k.backdrop=="function"?k.backdrop(D):k.backdrop,{invisible:!0})},container:de,open:x},ownerState:D,className:xe(E.root,g)}),[Ee,_e]=ut("paper",{ref:N,className:E.paper,elementType:QT,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:U?void 0:{opacity:0}},ownerState:D});return L.jsx(pe,{...Se,...!Q1(pe)&&{slots:ie,slotProps:fe,disableScrollLock:C},children:L.jsx(B,{...J,timeout:V,children:L.jsx(Ee,{..._e,children:f})})})});function BD(t){return Ke("MuiMenu",t)}Ve("MuiMenu",["root","paper","list"]);const zD={vertical:"top",horizontal:"right"},jD={vertical:"top",horizontal:"left"},HD=t=>{const{classes:e}=t;return Ye({root:["root"],paper:["paper"],list:["list"]},BD,e)},qD=ce(FD,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),WD=ce(QT,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),UD=ce(DD,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),ZT=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:g,PaperProps:u={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:x,...w}={},variant:T="selectedMenu",slots:k={},slotProps:I={},..._}=n,R=ol(),P={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:d,onEntering:x,PaperProps:u,transitionDuration:y,TransitionProps:w,variant:T},C=HD(P),M=o&&!c&&g,N=O.useRef(null),D=(V,ee)=>{N.current&&N.current.adjustStyleForScrollbar(V,{direction:R?"rtl":"ltr"}),x&&x(V,ee)},E=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let $=-1;O.Children.map(i,(V,ee)=>{O.isValidElement(V)&&(V.props.disabled||(T==="selectedMenu"&&V.props.selected||$===-1)&&($=ee))});const H={slots:k,slotProps:{list:d,transition:w,paper:u,...I}},q=ha({elementType:k.root,externalSlotProps:I.root,ownerState:P,className:[C.root,l]}),[U,W]=ut("paper",{className:C.paper,elementType:WD,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:P}),[K,re]=ut("list",{className:xe(C.list,d.className),elementType:UD,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:V=>({...V,onKeyDown:ee=>{E(ee),V.onKeyDown?.(ee)}}),ownerState:P}),Z=typeof H.slotProps.transition=="function"?H.slotProps.transition(P):H.slotProps.transition;return L.jsx(qD,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?zD:jD,slots:{root:k.root,paper:U,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:q,paper:W,backdrop:typeof I.backdrop=="function"?I.backdrop(P):I.backdrop,transition:{...Z,onEntering:(...V)=>{D(...V),Z?.onEntering?.(...V)}}},open:g,ref:r,transitionDuration:y,ownerState:P,..._,classes:m,children:L.jsx(K,{actions:N,autoFocus:o&&($===-1||c),autoFocusItem:M,variant:T,...re,children:i})})});function XD(t){return Ke("MuiMenuItem",t)}const Kl=Ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VD=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},GD=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:i,classes:l}=t,d=Ye({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},XD,l);return{...l,...d}},KD=ce(Ni,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:VD})(Qe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Kl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Kl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Kl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Kl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${i4.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${i4.inset}`]:{marginLeft:52},[`& .${Ls.root}`]:{marginTop:0,marginBottom:0},[`& .${Ls.inset}`]:{paddingLeft:36},[`& .${d4.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${d4.root} svg`]:{fontSize:"1.25rem"}}}]}))),cr=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:f,role:g="menuitem",tabIndex:u,className:m,...y}=n,x=O.useContext(Nc),w=O.useMemo(()=>({dense:l||x.dense||!1,disableGutters:d}),[x.dense,l,d]),T=O.useRef(null);en(()=>{o&&T.current&&T.current.focus()},[o]);const k={...n,dense:w.dense,divider:c,disableGutters:d},I=GD(n),_=yr(T,r);let R;return n.disabled||(R=u!==void 0?u:-1),L.jsx(Nc.Provider,{value:w,children:L.jsx(KD,{ref:_,role:g,tabIndex:R,component:i,focusVisibleClassName:xe(I.focusVisible,f),className:xe(I.root,m),...y,ownerState:k,classes:I})})});function YD(t){return Ke("MuiNativeSelect",t)}const ay=Ve("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JD=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,i&&"iconOpen",n&&"disabled"]};return Ye(c,YD,e)},eE=ce("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ay.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),QD=ce(eE,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:br,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${ay.multiple}`]:e.multiple}]}})({}),tE=ce("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ay.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ZD=ce(tE,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),eN=O.forwardRef(function(e,r){const{className:n,disabled:o,error:i,IconComponent:l,inputRef:c,variant:d="standard",...f}=e,g={...e,disabled:o,variant:d,error:i},u=JD(g);return L.jsxs(O.Fragment,{children:[L.jsx(QD,{ownerState:g,className:xe(u.select,n),disabled:o,ref:c||r,...f}),e.multiple?null:L.jsx(ZD,{as:l,ownerState:g,className:u.icon})]})});var g4;const tN=ce("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:br})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rN=ce("legend",{name:"MuiNotchedOutlined",shouldForwardProp:br})(Qe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function nN(t){const{children:e,classes:r,className:n,label:o,notched:i,...l}=t,c=o!=null&&o!=="",d={...t,notched:i,withLabel:c};return L.jsx(tN,{"aria-hidden":!0,className:n,ownerState:d,...l,children:L.jsx(rN,{ownerState:d,children:c?L.jsx("span",{children:o}):g4||(g4=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const oN=t=>{const{classes:e}=t,n=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rI,e);return{...e,...n}},iN=ce($p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Dp})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${oo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${oo.focused} .${oo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(rr()).map(([r])=>({props:{color:r},style:{[`&.${oo.focused} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${oo.error} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${oo.disabled} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),aN=ce(nN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),sN=ce(Lp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Np})(Qe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),sy=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:f,slots:g={},slotProps:u={},type:m="text",...y}=n,x=oN(n),w=So(),T=Li({props:n,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:w,fullWidth:i,hiddenLabel:T.hiddenLabel,multiline:d,size:T.size,type:m},I=g.root??o.Root??iN,_=g.input??o.Input??sN,[R,P]=ut("notchedOutline",{elementType:aN,className:x.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:u},additionalProps:{label:c!=null&&c!==""&&T.required?L.jsxs(O.Fragment,{children:[c," ","*"]}):c}});return L.jsx(ny,{slots:{root:I,input:_},slotProps:u,renderSuffix:C=>L.jsx(R,{...P,notched:typeof f<"u"?f:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:i,inputComponent:l,multiline:d,ref:r,type:m,...y,classes:{...x,notchedOutline:null}})});sy.muiName="Input";const lN=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),cN=He(L.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),uN=ce("span",{name:"MuiRadioButtonIcon",shouldForwardProp:br})({position:"relative",display:"flex"}),dN=ce(lN,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),pN=ce(cN,{name:"MuiRadioButtonIcon"})(Qe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function rE(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return L.jsxs(uN,{className:r.root,ownerState:o,children:[L.jsx(dN,{fontSize:n,className:r.background,ownerState:o}),L.jsx(pN,{fontSize:n,className:r.dot,ownerState:o})]})}const fN=O.createContext(void 0);function hN(){return O.useContext(fN)}function mN(t){return Ke("MuiRadio",t)}const v4=Ve("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),gN=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${me(r)}`,n!=="medium"&&`size${me(n)}`]};return{...e,...Ye(o,mN,e)}},vN=ce(VT,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${me(r.size)}`],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${v4.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Dt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Dt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${v4.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function yN(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const bN=L.jsx(rE,{checked:!0}),wN=L.jsx(rE,{}),At=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:i=bN,color:l="primary",icon:c=wN,name:d,onChange:f,size:g="medium",className:u,disabled:m,disableRipple:y=!1,slots:x={},slotProps:w={},inputProps:T,...k}=n,I=So();let _=m;I&&typeof _>"u"&&(_=I.disabled),_??=!1;const R={...n,disabled:_,disableRipple:y,color:l,size:g},P=gN(R),C=hN();let M=o;const N=B1(f,C&&C.onChange);let D=d;C&&(typeof M>"u"&&(M=yN(C.value,n.value)),typeof D>"u"&&(D=C.name));const E=w.input??T,[$,H]=ut("root",{ref:r,elementType:vN,className:xe(P.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:w,...k},getSlotProps:q=>({...q,onChange:(U,...W)=>{q.onChange?.(U,...W),N(U,...W)}}),ownerState:R,additionalProps:{type:"radio",icon:O.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:O.cloneElement(i,{fontSize:i.props.fontSize??g}),disabled:_,name:D,checked:M,slots:x,slotProps:{input:typeof E=="function"?E(R):E}}});return L.jsx($,{...H,classes:P})});function nE(t){return Ke("MuiSelect",t)}const Yl=Ve("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var y4;const xN=ce(eE,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Yl.select}`]:e.select},{[`&.${Yl.select}`]:e[r.variant]},{[`&.${Yl.error}`]:e.error},{[`&.${Yl.multiple}`]:e.multiple}]}})({[`&.${Yl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SN=ce(tE,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),TN=ce("input",{shouldForwardProp:t=>OT(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function b4(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function EN(t){return t==null||typeof t=="string"&&!t.trim()}const CN=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ye(c,nE,e)},kN=O.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:g,disabled:u,displayEmpty:m,error:y=!1,IconComponent:x,inputRef:w,labelId:T,MenuProps:k={},multiple:I,name:_,onBlur:R,onChange:P,onClose:C,onFocus:M,onOpen:N,open:D,readOnly:E,renderValue:$,required:H,SelectDisplayProps:q={},tabIndex:U,type:W,value:K,variant:re="standard",...Z}=e,[V,ee]=Gd({controlled:K,default:g,name:"Select"}),[B,J]=Gd({controlled:D,default:f,name:"Select"}),de=O.useRef(null),pe=O.useRef(null),[ie,fe]=O.useState(null),{current:Se}=O.useRef(D!=null),[Ee,_e]=O.useState(),ke=yr(r,w),Le=O.useCallback(be=>{pe.current=be,be&&fe(be)},[]),Ie=ie?.parentNode;O.useImperativeHandle(ke,()=>({focus:()=>{pe.current.focus()},node:de.current,value:V}),[V]),O.useEffect(()=>{f&&B&&ie&&!Se&&(_e(l?null:Ie.clientWidth),pe.current.focus())},[ie,l]),O.useEffect(()=>{i&&pe.current.focus()},[i]),O.useEffect(()=>{if(!T)return;const be=tn(pe.current).getElementById(T);if(be){const lt=()=>{getSelection().isCollapsed&&pe.current.focus()};return be.addEventListener("click",lt),()=>{be.removeEventListener("click",lt)}}},[T]);const nt=(be,lt)=>{be?N&&N(lt):C&&C(lt),Se||(_e(l?null:Ie.clientWidth),J(be))},Pe=be=>{be.button===0&&(be.preventDefault(),pe.current.focus(),nt(!0,be))},Ce=be=>{nt(!1,be)},ht=O.Children.toArray(c),ye=be=>{const lt=ht.find(St=>St.props.value===be.target.value);lt!==void 0&&(ee(lt.props.value),P&&P(be,lt))},Ae=be=>lt=>{let St;if(lt.currentTarget.hasAttribute("tabindex")){if(I){St=Array.isArray(V)?V.slice():[];const ur=V.indexOf(be.props.value);ur===-1?St.push(be.props.value):St.splice(ur,1)}else St=be.props.value;if(be.props.onClick&&be.props.onClick(lt),V!==St&&(ee(St),P)){const ur=lt.nativeEvent||lt,dr=new ur.constructor(ur.type,ur);Object.defineProperty(dr,"target",{writable:!0,value:{value:St,name:_}}),P(dr,be)}I||nt(!1,lt)}},it=be=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(be.key)&&(be.preventDefault(),nt(!0,be))},Je=ie!==null&&B,qe=be=>{!Je&&R&&(Object.defineProperty(be,"target",{writable:!0,value:{value:V,name:_}}),R(be))};delete Z["aria-invalid"];let ve,at;const Xe=[];let ne=!1;(ep({value:V})||m)&&($?ve=$(V):ne=!0);const ge=ht.map(be=>{if(!O.isValidElement(be))return null;let lt;if(I){if(!Array.isArray(V))throw new Error(Bo(2));lt=V.some(St=>b4(St,be.props.value)),lt&&ne&&Xe.push(be.props.children)}else lt=b4(V,be.props.value),lt&&ne&&(at=be.props.children);return O.cloneElement(be,{"aria-selected":lt?"true":"false",onClick:Ae(be),onKeyUp:St=>{St.key===" "&&St.preventDefault(),be.props.onKeyUp&&be.props.onKeyUp(St)},role:"option",selected:lt,value:void 0,"data-value":be.props.value})});ne&&(I?Xe.length===0?ve=null:ve=Xe.reduce((be,lt,St)=>(be.push(lt),St{const{classes:e}=t,n=Ye({root:["root"]},nE,e);return{...e,...n}},ly={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>br(t)&&t!=="variant",slot:"Root"},ON=ce(uo,ly)(""),RN=ce(sy,ly)(""),PN=ce(oy,ly)(""),ho=O.forwardRef(function(e,r){const n=et({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:g=oI,id:u,input:m,inputProps:y,label:x,labelId:w,MenuProps:T,multiple:k=!1,native:I=!1,onClose:_,onOpen:R,open:P,renderValue:C,SelectDisplayProps:M,variant:N="outlined",...D}=n,E=I?eN:kN,$=So(),H=Li({props:n,muiFormControl:$,states:["variant","error"]}),q=H.variant||N,U={...n,variant:q,classes:l},W=_N(U),{root:K,...re}=W,Z=m||{standard:L.jsx(ON,{ownerState:U}),outlined:L.jsx(RN,{label:x,ownerState:U}),filled:L.jsx(PN,{ownerState:U})}[q],V=yr(r,nl(Z));return L.jsx(O.Fragment,{children:O.cloneElement(Z,{inputComponent:E,inputProps:{children:i,error:H.error,IconComponent:g,variant:q,type:void 0,multiple:k,...I?{id:u}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:T,onClose:_,onOpen:R,open:P,renderValue:C,SelectDisplayProps:{id:u,...M}},...y,classes:y?$r(re,y.classes):re,...m?m.props.inputProps:{}},...(k&&I||f)&&q==="outlined"?{notched:!0}:{},ref:V,className:xe(Z.props.className,c,W.root),...!m&&{variant:q},...D})})});ho.muiName="Select";function MN(t){return Ke("MuiTooltip",t)}const Qt=Ve("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function IN(t){return Math.round(t*1e5)/1e5}const AN=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${me(i.split("-")[0])}`],arrow:["arrow"]};return Ye(l,MN,e)},DN=ce(WT,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Qe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Qt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),NN=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${me(r.placement.split("-")[0])}`]]}})(Qe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Dt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Qt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Qt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${IN(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),$N=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Qe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Dt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let vd=!1;const w4=new Pp;let Jl={x:0,y:0};function yd(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const zd=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:l,components:c={},componentsProps:d={},describeChild:f=!1,disableFocusListener:g=!1,disableHoverListener:u=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:x=100,enterNextDelay:w=0,enterTouchDelay:T=700,followCursor:k=!1,id:I,leaveDelay:_=0,leaveTouchDelay:R=1500,onClose:P,onOpen:C,open:M,placement:N="bottom",PopperComponent:D,PopperProps:E={},slotProps:$={},slots:H={},title:q,TransitionComponent:U,TransitionProps:W,...K}=n,re=O.isValidElement(i)?i:L.jsx("span",{children:i}),Z=Ho(),V=ol(),[ee,B]=O.useState(),[J,de]=O.useState(null),pe=O.useRef(!1),ie=m||k,fe=$s(),Se=$s(),Ee=$s(),_e=$s(),[ke,Le]=Gd({controlled:M,default:!1,name:"Tooltip",state:"open"});let Ie=ke;const nt=wa(I),Pe=O.useRef(),Ce=Rn(()=>{Pe.current!==void 0&&(document.body.style.WebkitUserSelect=Pe.current,Pe.current=void 0),_e.clear()});O.useEffect(()=>Ce,[Ce]);const ht=rt=>{w4.clear(),vd=!0,Le(!0),C&&!Ie&&C(rt)},ye=Rn(rt=>{w4.start(800+_,()=>{vd=!1}),Le(!1),P&&Ie&&P(rt),fe.start(Z.transitions.duration.shortest,()=>{pe.current=!1})}),Ae=rt=>{pe.current&&rt.type!=="touchstart"||(ee&&ee.removeAttribute("title"),Se.clear(),Ee.clear(),x||vd&&w?Se.start(vd?w:x,()=>{ht(rt)}):ht(rt))},it=rt=>{Se.clear(),Ee.start(_,()=>{ye(rt)})},[,Je]=O.useState(!1),qe=rt=>{Vs(rt.target)||(Je(!1),it(rt))},ve=rt=>{ee||B(rt.currentTarget),Vs(rt.target)&&(Je(!0),Ae(rt))},at=rt=>{pe.current=!0;const zr=re.props;zr.onTouchStart&&zr.onTouchStart(rt)},Xe=rt=>{at(rt),Ee.clear(),fe.clear(),Ce(),Pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",_e.start(T,()=>{document.body.style.WebkitUserSelect=Pe.current,Ae(rt)})},ne=rt=>{re.props.onTouchEnd&&re.props.onTouchEnd(rt),Ce(),Ee.start(R,()=>{ye(rt)})};O.useEffect(()=>{if(!Ie)return;function rt(zr){zr.key==="Escape"&&ye(zr)}return document.addEventListener("keydown",rt),()=>{document.removeEventListener("keydown",rt)}},[ye,Ie]);const ge=yr(nl(re),B,r);!q&&q!==0&&(Ie=!1);const je=O.useRef(),Fe=rt=>{const zr=re.props;zr.onMouseMove&&zr.onMouseMove(rt),Jl={x:rt.clientX,y:rt.clientY},je.current&&je.current.update()},st={},vt=typeof q=="string";f?(st.title=!Ie&&vt&&!u?q:null,st["aria-describedby"]=Ie?nt:null):(st["aria-label"]=vt?q:null,st["aria-labelledby"]=Ie&&!vt?nt:null);const Be={...st,...K,...re.props,className:xe(K.className,re.props.className),onTouchStart:at,ref:ge,...k?{onMouseMove:Fe}:{}},Bt={};y||(Be.onTouchStart=Xe,Be.onTouchEnd=ne),u||(Be.onMouseOver=yd(Ae,Be.onMouseOver),Be.onMouseLeave=yd(it,Be.onMouseLeave),ie||(Bt.onMouseOver=Ae,Bt.onMouseLeave=it)),g||(Be.onFocus=yd(ve,Be.onFocus),Be.onBlur=yd(qe,Be.onBlur),ie||(Bt.onFocus=ve,Bt.onBlur=qe));const xt={...n,isRtl:V,arrow:o,disableInteractive:ie,placement:N,PopperComponentProp:D,touch:pe.current},be=typeof $.popper=="function"?$.popper(xt):$.popper,lt=O.useMemo(()=>{let rt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return E.popperOptions?.modifiers&&(rt=rt.concat(E.popperOptions.modifiers)),be?.popperOptions?.modifiers&&(rt=rt.concat(be.popperOptions.modifiers)),{...E.popperOptions,...be?.popperOptions,modifiers:rt}},[J,E.popperOptions,be?.popperOptions]),St=AN(xt),ur=typeof $.transition=="function"?$.transition(xt):$.transition,dr={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...H},slotProps:{arrow:$.arrow??d.arrow,popper:{...E,...be??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...W,...ur??d.transition}}},[Br,Co]=ut("popper",{elementType:DN,externalForwardedProps:dr,ownerState:xt,className:xe(St.popper,E?.className)}),[Yn,vn]=ut("transition",{elementType:tp,externalForwardedProps:dr,ownerState:xt}),[Ra,Pa]=ut("tooltip",{elementType:NN,className:St.tooltip,externalForwardedProps:dr,ownerState:xt}),[Ma,Ia]=ut("arrow",{elementType:$N,className:St.arrow,externalForwardedProps:dr,ownerState:xt,ref:de});return L.jsxs(O.Fragment,{children:[O.cloneElement(re,Be),L.jsx(Br,{as:D??WT,placement:N,anchorEl:k?{getBoundingClientRect:()=>({top:Jl.y,left:Jl.x,right:Jl.x,bottom:Jl.y,width:0,height:0})}:ee,popperRef:je,open:ee?Ie:!1,id:nt,transition:!0,...Bt,...Co,popperOptions:lt,children:({TransitionProps:rt})=>L.jsx(Yn,{timeout:Z.transitions.duration.shorter,...rt,...vn,children:L.jsxs(Ra,{...Pa,children:[q,o?L.jsx(Ma,{...Ia}):null]})})})]})});function LN(t){return Ke("MuiTab",t)}const Cn=Ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),FN=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:i,label:l,selected:c,disabled:d}=t,f={root:["root",i&&l&&"labelIcon",`textColor${me(r)}`,n&&"fullWidth",o&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return Ye(f,LN,e)},BN=ce(Ni,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${me(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Cn.iconWrapper}`]:e.iconWrapper},{[`& .${Cn.icon}`]:e.icon}]}})(Qe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Cn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Cn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Cn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Cn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Cn.selected}`]:{opacity:1},[`&.${Cn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Cn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Cn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Cn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Cn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),ls=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:f="top",indicator:g,label:u,onChange:m,onClick:y,onFocus:x,selected:w,selectionFollowsFocus:T,textColor:k="inherit",value:I,wrapped:_=!1,...R}=n,P={...n,disabled:i,disableFocusRipple:l,selected:w,icon:!!d,iconPosition:f,label:!!u,fullWidth:c,textColor:k,wrapped:_},C=FN(P),M=d&&u&&O.isValidElement(d)?O.cloneElement(d,{className:xe(C.icon,d.props.className)}):d,N=E=>{!w&&m&&m(E,I),y&&y(E)},D=E=>{T&&!w&&m&&m(E,I),x&&x(E)};return L.jsxs(BN,{focusRipple:!l,className:xe(C.root,o),ref:r,role:"tab","aria-selected":w,disabled:i,onClick:N,onFocus:D,ownerState:P,tabIndex:w?0:-1,...R,children:[f==="top"||f==="start"?L.jsxs(O.Fragment,{children:[M,u]}):L.jsxs(O.Fragment,{children:[u,M]}),g]})});function zN(t){return Ke("MuiToolbar",t)}Ve("MuiToolbar",["root","gutters","regular","dense"]);const jN=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Ye({root:["root",!r&&"gutters",n]},zN,e)},HN=ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),oE=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:c="regular",...d}=n,f={...n,component:i,disableGutters:l,variant:c},g=jN(f);return L.jsx(HN,{as:i,className:xe(g.root,o),ref:r,ownerState:f,...d})}),qN=He(L.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),WN=He(L.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function UN(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function XN(t,e,r,n={},o=()=>{}){const{ease:i=UN,duration:l=300}=n;let c=null;const d=e[t];let f=!1;const g=()=>{f=!0},u=m=>{if(f){o(new Error("Animation cancelled"));return}c===null&&(c=m);const y=Math.min(1,(m-c)/l);if(e[t]=i(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(u)};return d===r?(o(new Error("Element already at target position")),g):(requestAnimationFrame(u),g)}const VN={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function GN(t){const{onChange:e,...r}=t,n=O.useRef(),o=O.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return en(()=>{const l=Rp(()=>{const d=n.current;i(),d!==n.current&&e(n.current)}),c=Vn(o.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[e]),O.useEffect(()=>{i(),e(n.current)},[e]),L.jsx("div",{style:VN,...r,ref:o})}function KN(t){return Ke("MuiTabScrollButton",t)}const YN=Ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JN=t=>{const{classes:e,orientation:r,disabled:n}=t;return Ye({root:["root",r,n&&"disabled"]},KN,e)},QN=ce(Ni,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${YN.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),ZN=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:l={},direction:c,orientation:d,disabled:f,...g}=n,u=ol(),m={isRtl:u,...n},y=JN(m),x=i.StartScrollButtonIcon??qN,w=i.EndScrollButtonIcon??WN,T=ha({elementType:x,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),k=ha({elementType:w,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return L.jsx(QN,{component:"div",className:xe(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...g,style:{...g.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:c==="left"?L.jsx(x,{...T}):L.jsx(w,{...k})})});function e$(t){return Ke("MuiTabs",t)}const cm=Ve("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),x4=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,S4=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,bd=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=r(t,o);else{o.focus();return}}},t$=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:l,scrollButtonsHideMobile:c,classes:d}=t;return Ye({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},e$,d)},r$=ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${cm.scrollButtons}`]:e.scrollButtons},{[`& .${cm.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Qe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${cm.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),n$=ce("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),o$=ce("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),i$=ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Qe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),a$=ce(GN)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),T4={},s$=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTabs"}),o=Ho(),i=ol(),{"aria-label":l,"aria-labelledby":c,action:d,centered:f=!1,children:g,className:u,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:x="primary",onChange:w,orientation:T="horizontal",ScrollButtonComponent:k,scrollButtons:I="auto",selectionFollowsFocus:_,slots:R={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:M={},textColor:N="primary",value:D,variant:E="standard",visibleScrollbar:$=!1,...H}=n,q=E==="scrollable",U=T==="vertical",W=U?"scrollTop":"scrollLeft",K=U?"top":"left",re=U?"bottom":"right",Z=U?"clientHeight":"clientWidth",V=U?"height":"width",ee={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:x,orientation:T,vertical:U,scrollButtons:I,textColor:N,variant:E,visibleScrollbar:$,fixed:!q,hideScrollbar:q&&!$,scrollableX:q&&!U,scrollableY:q&&U,centered:f&&!q,scrollButtonsHideMobile:!y},B=t$(ee),J=ha({elementType:R.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:ee}),de=ha({elementType:R.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:ee}),[pe,ie]=O.useState(!1),[fe,Se]=O.useState(T4),[Ee,_e]=O.useState(!1),[ke,Le]=O.useState(!1),[Ie,nt]=O.useState(!1),[Pe,Ce]=O.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ye=O.useRef(null),Ae=O.useRef(null),it={slots:R,slotProps:{indicator:C,scrollButton:M,...P}},Je=()=>{const Oe=ye.current;let ze;if(Oe){const ft=Oe.getBoundingClientRect();ze={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollWidth:Oe.scrollWidth,top:ft.top,bottom:ft.bottom,left:ft.left,right:ft.right}}let yt;if(Oe&&D!==!1){const ft=Ae.current.children;if(ft.length>0){const Gt=ft[ht.get(D)];yt=Gt?Gt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:yt}},qe=Rn(()=>{const{tabsMeta:Oe,tabMeta:ze}=Je();let yt=0,ft;U?(ft="top",ze&&Oe&&(yt=ze.top-Oe.top+Oe.scrollTop)):(ft=i?"right":"left",ze&&Oe&&(yt=(i?-1:1)*(ze[ft]-Oe[ft]+Oe.scrollLeft)));const Gt={[ft]:yt,[V]:ze?ze[V]:0};if(typeof fe[ft]!="number"||typeof fe[V]!="number")Se(Gt);else{const Cr=Math.abs(fe[ft]-Gt[ft]),yn=Math.abs(fe[V]-Gt[V]);(Cr>=1||yn>=1)&&Se(Gt)}}),ve=(Oe,{animation:ze=!0}={})=>{ze?XN(W,ye.current,Oe,{duration:o.transitions.duration.standard}):ye.current[W]=Oe},at=Oe=>{let ze=ye.current[W];U?ze+=Oe:ze+=Oe*(i?-1:1),ve(ze)},Xe=()=>{const Oe=ye.current[Z];let ze=0;const yt=Array.from(Ae.current.children);for(let ft=0;ftOe){ft===0&&(ze=Oe);break}ze+=Gt[Z]}return ze},ne=()=>{at(-1*Xe())},ge=()=>{at(Xe())},[je,{onChange:Fe,...st}]=ut("scrollbar",{className:xe(B.scrollableX,B.hideScrollbar),elementType:a$,shouldForwardComponentProp:!0,externalForwardedProps:it,ownerState:ee}),vt=O.useCallback(Oe=>{Fe?.(Oe),Ce({overflow:null,scrollbarWidth:Oe})},[Fe]),[Be,Bt]=ut("scrollButtons",{className:xe(B.scrollButtons,M.className),elementType:ZN,externalForwardedProps:it,ownerState:ee,additionalProps:{orientation:T,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:J,endScrollButtonIcon:de}}}),xt=()=>{const Oe={};Oe.scrollbarSizeListener=q?L.jsx(je,{...st,onChange:vt}):null;const yt=q&&(I==="auto"&&(Ee||ke)||I===!0);return Oe.scrollButtonStart=yt?L.jsx(Be,{direction:i?"right":"left",onClick:ne,disabled:!Ee,...Bt}):null,Oe.scrollButtonEnd=yt?L.jsx(Be,{direction:i?"left":"right",onClick:ge,disabled:!ke,...Bt}):null,Oe},be=Rn(Oe=>{const{tabsMeta:ze,tabMeta:yt}=Je();if(!(!yt||!ze)){if(yt[K]ze[re]){const ft=ze[W]+(yt[re]-ze[re]);ve(ft,{animation:Oe})}}}),lt=Rn(()=>{q&&I!==!1&&nt(!Ie)});O.useEffect(()=>{const Oe=Rp(()=>{ye.current&&qe()});let ze;const yt=Cr=>{Cr.forEach(yn=>{yn.removedNodes.forEach(Jn=>{ze?.unobserve(Jn)}),yn.addedNodes.forEach(Jn=>{ze?.observe(Jn)})}),Oe(),lt()},ft=Vn(ye.current);ft.addEventListener("resize",Oe);let Gt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(Oe),Array.from(Ae.current.children).forEach(Cr=>{ze.observe(Cr)})),typeof MutationObserver<"u"&&(Gt=new MutationObserver(yt),Gt.observe(Ae.current,{childList:!0})),()=>{Oe.clear(),ft.removeEventListener("resize",Oe),Gt?.disconnect(),ze?.disconnect()}},[qe,lt]),O.useEffect(()=>{const Oe=Array.from(Ae.current.children),ze=Oe.length;if(typeof IntersectionObserver<"u"&&ze>0&&q&&I!==!1){const yt=Oe[0],ft=Oe[ze-1],Gt={root:ye.current,threshold:.99},Cr=ul=>{_e(!ul[0].isIntersecting)},yn=new IntersectionObserver(Cr,Gt);yn.observe(yt);const Jn=ul=>{Le(!ul[0].isIntersecting)},Aa=new IntersectionObserver(Jn,Gt);return Aa.observe(ft),()=>{yn.disconnect(),Aa.disconnect()}}},[q,I,Ie,g?.length]),O.useEffect(()=>{ie(!0)},[]),O.useEffect(()=>{qe()}),O.useEffect(()=>{be(T4!==fe)},[be,fe]),O.useImperativeHandle(d,()=>({updateIndicator:qe,updateScrollButtons:lt}),[qe,lt]);const[St,ur]=ut("indicator",{className:xe(B.indicator,C.className),elementType:i$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:fe}}),dr=L.jsx(St,{...ur});let Br=0;const Co=O.Children.map(g,Oe=>{if(!O.isValidElement(Oe))return null;const ze=Oe.props.value===void 0?Br:Oe.props.value;ht.set(ze,Br);const yt=ze===D;return Br+=1,O.cloneElement(Oe,{fullWidth:E==="fullWidth",indicator:yt&&!pe&&dr,selected:yt,selectionFollowsFocus:_,onChange:w,textColor:N,value:ze,...Br===1&&D===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}})}),Yn=Oe=>{if(Oe.altKey||Oe.shiftKey||Oe.ctrlKey||Oe.metaKey)return;const ze=Ae.current,yt=tn(ze).activeElement;if(yt.getAttribute("role")!=="tab")return;let Gt=T==="horizontal"?"ArrowLeft":"ArrowUp",Cr=T==="horizontal"?"ArrowRight":"ArrowDown";switch(T==="horizontal"&&i&&(Gt="ArrowRight",Cr="ArrowLeft"),Oe.key){case Gt:Oe.preventDefault(),bd(ze,yt,S4);break;case Cr:Oe.preventDefault(),bd(ze,yt,x4);break;case"Home":Oe.preventDefault(),bd(ze,null,x4);break;case"End":Oe.preventDefault(),bd(ze,null,S4);break}},vn=xt(),[Ra,Pa]=ut("root",{ref:r,className:xe(B.root,u),elementType:r$,externalForwardedProps:{...it,...H,component:m},ownerState:ee}),[Ma,Ia]=ut("scroller",{ref:ye,className:B.scroller,elementType:n$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:{overflow:Pe.overflow,[U?`margin${i?"Left":"Right"}`:"marginBottom"]:$?void 0:-Pe.scrollbarWidth}}}),[rt,zr]=ut("list",{ref:Ae,className:xe(B.list,B.flexContainer),elementType:o$,externalForwardedProps:it,ownerState:ee,getSlotProps:Oe=>({...Oe,onKeyDown:ze=>{Yn(ze),Oe.onKeyDown?.(ze)}})});return L.jsxs(Ra,{...Pa,children:[vn.scrollButtonStart,vn.scrollbarSizeListener,L.jsxs(Ma,{...Ia,children:[L.jsx(rt,{"aria-label":l,"aria-labelledby":c,"aria-orientation":T==="vertical"?"vertical":null,role:"tablist",...zr,children:Co}),pe&&dr]}),vn.scrollButtonEnd]})});function l$(t){return Ke("MuiTextField",t)}Ve("MuiTextField",["root"]);const c$={standard:uo,filled:oy,outlined:sy},u$=t=>{const{classes:e}=t;return Ye({root:["root"]},l$,e)},d$=ce(ys,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),vr=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:c,color:d="primary",defaultValue:f,disabled:g=!1,error:u=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:x,id:w,InputLabelProps:T,inputProps:k,InputProps:I,inputRef:_,label:R,maxRows:P,minRows:C,multiline:M=!1,name:N,onBlur:D,onChange:E,onFocus:$,placeholder:H,required:q=!1,rows:U,select:W=!1,SelectProps:K,slots:re={},slotProps:Z={},type:V,value:ee,variant:B="outlined",...J}=n,de={...n,autoFocus:i,color:d,disabled:g,error:u,fullWidth:y,multiline:M,required:q,select:W,variant:B},pe=u$(de),ie=wa(w),fe=x&&ie?`${ie}-helper-text`:void 0,Se=R&&ie?`${ie}-label`:void 0,Ee=c$[B],_e={slots:re,slotProps:{input:I,inputLabel:T,htmlInput:k,formHelperText:m,select:K,...Z}},ke={},Le=_e.slotProps.inputLabel;B==="outlined"&&(Le&&typeof Le.shrink<"u"&&(ke.notched=Le.shrink),ke.label=R),W&&((!K||!K.native)&&(ke.id=void 0),ke["aria-describedby"]=void 0);const[Ie,nt]=ut("root",{elementType:d$,shouldForwardComponentProp:!0,externalForwardedProps:{..._e,...J},ownerState:de,className:xe(pe.root,c),ref:r,additionalProps:{disabled:g,error:u,fullWidth:y,required:q,color:d,variant:B}}),[Pe,Ce]=ut("input",{elementType:Ee,externalForwardedProps:_e,additionalProps:ke,ownerState:de}),[ht,ye]=ut("inputLabel",{elementType:Bd,externalForwardedProps:_e,ownerState:de}),[Ae,it]=ut("htmlInput",{elementType:"input",externalForwardedProps:_e,ownerState:de}),[Je,qe]=ut("formHelperText",{elementType:VA,externalForwardedProps:_e,ownerState:de}),[ve,at]=ut("select",{elementType:ho,externalForwardedProps:_e,ownerState:de}),Xe=L.jsx(Pe,{"aria-describedby":fe,autoComplete:o,autoFocus:i,defaultValue:f,fullWidth:y,multiline:M,name:N,rows:U,maxRows:P,minRows:C,type:V,value:ee,id:ie,inputRef:_,onBlur:D,onChange:E,onFocus:$,placeholder:H,inputProps:it,slots:{input:re.htmlInput?Ae:void 0},...Ce});return L.jsxs(Ie,{...nt,children:[R!=null&&R!==""&&L.jsx(ht,{htmlFor:ie,id:Se,...ye,children:R}),W?L.jsx(ve,{"aria-describedby":fe,id:ie,labelId:Se,value:ee,input:Xe,...at,children:l}):Xe,x&&L.jsx(Je,{id:fe,...qe,children:x})]})}),p$=He(L.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),f$=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),h$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),m$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),g$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),v$=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),cy=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),y$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),b$=He(L.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Bp=He(L.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Fi=He(L.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),ga=He(L.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uy=He(L.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),w$=He(L.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),x$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),jd=He(L.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),iE=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),S$=He(L.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),T$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),E$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),C$=He(L.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),k$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),_$=He(L.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),O$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),aE=He(L.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),R$=He(L.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),P$=He(L.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),M$=He(L.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),I$=He(L.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),A$=He(L.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),E4=He(L.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),D$=He(L.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),N$=He(L.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),iv=He(L.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),$$=He(L.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),L$=He(L.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),F$=He(L.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),B$=He(L.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),z$=He(L.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),j$=He(L.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),H$=He(L.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),q$=He(L.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),sE=He(L.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),W$=He(L.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),um=11/23/100;function C4(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substring(1,3),16),e.g=parseInt(t.substring(3,5),16),e.b=parseInt(t.substring(5,7),16);else if(t.length===4){const r=t[1],n=t[2],o=t[3];e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function U$(t){return`#${Math.round(t.r).toString(16).padStart(2,"0")}${Math.round(t.g).toString(16).padStart(2,"0")}${Math.round(t.b).toString(16).padStart(2,"0")}`}function X$(t,e,r){const n=C4(t),o=C4(e);return n.r+=o.r*(.05+um*(r-1)),n.g+=o.g*(.05+um*(r-1)),n.b+=o.b*(.05+um*(r-1)),U$(n)}function wd(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:X$(t,e,n)};return r}function V$(t,e){let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[200],"&:hover":{color:Tr[100]}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[200],"&:hover":{color:Tr[100]}}},MuiPaper:wd("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="NW"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#00af78"},secondary:{main:"#005a40"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="HA"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:"#db0a33","&:hover":{color:"#FF0a33"}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#970720"},secondary:{main:"#db0a33"},expert:"#db0a33",nonAck:"#ffe96a",text:{primary:"#ffffff",secondary:"#ffffff"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:r.palette?.primary?.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:z1[300],dark:z1[400]});const o=Ic(r),i=o.palette;return Ic(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:i.grey?.[300],color:i.getContrastText&&i.grey?.[300]?i.getContrastText(i.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:i.text?.primary,borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${i.action?.disabledBackground}`},"&:hover":{borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Dt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}},{props:{variant:"text",color:"grey"},style:{color:i.text?.primary,"&:hover":{backgroundColor:Dt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}}]}}})}function G$(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function K$(t){return t?.rows.map(e=>e.value).filter(e=>!!e)??[]}function k4(t){return t?.startsWith("system.host.")||(t=`system.host.${t}`),t}function _4(t){return new Promise(e=>{setTimeout(e,t)})}function xd(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}typeof globalThis.process<"u"&&(globalThis.location||={href:"http://localhost:8081/",protocol:"http:",host:"localhost:8081",pathname:"/",hostname:"localhost",reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(t,e)=>{globalThis.localStorage._keys[t]=e},getItem:t=>t in globalThis.localStorage._keys?globalThis.localStorage._keys[t]:null,removeItem:t=>{t in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[t]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:"en"});var xi;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(xi||(xi={}));var Ei;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ei||(Ei={}));Ei.PERMISSION_ERROR;Ei.NOT_CONNECTED;const Y$=["material","echarts","vis"];class Ir{props;connId;lastAccessToken=null;ignoreState="";connected=!1;subscribed=!1;firstConnect=!0;waitForRestart=!1;loaded=!1;simStates={};objectViewCached;constructor(e){this.props=this.applyDefaultProps(e),this.connId=`${this.props.name?`${this.props.name}-`:""}${Math.round(Math.random()*1e6).toString().padStart(6,"0")}`,this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||globalThis.location.protocol,host:e.host||globalThis.location.hostname,port:e.port||(globalThis.location.port==="3000"?8081:globalThis.location.port),ioTimeout:Math.max(e.ioTimeout||2e4,2e4),cmdTimeout:Math.max(e.cmdTimeout||5e3,5e3),admin5only:e.admin5only||!1,autoSubscribes:e.autoSubscribes??[],autoSubscribeLog:e.autoSubscribeLog??!1,doNotLoadACL:e.doNotLoadACL??!0,doNotLoadAllObjects:e.doNotLoadAllObjects??!0}}statesSubscribes={};filesSubscribes={};objectsSubscribes={};objects={};states={};acl=null;isSecure=!1;onReadyDone=!1;onConnectionHandlers=[];onLogHandlers=[];onCmdStdoutHandler;onCmdStderrHandler;onCmdExitHandler;onError(e){(this.props.onError??console.error)(e)}_socket;_waitForSocketPromise;_waitForFirstConnectionPromise=G$();_instanceSubscriptions={};_promises={};_authTimer=null;_refreshTimer=null;_systemConfig;get systemConfig(){return this._systemConfig}systemLang="en";static isWeb(){return globalThis.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(this.props.connect){e();return}if(typeof globalThis.io>"u"&&typeof globalThis.iob>"u")if(typeof globalThis.registerSocketOnLoad=="function")globalThis.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(globalThis.io||globalThis.iob)return e();await _4(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||globalThis.location.protocol).replace(":",""),o=globalThis.location.pathname;if(globalThis.location.hostname==="iobroker.net"||globalThis.location.hostname==="iobroker.pro")o="";else{if(globalThis.socketUrl){const d=new globalThis.URL(globalThis.socketUrl);e=d.hostname,r=d.port,n=d.protocol.replace(":","")}const c=o.lastIndexOf("/");if(c!==-1&&(o=o.substring(0,c+1)),Ir.isWeb()){const d=o.split("/");d.length>2&&(d.pop(),d.pop(),Y$.includes(d[d.length-1])&&d.pop(),o=d.join("/"),o.endsWith("/")||(o+="/"))}}const i=r?`${n}://${e}:${r}`:`${n}://${e}`,l=this.props.connect||(globalThis.io||globalThis.iob).connect;return this._socket=l(i,{path:o.endsWith("/")?`${o}socket.io`:`${o}/socket.io`,query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on("connect",c=>{globalThis.addEventListener?.("storage",this.onAccessTokenUpdated);const d=Ir.readTokens();if(d&&!d.owner){const f=Date.now();this.saveTokens({access_token:d.access_token,refresh_token:d.refresh_token,expires_in:Math.round((d.expires_in.getTime()-f)/1e3),refresh_token_expires_in:Math.round((d.refresh_token_expires_in.getTime()-f)/1e3),token_type:"Bearer"},d.stayLoggedIn)}this.onReadyDone=!1,c!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(f=>{const[g,u,m]=f.version.split(".");parseInt(g,10)*1e4+parseInt(u,10)*100+parseInt(m,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(x,w)=>this.onPreConnect(x,w))}).catch(f=>this.onError({message:f.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(f,g)=>{this.onPreConnect(f,g)})}),this._socket.on("reconnect",()=>{this.onReadyDone=!1,this.props.onProgress?.(xi.READY),this.connected=!0,this.waitForRestart?globalThis.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(c=>c(!0)))}),this._socket.on("disconnect",()=>{this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,this.props.onProgress?.(xi.CONNECTING),this.onConnectionHandlers.forEach(c=>c(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",c=>{this.props.onLog?.(c),this.onLogHandlers.forEach(d=>d(c))}),this._socket.on("error",c=>{let d;c==null?d="":typeof c.toString=="function"?d=c.toString():(d=JSON.stringify(c),console.error(`Received strange error: ${d}`)),d.includes("User not authorized")?this.authenticate():d.includes("websocket error")?(console.error(`Socket Error => reload: ${c}`),globalThis.location.reload()):console.error(`Socket Error: ${c}`)}),this._socket.on("connect_error",c=>console.error(`Connect error: ${c}`)),this._socket.on("permissionError",c=>this.onError({message:"no permission",operation:c.operation,type:c.type,id:c.id||""})),this._socket.on("objectChange",(c,d)=>{setTimeout(()=>this.objectChange(c,d),0)}),this._socket.on("stateChange",(c,d)=>{setTimeout(()=>this.stateChange(c,d),0)}),this._socket.on("im",(c,d,f)=>{setTimeout(()=>this.instanceMessage(c,d,f),0)}),this._socket.on("fileChange",(c,d,f)=>{setTimeout(()=>this.fileChange(c,d,f),0)}),this._socket.on("cmdStdout",(c,d)=>{this.onCmdStdoutHandler?.(c,d)}),this._socket.on("cmdStderr",(c,d)=>{this.onCmdStderrHandler?.(c,d)}),this._socket.on("cmdExit",(c,d)=>{this.onCmdExitHandler?.(c,d)}),Promise.resolve()}onPreConnect(e,r){this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?globalThis.location.reload():(this.firstConnect?this.loadData().catch(n=>{console.error(`Cannot load data: ${n}`)}):this.props.onProgress?.(xi.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(n=>n(!0)),this.checkAccessTokenExpire()),this._waitForFirstConnectionPromise.resolve()}static readTokens(){let e=globalThis.sessionStorage.getItem("iob_tokens");const r=!e;if(e||(e=globalThis.localStorage.getItem("iob_tokens")),!e)return null;const[n,o,i,l,c]=e.split(";"),d=new Date(o);return d.getTime(){if(e.key==="iob_tokens"){const r=Ir.readTokens();r&&(console.log(`Tab ${this.connId} received updated token: ${r.access_token}`),this.updateTokenExpiration(r.access_token))}};updateTokenExpiration(e){this.lastAccessToken!==e&&(this.lastAccessToken=e,this._socket.emit("updateTokenExpiration",e,(r,n)=>{r?(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token: ${r}`),globalThis.location.reload()):n?console.log(`[UPDATE/${new Date().toISOString()}] server accepted new token: ${e}`):(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token`),globalThis.location.reload())})),this.checkAccessTokenExpire()}refreshTokens(e,r){if(!e){console.log(`[REFRESH/${new Date().toISOString()}] No token structure found => reloading the page`),setTimeout(()=>globalThis.location.reload(),500);return}r||!e.owner||e.owner===this.connId?(console.log(`[REFRESH/${new Date().toISOString()}] claim ownership of the token`),this.acquireTokenLock()?(console.log(`[REFRESH/${new Date().toISOString()}] refreshing token`),fetch("./oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&refresh_token=${e.refresh_token}&client_id=ioBroker&stayloggedin=${e.stayLoggedIn}`}).then(n=>{if(n.ok)return n.json();throw new Error("Cannot refresh access token")}).then(n=>{if(n.access_token)console.log(`[REFRESH/${new Date().toISOString()}] received new token: ${n.access_token}`),this.saveTokens(n,e.stayLoggedIn),this.releaseTokenLock(),this.updateTokenExpiration(n.access_token);else throw new Error("Cannot get access token")}).catch(n=>{console.warn(`[REFRESH/${new Date().toISOString()}] cannot refresh token: ${n}`),this.releaseTokenLock(),this.deleteTokens(e.stayLoggedIn),console.error(n),globalThis.location.reload()})):(console.log(`[REFRESH/${new Date().toISOString()}] Someone else is updating the token, so wait for the next check`),this.checkAccessTokenExpire())):this.lastAccessToken!==e.access_token&&this.updateTokenExpiration(e.access_token)}acquireTokenLock(){const e=Date.now(),r=globalThis.localStorage.getItem("iob_token_semaphore");if(r)try{const o=JSON.parse(r);if(e{o?(console.log(`[TOKEN/${new Date().toISOString()}] Token will be prolonged`),this.refreshTokens(e,n)):(console.log(`[TOKEN/${new Date().toISOString()}] Token will not be prolonged. Reloading the page`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))})):(console.log(`[TOKEN/${new Date().toISOString()}] No tokenTimeoutHandler defined. Prolonging the token`),this.refreshTokens(e,n))):this.lastAccessToken!==e.access_token?(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token, but we will inform the server about new token`),this.refreshTokens(e)):(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token and the token did not change. Check in 3 seconds if the owner updated the token`),this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},3e3)):(console.log(`[TOKEN/${new Date().toISOString()}] We do not have a refresh token, so we need to reauthenticate`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))}else this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},r-Date.now()-3e4>12e4?12e4:r-Date.now()-3e4)}}}static isCloud(){return globalThis.location.hostname.includes("amazonaws.com")||globalThis.location.hostname.includes("iobroker.in")?!0:typeof globalThis.socketUrl>"u"?!1:globalThis.socketUrl.includes("iobroker.in")||globalThis.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o||null)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await _4(Ir.isCloud()?5e3:1e3)}}async doLoadData(){if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(e){this.onError(`Cannot read user permissions: ${e}`);return}try{this.props.admin5only&&!Ir.isWeb()&&(!globalThis.vendorPrefix||globalThis.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(e){this.onError(`Cannot read system config: ${e}`);return}this._systemConfig&&(this.systemLang=this._systemConfig.common?.language,this.systemLang||(this.systemLang=globalThis.navigator.userLanguage||globalThis.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang="en"),this._systemConfig.common.language=this.systemLang)),this.props.onLanguage?.(this.systemLang),this.loaded=!0,this.props.onProgress?.(xi.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),this.props.onProgress?.(xi.READY),this.onReadyDone||(this.onReadyDone=!0,this.props.onReady?.(this.objects))}}authenticate(){globalThis.location.search.includes("&href=")?globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}${globalThis.location.search}`:globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}?login&href=${encodeURIComponent(globalThis.location.search+globalThis.location.hash)}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let i;if(Array.isArray(r)?i=r:i=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const l=[];for(let c=0;cc.includes("*"))){let c;for(let d=0;dconsole.error(`Cannot call state change handler: ${m}`))}}}else try{const c=await(Ir.isWeb()?this.getStates(i):this.getForeignStates(i));if(c)for(const[d,f]of Object.entries(c)){const g=o(d,f);g instanceof Promise&&g.catch(u=>console.error(`Cannot call state change handler: ${u}`))}}catch(c){console.error(`Cannot getState "${i.join(", ")}": ${c.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const d=c(e,r,n);d instanceof Promise&&d.catch(f=>console.error(`Cannot call object change handler: ${f}`))}catch(d){console.error(`Error by callback of objectChange: ${d}`)}});if(o){const i=this.props.onObjectChange?.(e,r);i instanceof Promise&&i.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const i=o(e,r??null);i instanceof Promise&&i.catch(l=>console.error(`Cannot call state change handler: ${l}`))}catch(i){console.error(`Error by callback of stateChanged: ${i}`)}}instanceMessage(e,r,n){this._instanceSubscriptions[r]?.forEach(o=>{if(o.messageType===e){const i=o.callback(n,r,e);i instanceof Promise&&i.catch(l=>console.error(`Cannot call instance message handler: ${l}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const i of o.cbs)try{i(e,r,n)}catch(l){console.error(`Error by callback of fileChange: ${l}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const i=[];for(let l=0;l{const u={elapsed:!1,clearTimeout:()=>{}};let m;n!==!1&&(m=setTimeout(()=>{u.elapsed=!0,o?.(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],g(new Error(Ei.TIMEOUT))},n??this.props.cmdTimeout),u.clearTimeout=()=>{clearTimeout(m)});try{await c(f,g,u)}catch(y){e&&this._promises[e]instanceof Promise&&delete this._promises[e],g(new Error(y.toString()))}});return e&&(this._promises[e]=d),d}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,i)=>{this.states=i??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,i)=>{o?n(o):r(i)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,i)=>{o?n(o):r(i)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,i=>{i?o(i):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,i)=>{if(e&&e===this.ignoreState){let l;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?l=r:l={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=l,this.statesSubscribes[e])for(const c of this.statesSubscribes[e].cbs)try{const d=c(e,l);d instanceof Promise&&d.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(d){console.error(`Error by callback of stateChanged: ${d}`)}o();return}this._socket.emit("setState",e,r,l=>{l?i(l):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Ir.isWeb()?"getObjects":"getAllObjects",(i,l)=>{r||this.props.onProgress?.(xi.OBJECTS_LOADED),i?o(i):(this.objects=l??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,i)=>{o?n(o):r(i)})}})}_subscribe(e){if(e&&!this.subscribed){this.subscribed=!0,this.props.autoSubscribes?.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("subscribeObjects",r),Object.keys(this.objectsSubscribes).forEach(n=>this._socket.emit("subscribeObjects",n)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("subscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,i]=n.split("$%$");this._socket.emit("subscribeFiles",o,i)})}else if(!e&&this.subscribed){this.subscribed=!1,this.props.autoSubscribes?.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("unsubscribeObjects",r),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("unsubscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,i]=n.split("$%$");this._socket.emit("unsubscribeFiles",o,i)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},i=>{i?o(i):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},i=>{i?o(i):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,i=>{i?o(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,i)=>{o?n(o):r(i)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,i=>{o(i)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,i=>{i?o(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,1)}registerCmdStdoutHandler(e){this.onCmdStdoutHandler=e}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(e){this.onCmdStderrHandler=e}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(e){this.onCmdExitHandler=e}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(e,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(i,l)=>{if(i)o(i);else{const c={};if(l)for(let d=0;d{n||="",o||="香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(c,d)=>{if(c)l(c);else{const f={};if(d&&d.rows)for(let g=0;g{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{n?r(n):e(o.rows?.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(i,l)=>{i?o(i):n(l)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(l,c,d)=>{l?i(l):o({file:c,mimeType:d})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,l=>{l?i(l):o()});else{const l=btoa(new Uint8Array(n).reduce((c,d)=>c+String.fromCharCode(d),""));this._socket.emit("writeFile64",e,r,l,c=>{c?i(c):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,i=>{i?o(i):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,i=>{i?o(i):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("rename",e,r,n,l=>{l?i(l):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("renameFile",e,r,n,l=>{l?i(l):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(i,l,c)=>{e=k4(e),this._socket.emit("cmdExec",e,n,r,d=>{c.elapsed||(c.clearTimeout(),d?l(d):i())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??={},n.common??={},n.native??={},r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,i)=>{o?n(o):(i??={},i.common??={},i.native??={},r(i))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,i)=>{o?n(o):r(i??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(i,l)=>{i?o(i):n(l)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(i,l)=>{i?o(i):n(l)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(i,l,c,d)=>{i?o(i):n({values:l,sessionId:d,step:c})})}})}getIpAddresses(e,r){return e=k4(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n(o?.common.address??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,i,l)=>{o&&!i&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:i,serverName:l})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(i,l)=>{i?o(i):n(!!l)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{const r=await this.getObject("system.meta.uuid");e(r?.native?.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(i,l)=>{i?o(i):n(l)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",i=`${o}香`,l=await this.getObjectViewSystem("instance",o,i),c=Object.values(l);n(e?c.filter(d=>d.common.name===e):c)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),i=Object.values(o);n(e?i.filter(l=>l.common.name===e):i)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,i)=>{o?n(o):r(K$(i))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(i,l)=>{this._socket.emit("clientSubscribe",e,r,n,(c,d)=>{c?l(c):d&&(d.error?l(d.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),i(d)))})}})}unsubscribeFromInstance(e,r,n){e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const i=[];do{o=!1;const l=this._instanceSubscriptions[e]?.findIndex(c=>(!r||c.messageType===r)&&(!n||c.callback===n));if(l!=null&&l!==-1){o=!0;const c=this._instanceSubscriptions[e][l].messageType;this._instanceSubscriptions[e].splice(l,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(f=>f.messageType===c)||i.push(this.request({commandTimeout:!1,executor:(f,g)=>{this._socket.emit("clientUnsubscribe",e,r,(u,m)=>u?g(u):f(m))}}))}}while(o&&(!n||!r));return i.length?Promise.all(i).then(l=>!!l.find(c=>c)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}destroy(){if(this._socket){const e=this._socket;try{typeof e.destroy=="function"?e.destroy():typeof e.close=="function"&&e.close(!0)}catch{}}globalThis.removeEventListener?.("storage",this.onAccessTokenUpdated),this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this._refreshTimer&&(clearTimeout(this._refreshTimer),this._refreshTimer=null),this.onConnectionHandlers.length=0,this.onLogHandlers.length=0;for(const e of Object.keys(this.statesSubscribes))delete this.statesSubscribes[e];for(const e of Object.keys(this.objectsSubscribes))delete this.objectsSubscribes[e];for(const e of Object.keys(this.filesSubscribes))delete this.filesSubscribes[e];this._instanceSubscriptions={},this.connected=!1,this.onReadyDone=!1}}function J$(){const t=document.getSelection();if(!t?.rangeCount)return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const O4={"text/plain":"Text","text/html":"Url",default:"Text"},Q$="Copy to clipboard: #{key}, Enter";function Z$(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function eL(t,e){let r,n,o,i,l=!1;e=e||{};const c=e.debug||!1;try{if(r=J$(),n=document.createRange(),o=document.getSelection(),i=document.createElement("span"),i.textContent=t,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top="0px",i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.userSelect="text",i.addEventListener("copy",f=>{if(f.stopPropagation(),e?.format)if(f.preventDefault(),typeof f.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData?.clearData();const g=O4[e.format]||O4.default;window.clipboardData?.setData(g,t)}else f.clipboardData?.clearData(),f.clipboardData?.setData(e.format,t)}),document.body.appendChild(i),n.selectNodeContents(i),o?.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){c&&console.error("unable to copy using execCommand: ",d),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),l=!0}catch(f){c&&console.error("unable to copy using clipboardData: ",f),c&&console.error("falling back to prompt");const g=Z$("message"in e?e.message||"":Q$);window.prompt(g,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),i&&document.body.removeChild(i),r&&r()}return l}class z{static translations={};static unknownTranslations=[];static lang=window.sysLang||"en";static _disableWarning=!1;static setLanguage(e){e&&(z.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(i=>{const l=i,c={},d=n[l];Object.keys(d).forEach(f=>{f&&d&&(f.startsWith(o)?c[f]=d[f]:c[`${o}${f}`]=d[f])}),e[l]=c})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;z.translations[o]||={},Object.assign(z.translations[o],e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(i=>{const l=i,c=z.translations[l];c?c[n]?c[n]!==o[l]&&console.warn(`Translation for word "${n}" in "${l}" was ignored: existing = "${c[n]}", new = ${o[l]}`):c[n]=o[l]:console.warn(`Used unknown language: ${l}`)})});else{z.translations[r]||console.warn(`Used unknown language: ${r}`),z.translations[r]||={};const n=z.translations[r];Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(z.translations=e)}static getLanguage(){return z.lang}static t(e,...r){const n=z.translations[z.lang];if(n){const o=n[e];if(o)e=o;else if(z.unknownTranslations.includes(e)||(z.unknownTranslations.push(e),!z._disableWarning&&console.log(`Translate: ${e}`)),z.lang!=="en"&&z.translations.en){const i=z.translations.en[e];i&&(e=i)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(z.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):e&&typeof e=="object"&&(z.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(z.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){z._disableWarning=!!e}}window.i18nShow=z.i18nShow;window.i18nDisableWarning=z.disableWarning;const io="material",tL=["Su","Mo","Tu","We","Th","Fr","Sa"],rL=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dm={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},R4={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"};class Ge{static namespace=io;static INSTANCES="instances";static dateFormat=["DD","MM"];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const i=Math.floor(e).toString().padStart(2,"0");let l="";return r&&(l+=`${r} ${z.t("ra_daysShortText")} `),l+=`${n}:${o}:${i}`,l}static getObjectName(e,r,n,o,i){const l=e[r];let c;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n?.name){const d=n.name;typeof d=="object"?c=o.language&&d[o.language]||d.en:c=d}else if(i&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!i&&l?.common){const d=l.common.name||l.common.desc;d&&typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else{const d=r.lastIndexOf(".");c=r.substring(d+1).replace(/[_.]/g," "),c=Ge.CapitalWords(c)}return c?.trim()||""}static getObjectNameFromObj(e,r,n,o,i){const l=e;let c=e?._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r?.name){const d=r.name;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d}else if(o&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!o&&l?.common?.name){let d=l.common.name;!d&&l.common.desc&&(d=l.common.desc),typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}return i?c:c.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[io];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subOrder&&i[l].subOrder[r])return JSON.parse(JSON.stringify(i[l].subOrder[r]))}else if(i[l].order)return JSON.parse(JSON.stringify(i[l].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[io];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subURLs&&i[l].subURLs[r])return JSON.parse(JSON.stringify(i[l].subURLs[r]))}else if(i[l].URLs)return JSON.parse(JSON.stringify(i[l].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[i]=o.splice(r,1);return o.splice(n,0,i),o}static getSettings(e,r,n){let o;const i=e?._id||r?.id;let l;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?l=e.common:l=e,l?.custom?(o=l.custom,o=o[io]&&o[io][r.user||"admin"]?JSON.parse(JSON.stringify(o[io][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),l&&(!o.color&&l.color&&(o.color=l.color),!o.icon&&l.icon&&(o.icon=l.icon),!o.name&&l.name&&(o.name=l.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&i){const c=i.lastIndexOf(".");o.name=i.substring(c+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=Ge.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[io]=e.common.custom[io]||{},e.common.custom[io][n.user||"admin"]=r;const o=e.common.custom[io][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e?.icon?e.icon.length<=2?v.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?v.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):v.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){if(typeof e=="object"&&(r=e,e=r?._id),r?.common?.icon){let n=r.common.icon;if(typeof n=="string"&&n.length<=2||n.startsWith("data:image"))return n;const o=e.split(".");return o[0]==="system"?n=`adapter/${o[2]}${n.startsWith("/")?"":"/"}${n}`:n=`adapter/${o[0]}${n.startsWith("/")?"":"/"}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?n=`../../${n}`:window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(e){return e?Ge.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,i;const l=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(l&&l.length===4)n=parseInt(l[1],10),o=parseInt(l[2],10),i=parseInt(l[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16)}return n*.299+o*.587+i*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}static getWindDirection(e){return e>=0&&e<11.25?"N":e>=11.25&&e<33.75?"NNE":e>=33.75&&e<56.25?"NE":e>=56.25&&e<78.75?"ENE":e>=78.75&&e<101.25?"E":e>=101.25&&e<123.75?"ESE":e>=123.75&&e<146.25?"SE":e>=146.25&&e<168.75?"SSE":e>=168.75&&e<191.25?"S":e>=191.25&&e<213.75?"SSW":e>=213.75&&e<236.25?"SW":e>=236.25&&e<258.75?"WSW":e>=258.75&&e<281.25?"W":e>=281.25&&e<303.75?"WNW":e>=303.75&&e<326.25?"NW":e>=326.25&&e<348.75?"NNW":"N"}static padding(e){return typeof e=="string"?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(e){e&&(Ge.dateFormat=e.toUpperCase().split(/[.-/]/),Ge.dateFormat.splice(Ge.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],i=o.find(l=>l>31);if(i!==void 0){o.splice(o.indexOf(i),1);const l=o.find(c=>c>12);l?(o.splice(o.indexOf(l),1),e=new Date(i,o[0]-1,l)):Ge.dateFormat[0][0]==="M"&&Ge.dateFormat[1][0]==="D"?(e=new Date(i,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[1]-1,o[0]))):Ge.dateFormat[0][0]==="D"&&Ge.dateFormat[1][0]==="M"?(e=new Date(i,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=z.t(`ra_dow_${tL[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${z.t(`ra_month_${rL[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const i=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),i&&n.push(v.createElement("span",{key:`a${o++}`},i)),r[0].startsWith(""))n.push(v.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(v.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(v.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return l?.common?.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const i=e[r];return i?.common?.custom&&i.common.custom[n]&&i.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=e?.common?.custom?.[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName={}):o.common.smartName={}}static removeSmartName(e,r,n){const o=e;n?o?.common?.custom?.[r]&&(o.common.custom[r]=null):o.common.smartName=null}static updateSmartName(e,r,n,o,i,l){const c=z.getLanguage(),d=e;if(typeof d.common.smartName=="string"){const f=d.common.smartName;d.common.smartName={},d.common.smartName[c]=f}if(d.native?.byON){delete d.native.byON;let f=d.common.smartName;f&&typeof f!="object"&&(f={en:f,[c]:f}),d.common.smartName=f}if(o!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},o?d.common.custom[i].smartName.smartType=o:delete d.common.custom[i].smartName.smartType):(d.common.smartName||={},o?d.common.smartName.smartType=o:delete d.common.smartName.smartType)),n!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},d.common.custom[i].smartName.byON=n):(d.common.smartName||={},d.common.smartName.byON=n)),r!==void 0){let f;if(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},f=d.common.custom[i].smartName):(d.common.smartName||={},f=d.common.smartName),f[c]=r,f&&(!f[c]||f[c]===d.common.name&&!d.common.role)){delete f[c];let g=!0;for(const u in f)if(Object.prototype.hasOwnProperty.call(f,u)){g=!1;break}if(g)if(l&&d.common.custom?.[i])d.common.custom[i].smartName.byON===void 0?delete d.common.custom[i]:(delete d.common.custom[i].en,delete d.common.custom[i].de,delete d.common.custom[i].ru,delete d.common.custom[i].nl,delete d.common.custom[i].pl,delete d.common.custom[i].it,delete d.common.custom[i].fr,delete d.common.custom[i].pt,delete d.common.custom[i].es,delete d.common.custom[i].uk,delete d.common.custom[i]["zh-cn"]);else if(d.common.smartName&&d.common.smartName.byON!==void 0){const u=d.common.smartName;delete u.en,delete u.de,delete u.ru,delete u.nl,delete u.pl,delete u.it,delete u.fr,delete u.pt,delete u.es,delete u.uk,delete u["zh-cn"]}else d.common.smartName=null}}}static updateSmartNameEx(e,r){const n=z.getLanguage(),o=e;if(typeof o.common.smartName=="string"){const i=o.common.smartName;o.common.smartName={},o.common.smartName[n]=i}if(o.native?.byON){delete o.native.byON;let i=o.common.smartName;i&&typeof i!="object"&&(i={en:i,[n]:i}),o.common.smartName=i}if(r.smartType!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},r.smartType?o.common.custom[r.instanceId].smartName.smartType=r.smartType:delete o.common.custom[r.instanceId].smartName.smartType):(o.common.smartName||={},r.smartType?o.common.smartName.smartType=r.smartType:delete o.common.smartName.smartType)),r.byON!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.byON=r.byON):(o.common.smartName||={},o.common.smartName.byON=r.byON)),r.noAutoDetect!==void 0&&(r.noCommon?r.noAutoDetect?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.noAutoDetect=r.noAutoDetect):o.common.custom?.[r.instanceId]?.smartName&&delete o.common.custom[r.instanceId].smartName.noAutoDetect:!r.noAutoDetect&&o.common.smartName?delete o.common.smartName.noAutoDetect:(o.common.smartName||={},o.common.smartName.noAutoDetect=r.noAutoDetect)),r.smartName!==void 0){let i;if(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},i=o.common.custom[r.instanceId].smartName):(o.common.smartName||={},i=o.common.smartName),i[n]=r.smartName,i&&(!i[n]||i[n]===o.common.name&&!o.common.role)){delete i[n];let l=!0;for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){l=!1;break}if(l)if(r.noCommon&&o.common.custom?.[r.instanceId])o.common.custom[r.instanceId].smartName.byON===void 0?delete o.common.custom[r.instanceId]:(delete o.common.custom[r.instanceId].en,delete o.common.custom[r.instanceId].de,delete o.common.custom[r.instanceId].ru,delete o.common.custom[r.instanceId].nl,delete o.common.custom[r.instanceId].pl,delete o.common.custom[r.instanceId].it,delete o.common.custom[r.instanceId].fr,delete o.common.custom[r.instanceId].pt,delete o.common.custom[r.instanceId].es,delete o.common.custom[r.instanceId].uk,delete o.common.custom[r.instanceId]["zh-cn"]);else if(o.common.smartName&&o.common.smartName.byON!==void 0){const c=o.common.smartName;delete c.en,delete c.de,delete c.ru,delete c.nl,delete c.pl,delete c.it,delete c.fr,delete c.pt,delete c.es,delete c.uk,delete c["zh-cn"]}else o.common.smartName=null}}}static disableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName=!1):o.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),eL(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const c=(255-o).toString(16),d=(255-i).toString(16),f=(255-l).toString(16);return`#${c.padStart(2,"0")}${d.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else e.startsWith("#")&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let i=(r*.4124+n*.3576+o*.1805)/.95047,l=r*.2126+n*.7152+o*.0722,c=(r*.0193+n*.1192+o*.9505)/1.08883;return i=i>.008856?i**.33333333:7.787*i+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,c=c>.008856?c**.33333333:7.787*c+.137931,[116*l-16,500*(i-l),200*(l-c)]}static colorDistance(e,r){const n=Ge.color2rgb(e),o=Ge.color2rgb(r);if(!n||!o)return 0;const i=Ge.rgb2lab(n),l=Ge.rgb2lab(o),c=i[0]-l[0],d=i[1]-l[1],f=i[2]-l[2],g=Math.sqrt(i[1]*i[1]+i[2]*i[2]),u=Math.sqrt(l[1]*l[1]+l[2]*l[2]),m=g-u;let y=d*d+f*f-m*m;y=y<0?0:Math.sqrt(y);const x=1+.045*g,w=1+.015*g,T=c,k=m/x,I=y/w,_=T*T+k*k+I*I;return _<0?0:_}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),i=decodeURIComponent(o[0]).trim();if(o.length>1){const l=decodeURIComponent(o[1]);if(l==="true")r[i]=!0;else if(l==="false")r[i]=!1;else{const c=parseFloat(l);c.toString()===l?r[i]=c:r[i]=l}}else r[i]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${i}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${i}`,n+=` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`,n}static formatTime(e){if(e){e=Math.round(e);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),i=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){const r=Ge.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` `);for(let l=0;l{if(!l.trim())return;const c=l.indexOf(":");if(c!==-1){const d=l.substring(0,c).trim();let f=l.substring(c+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[d]=!0:f==="false"?r[d]=!1:parseFloat(f).toString()===r[d]?r[d]=parseFloat(f):r[d]=f}else r[l.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=dm[e];let o;return n?o=[n]:e&1?o=[dm[1],`0x${(e&65534).toString(16)}`]:e&2?o=[dm[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){const r=e?.common?.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const o=r.split(";");n={};for(let i=0;in[i]=o):e?.common.type==="string"?r.forEach(o=>n[o]=o):e?.common.type==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const i=new FileReader;i.onload=()=>o(i.result?.toString()||""),i.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(R4).find(n=>e.startsWith(n));return r?R4[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.toLowerCase().startsWith("stable")))}static isStringInteger(e){return typeof e=="number"?Math.round(e)===e:parseInt(e,10).toString()===e}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getStyle(e,...r){const n={};for(let o=0;o{if(typeof r[o][i]=="function")n[i]=r[o][i](e);else if(typeof r[o][i]=="object"){const l=r[o][i];n[i]={},Object.keys(l).forEach(c=>{typeof l[c]=="function"?n[i][c]=l(e):(l[c]||l[c]===0)&&(n[i][c]=l[c])})}else(r[o][i]||r[o][i]===0)&&(n[i]=r[o][i])});return n}}const pm={buttonIcon:{marginRight:8}};class wY extends v.Component{isIFrame;constructor(e){super(e);const r=e.newReact===void 0?!0:e.newReact;if(e.isIFrame!==void 0)this.isIFrame=e.isIFrame;else try{this.isIFrame=!r&&window.self!==window.top}catch{this.isIFrame=!r}}render(){const e=this.props.noTextOnButtons,r={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},n={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(n.minHeight=48),this.props.error&&(r.border="1px solid red"),v.createElement(oE,{style:n},v.createElement(fa,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:r},v.createElement(iv,{style:e?void 0:pm.buttonIcon}),!e&&z.t("ra_Save")),v.createElement(fa,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...r,marginLeft:10}},v.createElement(iv,{style:e?void 0:pm.buttonIcon}),e?"+":z.t("ra_Save and close"),e&&v.createElement(ga,null)),v.createElement("div",{style:{flexGrow:1}}),v.createElement(fa,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:r},v.createElement(ga,{style:e?void 0:pm.buttonIcon}),!e&&z.t("ra_Close")))}}const P4={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class nL extends O.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}handleOk(){this.state.suppress&&(window._localStorage||window.localStorage).setItem(this.props.dialogName,Date.now()+(this.props.suppressQuestionMinutes||2)*6e4),this.props.onClose&&this.props.onClose(!0)}handleCancel(){this.props.onClose&&this.props.onClose(!1)}render(){return typeof this.state.suppress=="number"?(setTimeout(()=>this.props.onClose&&this.props.onClose(!0),100),null):v.createElement(qo,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},v.createElement(Xo,{id:"ar_confirmation_dialog_title"},this.props.title||z.t("ra_Are you sure?")),v.createElement(Uo,null,v.createElement(Fp,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?v.createElement("br",null):null,this.props.suppressQuestionMinutes?v.createElement(ct,{sx:{"& .FormControlLabel-label":P4.suppress,"&.FormControlLabel-root":P4.suppressRoot},control:v.createElement(Ar,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||z.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),v.createElement(Wo,null,v.createElement(Vt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Fi,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(ga,null)},this.props.cancel||z.t("ra_Cancel"))))}}class oL extends O.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return v.createElement(qo,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},v.createElement(Xo,{id:"ar_alert_dialog_title"},this.props.title||z.t("ra_Error")),v.createElement(Uo,null,v.createElement(Fp,{id:"ar_alert_dialog_description"},this.props.text||z.t("ra_Unknown error!"))),v.createElement(Wo,null,v.createElement(Vt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Fi,null)},z.t("ra_Ok"))))}}var Vr={},cs={},fm,M4;function lE(){if(M4)return fm;M4=1;var t=typeof ad=="object"&&ad&&ad.Object===Object&&ad;return fm=t,fm}var hm,I4;function To(){if(I4)return hm;I4=1;var t=lE(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return hm=r,hm}var mm,A4;function Jc(){if(A4)return mm;A4=1;var t=To(),e=t.Symbol;return mm=e,mm}var gm,D4;function iL(){if(D4)return gm;D4=1;var t=Jc(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function i(l){var c=r.call(l,o),d=l[o];try{l[o]=void 0;var f=!0}catch{}var g=n.call(l);return f&&(c?l[o]=d:delete l[o]),g}return gm=i,gm}var vm,N4;function aL(){if(N4)return vm;N4=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return vm=r,vm}var ym,$4;function xa(){if($4)return ym;$4=1;var t=Jc(),e=iL(),r=aL(),n="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function l(c){return c==null?c===void 0?o:n:i&&i in Object(c)?e(c):r(c)}return ym=l,ym}var bm,L4;function Gn(){if(L4)return bm;L4=1;var t=Array.isArray;return bm=t,bm}var wm,F4;function Vo(){if(F4)return wm;F4=1;function t(e){return e!=null&&typeof e=="object"}return wm=t,wm}var xm,B4;function sL(){if(B4)return xm;B4=1;var t=xa(),e=Gn(),r=Vo(),n="[object String]";function o(i){return typeof i=="string"||!e(i)&&r(i)&&t(i)==n}return xm=o,xm}var Sm,z4;function lL(){if(z4)return Sm;z4=1;function t(e){return function(r,n,o){for(var i=-1,l=Object(r),c=o(r),d=c.length;d--;){var f=c[e?d:++i];if(n(l[f],f,l)===!1)break}return r}}return Sm=t,Sm}var Tm,j4;function cL(){if(j4)return Tm;j4=1;var t=lL(),e=t();return Tm=e,Tm}var Em,H4;function uL(){if(H4)return Em;H4=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return Rm=e,Rm}var Pm,K4;function fL(){if(K4)return Pm;K4=1;var t=xa(),e=py(),r=Vo(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",g="[object Number]",u="[object Object]",m="[object RegExp]",y="[object Set]",x="[object String]",w="[object WeakMap]",T="[object ArrayBuffer]",k="[object DataView]",I="[object Float32Array]",_="[object Float64Array]",R="[object Int8Array]",P="[object Int16Array]",C="[object Int32Array]",M="[object Uint8Array]",N="[object Uint8ClampedArray]",D="[object Uint16Array]",E="[object Uint32Array]",$={};$[I]=$[_]=$[R]=$[P]=$[C]=$[M]=$[N]=$[D]=$[E]=!0,$[n]=$[o]=$[T]=$[i]=$[k]=$[l]=$[c]=$[d]=$[f]=$[g]=$[u]=$[m]=$[y]=$[x]=$[w]=!1;function H(q){return r(q)&&e(q.length)&&!!$[t(q)]}return Pm=H,Pm}var Mm,Y4;function fy(){if(Y4)return Mm;Y4=1;function t(e){return function(r){return e(r)}}return Mm=t,Mm}var hc={exports:{}};hc.exports;var J4;function hy(){return J4||(J4=1,(function(t,e){var r=lE(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===n,l=i&&r.process,c=(function(){try{var d=o&&o.require&&o.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}})();t.exports=c})(hc,hc.exports)),hc.exports}var Im,Q4;function dE(){if(Q4)return Im;Q4=1;var t=fL(),e=fy(),r=hy(),n=r&&r.isTypedArray,o=n?e(n):t;return Im=o,Im}var Am,Z4;function pE(){if(Z4)return Am;Z4=1;var t=uL(),e=cE(),r=Gn(),n=dy(),o=uE(),i=dE(),l=Object.prototype,c=l.hasOwnProperty;function d(f,g){var u=r(f),m=!u&&e(f),y=!u&&!m&&n(f),x=!u&&!m&&!y&&i(f),w=u||m||y||x,T=w?t(f.length,String):[],k=T.length;for(var I in f)(g||c.call(f,I))&&!(w&&(I=="length"||y&&(I=="offset"||I=="parent")||x&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||o(I,k)))&&T.push(I);return T}return Am=d,Am}var Dm,eS;function my(){if(eS)return Dm;eS=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return Dm=e,Dm}var Nm,tS;function fE(){if(tS)return Nm;tS=1;function t(e,r){return function(n){return e(r(n))}}return Nm=t,Nm}var $m,rS;function hL(){if(rS)return $m;rS=1;var t=fE(),e=t(Object.keys,Object);return $m=e,$m}var Lm,nS;function mL(){if(nS)return Lm;nS=1;var t=my(),e=hL(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!t(i))return e(i);var l=[];for(var c in Object(i))n.call(i,c)&&c!="constructor"&&l.push(c);return l}return Lm=o,Lm}var Fm,oS;function al(){if(oS)return Fm;oS=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return Fm=t,Fm}var Bm,iS;function hE(){if(iS)return Bm;iS=1;var t=xa(),e=al(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function l(c){if(!e(c))return!1;var d=t(c);return d==n||d==o||d==r||d==i}return Bm=l,Bm}var zm,aS;function zp(){if(aS)return zm;aS=1;var t=hE(),e=py();function r(n){return n!=null&&e(n.length)&&!t(n)}return zm=r,zm}var jm,sS;function Qc(){if(sS)return jm;sS=1;var t=pE(),e=mL(),r=zp();function n(o){return r(o)?t(o):e(o)}return jm=n,jm}var Hm,lS;function mE(){if(lS)return Hm;lS=1;var t=cL(),e=Qc();function r(n,o){return n&&t(n,o,e)}return Hm=r,Hm}var qm,cS;function gE(){if(cS)return qm;cS=1;function t(e){return e}return qm=t,qm}var Wm,uS;function gL(){if(uS)return Wm;uS=1;var t=gE();function e(r){return typeof r=="function"?r:t}return Wm=e,Wm}var Um,dS;function gy(){if(dS)return Um;dS=1;var t=mE(),e=gL();function r(n,o){return n&&t(n,e(o))}return Um=r,Um}var Xm,pS;function vy(){if(pS)return Xm;pS=1;var t=fE(),e=t(Object.getPrototypeOf,Object);return Xm=e,Xm}var Vm,fS;function vL(){if(fS)return Vm;fS=1;var t=xa(),e=vy(),r=Vo(),n="[object Object]",o=Function.prototype,i=Object.prototype,l=o.toString,c=i.hasOwnProperty,d=l.call(Object);function f(g){if(!r(g)||t(g)!=n)return!1;var u=e(g);if(u===null)return!0;var m=c.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&l.call(m)==d}return Vm=f,Vm}var Gm,hS;function vE(){if(hS)return Gm;hS=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,i=Array(o);++n-1}return e0=e,e0}var t0,xS;function SL(){if(xS)return t0;xS=1;var t=jp();function e(r,n){var o=this.__data__,i=t(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return t0=e,t0}var r0,SS;function Hp(){if(SS)return r0;SS=1;var t=yL(),e=bL(),r=wL(),n=xL(),o=SL();function i(l){var c=-1,d=l==null?0:l.length;for(this.clear();++cy))return!1;var w=u.get(l),T=u.get(c);if(w&&T)return w==c&&T==l;var k=-1,I=!0,_=d&o?new t:void 0;for(u.set(l,c),u.set(c,l);++k0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,c.default)(u,function(y){Array.isArray(y)?g(y).map(function(x){return m.push(x)}):(0,i.default)(y)?(0,n.default)(y,function(x,w){x===!0&&m.push(w),m.push(w+"-"+x)}):(0,e.default)(y)&&m.push(y)}),m};return cs.default=f,cs}var us={},Rg,Y3;function _F(){if(Y3)return Rg;Y3=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],g=d.default&&(0,n.default)(d.default)||{};return f.map(function(u){var m=d[u];return m&&(0,e.default)(m,function(y,x){g[x]||(g[x]={}),g[x]=o({},g[x],m[x])}),u}),g};return us.default=l,us}var ds={},O5;function ZF(){if(O5)return ds;O5=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.autoprefix=void 0;var t=gy(),e=n(t),r=Object.assign||function(l){for(var c=1;c1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,x,w,T;o(this,m);for(var k=arguments.length,I=Array(k),_=0;_1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,x,w,T;o(this,m);for(var k=arguments.length,I=Array(k),_=0;_1&&arguments[1]!==void 0?arguments[1]:!0;o[c]=d};return r===0&&i("first-child"),r===n-1&&i("last-child"),(r===0||r%2===0)&&i("even"),Math.abs(r%2)===1&&i("odd"),i("nth-child",r),o};return Sd.default=t,Sd}var I5;function nB(){if(I5)return Vr;I5=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.ReactCSS=Vr.loop=Vr.handleActive=Vr.handleHover=Vr.hover=void 0;var t=kF(),e=m(t),r=QF(),n=m(r),o=ZF(),i=m(o),l=eB(),c=m(l),d=tB(),f=m(d),g=rB(),u=m(g);function m(x){return x&&x.__esModule?x:{default:x}}Vr.hover=c.default,Vr.handleHover=c.default,Vr.handleActive=f.default,Vr.loop=u.default;var y=Vr.ReactCSS=function(w){for(var T=arguments.length,k=Array(T>1?T-1:0),I=1;Ic?m=1:m=Math.round(u*100/c)/100,r.a!==m)return{h:r.h,s:r.s,l:r.l,a:m,source:"rgb"}}else{var y=void 0;if(g<0?y=0:g>l?y=1:y=Math.round(g*100/l)/100,o!==y)return{h:r.h,s:r.s,l:r.l,a:y,source:"rgb"}}return null},i1={},iB=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var i=o?new o:document.createElement("canvas");i.width=n*2,i.height=n*2;var l=i.getContext("2d");return l?(l.fillStyle=e,l.fillRect(0,0,i.width,i.height),l.fillStyle=r,l.fillRect(0,0,n,n),l.translate(n,n),l.fillRect(0,0,n,n),i.toDataURL()):null},aB=function(e,r,n,o){var i=e+"-"+r+"-"+n+(o?"-server":"");if(i1[i])return i1[i];var l=iB(e,r,n,o);return i1[i]=l,l},A5=Object.assign||function(t){for(var e=1;e Date: Fri, 12 Jun 2026 21:59:53 +0200 Subject: [PATCH 7/7] Update fmt.Println message from 'Hello' to 'Goodbye' --- src-login/build/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-login/build/index.html b/src-login/build/index.html index e611c743..0d1178ed 100644 --- a/src-login/build/index.html +++ b/src-login/build/index.html @@ -243,7 +243,7 @@ } `,uD=typeof ov!="string"?rl` animation: ${ov} 3s infinite linear; - `:null,dD=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${me(n)}`,r],dashed:["dashed",`dashedColor${me(n)}`],bar1:["bar","bar1",`barColor${me(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${me(n)}`,r==="buffer"&&`color${me(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ye(o,sD,e)},iy=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Op(t.palette[e].main,.62):_p(t.palette[e].main,.5),pD=ce("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:iy(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),fD=ce("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${me(r.color)}`]]}})(Qe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>{const r=iy(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),uD||{animation:`${ov} 3s infinite linear`}),hD=ce("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${tv}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${tv}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:lD||{animation:`${rv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),mD=ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:iy(t,e),transition:`transform .${tv}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:cD||{animation:`${nv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),gD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:l,valueBuffer:c,variant:d="indeterminate",...f}=n,g={...n,color:i,variant:d},u=dD(g),m=ol(),y={},x={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&l!==void 0){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let w=l-100;m&&(w=-w),x.bar1.transform=`translateX(${w}%)`}if(d==="buffer"&&c!==void 0){let w=(c||0)-100;m&&(w=-w),x.bar2.transform=`translateX(${w}%)`}return L.jsxs(pD,{className:xe(u.root,o),ownerState:g,role:"progressbar",...y,ref:r,...f,children:[d==="buffer"?L.jsx(fD,{className:u.dashed,ownerState:g}):null,L.jsx(hD,{className:u.bar1,ownerState:g,style:x.bar1}),d==="determinate"?null:L.jsx(mD,{className:u.bar2,ownerState:g,style:x.bar2})]})});function vD(t){return Ke("MuiLink",t)}const yD=Ve("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),bD=({theme:t,ownerState:e})=>{const r=e.color,n=Ti(t,`palette.${r}.main`,!1)||Ti(t,`palette.${r}`,!1)||e.color,o=Ti(t,`palette.${r}.mainChannel`)||Ti(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Dt(n,.4)},c4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wD=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,i={root:["root",`underline${me(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Ye(i,vD,e)},xD=ce(dn,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${me(r.underline)}`],r.component==="button"&&e.button]}})(Qe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:Dt(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Dt(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Dt(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yD.focusVisible}`]:{outline:"auto"}}}]}))),u4=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiLink"}),o=Ho(),{className:i,color:l="primary",component:c="a",onBlur:d,onFocus:f,TypographyClasses:g,underline:u="always",variant:m="inherit",sx:y,...x}=n,[w,T]=O.useState(!1),k=P=>{Vs(P.target)||T(!1),d&&d(P)},I=P=>{Vs(P.target)&&T(!0),f&&f(P)},_={...n,color:l,component:c,focusVisible:w,underline:u,variant:m},R=wD(_);return L.jsx(xD,{color:l,className:xe(R.root,i),classes:g,component:c,onBlur:k,onFocus:I,ref:r,ownerState:_,variant:m,...x,sx:[...c4[l]===void 0?[{color:l}]:[],...Array.isArray(y)?y:[y]],style:{...x.style,...u==="always"&&l!=="inherit"&&!c4[l]&&{"--Link-underlineColor":bD({theme:o,ownerState:_})}}})}),Nc=O.createContext({});function SD(t){return Ke("MuiList",t)}Ve("MuiList",["root","padding","dense","subheader"]);const TD=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return Ye({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},SD,e)},ED=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),CD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f,...g}=n,u=O.useMemo(()=>({dense:c}),[c]),m={...n,component:l,dense:c,disablePadding:d},y=TD(m);return L.jsx(Nc.Provider,{value:u,children:L.jsxs(ED,{as:l,className:xe(y.root,i),ref:r,ownerState:m,...g,children:[f,o]})})});function kD(t){return Ke("MuiListItemIcon",t)}const d4=Ve("MuiListItemIcon",["root","alignItemsFlexStart"]),_D=t=>{const{alignItems:e,classes:r}=t;return Ye({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},kD,r)},OD=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Qe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),RD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiListItemIcon"}),{className:o,...i}=n,l=O.useContext(Nc),c={...n,alignItems:l.alignItems},d=_D(c);return L.jsx(OD,{className:xe(d.root,o),ownerState:c,ref:r,...i})});function PD(t){return Ke("MuiListItemText",t)}const Ls=Ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),MD=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:i}=t;return Ye({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},PD,e)},ID=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ls.primary}`]:e.primary},{[`& .${Ls.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Bx.root}:where(& .${Ls.primary})`]:{display:"block"},[`.${Bx.root}:where(& .${Ls.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),AD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiListItemText"}),{children:o,className:i,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:f,secondary:g,secondaryTypographyProps:u,slots:m={},slotProps:y={},...x}=n,{dense:w}=O.useContext(Nc);let T=d??o,k=g;const I={...n,disableTypography:l,inset:c,primary:!!T,secondary:!!k,dense:w},_=MD(I),R={slots:m,slotProps:{primary:f,secondary:u,...y}},[P,C]=ut("root",{className:xe(_.root,i),elementType:ID,externalForwardedProps:{...R,...x},ownerState:I,ref:r}),[M,N]=ut("primary",{className:_.primary,elementType:dn,externalForwardedProps:R,ownerState:I}),[D,E]=ut("secondary",{className:_.secondary,elementType:dn,externalForwardedProps:R,ownerState:I});return T!=null&&T.type!==dn&&!l&&(T=L.jsx(M,{variant:w?"body2":"body1",component:N?.variant?void 0:"span",...N,children:T})),k!=null&&k.type!==dn&&!l&&(k=L.jsx(D,{variant:"body2",color:"textSecondary",...E,children:k})),L.jsxs(P,{...C,children:[T,k]})});function lm(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function p4(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function JT(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Gl(t,e,r,n,o,i){let l=!1,c=o(t,e,e?r:!1);for(;c;){if(c===t.firstChild){if(l)return!1;l=!0}const d=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!JT(c,i)||d)c=o(t,c,r);else return c.focus(),!0}return!1}const DD=O.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:g,variant:u="selectedMenu",...m}=e,y=O.useRef(null),x=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});en(()=>{o&&y.current.focus()},[o]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:R})=>{const P=!y.current.style.width;if(_.clientHeight{const R=y.current,P=_.key;if(_.ctrlKey||_.metaKey||_.altKey){g&&g(_);return}const M=tn(R).activeElement;if(P==="ArrowDown")_.preventDefault(),Gl(R,M,f,d,lm);else if(P==="ArrowUp")_.preventDefault(),Gl(R,M,f,d,p4);else if(P==="Home")_.preventDefault(),Gl(R,null,f,d,lm);else if(P==="End")_.preventDefault(),Gl(R,null,f,d,p4);else if(P.length===1){const N=x.current,D=P.toLowerCase(),E=performance.now();N.keys.length>0&&(E-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&D!==N.keys[0]&&(N.repeating=!1)),N.lastTime=E,N.keys.push(D);const $=M&&!N.repeating&&JT(M,N);N.previousKeyMatched&&($||Gl(R,M,!1,d,lm,N))?_.preventDefault():N.previousKeyMatched=!1}g&&g(_)},T=yr(y,r);let k=-1;O.Children.forEach(l,(_,R)=>{if(!O.isValidElement(_)){k===R&&(k+=1,k>=l.length&&(k=-1));return}_.props.disabled||(u==="selectedMenu"&&_.props.selected||k===-1)&&(k=R),k===R&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(k+=1,k>=l.length&&(k=-1))});const I=O.Children.map(l,(_,R)=>{if(R===k){const P={};return i&&(P.autoFocus=!0),_.props.tabIndex===void 0&&u==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(_,P)}return _});return L.jsx(CD,{role:"menu",ref:T,className:c,onKeyDown:w,tabIndex:o?0:-1,...m,children:I})});function ND(t){return Ke("MuiPopover",t)}Ve("MuiPopover",["root","paper"]);function f4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function h4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function m4(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function gd(t){return typeof t=="function"?t():t}const $D=t=>{const{classes:e}=t;return Ye({root:["root"],paper:["paper"]},ND,e)},LD=ce(GT,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),QT=ce(Gs,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),FD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:g,container:u,elevation:m=8,marginThreshold:y=16,open:x,PaperProps:w={},slots:T={},slotProps:k={},transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:R="auto",TransitionProps:P={},disableScrollLock:C=!1,...M}=n,N=O.useRef(),D={...n,anchorOrigin:l,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:I,TransitionComponent:_,transitionDuration:R,TransitionProps:P},E=$D(D),$=O.useCallback(()=>{if(d==="anchorPosition")return c;const ke=gd(i),Ie=(ke&&ke.nodeType===1?ke:tn(N.current).body).getBoundingClientRect();return{top:Ie.top+f4(Ie,l.vertical),left:Ie.left+h4(Ie,l.horizontal)}},[i,l.horizontal,l.vertical,c,d]),H=O.useCallback(ke=>({vertical:f4(ke,I.vertical),horizontal:h4(ke,I.horizontal)}),[I.horizontal,I.vertical]),q=O.useCallback(ke=>{const Le={width:ke.offsetWidth,height:ke.offsetHeight},Ie=H(Le);if(d==="none")return{top:null,left:null,transformOrigin:m4(Ie)};const nt=$();let Pe=nt.top-Ie.vertical,Ce=nt.left-Ie.horizontal;const ht=Pe+Le.height,ye=Ce+Le.width,Ae=Vn(gd(i)),it=Ae.innerHeight-y,Je=Ae.innerWidth-y;if(y!==null&&Peit){const qe=ht-it;Pe-=qe,Ie.vertical+=qe}if(y!==null&&CeJe){const qe=ye-Je;Ce-=qe,Ie.horizontal+=qe}return{top:`${Math.round(Pe)}px`,left:`${Math.round(Ce)}px`,transformOrigin:m4(Ie)}},[i,d,$,H,y]),[U,W]=O.useState(x),K=O.useCallback(()=>{const ke=N.current;if(!ke)return;const Le=q(ke);Le.top!==null&&ke.style.setProperty("top",Le.top),Le.left!==null&&(ke.style.left=Le.left),ke.style.transformOrigin=Le.transformOrigin,W(!0)},[q]);O.useEffect(()=>(C&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[i,C,K]);const re=()=>{K()},Z=()=>{W(!1)};O.useEffect(()=>{x&&K()}),O.useImperativeHandle(o,()=>x?{updatePosition:()=>{K()}}:null,[x,K]),O.useEffect(()=>{if(!x)return;const ke=Rp(()=>{K()}),Le=Vn(gd(i));return Le.addEventListener("resize",ke),()=>{ke.clear(),Le.removeEventListener("resize",ke)}},[i,x,K]);let V=R;const ee={slots:{transition:_,...T},slotProps:{transition:P,paper:w,...k}},[B,J]=ut("transition",{elementType:tp,externalForwardedProps:ee,ownerState:D,getSlotProps:ke=>({...ke,onEntering:(Le,Ie)=>{ke.onEntering?.(Le,Ie),re()},onExited:Le=>{ke.onExited?.(Le),Z()}}),additionalProps:{appear:!0,in:x}});R==="auto"&&!B.muiSupportAuto&&(V=void 0);const de=u||(i?tn(gd(i)).body:void 0),[pe,{slots:ie,slotProps:fe,...Se}]=ut("root",{ref:r,elementType:LD,externalForwardedProps:{...ee,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:T.backdrop},slotProps:{backdrop:RT(typeof k.backdrop=="function"?k.backdrop(D):k.backdrop,{invisible:!0})},container:de,open:x},ownerState:D,className:xe(E.root,g)}),[Ee,_e]=ut("paper",{ref:N,className:E.paper,elementType:QT,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:U?void 0:{opacity:0}},ownerState:D});return L.jsx(pe,{...Se,...!Q1(pe)&&{slots:ie,slotProps:fe,disableScrollLock:C},children:L.jsx(B,{...J,timeout:V,children:L.jsx(Ee,{..._e,children:f})})})});function BD(t){return Ke("MuiMenu",t)}Ve("MuiMenu",["root","paper","list"]);const zD={vertical:"top",horizontal:"right"},jD={vertical:"top",horizontal:"left"},HD=t=>{const{classes:e}=t;return Ye({root:["root"],paper:["paper"],list:["list"]},BD,e)},qD=ce(FD,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),WD=ce(QT,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),UD=ce(DD,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),ZT=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:g,PaperProps:u={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:x,...w}={},variant:T="selectedMenu",slots:k={},slotProps:I={},..._}=n,R=ol(),P={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:d,onEntering:x,PaperProps:u,transitionDuration:y,TransitionProps:w,variant:T},C=HD(P),M=o&&!c&&g,N=O.useRef(null),D=(V,ee)=>{N.current&&N.current.adjustStyleForScrollbar(V,{direction:R?"rtl":"ltr"}),x&&x(V,ee)},E=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let $=-1;O.Children.map(i,(V,ee)=>{O.isValidElement(V)&&(V.props.disabled||(T==="selectedMenu"&&V.props.selected||$===-1)&&($=ee))});const H={slots:k,slotProps:{list:d,transition:w,paper:u,...I}},q=ha({elementType:k.root,externalSlotProps:I.root,ownerState:P,className:[C.root,l]}),[U,W]=ut("paper",{className:C.paper,elementType:WD,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:P}),[K,re]=ut("list",{className:xe(C.list,d.className),elementType:UD,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:V=>({...V,onKeyDown:ee=>{E(ee),V.onKeyDown?.(ee)}}),ownerState:P}),Z=typeof H.slotProps.transition=="function"?H.slotProps.transition(P):H.slotProps.transition;return L.jsx(qD,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?zD:jD,slots:{root:k.root,paper:U,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:q,paper:W,backdrop:typeof I.backdrop=="function"?I.backdrop(P):I.backdrop,transition:{...Z,onEntering:(...V)=>{D(...V),Z?.onEntering?.(...V)}}},open:g,ref:r,transitionDuration:y,ownerState:P,..._,classes:m,children:L.jsx(K,{actions:N,autoFocus:o&&($===-1||c),autoFocusItem:M,variant:T,...re,children:i})})});function XD(t){return Ke("MuiMenuItem",t)}const Kl=Ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VD=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},GD=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:i,classes:l}=t,d=Ye({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},XD,l);return{...l,...d}},KD=ce(Ni,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:VD})(Qe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Kl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Kl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Kl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Kl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${i4.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${i4.inset}`]:{marginLeft:52},[`& .${Ls.root}`]:{marginTop:0,marginBottom:0},[`& .${Ls.inset}`]:{paddingLeft:36},[`& .${d4.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${d4.root} svg`]:{fontSize:"1.25rem"}}}]}))),cr=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:f,role:g="menuitem",tabIndex:u,className:m,...y}=n,x=O.useContext(Nc),w=O.useMemo(()=>({dense:l||x.dense||!1,disableGutters:d}),[x.dense,l,d]),T=O.useRef(null);en(()=>{o&&T.current&&T.current.focus()},[o]);const k={...n,dense:w.dense,divider:c,disableGutters:d},I=GD(n),_=yr(T,r);let R;return n.disabled||(R=u!==void 0?u:-1),L.jsx(Nc.Provider,{value:w,children:L.jsx(KD,{ref:_,role:g,tabIndex:R,component:i,focusVisibleClassName:xe(I.focusVisible,f),className:xe(I.root,m),...y,ownerState:k,classes:I})})});function YD(t){return Ke("MuiNativeSelect",t)}const ay=Ve("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JD=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,i&&"iconOpen",n&&"disabled"]};return Ye(c,YD,e)},eE=ce("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ay.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),QD=ce(eE,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:br,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${ay.multiple}`]:e.multiple}]}})({}),tE=ce("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ay.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ZD=ce(tE,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),eN=O.forwardRef(function(e,r){const{className:n,disabled:o,error:i,IconComponent:l,inputRef:c,variant:d="standard",...f}=e,g={...e,disabled:o,variant:d,error:i},u=JD(g);return L.jsxs(O.Fragment,{children:[L.jsx(QD,{ownerState:g,className:xe(u.select,n),disabled:o,ref:c||r,...f}),e.multiple?null:L.jsx(ZD,{as:l,ownerState:g,className:u.icon})]})});var g4;const tN=ce("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:br})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rN=ce("legend",{name:"MuiNotchedOutlined",shouldForwardProp:br})(Qe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function nN(t){const{children:e,classes:r,className:n,label:o,notched:i,...l}=t,c=o!=null&&o!=="",d={...t,notched:i,withLabel:c};return L.jsx(tN,{"aria-hidden":!0,className:n,ownerState:d,...l,children:L.jsx(rN,{ownerState:d,children:c?L.jsx("span",{children:o}):g4||(g4=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const oN=t=>{const{classes:e}=t,n=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rI,e);return{...e,...n}},iN=ce($p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Dp})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${oo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${oo.focused} .${oo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(rr()).map(([r])=>({props:{color:r},style:{[`&.${oo.focused} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${oo.error} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${oo.disabled} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),aN=ce(nN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),sN=ce(Lp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Np})(Qe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),sy=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:f,slots:g={},slotProps:u={},type:m="text",...y}=n,x=oN(n),w=So(),T=Li({props:n,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:w,fullWidth:i,hiddenLabel:T.hiddenLabel,multiline:d,size:T.size,type:m},I=g.root??o.Root??iN,_=g.input??o.Input??sN,[R,P]=ut("notchedOutline",{elementType:aN,className:x.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:u},additionalProps:{label:c!=null&&c!==""&&T.required?L.jsxs(O.Fragment,{children:[c," ","*"]}):c}});return L.jsx(ny,{slots:{root:I,input:_},slotProps:u,renderSuffix:C=>L.jsx(R,{...P,notched:typeof f<"u"?f:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:i,inputComponent:l,multiline:d,ref:r,type:m,...y,classes:{...x,notchedOutline:null}})});sy.muiName="Input";const lN=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),cN=He(L.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),uN=ce("span",{name:"MuiRadioButtonIcon",shouldForwardProp:br})({position:"relative",display:"flex"}),dN=ce(lN,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),pN=ce(cN,{name:"MuiRadioButtonIcon"})(Qe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function rE(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return L.jsxs(uN,{className:r.root,ownerState:o,children:[L.jsx(dN,{fontSize:n,className:r.background,ownerState:o}),L.jsx(pN,{fontSize:n,className:r.dot,ownerState:o})]})}const fN=O.createContext(void 0);function hN(){return O.useContext(fN)}function mN(t){return Ke("MuiRadio",t)}const v4=Ve("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),gN=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${me(r)}`,n!=="medium"&&`size${me(n)}`]};return{...e,...Ye(o,mN,e)}},vN=ce(VT,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${me(r.size)}`],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${v4.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Dt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Dt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${v4.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function yN(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const bN=L.jsx(rE,{checked:!0}),wN=L.jsx(rE,{}),At=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:i=bN,color:l="primary",icon:c=wN,name:d,onChange:f,size:g="medium",className:u,disabled:m,disableRipple:y=!1,slots:x={},slotProps:w={},inputProps:T,...k}=n,I=So();let _=m;I&&typeof _>"u"&&(_=I.disabled),_??=!1;const R={...n,disabled:_,disableRipple:y,color:l,size:g},P=gN(R),C=hN();let M=o;const N=B1(f,C&&C.onChange);let D=d;C&&(typeof M>"u"&&(M=yN(C.value,n.value)),typeof D>"u"&&(D=C.name));const E=w.input??T,[$,H]=ut("root",{ref:r,elementType:vN,className:xe(P.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:w,...k},getSlotProps:q=>({...q,onChange:(U,...W)=>{q.onChange?.(U,...W),N(U,...W)}}),ownerState:R,additionalProps:{type:"radio",icon:O.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:O.cloneElement(i,{fontSize:i.props.fontSize??g}),disabled:_,name:D,checked:M,slots:x,slotProps:{input:typeof E=="function"?E(R):E}}});return L.jsx($,{...H,classes:P})});function nE(t){return Ke("MuiSelect",t)}const Yl=Ve("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var y4;const xN=ce(eE,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Yl.select}`]:e.select},{[`&.${Yl.select}`]:e[r.variant]},{[`&.${Yl.error}`]:e.error},{[`&.${Yl.multiple}`]:e.multiple}]}})({[`&.${Yl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SN=ce(tE,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),TN=ce("input",{shouldForwardProp:t=>OT(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function b4(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function EN(t){return t==null||typeof t=="string"&&!t.trim()}const CN=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ye(c,nE,e)},kN=O.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:g,disabled:u,displayEmpty:m,error:y=!1,IconComponent:x,inputRef:w,labelId:T,MenuProps:k={},multiple:I,name:_,onBlur:R,onChange:P,onClose:C,onFocus:M,onOpen:N,open:D,readOnly:E,renderValue:$,required:H,SelectDisplayProps:q={},tabIndex:U,type:W,value:K,variant:re="standard",...Z}=e,[V,ee]=Gd({controlled:K,default:g,name:"Select"}),[B,J]=Gd({controlled:D,default:f,name:"Select"}),de=O.useRef(null),pe=O.useRef(null),[ie,fe]=O.useState(null),{current:Se}=O.useRef(D!=null),[Ee,_e]=O.useState(),ke=yr(r,w),Le=O.useCallback(be=>{pe.current=be,be&&fe(be)},[]),Ie=ie?.parentNode;O.useImperativeHandle(ke,()=>({focus:()=>{pe.current.focus()},node:de.current,value:V}),[V]),O.useEffect(()=>{f&&B&&ie&&!Se&&(_e(l?null:Ie.clientWidth),pe.current.focus())},[ie,l]),O.useEffect(()=>{i&&pe.current.focus()},[i]),O.useEffect(()=>{if(!T)return;const be=tn(pe.current).getElementById(T);if(be){const lt=()=>{getSelection().isCollapsed&&pe.current.focus()};return be.addEventListener("click",lt),()=>{be.removeEventListener("click",lt)}}},[T]);const nt=(be,lt)=>{be?N&&N(lt):C&&C(lt),Se||(_e(l?null:Ie.clientWidth),J(be))},Pe=be=>{be.button===0&&(be.preventDefault(),pe.current.focus(),nt(!0,be))},Ce=be=>{nt(!1,be)},ht=O.Children.toArray(c),ye=be=>{const lt=ht.find(St=>St.props.value===be.target.value);lt!==void 0&&(ee(lt.props.value),P&&P(be,lt))},Ae=be=>lt=>{let St;if(lt.currentTarget.hasAttribute("tabindex")){if(I){St=Array.isArray(V)?V.slice():[];const ur=V.indexOf(be.props.value);ur===-1?St.push(be.props.value):St.splice(ur,1)}else St=be.props.value;if(be.props.onClick&&be.props.onClick(lt),V!==St&&(ee(St),P)){const ur=lt.nativeEvent||lt,dr=new ur.constructor(ur.type,ur);Object.defineProperty(dr,"target",{writable:!0,value:{value:St,name:_}}),P(dr,be)}I||nt(!1,lt)}},it=be=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(be.key)&&(be.preventDefault(),nt(!0,be))},Je=ie!==null&&B,qe=be=>{!Je&&R&&(Object.defineProperty(be,"target",{writable:!0,value:{value:V,name:_}}),R(be))};delete Z["aria-invalid"];let ve,at;const Xe=[];let ne=!1;(ep({value:V})||m)&&($?ve=$(V):ne=!0);const ge=ht.map(be=>{if(!O.isValidElement(be))return null;let lt;if(I){if(!Array.isArray(V))throw new Error(Bo(2));lt=V.some(St=>b4(St,be.props.value)),lt&&ne&&Xe.push(be.props.children)}else lt=b4(V,be.props.value),lt&&ne&&(at=be.props.children);return O.cloneElement(be,{"aria-selected":lt?"true":"false",onClick:Ae(be),onKeyUp:St=>{St.key===" "&&St.preventDefault(),be.props.onKeyUp&&be.props.onKeyUp(St)},role:"option",selected:lt,value:void 0,"data-value":be.props.value})});ne&&(I?Xe.length===0?ve=null:ve=Xe.reduce((be,lt,St)=>(be.push(lt),St{const{classes:e}=t,n=Ye({root:["root"]},nE,e);return{...e,...n}},ly={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>br(t)&&t!=="variant",slot:"Root"},ON=ce(uo,ly)(""),RN=ce(sy,ly)(""),PN=ce(oy,ly)(""),ho=O.forwardRef(function(e,r){const n=et({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:g=oI,id:u,input:m,inputProps:y,label:x,labelId:w,MenuProps:T,multiple:k=!1,native:I=!1,onClose:_,onOpen:R,open:P,renderValue:C,SelectDisplayProps:M,variant:N="outlined",...D}=n,E=I?eN:kN,$=So(),H=Li({props:n,muiFormControl:$,states:["variant","error"]}),q=H.variant||N,U={...n,variant:q,classes:l},W=_N(U),{root:K,...re}=W,Z=m||{standard:L.jsx(ON,{ownerState:U}),outlined:L.jsx(RN,{label:x,ownerState:U}),filled:L.jsx(PN,{ownerState:U})}[q],V=yr(r,nl(Z));return L.jsx(O.Fragment,{children:O.cloneElement(Z,{inputComponent:E,inputProps:{children:i,error:H.error,IconComponent:g,variant:q,type:void 0,multiple:k,...I?{id:u}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:T,onClose:_,onOpen:R,open:P,renderValue:C,SelectDisplayProps:{id:u,...M}},...y,classes:y?$r(re,y.classes):re,...m?m.props.inputProps:{}},...(k&&I||f)&&q==="outlined"?{notched:!0}:{},ref:V,className:xe(Z.props.className,c,W.root),...!m&&{variant:q},...D})})});ho.muiName="Select";function MN(t){return Ke("MuiTooltip",t)}const Qt=Ve("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function IN(t){return Math.round(t*1e5)/1e5}const AN=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${me(i.split("-")[0])}`],arrow:["arrow"]};return Ye(l,MN,e)},DN=ce(WT,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Qe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Qt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),NN=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${me(r.placement.split("-")[0])}`]]}})(Qe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Dt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Qt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Qt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${IN(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),$N=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Qe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Dt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let vd=!1;const w4=new Pp;let Jl={x:0,y:0};function yd(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const zd=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:l,components:c={},componentsProps:d={},describeChild:f=!1,disableFocusListener:g=!1,disableHoverListener:u=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:x=100,enterNextDelay:w=0,enterTouchDelay:T=700,followCursor:k=!1,id:I,leaveDelay:_=0,leaveTouchDelay:R=1500,onClose:P,onOpen:C,open:M,placement:N="bottom",PopperComponent:D,PopperProps:E={},slotProps:$={},slots:H={},title:q,TransitionComponent:U,TransitionProps:W,...K}=n,re=O.isValidElement(i)?i:L.jsx("span",{children:i}),Z=Ho(),V=ol(),[ee,B]=O.useState(),[J,de]=O.useState(null),pe=O.useRef(!1),ie=m||k,fe=$s(),Se=$s(),Ee=$s(),_e=$s(),[ke,Le]=Gd({controlled:M,default:!1,name:"Tooltip",state:"open"});let Ie=ke;const nt=wa(I),Pe=O.useRef(),Ce=Rn(()=>{Pe.current!==void 0&&(document.body.style.WebkitUserSelect=Pe.current,Pe.current=void 0),_e.clear()});O.useEffect(()=>Ce,[Ce]);const ht=rt=>{w4.clear(),vd=!0,Le(!0),C&&!Ie&&C(rt)},ye=Rn(rt=>{w4.start(800+_,()=>{vd=!1}),Le(!1),P&&Ie&&P(rt),fe.start(Z.transitions.duration.shortest,()=>{pe.current=!1})}),Ae=rt=>{pe.current&&rt.type!=="touchstart"||(ee&&ee.removeAttribute("title"),Se.clear(),Ee.clear(),x||vd&&w?Se.start(vd?w:x,()=>{ht(rt)}):ht(rt))},it=rt=>{Se.clear(),Ee.start(_,()=>{ye(rt)})},[,Je]=O.useState(!1),qe=rt=>{Vs(rt.target)||(Je(!1),it(rt))},ve=rt=>{ee||B(rt.currentTarget),Vs(rt.target)&&(Je(!0),Ae(rt))},at=rt=>{pe.current=!0;const zr=re.props;zr.onTouchStart&&zr.onTouchStart(rt)},Xe=rt=>{at(rt),Ee.clear(),fe.clear(),Ce(),Pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",_e.start(T,()=>{document.body.style.WebkitUserSelect=Pe.current,Ae(rt)})},ne=rt=>{re.props.onTouchEnd&&re.props.onTouchEnd(rt),Ce(),Ee.start(R,()=>{ye(rt)})};O.useEffect(()=>{if(!Ie)return;function rt(zr){zr.key==="Escape"&&ye(zr)}return document.addEventListener("keydown",rt),()=>{document.removeEventListener("keydown",rt)}},[ye,Ie]);const ge=yr(nl(re),B,r);!q&&q!==0&&(Ie=!1);const je=O.useRef(),Fe=rt=>{const zr=re.props;zr.onMouseMove&&zr.onMouseMove(rt),Jl={x:rt.clientX,y:rt.clientY},je.current&&je.current.update()},st={},vt=typeof q=="string";f?(st.title=!Ie&&vt&&!u?q:null,st["aria-describedby"]=Ie?nt:null):(st["aria-label"]=vt?q:null,st["aria-labelledby"]=Ie&&!vt?nt:null);const Be={...st,...K,...re.props,className:xe(K.className,re.props.className),onTouchStart:at,ref:ge,...k?{onMouseMove:Fe}:{}},Bt={};y||(Be.onTouchStart=Xe,Be.onTouchEnd=ne),u||(Be.onMouseOver=yd(Ae,Be.onMouseOver),Be.onMouseLeave=yd(it,Be.onMouseLeave),ie||(Bt.onMouseOver=Ae,Bt.onMouseLeave=it)),g||(Be.onFocus=yd(ve,Be.onFocus),Be.onBlur=yd(qe,Be.onBlur),ie||(Bt.onFocus=ve,Bt.onBlur=qe));const xt={...n,isRtl:V,arrow:o,disableInteractive:ie,placement:N,PopperComponentProp:D,touch:pe.current},be=typeof $.popper=="function"?$.popper(xt):$.popper,lt=O.useMemo(()=>{let rt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return E.popperOptions?.modifiers&&(rt=rt.concat(E.popperOptions.modifiers)),be?.popperOptions?.modifiers&&(rt=rt.concat(be.popperOptions.modifiers)),{...E.popperOptions,...be?.popperOptions,modifiers:rt}},[J,E.popperOptions,be?.popperOptions]),St=AN(xt),ur=typeof $.transition=="function"?$.transition(xt):$.transition,dr={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...H},slotProps:{arrow:$.arrow??d.arrow,popper:{...E,...be??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...W,...ur??d.transition}}},[Br,Co]=ut("popper",{elementType:DN,externalForwardedProps:dr,ownerState:xt,className:xe(St.popper,E?.className)}),[Yn,vn]=ut("transition",{elementType:tp,externalForwardedProps:dr,ownerState:xt}),[Ra,Pa]=ut("tooltip",{elementType:NN,className:St.tooltip,externalForwardedProps:dr,ownerState:xt}),[Ma,Ia]=ut("arrow",{elementType:$N,className:St.arrow,externalForwardedProps:dr,ownerState:xt,ref:de});return L.jsxs(O.Fragment,{children:[O.cloneElement(re,Be),L.jsx(Br,{as:D??WT,placement:N,anchorEl:k?{getBoundingClientRect:()=>({top:Jl.y,left:Jl.x,right:Jl.x,bottom:Jl.y,width:0,height:0})}:ee,popperRef:je,open:ee?Ie:!1,id:nt,transition:!0,...Bt,...Co,popperOptions:lt,children:({TransitionProps:rt})=>L.jsx(Yn,{timeout:Z.transitions.duration.shorter,...rt,...vn,children:L.jsxs(Ra,{...Pa,children:[q,o?L.jsx(Ma,{...Ia}):null]})})})]})});function LN(t){return Ke("MuiTab",t)}const Cn=Ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),FN=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:i,label:l,selected:c,disabled:d}=t,f={root:["root",i&&l&&"labelIcon",`textColor${me(r)}`,n&&"fullWidth",o&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return Ye(f,LN,e)},BN=ce(Ni,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${me(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Cn.iconWrapper}`]:e.iconWrapper},{[`& .${Cn.icon}`]:e.icon}]}})(Qe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Cn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Cn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Cn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Cn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Cn.selected}`]:{opacity:1},[`&.${Cn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Cn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Cn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Cn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Cn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),ls=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:f="top",indicator:g,label:u,onChange:m,onClick:y,onFocus:x,selected:w,selectionFollowsFocus:T,textColor:k="inherit",value:I,wrapped:_=!1,...R}=n,P={...n,disabled:i,disableFocusRipple:l,selected:w,icon:!!d,iconPosition:f,label:!!u,fullWidth:c,textColor:k,wrapped:_},C=FN(P),M=d&&u&&O.isValidElement(d)?O.cloneElement(d,{className:xe(C.icon,d.props.className)}):d,N=E=>{!w&&m&&m(E,I),y&&y(E)},D=E=>{T&&!w&&m&&m(E,I),x&&x(E)};return L.jsxs(BN,{focusRipple:!l,className:xe(C.root,o),ref:r,role:"tab","aria-selected":w,disabled:i,onClick:N,onFocus:D,ownerState:P,tabIndex:w?0:-1,...R,children:[f==="top"||f==="start"?L.jsxs(O.Fragment,{children:[M,u]}):L.jsxs(O.Fragment,{children:[u,M]}),g]})});function zN(t){return Ke("MuiToolbar",t)}Ve("MuiToolbar",["root","gutters","regular","dense"]);const jN=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Ye({root:["root",!r&&"gutters",n]},zN,e)},HN=ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),oE=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:c="regular",...d}=n,f={...n,component:i,disableGutters:l,variant:c},g=jN(f);return L.jsx(HN,{as:i,className:xe(g.root,o),ref:r,ownerState:f,...d})}),qN=He(L.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),WN=He(L.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function UN(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function XN(t,e,r,n={},o=()=>{}){const{ease:i=UN,duration:l=300}=n;let c=null;const d=e[t];let f=!1;const g=()=>{f=!0},u=m=>{if(f){o(new Error("Animation cancelled"));return}c===null&&(c=m);const y=Math.min(1,(m-c)/l);if(e[t]=i(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(u)};return d===r?(o(new Error("Element already at target position")),g):(requestAnimationFrame(u),g)}const VN={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function GN(t){const{onChange:e,...r}=t,n=O.useRef(),o=O.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return en(()=>{const l=Rp(()=>{const d=n.current;i(),d!==n.current&&e(n.current)}),c=Vn(o.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[e]),O.useEffect(()=>{i(),e(n.current)},[e]),L.jsx("div",{style:VN,...r,ref:o})}function KN(t){return Ke("MuiTabScrollButton",t)}const YN=Ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JN=t=>{const{classes:e,orientation:r,disabled:n}=t;return Ye({root:["root",r,n&&"disabled"]},KN,e)},QN=ce(Ni,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${YN.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),ZN=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:l={},direction:c,orientation:d,disabled:f,...g}=n,u=ol(),m={isRtl:u,...n},y=JN(m),x=i.StartScrollButtonIcon??qN,w=i.EndScrollButtonIcon??WN,T=ha({elementType:x,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),k=ha({elementType:w,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return L.jsx(QN,{component:"div",className:xe(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...g,style:{...g.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:c==="left"?L.jsx(x,{...T}):L.jsx(w,{...k})})});function e$(t){return Ke("MuiTabs",t)}const cm=Ve("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),x4=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,S4=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,bd=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=r(t,o);else{o.focus();return}}},t$=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:l,scrollButtonsHideMobile:c,classes:d}=t;return Ye({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},e$,d)},r$=ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${cm.scrollButtons}`]:e.scrollButtons},{[`& .${cm.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Qe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${cm.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),n$=ce("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),o$=ce("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),i$=ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Qe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),a$=ce(GN)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),T4={},s$=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTabs"}),o=Ho(),i=ol(),{"aria-label":l,"aria-labelledby":c,action:d,centered:f=!1,children:g,className:u,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:x="primary",onChange:w,orientation:T="horizontal",ScrollButtonComponent:k,scrollButtons:I="auto",selectionFollowsFocus:_,slots:R={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:M={},textColor:N="primary",value:D,variant:E="standard",visibleScrollbar:$=!1,...H}=n,q=E==="scrollable",U=T==="vertical",W=U?"scrollTop":"scrollLeft",K=U?"top":"left",re=U?"bottom":"right",Z=U?"clientHeight":"clientWidth",V=U?"height":"width",ee={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:x,orientation:T,vertical:U,scrollButtons:I,textColor:N,variant:E,visibleScrollbar:$,fixed:!q,hideScrollbar:q&&!$,scrollableX:q&&!U,scrollableY:q&&U,centered:f&&!q,scrollButtonsHideMobile:!y},B=t$(ee),J=ha({elementType:R.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:ee}),de=ha({elementType:R.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:ee}),[pe,ie]=O.useState(!1),[fe,Se]=O.useState(T4),[Ee,_e]=O.useState(!1),[ke,Le]=O.useState(!1),[Ie,nt]=O.useState(!1),[Pe,Ce]=O.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ye=O.useRef(null),Ae=O.useRef(null),it={slots:R,slotProps:{indicator:C,scrollButton:M,...P}},Je=()=>{const Oe=ye.current;let ze;if(Oe){const ft=Oe.getBoundingClientRect();ze={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollWidth:Oe.scrollWidth,top:ft.top,bottom:ft.bottom,left:ft.left,right:ft.right}}let yt;if(Oe&&D!==!1){const ft=Ae.current.children;if(ft.length>0){const Gt=ft[ht.get(D)];yt=Gt?Gt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:yt}},qe=Rn(()=>{const{tabsMeta:Oe,tabMeta:ze}=Je();let yt=0,ft;U?(ft="top",ze&&Oe&&(yt=ze.top-Oe.top+Oe.scrollTop)):(ft=i?"right":"left",ze&&Oe&&(yt=(i?-1:1)*(ze[ft]-Oe[ft]+Oe.scrollLeft)));const Gt={[ft]:yt,[V]:ze?ze[V]:0};if(typeof fe[ft]!="number"||typeof fe[V]!="number")Se(Gt);else{const Cr=Math.abs(fe[ft]-Gt[ft]),yn=Math.abs(fe[V]-Gt[V]);(Cr>=1||yn>=1)&&Se(Gt)}}),ve=(Oe,{animation:ze=!0}={})=>{ze?XN(W,ye.current,Oe,{duration:o.transitions.duration.standard}):ye.current[W]=Oe},at=Oe=>{let ze=ye.current[W];U?ze+=Oe:ze+=Oe*(i?-1:1),ve(ze)},Xe=()=>{const Oe=ye.current[Z];let ze=0;const yt=Array.from(Ae.current.children);for(let ft=0;ftOe){ft===0&&(ze=Oe);break}ze+=Gt[Z]}return ze},ne=()=>{at(-1*Xe())},ge=()=>{at(Xe())},[je,{onChange:Fe,...st}]=ut("scrollbar",{className:xe(B.scrollableX,B.hideScrollbar),elementType:a$,shouldForwardComponentProp:!0,externalForwardedProps:it,ownerState:ee}),vt=O.useCallback(Oe=>{Fe?.(Oe),Ce({overflow:null,scrollbarWidth:Oe})},[Fe]),[Be,Bt]=ut("scrollButtons",{className:xe(B.scrollButtons,M.className),elementType:ZN,externalForwardedProps:it,ownerState:ee,additionalProps:{orientation:T,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:J,endScrollButtonIcon:de}}}),xt=()=>{const Oe={};Oe.scrollbarSizeListener=q?L.jsx(je,{...st,onChange:vt}):null;const yt=q&&(I==="auto"&&(Ee||ke)||I===!0);return Oe.scrollButtonStart=yt?L.jsx(Be,{direction:i?"right":"left",onClick:ne,disabled:!Ee,...Bt}):null,Oe.scrollButtonEnd=yt?L.jsx(Be,{direction:i?"left":"right",onClick:ge,disabled:!ke,...Bt}):null,Oe},be=Rn(Oe=>{const{tabsMeta:ze,tabMeta:yt}=Je();if(!(!yt||!ze)){if(yt[K]ze[re]){const ft=ze[W]+(yt[re]-ze[re]);ve(ft,{animation:Oe})}}}),lt=Rn(()=>{q&&I!==!1&&nt(!Ie)});O.useEffect(()=>{const Oe=Rp(()=>{ye.current&&qe()});let ze;const yt=Cr=>{Cr.forEach(yn=>{yn.removedNodes.forEach(Jn=>{ze?.unobserve(Jn)}),yn.addedNodes.forEach(Jn=>{ze?.observe(Jn)})}),Oe(),lt()},ft=Vn(ye.current);ft.addEventListener("resize",Oe);let Gt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(Oe),Array.from(Ae.current.children).forEach(Cr=>{ze.observe(Cr)})),typeof MutationObserver<"u"&&(Gt=new MutationObserver(yt),Gt.observe(Ae.current,{childList:!0})),()=>{Oe.clear(),ft.removeEventListener("resize",Oe),Gt?.disconnect(),ze?.disconnect()}},[qe,lt]),O.useEffect(()=>{const Oe=Array.from(Ae.current.children),ze=Oe.length;if(typeof IntersectionObserver<"u"&&ze>0&&q&&I!==!1){const yt=Oe[0],ft=Oe[ze-1],Gt={root:ye.current,threshold:.99},Cr=ul=>{_e(!ul[0].isIntersecting)},yn=new IntersectionObserver(Cr,Gt);yn.observe(yt);const Jn=ul=>{Le(!ul[0].isIntersecting)},Aa=new IntersectionObserver(Jn,Gt);return Aa.observe(ft),()=>{yn.disconnect(),Aa.disconnect()}}},[q,I,Ie,g?.length]),O.useEffect(()=>{ie(!0)},[]),O.useEffect(()=>{qe()}),O.useEffect(()=>{be(T4!==fe)},[be,fe]),O.useImperativeHandle(d,()=>({updateIndicator:qe,updateScrollButtons:lt}),[qe,lt]);const[St,ur]=ut("indicator",{className:xe(B.indicator,C.className),elementType:i$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:fe}}),dr=L.jsx(St,{...ur});let Br=0;const Co=O.Children.map(g,Oe=>{if(!O.isValidElement(Oe))return null;const ze=Oe.props.value===void 0?Br:Oe.props.value;ht.set(ze,Br);const yt=ze===D;return Br+=1,O.cloneElement(Oe,{fullWidth:E==="fullWidth",indicator:yt&&!pe&&dr,selected:yt,selectionFollowsFocus:_,onChange:w,textColor:N,value:ze,...Br===1&&D===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}})}),Yn=Oe=>{if(Oe.altKey||Oe.shiftKey||Oe.ctrlKey||Oe.metaKey)return;const ze=Ae.current,yt=tn(ze).activeElement;if(yt.getAttribute("role")!=="tab")return;let Gt=T==="horizontal"?"ArrowLeft":"ArrowUp",Cr=T==="horizontal"?"ArrowRight":"ArrowDown";switch(T==="horizontal"&&i&&(Gt="ArrowRight",Cr="ArrowLeft"),Oe.key){case Gt:Oe.preventDefault(),bd(ze,yt,S4);break;case Cr:Oe.preventDefault(),bd(ze,yt,x4);break;case"Home":Oe.preventDefault(),bd(ze,null,x4);break;case"End":Oe.preventDefault(),bd(ze,null,S4);break}},vn=xt(),[Ra,Pa]=ut("root",{ref:r,className:xe(B.root,u),elementType:r$,externalForwardedProps:{...it,...H,component:m},ownerState:ee}),[Ma,Ia]=ut("scroller",{ref:ye,className:B.scroller,elementType:n$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:{overflow:Pe.overflow,[U?`margin${i?"Left":"Right"}`:"marginBottom"]:$?void 0:-Pe.scrollbarWidth}}}),[rt,zr]=ut("list",{ref:Ae,className:xe(B.list,B.flexContainer),elementType:o$,externalForwardedProps:it,ownerState:ee,getSlotProps:Oe=>({...Oe,onKeyDown:ze=>{Yn(ze),Oe.onKeyDown?.(ze)}})});return L.jsxs(Ra,{...Pa,children:[vn.scrollButtonStart,vn.scrollbarSizeListener,L.jsxs(Ma,{...Ia,children:[L.jsx(rt,{"aria-label":l,"aria-labelledby":c,"aria-orientation":T==="vertical"?"vertical":null,role:"tablist",...zr,children:Co}),pe&&dr]}),vn.scrollButtonEnd]})});function l$(t){return Ke("MuiTextField",t)}Ve("MuiTextField",["root"]);const c$={standard:uo,filled:oy,outlined:sy},u$=t=>{const{classes:e}=t;return Ye({root:["root"]},l$,e)},d$=ce(ys,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),vr=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:c,color:d="primary",defaultValue:f,disabled:g=!1,error:u=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:x,id:w,InputLabelProps:T,inputProps:k,InputProps:I,inputRef:_,label:R,maxRows:P,minRows:C,multiline:M=!1,name:N,onBlur:D,onChange:E,onFocus:$,placeholder:H,required:q=!1,rows:U,select:W=!1,SelectProps:K,slots:re={},slotProps:Z={},type:V,value:ee,variant:B="outlined",...J}=n,de={...n,autoFocus:i,color:d,disabled:g,error:u,fullWidth:y,multiline:M,required:q,select:W,variant:B},pe=u$(de),ie=wa(w),fe=x&&ie?`${ie}-helper-text`:void 0,Se=R&&ie?`${ie}-label`:void 0,Ee=c$[B],_e={slots:re,slotProps:{input:I,inputLabel:T,htmlInput:k,formHelperText:m,select:K,...Z}},ke={},Le=_e.slotProps.inputLabel;B==="outlined"&&(Le&&typeof Le.shrink<"u"&&(ke.notched=Le.shrink),ke.label=R),W&&((!K||!K.native)&&(ke.id=void 0),ke["aria-describedby"]=void 0);const[Ie,nt]=ut("root",{elementType:d$,shouldForwardComponentProp:!0,externalForwardedProps:{..._e,...J},ownerState:de,className:xe(pe.root,c),ref:r,additionalProps:{disabled:g,error:u,fullWidth:y,required:q,color:d,variant:B}}),[Pe,Ce]=ut("input",{elementType:Ee,externalForwardedProps:_e,additionalProps:ke,ownerState:de}),[ht,ye]=ut("inputLabel",{elementType:Bd,externalForwardedProps:_e,ownerState:de}),[Ae,it]=ut("htmlInput",{elementType:"input",externalForwardedProps:_e,ownerState:de}),[Je,qe]=ut("formHelperText",{elementType:VA,externalForwardedProps:_e,ownerState:de}),[ve,at]=ut("select",{elementType:ho,externalForwardedProps:_e,ownerState:de}),Xe=L.jsx(Pe,{"aria-describedby":fe,autoComplete:o,autoFocus:i,defaultValue:f,fullWidth:y,multiline:M,name:N,rows:U,maxRows:P,minRows:C,type:V,value:ee,id:ie,inputRef:_,onBlur:D,onChange:E,onFocus:$,placeholder:H,inputProps:it,slots:{input:re.htmlInput?Ae:void 0},...Ce});return L.jsxs(Ie,{...nt,children:[R!=null&&R!==""&&L.jsx(ht,{htmlFor:ie,id:Se,...ye,children:R}),W?L.jsx(ve,{"aria-describedby":fe,id:ie,labelId:Se,value:ee,input:Xe,...at,children:l}):Xe,x&&L.jsx(Je,{id:fe,...qe,children:x})]})}),p$=He(L.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),f$=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),h$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),m$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),g$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),v$=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),cy=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),y$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),b$=He(L.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Bp=He(L.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Fi=He(L.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),ga=He(L.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uy=He(L.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),w$=He(L.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),x$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),jd=He(L.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),iE=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),S$=He(L.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),T$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),E$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),C$=He(L.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),k$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),_$=He(L.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),O$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),aE=He(L.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),R$=He(L.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),P$=He(L.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),M$=He(L.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),I$=He(L.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),A$=He(L.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),E4=He(L.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),D$=He(L.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),N$=He(L.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),iv=He(L.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),$$=He(L.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),L$=He(L.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),F$=He(L.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),B$=He(L.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),z$=He(L.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),j$=He(L.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),H$=He(L.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),q$=He(L.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),sE=He(L.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),W$=He(L.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),um=11/23/100;function C4(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substring(1,3),16),e.g=parseInt(t.substring(3,5),16),e.b=parseInt(t.substring(5,7),16);else if(t.length===4){const r=t[1],n=t[2],o=t[3];e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function U$(t){return`#${Math.round(t.r).toString(16).padStart(2,"0")}${Math.round(t.g).toString(16).padStart(2,"0")}${Math.round(t.b).toString(16).padStart(2,"0")}`}function X$(t,e,r){const n=C4(t),o=C4(e);return n.r+=o.r*(.05+um*(r-1)),n.g+=o.g*(.05+um*(r-1)),n.b+=o.b*(.05+um*(r-1)),U$(n)}function wd(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:X$(t,e,n)};return r}function V$(t,e){let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[200],"&:hover":{color:Tr[100]}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[200],"&:hover":{color:Tr[100]}}},MuiPaper:wd("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="NW"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#00af78"},secondary:{main:"#005a40"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="HA"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:"#db0a33","&:hover":{color:"#FF0a33"}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#970720"},secondary:{main:"#db0a33"},expert:"#db0a33",text:{primary:"#ffffff",secondary:"#ffffff"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:r.palette?.primary?.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:z1[300],dark:z1[400]});const o=Ic(r),i=o.palette;return Ic(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:i.grey?.[300],color:i.getContrastText&&i.grey?.[300]?i.getContrastText(i.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:i.text?.primary,borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${i.action?.disabledBackground}`},"&:hover":{borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Dt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}},{props:{variant:"text",color:"grey"},style:{color:i.text?.primary,"&:hover":{backgroundColor:Dt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}}]}}})}function G$(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function K$(t){return t?.rows.map(e=>e.value).filter(e=>!!e)??[]}function k4(t){return t?.startsWith("system.host.")||(t=`system.host.${t}`),t}function _4(t){return new Promise(e=>{setTimeout(e,t)})}function xd(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}typeof globalThis.process<"u"&&(globalThis.location||={href:"http://localhost:8081/",protocol:"http:",host:"localhost:8081",pathname:"/",hostname:"localhost",reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(t,e)=>{globalThis.localStorage._keys[t]=e},getItem:t=>t in globalThis.localStorage._keys?globalThis.localStorage._keys[t]:null,removeItem:t=>{t in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[t]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:"en"});var xi;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(xi||(xi={}));var Ei;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ei||(Ei={}));Ei.PERMISSION_ERROR;Ei.NOT_CONNECTED;const Y$=["material","echarts","vis"];class Ir{props;connId;lastAccessToken=null;ignoreState="";connected=!1;subscribed=!1;firstConnect=!0;waitForRestart=!1;loaded=!1;simStates={};objectViewCached;constructor(e){this.props=this.applyDefaultProps(e),this.connId=`${this.props.name?`${this.props.name}-`:""}${Math.round(Math.random()*1e6).toString().padStart(6,"0")}`,this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||globalThis.location.protocol,host:e.host||globalThis.location.hostname,port:e.port||(globalThis.location.port==="3000"?8081:globalThis.location.port),ioTimeout:Math.max(e.ioTimeout||2e4,2e4),cmdTimeout:Math.max(e.cmdTimeout||5e3,5e3),admin5only:e.admin5only||!1,autoSubscribes:e.autoSubscribes??[],autoSubscribeLog:e.autoSubscribeLog??!1,doNotLoadACL:e.doNotLoadACL??!0,doNotLoadAllObjects:e.doNotLoadAllObjects??!0}}statesSubscribes={};filesSubscribes={};objectsSubscribes={};objects={};states={};acl=null;isSecure=!1;onReadyDone=!1;onConnectionHandlers=[];onLogHandlers=[];onCmdStdoutHandler;onCmdStderrHandler;onCmdExitHandler;onError(e){(this.props.onError??console.error)(e)}_socket;_waitForSocketPromise;_waitForFirstConnectionPromise=G$();_instanceSubscriptions={};_promises={};_authTimer=null;_refreshTimer=null;_systemConfig;get systemConfig(){return this._systemConfig}systemLang="en";static isWeb(){return globalThis.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(this.props.connect){e();return}if(typeof globalThis.io>"u"&&typeof globalThis.iob>"u")if(typeof globalThis.registerSocketOnLoad=="function")globalThis.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(globalThis.io||globalThis.iob)return e();await _4(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||globalThis.location.protocol).replace(":",""),o=globalThis.location.pathname;if(globalThis.location.hostname==="iobroker.net"||globalThis.location.hostname==="iobroker.pro")o="";else{if(globalThis.socketUrl){const d=new globalThis.URL(globalThis.socketUrl);e=d.hostname,r=d.port,n=d.protocol.replace(":","")}const c=o.lastIndexOf("/");if(c!==-1&&(o=o.substring(0,c+1)),Ir.isWeb()){const d=o.split("/");d.length>2&&(d.pop(),d.pop(),Y$.includes(d[d.length-1])&&d.pop(),o=d.join("/"),o.endsWith("/")||(o+="/"))}}const i=r?`${n}://${e}:${r}`:`${n}://${e}`,l=this.props.connect||(globalThis.io||globalThis.iob).connect;return this._socket=l(i,{path:o.endsWith("/")?`${o}socket.io`:`${o}/socket.io`,query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on("connect",c=>{globalThis.addEventListener?.("storage",this.onAccessTokenUpdated);const d=Ir.readTokens();if(d&&!d.owner){const f=Date.now();this.saveTokens({access_token:d.access_token,refresh_token:d.refresh_token,expires_in:Math.round((d.expires_in.getTime()-f)/1e3),refresh_token_expires_in:Math.round((d.refresh_token_expires_in.getTime()-f)/1e3),token_type:"Bearer"},d.stayLoggedIn)}this.onReadyDone=!1,c!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(f=>{const[g,u,m]=f.version.split(".");parseInt(g,10)*1e4+parseInt(u,10)*100+parseInt(m,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(x,w)=>this.onPreConnect(x,w))}).catch(f=>this.onError({message:f.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(f,g)=>{this.onPreConnect(f,g)})}),this._socket.on("reconnect",()=>{this.onReadyDone=!1,this.props.onProgress?.(xi.READY),this.connected=!0,this.waitForRestart?globalThis.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(c=>c(!0)))}),this._socket.on("disconnect",()=>{this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,this.props.onProgress?.(xi.CONNECTING),this.onConnectionHandlers.forEach(c=>c(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",c=>{this.props.onLog?.(c),this.onLogHandlers.forEach(d=>d(c))}),this._socket.on("error",c=>{let d;c==null?d="":typeof c.toString=="function"?d=c.toString():(d=JSON.stringify(c),console.error(`Received strange error: ${d}`)),d.includes("User not authorized")?this.authenticate():d.includes("websocket error")?(console.error(`Socket Error => reload: ${c}`),globalThis.location.reload()):console.error(`Socket Error: ${c}`)}),this._socket.on("connect_error",c=>console.error(`Connect error: ${c}`)),this._socket.on("permissionError",c=>this.onError({message:"no permission",operation:c.operation,type:c.type,id:c.id||""})),this._socket.on("objectChange",(c,d)=>{setTimeout(()=>this.objectChange(c,d),0)}),this._socket.on("stateChange",(c,d)=>{setTimeout(()=>this.stateChange(c,d),0)}),this._socket.on("im",(c,d,f)=>{setTimeout(()=>this.instanceMessage(c,d,f),0)}),this._socket.on("fileChange",(c,d,f)=>{setTimeout(()=>this.fileChange(c,d,f),0)}),this._socket.on("cmdStdout",(c,d)=>{this.onCmdStdoutHandler?.(c,d)}),this._socket.on("cmdStderr",(c,d)=>{this.onCmdStderrHandler?.(c,d)}),this._socket.on("cmdExit",(c,d)=>{this.onCmdExitHandler?.(c,d)}),Promise.resolve()}onPreConnect(e,r){this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?globalThis.location.reload():(this.firstConnect?this.loadData().catch(n=>{console.error(`Cannot load data: ${n}`)}):this.props.onProgress?.(xi.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(n=>n(!0)),this.checkAccessTokenExpire()),this._waitForFirstConnectionPromise.resolve()}static readTokens(){let e=globalThis.sessionStorage.getItem("iob_tokens");const r=!e;if(e||(e=globalThis.localStorage.getItem("iob_tokens")),!e)return null;const[n,o,i,l,c]=e.split(";"),d=new Date(o);return d.getTime(){if(e.key==="iob_tokens"){const r=Ir.readTokens();r&&(console.log(`Tab ${this.connId} received updated token: ${r.access_token}`),this.updateTokenExpiration(r.access_token))}};updateTokenExpiration(e){this.lastAccessToken!==e&&(this.lastAccessToken=e,this._socket.emit("updateTokenExpiration",e,(r,n)=>{r?(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token: ${r}`),globalThis.location.reload()):n?console.log(`[UPDATE/${new Date().toISOString()}] server accepted new token: ${e}`):(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token`),globalThis.location.reload())})),this.checkAccessTokenExpire()}refreshTokens(e,r){if(!e){console.log(`[REFRESH/${new Date().toISOString()}] No token structure found => reloading the page`),setTimeout(()=>globalThis.location.reload(),500);return}r||!e.owner||e.owner===this.connId?(console.log(`[REFRESH/${new Date().toISOString()}] claim ownership of the token`),this.acquireTokenLock()?(console.log(`[REFRESH/${new Date().toISOString()}] refreshing token`),fetch("./oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&refresh_token=${e.refresh_token}&client_id=ioBroker&stayloggedin=${e.stayLoggedIn}`}).then(n=>{if(n.ok)return n.json();throw new Error("Cannot refresh access token")}).then(n=>{if(n.access_token)console.log(`[REFRESH/${new Date().toISOString()}] received new token: ${n.access_token}`),this.saveTokens(n,e.stayLoggedIn),this.releaseTokenLock(),this.updateTokenExpiration(n.access_token);else throw new Error("Cannot get access token")}).catch(n=>{console.warn(`[REFRESH/${new Date().toISOString()}] cannot refresh token: ${n}`),this.releaseTokenLock(),this.deleteTokens(e.stayLoggedIn),console.error(n),globalThis.location.reload()})):(console.log(`[REFRESH/${new Date().toISOString()}] Someone else is updating the token, so wait for the next check`),this.checkAccessTokenExpire())):this.lastAccessToken!==e.access_token&&this.updateTokenExpiration(e.access_token)}acquireTokenLock(){const e=Date.now(),r=globalThis.localStorage.getItem("iob_token_semaphore");if(r)try{const o=JSON.parse(r);if(e{o?(console.log(`[TOKEN/${new Date().toISOString()}] Token will be prolonged`),this.refreshTokens(e,n)):(console.log(`[TOKEN/${new Date().toISOString()}] Token will not be prolonged. Reloading the page`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))})):(console.log(`[TOKEN/${new Date().toISOString()}] No tokenTimeoutHandler defined. Prolonging the token`),this.refreshTokens(e,n))):this.lastAccessToken!==e.access_token?(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token, but we will inform the server about new token`),this.refreshTokens(e)):(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token and the token did not change. Check in 3 seconds if the owner updated the token`),this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},3e3)):(console.log(`[TOKEN/${new Date().toISOString()}] We do not have a refresh token, so we need to reauthenticate`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))}else this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},r-Date.now()-3e4>12e4?12e4:r-Date.now()-3e4)}}}static isCloud(){return globalThis.location.hostname.includes("amazonaws.com")||globalThis.location.hostname.includes("iobroker.in")?!0:typeof globalThis.socketUrl>"u"?!1:globalThis.socketUrl.includes("iobroker.in")||globalThis.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o||null)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await _4(Ir.isCloud()?5e3:1e3)}}async doLoadData(){if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(e){this.onError(`Cannot read user permissions: ${e}`);return}try{this.props.admin5only&&!Ir.isWeb()&&(!globalThis.vendorPrefix||globalThis.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(e){this.onError(`Cannot read system config: ${e}`);return}this._systemConfig&&(this.systemLang=this._systemConfig.common?.language,this.systemLang||(this.systemLang=globalThis.navigator.userLanguage||globalThis.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang="en"),this._systemConfig.common.language=this.systemLang)),this.props.onLanguage?.(this.systemLang),this.loaded=!0,this.props.onProgress?.(xi.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),this.props.onProgress?.(xi.READY),this.onReadyDone||(this.onReadyDone=!0,this.props.onReady?.(this.objects))}}authenticate(){globalThis.location.search.includes("&href=")?globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}${globalThis.location.search}`:globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}?login&href=${encodeURIComponent(globalThis.location.search+globalThis.location.hash)}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let i;if(Array.isArray(r)?i=r:i=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const l=[];for(let c=0;cc.includes("*"))){let c;for(let d=0;dconsole.error(`Cannot call state change handler: ${m}`))}}}else try{const c=await(Ir.isWeb()?this.getStates(i):this.getForeignStates(i));if(c)for(const[d,f]of Object.entries(c)){const g=o(d,f);g instanceof Promise&&g.catch(u=>console.error(`Cannot call state change handler: ${u}`))}}catch(c){console.error(`Cannot getState "${i.join(", ")}": ${c.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const d=c(e,r,n);d instanceof Promise&&d.catch(f=>console.error(`Cannot call object change handler: ${f}`))}catch(d){console.error(`Error by callback of objectChange: ${d}`)}});if(o){const i=this.props.onObjectChange?.(e,r);i instanceof Promise&&i.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const i=o(e,r??null);i instanceof Promise&&i.catch(l=>console.error(`Cannot call state change handler: ${l}`))}catch(i){console.error(`Error by callback of stateChanged: ${i}`)}}instanceMessage(e,r,n){this._instanceSubscriptions[r]?.forEach(o=>{if(o.messageType===e){const i=o.callback(n,r,e);i instanceof Promise&&i.catch(l=>console.error(`Cannot call instance message handler: ${l}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const i of o.cbs)try{i(e,r,n)}catch(l){console.error(`Error by callback of fileChange: ${l}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const i=[];for(let l=0;l{const u={elapsed:!1,clearTimeout:()=>{}};let m;n!==!1&&(m=setTimeout(()=>{u.elapsed=!0,o?.(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],g(new Error(Ei.TIMEOUT))},n??this.props.cmdTimeout),u.clearTimeout=()=>{clearTimeout(m)});try{await c(f,g,u)}catch(y){e&&this._promises[e]instanceof Promise&&delete this._promises[e],g(new Error(y.toString()))}});return e&&(this._promises[e]=d),d}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,i)=>{this.states=i??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,i)=>{o?n(o):r(i)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,i)=>{o?n(o):r(i)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,i=>{i?o(i):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,i)=>{if(e&&e===this.ignoreState){let l;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?l=r:l={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=l,this.statesSubscribes[e])for(const c of this.statesSubscribes[e].cbs)try{const d=c(e,l);d instanceof Promise&&d.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(d){console.error(`Error by callback of stateChanged: ${d}`)}o();return}this._socket.emit("setState",e,r,l=>{l?i(l):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Ir.isWeb()?"getObjects":"getAllObjects",(i,l)=>{r||this.props.onProgress?.(xi.OBJECTS_LOADED),i?o(i):(this.objects=l??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,i)=>{o?n(o):r(i)})}})}_subscribe(e){if(e&&!this.subscribed){this.subscribed=!0,this.props.autoSubscribes?.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("subscribeObjects",r),Object.keys(this.objectsSubscribes).forEach(n=>this._socket.emit("subscribeObjects",n)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("subscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,i]=n.split("$%$");this._socket.emit("subscribeFiles",o,i)})}else if(!e&&this.subscribed){this.subscribed=!1,this.props.autoSubscribes?.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("unsubscribeObjects",r),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("unsubscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,i]=n.split("$%$");this._socket.emit("unsubscribeFiles",o,i)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},i=>{i?o(i):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},i=>{i?o(i):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,i=>{i?o(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,i)=>{o?n(o):r(i)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,i=>{o(i)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,i=>{i?o(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,1)}registerCmdStdoutHandler(e){this.onCmdStdoutHandler=e}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(e){this.onCmdStderrHandler=e}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(e){this.onCmdExitHandler=e}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(e,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(i,l)=>{if(i)o(i);else{const c={};if(l)for(let d=0;d{n||="",o||="香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(c,d)=>{if(c)l(c);else{const f={};if(d&&d.rows)for(let g=0;g{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{n?r(n):e(o.rows?.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(i,l)=>{i?o(i):n(l)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(l,c,d)=>{l?i(l):o({file:c,mimeType:d})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,l=>{l?i(l):o()});else{const l=btoa(new Uint8Array(n).reduce((c,d)=>c+String.fromCharCode(d),""));this._socket.emit("writeFile64",e,r,l,c=>{c?i(c):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,i=>{i?o(i):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,i=>{i?o(i):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("rename",e,r,n,l=>{l?i(l):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("renameFile",e,r,n,l=>{l?i(l):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(i,l,c)=>{e=k4(e),this._socket.emit("cmdExec",e,n,r,d=>{c.elapsed||(c.clearTimeout(),d?l(d):i())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??={},n.common??={},n.native??={},r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,i)=>{o?n(o):(i??={},i.common??={},i.native??={},r(i))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,i)=>{o?n(o):r(i??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(i,l)=>{i?o(i):n(l)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(i,l)=>{i?o(i):n(l)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(i,l,c,d)=>{i?o(i):n({values:l,sessionId:d,step:c})})}})}getIpAddresses(e,r){return e=k4(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n(o?.common.address??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,i,l)=>{o&&!i&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:i,serverName:l})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(i,l)=>{i?o(i):n(!!l)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{const r=await this.getObject("system.meta.uuid");e(r?.native?.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(i,l)=>{i?o(i):n(l)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",i=`${o}香`,l=await this.getObjectViewSystem("instance",o,i),c=Object.values(l);n(e?c.filter(d=>d.common.name===e):c)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),i=Object.values(o);n(e?i.filter(l=>l.common.name===e):i)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,i)=>{o?n(o):r(K$(i))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(i,l)=>{this._socket.emit("clientSubscribe",e,r,n,(c,d)=>{c?l(c):d&&(d.error?l(d.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),i(d)))})}})}unsubscribeFromInstance(e,r,n){e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const i=[];do{o=!1;const l=this._instanceSubscriptions[e]?.findIndex(c=>(!r||c.messageType===r)&&(!n||c.callback===n));if(l!=null&&l!==-1){o=!0;const c=this._instanceSubscriptions[e][l].messageType;this._instanceSubscriptions[e].splice(l,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(f=>f.messageType===c)||i.push(this.request({commandTimeout:!1,executor:(f,g)=>{this._socket.emit("clientUnsubscribe",e,r,(u,m)=>u?g(u):f(m))}}))}}while(o&&(!n||!r));return i.length?Promise.all(i).then(l=>!!l.find(c=>c)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}destroy(){if(this._socket){const e=this._socket;try{typeof e.destroy=="function"?e.destroy():typeof e.close=="function"&&e.close(!0)}catch{}}globalThis.removeEventListener?.("storage",this.onAccessTokenUpdated),this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this._refreshTimer&&(clearTimeout(this._refreshTimer),this._refreshTimer=null),this.onConnectionHandlers.length=0,this.onLogHandlers.length=0;for(const e of Object.keys(this.statesSubscribes))delete this.statesSubscribes[e];for(const e of Object.keys(this.objectsSubscribes))delete this.objectsSubscribes[e];for(const e of Object.keys(this.filesSubscribes))delete this.filesSubscribes[e];this._instanceSubscriptions={},this.connected=!1,this.onReadyDone=!1}}function J$(){const t=document.getSelection();if(!t?.rangeCount)return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const O4={"text/plain":"Text","text/html":"Url",default:"Text"},Q$="Copy to clipboard: #{key}, Enter";function Z$(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function eL(t,e){let r,n,o,i,l=!1;e=e||{};const c=e.debug||!1;try{if(r=J$(),n=document.createRange(),o=document.getSelection(),i=document.createElement("span"),i.textContent=t,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top="0px",i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.userSelect="text",i.addEventListener("copy",f=>{if(f.stopPropagation(),e?.format)if(f.preventDefault(),typeof f.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData?.clearData();const g=O4[e.format]||O4.default;window.clipboardData?.setData(g,t)}else f.clipboardData?.clearData(),f.clipboardData?.setData(e.format,t)}),document.body.appendChild(i),n.selectNodeContents(i),o?.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){c&&console.error("unable to copy using execCommand: ",d),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),l=!0}catch(f){c&&console.error("unable to copy using clipboardData: ",f),c&&console.error("falling back to prompt");const g=Z$("message"in e?e.message||"":Q$);window.prompt(g,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),i&&document.body.removeChild(i),r&&r()}return l}class z{static translations={};static unknownTranslations=[];static lang=window.sysLang||"en";static _disableWarning=!1;static setLanguage(e){e&&(z.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(i=>{const l=i,c={},d=n[l];Object.keys(d).forEach(f=>{f&&d&&(f.startsWith(o)?c[f]=d[f]:c[`${o}${f}`]=d[f])}),e[l]=c})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;z.translations[o]||={},Object.assign(z.translations[o],e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(i=>{const l=i,c=z.translations[l];c?c[n]?c[n]!==o[l]&&console.warn(`Translation for word "${n}" in "${l}" was ignored: existing = "${c[n]}", new = ${o[l]}`):c[n]=o[l]:console.warn(`Used unknown language: ${l}`)})});else{z.translations[r]||console.warn(`Used unknown language: ${r}`),z.translations[r]||={};const n=z.translations[r];Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(z.translations=e)}static getLanguage(){return z.lang}static t(e,...r){const n=z.translations[z.lang];if(n){const o=n[e];if(o)e=o;else if(z.unknownTranslations.includes(e)||(z.unknownTranslations.push(e),!z._disableWarning&&console.log(`Translate: ${e}`)),z.lang!=="en"&&z.translations.en){const i=z.translations.en[e];i&&(e=i)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(z.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):e&&typeof e=="object"&&(z.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(z.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){z._disableWarning=!!e}}window.i18nShow=z.i18nShow;window.i18nDisableWarning=z.disableWarning;const io="material",tL=["Su","Mo","Tu","We","Th","Fr","Sa"],rL=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dm={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},R4={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"};class Ge{static namespace=io;static INSTANCES="instances";static dateFormat=["DD","MM"];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const i=Math.floor(e).toString().padStart(2,"0");let l="";return r&&(l+=`${r} ${z.t("ra_daysShortText")} `),l+=`${n}:${o}:${i}`,l}static getObjectName(e,r,n,o,i){const l=e[r];let c;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n?.name){const d=n.name;typeof d=="object"?c=o.language&&d[o.language]||d.en:c=d}else if(i&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!i&&l?.common){const d=l.common.name||l.common.desc;d&&typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else{const d=r.lastIndexOf(".");c=r.substring(d+1).replace(/[_.]/g," "),c=Ge.CapitalWords(c)}return c?.trim()||""}static getObjectNameFromObj(e,r,n,o,i){const l=e;let c=e?._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r?.name){const d=r.name;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d}else if(o&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!o&&l?.common?.name){let d=l.common.name;!d&&l.common.desc&&(d=l.common.desc),typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}return i?c:c.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[io];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subOrder&&i[l].subOrder[r])return JSON.parse(JSON.stringify(i[l].subOrder[r]))}else if(i[l].order)return JSON.parse(JSON.stringify(i[l].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[io];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subURLs&&i[l].subURLs[r])return JSON.parse(JSON.stringify(i[l].subURLs[r]))}else if(i[l].URLs)return JSON.parse(JSON.stringify(i[l].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[i]=o.splice(r,1);return o.splice(n,0,i),o}static getSettings(e,r,n){let o;const i=e?._id||r?.id;let l;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?l=e.common:l=e,l?.custom?(o=l.custom,o=o[io]&&o[io][r.user||"admin"]?JSON.parse(JSON.stringify(o[io][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),l&&(!o.color&&l.color&&(o.color=l.color),!o.icon&&l.icon&&(o.icon=l.icon),!o.name&&l.name&&(o.name=l.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&i){const c=i.lastIndexOf(".");o.name=i.substring(c+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=Ge.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[io]=e.common.custom[io]||{},e.common.custom[io][n.user||"admin"]=r;const o=e.common.custom[io][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e?.icon?e.icon.length<=2?v.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?v.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):v.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){if(typeof e=="object"&&(r=e,e=r?._id),r?.common?.icon){let n=r.common.icon;if(typeof n=="string"&&n.length<=2||n.startsWith("data:image"))return n;const o=e.split(".");return o[0]==="system"?n=`adapter/${o[2]}${n.startsWith("/")?"":"/"}${n}`:n=`adapter/${o[0]}${n.startsWith("/")?"":"/"}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?n=`../../${n}`:window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(e){return e?Ge.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,i;const l=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(l&&l.length===4)n=parseInt(l[1],10),o=parseInt(l[2],10),i=parseInt(l[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16)}return n*.299+o*.587+i*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}static getWindDirection(e){return e>=0&&e<11.25?"N":e>=11.25&&e<33.75?"NNE":e>=33.75&&e<56.25?"NE":e>=56.25&&e<78.75?"ENE":e>=78.75&&e<101.25?"E":e>=101.25&&e<123.75?"ESE":e>=123.75&&e<146.25?"SE":e>=146.25&&e<168.75?"SSE":e>=168.75&&e<191.25?"S":e>=191.25&&e<213.75?"SSW":e>=213.75&&e<236.25?"SW":e>=236.25&&e<258.75?"WSW":e>=258.75&&e<281.25?"W":e>=281.25&&e<303.75?"WNW":e>=303.75&&e<326.25?"NW":e>=326.25&&e<348.75?"NNW":"N"}static padding(e){return typeof e=="string"?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(e){e&&(Ge.dateFormat=e.toUpperCase().split(/[.-/]/),Ge.dateFormat.splice(Ge.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],i=o.find(l=>l>31);if(i!==void 0){o.splice(o.indexOf(i),1);const l=o.find(c=>c>12);l?(o.splice(o.indexOf(l),1),e=new Date(i,o[0]-1,l)):Ge.dateFormat[0][0]==="M"&&Ge.dateFormat[1][0]==="D"?(e=new Date(i,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[1]-1,o[0]))):Ge.dateFormat[0][0]==="D"&&Ge.dateFormat[1][0]==="M"?(e=new Date(i,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=z.t(`ra_dow_${tL[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${z.t(`ra_month_${rL[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const i=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),i&&n.push(v.createElement("span",{key:`a${o++}`},i)),r[0].startsWith(""))n.push(v.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(v.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(v.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return l?.common?.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const i=e[r];return i?.common?.custom&&i.common.custom[n]&&i.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=e?.common?.custom?.[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName={}):o.common.smartName={}}static removeSmartName(e,r,n){const o=e;n?o?.common?.custom?.[r]&&(o.common.custom[r]=null):o.common.smartName=null}static updateSmartName(e,r,n,o,i,l){const c=z.getLanguage(),d=e;if(typeof d.common.smartName=="string"){const f=d.common.smartName;d.common.smartName={},d.common.smartName[c]=f}if(d.native?.byON){delete d.native.byON;let f=d.common.smartName;f&&typeof f!="object"&&(f={en:f,[c]:f}),d.common.smartName=f}if(o!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},o?d.common.custom[i].smartName.smartType=o:delete d.common.custom[i].smartName.smartType):(d.common.smartName||={},o?d.common.smartName.smartType=o:delete d.common.smartName.smartType)),n!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},d.common.custom[i].smartName.byON=n):(d.common.smartName||={},d.common.smartName.byON=n)),r!==void 0){let f;if(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},f=d.common.custom[i].smartName):(d.common.smartName||={},f=d.common.smartName),f[c]=r,f&&(!f[c]||f[c]===d.common.name&&!d.common.role)){delete f[c];let g=!0;for(const u in f)if(Object.prototype.hasOwnProperty.call(f,u)){g=!1;break}if(g)if(l&&d.common.custom?.[i])d.common.custom[i].smartName.byON===void 0?delete d.common.custom[i]:(delete d.common.custom[i].en,delete d.common.custom[i].de,delete d.common.custom[i].ru,delete d.common.custom[i].nl,delete d.common.custom[i].pl,delete d.common.custom[i].it,delete d.common.custom[i].fr,delete d.common.custom[i].pt,delete d.common.custom[i].es,delete d.common.custom[i].uk,delete d.common.custom[i]["zh-cn"]);else if(d.common.smartName&&d.common.smartName.byON!==void 0){const u=d.common.smartName;delete u.en,delete u.de,delete u.ru,delete u.nl,delete u.pl,delete u.it,delete u.fr,delete u.pt,delete u.es,delete u.uk,delete u["zh-cn"]}else d.common.smartName=null}}}static updateSmartNameEx(e,r){const n=z.getLanguage(),o=e;if(typeof o.common.smartName=="string"){const i=o.common.smartName;o.common.smartName={},o.common.smartName[n]=i}if(o.native?.byON){delete o.native.byON;let i=o.common.smartName;i&&typeof i!="object"&&(i={en:i,[n]:i}),o.common.smartName=i}if(r.smartType!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},r.smartType?o.common.custom[r.instanceId].smartName.smartType=r.smartType:delete o.common.custom[r.instanceId].smartName.smartType):(o.common.smartName||={},r.smartType?o.common.smartName.smartType=r.smartType:delete o.common.smartName.smartType)),r.byON!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.byON=r.byON):(o.common.smartName||={},o.common.smartName.byON=r.byON)),r.noAutoDetect!==void 0&&(r.noCommon?r.noAutoDetect?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.noAutoDetect=r.noAutoDetect):o.common.custom?.[r.instanceId]?.smartName&&delete o.common.custom[r.instanceId].smartName.noAutoDetect:!r.noAutoDetect&&o.common.smartName?delete o.common.smartName.noAutoDetect:(o.common.smartName||={},o.common.smartName.noAutoDetect=r.noAutoDetect)),r.smartName!==void 0){let i;if(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},i=o.common.custom[r.instanceId].smartName):(o.common.smartName||={},i=o.common.smartName),i[n]=r.smartName,i&&(!i[n]||i[n]===o.common.name&&!o.common.role)){delete i[n];let l=!0;for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){l=!1;break}if(l)if(r.noCommon&&o.common.custom?.[r.instanceId])o.common.custom[r.instanceId].smartName.byON===void 0?delete o.common.custom[r.instanceId]:(delete o.common.custom[r.instanceId].en,delete o.common.custom[r.instanceId].de,delete o.common.custom[r.instanceId].ru,delete o.common.custom[r.instanceId].nl,delete o.common.custom[r.instanceId].pl,delete o.common.custom[r.instanceId].it,delete o.common.custom[r.instanceId].fr,delete o.common.custom[r.instanceId].pt,delete o.common.custom[r.instanceId].es,delete o.common.custom[r.instanceId].uk,delete o.common.custom[r.instanceId]["zh-cn"]);else if(o.common.smartName&&o.common.smartName.byON!==void 0){const c=o.common.smartName;delete c.en,delete c.de,delete c.ru,delete c.nl,delete c.pl,delete c.it,delete c.fr,delete c.pt,delete c.es,delete c.uk,delete c["zh-cn"]}else o.common.smartName=null}}}static disableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName=!1):o.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),eL(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const c=(255-o).toString(16),d=(255-i).toString(16),f=(255-l).toString(16);return`#${c.padStart(2,"0")}${d.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else e.startsWith("#")&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let i=(r*.4124+n*.3576+o*.1805)/.95047,l=r*.2126+n*.7152+o*.0722,c=(r*.0193+n*.1192+o*.9505)/1.08883;return i=i>.008856?i**.33333333:7.787*i+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,c=c>.008856?c**.33333333:7.787*c+.137931,[116*l-16,500*(i-l),200*(l-c)]}static colorDistance(e,r){const n=Ge.color2rgb(e),o=Ge.color2rgb(r);if(!n||!o)return 0;const i=Ge.rgb2lab(n),l=Ge.rgb2lab(o),c=i[0]-l[0],d=i[1]-l[1],f=i[2]-l[2],g=Math.sqrt(i[1]*i[1]+i[2]*i[2]),u=Math.sqrt(l[1]*l[1]+l[2]*l[2]),m=g-u;let y=d*d+f*f-m*m;y=y<0?0:Math.sqrt(y);const x=1+.045*g,w=1+.015*g,T=c,k=m/x,I=y/w,_=T*T+k*k+I*I;return _<0?0:_}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),i=decodeURIComponent(o[0]).trim();if(o.length>1){const l=decodeURIComponent(o[1]);if(l==="true")r[i]=!0;else if(l==="false")r[i]=!1;else{const c=parseFloat(l);c.toString()===l?r[i]=c:r[i]=l}}else r[i]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${i}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${i}`,n+=` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`,n}static formatTime(e){if(e){e=Math.round(e);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),i=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){const r=Ge.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` + `:null,dD=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${me(n)}`,r],dashed:["dashed",`dashedColor${me(n)}`],bar1:["bar","bar1",`barColor${me(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${me(n)}`,r==="buffer"&&`color${me(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ye(o,sD,e)},iy=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Op(t.palette[e].main,.62):_p(t.palette[e].main,.5),pD=ce("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:iy(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),fD=ce("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${me(r.color)}`]]}})(Qe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>{const r=iy(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),uD||{animation:`${ov} 3s infinite linear`}),hD=ce("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${tv}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${tv}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:lD||{animation:`${rv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),mD=ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Qe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:iy(t,e),transition:`transform .${tv}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:cD||{animation:`${nv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),gD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:l,valueBuffer:c,variant:d="indeterminate",...f}=n,g={...n,color:i,variant:d},u=dD(g),m=ol(),y={},x={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&l!==void 0){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let w=l-100;m&&(w=-w),x.bar1.transform=`translateX(${w}%)`}if(d==="buffer"&&c!==void 0){let w=(c||0)-100;m&&(w=-w),x.bar2.transform=`translateX(${w}%)`}return L.jsxs(pD,{className:xe(u.root,o),ownerState:g,role:"progressbar",...y,ref:r,...f,children:[d==="buffer"?L.jsx(fD,{className:u.dashed,ownerState:g}):null,L.jsx(hD,{className:u.bar1,ownerState:g,style:x.bar1}),d==="determinate"?null:L.jsx(mD,{className:u.bar2,ownerState:g,style:x.bar2})]})});function vD(t){return Ke("MuiLink",t)}const yD=Ve("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),bD=({theme:t,ownerState:e})=>{const r=e.color,n=Ti(t,`palette.${r}.main`,!1)||Ti(t,`palette.${r}`,!1)||e.color,o=Ti(t,`palette.${r}.mainChannel`)||Ti(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Dt(n,.4)},c4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wD=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,i={root:["root",`underline${me(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Ye(i,vD,e)},xD=ce(dn,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${me(r.underline)}`],r.component==="button"&&e.button]}})(Qe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:Dt(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Dt(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Dt(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yD.focusVisible}`]:{outline:"auto"}}}]}))),u4=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiLink"}),o=Ho(),{className:i,color:l="primary",component:c="a",onBlur:d,onFocus:f,TypographyClasses:g,underline:u="always",variant:m="inherit",sx:y,...x}=n,[w,T]=O.useState(!1),k=P=>{Vs(P.target)||T(!1),d&&d(P)},I=P=>{Vs(P.target)&&T(!0),f&&f(P)},_={...n,color:l,component:c,focusVisible:w,underline:u,variant:m},R=wD(_);return L.jsx(xD,{color:l,className:xe(R.root,i),classes:g,component:c,onBlur:k,onFocus:I,ref:r,ownerState:_,variant:m,...x,sx:[...c4[l]===void 0?[{color:l}]:[],...Array.isArray(y)?y:[y]],style:{...x.style,...u==="always"&&l!=="inherit"&&!c4[l]&&{"--Link-underlineColor":bD({theme:o,ownerState:_})}}})}),Nc=O.createContext({});function SD(t){return Ke("MuiList",t)}Ve("MuiList",["root","padding","dense","subheader"]);const TD=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return Ye({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},SD,e)},ED=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),CD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f,...g}=n,u=O.useMemo(()=>({dense:c}),[c]),m={...n,component:l,dense:c,disablePadding:d},y=TD(m);return L.jsx(Nc.Provider,{value:u,children:L.jsxs(ED,{as:l,className:xe(y.root,i),ref:r,ownerState:m,...g,children:[f,o]})})});function kD(t){return Ke("MuiListItemIcon",t)}const d4=Ve("MuiListItemIcon",["root","alignItemsFlexStart"]),_D=t=>{const{alignItems:e,classes:r}=t;return Ye({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},kD,r)},OD=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Qe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),RD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiListItemIcon"}),{className:o,...i}=n,l=O.useContext(Nc),c={...n,alignItems:l.alignItems},d=_D(c);return L.jsx(OD,{className:xe(d.root,o),ownerState:c,ref:r,...i})});function PD(t){return Ke("MuiListItemText",t)}const Ls=Ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),MD=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:i}=t;return Ye({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},PD,e)},ID=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ls.primary}`]:e.primary},{[`& .${Ls.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Bx.root}:where(& .${Ls.primary})`]:{display:"block"},[`.${Bx.root}:where(& .${Ls.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),AD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiListItemText"}),{children:o,className:i,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:f,secondary:g,secondaryTypographyProps:u,slots:m={},slotProps:y={},...x}=n,{dense:w}=O.useContext(Nc);let T=d??o,k=g;const I={...n,disableTypography:l,inset:c,primary:!!T,secondary:!!k,dense:w},_=MD(I),R={slots:m,slotProps:{primary:f,secondary:u,...y}},[P,C]=ut("root",{className:xe(_.root,i),elementType:ID,externalForwardedProps:{...R,...x},ownerState:I,ref:r}),[M,N]=ut("primary",{className:_.primary,elementType:dn,externalForwardedProps:R,ownerState:I}),[D,E]=ut("secondary",{className:_.secondary,elementType:dn,externalForwardedProps:R,ownerState:I});return T!=null&&T.type!==dn&&!l&&(T=L.jsx(M,{variant:w?"body2":"body1",component:N?.variant?void 0:"span",...N,children:T})),k!=null&&k.type!==dn&&!l&&(k=L.jsx(D,{variant:"body2",color:"textSecondary",...E,children:k})),L.jsxs(P,{...C,children:[T,k]})});function lm(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function p4(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function JT(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Gl(t,e,r,n,o,i){let l=!1,c=o(t,e,e?r:!1);for(;c;){if(c===t.firstChild){if(l)return!1;l=!0}const d=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!JT(c,i)||d)c=o(t,c,r);else return c.focus(),!0}return!1}const DD=O.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:g,variant:u="selectedMenu",...m}=e,y=O.useRef(null),x=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});en(()=>{o&&y.current.focus()},[o]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:R})=>{const P=!y.current.style.width;if(_.clientHeight{const R=y.current,P=_.key;if(_.ctrlKey||_.metaKey||_.altKey){g&&g(_);return}const M=tn(R).activeElement;if(P==="ArrowDown")_.preventDefault(),Gl(R,M,f,d,lm);else if(P==="ArrowUp")_.preventDefault(),Gl(R,M,f,d,p4);else if(P==="Home")_.preventDefault(),Gl(R,null,f,d,lm);else if(P==="End")_.preventDefault(),Gl(R,null,f,d,p4);else if(P.length===1){const N=x.current,D=P.toLowerCase(),E=performance.now();N.keys.length>0&&(E-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&D!==N.keys[0]&&(N.repeating=!1)),N.lastTime=E,N.keys.push(D);const $=M&&!N.repeating&&JT(M,N);N.previousKeyMatched&&($||Gl(R,M,!1,d,lm,N))?_.preventDefault():N.previousKeyMatched=!1}g&&g(_)},T=yr(y,r);let k=-1;O.Children.forEach(l,(_,R)=>{if(!O.isValidElement(_)){k===R&&(k+=1,k>=l.length&&(k=-1));return}_.props.disabled||(u==="selectedMenu"&&_.props.selected||k===-1)&&(k=R),k===R&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(k+=1,k>=l.length&&(k=-1))});const I=O.Children.map(l,(_,R)=>{if(R===k){const P={};return i&&(P.autoFocus=!0),_.props.tabIndex===void 0&&u==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(_,P)}return _});return L.jsx(CD,{role:"menu",ref:T,className:c,onKeyDown:w,tabIndex:o?0:-1,...m,children:I})});function ND(t){return Ke("MuiPopover",t)}Ve("MuiPopover",["root","paper"]);function f4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function h4(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function m4(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function gd(t){return typeof t=="function"?t():t}const $D=t=>{const{classes:e}=t;return Ye({root:["root"],paper:["paper"]},ND,e)},LD=ce(GT,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),QT=ce(Gs,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),FD=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:g,container:u,elevation:m=8,marginThreshold:y=16,open:x,PaperProps:w={},slots:T={},slotProps:k={},transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:R="auto",TransitionProps:P={},disableScrollLock:C=!1,...M}=n,N=O.useRef(),D={...n,anchorOrigin:l,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:I,TransitionComponent:_,transitionDuration:R,TransitionProps:P},E=$D(D),$=O.useCallback(()=>{if(d==="anchorPosition")return c;const ke=gd(i),Ie=(ke&&ke.nodeType===1?ke:tn(N.current).body).getBoundingClientRect();return{top:Ie.top+f4(Ie,l.vertical),left:Ie.left+h4(Ie,l.horizontal)}},[i,l.horizontal,l.vertical,c,d]),H=O.useCallback(ke=>({vertical:f4(ke,I.vertical),horizontal:h4(ke,I.horizontal)}),[I.horizontal,I.vertical]),q=O.useCallback(ke=>{const Le={width:ke.offsetWidth,height:ke.offsetHeight},Ie=H(Le);if(d==="none")return{top:null,left:null,transformOrigin:m4(Ie)};const nt=$();let Pe=nt.top-Ie.vertical,Ce=nt.left-Ie.horizontal;const ht=Pe+Le.height,ye=Ce+Le.width,Ae=Vn(gd(i)),it=Ae.innerHeight-y,Je=Ae.innerWidth-y;if(y!==null&&Peit){const qe=ht-it;Pe-=qe,Ie.vertical+=qe}if(y!==null&&CeJe){const qe=ye-Je;Ce-=qe,Ie.horizontal+=qe}return{top:`${Math.round(Pe)}px`,left:`${Math.round(Ce)}px`,transformOrigin:m4(Ie)}},[i,d,$,H,y]),[U,W]=O.useState(x),K=O.useCallback(()=>{const ke=N.current;if(!ke)return;const Le=q(ke);Le.top!==null&&ke.style.setProperty("top",Le.top),Le.left!==null&&(ke.style.left=Le.left),ke.style.transformOrigin=Le.transformOrigin,W(!0)},[q]);O.useEffect(()=>(C&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[i,C,K]);const re=()=>{K()},Z=()=>{W(!1)};O.useEffect(()=>{x&&K()}),O.useImperativeHandle(o,()=>x?{updatePosition:()=>{K()}}:null,[x,K]),O.useEffect(()=>{if(!x)return;const ke=Rp(()=>{K()}),Le=Vn(gd(i));return Le.addEventListener("resize",ke),()=>{ke.clear(),Le.removeEventListener("resize",ke)}},[i,x,K]);let V=R;const ee={slots:{transition:_,...T},slotProps:{transition:P,paper:w,...k}},[B,J]=ut("transition",{elementType:tp,externalForwardedProps:ee,ownerState:D,getSlotProps:ke=>({...ke,onEntering:(Le,Ie)=>{ke.onEntering?.(Le,Ie),re()},onExited:Le=>{ke.onExited?.(Le),Z()}}),additionalProps:{appear:!0,in:x}});R==="auto"&&!B.muiSupportAuto&&(V=void 0);const de=u||(i?tn(gd(i)).body:void 0),[pe,{slots:ie,slotProps:fe,...Se}]=ut("root",{ref:r,elementType:LD,externalForwardedProps:{...ee,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:T.backdrop},slotProps:{backdrop:RT(typeof k.backdrop=="function"?k.backdrop(D):k.backdrop,{invisible:!0})},container:de,open:x},ownerState:D,className:xe(E.root,g)}),[Ee,_e]=ut("paper",{ref:N,className:E.paper,elementType:QT,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:U?void 0:{opacity:0}},ownerState:D});return L.jsx(pe,{...Se,...!Q1(pe)&&{slots:ie,slotProps:fe,disableScrollLock:C},children:L.jsx(B,{...J,timeout:V,children:L.jsx(Ee,{..._e,children:f})})})});function BD(t){return Ke("MuiMenu",t)}Ve("MuiMenu",["root","paper","list"]);const zD={vertical:"top",horizontal:"right"},jD={vertical:"top",horizontal:"left"},HD=t=>{const{classes:e}=t;return Ye({root:["root"],paper:["paper"],list:["list"]},BD,e)},qD=ce(FD,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),WD=ce(QT,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),UD=ce(DD,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),ZT=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:g,PaperProps:u={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:x,...w}={},variant:T="selectedMenu",slots:k={},slotProps:I={},..._}=n,R=ol(),P={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:d,onEntering:x,PaperProps:u,transitionDuration:y,TransitionProps:w,variant:T},C=HD(P),M=o&&!c&&g,N=O.useRef(null),D=(V,ee)=>{N.current&&N.current.adjustStyleForScrollbar(V,{direction:R?"rtl":"ltr"}),x&&x(V,ee)},E=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let $=-1;O.Children.map(i,(V,ee)=>{O.isValidElement(V)&&(V.props.disabled||(T==="selectedMenu"&&V.props.selected||$===-1)&&($=ee))});const H={slots:k,slotProps:{list:d,transition:w,paper:u,...I}},q=ha({elementType:k.root,externalSlotProps:I.root,ownerState:P,className:[C.root,l]}),[U,W]=ut("paper",{className:C.paper,elementType:WD,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:P}),[K,re]=ut("list",{className:xe(C.list,d.className),elementType:UD,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:V=>({...V,onKeyDown:ee=>{E(ee),V.onKeyDown?.(ee)}}),ownerState:P}),Z=typeof H.slotProps.transition=="function"?H.slotProps.transition(P):H.slotProps.transition;return L.jsx(qD,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?zD:jD,slots:{root:k.root,paper:U,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:q,paper:W,backdrop:typeof I.backdrop=="function"?I.backdrop(P):I.backdrop,transition:{...Z,onEntering:(...V)=>{D(...V),Z?.onEntering?.(...V)}}},open:g,ref:r,transitionDuration:y,ownerState:P,..._,classes:m,children:L.jsx(K,{actions:N,autoFocus:o&&($===-1||c),autoFocusItem:M,variant:T,...re,children:i})})});function XD(t){return Ke("MuiMenuItem",t)}const Kl=Ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VD=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},GD=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:i,classes:l}=t,d=Ye({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},XD,l);return{...l,...d}},KD=ce(Ni,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:VD})(Qe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Kl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Kl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Dt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Kl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Kl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${i4.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${i4.inset}`]:{marginLeft:52},[`& .${Ls.root}`]:{marginTop:0,marginBottom:0},[`& .${Ls.inset}`]:{paddingLeft:36},[`& .${d4.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${d4.root} svg`]:{fontSize:"1.25rem"}}}]}))),cr=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:f,role:g="menuitem",tabIndex:u,className:m,...y}=n,x=O.useContext(Nc),w=O.useMemo(()=>({dense:l||x.dense||!1,disableGutters:d}),[x.dense,l,d]),T=O.useRef(null);en(()=>{o&&T.current&&T.current.focus()},[o]);const k={...n,dense:w.dense,divider:c,disableGutters:d},I=GD(n),_=yr(T,r);let R;return n.disabled||(R=u!==void 0?u:-1),L.jsx(Nc.Provider,{value:w,children:L.jsx(KD,{ref:_,role:g,tabIndex:R,component:i,focusVisibleClassName:xe(I.focusVisible,f),className:xe(I.root,m),...y,ownerState:k,classes:I})})});function YD(t){return Ke("MuiNativeSelect",t)}const ay=Ve("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JD=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,i&&"iconOpen",n&&"disabled"]};return Ye(c,YD,e)},eE=ce("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ay.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),QD=ce(eE,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:br,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${ay.multiple}`]:e.multiple}]}})({}),tE=ce("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ay.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ZD=ce(tE,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),eN=O.forwardRef(function(e,r){const{className:n,disabled:o,error:i,IconComponent:l,inputRef:c,variant:d="standard",...f}=e,g={...e,disabled:o,variant:d,error:i},u=JD(g);return L.jsxs(O.Fragment,{children:[L.jsx(QD,{ownerState:g,className:xe(u.select,n),disabled:o,ref:c||r,...f}),e.multiple?null:L.jsx(ZD,{as:l,ownerState:g,className:u.icon})]})});var g4;const tN=ce("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:br})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rN=ce("legend",{name:"MuiNotchedOutlined",shouldForwardProp:br})(Qe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function nN(t){const{children:e,classes:r,className:n,label:o,notched:i,...l}=t,c=o!=null&&o!=="",d={...t,notched:i,withLabel:c};return L.jsx(tN,{"aria-hidden":!0,className:n,ownerState:d,...l,children:L.jsx(rN,{ownerState:d,children:c?L.jsx("span",{children:o}):g4||(g4=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const oN=t=>{const{classes:e}=t,n=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rI,e);return{...e,...n}},iN=ce($p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Dp})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${oo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${oo.focused} .${oo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(rr()).map(([r])=>({props:{color:r},style:{[`&.${oo.focused} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${oo.error} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${oo.disabled} .${oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),aN=ce(nN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Qe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),sN=ce(Lp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Np})(Qe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),sy=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:f,slots:g={},slotProps:u={},type:m="text",...y}=n,x=oN(n),w=So(),T=Li({props:n,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:w,fullWidth:i,hiddenLabel:T.hiddenLabel,multiline:d,size:T.size,type:m},I=g.root??o.Root??iN,_=g.input??o.Input??sN,[R,P]=ut("notchedOutline",{elementType:aN,className:x.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:u},additionalProps:{label:c!=null&&c!==""&&T.required?L.jsxs(O.Fragment,{children:[c," ","*"]}):c}});return L.jsx(ny,{slots:{root:I,input:_},slotProps:u,renderSuffix:C=>L.jsx(R,{...P,notched:typeof f<"u"?f:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:i,inputComponent:l,multiline:d,ref:r,type:m,...y,classes:{...x,notchedOutline:null}})});sy.muiName="Input";const lN=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),cN=He(L.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),uN=ce("span",{name:"MuiRadioButtonIcon",shouldForwardProp:br})({position:"relative",display:"flex"}),dN=ce(lN,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),pN=ce(cN,{name:"MuiRadioButtonIcon"})(Qe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function rE(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return L.jsxs(uN,{className:r.root,ownerState:o,children:[L.jsx(dN,{fontSize:n,className:r.background,ownerState:o}),L.jsx(pN,{fontSize:n,className:r.dot,ownerState:o})]})}const fN=O.createContext(void 0);function hN(){return O.useContext(fN)}function mN(t){return Ke("MuiRadio",t)}const v4=Ve("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),gN=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${me(r)}`,n!=="medium"&&`size${me(n)}`]};return{...e,...Ye(o,mN,e)}},vN=ce(VT,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${me(r.size)}`],e[`color${me(r.color)}`]]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${v4.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Dt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Dt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(rr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${v4.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function yN(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const bN=L.jsx(rE,{checked:!0}),wN=L.jsx(rE,{}),At=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:i=bN,color:l="primary",icon:c=wN,name:d,onChange:f,size:g="medium",className:u,disabled:m,disableRipple:y=!1,slots:x={},slotProps:w={},inputProps:T,...k}=n,I=So();let _=m;I&&typeof _>"u"&&(_=I.disabled),_??=!1;const R={...n,disabled:_,disableRipple:y,color:l,size:g},P=gN(R),C=hN();let M=o;const N=B1(f,C&&C.onChange);let D=d;C&&(typeof M>"u"&&(M=yN(C.value,n.value)),typeof D>"u"&&(D=C.name));const E=w.input??T,[$,H]=ut("root",{ref:r,elementType:vN,className:xe(P.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:w,...k},getSlotProps:q=>({...q,onChange:(U,...W)=>{q.onChange?.(U,...W),N(U,...W)}}),ownerState:R,additionalProps:{type:"radio",icon:O.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:O.cloneElement(i,{fontSize:i.props.fontSize??g}),disabled:_,name:D,checked:M,slots:x,slotProps:{input:typeof E=="function"?E(R):E}}});return L.jsx($,{...H,classes:P})});function nE(t){return Ke("MuiSelect",t)}const Yl=Ve("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var y4;const xN=ce(eE,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Yl.select}`]:e.select},{[`&.${Yl.select}`]:e[r.variant]},{[`&.${Yl.error}`]:e.error},{[`&.${Yl.multiple}`]:e.multiple}]}})({[`&.${Yl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SN=ce(tE,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),TN=ce("input",{shouldForwardProp:t=>OT(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function b4(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function EN(t){return t==null||typeof t=="string"&&!t.trim()}const CN=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:i,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ye(c,nE,e)},kN=O.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:g,disabled:u,displayEmpty:m,error:y=!1,IconComponent:x,inputRef:w,labelId:T,MenuProps:k={},multiple:I,name:_,onBlur:R,onChange:P,onClose:C,onFocus:M,onOpen:N,open:D,readOnly:E,renderValue:$,required:H,SelectDisplayProps:q={},tabIndex:U,type:W,value:K,variant:re="standard",...Z}=e,[V,ee]=Gd({controlled:K,default:g,name:"Select"}),[B,J]=Gd({controlled:D,default:f,name:"Select"}),de=O.useRef(null),pe=O.useRef(null),[ie,fe]=O.useState(null),{current:Se}=O.useRef(D!=null),[Ee,_e]=O.useState(),ke=yr(r,w),Le=O.useCallback(be=>{pe.current=be,be&&fe(be)},[]),Ie=ie?.parentNode;O.useImperativeHandle(ke,()=>({focus:()=>{pe.current.focus()},node:de.current,value:V}),[V]),O.useEffect(()=>{f&&B&&ie&&!Se&&(_e(l?null:Ie.clientWidth),pe.current.focus())},[ie,l]),O.useEffect(()=>{i&&pe.current.focus()},[i]),O.useEffect(()=>{if(!T)return;const be=tn(pe.current).getElementById(T);if(be){const lt=()=>{getSelection().isCollapsed&&pe.current.focus()};return be.addEventListener("click",lt),()=>{be.removeEventListener("click",lt)}}},[T]);const nt=(be,lt)=>{be?N&&N(lt):C&&C(lt),Se||(_e(l?null:Ie.clientWidth),J(be))},Pe=be=>{be.button===0&&(be.preventDefault(),pe.current.focus(),nt(!0,be))},Ce=be=>{nt(!1,be)},ht=O.Children.toArray(c),ye=be=>{const lt=ht.find(St=>St.props.value===be.target.value);lt!==void 0&&(ee(lt.props.value),P&&P(be,lt))},Ae=be=>lt=>{let St;if(lt.currentTarget.hasAttribute("tabindex")){if(I){St=Array.isArray(V)?V.slice():[];const ur=V.indexOf(be.props.value);ur===-1?St.push(be.props.value):St.splice(ur,1)}else St=be.props.value;if(be.props.onClick&&be.props.onClick(lt),V!==St&&(ee(St),P)){const ur=lt.nativeEvent||lt,dr=new ur.constructor(ur.type,ur);Object.defineProperty(dr,"target",{writable:!0,value:{value:St,name:_}}),P(dr,be)}I||nt(!1,lt)}},it=be=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(be.key)&&(be.preventDefault(),nt(!0,be))},Je=ie!==null&&B,qe=be=>{!Je&&R&&(Object.defineProperty(be,"target",{writable:!0,value:{value:V,name:_}}),R(be))};delete Z["aria-invalid"];let ve,at;const Xe=[];let ne=!1;(ep({value:V})||m)&&($?ve=$(V):ne=!0);const ge=ht.map(be=>{if(!O.isValidElement(be))return null;let lt;if(I){if(!Array.isArray(V))throw new Error(Bo(2));lt=V.some(St=>b4(St,be.props.value)),lt&&ne&&Xe.push(be.props.children)}else lt=b4(V,be.props.value),lt&&ne&&(at=be.props.children);return O.cloneElement(be,{"aria-selected":lt?"true":"false",onClick:Ae(be),onKeyUp:St=>{St.key===" "&&St.preventDefault(),be.props.onKeyUp&&be.props.onKeyUp(St)},role:"option",selected:lt,value:void 0,"data-value":be.props.value})});ne&&(I?Xe.length===0?ve=null:ve=Xe.reduce((be,lt,St)=>(be.push(lt),St{const{classes:e}=t,n=Ye({root:["root"]},nE,e);return{...e,...n}},ly={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>br(t)&&t!=="variant",slot:"Root"},ON=ce(uo,ly)(""),RN=ce(sy,ly)(""),PN=ce(oy,ly)(""),ho=O.forwardRef(function(e,r){const n=et({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:g=oI,id:u,input:m,inputProps:y,label:x,labelId:w,MenuProps:T,multiple:k=!1,native:I=!1,onClose:_,onOpen:R,open:P,renderValue:C,SelectDisplayProps:M,variant:N="outlined",...D}=n,E=I?eN:kN,$=So(),H=Li({props:n,muiFormControl:$,states:["variant","error"]}),q=H.variant||N,U={...n,variant:q,classes:l},W=_N(U),{root:K,...re}=W,Z=m||{standard:L.jsx(ON,{ownerState:U}),outlined:L.jsx(RN,{label:x,ownerState:U}),filled:L.jsx(PN,{ownerState:U})}[q],V=yr(r,nl(Z));return L.jsx(O.Fragment,{children:O.cloneElement(Z,{inputComponent:E,inputProps:{children:i,error:H.error,IconComponent:g,variant:q,type:void 0,multiple:k,...I?{id:u}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:T,onClose:_,onOpen:R,open:P,renderValue:C,SelectDisplayProps:{id:u,...M}},...y,classes:y?$r(re,y.classes):re,...m?m.props.inputProps:{}},...(k&&I||f)&&q==="outlined"?{notched:!0}:{},ref:V,className:xe(Z.props.className,c,W.root),...!m&&{variant:q},...D})})});ho.muiName="Select";function MN(t){return Ke("MuiTooltip",t)}const Qt=Ve("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function IN(t){return Math.round(t*1e5)/1e5}const AN=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${me(i.split("-")[0])}`],arrow:["arrow"]};return Ye(l,MN,e)},DN=ce(WT,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Qe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Qt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),NN=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${me(r.placement.split("-")[0])}`]]}})(Qe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Dt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Qt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Qt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${IN(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),$N=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Qe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Dt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let vd=!1;const w4=new Pp;let Jl={x:0,y:0};function yd(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const zd=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:l,components:c={},componentsProps:d={},describeChild:f=!1,disableFocusListener:g=!1,disableHoverListener:u=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:x=100,enterNextDelay:w=0,enterTouchDelay:T=700,followCursor:k=!1,id:I,leaveDelay:_=0,leaveTouchDelay:R=1500,onClose:P,onOpen:C,open:M,placement:N="bottom",PopperComponent:D,PopperProps:E={},slotProps:$={},slots:H={},title:q,TransitionComponent:U,TransitionProps:W,...K}=n,re=O.isValidElement(i)?i:L.jsx("span",{children:i}),Z=Ho(),V=ol(),[ee,B]=O.useState(),[J,de]=O.useState(null),pe=O.useRef(!1),ie=m||k,fe=$s(),Se=$s(),Ee=$s(),_e=$s(),[ke,Le]=Gd({controlled:M,default:!1,name:"Tooltip",state:"open"});let Ie=ke;const nt=wa(I),Pe=O.useRef(),Ce=Rn(()=>{Pe.current!==void 0&&(document.body.style.WebkitUserSelect=Pe.current,Pe.current=void 0),_e.clear()});O.useEffect(()=>Ce,[Ce]);const ht=rt=>{w4.clear(),vd=!0,Le(!0),C&&!Ie&&C(rt)},ye=Rn(rt=>{w4.start(800+_,()=>{vd=!1}),Le(!1),P&&Ie&&P(rt),fe.start(Z.transitions.duration.shortest,()=>{pe.current=!1})}),Ae=rt=>{pe.current&&rt.type!=="touchstart"||(ee&&ee.removeAttribute("title"),Se.clear(),Ee.clear(),x||vd&&w?Se.start(vd?w:x,()=>{ht(rt)}):ht(rt))},it=rt=>{Se.clear(),Ee.start(_,()=>{ye(rt)})},[,Je]=O.useState(!1),qe=rt=>{Vs(rt.target)||(Je(!1),it(rt))},ve=rt=>{ee||B(rt.currentTarget),Vs(rt.target)&&(Je(!0),Ae(rt))},at=rt=>{pe.current=!0;const zr=re.props;zr.onTouchStart&&zr.onTouchStart(rt)},Xe=rt=>{at(rt),Ee.clear(),fe.clear(),Ce(),Pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",_e.start(T,()=>{document.body.style.WebkitUserSelect=Pe.current,Ae(rt)})},ne=rt=>{re.props.onTouchEnd&&re.props.onTouchEnd(rt),Ce(),Ee.start(R,()=>{ye(rt)})};O.useEffect(()=>{if(!Ie)return;function rt(zr){zr.key==="Escape"&&ye(zr)}return document.addEventListener("keydown",rt),()=>{document.removeEventListener("keydown",rt)}},[ye,Ie]);const ge=yr(nl(re),B,r);!q&&q!==0&&(Ie=!1);const je=O.useRef(),Fe=rt=>{const zr=re.props;zr.onMouseMove&&zr.onMouseMove(rt),Jl={x:rt.clientX,y:rt.clientY},je.current&&je.current.update()},st={},vt=typeof q=="string";f?(st.title=!Ie&&vt&&!u?q:null,st["aria-describedby"]=Ie?nt:null):(st["aria-label"]=vt?q:null,st["aria-labelledby"]=Ie&&!vt?nt:null);const Be={...st,...K,...re.props,className:xe(K.className,re.props.className),onTouchStart:at,ref:ge,...k?{onMouseMove:Fe}:{}},Bt={};y||(Be.onTouchStart=Xe,Be.onTouchEnd=ne),u||(Be.onMouseOver=yd(Ae,Be.onMouseOver),Be.onMouseLeave=yd(it,Be.onMouseLeave),ie||(Bt.onMouseOver=Ae,Bt.onMouseLeave=it)),g||(Be.onFocus=yd(ve,Be.onFocus),Be.onBlur=yd(qe,Be.onBlur),ie||(Bt.onFocus=ve,Bt.onBlur=qe));const xt={...n,isRtl:V,arrow:o,disableInteractive:ie,placement:N,PopperComponentProp:D,touch:pe.current},be=typeof $.popper=="function"?$.popper(xt):$.popper,lt=O.useMemo(()=>{let rt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return E.popperOptions?.modifiers&&(rt=rt.concat(E.popperOptions.modifiers)),be?.popperOptions?.modifiers&&(rt=rt.concat(be.popperOptions.modifiers)),{...E.popperOptions,...be?.popperOptions,modifiers:rt}},[J,E.popperOptions,be?.popperOptions]),St=AN(xt),ur=typeof $.transition=="function"?$.transition(xt):$.transition,dr={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...H},slotProps:{arrow:$.arrow??d.arrow,popper:{...E,...be??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...W,...ur??d.transition}}},[Br,Co]=ut("popper",{elementType:DN,externalForwardedProps:dr,ownerState:xt,className:xe(St.popper,E?.className)}),[Yn,vn]=ut("transition",{elementType:tp,externalForwardedProps:dr,ownerState:xt}),[Ra,Pa]=ut("tooltip",{elementType:NN,className:St.tooltip,externalForwardedProps:dr,ownerState:xt}),[Ma,Ia]=ut("arrow",{elementType:$N,className:St.arrow,externalForwardedProps:dr,ownerState:xt,ref:de});return L.jsxs(O.Fragment,{children:[O.cloneElement(re,Be),L.jsx(Br,{as:D??WT,placement:N,anchorEl:k?{getBoundingClientRect:()=>({top:Jl.y,left:Jl.x,right:Jl.x,bottom:Jl.y,width:0,height:0})}:ee,popperRef:je,open:ee?Ie:!1,id:nt,transition:!0,...Bt,...Co,popperOptions:lt,children:({TransitionProps:rt})=>L.jsx(Yn,{timeout:Z.transitions.duration.shorter,...rt,...vn,children:L.jsxs(Ra,{...Pa,children:[q,o?L.jsx(Ma,{...Ia}):null]})})})]})});function LN(t){return Ke("MuiTab",t)}const Cn=Ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),FN=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:i,label:l,selected:c,disabled:d}=t,f={root:["root",i&&l&&"labelIcon",`textColor${me(r)}`,n&&"fullWidth",o&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return Ye(f,LN,e)},BN=ce(Ni,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${me(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Cn.iconWrapper}`]:e.iconWrapper},{[`& .${Cn.icon}`]:e.icon}]}})(Qe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Cn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Cn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Cn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Cn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Cn.selected}`]:{opacity:1},[`&.${Cn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Cn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Cn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Cn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Cn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),ls=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:f="top",indicator:g,label:u,onChange:m,onClick:y,onFocus:x,selected:w,selectionFollowsFocus:T,textColor:k="inherit",value:I,wrapped:_=!1,...R}=n,P={...n,disabled:i,disableFocusRipple:l,selected:w,icon:!!d,iconPosition:f,label:!!u,fullWidth:c,textColor:k,wrapped:_},C=FN(P),M=d&&u&&O.isValidElement(d)?O.cloneElement(d,{className:xe(C.icon,d.props.className)}):d,N=E=>{!w&&m&&m(E,I),y&&y(E)},D=E=>{T&&!w&&m&&m(E,I),x&&x(E)};return L.jsxs(BN,{focusRipple:!l,className:xe(C.root,o),ref:r,role:"tab","aria-selected":w,disabled:i,onClick:N,onFocus:D,ownerState:P,tabIndex:w?0:-1,...R,children:[f==="top"||f==="start"?L.jsxs(O.Fragment,{children:[M,u]}):L.jsxs(O.Fragment,{children:[u,M]}),g]})});function zN(t){return Ke("MuiToolbar",t)}Ve("MuiToolbar",["root","gutters","regular","dense"]);const jN=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Ye({root:["root",!r&&"gutters",n]},zN,e)},HN=ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Qe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),oE=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:c="regular",...d}=n,f={...n,component:i,disableGutters:l,variant:c},g=jN(f);return L.jsx(HN,{as:i,className:xe(g.root,o),ref:r,ownerState:f,...d})}),qN=He(L.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),WN=He(L.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function UN(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function XN(t,e,r,n={},o=()=>{}){const{ease:i=UN,duration:l=300}=n;let c=null;const d=e[t];let f=!1;const g=()=>{f=!0},u=m=>{if(f){o(new Error("Animation cancelled"));return}c===null&&(c=m);const y=Math.min(1,(m-c)/l);if(e[t]=i(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(u)};return d===r?(o(new Error("Element already at target position")),g):(requestAnimationFrame(u),g)}const VN={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function GN(t){const{onChange:e,...r}=t,n=O.useRef(),o=O.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return en(()=>{const l=Rp(()=>{const d=n.current;i(),d!==n.current&&e(n.current)}),c=Vn(o.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[e]),O.useEffect(()=>{i(),e(n.current)},[e]),L.jsx("div",{style:VN,...r,ref:o})}function KN(t){return Ke("MuiTabScrollButton",t)}const YN=Ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JN=t=>{const{classes:e,orientation:r,disabled:n}=t;return Ye({root:["root",r,n&&"disabled"]},KN,e)},QN=ce(Ni,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${YN.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),ZN=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:l={},direction:c,orientation:d,disabled:f,...g}=n,u=ol(),m={isRtl:u,...n},y=JN(m),x=i.StartScrollButtonIcon??qN,w=i.EndScrollButtonIcon??WN,T=ha({elementType:x,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),k=ha({elementType:w,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return L.jsx(QN,{component:"div",className:xe(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...g,style:{...g.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:c==="left"?L.jsx(x,{...T}):L.jsx(w,{...k})})});function e$(t){return Ke("MuiTabs",t)}const cm=Ve("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),x4=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,S4=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,bd=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=r(t,o);else{o.focus();return}}},t$=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:l,scrollButtonsHideMobile:c,classes:d}=t;return Ye({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},e$,d)},r$=ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${cm.scrollButtons}`]:e.scrollButtons},{[`& .${cm.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Qe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${cm.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),n$=ce("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),o$=ce("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),i$=ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Qe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),a$=ce(GN)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),T4={},s$=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTabs"}),o=Ho(),i=ol(),{"aria-label":l,"aria-labelledby":c,action:d,centered:f=!1,children:g,className:u,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:x="primary",onChange:w,orientation:T="horizontal",ScrollButtonComponent:k,scrollButtons:I="auto",selectionFollowsFocus:_,slots:R={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:M={},textColor:N="primary",value:D,variant:E="standard",visibleScrollbar:$=!1,...H}=n,q=E==="scrollable",U=T==="vertical",W=U?"scrollTop":"scrollLeft",K=U?"top":"left",re=U?"bottom":"right",Z=U?"clientHeight":"clientWidth",V=U?"height":"width",ee={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:x,orientation:T,vertical:U,scrollButtons:I,textColor:N,variant:E,visibleScrollbar:$,fixed:!q,hideScrollbar:q&&!$,scrollableX:q&&!U,scrollableY:q&&U,centered:f&&!q,scrollButtonsHideMobile:!y},B=t$(ee),J=ha({elementType:R.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:ee}),de=ha({elementType:R.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:ee}),[pe,ie]=O.useState(!1),[fe,Se]=O.useState(T4),[Ee,_e]=O.useState(!1),[ke,Le]=O.useState(!1),[Ie,nt]=O.useState(!1),[Pe,Ce]=O.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ye=O.useRef(null),Ae=O.useRef(null),it={slots:R,slotProps:{indicator:C,scrollButton:M,...P}},Je=()=>{const Oe=ye.current;let ze;if(Oe){const ft=Oe.getBoundingClientRect();ze={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollWidth:Oe.scrollWidth,top:ft.top,bottom:ft.bottom,left:ft.left,right:ft.right}}let yt;if(Oe&&D!==!1){const ft=Ae.current.children;if(ft.length>0){const Gt=ft[ht.get(D)];yt=Gt?Gt.getBoundingClientRect():null}}return{tabsMeta:ze,tabMeta:yt}},qe=Rn(()=>{const{tabsMeta:Oe,tabMeta:ze}=Je();let yt=0,ft;U?(ft="top",ze&&Oe&&(yt=ze.top-Oe.top+Oe.scrollTop)):(ft=i?"right":"left",ze&&Oe&&(yt=(i?-1:1)*(ze[ft]-Oe[ft]+Oe.scrollLeft)));const Gt={[ft]:yt,[V]:ze?ze[V]:0};if(typeof fe[ft]!="number"||typeof fe[V]!="number")Se(Gt);else{const Cr=Math.abs(fe[ft]-Gt[ft]),yn=Math.abs(fe[V]-Gt[V]);(Cr>=1||yn>=1)&&Se(Gt)}}),ve=(Oe,{animation:ze=!0}={})=>{ze?XN(W,ye.current,Oe,{duration:o.transitions.duration.standard}):ye.current[W]=Oe},at=Oe=>{let ze=ye.current[W];U?ze+=Oe:ze+=Oe*(i?-1:1),ve(ze)},Xe=()=>{const Oe=ye.current[Z];let ze=0;const yt=Array.from(Ae.current.children);for(let ft=0;ftOe){ft===0&&(ze=Oe);break}ze+=Gt[Z]}return ze},ne=()=>{at(-1*Xe())},ge=()=>{at(Xe())},[je,{onChange:Fe,...st}]=ut("scrollbar",{className:xe(B.scrollableX,B.hideScrollbar),elementType:a$,shouldForwardComponentProp:!0,externalForwardedProps:it,ownerState:ee}),vt=O.useCallback(Oe=>{Fe?.(Oe),Ce({overflow:null,scrollbarWidth:Oe})},[Fe]),[Be,Bt]=ut("scrollButtons",{className:xe(B.scrollButtons,M.className),elementType:ZN,externalForwardedProps:it,ownerState:ee,additionalProps:{orientation:T,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:J,endScrollButtonIcon:de}}}),xt=()=>{const Oe={};Oe.scrollbarSizeListener=q?L.jsx(je,{...st,onChange:vt}):null;const yt=q&&(I==="auto"&&(Ee||ke)||I===!0);return Oe.scrollButtonStart=yt?L.jsx(Be,{direction:i?"right":"left",onClick:ne,disabled:!Ee,...Bt}):null,Oe.scrollButtonEnd=yt?L.jsx(Be,{direction:i?"left":"right",onClick:ge,disabled:!ke,...Bt}):null,Oe},be=Rn(Oe=>{const{tabsMeta:ze,tabMeta:yt}=Je();if(!(!yt||!ze)){if(yt[K]ze[re]){const ft=ze[W]+(yt[re]-ze[re]);ve(ft,{animation:Oe})}}}),lt=Rn(()=>{q&&I!==!1&&nt(!Ie)});O.useEffect(()=>{const Oe=Rp(()=>{ye.current&&qe()});let ze;const yt=Cr=>{Cr.forEach(yn=>{yn.removedNodes.forEach(Jn=>{ze?.unobserve(Jn)}),yn.addedNodes.forEach(Jn=>{ze?.observe(Jn)})}),Oe(),lt()},ft=Vn(ye.current);ft.addEventListener("resize",Oe);let Gt;return typeof ResizeObserver<"u"&&(ze=new ResizeObserver(Oe),Array.from(Ae.current.children).forEach(Cr=>{ze.observe(Cr)})),typeof MutationObserver<"u"&&(Gt=new MutationObserver(yt),Gt.observe(Ae.current,{childList:!0})),()=>{Oe.clear(),ft.removeEventListener("resize",Oe),Gt?.disconnect(),ze?.disconnect()}},[qe,lt]),O.useEffect(()=>{const Oe=Array.from(Ae.current.children),ze=Oe.length;if(typeof IntersectionObserver<"u"&&ze>0&&q&&I!==!1){const yt=Oe[0],ft=Oe[ze-1],Gt={root:ye.current,threshold:.99},Cr=ul=>{_e(!ul[0].isIntersecting)},yn=new IntersectionObserver(Cr,Gt);yn.observe(yt);const Jn=ul=>{Le(!ul[0].isIntersecting)},Aa=new IntersectionObserver(Jn,Gt);return Aa.observe(ft),()=>{yn.disconnect(),Aa.disconnect()}}},[q,I,Ie,g?.length]),O.useEffect(()=>{ie(!0)},[]),O.useEffect(()=>{qe()}),O.useEffect(()=>{be(T4!==fe)},[be,fe]),O.useImperativeHandle(d,()=>({updateIndicator:qe,updateScrollButtons:lt}),[qe,lt]);const[St,ur]=ut("indicator",{className:xe(B.indicator,C.className),elementType:i$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:fe}}),dr=L.jsx(St,{...ur});let Br=0;const Co=O.Children.map(g,Oe=>{if(!O.isValidElement(Oe))return null;const ze=Oe.props.value===void 0?Br:Oe.props.value;ht.set(ze,Br);const yt=ze===D;return Br+=1,O.cloneElement(Oe,{fullWidth:E==="fullWidth",indicator:yt&&!pe&&dr,selected:yt,selectionFollowsFocus:_,onChange:w,textColor:N,value:ze,...Br===1&&D===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}})}),Yn=Oe=>{if(Oe.altKey||Oe.shiftKey||Oe.ctrlKey||Oe.metaKey)return;const ze=Ae.current,yt=tn(ze).activeElement;if(yt.getAttribute("role")!=="tab")return;let Gt=T==="horizontal"?"ArrowLeft":"ArrowUp",Cr=T==="horizontal"?"ArrowRight":"ArrowDown";switch(T==="horizontal"&&i&&(Gt="ArrowRight",Cr="ArrowLeft"),Oe.key){case Gt:Oe.preventDefault(),bd(ze,yt,S4);break;case Cr:Oe.preventDefault(),bd(ze,yt,x4);break;case"Home":Oe.preventDefault(),bd(ze,null,x4);break;case"End":Oe.preventDefault(),bd(ze,null,S4);break}},vn=xt(),[Ra,Pa]=ut("root",{ref:r,className:xe(B.root,u),elementType:r$,externalForwardedProps:{...it,...H,component:m},ownerState:ee}),[Ma,Ia]=ut("scroller",{ref:ye,className:B.scroller,elementType:n$,externalForwardedProps:it,ownerState:ee,additionalProps:{style:{overflow:Pe.overflow,[U?`margin${i?"Left":"Right"}`:"marginBottom"]:$?void 0:-Pe.scrollbarWidth}}}),[rt,zr]=ut("list",{ref:Ae,className:xe(B.list,B.flexContainer),elementType:o$,externalForwardedProps:it,ownerState:ee,getSlotProps:Oe=>({...Oe,onKeyDown:ze=>{Yn(ze),Oe.onKeyDown?.(ze)}})});return L.jsxs(Ra,{...Pa,children:[vn.scrollButtonStart,vn.scrollbarSizeListener,L.jsxs(Ma,{...Ia,children:[L.jsx(rt,{"aria-label":l,"aria-labelledby":c,"aria-orientation":T==="vertical"?"vertical":null,role:"tablist",...zr,children:Co}),pe&&dr]}),vn.scrollButtonEnd]})});function l$(t){return Ke("MuiTextField",t)}Ve("MuiTextField",["root"]);const c$={standard:uo,filled:oy,outlined:sy},u$=t=>{const{classes:e}=t;return Ye({root:["root"]},l$,e)},d$=ce(ys,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),vr=O.forwardRef(function(e,r){const n=et({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:c,color:d="primary",defaultValue:f,disabled:g=!1,error:u=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:x,id:w,InputLabelProps:T,inputProps:k,InputProps:I,inputRef:_,label:R,maxRows:P,minRows:C,multiline:M=!1,name:N,onBlur:D,onChange:E,onFocus:$,placeholder:H,required:q=!1,rows:U,select:W=!1,SelectProps:K,slots:re={},slotProps:Z={},type:V,value:ee,variant:B="outlined",...J}=n,de={...n,autoFocus:i,color:d,disabled:g,error:u,fullWidth:y,multiline:M,required:q,select:W,variant:B},pe=u$(de),ie=wa(w),fe=x&&ie?`${ie}-helper-text`:void 0,Se=R&&ie?`${ie}-label`:void 0,Ee=c$[B],_e={slots:re,slotProps:{input:I,inputLabel:T,htmlInput:k,formHelperText:m,select:K,...Z}},ke={},Le=_e.slotProps.inputLabel;B==="outlined"&&(Le&&typeof Le.shrink<"u"&&(ke.notched=Le.shrink),ke.label=R),W&&((!K||!K.native)&&(ke.id=void 0),ke["aria-describedby"]=void 0);const[Ie,nt]=ut("root",{elementType:d$,shouldForwardComponentProp:!0,externalForwardedProps:{..._e,...J},ownerState:de,className:xe(pe.root,c),ref:r,additionalProps:{disabled:g,error:u,fullWidth:y,required:q,color:d,variant:B}}),[Pe,Ce]=ut("input",{elementType:Ee,externalForwardedProps:_e,additionalProps:ke,ownerState:de}),[ht,ye]=ut("inputLabel",{elementType:Bd,externalForwardedProps:_e,ownerState:de}),[Ae,it]=ut("htmlInput",{elementType:"input",externalForwardedProps:_e,ownerState:de}),[Je,qe]=ut("formHelperText",{elementType:VA,externalForwardedProps:_e,ownerState:de}),[ve,at]=ut("select",{elementType:ho,externalForwardedProps:_e,ownerState:de}),Xe=L.jsx(Pe,{"aria-describedby":fe,autoComplete:o,autoFocus:i,defaultValue:f,fullWidth:y,multiline:M,name:N,rows:U,maxRows:P,minRows:C,type:V,value:ee,id:ie,inputRef:_,onBlur:D,onChange:E,onFocus:$,placeholder:H,inputProps:it,slots:{input:re.htmlInput?Ae:void 0},...Ce});return L.jsxs(Ie,{...nt,children:[R!=null&&R!==""&&L.jsx(ht,{htmlFor:ie,id:Se,...ye,children:R}),W?L.jsx(ve,{"aria-describedby":fe,id:ie,labelId:Se,value:ee,input:Xe,...at,children:l}):Xe,x&&L.jsx(Je,{id:fe,...qe,children:x})]})}),p$=He(L.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),f$=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z"}),"AudioFile"),h$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),m$=He(L.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),g$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),v$=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),cy=He(L.jsx("path",{d:"M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness6"),y$=He(L.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),b$=He(L.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Bp=He(L.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Fi=He(L.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),ga=He(L.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uy=He(L.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),w$=He(L.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),x$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),jd=He(L.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),iE=He(L.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),S$=He(L.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),T$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),E$=He(L.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z"}),"FolderSpecial"),C$=He(L.jsx("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z"}),"FontDownload"),k$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),_$=He(L.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),O$=He(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),aE=He(L.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),R$=He(L.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),P$=He(L.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),M$=He(L.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),I$=He(L.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),A$=He(L.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),E4=He(L.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),D$=He(L.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),N$=He(L.jsx("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router"),iv=He(L.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),$$=He(L.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),L$=He(L.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),F$=He(L.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),B$=He(L.jsx("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09"}),"SupervisedUserCircle"),z$=He(L.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),j$=He(L.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),H$=He(L.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),q$=He(L.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),sE=He(L.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),W$=He(L.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),um=11/23/100;function C4(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substring(1,3),16),e.g=parseInt(t.substring(3,5),16),e.b=parseInt(t.substring(5,7),16);else if(t.length===4){const r=t[1],n=t[2],o=t[3];e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function U$(t){return`#${Math.round(t.r).toString(16).padStart(2,"0")}${Math.round(t.g).toString(16).padStart(2,"0")}${Math.round(t.b).toString(16).padStart(2,"0")}`}function X$(t,e,r){const n=C4(t),o=C4(e);return n.r+=o.r*(.05+um*(r-1)),n.g+=o.g*(.05+um*(r-1)),n.b+=o.b*(.05+um*(r-1)),U$(n)}function wd(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:X$(t,e,n)};return r}function V$(t,e){let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[200],"&:hover":{color:Tr[100]}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[200],"&:hover":{color:Tr[100]}}},MuiPaper:wd("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="NW"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#00af78"},secondary:{main:"#005a40"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="HA"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:"#db0a33","&:hover":{color:"#FF0a33"}}},MuiPaper:wd("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#970720"},secondary:{main:"#db0a33"},expert:"#db0a33",nonAck:"#ffe96a",text:{primary:"#ffffff",secondary:"#ffffff"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Tr[400],"&:hover":{color:Tr[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:r.palette?.primary?.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:z1[300],dark:z1[400]});const o=Ic(r),i=o.palette;return Ic(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:i.grey?.[300],color:i.getContrastText&&i.grey?.[300]?i.getContrastText(i.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:i.text?.primary,borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${i.action?.disabledBackground}`},"&:hover":{borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Dt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}},{props:{variant:"text",color:"grey"},style:{color:i.text?.primary,"&:hover":{backgroundColor:Dt(i.text?.primary||"",i.action?.hoverOpacity||.04)}}}]}}})}function G$(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function K$(t){return t?.rows.map(e=>e.value).filter(e=>!!e)??[]}function k4(t){return t?.startsWith("system.host.")||(t=`system.host.${t}`),t}function _4(t){return new Promise(e=>{setTimeout(e,t)})}function xd(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}typeof globalThis.process<"u"&&(globalThis.location||={href:"http://localhost:8081/",protocol:"http:",host:"localhost:8081",pathname:"/",hostname:"localhost",reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(t,e)=>{globalThis.localStorage._keys[t]=e},getItem:t=>t in globalThis.localStorage._keys?globalThis.localStorage._keys[t]:null,removeItem:t=>{t in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[t]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:"en"});var xi;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(xi||(xi={}));var Ei;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ei||(Ei={}));Ei.PERMISSION_ERROR;Ei.NOT_CONNECTED;const Y$=["material","echarts","vis"];class Ir{props;connId;lastAccessToken=null;ignoreState="";connected=!1;subscribed=!1;firstConnect=!0;waitForRestart=!1;loaded=!1;simStates={};objectViewCached;constructor(e){this.props=this.applyDefaultProps(e),this.connId=`${this.props.name?`${this.props.name}-`:""}${Math.round(Math.random()*1e6).toString().padStart(6,"0")}`,this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||globalThis.location.protocol,host:e.host||globalThis.location.hostname,port:e.port||(globalThis.location.port==="3000"?8081:globalThis.location.port),ioTimeout:Math.max(e.ioTimeout||2e4,2e4),cmdTimeout:Math.max(e.cmdTimeout||5e3,5e3),admin5only:e.admin5only||!1,autoSubscribes:e.autoSubscribes??[],autoSubscribeLog:e.autoSubscribeLog??!1,doNotLoadACL:e.doNotLoadACL??!0,doNotLoadAllObjects:e.doNotLoadAllObjects??!0}}statesSubscribes={};filesSubscribes={};objectsSubscribes={};objects={};states={};acl=null;isSecure=!1;onReadyDone=!1;onConnectionHandlers=[];onLogHandlers=[];onCmdStdoutHandler;onCmdStderrHandler;onCmdExitHandler;onError(e){(this.props.onError??console.error)(e)}_socket;_waitForSocketPromise;_waitForFirstConnectionPromise=G$();_instanceSubscriptions={};_promises={};_authTimer=null;_refreshTimer=null;_systemConfig;get systemConfig(){return this._systemConfig}systemLang="en";static isWeb(){return globalThis.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(this.props.connect){e();return}if(typeof globalThis.io>"u"&&typeof globalThis.iob>"u")if(typeof globalThis.registerSocketOnLoad=="function")globalThis.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(globalThis.io||globalThis.iob)return e();await _4(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||globalThis.location.protocol).replace(":",""),o=globalThis.location.pathname;if(globalThis.location.hostname==="iobroker.net"||globalThis.location.hostname==="iobroker.pro")o="";else{if(globalThis.socketUrl){const d=new globalThis.URL(globalThis.socketUrl);e=d.hostname,r=d.port,n=d.protocol.replace(":","")}const c=o.lastIndexOf("/");if(c!==-1&&(o=o.substring(0,c+1)),Ir.isWeb()){const d=o.split("/");d.length>2&&(d.pop(),d.pop(),Y$.includes(d[d.length-1])&&d.pop(),o=d.join("/"),o.endsWith("/")||(o+="/"))}}const i=r?`${n}://${e}:${r}`:`${n}://${e}`,l=this.props.connect||(globalThis.io||globalThis.iob).connect;return this._socket=l(i,{path:o.endsWith("/")?`${o}socket.io`:`${o}/socket.io`,query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on("connect",c=>{globalThis.addEventListener?.("storage",this.onAccessTokenUpdated);const d=Ir.readTokens();if(d&&!d.owner){const f=Date.now();this.saveTokens({access_token:d.access_token,refresh_token:d.refresh_token,expires_in:Math.round((d.expires_in.getTime()-f)/1e3),refresh_token_expires_in:Math.round((d.refresh_token_expires_in.getTime()-f)/1e3),token_type:"Bearer"},d.stayLoggedIn)}this.onReadyDone=!1,c!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(f=>{const[g,u,m]=f.version.split(".");parseInt(g,10)*1e4+parseInt(u,10)*100+parseInt(m,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(x,w)=>this.onPreConnect(x,w))}).catch(f=>this.onError({message:f.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(f,g)=>{this.onPreConnect(f,g)})}),this._socket.on("reconnect",()=>{this.onReadyDone=!1,this.props.onProgress?.(xi.READY),this.connected=!0,this.waitForRestart?globalThis.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(c=>c(!0)))}),this._socket.on("disconnect",()=>{this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,this.props.onProgress?.(xi.CONNECTING),this.onConnectionHandlers.forEach(c=>c(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",c=>{this.props.onLog?.(c),this.onLogHandlers.forEach(d=>d(c))}),this._socket.on("error",c=>{let d;c==null?d="":typeof c.toString=="function"?d=c.toString():(d=JSON.stringify(c),console.error(`Received strange error: ${d}`)),d.includes("User not authorized")?this.authenticate():d.includes("websocket error")?(console.error(`Socket Error => reload: ${c}`),globalThis.location.reload()):console.error(`Socket Error: ${c}`)}),this._socket.on("connect_error",c=>console.error(`Connect error: ${c}`)),this._socket.on("permissionError",c=>this.onError({message:"no permission",operation:c.operation,type:c.type,id:c.id||""})),this._socket.on("objectChange",(c,d)=>{setTimeout(()=>this.objectChange(c,d),0)}),this._socket.on("stateChange",(c,d)=>{setTimeout(()=>this.stateChange(c,d),0)}),this._socket.on("im",(c,d,f)=>{setTimeout(()=>this.instanceMessage(c,d,f),0)}),this._socket.on("fileChange",(c,d,f)=>{setTimeout(()=>this.fileChange(c,d,f),0)}),this._socket.on("cmdStdout",(c,d)=>{this.onCmdStdoutHandler?.(c,d)}),this._socket.on("cmdStderr",(c,d)=>{this.onCmdStderrHandler?.(c,d)}),this._socket.on("cmdExit",(c,d)=>{this.onCmdExitHandler?.(c,d)}),Promise.resolve()}onPreConnect(e,r){this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?globalThis.location.reload():(this.firstConnect?this.loadData().catch(n=>{console.error(`Cannot load data: ${n}`)}):this.props.onProgress?.(xi.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(n=>n(!0)),this.checkAccessTokenExpire()),this._waitForFirstConnectionPromise.resolve()}static readTokens(){let e=globalThis.sessionStorage.getItem("iob_tokens");const r=!e;if(e||(e=globalThis.localStorage.getItem("iob_tokens")),!e)return null;const[n,o,i,l,c]=e.split(";"),d=new Date(o);return d.getTime(){if(e.key==="iob_tokens"){const r=Ir.readTokens();r&&(console.log(`Tab ${this.connId} received updated token: ${r.access_token}`),this.updateTokenExpiration(r.access_token))}};updateTokenExpiration(e){this.lastAccessToken!==e&&(this.lastAccessToken=e,this._socket.emit("updateTokenExpiration",e,(r,n)=>{r?(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token: ${r}`),globalThis.location.reload()):n?console.log(`[UPDATE/${new Date().toISOString()}] server accepted new token: ${e}`):(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token`),globalThis.location.reload())})),this.checkAccessTokenExpire()}refreshTokens(e,r){if(!e){console.log(`[REFRESH/${new Date().toISOString()}] No token structure found => reloading the page`),setTimeout(()=>globalThis.location.reload(),500);return}r||!e.owner||e.owner===this.connId?(console.log(`[REFRESH/${new Date().toISOString()}] claim ownership of the token`),this.acquireTokenLock()?(console.log(`[REFRESH/${new Date().toISOString()}] refreshing token`),fetch("./oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&refresh_token=${e.refresh_token}&client_id=ioBroker&stayloggedin=${e.stayLoggedIn}`}).then(n=>{if(n.ok)return n.json();throw new Error("Cannot refresh access token")}).then(n=>{if(n.access_token)console.log(`[REFRESH/${new Date().toISOString()}] received new token: ${n.access_token}`),this.saveTokens(n,e.stayLoggedIn),this.releaseTokenLock(),this.updateTokenExpiration(n.access_token);else throw new Error("Cannot get access token")}).catch(n=>{console.warn(`[REFRESH/${new Date().toISOString()}] cannot refresh token: ${n}`),this.releaseTokenLock(),this.deleteTokens(e.stayLoggedIn),console.error(n),globalThis.location.reload()})):(console.log(`[REFRESH/${new Date().toISOString()}] Someone else is updating the token, so wait for the next check`),this.checkAccessTokenExpire())):this.lastAccessToken!==e.access_token&&this.updateTokenExpiration(e.access_token)}acquireTokenLock(){const e=Date.now(),r=globalThis.localStorage.getItem("iob_token_semaphore");if(r)try{const o=JSON.parse(r);if(e{o?(console.log(`[TOKEN/${new Date().toISOString()}] Token will be prolonged`),this.refreshTokens(e,n)):(console.log(`[TOKEN/${new Date().toISOString()}] Token will not be prolonged. Reloading the page`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))})):(console.log(`[TOKEN/${new Date().toISOString()}] No tokenTimeoutHandler defined. Prolonging the token`),this.refreshTokens(e,n))):this.lastAccessToken!==e.access_token?(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token, but we will inform the server about new token`),this.refreshTokens(e)):(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token and the token did not change. Check in 3 seconds if the owner updated the token`),this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},3e3)):(console.log(`[TOKEN/${new Date().toISOString()}] We do not have a refresh token, so we need to reauthenticate`),setTimeout(()=>globalThis.location.reload(),Date.now()>r?500:r-Date.now()))}else this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},r-Date.now()-3e4>12e4?12e4:r-Date.now()-3e4)}}}static isCloud(){return globalThis.location.hostname.includes("amazonaws.com")||globalThis.location.hostname.includes("iobroker.in")?!0:typeof globalThis.socketUrl>"u"?!1:globalThis.socketUrl.includes("iobroker.in")||globalThis.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o||null)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await _4(Ir.isCloud()?5e3:1e3)}}async doLoadData(){if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(e){this.onError(`Cannot read user permissions: ${e}`);return}try{this.props.admin5only&&!Ir.isWeb()&&(!globalThis.vendorPrefix||globalThis.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(e){this.onError(`Cannot read system config: ${e}`);return}this._systemConfig&&(this.systemLang=this._systemConfig.common?.language,this.systemLang||(this.systemLang=globalThis.navigator.userLanguage||globalThis.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang="en"),this._systemConfig.common.language=this.systemLang)),this.props.onLanguage?.(this.systemLang),this.loaded=!0,this.props.onProgress?.(xi.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),this.props.onProgress?.(xi.READY),this.onReadyDone||(this.onReadyDone=!0,this.props.onReady?.(this.objects))}}authenticate(){globalThis.location.search.includes("&href=")?globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}${globalThis.location.search}`:globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}?login&href=${encodeURIComponent(globalThis.location.search+globalThis.location.hash)}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let i;if(Array.isArray(r)?i=r:i=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const l=[];for(let c=0;cc.includes("*"))){let c;for(let d=0;dconsole.error(`Cannot call state change handler: ${m}`))}}}else try{const c=await(Ir.isWeb()?this.getStates(i):this.getForeignStates(i));if(c)for(const[d,f]of Object.entries(c)){const g=o(d,f);g instanceof Promise&&g.catch(u=>console.error(`Cannot call state change handler: ${u}`))}}catch(c){console.error(`Cannot getState "${i.join(", ")}": ${c.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const d=c(e,r,n);d instanceof Promise&&d.catch(f=>console.error(`Cannot call object change handler: ${f}`))}catch(d){console.error(`Error by callback of objectChange: ${d}`)}});if(o){const i=this.props.onObjectChange?.(e,r);i instanceof Promise&&i.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const i=o(e,r??null);i instanceof Promise&&i.catch(l=>console.error(`Cannot call state change handler: ${l}`))}catch(i){console.error(`Error by callback of stateChanged: ${i}`)}}instanceMessage(e,r,n){this._instanceSubscriptions[r]?.forEach(o=>{if(o.messageType===e){const i=o.callback(n,r,e);i instanceof Promise&&i.catch(l=>console.error(`Cannot call instance message handler: ${l}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const i of o.cbs)try{i(e,r,n)}catch(l){console.error(`Error by callback of fileChange: ${l}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const i=[];for(let l=0;l{const u={elapsed:!1,clearTimeout:()=>{}};let m;n!==!1&&(m=setTimeout(()=>{u.elapsed=!0,o?.(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],g(new Error(Ei.TIMEOUT))},n??this.props.cmdTimeout),u.clearTimeout=()=>{clearTimeout(m)});try{await c(f,g,u)}catch(y){e&&this._promises[e]instanceof Promise&&delete this._promises[e],g(new Error(y.toString()))}});return e&&(this._promises[e]=d),d}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,i)=>{this.states=i??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,i)=>{o?n(o):r(i)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,i)=>{o?n(o):r(i)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,i=>{i?o(i):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,i)=>{if(e&&e===this.ignoreState){let l;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?l=r:l={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=l,this.statesSubscribes[e])for(const c of this.statesSubscribes[e].cbs)try{const d=c(e,l);d instanceof Promise&&d.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(d){console.error(`Error by callback of stateChanged: ${d}`)}o();return}this._socket.emit("setState",e,r,l=>{l?i(l):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Ir.isWeb()?"getObjects":"getAllObjects",(i,l)=>{r||this.props.onProgress?.(xi.OBJECTS_LOADED),i?o(i):(this.objects=l??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,i)=>{o?n(o):r(i)})}})}_subscribe(e){if(e&&!this.subscribed){this.subscribed=!0,this.props.autoSubscribes?.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("subscribeObjects",r),Object.keys(this.objectsSubscribes).forEach(n=>this._socket.emit("subscribeObjects",n)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("subscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,i]=n.split("$%$");this._socket.emit("subscribeFiles",o,i)})}else if(!e&&this.subscribed){this.subscribed=!1,this.props.autoSubscribes?.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const r=Object.keys(this.objectsSubscribes);r.length&&this._socket.emit("unsubscribeObjects",r),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(n=>this._socket.emit("unsubscribe",n)),Object.keys(this.filesSubscribes).forEach(n=>{const[o,i]=n.split("$%$");this._socket.emit("unsubscribeFiles",o,i)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},i=>{i?o(i):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},i=>{i?o(i):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,i=>{i?o(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,i)=>{o?n(o):r(i)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,i=>{o(i)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,i=>{i?o(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,1)}registerCmdStdoutHandler(e){this.onCmdStdoutHandler=e}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(e){this.onCmdStderrHandler=e}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(e){this.onCmdExitHandler=e}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(e,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(i,l)=>{if(i)o(i);else{const c={};if(l)for(let d=0;d{n||="",o||="香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(c,d)=>{if(c)l(c);else{const f={};if(d&&d.rows)for(let g=0;g{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{n?r(n):e(o.rows?.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(i,l)=>{i?o(i):n(l)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(l,c,d)=>{l?i(l):o({file:c,mimeType:d})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,l=>{l?i(l):o()});else{const l=btoa(new Uint8Array(n).reduce((c,d)=>c+String.fromCharCode(d),""));this._socket.emit("writeFile64",e,r,l,c=>{c?i(c):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,i=>{i?o(i):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,i=>{i?o(i):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("rename",e,r,n,l=>{l?i(l):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("renameFile",e,r,n,l=>{l?i(l):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(i,l,c)=>{e=k4(e),this._socket.emit("cmdExec",e,n,r,d=>{c.elapsed||(c.clearTimeout(),d?l(d):i())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??={},n.common??={},n.native??={},r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,i)=>{o?n(o):(i??={},i.common??={},i.native??={},r(i))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,i)=>{o?n(o):r(i??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(i,l)=>{i?o(i):n(l)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(i,l)=>{i?o(i):n(l)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(i,l,c,d)=>{i?o(i):n({values:l,sessionId:d,step:c})})}})}getIpAddresses(e,r){return e=k4(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n(o?.common.address??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,i,l)=>{o&&!i&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:i,serverName:l})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(i,l)=>{i?o(i):n(!!l)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{const r=await this.getObject("system.meta.uuid");e(r?.native?.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(i,l)=>{i?o(i):n(l)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",i=`${o}香`,l=await this.getObjectViewSystem("instance",o,i),c=Object.values(l);n(e?c.filter(d=>d.common.name===e):c)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e||="",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),i=Object.values(o);n(e?i.filter(l=>l.common.name===e):i)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,i)=>{o?n(o):r(K$(i))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(i,l)=>{this._socket.emit("clientSubscribe",e,r,n,(c,d)=>{c?l(c):d&&(d.error?l(d.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),i(d)))})}})}unsubscribeFromInstance(e,r,n){e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const i=[];do{o=!1;const l=this._instanceSubscriptions[e]?.findIndex(c=>(!r||c.messageType===r)&&(!n||c.callback===n));if(l!=null&&l!==-1){o=!0;const c=this._instanceSubscriptions[e][l].messageType;this._instanceSubscriptions[e].splice(l,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(f=>f.messageType===c)||i.push(this.request({commandTimeout:!1,executor:(f,g)=>{this._socket.emit("clientUnsubscribe",e,r,(u,m)=>u?g(u):f(m))}}))}}while(o&&(!n||!r));return i.length?Promise.all(i).then(l=>!!l.find(c=>c)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}destroy(){if(this._socket){const e=this._socket;try{typeof e.destroy=="function"?e.destroy():typeof e.close=="function"&&e.close(!0)}catch{}}globalThis.removeEventListener?.("storage",this.onAccessTokenUpdated),this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this._refreshTimer&&(clearTimeout(this._refreshTimer),this._refreshTimer=null),this.onConnectionHandlers.length=0,this.onLogHandlers.length=0;for(const e of Object.keys(this.statesSubscribes))delete this.statesSubscribes[e];for(const e of Object.keys(this.objectsSubscribes))delete this.objectsSubscribes[e];for(const e of Object.keys(this.filesSubscribes))delete this.filesSubscribes[e];this._instanceSubscriptions={},this.connected=!1,this.onReadyDone=!1}}function J$(){const t=document.getSelection();if(!t?.rangeCount)return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const O4={"text/plain":"Text","text/html":"Url",default:"Text"},Q$="Copy to clipboard: #{key}, Enter";function Z$(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function eL(t,e){let r,n,o,i,l=!1;e=e||{};const c=e.debug||!1;try{if(r=J$(),n=document.createRange(),o=document.getSelection(),i=document.createElement("span"),i.textContent=t,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top="0px",i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.userSelect="text",i.addEventListener("copy",f=>{if(f.stopPropagation(),e?.format)if(f.preventDefault(),typeof f.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData?.clearData();const g=O4[e.format]||O4.default;window.clipboardData?.setData(g,t)}else f.clipboardData?.clearData(),f.clipboardData?.setData(e.format,t)}),document.body.appendChild(i),n.selectNodeContents(i),o?.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){c&&console.error("unable to copy using execCommand: ",d),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),l=!0}catch(f){c&&console.error("unable to copy using clipboardData: ",f),c&&console.error("falling back to prompt");const g=Z$("message"in e?e.message||"":Q$);window.prompt(g,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),i&&document.body.removeChild(i),r&&r()}return l}class z{static translations={};static unknownTranslations=[];static lang=window.sysLang||"en";static _disableWarning=!1;static setLanguage(e){e&&(z.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(i=>{const l=i,c={},d=n[l];Object.keys(d).forEach(f=>{f&&d&&(f.startsWith(o)?c[f]=d[f]:c[`${o}${f}`]=d[f])}),e[l]=c})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;z.translations[o]||={},Object.assign(z.translations[o],e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(i=>{const l=i,c=z.translations[l];c?c[n]?c[n]!==o[l]&&console.warn(`Translation for word "${n}" in "${l}" was ignored: existing = "${c[n]}", new = ${o[l]}`):c[n]=o[l]:console.warn(`Used unknown language: ${l}`)})});else{z.translations[r]||console.warn(`Used unknown language: ${r}`),z.translations[r]||={};const n=z.translations[r];Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(z.translations=e)}static getLanguage(){return z.lang}static t(e,...r){const n=z.translations[z.lang];if(n){const o=n[e];if(o)e=o;else if(z.unknownTranslations.includes(e)||(z.unknownTranslations.push(e),!z._disableWarning&&console.log(`Translate: ${e}`)),z.lang!=="en"&&z.translations.en){const i=z.translations.en[e];i&&(e=i)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(z.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):e&&typeof e=="object"&&(z.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(z.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){z._disableWarning=!!e}}window.i18nShow=z.i18nShow;window.i18nDisableWarning=z.disableWarning;const io="material",tL=["Su","Mo","Tu","We","Th","Fr","Sa"],rL=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dm={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},R4={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"};class Ge{static namespace=io;static INSTANCES="instances";static dateFormat=["DD","MM"];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const i=Math.floor(e).toString().padStart(2,"0");let l="";return r&&(l+=`${r} ${z.t("ra_daysShortText")} `),l+=`${n}:${o}:${i}`,l}static getObjectName(e,r,n,o,i){const l=e[r];let c;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n?.name){const d=n.name;typeof d=="object"?c=o.language&&d[o.language]||d.en:c=d}else if(i&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!i&&l?.common){const d=l.common.name||l.common.desc;d&&typeof d=="object"?c=o.language&&d[o.language]||d.en||d.de||d.ru||"":c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else{const d=r.lastIndexOf(".");c=r.substring(d+1).replace(/[_.]/g," "),c=Ge.CapitalWords(c)}return c?.trim()||""}static getObjectNameFromObj(e,r,n,o,i){const l=e;let c=e?._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r?.name){const d=r.name;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d}else if(o&&l?.common?.desc){const d=l.common.desc;typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}else if(!o&&l?.common?.name){let d=l.common.name;!d&&l.common.desc&&(d=l.common.desc),typeof d=="object"?c=n.language&&d[n.language]||d.en:c=d,c=(c||"").toString().replace(/[_.]/g," "),c===c.toUpperCase()&&(c=c[0]+c.substring(1).toLowerCase())}return i?c:c.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[io];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subOrder&&i[l].subOrder[r])return JSON.parse(JSON.stringify(i[l].subOrder[r]))}else if(i[l].order)return JSON.parse(JSON.stringify(i[l].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let i;if(o?.custom){i=o.custom[io];const l=n.user||"admin";if(i&&i[l]){if(r){if(i[l].subURLs&&i[l].subURLs[r])return JSON.parse(JSON.stringify(i[l].subURLs[r]))}else if(i[l].URLs)return JSON.parse(JSON.stringify(i[l].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[i]=o.splice(r,1);return o.splice(n,0,i),o}static getSettings(e,r,n){let o;const i=e?._id||r?.id;let l;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?l=e.common:l=e,l?.custom?(o=l.custom,o=o[io]&&o[io][r.user||"admin"]?JSON.parse(JSON.stringify(o[io][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),l&&(!o.color&&l.color&&(o.color=l.color),!o.icon&&l.icon&&(o.icon=l.icon),!o.name&&l.name&&(o.name=l.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&i){const c=i.lastIndexOf(".");o.name=i.substring(c+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=Ge.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[io]=e.common.custom[io]||{},e.common.custom[io][n.user||"admin"]=r;const o=e.common.custom[io][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e?.icon?e.icon.length<=2?v.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?v.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):v.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){if(typeof e=="object"&&(r=e,e=r?._id),r?.common?.icon){let n=r.common.icon;if(typeof n=="string"&&n.length<=2||n.startsWith("data:image"))return n;const o=e.split(".");return o[0]==="system"?n=`adapter/${o[2]}${n.startsWith("/")?"":"/"}${n}`:n=`adapter/${o[0]}${n.startsWith("/")?"":"/"}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?n=`../../${n}`:window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(e){return e?Ge.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,i;const l=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(l&&l.length===4)n=parseInt(l[1],10),o=parseInt(l[2],10),i=parseInt(l[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16)}return n*.299+o*.587+i*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}static getWindDirection(e){return e>=0&&e<11.25?"N":e>=11.25&&e<33.75?"NNE":e>=33.75&&e<56.25?"NE":e>=56.25&&e<78.75?"ENE":e>=78.75&&e<101.25?"E":e>=101.25&&e<123.75?"ESE":e>=123.75&&e<146.25?"SE":e>=146.25&&e<168.75?"SSE":e>=168.75&&e<191.25?"S":e>=191.25&&e<213.75?"SSW":e>=213.75&&e<236.25?"SW":e>=236.25&&e<258.75?"WSW":e>=258.75&&e<281.25?"W":e>=281.25&&e<303.75?"WNW":e>=303.75&&e<326.25?"NW":e>=326.25&&e<348.75?"NNW":"N"}static padding(e){return typeof e=="string"?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(e){e&&(Ge.dateFormat=e.toUpperCase().split(/[.-/]/),Ge.dateFormat.splice(Ge.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],i=o.find(l=>l>31);if(i!==void 0){o.splice(o.indexOf(i),1);const l=o.find(c=>c>12);l?(o.splice(o.indexOf(l),1),e=new Date(i,o[0]-1,l)):Ge.dateFormat[0][0]==="M"&&Ge.dateFormat[1][0]==="D"?(e=new Date(i,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[1]-1,o[0]))):Ge.dateFormat[0][0]==="D"&&Ge.dateFormat[1][0]==="M"?(e=new Date(i,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=z.t(`ra_dow_${tL[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${z.t(`ra_month_${rL[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const i=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),i&&n.push(v.createElement("span",{key:`a${o++}`},i)),r[0].startsWith(""))n.push(v.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(v.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(v.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return l?.common?.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const i=e[r];return i?.common?.custom&&i.common.custom[n]&&i.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=e?.common?.custom?.[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName={}):o.common.smartName={}}static removeSmartName(e,r,n){const o=e;n?o?.common?.custom?.[r]&&(o.common.custom[r]=null):o.common.smartName=null}static updateSmartName(e,r,n,o,i,l){const c=z.getLanguage(),d=e;if(typeof d.common.smartName=="string"){const f=d.common.smartName;d.common.smartName={},d.common.smartName[c]=f}if(d.native?.byON){delete d.native.byON;let f=d.common.smartName;f&&typeof f!="object"&&(f={en:f,[c]:f}),d.common.smartName=f}if(o!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},o?d.common.custom[i].smartName.smartType=o:delete d.common.custom[i].smartName.smartType):(d.common.smartName||={},o?d.common.smartName.smartType=o:delete d.common.smartName.smartType)),n!==void 0&&(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},d.common.custom[i].smartName.byON=n):(d.common.smartName||={},d.common.smartName.byON=n)),r!==void 0){let f;if(l?(d.common.custom||={},d.common.custom[i]||={},d.common.custom[i].smartName||={},f=d.common.custom[i].smartName):(d.common.smartName||={},f=d.common.smartName),f[c]=r,f&&(!f[c]||f[c]===d.common.name&&!d.common.role)){delete f[c];let g=!0;for(const u in f)if(Object.prototype.hasOwnProperty.call(f,u)){g=!1;break}if(g)if(l&&d.common.custom?.[i])d.common.custom[i].smartName.byON===void 0?delete d.common.custom[i]:(delete d.common.custom[i].en,delete d.common.custom[i].de,delete d.common.custom[i].ru,delete d.common.custom[i].nl,delete d.common.custom[i].pl,delete d.common.custom[i].it,delete d.common.custom[i].fr,delete d.common.custom[i].pt,delete d.common.custom[i].es,delete d.common.custom[i].uk,delete d.common.custom[i]["zh-cn"]);else if(d.common.smartName&&d.common.smartName.byON!==void 0){const u=d.common.smartName;delete u.en,delete u.de,delete u.ru,delete u.nl,delete u.pl,delete u.it,delete u.fr,delete u.pt,delete u.es,delete u.uk,delete u["zh-cn"]}else d.common.smartName=null}}}static updateSmartNameEx(e,r){const n=z.getLanguage(),o=e;if(typeof o.common.smartName=="string"){const i=o.common.smartName;o.common.smartName={},o.common.smartName[n]=i}if(o.native?.byON){delete o.native.byON;let i=o.common.smartName;i&&typeof i!="object"&&(i={en:i,[n]:i}),o.common.smartName=i}if(r.smartType!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},r.smartType?o.common.custom[r.instanceId].smartName.smartType=r.smartType:delete o.common.custom[r.instanceId].smartName.smartType):(o.common.smartName||={},r.smartType?o.common.smartName.smartType=r.smartType:delete o.common.smartName.smartType)),r.byON!==void 0&&(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.byON=r.byON):(o.common.smartName||={},o.common.smartName.byON=r.byON)),r.noAutoDetect!==void 0&&(r.noCommon?r.noAutoDetect?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},o.common.custom[r.instanceId].smartName.noAutoDetect=r.noAutoDetect):o.common.custom?.[r.instanceId]?.smartName&&delete o.common.custom[r.instanceId].smartName.noAutoDetect:!r.noAutoDetect&&o.common.smartName?delete o.common.smartName.noAutoDetect:(o.common.smartName||={},o.common.smartName.noAutoDetect=r.noAutoDetect)),r.smartName!==void 0){let i;if(r.noCommon?(o.common.custom||={},o.common.custom[r.instanceId]||={},o.common.custom[r.instanceId].smartName||={},i=o.common.custom[r.instanceId].smartName):(o.common.smartName||={},i=o.common.smartName),i[n]=r.smartName,i&&(!i[n]||i[n]===o.common.name&&!o.common.role)){delete i[n];let l=!0;for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){l=!1;break}if(l)if(r.noCommon&&o.common.custom?.[r.instanceId])o.common.custom[r.instanceId].smartName.byON===void 0?delete o.common.custom[r.instanceId]:(delete o.common.custom[r.instanceId].en,delete o.common.custom[r.instanceId].de,delete o.common.custom[r.instanceId].ru,delete o.common.custom[r.instanceId].nl,delete o.common.custom[r.instanceId].pl,delete o.common.custom[r.instanceId].it,delete o.common.custom[r.instanceId].fr,delete o.common.custom[r.instanceId].pt,delete o.common.custom[r.instanceId].es,delete o.common.custom[r.instanceId].uk,delete o.common.custom[r.instanceId]["zh-cn"]);else if(o.common.smartName&&o.common.smartName.byON!==void 0){const c=o.common.smartName;delete c.en,delete c.de,delete c.ru,delete c.nl,delete c.pl,delete c.it,delete c.fr,delete c.pt,delete c.es,delete c.uk,delete c["zh-cn"]}else o.common.smartName=null}}}static disableSmartName(e,r,n){const o=e;n?(o.common.custom||={},o.common.custom[r]||={},o.common.custom[r].smartName=!1):o.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),eL(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const c=(255-o).toString(16),d=(255-i).toString(16),f=(255-l).toString(16);return`#${c.padStart(2,"0")}${d.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else e.startsWith("#")&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let i=(r*.4124+n*.3576+o*.1805)/.95047,l=r*.2126+n*.7152+o*.0722,c=(r*.0193+n*.1192+o*.9505)/1.08883;return i=i>.008856?i**.33333333:7.787*i+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,c=c>.008856?c**.33333333:7.787*c+.137931,[116*l-16,500*(i-l),200*(l-c)]}static colorDistance(e,r){const n=Ge.color2rgb(e),o=Ge.color2rgb(r);if(!n||!o)return 0;const i=Ge.rgb2lab(n),l=Ge.rgb2lab(o),c=i[0]-l[0],d=i[1]-l[1],f=i[2]-l[2],g=Math.sqrt(i[1]*i[1]+i[2]*i[2]),u=Math.sqrt(l[1]*l[1]+l[2]*l[2]),m=g-u;let y=d*d+f*f-m*m;y=y<0?0:Math.sqrt(y);const x=1+.045*g,w=1+.015*g,T=c,k=m/x,I=y/w,_=T*T+k*k+I*I;return _<0?0:_}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),i=decodeURIComponent(o[0]).trim();if(o.length>1){const l=decodeURIComponent(o[1]);if(l==="true")r[i]=!0;else if(l==="false")r[i]=!1;else{const c=parseFloat(l);c.toString()===l?r[i]=c:r[i]=l}}else r[i]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${i}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${i}`,n+=` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`,n}static formatTime(e){if(e){e=Math.round(e);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),i=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){const r=Ge.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` `);for(let l=0;l{if(!l.trim())return;const c=l.indexOf(":");if(c!==-1){const d=l.substring(0,c).trim();let f=l.substring(c+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[d]=!0:f==="false"?r[d]=!1:parseFloat(f).toString()===r[d]?r[d]=parseFloat(f):r[d]=f}else r[l.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=dm[e];let o;return n?o=[n]:e&1?o=[dm[1],`0x${(e&65534).toString(16)}`]:e&2?o=[dm[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){const r=e?.common?.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const o=r.split(";");n={};for(let i=0;in[i]=o):e?.common.type==="string"?r.forEach(o=>n[o]=o):e?.common.type==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const i=new FileReader;i.onload=()=>o(i.result?.toString()||""),i.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(R4).find(n=>e.startsWith(n));return r?R4[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.toLowerCase().startsWith("stable")))}static isStringInteger(e){return typeof e=="number"?Math.round(e)===e:parseInt(e,10).toString()===e}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getStyle(e,...r){const n={};for(let o=0;o{if(typeof r[o][i]=="function")n[i]=r[o][i](e);else if(typeof r[o][i]=="object"){const l=r[o][i];n[i]={},Object.keys(l).forEach(c=>{typeof l[c]=="function"?n[i][c]=l(e):(l[c]||l[c]===0)&&(n[i][c]=l[c])})}else(r[o][i]||r[o][i]===0)&&(n[i]=r[o][i])});return n}}const pm={buttonIcon:{marginRight:8}};class wY extends v.Component{isIFrame;constructor(e){super(e);const r=e.newReact===void 0?!0:e.newReact;if(e.isIFrame!==void 0)this.isIFrame=e.isIFrame;else try{this.isIFrame=!r&&window.self!==window.top}catch{this.isIFrame=!r}}render(){const e=this.props.noTextOnButtons,r={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},n={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(n.minHeight=48),this.props.error&&(r.border="1px solid red"),v.createElement(oE,{style:n},v.createElement(fa,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:r},v.createElement(iv,{style:e?void 0:pm.buttonIcon}),!e&&z.t("ra_Save")),v.createElement(fa,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...r,marginLeft:10}},v.createElement(iv,{style:e?void 0:pm.buttonIcon}),e?"+":z.t("ra_Save and close"),e&&v.createElement(ga,null)),v.createElement("div",{style:{flexGrow:1}}),v.createElement(fa,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:r},v.createElement(ga,{style:e?void 0:pm.buttonIcon}),!e&&z.t("ra_Close")))}}const P4={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class nL extends O.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}handleOk(){this.state.suppress&&(window._localStorage||window.localStorage).setItem(this.props.dialogName,Date.now()+(this.props.suppressQuestionMinutes||2)*6e4),this.props.onClose&&this.props.onClose(!0)}handleCancel(){this.props.onClose&&this.props.onClose(!1)}render(){return typeof this.state.suppress=="number"?(setTimeout(()=>this.props.onClose&&this.props.onClose(!0),100),null):v.createElement(qo,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},v.createElement(Xo,{id:"ar_confirmation_dialog_title"},this.props.title||z.t("ra_Are you sure?")),v.createElement(Uo,null,v.createElement(Fp,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?v.createElement("br",null):null,this.props.suppressQuestionMinutes?v.createElement(ct,{sx:{"& .FormControlLabel-label":P4.suppress,"&.FormControlLabel-root":P4.suppressRoot},control:v.createElement(Ar,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||z.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),v.createElement(Wo,null,v.createElement(Vt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Fi,null)},this.props.ok||z.t("ra_Ok")),v.createElement(Vt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:v.createElement(ga,null)},this.props.cancel||z.t("ra_Cancel"))))}}class oL extends O.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return v.createElement(qo,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},v.createElement(Xo,{id:"ar_alert_dialog_title"},this.props.title||z.t("ra_Error")),v.createElement(Uo,null,v.createElement(Fp,{id:"ar_alert_dialog_description"},this.props.text||z.t("ra_Unknown error!"))),v.createElement(Wo,null,v.createElement(Vt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:v.createElement(Fi,null)},z.t("ra_Ok"))))}}var Vr={},cs={},fm,M4;function lE(){if(M4)return fm;M4=1;var t=typeof ad=="object"&&ad&&ad.Object===Object&&ad;return fm=t,fm}var hm,I4;function To(){if(I4)return hm;I4=1;var t=lE(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return hm=r,hm}var mm,A4;function Jc(){if(A4)return mm;A4=1;var t=To(),e=t.Symbol;return mm=e,mm}var gm,D4;function iL(){if(D4)return gm;D4=1;var t=Jc(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function i(l){var c=r.call(l,o),d=l[o];try{l[o]=void 0;var f=!0}catch{}var g=n.call(l);return f&&(c?l[o]=d:delete l[o]),g}return gm=i,gm}var vm,N4;function aL(){if(N4)return vm;N4=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return vm=r,vm}var ym,$4;function xa(){if($4)return ym;$4=1;var t=Jc(),e=iL(),r=aL(),n="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function l(c){return c==null?c===void 0?o:n:i&&i in Object(c)?e(c):r(c)}return ym=l,ym}var bm,L4;function Gn(){if(L4)return bm;L4=1;var t=Array.isArray;return bm=t,bm}var wm,F4;function Vo(){if(F4)return wm;F4=1;function t(e){return e!=null&&typeof e=="object"}return wm=t,wm}var xm,B4;function sL(){if(B4)return xm;B4=1;var t=xa(),e=Gn(),r=Vo(),n="[object String]";function o(i){return typeof i=="string"||!e(i)&&r(i)&&t(i)==n}return xm=o,xm}var Sm,z4;function lL(){if(z4)return Sm;z4=1;function t(e){return function(r,n,o){for(var i=-1,l=Object(r),c=o(r),d=c.length;d--;){var f=c[e?d:++i];if(n(l[f],f,l)===!1)break}return r}}return Sm=t,Sm}var Tm,j4;function cL(){if(j4)return Tm;j4=1;var t=lL(),e=t();return Tm=e,Tm}var Em,H4;function uL(){if(H4)return Em;H4=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return Rm=e,Rm}var Pm,K4;function fL(){if(K4)return Pm;K4=1;var t=xa(),e=py(),r=Vo(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",g="[object Number]",u="[object Object]",m="[object RegExp]",y="[object Set]",x="[object String]",w="[object WeakMap]",T="[object ArrayBuffer]",k="[object DataView]",I="[object Float32Array]",_="[object Float64Array]",R="[object Int8Array]",P="[object Int16Array]",C="[object Int32Array]",M="[object Uint8Array]",N="[object Uint8ClampedArray]",D="[object Uint16Array]",E="[object Uint32Array]",$={};$[I]=$[_]=$[R]=$[P]=$[C]=$[M]=$[N]=$[D]=$[E]=!0,$[n]=$[o]=$[T]=$[i]=$[k]=$[l]=$[c]=$[d]=$[f]=$[g]=$[u]=$[m]=$[y]=$[x]=$[w]=!1;function H(q){return r(q)&&e(q.length)&&!!$[t(q)]}return Pm=H,Pm}var Mm,Y4;function fy(){if(Y4)return Mm;Y4=1;function t(e){return function(r){return e(r)}}return Mm=t,Mm}var hc={exports:{}};hc.exports;var J4;function hy(){return J4||(J4=1,(function(t,e){var r=lE(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===n,l=i&&r.process,c=(function(){try{var d=o&&o.require&&o.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}})();t.exports=c})(hc,hc.exports)),hc.exports}var Im,Q4;function dE(){if(Q4)return Im;Q4=1;var t=fL(),e=fy(),r=hy(),n=r&&r.isTypedArray,o=n?e(n):t;return Im=o,Im}var Am,Z4;function pE(){if(Z4)return Am;Z4=1;var t=uL(),e=cE(),r=Gn(),n=dy(),o=uE(),i=dE(),l=Object.prototype,c=l.hasOwnProperty;function d(f,g){var u=r(f),m=!u&&e(f),y=!u&&!m&&n(f),x=!u&&!m&&!y&&i(f),w=u||m||y||x,T=w?t(f.length,String):[],k=T.length;for(var I in f)(g||c.call(f,I))&&!(w&&(I=="length"||y&&(I=="offset"||I=="parent")||x&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||o(I,k)))&&T.push(I);return T}return Am=d,Am}var Dm,eS;function my(){if(eS)return Dm;eS=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return Dm=e,Dm}var Nm,tS;function fE(){if(tS)return Nm;tS=1;function t(e,r){return function(n){return e(r(n))}}return Nm=t,Nm}var $m,rS;function hL(){if(rS)return $m;rS=1;var t=fE(),e=t(Object.keys,Object);return $m=e,$m}var Lm,nS;function mL(){if(nS)return Lm;nS=1;var t=my(),e=hL(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!t(i))return e(i);var l=[];for(var c in Object(i))n.call(i,c)&&c!="constructor"&&l.push(c);return l}return Lm=o,Lm}var Fm,oS;function al(){if(oS)return Fm;oS=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return Fm=t,Fm}var Bm,iS;function hE(){if(iS)return Bm;iS=1;var t=xa(),e=al(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function l(c){if(!e(c))return!1;var d=t(c);return d==n||d==o||d==r||d==i}return Bm=l,Bm}var zm,aS;function zp(){if(aS)return zm;aS=1;var t=hE(),e=py();function r(n){return n!=null&&e(n.length)&&!t(n)}return zm=r,zm}var jm,sS;function Qc(){if(sS)return jm;sS=1;var t=pE(),e=mL(),r=zp();function n(o){return r(o)?t(o):e(o)}return jm=n,jm}var Hm,lS;function mE(){if(lS)return Hm;lS=1;var t=cL(),e=Qc();function r(n,o){return n&&t(n,o,e)}return Hm=r,Hm}var qm,cS;function gE(){if(cS)return qm;cS=1;function t(e){return e}return qm=t,qm}var Wm,uS;function gL(){if(uS)return Wm;uS=1;var t=gE();function e(r){return typeof r=="function"?r:t}return Wm=e,Wm}var Um,dS;function gy(){if(dS)return Um;dS=1;var t=mE(),e=gL();function r(n,o){return n&&t(n,e(o))}return Um=r,Um}var Xm,pS;function vy(){if(pS)return Xm;pS=1;var t=fE(),e=t(Object.getPrototypeOf,Object);return Xm=e,Xm}var Vm,fS;function vL(){if(fS)return Vm;fS=1;var t=xa(),e=vy(),r=Vo(),n="[object Object]",o=Function.prototype,i=Object.prototype,l=o.toString,c=i.hasOwnProperty,d=l.call(Object);function f(g){if(!r(g)||t(g)!=n)return!1;var u=e(g);if(u===null)return!0;var m=c.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&l.call(m)==d}return Vm=f,Vm}var Gm,hS;function vE(){if(hS)return Gm;hS=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,i=Array(o);++n-1}return e0=e,e0}var t0,xS;function SL(){if(xS)return t0;xS=1;var t=jp();function e(r,n){var o=this.__data__,i=t(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return t0=e,t0}var r0,SS;function Hp(){if(SS)return r0;SS=1;var t=yL(),e=bL(),r=wL(),n=xL(),o=SL();function i(l){var c=-1,d=l==null?0:l.length;for(this.clear();++cy))return!1;var w=u.get(l),T=u.get(c);if(w&&T)return w==c&&T==l;var k=-1,I=!0,_=d&o?new t:void 0;for(u.set(l,c),u.set(c,l);++k0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,c.default)(u,function(y){Array.isArray(y)?g(y).map(function(x){return m.push(x)}):(0,i.default)(y)?(0,n.default)(y,function(x,w){x===!0&&m.push(w),m.push(w+"-"+x)}):(0,e.default)(y)&&m.push(y)}),m};return cs.default=f,cs}var us={},Rg,Y3;function _F(){if(Y3)return Rg;Y3=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],g=d.default&&(0,n.default)(d.default)||{};return f.map(function(u){var m=d[u];return m&&(0,e.default)(m,function(y,x){g[x]||(g[x]={}),g[x]=o({},g[x],m[x])}),u}),g};return us.default=l,us}var ds={},O5;function ZF(){if(O5)return ds;O5=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.autoprefix=void 0;var t=gy(),e=n(t),r=Object.assign||function(l){for(var c=1;c1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,x,w,T;o(this,m);for(var k=arguments.length,I=Array(k),_=0;_1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){l(m,u);function m(){var y,x,w,T;o(this,m);for(var k=arguments.length,I=Array(k),_=0;_1&&arguments[1]!==void 0?arguments[1]:!0;o[c]=d};return r===0&&i("first-child"),r===n-1&&i("last-child"),(r===0||r%2===0)&&i("even"),Math.abs(r%2)===1&&i("odd"),i("nth-child",r),o};return Sd.default=t,Sd}var I5;function nB(){if(I5)return Vr;I5=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.ReactCSS=Vr.loop=Vr.handleActive=Vr.handleHover=Vr.hover=void 0;var t=kF(),e=m(t),r=QF(),n=m(r),o=ZF(),i=m(o),l=eB(),c=m(l),d=tB(),f=m(d),g=rB(),u=m(g);function m(x){return x&&x.__esModule?x:{default:x}}Vr.hover=c.default,Vr.handleHover=c.default,Vr.handleActive=f.default,Vr.loop=u.default;var y=Vr.ReactCSS=function(w){for(var T=arguments.length,k=Array(T>1?T-1:0),I=1;Ic?m=1:m=Math.round(u*100/c)/100,r.a!==m)return{h:r.h,s:r.s,l:r.l,a:m,source:"rgb"}}else{var y=void 0;if(g<0?y=0:g>l?y=1:y=Math.round(g*100/l)/100,o!==y)return{h:r.h,s:r.s,l:r.l,a:y,source:"rgb"}}return null},i1={},iB=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var i=o?new o:document.createElement("canvas");i.width=n*2,i.height=n*2;var l=i.getContext("2d");return l?(l.fillStyle=e,l.fillRect(0,0,i.width,i.height),l.fillStyle=r,l.fillRect(0,0,n,n),l.translate(n,n),l.fillRect(0,0,n,n),i.toDataURL()):null},aB=function(e,r,n,o){var i=e+"-"+r+"-"+n+(o?"-server":"");if(i1[i])return i1[i];var l=iB(e,r,n,o);return i1[i]=l,l},A5=Object.assign||function(t){for(var e=1;e