From 8e44edbba90d6cdab8e84724410640812adfc2b4 Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Sun, 8 Dec 2024 13:12:40 +0000 Subject: [PATCH] chore: release v3.4.4 - (@GermanBluefox) Corrected the name editing of the devices for Alexa 3 --- README.md | 2 +- .../{index-DYglA2vh.js => index-CyttUCw3.js} | 164 +++++++++--------- admin/index_m.html | 2 +- io-package.json | 28 +-- package.json | 2 +- src-rules/package.json | 2 +- src/package.json | 2 +- 7 files changed, 101 insertions(+), 101 deletions(-) rename admin/assets/{index-DYglA2vh.js => index-CyttUCw3.js} (65%) diff --git a/README.md b/README.md index 7a24b660..1d26a0b8 100644 --- a/README.md +++ b/README.md @@ -341,7 +341,7 @@ setState('iot.0.app.message', JSON.stringify({ --> ## Changelog -### **WORK IN PROGRESS** +### 3.4.4 (2024-12-08) - (@GermanBluefox) Corrected the name editing of the devices for Alexa 3 diff --git a/admin/assets/index-DYglA2vh.js b/admin/assets/index-CyttUCw3.js similarity index 65% rename from admin/assets/index-DYglA2vh.js rename to admin/assets/index-CyttUCw3.js index 3cdb33ee..7e1fa68a 100644 --- a/admin/assets/index-DYglA2vh.js +++ b/admin/assets/index-CyttUCw3.js @@ -1,4 +1,4 @@ -var MM=Object.defineProperty;var wS=e=>{throw TypeError(e)};var NM=(e,t,n)=>t in e?MM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var F=(e,t,n)=>NM(e,typeof t!="symbol"?t+"":t,n),zM=(e,t,n)=>t.has(e)||wS("Cannot "+n);var SS=(e,t,n)=>(zM(e,t,"read from private field"),n?n.call(e):t.get(e)),xS=(e,t,n)=>t.has(e)?wS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);var dkt=jM((Do,Ao)=>{function RM(e,t){for(var n=0;no[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var Zp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nT={exports:{}},Jm={};/** +var NM=Object.defineProperty;var SS=e=>{throw TypeError(e)};var jM=(e,t,n)=>t in e?NM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var F=(e,t,n)=>jM(e,typeof t!="symbol"?t+"":t,n),RM=(e,t,n)=>t.has(e)||SS("Cannot "+n);var xS=(e,t,n)=>(RM(e,t,"read from private field"),n?n.call(e):t.get(e)),CS=(e,t,n)=>t.has(e)?SS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);var pkt=zM((Do,Ao)=>{function IM(e,t){for(var n=0;no[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var Zp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rT={exports:{}},Jm={};/** * @license React * react-jsx-runtime.production.js * @@ -6,7 +6,7 @@ var MM=Object.defineProperty;var wS=e=>{throw TypeError(e)};var NM=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var IM=Symbol.for("react.transitional.element"),LM=Symbol.for("react.fragment");function oT(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:IM,type:e,key:o,ref:t!==void 0?t:null,props:n}}Jm.Fragment=LM;Jm.jsx=oT;Jm.jsxs=oT;nT.exports=Jm;var m=nT.exports,rT={exports:{}},He={};/** + */var LM=Symbol.for("react.transitional.element"),FM=Symbol.for("react.fragment");function aT(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:LM,type:e,key:o,ref:t!==void 0?t:null,props:n}}Jm.Fragment=FM;Jm.jsx=aT;Jm.jsxs=aT;rT.exports=Jm;var m=rT.exports,sT={exports:{}},He={};/** * @license React * react.production.js * @@ -14,7 +14,7 @@ var MM=Object.defineProperty;var wS=e=>{throw TypeError(e)};var NM=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var k0=Symbol.for("react.transitional.element"),FM=Symbol.for("react.portal"),PM=Symbol.for("react.fragment"),BM=Symbol.for("react.strict_mode"),HM=Symbol.for("react.profiler"),UM=Symbol.for("react.consumer"),WM=Symbol.for("react.context"),VM=Symbol.for("react.forward_ref"),GM=Symbol.for("react.suspense"),qM=Symbol.for("react.memo"),aT=Symbol.for("react.lazy"),CS=Symbol.iterator;function XM(e){return e===null||typeof e!="object"?null:(e=CS&&e[CS]||e["@@iterator"],typeof e=="function"?e:null)}var sT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},iT=Object.assign,lT={};function Xc(e,t,n){this.props=e,this.context=t,this.refs=lT,this.updater=n||sT}Xc.prototype.isReactComponent={};Xc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cT(){}cT.prototype=Xc.prototype;function E0(e,t,n){this.props=e,this.context=t,this.refs=lT,this.updater=n||sT}var T0=E0.prototype=new cT;T0.constructor=E0;iT(T0,Xc.prototype);T0.isPureReactComponent=!0;var $S=Array.isArray,en={H:null,A:null,T:null,S:null},dT=Object.prototype.hasOwnProperty;function O0(e,t,n,o,r,a){return n=a.ref,{$$typeof:k0,type:e,key:t,ref:n!==void 0?n:null,props:a}}function JM(e,t){return O0(e.type,t,void 0,void 0,void 0,e.props)}function D0(e){return typeof e=="object"&&e!==null&&e.$$typeof===k0}function YM(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var kS=/\/+/g;function N_(e,t){return typeof e=="object"&&e!==null&&e.key!=null?YM(""+e.key):t.toString(36)}function ES(){}function KM(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(ES,ES):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Sl(e,t,n,o,r){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case k0:case FM:s=!0;break;case aT:return s=e._init,Sl(s(e._payload),t,n,o,r)}}if(s)return r=r(e),s=o===""?"."+N_(e,0):o,$S(r)?(n="",s!=null&&(n=s.replace(kS,"$&/")+"/"),Sl(r,t,n,"",function(d){return d})):r!=null&&(D0(r)&&(r=JM(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(kS,"$&/")+"/")+s)),t.push(r)),1;s=0;var i=o===""?".":o+":";if($S(e))for(var l=0;l{throw TypeError(e)};var NM=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(M,P){var H=M.length;M.push(P);e:for(;0>>1,Z=M[B];if(0>>1;Br(fe,H))ler(Se,fe)?(M[B]=Se,M[le]=H,B=le):(M[B]=fe,M[ve]=H,B=ve);else if(ler(Se,H))M[B]=Se,M[le]=H,B=le;else break e}}return P}function r(M,P){var H=M.sortIndex-P.sortIndex;return H!==0?H:M.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,i=s.now();e.unstable_now=function(){return s.now()-i}}var l=[],d=[],u=1,c=null,h=3,f=!1,g=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function y(M){for(var P=n(d);P!==null;){if(P.callback===null)o(d);else if(P.startTime<=M)o(d),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(d)}}function w(M){if(v=!1,y(M),!g)if(n(l)!==null)g=!0,j();else{var P=n(d);P!==null&&N(w,P.startTime-M)}}var $=!1,k=-1,T=5,O=-1;function D(){return!(e.unstable_now()-OM&&D());){var B=c.callback;if(typeof B=="function"){c.callback=null,h=c.priorityLevel;var Z=B(c.expirationTime<=M);if(M=e.unstable_now(),typeof Z=="function"){c.callback=Z,y(M),P=!0;break t}c===n(l)&&o(l),y(M)}else o(l);c=n(l)}if(c!==null)P=!0;else{var oe=n(d);oe!==null&&N(w,oe.startTime-M),P=!1}}break e}finally{c=null,h=H,f=!1}P=void 0}}finally{P?A():$=!1}}}var A;if(typeof b=="function")A=function(){b(x)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,I=R.port2;R.port1.onmessage=x,A=function(){I.postMessage(null)}}else A=function(){S(x,0)};function j(){$||($=!0,A())}function N(M,P){k=S(function(){M(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){g||f||(g=!0,j())},e.unstable_forceFrameRate=function(M){0>M||125B?(M.sortIndex=H,t(d,M),n(l)===null&&M===n(d)&&(v?(_(k),k=-1):v=!0,N(w,H-B))):(M.sortIndex=Z,t(l,M),g||f||(g=!0,j())),M},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(M){var P=h;return function(){var H=h;h=P;try{return M.apply(this,arguments)}finally{h=H}}}})(hT);pT.exports=hT;var e6=pT.exports,fT={exports:{}},so={};/** + */(function(e){function t(M,P){var H=M.length;M.push(P);e:for(;0>>1,Z=M[B];if(0>>1;Br(fe,H))ler(Se,fe)?(M[B]=Se,M[le]=H,B=le):(M[B]=fe,M[ve]=H,B=ve);else if(ler(Se,H))M[B]=Se,M[le]=H,B=le;else break e}}return P}function r(M,P){var H=M.sortIndex-P.sortIndex;return H!==0?H:M.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,i=s.now();e.unstable_now=function(){return s.now()-i}}var l=[],d=[],u=1,c=null,h=3,f=!1,g=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function y(M){for(var P=n(d);P!==null;){if(P.callback===null)o(d);else if(P.startTime<=M)o(d),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(d)}}function w(M){if(v=!1,y(M),!g)if(n(l)!==null)g=!0,j();else{var P=n(d);P!==null&&N(w,P.startTime-M)}}var $=!1,k=-1,T=5,O=-1;function D(){return!(e.unstable_now()-OM&&D());){var B=c.callback;if(typeof B=="function"){c.callback=null,h=c.priorityLevel;var Z=B(c.expirationTime<=M);if(M=e.unstable_now(),typeof Z=="function"){c.callback=Z,y(M),P=!0;break t}c===n(l)&&o(l),y(M)}else o(l);c=n(l)}if(c!==null)P=!0;else{var oe=n(d);oe!==null&&N(w,oe.startTime-M),P=!1}}break e}finally{c=null,h=H,f=!1}P=void 0}}finally{P?A():$=!1}}}var A;if(typeof b=="function")A=function(){b(x)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,I=R.port2;R.port1.onmessage=x,A=function(){I.postMessage(null)}}else A=function(){S(x,0)};function j(){$||($=!0,A())}function N(M,P){k=S(function(){M(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){g||f||(g=!0,j())},e.unstable_forceFrameRate=function(M){0>M||125B?(M.sortIndex=H,t(d,M),n(l)===null&&M===n(d)&&(v?(_(k),k=-1):v=!0,N(w,H-B))):(M.sortIndex=Z,t(l,M),g||f||(g=!0,j())),M},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(M){var P=h;return function(){var H=h;h=P;try{return M.apply(this,arguments)}finally{h=H}}}})(mT);fT.exports=mT;var t6=fT.exports,gT={exports:{}},so={};/** * @license React * react-dom.production.js * @@ -30,7 +30,7 @@ var MM=Object.defineProperty;var wS=e=>{throw TypeError(e)};var NM=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var t6=C;function mT(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gT)}catch(e){console.error(e)}}gT(),fT.exports=so;var A0=fT.exports;const eh=Xm(A0);/** + */var n6=C;function _T(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vT)}catch(e){console.error(e)}}vT(),gT.exports=so;var M0=gT.exports;const eh=Xm(M0);/** * @license React * react-dom-client.production.js * @@ -38,28 +38,28 @@ var MM=Object.defineProperty;var wS=e=>{throw TypeError(e)};var NM=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xn=e6,_T=C,r6=A0;function q(e){var t="https://react.dev/errors/"+e;if(1)":-1r||l[o]!==d[r]){var u=` -`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=r);break}}}finally{z_=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?qd(n):""}function c6(e){switch(e.tag){case 26:case 27:case 5:return qd(e.type);case 16:return qd("Lazy");case 13:return qd("Suspense");case 19:return qd("SuspenseList");case 0:case 15:return e=R_(e.type,!1),e;case 11:return e=R_(e.type.render,!1),e;case 1:return e=R_(e.type,!0),e;default:return""}}function AS(e){try{var t="";do t+=c6(e),e=e.return;while(e);return t}catch(n){return` +`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=r);break}}}finally{z_=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?qd(n):""}function d6(e){switch(e.tag){case 26:case 27:case 5:return qd(e.type);case 16:return qd("Lazy");case 13:return qd("Suspense");case 19:return qd("SuspenseList");case 0:case 15:return e=R_(e.type,!1),e;case 11:return e=R_(e.type.render,!1),e;case 1:return e=R_(e.type,!0),e;default:return""}}function MS(e){try{var t="";do t+=d6(e),e=e.return;while(e);return t}catch(n){return` Error generating stack: `+n.message+` -`+n.stack}}function Jc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ST(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function MS(e){if(Jc(e)!==e)throw Error(q(188))}function d6(e){var t=e.alternate;if(!t){if(t=Jc(e),t===null)throw Error(q(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(r===null)break;var a=r.alternate;if(a===null){if(o=r.return,o!==null){n=o;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return MS(r),e;if(a===o)return MS(r),t;a=a.sibling}throw Error(q(188))}if(n.return!==o.return)n=r,o=a;else{for(var s=!1,i=r.child;i;){if(i===n){s=!0,n=r,o=a;break}if(i===o){s=!0,o=r,n=a;break}i=i.sibling}if(!s){for(i=a.child;i;){if(i===n){s=!0,n=a,o=r;break}if(i===o){s=!0,o=a,n=r;break}i=i.sibling}if(!s)throw Error(q(189))}}if(n.alternate!==o)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function xT(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=xT(e),t!==null)return t;e=e.sibling}return null}var Xd=Array.isArray,Wt=r6.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vi={pending:!1,data:null,method:null,action:null},hy=[],ql=-1;function ia(e){return{current:e}}function On(e){0>ql||(e.current=hy[ql],hy[ql]=null,ql--)}function Yt(e,t){ql++,hy[ql]=e.current,e.current=t}var Kr=ia(null),Ru=ia(null),$s=ia(null),Af=ia(null);function Mf(e,t){switch(Yt($s,t),Yt(Ru,e),Yt(Kr,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Nx(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=Nx(e),t=zD(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}On(Kr),Yt(Kr,t)}function kc(){On(Kr),On(Ru),On($s)}function fy(e){e.memoizedState!==null&&Yt(Af,e);var t=Kr.current,n=zD(t,e.type);t!==n&&(Yt(Ru,e),Yt(Kr,n))}function Nf(e){Ru.current===e&&(On(Kr),On(Ru)),Af.current===e&&(On(Af),qu._currentValue=vi)}var my=Object.prototype.hasOwnProperty,j0=xn.unstable_scheduleCallback,I_=xn.unstable_cancelCallback,u6=xn.unstable_shouldYield,p6=xn.unstable_requestPaint,Zr=xn.unstable_now,h6=xn.unstable_getCurrentPriorityLevel,CT=xn.unstable_ImmediatePriority,$T=xn.unstable_UserBlockingPriority,jf=xn.unstable_NormalPriority,f6=xn.unstable_LowPriority,kT=xn.unstable_IdlePriority,m6=xn.log,g6=xn.unstable_setDisableYieldValue,_p=null,Mo=null;function _6(e){if(Mo&&typeof Mo.onCommitFiberRoot=="function")try{Mo.onCommitFiberRoot(_p,e,void 0,(e.current.flags&128)===128)}catch{}}function ys(e){if(typeof m6=="function"&&g6(e),Mo&&typeof Mo.setStrictMode=="function")try{Mo.setStrictMode(_p,e)}catch{}}var No=Math.clz32?Math.clz32:b6,v6=Math.log,y6=Math.LN2;function b6(e){return e>>>=0,e===0?32:31-(v6(e)/y6|0)|0}var nh=128,oh=4194304;function ai(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 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 e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Zm(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,a=e.pingedLanes,s=e.warmLanes;e=e.finishedLanes!==0;var i=n&134217727;return i!==0?(n=i&~r,n!==0?o=ai(n):(a&=i,a!==0?o=ai(a):e||(s=i&~s,s!==0&&(o=ai(s))))):(i=n&~r,i!==0?o=ai(i):a!==0?o=ai(a):e||(s=n&~s,s!==0&&(o=ai(s)))),o===0?0:t!==0&&t!==o&&!(t&r)&&(r=o&-o,s=t&-t,r>=s||r===32&&(s&4194176)!==0)?t:o}function vp(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function w6(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ET(){var e=nh;return nh<<=1,!(nh&4194176)&&(nh=128),e}function TT(){var e=oh;return oh<<=1,!(oh&62914560)&&(oh=4194304),e}function L_(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yp(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function S6(e,t,n,o,r,a){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,l=e.expirationTimes,d=e.hiddenUpdates;for(n=s&~n;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),k6=RegExp("^[: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]*$"),jS={},zS={};function E6(e){return my.call(zS,e)?!0:my.call(jS,e)?!1:k6.test(e)?zS[e]=!0:(jS[e]=!0,!1)}function af(e,t,n){if(E6(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function rh(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ma(e,t,n,o){if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+o)}}function Jo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function T6(e){var t=zT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zf(e){e._valueTracker||(e._valueTracker=T6(e))}function RT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=zT(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Rf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var O6=/[\n"\\]/g;function er(e){return e.replace(O6,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _y(e,t,n,o,r,a,s,i){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jo(t)):e.value!==""+Jo(t)&&(e.value=""+Jo(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?vy(e,s,Jo(t)):n!=null?vy(e,s,Jo(n)):o!=null&&e.removeAttribute("value"),r==null&&a!=null&&(e.defaultChecked=!!a),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+Jo(i):e.removeAttribute("name")}function IT(e,t,n,o,r,a,s,i){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null))return;n=n!=null?""+Jo(n):"",t=t!=null?""+Jo(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=i?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function vy(e,t,n){t==="number"&&Rf(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function lc(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r=cu),HS=" ",US=!1;function WT(e,t){switch(e){case"keyup":return oN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function VT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function aN(e,t){switch(e){case"compositionend":return VT(t);case"keypress":return t.which!==32?null:(US=!0,HS);case"textInput":return e=t.data,e===HS&&US?null:e;default:return null}}function sN(e,t){if(Jl)return e==="compositionend"||!P0&&WT(e,t)?(e=HT(),lf=L0=bs=null,Jl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=XS(n)}}function JT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?JT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YT(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rf(e.document)}return t}function B0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fN(e,t){var n=YT(t);t=e.focusedElem;var o=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&JT(t.ownerDocument.documentElement,t)){if(o!==null&&B0(t)){if(e=o.start,n=o.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var r=t.textContent.length,a=Math.min(o.start,r);o=o.end===void 0?a:Math.min(o.end,r),!n.extend&&a>o&&(r=o,o=a,a=r),r=JS(t,a);var s=JS(t,o);r&&s&&(n.rangeCount!==1||n.anchorNode!==r.node||n.anchorOffset!==r.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),n.removeAllRanges(),a>o?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Yl=null,wy=null,uu=null,Sy=!1;function YS(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sy||Yl==null||Yl!==Rf(o)||(o=Yl,"selectionStart"in o&&B0(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),uu&&Pu(uu,o)||(uu=o,o=Zf(wy,"onSelect"),0>=s,r-=s,Da=1<<32-No(t)+r|n<O?(D=T,T=null):D=T.sibling;var x=h(_,T,y[O],w);if(x===null){T===null&&(T=D);break}e&&T&&x.alternate===null&&t(_,T),b=a(x,b,O),k===null?$=x:k.sibling=x,k=x,T=D}if(O===y.length)return n(_,T),lt&&si(_,O),$;if(T===null){for(;OO?(D=T,T=null):D=T.sibling;var A=h(_,T,x.value,w);if(A===null){T===null&&(T=D);break}e&&T&&A.alternate===null&&t(_,T),b=a(A,b,O),k===null?$=A:k.sibling=A,k=A,T=D}if(x.done)return n(_,T),lt&&si(_,O),$;if(T===null){for(;!x.done;O++,x=y.next())x=c(_,x.value,w),x!==null&&(b=a(x,b,O),k===null?$=x:k.sibling=x,k=x);return lt&&si(_,O),$}for(T=o(T);!x.done;O++,x=y.next())x=f(T,_,O,x.value,w),x!==null&&(e&&x.alternate!==null&&T.delete(x.key===null?O:x.key),b=a(x,b,O),k===null?$=x:k.sibling=x,k=x);return e&&T.forEach(function(R){return t(_,R)}),lt&&si(_,O),$}function S(_,b,y,w){if(typeof y=="object"&&y!==null&&y.type===Gl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case th:e:{for(var $=y.key;b!==null;){if(b.key===$){if($=y.type,$===Gl){if(b.tag===7){n(_,b.sibling),w=r(b,y.props.children),w.return=_,_=w;break e}}else if(b.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===ss&&ox($)===b.type){n(_,b.sibling),w=r(b,y.props),Cd(w,y),w.return=_,_=w;break e}n(_,b);break}else t(_,b);b=b.sibling}y.type===Gl?(w=wi(y.props.children,_.mode,w,y.key),w.return=_,_=w):(w=ff(y.type,y.key,y.props,null,_.mode,w),Cd(w,y),w.return=_,_=w)}return s(_);case Gd:e:{for($=y.key;b!==null;){if(b.key===$)if(b.tag===4&&b.stateNode.containerInfo===y.containerInfo&&b.stateNode.implementation===y.implementation){n(_,b.sibling),w=r(b,y.children||[]),w.return=_,_=w;break e}else{n(_,b);break}else t(_,b);b=b.sibling}w=rv(y,_.mode,w),w.return=_,_=w}return s(_);case ss:return $=y._init,y=$(y._payload),S(_,b,y,w)}if(Xd(y))return g(_,b,y,w);if(bd(y)){if($=bd(y),typeof $!="function")throw Error(q(150));return y=$.call(y),v(_,b,y,w)}if(typeof y.then=="function")return S(_,b,ih(y),w);if(y.$$typeof===Oa)return S(_,b,ch(_,y),w);lh(_,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,b!==null&&b.tag===6?(n(_,b.sibling),w=r(b,y),w.return=_,_=w):(n(_,b),w=ov(y,_.mode,w),w.return=_,_=w),s(_)):n(_,b)}return function(_,b,y,w){try{Hu=0;var $=S(_,b,y,w);return dc=null,$}catch(T){if(T===pu)throw T;var k=or(29,T,null,_.mode);return k.lanes=w,k.return=_,k}finally{}}}var Ei=iO(!0),lO=iO(!1),Oc=ia(null),Pf=ia(0);function rx(e,t){e=Ha,Yt(Pf,e),Yt(Oc,t),Ha=e|t.baseLanes}function $y(){Yt(Pf,Ha),Yt(Oc,Oc.current)}function G0(){Ha=Pf.current,On(Oc),On(Pf)}var lr=ia(null),Qr=null;function hs(e){var t=e.alternate;Yt(Sn,Sn.current&1),Yt(lr,e),Qr===null&&(t===null||Oc.current!==null||t.memoizedState!==null)&&(Qr=e)}function cO(e){if(e.tag===22){if(Yt(Sn,Sn.current),Yt(lr,e),Qr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Qr=e)}}else fs()}function fs(){Yt(Sn,Sn.current),Yt(lr,lr.current)}function Ma(e){On(lr),Qr===e&&(Qr=null),On(Sn)}var Sn=ia(0);function Bf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yN=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},bN=xn.unstable_scheduleCallback,wN=xn.unstable_NormalPriority,wn={$$typeof:Oa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function q0(){return{controller:new yN,data:new Map,refCount:0}}function Sp(e){e.refCount--,e.refCount===0&&bN(wN,function(){e.controller.abort()})}var fu=null,ky=0,Dc=0,uc=null;function SN(e,t){if(fu===null){var n=fu=[];ky=0,Dc=g1(),uc={status:"pending",value:void 0,then:function(o){n.push(o)}}}return ky++,t.then(ax,ax),t}function ax(){if(--ky===0&&fu!==null){uc!==null&&(uc.status="fulfilled");var e=fu;fu=null,Dc=0,uc=null;for(var t=0;ta?a:8;var s=Pe.T,i={};Pe.T=i,s1(e,!1,t,n);try{var l=r(),d=Pe.S;if(d!==null&&d(i,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=xN(l,o);mu(e,t,u,jo(e))}else mu(e,t,o,jo(e))}catch(c){mu(e,t,{then:function(){},status:"rejected",reason:c},jo())}finally{Wt.p=a,Pe.T=s}}function TN(){}function Oy(e,t,n,o){if(e.tag!==5)throw Error(q(476));var r=RO(e).queue;zO(e,r,t,vi,n===null?TN:function(){return IO(e),n(o)})}function RO(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:vi,baseState:vi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:vi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function IO(e){var t=RO(e).next.queue;mu(e,t,{},jo())}function a1(){return Vn(qu)}function LO(){return vn().memoizedState}function FO(){return vn().memoizedState}function ON(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jo();e=ks(n);var o=Es(t,e,n);o!==null&&(ao(o,t,n),_u(o,t,n)),t={cache:q0()},e.payload=t;return}t=t.return}}function DN(e,t,n){var o=jo();n={lane:o,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ig(e)?BO(t,n):(n=U0(e,t,n,o),n!==null&&(ao(n,e,o),HO(n,t,o)))}function PO(e,t,n){var o=jo();mu(e,t,n,o)}function mu(e,t,n,o){var r={lane:o,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ig(e))BO(t,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,i=a(s,n);if(r.hasEagerState=!0,r.eagerState=i,Ro(i,s))return og(e,t,r,0),Bt===null&&ng(),!1}catch{}finally{}if(n=U0(e,t,r,o),n!==null)return ao(n,e,o),HO(n,t,o),!0}return!1}function s1(e,t,n,o){if(o={lane:2,revertLane:g1(),action:o,hasEagerState:!1,eagerState:null,next:null},ig(e)){if(t)throw Error(q(479))}else t=U0(e,n,o,2),t!==null&&ao(t,e,2)}function ig(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function BO(e,t){pc=Hf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function HO(e,t,n){if(n&4194176){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,DT(e,n)}}var ra={readContext:Vn,use:ag,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useLayoutEffect:dn,useInsertionEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useSyncExternalStore:dn,useId:dn};ra.useCacheRefresh=dn;ra.useMemoCache=dn;ra.useHostTransitionStatus=dn;ra.useFormState=dn;ra.useActionState=dn;ra.useOptimistic=dn;var Vi={readContext:Vn,use:ag,useCallback:function(e,t){return uo().memoizedState=[e,t===void 0?null:t],e},useContext:Vn,useEffect:cx,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,pf(4194308,4,DO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pf(4194308,4,e,t)},useInsertionEffect:function(e,t){pf(4,2,e,t)},useMemo:function(e,t){var n=uo();t=t===void 0?null:t;var o=e();if(Ti){ys(!0);try{e()}finally{ys(!1)}}return n.memoizedState=[o,t],o},useReducer:function(e,t,n){var o=uo();if(n!==void 0){var r=n(t);if(Ti){ys(!0);try{n(t)}finally{ys(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=DN.bind(null,Ve,e),[o.memoizedState,e]},useRef:function(e){var t=uo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ey(e);var t=e.queue,n=PO.bind(null,Ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:o1,useDeferredValue:function(e,t){var n=uo();return r1(n,e,t)},useTransition:function(){var e=Ey(!1);return e=zO.bind(null,Ve,e.queue,!0,!1),uo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Ve,r=uo();if(lt){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),Bt===null)throw Error(q(349));it&60||fO(o,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,cx(gO.bind(null,o,a,e),[e]),o.flags|=2048,Ac(9,mO.bind(null,o,a,n,t),{destroy:void 0},null),n},useId:function(){var e=uo(),t=Bt.identifierPrefix;if(lt){var n=Aa,o=Da;n=(o&~(1<<32-No(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uf++,0 title"))),Rn(a,o,n),a[Wn]=e,En(a),o=a;break e;case"link":var s=Fx("link","href",r).get(o+(n.href||""));if(s){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?r.createElement(n,{is:o.is}):r.createElement(n)}}e[Wn]=t,e[_o]=o;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Rn(e,n,o),n){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&va(t)}}return Zt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(q(166));if(e=$s.current,xd(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,r=eo,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Wn]=t,e=!!(e.nodeValue===n||o!==null&&o.suppressHydrationWarning===!0||jD(e.nodeValue,n)),e||ki(t)}else e=Qf(e).createTextNode(o),e[Wn]=t,t.stateNode=e}return Zt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=xd(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(q(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(q(317));r[Wn]=t}else wp(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Zt(t),r=!1}else xr!==null&&(Vy(xr),xr=null),r=!0;if(!r)return t.flags&256?(Ma(t),t):(Ma(t),null)}if(Ma(t),t.flags&128)return t.lanes=n,t;if(n=o!==null,e=e!==null&&e.memoizedState!==null,n){o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool);var a=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==r&&(o.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),dh(t,t.updateQueue),Zt(t),null;case 4:return kc(),e===null&&_1(t.stateNode.containerInfo),Zt(t),null;case 10:return za(t.type),Zt(t),null;case 19:if(On(Sn),r=t.memoizedState,r===null)return Zt(t),null;if(o=(t.flags&128)!==0,a=r.rendering,a===null)if(o)kd(r,!1);else{if(ln!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Bf(e),a!==null){for(t.flags|=128,kd(r,!1),e=a.updateQueue,t.updateQueue=e,dh(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)vD(n,e),n=n.sibling;return Yt(Sn,Sn.current&1|2),t.child}e=e.sibling}r.tail!==null&&Zr()>Xf&&(t.flags|=128,o=!0,kd(r,!1),t.lanes=4194304)}else{if(!o)if(e=Bf(a),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,dh(t,e),kd(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!lt)return Zt(t),null}else 2*Zr()-r.renderingStartTime>Xf&&n!==536870912&&(t.flags|=128,o=!0,kd(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e!==null?e.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Zr(),t.sibling=null,e=Sn.current,Yt(Sn,o?e&1|2:e&1),t):(Zt(t),null);case 22:case 23:return Ma(t),G0(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?n&536870912&&!(t.flags&128)&&(Zt(t),t.subtreeFlags&6&&(t.flags|=8192)):Zt(t),n=t.updateQueue,n!==null&&dh(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),e!==null&&On(bi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),za(wn),Zt(t),null;case 25:return null}throw Error(q(156,t.tag))}function IN(e,t){switch(V0(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return za(wn),kc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Nf(t),null;case 13:if(Ma(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));wp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return On(Sn),null;case 4:return kc(),null;case 10:return za(t.type),null;case 22:case 23:return Ma(t),G0(),e!==null&&On(bi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return za(wn),null;case 25:return null;default:return null}}function bD(e,t){switch(V0(t),t.tag){case 3:za(wn),kc();break;case 26:case 27:case 5:Nf(t);break;case 4:kc();break;case 13:Ma(t);break;case 19:On(Sn);break;case 10:za(t.type);break;case 22:case 23:Ma(t),G0(),e!==null&&On(bi);break;case 24:za(wn)}}var LN={getCacheForType:function(e){var t=Vn(wn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},FN=typeof WeakMap=="function"?WeakMap:Map,tn=0,Bt=null,Qe=null,it=0,Ft=0,$o=null,Ea=!1,Zc=!1,p1=!1,Ha=0,ln=0,Ls=0,Si=0,h1=0,rr=0,Mc=0,wu=null,Xr=null,By=!1,f1=0,Xf=1/0,Jf=null,Os=null,uh=!1,di=null,Su=0,Hy=0,Uy=null,xu=0,Wy=null;function jo(){if(tn&2&&it!==0)return it&-it;if(Pe.T!==null){var e=Dc;return e!==0?e:g1()}return MT()}function wD(){rr===0&&(rr=!(it&536870912)||lt?ET():536870912);var e=lr.current;return e!==null&&(e.flags|=32),rr}function ao(e,t,n){(e===Bt&&Ft===2||e.cancelPendingCommit!==null)&&(Nc(e,0),Ta(e,it,rr,!1)),yp(e,n),(!(tn&2)||e!==Bt)&&(e===Bt&&(!(tn&2)&&(Si|=n),ln===4&&Ta(e,it,rr,!1)),la(e))}function SD(e,t,n){if(tn&6)throw Error(q(327));var o=!n&&(t&60)===0&&(t&e.expiredLanes)===0||vp(e,t),r=o?HN(e,t):av(e,t,!0),a=o;do{if(r===0){Zc&&!o&&Ta(e,t,0,!1);break}else if(r===6)Ta(e,t,0,!Ea);else{if(n=e.current.alternate,a&&!PN(n)){r=av(e,t,!1),a=!1;continue}if(r===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var i=e;r=wu;var l=i.current.memoizedState.isDehydrated;if(l&&(Nc(i,s).flags|=256),s=av(i,s,!1),s!==2){if(p1&&!l){i.errorRecoveryDisabledLanes|=a,Si|=a,r=4;break e}a=Xr,Xr=r,a!==null&&Vy(a)}r=s}if(a=!1,r!==2)continue}}if(r===1){Nc(e,0),Ta(e,t,0,!0);break}e:{switch(o=e,r){case 0:case 1:throw Error(q(345));case 4:if((t&4194176)===t){Ta(o,t,rr,!Ea);break e}break;case 2:Xr=null;break;case 3:case 5:break;default:throw Error(q(329))}if(o.finishedWork=n,o.finishedLanes=t,(t&62914560)===t&&(a=f1+300-Zr(),10n?32:n,Pe.T=null,di===null)var a=!1;else{n=Uy,Uy=null;var s=di,i=Su;if(di=null,Su=0,tn&6)throw Error(q(331));var l=tn;if(tn|=4,gD(s.current),hD(s,s.current,i,n),tn=l,kp(0,!1),Mo&&typeof Mo.onPostCommitFiberRoot=="function")try{Mo.onPostCommitFiberRoot(_p,s)}catch{}a=!0}return a}finally{Wt.p=r,Pe.T=o,TD(e,t)}}return!1}function Ex(e,t,n){t=tr(n,t),t=Ay(e.stateNode,t,2),e=Es(e,t,2),e!==null&&(yp(e,2),la(e))}function At(e,t,n){if(e.tag===3)Ex(e,e,n);else for(;t!==null;){if(t.tag===3){Ex(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Os===null||!Os.has(o))){e=tr(n,e),n=GO(2),o=Es(t,n,2),o!==null&&(qO(n,o,t,e),yp(o,2),la(o));break}}t=t.return}}function sv(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new FN;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(n)||(p1=!0,r.add(n),e=VN.bind(null,e,t,n),t.then(e,e))}function VN(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bt===e&&(it&n)===n&&(ln===4||ln===3&&(it&62914560)===it&&300>Zr()-f1?!(tn&2)&&Nc(e,0):h1|=n,Mc===it&&(Mc=0)),la(e)}function OD(e,t){t===0&&(t=TT()),e=zs(e,t),e!==null&&(yp(e,t),la(e))}function GN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),OD(e,n)}function qN(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(q(314))}o!==null&&o.delete(t),OD(e,n)}function XN(e,t){return j0(e,t)}var Yf=null,$l=null,qy=!1,Kf=!1,iv=!1,xi=0;function la(e){e!==$l&&e.next===null&&($l===null?Yf=$l=e:$l=$l.next=e),Kf=!0,qy||(qy=!0,YN(JN))}function kp(e,t){if(!iv&&Kf){iv=!0;do for(var n=!1,o=Yf;o!==null;){if(e!==0){var r=o.pendingLanes;if(r===0)var a=0;else{var s=o.suspendedLanes,i=o.pingedLanes;a=(1<<31-No(42|e)+1)-1,a&=r&~(s&~i),a=a&201326677?a&201326677|1:a?a|2:0}a!==0&&(n=!0,Tx(o,a))}else a=it,a=Zm(o,o===Bt?a:0),!(a&3)||vp(o,a)||(n=!0,Tx(o,a));o=o.next}while(n);iv=!1}}function JN(){Kf=qy=!1;var e=0;xi!==0&&(rj()&&(e=xi),xi=0);for(var t=Zr(),n=null,o=Yf;o!==null;){var r=o.next,a=DD(o,t);a===0?(o.next=null,n===null?Yf=r:n.next=r,r===null&&($l=n)):(n=o,(e!==0||a&3)&&(Kf=!0)),o=r}kp(e)}function DD(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes&-62914561;0"u"?null:document;function LD(e,t,n){var o=Qc;if(o&&typeof t=="string"&&t){var r=er(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Rx.has(r)||(Rx.add(r),e={rel:e,crossOrigin:n,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Rn(t,"link",e),En(t),o.head.appendChild(t)))}}function pj(e){Ga.D(e),LD("dns-prefetch",e,null)}function hj(e,t){Ga.C(e,t),LD("preconnect",e,t)}function fj(e,t,n){Ga.L(e,t,n);var o=Qc;if(o&&e&&t){var r='link[rel="preload"][as="'+er(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+er(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+er(n.imageSizes)+'"]')):r+='[href="'+er(e)+'"]';var a=r;switch(t){case"style":a=jc(e);break;case"script":a=ed(e)}cr.has(a)||(e=Vt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),cr.set(a,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(Ep(a))||t==="script"&&o.querySelector(Tp(a))||(t=o.createElement("link"),Rn(t,"link",e),En(t),o.head.appendChild(t)))}}function mj(e,t){Ga.m(e,t);var n=Qc;if(n&&e){var o=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+er(o)+'"][href="'+er(e)+'"]',a=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=ed(e)}if(!cr.has(a)&&(e=Vt({rel:"modulepreload",href:e},t),cr.set(a,e),n.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Tp(a)))return}o=n.createElement("link"),Rn(o,"link",e),En(o),n.head.appendChild(o)}}}function gj(e,t,n){Ga.S(e,t,n);var o=Qc;if(o&&e){var r=ic(o).hoistableStyles,a=jc(e);t=t||"default";var s=r.get(a);if(!s){var i={loading:0,preload:null};if(s=o.querySelector(Ep(a)))i.loading=5;else{e=Vt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cr.get(a))&&v1(e,n);var l=s=o.createElement("link");En(l),Rn(l,"link",e),l._p=new Promise(function(d,u){l.onload=d,l.onerror=u}),l.addEventListener("load",function(){i.loading|=1}),l.addEventListener("error",function(){i.loading|=2}),i.loading|=4,mf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:i},r.set(a,s)}}}function _j(e,t){Ga.X(e,t);var n=Qc;if(n&&e){var o=ic(n).hoistableScripts,r=ed(e),a=o.get(r);a||(a=n.querySelector(Tp(r)),a||(e=Vt({src:e,async:!0},t),(t=cr.get(r))&&y1(e,t),a=n.createElement("script"),En(a),Rn(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},o.set(r,a))}}function vj(e,t){Ga.M(e,t);var n=Qc;if(n&&e){var o=ic(n).hoistableScripts,r=ed(e),a=o.get(r);a||(a=n.querySelector(Tp(r)),a||(e=Vt({src:e,async:!0,type:"module"},t),(t=cr.get(r))&&y1(e,t),a=n.createElement("script"),En(a),Rn(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},o.set(r,a))}}function Ix(e,t,n,o){var r=(r=$s.current)?em(r):null;if(!r)throw Error(q(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=jc(n.href),n=ic(r).hoistableStyles,o=n.get(t),o||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=jc(n.href);var a=ic(r).hoistableStyles,s=a.get(e);if(s||(r=r.ownerDocument||r,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=r.querySelector(Ep(e)))&&!a._p&&(s.instance=a,s.state.loading=5),cr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cr.set(e,n),a||yj(r,e,n,s.state))),t&&o===null)throw Error(q(528,""));return s}if(t&&o!==null)throw Error(q(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ed(n),n=ic(r).hoistableScripts,o=n.get(t),o||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(q(444,e))}}function jc(e){return'href="'+er(e)+'"'}function Ep(e){return'link[rel="stylesheet"]['+e+"]"}function FD(e){return Vt({},e,{"data-precedence":e.precedence,precedence:null})}function yj(e,t,n,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Rn(t,"link",n),En(t),e.head.appendChild(t))}function ed(e){return'[src="'+er(e)+'"]'}function Tp(e){return"script[async]"+e}function Lx(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+er(n.href)+'"]');if(o)return t.instance=o,En(o),o;var r=Vt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),En(o),Rn(o,"style",r),mf(o,n.precedence,e),t.instance=o;case"stylesheet":r=jc(n.href);var a=e.querySelector(Ep(r));if(a)return t.state.loading|=4,t.instance=a,En(a),a;o=FD(n),(r=cr.get(r))&&v1(o,r),a=(e.ownerDocument||e).createElement("link"),En(a);var s=a;return s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Rn(a,"link",o),t.state.loading|=4,mf(a,n.precedence,e),t.instance=a;case"script":return a=ed(n.src),(r=e.querySelector(Tp(a)))?(t.instance=r,En(r),r):(o=n,(r=cr.get(a))&&(o=Vt({},n),y1(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),En(r),Rn(r,"link",o),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(q(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(o=t.instance,t.state.loading|=4,mf(o,n.precedence,e));return t.instance}function mf(e,t,n){for(var o=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,a=r,s=0;s title"):null)}function bj(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function PD(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Gu=null;function wj(){}function Sj(e,t,n){if(Gu===null)throw Error(q(475));var o=Gu;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=jc(n.href),a=e.querySelector(Ep(r));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=tm.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=a,En(a);return}a=e.ownerDocument||e,n=FD(n),(r=cr.get(r))&&v1(n,r),a=a.createElement("link"),En(a);var s=a;s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Rn(a,"link",n),t.instance=a}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(o.count++,t=tm.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}function xj(){if(Gu===null)throw Error(q(475));var e=Gu;return e.stylesheets&&e.count===0&&Qy(e,e.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qD)}catch(e){console.error(e)}}qD(),uT.exports=Ym;var Mj=uT.exports;function Ua(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const kr="$$material";function am(){return am=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?jn(td,--vo):0,zc--,mn===10&&(zc=1,hg--),mn}function zo(){return mn=vo2||Zu(mn)>3?"":" "}function Xj(e,t){for(;--t&&zo()&&!(mn<48||mn>102||mn>57&&mn<65||mn>70&&mn<97););return Op(e,vf()+(t<6&&ea()==32&&zo()==32))}function ob(e){for(;zo();)switch(mn){case e:return vo;case 34:case 39:e!==34&&e!==39&&ob(mn);break;case 40:e===41&&ob(e);break;case 92:zo();break}return vo}function Jj(e,t){for(;zo()&&e+mn!==57;)if(e+mn===84&&ea()===47)break;return"/*"+Op(t,vo-1)+"*"+pg(e===47?e:zo())}function Yj(e){for(;!Zu(ea());)zo();return Op(e,vo)}function Kj(e){return t4(bf("",null,null,null,[""],e=e4(e),0,[0],e))}function bf(e,t,n,o,r,a,s,i,l){for(var d=0,u=0,c=s,h=0,f=0,g=0,v=1,S=1,_=1,b=0,y="",w=r,$=a,k=o,T=y;S;)switch(g=b,b=zo()){case 40:if(g!=108&&jn(T,c-1)==58){nb(T+=ut(yf(b),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:T+=yf(b);break;case 9:case 10:case 13:case 32:T+=qj(g);break;case 92:T+=Xj(vf()-1,7);continue;case 47:switch(ea()){case 42:case 47:gh(Zj(Jj(zo(),vf()),t,n),l);break;default:T+="/"}break;case 123*v:i[d++]=Hr(T)*_;case 125*v:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+u:_==-1&&(T=ut(T,/\f/g,"")),f>0&&Hr(T)-c&&gh(f>32?qx(T+";",o,n,c-1):qx(ut(T," ","")+";",o,n,c-2),l);break;case 59:T+=";";default:if(gh(k=Gx(T,t,n,d,u,r,i,y,w=[],$=[],c),a),b===123)if(u===0)bf(T,t,k,k,w,a,c,i,$);else switch(h===99&&jn(T,3)===110?100:h){case 100:case 108:case 109:case 115:bf(e,k,k,o&&gh(Gx(e,k,k,0,0,r,i,y,r,w=[],c),$),r,$,c,i,o?w:$);break;default:bf(T,k,k,k,[""],$,0,i,$)}}d=u=f=0,v=_=1,y=T="",c=s;break;case 58:c=1+Hr(T),f=g;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&Gj()==125)continue}switch(T+=pg(b),b*v){case 38:_=u>0?1:(T+="\f",-1);break;case 44:i[d++]=(Hr(T)-1)*_,_=1;break;case 64:ea()===45&&(T+=yf(zo())),h=ea(),u=c=Hr(y=T+=Yj(vf())),b++;break;case 45:g===45&&Hr(T)==2&&(v=0)}}return a}function Gx(e,t,n,o,r,a,s,i,l,d,u){for(var c=r-1,h=r===0?a:[""],f=k1(h),g=0,v=0,S=0;g0?h[_]+" "+b:ut(b,/&\f/g,h[_])))&&(l[S++]=y);return fg(e,t,n,r===0?C1:i,l,d,u)}function Zj(e,t,n){return fg(e,t,n,YD,pg(Vj()),Ku(e,2,-2),0)}function qx(e,t,n,o){return fg(e,t,n,$1,Ku(e,0,o),Ku(e,o+1,-1),o)}function mc(e,t){for(var n="",o=k1(e),r=0;r6)switch(jn(e,t+1)){case 109:if(jn(e,t+4)!==45)break;case 102:return ut(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+sm+(jn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~nb(e,"stretch")?n4(ut(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jn(e,t+1)!==115)break;case 6444:switch(jn(e,Hr(e)-3-(~nb(e,"!important")&&10))){case 107:return ut(e,":",":"+dt)+e;case 101:return ut(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(jn(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Fn+"$2box$3")+e}break;case 5936:switch(jn(e,t+11)){case 114:return dt+e+Fn+ut(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+Fn+ut(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+Fn+ut(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+Fn+e+e}return e}var iz=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case $1:t.return=n4(t.value,t.length);break;case KD:return mc([Td(t,{value:ut(t.value,"@","@"+dt)})],r);case C1:if(t.length)return Wj(t.props,function(a){switch(Uj(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mc([Td(t,{props:[ut(a,/:(read-\w+)/,":"+sm+"$1")]})],r);case"::placeholder":return mc([Td(t,{props:[ut(a,/:(plac\w+)/,":"+dt+"input-$1")]}),Td(t,{props:[ut(a,/:(plac\w+)/,":"+sm+"$1")]}),Td(t,{props:[ut(a,/:(plac\w+)/,Fn+"input-$1")]})],r)}return""})}},lz=[iz],o4=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var r=t.stylisPlugins||lz,a={},s,i=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),_=1;_ql||(e.current=fy[ql],fy[ql]=null,ql--)}function Yt(e,t){ql++,fy[ql]=e.current,e.current=t}var Kr=ia(null),Ru=ia(null),$s=ia(null),Af=ia(null);function Mf(e,t){switch(Yt($s,t),Yt(Ru,e),Yt(Kr,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?jx(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=jx(e),t=ID(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}On(Kr),Yt(Kr,t)}function kc(){On(Kr),On(Ru),On($s)}function my(e){e.memoizedState!==null&&Yt(Af,e);var t=Kr.current,n=ID(t,e.type);t!==n&&(Yt(Ru,e),Yt(Kr,n))}function Nf(e){Ru.current===e&&(On(Kr),On(Ru)),Af.current===e&&(On(Af),qu._currentValue=vi)}var gy=Object.prototype.hasOwnProperty,z0=xn.unstable_scheduleCallback,I_=xn.unstable_cancelCallback,p6=xn.unstable_shouldYield,h6=xn.unstable_requestPaint,Zr=xn.unstable_now,f6=xn.unstable_getCurrentPriorityLevel,kT=xn.unstable_ImmediatePriority,ET=xn.unstable_UserBlockingPriority,jf=xn.unstable_NormalPriority,m6=xn.unstable_LowPriority,TT=xn.unstable_IdlePriority,g6=xn.log,_6=xn.unstable_setDisableYieldValue,_p=null,Mo=null;function v6(e){if(Mo&&typeof Mo.onCommitFiberRoot=="function")try{Mo.onCommitFiberRoot(_p,e,void 0,(e.current.flags&128)===128)}catch{}}function ys(e){if(typeof g6=="function"&&_6(e),Mo&&typeof Mo.setStrictMode=="function")try{Mo.setStrictMode(_p,e)}catch{}}var No=Math.clz32?Math.clz32:w6,y6=Math.log,b6=Math.LN2;function w6(e){return e>>>=0,e===0?32:31-(y6(e)/b6|0)|0}var nh=128,oh=4194304;function ai(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 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 e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Zm(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,a=e.pingedLanes,s=e.warmLanes;e=e.finishedLanes!==0;var i=n&134217727;return i!==0?(n=i&~r,n!==0?o=ai(n):(a&=i,a!==0?o=ai(a):e||(s=i&~s,s!==0&&(o=ai(s))))):(i=n&~r,i!==0?o=ai(i):a!==0?o=ai(a):e||(s=n&~s,s!==0&&(o=ai(s)))),o===0?0:t!==0&&t!==o&&!(t&r)&&(r=o&-o,s=t&-t,r>=s||r===32&&(s&4194176)!==0)?t:o}function vp(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function S6(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function OT(){var e=nh;return nh<<=1,!(nh&4194176)&&(nh=128),e}function DT(){var e=oh;return oh<<=1,!(oh&62914560)&&(oh=4194304),e}function L_(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yp(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function x6(e,t,n,o,r,a){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,l=e.expirationTimes,d=e.hiddenUpdates;for(n=s&~n;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),E6=RegExp("^[: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]*$"),zS={},RS={};function T6(e){return gy.call(RS,e)?!0:gy.call(zS,e)?!1:E6.test(e)?RS[e]=!0:(zS[e]=!0,!1)}function af(e,t,n){if(T6(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function rh(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ma(e,t,n,o){if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+o)}}function Jo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function IT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function O6(e){var t=IT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zf(e){e._valueTracker||(e._valueTracker=O6(e))}function LT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=IT(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Rf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var D6=/[\n"\\]/g;function er(e){return e.replace(D6,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vy(e,t,n,o,r,a,s,i){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jo(t)):e.value!==""+Jo(t)&&(e.value=""+Jo(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?yy(e,s,Jo(t)):n!=null?yy(e,s,Jo(n)):o!=null&&e.removeAttribute("value"),r==null&&a!=null&&(e.defaultChecked=!!a),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+Jo(i):e.removeAttribute("name")}function FT(e,t,n,o,r,a,s,i){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null))return;n=n!=null?""+Jo(n):"",t=t!=null?""+Jo(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=i?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function yy(e,t,n){t==="number"&&Rf(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function lc(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r=cu),US=" ",WS=!1;function GT(e,t){switch(e){case"keyup":return rN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function sN(e,t){switch(e){case"compositionend":return qT(t);case"keypress":return t.which!==32?null:(WS=!0,US);case"textInput":return e=t.data,e===US&&WS?null:e;default:return null}}function iN(e,t){if(Jl)return e==="compositionend"||!B0&>(e,t)?(e=WT(),lf=F0=bs=null,Jl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=JS(n)}}function KT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?KT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ZT(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rf(e.document)}return t}function H0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function mN(e,t){var n=ZT(t);t=e.focusedElem;var o=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&KT(t.ownerDocument.documentElement,t)){if(o!==null&&H0(t)){if(e=o.start,n=o.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var r=t.textContent.length,a=Math.min(o.start,r);o=o.end===void 0?a:Math.min(o.end,r),!n.extend&&a>o&&(r=o,o=a,a=r),r=YS(t,a);var s=YS(t,o);r&&s&&(n.rangeCount!==1||n.anchorNode!==r.node||n.anchorOffset!==r.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),n.removeAllRanges(),a>o?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Yl=null,Sy=null,uu=null,xy=!1;function KS(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xy||Yl==null||Yl!==Rf(o)||(o=Yl,"selectionStart"in o&&H0(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),uu&&Pu(uu,o)||(uu=o,o=Zf(Sy,"onSelect"),0>=s,r-=s,Da=1<<32-No(t)+r|n<O?(D=T,T=null):D=T.sibling;var x=h(_,T,y[O],w);if(x===null){T===null&&(T=D);break}e&&T&&x.alternate===null&&t(_,T),b=a(x,b,O),k===null?$=x:k.sibling=x,k=x,T=D}if(O===y.length)return n(_,T),lt&&si(_,O),$;if(T===null){for(;OO?(D=T,T=null):D=T.sibling;var A=h(_,T,x.value,w);if(A===null){T===null&&(T=D);break}e&&T&&A.alternate===null&&t(_,T),b=a(A,b,O),k===null?$=A:k.sibling=A,k=A,T=D}if(x.done)return n(_,T),lt&&si(_,O),$;if(T===null){for(;!x.done;O++,x=y.next())x=c(_,x.value,w),x!==null&&(b=a(x,b,O),k===null?$=x:k.sibling=x,k=x);return lt&&si(_,O),$}for(T=o(T);!x.done;O++,x=y.next())x=f(T,_,O,x.value,w),x!==null&&(e&&x.alternate!==null&&T.delete(x.key===null?O:x.key),b=a(x,b,O),k===null?$=x:k.sibling=x,k=x);return e&&T.forEach(function(R){return t(_,R)}),lt&&si(_,O),$}function S(_,b,y,w){if(typeof y=="object"&&y!==null&&y.type===Gl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case th:e:{for(var $=y.key;b!==null;){if(b.key===$){if($=y.type,$===Gl){if(b.tag===7){n(_,b.sibling),w=r(b,y.props.children),w.return=_,_=w;break e}}else if(b.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===ss&&rx($)===b.type){n(_,b.sibling),w=r(b,y.props),Cd(w,y),w.return=_,_=w;break e}n(_,b);break}else t(_,b);b=b.sibling}y.type===Gl?(w=wi(y.props.children,_.mode,w,y.key),w.return=_,_=w):(w=ff(y.type,y.key,y.props,null,_.mode,w),Cd(w,y),w.return=_,_=w)}return s(_);case Gd:e:{for($=y.key;b!==null;){if(b.key===$)if(b.tag===4&&b.stateNode.containerInfo===y.containerInfo&&b.stateNode.implementation===y.implementation){n(_,b.sibling),w=r(b,y.children||[]),w.return=_,_=w;break e}else{n(_,b);break}else t(_,b);b=b.sibling}w=rv(y,_.mode,w),w.return=_,_=w}return s(_);case ss:return $=y._init,y=$(y._payload),S(_,b,y,w)}if(Xd(y))return g(_,b,y,w);if(bd(y)){if($=bd(y),typeof $!="function")throw Error(q(150));return y=$.call(y),v(_,b,y,w)}if(typeof y.then=="function")return S(_,b,ih(y),w);if(y.$$typeof===Oa)return S(_,b,ch(_,y),w);lh(_,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,b!==null&&b.tag===6?(n(_,b.sibling),w=r(b,y),w.return=_,_=w):(n(_,b),w=ov(y,_.mode,w),w.return=_,_=w),s(_)):n(_,b)}return function(_,b,y,w){try{Hu=0;var $=S(_,b,y,w);return dc=null,$}catch(T){if(T===pu)throw T;var k=or(29,T,null,_.mode);return k.lanes=w,k.return=_,k}finally{}}}var Ei=cO(!0),dO=cO(!1),Oc=ia(null),Pf=ia(0);function ax(e,t){e=Ha,Yt(Pf,e),Yt(Oc,t),Ha=e|t.baseLanes}function ky(){Yt(Pf,Ha),Yt(Oc,Oc.current)}function q0(){Ha=Pf.current,On(Oc),On(Pf)}var lr=ia(null),Qr=null;function hs(e){var t=e.alternate;Yt(Sn,Sn.current&1),Yt(lr,e),Qr===null&&(t===null||Oc.current!==null||t.memoizedState!==null)&&(Qr=e)}function uO(e){if(e.tag===22){if(Yt(Sn,Sn.current),Yt(lr,e),Qr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Qr=e)}}else fs()}function fs(){Yt(Sn,Sn.current),Yt(lr,lr.current)}function Ma(e){On(lr),Qr===e&&(Qr=null),On(Sn)}var Sn=ia(0);function Bf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bN=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},wN=xn.unstable_scheduleCallback,SN=xn.unstable_NormalPriority,wn={$$typeof:Oa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function X0(){return{controller:new bN,data:new Map,refCount:0}}function Sp(e){e.refCount--,e.refCount===0&&wN(SN,function(){e.controller.abort()})}var fu=null,Ey=0,Dc=0,uc=null;function xN(e,t){if(fu===null){var n=fu=[];Ey=0,Dc=_1(),uc={status:"pending",value:void 0,then:function(o){n.push(o)}}}return Ey++,t.then(sx,sx),t}function sx(){if(--Ey===0&&fu!==null){uc!==null&&(uc.status="fulfilled");var e=fu;fu=null,Dc=0,uc=null;for(var t=0;ta?a:8;var s=Pe.T,i={};Pe.T=i,i1(e,!1,t,n);try{var l=r(),d=Pe.S;if(d!==null&&d(i,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=CN(l,o);mu(e,t,u,jo(e))}else mu(e,t,o,jo(e))}catch(c){mu(e,t,{then:function(){},status:"rejected",reason:c},jo())}finally{Wt.p=a,Pe.T=s}}function ON(){}function Dy(e,t,n,o){if(e.tag!==5)throw Error(q(476));var r=LO(e).queue;IO(e,r,t,vi,n===null?ON:function(){return FO(e),n(o)})}function LO(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:vi,baseState:vi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:vi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function FO(e){var t=LO(e).next.queue;mu(e,t,{},jo())}function s1(){return Vn(qu)}function PO(){return vn().memoizedState}function BO(){return vn().memoizedState}function DN(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jo();e=ks(n);var o=Es(t,e,n);o!==null&&(ao(o,t,n),_u(o,t,n)),t={cache:X0()},e.payload=t;return}t=t.return}}function AN(e,t,n){var o=jo();n={lane:o,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ig(e)?UO(t,n):(n=W0(e,t,n,o),n!==null&&(ao(n,e,o),WO(n,t,o)))}function HO(e,t,n){var o=jo();mu(e,t,n,o)}function mu(e,t,n,o){var r={lane:o,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ig(e))UO(t,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,i=a(s,n);if(r.hasEagerState=!0,r.eagerState=i,Ro(i,s))return og(e,t,r,0),Bt===null&&ng(),!1}catch{}finally{}if(n=W0(e,t,r,o),n!==null)return ao(n,e,o),WO(n,t,o),!0}return!1}function i1(e,t,n,o){if(o={lane:2,revertLane:_1(),action:o,hasEagerState:!1,eagerState:null,next:null},ig(e)){if(t)throw Error(q(479))}else t=W0(e,n,o,2),t!==null&&ao(t,e,2)}function ig(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function UO(e,t){pc=Hf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function WO(e,t,n){if(n&4194176){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,MT(e,n)}}var ra={readContext:Vn,use:ag,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useLayoutEffect:dn,useInsertionEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useSyncExternalStore:dn,useId:dn};ra.useCacheRefresh=dn;ra.useMemoCache=dn;ra.useHostTransitionStatus=dn;ra.useFormState=dn;ra.useActionState=dn;ra.useOptimistic=dn;var Vi={readContext:Vn,use:ag,useCallback:function(e,t){return uo().memoizedState=[e,t===void 0?null:t],e},useContext:Vn,useEffect:dx,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,pf(4194308,4,MO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pf(4194308,4,e,t)},useInsertionEffect:function(e,t){pf(4,2,e,t)},useMemo:function(e,t){var n=uo();t=t===void 0?null:t;var o=e();if(Ti){ys(!0);try{e()}finally{ys(!1)}}return n.memoizedState=[o,t],o},useReducer:function(e,t,n){var o=uo();if(n!==void 0){var r=n(t);if(Ti){ys(!0);try{n(t)}finally{ys(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=AN.bind(null,Ve,e),[o.memoizedState,e]},useRef:function(e){var t=uo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ty(e);var t=e.queue,n=HO.bind(null,Ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:r1,useDeferredValue:function(e,t){var n=uo();return a1(n,e,t)},useTransition:function(){var e=Ty(!1);return e=IO.bind(null,Ve,e.queue,!0,!1),uo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Ve,r=uo();if(lt){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),Bt===null)throw Error(q(349));it&60||gO(o,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,dx(vO.bind(null,o,a,e),[e]),o.flags|=2048,Ac(9,_O.bind(null,o,a,n,t),{destroy:void 0},null),n},useId:function(){var e=uo(),t=Bt.identifierPrefix;if(lt){var n=Aa,o=Da;n=(o&~(1<<32-No(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uf++,0 title"))),Rn(a,o,n),a[Wn]=e,En(a),o=a;break e;case"link":var s=Px("link","href",r).get(o+(n.href||""));if(s){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?r.createElement(n,{is:o.is}):r.createElement(n)}}e[Wn]=t,e[_o]=o;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Rn(e,n,o),n){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&va(t)}}return Zt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(q(166));if(e=$s.current,xd(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,r=eo,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Wn]=t,e=!!(e.nodeValue===n||o!==null&&o.suppressHydrationWarning===!0||RD(e.nodeValue,n)),e||ki(t)}else e=Qf(e).createTextNode(o),e[Wn]=t,t.stateNode=e}return Zt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=xd(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(q(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(q(317));r[Wn]=t}else wp(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Zt(t),r=!1}else xr!==null&&(Gy(xr),xr=null),r=!0;if(!r)return t.flags&256?(Ma(t),t):(Ma(t),null)}if(Ma(t),t.flags&128)return t.lanes=n,t;if(n=o!==null,e=e!==null&&e.memoizedState!==null,n){o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool);var a=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==r&&(o.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),dh(t,t.updateQueue),Zt(t),null;case 4:return kc(),e===null&&v1(t.stateNode.containerInfo),Zt(t),null;case 10:return za(t.type),Zt(t),null;case 19:if(On(Sn),r=t.memoizedState,r===null)return Zt(t),null;if(o=(t.flags&128)!==0,a=r.rendering,a===null)if(o)kd(r,!1);else{if(ln!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Bf(e),a!==null){for(t.flags|=128,kd(r,!1),e=a.updateQueue,t.updateQueue=e,dh(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)bD(n,e),n=n.sibling;return Yt(Sn,Sn.current&1|2),t.child}e=e.sibling}r.tail!==null&&Zr()>Xf&&(t.flags|=128,o=!0,kd(r,!1),t.lanes=4194304)}else{if(!o)if(e=Bf(a),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,dh(t,e),kd(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!lt)return Zt(t),null}else 2*Zr()-r.renderingStartTime>Xf&&n!==536870912&&(t.flags|=128,o=!0,kd(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e!==null?e.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Zr(),t.sibling=null,e=Sn.current,Yt(Sn,o?e&1|2:e&1),t):(Zt(t),null);case 22:case 23:return Ma(t),q0(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?n&536870912&&!(t.flags&128)&&(Zt(t),t.subtreeFlags&6&&(t.flags|=8192)):Zt(t),n=t.updateQueue,n!==null&&dh(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),e!==null&&On(bi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),za(wn),Zt(t),null;case 25:return null}throw Error(q(156,t.tag))}function LN(e,t){switch(G0(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return za(wn),kc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Nf(t),null;case 13:if(Ma(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));wp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return On(Sn),null;case 4:return kc(),null;case 10:return za(t.type),null;case 22:case 23:return Ma(t),q0(),e!==null&&On(bi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return za(wn),null;case 25:return null;default:return null}}function SD(e,t){switch(G0(t),t.tag){case 3:za(wn),kc();break;case 26:case 27:case 5:Nf(t);break;case 4:kc();break;case 13:Ma(t);break;case 19:On(Sn);break;case 10:za(t.type);break;case 22:case 23:Ma(t),q0(),e!==null&&On(bi);break;case 24:za(wn)}}var FN={getCacheForType:function(e){var t=Vn(wn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},PN=typeof WeakMap=="function"?WeakMap:Map,tn=0,Bt=null,Qe=null,it=0,Ft=0,$o=null,Ea=!1,Zc=!1,h1=!1,Ha=0,ln=0,Ls=0,Si=0,f1=0,rr=0,Mc=0,wu=null,Xr=null,Hy=!1,m1=0,Xf=1/0,Jf=null,Os=null,uh=!1,di=null,Su=0,Uy=0,Wy=null,xu=0,Vy=null;function jo(){if(tn&2&&it!==0)return it&-it;if(Pe.T!==null){var e=Dc;return e!==0?e:_1()}return jT()}function xD(){rr===0&&(rr=!(it&536870912)||lt?OT():536870912);var e=lr.current;return e!==null&&(e.flags|=32),rr}function ao(e,t,n){(e===Bt&&Ft===2||e.cancelPendingCommit!==null)&&(Nc(e,0),Ta(e,it,rr,!1)),yp(e,n),(!(tn&2)||e!==Bt)&&(e===Bt&&(!(tn&2)&&(Si|=n),ln===4&&Ta(e,it,rr,!1)),la(e))}function CD(e,t,n){if(tn&6)throw Error(q(327));var o=!n&&(t&60)===0&&(t&e.expiredLanes)===0||vp(e,t),r=o?UN(e,t):av(e,t,!0),a=o;do{if(r===0){Zc&&!o&&Ta(e,t,0,!1);break}else if(r===6)Ta(e,t,0,!Ea);else{if(n=e.current.alternate,a&&!BN(n)){r=av(e,t,!1),a=!1;continue}if(r===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var i=e;r=wu;var l=i.current.memoizedState.isDehydrated;if(l&&(Nc(i,s).flags|=256),s=av(i,s,!1),s!==2){if(h1&&!l){i.errorRecoveryDisabledLanes|=a,Si|=a,r=4;break e}a=Xr,Xr=r,a!==null&&Gy(a)}r=s}if(a=!1,r!==2)continue}}if(r===1){Nc(e,0),Ta(e,t,0,!0);break}e:{switch(o=e,r){case 0:case 1:throw Error(q(345));case 4:if((t&4194176)===t){Ta(o,t,rr,!Ea);break e}break;case 2:Xr=null;break;case 3:case 5:break;default:throw Error(q(329))}if(o.finishedWork=n,o.finishedLanes=t,(t&62914560)===t&&(a=m1+300-Zr(),10n?32:n,Pe.T=null,di===null)var a=!1;else{n=Wy,Wy=null;var s=di,i=Su;if(di=null,Su=0,tn&6)throw Error(q(331));var l=tn;if(tn|=4,vD(s.current),mD(s,s.current,i,n),tn=l,kp(0,!1),Mo&&typeof Mo.onPostCommitFiberRoot=="function")try{Mo.onPostCommitFiberRoot(_p,s)}catch{}a=!0}return a}finally{Wt.p=r,Pe.T=o,DD(e,t)}}return!1}function Tx(e,t,n){t=tr(n,t),t=My(e.stateNode,t,2),e=Es(e,t,2),e!==null&&(yp(e,2),la(e))}function At(e,t,n){if(e.tag===3)Tx(e,e,n);else for(;t!==null;){if(t.tag===3){Tx(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Os===null||!Os.has(o))){e=tr(n,e),n=XO(2),o=Es(t,n,2),o!==null&&(JO(n,o,t,e),yp(o,2),la(o));break}}t=t.return}}function sv(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new PN;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(n)||(h1=!0,r.add(n),e=GN.bind(null,e,t,n),t.then(e,e))}function GN(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bt===e&&(it&n)===n&&(ln===4||ln===3&&(it&62914560)===it&&300>Zr()-m1?!(tn&2)&&Nc(e,0):f1|=n,Mc===it&&(Mc=0)),la(e)}function AD(e,t){t===0&&(t=DT()),e=zs(e,t),e!==null&&(yp(e,t),la(e))}function qN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),AD(e,n)}function XN(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(q(314))}o!==null&&o.delete(t),AD(e,n)}function JN(e,t){return z0(e,t)}var Yf=null,$l=null,Xy=!1,Kf=!1,iv=!1,xi=0;function la(e){e!==$l&&e.next===null&&($l===null?Yf=$l=e:$l=$l.next=e),Kf=!0,Xy||(Xy=!0,KN(YN))}function kp(e,t){if(!iv&&Kf){iv=!0;do for(var n=!1,o=Yf;o!==null;){if(e!==0){var r=o.pendingLanes;if(r===0)var a=0;else{var s=o.suspendedLanes,i=o.pingedLanes;a=(1<<31-No(42|e)+1)-1,a&=r&~(s&~i),a=a&201326677?a&201326677|1:a?a|2:0}a!==0&&(n=!0,Ox(o,a))}else a=it,a=Zm(o,o===Bt?a:0),!(a&3)||vp(o,a)||(n=!0,Ox(o,a));o=o.next}while(n);iv=!1}}function YN(){Kf=Xy=!1;var e=0;xi!==0&&(aj()&&(e=xi),xi=0);for(var t=Zr(),n=null,o=Yf;o!==null;){var r=o.next,a=MD(o,t);a===0?(o.next=null,n===null?Yf=r:n.next=r,r===null&&($l=n)):(n=o,(e!==0||a&3)&&(Kf=!0)),o=r}kp(e)}function MD(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes&-62914561;0"u"?null:document;function PD(e,t,n){var o=Qc;if(o&&typeof t=="string"&&t){var r=er(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Ix.has(r)||(Ix.add(r),e={rel:e,crossOrigin:n,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Rn(t,"link",e),En(t),o.head.appendChild(t)))}}function hj(e){Ga.D(e),PD("dns-prefetch",e,null)}function fj(e,t){Ga.C(e,t),PD("preconnect",e,t)}function mj(e,t,n){Ga.L(e,t,n);var o=Qc;if(o&&e&&t){var r='link[rel="preload"][as="'+er(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+er(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+er(n.imageSizes)+'"]')):r+='[href="'+er(e)+'"]';var a=r;switch(t){case"style":a=jc(e);break;case"script":a=ed(e)}cr.has(a)||(e=Vt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),cr.set(a,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(Ep(a))||t==="script"&&o.querySelector(Tp(a))||(t=o.createElement("link"),Rn(t,"link",e),En(t),o.head.appendChild(t)))}}function gj(e,t){Ga.m(e,t);var n=Qc;if(n&&e){var o=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+er(o)+'"][href="'+er(e)+'"]',a=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=ed(e)}if(!cr.has(a)&&(e=Vt({rel:"modulepreload",href:e},t),cr.set(a,e),n.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Tp(a)))return}o=n.createElement("link"),Rn(o,"link",e),En(o),n.head.appendChild(o)}}}function _j(e,t,n){Ga.S(e,t,n);var o=Qc;if(o&&e){var r=ic(o).hoistableStyles,a=jc(e);t=t||"default";var s=r.get(a);if(!s){var i={loading:0,preload:null};if(s=o.querySelector(Ep(a)))i.loading=5;else{e=Vt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cr.get(a))&&y1(e,n);var l=s=o.createElement("link");En(l),Rn(l,"link",e),l._p=new Promise(function(d,u){l.onload=d,l.onerror=u}),l.addEventListener("load",function(){i.loading|=1}),l.addEventListener("error",function(){i.loading|=2}),i.loading|=4,mf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:i},r.set(a,s)}}}function vj(e,t){Ga.X(e,t);var n=Qc;if(n&&e){var o=ic(n).hoistableScripts,r=ed(e),a=o.get(r);a||(a=n.querySelector(Tp(r)),a||(e=Vt({src:e,async:!0},t),(t=cr.get(r))&&b1(e,t),a=n.createElement("script"),En(a),Rn(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},o.set(r,a))}}function yj(e,t){Ga.M(e,t);var n=Qc;if(n&&e){var o=ic(n).hoistableScripts,r=ed(e),a=o.get(r);a||(a=n.querySelector(Tp(r)),a||(e=Vt({src:e,async:!0,type:"module"},t),(t=cr.get(r))&&b1(e,t),a=n.createElement("script"),En(a),Rn(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},o.set(r,a))}}function Lx(e,t,n,o){var r=(r=$s.current)?em(r):null;if(!r)throw Error(q(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=jc(n.href),n=ic(r).hoistableStyles,o=n.get(t),o||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=jc(n.href);var a=ic(r).hoistableStyles,s=a.get(e);if(s||(r=r.ownerDocument||r,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=r.querySelector(Ep(e)))&&!a._p&&(s.instance=a,s.state.loading=5),cr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cr.set(e,n),a||bj(r,e,n,s.state))),t&&o===null)throw Error(q(528,""));return s}if(t&&o!==null)throw Error(q(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ed(n),n=ic(r).hoistableScripts,o=n.get(t),o||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(q(444,e))}}function jc(e){return'href="'+er(e)+'"'}function Ep(e){return'link[rel="stylesheet"]['+e+"]"}function BD(e){return Vt({},e,{"data-precedence":e.precedence,precedence:null})}function bj(e,t,n,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Rn(t,"link",n),En(t),e.head.appendChild(t))}function ed(e){return'[src="'+er(e)+'"]'}function Tp(e){return"script[async]"+e}function Fx(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+er(n.href)+'"]');if(o)return t.instance=o,En(o),o;var r=Vt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),En(o),Rn(o,"style",r),mf(o,n.precedence,e),t.instance=o;case"stylesheet":r=jc(n.href);var a=e.querySelector(Ep(r));if(a)return t.state.loading|=4,t.instance=a,En(a),a;o=BD(n),(r=cr.get(r))&&y1(o,r),a=(e.ownerDocument||e).createElement("link"),En(a);var s=a;return s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Rn(a,"link",o),t.state.loading|=4,mf(a,n.precedence,e),t.instance=a;case"script":return a=ed(n.src),(r=e.querySelector(Tp(a)))?(t.instance=r,En(r),r):(o=n,(r=cr.get(a))&&(o=Vt({},n),b1(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),En(r),Rn(r,"link",o),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(q(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(o=t.instance,t.state.loading|=4,mf(o,n.precedence,e));return t.instance}function mf(e,t,n){for(var o=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,a=r,s=0;s title"):null)}function wj(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function HD(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Gu=null;function Sj(){}function xj(e,t,n){if(Gu===null)throw Error(q(475));var o=Gu;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=jc(n.href),a=e.querySelector(Ep(r));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=tm.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=a,En(a);return}a=e.ownerDocument||e,n=BD(n),(r=cr.get(r))&&y1(n,r),a=a.createElement("link"),En(a);var s=a;s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Rn(a,"link",n),t.instance=a}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(o.count++,t=tm.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}function Cj(){if(Gu===null)throw Error(q(475));var e=Gu;return e.stylesheets&&e.count===0&&eb(e,e.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JD)}catch(e){console.error(e)}}JD(),hT.exports=Ym;var Nj=hT.exports;function Ua(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const kr="$$material";function am(){return am=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?jn(td,--vo):0,zc--,mn===10&&(zc=1,hg--),mn}function zo(){return mn=vo2||Zu(mn)>3?"":" "}function Jj(e,t){for(;--t&&zo()&&!(mn<48||mn>102||mn>57&&mn<65||mn>70&&mn<97););return Op(e,vf()+(t<6&&ea()==32&&zo()==32))}function rb(e){for(;zo();)switch(mn){case e:return vo;case 34:case 39:e!==34&&e!==39&&rb(mn);break;case 40:e===41&&rb(e);break;case 92:zo();break}return vo}function Yj(e,t){for(;zo()&&e+mn!==57;)if(e+mn===84&&ea()===47)break;return"/*"+Op(t,vo-1)+"*"+pg(e===47?e:zo())}function Kj(e){for(;!Zu(ea());)zo();return Op(e,vo)}function Zj(e){return o4(bf("",null,null,null,[""],e=n4(e),0,[0],e))}function bf(e,t,n,o,r,a,s,i,l){for(var d=0,u=0,c=s,h=0,f=0,g=0,v=1,S=1,_=1,b=0,y="",w=r,$=a,k=o,T=y;S;)switch(g=b,b=zo()){case 40:if(g!=108&&jn(T,c-1)==58){ob(T+=ut(yf(b),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:T+=yf(b);break;case 9:case 10:case 13:case 32:T+=Xj(g);break;case 92:T+=Jj(vf()-1,7);continue;case 47:switch(ea()){case 42:case 47:gh(Qj(Yj(zo(),vf()),t,n),l);break;default:T+="/"}break;case 123*v:i[d++]=Hr(T)*_;case 125*v:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+u:_==-1&&(T=ut(T,/\f/g,"")),f>0&&Hr(T)-c&&gh(f>32?Xx(T+";",o,n,c-1):Xx(ut(T," ","")+";",o,n,c-2),l);break;case 59:T+=";";default:if(gh(k=qx(T,t,n,d,u,r,i,y,w=[],$=[],c),a),b===123)if(u===0)bf(T,t,k,k,w,a,c,i,$);else switch(h===99&&jn(T,3)===110?100:h){case 100:case 108:case 109:case 115:bf(e,k,k,o&&gh(qx(e,k,k,0,0,r,i,y,r,w=[],c),$),r,$,c,i,o?w:$);break;default:bf(T,k,k,k,[""],$,0,i,$)}}d=u=f=0,v=_=1,y=T="",c=s;break;case 58:c=1+Hr(T),f=g;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&qj()==125)continue}switch(T+=pg(b),b*v){case 38:_=u>0?1:(T+="\f",-1);break;case 44:i[d++]=(Hr(T)-1)*_,_=1;break;case 64:ea()===45&&(T+=yf(zo())),h=ea(),u=c=Hr(y=T+=Kj(vf())),b++;break;case 45:g===45&&Hr(T)==2&&(v=0)}}return a}function qx(e,t,n,o,r,a,s,i,l,d,u){for(var c=r-1,h=r===0?a:[""],f=E1(h),g=0,v=0,S=0;g0?h[_]+" "+b:ut(b,/&\f/g,h[_])))&&(l[S++]=y);return fg(e,t,n,r===0?$1:i,l,d,u)}function Qj(e,t,n){return fg(e,t,n,ZD,pg(Gj()),Ku(e,2,-2),0)}function Xx(e,t,n,o){return fg(e,t,n,k1,Ku(e,0,o),Ku(e,o+1,-1),o)}function mc(e,t){for(var n="",o=E1(e),r=0;r6)switch(jn(e,t+1)){case 109:if(jn(e,t+4)!==45)break;case 102:return ut(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+sm+(jn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ob(e,"stretch")?r4(ut(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jn(e,t+1)!==115)break;case 6444:switch(jn(e,Hr(e)-3-(~ob(e,"!important")&&10))){case 107:return ut(e,":",":"+dt)+e;case 101:return ut(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(jn(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Fn+"$2box$3")+e}break;case 5936:switch(jn(e,t+11)){case 114:return dt+e+Fn+ut(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+Fn+ut(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+Fn+ut(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+Fn+e+e}return e}var lz=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case k1:t.return=r4(t.value,t.length);break;case QD:return mc([Td(t,{value:ut(t.value,"@","@"+dt)})],r);case $1:if(t.length)return Vj(t.props,function(a){switch(Wj(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mc([Td(t,{props:[ut(a,/:(read-\w+)/,":"+sm+"$1")]})],r);case"::placeholder":return mc([Td(t,{props:[ut(a,/:(plac\w+)/,":"+dt+"input-$1")]}),Td(t,{props:[ut(a,/:(plac\w+)/,":"+sm+"$1")]}),Td(t,{props:[ut(a,/:(plac\w+)/,Fn+"input-$1")]})],r)}return""})}},cz=[lz],a4=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var r=t.stylisPlugins||cz,a={},s,i=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),_=1;_=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var bz={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},wz=!1,Sz=/[A-Z]|^ms/g,xz=/_EMO_([^_]+?)_([^]*?)_EMO_/g,d4=function(t){return t.charCodeAt(1)===45},Jx=function(t){return t!=null&&typeof t!="boolean"},fv=XD(function(e){return d4(e)?e:e.replace(Sz,"-$&").toLowerCase()}),Yx=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(xz,function(o,r,a){return Ur={name:r,styles:a,next:Ur},r})}return bz[t]!==1&&!d4(t)&&typeof n=="number"&&n!==0?n+"px":n},Cz="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qu(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ur={name:r.name,styles:r.styles,next:Ur},r.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Ur={name:s.name,styles:s.styles,next:Ur},s=s.next;var i=a.styles+";";return i}return $z(e,t,n)}case"function":{if(e!==void 0){var l=Ur,d=n(e);return Ur=l,Qu(e,t,d)}break}}var u=n;if(t==null)return u;var c=t[u];return c!==void 0?c:u}function $z(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r96?Dz:Az},e2=function(t,n,o){var r;if(n){var a=n.shouldForwardProp;r=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},Mz=!1,Nz=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return l4(n,o,r),Ez(function(){return c4(n,o,r)}),null},jz=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var i=e2(t,n,o),l=i||Qx(r),d=!l("as");return function(){var u=arguments,c=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&c.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{c.push(u[0][0]);for(var h=u.length,f=1;f{const t=o4(e);class n extends JD{constructor(r){super(r),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let ab;typeof document=="object"&&(ab=Bz({key:"css",prepend:!0}));function t2(e){const{injectFirst:t,children:n}=e;return t&&ab?m.jsx(Tz,{value:ab,children:n}):n}function Hz(e){return e==null||Object.keys(e).length===0}function _4(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>t(Hz(r)?n:r):t;return m.jsx(Oz,{styles:o})}/** + */var Dn=typeof Symbol=="function"&&Symbol.for,T1=Dn?Symbol.for("react.element"):60103,O1=Dn?Symbol.for("react.portal"):60106,mg=Dn?Symbol.for("react.fragment"):60107,gg=Dn?Symbol.for("react.strict_mode"):60108,_g=Dn?Symbol.for("react.profiler"):60114,vg=Dn?Symbol.for("react.provider"):60109,yg=Dn?Symbol.for("react.context"):60110,D1=Dn?Symbol.for("react.async_mode"):60111,bg=Dn?Symbol.for("react.concurrent_mode"):60111,wg=Dn?Symbol.for("react.forward_ref"):60112,Sg=Dn?Symbol.for("react.suspense"):60113,dz=Dn?Symbol.for("react.suspense_list"):60120,xg=Dn?Symbol.for("react.memo"):60115,Cg=Dn?Symbol.for("react.lazy"):60116,uz=Dn?Symbol.for("react.block"):60121,pz=Dn?Symbol.for("react.fundamental"):60117,hz=Dn?Symbol.for("react.responder"):60118,fz=Dn?Symbol.for("react.scope"):60119;function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T1:switch(e=e.type,e){case D1:case bg:case mg:case _g:case gg:case Sg:return e;default:switch(e=e&&e.$$typeof,e){case yg:case wg:case Cg:case xg:case vg:return e;default:return t}}case O1:return t}}}function i4(e){return Bo(e)===bg}gt.AsyncMode=D1;gt.ConcurrentMode=bg;gt.ContextConsumer=yg;gt.ContextProvider=vg;gt.Element=T1;gt.ForwardRef=wg;gt.Fragment=mg;gt.Lazy=Cg;gt.Memo=xg;gt.Portal=O1;gt.Profiler=_g;gt.StrictMode=gg;gt.Suspense=Sg;gt.isAsyncMode=function(e){return i4(e)||Bo(e)===D1};gt.isConcurrentMode=i4;gt.isContextConsumer=function(e){return Bo(e)===yg};gt.isContextProvider=function(e){return Bo(e)===vg};gt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T1};gt.isForwardRef=function(e){return Bo(e)===wg};gt.isFragment=function(e){return Bo(e)===mg};gt.isLazy=function(e){return Bo(e)===Cg};gt.isMemo=function(e){return Bo(e)===xg};gt.isPortal=function(e){return Bo(e)===O1};gt.isProfiler=function(e){return Bo(e)===_g};gt.isStrictMode=function(e){return Bo(e)===gg};gt.isSuspense=function(e){return Bo(e)===Sg};gt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mg||e===bg||e===_g||e===gg||e===Sg||e===dz||typeof e=="object"&&e!==null&&(e.$$typeof===Cg||e.$$typeof===xg||e.$$typeof===vg||e.$$typeof===yg||e.$$typeof===wg||e.$$typeof===pz||e.$$typeof===hz||e.$$typeof===fz||e.$$typeof===uz)};gt.typeOf=Bo;s4.exports=gt;var mz=s4.exports,l4=mz,gz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_z={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c4={};c4[l4.ForwardRef]=gz;c4[l4.Memo]=_z;var vz=!0;function yz(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var d4=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||vz===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},u4=function(t,n,o){d4(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+r:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function bz(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wz={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},Sz=!1,xz=/[A-Z]|^ms/g,Cz=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p4=function(t){return t.charCodeAt(1)===45},Yx=function(t){return t!=null&&typeof t!="boolean"},fv=YD(function(e){return p4(e)?e:e.replace(xz,"-$&").toLowerCase()}),Kx=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Cz,function(o,r,a){return Ur={name:r,styles:a,next:Ur},r})}return wz[t]!==1&&!p4(t)&&typeof n=="number"&&n!==0?n+"px":n},$z="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qu(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ur={name:r.name,styles:r.styles,next:Ur},r.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Ur={name:s.name,styles:s.styles,next:Ur},s=s.next;var i=a.styles+";";return i}return kz(e,t,n)}case"function":{if(e!==void 0){var l=Ur,d=n(e);return Ur=l,Qu(e,t,d)}break}}var u=n;if(t==null)return u;var c=t[u];return c!==void 0?c:u}function kz(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r96?Az:Mz},t2=function(t,n,o){var r;if(n){var a=n.shouldForwardProp;r=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},Nz=!1,jz=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return d4(n,o,r),Tz(function(){return u4(n,o,r)}),null},zz=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var i=t2(t,n,o),l=i||e2(r),d=!l("as");return function(){var u=arguments,c=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&c.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{c.push(u[0][0]);for(var h=u.length,f=1;f{const t=a4(e);class n extends KD{constructor(r){super(r),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let sb;typeof document=="object"&&(sb=Hz({key:"css",prepend:!0}));function n2(e){const{injectFirst:t,children:n}=e;return t&&sb?m.jsx(Oz,{value:sb,children:n}):n}function Uz(e){return e==null||Object.keys(e).length===0}function y4(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>t(Uz(r)?n:r):t;return m.jsx(Dz,{styles:o})}/** * @mui/styled-engine v6.1.10 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function v4(e,t){return rb(e,t)}function Uz(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const n2=[];function o2(e){return n2[0]=e,$g(n2)}function Jr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function y4(e){if(C.isValidElement(e)||!Jr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=y4(e[n])}),t}function Gn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Jr(e)&&Jr(t)&&Object.keys(t).forEach(r=>{C.isValidElement(t[r])?o[r]=t[r]:Jr(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Jr(e[r])?o[r]=Gn(e[r],t[r],n):n.clone?o[r]=Jr(t[r])?y4(t[r]):t[r]:o[r]=t[r]}),o}const Wz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function Vz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,a=Wz(t),s=Object.keys(a);function i(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function d(h,f){const g=s.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:f)-o/100}${n})`}function u(h){return s.indexOf(h)+1o.startsWith("@container")).sort((o,r)=>{var s,i;const a=/min-width:\s*([0-9.]+)/;return+(((s=o.match(a))==null?void 0:s[1])||0)-+(((i=r.match(a))==null?void 0:i[1])||0)});return n.length?n.reduce((o,r)=>{const a=t[r];return delete o[r],o[r]=a,o},{...t}):t}function qz(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Xz(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,r]=n,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(a)}function Jz(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...i)=>t(e.breakpoints.up(...i),s),a.down=(...i)=>t(e.breakpoints.down(...i),s),a.between=(...i)=>t(e.breakpoints.between(...i),s),a.only=(...i)=>t(e.breakpoints.only(...i),s),a.not=(...i)=>{const l=t(e.breakpoints.not(...i),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const o={},r=a=>(n(o,a),o);return n(r),{...e,containerQueries:r}}const Yz={borderRadius:4};function Cu(e,t){return t?Gn(e,t,{clone:!1}):e}const Eg={xs:0,sm:600,md:900,lg:1200,xl:1536},r2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Eg[e]}px)`},Kz={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Eg[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Wa(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const a=o.breakpoints||r2;return t.reduce((s,i,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=o.breakpoints||r2;return Object.keys(t).reduce((s,i)=>{if(qz(a.keys,i)){const l=Xz(o.containerQueries?o:Kz,i);l&&(s[l]=n(t[i],i))}else if(Object.keys(a.values||Eg).includes(i)){const l=a.up(i);s[l]=n(t[i],i)}else{const l=i;s[l]=t[l]}return s},{})}return n(t)}function Zz(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const a=e.up(r);return o[a]={},o},{}))||{}}function Qz(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function U(e){if(typeof e!="string")throw new Error(Ua(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Tg(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,a)=>r&&r[a]?r[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function im(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=Tg(e,n)||o,t&&(r=t(r,o,e)),r}function un(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,a=s=>{if(s[t]==null)return null;const i=s[t],l=s.theme,d=Tg(l,o)||{};return Wa(s,i,c=>{let h=im(d,r,c);return c===h&&typeof c=="string"&&(h=im(d,r,`${t}${c==="default"?"":U(c)}`,c)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function eR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const tR={m:"margin",p:"padding"},nR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},a2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oR=eR(e=>{if(e.length>2)if(a2[e])e=a2[e];else return[e];const[t,n]=e.split(""),o=tR[t],r=nR[n]||"";return Array.isArray(r)?r.map(a=>o+a):[o+r]}),D1=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],A1=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...D1,...A1];function Dp(e,t,n,o){const r=Tg(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?a=>typeof a=="string"?a:typeof r=="string"?`calc(${a} * ${r})`:r*a:Array.isArray(r)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),i=r[s];return a>=0?i:typeof i=="number"?-i:`-${i}`}:typeof r=="function"?r:()=>{}}function M1(e){return Dp(e,"spacing",8)}function Ap(e,t){return typeof t=="string"||t==null?t:e(t)}function rR(e,t){return n=>e.reduce((o,r)=>(o[r]=Ap(t,n),o),{})}function aR(e,t,n,o){if(!t.includes(n))return null;const r=oR(n),a=rR(r,o),s=e[n];return Wa(e,s,a)}function b4(e,t){const n=M1(e.theme);return Object.keys(e).map(o=>aR(e,t,o,n)).reduce(Cu,{})}function on(e){return b4(e,D1)}on.propTypes={};on.filterProps=D1;function rn(e){return b4(e,A1)}rn.propTypes={};rn.filterProps=A1;function w4(e=8,t=M1({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Og(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(a=>{o[a]=r}),o),{}),n=o=>Object.keys(o).reduce((r,a)=>t[a]?Cu(r,t[a](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Zo(e){return typeof e!="number"?e:`${e}px solid`}function hr(e,t){return un({prop:e,themeKey:"borders",transform:t})}const sR=hr("border",Zo),iR=hr("borderTop",Zo),lR=hr("borderRight",Zo),cR=hr("borderBottom",Zo),dR=hr("borderLeft",Zo),uR=hr("borderColor"),pR=hr("borderTopColor"),hR=hr("borderRightColor"),fR=hr("borderBottomColor"),mR=hr("borderLeftColor"),gR=hr("outline",Zo),_R=hr("outlineColor"),Dg=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dp(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Ap(t,o)});return Wa(e,e.borderRadius,n)}return null};Dg.propTypes={};Dg.filterProps=["borderRadius"];Og(sR,iR,lR,cR,dR,uR,pR,hR,fR,mR,Dg,gR,_R);const Ag=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dp(e.theme,"spacing",8),n=o=>({gap:Ap(t,o)});return Wa(e,e.gap,n)}return null};Ag.propTypes={};Ag.filterProps=["gap"];const Mg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dp(e.theme,"spacing",8),n=o=>({columnGap:Ap(t,o)});return Wa(e,e.columnGap,n)}return null};Mg.propTypes={};Mg.filterProps=["columnGap"];const Ng=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dp(e.theme,"spacing",8),n=o=>({rowGap:Ap(t,o)});return Wa(e,e.rowGap,n)}return null};Ng.propTypes={};Ng.filterProps=["rowGap"];const vR=un({prop:"gridColumn"}),yR=un({prop:"gridRow"}),bR=un({prop:"gridAutoFlow"}),wR=un({prop:"gridAutoColumns"}),SR=un({prop:"gridAutoRows"}),xR=un({prop:"gridTemplateColumns"}),CR=un({prop:"gridTemplateRows"}),$R=un({prop:"gridTemplateAreas"}),kR=un({prop:"gridArea"});Og(Ag,Mg,Ng,vR,yR,bR,wR,SR,xR,CR,$R,kR);function gc(e,t){return t==="grey"?t:e}const ER=un({prop:"color",themeKey:"palette",transform:gc}),TR=un({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gc}),OR=un({prop:"backgroundColor",themeKey:"palette",transform:gc});Og(ER,TR,OR);function Eo(e){return e<=1&&e!==0?`${e*100}%`:e}const DR=un({prop:"width",transform:Eo}),N1=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,a,s,i,l;const o=((s=(a=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:a.values)==null?void 0:s[n])||Eg[n];return o?((l=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Eo(n)}};return Wa(e,e.maxWidth,t)}return null};N1.filterProps=["maxWidth"];const AR=un({prop:"minWidth",transform:Eo}),MR=un({prop:"height",transform:Eo}),NR=un({prop:"maxHeight",transform:Eo}),jR=un({prop:"minHeight",transform:Eo});un({prop:"size",cssProperty:"width",transform:Eo});un({prop:"size",cssProperty:"height",transform:Eo});const zR=un({prop:"boxSizing"});Og(DR,N1,AR,MR,NR,jR,zR);const Mp={border:{themeKey:"borders",transform:Zo},borderTop:{themeKey:"borders",transform:Zo},borderRight:{themeKey:"borders",transform:Zo},borderBottom:{themeKey:"borders",transform:Zo},borderLeft:{themeKey:"borders",transform:Zo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dg},color:{themeKey:"palette",transform:gc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gc},backgroundColor:{themeKey:"palette",transform:gc},p:{style:rn},pt:{style:rn},pr:{style:rn},pb:{style:rn},pl:{style:rn},px:{style:rn},py:{style:rn},padding:{style:rn},paddingTop:{style:rn},paddingRight:{style:rn},paddingBottom:{style:rn},paddingLeft:{style:rn},paddingX:{style:rn},paddingY:{style:rn},paddingInline:{style:rn},paddingInlineStart:{style:rn},paddingInlineEnd:{style:rn},paddingBlock:{style:rn},paddingBlockStart:{style:rn},paddingBlockEnd:{style:rn},m:{style:on},mt:{style:on},mr:{style:on},mb:{style:on},ml:{style:on},mx:{style:on},my:{style:on},margin:{style:on},marginTop:{style:on},marginRight:{style:on},marginBottom:{style:on},marginLeft:{style:on},marginX:{style:on},marginY:{style:on},marginInline:{style:on},marginInlineStart:{style:on},marginInlineEnd:{style:on},marginBlock:{style:on},marginBlockStart:{style:on},marginBlockEnd:{style:on},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ag},rowGap:{style:Ng},columnGap:{style:Mg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Eo},maxWidth:{style:N1},minWidth:{transform:Eo},height:{transform:Eo},maxHeight:{transform:Eo},minHeight:{transform:Eo},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 RR(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function IR(e,t){return typeof e=="function"?e(t):e}function LR(){function e(n,o,r,a){const s={[n]:o,theme:r},i=a[n];if(!i)return{[n]:o};const{cssProperty:l=n,themeKey:d,transform:u,style:c}=i;if(o==null)return null;if(d==="typography"&&o==="inherit")return{[n]:o};const h=Tg(r,d)||{};return c?c(s):Wa(s,o,g=>{let v=im(h,u,g);return g===v&&typeof g=="string"&&(v=im(h,u,`${n}${g==="default"?"":U(g)}`,g)),l===!1?v:{[l]:v}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const a=r.unstable_sxConfig??Mp;function s(i){let l=i;if(typeof i=="function")l=i(r);else if(typeof i!="object")return i;if(!l)return null;const d=Zz(r.breakpoints),u=Object.keys(d);let c=d;return Object.keys(l).forEach(h=>{const f=IR(l[h],r);if(f!=null)if(typeof f=="object")if(a[h])c=Cu(c,e(h,f,r,a));else{const g=Wa({theme:r},f,v=>({[h]:v}));RR(g,f)?c[h]=t({sx:f,theme:r}):c=Cu(c,g)}else c=Cu(c,e(h,f,r,a))}),Gz(r,Qz(u,c))}return Array.isArray(o)?o.map(s):s(o)}return t}const Fs=LR();Fs.filterProps=["sx"];function FR(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function jg(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:a={},...s}=e,i=Vz(n),l=w4(r);let d=Gn({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:l,shape:{...Yz,...a}},s);return d=Jz(d),d.applyStyles=FR,d=t.reduce((u,c)=>Gn(u,c),d),d.unstable_sxConfig={...Mp,...s==null?void 0:s.unstable_sxConfig},d.unstable_sx=function(c){return Fs({sx:c,theme:this})},d}function PR(e){return Object.keys(e).length===0}function j1(e=null){const t=C.useContext(kg);return!t||PR(t)?e:t}const BR=jg();function Np(e=BR){return j1(e)}function HR({styles:e,themeId:t,defaultTheme:n={}}){const o=Np(n),r=typeof e=="function"?e(t&&o[t]||o):e;return m.jsx(_4,{styles:r})}const UR=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Mp;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function z1(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=UR(n);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...s)=>{const i=t(...s);return Jr(i)?{...o,...i}:o}:a={...o,...t},{...r,sx:a}}const s2=e=>e,WR=()=>{let e=s2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=s2}}},S4=WR();function x4(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ti!=="theme"&&i!=="sx"&&i!=="as"})(Fs);return C.forwardRef(function(l,d){const u=Np(n),{className:c,component:h="div",...f}=z1(l);return m.jsx(a,{as:h,ref:d,className:Y(c,r?r(o):o),theme:t&&u[t]||u,...f})})}const GR={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 ie(e,t,n="Mui"){const o=GR[t];return o?`${n}-${o}`:`${S4.generate(e)}-${t}`}function se(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=ie(e,r,n)}),o}var wt={};/** + */function b4(e,t){return ab(e,t)}function Wz(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const o2=[];function r2(e){return o2[0]=e,$g(o2)}function Jr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function w4(e){if(C.isValidElement(e)||!Jr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=w4(e[n])}),t}function Gn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Jr(e)&&Jr(t)&&Object.keys(t).forEach(r=>{C.isValidElement(t[r])?o[r]=t[r]:Jr(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Jr(e[r])?o[r]=Gn(e[r],t[r],n):n.clone?o[r]=Jr(t[r])?w4(t[r]):t[r]:o[r]=t[r]}),o}const Vz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function Gz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,a=Vz(t),s=Object.keys(a);function i(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function d(h,f){const g=s.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:f)-o/100}${n})`}function u(h){return s.indexOf(h)+1o.startsWith("@container")).sort((o,r)=>{var s,i;const a=/min-width:\s*([0-9.]+)/;return+(((s=o.match(a))==null?void 0:s[1])||0)-+(((i=r.match(a))==null?void 0:i[1])||0)});return n.length?n.reduce((o,r)=>{const a=t[r];return delete o[r],o[r]=a,o},{...t}):t}function Xz(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Jz(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,r]=n,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(a)}function Yz(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...i)=>t(e.breakpoints.up(...i),s),a.down=(...i)=>t(e.breakpoints.down(...i),s),a.between=(...i)=>t(e.breakpoints.between(...i),s),a.only=(...i)=>t(e.breakpoints.only(...i),s),a.not=(...i)=>{const l=t(e.breakpoints.not(...i),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const o={},r=a=>(n(o,a),o);return n(r),{...e,containerQueries:r}}const Kz={borderRadius:4};function Cu(e,t){return t?Gn(e,t,{clone:!1}):e}const Eg={xs:0,sm:600,md:900,lg:1200,xl:1536},a2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Eg[e]}px)`},Zz={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Eg[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Wa(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const a=o.breakpoints||a2;return t.reduce((s,i,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=o.breakpoints||a2;return Object.keys(t).reduce((s,i)=>{if(Xz(a.keys,i)){const l=Jz(o.containerQueries?o:Zz,i);l&&(s[l]=n(t[i],i))}else if(Object.keys(a.values||Eg).includes(i)){const l=a.up(i);s[l]=n(t[i],i)}else{const l=i;s[l]=t[l]}return s},{})}return n(t)}function Qz(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const a=e.up(r);return o[a]={},o},{}))||{}}function eR(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function U(e){if(typeof e!="string")throw new Error(Ua(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Tg(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,a)=>r&&r[a]?r[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function im(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=Tg(e,n)||o,t&&(r=t(r,o,e)),r}function un(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,a=s=>{if(s[t]==null)return null;const i=s[t],l=s.theme,d=Tg(l,o)||{};return Wa(s,i,c=>{let h=im(d,r,c);return c===h&&typeof c=="string"&&(h=im(d,r,`${t}${c==="default"?"":U(c)}`,c)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function tR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const nR={m:"margin",p:"padding"},oR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rR=tR(e=>{if(e.length>2)if(s2[e])e=s2[e];else return[e];const[t,n]=e.split(""),o=nR[t],r=oR[n]||"";return Array.isArray(r)?r.map(a=>o+a):[o+r]}),A1=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],M1=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...A1,...M1];function Dp(e,t,n,o){const r=Tg(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?a=>typeof a=="string"?a:typeof r=="string"?`calc(${a} * ${r})`:r*a:Array.isArray(r)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),i=r[s];return a>=0?i:typeof i=="number"?-i:`-${i}`}:typeof r=="function"?r:()=>{}}function N1(e){return Dp(e,"spacing",8)}function Ap(e,t){return typeof t=="string"||t==null?t:e(t)}function aR(e,t){return n=>e.reduce((o,r)=>(o[r]=Ap(t,n),o),{})}function sR(e,t,n,o){if(!t.includes(n))return null;const r=rR(n),a=aR(r,o),s=e[n];return Wa(e,s,a)}function S4(e,t){const n=N1(e.theme);return Object.keys(e).map(o=>sR(e,t,o,n)).reduce(Cu,{})}function on(e){return S4(e,A1)}on.propTypes={};on.filterProps=A1;function rn(e){return S4(e,M1)}rn.propTypes={};rn.filterProps=M1;function x4(e=8,t=N1({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Og(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(a=>{o[a]=r}),o),{}),n=o=>Object.keys(o).reduce((r,a)=>t[a]?Cu(r,t[a](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Zo(e){return typeof e!="number"?e:`${e}px solid`}function hr(e,t){return un({prop:e,themeKey:"borders",transform:t})}const iR=hr("border",Zo),lR=hr("borderTop",Zo),cR=hr("borderRight",Zo),dR=hr("borderBottom",Zo),uR=hr("borderLeft",Zo),pR=hr("borderColor"),hR=hr("borderTopColor"),fR=hr("borderRightColor"),mR=hr("borderBottomColor"),gR=hr("borderLeftColor"),_R=hr("outline",Zo),vR=hr("outlineColor"),Dg=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dp(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Ap(t,o)});return Wa(e,e.borderRadius,n)}return null};Dg.propTypes={};Dg.filterProps=["borderRadius"];Og(iR,lR,cR,dR,uR,pR,hR,fR,mR,gR,Dg,_R,vR);const Ag=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dp(e.theme,"spacing",8),n=o=>({gap:Ap(t,o)});return Wa(e,e.gap,n)}return null};Ag.propTypes={};Ag.filterProps=["gap"];const Mg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dp(e.theme,"spacing",8),n=o=>({columnGap:Ap(t,o)});return Wa(e,e.columnGap,n)}return null};Mg.propTypes={};Mg.filterProps=["columnGap"];const Ng=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dp(e.theme,"spacing",8),n=o=>({rowGap:Ap(t,o)});return Wa(e,e.rowGap,n)}return null};Ng.propTypes={};Ng.filterProps=["rowGap"];const yR=un({prop:"gridColumn"}),bR=un({prop:"gridRow"}),wR=un({prop:"gridAutoFlow"}),SR=un({prop:"gridAutoColumns"}),xR=un({prop:"gridAutoRows"}),CR=un({prop:"gridTemplateColumns"}),$R=un({prop:"gridTemplateRows"}),kR=un({prop:"gridTemplateAreas"}),ER=un({prop:"gridArea"});Og(Ag,Mg,Ng,yR,bR,wR,SR,xR,CR,$R,kR,ER);function gc(e,t){return t==="grey"?t:e}const TR=un({prop:"color",themeKey:"palette",transform:gc}),OR=un({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gc}),DR=un({prop:"backgroundColor",themeKey:"palette",transform:gc});Og(TR,OR,DR);function Eo(e){return e<=1&&e!==0?`${e*100}%`:e}const AR=un({prop:"width",transform:Eo}),j1=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,a,s,i,l;const o=((s=(a=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:a.values)==null?void 0:s[n])||Eg[n];return o?((l=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Eo(n)}};return Wa(e,e.maxWidth,t)}return null};j1.filterProps=["maxWidth"];const MR=un({prop:"minWidth",transform:Eo}),NR=un({prop:"height",transform:Eo}),jR=un({prop:"maxHeight",transform:Eo}),zR=un({prop:"minHeight",transform:Eo});un({prop:"size",cssProperty:"width",transform:Eo});un({prop:"size",cssProperty:"height",transform:Eo});const RR=un({prop:"boxSizing"});Og(AR,j1,MR,NR,jR,zR,RR);const Mp={border:{themeKey:"borders",transform:Zo},borderTop:{themeKey:"borders",transform:Zo},borderRight:{themeKey:"borders",transform:Zo},borderBottom:{themeKey:"borders",transform:Zo},borderLeft:{themeKey:"borders",transform:Zo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dg},color:{themeKey:"palette",transform:gc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gc},backgroundColor:{themeKey:"palette",transform:gc},p:{style:rn},pt:{style:rn},pr:{style:rn},pb:{style:rn},pl:{style:rn},px:{style:rn},py:{style:rn},padding:{style:rn},paddingTop:{style:rn},paddingRight:{style:rn},paddingBottom:{style:rn},paddingLeft:{style:rn},paddingX:{style:rn},paddingY:{style:rn},paddingInline:{style:rn},paddingInlineStart:{style:rn},paddingInlineEnd:{style:rn},paddingBlock:{style:rn},paddingBlockStart:{style:rn},paddingBlockEnd:{style:rn},m:{style:on},mt:{style:on},mr:{style:on},mb:{style:on},ml:{style:on},mx:{style:on},my:{style:on},margin:{style:on},marginTop:{style:on},marginRight:{style:on},marginBottom:{style:on},marginLeft:{style:on},marginX:{style:on},marginY:{style:on},marginInline:{style:on},marginInlineStart:{style:on},marginInlineEnd:{style:on},marginBlock:{style:on},marginBlockStart:{style:on},marginBlockEnd:{style:on},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ag},rowGap:{style:Ng},columnGap:{style:Mg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Eo},maxWidth:{style:j1},minWidth:{transform:Eo},height:{transform:Eo},maxHeight:{transform:Eo},minHeight:{transform:Eo},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 IR(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function LR(e,t){return typeof e=="function"?e(t):e}function FR(){function e(n,o,r,a){const s={[n]:o,theme:r},i=a[n];if(!i)return{[n]:o};const{cssProperty:l=n,themeKey:d,transform:u,style:c}=i;if(o==null)return null;if(d==="typography"&&o==="inherit")return{[n]:o};const h=Tg(r,d)||{};return c?c(s):Wa(s,o,g=>{let v=im(h,u,g);return g===v&&typeof g=="string"&&(v=im(h,u,`${n}${g==="default"?"":U(g)}`,g)),l===!1?v:{[l]:v}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const a=r.unstable_sxConfig??Mp;function s(i){let l=i;if(typeof i=="function")l=i(r);else if(typeof i!="object")return i;if(!l)return null;const d=Qz(r.breakpoints),u=Object.keys(d);let c=d;return Object.keys(l).forEach(h=>{const f=LR(l[h],r);if(f!=null)if(typeof f=="object")if(a[h])c=Cu(c,e(h,f,r,a));else{const g=Wa({theme:r},f,v=>({[h]:v}));IR(g,f)?c[h]=t({sx:f,theme:r}):c=Cu(c,g)}else c=Cu(c,e(h,f,r,a))}),qz(r,eR(u,c))}return Array.isArray(o)?o.map(s):s(o)}return t}const Fs=FR();Fs.filterProps=["sx"];function PR(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function jg(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:a={},...s}=e,i=Gz(n),l=x4(r);let d=Gn({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:l,shape:{...Kz,...a}},s);return d=Yz(d),d.applyStyles=PR,d=t.reduce((u,c)=>Gn(u,c),d),d.unstable_sxConfig={...Mp,...s==null?void 0:s.unstable_sxConfig},d.unstable_sx=function(c){return Fs({sx:c,theme:this})},d}function BR(e){return Object.keys(e).length===0}function z1(e=null){const t=C.useContext(kg);return!t||BR(t)?e:t}const HR=jg();function Np(e=HR){return z1(e)}function UR({styles:e,themeId:t,defaultTheme:n={}}){const o=Np(n),r=typeof e=="function"?e(t&&o[t]||o):e;return m.jsx(y4,{styles:r})}const WR=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Mp;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function R1(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=WR(n);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...s)=>{const i=t(...s);return Jr(i)?{...o,...i}:o}:a={...o,...t},{...r,sx:a}}const i2=e=>e,VR=()=>{let e=i2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=i2}}},C4=VR();function $4(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ti!=="theme"&&i!=="sx"&&i!=="as"})(Fs);return C.forwardRef(function(l,d){const u=Np(n),{className:c,component:h="div",...f}=R1(l);return m.jsx(a,{as:h,ref:d,className:Y(c,r?r(o):o),theme:t&&u[t]||u,...f})})}const qR={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 ie(e,t,n="Mui"){const o=qR[t];return o?`${n}-${o}`:`${C4.generate(e)}-${t}`}function se(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=ie(e,r,n)}),o}var wt={};/** * @license React * react-is.production.min.js * @@ -67,7 +67,7 @@ Error generating stack: `+n.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var R1=Symbol.for("react.element"),I1=Symbol.for("react.portal"),zg=Symbol.for("react.fragment"),Rg=Symbol.for("react.strict_mode"),Ig=Symbol.for("react.profiler"),Lg=Symbol.for("react.provider"),Fg=Symbol.for("react.context"),qR=Symbol.for("react.server_context"),Pg=Symbol.for("react.forward_ref"),Bg=Symbol.for("react.suspense"),Hg=Symbol.for("react.suspense_list"),Ug=Symbol.for("react.memo"),Wg=Symbol.for("react.lazy"),XR=Symbol.for("react.offscreen"),C4;C4=Symbol.for("react.module.reference");function fr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R1:switch(e=e.type,e){case zg:case Ig:case Rg:case Bg:case Hg:return e;default:switch(e=e&&e.$$typeof,e){case qR:case Fg:case Pg:case Wg:case Ug:case Lg:return e;default:return t}}case I1:return t}}}wt.ContextConsumer=Fg;wt.ContextProvider=Lg;wt.Element=R1;wt.ForwardRef=Pg;wt.Fragment=zg;wt.Lazy=Wg;wt.Memo=Ug;wt.Portal=I1;wt.Profiler=Ig;wt.StrictMode=Rg;wt.Suspense=Bg;wt.SuspenseList=Hg;wt.isAsyncMode=function(){return!1};wt.isConcurrentMode=function(){return!1};wt.isContextConsumer=function(e){return fr(e)===Fg};wt.isContextProvider=function(e){return fr(e)===Lg};wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R1};wt.isForwardRef=function(e){return fr(e)===Pg};wt.isFragment=function(e){return fr(e)===zg};wt.isLazy=function(e){return fr(e)===Wg};wt.isMemo=function(e){return fr(e)===Ug};wt.isPortal=function(e){return fr(e)===I1};wt.isProfiler=function(e){return fr(e)===Ig};wt.isStrictMode=function(e){return fr(e)===Rg};wt.isSuspense=function(e){return fr(e)===Bg};wt.isSuspenseList=function(e){return fr(e)===Hg};wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zg||e===Ig||e===Rg||e===Bg||e===Hg||e===XR||typeof e=="object"&&e!==null&&(e.$$typeof===Wg||e.$$typeof===Ug||e.$$typeof===Lg||e.$$typeof===Fg||e.$$typeof===Pg||e.$$typeof===C4||e.getModuleId!==void 0)};wt.typeOf=fr;function $4(e){const{variants:t,...n}=e,o={variants:t,style:o2(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=o2(r.style))}),o}const JR=jg();function mv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function YR(e){return e?(t,n)=>n[e]:null}function KR(e,t,n){e.theme=QR(e.theme)?n:e.theme[t]||e.theme}function wf(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>wf(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...a}=n;o=a}return k4(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function k4(e,t,n=[]){var r;let o;e:for(let a=0;a{Uz(i,$=>$.filter(k=>k!==Fs));const{name:d,slot:u,skipVariantsResolver:c,skipSx:h,overridesResolver:f=YR(t8(u)),...g}=l,v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=h||!1;let _=mv;u==="Root"||u==="root"?_=o:u?_=r:e8(i)&&(_=void 0);const b=v4(i,{shouldForwardProp:_,label:ZR(),...g}),y=$=>{if(typeof $=="function"&&$.__emotion_real!==$)return function(T){return wf(T,$)};if(Jr($)){const k=$4($);return k.variants?function(O){return wf(O,k)}:k.style}return $},w=(...$)=>{const k=[],T=$.map(y),O=[];if(k.push(a),d&&f&&O.push(function(R){var M,P;const j=(P=(M=R.theme.components)==null?void 0:M[d])==null?void 0:P.styleOverrides;if(!j)return null;const N={};for(const H in j)N[H]=wf(R,j[H]);return f(R,N)}),d&&!v&&O.push(function(R){var N,M;const I=R.theme,j=(M=(N=I==null?void 0:I.components)==null?void 0:N[d])==null?void 0:M.variants;return j?k4(R,j):null}),S||O.push(Fs),Array.isArray(T[0])){const A=T.shift(),R=new Array(k.length).fill(""),I=new Array(O.length).fill("");let j;j=[...R,...A,...I],j.raw=[...R,...A.raw,...I],k.unshift(j)}const D=[...k,...T,...O],x=b(...D);return i.muiName&&(x.muiName=i.muiName),x};return b.withConfig&&(w.withConfig=b.withConfig),w}}function ZR(e,t){return void 0}function QR(e){for(const t in e)return!1;return!0}function e8(e){return typeof e=="string"&&e.charCodeAt(0)>96}function t8(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const n8=E4();function ep(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const a=e[r],s=t[r];if(!s)n[r]=a||{};else if(!a)n[r]=s;else{n[r]={...s};for(const i in a)if(Object.prototype.hasOwnProperty.call(a,i)){const l=i;n[r][l]=ep(a[l],s[l])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function T4(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:ep(t.components[n].defaultProps,o)}function o8({props:e,name:t,defaultTheme:n,themeId:o}){let r=Np(n);return o&&(r=r[o]||r),T4({theme:r,name:t,props:e})}const Io=typeof window<"u"?C.useLayoutEffect:C.useEffect;function r8(e,t,n,o,r){const[a,s]=C.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Io(()=>{if(!n)return;const i=n(e),l=()=>{s(i.matches)};return l(),i.addEventListener("change",l),()=>{i.removeEventListener("change",l)}},[e,n]),a}const a8={...Df},O4=a8.useSyncExternalStore;function s8(e,t,n,o,r){const a=C.useCallback(()=>t,[t]),s=C.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:u}=o(e);return()=>u}return a},[a,e,o,r,n]),[i,l]=C.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,c=>(u.addEventListener("change",c),()=>{u.removeEventListener("change",c)})]},[a,n,e]);return O4(l,i,s)}function i8(e={}){const{themeId:t}=e;return function(o,r={}){let a=j1();a&&t&&(a=a[t]||a);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:u=!1}=T4({name:"MuiUseMediaQuery",props:r,theme:a});let c=typeof o=="function"?o(a):o;return c=c.replace(/^@media( ?)/m,""),(O4!==void 0?s8:r8)(c,i,l,d,u)}}function l8(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function L1(e,t=0,n=1){return l8(e,t,n)}function c8(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Ps(e){if(e.type)return e;if(e.charAt(0)==="#")return Ps(c8(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ua(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(Ua(10,r))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:n,values:o,colorSpace:r}}const d8=e=>{const t=Ps(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Kd=(e,t)=>{try{return d8(e)}catch{return e}};function Vg(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,a)=>a<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function D4(e){e=Ps(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,a=o*Math.min(r,1-r),s=(d,u=(d+n/30)%12)=>r-a*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(i+="a",l.push(t[3])),Vg({type:i,values:l})}function sb(e){e=Ps(e);let t=e.type==="hsl"||e.type==="hsla"?Ps(D4(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u8(e,t){const n=sb(e),o=sb(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Fe(e,t){return e=Ps(e),t=L1(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Vg(e)}function _h(e,t,n){try{return Fe(e,t)}catch{return e}}function od(e,t){if(e=Ps(e),t=L1(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Vg(e)}function xt(e,t,n){try{return od(e,t)}catch{return e}}function rd(e,t){if(e=Ps(e),t=L1(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Vg(e)}function Ct(e,t,n){try{return rd(e,t)}catch{return e}}function lm(e,t=.15){return sb(e)>.5?od(e,t):rd(e,t)}function vh(e,t,n){try{return lm(e,t)}catch{return e}}function ib(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Gg(e,t=166){let n;function o(...r){const a=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(a,t)}return o.clear=()=>{clearTimeout(n)},o}function $u(e,t){var n,o,r;return C.isValidElement(e)&&t.indexOf(e.type.muiName??((r=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:r.muiName))!==-1}function In(e){return e&&e.ownerDocument||document}function Dr(e){return In(e).defaultView||window}function lb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let i2=0;function p8(e){const[t,n]=C.useState(e),o=e||t;return C.useEffect(()=>{t==null&&(i2+=1,n(`mui-${i2}`))},[t]),o}const h8={...Df},l2=h8.useId;function qg(e){if(l2!==void 0){const t=l2();return e??t}return p8(e)}function cm({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=C.useRef(e!==void 0),[a,s]=C.useState(t),i=r?e:a,l=C.useCallback(d=>{r||s(d)},[]);return[i,l]}function fo(e){const t=C.useRef(e);return Io(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function Kt(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{lb(n,t)})},e)}const c2={};function A4(e,t){const n=C.useRef(c2);return n.current===c2&&(n.current=e(t)),n}const f8=[];function m8(e){C.useEffect(e,f8)}class Xg{constructor(){F(this,"currentId",null);F(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});F(this,"disposeEffect",()=>this.clear)}static create(){return new Xg}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function gi(){const e=A4(Xg.create).current;return m8(e.disposeEffect),e}function dm(e){try{return e.matches(":focus-visible")}catch{}return!1}function M4(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const N4=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function ce(e,t,n=void 0){const o={};for(const r in e){const a=e[r];let s="",i=!0;for(let l=0;lo.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function d2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function z4(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:a}=e;if(!t){const f=Y(n==null?void 0:n.className,a,r==null?void 0:r.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},v={...n,...r,...o};return f.length>0&&(v.className=f),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const s=um({...r,...o}),i=d2(o),l=d2(r),d=t(s),u=Y(d==null?void 0:d.className,n==null?void 0:n.className,a,r==null?void 0:r.className,o==null?void 0:o.className),c={...d==null?void 0:d.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},h={...d,...n,...l,...i};return u.length>0&&(h.className=u),Object.keys(c).length>0&&(h.style=c),{props:h,internalRef:d.ref}}function R4(e,t,n){return typeof e=="function"?e(t,n):e}function Ar(e){var c;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...a}=e,s=r?{}:R4(n,o),{props:i,internalRef:l}=z4({...a,externalSlotProps:s}),d=Kt(l,s==null?void 0:s.ref,(c=e.additionalProps)==null?void 0:c.ref);return j4(t,{...i,ref:d},o)}function Xi(e){var t;return parseInt(C.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const I4=C.createContext(null);function F1(){return C.useContext(I4)}const _8=typeof Symbol=="function"&&Symbol.for,v8=_8?Symbol.for("mui.nested"):"__THEME_NESTED__";function y8(e,t){return typeof t=="function"?t(e):{...e,...t}}function b8(e){const{children:t,theme:n}=e,o=F1(),r=C.useMemo(()=>{const a=o===null?{...n}:y8(o,n);return a!=null&&(a[v8]=o!==null),a},[n,o]);return m.jsx(I4.Provider,{value:r,children:t})}const L4=C.createContext();function w8({value:e,...t}){return m.jsx(L4.Provider,{value:e??!0,...t})}const ad=()=>C.useContext(L4)??!1,F4=C.createContext(void 0);function S8({value:e,children:t}){return m.jsx(F4.Provider,{value:e,children:t})}function x8(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?ep(r.defaultProps,o):!r.styleOverrides&&!r.variants?ep(r,o):o}function C8({props:e,name:t}){const n=C.useContext(F4);return x8({props:e,name:t,theme:{components:n}})}const u2={};function p2(e,t,n,o=!1){return C.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const a=n(r),s=e?{...t,[e]:a}:a;return o?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,o])}function P4(e){const{children:t,theme:n,themeId:o}=e,r=j1(u2),a=F1()||u2,s=p2(o,r,n),i=p2(o,a,n,!0),l=(o?s[o]:s).direction==="rtl";return m.jsx(b8,{theme:i,children:m.jsx(kg.Provider,{value:s,children:m.jsx(w8,{value:l,children:m.jsx(S8,{value:o?s[o].components:s.components,children:t})})})})}const h2={theme:void 0};function $8(e){let t,n;return function(r){let a=t;return(a===void 0||r.theme!==n)&&(h2.theme=r.theme,a=$4(e(h2)),t=a,n=r.theme),a}}const P1="mode",B1="color-scheme",k8="data-color-scheme";function E8(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:o="dark",modeStorageKey:r=P1,colorSchemeStorageKey:a=B1,attribute:s=k8,colorSchemeNode:i="document.documentElement",nonce:l}=e||{};let d="",u=s;if(s==="class"&&(u=".%s"),s==="data"&&(u="[data-%s]"),u.startsWith(".")){const h=u.substring(1);d+=`${i}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark)); + */var I1=Symbol.for("react.element"),L1=Symbol.for("react.portal"),zg=Symbol.for("react.fragment"),Rg=Symbol.for("react.strict_mode"),Ig=Symbol.for("react.profiler"),Lg=Symbol.for("react.provider"),Fg=Symbol.for("react.context"),XR=Symbol.for("react.server_context"),Pg=Symbol.for("react.forward_ref"),Bg=Symbol.for("react.suspense"),Hg=Symbol.for("react.suspense_list"),Ug=Symbol.for("react.memo"),Wg=Symbol.for("react.lazy"),JR=Symbol.for("react.offscreen"),k4;k4=Symbol.for("react.module.reference");function fr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case I1:switch(e=e.type,e){case zg:case Ig:case Rg:case Bg:case Hg:return e;default:switch(e=e&&e.$$typeof,e){case XR:case Fg:case Pg:case Wg:case Ug:case Lg:return e;default:return t}}case L1:return t}}}wt.ContextConsumer=Fg;wt.ContextProvider=Lg;wt.Element=I1;wt.ForwardRef=Pg;wt.Fragment=zg;wt.Lazy=Wg;wt.Memo=Ug;wt.Portal=L1;wt.Profiler=Ig;wt.StrictMode=Rg;wt.Suspense=Bg;wt.SuspenseList=Hg;wt.isAsyncMode=function(){return!1};wt.isConcurrentMode=function(){return!1};wt.isContextConsumer=function(e){return fr(e)===Fg};wt.isContextProvider=function(e){return fr(e)===Lg};wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===I1};wt.isForwardRef=function(e){return fr(e)===Pg};wt.isFragment=function(e){return fr(e)===zg};wt.isLazy=function(e){return fr(e)===Wg};wt.isMemo=function(e){return fr(e)===Ug};wt.isPortal=function(e){return fr(e)===L1};wt.isProfiler=function(e){return fr(e)===Ig};wt.isStrictMode=function(e){return fr(e)===Rg};wt.isSuspense=function(e){return fr(e)===Bg};wt.isSuspenseList=function(e){return fr(e)===Hg};wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zg||e===Ig||e===Rg||e===Bg||e===Hg||e===JR||typeof e=="object"&&e!==null&&(e.$$typeof===Wg||e.$$typeof===Ug||e.$$typeof===Lg||e.$$typeof===Fg||e.$$typeof===Pg||e.$$typeof===k4||e.getModuleId!==void 0)};wt.typeOf=fr;function E4(e){const{variants:t,...n}=e,o={variants:t,style:r2(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=r2(r.style))}),o}const YR=jg();function mv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function KR(e){return e?(t,n)=>n[e]:null}function ZR(e,t,n){e.theme=e8(e.theme)?n:e.theme[t]||e.theme}function wf(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>wf(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...a}=n;o=a}return T4(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function T4(e,t,n=[]){var r;let o;e:for(let a=0;a{Wz(i,$=>$.filter(k=>k!==Fs));const{name:d,slot:u,skipVariantsResolver:c,skipSx:h,overridesResolver:f=KR(n8(u)),...g}=l,v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=h||!1;let _=mv;u==="Root"||u==="root"?_=o:u?_=r:t8(i)&&(_=void 0);const b=b4(i,{shouldForwardProp:_,label:QR(),...g}),y=$=>{if(typeof $=="function"&&$.__emotion_real!==$)return function(T){return wf(T,$)};if(Jr($)){const k=E4($);return k.variants?function(O){return wf(O,k)}:k.style}return $},w=(...$)=>{const k=[],T=$.map(y),O=[];if(k.push(a),d&&f&&O.push(function(R){var M,P;const j=(P=(M=R.theme.components)==null?void 0:M[d])==null?void 0:P.styleOverrides;if(!j)return null;const N={};for(const H in j)N[H]=wf(R,j[H]);return f(R,N)}),d&&!v&&O.push(function(R){var N,M;const I=R.theme,j=(M=(N=I==null?void 0:I.components)==null?void 0:N[d])==null?void 0:M.variants;return j?T4(R,j):null}),S||O.push(Fs),Array.isArray(T[0])){const A=T.shift(),R=new Array(k.length).fill(""),I=new Array(O.length).fill("");let j;j=[...R,...A,...I],j.raw=[...R,...A.raw,...I],k.unshift(j)}const D=[...k,...T,...O],x=b(...D);return i.muiName&&(x.muiName=i.muiName),x};return b.withConfig&&(w.withConfig=b.withConfig),w}}function QR(e,t){return void 0}function e8(e){for(const t in e)return!1;return!0}function t8(e){return typeof e=="string"&&e.charCodeAt(0)>96}function n8(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const o8=O4();function ep(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const a=e[r],s=t[r];if(!s)n[r]=a||{};else if(!a)n[r]=s;else{n[r]={...s};for(const i in a)if(Object.prototype.hasOwnProperty.call(a,i)){const l=i;n[r][l]=ep(a[l],s[l])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function D4(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:ep(t.components[n].defaultProps,o)}function r8({props:e,name:t,defaultTheme:n,themeId:o}){let r=Np(n);return o&&(r=r[o]||r),D4({theme:r,name:t,props:e})}const Io=typeof window<"u"?C.useLayoutEffect:C.useEffect;function a8(e,t,n,o,r){const[a,s]=C.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Io(()=>{if(!n)return;const i=n(e),l=()=>{s(i.matches)};return l(),i.addEventListener("change",l),()=>{i.removeEventListener("change",l)}},[e,n]),a}const s8={...Df},A4=s8.useSyncExternalStore;function i8(e,t,n,o,r){const a=C.useCallback(()=>t,[t]),s=C.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:u}=o(e);return()=>u}return a},[a,e,o,r,n]),[i,l]=C.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,c=>(u.addEventListener("change",c),()=>{u.removeEventListener("change",c)})]},[a,n,e]);return A4(l,i,s)}function l8(e={}){const{themeId:t}=e;return function(o,r={}){let a=z1();a&&t&&(a=a[t]||a);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:u=!1}=D4({name:"MuiUseMediaQuery",props:r,theme:a});let c=typeof o=="function"?o(a):o;return c=c.replace(/^@media( ?)/m,""),(A4!==void 0?i8:a8)(c,i,l,d,u)}}function c8(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function F1(e,t=0,n=1){return c8(e,t,n)}function d8(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Ps(e){if(e.type)return e;if(e.charAt(0)==="#")return Ps(d8(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ua(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(Ua(10,r))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:n,values:o,colorSpace:r}}const u8=e=>{const t=Ps(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Kd=(e,t)=>{try{return u8(e)}catch{return e}};function Vg(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,a)=>a<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function M4(e){e=Ps(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,a=o*Math.min(r,1-r),s=(d,u=(d+n/30)%12)=>r-a*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(i+="a",l.push(t[3])),Vg({type:i,values:l})}function ib(e){e=Ps(e);let t=e.type==="hsl"||e.type==="hsla"?Ps(M4(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p8(e,t){const n=ib(e),o=ib(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Fe(e,t){return e=Ps(e),t=F1(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Vg(e)}function _h(e,t,n){try{return Fe(e,t)}catch{return e}}function od(e,t){if(e=Ps(e),t=F1(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Vg(e)}function xt(e,t,n){try{return od(e,t)}catch{return e}}function rd(e,t){if(e=Ps(e),t=F1(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Vg(e)}function Ct(e,t,n){try{return rd(e,t)}catch{return e}}function lm(e,t=.15){return ib(e)>.5?od(e,t):rd(e,t)}function vh(e,t,n){try{return lm(e,t)}catch{return e}}function lb(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Gg(e,t=166){let n;function o(...r){const a=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(a,t)}return o.clear=()=>{clearTimeout(n)},o}function $u(e,t){var n,o,r;return C.isValidElement(e)&&t.indexOf(e.type.muiName??((r=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:r.muiName))!==-1}function In(e){return e&&e.ownerDocument||document}function Dr(e){return In(e).defaultView||window}function cb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let l2=0;function h8(e){const[t,n]=C.useState(e),o=e||t;return C.useEffect(()=>{t==null&&(l2+=1,n(`mui-${l2}`))},[t]),o}const f8={...Df},c2=f8.useId;function qg(e){if(c2!==void 0){const t=c2();return e??t}return h8(e)}function cm({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=C.useRef(e!==void 0),[a,s]=C.useState(t),i=r?e:a,l=C.useCallback(d=>{r||s(d)},[]);return[i,l]}function fo(e){const t=C.useRef(e);return Io(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function Kt(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{cb(n,t)})},e)}const d2={};function N4(e,t){const n=C.useRef(d2);return n.current===d2&&(n.current=e(t)),n}const m8=[];function g8(e){C.useEffect(e,m8)}class Xg{constructor(){F(this,"currentId",null);F(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});F(this,"disposeEffect",()=>this.clear)}static create(){return new Xg}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function gi(){const e=N4(Xg.create).current;return g8(e.disposeEffect),e}function dm(e){try{return e.matches(":focus-visible")}catch{}return!1}function j4(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const z4=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function ce(e,t,n=void 0){const o={};for(const r in e){const a=e[r];let s="",i=!0;for(let l=0;lo.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function u2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function I4(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:a}=e;if(!t){const f=Y(n==null?void 0:n.className,a,r==null?void 0:r.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},v={...n,...r,...o};return f.length>0&&(v.className=f),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const s=um({...r,...o}),i=u2(o),l=u2(r),d=t(s),u=Y(d==null?void 0:d.className,n==null?void 0:n.className,a,r==null?void 0:r.className,o==null?void 0:o.className),c={...d==null?void 0:d.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},h={...d,...n,...l,...i};return u.length>0&&(h.className=u),Object.keys(c).length>0&&(h.style=c),{props:h,internalRef:d.ref}}function L4(e,t,n){return typeof e=="function"?e(t,n):e}function Ar(e){var c;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...a}=e,s=r?{}:L4(n,o),{props:i,internalRef:l}=I4({...a,externalSlotProps:s}),d=Kt(l,s==null?void 0:s.ref,(c=e.additionalProps)==null?void 0:c.ref);return R4(t,{...i,ref:d},o)}function Xi(e){var t;return parseInt(C.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const F4=C.createContext(null);function P1(){return C.useContext(F4)}const v8=typeof Symbol=="function"&&Symbol.for,y8=v8?Symbol.for("mui.nested"):"__THEME_NESTED__";function b8(e,t){return typeof t=="function"?t(e):{...e,...t}}function w8(e){const{children:t,theme:n}=e,o=P1(),r=C.useMemo(()=>{const a=o===null?{...n}:b8(o,n);return a!=null&&(a[y8]=o!==null),a},[n,o]);return m.jsx(F4.Provider,{value:r,children:t})}const P4=C.createContext();function S8({value:e,...t}){return m.jsx(P4.Provider,{value:e??!0,...t})}const ad=()=>C.useContext(P4)??!1,B4=C.createContext(void 0);function x8({value:e,children:t}){return m.jsx(B4.Provider,{value:e,children:t})}function C8(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?ep(r.defaultProps,o):!r.styleOverrides&&!r.variants?ep(r,o):o}function $8({props:e,name:t}){const n=C.useContext(B4);return C8({props:e,name:t,theme:{components:n}})}const p2={};function h2(e,t,n,o=!1){return C.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const a=n(r),s=e?{...t,[e]:a}:a;return o?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,o])}function H4(e){const{children:t,theme:n,themeId:o}=e,r=z1(p2),a=P1()||p2,s=h2(o,r,n),i=h2(o,a,n,!0),l=(o?s[o]:s).direction==="rtl";return m.jsx(w8,{theme:i,children:m.jsx(kg.Provider,{value:s,children:m.jsx(S8,{value:l,children:m.jsx(x8,{value:o?s[o].components:s.components,children:t})})})})}const f2={theme:void 0};function k8(e){let t,n;return function(r){let a=t;return(a===void 0||r.theme!==n)&&(f2.theme=r.theme,a=E4(e(f2)),t=a,n=r.theme),a}}const B1="mode",H1="color-scheme",E8="data-color-scheme";function T8(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:o="dark",modeStorageKey:r=B1,colorSchemeStorageKey:a=H1,attribute:s=E8,colorSchemeNode:i="document.documentElement",nonce:l}=e||{};let d="",u=s;if(s==="class"&&(u=".%s"),s==="data"&&(u="[data-%s]"),u.startsWith(".")){const h=u.substring(1);d+=`${i}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark)); ${i}.classList.add('${h}'.replace('%s', colorScheme));`}const c=u.match(/\[([^\]]+)\]/);if(c){const[h,f]=c[1].split("=");f||(d+=`${i}.removeAttribute('${h}'.replace('%s', light)); ${i}.removeAttribute('${h}'.replace('%s', dark));`),d+=` ${i}.setAttribute('${h}'.replace('%s', colorScheme), ${f?`${f}.replace('%s', colorScheme)`:'""'});`}else d+=`${i}.setAttribute('${u}', colorScheme);`;return m.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { @@ -94,15 +94,15 @@ try { if (colorScheme) { ${d} } -} catch(e){}})();`}},"mui-color-scheme-init")}function f2(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function B4(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function T8(e){return B4(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function gv(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function O8(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:o,supportedColorSchemes:r=[],modeStorageKey:a=P1,colorSchemeStorageKey:s=B1,storageWindow:i=typeof window>"u"?void 0:window,noSsr:l=!1}=e,d=r.join(","),u=r.length>1,[c,h]=C.useState(()=>{const w=gv(a,t),$=gv(`${s}-light`,n),k=gv(`${s}-dark`,o);return{mode:w,systemMode:f2(w),lightColorScheme:$,darkColorScheme:k}}),[f,g]=C.useState(l||!u);C.useEffect(()=>{g(!0)},[]);const v=T8(c),S=C.useCallback(w=>{h($=>{if(w===$.mode)return $;const k=w??t;try{localStorage.setItem(a,k)}catch{}return{...$,mode:k,systemMode:f2(k)}})},[a,t]),_=C.useCallback(w=>{w?typeof w=="string"?w&&!d.includes(w)?console.error(`\`${w}\` does not exist in \`theme.colorSchemes\`.`):h($=>{const k={...$};return B4($,T=>{try{localStorage.setItem(`${s}-${T}`,w)}catch{}T==="light"&&(k.lightColorScheme=w),T==="dark"&&(k.darkColorScheme=w)}),k}):h($=>{const k={...$},T=w.light===null?n:w.light,O=w.dark===null?o:w.dark;if(T)if(!d.includes(T))console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=T;try{localStorage.setItem(`${s}-light`,T)}catch{}}if(O)if(!d.includes(O))console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=O;try{localStorage.setItem(`${s}-dark`,O)}catch{}}return k}):h($=>{try{localStorage.setItem(`${s}-light`,n),localStorage.setItem(`${s}-dark`,o)}catch{}return{...$,lightColorScheme:n,darkColorScheme:o}})},[d,s,n,o]),b=C.useCallback(w=>{c.mode==="system"&&h($=>{const k=w!=null&&w.matches?"dark":"light";return $.systemMode===k?$:{...$,systemMode:k}})},[c.mode]),y=C.useRef(b);return y.current=b,C.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const w=(...k)=>y.current(...k),$=window.matchMedia("(prefers-color-scheme: dark)");return $.addListener(w),w($),()=>{$.removeListener(w)}},[u]),C.useEffect(()=>{if(i&&u){const w=$=>{const k=$.newValue;typeof $.key=="string"&&$.key.startsWith(s)&&(!k||d.match(k))&&($.key.endsWith("light")&&_({light:k}),$.key.endsWith("dark")&&_({dark:k})),$.key===a&&(!k||["light","dark","system"].includes(k))&&S(k||t)};return i.addEventListener("storage",w),()=>{i.removeEventListener("storage",w)}}},[_,S,a,s,d,t,i,u]),{...c,mode:f?c.mode:void 0,systemMode:f?c.systemMode:void 0,colorScheme:f?v:void 0,setMode:S,setColorScheme:_}}const D8="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function A8(e){const{themeId:t,theme:n={},modeStorageKey:o=P1,colorSchemeStorageKey:r=B1,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:i}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=C.createContext(void 0),u=()=>C.useContext(d)||l,c={},h={};function f(_){var nn,K,ge,Ke;const{children:b,theme:y,modeStorageKey:w=o,colorSchemeStorageKey:$=r,disableTransitionOnChange:k=a,storageWindow:T=typeof window>"u"?void 0:window,documentNode:O=typeof document>"u"?void 0:document,colorSchemeNode:D=typeof document>"u"?void 0:document.documentElement,disableNestedContext:x=!1,disableStyleSheetGeneration:A=!1,defaultMode:R="system",noSsr:I}=_,j=C.useRef(!1),N=F1(),M=C.useContext(d),P=!!M&&!x,H=C.useMemo(()=>y||(typeof n=="function"?n():n),[y]),B=H[t],Z=B||H,{colorSchemes:oe=c,components:ve=h,cssVarPrefix:fe}=Z,le=Object.keys(oe).filter(Te=>!!oe[Te]).join(","),Se=C.useMemo(()=>le.split(","),[le]),De=typeof s=="string"?s:s.light,et=typeof s=="string"?s:s.dark,Ge=oe[De]&&oe[et]?R:((K=(nn=oe[Z.defaultColorScheme])==null?void 0:nn.palette)==null?void 0:K.mode)||((ge=Z.palette)==null?void 0:ge.mode),{mode:qe,setMode:xe,systemMode:Ee,lightColorScheme:me,darkColorScheme:ot,colorScheme:Ce,setColorScheme:ze}=O8({supportedColorSchemes:Se,defaultLightColorScheme:De,defaultDarkColorScheme:et,modeStorageKey:w,colorSchemeStorageKey:$,defaultMode:Ge,storageWindow:T,noSsr:I});let X=qe,ee=Ce;P&&(X=M.mode,ee=M.colorScheme);const $e=C.useMemo(()=>{var zt;const Te=ee||Z.defaultColorScheme,Ie=((zt=Z.generateThemeVars)==null?void 0:zt.call(Z))||Z.vars,Ue={...Z,components:ve,colorSchemes:oe,cssVarPrefix:fe,vars:Ie};if(typeof Ue.generateSpacing=="function"&&(Ue.spacing=Ue.generateSpacing()),Te){const we=oe[Te];we&&typeof we=="object"&&Object.keys(we).forEach(St=>{we[St]&&typeof we[St]=="object"?Ue[St]={...Ue[St],...we[St]}:Ue[St]=we[St]})}return i?i(Ue):Ue},[Z,ee,ve,oe,fe]),Ae=Z.colorSchemeSelector;C.useEffect(()=>{if(ee&&D&&Ae&&Ae!=="media"){const Te=Ae;let Ie=Ae;if(Te==="class"&&(Ie=".%s"),Te==="data"&&(Ie="[data-%s]"),Te!=null&&Te.startsWith("data-")&&!Te.includes("%s")&&(Ie=`[${Te}="%s"]`),Ie.startsWith("."))D.classList.remove(...Se.map(Ue=>Ie.substring(1).replace("%s",Ue))),D.classList.add(Ie.substring(1).replace("%s",ee));else{const Ue=Ie.replace("%s",ee).match(/\[([^\]]+)\]/);if(Ue){const[zt,we]=Ue[1].split("=");we||Se.forEach(St=>{D.removeAttribute(zt.replace(ee,St))}),D.setAttribute(zt,we?we.replace(/"|'/g,""):"")}else D.setAttribute(Ie,ee)}}},[ee,Ae,D,Se]),C.useEffect(()=>{let Te;if(k&&j.current&&O){const Ie=O.createElement("style");Ie.appendChild(O.createTextNode(D8)),O.head.appendChild(Ie),window.getComputedStyle(O.body),Te=setTimeout(()=>{O.head.removeChild(Ie)},1)}return()=>{clearTimeout(Te)}},[ee,k,O]),C.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const Xe=C.useMemo(()=>({allColorSchemes:Se,colorScheme:ee,darkColorScheme:ot,lightColorScheme:me,mode:X,setColorScheme:ze,setMode:xe,systemMode:Ee}),[Se,ee,ot,me,X,ze,xe,Ee,$e.colorSchemeSelector]);let Be=!0;(A||Z.cssVariables===!1||P&&(N==null?void 0:N.cssVarPrefix)===fe)&&(Be=!1);const _e=m.jsxs(C.Fragment,{children:[m.jsx(P4,{themeId:B?t:void 0,theme:$e,children:b}),Be&&m.jsx(_4,{styles:((Ke=$e.generateStyleSheets)==null?void 0:Ke.call($e))||[]})]});return P?_e:m.jsx(d.Provider,{value:Xe,children:_e})}const g=typeof s=="string"?s:s.light,v=typeof s=="string"?s:s.dark;return{CssVarsProvider:f,useColorScheme:u,getInitColorSchemeScript:_=>E8({colorSchemeStorageKey:r,defaultLightColorScheme:g,defaultDarkColorScheme:v,modeStorageKey:o,..._})}}function M8(e=""){function t(...o){if(!o.length)return"";const r=o[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${r}${t(...o.slice(1))})`:`, ${r}`}return(o,...r)=>`var(--${e?`${e}-`:""}${o}${t(...r)})`}const m2=(e,t,n,o=[])=>{let r=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(r)?r[Number(a)]=n:r&&typeof r=="object"&&(r[a]=n):r&&typeof r=="object"&&(r[a]||(r[a]=o.includes(a)?[]:{}),r=r[a])})},N8=(e,t,n)=>{function o(r,a=[],s=[]){Object.entries(r).forEach(([i,l])=>{(!n||n&&!n([...a,i]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?o(l,[...a,i],Array.isArray(l)?[...s,i]:s):t([...a,i],l,s))})}o(e)},j8=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function _v(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},a={},s={};return N8(e,(i,l,d)=>{if((typeof l=="string"||typeof l=="number")&&(!o||!o(i,l))){const u=`--${n?`${n}-`:""}${i.join("-")}`,c=j8(i,l);Object.assign(r,{[u]:c}),m2(a,i,`var(${u})`,d),m2(s,i,`var(${u}, ${c})`,d)}},i=>i[0]==="vars"),{css:r,vars:a,varsWithDefaults:s}}function z8(e,t={}){const{getSelector:n=S,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:a={},components:s,defaultColorScheme:i="light",...l}=e,{vars:d,css:u,varsWithDefaults:c}=_v(l,t);let h=c;const f={},{[i]:g,...v}=a;if(Object.entries(v||{}).forEach(([y,w])=>{const{vars:$,css:k,varsWithDefaults:T}=_v(w,t);h=Gn(h,T),f[y]={css:k,vars:$}}),g){const{css:y,vars:w,varsWithDefaults:$}=_v(g,t);h=Gn(h,$),f[i]={css:y,vars:w}}function S(y,w){var k,T;let $=r;if(r==="class"&&($=".%s"),r==="data"&&($="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&($=`[${r}="%s"]`),y){if($==="media")return e.defaultColorScheme===y?":root":{[`@media (prefers-color-scheme: ${((T=(k=a[y])==null?void 0:k.palette)==null?void 0:T.mode)||y})`]:{":root":w}};if($)return e.defaultColorScheme===y?`:root, ${$.replace("%s",String(y))}`:$.replace("%s",String(y))}return":root"}return{vars:h,generateThemeVars:()=>{let y={...d};return Object.entries(f).forEach(([,{vars:w}])=>{y=Gn(y,w)}),y},generateStyleSheets:()=>{var O,D;const y=[],w=e.defaultColorScheme||"light";function $(x,A){Object.keys(A).length&&y.push(typeof x=="string"?{[x]:{...A}}:x)}$(n(void 0,{...u}),u);const{[w]:k,...T}=f;if(k){const{css:x}=k,A=(D=(O=a[w])==null?void 0:O.palette)==null?void 0:D.mode,R=!o&&A?{colorScheme:A,...x}:{...x};$(n(w,{...R}),R)}return Object.entries(T).forEach(([x,{css:A}])=>{var j,N;const R=(N=(j=a[x])==null?void 0:j.palette)==null?void 0:N.mode,I=!o&&R?{colorScheme:R,...A}:{...A};$(n(x,{...I}),I)}),y}}}function R8(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const I8=(e,t)=>e.filter(n=>t.includes(n)),sd=(e,t,n)=>{const o=e.keys[0];Array.isArray(t)?t.forEach((r,a)=>{n((s,i)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,i):s[e.up(e.keys[a])]=i)},r)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:I8(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((i,l)=>{o===a?Object.assign(i,l):i[e.up(a)]=l},s)}}):(typeof t=="number"||typeof t=="string")&&n((r,a)=>{Object.assign(r,a)},t)};function pm(e){return`--Grid-${e}Spacing`}function Jg(e){return`--Grid-parent-${e}Spacing`}const g2="--Grid-columns",_c="--Grid-parent-columns",L8=({theme:e,ownerState:t})=>{const n={};return sd(e.breakpoints,t.size,(o,r)=>{let a={};r==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),r==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof r=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(${_c}) - (var(${_c}) - ${r}) * (var(${Jg("column")}) / var(${_c})))`}),o(n,a)}),n},F8=({theme:e,ownerState:t})=>{const n={};return sd(e.breakpoints,t.offset,(o,r)=>{let a={};r==="auto"&&(a={marginLeft:"auto"}),typeof r=="number"&&(a={marginLeft:r===0?"0px":`calc(100% * ${r} / var(${_c}) + var(${Jg("column")}) * ${r} / var(${_c}))`}),o(n,a)}),n},P8=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[g2]:12};return sd(e.breakpoints,t.columns,(o,r)=>{const a=r??12;o(n,{[g2]:a,"> *":{[_c]:a}})}),n},B8=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sd(e.breakpoints,t.rowSpacing,(o,r)=>{var s;const a=typeof r=="string"?r:(s=e.spacing)==null?void 0:s.call(e,r);o(n,{[pm("row")]:a,"> *":{[Jg("row")]:a}})}),n},H8=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sd(e.breakpoints,t.columnSpacing,(o,r)=>{var s;const a=typeof r=="string"?r:(s=e.spacing)==null?void 0:s.call(e,r);o(n,{[pm("column")]:a,"> *":{[Jg("column")]:a}})}),n},U8=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sd(e.breakpoints,t.direction,(o,r)=>{o(n,{flexDirection:r})}),n},W8=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${pm("row")}) var(${pm("column")})`}}),V8=e=>{const t=[];return Object.entries(e).forEach(([n,o])=>{o!==!1&&o!==void 0&&t.push(`grid-${n}-${String(o)}`)}),t},G8=(e,t="xs")=>{function n(o){return o===void 0?!1:typeof o=="string"&&!Number.isNaN(Number(o))||typeof o=="number"&&o>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const o=[];return Object.entries(e).forEach(([r,a])=>{n(a)&&o.push(`spacing-${r}-${String(a)}`)}),o}return[]},q8=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],X8=jg(),J8=n8("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Y8(e){return o8({props:e,name:"MuiGrid",defaultTheme:X8})}function K8(e={}){const{createStyledComponent:t=J8,useThemeProps:n=Y8,useTheme:o=Np,componentName:r="MuiGrid"}=e,a=(d,u)=>{const{container:c,direction:h,spacing:f,wrap:g,size:v}=d,S={root:["root",c&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...q8(h),...V8(v),...c?G8(f,u.breakpoints.keys[0]):[]]};return ce(S,_=>ie(r,_),{})};function s(d,u,c=()=>!0){const h={};return d===null||(Array.isArray(d)?d.forEach((f,g)=>{f!==null&&c(f)&&u.keys[g]&&(h[u.keys[g]]=f)}):typeof d=="object"?Object.keys(d).forEach(f=>{const g=d[f];g!=null&&c(g)&&(h[f]=g)}):h[u.keys[0]]=d),h}const i=t(P8,H8,B8,L8,U8,W8,F8),l=C.forwardRef(function(u,c){const h=o(),f=n(u),g=z1(f),{className:v,children:S,columns:_=12,container:b=!1,component:y="div",direction:w="row",wrap:$="wrap",size:k={},offset:T={},spacing:O=0,rowSpacing:D=O,columnSpacing:x=O,unstable_level:A=0,...R}=g,I=s(k,h.breakpoints,oe=>oe!==!1),j=s(T,h.breakpoints),N=u.columns??(A?void 0:_),M=u.spacing??(A?void 0:O),P=u.rowSpacing??u.spacing??(A?void 0:D),H=u.columnSpacing??u.spacing??(A?void 0:x),B={...g,level:A,columns:N,container:b,direction:w,wrap:$,spacing:M,rowSpacing:P,columnSpacing:H,size:I,offset:j},Z=a(B,h);return m.jsx(i,{ref:c,as:y,ownerState:B,className:Y(Z.root,v),...R,children:C.Children.map(S,oe=>{var ve;return C.isValidElement(oe)&&$u(oe,["Grid"])&&b&&oe.props.container?C.cloneElement(oe,{unstable_level:((ve=oe.props)==null?void 0:ve.unstable_level)??A+1}):oe})})});return l.muiName="Grid",l}const tp={black:"#000",white:"#fff"},cb={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"},cl={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},dl={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Mn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ul={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},pl={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},hl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function H4(){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:tp.white,default:tp.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 Z8=H4();function U4(){return{text:{primary:tp.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:tp.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 _2=U4();function v2(e,t,n,o){const r=o.light||o,a=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=rd(e.main,r):t==="dark"&&(e.dark=od(e.main,a)))}function Q8(e="light"){return e==="dark"?{main:ul[200],light:ul[50],dark:ul[400]}:{main:ul[700],light:ul[400],dark:ul[800]}}function e9(e="light"){return e==="dark"?{main:cl[200],light:cl[50],dark:cl[400]}:{main:cl[500],light:cl[300],dark:cl[700]}}function t9(e="light"){return e==="dark"?{main:dl[500],light:dl[300],dark:dl[700]}:{main:dl[700],light:dl[400],dark:dl[800]}}function n9(e="light"){return e==="dark"?{main:pl[400],light:pl[300],dark:pl[700]}:{main:pl[700],light:pl[500],dark:pl[900]}}function o9(e="light"){return e==="dark"?{main:hl[400],light:hl[300],dark:hl[700]}:{main:hl[800],light:hl[500],dark:hl[900]}}function r9(e="light"){return e==="dark"?{main:Mn[400],light:Mn[300],dark:Mn[700]}:{main:"#ed6c02",light:Mn[500],dark:Mn[900]}}function H1(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,a=e.primary||Q8(t),s=e.secondary||e9(t),i=e.error||t9(t),l=e.info||n9(t),d=e.success||o9(t),u=e.warning||r9(t);function c(v){return u8(v,_2.text.primary)>=n?_2.text.primary:Z8.text.primary}const h=({color:v,name:S,mainShade:_=500,lightShade:b=300,darkShade:y=700})=>{if(v={...v},!v.main&&v[_]&&(v.main=v[_]),!v.hasOwnProperty("main"))throw new Error(Ua(11,S?` (${S})`:"",_));if(typeof v.main!="string")throw new Error(Ua(12,S?` (${S})`:"",JSON.stringify(v.main)));return v2(v,"light",b,o),v2(v,"dark",y,o),v.contrastText||(v.contrastText=c(v.main)),v};let f;return t==="light"?f=H4():t==="dark"&&(f=U4()),Gn({common:{...tp},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:i,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:d,name:"success"}),grey:cb,contrastThreshold:n,getContrastText:c,augmentColor:h,tonalOffset:o,...f},r)}function a9(e){const t={};return Object.entries(e).forEach(o=>{const[r,a]=o;typeof a=="object"&&(t[r]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function s9(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function i9(e){return Math.round(e*1e5)/1e5}const y2={textTransform:"uppercase"},b2='"Roboto", "Helvetica", "Arial", sans-serif';function W4(e,t){const{fontFamily:n=b2,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:i=700,htmlFontSize:l=16,allVariants:d,pxToRem:u,...c}=typeof t=="function"?t(e):t,h=o/14,f=u||(S=>`${S/l*h}rem`),g=(S,_,b,y,w)=>({fontFamily:n,fontWeight:S,fontSize:f(_),lineHeight:b,...n===b2?{letterSpacing:`${i9(y/_)}em`}:{},...w,...d}),v={h1:g(r,96,1.167,-1.5),h2:g(r,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,y2),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,y2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gn({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:i,...v},c,{clone:!1})}const l9=.2,c9=.14,d9=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${l9})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${c9})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${d9})`].join(",")}const u9=["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)],p9={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)"},h9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function w2(e){return`${Math.round(e)}ms`}function f9(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function m9(e){const t={...p9,...e.easing},n={...h9,...e.duration};return{getAutoHeightDuration:f9,create:(r=["all"],a={})=>{const{duration:s=n.standard,easing:i=t.easeInOut,delay:l=0,...d}=a;return(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof s=="string"?s:w2(s)} ${i} ${typeof l=="string"?l:w2(l)}`).join(",")},...e,easing:t,duration:n}}const g9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _9(e){return Jr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function V4(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let a=0;a{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function gv(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function D8(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:o,supportedColorSchemes:r=[],modeStorageKey:a=B1,colorSchemeStorageKey:s=H1,storageWindow:i=typeof window>"u"?void 0:window,noSsr:l=!1}=e,d=r.join(","),u=r.length>1,[c,h]=C.useState(()=>{const w=gv(a,t),$=gv(`${s}-light`,n),k=gv(`${s}-dark`,o);return{mode:w,systemMode:m2(w),lightColorScheme:$,darkColorScheme:k}}),[f,g]=C.useState(l||!u);C.useEffect(()=>{g(!0)},[]);const v=O8(c),S=C.useCallback(w=>{h($=>{if(w===$.mode)return $;const k=w??t;try{localStorage.setItem(a,k)}catch{}return{...$,mode:k,systemMode:m2(k)}})},[a,t]),_=C.useCallback(w=>{w?typeof w=="string"?w&&!d.includes(w)?console.error(`\`${w}\` does not exist in \`theme.colorSchemes\`.`):h($=>{const k={...$};return U4($,T=>{try{localStorage.setItem(`${s}-${T}`,w)}catch{}T==="light"&&(k.lightColorScheme=w),T==="dark"&&(k.darkColorScheme=w)}),k}):h($=>{const k={...$},T=w.light===null?n:w.light,O=w.dark===null?o:w.dark;if(T)if(!d.includes(T))console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=T;try{localStorage.setItem(`${s}-light`,T)}catch{}}if(O)if(!d.includes(O))console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=O;try{localStorage.setItem(`${s}-dark`,O)}catch{}}return k}):h($=>{try{localStorage.setItem(`${s}-light`,n),localStorage.setItem(`${s}-dark`,o)}catch{}return{...$,lightColorScheme:n,darkColorScheme:o}})},[d,s,n,o]),b=C.useCallback(w=>{c.mode==="system"&&h($=>{const k=w!=null&&w.matches?"dark":"light";return $.systemMode===k?$:{...$,systemMode:k}})},[c.mode]),y=C.useRef(b);return y.current=b,C.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const w=(...k)=>y.current(...k),$=window.matchMedia("(prefers-color-scheme: dark)");return $.addListener(w),w($),()=>{$.removeListener(w)}},[u]),C.useEffect(()=>{if(i&&u){const w=$=>{const k=$.newValue;typeof $.key=="string"&&$.key.startsWith(s)&&(!k||d.match(k))&&($.key.endsWith("light")&&_({light:k}),$.key.endsWith("dark")&&_({dark:k})),$.key===a&&(!k||["light","dark","system"].includes(k))&&S(k||t)};return i.addEventListener("storage",w),()=>{i.removeEventListener("storage",w)}}},[_,S,a,s,d,t,i,u]),{...c,mode:f?c.mode:void 0,systemMode:f?c.systemMode:void 0,colorScheme:f?v:void 0,setMode:S,setColorScheme:_}}const A8="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function M8(e){const{themeId:t,theme:n={},modeStorageKey:o=B1,colorSchemeStorageKey:r=H1,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:i}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=C.createContext(void 0),u=()=>C.useContext(d)||l,c={},h={};function f(_){var nn,K,ge,Ke;const{children:b,theme:y,modeStorageKey:w=o,colorSchemeStorageKey:$=r,disableTransitionOnChange:k=a,storageWindow:T=typeof window>"u"?void 0:window,documentNode:O=typeof document>"u"?void 0:document,colorSchemeNode:D=typeof document>"u"?void 0:document.documentElement,disableNestedContext:x=!1,disableStyleSheetGeneration:A=!1,defaultMode:R="system",noSsr:I}=_,j=C.useRef(!1),N=P1(),M=C.useContext(d),P=!!M&&!x,H=C.useMemo(()=>y||(typeof n=="function"?n():n),[y]),B=H[t],Z=B||H,{colorSchemes:oe=c,components:ve=h,cssVarPrefix:fe}=Z,le=Object.keys(oe).filter(Te=>!!oe[Te]).join(","),Se=C.useMemo(()=>le.split(","),[le]),De=typeof s=="string"?s:s.light,et=typeof s=="string"?s:s.dark,Ge=oe[De]&&oe[et]?R:((K=(nn=oe[Z.defaultColorScheme])==null?void 0:nn.palette)==null?void 0:K.mode)||((ge=Z.palette)==null?void 0:ge.mode),{mode:qe,setMode:xe,systemMode:Ee,lightColorScheme:me,darkColorScheme:ot,colorScheme:Ce,setColorScheme:ze}=D8({supportedColorSchemes:Se,defaultLightColorScheme:De,defaultDarkColorScheme:et,modeStorageKey:w,colorSchemeStorageKey:$,defaultMode:Ge,storageWindow:T,noSsr:I});let X=qe,ee=Ce;P&&(X=M.mode,ee=M.colorScheme);const $e=C.useMemo(()=>{var zt;const Te=ee||Z.defaultColorScheme,Ie=((zt=Z.generateThemeVars)==null?void 0:zt.call(Z))||Z.vars,Ue={...Z,components:ve,colorSchemes:oe,cssVarPrefix:fe,vars:Ie};if(typeof Ue.generateSpacing=="function"&&(Ue.spacing=Ue.generateSpacing()),Te){const we=oe[Te];we&&typeof we=="object"&&Object.keys(we).forEach(St=>{we[St]&&typeof we[St]=="object"?Ue[St]={...Ue[St],...we[St]}:Ue[St]=we[St]})}return i?i(Ue):Ue},[Z,ee,ve,oe,fe]),Ae=Z.colorSchemeSelector;C.useEffect(()=>{if(ee&&D&&Ae&&Ae!=="media"){const Te=Ae;let Ie=Ae;if(Te==="class"&&(Ie=".%s"),Te==="data"&&(Ie="[data-%s]"),Te!=null&&Te.startsWith("data-")&&!Te.includes("%s")&&(Ie=`[${Te}="%s"]`),Ie.startsWith("."))D.classList.remove(...Se.map(Ue=>Ie.substring(1).replace("%s",Ue))),D.classList.add(Ie.substring(1).replace("%s",ee));else{const Ue=Ie.replace("%s",ee).match(/\[([^\]]+)\]/);if(Ue){const[zt,we]=Ue[1].split("=");we||Se.forEach(St=>{D.removeAttribute(zt.replace(ee,St))}),D.setAttribute(zt,we?we.replace(/"|'/g,""):"")}else D.setAttribute(Ie,ee)}}},[ee,Ae,D,Se]),C.useEffect(()=>{let Te;if(k&&j.current&&O){const Ie=O.createElement("style");Ie.appendChild(O.createTextNode(A8)),O.head.appendChild(Ie),window.getComputedStyle(O.body),Te=setTimeout(()=>{O.head.removeChild(Ie)},1)}return()=>{clearTimeout(Te)}},[ee,k,O]),C.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const Xe=C.useMemo(()=>({allColorSchemes:Se,colorScheme:ee,darkColorScheme:ot,lightColorScheme:me,mode:X,setColorScheme:ze,setMode:xe,systemMode:Ee}),[Se,ee,ot,me,X,ze,xe,Ee,$e.colorSchemeSelector]);let Be=!0;(A||Z.cssVariables===!1||P&&(N==null?void 0:N.cssVarPrefix)===fe)&&(Be=!1);const _e=m.jsxs(C.Fragment,{children:[m.jsx(H4,{themeId:B?t:void 0,theme:$e,children:b}),Be&&m.jsx(y4,{styles:((Ke=$e.generateStyleSheets)==null?void 0:Ke.call($e))||[]})]});return P?_e:m.jsx(d.Provider,{value:Xe,children:_e})}const g=typeof s=="string"?s:s.light,v=typeof s=="string"?s:s.dark;return{CssVarsProvider:f,useColorScheme:u,getInitColorSchemeScript:_=>T8({colorSchemeStorageKey:r,defaultLightColorScheme:g,defaultDarkColorScheme:v,modeStorageKey:o,..._})}}function N8(e=""){function t(...o){if(!o.length)return"";const r=o[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${r}${t(...o.slice(1))})`:`, ${r}`}return(o,...r)=>`var(--${e?`${e}-`:""}${o}${t(...r)})`}const g2=(e,t,n,o=[])=>{let r=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(r)?r[Number(a)]=n:r&&typeof r=="object"&&(r[a]=n):r&&typeof r=="object"&&(r[a]||(r[a]=o.includes(a)?[]:{}),r=r[a])})},j8=(e,t,n)=>{function o(r,a=[],s=[]){Object.entries(r).forEach(([i,l])=>{(!n||n&&!n([...a,i]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?o(l,[...a,i],Array.isArray(l)?[...s,i]:s):t([...a,i],l,s))})}o(e)},z8=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function _v(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},a={},s={};return j8(e,(i,l,d)=>{if((typeof l=="string"||typeof l=="number")&&(!o||!o(i,l))){const u=`--${n?`${n}-`:""}${i.join("-")}`,c=z8(i,l);Object.assign(r,{[u]:c}),g2(a,i,`var(${u})`,d),g2(s,i,`var(${u}, ${c})`,d)}},i=>i[0]==="vars"),{css:r,vars:a,varsWithDefaults:s}}function R8(e,t={}){const{getSelector:n=S,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:a={},components:s,defaultColorScheme:i="light",...l}=e,{vars:d,css:u,varsWithDefaults:c}=_v(l,t);let h=c;const f={},{[i]:g,...v}=a;if(Object.entries(v||{}).forEach(([y,w])=>{const{vars:$,css:k,varsWithDefaults:T}=_v(w,t);h=Gn(h,T),f[y]={css:k,vars:$}}),g){const{css:y,vars:w,varsWithDefaults:$}=_v(g,t);h=Gn(h,$),f[i]={css:y,vars:w}}function S(y,w){var k,T;let $=r;if(r==="class"&&($=".%s"),r==="data"&&($="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&($=`[${r}="%s"]`),y){if($==="media")return e.defaultColorScheme===y?":root":{[`@media (prefers-color-scheme: ${((T=(k=a[y])==null?void 0:k.palette)==null?void 0:T.mode)||y})`]:{":root":w}};if($)return e.defaultColorScheme===y?`:root, ${$.replace("%s",String(y))}`:$.replace("%s",String(y))}return":root"}return{vars:h,generateThemeVars:()=>{let y={...d};return Object.entries(f).forEach(([,{vars:w}])=>{y=Gn(y,w)}),y},generateStyleSheets:()=>{var O,D;const y=[],w=e.defaultColorScheme||"light";function $(x,A){Object.keys(A).length&&y.push(typeof x=="string"?{[x]:{...A}}:x)}$(n(void 0,{...u}),u);const{[w]:k,...T}=f;if(k){const{css:x}=k,A=(D=(O=a[w])==null?void 0:O.palette)==null?void 0:D.mode,R=!o&&A?{colorScheme:A,...x}:{...x};$(n(w,{...R}),R)}return Object.entries(T).forEach(([x,{css:A}])=>{var j,N;const R=(N=(j=a[x])==null?void 0:j.palette)==null?void 0:N.mode,I=!o&&R?{colorScheme:R,...A}:{...A};$(n(x,{...I}),I)}),y}}}function I8(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const L8=(e,t)=>e.filter(n=>t.includes(n)),sd=(e,t,n)=>{const o=e.keys[0];Array.isArray(t)?t.forEach((r,a)=>{n((s,i)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,i):s[e.up(e.keys[a])]=i)},r)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:L8(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((i,l)=>{o===a?Object.assign(i,l):i[e.up(a)]=l},s)}}):(typeof t=="number"||typeof t=="string")&&n((r,a)=>{Object.assign(r,a)},t)};function pm(e){return`--Grid-${e}Spacing`}function Jg(e){return`--Grid-parent-${e}Spacing`}const _2="--Grid-columns",_c="--Grid-parent-columns",F8=({theme:e,ownerState:t})=>{const n={};return sd(e.breakpoints,t.size,(o,r)=>{let a={};r==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),r==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof r=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(${_c}) - (var(${_c}) - ${r}) * (var(${Jg("column")}) / var(${_c})))`}),o(n,a)}),n},P8=({theme:e,ownerState:t})=>{const n={};return sd(e.breakpoints,t.offset,(o,r)=>{let a={};r==="auto"&&(a={marginLeft:"auto"}),typeof r=="number"&&(a={marginLeft:r===0?"0px":`calc(100% * ${r} / var(${_c}) + var(${Jg("column")}) * ${r} / var(${_c}))`}),o(n,a)}),n},B8=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[_2]:12};return sd(e.breakpoints,t.columns,(o,r)=>{const a=r??12;o(n,{[_2]:a,"> *":{[_c]:a}})}),n},H8=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sd(e.breakpoints,t.rowSpacing,(o,r)=>{var s;const a=typeof r=="string"?r:(s=e.spacing)==null?void 0:s.call(e,r);o(n,{[pm("row")]:a,"> *":{[Jg("row")]:a}})}),n},U8=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sd(e.breakpoints,t.columnSpacing,(o,r)=>{var s;const a=typeof r=="string"?r:(s=e.spacing)==null?void 0:s.call(e,r);o(n,{[pm("column")]:a,"> *":{[Jg("column")]:a}})}),n},W8=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sd(e.breakpoints,t.direction,(o,r)=>{o(n,{flexDirection:r})}),n},V8=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${pm("row")}) var(${pm("column")})`}}),G8=e=>{const t=[];return Object.entries(e).forEach(([n,o])=>{o!==!1&&o!==void 0&&t.push(`grid-${n}-${String(o)}`)}),t},q8=(e,t="xs")=>{function n(o){return o===void 0?!1:typeof o=="string"&&!Number.isNaN(Number(o))||typeof o=="number"&&o>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const o=[];return Object.entries(e).forEach(([r,a])=>{n(a)&&o.push(`spacing-${r}-${String(a)}`)}),o}return[]},X8=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],J8=jg(),Y8=o8("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function K8(e){return r8({props:e,name:"MuiGrid",defaultTheme:J8})}function Z8(e={}){const{createStyledComponent:t=Y8,useThemeProps:n=K8,useTheme:o=Np,componentName:r="MuiGrid"}=e,a=(d,u)=>{const{container:c,direction:h,spacing:f,wrap:g,size:v}=d,S={root:["root",c&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...X8(h),...G8(v),...c?q8(f,u.breakpoints.keys[0]):[]]};return ce(S,_=>ie(r,_),{})};function s(d,u,c=()=>!0){const h={};return d===null||(Array.isArray(d)?d.forEach((f,g)=>{f!==null&&c(f)&&u.keys[g]&&(h[u.keys[g]]=f)}):typeof d=="object"?Object.keys(d).forEach(f=>{const g=d[f];g!=null&&c(g)&&(h[f]=g)}):h[u.keys[0]]=d),h}const i=t(B8,U8,H8,F8,W8,V8,P8),l=C.forwardRef(function(u,c){const h=o(),f=n(u),g=R1(f),{className:v,children:S,columns:_=12,container:b=!1,component:y="div",direction:w="row",wrap:$="wrap",size:k={},offset:T={},spacing:O=0,rowSpacing:D=O,columnSpacing:x=O,unstable_level:A=0,...R}=g,I=s(k,h.breakpoints,oe=>oe!==!1),j=s(T,h.breakpoints),N=u.columns??(A?void 0:_),M=u.spacing??(A?void 0:O),P=u.rowSpacing??u.spacing??(A?void 0:D),H=u.columnSpacing??u.spacing??(A?void 0:x),B={...g,level:A,columns:N,container:b,direction:w,wrap:$,spacing:M,rowSpacing:P,columnSpacing:H,size:I,offset:j},Z=a(B,h);return m.jsx(i,{ref:c,as:y,ownerState:B,className:Y(Z.root,v),...R,children:C.Children.map(S,oe=>{var ve;return C.isValidElement(oe)&&$u(oe,["Grid"])&&b&&oe.props.container?C.cloneElement(oe,{unstable_level:((ve=oe.props)==null?void 0:ve.unstable_level)??A+1}):oe})})});return l.muiName="Grid",l}const tp={black:"#000",white:"#fff"},db={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"},cl={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},dl={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Mn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ul={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},pl={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},hl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function W4(){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:tp.white,default:tp.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 Q8=W4();function V4(){return{text:{primary:tp.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:tp.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 v2=V4();function y2(e,t,n,o){const r=o.light||o,a=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=rd(e.main,r):t==="dark"&&(e.dark=od(e.main,a)))}function e9(e="light"){return e==="dark"?{main:ul[200],light:ul[50],dark:ul[400]}:{main:ul[700],light:ul[400],dark:ul[800]}}function t9(e="light"){return e==="dark"?{main:cl[200],light:cl[50],dark:cl[400]}:{main:cl[500],light:cl[300],dark:cl[700]}}function n9(e="light"){return e==="dark"?{main:dl[500],light:dl[300],dark:dl[700]}:{main:dl[700],light:dl[400],dark:dl[800]}}function o9(e="light"){return e==="dark"?{main:pl[400],light:pl[300],dark:pl[700]}:{main:pl[700],light:pl[500],dark:pl[900]}}function r9(e="light"){return e==="dark"?{main:hl[400],light:hl[300],dark:hl[700]}:{main:hl[800],light:hl[500],dark:hl[900]}}function a9(e="light"){return e==="dark"?{main:Mn[400],light:Mn[300],dark:Mn[700]}:{main:"#ed6c02",light:Mn[500],dark:Mn[900]}}function U1(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,a=e.primary||e9(t),s=e.secondary||t9(t),i=e.error||n9(t),l=e.info||o9(t),d=e.success||r9(t),u=e.warning||a9(t);function c(v){return p8(v,v2.text.primary)>=n?v2.text.primary:Q8.text.primary}const h=({color:v,name:S,mainShade:_=500,lightShade:b=300,darkShade:y=700})=>{if(v={...v},!v.main&&v[_]&&(v.main=v[_]),!v.hasOwnProperty("main"))throw new Error(Ua(11,S?` (${S})`:"",_));if(typeof v.main!="string")throw new Error(Ua(12,S?` (${S})`:"",JSON.stringify(v.main)));return y2(v,"light",b,o),y2(v,"dark",y,o),v.contrastText||(v.contrastText=c(v.main)),v};let f;return t==="light"?f=W4():t==="dark"&&(f=V4()),Gn({common:{...tp},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:i,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:d,name:"success"}),grey:db,contrastThreshold:n,getContrastText:c,augmentColor:h,tonalOffset:o,...f},r)}function s9(e){const t={};return Object.entries(e).forEach(o=>{const[r,a]=o;typeof a=="object"&&(t[r]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function i9(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function l9(e){return Math.round(e*1e5)/1e5}const b2={textTransform:"uppercase"},w2='"Roboto", "Helvetica", "Arial", sans-serif';function G4(e,t){const{fontFamily:n=w2,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:i=700,htmlFontSize:l=16,allVariants:d,pxToRem:u,...c}=typeof t=="function"?t(e):t,h=o/14,f=u||(S=>`${S/l*h}rem`),g=(S,_,b,y,w)=>({fontFamily:n,fontWeight:S,fontSize:f(_),lineHeight:b,...n===w2?{letterSpacing:`${l9(y/_)}em`}:{},...w,...d}),v={h1:g(r,96,1.167,-1.5),h2:g(r,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,b2),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,b2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gn({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:i,...v},c,{clone:!1})}const c9=.2,d9=.14,u9=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${c9})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${d9})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${u9})`].join(",")}const p9=["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)],h9={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)"},f9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function S2(e){return`${Math.round(e)}ms`}function m9(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function g9(e){const t={...h9,...e.easing},n={...f9,...e.duration};return{getAutoHeightDuration:m9,create:(r=["all"],a={})=>{const{duration:s=n.standard,easing:i=t.easeInOut,delay:l=0,...d}=a;return(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof s=="string"?s:S2(s)} ${i} ${typeof l=="string"?l:S2(l)}`).join(",")},...e,easing:t,duration:n}}const _9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function v9(e){return Jr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function q4(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let a=0;aGn(f,g),h),h.unstable_sxConfig={...Mp,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return Fs({sx:g,theme:this})},h.toRuntimeSource=V4,h}function ub(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const v9=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ub(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function G4(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function q4(e){return e==="dark"?v9:[]}function y9(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,a=H1(t);return{palette:a,opacity:{...G4(a.mode),...n},overlays:o||q4(a.mode),...r}}function b9(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const w9=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],S9=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let a=r;if(r==="class"&&(a=".%s"),r==="data"&&(a="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(a=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return w9(e.cssVarPrefix).forEach(i=>{s[i]=n[i],delete n[i]}),a==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:s}}:a?{[a.replace("%s",t)]:s,[`${o}, ${a.replace("%s",t)}`]:n}:{[o]:{...n,...s}}}if(a&&a!=="media")return`${o}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(a)return a.replace("%s",String(t))}return o};function x9(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function W(e,t,n){!e[t]&&n&&(e[t]=n)}function Zd(e){return typeof e!="string"||!e.startsWith("hsl")?e:D4(e)}function ya(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Kd(Zd(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function C9(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zr=e=>{try{return e()}catch{}},$9=(e="mui")=>M8(e);function vv(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=y9({...t,palette:{mode:r,...t==null?void 0:t.palette}});return}const{palette:a,...s}=db({...n,palette:{mode:r,...t==null?void 0:t.palette}});return e[o]={...t,palette:a,opacity:{...G4(r),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||q4(r)},s}function k9(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=b9,colorSchemeSelector:i=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...d}=e,u=Object.keys(n)[0],c=o||(n.light&&u!=="light"?"light":u),h=$9(a),{[c]:f,light:g,dark:v,...S}=n,_={...S};let b=f;if((c==="dark"&&!("dark"in n)||c==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(Ua(21,c));const y=vv(_,b,d,c);g&&!_.light&&vv(_,g,void 0,"light"),v&&!_.dark&&vv(_,v,void 0,"dark");let w={defaultColorScheme:c,...y,cssVarPrefix:a,colorSchemeSelector:i,rootSelector:l,getCssVar:h,colorSchemes:_,font:{...a9(y.typography),...y.font},spacing:C9(d.spacing)};Object.keys(w.colorSchemes).forEach(D=>{const x=w.colorSchemes[D].palette,A=R=>{const I=R.split("-"),j=I[1],N=I[2];return h(R,x[j][N])};if(x.mode==="light"&&(W(x.common,"background","#fff"),W(x.common,"onBackground","#000")),x.mode==="dark"&&(W(x.common,"background","#000"),W(x.common,"onBackground","#fff")),x9(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){W(x.Alert,"errorColor",xt(x.error.light,.6)),W(x.Alert,"infoColor",xt(x.info.light,.6)),W(x.Alert,"successColor",xt(x.success.light,.6)),W(x.Alert,"warningColor",xt(x.warning.light,.6)),W(x.Alert,"errorFilledBg",A("palette-error-main")),W(x.Alert,"infoFilledBg",A("palette-info-main")),W(x.Alert,"successFilledBg",A("palette-success-main")),W(x.Alert,"warningFilledBg",A("palette-warning-main")),W(x.Alert,"errorFilledColor",zr(()=>x.getContrastText(x.error.main))),W(x.Alert,"infoFilledColor",zr(()=>x.getContrastText(x.info.main))),W(x.Alert,"successFilledColor",zr(()=>x.getContrastText(x.success.main))),W(x.Alert,"warningFilledColor",zr(()=>x.getContrastText(x.warning.main))),W(x.Alert,"errorStandardBg",Ct(x.error.light,.9)),W(x.Alert,"infoStandardBg",Ct(x.info.light,.9)),W(x.Alert,"successStandardBg",Ct(x.success.light,.9)),W(x.Alert,"warningStandardBg",Ct(x.warning.light,.9)),W(x.Alert,"errorIconColor",A("palette-error-main")),W(x.Alert,"infoIconColor",A("palette-info-main")),W(x.Alert,"successIconColor",A("palette-success-main")),W(x.Alert,"warningIconColor",A("palette-warning-main")),W(x.AppBar,"defaultBg",A("palette-grey-100")),W(x.Avatar,"defaultBg",A("palette-grey-400")),W(x.Button,"inheritContainedBg",A("palette-grey-300")),W(x.Button,"inheritContainedHoverBg",A("palette-grey-A100")),W(x.Chip,"defaultBorder",A("palette-grey-400")),W(x.Chip,"defaultAvatarColor",A("palette-grey-700")),W(x.Chip,"defaultIconColor",A("palette-grey-700")),W(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),W(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),W(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),W(x.LinearProgress,"primaryBg",Ct(x.primary.main,.62)),W(x.LinearProgress,"secondaryBg",Ct(x.secondary.main,.62)),W(x.LinearProgress,"errorBg",Ct(x.error.main,.62)),W(x.LinearProgress,"infoBg",Ct(x.info.main,.62)),W(x.LinearProgress,"successBg",Ct(x.success.main,.62)),W(x.LinearProgress,"warningBg",Ct(x.warning.main,.62)),W(x.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.11)`),W(x.Slider,"primaryTrack",Ct(x.primary.main,.62)),W(x.Slider,"secondaryTrack",Ct(x.secondary.main,.62)),W(x.Slider,"errorTrack",Ct(x.error.main,.62)),W(x.Slider,"infoTrack",Ct(x.info.main,.62)),W(x.Slider,"successTrack",Ct(x.success.main,.62)),W(x.Slider,"warningTrack",Ct(x.warning.main,.62));const R=vh(x.background.default,.8);W(x.SnackbarContent,"bg",R),W(x.SnackbarContent,"color",zr(()=>x.getContrastText(R))),W(x.SpeedDialAction,"fabHoverBg",vh(x.background.paper,.15)),W(x.StepConnector,"border",A("palette-grey-400")),W(x.StepContent,"border",A("palette-grey-400")),W(x.Switch,"defaultColor",A("palette-common-white")),W(x.Switch,"defaultDisabledColor",A("palette-grey-100")),W(x.Switch,"primaryDisabledColor",Ct(x.primary.main,.62)),W(x.Switch,"secondaryDisabledColor",Ct(x.secondary.main,.62)),W(x.Switch,"errorDisabledColor",Ct(x.error.main,.62)),W(x.Switch,"infoDisabledColor",Ct(x.info.main,.62)),W(x.Switch,"successDisabledColor",Ct(x.success.main,.62)),W(x.Switch,"warningDisabledColor",Ct(x.warning.main,.62)),W(x.TableCell,"border",Ct(_h(x.divider,1),.88)),W(x.Tooltip,"bg",_h(x.grey[700],.92))}if(x.mode==="dark"){W(x.Alert,"errorColor",Ct(x.error.light,.6)),W(x.Alert,"infoColor",Ct(x.info.light,.6)),W(x.Alert,"successColor",Ct(x.success.light,.6)),W(x.Alert,"warningColor",Ct(x.warning.light,.6)),W(x.Alert,"errorFilledBg",A("palette-error-dark")),W(x.Alert,"infoFilledBg",A("palette-info-dark")),W(x.Alert,"successFilledBg",A("palette-success-dark")),W(x.Alert,"warningFilledBg",A("palette-warning-dark")),W(x.Alert,"errorFilledColor",zr(()=>x.getContrastText(x.error.dark))),W(x.Alert,"infoFilledColor",zr(()=>x.getContrastText(x.info.dark))),W(x.Alert,"successFilledColor",zr(()=>x.getContrastText(x.success.dark))),W(x.Alert,"warningFilledColor",zr(()=>x.getContrastText(x.warning.dark))),W(x.Alert,"errorStandardBg",xt(x.error.light,.9)),W(x.Alert,"infoStandardBg",xt(x.info.light,.9)),W(x.Alert,"successStandardBg",xt(x.success.light,.9)),W(x.Alert,"warningStandardBg",xt(x.warning.light,.9)),W(x.Alert,"errorIconColor",A("palette-error-main")),W(x.Alert,"infoIconColor",A("palette-info-main")),W(x.Alert,"successIconColor",A("palette-success-main")),W(x.Alert,"warningIconColor",A("palette-warning-main")),W(x.AppBar,"defaultBg",A("palette-grey-900")),W(x.AppBar,"darkBg",A("palette-background-paper")),W(x.AppBar,"darkColor",A("palette-text-primary")),W(x.Avatar,"defaultBg",A("palette-grey-600")),W(x.Button,"inheritContainedBg",A("palette-grey-800")),W(x.Button,"inheritContainedHoverBg",A("palette-grey-700")),W(x.Chip,"defaultBorder",A("palette-grey-700")),W(x.Chip,"defaultAvatarColor",A("palette-grey-300")),W(x.Chip,"defaultIconColor",A("palette-grey-300")),W(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),W(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),W(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),W(x.LinearProgress,"primaryBg",xt(x.primary.main,.5)),W(x.LinearProgress,"secondaryBg",xt(x.secondary.main,.5)),W(x.LinearProgress,"errorBg",xt(x.error.main,.5)),W(x.LinearProgress,"infoBg",xt(x.info.main,.5)),W(x.LinearProgress,"successBg",xt(x.success.main,.5)),W(x.LinearProgress,"warningBg",xt(x.warning.main,.5)),W(x.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.13)`),W(x.Slider,"primaryTrack",xt(x.primary.main,.5)),W(x.Slider,"secondaryTrack",xt(x.secondary.main,.5)),W(x.Slider,"errorTrack",xt(x.error.main,.5)),W(x.Slider,"infoTrack",xt(x.info.main,.5)),W(x.Slider,"successTrack",xt(x.success.main,.5)),W(x.Slider,"warningTrack",xt(x.warning.main,.5));const R=vh(x.background.default,.98);W(x.SnackbarContent,"bg",R),W(x.SnackbarContent,"color",zr(()=>x.getContrastText(R))),W(x.SpeedDialAction,"fabHoverBg",vh(x.background.paper,.15)),W(x.StepConnector,"border",A("palette-grey-600")),W(x.StepContent,"border",A("palette-grey-600")),W(x.Switch,"defaultColor",A("palette-grey-300")),W(x.Switch,"defaultDisabledColor",A("palette-grey-600")),W(x.Switch,"primaryDisabledColor",xt(x.primary.main,.55)),W(x.Switch,"secondaryDisabledColor",xt(x.secondary.main,.55)),W(x.Switch,"errorDisabledColor",xt(x.error.main,.55)),W(x.Switch,"infoDisabledColor",xt(x.info.main,.55)),W(x.Switch,"successDisabledColor",xt(x.success.main,.55)),W(x.Switch,"warningDisabledColor",xt(x.warning.main,.55)),W(x.TableCell,"border",xt(_h(x.divider,1),.68)),W(x.Tooltip,"bg",_h(x.grey[700],.92))}ya(x.background,"default"),ya(x.background,"paper"),ya(x.common,"background"),ya(x.common,"onBackground"),ya(x,"divider"),Object.keys(x).forEach(R=>{const I=x[R];R!=="tonalOffset"&&I&&typeof I=="object"&&(I.main&&W(x[R],"mainChannel",Kd(Zd(I.main))),I.light&&W(x[R],"lightChannel",Kd(Zd(I.light))),I.dark&&W(x[R],"darkChannel",Kd(Zd(I.dark))),I.contrastText&&W(x[R],"contrastTextChannel",Kd(Zd(I.contrastText))),R==="text"&&(ya(x[R],"primary"),ya(x[R],"secondary")),R==="action"&&(I.active&&ya(x[R],"active"),I.selected&&ya(x[R],"selected")))})}),w=t.reduce((D,x)=>Gn(D,x),w);const $={prefix:a,disableCssColorScheme:r,shouldSkipGeneratingVar:s,getSelector:S9(w)},{vars:k,generateThemeVars:T,generateStyleSheets:O}=z8(w,$);return w.vars=k,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([D,x])=>{w[D]=x}),w.generateThemeVars=T,w.generateStyleSheets=O,w.generateSpacing=function(){return w4(d.spacing,M1(this))},w.getColorSchemeSelector=R8(i),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...Mp,...d==null?void 0:d.unstable_sxConfig},w.unstable_sx=function(x){return Fs({sx:x,theme:this})},w.toRuntimeSource=V4,w}function S2(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:H1({...n===!0?{}:n.palette,mode:t})})}function np(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...s}=e,i=a||"light",l=r==null?void 0:r[i],d={...r,...n?{[i]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return db(e,...t);let u=n;"palette"in e||d[i]&&(d[i]!==!0?u=d[i].palette:i==="dark"&&(u={mode:"dark"}));const c=db({...e,palette:u},...t);return c.defaultColorScheme=i,c.colorSchemes=d,c.palette.mode==="light"&&(c.colorSchemes.light={...d.light!==!0&&d.light,palette:c.palette},S2(c,"dark",d.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:c.palette},S2(c,"light",d.light)),c}return!n&&!("light"in d)&&i==="light"&&(d.light=!0),k9({...s,colorSchemes:d,defaultColorScheme:i,...typeof o!="boolean"&&o},...t)}const U1=np();function qa(){const e=Np(U1);return e[kr]||e}function X4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cn=e=>X4(e)&&e!=="classes",G=E4({themeId:kr,defaultTheme:U1,rootShouldForwardProp:Cn});function x2({theme:e,...t}){const n=kr in e?e[kr]:void 0;return m.jsx(P4,{...t,themeId:n?kr:void 0,theme:n||e})}const yh={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:E9,useColorScheme:pkt,getInitColorSchemeScript:hkt}=A8({themeId:kr,theme:()=>np({cssVariables:!0}),colorSchemeStorageKey:yh.colorSchemeStorageKey,modeStorageKey:yh.modeStorageKey,defaultColorScheme:{light:yh.defaultLightColorScheme,dark:yh.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:W4(e.palette,e.typography)};return t.unstable_sx=function(o){return Fs({sx:o,theme:this})},t}}),T9=E9;function C2({theme:e,...t}){return typeof e=="function"?m.jsx(x2,{theme:e,...t}):"colorSchemes"in(kr in e?e[kr]:e)?m.jsx(T9,{theme:e,...t}):m.jsx(x2,{theme:e,...t})}function O9(e){return m.jsx(HR,{...e,defaultTheme:U1,themeId:kr})}function D9(e){return function(n){return m.jsx(O9,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function A9(){return z1}const pe=$8;function de(e){return C8(e)}function M9(e){return ie("MuiSvgIcon",e)}se("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const N9=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${U(t)}`,`fontSize${U(n)}`]};return ce(r,M9,o)},j9=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${U(n.color)}`],t[`fontSize${U(n.fontSize)}`]]}})(pe(({theme:e})=>{var t,n,o,r,a,s,i,l,d,u,c,h,f,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:v=>!v.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:u.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,v])=>v&&v.main).map(([v])=>{var S,_;return{props:{color:v},style:{color:(_=(S=(e.vars??e).palette)==null?void 0:S[v])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(h=(c=(e.vars??e).palette)==null?void 0:c.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),hm=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiSvgIcon"}),{children:r,className:a,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:c,viewBox:h="0 0 24 24",...f}=o,g=C.isValidElement(r)&&r.type==="svg",v={...o,color:s,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},S={};u||(S.viewBox=h);const _=N9(v);return m.jsxs(j9,{as:i,className:Y(_.root,a),focusable:"false",color:d,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:n,...S,...f,...g&&r.props,ownerState:v,children:[g?r.props.children:r,c?m.jsx("title",{children:c}):null]})});hm&&(hm.muiName="SvgIcon");function te(e,t){function n(o,r){return m.jsx(hm,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return n.muiName=hm.muiName,C.memo(C.forwardRef(n))}function J4(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function pb(e,t){return pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},pb(e,t)}function Y4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pb(e,t)}const $2={disabled:!1},fm=p.createContext(null);var z9=function(t){return t.scrollTop},Qd="unmounted",ii="exited",li="entering",kl="entered",hb="exiting",ca=function(e){Y4(t,e);function t(o,r){var a;a=e.call(this,o,r)||this;var s=r,i=s&&!s.isMounting?o.enter:o.appear,l;return a.appearStatus=null,o.in?i?(l=ii,a.appearStatus=li):l=kl:o.unmountOnExit||o.mountOnEnter?l=Qd:l=ii,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,a){var s=r.in;return s&&a.status===Qd?{status:ii}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var a=null;if(r!==this.props){var s=this.state.status;this.props.in?s!==li&&s!==kl&&(a=li):(s===li||s===kl)&&(a=hb)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,s,i;return a=s=i=r,r!=null&&typeof r!="number"&&(a=r.exit,s=r.enter,i=r.appear!==void 0?r.appear:s),{exit:a,enter:s,appear:i}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===li){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:eh.findDOMNode(this);s&&z9(s)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ii&&this.setState({status:Qd})},n.performEnter=function(r){var a=this,s=this.props.enter,i=this.context?this.context.isMounting:r,l=this.props.nodeRef?[i]:[eh.findDOMNode(this),i],d=l[0],u=l[1],c=this.getTimeouts(),h=i?c.appear:c.enter;if(!r&&!s||$2.disabled){this.safeSetState({status:kl},function(){a.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:li},function(){a.props.onEntering(d,u),a.onTransitionEnd(h,function(){a.safeSetState({status:kl},function(){a.props.onEntered(d,u)})})})},n.performExit=function(){var r=this,a=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:eh.findDOMNode(this);if(!a||$2.disabled){this.safeSetState({status:ii},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:hb},function(){r.props.onExiting(i),r.onTransitionEnd(s.exit,function(){r.safeSetState({status:ii},function(){r.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,a){a=this.setNextCallback(a),this.setState(r,a)},n.setNextCallback=function(r){var a=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,a.nextCallback=null,r(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(r,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:eh.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],u=l[1];this.props.addEndListener(d,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Qd)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 i=J4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(fm.Provider,{value:null},typeof s=="function"?s(r,i):p.cloneElement(p.Children.only(s),i))},t}(p.Component);ca.contextType=fm;ca.propTypes={};function fl(){}ca.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fl,onEntering:fl,onEntered:fl,onExit:fl,onExiting:fl,onExited:fl};ca.UNMOUNTED=Qd;ca.EXITED=ii;ca.ENTERING=li;ca.ENTERED=kl;ca.EXITING=hb;function R9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W1(e,t){var n=function(a){return t&&C.isValidElement(a)?t(a):a},o=Object.create(null);return e&&C.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function I9(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var o=Object.create(null),r=[];for(var a in e)a in t?r.length&&(o[a]=r,r=[]):r.push(a);var s,i={};for(var l in t){if(o[l])for(s=0;se.scrollTop;function mm(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function H9(e){return ie("MuiPaper",e)}se("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 U9=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,a={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return ce(a,H9,r)},W9=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(pe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),qs=C.forwardRef(function(t,n){var f;const o=de({props:t,name:"MuiPaper"}),r=qa(),{className:a,component:s="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=o,c={...o,component:s,elevation:i,square:l,variant:d},h=U9(c);return m.jsx(W9,{as:s,ownerState:c,className:Y(h.root,a),ref:n,...u,style:{...d==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[i],...r.vars&&{"--Paper-overlay":(f=r.vars.overlays)==null?void 0:f[i]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Fe("#fff",ub(i))}, ${Fe("#fff",ub(i))})`}},...u.style}})});function Un(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:a,internalForwardedProps:s,...i}=t,{component:l,slots:d={[e]:void 0},slotProps:u={[e]:void 0},...c}=a,h=d[e]||o,f=R4(u[e],r),{props:{component:g,...v},internalRef:S}=z4({className:n,...i,externalForwardedProps:e==="root"?c:void 0,externalSlotProps:f}),_=Kt(S,f==null?void 0:f.ref,t.ref),b=e==="root"?g||l:g,y=j4(h,{...e==="root"&&!l&&!d[e]&&s,...e!=="root"&&!d[e]&&s,...v,...b&&{as:b},ref:_},r);return[h,y]}class gm{constructor(){F(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new gm}static use(){const t=A4(gm.create).current,[n,o]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=o,C.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=G9(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function V9(){return gm.use()}function G9(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function q9(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:a,rippleSize:s,in:i,onExited:l,timeout:d}=e,[u,c]=C.useState(!1),h=Y(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),f={width:s,height:s,top:-(s/2)+a,left:-(s/2)+r},g=Y(n.child,u&&n.childLeaving,o&&n.childPulsate);return!i&&!u&&c(!0),C.useEffect(()=>{if(!i&&l!=null){const v=setTimeout(l,d);return()=>{clearTimeout(v)}}},[l,i,d]),m.jsx("span",{className:h,style:f,children:m.jsx("span",{className:g})})}const Xo=se("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fb=550,X9=80,J9=Gs` +export default theme;`}function ub(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:a={},transitions:s={},typography:i={},shape:l,...d}=e;if(e.vars)throw new Error(Ua(20));const u=U1(a),c=jg(e);let h=Gn(c,{mixins:i9(c.breakpoints,o),palette:u,shadows:p9.slice(),typography:G4(u,i),transitions:g9(s),zIndex:{..._9}});return h=Gn(h,d),h=t.reduce((f,g)=>Gn(f,g),h),h.unstable_sxConfig={...Mp,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return Fs({sx:g,theme:this})},h.toRuntimeSource=q4,h}function pb(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const y9=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=pb(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function X4(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function J4(e){return e==="dark"?y9:[]}function b9(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,a=U1(t);return{palette:a,opacity:{...X4(a.mode),...n},overlays:o||J4(a.mode),...r}}function w9(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const S9=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],x9=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let a=r;if(r==="class"&&(a=".%s"),r==="data"&&(a="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(a=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return S9(e.cssVarPrefix).forEach(i=>{s[i]=n[i],delete n[i]}),a==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:s}}:a?{[a.replace("%s",t)]:s,[`${o}, ${a.replace("%s",t)}`]:n}:{[o]:{...n,...s}}}if(a&&a!=="media")return`${o}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(a)return a.replace("%s",String(t))}return o};function C9(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function W(e,t,n){!e[t]&&n&&(e[t]=n)}function Zd(e){return typeof e!="string"||!e.startsWith("hsl")?e:M4(e)}function ya(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Kd(Zd(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function $9(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zr=e=>{try{return e()}catch{}},k9=(e="mui")=>N8(e);function vv(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=b9({...t,palette:{mode:r,...t==null?void 0:t.palette}});return}const{palette:a,...s}=ub({...n,palette:{mode:r,...t==null?void 0:t.palette}});return e[o]={...t,palette:a,opacity:{...X4(r),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||J4(r)},s}function E9(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=w9,colorSchemeSelector:i=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...d}=e,u=Object.keys(n)[0],c=o||(n.light&&u!=="light"?"light":u),h=k9(a),{[c]:f,light:g,dark:v,...S}=n,_={...S};let b=f;if((c==="dark"&&!("dark"in n)||c==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(Ua(21,c));const y=vv(_,b,d,c);g&&!_.light&&vv(_,g,void 0,"light"),v&&!_.dark&&vv(_,v,void 0,"dark");let w={defaultColorScheme:c,...y,cssVarPrefix:a,colorSchemeSelector:i,rootSelector:l,getCssVar:h,colorSchemes:_,font:{...s9(y.typography),...y.font},spacing:$9(d.spacing)};Object.keys(w.colorSchemes).forEach(D=>{const x=w.colorSchemes[D].palette,A=R=>{const I=R.split("-"),j=I[1],N=I[2];return h(R,x[j][N])};if(x.mode==="light"&&(W(x.common,"background","#fff"),W(x.common,"onBackground","#000")),x.mode==="dark"&&(W(x.common,"background","#000"),W(x.common,"onBackground","#fff")),C9(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){W(x.Alert,"errorColor",xt(x.error.light,.6)),W(x.Alert,"infoColor",xt(x.info.light,.6)),W(x.Alert,"successColor",xt(x.success.light,.6)),W(x.Alert,"warningColor",xt(x.warning.light,.6)),W(x.Alert,"errorFilledBg",A("palette-error-main")),W(x.Alert,"infoFilledBg",A("palette-info-main")),W(x.Alert,"successFilledBg",A("palette-success-main")),W(x.Alert,"warningFilledBg",A("palette-warning-main")),W(x.Alert,"errorFilledColor",zr(()=>x.getContrastText(x.error.main))),W(x.Alert,"infoFilledColor",zr(()=>x.getContrastText(x.info.main))),W(x.Alert,"successFilledColor",zr(()=>x.getContrastText(x.success.main))),W(x.Alert,"warningFilledColor",zr(()=>x.getContrastText(x.warning.main))),W(x.Alert,"errorStandardBg",Ct(x.error.light,.9)),W(x.Alert,"infoStandardBg",Ct(x.info.light,.9)),W(x.Alert,"successStandardBg",Ct(x.success.light,.9)),W(x.Alert,"warningStandardBg",Ct(x.warning.light,.9)),W(x.Alert,"errorIconColor",A("palette-error-main")),W(x.Alert,"infoIconColor",A("palette-info-main")),W(x.Alert,"successIconColor",A("palette-success-main")),W(x.Alert,"warningIconColor",A("palette-warning-main")),W(x.AppBar,"defaultBg",A("palette-grey-100")),W(x.Avatar,"defaultBg",A("palette-grey-400")),W(x.Button,"inheritContainedBg",A("palette-grey-300")),W(x.Button,"inheritContainedHoverBg",A("palette-grey-A100")),W(x.Chip,"defaultBorder",A("palette-grey-400")),W(x.Chip,"defaultAvatarColor",A("palette-grey-700")),W(x.Chip,"defaultIconColor",A("palette-grey-700")),W(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),W(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),W(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),W(x.LinearProgress,"primaryBg",Ct(x.primary.main,.62)),W(x.LinearProgress,"secondaryBg",Ct(x.secondary.main,.62)),W(x.LinearProgress,"errorBg",Ct(x.error.main,.62)),W(x.LinearProgress,"infoBg",Ct(x.info.main,.62)),W(x.LinearProgress,"successBg",Ct(x.success.main,.62)),W(x.LinearProgress,"warningBg",Ct(x.warning.main,.62)),W(x.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.11)`),W(x.Slider,"primaryTrack",Ct(x.primary.main,.62)),W(x.Slider,"secondaryTrack",Ct(x.secondary.main,.62)),W(x.Slider,"errorTrack",Ct(x.error.main,.62)),W(x.Slider,"infoTrack",Ct(x.info.main,.62)),W(x.Slider,"successTrack",Ct(x.success.main,.62)),W(x.Slider,"warningTrack",Ct(x.warning.main,.62));const R=vh(x.background.default,.8);W(x.SnackbarContent,"bg",R),W(x.SnackbarContent,"color",zr(()=>x.getContrastText(R))),W(x.SpeedDialAction,"fabHoverBg",vh(x.background.paper,.15)),W(x.StepConnector,"border",A("palette-grey-400")),W(x.StepContent,"border",A("palette-grey-400")),W(x.Switch,"defaultColor",A("palette-common-white")),W(x.Switch,"defaultDisabledColor",A("palette-grey-100")),W(x.Switch,"primaryDisabledColor",Ct(x.primary.main,.62)),W(x.Switch,"secondaryDisabledColor",Ct(x.secondary.main,.62)),W(x.Switch,"errorDisabledColor",Ct(x.error.main,.62)),W(x.Switch,"infoDisabledColor",Ct(x.info.main,.62)),W(x.Switch,"successDisabledColor",Ct(x.success.main,.62)),W(x.Switch,"warningDisabledColor",Ct(x.warning.main,.62)),W(x.TableCell,"border",Ct(_h(x.divider,1),.88)),W(x.Tooltip,"bg",_h(x.grey[700],.92))}if(x.mode==="dark"){W(x.Alert,"errorColor",Ct(x.error.light,.6)),W(x.Alert,"infoColor",Ct(x.info.light,.6)),W(x.Alert,"successColor",Ct(x.success.light,.6)),W(x.Alert,"warningColor",Ct(x.warning.light,.6)),W(x.Alert,"errorFilledBg",A("palette-error-dark")),W(x.Alert,"infoFilledBg",A("palette-info-dark")),W(x.Alert,"successFilledBg",A("palette-success-dark")),W(x.Alert,"warningFilledBg",A("palette-warning-dark")),W(x.Alert,"errorFilledColor",zr(()=>x.getContrastText(x.error.dark))),W(x.Alert,"infoFilledColor",zr(()=>x.getContrastText(x.info.dark))),W(x.Alert,"successFilledColor",zr(()=>x.getContrastText(x.success.dark))),W(x.Alert,"warningFilledColor",zr(()=>x.getContrastText(x.warning.dark))),W(x.Alert,"errorStandardBg",xt(x.error.light,.9)),W(x.Alert,"infoStandardBg",xt(x.info.light,.9)),W(x.Alert,"successStandardBg",xt(x.success.light,.9)),W(x.Alert,"warningStandardBg",xt(x.warning.light,.9)),W(x.Alert,"errorIconColor",A("palette-error-main")),W(x.Alert,"infoIconColor",A("palette-info-main")),W(x.Alert,"successIconColor",A("palette-success-main")),W(x.Alert,"warningIconColor",A("palette-warning-main")),W(x.AppBar,"defaultBg",A("palette-grey-900")),W(x.AppBar,"darkBg",A("palette-background-paper")),W(x.AppBar,"darkColor",A("palette-text-primary")),W(x.Avatar,"defaultBg",A("palette-grey-600")),W(x.Button,"inheritContainedBg",A("palette-grey-800")),W(x.Button,"inheritContainedHoverBg",A("palette-grey-700")),W(x.Chip,"defaultBorder",A("palette-grey-700")),W(x.Chip,"defaultAvatarColor",A("palette-grey-300")),W(x.Chip,"defaultIconColor",A("palette-grey-300")),W(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),W(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),W(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),W(x.LinearProgress,"primaryBg",xt(x.primary.main,.5)),W(x.LinearProgress,"secondaryBg",xt(x.secondary.main,.5)),W(x.LinearProgress,"errorBg",xt(x.error.main,.5)),W(x.LinearProgress,"infoBg",xt(x.info.main,.5)),W(x.LinearProgress,"successBg",xt(x.success.main,.5)),W(x.LinearProgress,"warningBg",xt(x.warning.main,.5)),W(x.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.13)`),W(x.Slider,"primaryTrack",xt(x.primary.main,.5)),W(x.Slider,"secondaryTrack",xt(x.secondary.main,.5)),W(x.Slider,"errorTrack",xt(x.error.main,.5)),W(x.Slider,"infoTrack",xt(x.info.main,.5)),W(x.Slider,"successTrack",xt(x.success.main,.5)),W(x.Slider,"warningTrack",xt(x.warning.main,.5));const R=vh(x.background.default,.98);W(x.SnackbarContent,"bg",R),W(x.SnackbarContent,"color",zr(()=>x.getContrastText(R))),W(x.SpeedDialAction,"fabHoverBg",vh(x.background.paper,.15)),W(x.StepConnector,"border",A("palette-grey-600")),W(x.StepContent,"border",A("palette-grey-600")),W(x.Switch,"defaultColor",A("palette-grey-300")),W(x.Switch,"defaultDisabledColor",A("palette-grey-600")),W(x.Switch,"primaryDisabledColor",xt(x.primary.main,.55)),W(x.Switch,"secondaryDisabledColor",xt(x.secondary.main,.55)),W(x.Switch,"errorDisabledColor",xt(x.error.main,.55)),W(x.Switch,"infoDisabledColor",xt(x.info.main,.55)),W(x.Switch,"successDisabledColor",xt(x.success.main,.55)),W(x.Switch,"warningDisabledColor",xt(x.warning.main,.55)),W(x.TableCell,"border",xt(_h(x.divider,1),.68)),W(x.Tooltip,"bg",_h(x.grey[700],.92))}ya(x.background,"default"),ya(x.background,"paper"),ya(x.common,"background"),ya(x.common,"onBackground"),ya(x,"divider"),Object.keys(x).forEach(R=>{const I=x[R];R!=="tonalOffset"&&I&&typeof I=="object"&&(I.main&&W(x[R],"mainChannel",Kd(Zd(I.main))),I.light&&W(x[R],"lightChannel",Kd(Zd(I.light))),I.dark&&W(x[R],"darkChannel",Kd(Zd(I.dark))),I.contrastText&&W(x[R],"contrastTextChannel",Kd(Zd(I.contrastText))),R==="text"&&(ya(x[R],"primary"),ya(x[R],"secondary")),R==="action"&&(I.active&&ya(x[R],"active"),I.selected&&ya(x[R],"selected")))})}),w=t.reduce((D,x)=>Gn(D,x),w);const $={prefix:a,disableCssColorScheme:r,shouldSkipGeneratingVar:s,getSelector:x9(w)},{vars:k,generateThemeVars:T,generateStyleSheets:O}=R8(w,$);return w.vars=k,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([D,x])=>{w[D]=x}),w.generateThemeVars=T,w.generateStyleSheets=O,w.generateSpacing=function(){return x4(d.spacing,N1(this))},w.getColorSchemeSelector=I8(i),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...Mp,...d==null?void 0:d.unstable_sxConfig},w.unstable_sx=function(x){return Fs({sx:x,theme:this})},w.toRuntimeSource=q4,w}function x2(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:U1({...n===!0?{}:n.palette,mode:t})})}function np(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...s}=e,i=a||"light",l=r==null?void 0:r[i],d={...r,...n?{[i]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return ub(e,...t);let u=n;"palette"in e||d[i]&&(d[i]!==!0?u=d[i].palette:i==="dark"&&(u={mode:"dark"}));const c=ub({...e,palette:u},...t);return c.defaultColorScheme=i,c.colorSchemes=d,c.palette.mode==="light"&&(c.colorSchemes.light={...d.light!==!0&&d.light,palette:c.palette},x2(c,"dark",d.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:c.palette},x2(c,"light",d.light)),c}return!n&&!("light"in d)&&i==="light"&&(d.light=!0),E9({...s,colorSchemes:d,defaultColorScheme:i,...typeof o!="boolean"&&o},...t)}const W1=np();function qa(){const e=Np(W1);return e[kr]||e}function Y4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cn=e=>Y4(e)&&e!=="classes",G=O4({themeId:kr,defaultTheme:W1,rootShouldForwardProp:Cn});function C2({theme:e,...t}){const n=kr in e?e[kr]:void 0;return m.jsx(H4,{...t,themeId:n?kr:void 0,theme:n||e})}const yh={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:T9,useColorScheme:fkt,getInitColorSchemeScript:mkt}=M8({themeId:kr,theme:()=>np({cssVariables:!0}),colorSchemeStorageKey:yh.colorSchemeStorageKey,modeStorageKey:yh.modeStorageKey,defaultColorScheme:{light:yh.defaultLightColorScheme,dark:yh.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:G4(e.palette,e.typography)};return t.unstable_sx=function(o){return Fs({sx:o,theme:this})},t}}),O9=T9;function $2({theme:e,...t}){return typeof e=="function"?m.jsx(C2,{theme:e,...t}):"colorSchemes"in(kr in e?e[kr]:e)?m.jsx(O9,{theme:e,...t}):m.jsx(C2,{theme:e,...t})}function D9(e){return m.jsx(UR,{...e,defaultTheme:W1,themeId:kr})}function A9(e){return function(n){return m.jsx(D9,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function M9(){return R1}const pe=k8;function de(e){return $8(e)}function N9(e){return ie("MuiSvgIcon",e)}se("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const j9=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${U(t)}`,`fontSize${U(n)}`]};return ce(r,N9,o)},z9=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${U(n.color)}`],t[`fontSize${U(n.fontSize)}`]]}})(pe(({theme:e})=>{var t,n,o,r,a,s,i,l,d,u,c,h,f,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:v=>!v.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:u.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,v])=>v&&v.main).map(([v])=>{var S,_;return{props:{color:v},style:{color:(_=(S=(e.vars??e).palette)==null?void 0:S[v])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(h=(c=(e.vars??e).palette)==null?void 0:c.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),hm=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiSvgIcon"}),{children:r,className:a,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:c,viewBox:h="0 0 24 24",...f}=o,g=C.isValidElement(r)&&r.type==="svg",v={...o,color:s,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},S={};u||(S.viewBox=h);const _=j9(v);return m.jsxs(z9,{as:i,className:Y(_.root,a),focusable:"false",color:d,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:n,...S,...f,...g&&r.props,ownerState:v,children:[g?r.props.children:r,c?m.jsx("title",{children:c}):null]})});hm&&(hm.muiName="SvgIcon");function te(e,t){function n(o,r){return m.jsx(hm,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return n.muiName=hm.muiName,C.memo(C.forwardRef(n))}function K4(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function hb(e,t){return hb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},hb(e,t)}function Z4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hb(e,t)}const k2={disabled:!1},fm=p.createContext(null);var R9=function(t){return t.scrollTop},Qd="unmounted",ii="exited",li="entering",kl="entered",fb="exiting",ca=function(e){Z4(t,e);function t(o,r){var a;a=e.call(this,o,r)||this;var s=r,i=s&&!s.isMounting?o.enter:o.appear,l;return a.appearStatus=null,o.in?i?(l=ii,a.appearStatus=li):l=kl:o.unmountOnExit||o.mountOnEnter?l=Qd:l=ii,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,a){var s=r.in;return s&&a.status===Qd?{status:ii}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var a=null;if(r!==this.props){var s=this.state.status;this.props.in?s!==li&&s!==kl&&(a=li):(s===li||s===kl)&&(a=fb)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,s,i;return a=s=i=r,r!=null&&typeof r!="number"&&(a=r.exit,s=r.enter,i=r.appear!==void 0?r.appear:s),{exit:a,enter:s,appear:i}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===li){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:eh.findDOMNode(this);s&&R9(s)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ii&&this.setState({status:Qd})},n.performEnter=function(r){var a=this,s=this.props.enter,i=this.context?this.context.isMounting:r,l=this.props.nodeRef?[i]:[eh.findDOMNode(this),i],d=l[0],u=l[1],c=this.getTimeouts(),h=i?c.appear:c.enter;if(!r&&!s||k2.disabled){this.safeSetState({status:kl},function(){a.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:li},function(){a.props.onEntering(d,u),a.onTransitionEnd(h,function(){a.safeSetState({status:kl},function(){a.props.onEntered(d,u)})})})},n.performExit=function(){var r=this,a=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:eh.findDOMNode(this);if(!a||k2.disabled){this.safeSetState({status:ii},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:fb},function(){r.props.onExiting(i),r.onTransitionEnd(s.exit,function(){r.safeSetState({status:ii},function(){r.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,a){a=this.setNextCallback(a),this.setState(r,a)},n.setNextCallback=function(r){var a=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,a.nextCallback=null,r(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(r,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:eh.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],u=l[1];this.props.addEndListener(d,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Qd)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 i=K4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(fm.Provider,{value:null},typeof s=="function"?s(r,i):p.cloneElement(p.Children.only(s),i))},t}(p.Component);ca.contextType=fm;ca.propTypes={};function fl(){}ca.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fl,onEntering:fl,onEntered:fl,onExit:fl,onExiting:fl,onExited:fl};ca.UNMOUNTED=Qd;ca.EXITED=ii;ca.ENTERING=li;ca.ENTERED=kl;ca.EXITING=fb;function I9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V1(e,t){var n=function(a){return t&&C.isValidElement(a)?t(a):a},o=Object.create(null);return e&&C.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function L9(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var o=Object.create(null),r=[];for(var a in e)a in t?r.length&&(o[a]=r,r=[]):r.push(a);var s,i={};for(var l in t){if(o[l])for(s=0;se.scrollTop;function mm(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function U9(e){return ie("MuiPaper",e)}se("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 W9=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,a={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return ce(a,U9,r)},V9=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(pe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),qs=C.forwardRef(function(t,n){var f;const o=de({props:t,name:"MuiPaper"}),r=qa(),{className:a,component:s="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=o,c={...o,component:s,elevation:i,square:l,variant:d},h=W9(c);return m.jsx(V9,{as:s,ownerState:c,className:Y(h.root,a),ref:n,...u,style:{...d==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[i],...r.vars&&{"--Paper-overlay":(f=r.vars.overlays)==null?void 0:f[i]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Fe("#fff",pb(i))}, ${Fe("#fff",pb(i))})`}},...u.style}})});function Un(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:a,internalForwardedProps:s,...i}=t,{component:l,slots:d={[e]:void 0},slotProps:u={[e]:void 0},...c}=a,h=d[e]||o,f=L4(u[e],r),{props:{component:g,...v},internalRef:S}=I4({className:n,...i,externalForwardedProps:e==="root"?c:void 0,externalSlotProps:f}),_=Kt(S,f==null?void 0:f.ref,t.ref),b=e==="root"?g||l:g,y=R4(h,{...e==="root"&&!l&&!d[e]&&s,...e!=="root"&&!d[e]&&s,...v,...b&&{as:b},ref:_},r);return[h,y]}class gm{constructor(){F(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new gm}static use(){const t=N4(gm.create).current,[n,o]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=o,C.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=q9(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function G9(){return gm.use()}function q9(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function X9(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:a,rippleSize:s,in:i,onExited:l,timeout:d}=e,[u,c]=C.useState(!1),h=Y(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),f={width:s,height:s,top:-(s/2)+a,left:-(s/2)+r},g=Y(n.child,u&&n.childLeaving,o&&n.childPulsate);return!i&&!u&&c(!0),C.useEffect(()=>{if(!i&&l!=null){const v=setTimeout(l,d);return()=>{clearTimeout(v)}}},[l,i,d]),m.jsx("span",{className:h,style:f,children:m.jsx("span",{className:g})})}const Xo=se("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),mb=550,J9=80,Y9=Gs` 0% { transform: scale(0); opacity: 0.1; @@ -112,7 +112,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann transform: scale(1); opacity: 0.3; } -`,Y9=Gs` +`,K9=Gs` 0% { opacity: 1; } @@ -120,7 +120,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { opacity: 0; } -`,K9=Gs` +`,Z9=Gs` 0% { transform: scale(1); } @@ -132,15 +132,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: scale(1); } -`,Z9=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Q9=G(q9,{name:"MuiTouchRipple",slot:"Ripple"})` +`,Q9=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),eI=G(X9,{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; &.${Xo.rippleVisible} { opacity: 0.3; transform: scale(1); - animation-name: ${J9}; - animation-duration: ${fb}ms; + animation-name: ${Y9}; + animation-duration: ${mb}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -159,8 +159,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann & .${Xo.childLeaving} { opacity: 0; - animation-name: ${Y9}; - animation-duration: ${fb}ms; + animation-name: ${K9}; + animation-duration: ${mb}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -169,14 +169,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann /* @noflip */ left: 0px; top: 0; - animation-name: ${K9}; + animation-name: ${Z9}; animation-duration: 2500ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } -`,eI=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:s,...i}=o,[l,d]=C.useState([]),u=C.useRef(0),c=C.useRef(null);C.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);const h=C.useRef(!1),f=gi(),g=C.useRef(null),v=C.useRef(null),S=C.useCallback(w=>{const{pulsate:$,rippleX:k,rippleY:T,rippleSize:O,cb:D}=w;d(x=>[...x,m.jsx(Q9,{classes:{ripple:Y(a.ripple,Xo.ripple),rippleVisible:Y(a.rippleVisible,Xo.rippleVisible),ripplePulsate:Y(a.ripplePulsate,Xo.ripplePulsate),child:Y(a.child,Xo.child),childLeaving:Y(a.childLeaving,Xo.childLeaving),childPulsate:Y(a.childPulsate,Xo.childPulsate)},timeout:fb,pulsate:$,rippleX:k,rippleY:T,rippleSize:O},u.current)]),u.current+=1,c.current=D},[a]),_=C.useCallback((w={},$={},k=()=>{})=>{const{pulsate:T=!1,center:O=r||$.pulsate,fakeElement:D=!1}=$;if((w==null?void 0:w.type)==="mousedown"&&h.current){h.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(h.current=!0);const x=D?null:v.current,A=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,I,j;if(O||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)R=Math.round(A.width/2),I=Math.round(A.height/2);else{const{clientX:N,clientY:M}=w.touches&&w.touches.length>0?w.touches[0]:w;R=Math.round(N-A.left),I=Math.round(M-A.top)}if(O)j=Math.sqrt((2*A.width**2+A.height**2)/3),j%2===0&&(j+=1);else{const N=Math.max(Math.abs((x?x.clientWidth:0)-R),R)*2+2,M=Math.max(Math.abs((x?x.clientHeight:0)-I),I)*2+2;j=Math.sqrt(N**2+M**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{S({pulsate:T,rippleX:R,rippleY:I,rippleSize:j,cb:k})},f.start(X9,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:T,rippleX:R,rippleY:I,rippleSize:j,cb:k})},[r,S,f]),b=C.useCallback(()=>{_({},{pulsate:!0})},[_]),y=C.useCallback((w,$)=>{if(f.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,f.start(0,()=>{y(w,$)});return}g.current=null,d(k=>k.length>0?k.slice(1):k),c.current=$},[f]);return C.useImperativeHandle(n,()=>({pulsate:b,start:_,stop:y}),[b,_,y]),m.jsx(Z9,{className:Y(Xo.root,a.root,s),ref:v,...i,children:m.jsx(V1,{component:null,exit:!0,children:l})})});function tI(e){return ie("MuiButtonBase",e)}const nI=se("MuiButtonBase",["root","disabled","focusVisible"]),oI=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,s=ce({root:["root",t&&"disabled",n&&"focusVisible"]},tI,r);return n&&o&&(s.root+=` ${o}`),s},rI=G("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${nI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lo=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:s,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:g="a",onBlur:v,onClick:S,onContextMenu:_,onDragLeave:b,onFocus:y,onFocusVisible:w,onKeyDown:$,onKeyUp:k,onMouseDown:T,onMouseLeave:O,onMouseUp:D,onTouchEnd:x,onTouchMove:A,onTouchStart:R,tabIndex:I=0,TouchRippleProps:j,touchRippleRef:N,type:M,...P}=o,H=C.useRef(null),B=V9(),Z=Kt(B.ref,N),[oe,ve]=C.useState(!1);d&&oe&&ve(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{ve(!0),H.current.focus()}}),[]);const fe=B.shouldMount&&!u&&!d;C.useEffect(()=>{oe&&h&&!u&&B.pulsate()},[u,h,oe,B]);const le=ba(B,"start",T,c),Se=ba(B,"stop",_,c),De=ba(B,"stop",b,c),et=ba(B,"stop",D,c),Ge=ba(B,"stop",_e=>{oe&&_e.preventDefault(),O&&O(_e)},c),qe=ba(B,"start",R,c),xe=ba(B,"stop",x,c),Ee=ba(B,"stop",A,c),me=ba(B,"stop",_e=>{dm(_e.target)||ve(!1),v&&v(_e)},!1),ot=fo(_e=>{H.current||(H.current=_e.currentTarget),dm(_e.target)&&(ve(!0),w&&w(_e)),y&&y(_e)}),Ce=()=>{const _e=H.current;return l&&l!=="button"&&!(_e.tagName==="A"&&_e.href)},ze=fo(_e=>{h&&!_e.repeat&&oe&&_e.key===" "&&B.stop(_e,()=>{B.start(_e)}),_e.target===_e.currentTarget&&Ce()&&_e.key===" "&&_e.preventDefault(),$&&$(_e),_e.target===_e.currentTarget&&Ce()&&_e.key==="Enter"&&!d&&(_e.preventDefault(),S&&S(_e))}),X=fo(_e=>{h&&_e.key===" "&&oe&&!_e.defaultPrevented&&B.stop(_e,()=>{B.pulsate(_e)}),k&&k(_e),S&&_e.target===_e.currentTarget&&Ce()&&_e.key===" "&&!_e.defaultPrevented&&S(_e)});let ee=l;ee==="button"&&(P.href||P.to)&&(ee=g);const $e={};ee==="button"?($e.type=M===void 0?"button":M,$e.disabled=d):(!P.href&&!P.to&&($e.role="button"),d&&($e["aria-disabled"]=d));const Ae=Kt(n,H),Xe={...o,centerRipple:a,component:l,disabled:d,disableRipple:u,disableTouchRipple:c,focusRipple:h,tabIndex:I,focusVisible:oe},Be=oI(Xe);return m.jsxs(rI,{as:ee,className:Y(Be.root,i),ownerState:Xe,onBlur:me,onClick:S,onContextMenu:Se,onFocus:ot,onKeyDown:ze,onKeyUp:X,onMouseDown:le,onMouseLeave:Ge,onMouseUp:et,onDragLeave:De,onTouchEnd:xe,onTouchMove:Ee,onTouchStart:qe,ref:Ae,tabIndex:d?-1:I,type:M,...$e,...P,children:[s,fe?m.jsx(eI,{ref:Z,center:a,...j}):null]})});function ba(e,t,n,o=!1){return fo(r=>(n&&n(r),o||e[t](r),!0))}function aI(e){return typeof e.main=="string"}function sI(e,t=[]){if(!aI(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Pt(e=[]){return([,t])=>t&&sI(t,e)}function iI(e){return ie("MuiIconButton",e)}const lI=se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),cI=e=>{const{classes:t,disabled:n,color:o,edge:r,size:a}=e,s={root:["root",n&&"disabled",o!=="default"&&`color${U(o)}`,r&&`edge${U(r)}`,`size${U(a)}`]};return ce(s,iI,t)},dI=G(Lo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${U(n.color)}`],n.edge&&t[`edge${U(n.edge)}`],t[`size${U(n.size)}`]]}})(pe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.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}}]})),pe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${lI.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),ue=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiIconButton"}),{edge:r=!1,children:a,className:s,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",...c}=o,h={...o,edge:r,color:i,disabled:l,disableFocusRipple:d,size:u},f=cI(h);return m.jsx(dI,{className:Y(f.root,s),centerRipple:!0,focusRipple:!d,disabled:l,ref:n,...c,ownerState:h,children:a})});function uI(e){return ie("MuiTypography",e)}const k2=se("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),pI={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},hI=A9(),fI=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:a,classes:s}=e,i={root:["root",a,e.align!=="inherit"&&`align${U(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return ce(i,uI,s)},mI=G("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${U(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(pe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Pt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${U(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),E2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ja=C.forwardRef(function(t,n){const{color:o,...r}=de({props:t,name:"MuiTypography"}),a=!pI[o],s=hI({...r,...a&&{color:o}}),{align:i="inherit",className:l,component:d,gutterBottom:u=!1,noWrap:c=!1,paragraph:h=!1,variant:f="body1",variantMapping:g=E2,...v}=s,S={...s,align:i,color:o,className:l,component:d,gutterBottom:u,noWrap:c,paragraph:h,variant:f,variantMapping:g},_=d||(h?"p":g[f]||E2[f])||"span",b=fI(S);return m.jsx(mI,{as:_,ref:n,className:Y(b.root,l),...v,ownerState:S,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...v.style}})});function gI(e){return ie("MuiAppBar",e)}se("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _I=e=>{const{color:t,position:n,classes:o}=e,r={root:["root",`color${U(t)}`,`position${U(n)}`]};return ce(r,gI,o)},T2=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,vI=G(qs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${U(n.position)}`],t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).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":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Pt(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?T2(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?T2(e.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)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Z4=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiAppBar"}),{className:r,color:a="primary",enableColorOnDark:s=!1,position:i="fixed",...l}=o,d={...o,color:a,position:i,enableColorOnDark:s},u=_I(d);return m.jsx(vI,{square:!0,component:"header",ownerState:d,elevation:4,className:Y(u.root,r,i==="fixed"&&"mui-fixed"),ref:n,...l})});var mo="top",dr="bottom",ur="right",go="left",G1="auto",jp=[mo,dr,ur,go],Rc="start",op="end",yI="clippingParents",Q4="viewport",Od="popper",bI="reference",O2=jp.reduce(function(e,t){return e.concat([t+"-"+Rc,t+"-"+op])},[]),e5=[].concat(jp,[G1]).reduce(function(e,t){return e.concat([t,t+"-"+Rc,t+"-"+op])},[]),wI="beforeRead",SI="read",xI="afterRead",CI="beforeMain",$I="main",kI="afterMain",EI="beforeWrite",TI="write",OI="afterWrite",DI=[wI,SI,xI,CI,$I,kI,EI,TI,OI];function aa(e){return e?(e.nodeName||"").toLowerCase():null}function Fo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ai(e){var t=Fo(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Fo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function q1(e){if(typeof ShadowRoot>"u")return!1;var t=Fo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function AI(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!sr(a)||!aa(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(s){var i=r[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function MI(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],a=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=s.reduce(function(l,d){return l[d]="",l},{});!sr(r)||!aa(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}const NI={name:"applyStyles",enabled:!0,phase:"write",fn:AI,effect:MI,requires:["computeStyles"]};function ta(e){return e.split("-")[0]}var Ci=Math.max,_m=Math.min,Ic=Math.round;function mb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function t5(){return!/^((?!chrome|android).)*safari/i.test(mb())}function Lc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,a=1;t&&sr(e)&&(r=e.offsetWidth>0&&Ic(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ic(o.height)/e.offsetHeight||1);var s=Ai(e)?Fo(e):window,i=s.visualViewport,l=!t5()&&n,d=(o.left+(l&&i?i.offsetLeft:0))/r,u=(o.top+(l&&i?i.offsetTop:0))/a,c=o.width/r,h=o.height/a;return{width:c,height:h,top:u,right:d+c,bottom:u+h,left:d,x:d,y:u}}function X1(e){var t=Lc(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function n5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&q1(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Va(e){return Fo(e).getComputedStyle(e)}function jI(e){return["table","td","th"].indexOf(aa(e))>=0}function Xs(e){return((Ai(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yg(e){return aa(e)==="html"?e:e.assignedSlot||e.parentNode||(q1(e)?e.host:null)||Xs(e)}function D2(e){return!sr(e)||Va(e).position==="fixed"?null:e.offsetParent}function zI(e){var t=/firefox/i.test(mb()),n=/Trident/i.test(mb());if(n&&sr(e)){var o=Va(e);if(o.position==="fixed")return null}var r=Yg(e);for(q1(r)&&(r=r.host);sr(r)&&["html","body"].indexOf(aa(r))<0;){var a=Va(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function zp(e){for(var t=Fo(e),n=D2(e);n&&jI(n)&&Va(n).position==="static";)n=D2(n);return n&&(aa(n)==="html"||aa(n)==="body"&&Va(n).position==="static")?t:n||zI(e)||t}function J1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ku(e,t,n){return Ci(e,_m(t,n))}function RI(e,t,n){var o=ku(e,t,n);return o>n?n:o}function o5(){return{top:0,right:0,bottom:0,left:0}}function r5(e){return Object.assign({},o5(),e)}function a5(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var II=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,r5(typeof t!="number"?t:a5(t,jp))};function LI(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=ta(n.placement),l=J1(i),d=[go,ur].indexOf(i)>=0,u=d?"height":"width";if(!(!a||!s)){var c=II(r.padding,n),h=X1(a),f=l==="y"?mo:go,g=l==="y"?dr:ur,v=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],S=s[l]-n.rects.reference[l],_=zp(a),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,y=v/2-S/2,w=c[f],$=b-h[u]-c[g],k=b/2-h[u]/2+y,T=ku(w,k,$),O=l;n.modifiersData[o]=(t={},t[O]=T,t.centerOffset=T-k,t)}}function FI(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||n5(t.elements.popper,r)&&(t.elements.arrow=r))}const PI={name:"arrow",enabled:!0,phase:"main",fn:LI,effect:FI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fc(e){return e.split("-")[1]}var BI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function HI(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Ic(n*r)/r||0,y:Ic(o*r)/r||0}}function A2(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,c=e.isFixed,h=s.x,f=h===void 0?0:h,g=s.y,v=g===void 0?0:g,S=typeof u=="function"?u({x:f,y:v}):{x:f,y:v};f=S.x,v=S.y;var _=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=go,w=mo,$=window;if(d){var k=zp(n),T="clientHeight",O="clientWidth";if(k===Fo(n)&&(k=Xs(n),Va(k).position!=="static"&&i==="absolute"&&(T="scrollHeight",O="scrollWidth")),k=k,r===mo||(r===go||r===ur)&&a===op){w=dr;var D=c&&k===$&&$.visualViewport?$.visualViewport.height:k[T];v-=D-o.height,v*=l?1:-1}if(r===go||(r===mo||r===dr)&&a===op){y=ur;var x=c&&k===$&&$.visualViewport?$.visualViewport.width:k[O];f-=x-o.width,f*=l?1:-1}}var A=Object.assign({position:i},d&&BI),R=u===!0?HI({x:f,y:v},Fo(n)):{x:f,y:v};if(f=R.x,v=R.y,l){var I;return Object.assign({},A,(I={},I[w]=b?"0":"",I[y]=_?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",I))}return Object.assign({},A,(t={},t[w]=b?v+"px":"",t[y]=_?f+"px":"",t.transform="",t))}function UI(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,d={placement:ta(t.placement),variation:Fc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,A2(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,A2(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const WI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UI,data:{}};var bh={passive:!0};function VI(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=r===void 0?!0:r,s=o.resize,i=s===void 0?!0:s,l=Fo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(u){u.addEventListener("scroll",n.update,bh)}),i&&l.addEventListener("resize",n.update,bh),function(){a&&d.forEach(function(u){u.removeEventListener("scroll",n.update,bh)}),i&&l.removeEventListener("resize",n.update,bh)}}const GI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:VI,data:{}};var qI={left:"right",right:"left",bottom:"top",top:"bottom"};function Sf(e){return e.replace(/left|right|bottom|top/g,function(t){return qI[t]})}var XI={start:"end",end:"start"};function M2(e){return e.replace(/start|end/g,function(t){return XI[t]})}function Y1(e){var t=Fo(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function K1(e){return Lc(Xs(e)).left+Y1(e).scrollLeft}function JI(e,t){var n=Fo(e),o=Xs(e),r=n.visualViewport,a=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){a=r.width,s=r.height;var d=t5();(d||!d&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:a,height:s,x:i+K1(e),y:l}}function YI(e){var t,n=Xs(e),o=Y1(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=Ci(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Ci(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-o.scrollLeft+K1(e),l=-o.scrollTop;return Va(r||n).direction==="rtl"&&(i+=Ci(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Z1(e){var t=Va(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function s5(e){return["html","body","#document"].indexOf(aa(e))>=0?e.ownerDocument.body:sr(e)&&Z1(e)?e:s5(Yg(e))}function Eu(e,t){var n;t===void 0&&(t=[]);var o=s5(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),a=Fo(o),s=r?[a].concat(a.visualViewport||[],Z1(o)?o:[]):o,i=t.concat(s);return r?i:i.concat(Eu(Yg(s)))}function gb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function KI(e,t){var n=Lc(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function N2(e,t,n){return t===Q4?gb(JI(e,n)):Ai(t)?KI(t,n):gb(YI(Xs(e)))}function ZI(e){var t=Eu(Yg(e)),n=["absolute","fixed"].indexOf(Va(e).position)>=0,o=n&&sr(e)?zp(e):e;return Ai(o)?t.filter(function(r){return Ai(r)&&n5(r,o)&&aa(r)!=="body"}):[]}function QI(e,t,n,o){var r=t==="clippingParents"?ZI(e):[].concat(t),a=[].concat(r,[n]),s=a[0],i=a.reduce(function(l,d){var u=N2(e,d,o);return l.top=Ci(u.top,l.top),l.right=_m(u.right,l.right),l.bottom=_m(u.bottom,l.bottom),l.left=Ci(u.left,l.left),l},N2(e,s,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function i5(e){var t=e.reference,n=e.element,o=e.placement,r=o?ta(o):null,a=o?Fc(o):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(r){case mo:l={x:s,y:t.y-n.height};break;case dr:l={x:s,y:t.y+t.height};break;case ur:l={x:t.x+t.width,y:i};break;case go:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var d=r?J1(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(a){case Rc:l[d]=l[d]-(t[u]/2-n[u]/2);break;case op:l[d]=l[d]+(t[u]/2-n[u]/2);break}}return l}function rp(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,a=n.strategy,s=a===void 0?e.strategy:a,i=n.boundary,l=i===void 0?yI:i,d=n.rootBoundary,u=d===void 0?Q4:d,c=n.elementContext,h=c===void 0?Od:c,f=n.altBoundary,g=f===void 0?!1:f,v=n.padding,S=v===void 0?0:v,_=r5(typeof S!="number"?S:a5(S,jp)),b=h===Od?bI:Od,y=e.rects.popper,w=e.elements[g?b:h],$=QI(Ai(w)?w:w.contextElement||Xs(e.elements.popper),l,u,s),k=Lc(e.elements.reference),T=i5({reference:k,element:y,strategy:"absolute",placement:r}),O=gb(Object.assign({},y,T)),D=h===Od?O:k,x={top:$.top-D.top+_.top,bottom:D.bottom-$.bottom+_.bottom,left:$.left-D.left+_.left,right:D.right-$.right+_.right},A=e.modifiersData.offset;if(h===Od&&A){var R=A[r];Object.keys(x).forEach(function(I){var j=[ur,dr].indexOf(I)>=0?1:-1,N=[mo,dr].indexOf(I)>=0?"y":"x";x[I]+=R[N]*j})}return x}function e7(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,d=l===void 0?e5:l,u=Fc(o),c=u?i?O2:O2.filter(function(g){return Fc(g)===u}):jp,h=c.filter(function(g){return d.indexOf(g)>=0});h.length===0&&(h=c);var f=h.reduce(function(g,v){return g[v]=rp(e,{placement:v,boundary:r,rootBoundary:a,padding:s})[ta(v)],g},{});return Object.keys(f).sort(function(g,v){return f[g]-f[v]})}function t7(e){if(ta(e)===G1)return[];var t=Sf(e);return[M2(e),t,M2(t)]}function n7(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,d=n.padding,u=n.boundary,c=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,v=n.allowedAutoPlacements,S=t.options.placement,_=ta(S),b=_===S,y=l||(b||!g?[Sf(S)]:t7(S)),w=[S].concat(y).reduce(function(le,Se){return le.concat(ta(Se)===G1?e7(t,{placement:Se,boundary:u,rootBoundary:c,padding:d,flipVariations:g,allowedAutoPlacements:v}):Se)},[]),$=t.rects.reference,k=t.rects.popper,T=new Map,O=!0,D=w[0],x=0;x=0,N=j?"width":"height",M=rp(t,{placement:A,boundary:u,rootBoundary:c,altBoundary:h,padding:d}),P=j?I?ur:go:I?dr:mo;$[N]>k[N]&&(P=Sf(P));var H=Sf(P),B=[];if(a&&B.push(M[R]<=0),i&&B.push(M[P]<=0,M[H]<=0),B.every(function(le){return le})){D=A,O=!1;break}T.set(A,B)}if(O)for(var Z=g?3:1,oe=function(Se){var De=w.find(function(et){var Ge=T.get(et);if(Ge)return Ge.slice(0,Se).every(function(qe){return qe})});if(De)return D=De,"break"},ve=Z;ve>0;ve--){var fe=oe(ve);if(fe==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const o7={name:"flip",enabled:!0,phase:"main",fn:n7,requiresIfExists:["offset"],data:{_skip:!1}};function j2(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function z2(e){return[mo,ur,dr,go].some(function(t){return e[t]>=0})}function r7(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=rp(t,{elementContext:"reference"}),i=rp(t,{altBoundary:!0}),l=j2(s,o),d=j2(i,r,a),u=z2(l),c=z2(d);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const a7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:r7};function s7(e,t,n){var o=ta(e),r=[go,mo].indexOf(o)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*r,[go,ur].indexOf(o)>=0?{x:i,y:s}:{x:s,y:i}}function i7(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=r===void 0?[0,0]:r,s=e5.reduce(function(u,c){return u[c]=s7(c,t.rects,a),u},{}),i=s[t.placement],l=i.x,d=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=s}const l7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:i7};function c7(e){var t=e.state,n=e.name;t.modifiersData[n]=i5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const d7={name:"popperOffsets",enabled:!0,phase:"read",fn:c7,data:{}};function u7(e){return e==="x"?"y":"x"}function p7(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,d=n.rootBoundary,u=n.altBoundary,c=n.padding,h=n.tether,f=h===void 0?!0:h,g=n.tetherOffset,v=g===void 0?0:g,S=rp(t,{boundary:l,rootBoundary:d,padding:c,altBoundary:u}),_=ta(t.placement),b=Fc(t.placement),y=!b,w=J1(_),$=u7(w),k=t.modifiersData.popperOffsets,T=t.rects.reference,O=t.rects.popper,D=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,x=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(k){if(a){var I,j=w==="y"?mo:go,N=w==="y"?dr:ur,M=w==="y"?"height":"width",P=k[w],H=P+S[j],B=P-S[N],Z=f?-O[M]/2:0,oe=b===Rc?T[M]:O[M],ve=b===Rc?-O[M]:-T[M],fe=t.elements.arrow,le=f&&fe?X1(fe):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:o5(),De=Se[j],et=Se[N],Ge=ku(0,T[M],le[M]),qe=y?T[M]/2-Z-Ge-De-x.mainAxis:oe-Ge-De-x.mainAxis,xe=y?-T[M]/2+Z+Ge+et+x.mainAxis:ve+Ge+et+x.mainAxis,Ee=t.elements.arrow&&zp(t.elements.arrow),me=Ee?w==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,ot=(I=A==null?void 0:A[w])!=null?I:0,Ce=P+qe-ot-me,ze=P+xe-ot,X=ku(f?_m(H,Ce):H,P,f?Ci(B,ze):B);k[w]=X,R[w]=X-P}if(i){var ee,$e=w==="x"?mo:go,Ae=w==="x"?dr:ur,Xe=k[$],Be=$==="y"?"height":"width",_e=Xe+S[$e],nn=Xe-S[Ae],K=[mo,go].indexOf(_)!==-1,ge=(ee=A==null?void 0:A[$])!=null?ee:0,Ke=K?_e:Xe-T[Be]-O[Be]-ge+x.altAxis,Te=K?Xe+T[Be]+O[Be]-ge-x.altAxis:nn,Ie=f&&K?RI(Ke,Xe,Te):ku(f?Ke:_e,Xe,f?Te:nn);k[$]=Ie,R[$]=Ie-Xe}t.modifiersData[o]=R}}const h7={name:"preventOverflow",enabled:!0,phase:"main",fn:p7,requiresIfExists:["offset"]};function f7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m7(e){return e===Fo(e)||!sr(e)?Y1(e):f7(e)}function g7(e){var t=e.getBoundingClientRect(),n=Ic(t.width)/e.offsetWidth||1,o=Ic(t.height)/e.offsetHeight||1;return n!==1||o!==1}function _7(e,t,n){n===void 0&&(n=!1);var o=sr(t),r=sr(t)&&g7(t),a=Xs(t),s=Lc(e,r,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((aa(t)!=="body"||Z1(a))&&(i=m7(t)),sr(t)?(l=Lc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=K1(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function v7(e){var t=new Map,n=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&r(l)}}),o.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),o}function y7(e){var t=v7(e);return DI.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function b7(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function w7(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var R2={placement:"bottom",modifiers:[],strategy:"absolute"};function I2(){for(var e=arguments.length,t=new Array(e),n=0;n{a||i($7(r)||document.body)},[r,a]),Io(()=>{if(s&&!a)return lb(n,s),()=>{lb(n,null)}},[n,s,a]),a){if(C.isValidElement(o)){const d={ref:l};return C.cloneElement(o,d)}return o}return s&&A0.createPortal(o,s)});function k7(e){return ie("MuiPopper",e)}se("MuiPopper",["root"]);function E7(e,t){if(t==="ltr")return e;switch(e){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 e}}function _b(e){return typeof e=="function"?e():e}function T7(e){return e.nodeType!==void 0}const O7=e=>{const{classes:t}=e;return ce({root:["root"]},k7,t)},D7={},A7=C.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:a,disablePortal:s,modifiers:i,open:l,placement:d,popperOptions:u,popperRef:c,slotProps:h={},slots:f={},TransitionProps:g,ownerState:v,...S}=t,_=C.useRef(null),b=Kt(_,n),y=C.useRef(null),w=Kt(y,c),$=C.useRef(w);Io(()=>{$.current=w},[w]),C.useImperativeHandle(c,()=>y.current,[]);const k=E7(d,a),[T,O]=C.useState(k),[D,x]=C.useState(_b(o));C.useEffect(()=>{y.current&&y.current.forceUpdate()}),C.useEffect(()=>{o&&x(_b(o))},[o]),Io(()=>{if(!D||!l)return;const N=H=>{O(H.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{N(H)}}];i!=null&&(M=M.concat(i)),u&&u.modifiers!=null&&(M=M.concat(u.modifiers));const P=C7(D,_.current,{placement:k,...u,modifiers:M});return $.current(P),()=>{P.destroy(),$.current(null)}},[D,s,i,l,u,k]);const A={placement:T};g!==null&&(A.TransitionProps=g);const R=O7(t),I=f.root??"div",j=Ar({elementType:I,externalSlotProps:h.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:R.root});return m.jsx(I,{...j,children:typeof r=="function"?r(A):r})}),M7=C.forwardRef(function(t,n){const{anchorEl:o,children:r,container:a,direction:s="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:d,open:u,placement:c="bottom",popperOptions:h=D7,popperRef:f,style:g,transition:v=!1,slotProps:S={},slots:_={},...b}=t,[y,w]=C.useState(!0),$=()=>{w(!1)},k=()=>{w(!0)};if(!l&&!u&&(!v||y))return null;let T;if(a)T=a;else if(o){const x=_b(o);T=x&&T7(x)?In(x).body:In(null).body}const O=!u&&l&&(!v||y)?"none":void 0,D=v?{in:u,onEnter:$,onExited:k}:void 0;return m.jsx(l5,{disablePortal:i,container:T,children:m.jsx(A7,{anchorEl:o,direction:s,disablePortal:i,modifiers:d,ref:n,open:v?!y:u,placement:c,popperOptions:h,popperRef:f,slotProps:S,slots:_,...b,style:{position:"fixed",top:0,left:0,display:O,...g},TransitionProps:D,children:r})})}),N7=G(M7,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),c5=C.forwardRef(function(t,n){const o=ad(),r=de({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:i,componentsProps:l,container:d,disablePortal:u,keepMounted:c,modifiers:h,open:f,placement:g,popperOptions:v,popperRef:S,transition:_,slots:b,slotProps:y,...w}=r,$=(b==null?void 0:b.root)??(i==null?void 0:i.Root),k={anchorEl:a,container:d,disablePortal:u,keepMounted:c,modifiers:h,open:f,placement:g,popperOptions:v,popperRef:S,transition:_,...w};return m.jsx(N7,{as:s,direction:o?"rtl":"ltr",slots:{root:$},slotProps:y??l,...k,ref:n})}),j7=te(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 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 12 17 15.59z"}),"Cancel");function z7(e){return ie("MuiChip",e)}const Ze=se("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),R7=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:a,onDelete:s,clickable:i,variant:l}=e,d={root:["root",l,n&&"disabled",`size${U(o)}`,`color${U(r)}`,i&&"clickable",i&&`clickableColor${U(r)}`,s&&"deletable",s&&`deletableColor${U(r)}`,`${l}${U(r)}`],label:["label",`label${U(o)}`],avatar:["avatar",`avatar${U(o)}`,`avatarColor${U(r)}`],icon:["icon",`icon${U(o)}`,`iconColor${U(a)}`],deleteIcon:["deleteIcon",`deleteIcon${U(o)}`,`deleteIconColor${U(r)}`,`deleteIcon${U(l)}Color${U(r)}`]};return ce(d,z7,t)},I7=G("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:a,onDelete:s,size:i,variant:l}=n;return[{[`& .${Ze.avatar}`]:t.avatar},{[`& .${Ze.avatar}`]:t[`avatar${U(i)}`]},{[`& .${Ze.avatar}`]:t[`avatarColor${U(o)}`]},{[`& .${Ze.icon}`]:t.icon},{[`& .${Ze.icon}`]:t[`icon${U(i)}`]},{[`& .${Ze.icon}`]:t[`iconColor${U(r)}`]},{[`& .${Ze.deleteIcon}`]:t.deleteIcon},{[`& .${Ze.deleteIcon}`]:t[`deleteIcon${U(i)}`]},{[`& .${Ze.deleteIcon}`]:t[`deleteIconColor${U(o)}`]},{[`& .${Ze.deleteIcon}`]:t[`deleteIcon${U(l)}Color${U(o)}`]},t.root,t[`size${U(i)}`],t[`color${U(o)}`],a&&t.clickable,a&&o!=="default"&&t[`clickableColor${U(o)})`],s&&t.deletable,s&&o!=="default"&&t[`deletableColor${U(o)}`],t[l],t[`${l}${U(o)}`]]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ze.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ze.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ze.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ze.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ze.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ze.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ze.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Fe(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ze.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ze.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Pt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Fe(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ze.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ze.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Pt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ze.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Pt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ze.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ze.avatar}`]:{marginLeft:4},[`& .${Ze.avatarSmall}`]:{marginLeft:2},[`& .${Ze.icon}`]:{marginLeft:4},[`& .${Ze.iconSmall}`]:{marginLeft:2},[`& .${Ze.deleteIcon}`]:{marginRight:5},[`& .${Ze.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Pt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Fe(e.palette[n].main,.7)}`,[`&.${Ze.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Fe(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),L7=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${U(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function L2(e){return e.key==="Backspace"||e.key==="Delete"}const F7=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiChip"}),{avatar:r,className:a,clickable:s,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:c,label:h,onClick:f,onDelete:g,onKeyDown:v,onKeyUp:S,size:_="medium",variant:b="filled",tabIndex:y,skipFocusWhenDisabled:w=!1,...$}=o,k=C.useRef(null),T=Kt(k,n),O=B=>{B.stopPropagation(),g&&g(B)},D=B=>{B.currentTarget===B.target&&L2(B)&&B.preventDefault(),v&&v(B)},x=B=>{B.currentTarget===B.target&&g&&L2(B)&&g(B),S&&S(B)},A=s!==!1&&f?!0:s,R=A||g?Lo:l||"div",I={...o,component:R,disabled:u,size:_,color:i,iconColor:C.isValidElement(c)&&c.props.color||i,onDelete:!!g,clickable:A,variant:b},j=R7(I),N=R===Lo?{component:l||"div",focusVisibleClassName:j.focusVisible,...g&&{disableRipple:!0}}:{};let M=null;g&&(M=d&&C.isValidElement(d)?C.cloneElement(d,{className:Y(d.props.className,j.deleteIcon),onClick:O}):m.jsx(j7,{className:Y(j.deleteIcon),onClick:O}));let P=null;r&&C.isValidElement(r)&&(P=C.cloneElement(r,{className:Y(j.avatar,r.props.className)}));let H=null;return c&&C.isValidElement(c)&&(H=C.cloneElement(c,{className:Y(j.icon,c.props.className)})),m.jsxs(I7,{as:R,className:Y(j.root,a),disabled:A&&u?!0:void 0,onClick:f,onKeyDown:D,onKeyUp:x,ref:T,tabIndex:w&&u?-1:y,ownerState:I,...N,...$,children:[P||H,m.jsx(L7,{className:Y(j.label),ownerState:I,children:h}),M]})});function wh(e){return parseInt(e,10)||0}const P7={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function B7(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const H7=C.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:a=1,style:s,value:i,...l}=t,{current:d}=C.useRef(i!=null),u=C.useRef(null),c=Kt(n,u),h=C.useRef(null),f=C.useRef(null),g=C.useCallback(()=>{const _=u.current,y=Dr(_).getComputedStyle(_);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const w=f.current;w.style.width=y.width,w.value=_.value||t.placeholder||"x",w.value.slice(-1)===` -`&&(w.value+=" ");const $=y.boxSizing,k=wh(y.paddingBottom)+wh(y.paddingTop),T=wh(y.borderBottomWidth)+wh(y.borderTopWidth),O=w.scrollHeight;w.value="x";const D=w.scrollHeight;let x=O;a&&(x=Math.max(Number(a)*D,x)),r&&(x=Math.min(Number(r)*D,x)),x=Math.max(x,D);const A=x+($==="border-box"?k+T:0),R=Math.abs(x-O)<=1;return{outerHeightStyle:A,overflowing:R}},[r,a,t.placeholder]),v=C.useCallback(()=>{const _=g();if(B7(_))return;const b=_.outerHeightStyle,y=u.current;h.current!==b&&(h.current=b,y.style.height=`${b}px`),y.style.overflow=_.overflowing?"hidden":""},[g]);Io(()=>{const _=()=>{v()};let b;const y=Gg(_),w=u.current,$=Dr(w);$.addEventListener("resize",y);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(_),k.observe(w)),()=>{y.clear(),cancelAnimationFrame(b),$.removeEventListener("resize",y),k&&k.disconnect()}},[g,v]),Io(()=>{v()});const S=_=>{d||v(),o&&o(_)};return m.jsxs(C.Fragment,{children:[m.jsx("textarea",{value:i,onChange:S,ref:c,rows:a,style:s,...l}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...P7.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function ap(e){return typeof e=="string"}function Js({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const Q1=C.createContext(void 0);function da(){return C.useContext(Q1)}function F2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vm(e,t=!1){return e&&(F2(e.value)&&e.value!==""||t&&F2(e.defaultValue)&&e.defaultValue!=="")}function U7(e){return e.startAdornment}function W7(e){return ie("MuiInputBase",e)}const Pc=se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var P2;const Kg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${U(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Zg=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},V7=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:a,focused:s,formControl:i,fullWidth:l,hiddenLabel:d,multiline:u,readOnly:c,size:h,startAdornment:f,type:g}=e,v={root:["root",`color${U(n)}`,o&&"disabled",r&&"error",l&&"fullWidth",s&&"focused",i&&"formControl",h&&h!=="medium"&&`size${U(h)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",d&&"hiddenLabel",c&&"readOnly"],input:["input",o&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",c&&"readOnly"]};return ce(v,W7,t)},Qg=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Kg})(pe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Pc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),e_=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zg})(pe(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.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":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Pc.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Pc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).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"}}]}})),B2=D9({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ew=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:a,autoFocus:s,className:i,color:l,components:d={},componentsProps:u={},defaultValue:c,disabled:h,disableInjectingGlobalStyles:f,endAdornment:g,error:v,fullWidth:S=!1,id:_,inputComponent:b="input",inputProps:y={},inputRef:w,margin:$,maxRows:k,minRows:T,multiline:O=!1,name:D,onBlur:x,onChange:A,onClick:R,onFocus:I,onKeyDown:j,onKeyUp:N,placeholder:M,readOnly:P,renderSuffix:H,rows:B,size:Z,slotProps:oe={},slots:ve={},startAdornment:fe,type:le="text",value:Se,...De}=o,et=y.value!=null?y.value:Se,{current:Ge}=C.useRef(et!=null),qe=C.useRef(),xe=C.useCallback(we=>{},[]),Ee=Kt(qe,w,y.ref,xe),[me,ot]=C.useState(!1),Ce=da(),ze=Js({props:o,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ze.focused=Ce?Ce.focused:me,C.useEffect(()=>{!Ce&&h&&me&&(ot(!1),x&&x())},[Ce,h,me,x]);const X=Ce&&Ce.onFilled,ee=Ce&&Ce.onEmpty,$e=C.useCallback(we=>{vm(we)?X&&X():ee&&ee()},[X,ee]);Io(()=>{Ge&&$e({value:et})},[et,$e,Ge]);const Ae=we=>{I&&I(we),y.onFocus&&y.onFocus(we),Ce&&Ce.onFocus?Ce.onFocus(we):ot(!0)},Xe=we=>{x&&x(we),y.onBlur&&y.onBlur(we),Ce&&Ce.onBlur?Ce.onBlur(we):ot(!1)},Be=(we,...St)=>{if(!Ge){const yn=we.target||qe.current;if(yn==null)throw new Error(Ua(1));$e({value:yn.value})}y.onChange&&y.onChange(we,...St),A&&A(we,...St)};C.useEffect(()=>{$e(qe.current)},[]);const _e=we=>{qe.current&&we.currentTarget===we.target&&qe.current.focus(),R&&R(we)};let nn=b,K=y;O&&nn==="input"&&(B?K={type:void 0,minRows:B,maxRows:B,...K}:K={type:void 0,maxRows:k,minRows:T,...K},nn=H7);const ge=we=>{$e(we.animationName==="mui-auto-fill-cancel"?qe.current:{value:"x"})};C.useEffect(()=>{Ce&&Ce.setAdornedStart(!!fe)},[Ce,fe]);const Ke={...o,color:ze.color||"primary",disabled:ze.disabled,endAdornment:g,error:ze.error,focused:ze.focused,formControl:Ce,fullWidth:S,hiddenLabel:ze.hiddenLabel,multiline:O,size:ze.size,startAdornment:fe,type:le},Te=V7(Ke),Ie=ve.root||d.Root||Qg,Ue=oe.root||u.root||{},zt=ve.input||d.Input||e_;return K={...K,...oe.input??u.input},m.jsxs(C.Fragment,{children:[!f&&typeof B2=="function"&&(P2||(P2=m.jsx(B2,{}))),m.jsxs(Ie,{...Ue,ref:n,onClick:_e,...De,...!ap(Ie)&&{ownerState:{...Ke,...Ue.ownerState}},className:Y(Te.root,Ue.className,i,P&&"MuiInputBase-readOnly"),children:[fe,m.jsx(Q1.Provider,{value:null,children:m.jsx(zt,{"aria-invalid":ze.error,"aria-describedby":r,autoComplete:a,autoFocus:s,defaultValue:c,disabled:ze.disabled,id:_,onAnimationStart:ge,name:D,placeholder:M,readOnly:P,required:ze.required,rows:B,value:et,onKeyDown:j,onKeyUp:N,type:le,...K,...!ap(zt)&&{as:nn,ownerState:{...Ke,...K.ownerState}},ref:Ee,className:Y(Te.input,K.className,P&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:Be,onFocus:Ae})}),g,H?H({...ze,startAdornment:fe}):null]})]})});function G7(e){return ie("MuiInput",e)}const Dd={...Pc,...se("MuiInput",["root","underline","input"])};function q7(e){return ie("MuiOutlinedInput",e)}const Rr={...Pc,...se("MuiOutlinedInput",["root","notchedOutline","input"])};function X7(e){return ie("MuiFilledInput",e)}const Qs={...Pc,...se("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},J7=te(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Y7={entering:{opacity:1},entered:{opacity:1}},d5=C.forwardRef(function(t,n){const o=qa(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:i,easing:l,in:d,onEnter:u,onEntered:c,onEntering:h,onExit:f,onExited:g,onExiting:v,style:S,timeout:_=r,TransitionComponent:b=ca,...y}=t,w=C.useRef(null),$=Kt(w,Xi(i),n),k=j=>N=>{if(j){const M=w.current;N===void 0?j(M):j(M,N)}},T=k(h),O=k((j,N)=>{K4(j);const M=mm({style:S,timeout:_,easing:l},{mode:"enter"});j.style.webkitTransition=o.transitions.create("opacity",M),j.style.transition=o.transitions.create("opacity",M),u&&u(j,N)}),D=k(c),x=k(v),A=k(j=>{const N=mm({style:S,timeout:_,easing:l},{mode:"exit"});j.style.webkitTransition=o.transitions.create("opacity",N),j.style.transition=o.transitions.create("opacity",N),f&&f(j)}),R=k(g),I=j=>{a&&a(w.current,j)};return m.jsx(b,{appear:s,in:d,nodeRef:w,onEnter:O,onEntered:D,onEntering:T,onExit:A,onExited:R,onExiting:x,addEndListener:I,timeout:_,...y,children:(j,N)=>C.cloneElement(i,{style:{opacity:0,visibility:j==="exited"&&!d?"hidden":void 0,...Y7[j],...S,...i.props.style},ref:$,...N})})});function K7(e){return ie("MuiBackdrop",e)}se("MuiBackdrop",["root","invisible"]);const Z7=e=>{const{ownerState:t,...n}=e;return n},Q7=e=>{const{classes:t,invisible:n}=e;return ce({root:["root",n&&"invisible"]},K7,t)},eL=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.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"}}]}),u5=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiBackdrop"}),{children:r,className:a,component:s="div",invisible:i=!1,open:l,components:d={},componentsProps:u={},slotProps:c={},slots:h={},TransitionComponent:f,transitionDuration:g,...v}=o,S={...o,component:s,invisible:i},_=Q7(S),b={transition:f,root:d.Root,...h},y={...u,...c},w={slots:b,slotProps:y},[$,k]=Un("root",{elementType:eL,externalForwardedProps:w,className:Y(_.root,a),ownerState:S}),[T,O]=Un("transition",{elementType:d5,externalForwardedProps:w,ownerState:S}),D=Z7(O);return m.jsx(T,{in:l,timeout:g,...v,...D,children:m.jsx($,{"aria-hidden":!0,...k,classes:_,ref:n,children:r})})});function tL(e){const{badgeContent:t,invisible:n=!1,max:o=99,showZero:r=!1}=e,a=N4({badgeContent:t,max:o});let s=n;n===!1&&t===0&&!r&&(s=!0);const{badgeContent:i,max:l=o}=s?a:e,d=i&&Number(i)>l?`${l}+`:i;return{badgeContent:i,invisible:s,max:l,displayValue:d}}function nL(e){return ie("MuiBadge",e)}const Qa=se("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),yv=10,bv=4,oL=e=>{const{color:t,anchorOrigin:n,invisible:o,overlap:r,variant:a,classes:s={}}=e,i={root:["root"],badge:["badge",a,o&&"invisible",`anchorOrigin${U(n.vertical)}${U(n.horizontal)}`,`anchorOrigin${U(n.vertical)}${U(n.horizontal)}${U(r)}`,`overlap${U(r)}`,t!=="default"&&`color${U(t)}`]};return ce(i,nL,s)},rL=G("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),aL=G("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${U(n.anchorOrigin.vertical)}${U(n.anchorOrigin.horizontal)}${U(n.overlap)}`],n.color!=="default"&&t[`color${U(n.color)}`],n.invisible&&t.invisible]}})(pe(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:yv*2,lineHeight:1,padding:"0 6px",height:yv*2,borderRadius:yv,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Pt(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:bv,height:bv*2,minWidth:bv*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function H2(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const sp=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiBadge"}),{anchorOrigin:r,className:a,classes:s,component:i,components:l={},componentsProps:d={},children:u,overlap:c="rectangular",color:h="default",invisible:f=!1,max:g=99,badgeContent:v,slots:S,slotProps:_,showZero:b=!1,variant:y="standard",...w}=o,{badgeContent:$,invisible:k,max:T,displayValue:O}=tL({max:g,invisible:f,badgeContent:v,showZero:b}),D=N4({anchorOrigin:H2(r),color:h,overlap:c,variant:y,badgeContent:v}),x=k||$==null&&y!=="dot",{color:A=h,overlap:R=c,anchorOrigin:I,variant:j=y}=x?D:o,N=H2(I),M=j!=="dot"?O:void 0,P={...o,badgeContent:$,invisible:x,max:T,displayValue:M,showZero:b,anchorOrigin:N,color:A,overlap:R,variant:j},H=oL(P),B=(S==null?void 0:S.root)??l.Root??rL,Z=(S==null?void 0:S.badge)??l.Badge??aL,oe=(_==null?void 0:_.root)??d.root,ve=(_==null?void 0:_.badge)??d.badge,fe=Ar({elementType:B,externalSlotProps:oe,externalForwardedProps:w,additionalProps:{ref:n,as:i},ownerState:P,className:Y(oe==null?void 0:oe.className,H.root,a)}),le=Ar({elementType:Z,externalSlotProps:ve,ownerState:P,className:Y(H.badge,ve==null?void 0:ve.className)});return m.jsxs(B,{...fe,children:[u,m.jsx(Z,{...le,children:M})]})}),sL=se("MuiBox",["root"]),iL=np(),ke=VR({themeId:kr,defaultTheme:iL,defaultClassName:sL.root,generateClassName:S4.generate}),lL=te(m.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"),cL=G(Lo)(pe(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:lm(e.palette.grey[200],.12)}:{backgroundColor:lm(e.palette.grey[600],.12)}}}))),dL=G(lL)({width:24,height:16});function uL(e){const{slots:t={},slotProps:n={},...o}=e,r=e;return m.jsx("li",{children:m.jsx(cL,{focusRipple:!0,...o,ownerState:r,children:m.jsx(dL,{as:t.CollapsedIcon,ownerState:r,...n.collapsedIcon})})})}function pL(e){return ie("MuiBreadcrumbs",e)}const hL=se("MuiBreadcrumbs",["root","ol","li","separator"]),fL=e=>{const{classes:t}=e;return ce({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},pL,t)},mL=G(ja,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${hL.li}`]:t.li},t.root]})({}),gL=G("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),_L=G("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function vL(e,t,n,o){return e.reduce((r,a,s)=>(s{const O=()=>{S(!0);const D=w.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return c+u>=T.length?T:[...T.slice(0,c),m.jsx(uL,{"aria-label":d,slots:{CollapsedIcon:i.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:O},"ellipsis"),...T.slice(T.length-u,T.length)]},k=C.Children.toArray(r).filter(T=>C.isValidElement(T)).map((T,O)=>m.jsx("li",{className:b.li,children:T},`child-${O}`));return m.jsx(mL,{ref:n,component:s,color:"textSecondary",className:Y(b.root,a),ownerState:_,...g,children:m.jsx(gL,{className:b.ol,ref:w,ownerState:_,children:vL(v||h&&k.length<=h?k:$(k),b.separator,f,_)})})});function bL(e){return ie("MuiButton",e)}const ml=se("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"]),wL=C.createContext({}),SL=C.createContext(void 0),xL=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:a,classes:s}=e,i={root:["root",a,`${a}${U(t)}`,`size${U(r)}`,`${a}Size${U(r)}`,`color${U(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${U(r)}`],endIcon:["icon","endIcon",`iconSize${U(r)}`]},l=ce(i,bL,s);return{...s,...l}},p5=[{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}}}],CL=G(Lo,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${U(n.color)}`],t[`size${U(n.size)}`],t[`${n.variant}Size${U(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ml.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ml.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ml.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)",[`&.${ml.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Pt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:Fe(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ml.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ml.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),$L=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${U(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...p5]}),kL=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${U(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...p5]}),he=C.forwardRef(function(t,n){const o=C.useContext(wL),r=C.useContext(SL),a=ep(o,t),s=de({props:a,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:c=!1,disableElevation:h=!1,disableFocusRipple:f=!1,endIcon:g,focusVisibleClassName:v,fullWidth:S=!1,size:_="medium",startIcon:b,type:y,variant:w="text",...$}=s,k={...s,color:l,component:d,disabled:c,disableElevation:h,disableFocusRipple:f,fullWidth:S,size:_,type:y,variant:w},T=xL(k),O=b&&m.jsx($L,{className:T.startIcon,ownerState:k,children:b}),D=g&&m.jsx(kL,{className:T.endIcon,ownerState:k,children:g}),x=r||"";return m.jsxs(CL,{ownerState:k,className:Y(o.className,T.root,u,x),component:d,disabled:c,focusRipple:!f,focusVisibleClassName:Y(T.focusVisible,v),ref:n,type:y,...$,classes:T,children:[O,i,D]})});function EL(e){return ie("MuiCard",e)}se("MuiCard",["root"]);const TL=e=>{const{classes:t}=e;return ce({root:["root"]},EL,t)},OL=G(qs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),DL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCard"}),{className:r,raised:a=!1,...s}=o,i={...o,raised:a},l=TL(i);return m.jsx(OL,{className:Y(l.root,r),elevation:a?8:void 0,ref:n,ownerState:i,...s})});function AL(e){return ie("MuiCardActionArea",e)}const wv=se("MuiCardActionArea",["root","focusVisible","focusHighlight"]),ML=e=>{const{classes:t}=e;return ce({root:["root"],focusHighlight:["focusHighlight"]},AL,t)},NL=G(Lo,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(pe(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${wv.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${wv.focusVisible} .${wv.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),jL=G("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(pe(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),zL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCardActionArea"}),{children:r,className:a,focusVisibleClassName:s,...i}=o,l=o,d=ML(l);return m.jsxs(NL,{className:Y(d.root,a),focusVisibleClassName:Y(s,d.focusVisible),ref:n,ownerState:l,...i,children:[r,m.jsx(jL,{className:d.focusHighlight,ownerState:l})]})});function RL(e){return ie("MuiCardActions",e)}se("MuiCardActions",["root","spacing"]);const IL=e=>{const{classes:t,disableSpacing:n}=e;return ce({root:["root",!n&&"spacing"]},RL,t)},LL=G("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),FL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCardActions"}),{disableSpacing:r=!1,className:a,...s}=o,i={...o,disableSpacing:r},l=IL(i);return m.jsx(LL,{className:Y(l.root,a),ownerState:i,ref:n,...s})});function PL(e){return ie("MuiCardContent",e)}se("MuiCardContent",["root"]);const BL=e=>{const{classes:t}=e;return ce({root:["root"]},PL,t)},HL=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),UL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCardContent"}),{className:r,component:a="div",...s}=o,i={...o,component:a},l=BL(i);return m.jsx(HL,{as:a,className:Y(l.root,r),ownerState:i,ref:n,...s})});function WL(e){return ie("MuiCardMedia",e)}se("MuiCardMedia",["root","media","img"]);const VL=e=>{const{classes:t,isMediaComponent:n,isImageComponent:o}=e;return ce({root:["root",n&&"media",o&&"img"]},WL,t)},GL=G("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:o,isImageComponent:r}=n;return[t.root,o&&t.media,r&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),qL=["video","audio","picture","iframe","img"],XL=["picture","img"],JL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCardMedia"}),{children:r,className:a,component:s="div",image:i,src:l,style:d,...u}=o,c=qL.includes(s),h=!c&&i?{backgroundImage:`url("${i}")`,...d}:d,f={...o,component:s,isMediaComponent:c,isImageComponent:XL.includes(s)},g=VL(f);return m.jsx(GL,{className:Y(g.root,a),as:s,role:!c&&i?"img":void 0,ref:n,style:h,ownerState:f,src:c?i||l:void 0,...u,children:r})});function YL(e){return ie("PrivateSwitchBase",e)}se("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const KL=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,a={root:["root",n&&"checked",o&&"disabled",r&&`edge${U(r)}`],input:["input"]};return ce(a,YL,t)},ZL=G(Lo)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),QL=G("input",{shouldForwardProp:Cn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),tw=C.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:a,className:s,defaultChecked:i,disabled:l,disableFocusRipple:d=!1,edge:u=!1,icon:c,id:h,inputProps:f,inputRef:g,name:v,onBlur:S,onChange:_,onFocus:b,readOnly:y,required:w=!1,tabIndex:$,type:k,value:T,...O}=t,[D,x]=cm({controlled:r,default:!!i,name:"SwitchBase",state:"checked"}),A=da(),R=B=>{b&&b(B),A&&A.onFocus&&A.onFocus(B)},I=B=>{S&&S(B),A&&A.onBlur&&A.onBlur(B)},j=B=>{if(B.nativeEvent.defaultPrevented)return;const Z=B.target.checked;x(Z),_&&_(B,Z)};let N=l;A&&typeof N>"u"&&(N=A.disabled);const M=k==="checkbox"||k==="radio",P={...t,checked:D,disabled:N,disableFocusRipple:d,edge:u},H=KL(P);return m.jsxs(ZL,{component:"span",className:Y(H.root,s),centerRipple:!0,focusRipple:!d,disabled:N,tabIndex:null,role:void 0,onFocus:R,onBlur:I,ownerState:P,ref:n,...O,children:[m.jsx(QL,{autoFocus:o,checked:r,defaultChecked:i,className:H.input,disabled:N,id:M?h:void 0,name:v,onChange:j,readOnly:y,ref:g,required:w,ownerState:P,tabIndex:$,type:k,...k==="checkbox"&&T===void 0?{}:{value:T},...f}),D?a:c]})}),eF=te(m.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"),tF=te(m.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"),nF=te(m.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 oF(e){return ie("MuiCheckbox",e)}const Sv=se("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),rF=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,a={root:["root",n&&"indeterminate",`color${U(o)}`,`size${U(r)}`]},s=ce(a,oF,t);return{...t,...s}},aF=G(tw,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${U(n.size)}`],n.color!=="default"&&t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{[`&.${Sv.checked}, &.${Sv.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Sv.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),sF=m.jsx(tF,{}),iF=m.jsx(eF,{}),lF=m.jsx(nF,{}),Tt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCheckbox"}),{checkedIcon:r=sF,color:a="primary",icon:s=iF,indeterminate:i=!1,indeterminateIcon:l=lF,inputProps:d,size:u="medium",disableRipple:c=!1,className:h,...f}=o,g=i?l:s,v=i?l:r,S={...o,disableRipple:c,color:a,indeterminate:i,size:u},_=rF(S);return m.jsx(aF,{type:"checkbox",inputProps:{"data-indeterminate":i,...d},icon:C.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:C.cloneElement(v,{fontSize:v.props.fontSize??u}),ownerState:S,ref:n,className:Y(_.root,h),disableRipple:c,...f,classes:_})});function cF(e){return ie("MuiCircularProgress",e)}se("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const es=44,vb=Gs` +`,tI=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:s,...i}=o,[l,d]=C.useState([]),u=C.useRef(0),c=C.useRef(null);C.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);const h=C.useRef(!1),f=gi(),g=C.useRef(null),v=C.useRef(null),S=C.useCallback(w=>{const{pulsate:$,rippleX:k,rippleY:T,rippleSize:O,cb:D}=w;d(x=>[...x,m.jsx(eI,{classes:{ripple:Y(a.ripple,Xo.ripple),rippleVisible:Y(a.rippleVisible,Xo.rippleVisible),ripplePulsate:Y(a.ripplePulsate,Xo.ripplePulsate),child:Y(a.child,Xo.child),childLeaving:Y(a.childLeaving,Xo.childLeaving),childPulsate:Y(a.childPulsate,Xo.childPulsate)},timeout:mb,pulsate:$,rippleX:k,rippleY:T,rippleSize:O},u.current)]),u.current+=1,c.current=D},[a]),_=C.useCallback((w={},$={},k=()=>{})=>{const{pulsate:T=!1,center:O=r||$.pulsate,fakeElement:D=!1}=$;if((w==null?void 0:w.type)==="mousedown"&&h.current){h.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(h.current=!0);const x=D?null:v.current,A=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,I,j;if(O||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)R=Math.round(A.width/2),I=Math.round(A.height/2);else{const{clientX:N,clientY:M}=w.touches&&w.touches.length>0?w.touches[0]:w;R=Math.round(N-A.left),I=Math.round(M-A.top)}if(O)j=Math.sqrt((2*A.width**2+A.height**2)/3),j%2===0&&(j+=1);else{const N=Math.max(Math.abs((x?x.clientWidth:0)-R),R)*2+2,M=Math.max(Math.abs((x?x.clientHeight:0)-I),I)*2+2;j=Math.sqrt(N**2+M**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{S({pulsate:T,rippleX:R,rippleY:I,rippleSize:j,cb:k})},f.start(J9,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:T,rippleX:R,rippleY:I,rippleSize:j,cb:k})},[r,S,f]),b=C.useCallback(()=>{_({},{pulsate:!0})},[_]),y=C.useCallback((w,$)=>{if(f.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,f.start(0,()=>{y(w,$)});return}g.current=null,d(k=>k.length>0?k.slice(1):k),c.current=$},[f]);return C.useImperativeHandle(n,()=>({pulsate:b,start:_,stop:y}),[b,_,y]),m.jsx(Q9,{className:Y(Xo.root,a.root,s),ref:v,...i,children:m.jsx(G1,{component:null,exit:!0,children:l})})});function nI(e){return ie("MuiButtonBase",e)}const oI=se("MuiButtonBase",["root","disabled","focusVisible"]),rI=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,s=ce({root:["root",t&&"disabled",n&&"focusVisible"]},nI,r);return n&&o&&(s.root+=` ${o}`),s},aI=G("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${oI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lo=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:s,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:g="a",onBlur:v,onClick:S,onContextMenu:_,onDragLeave:b,onFocus:y,onFocusVisible:w,onKeyDown:$,onKeyUp:k,onMouseDown:T,onMouseLeave:O,onMouseUp:D,onTouchEnd:x,onTouchMove:A,onTouchStart:R,tabIndex:I=0,TouchRippleProps:j,touchRippleRef:N,type:M,...P}=o,H=C.useRef(null),B=G9(),Z=Kt(B.ref,N),[oe,ve]=C.useState(!1);d&&oe&&ve(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{ve(!0),H.current.focus()}}),[]);const fe=B.shouldMount&&!u&&!d;C.useEffect(()=>{oe&&h&&!u&&B.pulsate()},[u,h,oe,B]);const le=ba(B,"start",T,c),Se=ba(B,"stop",_,c),De=ba(B,"stop",b,c),et=ba(B,"stop",D,c),Ge=ba(B,"stop",_e=>{oe&&_e.preventDefault(),O&&O(_e)},c),qe=ba(B,"start",R,c),xe=ba(B,"stop",x,c),Ee=ba(B,"stop",A,c),me=ba(B,"stop",_e=>{dm(_e.target)||ve(!1),v&&v(_e)},!1),ot=fo(_e=>{H.current||(H.current=_e.currentTarget),dm(_e.target)&&(ve(!0),w&&w(_e)),y&&y(_e)}),Ce=()=>{const _e=H.current;return l&&l!=="button"&&!(_e.tagName==="A"&&_e.href)},ze=fo(_e=>{h&&!_e.repeat&&oe&&_e.key===" "&&B.stop(_e,()=>{B.start(_e)}),_e.target===_e.currentTarget&&Ce()&&_e.key===" "&&_e.preventDefault(),$&&$(_e),_e.target===_e.currentTarget&&Ce()&&_e.key==="Enter"&&!d&&(_e.preventDefault(),S&&S(_e))}),X=fo(_e=>{h&&_e.key===" "&&oe&&!_e.defaultPrevented&&B.stop(_e,()=>{B.pulsate(_e)}),k&&k(_e),S&&_e.target===_e.currentTarget&&Ce()&&_e.key===" "&&!_e.defaultPrevented&&S(_e)});let ee=l;ee==="button"&&(P.href||P.to)&&(ee=g);const $e={};ee==="button"?($e.type=M===void 0?"button":M,$e.disabled=d):(!P.href&&!P.to&&($e.role="button"),d&&($e["aria-disabled"]=d));const Ae=Kt(n,H),Xe={...o,centerRipple:a,component:l,disabled:d,disableRipple:u,disableTouchRipple:c,focusRipple:h,tabIndex:I,focusVisible:oe},Be=rI(Xe);return m.jsxs(aI,{as:ee,className:Y(Be.root,i),ownerState:Xe,onBlur:me,onClick:S,onContextMenu:Se,onFocus:ot,onKeyDown:ze,onKeyUp:X,onMouseDown:le,onMouseLeave:Ge,onMouseUp:et,onDragLeave:De,onTouchEnd:xe,onTouchMove:Ee,onTouchStart:qe,ref:Ae,tabIndex:d?-1:I,type:M,...$e,...P,children:[s,fe?m.jsx(tI,{ref:Z,center:a,...j}):null]})});function ba(e,t,n,o=!1){return fo(r=>(n&&n(r),o||e[t](r),!0))}function sI(e){return typeof e.main=="string"}function iI(e,t=[]){if(!sI(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Pt(e=[]){return([,t])=>t&&iI(t,e)}function lI(e){return ie("MuiIconButton",e)}const cI=se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),dI=e=>{const{classes:t,disabled:n,color:o,edge:r,size:a}=e,s={root:["root",n&&"disabled",o!=="default"&&`color${U(o)}`,r&&`edge${U(r)}`,`size${U(a)}`]};return ce(s,lI,t)},uI=G(Lo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${U(n.color)}`],n.edge&&t[`edge${U(n.edge)}`],t[`size${U(n.size)}`]]}})(pe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.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}}]})),pe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${cI.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),ue=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiIconButton"}),{edge:r=!1,children:a,className:s,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",...c}=o,h={...o,edge:r,color:i,disabled:l,disableFocusRipple:d,size:u},f=dI(h);return m.jsx(uI,{className:Y(f.root,s),centerRipple:!0,focusRipple:!d,disabled:l,ref:n,...c,ownerState:h,children:a})});function pI(e){return ie("MuiTypography",e)}const E2=se("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),hI={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},fI=M9(),mI=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:a,classes:s}=e,i={root:["root",a,e.align!=="inherit"&&`align${U(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return ce(i,pI,s)},gI=G("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${U(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(pe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Pt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${U(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),T2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ja=C.forwardRef(function(t,n){const{color:o,...r}=de({props:t,name:"MuiTypography"}),a=!hI[o],s=fI({...r,...a&&{color:o}}),{align:i="inherit",className:l,component:d,gutterBottom:u=!1,noWrap:c=!1,paragraph:h=!1,variant:f="body1",variantMapping:g=T2,...v}=s,S={...s,align:i,color:o,className:l,component:d,gutterBottom:u,noWrap:c,paragraph:h,variant:f,variantMapping:g},_=d||(h?"p":g[f]||T2[f])||"span",b=mI(S);return m.jsx(gI,{as:_,ref:n,className:Y(b.root,l),...v,ownerState:S,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...v.style}})});function _I(e){return ie("MuiAppBar",e)}se("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const vI=e=>{const{color:t,position:n,classes:o}=e,r={root:["root",`color${U(t)}`,`position${U(n)}`]};return ce(r,_I,o)},O2=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,yI=G(qs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${U(n.position)}`],t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).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":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Pt(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?O2(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?O2(e.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)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),e5=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiAppBar"}),{className:r,color:a="primary",enableColorOnDark:s=!1,position:i="fixed",...l}=o,d={...o,color:a,position:i,enableColorOnDark:s},u=vI(d);return m.jsx(yI,{square:!0,component:"header",ownerState:d,elevation:4,className:Y(u.root,r,i==="fixed"&&"mui-fixed"),ref:n,...l})});var mo="top",dr="bottom",ur="right",go="left",q1="auto",jp=[mo,dr,ur,go],Rc="start",op="end",bI="clippingParents",t5="viewport",Od="popper",wI="reference",D2=jp.reduce(function(e,t){return e.concat([t+"-"+Rc,t+"-"+op])},[]),n5=[].concat(jp,[q1]).reduce(function(e,t){return e.concat([t,t+"-"+Rc,t+"-"+op])},[]),SI="beforeRead",xI="read",CI="afterRead",$I="beforeMain",kI="main",EI="afterMain",TI="beforeWrite",OI="write",DI="afterWrite",AI=[SI,xI,CI,$I,kI,EI,TI,OI,DI];function aa(e){return e?(e.nodeName||"").toLowerCase():null}function Fo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ai(e){var t=Fo(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Fo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function X1(e){if(typeof ShadowRoot>"u")return!1;var t=Fo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function MI(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!sr(a)||!aa(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(s){var i=r[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function NI(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],a=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=s.reduce(function(l,d){return l[d]="",l},{});!sr(r)||!aa(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}const jI={name:"applyStyles",enabled:!0,phase:"write",fn:MI,effect:NI,requires:["computeStyles"]};function ta(e){return e.split("-")[0]}var Ci=Math.max,_m=Math.min,Ic=Math.round;function gb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function o5(){return!/^((?!chrome|android).)*safari/i.test(gb())}function Lc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,a=1;t&&sr(e)&&(r=e.offsetWidth>0&&Ic(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ic(o.height)/e.offsetHeight||1);var s=Ai(e)?Fo(e):window,i=s.visualViewport,l=!o5()&&n,d=(o.left+(l&&i?i.offsetLeft:0))/r,u=(o.top+(l&&i?i.offsetTop:0))/a,c=o.width/r,h=o.height/a;return{width:c,height:h,top:u,right:d+c,bottom:u+h,left:d,x:d,y:u}}function J1(e){var t=Lc(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function r5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&X1(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Va(e){return Fo(e).getComputedStyle(e)}function zI(e){return["table","td","th"].indexOf(aa(e))>=0}function Xs(e){return((Ai(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yg(e){return aa(e)==="html"?e:e.assignedSlot||e.parentNode||(X1(e)?e.host:null)||Xs(e)}function A2(e){return!sr(e)||Va(e).position==="fixed"?null:e.offsetParent}function RI(e){var t=/firefox/i.test(gb()),n=/Trident/i.test(gb());if(n&&sr(e)){var o=Va(e);if(o.position==="fixed")return null}var r=Yg(e);for(X1(r)&&(r=r.host);sr(r)&&["html","body"].indexOf(aa(r))<0;){var a=Va(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function zp(e){for(var t=Fo(e),n=A2(e);n&&zI(n)&&Va(n).position==="static";)n=A2(n);return n&&(aa(n)==="html"||aa(n)==="body"&&Va(n).position==="static")?t:n||RI(e)||t}function Y1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ku(e,t,n){return Ci(e,_m(t,n))}function II(e,t,n){var o=ku(e,t,n);return o>n?n:o}function a5(){return{top:0,right:0,bottom:0,left:0}}function s5(e){return Object.assign({},a5(),e)}function i5(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var LI=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,s5(typeof t!="number"?t:i5(t,jp))};function FI(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=ta(n.placement),l=Y1(i),d=[go,ur].indexOf(i)>=0,u=d?"height":"width";if(!(!a||!s)){var c=LI(r.padding,n),h=J1(a),f=l==="y"?mo:go,g=l==="y"?dr:ur,v=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],S=s[l]-n.rects.reference[l],_=zp(a),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,y=v/2-S/2,w=c[f],$=b-h[u]-c[g],k=b/2-h[u]/2+y,T=ku(w,k,$),O=l;n.modifiersData[o]=(t={},t[O]=T,t.centerOffset=T-k,t)}}function PI(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||r5(t.elements.popper,r)&&(t.elements.arrow=r))}const BI={name:"arrow",enabled:!0,phase:"main",fn:FI,effect:PI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fc(e){return e.split("-")[1]}var HI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function UI(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Ic(n*r)/r||0,y:Ic(o*r)/r||0}}function M2(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,c=e.isFixed,h=s.x,f=h===void 0?0:h,g=s.y,v=g===void 0?0:g,S=typeof u=="function"?u({x:f,y:v}):{x:f,y:v};f=S.x,v=S.y;var _=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=go,w=mo,$=window;if(d){var k=zp(n),T="clientHeight",O="clientWidth";if(k===Fo(n)&&(k=Xs(n),Va(k).position!=="static"&&i==="absolute"&&(T="scrollHeight",O="scrollWidth")),k=k,r===mo||(r===go||r===ur)&&a===op){w=dr;var D=c&&k===$&&$.visualViewport?$.visualViewport.height:k[T];v-=D-o.height,v*=l?1:-1}if(r===go||(r===mo||r===dr)&&a===op){y=ur;var x=c&&k===$&&$.visualViewport?$.visualViewport.width:k[O];f-=x-o.width,f*=l?1:-1}}var A=Object.assign({position:i},d&&HI),R=u===!0?UI({x:f,y:v},Fo(n)):{x:f,y:v};if(f=R.x,v=R.y,l){var I;return Object.assign({},A,(I={},I[w]=b?"0":"",I[y]=_?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",I))}return Object.assign({},A,(t={},t[w]=b?v+"px":"",t[y]=_?f+"px":"",t.transform="",t))}function WI(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,d={placement:ta(t.placement),variation:Fc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,M2(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,M2(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const VI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:WI,data:{}};var bh={passive:!0};function GI(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=r===void 0?!0:r,s=o.resize,i=s===void 0?!0:s,l=Fo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(u){u.addEventListener("scroll",n.update,bh)}),i&&l.addEventListener("resize",n.update,bh),function(){a&&d.forEach(function(u){u.removeEventListener("scroll",n.update,bh)}),i&&l.removeEventListener("resize",n.update,bh)}}const qI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GI,data:{}};var XI={left:"right",right:"left",bottom:"top",top:"bottom"};function Sf(e){return e.replace(/left|right|bottom|top/g,function(t){return XI[t]})}var JI={start:"end",end:"start"};function N2(e){return e.replace(/start|end/g,function(t){return JI[t]})}function K1(e){var t=Fo(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Z1(e){return Lc(Xs(e)).left+K1(e).scrollLeft}function YI(e,t){var n=Fo(e),o=Xs(e),r=n.visualViewport,a=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){a=r.width,s=r.height;var d=o5();(d||!d&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:a,height:s,x:i+Z1(e),y:l}}function KI(e){var t,n=Xs(e),o=K1(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=Ci(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Ci(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-o.scrollLeft+Z1(e),l=-o.scrollTop;return Va(r||n).direction==="rtl"&&(i+=Ci(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Q1(e){var t=Va(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function l5(e){return["html","body","#document"].indexOf(aa(e))>=0?e.ownerDocument.body:sr(e)&&Q1(e)?e:l5(Yg(e))}function Eu(e,t){var n;t===void 0&&(t=[]);var o=l5(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),a=Fo(o),s=r?[a].concat(a.visualViewport||[],Q1(o)?o:[]):o,i=t.concat(s);return r?i:i.concat(Eu(Yg(s)))}function _b(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ZI(e,t){var n=Lc(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function j2(e,t,n){return t===t5?_b(YI(e,n)):Ai(t)?ZI(t,n):_b(KI(Xs(e)))}function QI(e){var t=Eu(Yg(e)),n=["absolute","fixed"].indexOf(Va(e).position)>=0,o=n&&sr(e)?zp(e):e;return Ai(o)?t.filter(function(r){return Ai(r)&&r5(r,o)&&aa(r)!=="body"}):[]}function e7(e,t,n,o){var r=t==="clippingParents"?QI(e):[].concat(t),a=[].concat(r,[n]),s=a[0],i=a.reduce(function(l,d){var u=j2(e,d,o);return l.top=Ci(u.top,l.top),l.right=_m(u.right,l.right),l.bottom=_m(u.bottom,l.bottom),l.left=Ci(u.left,l.left),l},j2(e,s,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function c5(e){var t=e.reference,n=e.element,o=e.placement,r=o?ta(o):null,a=o?Fc(o):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(r){case mo:l={x:s,y:t.y-n.height};break;case dr:l={x:s,y:t.y+t.height};break;case ur:l={x:t.x+t.width,y:i};break;case go:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var d=r?Y1(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(a){case Rc:l[d]=l[d]-(t[u]/2-n[u]/2);break;case op:l[d]=l[d]+(t[u]/2-n[u]/2);break}}return l}function rp(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,a=n.strategy,s=a===void 0?e.strategy:a,i=n.boundary,l=i===void 0?bI:i,d=n.rootBoundary,u=d===void 0?t5:d,c=n.elementContext,h=c===void 0?Od:c,f=n.altBoundary,g=f===void 0?!1:f,v=n.padding,S=v===void 0?0:v,_=s5(typeof S!="number"?S:i5(S,jp)),b=h===Od?wI:Od,y=e.rects.popper,w=e.elements[g?b:h],$=e7(Ai(w)?w:w.contextElement||Xs(e.elements.popper),l,u,s),k=Lc(e.elements.reference),T=c5({reference:k,element:y,strategy:"absolute",placement:r}),O=_b(Object.assign({},y,T)),D=h===Od?O:k,x={top:$.top-D.top+_.top,bottom:D.bottom-$.bottom+_.bottom,left:$.left-D.left+_.left,right:D.right-$.right+_.right},A=e.modifiersData.offset;if(h===Od&&A){var R=A[r];Object.keys(x).forEach(function(I){var j=[ur,dr].indexOf(I)>=0?1:-1,N=[mo,dr].indexOf(I)>=0?"y":"x";x[I]+=R[N]*j})}return x}function t7(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,d=l===void 0?n5:l,u=Fc(o),c=u?i?D2:D2.filter(function(g){return Fc(g)===u}):jp,h=c.filter(function(g){return d.indexOf(g)>=0});h.length===0&&(h=c);var f=h.reduce(function(g,v){return g[v]=rp(e,{placement:v,boundary:r,rootBoundary:a,padding:s})[ta(v)],g},{});return Object.keys(f).sort(function(g,v){return f[g]-f[v]})}function n7(e){if(ta(e)===q1)return[];var t=Sf(e);return[N2(e),t,N2(t)]}function o7(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,d=n.padding,u=n.boundary,c=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,v=n.allowedAutoPlacements,S=t.options.placement,_=ta(S),b=_===S,y=l||(b||!g?[Sf(S)]:n7(S)),w=[S].concat(y).reduce(function(le,Se){return le.concat(ta(Se)===q1?t7(t,{placement:Se,boundary:u,rootBoundary:c,padding:d,flipVariations:g,allowedAutoPlacements:v}):Se)},[]),$=t.rects.reference,k=t.rects.popper,T=new Map,O=!0,D=w[0],x=0;x=0,N=j?"width":"height",M=rp(t,{placement:A,boundary:u,rootBoundary:c,altBoundary:h,padding:d}),P=j?I?ur:go:I?dr:mo;$[N]>k[N]&&(P=Sf(P));var H=Sf(P),B=[];if(a&&B.push(M[R]<=0),i&&B.push(M[P]<=0,M[H]<=0),B.every(function(le){return le})){D=A,O=!1;break}T.set(A,B)}if(O)for(var Z=g?3:1,oe=function(Se){var De=w.find(function(et){var Ge=T.get(et);if(Ge)return Ge.slice(0,Se).every(function(qe){return qe})});if(De)return D=De,"break"},ve=Z;ve>0;ve--){var fe=oe(ve);if(fe==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const r7={name:"flip",enabled:!0,phase:"main",fn:o7,requiresIfExists:["offset"],data:{_skip:!1}};function z2(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function R2(e){return[mo,ur,dr,go].some(function(t){return e[t]>=0})}function a7(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=rp(t,{elementContext:"reference"}),i=rp(t,{altBoundary:!0}),l=z2(s,o),d=z2(i,r,a),u=R2(l),c=R2(d);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const s7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:a7};function i7(e,t,n){var o=ta(e),r=[go,mo].indexOf(o)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*r,[go,ur].indexOf(o)>=0?{x:i,y:s}:{x:s,y:i}}function l7(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=r===void 0?[0,0]:r,s=n5.reduce(function(u,c){return u[c]=i7(c,t.rects,a),u},{}),i=s[t.placement],l=i.x,d=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=s}const c7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:l7};function d7(e){var t=e.state,n=e.name;t.modifiersData[n]=c5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const u7={name:"popperOffsets",enabled:!0,phase:"read",fn:d7,data:{}};function p7(e){return e==="x"?"y":"x"}function h7(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,d=n.rootBoundary,u=n.altBoundary,c=n.padding,h=n.tether,f=h===void 0?!0:h,g=n.tetherOffset,v=g===void 0?0:g,S=rp(t,{boundary:l,rootBoundary:d,padding:c,altBoundary:u}),_=ta(t.placement),b=Fc(t.placement),y=!b,w=Y1(_),$=p7(w),k=t.modifiersData.popperOffsets,T=t.rects.reference,O=t.rects.popper,D=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,x=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(k){if(a){var I,j=w==="y"?mo:go,N=w==="y"?dr:ur,M=w==="y"?"height":"width",P=k[w],H=P+S[j],B=P-S[N],Z=f?-O[M]/2:0,oe=b===Rc?T[M]:O[M],ve=b===Rc?-O[M]:-T[M],fe=t.elements.arrow,le=f&&fe?J1(fe):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:a5(),De=Se[j],et=Se[N],Ge=ku(0,T[M],le[M]),qe=y?T[M]/2-Z-Ge-De-x.mainAxis:oe-Ge-De-x.mainAxis,xe=y?-T[M]/2+Z+Ge+et+x.mainAxis:ve+Ge+et+x.mainAxis,Ee=t.elements.arrow&&zp(t.elements.arrow),me=Ee?w==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,ot=(I=A==null?void 0:A[w])!=null?I:0,Ce=P+qe-ot-me,ze=P+xe-ot,X=ku(f?_m(H,Ce):H,P,f?Ci(B,ze):B);k[w]=X,R[w]=X-P}if(i){var ee,$e=w==="x"?mo:go,Ae=w==="x"?dr:ur,Xe=k[$],Be=$==="y"?"height":"width",_e=Xe+S[$e],nn=Xe-S[Ae],K=[mo,go].indexOf(_)!==-1,ge=(ee=A==null?void 0:A[$])!=null?ee:0,Ke=K?_e:Xe-T[Be]-O[Be]-ge+x.altAxis,Te=K?Xe+T[Be]+O[Be]-ge-x.altAxis:nn,Ie=f&&K?II(Ke,Xe,Te):ku(f?Ke:_e,Xe,f?Te:nn);k[$]=Ie,R[$]=Ie-Xe}t.modifiersData[o]=R}}const f7={name:"preventOverflow",enabled:!0,phase:"main",fn:h7,requiresIfExists:["offset"]};function m7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function g7(e){return e===Fo(e)||!sr(e)?K1(e):m7(e)}function _7(e){var t=e.getBoundingClientRect(),n=Ic(t.width)/e.offsetWidth||1,o=Ic(t.height)/e.offsetHeight||1;return n!==1||o!==1}function v7(e,t,n){n===void 0&&(n=!1);var o=sr(t),r=sr(t)&&_7(t),a=Xs(t),s=Lc(e,r,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((aa(t)!=="body"||Q1(a))&&(i=g7(t)),sr(t)?(l=Lc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Z1(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function y7(e){var t=new Map,n=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&r(l)}}),o.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),o}function b7(e){var t=y7(e);return AI.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function w7(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function S7(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var I2={placement:"bottom",modifiers:[],strategy:"absolute"};function L2(){for(var e=arguments.length,t=new Array(e),n=0;n{a||i(k7(r)||document.body)},[r,a]),Io(()=>{if(s&&!a)return cb(n,s),()=>{cb(n,null)}},[n,s,a]),a){if(C.isValidElement(o)){const d={ref:l};return C.cloneElement(o,d)}return o}return s&&M0.createPortal(o,s)});function E7(e){return ie("MuiPopper",e)}se("MuiPopper",["root"]);function T7(e,t){if(t==="ltr")return e;switch(e){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 e}}function vb(e){return typeof e=="function"?e():e}function O7(e){return e.nodeType!==void 0}const D7=e=>{const{classes:t}=e;return ce({root:["root"]},E7,t)},A7={},M7=C.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:a,disablePortal:s,modifiers:i,open:l,placement:d,popperOptions:u,popperRef:c,slotProps:h={},slots:f={},TransitionProps:g,ownerState:v,...S}=t,_=C.useRef(null),b=Kt(_,n),y=C.useRef(null),w=Kt(y,c),$=C.useRef(w);Io(()=>{$.current=w},[w]),C.useImperativeHandle(c,()=>y.current,[]);const k=T7(d,a),[T,O]=C.useState(k),[D,x]=C.useState(vb(o));C.useEffect(()=>{y.current&&y.current.forceUpdate()}),C.useEffect(()=>{o&&x(vb(o))},[o]),Io(()=>{if(!D||!l)return;const N=H=>{O(H.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{N(H)}}];i!=null&&(M=M.concat(i)),u&&u.modifiers!=null&&(M=M.concat(u.modifiers));const P=$7(D,_.current,{placement:k,...u,modifiers:M});return $.current(P),()=>{P.destroy(),$.current(null)}},[D,s,i,l,u,k]);const A={placement:T};g!==null&&(A.TransitionProps=g);const R=D7(t),I=f.root??"div",j=Ar({elementType:I,externalSlotProps:h.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:R.root});return m.jsx(I,{...j,children:typeof r=="function"?r(A):r})}),N7=C.forwardRef(function(t,n){const{anchorEl:o,children:r,container:a,direction:s="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:d,open:u,placement:c="bottom",popperOptions:h=A7,popperRef:f,style:g,transition:v=!1,slotProps:S={},slots:_={},...b}=t,[y,w]=C.useState(!0),$=()=>{w(!1)},k=()=>{w(!0)};if(!l&&!u&&(!v||y))return null;let T;if(a)T=a;else if(o){const x=vb(o);T=x&&O7(x)?In(x).body:In(null).body}const O=!u&&l&&(!v||y)?"none":void 0,D=v?{in:u,onEnter:$,onExited:k}:void 0;return m.jsx(d5,{disablePortal:i,container:T,children:m.jsx(M7,{anchorEl:o,direction:s,disablePortal:i,modifiers:d,ref:n,open:v?!y:u,placement:c,popperOptions:h,popperRef:f,slotProps:S,slots:_,...b,style:{position:"fixed",top:0,left:0,display:O,...g},TransitionProps:D,children:r})})}),j7=G(N7,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),u5=C.forwardRef(function(t,n){const o=ad(),r=de({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:i,componentsProps:l,container:d,disablePortal:u,keepMounted:c,modifiers:h,open:f,placement:g,popperOptions:v,popperRef:S,transition:_,slots:b,slotProps:y,...w}=r,$=(b==null?void 0:b.root)??(i==null?void 0:i.Root),k={anchorEl:a,container:d,disablePortal:u,keepMounted:c,modifiers:h,open:f,placement:g,popperOptions:v,popperRef:S,transition:_,...w};return m.jsx(j7,{as:s,direction:o?"rtl":"ltr",slots:{root:$},slotProps:y??l,...k,ref:n})}),z7=te(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 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 12 17 15.59z"}),"Cancel");function R7(e){return ie("MuiChip",e)}const Ze=se("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),I7=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:a,onDelete:s,clickable:i,variant:l}=e,d={root:["root",l,n&&"disabled",`size${U(o)}`,`color${U(r)}`,i&&"clickable",i&&`clickableColor${U(r)}`,s&&"deletable",s&&`deletableColor${U(r)}`,`${l}${U(r)}`],label:["label",`label${U(o)}`],avatar:["avatar",`avatar${U(o)}`,`avatarColor${U(r)}`],icon:["icon",`icon${U(o)}`,`iconColor${U(a)}`],deleteIcon:["deleteIcon",`deleteIcon${U(o)}`,`deleteIconColor${U(r)}`,`deleteIcon${U(l)}Color${U(r)}`]};return ce(d,R7,t)},L7=G("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:a,onDelete:s,size:i,variant:l}=n;return[{[`& .${Ze.avatar}`]:t.avatar},{[`& .${Ze.avatar}`]:t[`avatar${U(i)}`]},{[`& .${Ze.avatar}`]:t[`avatarColor${U(o)}`]},{[`& .${Ze.icon}`]:t.icon},{[`& .${Ze.icon}`]:t[`icon${U(i)}`]},{[`& .${Ze.icon}`]:t[`iconColor${U(r)}`]},{[`& .${Ze.deleteIcon}`]:t.deleteIcon},{[`& .${Ze.deleteIcon}`]:t[`deleteIcon${U(i)}`]},{[`& .${Ze.deleteIcon}`]:t[`deleteIconColor${U(o)}`]},{[`& .${Ze.deleteIcon}`]:t[`deleteIcon${U(l)}Color${U(o)}`]},t.root,t[`size${U(i)}`],t[`color${U(o)}`],a&&t.clickable,a&&o!=="default"&&t[`clickableColor${U(o)})`],s&&t.deletable,s&&o!=="default"&&t[`deletableColor${U(o)}`],t[l],t[`${l}${U(o)}`]]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ze.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ze.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ze.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ze.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ze.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ze.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ze.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Fe(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ze.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ze.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Pt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Fe(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ze.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ze.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Pt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ze.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Pt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ze.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ze.avatar}`]:{marginLeft:4},[`& .${Ze.avatarSmall}`]:{marginLeft:2},[`& .${Ze.icon}`]:{marginLeft:4},[`& .${Ze.iconSmall}`]:{marginLeft:2},[`& .${Ze.deleteIcon}`]:{marginRight:5},[`& .${Ze.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Pt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Fe(e.palette[n].main,.7)}`,[`&.${Ze.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Fe(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),F7=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${U(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function F2(e){return e.key==="Backspace"||e.key==="Delete"}const P7=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiChip"}),{avatar:r,className:a,clickable:s,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:c,label:h,onClick:f,onDelete:g,onKeyDown:v,onKeyUp:S,size:_="medium",variant:b="filled",tabIndex:y,skipFocusWhenDisabled:w=!1,...$}=o,k=C.useRef(null),T=Kt(k,n),O=B=>{B.stopPropagation(),g&&g(B)},D=B=>{B.currentTarget===B.target&&F2(B)&&B.preventDefault(),v&&v(B)},x=B=>{B.currentTarget===B.target&&g&&F2(B)&&g(B),S&&S(B)},A=s!==!1&&f?!0:s,R=A||g?Lo:l||"div",I={...o,component:R,disabled:u,size:_,color:i,iconColor:C.isValidElement(c)&&c.props.color||i,onDelete:!!g,clickable:A,variant:b},j=I7(I),N=R===Lo?{component:l||"div",focusVisibleClassName:j.focusVisible,...g&&{disableRipple:!0}}:{};let M=null;g&&(M=d&&C.isValidElement(d)?C.cloneElement(d,{className:Y(d.props.className,j.deleteIcon),onClick:O}):m.jsx(z7,{className:Y(j.deleteIcon),onClick:O}));let P=null;r&&C.isValidElement(r)&&(P=C.cloneElement(r,{className:Y(j.avatar,r.props.className)}));let H=null;return c&&C.isValidElement(c)&&(H=C.cloneElement(c,{className:Y(j.icon,c.props.className)})),m.jsxs(L7,{as:R,className:Y(j.root,a),disabled:A&&u?!0:void 0,onClick:f,onKeyDown:D,onKeyUp:x,ref:T,tabIndex:w&&u?-1:y,ownerState:I,...N,...$,children:[P||H,m.jsx(F7,{className:Y(j.label),ownerState:I,children:h}),M]})});function wh(e){return parseInt(e,10)||0}const B7={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function H7(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const U7=C.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:a=1,style:s,value:i,...l}=t,{current:d}=C.useRef(i!=null),u=C.useRef(null),c=Kt(n,u),h=C.useRef(null),f=C.useRef(null),g=C.useCallback(()=>{const _=u.current,y=Dr(_).getComputedStyle(_);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const w=f.current;w.style.width=y.width,w.value=_.value||t.placeholder||"x",w.value.slice(-1)===` +`&&(w.value+=" ");const $=y.boxSizing,k=wh(y.paddingBottom)+wh(y.paddingTop),T=wh(y.borderBottomWidth)+wh(y.borderTopWidth),O=w.scrollHeight;w.value="x";const D=w.scrollHeight;let x=O;a&&(x=Math.max(Number(a)*D,x)),r&&(x=Math.min(Number(r)*D,x)),x=Math.max(x,D);const A=x+($==="border-box"?k+T:0),R=Math.abs(x-O)<=1;return{outerHeightStyle:A,overflowing:R}},[r,a,t.placeholder]),v=C.useCallback(()=>{const _=g();if(H7(_))return;const b=_.outerHeightStyle,y=u.current;h.current!==b&&(h.current=b,y.style.height=`${b}px`),y.style.overflow=_.overflowing?"hidden":""},[g]);Io(()=>{const _=()=>{v()};let b;const y=Gg(_),w=u.current,$=Dr(w);$.addEventListener("resize",y);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(_),k.observe(w)),()=>{y.clear(),cancelAnimationFrame(b),$.removeEventListener("resize",y),k&&k.disconnect()}},[g,v]),Io(()=>{v()});const S=_=>{d||v(),o&&o(_)};return m.jsxs(C.Fragment,{children:[m.jsx("textarea",{value:i,onChange:S,ref:c,rows:a,style:s,...l}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...B7.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function ap(e){return typeof e=="string"}function Js({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const ew=C.createContext(void 0);function da(){return C.useContext(ew)}function P2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vm(e,t=!1){return e&&(P2(e.value)&&e.value!==""||t&&P2(e.defaultValue)&&e.defaultValue!=="")}function W7(e){return e.startAdornment}function V7(e){return ie("MuiInputBase",e)}const Pc=se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var B2;const Kg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${U(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Zg=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},G7=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:a,focused:s,formControl:i,fullWidth:l,hiddenLabel:d,multiline:u,readOnly:c,size:h,startAdornment:f,type:g}=e,v={root:["root",`color${U(n)}`,o&&"disabled",r&&"error",l&&"fullWidth",s&&"focused",i&&"formControl",h&&h!=="medium"&&`size${U(h)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",d&&"hiddenLabel",c&&"readOnly"],input:["input",o&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",c&&"readOnly"]};return ce(v,V7,t)},Qg=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Kg})(pe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Pc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),e_=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zg})(pe(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.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":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Pc.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Pc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).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"}}]}})),H2=A9({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),tw=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:a,autoFocus:s,className:i,color:l,components:d={},componentsProps:u={},defaultValue:c,disabled:h,disableInjectingGlobalStyles:f,endAdornment:g,error:v,fullWidth:S=!1,id:_,inputComponent:b="input",inputProps:y={},inputRef:w,margin:$,maxRows:k,minRows:T,multiline:O=!1,name:D,onBlur:x,onChange:A,onClick:R,onFocus:I,onKeyDown:j,onKeyUp:N,placeholder:M,readOnly:P,renderSuffix:H,rows:B,size:Z,slotProps:oe={},slots:ve={},startAdornment:fe,type:le="text",value:Se,...De}=o,et=y.value!=null?y.value:Se,{current:Ge}=C.useRef(et!=null),qe=C.useRef(),xe=C.useCallback(we=>{},[]),Ee=Kt(qe,w,y.ref,xe),[me,ot]=C.useState(!1),Ce=da(),ze=Js({props:o,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ze.focused=Ce?Ce.focused:me,C.useEffect(()=>{!Ce&&h&&me&&(ot(!1),x&&x())},[Ce,h,me,x]);const X=Ce&&Ce.onFilled,ee=Ce&&Ce.onEmpty,$e=C.useCallback(we=>{vm(we)?X&&X():ee&&ee()},[X,ee]);Io(()=>{Ge&&$e({value:et})},[et,$e,Ge]);const Ae=we=>{I&&I(we),y.onFocus&&y.onFocus(we),Ce&&Ce.onFocus?Ce.onFocus(we):ot(!0)},Xe=we=>{x&&x(we),y.onBlur&&y.onBlur(we),Ce&&Ce.onBlur?Ce.onBlur(we):ot(!1)},Be=(we,...St)=>{if(!Ge){const yn=we.target||qe.current;if(yn==null)throw new Error(Ua(1));$e({value:yn.value})}y.onChange&&y.onChange(we,...St),A&&A(we,...St)};C.useEffect(()=>{$e(qe.current)},[]);const _e=we=>{qe.current&&we.currentTarget===we.target&&qe.current.focus(),R&&R(we)};let nn=b,K=y;O&&nn==="input"&&(B?K={type:void 0,minRows:B,maxRows:B,...K}:K={type:void 0,maxRows:k,minRows:T,...K},nn=U7);const ge=we=>{$e(we.animationName==="mui-auto-fill-cancel"?qe.current:{value:"x"})};C.useEffect(()=>{Ce&&Ce.setAdornedStart(!!fe)},[Ce,fe]);const Ke={...o,color:ze.color||"primary",disabled:ze.disabled,endAdornment:g,error:ze.error,focused:ze.focused,formControl:Ce,fullWidth:S,hiddenLabel:ze.hiddenLabel,multiline:O,size:ze.size,startAdornment:fe,type:le},Te=G7(Ke),Ie=ve.root||d.Root||Qg,Ue=oe.root||u.root||{},zt=ve.input||d.Input||e_;return K={...K,...oe.input??u.input},m.jsxs(C.Fragment,{children:[!f&&typeof H2=="function"&&(B2||(B2=m.jsx(H2,{}))),m.jsxs(Ie,{...Ue,ref:n,onClick:_e,...De,...!ap(Ie)&&{ownerState:{...Ke,...Ue.ownerState}},className:Y(Te.root,Ue.className,i,P&&"MuiInputBase-readOnly"),children:[fe,m.jsx(ew.Provider,{value:null,children:m.jsx(zt,{"aria-invalid":ze.error,"aria-describedby":r,autoComplete:a,autoFocus:s,defaultValue:c,disabled:ze.disabled,id:_,onAnimationStart:ge,name:D,placeholder:M,readOnly:P,required:ze.required,rows:B,value:et,onKeyDown:j,onKeyUp:N,type:le,...K,...!ap(zt)&&{as:nn,ownerState:{...Ke,...K.ownerState}},ref:Ee,className:Y(Te.input,K.className,P&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:Be,onFocus:Ae})}),g,H?H({...ze,startAdornment:fe}):null]})]})});function q7(e){return ie("MuiInput",e)}const Dd={...Pc,...se("MuiInput",["root","underline","input"])};function X7(e){return ie("MuiOutlinedInput",e)}const Rr={...Pc,...se("MuiOutlinedInput",["root","notchedOutline","input"])};function J7(e){return ie("MuiFilledInput",e)}const Qs={...Pc,...se("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Y7=te(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),K7={entering:{opacity:1},entered:{opacity:1}},p5=C.forwardRef(function(t,n){const o=qa(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:i,easing:l,in:d,onEnter:u,onEntered:c,onEntering:h,onExit:f,onExited:g,onExiting:v,style:S,timeout:_=r,TransitionComponent:b=ca,...y}=t,w=C.useRef(null),$=Kt(w,Xi(i),n),k=j=>N=>{if(j){const M=w.current;N===void 0?j(M):j(M,N)}},T=k(h),O=k((j,N)=>{Q4(j);const M=mm({style:S,timeout:_,easing:l},{mode:"enter"});j.style.webkitTransition=o.transitions.create("opacity",M),j.style.transition=o.transitions.create("opacity",M),u&&u(j,N)}),D=k(c),x=k(v),A=k(j=>{const N=mm({style:S,timeout:_,easing:l},{mode:"exit"});j.style.webkitTransition=o.transitions.create("opacity",N),j.style.transition=o.transitions.create("opacity",N),f&&f(j)}),R=k(g),I=j=>{a&&a(w.current,j)};return m.jsx(b,{appear:s,in:d,nodeRef:w,onEnter:O,onEntered:D,onEntering:T,onExit:A,onExited:R,onExiting:x,addEndListener:I,timeout:_,...y,children:(j,N)=>C.cloneElement(i,{style:{opacity:0,visibility:j==="exited"&&!d?"hidden":void 0,...K7[j],...S,...i.props.style},ref:$,...N})})});function Z7(e){return ie("MuiBackdrop",e)}se("MuiBackdrop",["root","invisible"]);const Q7=e=>{const{ownerState:t,...n}=e;return n},eL=e=>{const{classes:t,invisible:n}=e;return ce({root:["root",n&&"invisible"]},Z7,t)},tL=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.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"}}]}),h5=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiBackdrop"}),{children:r,className:a,component:s="div",invisible:i=!1,open:l,components:d={},componentsProps:u={},slotProps:c={},slots:h={},TransitionComponent:f,transitionDuration:g,...v}=o,S={...o,component:s,invisible:i},_=eL(S),b={transition:f,root:d.Root,...h},y={...u,...c},w={slots:b,slotProps:y},[$,k]=Un("root",{elementType:tL,externalForwardedProps:w,className:Y(_.root,a),ownerState:S}),[T,O]=Un("transition",{elementType:p5,externalForwardedProps:w,ownerState:S}),D=Q7(O);return m.jsx(T,{in:l,timeout:g,...v,...D,children:m.jsx($,{"aria-hidden":!0,...k,classes:_,ref:n,children:r})})});function nL(e){const{badgeContent:t,invisible:n=!1,max:o=99,showZero:r=!1}=e,a=z4({badgeContent:t,max:o});let s=n;n===!1&&t===0&&!r&&(s=!0);const{badgeContent:i,max:l=o}=s?a:e,d=i&&Number(i)>l?`${l}+`:i;return{badgeContent:i,invisible:s,max:l,displayValue:d}}function oL(e){return ie("MuiBadge",e)}const Qa=se("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),yv=10,bv=4,rL=e=>{const{color:t,anchorOrigin:n,invisible:o,overlap:r,variant:a,classes:s={}}=e,i={root:["root"],badge:["badge",a,o&&"invisible",`anchorOrigin${U(n.vertical)}${U(n.horizontal)}`,`anchorOrigin${U(n.vertical)}${U(n.horizontal)}${U(r)}`,`overlap${U(r)}`,t!=="default"&&`color${U(t)}`]};return ce(i,oL,s)},aL=G("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),sL=G("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${U(n.anchorOrigin.vertical)}${U(n.anchorOrigin.horizontal)}${U(n.overlap)}`],n.color!=="default"&&t[`color${U(n.color)}`],n.invisible&&t.invisible]}})(pe(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:yv*2,lineHeight:1,padding:"0 6px",height:yv*2,borderRadius:yv,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Pt(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:bv,height:bv*2,minWidth:bv*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Qa.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function U2(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const sp=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiBadge"}),{anchorOrigin:r,className:a,classes:s,component:i,components:l={},componentsProps:d={},children:u,overlap:c="rectangular",color:h="default",invisible:f=!1,max:g=99,badgeContent:v,slots:S,slotProps:_,showZero:b=!1,variant:y="standard",...w}=o,{badgeContent:$,invisible:k,max:T,displayValue:O}=nL({max:g,invisible:f,badgeContent:v,showZero:b}),D=z4({anchorOrigin:U2(r),color:h,overlap:c,variant:y,badgeContent:v}),x=k||$==null&&y!=="dot",{color:A=h,overlap:R=c,anchorOrigin:I,variant:j=y}=x?D:o,N=U2(I),M=j!=="dot"?O:void 0,P={...o,badgeContent:$,invisible:x,max:T,displayValue:M,showZero:b,anchorOrigin:N,color:A,overlap:R,variant:j},H=rL(P),B=(S==null?void 0:S.root)??l.Root??aL,Z=(S==null?void 0:S.badge)??l.Badge??sL,oe=(_==null?void 0:_.root)??d.root,ve=(_==null?void 0:_.badge)??d.badge,fe=Ar({elementType:B,externalSlotProps:oe,externalForwardedProps:w,additionalProps:{ref:n,as:i},ownerState:P,className:Y(oe==null?void 0:oe.className,H.root,a)}),le=Ar({elementType:Z,externalSlotProps:ve,ownerState:P,className:Y(H.badge,ve==null?void 0:ve.className)});return m.jsxs(B,{...fe,children:[u,m.jsx(Z,{...le,children:M})]})}),iL=se("MuiBox",["root"]),lL=np(),ke=GR({themeId:kr,defaultTheme:lL,defaultClassName:iL.root,generateClassName:C4.generate}),cL=te(m.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"),dL=G(Lo)(pe(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:lm(e.palette.grey[200],.12)}:{backgroundColor:lm(e.palette.grey[600],.12)}}}))),uL=G(cL)({width:24,height:16});function pL(e){const{slots:t={},slotProps:n={},...o}=e,r=e;return m.jsx("li",{children:m.jsx(dL,{focusRipple:!0,...o,ownerState:r,children:m.jsx(uL,{as:t.CollapsedIcon,ownerState:r,...n.collapsedIcon})})})}function hL(e){return ie("MuiBreadcrumbs",e)}const fL=se("MuiBreadcrumbs",["root","ol","li","separator"]),mL=e=>{const{classes:t}=e;return ce({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},hL,t)},gL=G(ja,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${fL.li}`]:t.li},t.root]})({}),_L=G("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),vL=G("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function yL(e,t,n,o){return e.reduce((r,a,s)=>(s{const O=()=>{S(!0);const D=w.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return c+u>=T.length?T:[...T.slice(0,c),m.jsx(pL,{"aria-label":d,slots:{CollapsedIcon:i.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:O},"ellipsis"),...T.slice(T.length-u,T.length)]},k=C.Children.toArray(r).filter(T=>C.isValidElement(T)).map((T,O)=>m.jsx("li",{className:b.li,children:T},`child-${O}`));return m.jsx(gL,{ref:n,component:s,color:"textSecondary",className:Y(b.root,a),ownerState:_,...g,children:m.jsx(_L,{className:b.ol,ref:w,ownerState:_,children:yL(v||h&&k.length<=h?k:$(k),b.separator,f,_)})})});function wL(e){return ie("MuiButton",e)}const ml=se("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"]),SL=C.createContext({}),xL=C.createContext(void 0),CL=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:a,classes:s}=e,i={root:["root",a,`${a}${U(t)}`,`size${U(r)}`,`${a}Size${U(r)}`,`color${U(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${U(r)}`],endIcon:["icon","endIcon",`iconSize${U(r)}`]},l=ce(i,wL,s);return{...s,...l}},f5=[{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}}}],$L=G(Lo,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${U(n.color)}`],t[`size${U(n.size)}`],t[`${n.variant}Size${U(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ml.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ml.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ml.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)",[`&.${ml.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Pt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:Fe(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ml.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ml.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),kL=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${U(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...f5]}),EL=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${U(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...f5]}),he=C.forwardRef(function(t,n){const o=C.useContext(SL),r=C.useContext(xL),a=ep(o,t),s=de({props:a,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:c=!1,disableElevation:h=!1,disableFocusRipple:f=!1,endIcon:g,focusVisibleClassName:v,fullWidth:S=!1,size:_="medium",startIcon:b,type:y,variant:w="text",...$}=s,k={...s,color:l,component:d,disabled:c,disableElevation:h,disableFocusRipple:f,fullWidth:S,size:_,type:y,variant:w},T=CL(k),O=b&&m.jsx(kL,{className:T.startIcon,ownerState:k,children:b}),D=g&&m.jsx(EL,{className:T.endIcon,ownerState:k,children:g}),x=r||"";return m.jsxs($L,{ownerState:k,className:Y(o.className,T.root,u,x),component:d,disabled:c,focusRipple:!f,focusVisibleClassName:Y(T.focusVisible,v),ref:n,type:y,...$,classes:T,children:[O,i,D]})});function TL(e){return ie("MuiCard",e)}se("MuiCard",["root"]);const OL=e=>{const{classes:t}=e;return ce({root:["root"]},TL,t)},DL=G(qs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),AL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCard"}),{className:r,raised:a=!1,...s}=o,i={...o,raised:a},l=OL(i);return m.jsx(DL,{className:Y(l.root,r),elevation:a?8:void 0,ref:n,ownerState:i,...s})});function ML(e){return ie("MuiCardActionArea",e)}const wv=se("MuiCardActionArea",["root","focusVisible","focusHighlight"]),NL=e=>{const{classes:t}=e;return ce({root:["root"],focusHighlight:["focusHighlight"]},ML,t)},jL=G(Lo,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(pe(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${wv.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${wv.focusVisible} .${wv.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),zL=G("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(pe(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),RL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCardActionArea"}),{children:r,className:a,focusVisibleClassName:s,...i}=o,l=o,d=NL(l);return m.jsxs(jL,{className:Y(d.root,a),focusVisibleClassName:Y(s,d.focusVisible),ref:n,ownerState:l,...i,children:[r,m.jsx(zL,{className:d.focusHighlight,ownerState:l})]})});function IL(e){return ie("MuiCardActions",e)}se("MuiCardActions",["root","spacing"]);const LL=e=>{const{classes:t,disableSpacing:n}=e;return ce({root:["root",!n&&"spacing"]},IL,t)},FL=G("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),PL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCardActions"}),{disableSpacing:r=!1,className:a,...s}=o,i={...o,disableSpacing:r},l=LL(i);return m.jsx(FL,{className:Y(l.root,a),ownerState:i,ref:n,...s})});function BL(e){return ie("MuiCardContent",e)}se("MuiCardContent",["root"]);const HL=e=>{const{classes:t}=e;return ce({root:["root"]},BL,t)},UL=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),WL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCardContent"}),{className:r,component:a="div",...s}=o,i={...o,component:a},l=HL(i);return m.jsx(UL,{as:a,className:Y(l.root,r),ownerState:i,ref:n,...s})});function VL(e){return ie("MuiCardMedia",e)}se("MuiCardMedia",["root","media","img"]);const GL=e=>{const{classes:t,isMediaComponent:n,isImageComponent:o}=e;return ce({root:["root",n&&"media",o&&"img"]},VL,t)},qL=G("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:o,isImageComponent:r}=n;return[t.root,o&&t.media,r&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),XL=["video","audio","picture","iframe","img"],JL=["picture","img"],YL=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCardMedia"}),{children:r,className:a,component:s="div",image:i,src:l,style:d,...u}=o,c=XL.includes(s),h=!c&&i?{backgroundImage:`url("${i}")`,...d}:d,f={...o,component:s,isMediaComponent:c,isImageComponent:JL.includes(s)},g=GL(f);return m.jsx(qL,{className:Y(g.root,a),as:s,role:!c&&i?"img":void 0,ref:n,style:h,ownerState:f,src:c?i||l:void 0,...u,children:r})});function KL(e){return ie("PrivateSwitchBase",e)}se("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ZL=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,a={root:["root",n&&"checked",o&&"disabled",r&&`edge${U(r)}`],input:["input"]};return ce(a,KL,t)},QL=G(Lo)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),eF=G("input",{shouldForwardProp:Cn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),nw=C.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:a,className:s,defaultChecked:i,disabled:l,disableFocusRipple:d=!1,edge:u=!1,icon:c,id:h,inputProps:f,inputRef:g,name:v,onBlur:S,onChange:_,onFocus:b,readOnly:y,required:w=!1,tabIndex:$,type:k,value:T,...O}=t,[D,x]=cm({controlled:r,default:!!i,name:"SwitchBase",state:"checked"}),A=da(),R=B=>{b&&b(B),A&&A.onFocus&&A.onFocus(B)},I=B=>{S&&S(B),A&&A.onBlur&&A.onBlur(B)},j=B=>{if(B.nativeEvent.defaultPrevented)return;const Z=B.target.checked;x(Z),_&&_(B,Z)};let N=l;A&&typeof N>"u"&&(N=A.disabled);const M=k==="checkbox"||k==="radio",P={...t,checked:D,disabled:N,disableFocusRipple:d,edge:u},H=ZL(P);return m.jsxs(QL,{component:"span",className:Y(H.root,s),centerRipple:!0,focusRipple:!d,disabled:N,tabIndex:null,role:void 0,onFocus:R,onBlur:I,ownerState:P,ref:n,...O,children:[m.jsx(eF,{autoFocus:o,checked:r,defaultChecked:i,className:H.input,disabled:N,id:M?h:void 0,name:v,onChange:j,readOnly:y,ref:g,required:w,ownerState:P,tabIndex:$,type:k,...k==="checkbox"&&T===void 0?{}:{value:T},...f}),D?a:c]})}),tF=te(m.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"),nF=te(m.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"),oF=te(m.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 rF(e){return ie("MuiCheckbox",e)}const Sv=se("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),aF=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,a={root:["root",n&&"indeterminate",`color${U(o)}`,`size${U(r)}`]},s=ce(a,rF,t);return{...t,...s}},sF=G(nw,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${U(n.size)}`],n.color!=="default"&&t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{[`&.${Sv.checked}, &.${Sv.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Sv.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),iF=m.jsx(nF,{}),lF=m.jsx(tF,{}),cF=m.jsx(oF,{}),Tt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCheckbox"}),{checkedIcon:r=iF,color:a="primary",icon:s=lF,indeterminate:i=!1,indeterminateIcon:l=cF,inputProps:d,size:u="medium",disableRipple:c=!1,className:h,...f}=o,g=i?l:s,v=i?l:r,S={...o,disableRipple:c,color:a,indeterminate:i,size:u},_=aF(S);return m.jsx(sF,{type:"checkbox",inputProps:{"data-indeterminate":i,...d},icon:C.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:C.cloneElement(v,{fontSize:v.props.fontSize??u}),ownerState:S,ref:n,className:Y(_.root,h),disableRipple:c,...f,classes:_})});function dF(e){return ie("MuiCircularProgress",e)}se("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const es=44,yb=Gs` 0% { transform: rotate(0deg); } @@ -184,7 +184,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: rotate(360deg); } -`,yb=Gs` +`,bb=Gs` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -199,11 +199,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`,dF=typeof vb!="string"?nd` - animation: ${vb} 1.4s linear infinite; - `:null,uF=typeof yb!="string"?nd` - animation: ${yb} 1.4s ease-in-out infinite; - `:null,pF=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,a={root:["root",n,`color${U(o)}`],svg:["svg"],circle:["circle",`circle${U(n)}`,r&&"circleDisableShrink"]};return ce(a,cF,t)},hF=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:dF||{animation:`${vb} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),fF=G("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),mF=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${U(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(pe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:uF||{animation:`${yb} 1.4s ease-in-out infinite`}}]}))),ro=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:s=!1,size:i=40,style:l,thickness:d=3.6,value:u=0,variant:c="indeterminate",...h}=o,f={...o,color:a,disableShrink:s,size:i,thickness:d,value:u,variant:c},g=pF(f),v={},S={},_={};if(c==="determinate"){const b=2*Math.PI*((es-d)/2);v.strokeDasharray=b.toFixed(3),_["aria-valuenow"]=Math.round(u),v.strokeDashoffset=`${((100-u)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return m.jsx(hF,{className:Y(g.root,r),style:{width:i,height:i,...S,...l},ownerState:f,ref:n,role:"progressbar",..._,...h,children:m.jsx(fF,{className:g.svg,ownerState:f,viewBox:`${es/2} ${es/2} ${es} ${es}`,children:m.jsx(mF,{className:g.circle,style:v,ownerState:f,cx:es,cy:es,r:(es-d)/2,fill:"none",strokeWidth:d})})})});function U2(e){return e.substring(2).toLowerCase()}function gF(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Kt(Xi(t),i),c=fo(g=>{const v=d.current;d.current=!1;const S=In(i.current);if(!l.current||!i.current||"clientX"in g&&gF(g,S))return;if(s.current){s.current=!1;return}let _;g.composedPath?_=g.composedPath().includes(i.current):_=!S.documentElement.contains(g.target)||i.current.contains(g.target),!_&&(n||!v)&&r(g)}),h=g=>v=>{d.current=!0;const S=t.props[g];S&&S(v)},f={ref:u};return a!==!1&&(f[a]=h(a)),C.useEffect(()=>{if(a!==!1){const g=U2(a),v=In(i.current),S=()=>{s.current=!0};return v.addEventListener(g,c),v.addEventListener("touchmove",S),()=>{v.removeEventListener(g,c),v.removeEventListener("touchmove",S)}}},[c,a]),o!==!1&&(f[o]=h(o)),C.useEffect(()=>{if(o!==!1){const g=U2(o),v=In(i.current);return v.addEventListener(g,c),()=>{v.removeEventListener(g,c)}}},[c,o]),C.cloneElement(t,f)}function vF(e){const t=In(e);return t.body===e?Dr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Tu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function W2(e){return parseInt(Dr(e).getComputedStyle(e).paddingRight,10)||0}function yF(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function V2(e,t,n,o,r){const a=[t,n,...o];[].forEach.call(e.children,s=>{const i=!a.includes(s),l=!yF(s);i&&l&&Tu(s,r)})}function xv(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function bF(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(vF(o)){const s=M4(Dr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${W2(o)+s}px`;const i=In(o).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${W2(l)+s}px`})}let a;if(o.parentNode instanceof DocumentFragment)a=In(o).body;else{const s=o.parentElement,i=Dr(o);a=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:o}n.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()=>{n.forEach(({value:a,el:s,property:i})=>{a?s.style.setProperty(i,a):s.style.removeProperty(i)})}}function wF(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class SF{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Tu(t.modalRef,!1);const r=wF(n);V2(n,t.mount,t.modalRef,r,!0);const a=xv(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=xv(this.containers,a=>a.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=bF(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=xv(this.containers,s=>s.modals.includes(t)),a=this.containers[r];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(o,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Tu(t.modalRef,n),V2(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(r,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Tu(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const xF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function CF(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function $F(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function kF(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$F(e))}function EF(e){const t=[],n=[];return Array.from(e.querySelectorAll(xF)).forEach((o,r)=>{const a=CF(o);a===-1||!kF(o)||(a===0?t.push(o):n.push({documentOrder:r,tabIndex:a,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function TF(){return!0}function OF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:a=EF,isEnabled:s=TF,open:i}=e,l=C.useRef(!1),d=C.useRef(null),u=C.useRef(null),c=C.useRef(null),h=C.useRef(null),f=C.useRef(!1),g=C.useRef(null),v=Kt(Xi(t),g),S=C.useRef(null);C.useEffect(()=>{!i||!g.current||(f.current=!n)},[n,i]),C.useEffect(()=>{if(!i||!g.current)return;const y=In(g.current);return g.current.contains(y.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),f.current&&g.current.focus()),()=>{r||(c.current&&c.current.focus&&(l.current=!0,c.current.focus()),c.current=null)}},[i]),C.useEffect(()=>{if(!i||!g.current)return;const y=In(g.current),w=T=>{S.current=T,!(o||!s()||T.key!=="Tab")&&y.activeElement===g.current&&T.shiftKey&&(l.current=!0,u.current&&u.current.focus())},$=()=>{var D,x;const T=g.current;if(T===null)return;if(!y.hasFocus()||!s()||l.current){l.current=!1;return}if(T.contains(y.activeElement)||o&&y.activeElement!==d.current&&y.activeElement!==u.current)return;if(y.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let O=[];if((y.activeElement===d.current||y.activeElement===u.current)&&(O=a(g.current)),O.length>0){const A=!!((D=S.current)!=null&&D.shiftKey&&((x=S.current)==null?void 0:x.key)==="Tab"),R=O[0],I=O[O.length-1];typeof R!="string"&&typeof I!="string"&&(A?I.focus():R.focus())}else T.focus()};y.addEventListener("focusin",$),y.addEventListener("keydown",w,!0);const k=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(k),y.removeEventListener("focusin",$),y.removeEventListener("keydown",w,!0)}},[n,o,r,s,i,a]);const _=y=>{c.current===null&&(c.current=y.relatedTarget),f.current=!0,h.current=y.target;const w=t.props.onFocus;w&&w(y)},b=y=>{c.current===null&&(c.current=y.relatedTarget),f.current=!0};return m.jsxs(C.Fragment,{children:[m.jsx("div",{tabIndex:i?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:v,onFocus:_}),m.jsx("div",{tabIndex:i?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}function DF(e){return typeof e=="function"?e():e}function AF(e){return e?e.props.hasOwnProperty("in"):!1}const G2=()=>{},Sh=new SF;function MF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:a,onTransitionExited:s,children:i,onClose:l,open:d,rootRef:u}=e,c=C.useRef({}),h=C.useRef(null),f=C.useRef(null),g=Kt(f,u),[v,S]=C.useState(!d),_=AF(i);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const y=()=>In(h.current),w=()=>(c.current.modalRef=f.current,c.current.mount=h.current,c.current),$=()=>{Sh.mount(w(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},k=fo(()=>{const N=DF(t)||y().body;Sh.add(w(),N),f.current&&$()}),T=()=>Sh.isTopModal(w()),O=fo(N=>{h.current=N,N&&(d&&T()?$():f.current&&Tu(f.current,b))}),D=C.useCallback(()=>{Sh.remove(w(),b)},[b]);C.useEffect(()=>()=>{D()},[D]),C.useEffect(()=>{d?k():(!_||!r)&&D()},[d,D,_,r,k]);const x=N=>M=>{var P;(P=N.onKeyDown)==null||P.call(N,M),!(M.key!=="Escape"||M.which===229||!T())&&(n||(M.stopPropagation(),l&&l(M,"escapeKeyDown")))},A=N=>M=>{var P;(P=N.onClick)==null||P.call(N,M),M.target===M.currentTarget&&l&&l(M,"backdropClick")};return{getRootProps:(N={})=>{const M=um(e);delete M.onTransitionEnter,delete M.onTransitionExited;const P={...M,...N};return{role:"presentation",...P,onKeyDown:x(P),ref:g}},getBackdropProps:(N={})=>{const M=N;return{"aria-hidden":!0,...M,onClick:A(M),open:d}},getTransitionProps:()=>{const N=()=>{S(!1),a&&a()},M=()=>{S(!0),s&&s(),r&&D()};return{onEnter:ib(N,(i==null?void 0:i.props.onEnter)??G2),onExited:ib(M,(i==null?void 0:i.props.onExited)??G2)}},rootRef:g,portalRef:O,isTopModal:T,exited:v,hasTransition:_}}function NF(e){return ie("MuiModal",e)}se("MuiModal",["root","hidden","backdrop"]);const jF=e=>{const{open:t,exited:n,classes:o}=e;return ce({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},NF,o)},zF=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(pe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),RF=G(u5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),h5=C.forwardRef(function(t,n){const o=de({name:"MuiModal",props:t}),{BackdropComponent:r=RF,BackdropProps:a,classes:s,className:i,closeAfterTransition:l=!1,children:d,container:u,component:c,components:h={},componentsProps:f={},disableAutoFocus:g=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:S=!1,disablePortal:_=!1,disableRestoreFocus:b=!1,disableScrollLock:y=!1,hideBackdrop:w=!1,keepMounted:$=!1,onBackdropClick:k,onClose:T,onTransitionEnter:O,onTransitionExited:D,open:x,slotProps:A={},slots:R={},theme:I,...j}=o,N={...o,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:v,disableEscapeKeyDown:S,disablePortal:_,disableRestoreFocus:b,disableScrollLock:y,hideBackdrop:w,keepMounted:$},{getRootProps:M,getBackdropProps:P,getTransitionProps:H,portalRef:B,isTopModal:Z,exited:oe,hasTransition:ve}=MF({...N,rootRef:n}),fe={...N,exited:oe},le=jF(fe),Se={};if(d.props.tabIndex===void 0&&(Se.tabIndex="-1"),ve){const{onEnter:me,onExited:ot}=H();Se.onEnter=me,Se.onExited=ot}const De={...j,slots:{root:h.Root,backdrop:h.Backdrop,...R},slotProps:{...f,...A}},[et,Ge]=Un("root",{elementType:zF,externalForwardedProps:De,getSlotProps:M,additionalProps:{ref:n,as:c},ownerState:fe,className:Y(i,le==null?void 0:le.root,!fe.open&&fe.exited&&(le==null?void 0:le.hidden))}),[qe,xe]=Un("backdrop",{elementType:r,externalForwardedProps:De,additionalProps:a,getSlotProps:me=>P({...me,onClick:ot=>{k&&k(ot),me!=null&&me.onClick&&me.onClick(ot)}}),className:Y(a==null?void 0:a.className,le==null?void 0:le.backdrop),ownerState:fe}),Ee=Kt(a==null?void 0:a.ref,xe.ref);return!$&&!x&&(!ve||oe)?null:m.jsx(l5,{ref:B,container:u,disablePortal:_,children:m.jsxs(et,{...Ge,children:[!w&&r?m.jsx(qe,{...xe,ref:Ee}):null,m.jsx(OF,{disableEnforceFocus:v,disableAutoFocus:g,disableRestoreFocus:b,isEnabled:Z,open:x,children:C.cloneElement(d,Se)})]})})});function IF(e){return ie("MuiDialog",e)}const Cv=se("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),f5=C.createContext({}),LF=G(u5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),FF=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${U(n)}`],paper:["paper",`paperScroll${U(n)}`,`paperWidth${U(String(o))}`,r&&"paperFullWidth",a&&"paperFullScreen"]};return ce(s,IF,t)},PF=G(h5,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),BF=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${U(n.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"}}}]}),HF=G(qs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${U(n.scroll)}`],t[`paperWidth${U(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(pe(({theme:e})=>({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:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Cv.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Cv.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Cv.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),yt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialog"}),r=qa(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,"aria-modal":l=!0,BackdropComponent:d,BackdropProps:u,children:c,className:h,disableEscapeKeyDown:f=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:S="sm",onBackdropClick:_,onClick:b,onClose:y,open:w,PaperComponent:$=qs,PaperProps:k={},scroll:T="paper",TransitionComponent:O=d5,transitionDuration:D=a,TransitionProps:x,...A}=o,R={...o,disableEscapeKeyDown:f,fullScreen:g,fullWidth:v,maxWidth:S,scroll:T},I=FF(R),j=C.useRef(),N=B=>{j.current=B.target===B.currentTarget},M=B=>{b&&b(B),j.current&&(j.current=null,_&&_(B),y&&y(B,"backdropClick"))},P=qg(i),H=C.useMemo(()=>({titleId:P}),[P]);return m.jsx(PF,{className:Y(I.root,h),closeAfterTransition:!0,components:{Backdrop:LF},componentsProps:{backdrop:{transitionDuration:D,as:d,...u}},disableEscapeKeyDown:f,onClose:y,open:w,ref:n,onClick:M,ownerState:R,...A,children:m.jsx(O,{appear:!0,in:w,timeout:D,role:"presentation",...x,children:m.jsx(BF,{className:Y(I.container),onMouseDown:N,ownerState:R,children:m.jsx(HF,{as:$,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":P,"aria-modal":l,...k,className:Y(I.paper,k.className),ownerState:R,children:m.jsx(f5.Provider,{value:H,children:c})})})})})});function UF(e){return ie("MuiDialogActions",e)}se("MuiDialogActions",["root","spacing"]);const WF=e=>{const{classes:t,disableSpacing:n}=e;return ce({root:["root",!n&&"spacing"]},UF,t)},VF=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Nt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:a=!1,...s}=o,i={...o,disableSpacing:a},l=WF(i);return m.jsx(VF,{className:Y(l.root,r),ownerState:i,ref:n,...s})});function GF(e){return ie("MuiDialogContent",e)}se("MuiDialogContent",["root","dividers"]);function qF(e){return ie("MuiDialogTitle",e)}const XF=se("MuiDialogTitle",["root"]),JF=e=>{const{classes:t,dividers:n}=e;return ce({root:["root",n&&"dividers"]},GF,t)},YF=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(pe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${XF.root} + &`]:{paddingTop:0}}}]}))),jt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialogContent"}),{className:r,dividers:a=!1,...s}=o,i={...o,dividers:a},l=JF(i);return m.jsx(YF,{className:Y(l.root,r),ownerState:i,ref:n,...s})});function KF(e){return ie("MuiDialogContentText",e)}se("MuiDialogContentText",["root"]);const ZF=e=>{const{classes:t}=e,o=ce({root:["root"]},KF,t);return{...t,...o}},QF=G(ja,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ra=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialogContentText"}),{children:r,className:a,...s}=o,i=ZF(s);return m.jsx(QF,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Y(i.root,a),...o,classes:i})}),eP=e=>{const{classes:t}=e;return ce({root:["root"]},qF,t)},tP=G(ja,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),bt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialogTitle"}),{className:r,id:a,...s}=o,i=o,l=eP(i),{titleId:d=a}=C.useContext(f5);return m.jsx(tP,{component:"h2",className:Y(l.root,r),ownerState:i,ref:n,variant:"h6",id:a??d,...s})}),q2=se("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function nP(e){return ie("MuiFab",e)}const X2=se("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),oP=e=>{const{color:t,variant:n,classes:o,size:r}=e,a={root:["root",n,`size${U(r)}`,t==="inherit"?"colorInherit":t]},s=ce(a,nP,o);return{...o,...s}},rP=G(Lo,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Cn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${U(n.size)}`],n.color==="inherit"&&t.colorInherit,t[U(n.size)],t[n.color]]}})(pe(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${X2.focusVisible}`]:{boxShadow:(e.vars||e).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"}}]}}),pe(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Pt(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),pe(({theme:e})=>({[`&.${X2.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Mt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFab"}),{children:r,className:a,color:s="default",component:i="button",disabled:l=!1,disableFocusRipple:d=!1,focusVisibleClassName:u,size:c="large",variant:h="circular",...f}=o,g={...o,color:s,component:i,disabled:l,disableFocusRipple:d,size:c,variant:h},v=oP(g);return m.jsx(rP,{className:Y(v.root,a),component:i,disabled:l,focusRipple:!d,focusVisibleClassName:Y(v.focusVisible,u),ownerState:g,ref:n,...f,classes:v,children:r})}),aP=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:a,hiddenLabel:s,multiline:i}=e,l={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",a==="small"&&`size${U(a)}`,s&&"hiddenLabel",i&&"multiline"],input:["input"]},d=ce(l,X7,t);return{...t,...d}},sP=G(Qg,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Kg(e,t),!n.disableUnderline&&t.underline]}})(pe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Qs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Qs.disabled}`]:{backgroundColor:e.vars?e.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:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qs.disabled}, .${Qs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pt()).map(([s])=>{var i;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(i=(e.vars||e).palette[s])==null?void 0:i.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:i})=>s.multiline&&i==="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}}]}})),iP=G(e_,{name:"MuiFilledInput",slot:"Input",overridesResolver:Zg})(pe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.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:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ym=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:a={},componentsProps:s,fullWidth:i=!1,hiddenLabel:l,inputComponent:d="input",multiline:u=!1,slotProps:c,slots:h={},type:f="text",...g}=o,v={...o,disableUnderline:r,fullWidth:i,inputComponent:d,multiline:u,type:f},S=aP(o),_={root:{ownerState:v},input:{ownerState:v}},b=c??s?Gn(_,c??s):_,y=h.root??a.Root??sP,w=h.input??a.Input??iP;return m.jsx(ew,{slots:{root:y,input:w},slotProps:b,fullWidth:i,inputComponent:d,multiline:u,ref:n,type:f,...g,classes:S})});ym&&(ym.muiName="Input");function lP(e){return ie("MuiFormControl",e)}se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const cP=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${U(n)}`,o&&"fullWidth"]};return ce(r,lP,t)},dP=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${U(e.margin)}`],...e.fullWidth&&t.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%"}}]}),to=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormControl"}),{children:r,className:a,color:s="primary",component:i="div",disabled:l=!1,error:d=!1,focused:u,fullWidth:c=!1,hiddenLabel:h=!1,margin:f="none",required:g=!1,size:v="medium",variant:S="outlined",..._}=o,b={...o,color:s,component:i,disabled:l,error:d,fullWidth:c,hiddenLabel:h,margin:f,required:g,size:v,variant:S},y=cP(b),[w,$]=C.useState(()=>{let I=!1;return r&&C.Children.forEach(r,j=>{if(!$u(j,["Input","Select"]))return;const N=$u(j,["Select"])?j.props.input:j;N&&U7(N.props)&&(I=!0)}),I}),[k,T]=C.useState(()=>{let I=!1;return r&&C.Children.forEach(r,j=>{$u(j,["Input","Select"])&&(vm(j.props,!0)||vm(j.props.inputProps,!0))&&(I=!0)}),I}),[O,D]=C.useState(!1);l&&O&&D(!1);const x=u!==void 0&&!l?u:O;let A;C.useRef(!1);const R=C.useMemo(()=>({adornedStart:w,setAdornedStart:$,color:s,disabled:l,error:d,filled:k,focused:x,fullWidth:c,hiddenLabel:h,size:v,onBlur:()=>{D(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{D(!0)},registerEffect:A,required:g,variant:S}),[w,s,l,d,k,x,c,h,A,g,v,S]);return m.jsx(Q1.Provider,{value:R,children:m.jsx(dP,{as:i,ownerState:b,className:Y(y.root,a),ref:n,..._,children:r})})});function uP(e){return ie("MuiFormControlLabel",e)}const eu=se("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pP=e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${U(o)}`,r&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return ce(s,uP,t)},hP=G("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eu.label}`]:t.label},t.root,t[`labelPlacement${U(n.labelPlacement)}`]]}})(pe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${eu.disabled}`]:{cursor:"default"},[`& .${eu.label}`]:{[`&.${eu.disabled}`]:{color:(e.vars||e).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:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),fP=G("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(pe(({theme:e})=>({[`&.${eu.error}`]:{color:(e.vars||e).palette.error.main}}))),Oe=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormControlLabel"}),{checked:r,className:a,componentsProps:s={},control:i,disabled:l,disableTypography:d,inputRef:u,label:c,labelPlacement:h="end",name:f,onChange:g,required:v,slots:S={},slotProps:_={},value:b,...y}=o,w=da(),$=l??i.props.disabled??(w==null?void 0:w.disabled),k=v??i.props.required,T={disabled:$,required:k};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof i.props[N]>"u"&&typeof o[N]<"u"&&(T[N]=o[N])});const O=Js({props:o,muiFormControl:w,states:["error"]}),D={...o,disabled:$,labelPlacement:h,required:k,error:O.error},x=pP(D),A={slots:S,slotProps:{...s,..._}},[R,I]=Un("typography",{elementType:ja,externalForwardedProps:A,ownerState:D});let j=c;return j!=null&&j.type!==ja&&!d&&(j=m.jsx(R,{component:"span",...I,className:Y(x.label,I==null?void 0:I.className),children:j})),m.jsxs(hP,{className:Y(x.root,a),ownerState:D,ref:n,...y,children:[C.cloneElement(i,T),k?m.jsxs("div",{children:[j,m.jsxs(fP,{ownerState:D,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):j]})});function mP(e){return ie("MuiFormGroup",e)}se("MuiFormGroup",["root","row","error"]);const gP=e=>{const{classes:t,row:n,error:o}=e;return ce({root:["root",n&&"row",o&&"error"]},mP,t)},_P=G("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),$v=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormGroup"}),{className:r,row:a=!1,...s}=o,i=da(),l=Js({props:o,muiFormControl:i,states:["error"]}),d={...o,row:a,error:l.error},u=gP(d);return m.jsx(_P,{className:Y(u.root,r),ownerState:d,ref:n,...s})});function vP(e){return ie("MuiFormHelperText",e)}const J2=se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Y2;const yP=e=>{const{classes:t,contained:n,size:o,disabled:r,error:a,filled:s,focused:i,required:l}=e,d={root:["root",r&&"disabled",a&&"error",o&&`size${U(o)}`,n&&"contained",i&&"focused",s&&"filled",l&&"required"]};return ce(d,vP,t)},bP=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${U(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${J2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${J2.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Er=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormHelperText"}),{children:r,className:a,component:s="p",disabled:i,error:l,filled:d,focused:u,margin:c,required:h,variant:f,...g}=o,v=da(),S=Js({props:o,muiFormControl:v,states:["variant","size","disabled","error","filled","focused","required"]}),_={...o,component:s,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete _.ownerState;const b=yP(_);return m.jsx(bP,{as:s,className:Y(b.root,a),ref:n,...g,ownerState:_,children:r===" "?Y2||(Y2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});function wP(e){return ie("MuiFormLabel",e)}const Ou=se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),SP=e=>{const{classes:t,color:n,focused:o,disabled:r,error:a,filled:s,required:i}=e,l={root:["root",`color${U(n)}`,r&&"disabled",a&&"error",s&&"filled",o&&"focused",i&&"required"],asterisk:["asterisk",a&&"error"]};return ce(l,wP,t)},xP=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{[`&.${Ou.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ou.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ou.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),CP=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(pe(({theme:e})=>({[`&.${Ou.error}`]:{color:(e.vars||e).palette.error.main}}))),$P=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormLabel"}),{children:r,className:a,color:s,component:i="label",disabled:l,error:d,filled:u,focused:c,required:h,...f}=o,g=da(),v=Js({props:o,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),S={...o,color:v.color||"primary",component:i,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required},_=SP(S);return m.jsxs(xP,{as:i,ownerState:S,className:Y(_.root,a),ref:n,...f,children:[r,v.required&&m.jsxs(CP,{ownerState:S,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]})}),_s=K8({createStyledComponent:G("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>de({props:e,name:"MuiGrid2"}),useTheme:qa});function bb(e){return`scale(${e}, ${e**2})`}const kP={entering:{opacity:1,transform:bb(1)},entered:{opacity:1,transform:"none"}},kv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ip=C.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:a,easing:s,in:i,onEnter:l,onEntered:d,onEntering:u,onExit:c,onExited:h,onExiting:f,style:g,timeout:v="auto",TransitionComponent:S=ca,..._}=t,b=gi(),y=C.useRef(),w=qa(),$=C.useRef(null),k=Kt($,Xi(a),n),T=N=>M=>{if(N){const P=$.current;M===void 0?N(P):N(P,M)}},O=T(u),D=T((N,M)=>{K4(N);const{duration:P,delay:H,easing:B}=mm({style:g,timeout:v,easing:s},{mode:"enter"});let Z;v==="auto"?(Z=w.transitions.getAutoHeightDuration(N.clientHeight),y.current=Z):Z=P,N.style.transition=[w.transitions.create("opacity",{duration:Z,delay:H}),w.transitions.create("transform",{duration:kv?Z:Z*.666,delay:H,easing:B})].join(","),l&&l(N,M)}),x=T(d),A=T(f),R=T(N=>{const{duration:M,delay:P,easing:H}=mm({style:g,timeout:v,easing:s},{mode:"exit"});let B;v==="auto"?(B=w.transitions.getAutoHeightDuration(N.clientHeight),y.current=B):B=M,N.style.transition=[w.transitions.create("opacity",{duration:B,delay:P}),w.transitions.create("transform",{duration:kv?B:B*.666,delay:kv?P:P||B*.333,easing:H})].join(","),N.style.opacity=0,N.style.transform=bb(.75),c&&c(N)}),I=T(h),j=N=>{v==="auto"&&b.start(y.current||0,N),o&&o($.current,N)};return m.jsx(S,{appear:r,in:i,nodeRef:$,onEnter:D,onEntered:x,onEntering:O,onExit:R,onExited:I,onExiting:A,addEndListener:j,timeout:v==="auto"?null:v,..._,children:(N,M)=>C.cloneElement(a,{style:{opacity:0,transform:bb(.75),visibility:N==="exited"&&!i?"hidden":void 0,...kP[N],...g,...a.props.style},ref:k,...M})})});ip&&(ip.muiSupportAuto=!0);const m5=i8({themeId:kr}),EP=e=>{const{classes:t,disableUnderline:n}=e,r=ce({root:["root",!n&&"underline"],input:["input"]},G7,t);return{...t,...r}},TP=G(Qg,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Kg(e,t),!n.disableUnderline&&t.underline]}})(pe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Dd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Dd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Dd.disabled}, .${Dd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Dd.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),OP=G(e_,{name:"MuiInput",slot:"Input",overridesResolver:Zg})({}),Qn=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:a={},componentsProps:s,fullWidth:i=!1,inputComponent:l="input",multiline:d=!1,slotProps:u,slots:c={},type:h="text",...f}=o,g=EP(o),S={root:{ownerState:{disableUnderline:r}}},_=u??s?Gn(u??s,S):S,b=c.root??a.Root??TP,y=c.input??a.Input??OP;return m.jsx(ew,{slots:{root:b,input:y},slotProps:_,fullWidth:i,inputComponent:l,multiline:d,ref:n,type:h,...f,classes:g})});Qn&&(Qn.muiName="Input");function DP(e){return ie("MuiInputLabel",e)}se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const AP=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:a,variant:s,required:i}=e,l={root:["root",n&&"formControl",!a&&"animated",r&&"shrink",o&&o!=="normal"&&`size${U(o)}`,s],asterisk:[i&&"asterisk"]},d=ce(l,DP,t);return{...t,...d}},MP=G($P,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ou.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(pe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.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:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.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:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="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:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),xf=C.forwardRef(function(t,n){const o=de({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:a,shrink:s,variant:i,className:l,...d}=o,u=da();let c=s;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);const h=Js({props:o,muiFormControl:u,states:["size","variant","required","focused"]}),f={...o,disableAnimation:r,formControl:u,shrink:c,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=AP(f);return m.jsx(MP,{"data-shrink":c,ref:n,className:Y(g.root,l),...d,ownerState:f,classes:g})});function NP(e){return ie("MuiLinearProgress",e)}se("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const wb=4,Sb=Gs` +`,uF=typeof yb!="string"?nd` + animation: ${yb} 1.4s linear infinite; + `:null,pF=typeof bb!="string"?nd` + animation: ${bb} 1.4s ease-in-out infinite; + `:null,hF=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,a={root:["root",n,`color${U(o)}`],svg:["svg"],circle:["circle",`circle${U(n)}`,r&&"circleDisableShrink"]};return ce(a,dF,t)},fF=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:uF||{animation:`${yb} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),mF=G("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),gF=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${U(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(pe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:pF||{animation:`${bb} 1.4s ease-in-out infinite`}}]}))),ro=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:s=!1,size:i=40,style:l,thickness:d=3.6,value:u=0,variant:c="indeterminate",...h}=o,f={...o,color:a,disableShrink:s,size:i,thickness:d,value:u,variant:c},g=hF(f),v={},S={},_={};if(c==="determinate"){const b=2*Math.PI*((es-d)/2);v.strokeDasharray=b.toFixed(3),_["aria-valuenow"]=Math.round(u),v.strokeDashoffset=`${((100-u)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return m.jsx(fF,{className:Y(g.root,r),style:{width:i,height:i,...S,...l},ownerState:f,ref:n,role:"progressbar",..._,...h,children:m.jsx(mF,{className:g.svg,ownerState:f,viewBox:`${es/2} ${es/2} ${es} ${es}`,children:m.jsx(gF,{className:g.circle,style:v,ownerState:f,cx:es,cy:es,r:(es-d)/2,fill:"none",strokeWidth:d})})})});function W2(e){return e.substring(2).toLowerCase()}function _F(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Kt(Xi(t),i),c=fo(g=>{const v=d.current;d.current=!1;const S=In(i.current);if(!l.current||!i.current||"clientX"in g&&_F(g,S))return;if(s.current){s.current=!1;return}let _;g.composedPath?_=g.composedPath().includes(i.current):_=!S.documentElement.contains(g.target)||i.current.contains(g.target),!_&&(n||!v)&&r(g)}),h=g=>v=>{d.current=!0;const S=t.props[g];S&&S(v)},f={ref:u};return a!==!1&&(f[a]=h(a)),C.useEffect(()=>{if(a!==!1){const g=W2(a),v=In(i.current),S=()=>{s.current=!0};return v.addEventListener(g,c),v.addEventListener("touchmove",S),()=>{v.removeEventListener(g,c),v.removeEventListener("touchmove",S)}}},[c,a]),o!==!1&&(f[o]=h(o)),C.useEffect(()=>{if(o!==!1){const g=W2(o),v=In(i.current);return v.addEventListener(g,c),()=>{v.removeEventListener(g,c)}}},[c,o]),C.cloneElement(t,f)}function yF(e){const t=In(e);return t.body===e?Dr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Tu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function V2(e){return parseInt(Dr(e).getComputedStyle(e).paddingRight,10)||0}function bF(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function G2(e,t,n,o,r){const a=[t,n,...o];[].forEach.call(e.children,s=>{const i=!a.includes(s),l=!bF(s);i&&l&&Tu(s,r)})}function xv(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function wF(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(yF(o)){const s=j4(Dr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${V2(o)+s}px`;const i=In(o).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${V2(l)+s}px`})}let a;if(o.parentNode instanceof DocumentFragment)a=In(o).body;else{const s=o.parentElement,i=Dr(o);a=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:o}n.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()=>{n.forEach(({value:a,el:s,property:i})=>{a?s.style.setProperty(i,a):s.style.removeProperty(i)})}}function SF(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class xF{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Tu(t.modalRef,!1);const r=SF(n);G2(n,t.mount,t.modalRef,r,!0);const a=xv(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=xv(this.containers,a=>a.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=wF(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=xv(this.containers,s=>s.modals.includes(t)),a=this.containers[r];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(o,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Tu(t.modalRef,n),G2(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(r,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Tu(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const CF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $F(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function kF(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function EF(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kF(e))}function TF(e){const t=[],n=[];return Array.from(e.querySelectorAll(CF)).forEach((o,r)=>{const a=$F(o);a===-1||!EF(o)||(a===0?t.push(o):n.push({documentOrder:r,tabIndex:a,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function OF(){return!0}function DF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:a=TF,isEnabled:s=OF,open:i}=e,l=C.useRef(!1),d=C.useRef(null),u=C.useRef(null),c=C.useRef(null),h=C.useRef(null),f=C.useRef(!1),g=C.useRef(null),v=Kt(Xi(t),g),S=C.useRef(null);C.useEffect(()=>{!i||!g.current||(f.current=!n)},[n,i]),C.useEffect(()=>{if(!i||!g.current)return;const y=In(g.current);return g.current.contains(y.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),f.current&&g.current.focus()),()=>{r||(c.current&&c.current.focus&&(l.current=!0,c.current.focus()),c.current=null)}},[i]),C.useEffect(()=>{if(!i||!g.current)return;const y=In(g.current),w=T=>{S.current=T,!(o||!s()||T.key!=="Tab")&&y.activeElement===g.current&&T.shiftKey&&(l.current=!0,u.current&&u.current.focus())},$=()=>{var D,x;const T=g.current;if(T===null)return;if(!y.hasFocus()||!s()||l.current){l.current=!1;return}if(T.contains(y.activeElement)||o&&y.activeElement!==d.current&&y.activeElement!==u.current)return;if(y.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let O=[];if((y.activeElement===d.current||y.activeElement===u.current)&&(O=a(g.current)),O.length>0){const A=!!((D=S.current)!=null&&D.shiftKey&&((x=S.current)==null?void 0:x.key)==="Tab"),R=O[0],I=O[O.length-1];typeof R!="string"&&typeof I!="string"&&(A?I.focus():R.focus())}else T.focus()};y.addEventListener("focusin",$),y.addEventListener("keydown",w,!0);const k=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(k),y.removeEventListener("focusin",$),y.removeEventListener("keydown",w,!0)}},[n,o,r,s,i,a]);const _=y=>{c.current===null&&(c.current=y.relatedTarget),f.current=!0,h.current=y.target;const w=t.props.onFocus;w&&w(y)},b=y=>{c.current===null&&(c.current=y.relatedTarget),f.current=!0};return m.jsxs(C.Fragment,{children:[m.jsx("div",{tabIndex:i?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:v,onFocus:_}),m.jsx("div",{tabIndex:i?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}function AF(e){return typeof e=="function"?e():e}function MF(e){return e?e.props.hasOwnProperty("in"):!1}const q2=()=>{},Sh=new xF;function NF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:a,onTransitionExited:s,children:i,onClose:l,open:d,rootRef:u}=e,c=C.useRef({}),h=C.useRef(null),f=C.useRef(null),g=Kt(f,u),[v,S]=C.useState(!d),_=MF(i);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const y=()=>In(h.current),w=()=>(c.current.modalRef=f.current,c.current.mount=h.current,c.current),$=()=>{Sh.mount(w(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},k=fo(()=>{const N=AF(t)||y().body;Sh.add(w(),N),f.current&&$()}),T=()=>Sh.isTopModal(w()),O=fo(N=>{h.current=N,N&&(d&&T()?$():f.current&&Tu(f.current,b))}),D=C.useCallback(()=>{Sh.remove(w(),b)},[b]);C.useEffect(()=>()=>{D()},[D]),C.useEffect(()=>{d?k():(!_||!r)&&D()},[d,D,_,r,k]);const x=N=>M=>{var P;(P=N.onKeyDown)==null||P.call(N,M),!(M.key!=="Escape"||M.which===229||!T())&&(n||(M.stopPropagation(),l&&l(M,"escapeKeyDown")))},A=N=>M=>{var P;(P=N.onClick)==null||P.call(N,M),M.target===M.currentTarget&&l&&l(M,"backdropClick")};return{getRootProps:(N={})=>{const M=um(e);delete M.onTransitionEnter,delete M.onTransitionExited;const P={...M,...N};return{role:"presentation",...P,onKeyDown:x(P),ref:g}},getBackdropProps:(N={})=>{const M=N;return{"aria-hidden":!0,...M,onClick:A(M),open:d}},getTransitionProps:()=>{const N=()=>{S(!1),a&&a()},M=()=>{S(!0),s&&s(),r&&D()};return{onEnter:lb(N,(i==null?void 0:i.props.onEnter)??q2),onExited:lb(M,(i==null?void 0:i.props.onExited)??q2)}},rootRef:g,portalRef:O,isTopModal:T,exited:v,hasTransition:_}}function jF(e){return ie("MuiModal",e)}se("MuiModal",["root","hidden","backdrop"]);const zF=e=>{const{open:t,exited:n,classes:o}=e;return ce({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},jF,o)},RF=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(pe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),IF=G(h5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),m5=C.forwardRef(function(t,n){const o=de({name:"MuiModal",props:t}),{BackdropComponent:r=IF,BackdropProps:a,classes:s,className:i,closeAfterTransition:l=!1,children:d,container:u,component:c,components:h={},componentsProps:f={},disableAutoFocus:g=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:S=!1,disablePortal:_=!1,disableRestoreFocus:b=!1,disableScrollLock:y=!1,hideBackdrop:w=!1,keepMounted:$=!1,onBackdropClick:k,onClose:T,onTransitionEnter:O,onTransitionExited:D,open:x,slotProps:A={},slots:R={},theme:I,...j}=o,N={...o,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:v,disableEscapeKeyDown:S,disablePortal:_,disableRestoreFocus:b,disableScrollLock:y,hideBackdrop:w,keepMounted:$},{getRootProps:M,getBackdropProps:P,getTransitionProps:H,portalRef:B,isTopModal:Z,exited:oe,hasTransition:ve}=NF({...N,rootRef:n}),fe={...N,exited:oe},le=zF(fe),Se={};if(d.props.tabIndex===void 0&&(Se.tabIndex="-1"),ve){const{onEnter:me,onExited:ot}=H();Se.onEnter=me,Se.onExited=ot}const De={...j,slots:{root:h.Root,backdrop:h.Backdrop,...R},slotProps:{...f,...A}},[et,Ge]=Un("root",{elementType:RF,externalForwardedProps:De,getSlotProps:M,additionalProps:{ref:n,as:c},ownerState:fe,className:Y(i,le==null?void 0:le.root,!fe.open&&fe.exited&&(le==null?void 0:le.hidden))}),[qe,xe]=Un("backdrop",{elementType:r,externalForwardedProps:De,additionalProps:a,getSlotProps:me=>P({...me,onClick:ot=>{k&&k(ot),me!=null&&me.onClick&&me.onClick(ot)}}),className:Y(a==null?void 0:a.className,le==null?void 0:le.backdrop),ownerState:fe}),Ee=Kt(a==null?void 0:a.ref,xe.ref);return!$&&!x&&(!ve||oe)?null:m.jsx(d5,{ref:B,container:u,disablePortal:_,children:m.jsxs(et,{...Ge,children:[!w&&r?m.jsx(qe,{...xe,ref:Ee}):null,m.jsx(DF,{disableEnforceFocus:v,disableAutoFocus:g,disableRestoreFocus:b,isEnabled:Z,open:x,children:C.cloneElement(d,Se)})]})})});function LF(e){return ie("MuiDialog",e)}const Cv=se("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),g5=C.createContext({}),FF=G(h5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),PF=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${U(n)}`],paper:["paper",`paperScroll${U(n)}`,`paperWidth${U(String(o))}`,r&&"paperFullWidth",a&&"paperFullScreen"]};return ce(s,LF,t)},BF=G(m5,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),HF=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${U(n.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"}}}]}),UF=G(qs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${U(n.scroll)}`],t[`paperWidth${U(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(pe(({theme:e})=>({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:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Cv.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Cv.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Cv.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),yt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialog"}),r=qa(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,"aria-modal":l=!0,BackdropComponent:d,BackdropProps:u,children:c,className:h,disableEscapeKeyDown:f=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:S="sm",onBackdropClick:_,onClick:b,onClose:y,open:w,PaperComponent:$=qs,PaperProps:k={},scroll:T="paper",TransitionComponent:O=p5,transitionDuration:D=a,TransitionProps:x,...A}=o,R={...o,disableEscapeKeyDown:f,fullScreen:g,fullWidth:v,maxWidth:S,scroll:T},I=PF(R),j=C.useRef(),N=B=>{j.current=B.target===B.currentTarget},M=B=>{b&&b(B),j.current&&(j.current=null,_&&_(B),y&&y(B,"backdropClick"))},P=qg(i),H=C.useMemo(()=>({titleId:P}),[P]);return m.jsx(BF,{className:Y(I.root,h),closeAfterTransition:!0,components:{Backdrop:FF},componentsProps:{backdrop:{transitionDuration:D,as:d,...u}},disableEscapeKeyDown:f,onClose:y,open:w,ref:n,onClick:M,ownerState:R,...A,children:m.jsx(O,{appear:!0,in:w,timeout:D,role:"presentation",...x,children:m.jsx(HF,{className:Y(I.container),onMouseDown:N,ownerState:R,children:m.jsx(UF,{as:$,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":P,"aria-modal":l,...k,className:Y(I.paper,k.className),ownerState:R,children:m.jsx(g5.Provider,{value:H,children:c})})})})})});function WF(e){return ie("MuiDialogActions",e)}se("MuiDialogActions",["root","spacing"]);const VF=e=>{const{classes:t,disableSpacing:n}=e;return ce({root:["root",!n&&"spacing"]},WF,t)},GF=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Nt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:a=!1,...s}=o,i={...o,disableSpacing:a},l=VF(i);return m.jsx(GF,{className:Y(l.root,r),ownerState:i,ref:n,...s})});function qF(e){return ie("MuiDialogContent",e)}se("MuiDialogContent",["root","dividers"]);function XF(e){return ie("MuiDialogTitle",e)}const JF=se("MuiDialogTitle",["root"]),YF=e=>{const{classes:t,dividers:n}=e;return ce({root:["root",n&&"dividers"]},qF,t)},KF=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(pe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${JF.root} + &`]:{paddingTop:0}}}]}))),jt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialogContent"}),{className:r,dividers:a=!1,...s}=o,i={...o,dividers:a},l=YF(i);return m.jsx(KF,{className:Y(l.root,r),ownerState:i,ref:n,...s})});function ZF(e){return ie("MuiDialogContentText",e)}se("MuiDialogContentText",["root"]);const QF=e=>{const{classes:t}=e,o=ce({root:["root"]},ZF,t);return{...t,...o}},eP=G(ja,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ra=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialogContentText"}),{children:r,className:a,...s}=o,i=QF(s);return m.jsx(eP,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Y(i.root,a),...o,classes:i})}),tP=e=>{const{classes:t}=e;return ce({root:["root"]},XF,t)},nP=G(ja,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),bt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiDialogTitle"}),{className:r,id:a,...s}=o,i=o,l=tP(i),{titleId:d=a}=C.useContext(g5);return m.jsx(nP,{component:"h2",className:Y(l.root,r),ownerState:i,ref:n,variant:"h6",id:a??d,...s})}),X2=se("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function oP(e){return ie("MuiFab",e)}const J2=se("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),rP=e=>{const{color:t,variant:n,classes:o,size:r}=e,a={root:["root",n,`size${U(r)}`,t==="inherit"?"colorInherit":t]},s=ce(a,oP,o);return{...o,...s}},aP=G(Lo,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Cn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${U(n.size)}`],n.color==="inherit"&&t.colorInherit,t[U(n.size)],t[n.color]]}})(pe(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${J2.focusVisible}`]:{boxShadow:(e.vars||e).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"}}]}}),pe(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Pt(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),pe(({theme:e})=>({[`&.${J2.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Mt=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFab"}),{children:r,className:a,color:s="default",component:i="button",disabled:l=!1,disableFocusRipple:d=!1,focusVisibleClassName:u,size:c="large",variant:h="circular",...f}=o,g={...o,color:s,component:i,disabled:l,disableFocusRipple:d,size:c,variant:h},v=rP(g);return m.jsx(aP,{className:Y(v.root,a),component:i,disabled:l,focusRipple:!d,focusVisibleClassName:Y(v.focusVisible,u),ownerState:g,ref:n,...f,classes:v,children:r})}),sP=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:a,hiddenLabel:s,multiline:i}=e,l={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",a==="small"&&`size${U(a)}`,s&&"hiddenLabel",i&&"multiline"],input:["input"]},d=ce(l,J7,t);return{...t,...d}},iP=G(Qg,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Kg(e,t),!n.disableUnderline&&t.underline]}})(pe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Qs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Qs.disabled}`]:{backgroundColor:e.vars?e.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:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qs.disabled}, .${Qs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pt()).map(([s])=>{var i;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(i=(e.vars||e).palette[s])==null?void 0:i.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:i})=>s.multiline&&i==="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}}]}})),lP=G(e_,{name:"MuiFilledInput",slot:"Input",overridesResolver:Zg})(pe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.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:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ym=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:a={},componentsProps:s,fullWidth:i=!1,hiddenLabel:l,inputComponent:d="input",multiline:u=!1,slotProps:c,slots:h={},type:f="text",...g}=o,v={...o,disableUnderline:r,fullWidth:i,inputComponent:d,multiline:u,type:f},S=sP(o),_={root:{ownerState:v},input:{ownerState:v}},b=c??s?Gn(_,c??s):_,y=h.root??a.Root??iP,w=h.input??a.Input??lP;return m.jsx(tw,{slots:{root:y,input:w},slotProps:b,fullWidth:i,inputComponent:d,multiline:u,ref:n,type:f,...g,classes:S})});ym&&(ym.muiName="Input");function cP(e){return ie("MuiFormControl",e)}se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const dP=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${U(n)}`,o&&"fullWidth"]};return ce(r,cP,t)},uP=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${U(e.margin)}`],...e.fullWidth&&t.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%"}}]}),to=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormControl"}),{children:r,className:a,color:s="primary",component:i="div",disabled:l=!1,error:d=!1,focused:u,fullWidth:c=!1,hiddenLabel:h=!1,margin:f="none",required:g=!1,size:v="medium",variant:S="outlined",..._}=o,b={...o,color:s,component:i,disabled:l,error:d,fullWidth:c,hiddenLabel:h,margin:f,required:g,size:v,variant:S},y=dP(b),[w,$]=C.useState(()=>{let I=!1;return r&&C.Children.forEach(r,j=>{if(!$u(j,["Input","Select"]))return;const N=$u(j,["Select"])?j.props.input:j;N&&W7(N.props)&&(I=!0)}),I}),[k,T]=C.useState(()=>{let I=!1;return r&&C.Children.forEach(r,j=>{$u(j,["Input","Select"])&&(vm(j.props,!0)||vm(j.props.inputProps,!0))&&(I=!0)}),I}),[O,D]=C.useState(!1);l&&O&&D(!1);const x=u!==void 0&&!l?u:O;let A;C.useRef(!1);const R=C.useMemo(()=>({adornedStart:w,setAdornedStart:$,color:s,disabled:l,error:d,filled:k,focused:x,fullWidth:c,hiddenLabel:h,size:v,onBlur:()=>{D(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{D(!0)},registerEffect:A,required:g,variant:S}),[w,s,l,d,k,x,c,h,A,g,v,S]);return m.jsx(ew.Provider,{value:R,children:m.jsx(uP,{as:i,ownerState:b,className:Y(y.root,a),ref:n,..._,children:r})})});function pP(e){return ie("MuiFormControlLabel",e)}const eu=se("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),hP=e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${U(o)}`,r&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return ce(s,pP,t)},fP=G("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eu.label}`]:t.label},t.root,t[`labelPlacement${U(n.labelPlacement)}`]]}})(pe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${eu.disabled}`]:{cursor:"default"},[`& .${eu.label}`]:{[`&.${eu.disabled}`]:{color:(e.vars||e).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:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),mP=G("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(pe(({theme:e})=>({[`&.${eu.error}`]:{color:(e.vars||e).palette.error.main}}))),Oe=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormControlLabel"}),{checked:r,className:a,componentsProps:s={},control:i,disabled:l,disableTypography:d,inputRef:u,label:c,labelPlacement:h="end",name:f,onChange:g,required:v,slots:S={},slotProps:_={},value:b,...y}=o,w=da(),$=l??i.props.disabled??(w==null?void 0:w.disabled),k=v??i.props.required,T={disabled:$,required:k};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof i.props[N]>"u"&&typeof o[N]<"u"&&(T[N]=o[N])});const O=Js({props:o,muiFormControl:w,states:["error"]}),D={...o,disabled:$,labelPlacement:h,required:k,error:O.error},x=hP(D),A={slots:S,slotProps:{...s,..._}},[R,I]=Un("typography",{elementType:ja,externalForwardedProps:A,ownerState:D});let j=c;return j!=null&&j.type!==ja&&!d&&(j=m.jsx(R,{component:"span",...I,className:Y(x.label,I==null?void 0:I.className),children:j})),m.jsxs(fP,{className:Y(x.root,a),ownerState:D,ref:n,...y,children:[C.cloneElement(i,T),k?m.jsxs("div",{children:[j,m.jsxs(mP,{ownerState:D,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):j]})});function gP(e){return ie("MuiFormGroup",e)}se("MuiFormGroup",["root","row","error"]);const _P=e=>{const{classes:t,row:n,error:o}=e;return ce({root:["root",n&&"row",o&&"error"]},gP,t)},vP=G("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),$v=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormGroup"}),{className:r,row:a=!1,...s}=o,i=da(),l=Js({props:o,muiFormControl:i,states:["error"]}),d={...o,row:a,error:l.error},u=_P(d);return m.jsx(vP,{className:Y(u.root,r),ownerState:d,ref:n,...s})});function yP(e){return ie("MuiFormHelperText",e)}const Y2=se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var K2;const bP=e=>{const{classes:t,contained:n,size:o,disabled:r,error:a,filled:s,focused:i,required:l}=e,d={root:["root",r&&"disabled",a&&"error",o&&`size${U(o)}`,n&&"contained",i&&"focused",s&&"filled",l&&"required"]};return ce(d,yP,t)},wP=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${U(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Y2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Y2.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Er=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormHelperText"}),{children:r,className:a,component:s="p",disabled:i,error:l,filled:d,focused:u,margin:c,required:h,variant:f,...g}=o,v=da(),S=Js({props:o,muiFormControl:v,states:["variant","size","disabled","error","filled","focused","required"]}),_={...o,component:s,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete _.ownerState;const b=bP(_);return m.jsx(wP,{as:s,className:Y(b.root,a),ref:n,...g,ownerState:_,children:r===" "?K2||(K2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});function SP(e){return ie("MuiFormLabel",e)}const Ou=se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),xP=e=>{const{classes:t,color:n,focused:o,disabled:r,error:a,filled:s,required:i}=e,l={root:["root",`color${U(n)}`,r&&"disabled",a&&"error",s&&"filled",o&&"focused",i&&"required"],asterisk:["asterisk",a&&"error"]};return ce(l,SP,t)},CP=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{[`&.${Ou.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ou.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ou.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),$P=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(pe(({theme:e})=>({[`&.${Ou.error}`]:{color:(e.vars||e).palette.error.main}}))),kP=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiFormLabel"}),{children:r,className:a,color:s,component:i="label",disabled:l,error:d,filled:u,focused:c,required:h,...f}=o,g=da(),v=Js({props:o,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),S={...o,color:v.color||"primary",component:i,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required},_=xP(S);return m.jsxs(CP,{as:i,ownerState:S,className:Y(_.root,a),ref:n,...f,children:[r,v.required&&m.jsxs($P,{ownerState:S,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]})}),_s=Z8({createStyledComponent:G("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>de({props:e,name:"MuiGrid2"}),useTheme:qa});function wb(e){return`scale(${e}, ${e**2})`}const EP={entering:{opacity:1,transform:wb(1)},entered:{opacity:1,transform:"none"}},kv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ip=C.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:a,easing:s,in:i,onEnter:l,onEntered:d,onEntering:u,onExit:c,onExited:h,onExiting:f,style:g,timeout:v="auto",TransitionComponent:S=ca,..._}=t,b=gi(),y=C.useRef(),w=qa(),$=C.useRef(null),k=Kt($,Xi(a),n),T=N=>M=>{if(N){const P=$.current;M===void 0?N(P):N(P,M)}},O=T(u),D=T((N,M)=>{Q4(N);const{duration:P,delay:H,easing:B}=mm({style:g,timeout:v,easing:s},{mode:"enter"});let Z;v==="auto"?(Z=w.transitions.getAutoHeightDuration(N.clientHeight),y.current=Z):Z=P,N.style.transition=[w.transitions.create("opacity",{duration:Z,delay:H}),w.transitions.create("transform",{duration:kv?Z:Z*.666,delay:H,easing:B})].join(","),l&&l(N,M)}),x=T(d),A=T(f),R=T(N=>{const{duration:M,delay:P,easing:H}=mm({style:g,timeout:v,easing:s},{mode:"exit"});let B;v==="auto"?(B=w.transitions.getAutoHeightDuration(N.clientHeight),y.current=B):B=M,N.style.transition=[w.transitions.create("opacity",{duration:B,delay:P}),w.transitions.create("transform",{duration:kv?B:B*.666,delay:kv?P:P||B*.333,easing:H})].join(","),N.style.opacity=0,N.style.transform=wb(.75),c&&c(N)}),I=T(h),j=N=>{v==="auto"&&b.start(y.current||0,N),o&&o($.current,N)};return m.jsx(S,{appear:r,in:i,nodeRef:$,onEnter:D,onEntered:x,onEntering:O,onExit:R,onExited:I,onExiting:A,addEndListener:j,timeout:v==="auto"?null:v,..._,children:(N,M)=>C.cloneElement(a,{style:{opacity:0,transform:wb(.75),visibility:N==="exited"&&!i?"hidden":void 0,...EP[N],...g,...a.props.style},ref:k,...M})})});ip&&(ip.muiSupportAuto=!0);const _5=l8({themeId:kr}),TP=e=>{const{classes:t,disableUnderline:n}=e,r=ce({root:["root",!n&&"underline"],input:["input"]},q7,t);return{...t,...r}},OP=G(Qg,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Kg(e,t),!n.disableUnderline&&t.underline]}})(pe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Dd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Dd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Dd.disabled}, .${Dd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Dd.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),DP=G(e_,{name:"MuiInput",slot:"Input",overridesResolver:Zg})({}),Qn=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:a={},componentsProps:s,fullWidth:i=!1,inputComponent:l="input",multiline:d=!1,slotProps:u,slots:c={},type:h="text",...f}=o,g=TP(o),S={root:{ownerState:{disableUnderline:r}}},_=u??s?Gn(u??s,S):S,b=c.root??a.Root??OP,y=c.input??a.Input??DP;return m.jsx(tw,{slots:{root:b,input:y},slotProps:_,fullWidth:i,inputComponent:l,multiline:d,ref:n,type:h,...f,classes:g})});Qn&&(Qn.muiName="Input");function AP(e){return ie("MuiInputLabel",e)}se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const MP=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:a,variant:s,required:i}=e,l={root:["root",n&&"formControl",!a&&"animated",r&&"shrink",o&&o!=="normal"&&`size${U(o)}`,s],asterisk:[i&&"asterisk"]},d=ce(l,AP,t);return{...t,...d}},NP=G(kP,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ou.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(pe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.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:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.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:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="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:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),xf=C.forwardRef(function(t,n){const o=de({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:a,shrink:s,variant:i,className:l,...d}=o,u=da();let c=s;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);const h=Js({props:o,muiFormControl:u,states:["size","variant","required","focused"]}),f={...o,disableAnimation:r,formControl:u,shrink:c,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=MP(f);return m.jsx(NP,{"data-shrink":c,ref:n,className:Y(g.root,l),...d,ownerState:f,classes:g})});function jP(e){return ie("MuiLinearProgress",e)}se("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Sb=4,xb=Gs` 0% { left: -35%; right: 100%; @@ -218,9 +218,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann left: 100%; right: -90%; } -`,jP=typeof Sb!="string"?nd` - animation: ${Sb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `:null,xb=Gs` +`,zP=typeof xb!="string"?nd` + animation: ${xb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Cb=Gs` 0% { left: -200%; right: 100%; @@ -235,9 +235,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann left: 107%; right: -8%; } -`,zP=typeof xb!="string"?nd` - animation: ${xb} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `:null,Cb=Gs` +`,RP=typeof Cb!="string"?nd` + animation: ${Cb} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,$b=Gs` 0% { opacity: 1; background-position: 0 -23px; @@ -252,32 +252,32 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann opacity: 1; background-position: -200px -23px; } -`,RP=typeof Cb!="string"?nd` - animation: ${Cb} 3s infinite linear; - `:null,IP=e=>{const{classes:t,variant:n,color:o}=e,r={root:["root",`color${U(o)}`,n],dashed:["dashed",`dashedColor${U(o)}`],bar1:["bar",`barColor${U(o)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${U(o)}`,n==="buffer"&&`color${U(o)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ce(r,NP,t)},nw=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?rd(e.palette[t].main,.62):od(e.palette[t].main,.5),LP=G("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${U(n.color)}`],t[n.variant]]}})(pe(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{backgroundColor:nw(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.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)"}}]}))),FP=G("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${U(n.color)}`]]}})(pe(({theme:e})=>({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(e.palette).filter(Pt()).map(([t])=>{const n=nw(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),RP||{animation:`${Cb} 3s infinite linear`}),PP=G("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${U(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(pe(({theme:e})=>({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(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${wb}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${wb}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:jP||{animation:`${Sb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),BP=G("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${U(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(pe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:nw(e,t),transition:`transform .${wb}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:zP||{animation:`${xb} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),HP=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiLinearProgress"}),{className:r,color:a="primary",value:s,valueBuffer:i,variant:l="indeterminate",...d}=o,u={...o,color:a,variant:l},c=IP(u),h=ad(),f={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){f["aria-valuenow"]=Math.round(s),f["aria-valuemin"]=0,f["aria-valuemax"]=100;let v=s-100;h&&(v=-v),g.bar1.transform=`translateX(${v}%)`}if(l==="buffer"&&i!==void 0){let v=(i||0)-100;h&&(v=-v),g.bar2.transform=`translateX(${v}%)`}return m.jsxs(LP,{className:Y(c.root,r),ownerState:u,role:"progressbar",...f,ref:n,...d,children:[l==="buffer"?m.jsx(FP,{className:c.dashed,ownerState:u}):null,m.jsx(PP,{className:c.bar1,ownerState:u,style:g.bar1}),l==="determinate"?null:m.jsx(BP,{className:c.bar2,ownerState:u,style:g.bar2})]})}),Tr=C.createContext({});function UP(e){return ie("MuiList",e)}se("MuiList",["root","padding","dense","subheader"]);const WP=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return ce({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},UP,t)},VP=G("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),$b=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiList"}),{children:r,className:a,component:s="ul",dense:i=!1,disablePadding:l=!1,subheader:d,...u}=o,c=C.useMemo(()=>({dense:i}),[i]),h={...o,component:s,dense:i,disablePadding:l},f=WP(h);return m.jsx(Tr.Provider,{value:c,children:m.jsxs(VP,{as:s,className:Y(f.root,a),ref:n,ownerState:h,...u,children:[d,r]})})});function GP(e){return ie("MuiListItem",e)}se("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function qP(e){return ie("MuiListItemButton",e)}const El=se("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),XP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},JP=e=>{const{alignItems:t,classes:n,dense:o,disabled:r,disableGutters:a,divider:s,selected:i}=e,d=ce({root:["root",o&&"dense",!a&&"gutters",s&&"divider",r&&"disabled",t==="flex-start"&&"alignItemsFlexStart",i&&"selected"]},qP,n);return{...n,...d}},YP=G(Lo,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:XP})(pe(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${El.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${El.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${El.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${El.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${El.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),K2=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:a=!1,component:s="div",children:i,dense:l=!1,disableGutters:d=!1,divider:u=!1,focusVisibleClassName:c,selected:h=!1,className:f,...g}=o,v=C.useContext(Tr),S=C.useMemo(()=>({dense:l||v.dense||!1,alignItems:r,disableGutters:d}),[r,v.dense,l,d]),_=C.useRef(null);Io(()=>{a&&_.current&&_.current.focus()},[a]);const b={...o,alignItems:r,dense:S.dense,disableGutters:d,divider:u,selected:h},y=JP(b),w=Kt(_,n);return m.jsx(Tr.Provider,{value:S,children:m.jsx(YP,{ref:w,href:g.href||g.to,component:(g.href||g.to)&&s==="div"?"button":s,focusVisibleClassName:Y(y.focusVisible,c),ownerState:b,className:Y(y.root,f),...g,classes:y,children:i})})});function KP(e){return ie("MuiListItemSecondaryAction",e)}se("MuiListItemSecondaryAction",["root","disableGutters"]);const ZP=e=>{const{disableGutters:t,classes:n}=e;return ce({root:["root",t&&"disableGutters"]},KP,n)},QP=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),g5=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...a}=o,s=C.useContext(Tr),i={...o,disableGutters:s.disableGutters},l=ZP(i);return m.jsx(QP,{className:Y(l.root,r),ownerState:i,ref:n,...a})});g5.muiName="ListItemSecondaryAction";const eB=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},tB=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:a,divider:s,hasSecondaryAction:i}=e;return ce({root:["root",o&&"dense",!r&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},GP,n)},nB=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:eB})(pe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${El.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),oB=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),rB=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItem"}),{alignItems:r="center",children:a,className:s,component:i,components:l={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:c,...h}={},dense:f=!1,disableGutters:g=!1,disablePadding:v=!1,divider:S=!1,secondaryAction:_,slotProps:b={},slots:y={},...w}=o,$=C.useContext(Tr),k=C.useMemo(()=>({dense:f||$.dense||!1,alignItems:r,disableGutters:g}),[r,$.dense,f,g]),T=C.useRef(null),O=C.Children.toArray(a),D=O.length&&$u(O[O.length-1],["ListItemSecondaryAction"]),x={...o,alignItems:r,dense:k.dense,disableGutters:g,disablePadding:v,divider:S,hasSecondaryAction:D},A=tB(x),R=Kt(T,n),I=y.root||l.Root||nB,j=b.root||d.root||{},N={className:Y(A.root,j.className,s),...w};let M=i||"li";return D?(M=!N.component&&!i?"div":M,u==="li"&&(M==="li"?M="div":N.component==="li"&&(N.component="div")),m.jsx(Tr.Provider,{value:k,children:m.jsxs(oB,{as:u,className:Y(A.container,c),ref:R,ownerState:x,...h,children:[m.jsx(I,{...j,...!ap(I)&&{as:M,ownerState:{...x,...j.ownerState}},...N,children:O}),O.pop()]})})):m.jsx(Tr.Provider,{value:k,children:m.jsxs(I,{...j,as:M,ref:R,...!ap(I)&&{ownerState:{...x,...j.ownerState}},...N,children:[O,_&&m.jsx(g5,{children:_})]})})});function aB(e){return ie("MuiListItemIcon",e)}const Z2=se("MuiListItemIcon",["root","alignItemsFlexStart"]),sB=e=>{const{alignItems:t,classes:n}=e;return ce({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},aB,n)},iB=G("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(pe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Tl=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItemIcon"}),{className:r,...a}=o,s=C.useContext(Tr),i={...o,alignItems:s.alignItems},l=sB(i);return m.jsx(iB,{className:Y(l.root,r),ownerState:i,ref:n,...a})});function lB(e){return ie("MuiListItemText",e)}const oc=se("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),cB=e=>{const{classes:t,inset:n,primary:o,secondary:r,dense:a}=e;return ce({root:["root",n&&"inset",a&&"dense",o&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},lB,t)},dB=G("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${oc.primary}`]:t.primary},{[`& .${oc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${k2.root}:where(& .${oc.primary})`]:{display:"block"},[`.${k2.root}:where(& .${oc.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),as=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItemText"}),{children:r,className:a,disableTypography:s=!1,inset:i=!1,primary:l,primaryTypographyProps:d,secondary:u,secondaryTypographyProps:c,...h}=o,{dense:f}=C.useContext(Tr);let g=l??r,v=u;const S={...o,disableTypography:s,inset:i,primary:!!g,secondary:!!v,dense:f},_=cB(S);return g!=null&&g.type!==ja&&!s&&(g=m.jsx(ja,{variant:f?"body2":"body1",className:_.primary,component:d!=null&&d.variant?void 0:"span",...d,children:g})),v!=null&&v.type!==ja&&!s&&(v=m.jsx(ja,{variant:"body2",className:_.secondary,color:"textSecondary",...c,children:v})),m.jsxs(dB,{className:Y(_.root,a),ownerState:S,ref:n,...h,children:[g,v]})});function Ev(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Q2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function _5(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ad(e,t,n,o,r,a){let s=!1,i=r(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const l=o?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!_5(i,a)||l)i=r(e,i,n);else return i.focus(),!0}return!1}const uB=C.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:a=!1,children:s,className:i,disabledItemsFocusable:l=!1,disableListWrap:d=!1,onKeyDown:u,variant:c="selectedMenu",...h}=t,f=C.useRef(null),g=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Io(()=>{r&&f.current.focus()},[r]),C.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(y,{direction:w})=>{const $=!f.current.style.width;if(y.clientHeight{const w=f.current,$=y.key;if(y.ctrlKey||y.metaKey||y.altKey){u&&u(y);return}const T=In(w).activeElement;if($==="ArrowDown")y.preventDefault(),Ad(w,T,d,l,Ev);else if($==="ArrowUp")y.preventDefault(),Ad(w,T,d,l,Q2);else if($==="Home")y.preventDefault(),Ad(w,null,d,l,Ev);else if($==="End")y.preventDefault(),Ad(w,null,d,l,Q2);else if($.length===1){const O=g.current,D=$.toLowerCase(),x=performance.now();O.keys.length>0&&(x-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&D!==O.keys[0]&&(O.repeating=!1)),O.lastTime=x,O.keys.push(D);const A=T&&!O.repeating&&_5(T,O);O.previousKeyMatched&&(A||Ad(w,T,!1,l,Ev,O))?y.preventDefault():O.previousKeyMatched=!1}u&&u(y)},S=Kt(f,n);let _=-1;C.Children.forEach(s,(y,w)=>{if(!C.isValidElement(y)){_===w&&(_+=1,_>=s.length&&(_=-1));return}y.props.disabled||(c==="selectedMenu"&&y.props.selected||_===-1)&&(_=w),_===w&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(_+=1,_>=s.length&&(_=-1))});const b=C.Children.map(s,(y,w)=>{if(w===_){const $={};return a&&($.autoFocus=!0),y.props.tabIndex===void 0&&c==="selectedMenu"&&($.tabIndex=0),C.cloneElement(y,$)}return y});return m.jsx($b,{role:"menu",ref:S,className:i,onKeyDown:v,tabIndex:r?0:-1,...h,children:b})});function pB(e){return ie("MuiPopover",e)}se("MuiPopover",["root","paper"]);function eC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function tC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function nC(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Tv(e){return typeof e=="function"?e():e}const hB=e=>{const{classes:t}=e;return ce({root:["root"],paper:["paper"]},pB,t)},fB=G(h5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),v5=G(qs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),mB=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiPopover"}),{action:r,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:d,className:u,container:c,elevation:h=8,marginThreshold:f=16,open:g,PaperProps:v={},slots:S={},slotProps:_={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:y=ip,transitionDuration:w="auto",TransitionProps:{onEntering:$,...k}={},disableScrollLock:T=!1,...O}=o,D=(_==null?void 0:_.paper)??v,x=C.useRef(),A={...o,anchorOrigin:s,anchorReference:l,elevation:h,marginThreshold:f,externalPaperSlotProps:D,transformOrigin:b,TransitionComponent:y,transitionDuration:w,TransitionProps:k},R=hB(A),I=C.useCallback(()=>{if(l==="anchorPosition")return i;const xe=Tv(a),me=(xe&&xe.nodeType===1?xe:In(x.current).body).getBoundingClientRect();return{top:me.top+eC(me,s.vertical),left:me.left+tC(me,s.horizontal)}},[a,s.horizontal,s.vertical,i,l]),j=C.useCallback(xe=>({vertical:eC(xe,b.vertical),horizontal:tC(xe,b.horizontal)}),[b.horizontal,b.vertical]),N=C.useCallback(xe=>{const Ee={width:xe.offsetWidth,height:xe.offsetHeight},me=j(Ee);if(l==="none")return{top:null,left:null,transformOrigin:nC(me)};const ot=I();let Ce=ot.top-me.vertical,ze=ot.left-me.horizontal;const X=Ce+Ee.height,ee=ze+Ee.width,$e=Dr(Tv(a)),Ae=$e.innerHeight-f,Xe=$e.innerWidth-f;if(f!==null&&CeAe){const Be=X-Ae;Ce-=Be,me.vertical+=Be}if(f!==null&&zeXe){const Be=ee-Xe;ze-=Be,me.horizontal+=Be}return{top:`${Math.round(Ce)}px`,left:`${Math.round(ze)}px`,transformOrigin:nC(me)}},[a,l,I,j,f]),[M,P]=C.useState(g),H=C.useCallback(()=>{const xe=x.current;if(!xe)return;const Ee=N(xe);Ee.top!==null&&xe.style.setProperty("top",Ee.top),Ee.left!==null&&(xe.style.left=Ee.left),xe.style.transformOrigin=Ee.transformOrigin,P(!0)},[N]);C.useEffect(()=>(T&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,T,H]);const B=(xe,Ee)=>{$&&$(xe,Ee),H()},Z=()=>{P(!1)};C.useEffect(()=>{g&&H()}),C.useImperativeHandle(r,()=>g?{updatePosition:()=>{H()}}:null,[g,H]),C.useEffect(()=>{if(!g)return;const xe=Gg(()=>{H()}),Ee=Dr(a);return Ee.addEventListener("resize",xe),()=>{xe.clear(),Ee.removeEventListener("resize",xe)}},[a,g,H]);let oe=w;w==="auto"&&!y.muiSupportAuto&&(oe=void 0);const ve=c||(a?In(Tv(a)).body:void 0),fe={slots:S,slotProps:{..._,paper:D}},[le,Se]=Un("paper",{elementType:v5,externalForwardedProps:fe,additionalProps:{elevation:h,className:Y(R.paper,D==null?void 0:D.className),style:M?D.style:{...D.style,opacity:0}},ownerState:A}),[De,{slotProps:et,...Ge}]=Un("root",{elementType:fB,externalForwardedProps:fe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ve,open:g},ownerState:A,className:Y(R.root,u)}),qe=Kt(x,Se.ref);return m.jsx(De,{...Ge,...!ap(De)&&{slotProps:et,disableScrollLock:T},...O,ref:n,children:m.jsx(y,{appear:!0,in:g,onEntering:B,onExited:Z,timeout:oe,...k,children:m.jsx(le,{...Se,ref:qe,children:d})})})});function gB(e){return ie("MuiMenu",e)}se("MuiMenu",["root","paper","list"]);const _B={vertical:"top",horizontal:"right"},vB={vertical:"top",horizontal:"left"},yB=e=>{const{classes:t}=e;return ce({root:["root"],paper:["paper"],list:["list"]},gB,t)},bB=G(mB,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wB=G(v5,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),SB=G(uB,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Du=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:a,className:s,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:d,open:u,PaperProps:c={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:g,...v}={},variant:S="selectedMenu",slots:_={},slotProps:b={},...y}=o,w=ad(),$={...o,autoFocus:r,disableAutoFocusItem:i,MenuListProps:l,onEntering:g,PaperProps:c,transitionDuration:f,TransitionProps:v,variant:S},k=yB($),T=r&&!i&&u,O=C.useRef(null),D=(M,P)=>{O.current&&O.current.adjustStyleForScrollbar(M,{direction:w?"rtl":"ltr"}),g&&g(M,P)},x=M=>{M.key==="Tab"&&(M.preventDefault(),d&&d(M,"tabKeyDown"))};let A=-1;C.Children.map(a,(M,P)=>{C.isValidElement(M)&&(M.props.disabled||(S==="selectedMenu"&&M.props.selected||A===-1)&&(A=P))});const R=_.paper??wB,I=b.paper??c,j=Ar({elementType:_.root,externalSlotProps:b.root,ownerState:$,className:[k.root,s]}),N=Ar({elementType:R,externalSlotProps:I,ownerState:$,className:k.paper});return m.jsx(bB,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?_B:vB,slots:{paper:R,root:_.root},slotProps:{root:j,paper:N},open:u,ref:n,transitionDuration:f,TransitionProps:{onEntering:D,...v},ownerState:$,...y,classes:h,children:m.jsx(SB,{onKeyDown:x,actions:O,autoFocus:r&&(A===-1||i),autoFocusItem:T,variant:S,...l,className:Y(k.list,l.className),children:a})})});function xB(e){return ie("MuiMenuItem",e)}const Md=se("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),CB=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},$B=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:a,classes:s}=e,l=ce({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",a&&"selected"]},xB,s);return{...s,...l}},kB=G(Lo,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:CB})(pe(({theme:e})=>({...e.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:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Md.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Md.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Md.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Md.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Md.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${q2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${q2.inset}`]:{marginLeft:52},[`& .${oc.root}`]:{marginTop:0,marginBottom:0},[`& .${oc.inset}`]:{paddingLeft:36},[`& .${Z2.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Z2.root} svg`]:{fontSize:"1.25rem"}}}]}))),je=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:a="li",dense:s=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:d,role:u="menuitem",tabIndex:c,className:h,...f}=o,g=C.useContext(Tr),v=C.useMemo(()=>({dense:s||g.dense||!1,disableGutters:l}),[g.dense,s,l]),S=C.useRef(null);Io(()=>{r&&S.current&&S.current.focus()},[r]);const _={...o,dense:v.dense,divider:i,disableGutters:l},b=$B(o),y=Kt(S,n);let w;return o.disabled||(w=c!==void 0?c:-1),m.jsx(Tr.Provider,{value:v,children:m.jsx(kB,{ref:y,role:u,tabIndex:w,component:a,focusVisibleClassName:Y(b.focusVisible,d),className:Y(b.root,h),...f,ownerState:_,classes:b})})});function EB(e){return ie("MuiNativeSelect",e)}const ow=se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),TB=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:a,error:s}=e,i={select:["select",n,o&&"disabled",r&&"multiple",s&&"error"],icon:["icon",`icon${U(n)}`,a&&"iconOpen",o&&"disabled"]};return ce(i,EB,t)},y5=G("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ow.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),OB=G(y5,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ow.multiple}`]:t.multiple}]}})({}),b5=G("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${ow.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),DB=G(b5,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})({}),AB=C.forwardRef(function(t,n){const{className:o,disabled:r,error:a,IconComponent:s,inputRef:i,variant:l="standard",...d}=t,u={...t,disabled:r,variant:l,error:a},c=TB(u);return m.jsxs(C.Fragment,{children:[m.jsx(OB,{ownerState:u,className:Y(c.select,o),disabled:r,ref:i||n,...d}),t.multiple?null:m.jsx(DB,{as:s,ownerState:u,className:c.icon})]})});var oC;const MB=G("fieldset",{shouldForwardProp:Cn})({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%"}),NB=G("legend",{shouldForwardProp:Cn})(pe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function jB(e){const{children:t,classes:n,className:o,label:r,notched:a,...s}=e,i=r!=null&&r!=="",l={...e,notched:a,withLabel:i};return m.jsx(MB,{"aria-hidden":!0,className:o,ownerState:l,...s,children:m.jsx(NB,{ownerState:l,children:i?m.jsx("span",{children:r}):oC||(oC=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const zB=e=>{const{classes:t}=e,o=ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},q7,t);return{...t,...o}},RB=G(Qg,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Kg})(pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Rr.focused} .${Rr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Pt()).map(([n])=>({props:{color:n},style:{[`&.${Rr.focused} .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Rr.error} .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Rr.disabled} .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),IB=G(jB,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),LB=G(e_,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zg})(pe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.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:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),bm=C.forwardRef(function(t,n){var o;const r=de({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:s=!1,inputComponent:i="input",label:l,multiline:d=!1,notched:u,slots:c={},type:h="text",...f}=r,g=zB(r),v=da(),S=Js({props:r,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_={...r,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:v,fullWidth:s,hiddenLabel:S.hiddenLabel,multiline:d,size:S.size,type:h},b=c.root??a.Root??RB,y=c.input??a.Input??LB;return m.jsx(ew,{slots:{root:b,input:y},renderSuffix:w=>m.jsx(IB,{ownerState:_,className:g.notchedOutline,label:l!=null&&l!==""&&S.required?o||(o=m.jsxs(C.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:s,inputComponent:i,multiline:d,ref:n,type:h,...f,classes:{...g,notchedOutline:null}})});bm&&(bm.muiName="Input");const FB=te(m.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"),PB=te(m.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"),BB=G("span",{shouldForwardProp:Cn})({position:"relative",display:"flex"}),HB=G(FB)({transform:"scale(1)"}),UB=G(PB)(pe(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function w5(e){const{checked:t=!1,classes:n={},fontSize:o}=e,r={...e,checked:t};return m.jsxs(BB,{className:n.root,ownerState:r,children:[m.jsx(HB,{fontSize:o,className:n.background,ownerState:r}),m.jsx(UB,{fontSize:o,className:n.dot,ownerState:r})]})}const WB=C.createContext(void 0);function VB(){return C.useContext(WB)}function GB(e){return ie("MuiRadio",e)}const rC=se("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),qB=e=>{const{classes:t,color:n,size:o}=e,r={root:["root",`color${U(n)}`,o!=="medium"&&`size${U(o)}`]};return{...t,...ce(r,GB,t)}},XB=G(tw,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${U(n.size)}`],t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${rC.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${rC.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function JB(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const aC=m.jsx(w5,{checked:!0}),sC=m.jsx(w5,{}),It=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiRadio"}),{checked:r,checkedIcon:a=aC,color:s="primary",icon:i=sC,name:l,onChange:d,size:u="medium",className:c,disabled:h,disableRipple:f=!1,...g}=o,v=da();let S=h;v&&typeof S>"u"&&(S=v.disabled),S??(S=!1);const _={...o,disabled:S,disableRipple:f,color:s,size:u},b=qB(_),y=VB();let w=r;const $=ib(d,y&&y.onChange);let k=l;return y&&(typeof w>"u"&&(w=JB(y.value,o.value)),typeof k>"u"&&(k=y.name)),m.jsx(XB,{type:"radio",icon:C.cloneElement(i,{fontSize:sC.props.fontSize??u}),checkedIcon:C.cloneElement(a,{fontSize:aC.props.fontSize??u}),disabled:S,ownerState:_,classes:b,name:k,checked:w,onChange:$,ref:n,className:Y(b.root,c),...g})});function YB(e){return ie("MuiSelect",e)}const Nd=se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var iC;const KB=G(y5,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nd.select}`]:t.select},{[`&.${Nd.select}`]:t[n.variant]},{[`&.${Nd.error}`]:t.error},{[`&.${Nd.multiple}`]:t.multiple}]}})({[`&.${Nd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ZB=G(b5,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})({}),QB=G("input",{shouldForwardProp:e=>X4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lC(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function eH(e){return e==null||typeof e=="string"&&!e.trim()}const tH=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:a,error:s}=e,i={select:["select",n,o&&"disabled",r&&"multiple",s&&"error"],icon:["icon",`icon${U(n)}`,a&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ce(i,YB,t)},nH=C.forwardRef(function(t,n){var yn;const{"aria-describedby":o,"aria-label":r,autoFocus:a,autoWidth:s,children:i,className:l,defaultOpen:d,defaultValue:u,disabled:c,displayEmpty:h,error:f=!1,IconComponent:g,inputRef:v,labelId:S,MenuProps:_={},multiple:b,name:y,onBlur:w,onChange:$,onClose:k,onFocus:T,onOpen:O,open:D,readOnly:x,renderValue:A,SelectDisplayProps:R={},tabIndex:I,type:j,value:N,variant:M="standard",...P}=t,[H,B]=cm({controlled:N,default:u,name:"Select"}),[Z,oe]=cm({controlled:D,default:d,name:"Select"}),ve=C.useRef(null),fe=C.useRef(null),[le,Se]=C.useState(null),{current:De}=C.useRef(D!=null),[et,Ge]=C.useState(),qe=Kt(n,v),xe=C.useCallback(ae=>{fe.current=ae,ae&&Se(ae)},[]),Ee=le==null?void 0:le.parentNode;C.useImperativeHandle(qe,()=>({focus:()=>{fe.current.focus()},node:ve.current,value:H}),[H]),C.useEffect(()=>{d&&Z&&le&&!De&&(Ge(s?null:Ee.clientWidth),fe.current.focus())},[le,s]),C.useEffect(()=>{a&&fe.current.focus()},[a]),C.useEffect(()=>{if(!S)return;const ae=In(fe.current).getElementById(S);if(ae){const Q=()=>{getSelection().isCollapsed&&fe.current.focus()};return ae.addEventListener("click",Q),()=>{ae.removeEventListener("click",Q)}}},[S]);const me=(ae,Q)=>{ae?O&&O(Q):k&&k(Q),De||(Ge(s?null:Ee.clientWidth),oe(ae))},ot=ae=>{ae.button===0&&(ae.preventDefault(),fe.current.focus(),me(!0,ae))},Ce=ae=>{me(!1,ae)},ze=C.Children.toArray(i),X=ae=>{const Q=ze.find(ne=>ne.props.value===ae.target.value);Q!==void 0&&(B(Q.props.value),$&&$(ae,Q))},ee=ae=>Q=>{let ne;if(Q.currentTarget.hasAttribute("tabindex")){if(b){ne=Array.isArray(H)?H.slice():[];const Le=H.indexOf(ae.props.value);Le===-1?ne.push(ae.props.value):ne.splice(Le,1)}else ne=ae.props.value;if(ae.props.onClick&&ae.props.onClick(Q),H!==ne&&(B(ne),$)){const Le=Q.nativeEvent||Q,Re=new Le.constructor(Le.type,Le);Object.defineProperty(Re,"target",{writable:!0,value:{value:ne,name:y}}),$(Re,ae)}b||me(!1,Q)}},$e=ae=>{x||[" ","ArrowUp","ArrowDown","Enter"].includes(ae.key)&&(ae.preventDefault(),me(!0,ae))},Ae=le!==null&&Z,Xe=ae=>{!Ae&&w&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:H,name:y}}),w(ae))};delete P["aria-invalid"];let Be,_e;const nn=[];let K=!1;(vm({value:H})||h)&&(A?Be=A(H):K=!0);const ge=ze.map(ae=>{if(!C.isValidElement(ae))return null;let Q;if(b){if(!Array.isArray(H))throw new Error(Ua(2));Q=H.some(ne=>lC(ne,ae.props.value)),Q&&K&&nn.push(ae.props.children)}else Q=lC(H,ae.props.value),Q&&K&&(_e=ae.props.children);return C.cloneElement(ae,{"aria-selected":Q?"true":"false",onClick:ee(ae),onKeyUp:ne=>{ne.key===" "&&ne.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(ne)},role:"option",selected:Q,value:void 0,"data-value":ae.props.value})});K&&(b?nn.length===0?Be=null:Be=nn.reduce((ae,Q,ne)=>(ae.push(Q),ne{const{classes:t}=e;return t},rw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Cn(e)&&e!=="variant",slot:"Root"},rH=G(Qn,rw)(""),aH=G(bm,rw)(""),sH=G(ym,rw)(""),_n=C.forwardRef(function(t,n){const o=de({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:a,classes:s={},className:i,defaultOpen:l=!1,displayEmpty:d=!1,IconComponent:u=J7,id:c,input:h,inputProps:f,label:g,labelId:v,MenuProps:S,multiple:_=!1,native:b=!1,onClose:y,onOpen:w,open:$,renderValue:k,SelectDisplayProps:T,variant:O="outlined",...D}=o,x=b?AB:nH,A=da(),R=Js({props:o,muiFormControl:A,states:["variant","error"]}),I=R.variant||O,j={...o,variant:I,classes:s},N=oH(j),{root:M,...P}=N,H=h||{standard:m.jsx(rH,{ownerState:j}),outlined:m.jsx(aH,{label:g,ownerState:j}),filled:m.jsx(sH,{ownerState:j})}[I],B=Kt(n,Xi(H));return m.jsx(C.Fragment,{children:C.cloneElement(H,{inputComponent:x,inputProps:{children:a,error:R.error,IconComponent:u,variant:I,type:void 0,multiple:_,...b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:d,labelId:v,MenuProps:S,onClose:y,onOpen:w,open:$,renderValue:k,SelectDisplayProps:{id:c,...T}},...f,classes:f?Gn(P,f.classes):P,...h?h.props.inputProps:{}},...(_&&b||d)&&I==="outlined"?{notched:!0}:{},ref:B,className:Y(H.props.className,i,N.root),...!h&&{variant:I},...D})})});_n.muiName="Select";function iH(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:o,open:r,resumeHideDuration:a}=e,s=gi();C.useEffect(()=>{if(!r)return;function _(b){b.defaultPrevented||b.key==="Escape"&&(o==null||o(b,"escapeKeyDown"))}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[r,o]);const i=fo((_,b)=>{o==null||o(_,b)}),l=fo(_=>{!o||_==null||s.start(_,()=>{i(null,"timeout")})});C.useEffect(()=>(r&&l(t),s.clear),[r,t,l,s]);const d=_=>{o==null||o(_,"clickaway")},u=s.clear,c=C.useCallback(()=>{t!=null&&l(a??t*.5)},[t,a,l]),h=_=>b=>{const y=_.onBlur;y==null||y(b),c()},f=_=>b=>{const y=_.onFocus;y==null||y(b),u()},g=_=>b=>{const y=_.onMouseEnter;y==null||y(b),u()},v=_=>b=>{const y=_.onMouseLeave;y==null||y(b),c()};return C.useEffect(()=>{if(!n&&r)return window.addEventListener("focus",c),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",c),window.removeEventListener("blur",u)}},[n,r,c,u]),{getRootProps:(_={})=>{const b={...um(e),...um(_)};return{role:"presentation",..._,...b,onBlur:h(b),onFocus:f(b),onMouseEnter:g(b),onMouseLeave:v(b)}},onClickAway:d}}function lH(e){return ie("MuiSnackbarContent",e)}se("MuiSnackbarContent",["root","message","action"]);const cH=e=>{const{classes:t}=e;return ce({root:["root"],action:["action"],message:["message"]},lH,t)},dH=G(qs,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(pe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=lm(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),uH=G("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),pH=G("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),hH=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiSnackbarContent"}),{action:r,className:a,message:s,role:i="alert",...l}=o,d=o,u=cH(d);return m.jsxs(dH,{role:i,square:!0,elevation:6,className:Y(u.root,a),ownerState:d,ref:n,...l,children:[m.jsx(uH,{className:u.message,ownerState:d,children:s}),r?m.jsx(pH,{className:u.action,ownerState:d,children:r}):null]})});function fH(e){return ie("MuiSnackbar",e)}se("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mH=e=>{const{classes:t,anchorOrigin:n}=e,o={root:["root",`anchorOrigin${U(n.vertical)}${U(n.horizontal)}`]};return ce(o,fH,t)},cC=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${U(n.anchorOrigin.vertical)}${U(n.anchorOrigin.horizontal)}`]]}})(pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),lp=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiSnackbar"}),r=qa(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:u,className:c,ClickAwayListenerProps:h,ContentProps:f,disableWindowBlurListener:g=!1,message:v,onBlur:S,onClose:_,onFocus:b,onMouseEnter:y,onMouseLeave:w,open:$,resumeHideDuration:k,TransitionComponent:T=ip,transitionDuration:O=a,TransitionProps:{onEnter:D,onExited:x,...A}={},...R}=o,I={...o,anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:d,disableWindowBlurListener:g,TransitionComponent:T,transitionDuration:O},j=mH(I),{getRootProps:N,onClickAway:M}=iH({...I}),[P,H]=C.useState(!0),B=Ar({elementType:cC,getSlotProps:N,externalForwardedProps:R,ownerState:I,additionalProps:{ref:n},className:[j.root,c]}),Z=ve=>{H(!0),x&&x(ve)},oe=(ve,fe)=>{H(!1),D&&D(ve,fe)};return!$&&P?null:m.jsx(_F,{onClickAway:M,...h,children:m.jsx(cC,{...B,children:m.jsx(T,{appear:!0,in:$,timeout:O,direction:i==="top"?"down":"up",onEnter:oe,onExited:Z,...A,children:u||m.jsx(hH,{message:v,action:s,...f})})})})});function gH(e){return ie("MuiTooltip",e)}const an=se("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function _H(e){return Math.round(e*1e5)/1e5}const vH=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${U(a.split("-")[0])}`],arrow:["arrow"]};return ce(s,gH,t)},yH=G(c5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${an.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${an.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${an.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${an.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${an.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${an.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${an.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${an.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),bH=G("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${U(n.placement.split("-")[0])}`]]}})(pe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${an.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${an.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${an.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${an.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${_H(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${an.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${an.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${an.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${an.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${an.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${an.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${an.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${an.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${an.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${an.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),wH=G("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(pe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xh=!1;const dC=new Xg;let jd={x:0,y:0};function Ch(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const bn=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:a,classes:s,components:i={},componentsProps:l={},describeChild:d=!1,disableFocusListener:u=!1,disableHoverListener:c=!1,disableInteractive:h=!1,disableTouchListener:f=!1,enterDelay:g=100,enterNextDelay:v=0,enterTouchDelay:S=700,followCursor:_=!1,id:b,leaveDelay:y=0,leaveTouchDelay:w=1500,onClose:$,onOpen:k,open:T,placement:O="bottom",PopperComponent:D,PopperProps:x={},slotProps:A={},slots:R={},title:I,TransitionComponent:j,TransitionProps:N,...M}=o,P=C.isValidElement(a)?a:m.jsx("span",{children:a}),H=qa(),B=ad(),[Z,oe]=C.useState(),[ve,fe]=C.useState(null),le=C.useRef(!1),Se=h||_,De=gi(),et=gi(),Ge=gi(),qe=gi(),[xe,Ee]=cm({controlled:T,default:!1,name:"Tooltip",state:"open"});let me=xe;const ot=qg(b),Ce=C.useRef(),ze=fo(()=>{Ce.current!==void 0&&(document.body.style.WebkitUserSelect=Ce.current,Ce.current=void 0),qe.clear()});C.useEffect(()=>ze,[ze]);const X=We=>{dC.clear(),xh=!0,Ee(!0),k&&!me&&k(We)},ee=fo(We=>{dC.start(800+y,()=>{xh=!1}),Ee(!1),$&&me&&$(We),De.start(H.transitions.duration.shortest,()=>{le.current=!1})}),$e=We=>{le.current&&We.type!=="touchstart"||(Z&&Z.removeAttribute("title"),et.clear(),Ge.clear(),g||xh&&v?et.start(xh?v:g,()=>{X(We)}):X(We))},Ae=We=>{et.clear(),Ge.start(y,()=>{ee(We)})},[,Xe]=C.useState(!1),Be=We=>{dm(We.target)||(Xe(!1),Ae(We))},_e=We=>{Z||oe(We.currentTarget),dm(We.target)&&(Xe(!0),$e(We))},nn=We=>{le.current=!0;const mr=P.props;mr.onTouchStart&&mr.onTouchStart(We)},K=We=>{nn(We),Ge.clear(),De.clear(),ze(),Ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qe.start(S,()=>{document.body.style.WebkitUserSelect=Ce.current,$e(We)})},ge=We=>{P.props.onTouchEnd&&P.props.onTouchEnd(We),ze(),Ge.start(w,()=>{ee(We)})};C.useEffect(()=>{if(!me)return;function We(mr){mr.key==="Escape"&&ee(mr)}return document.addEventListener("keydown",We),()=>{document.removeEventListener("keydown",We)}},[ee,me]);const Ke=Kt(Xi(P),oe,n);!I&&I!==0&&(me=!1);const Te=C.useRef(),Ie=We=>{const mr=P.props;mr.onMouseMove&&mr.onMouseMove(We),jd={x:We.clientX,y:We.clientY},Te.current&&Te.current.update()},Ue={},zt=typeof I=="string";d?(Ue.title=!me&&zt&&!c?I:null,Ue["aria-describedby"]=me?ot:null):(Ue["aria-label"]=zt?I:null,Ue["aria-labelledby"]=me&&!zt?ot:null);const we={...Ue,...M,...P.props,className:Y(M.className,P.props.className),onTouchStart:nn,ref:Ke,..._?{onMouseMove:Ie}:{}},St={};f||(we.onTouchStart=K,we.onTouchEnd=ge),c||(we.onMouseOver=Ch($e,we.onMouseOver),we.onMouseLeave=Ch(Ae,we.onMouseLeave),Se||(St.onMouseOver=$e,St.onMouseLeave=Ae)),u||(we.onFocus=Ch(_e,we.onFocus),we.onBlur=Ch(Be,we.onBlur),Se||(St.onFocus=_e,St.onBlur=Be));const yn={...o,isRtl:B,arrow:r,disableInteractive:Se,placement:O,PopperComponentProp:D,touch:le.current},ae=typeof A.popper=="function"?A.popper(yn):A.popper,Q=C.useMemo(()=>{var mr,bS;let We=[{name:"arrow",enabled:!!ve,options:{element:ve,padding:4}}];return(mr=x.popperOptions)!=null&&mr.modifiers&&(We=We.concat(x.popperOptions.modifiers)),(bS=ae==null?void 0:ae.popperOptions)!=null&&bS.modifiers&&(We=We.concat(ae.popperOptions.modifiers)),{...x.popperOptions,...ae==null?void 0:ae.popperOptions,modifiers:We}},[ve,x.popperOptions,ae==null?void 0:ae.popperOptions]),ne=vH(yn),Le=typeof A.transition=="function"?A.transition(yn):A.transition,Re={slots:{popper:i.Popper,transition:i.Transition??j,tooltip:i.Tooltip,arrow:i.Arrow,...R},slotProps:{arrow:A.arrow??l.arrow,popper:{...x,...ae??l.popper},tooltip:A.tooltip??l.tooltip,transition:{...N,...Le??l.transition}}},[Rt,Ho]=Un("popper",{elementType:yH,externalForwardedProps:Re,ownerState:yn,className:Y(ne.popper,x==null?void 0:x.className)}),[fa,Ks]=Un("transition",{elementType:ip,externalForwardedProps:Re,ownerState:yn}),[Kp,yd]=Un("tooltip",{elementType:bH,className:ne.tooltip,externalForwardedProps:Re,ownerState:yn}),[DM,AM]=Un("arrow",{elementType:wH,className:ne.arrow,externalForwardedProps:Re,ownerState:yn,ref:fe});return m.jsxs(C.Fragment,{children:[C.cloneElement(P,we),m.jsx(Rt,{as:D??c5,placement:O,anchorEl:_?{getBoundingClientRect:()=>({top:jd.y,left:jd.x,right:jd.x,bottom:jd.y,width:0,height:0})}:Z,popperRef:Te,open:Z?me:!1,id:ot,transition:!0,...St,...Ho,popperOptions:Q,children:({TransitionProps:We})=>m.jsx(fa,{timeout:H.transitions.duration.shorter,...We,...Ks,children:m.jsxs(Kp,{...yd,children:[I,r?m.jsx(DM,{...AM}):null]})})})]})});function SH(e){return ie("MuiSwitch",e)}const Zn=se("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),xH=e=>{const{classes:t,edge:n,size:o,color:r,checked:a,disabled:s}=e,i={root:["root",n&&`edge${U(n)}`,`size${U(o)}`],switchBase:["switchBase",`color${U(r)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ce(i,SH,t);return{...t,...l}},CH=G("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${U(n.edge)}`],t[`size${U(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Zn.thumb}`]:{width:16,height:16},[`& .${Zn.switchBase}`]:{padding:4,[`&.${Zn.checked}`]:{transform:"translateX(16px)"}}}}]}),$H=G(tw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Zn.input}`]:t.input},n.color!=="default"&&t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Zn.checked}`]:{transform:"translateX(20px)"},[`&.${Zn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Zn.checked} + .${Zn.track}`]:{opacity:.5},[`&.${Zn.disabled} + .${Zn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Zn.input}`]:{left:"-100%",width:"300%"}})),pe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Pt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Zn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?rd(e.palette[t].main,.62):od(e.palette[t].main,.55)}`}},[`&.${Zn.checked} + .${Zn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),kH=G("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(pe(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),EH=G("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(pe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),tu=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiSwitch"}),{className:r,color:a="primary",edge:s=!1,size:i="medium",sx:l,...d}=o,u={...o,color:a,edge:s,size:i},c=xH(u),h=m.jsx(EH,{className:c.thumb,ownerState:u});return m.jsxs(CH,{className:Y(c.root,r),sx:l,ownerState:u,children:[m.jsx($H,{type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u,...d,classes:{...c,root:c.switchBase}}),m.jsx(kH,{className:c.track,ownerState:u})]})});function TH(e){return ie("MuiTab",e)}const Vo=se("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),OH=e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:r,icon:a,label:s,selected:i,disabled:l}=e,d={root:["root",a&&s&&"labelIcon",`textColor${U(n)}`,o&&"fullWidth",r&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return ce(d,TH,t)},DH=G(Lo,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${U(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Vo.iconWrapper}`]:t.iconWrapper},{[`& .${Vo.icon}`]:t.icon}]}})(pe(({theme:e})=>({...e.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:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Vo.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Vo.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Vo.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Vo.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Vo.selected}`]:{opacity:1},[`&.${Vo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Vo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Vo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),po=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTab"}),{className:r,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:c,onChange:h,onClick:f,onFocus:g,selected:v,selectionFollowsFocus:S,textColor:_="inherit",value:b,wrapped:y=!1,...w}=o,$={...o,disabled:a,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:d,label:!!c,fullWidth:i,textColor:_,wrapped:y},k=OH($),T=l&&c&&C.isValidElement(l)?C.cloneElement(l,{className:Y(k.icon,l.props.className)}):l,O=x=>{!v&&h&&h(x,b),f&&f(x)},D=x=>{S&&!v&&h&&h(x,b),g&&g(x)};return m.jsxs(DH,{focusRipple:!s,className:Y(k.root,r),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:O,onFocus:D,ownerState:$,tabIndex:v?0:-1,...w,children:[d==="top"||d==="start"?m.jsxs(C.Fragment,{children:[T,c]}):m.jsxs(C.Fragment,{children:[c,T]}),u]})}),S5=C.createContext();function AH(e){return ie("MuiTable",e)}se("MuiTable",["root","stickyHeader"]);const MH=e=>{const{classes:t,stickyHeader:n}=e;return ce({root:["root",n&&"stickyHeader"]},AH,t)},NH=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(pe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),uC="table",jH=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTable"}),{className:r,component:a=uC,padding:s="normal",size:i="medium",stickyHeader:l=!1,...d}=o,u={...o,component:a,padding:s,size:i,stickyHeader:l},c=MH(u),h=C.useMemo(()=>({padding:s,size:i,stickyHeader:l}),[s,i,l]);return m.jsx(S5.Provider,{value:h,children:m.jsx(NH,{as:a,role:a===uC?null:"table",ref:n,className:Y(c.root,r),ownerState:u,...d})})}),t_=C.createContext();function zH(e){return ie("MuiTableBody",e)}se("MuiTableBody",["root"]);const RH=e=>{const{classes:t}=e;return ce({root:["root"]},zH,t)},IH=G("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),LH={variant:"body"},pC="tbody",FH=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableBody"}),{className:r,component:a=pC,...s}=o,i={...o,component:a},l=RH(i);return m.jsx(t_.Provider,{value:LH,children:m.jsx(IH,{className:Y(l.root,r),as:a,ref:n,role:a===pC?null:"rowgroup",ownerState:i,...s})})});function PH(e){return ie("MuiTableCell",e)}const BH=se("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),HH=e=>{const{classes:t,variant:n,align:o,padding:r,size:a,stickyHeader:s}=e,i={root:["root",n,s&&"stickyHeader",o!=="inherit"&&`align${U(o)}`,r!=="normal"&&`padding${U(r)}`,`size${U(a)}`]};return ce(i,PH,t)},UH=G("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${U(n.size)}`],n.padding!=="normal"&&t[`padding${U(n.padding)}`],n.align!=="inherit"&&t[`align${U(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(pe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?rd(Fe(e.palette.divider,1),.88):od(Fe(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${BH.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:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),gr=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableCell"}),{align:r="inherit",className:a,component:s,padding:i,scope:l,size:d,sortDirection:u,variant:c,...h}=o,f=C.useContext(S5),g=C.useContext(t_),v=g&&g.variant==="head";let S;s?S=s:S=v?"th":"td";let _=l;S==="td"?_=void 0:!_&&v&&(_="col");const b=c||g&&g.variant,y={...o,align:r,component:S,padding:i||(f&&f.padding?f.padding:"normal"),size:d||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:b==="head"&&f&&f.stickyHeader,variant:b},w=HH(y);let $=null;return u&&($=u==="asc"?"ascending":"descending"),m.jsx(UH,{as:S,ref:n,className:Y(w.root,a),"aria-sort":$,scope:_,ownerState:y,...h})});function WH(e){return ie("MuiTableHead",e)}se("MuiTableHead",["root"]);const VH=e=>{const{classes:t}=e;return ce({root:["root"]},WH,t)},GH=G("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),qH={variant:"head"},hC="thead",XH=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableHead"}),{className:r,component:a=hC,...s}=o,i={...o,component:a},l=VH(i);return m.jsx(t_.Provider,{value:qH,children:m.jsx(GH,{as:a,className:Y(l.root,r),ref:n,role:a===hC?null:"rowgroup",ownerState:i,...s})})});function JH(e){return ie("MuiToolbar",e)}se("MuiToolbar",["root","gutters","regular","dense"]);const YH=e=>{const{classes:t,disableGutters:n,variant:o}=e;return ce({root:["root",!n&&"gutters",o]},JH,t)},KH=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(pe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),aw=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiToolbar"}),{className:r,component:a="div",disableGutters:s=!1,variant:i="regular",...l}=o,d={...o,component:a,disableGutters:s,variant:i},u=YH(d);return m.jsx(KH,{as:a,className:Y(u.root,r),ref:n,ownerState:d,...l})}),ZH=te(m.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),QH=te(m.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function eU(e){return ie("MuiTableRow",e)}const fC=se("MuiTableRow",["root","selected","hover","head","footer"]),tU=e=>{const{classes:t,selected:n,hover:o,head:r,footer:a}=e;return ce({root:["root",n&&"selected",o&&"hover",r&&"head",a&&"footer"]},eU,t)},nU=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(pe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${fC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),mC="tr",gC=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableRow"}),{className:r,component:a=mC,hover:s=!1,selected:i=!1,...l}=o,d=C.useContext(t_),u={...o,component:a,hover:s,selected:i,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},c=tU(u);return m.jsx(nU,{as:a,ref:n,className:Y(c.root,r),role:a===mC?null:"row",ownerState:u,...l})}),oU=te(m.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function rU(e){return ie("MuiTableSortLabel",e)}const Ov=se("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),aU=e=>{const{classes:t,direction:n,active:o}=e,r={root:["root",o&&"active",`direction${U(n)}`],icon:["icon",`iconDirection${U(n)}`]};return ce(r,rU,t)},sU=G(Lo,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(pe(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Ov.icon}`]:{opacity:.5}},[`&.${Ov.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Ov.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),iU=G("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${U(n.direction)}`]]}})(pe(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),_C=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableSortLabel"}),{active:r=!1,children:a,className:s,direction:i="asc",hideSortIcon:l=!1,IconComponent:d=oU,...u}=o,c={...o,active:r,direction:i,hideSortIcon:l,IconComponent:d},h=aU(c);return m.jsxs(sU,{className:Y(h.root,s),component:"span",disableRipple:!0,ownerState:c,ref:n,...u,children:[a,l&&!r?null:m.jsx(iU,{as:d,className:Y(h.icon),ownerState:c})]})});function lU(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function cU(e,t,n,o={},r=()=>{}){const{ease:a=lU,duration:s=300}=o;let i=null;const l=t[e];let d=!1;const u=()=>{d=!0},c=h=>{if(d){r(new Error("Animation cancelled"));return}i===null&&(i=h);const f=Math.min(1,(h-i)/s);if(t[e]=a(f)*(n-l)+l,f>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(c)};return l===n?(r(new Error("Element already at target position")),u):(requestAnimationFrame(c),u)}const dU={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function uU(e){const{onChange:t,...n}=e,o=C.useRef(),r=C.useRef(null),a=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return Io(()=>{const s=Gg(()=>{const l=o.current;a(),l!==o.current&&t(o.current)}),i=Dr(r.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),C.useEffect(()=>{a(),t(o.current)},[t]),m.jsx("div",{style:dU,...n,ref:r})}function pU(e){return ie("MuiTabScrollButton",e)}const hU=se("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),fU=e=>{const{classes:t,orientation:n,disabled:o}=e;return ce({root:["root",n,o&&"disabled"]},pU,t)},mU=G(Lo,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${hU.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),gU=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTabScrollButton"}),{className:r,slots:a={},slotProps:s={},direction:i,orientation:l,disabled:d,...u}=o,c=ad(),h={isRtl:c,...o},f=fU(h),g=a.StartScrollButtonIcon??ZH,v=a.EndScrollButtonIcon??QH,S=Ar({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),_=Ar({elementType:v,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return m.jsx(mU,{component:"div",className:Y(f.root,r),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${c?-90:90}deg)`}},children:i==="left"?m.jsx(g,{...S}):m.jsx(v,{..._})})});function _U(e){return ie("MuiTabs",e)}const Dv=se("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),vC=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,yC=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,$h=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const a=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||a)r=n(e,r);else{r.focus();return}}},vU=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:r,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=e;return ce({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",r&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},_U,l)},yU=G("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Dv.scrollButtons}`]:t.scrollButtons},{[`& .${Dv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(pe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Dv.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),bU=G("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),wU=G("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),SU=G("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(pe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),xU=G(uU)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),bC={},x5=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTabs"}),r=qa(),a=ad(),{"aria-label":s,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:c,component:h="div",allowScrollButtonsMobile:f=!1,indicatorColor:g="primary",onChange:v,orientation:S="horizontal",ScrollButtonComponent:_=gU,scrollButtons:b="auto",selectionFollowsFocus:y,slots:w={},slotProps:$={},TabIndicatorProps:k={},TabScrollButtonProps:T={},textColor:O="primary",value:D,variant:x="standard",visibleScrollbar:A=!1,...R}=o,I=x==="scrollable",j=S==="vertical",N=j?"scrollTop":"scrollLeft",M=j?"top":"left",P=j?"bottom":"right",H=j?"clientHeight":"clientWidth",B=j?"height":"width",Z={...o,component:h,allowScrollButtonsMobile:f,indicatorColor:g,orientation:S,vertical:j,scrollButtons:b,textColor:O,variant:x,visibleScrollbar:A,fixed:!I,hideScrollbar:I&&!A,scrollableX:I&&!j,scrollableY:I&&j,centered:d&&!I,scrollButtonsHideMobile:!f},oe=vU(Z),ve=Ar({elementType:w.StartScrollButtonIcon,externalSlotProps:$.startScrollButtonIcon,ownerState:Z}),fe=Ar({elementType:w.EndScrollButtonIcon,externalSlotProps:$.endScrollButtonIcon,ownerState:Z}),[le,Se]=C.useState(!1),[De,et]=C.useState(bC),[Ge,qe]=C.useState(!1),[xe,Ee]=C.useState(!1),[me,ot]=C.useState(!1),[Ce,ze]=C.useState({overflow:"hidden",scrollbarWidth:0}),X=new Map,ee=C.useRef(null),$e=C.useRef(null),Ae=()=>{const Q=ee.current;let ne;if(Q){const Re=Q.getBoundingClientRect();ne={clientWidth:Q.clientWidth,scrollLeft:Q.scrollLeft,scrollTop:Q.scrollTop,scrollWidth:Q.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Le;if(Q&&D!==!1){const Re=$e.current.children;if(Re.length>0){const Rt=Re[X.get(D)];Le=Rt?Rt.getBoundingClientRect():null}}return{tabsMeta:ne,tabMeta:Le}},Xe=fo(()=>{const{tabsMeta:Q,tabMeta:ne}=Ae();let Le=0,Re;j?(Re="top",ne&&Q&&(Le=ne.top-Q.top+Q.scrollTop)):(Re=a?"right":"left",ne&&Q&&(Le=(a?-1:1)*(ne[Re]-Q[Re]+Q.scrollLeft)));const Rt={[Re]:Le,[B]:ne?ne[B]:0};if(typeof De[Re]!="number"||typeof De[B]!="number")et(Rt);else{const Ho=Math.abs(De[Re]-Rt[Re]),fa=Math.abs(De[B]-Rt[B]);(Ho>=1||fa>=1)&&et(Rt)}}),Be=(Q,{animation:ne=!0}={})=>{ne?cU(N,ee.current,Q,{duration:r.transitions.duration.standard}):ee.current[N]=Q},_e=Q=>{let ne=ee.current[N];j?ne+=Q:ne+=Q*(a?-1:1),Be(ne)},nn=()=>{const Q=ee.current[H];let ne=0;const Le=Array.from($e.current.children);for(let Re=0;ReQ){Re===0&&(ne=Q);break}ne+=Rt[H]}return ne},K=()=>{_e(-1*nn())},ge=()=>{_e(nn())},Ke=C.useCallback(Q=>{ze({overflow:null,scrollbarWidth:Q})},[]),Te=()=>{const Q={};Q.scrollbarSizeListener=I?m.jsx(xU,{onChange:Ke,className:Y(oe.scrollableX,oe.hideScrollbar)}):null;const Le=I&&(b==="auto"&&(Ge||xe)||b===!0);return Q.scrollButtonStart=Le?m.jsx(_,{slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ve},orientation:S,direction:a?"right":"left",onClick:K,disabled:!Ge,...T,className:Y(oe.scrollButtons,T.className)}):null,Q.scrollButtonEnd=Le?m.jsx(_,{slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:fe},orientation:S,direction:a?"left":"right",onClick:ge,disabled:!xe,...T,className:Y(oe.scrollButtons,T.className)}):null,Q},Ie=fo(Q=>{const{tabsMeta:ne,tabMeta:Le}=Ae();if(!(!Le||!ne)){if(Le[M]ne[P]){const Re=ne[N]+(Le[P]-ne[P]);Be(Re,{animation:Q})}}}),Ue=fo(()=>{I&&b!==!1&&ot(!me)});C.useEffect(()=>{const Q=Gg(()=>{ee.current&&Xe()});let ne;const Le=Ho=>{Ho.forEach(fa=>{fa.removedNodes.forEach(Ks=>{ne==null||ne.unobserve(Ks)}),fa.addedNodes.forEach(Ks=>{ne==null||ne.observe(Ks)})}),Q(),Ue()},Re=Dr(ee.current);Re.addEventListener("resize",Q);let Rt;return typeof ResizeObserver<"u"&&(ne=new ResizeObserver(Q),Array.from($e.current.children).forEach(Ho=>{ne.observe(Ho)})),typeof MutationObserver<"u"&&(Rt=new MutationObserver(Le),Rt.observe($e.current,{childList:!0})),()=>{Q.clear(),Re.removeEventListener("resize",Q),Rt==null||Rt.disconnect(),ne==null||ne.disconnect()}},[Xe,Ue]),C.useEffect(()=>{const Q=Array.from($e.current.children),ne=Q.length;if(typeof IntersectionObserver<"u"&&ne>0&&I&&b!==!1){const Le=Q[0],Re=Q[ne-1],Rt={root:ee.current,threshold:.99},Ho=yd=>{qe(!yd[0].isIntersecting)},fa=new IntersectionObserver(Ho,Rt);fa.observe(Le);const Ks=yd=>{Ee(!yd[0].isIntersecting)},Kp=new IntersectionObserver(Ks,Rt);return Kp.observe(Re),()=>{fa.disconnect(),Kp.disconnect()}}},[I,b,me,u==null?void 0:u.length]),C.useEffect(()=>{Se(!0)},[]),C.useEffect(()=>{Xe()}),C.useEffect(()=>{Ie(bC!==De)},[Ie,De]),C.useImperativeHandle(l,()=>({updateIndicator:Xe,updateScrollButtons:Ue}),[Xe,Ue]);const zt=m.jsx(SU,{...k,className:Y(oe.indicator,k.className),ownerState:Z,style:{...De,...k.style}});let we=0;const St=C.Children.map(u,Q=>{if(!C.isValidElement(Q))return null;const ne=Q.props.value===void 0?we:Q.props.value;X.set(ne,we);const Le=ne===D;return we+=1,C.cloneElement(Q,{fullWidth:x==="fullWidth",indicator:Le&&!le&&zt,selected:Le,selectionFollowsFocus:y,onChange:v,textColor:O,value:ne,...we===1&&D===!1&&!Q.props.tabIndex?{tabIndex:0}:{}})}),yn=Q=>{const ne=$e.current,Le=In(ne).activeElement;if(Le.getAttribute("role")!=="tab")return;let Rt=S==="horizontal"?"ArrowLeft":"ArrowUp",Ho=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&a&&(Rt="ArrowRight",Ho="ArrowLeft"),Q.key){case Rt:Q.preventDefault(),$h(ne,Le,yC);break;case Ho:Q.preventDefault(),$h(ne,Le,vC);break;case"Home":Q.preventDefault(),$h(ne,null,vC);break;case"End":Q.preventDefault(),$h(ne,null,yC);break}},ae=Te();return m.jsxs(yU,{className:Y(oe.root,c),ownerState:Z,ref:n,as:h,...R,children:[ae.scrollButtonStart,ae.scrollbarSizeListener,m.jsxs(bU,{className:oe.scroller,ownerState:Z,style:{overflow:Ce.overflow,[j?`margin${a?"Left":"Right"}`:"marginBottom"]:A?void 0:-Ce.scrollbarWidth},ref:ee,children:[m.jsx(wU,{"aria-label":s,"aria-labelledby":i,"aria-orientation":S==="vertical"?"vertical":null,className:oe.flexContainer,ownerState:Z,onKeyDown:yn,ref:$e,role:"tablist",children:St}),le&&zt]}),ae.scrollButtonEnd]})});function CU(e){return ie("MuiTextField",e)}se("MuiTextField",["root"]);const $U={standard:Qn,filled:ym,outlined:bm},kU=e=>{const{classes:t}=e;return ce({root:["root"]},CU,t)},EU=G(to,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),st=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:a=!1,children:s,className:i,color:l="primary",defaultValue:d,disabled:u=!1,error:c=!1,FormHelperTextProps:h,fullWidth:f=!1,helperText:g,id:v,InputLabelProps:S,inputProps:_,InputProps:b,inputRef:y,label:w,maxRows:$,minRows:k,multiline:T=!1,name:O,onBlur:D,onChange:x,onFocus:A,placeholder:R,required:I=!1,rows:j,select:N=!1,SelectProps:M,slots:P={},slotProps:H={},type:B,value:Z,variant:oe="outlined",...ve}=o,fe={...o,autoFocus:a,color:l,disabled:u,error:c,fullWidth:f,multiline:T,required:I,select:N,variant:oe},le=kU(fe),Se=qg(v),De=g&&Se?`${Se}-helper-text`:void 0,et=w&&Se?`${Se}-label`:void 0,Ge=$U[oe],qe={slots:P,slotProps:{input:b,inputLabel:S,htmlInput:_,formHelperText:h,select:M,...H}},xe={},Ee=qe.slotProps.inputLabel;oe==="outlined"&&(Ee&&typeof Ee.shrink<"u"&&(xe.notched=Ee.shrink),xe.label=w),N&&((!M||!M.native)&&(xe.id=void 0),xe["aria-describedby"]=void 0);const[me,ot]=Un("input",{elementType:Ge,externalForwardedProps:qe,additionalProps:xe,ownerState:fe}),[Ce,ze]=Un("inputLabel",{elementType:xf,externalForwardedProps:qe,ownerState:fe}),[X,ee]=Un("htmlInput",{elementType:"input",externalForwardedProps:qe,ownerState:fe}),[$e,Ae]=Un("formHelperText",{elementType:Er,externalForwardedProps:qe,ownerState:fe}),[Xe,Be]=Un("select",{elementType:_n,externalForwardedProps:qe,ownerState:fe}),_e=m.jsx(me,{"aria-describedby":De,autoComplete:r,autoFocus:a,defaultValue:d,fullWidth:f,multiline:T,name:O,rows:j,maxRows:$,minRows:k,type:B,value:Z,id:Se,inputRef:y,onBlur:D,onChange:x,onFocus:A,placeholder:R,inputProps:ee,slots:{input:P.htmlInput?X:void 0},...ot});return m.jsxs(EU,{className:Y(le.root,i),disabled:u,error:c,fullWidth:f,ref:n,required:I,color:l,variant:oe,ownerState:fe,...ve,children:[w!=null&&w!==""&&m.jsx(Ce,{htmlFor:Se,id:et,...ze,children:w}),N?m.jsx(Xe,{"aria-describedby":De,id:Se,labelId:et,value:Z,input:_e,...Be,children:s}):_e,g&&m.jsx($e,{id:De,...Ae,children:g})]})}),Av=11/23/100;function wC(e){const t={r:0,g:0,b:0};if(e.length===7)t.r=parseInt(e.substr(1,2),16),t.g=parseInt(e.substr(3,2),16),t.b=parseInt(e.substr(5,2),16);else if(e.length===4){const n=e.substr(1,1),o=e.substr(2,1),r=e.substr(3,1);t.r=parseInt(n+n,16),t.g=parseInt(o+o,16),t.b=parseInt(r+r,16)}return t}function TU(e){return`#${Math.round(e.r).toString(16)}${Math.round(e.g).toString(16)}${Math.round(e.b).toString(16)}`}function OU(e,t,n){const o=wC(e),r=wC(t);return o.r+=r.r*(.05+Av*(n-1)),o.g+=r.g*(.05+Av*(n-1)),o.b+=r.b*(.05+Av*(n-1)),TU(o)}function SC(e,t){const n={};for(let o=1;o<=24;o++)n[`elevation${o}`]={backgroundColor:OU(e,t,o)};return n}function DU(e,t){var s,i,l,d,u,c,h,f,g,v,S;let n,o;e==="dark"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[200],"&:hover":{color:Mn[100]}}},MuiPaper:SC("#121212","#fff")},n={name:e,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):e==="blue"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[400],"&:hover":{color:Mn[300]}}}},n={name:e,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):e==="colored"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[200],"&:hover":{color:Mn[100]}}},MuiPaper:SC("#151d21","#fff")},n={name:e,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):e==="PT"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[400],"&:hover":{color:Mn[300]}}}},n={name:e,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):e==="DX"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[400],"&:hover":{color:Mn[300]}}}},n={name:e,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(o={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[400],"&:hover":{color:Mn[300]}}}},n={name:e,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),n.toolbar={height:48},n.saveToolbar={background:(i=(s=n.palette)==null?void 0:s.primary)==null?void 0:i.main,button:{borderRadius:3,height:32}},n.palette&&(n.palette.grey={main:cb[300],dark:cb[400]});const r=np(n),a=r.palette;return np(r,{components:{...o,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(l=a.grey)==null?void 0:l[300],color:a.getContrastText&&((d=a.grey)!=null&&d[300])?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(u=a.text)==null?void 0:u.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(c=a.action)==null?void 0:c.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Fe(((h=a.text)==null?void 0:h.primary)||"",((f=a.action)==null?void 0:f.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(g=a.text)==null?void 0:g.primary,"&:hover":{backgroundColor:Fe(((v=a.text)==null?void 0:v.primary)||"",((S=a.action)==null?void 0:S.hoverOpacity)||.04)}}}]}}})}function AU(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function kb(e){return(e==null?void 0:e.rows.map(t=>t.value).filter(t=>!!t))??[]}function Ca(e){return e!=null&&e.startsWith("system.host.")||(e=`system.host.${e}`),e}function zd(e){return e!=null&&e.startsWith("system.host.")&&(e=e.substring(12)),e}function xC(e){return new Promise(t=>{setTimeout(t,e)})}function kh(e){e=(e||"").toString();const t=e[0]==="*",n=e[e.length-1]==="*";return e=e.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(t?"":"^")+e+(n?"":"$")}var Wr;(function(e){e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.OBJECTS_LOADED=2]="OBJECTS_LOADED",e[e.READY=3]="READY"})(Wr||(Wr={}));var Hn;(function(e){e.PERMISSION_ERROR="permissionError",e.NOT_CONNECTED="notConnectedError",e.TIMEOUT="timeout",e.NOT_ADMIN="Allowed only in admin",e.NOT_SUPPORTED="Not supported"})(Hn||(Hn={}));Hn.PERMISSION_ERROR;Hn.NOT_CONNECTED;const MU=["material","echarts","vis"];class Vr{constructor(t){F(this,"props");F(this,"ignoreState","");F(this,"connected",!1);F(this,"subscribed",!1);F(this,"firstConnect",!0);F(this,"waitForRestart",!1);F(this,"loaded",!1);F(this,"simStates",{});F(this,"statesSubscribes",{});F(this,"filesSubscribes",{});F(this,"objectsSubscribes",{});F(this,"objects",{});F(this,"states",{});F(this,"acl",null);F(this,"isSecure",!1);F(this,"onReadyDone",!1);F(this,"onConnectionHandlers",[]);F(this,"onLogHandlers",[]);F(this,"onCmdStdoutHandler");F(this,"onCmdStderrHandler");F(this,"onCmdExitHandler");F(this,"_socket");F(this,"_waitForSocketPromise");F(this,"_waitForFirstConnectionPromise",AU());F(this,"_instanceSubscriptions",{});F(this,"_promises",{});F(this,"_authTimer");F(this,"_systemConfig");F(this,"systemLang","en");this.props=this.applyDefaultProps(t),this.waitForSocketLib().then(()=>this.startSocket()).catch(n=>{alert(`Socket connection could not be initialized: ${n}`)})}applyDefaultProps(t){return{...t,protocol:t.protocol||window.location.protocol,host:t.host||window.location.hostname,port:t.port||(window.location.port==="3000"?8081:window.location.port),ioTimeout:Math.max(t.ioTimeout||2e4,2e4),cmdTimeout:Math.max(t.cmdTimeout||5e3,5e3),admin5only:t.admin5only||!1,autoSubscribes:t.autoSubscribes??[],autoSubscribeLog:t.autoSubscribeLog??!1,doNotLoadACL:t.doNotLoadACL??!0,doNotLoadAllObjects:t.doNotLoadAllObjects??!0}}onError(t){(this.props.onError??console.error)(t)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(t,n)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>t());else{for(let o=1;o<=30;o++){if(window.io||window.iob)return t();await xC(100)}n(new Error("Socket library could not be loaded!"))}else t()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let t=this.props.host,n=this.props.port,o=(this.props.protocol||window.location.protocol).replace(":",""),r=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")r="";else{if(window.socketUrl){const i=new URL(window.socketUrl);t=i.hostname,n=i.port,o=i.protocol.replace(":","")}const s=r.lastIndexOf("/");if(s!==-1&&(r=r.substring(0,s+1)),Vr.isWeb()){const i=r.split("/");i.length>2&&(i.pop(),i.pop(),MU.includes(i[i.length-1])&&i.pop(),r=i.join("/"),r.endsWith("/")||(r+="/"))}}const a=n?`${o}://${t}:${n}`:`${o}://${t}`;return this._socket=(window.io||window.iob).connect(a,{path:r.endsWith("/")?`${r}socket.io`:`${r}/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",s=>{this.onReadyDone=!1,s!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(i=>{const[l,d,u]=i.version.split(".");parseInt(l,10)*1e4+parseInt(d,10)*100+parseInt(u,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(h,f)=>this.onPreConnect(h,f))}).catch(i=>this.onError({message:i.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(i,l)=>{this.onPreConnect(i,l)})}),this._socket.on("reconnect",()=>{var s,i;this.onReadyDone=!1,(i=(s=this.props).onProgress)==null||i.call(s,Wr.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(l=>l(!0)))}),this._socket.on("disconnect",()=>{var s,i;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(i=(s=this.props).onProgress)==null||i.call(s,Wr.CONNECTING),this.onConnectionHandlers.forEach(l=>l(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",s=>{var i,l;(l=(i=this.props).onLog)==null||l.call(i,s),this.onLogHandlers.forEach(d=>d(s))}),this._socket.on("error",s=>{let i;s==null?i="":typeof s.toString=="function"?i=s.toString():(i=JSON.stringify(s),console.error(`Received strange error: ${i}`)),i.includes("User not authorized")?this.authenticate():i.includes("websocket error")?(console.error(`Socket Error => reload: ${s}`),window.location.reload()):console.error(`Socket Error: ${s}`)}),this._socket.on("connect_error",s=>console.error(`Connect error: ${s}`)),this._socket.on("permissionError",s=>this.onError({message:"no permission",operation:s.operation,type:s.type,id:s.id||""})),this._socket.on("objectChange",(s,i)=>{setTimeout(()=>this.objectChange(s,i),0)}),this._socket.on("stateChange",(s,i)=>{setTimeout(()=>this.stateChange(s,i),0)}),this._socket.on("im",(s,i,l)=>{setTimeout(()=>this.instanceMessage(s,i,l),0)}),this._socket.on("fileChange",(s,i,l)=>{setTimeout(()=>this.fileChange(s,i,l),0)}),this._socket.on("cmdStdout",(s,i)=>{var l;(l=this.onCmdStdoutHandler)==null||l.call(this,s,i)}),this._socket.on("cmdStderr",(s,i)=>{var l;(l=this.onCmdStderrHandler)==null||l.call(this,s,i)}),this._socket.on("cmdExit",(s,i)=>{var l;(l=this.onCmdExitHandler)==null||l.call(this,s,i)}),Promise.resolve()}onPreConnect(t,n){var o,r;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=n,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(a=>console.error(`Cannot load data: ${a}`)):(r=(o=this.props).onProgress)==null||r.call(o,Wr.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(a=>a(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getUserPermissions",(o,r)=>{o?n(o):t(r)})}})}async loadData(){if(this.loaded)return;const t=10;for(let n=1;n<=t;n++){if(this.doLoadData().catch(o=>console.error(`Cannot load data: ${o}`)),this.loaded)return;await xC(Vr.isCloud()?5e3:1e3)}}async doLoadData(){var t,n,o,r,a,s,i,l,d;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(u){this.onError(`Cannot read user permissions: ${u}`);return}try{this.props.admin5only&&!Vr.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(u){this.onError(`Cannot read system config: ${u}`);return}this._systemConfig&&(this.systemLang=(t=this._systemConfig.common)==null?void 0:t.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(o=(n=this.props).onLanguage)==null||o.call(n,this.systemLang),this.loaded=!0,(a=(r=this.props).onProgress)==null||a.call(r,Wr.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(i=(s=this.props).onProgress)==null||i.call(s,Wr.READY),this.onReadyDone||(this.onReadyDone=!0,(d=(l=this.props).onReady)==null||d.call(l,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...t){let n,o,r;t.length===3?[n,o,r]=t:([n,r]=t,o=!1);let a;if(Array.isArray(n)?a=n:a=[n],typeof r!="function")throw new Error("The state change handler must be a function!");const s=[];for(let i=0;ii.includes("*"))){let i;for(let l=0;lconsole.error(`Cannot call state change handler: ${h}`))}}}else try{const i=await(Vr.isWeb()?this.getStates(a):this.getForeignStates(a));if(i)for(const[l,d]of Object.entries(i)){const u=r(l,d);u instanceof Promise&&u.catch(c=>console.error(`Cannot call state change handler: ${c}`))}}catch(i){console.error(`Cannot getState "${a.join(", ")}": ${i.message}`);return}}async subscribeStateAsync(t,n){return this.subscribeState(t,n)}unsubscribeState(t,n){var a;let o;Array.isArray(t)?o=t:o=[t];const r=[];for(let s=0;s{try{const u=d(t,n,o);u instanceof Promise&&u.catch(c=>console.error(`Cannot call object change handler: ${c}`))}catch(u){console.error(`Error by callback of objectChange: ${u}`)}});if(r){const i=(s=(a=this.props).onObjectChange)==null?void 0:s.call(a,t,n);i instanceof Promise&&i.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(t,n){for(const o of Object.values(this.statesSubscribes))if(o.reg.test(t))for(const r of o.cbs)try{const a=r(t,n??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(t,n,o){var r;(r=this._instanceSubscriptions[n])==null||r.forEach(a=>{if(a.messageType===t){const s=a.callback(o,n,t);s instanceof Promise&&s.catch(i=>console.error(`Cannot call instance message handler: ${i}`))}})}fileChange(t,n,o){for(const r of Object.values(this.filesSubscribes))if(r.regId.test(t)&&r.regFilePattern.test(n))for(const a of r.cbs)try{a(t,n,o)}catch(s){console.error(`Error by callback of fileChange: ${s}`)}}async subscribeFiles(t,n,o){if(typeof o!="function")throw new Error("The state change handler must be a function!");let r;Array.isArray(n)?r=n:r=[n];const a=[];for(let s=0;s{const c={elapsed:!1,clearTimeout:()=>{}};let h;o!==!1&&(h=setTimeout(()=>{c.elapsed=!0,r==null||r(),t&&this._promises[t]instanceof Promise&&delete this._promises[t],u(new Error(Hn.TIMEOUT))},o??this.props.cmdTimeout),c.clearTimeout=()=>{clearTimeout(h)});try{await i(d,u,c)}catch(f){t&&this._promises[t]instanceof Promise&&delete this._promises[t],u(new Error(f.toString()))}});return t&&(this._promises[t]=l),l}resetCache(t,n){n?Object.keys(this._promises).filter(o=>o.startsWith(t)).forEach(o=>{delete this._promises[o]}):delete this._promises[t]}getStates(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getStates",t,(r,a)=>{this.states=a??{},r?o(r):n(this.states)})}})}getState(t){return this.request({commandTimeout:!1,executor:(n,o)=>{if(t&&t===this.ignoreState){n(this.simStates[t]||{val:null,ack:!0});return}this._socket.emit("getState",t,(r,a)=>{r?o(r):n(a)})}})}getBinaryState(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getBinaryState",t,(r,a)=>{r?o(r):n(a)})}})}setBinaryState(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("setBinaryState",t,n,a=>{a?r(a):o()})}})}setState(t,n,o){return typeof o=="boolean"&&(n={val:n,ack:o}),this.request({commandTimeout:!1,executor:(r,a)=>{if(t&&t===this.ignoreState){let s;if(typeof o=="boolean"||typeof n=="object"&&n.val!==void 0?s=n:s={val:n,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[t]=s,this.statesSubscribes[t])for(const i of this.statesSubscribes[t].cbs)try{const l=i(t,s);l instanceof Promise&&l.catch(d=>console.error(`Cannot call state change handler: ${d}`))}catch(l){console.error(`Error by callback of stateChanged: ${l}`)}r();return}this._socket.emit("setState",t,n,s=>{s?a(s):r()})}})}getObjects(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{if(!t&&this.objects){o(this.objects);return}this._socket.emit(Vr.isWeb()?"getObjects":"getAllObjects",(a,s)=>{var i,l;n||(l=(i=this.props).onProgress)==null||l.call(i,Wr.OBJECTS_LOADED),a?r(a):(this.objects=s??{},o(this.objects))})}})}getObjectsById(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjects",t,(r,a)=>{r?o(r):n(a)})}})}_subscribe(t){var n,o;if(t&&!this.subscribed){this.subscribed=!0,(n=this.props.autoSubscribes)!=null&&n.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(a=>this._socket.emit("subscribeObjects",a)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("subscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[s,i]=a.split("$%$");this._socket.emit("subscribeFiles",s,i)})}else if(!t&&this.subscribed){this.subscribed=!1,(o=this.props.autoSubscribes)!=null&&o.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(a=>this._socket.emit("unsubscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[s,i]=a.split("$%$");this._socket.emit("unsubscribeFiles",s,i)})}}requireLog(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("requireLog",t,r=>{r?o(r):n()})}})}delObject(t,n=!1){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("delObject",t,{maintenance:n},a=>{a?r(a):o()})}})}delObjects(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("delObjects",t,{maintenance:n},a=>{a?r(a):o()})}})}setObject(t,n){return n?(n=JSON.parse(JSON.stringify(n)),delete n.from,delete n.user,delete n.ts,this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("setObject",t,n,a=>{a?r(a):o()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(t){return this.request({commandTimeout:!1,executor:(n,o)=>{if(t&&t===this.ignoreState){n({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",t,(r,a)=>{r?o(r):n(a)})}})}sendTo(t,n,o){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendTo",t,n,o,a=>{r(a)})}})}extendObject(t,n){return n?(n=JSON.parse(JSON.stringify(n)),delete n.from,delete n.user,delete n.ts,this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("extendObject",t,n,a=>{a?r(a):o()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(t){this.onLogHandlers.includes(t)||this.onLogHandlers.push(t)}unregisterLogHandler(t){const n=this.onLogHandlers.indexOf(t);n!==-1&&this.onLogHandlers.splice(n,1)}registerConnectionHandler(t){this.onConnectionHandlers.includes(t)||this.onConnectionHandlers.push(t)}unregisterConnectionHandler(t){const n=this.onConnectionHandlers.indexOf(t);n!==-1&&this.onConnectionHandlers.splice(n,1)}registerCmdStdoutHandler(t){this.onCmdStdoutHandler=t}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(t){this.onCmdStderrHandler=t}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(t){this.onCmdExitHandler=t}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(t,n){return this.request({cacheKey:`enums_${t||"all"}`,forceUpdate:n,commandTimeout:!1,executor:(o,r)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${t||""}`,endkey:t?`enum.${t}.香`:"enum.香"},(a,s)=>{if(a)r(a);else{const i={};if(s)for(let l=0;l{o=o||"",r=r||"香",this._socket.emit("getObjectView",t,n,{startkey:o,endkey:r},(i,l)=>{if(i)s(i);else{const d={};if(l&&l.rows)for(let u=0;u{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(o,r)=>{var a;o?n(o):t((a=r.rows)==null?void 0:a.map(s=>s.value).filter(s=>!!s))})}})}readDir(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("readDir",t,n,(a,s)=>{a?r(a):o(s)})}})}readFile(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit(o?"readFile64":"readFile",t,n,(s,i,l)=>{s?a(s):r({file:i,mimeType:l})})}})}writeFile64(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{if(typeof o=="string")this._socket.emit("writeFile",t,n,o,s=>{s?a(s):r()});else{const s=btoa(new Uint8Array(o).reduce((i,l)=>i+String.fromCharCode(l),""));this._socket.emit("writeFile64",t,n,s,i=>{i?a(i):r()})}}})}deleteFile(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("deleteFile",t,n,a=>{a?r(a):o()})}})}deleteFolder(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("deleteFolder",t,n,a=>{a?r(a):o()})}})}rename(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("rename",t,n,o,s=>{s?a(s):r()})}})}renameFile(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("renameFile",t,n,o,s=>{s?a(s):r()})}})}cmdExec(t,n,o,r){return this.request({commandTimeout:r,executor:(a,s,i)=>{t=Ca(t),this._socket.emit("cmdExec",t,o,n,l=>{i.elapsed||(i.clearTimeout(),l?s(l):a())})}})}getSystemConfig(t){return this.request({cacheKey:"systemConfig",forceUpdate:t,commandTimeout:!1,executor:async n=>{let o=await this.getObject("system.config");o??(o={}),o.common??(o.common={}),o.native??(o.native={}),n(o)}})}getCompactSystemConfig(t){return this.request({cacheKey:"systemConfigCommon",forceUpdate:t,commandTimeout:!1,requireAdmin:!0,executor:(n,o)=>{this._socket.emit("getCompactSystemConfig",(r,a)=>{r?o(r):(a??(a={}),a.common??(a.common={}),a.native??(a.native={}),n(a))})}})}getForeignStates(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignStates",t||"*",(r,a)=>{r?o(r):n(a??{})})}})}getForeignObjects(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("getForeignObjects",t||"*",n,(a,s)=>{a?r(a):o(s)})}})}setSystemConfig(t){return this.setObject("system.config",t)}getRawSocket(){return this._socket}getHistory(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("getHistory",t,n,(a,s)=>{a?r(a):o(s)})}})}getHistoryEx(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("getHistory",t,n,(a,s,i,l)=>{a?r(a):o({values:s,sessionId:l,stepIgnore:i})})}})}getIpAddresses(t,n){return t=Ca(t),this.request({cacheKey:`IPs_${t}`,forceUpdate:n,commandTimeout:!1,executor:async o=>{const r=await this.getObject(t);o((r==null?void 0:r.common.address)??[])}})}getVersion(t){return this.request({cacheKey:"version",forceUpdate:t,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getVersion",(r,a,s)=>{r&&!a&&typeof r=="string"&&r.match(/\d+\.\d+\.\d+/)?n({version:r,serverName:"socketio"}):r?o(r):n({version:a,serverName:s})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getAdapterName",(o,r)=>{o?n(o):t(r)})}})}fileExists(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("fileExists",t,n,(a,s)=>{a?r(a):o(!!s)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:t=>{this._socket.emit("authEnabled",(n,o)=>{t(o)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async t=>{var o;const n=await this.getObject("system.meta.uuid");t((o=n==null?void 0:n.native)==null?void 0:o.uuid)}})}checkFeatureSupported(t,n){return this.request({cacheKey:`supportedFeatures_${t}`,forceUpdate:n,commandTimeout:!1,executor:(o,r)=>{this._socket.emit("checkFeatureSupported",t,(a,s)=>{a?r(a):o(s)})}})}getAdapterInstances(t,n){return typeof t=="boolean"&&(n=t,t=""),t=t||"",this.request({cacheKey:`instances_${t}`,forceUpdate:n,commandTimeout:!1,executor:async o=>{const r=t?`system.adapter.${t}.`:"system.adapter.",a=`${r}香`,s=await this.getObjectViewSystem("instance",r,a),i=Object.values(s);o(t?i.filter(l=>l.common.name===t):i)}})}getAdapters(t,n){return typeof t=="boolean"&&(n=t,t=""),t=t||"",this.request({cacheKey:`adapter_${t}`,forceUpdate:n,commandTimeout:!1,executor:async o=>{const r=await this.getObjectViewSystem("adapter",`system.adapter.${t||""}`,`system.adapter.${t||"香"}`),a=Object.values(r);o(t?a.filter(s=>s.common.name===t):a)}})}getGroups(t){return this.request({cacheKey:"groups",forceUpdate:t,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(r,a)=>{r?o(r):n(kb(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("logout",o=>{o?n(o):t(null)})}})}subscribeOnInstance(t,n,o,r){return this.request({commandTimeout:!1,executor:(a,s)=>{this._socket.emit("clientSubscribe",t,n,o,(i,l)=>{i?s(i):l&&(l.error?s(l.error):(t.startsWith("system.adapter.")||(t=`system.adapter.${t}`),this._instanceSubscriptions[t]=this._instanceSubscriptions[t]||[],this._instanceSubscriptions[t].find(d=>d.messageType===n&&d.callback===r)||this._instanceSubscriptions[t].push({messageType:n,callback:r}),a(l)))})}})}unsubscribeFromInstance(t,n,o){var s;t.startsWith("system.adapter.")||(t=`system.adapter.${t}`);let r;const a=[];do{r=!1;const i=(s=this._instanceSubscriptions[t])==null?void 0:s.findIndex(l=>(!n||l.messageType===n)&&(!o||l.callback===o));if(i!=null&&i!==-1){r=!0;const l=this._instanceSubscriptions[t][i].messageType;this._instanceSubscriptions[t].splice(i,1),this._instanceSubscriptions[t].length||delete this._instanceSubscriptions[t],this._instanceSubscriptions[t]&&this._instanceSubscriptions[t].find(u=>u.messageType===l)||a.push(this.request({commandTimeout:!1,executor:(u,c)=>{this._socket.emit("clientUnsubscribe",t,n,(h,f)=>h?c(h):u(f))}}))}}while(r&&(!o||!n));return a.length?Promise.all(a).then(i=>!!i.find(l=>l)):Promise.resolve(!1)}log(t,n){return t?this.request({commandTimeout:!1,executor:o=>(this._socket.emit("log",t,n),o(null))}):Promise.resolve(null)}setStateToIgnore(t){this.ignoreState=t}}function NU(e,t){if(!t)return;let n;if(t.length<700&&(t.indexOf("/")!==-1||t.indexOf("\\")!==-1))if(e.toLowerCase().includes("private"))n="private";else if(t.toLowerCase().includes("private"))n="private";else if(e.toLowerCase().includes("public"))n="public";else if(t.toLowerCase().includes("public"))n="public";else if(e.toLowerCase().includes("chain"))n="chained";else if(t.toLowerCase().includes("chain"))n="chained";else return;else n=t.substring(0,26)==="-----BEGIN RSA PRIVATE KEY"||t.substring(0,22)==="-----BEGIN PRIVATE KEY"?"private":"public",n==="public"&&t.split("-----END CERTIFICATE-----").filter(r=>r.replace(/\r\n|\r|\n/,"").trim()).length>1&&(n="chained");return{name:e,type:n}}function jU(e){var o,r;const t=[{name:"[IPv4] 0.0.0.0 - Listen on all IPs",address:"0.0.0.0",family:"ipv4"}],n=[{name:"[IPv6] :: - Listen on all IPs",address:"::",family:"ipv6"}];if((r=(o=e.native)==null?void 0:o.hardware)!=null&&r.networkInterfaces){for(const[a,s]of Object.entries(e.native.hardware.networkInterfaces))if(s)for(const i of s)i.family!=="IPv6"?t.push({name:`[${i.family}] ${i.address} - ${a}`,address:i.address,family:"ipv4"}):n.push({name:`[${i.family}] ${i.address} - ${a}`,address:i.address,family:"ipv6"})}return{IPs4:t,IPs6:n}}class zU extends Vr{constructor(t){super(t)}request(t){return super.request({requireAdmin:!0,...t})}getCertificates(t){return this.request({cacheKey:"cert",forceUpdate:t,commandTimeout:!1,executor:async n=>{var r;const o=await this.getObject("system.certificates");(r=o==null?void 0:o.native)!=null&&r.certificates?n(Object.entries(o.native.certificates).map(([a,s])=>NU(a,s)).filter(a=>!!a)):n([])}})}getLogs(t,n=200){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendToHost",t,"getLogs",n||200,r=>{o(r)})}})}upgradeAdapterWithWebserver(t,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendToHost",t,"upgradeAdapterWithWebserver",n,r=>{o(r)})}})}upgradeController(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("sendToHost",t,"upgradeController",{version:n,adminInstance:o},s=>{const i=s;i.error?a(i.error):r(i.result)})}})}updateLicenses(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("updateLicenses",t,n,(a,s)=>{a?r(a):o(s)})}})}upgradeOsPackages(t,n,o){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendToHost",t,"upgradeOsPackages",{packages:n,restart:!!o},a=>{r(a)})}})}getLogsFiles(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readLogs",t,(r,a)=>{r&&o(r),n(a)})}})}delLogs(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("sendToHost",t,"delLogs",null,r=>{r&&o(r),n()})}})}deleteFile(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("deleteFile",t,n,a=>{a&&r(a),o()})}})}deleteFolder(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("deleteFolder",t,n,a=>{a&&r(a),o()})}})}rename(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("rename",t,n,o,s=>{s&&a(s),r()})}})}renameFile(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("renameFile",t,n,o,s=>{s&&a(s),r()})}})}getHosts(t){return this.request({cacheKey:"hosts",forceUpdate:t,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","host",{startkey:"system.host.",endkey:"system.host.香"},(r,a)=>{r?o(r):n(kb(a))})}})}getUsers(t){return this.request({cacheKey:"users",forceUpdate:t,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","user",{startkey:"system.user.",endkey:"system.user.香"},(r,a)=>{r?o(r):n(kb(a))})}})}renameGroup(t,n,o){return this.request({commandTimeout:!1,executor:async r=>{const a=await this.getGroups(!0),s=a.filter(l=>l._id.startsWith(`${t}.`));for(const l of s){const d=l._id,u=n+l._id.substring(t.length);l._id=u,await this.setObject(u,l),await this.delObject(d)}const i=a.find(l=>l._id===t);if(i){const l=i._id;i._id=n,o!==void 0&&(i.common??(i.common={}),i.common.name=o),await this.setObject(n,i),await this.delObject(l)}r()}})}getHostInfo(t,n,o){return t=Ca(t),this.request({cacheKey:`hostInfo_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("sendToHost",t,"getHostInfo",null,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getHostInfo"'):i?r(i):a('Cannot read "getHostInfo"'))})}})}getHostInfoShort(t,n,o){return t=Ca(t),this.request({cacheKey:`hostInfoShort_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("sendToHost",t,"getHostInfoShort",null,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getHostInfoShort"'):i?r(i):a('Cannot read "getHostInfoShort"'))})}})}getRepository(t,n,o,r){return this.request({cacheKey:`repository_${t}`,forceUpdate:o,commandTimeout:r,executor:(a,s,i)=>{this._socket.emit("sendToHost",t,"getRepository",n,l=>{i.elapsed||(i.clearTimeout(),l===Hn.PERMISSION_ERROR?s('May not read "getRepository"'):l?a(l):s('Cannot read "getRepository"'))})}})}getInstalled(t,n,o){return t=Ca(t),this.request({cacheKey:`installed_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("sendToHost",t,"getInstalled",null,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getInstalled"'):i?r(i):a('Cannot read "getInstalled"'))})}})}cmdExec(t,n,o,r){return this.request({commandTimeout:r,executor:(a,s,i)=>{t=Ca(t),this._socket.emit("cmdExec",t,o,n,l=>{i.elapsed||(i.clearTimeout(),l&&s(l),a())})}})}readBaseSettings(t){return t=zd(t),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(n,o,r)=>{this._socket.emit("sendToHost",t,"readBaseSettings",null,a=>{r.elapsed||(r.clearTimeout(),a===Hn.PERMISSION_ERROR?o('May not read "BaseSettings"'):a?a.error?o(new Error(a.error)):n(a):o('Cannot read "BaseSettings"'))})}})}writeBaseSettings(t,n){return t=zd(t),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(o,r,a)=>{this._socket.emit("sendToHost",t,"writeBaseSettings",n,s=>{a.elapsed||(a.clearTimeout(),s===Hn.PERMISSION_ERROR?r('May not write "BaseSettings"'):s?o(s):r('Cannot write "BaseSettings"'))})}})}restartController(t){return t=zd(t),this.request({executor:(n,o,r)=>{this._socket.emit("sendToHost",t,"restartController",null,()=>{r.elapsed||(r.clearTimeout(),n(!0))})}})}getDiagData(t,n){return t=zd(t),this.request({executor:(o,r,a)=>{this._socket.emit("sendToHost",t,"getDiagData",n,s=>{a.elapsed||(a.clearTimeout(),o(s||null))})}})}changePassword(t,n){return this.request({executor:(o,r,a)=>{this._socket.emit("changePassword",t,n,s=>{a.elapsed||(a.clearTimeout(),s&&r(s),o())})}})}getIpAddresses(t,n){return t=Ca(t),this.request({cacheKey:`IPs_${t}`,forceUpdate:n,commandTimeout:!1,executor:async o=>{const r=await this.getObject(t);o((r==null?void 0:r.common.address)??[])}})}getHostByIp(t,n){return t=zd(t),this.request({cacheKey:`rIPs_${t}`,forceUpdate:n,executor:(o,r,a)=>{this._socket.emit("getHostByIp",t,(s,i)=>{if(a.elapsed)return;a.clearTimeout();const{IPs4:l,IPs6:d}=jU(i);o([...l,...d])})}})}encrypt(t){return this.request({executor:(n,o,r)=>{this._socket.emit("encrypt",t,(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}decrypt(t){return this.request({executor:(n,o,r)=>{this._socket.emit("decrypt",t,(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}chmodFile(t,n,o){return this.request({executor:(r,a,s)=>{this._socket.emit("chmodFile",t,n,o,(i,l)=>{s.elapsed||(s.clearTimeout(),i&&a(i),r(l))})}})}chownFile(t,n,o){return this.request({executor:(r,a,s)=>{this._socket.emit("chownFile",t,n,o,(i,l)=>{s.elapsed||(s.clearTimeout(),i&&a(i),r(l))})}})}getNotifications(t,n){return this.request({executor:(o,r,a)=>{this._socket.emit("sendToHost",t,"getNotifications",{category:n},s=>{a.elapsed||(a.clearTimeout(),o(s))})}})}clearNotifications(t,n){return this.request({executor:(o,r,a)=>{this._socket.emit("sendToHost",t,"clearNotifications",{category:n},s=>{a.elapsed||(a.clearTimeout(),o(s))})}})}getIsEasyModeStrict(){return this.request({executor:(t,n,o)=>{this._socket.emit("getIsEasyModeStrict",(r,a)=>{o.elapsed||(o.clearTimeout(),r&&n(r),t(!!a))})}})}getEasyMode(){return this.request({executor:(t,n,o)=>{this._socket.emit("getEasyMode",(r,a)=>{o.elapsed||(o.clearTimeout(),r?n(new Error(r)):t(a))})}})}getRatings(t){return this.request({executor:(n,o,r)=>{this._socket.emit("getRatings",!!t,(a,s)=>{r.elapsed||(r.clearTimeout(),a?o(new Error(a)):n(s))})}})}getCurrentSession(t){const n=new AbortController;return this.request({commandTimeout:t||5e3,onTimeout:()=>{n.abort()},executor:async(o,r,a)=>{try{const s=await fetch("./session",{signal:n.signal});if(a.elapsed)return;a.clearTimeout(),o(s.json())}catch(s){r(`getCurrentSession: ${s}`)}}})}getCurrentInstance(){return this.request({cacheKey:"currentInstance",executor:(t,n,o)=>{this._socket.emit("getCurrentInstance",(r,a)=>{o.elapsed||(o.clearTimeout(),r&&n(r),t(a))})}})}getAdapterInstances(t,n){let o;return typeof t=="boolean"?(n=t,o=""):o=t||"",this.request({cacheKey:`instances_${o}`,forceUpdate:n,executor:(r,a,s)=>{this._socket.emit("getAdapterInstances",o,(i,l)=>{s.elapsed||(s.clearTimeout(),i&&a(i),r(l))})}})}getAdapters(t,n){let o;return typeof t=="boolean"?(n=t,o=""):o=t||"",this.request({cacheKey:`adapter_${o}`,forceUpdate:n,executor:(r,a,s)=>{this._socket.emit("getAdapters",o,(i,l)=>{s.elapsed||(s.clearTimeout(),i&&a(i),r(l))})}})}getCompactAdapters(t){return this.request({cacheKey:"compactAdapters",forceUpdate:t,executor:(n,o,r)=>{this._socket.emit("getCompactAdapters",(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}getAdaptersResetCache(t){t=t??"",this.resetCache(`adapter_${t}`),this.resetCache("compactAdapters")}getCompactInstances(t){return this.request({cacheKey:"compactInstances",forceUpdate:t,executor:(n,o,r)=>{this._socket.emit("getCompactInstances",(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}getAdapterInstancesResetCache(t){t=t??"",this.resetCache(`instances_${t}`),this.resetCache("compactInstances")}getCompactInstalled(t,n,o){return t=Ca(t),this.request({cacheKey:`installedCompact_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("getCompactInstalled",t,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getCompactInstalled"'):i?r(i):a('Cannot read "getCompactInstalled"'))})}})}getInstalledResetCache(t){t?(this.resetCache(`installedCompact_${t}`),this.resetCache(`installed_${t}`)):(this.resetCache("installedCompact_",!0),this.resetCache("installed_",!0))}getCompactRepository(t,n,o){return t=Ca(t),this.request({cacheKey:`repositoryCompact_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("getCompactRepository",t,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getCompactRepository"'):i?r(i):a('Cannot read "getCompactRepository"'))})}})}getRepositoryResetCache(t){t?(this.resetCache(`repositoryCompact_${t}`),this.resetCache(`repository_${t}`)):(this.resetCache("repositoryCompact_",!0),this.resetCache("repository_",!0))}getCompactHosts(t){return this.request({cacheKey:"hostsCompact",forceUpdate:t,executor:(n,o,r)=>{this._socket.emit("getCompactHosts",(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}getCompactSystemRepositories(t){return this.request({cacheKey:"repositoriesCompact",forceUpdate:t,executor:(n,o,r)=>{this._socket.emit("getCompactSystemRepositories",(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$i="8.42.0",pt=globalThis;function n_(e,t,n){const o=pt,r=o.__SENTRY__=o.__SENTRY__||{},a=r[$i]=r[$i]||{};return a[e]||(a[e]=t())}const Ji=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,RU="Sentry Logger ",Eb=["debug","info","warn","error","log","assert","trace"],wm={};function Yi(e){if(!("console"in pt))return e();const t=pt.console,n={},o=Object.keys(wm);o.forEach(r=>{const a=wm[r];n[r]=t[r],t[r]=a});try{return e()}finally{o.forEach(r=>{t[r]=n[r]})}}function IU(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Ji?Eb.forEach(n=>{t[n]=(...o)=>{e&&Yi(()=>{pt.console[n](`${RU}[${n}]:`,...o)})}}):Eb.forEach(n=>{t[n]=()=>{}}),t}const Me=n_("logger",IU),C5=50,Mi="?",CC=/\(error: (.*)\)/,$C=/captureMessage|captureException/;function $5(...e){const t=e.sort((n,o)=>n[0]-o[0]).map(n=>n[1]);return(n,o=0,r=0)=>{const a=[],s=n.split(` -`);for(let i=o;i1024)continue;const d=CC.test(l)?l.replace(CC,"$1"):l;if(!d.match(/\S*Error: /)){for(const u of t){const c=u(d);if(c){a.push(c);break}}if(a.length>=C5+r)break}}return FU(a.slice(r))}}function LU(e){return Array.isArray(e)?$5(...e):e}function FU(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Eh(t).function||"")&&t.pop(),t.reverse(),$C.test(Eh(t).function||"")&&(t.pop(),$C.test(Eh(t).function||"")&&t.pop()),t.slice(0,C5).map(n=>({...n,filename:n.filename||Eh(t).filename,function:n.function||Mi}))}function Eh(e){return e[e.length-1]||{}}const Mv="";function Bs(e){try{return!e||typeof e!="function"?Mv:e.name||Mv}catch{return Mv}}function kC(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(o=>{o.stacktrace.frames&&n.push(...o.stacktrace.frames)}),n}catch{return}}}const Cf={},EC={};function Ki(e,t){Cf[e]=Cf[e]||[],Cf[e].push(t)}function Zi(e,t){if(!EC[e]){EC[e]=!0;try{t()}catch(n){Ji&&Me.error(`Error while instrumenting ${e}`,n)}}}function Or(e,t){const n=e&&Cf[e];if(n)for(const o of n)try{o(t)}catch(r){Ji&&Me.error(`Error while triggering instrumentation handler. +`,IP=typeof $b!="string"?nd` + animation: ${$b} 3s infinite linear; + `:null,LP=e=>{const{classes:t,variant:n,color:o}=e,r={root:["root",`color${U(o)}`,n],dashed:["dashed",`dashedColor${U(o)}`],bar1:["bar",`barColor${U(o)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${U(o)}`,n==="buffer"&&`color${U(o)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ce(r,jP,t)},ow=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?rd(e.palette[t].main,.62):od(e.palette[t].main,.5),FP=G("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${U(n.color)}`],t[n.variant]]}})(pe(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{backgroundColor:ow(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.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)"}}]}))),PP=G("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${U(n.color)}`]]}})(pe(({theme:e})=>({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(e.palette).filter(Pt()).map(([t])=>{const n=ow(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),IP||{animation:`${$b} 3s infinite linear`}),BP=G("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${U(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(pe(({theme:e})=>({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(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Sb}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Sb}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:zP||{animation:`${xb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),HP=G("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${U(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(pe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:ow(e,t),transition:`transform .${Sb}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:RP||{animation:`${Cb} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),UP=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiLinearProgress"}),{className:r,color:a="primary",value:s,valueBuffer:i,variant:l="indeterminate",...d}=o,u={...o,color:a,variant:l},c=LP(u),h=ad(),f={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){f["aria-valuenow"]=Math.round(s),f["aria-valuemin"]=0,f["aria-valuemax"]=100;let v=s-100;h&&(v=-v),g.bar1.transform=`translateX(${v}%)`}if(l==="buffer"&&i!==void 0){let v=(i||0)-100;h&&(v=-v),g.bar2.transform=`translateX(${v}%)`}return m.jsxs(FP,{className:Y(c.root,r),ownerState:u,role:"progressbar",...f,ref:n,...d,children:[l==="buffer"?m.jsx(PP,{className:c.dashed,ownerState:u}):null,m.jsx(BP,{className:c.bar1,ownerState:u,style:g.bar1}),l==="determinate"?null:m.jsx(HP,{className:c.bar2,ownerState:u,style:g.bar2})]})}),Tr=C.createContext({});function WP(e){return ie("MuiList",e)}se("MuiList",["root","padding","dense","subheader"]);const VP=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return ce({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},WP,t)},GP=G("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),kb=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiList"}),{children:r,className:a,component:s="ul",dense:i=!1,disablePadding:l=!1,subheader:d,...u}=o,c=C.useMemo(()=>({dense:i}),[i]),h={...o,component:s,dense:i,disablePadding:l},f=VP(h);return m.jsx(Tr.Provider,{value:c,children:m.jsxs(GP,{as:s,className:Y(f.root,a),ref:n,ownerState:h,...u,children:[d,r]})})});function qP(e){return ie("MuiListItem",e)}se("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function XP(e){return ie("MuiListItemButton",e)}const El=se("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),JP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},YP=e=>{const{alignItems:t,classes:n,dense:o,disabled:r,disableGutters:a,divider:s,selected:i}=e,d=ce({root:["root",o&&"dense",!a&&"gutters",s&&"divider",r&&"disabled",t==="flex-start"&&"alignItemsFlexStart",i&&"selected"]},XP,n);return{...n,...d}},KP=G(Lo,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:JP})(pe(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${El.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${El.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${El.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${El.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${El.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Z2=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:a=!1,component:s="div",children:i,dense:l=!1,disableGutters:d=!1,divider:u=!1,focusVisibleClassName:c,selected:h=!1,className:f,...g}=o,v=C.useContext(Tr),S=C.useMemo(()=>({dense:l||v.dense||!1,alignItems:r,disableGutters:d}),[r,v.dense,l,d]),_=C.useRef(null);Io(()=>{a&&_.current&&_.current.focus()},[a]);const b={...o,alignItems:r,dense:S.dense,disableGutters:d,divider:u,selected:h},y=YP(b),w=Kt(_,n);return m.jsx(Tr.Provider,{value:S,children:m.jsx(KP,{ref:w,href:g.href||g.to,component:(g.href||g.to)&&s==="div"?"button":s,focusVisibleClassName:Y(y.focusVisible,c),ownerState:b,className:Y(y.root,f),...g,classes:y,children:i})})});function ZP(e){return ie("MuiListItemSecondaryAction",e)}se("MuiListItemSecondaryAction",["root","disableGutters"]);const QP=e=>{const{disableGutters:t,classes:n}=e;return ce({root:["root",t&&"disableGutters"]},ZP,n)},eB=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),v5=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...a}=o,s=C.useContext(Tr),i={...o,disableGutters:s.disableGutters},l=QP(i);return m.jsx(eB,{className:Y(l.root,r),ownerState:i,ref:n,...a})});v5.muiName="ListItemSecondaryAction";const tB=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},nB=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:a,divider:s,hasSecondaryAction:i}=e;return ce({root:["root",o&&"dense",!r&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},qP,n)},oB=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:tB})(pe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${El.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),rB=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),aB=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItem"}),{alignItems:r="center",children:a,className:s,component:i,components:l={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:c,...h}={},dense:f=!1,disableGutters:g=!1,disablePadding:v=!1,divider:S=!1,secondaryAction:_,slotProps:b={},slots:y={},...w}=o,$=C.useContext(Tr),k=C.useMemo(()=>({dense:f||$.dense||!1,alignItems:r,disableGutters:g}),[r,$.dense,f,g]),T=C.useRef(null),O=C.Children.toArray(a),D=O.length&&$u(O[O.length-1],["ListItemSecondaryAction"]),x={...o,alignItems:r,dense:k.dense,disableGutters:g,disablePadding:v,divider:S,hasSecondaryAction:D},A=nB(x),R=Kt(T,n),I=y.root||l.Root||oB,j=b.root||d.root||{},N={className:Y(A.root,j.className,s),...w};let M=i||"li";return D?(M=!N.component&&!i?"div":M,u==="li"&&(M==="li"?M="div":N.component==="li"&&(N.component="div")),m.jsx(Tr.Provider,{value:k,children:m.jsxs(rB,{as:u,className:Y(A.container,c),ref:R,ownerState:x,...h,children:[m.jsx(I,{...j,...!ap(I)&&{as:M,ownerState:{...x,...j.ownerState}},...N,children:O}),O.pop()]})})):m.jsx(Tr.Provider,{value:k,children:m.jsxs(I,{...j,as:M,ref:R,...!ap(I)&&{ownerState:{...x,...j.ownerState}},...N,children:[O,_&&m.jsx(v5,{children:_})]})})});function sB(e){return ie("MuiListItemIcon",e)}const Q2=se("MuiListItemIcon",["root","alignItemsFlexStart"]),iB=e=>{const{alignItems:t,classes:n}=e;return ce({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},sB,n)},lB=G("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(pe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Tl=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItemIcon"}),{className:r,...a}=o,s=C.useContext(Tr),i={...o,alignItems:s.alignItems},l=iB(i);return m.jsx(lB,{className:Y(l.root,r),ownerState:i,ref:n,...a})});function cB(e){return ie("MuiListItemText",e)}const oc=se("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),dB=e=>{const{classes:t,inset:n,primary:o,secondary:r,dense:a}=e;return ce({root:["root",n&&"inset",a&&"dense",o&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},cB,t)},uB=G("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${oc.primary}`]:t.primary},{[`& .${oc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${E2.root}:where(& .${oc.primary})`]:{display:"block"},[`.${E2.root}:where(& .${oc.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),as=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiListItemText"}),{children:r,className:a,disableTypography:s=!1,inset:i=!1,primary:l,primaryTypographyProps:d,secondary:u,secondaryTypographyProps:c,...h}=o,{dense:f}=C.useContext(Tr);let g=l??r,v=u;const S={...o,disableTypography:s,inset:i,primary:!!g,secondary:!!v,dense:f},_=dB(S);return g!=null&&g.type!==ja&&!s&&(g=m.jsx(ja,{variant:f?"body2":"body1",className:_.primary,component:d!=null&&d.variant?void 0:"span",...d,children:g})),v!=null&&v.type!==ja&&!s&&(v=m.jsx(ja,{variant:"body2",className:_.secondary,color:"textSecondary",...c,children:v})),m.jsxs(uB,{className:Y(_.root,a),ownerState:S,ref:n,...h,children:[g,v]})});function Ev(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function eC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function y5(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ad(e,t,n,o,r,a){let s=!1,i=r(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const l=o?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!y5(i,a)||l)i=r(e,i,n);else return i.focus(),!0}return!1}const pB=C.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:a=!1,children:s,className:i,disabledItemsFocusable:l=!1,disableListWrap:d=!1,onKeyDown:u,variant:c="selectedMenu",...h}=t,f=C.useRef(null),g=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Io(()=>{r&&f.current.focus()},[r]),C.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(y,{direction:w})=>{const $=!f.current.style.width;if(y.clientHeight{const w=f.current,$=y.key;if(y.ctrlKey||y.metaKey||y.altKey){u&&u(y);return}const T=In(w).activeElement;if($==="ArrowDown")y.preventDefault(),Ad(w,T,d,l,Ev);else if($==="ArrowUp")y.preventDefault(),Ad(w,T,d,l,eC);else if($==="Home")y.preventDefault(),Ad(w,null,d,l,Ev);else if($==="End")y.preventDefault(),Ad(w,null,d,l,eC);else if($.length===1){const O=g.current,D=$.toLowerCase(),x=performance.now();O.keys.length>0&&(x-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&D!==O.keys[0]&&(O.repeating=!1)),O.lastTime=x,O.keys.push(D);const A=T&&!O.repeating&&y5(T,O);O.previousKeyMatched&&(A||Ad(w,T,!1,l,Ev,O))?y.preventDefault():O.previousKeyMatched=!1}u&&u(y)},S=Kt(f,n);let _=-1;C.Children.forEach(s,(y,w)=>{if(!C.isValidElement(y)){_===w&&(_+=1,_>=s.length&&(_=-1));return}y.props.disabled||(c==="selectedMenu"&&y.props.selected||_===-1)&&(_=w),_===w&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(_+=1,_>=s.length&&(_=-1))});const b=C.Children.map(s,(y,w)=>{if(w===_){const $={};return a&&($.autoFocus=!0),y.props.tabIndex===void 0&&c==="selectedMenu"&&($.tabIndex=0),C.cloneElement(y,$)}return y});return m.jsx(kb,{role:"menu",ref:S,className:i,onKeyDown:v,tabIndex:r?0:-1,...h,children:b})});function hB(e){return ie("MuiPopover",e)}se("MuiPopover",["root","paper"]);function tC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function nC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function oC(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Tv(e){return typeof e=="function"?e():e}const fB=e=>{const{classes:t}=e;return ce({root:["root"],paper:["paper"]},hB,t)},mB=G(m5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b5=G(qs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),gB=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiPopover"}),{action:r,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:d,className:u,container:c,elevation:h=8,marginThreshold:f=16,open:g,PaperProps:v={},slots:S={},slotProps:_={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:y=ip,transitionDuration:w="auto",TransitionProps:{onEntering:$,...k}={},disableScrollLock:T=!1,...O}=o,D=(_==null?void 0:_.paper)??v,x=C.useRef(),A={...o,anchorOrigin:s,anchorReference:l,elevation:h,marginThreshold:f,externalPaperSlotProps:D,transformOrigin:b,TransitionComponent:y,transitionDuration:w,TransitionProps:k},R=fB(A),I=C.useCallback(()=>{if(l==="anchorPosition")return i;const xe=Tv(a),me=(xe&&xe.nodeType===1?xe:In(x.current).body).getBoundingClientRect();return{top:me.top+tC(me,s.vertical),left:me.left+nC(me,s.horizontal)}},[a,s.horizontal,s.vertical,i,l]),j=C.useCallback(xe=>({vertical:tC(xe,b.vertical),horizontal:nC(xe,b.horizontal)}),[b.horizontal,b.vertical]),N=C.useCallback(xe=>{const Ee={width:xe.offsetWidth,height:xe.offsetHeight},me=j(Ee);if(l==="none")return{top:null,left:null,transformOrigin:oC(me)};const ot=I();let Ce=ot.top-me.vertical,ze=ot.left-me.horizontal;const X=Ce+Ee.height,ee=ze+Ee.width,$e=Dr(Tv(a)),Ae=$e.innerHeight-f,Xe=$e.innerWidth-f;if(f!==null&&CeAe){const Be=X-Ae;Ce-=Be,me.vertical+=Be}if(f!==null&&zeXe){const Be=ee-Xe;ze-=Be,me.horizontal+=Be}return{top:`${Math.round(Ce)}px`,left:`${Math.round(ze)}px`,transformOrigin:oC(me)}},[a,l,I,j,f]),[M,P]=C.useState(g),H=C.useCallback(()=>{const xe=x.current;if(!xe)return;const Ee=N(xe);Ee.top!==null&&xe.style.setProperty("top",Ee.top),Ee.left!==null&&(xe.style.left=Ee.left),xe.style.transformOrigin=Ee.transformOrigin,P(!0)},[N]);C.useEffect(()=>(T&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,T,H]);const B=(xe,Ee)=>{$&&$(xe,Ee),H()},Z=()=>{P(!1)};C.useEffect(()=>{g&&H()}),C.useImperativeHandle(r,()=>g?{updatePosition:()=>{H()}}:null,[g,H]),C.useEffect(()=>{if(!g)return;const xe=Gg(()=>{H()}),Ee=Dr(a);return Ee.addEventListener("resize",xe),()=>{xe.clear(),Ee.removeEventListener("resize",xe)}},[a,g,H]);let oe=w;w==="auto"&&!y.muiSupportAuto&&(oe=void 0);const ve=c||(a?In(Tv(a)).body:void 0),fe={slots:S,slotProps:{..._,paper:D}},[le,Se]=Un("paper",{elementType:b5,externalForwardedProps:fe,additionalProps:{elevation:h,className:Y(R.paper,D==null?void 0:D.className),style:M?D.style:{...D.style,opacity:0}},ownerState:A}),[De,{slotProps:et,...Ge}]=Un("root",{elementType:mB,externalForwardedProps:fe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ve,open:g},ownerState:A,className:Y(R.root,u)}),qe=Kt(x,Se.ref);return m.jsx(De,{...Ge,...!ap(De)&&{slotProps:et,disableScrollLock:T},...O,ref:n,children:m.jsx(y,{appear:!0,in:g,onEntering:B,onExited:Z,timeout:oe,...k,children:m.jsx(le,{...Se,ref:qe,children:d})})})});function _B(e){return ie("MuiMenu",e)}se("MuiMenu",["root","paper","list"]);const vB={vertical:"top",horizontal:"right"},yB={vertical:"top",horizontal:"left"},bB=e=>{const{classes:t}=e;return ce({root:["root"],paper:["paper"],list:["list"]},_B,t)},wB=G(gB,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SB=G(b5,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xB=G(pB,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Du=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:a,className:s,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:d,open:u,PaperProps:c={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:g,...v}={},variant:S="selectedMenu",slots:_={},slotProps:b={},...y}=o,w=ad(),$={...o,autoFocus:r,disableAutoFocusItem:i,MenuListProps:l,onEntering:g,PaperProps:c,transitionDuration:f,TransitionProps:v,variant:S},k=bB($),T=r&&!i&&u,O=C.useRef(null),D=(M,P)=>{O.current&&O.current.adjustStyleForScrollbar(M,{direction:w?"rtl":"ltr"}),g&&g(M,P)},x=M=>{M.key==="Tab"&&(M.preventDefault(),d&&d(M,"tabKeyDown"))};let A=-1;C.Children.map(a,(M,P)=>{C.isValidElement(M)&&(M.props.disabled||(S==="selectedMenu"&&M.props.selected||A===-1)&&(A=P))});const R=_.paper??SB,I=b.paper??c,j=Ar({elementType:_.root,externalSlotProps:b.root,ownerState:$,className:[k.root,s]}),N=Ar({elementType:R,externalSlotProps:I,ownerState:$,className:k.paper});return m.jsx(wB,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?vB:yB,slots:{paper:R,root:_.root},slotProps:{root:j,paper:N},open:u,ref:n,transitionDuration:f,TransitionProps:{onEntering:D,...v},ownerState:$,...y,classes:h,children:m.jsx(xB,{onKeyDown:x,actions:O,autoFocus:r&&(A===-1||i),autoFocusItem:T,variant:S,...l,className:Y(k.list,l.className),children:a})})});function CB(e){return ie("MuiMenuItem",e)}const Md=se("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$B=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},kB=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:a,classes:s}=e,l=ce({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",a&&"selected"]},CB,s);return{...s,...l}},EB=G(Lo,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$B})(pe(({theme:e})=>({...e.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:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Md.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Md.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Md.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Md.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Md.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${X2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${X2.inset}`]:{marginLeft:52},[`& .${oc.root}`]:{marginTop:0,marginBottom:0},[`& .${oc.inset}`]:{paddingLeft:36},[`& .${Q2.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Q2.root} svg`]:{fontSize:"1.25rem"}}}]}))),je=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:a="li",dense:s=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:d,role:u="menuitem",tabIndex:c,className:h,...f}=o,g=C.useContext(Tr),v=C.useMemo(()=>({dense:s||g.dense||!1,disableGutters:l}),[g.dense,s,l]),S=C.useRef(null);Io(()=>{r&&S.current&&S.current.focus()},[r]);const _={...o,dense:v.dense,divider:i,disableGutters:l},b=kB(o),y=Kt(S,n);let w;return o.disabled||(w=c!==void 0?c:-1),m.jsx(Tr.Provider,{value:v,children:m.jsx(EB,{ref:y,role:u,tabIndex:w,component:a,focusVisibleClassName:Y(b.focusVisible,d),className:Y(b.root,h),...f,ownerState:_,classes:b})})});function TB(e){return ie("MuiNativeSelect",e)}const rw=se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),OB=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:a,error:s}=e,i={select:["select",n,o&&"disabled",r&&"multiple",s&&"error"],icon:["icon",`icon${U(n)}`,a&&"iconOpen",o&&"disabled"]};return ce(i,TB,t)},w5=G("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${rw.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),DB=G(w5,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${rw.multiple}`]:t.multiple}]}})({}),S5=G("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${rw.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),AB=G(S5,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})({}),MB=C.forwardRef(function(t,n){const{className:o,disabled:r,error:a,IconComponent:s,inputRef:i,variant:l="standard",...d}=t,u={...t,disabled:r,variant:l,error:a},c=OB(u);return m.jsxs(C.Fragment,{children:[m.jsx(DB,{ownerState:u,className:Y(c.select,o),disabled:r,ref:i||n,...d}),t.multiple?null:m.jsx(AB,{as:s,ownerState:u,className:c.icon})]})});var rC;const NB=G("fieldset",{shouldForwardProp:Cn})({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%"}),jB=G("legend",{shouldForwardProp:Cn})(pe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function zB(e){const{children:t,classes:n,className:o,label:r,notched:a,...s}=e,i=r!=null&&r!=="",l={...e,notched:a,withLabel:i};return m.jsx(NB,{"aria-hidden":!0,className:o,ownerState:l,...s,children:m.jsx(jB,{ownerState:l,children:i?m.jsx("span",{children:r}):rC||(rC=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const RB=e=>{const{classes:t}=e,o=ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},X7,t);return{...t,...o}},IB=G(Qg,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Kg})(pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Rr.focused} .${Rr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Pt()).map(([n])=>({props:{color:n},style:{[`&.${Rr.focused} .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Rr.error} .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Rr.disabled} .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),LB=G(zB,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),FB=G(e_,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zg})(pe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.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:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),bm=C.forwardRef(function(t,n){var o;const r=de({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:s=!1,inputComponent:i="input",label:l,multiline:d=!1,notched:u,slots:c={},type:h="text",...f}=r,g=RB(r),v=da(),S=Js({props:r,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_={...r,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:v,fullWidth:s,hiddenLabel:S.hiddenLabel,multiline:d,size:S.size,type:h},b=c.root??a.Root??IB,y=c.input??a.Input??FB;return m.jsx(tw,{slots:{root:b,input:y},renderSuffix:w=>m.jsx(LB,{ownerState:_,className:g.notchedOutline,label:l!=null&&l!==""&&S.required?o||(o=m.jsxs(C.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:s,inputComponent:i,multiline:d,ref:n,type:h,...f,classes:{...g,notchedOutline:null}})});bm&&(bm.muiName="Input");const PB=te(m.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"),BB=te(m.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"),HB=G("span",{shouldForwardProp:Cn})({position:"relative",display:"flex"}),UB=G(PB)({transform:"scale(1)"}),WB=G(BB)(pe(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function x5(e){const{checked:t=!1,classes:n={},fontSize:o}=e,r={...e,checked:t};return m.jsxs(HB,{className:n.root,ownerState:r,children:[m.jsx(UB,{fontSize:o,className:n.background,ownerState:r}),m.jsx(WB,{fontSize:o,className:n.dot,ownerState:r})]})}const VB=C.createContext(void 0);function GB(){return C.useContext(VB)}function qB(e){return ie("MuiRadio",e)}const aC=se("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),XB=e=>{const{classes:t,color:n,size:o}=e,r={root:["root",`color${U(n)}`,o!=="medium"&&`size${U(o)}`]};return{...t,...ce(r,qB,t)}},JB=G(nw,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${U(n.size)}`],t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${aC.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${aC.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function YB(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const sC=m.jsx(x5,{checked:!0}),iC=m.jsx(x5,{}),It=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiRadio"}),{checked:r,checkedIcon:a=sC,color:s="primary",icon:i=iC,name:l,onChange:d,size:u="medium",className:c,disabled:h,disableRipple:f=!1,...g}=o,v=da();let S=h;v&&typeof S>"u"&&(S=v.disabled),S??(S=!1);const _={...o,disabled:S,disableRipple:f,color:s,size:u},b=XB(_),y=GB();let w=r;const $=lb(d,y&&y.onChange);let k=l;return y&&(typeof w>"u"&&(w=YB(y.value,o.value)),typeof k>"u"&&(k=y.name)),m.jsx(JB,{type:"radio",icon:C.cloneElement(i,{fontSize:iC.props.fontSize??u}),checkedIcon:C.cloneElement(a,{fontSize:sC.props.fontSize??u}),disabled:S,ownerState:_,classes:b,name:k,checked:w,onChange:$,ref:n,className:Y(b.root,c),...g})});function KB(e){return ie("MuiSelect",e)}const Nd=se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var lC;const ZB=G(w5,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nd.select}`]:t.select},{[`&.${Nd.select}`]:t[n.variant]},{[`&.${Nd.error}`]:t.error},{[`&.${Nd.multiple}`]:t.multiple}]}})({[`&.${Nd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),QB=G(S5,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})({}),eH=G("input",{shouldForwardProp:e=>Y4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function cC(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tH(e){return e==null||typeof e=="string"&&!e.trim()}const nH=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:a,error:s}=e,i={select:["select",n,o&&"disabled",r&&"multiple",s&&"error"],icon:["icon",`icon${U(n)}`,a&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ce(i,KB,t)},oH=C.forwardRef(function(t,n){var yn;const{"aria-describedby":o,"aria-label":r,autoFocus:a,autoWidth:s,children:i,className:l,defaultOpen:d,defaultValue:u,disabled:c,displayEmpty:h,error:f=!1,IconComponent:g,inputRef:v,labelId:S,MenuProps:_={},multiple:b,name:y,onBlur:w,onChange:$,onClose:k,onFocus:T,onOpen:O,open:D,readOnly:x,renderValue:A,SelectDisplayProps:R={},tabIndex:I,type:j,value:N,variant:M="standard",...P}=t,[H,B]=cm({controlled:N,default:u,name:"Select"}),[Z,oe]=cm({controlled:D,default:d,name:"Select"}),ve=C.useRef(null),fe=C.useRef(null),[le,Se]=C.useState(null),{current:De}=C.useRef(D!=null),[et,Ge]=C.useState(),qe=Kt(n,v),xe=C.useCallback(ae=>{fe.current=ae,ae&&Se(ae)},[]),Ee=le==null?void 0:le.parentNode;C.useImperativeHandle(qe,()=>({focus:()=>{fe.current.focus()},node:ve.current,value:H}),[H]),C.useEffect(()=>{d&&Z&&le&&!De&&(Ge(s?null:Ee.clientWidth),fe.current.focus())},[le,s]),C.useEffect(()=>{a&&fe.current.focus()},[a]),C.useEffect(()=>{if(!S)return;const ae=In(fe.current).getElementById(S);if(ae){const Q=()=>{getSelection().isCollapsed&&fe.current.focus()};return ae.addEventListener("click",Q),()=>{ae.removeEventListener("click",Q)}}},[S]);const me=(ae,Q)=>{ae?O&&O(Q):k&&k(Q),De||(Ge(s?null:Ee.clientWidth),oe(ae))},ot=ae=>{ae.button===0&&(ae.preventDefault(),fe.current.focus(),me(!0,ae))},Ce=ae=>{me(!1,ae)},ze=C.Children.toArray(i),X=ae=>{const Q=ze.find(ne=>ne.props.value===ae.target.value);Q!==void 0&&(B(Q.props.value),$&&$(ae,Q))},ee=ae=>Q=>{let ne;if(Q.currentTarget.hasAttribute("tabindex")){if(b){ne=Array.isArray(H)?H.slice():[];const Le=H.indexOf(ae.props.value);Le===-1?ne.push(ae.props.value):ne.splice(Le,1)}else ne=ae.props.value;if(ae.props.onClick&&ae.props.onClick(Q),H!==ne&&(B(ne),$)){const Le=Q.nativeEvent||Q,Re=new Le.constructor(Le.type,Le);Object.defineProperty(Re,"target",{writable:!0,value:{value:ne,name:y}}),$(Re,ae)}b||me(!1,Q)}},$e=ae=>{x||[" ","ArrowUp","ArrowDown","Enter"].includes(ae.key)&&(ae.preventDefault(),me(!0,ae))},Ae=le!==null&&Z,Xe=ae=>{!Ae&&w&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:H,name:y}}),w(ae))};delete P["aria-invalid"];let Be,_e;const nn=[];let K=!1;(vm({value:H})||h)&&(A?Be=A(H):K=!0);const ge=ze.map(ae=>{if(!C.isValidElement(ae))return null;let Q;if(b){if(!Array.isArray(H))throw new Error(Ua(2));Q=H.some(ne=>cC(ne,ae.props.value)),Q&&K&&nn.push(ae.props.children)}else Q=cC(H,ae.props.value),Q&&K&&(_e=ae.props.children);return C.cloneElement(ae,{"aria-selected":Q?"true":"false",onClick:ee(ae),onKeyUp:ne=>{ne.key===" "&&ne.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(ne)},role:"option",selected:Q,value:void 0,"data-value":ae.props.value})});K&&(b?nn.length===0?Be=null:Be=nn.reduce((ae,Q,ne)=>(ae.push(Q),ne{const{classes:t}=e;return t},aw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Cn(e)&&e!=="variant",slot:"Root"},aH=G(Qn,aw)(""),sH=G(bm,aw)(""),iH=G(ym,aw)(""),_n=C.forwardRef(function(t,n){const o=de({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:a,classes:s={},className:i,defaultOpen:l=!1,displayEmpty:d=!1,IconComponent:u=Y7,id:c,input:h,inputProps:f,label:g,labelId:v,MenuProps:S,multiple:_=!1,native:b=!1,onClose:y,onOpen:w,open:$,renderValue:k,SelectDisplayProps:T,variant:O="outlined",...D}=o,x=b?MB:oH,A=da(),R=Js({props:o,muiFormControl:A,states:["variant","error"]}),I=R.variant||O,j={...o,variant:I,classes:s},N=rH(j),{root:M,...P}=N,H=h||{standard:m.jsx(aH,{ownerState:j}),outlined:m.jsx(sH,{label:g,ownerState:j}),filled:m.jsx(iH,{ownerState:j})}[I],B=Kt(n,Xi(H));return m.jsx(C.Fragment,{children:C.cloneElement(H,{inputComponent:x,inputProps:{children:a,error:R.error,IconComponent:u,variant:I,type:void 0,multiple:_,...b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:d,labelId:v,MenuProps:S,onClose:y,onOpen:w,open:$,renderValue:k,SelectDisplayProps:{id:c,...T}},...f,classes:f?Gn(P,f.classes):P,...h?h.props.inputProps:{}},...(_&&b||d)&&I==="outlined"?{notched:!0}:{},ref:B,className:Y(H.props.className,i,N.root),...!h&&{variant:I},...D})})});_n.muiName="Select";function lH(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:o,open:r,resumeHideDuration:a}=e,s=gi();C.useEffect(()=>{if(!r)return;function _(b){b.defaultPrevented||b.key==="Escape"&&(o==null||o(b,"escapeKeyDown"))}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[r,o]);const i=fo((_,b)=>{o==null||o(_,b)}),l=fo(_=>{!o||_==null||s.start(_,()=>{i(null,"timeout")})});C.useEffect(()=>(r&&l(t),s.clear),[r,t,l,s]);const d=_=>{o==null||o(_,"clickaway")},u=s.clear,c=C.useCallback(()=>{t!=null&&l(a??t*.5)},[t,a,l]),h=_=>b=>{const y=_.onBlur;y==null||y(b),c()},f=_=>b=>{const y=_.onFocus;y==null||y(b),u()},g=_=>b=>{const y=_.onMouseEnter;y==null||y(b),u()},v=_=>b=>{const y=_.onMouseLeave;y==null||y(b),c()};return C.useEffect(()=>{if(!n&&r)return window.addEventListener("focus",c),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",c),window.removeEventListener("blur",u)}},[n,r,c,u]),{getRootProps:(_={})=>{const b={...um(e),...um(_)};return{role:"presentation",..._,...b,onBlur:h(b),onFocus:f(b),onMouseEnter:g(b),onMouseLeave:v(b)}},onClickAway:d}}function cH(e){return ie("MuiSnackbarContent",e)}se("MuiSnackbarContent",["root","message","action"]);const dH=e=>{const{classes:t}=e;return ce({root:["root"],action:["action"],message:["message"]},cH,t)},uH=G(qs,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(pe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=lm(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),pH=G("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),hH=G("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),fH=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiSnackbarContent"}),{action:r,className:a,message:s,role:i="alert",...l}=o,d=o,u=dH(d);return m.jsxs(uH,{role:i,square:!0,elevation:6,className:Y(u.root,a),ownerState:d,ref:n,...l,children:[m.jsx(pH,{className:u.message,ownerState:d,children:s}),r?m.jsx(hH,{className:u.action,ownerState:d,children:r}):null]})});function mH(e){return ie("MuiSnackbar",e)}se("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const gH=e=>{const{classes:t,anchorOrigin:n}=e,o={root:["root",`anchorOrigin${U(n.vertical)}${U(n.horizontal)}`]};return ce(o,mH,t)},dC=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${U(n.anchorOrigin.vertical)}${U(n.anchorOrigin.horizontal)}`]]}})(pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),lp=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiSnackbar"}),r=qa(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:u,className:c,ClickAwayListenerProps:h,ContentProps:f,disableWindowBlurListener:g=!1,message:v,onBlur:S,onClose:_,onFocus:b,onMouseEnter:y,onMouseLeave:w,open:$,resumeHideDuration:k,TransitionComponent:T=ip,transitionDuration:O=a,TransitionProps:{onEnter:D,onExited:x,...A}={},...R}=o,I={...o,anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:d,disableWindowBlurListener:g,TransitionComponent:T,transitionDuration:O},j=gH(I),{getRootProps:N,onClickAway:M}=lH({...I}),[P,H]=C.useState(!0),B=Ar({elementType:dC,getSlotProps:N,externalForwardedProps:R,ownerState:I,additionalProps:{ref:n},className:[j.root,c]}),Z=ve=>{H(!0),x&&x(ve)},oe=(ve,fe)=>{H(!1),D&&D(ve,fe)};return!$&&P?null:m.jsx(vF,{onClickAway:M,...h,children:m.jsx(dC,{...B,children:m.jsx(T,{appear:!0,in:$,timeout:O,direction:i==="top"?"down":"up",onEnter:oe,onExited:Z,...A,children:u||m.jsx(fH,{message:v,action:s,...f})})})})});function _H(e){return ie("MuiTooltip",e)}const an=se("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function vH(e){return Math.round(e*1e5)/1e5}const yH=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${U(a.split("-")[0])}`],arrow:["arrow"]};return ce(s,_H,t)},bH=G(u5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${an.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${an.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${an.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${an.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${an.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${an.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${an.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${an.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),wH=G("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${U(n.placement.split("-")[0])}`]]}})(pe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${an.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${an.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${an.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${an.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${vH(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${an.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${an.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${an.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${an.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${an.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${an.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${an.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${an.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${an.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${an.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),SH=G("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(pe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xh=!1;const uC=new Xg;let jd={x:0,y:0};function Ch(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const bn=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:a,classes:s,components:i={},componentsProps:l={},describeChild:d=!1,disableFocusListener:u=!1,disableHoverListener:c=!1,disableInteractive:h=!1,disableTouchListener:f=!1,enterDelay:g=100,enterNextDelay:v=0,enterTouchDelay:S=700,followCursor:_=!1,id:b,leaveDelay:y=0,leaveTouchDelay:w=1500,onClose:$,onOpen:k,open:T,placement:O="bottom",PopperComponent:D,PopperProps:x={},slotProps:A={},slots:R={},title:I,TransitionComponent:j,TransitionProps:N,...M}=o,P=C.isValidElement(a)?a:m.jsx("span",{children:a}),H=qa(),B=ad(),[Z,oe]=C.useState(),[ve,fe]=C.useState(null),le=C.useRef(!1),Se=h||_,De=gi(),et=gi(),Ge=gi(),qe=gi(),[xe,Ee]=cm({controlled:T,default:!1,name:"Tooltip",state:"open"});let me=xe;const ot=qg(b),Ce=C.useRef(),ze=fo(()=>{Ce.current!==void 0&&(document.body.style.WebkitUserSelect=Ce.current,Ce.current=void 0),qe.clear()});C.useEffect(()=>ze,[ze]);const X=We=>{uC.clear(),xh=!0,Ee(!0),k&&!me&&k(We)},ee=fo(We=>{uC.start(800+y,()=>{xh=!1}),Ee(!1),$&&me&&$(We),De.start(H.transitions.duration.shortest,()=>{le.current=!1})}),$e=We=>{le.current&&We.type!=="touchstart"||(Z&&Z.removeAttribute("title"),et.clear(),Ge.clear(),g||xh&&v?et.start(xh?v:g,()=>{X(We)}):X(We))},Ae=We=>{et.clear(),Ge.start(y,()=>{ee(We)})},[,Xe]=C.useState(!1),Be=We=>{dm(We.target)||(Xe(!1),Ae(We))},_e=We=>{Z||oe(We.currentTarget),dm(We.target)&&(Xe(!0),$e(We))},nn=We=>{le.current=!0;const mr=P.props;mr.onTouchStart&&mr.onTouchStart(We)},K=We=>{nn(We),Ge.clear(),De.clear(),ze(),Ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qe.start(S,()=>{document.body.style.WebkitUserSelect=Ce.current,$e(We)})},ge=We=>{P.props.onTouchEnd&&P.props.onTouchEnd(We),ze(),Ge.start(w,()=>{ee(We)})};C.useEffect(()=>{if(!me)return;function We(mr){mr.key==="Escape"&&ee(mr)}return document.addEventListener("keydown",We),()=>{document.removeEventListener("keydown",We)}},[ee,me]);const Ke=Kt(Xi(P),oe,n);!I&&I!==0&&(me=!1);const Te=C.useRef(),Ie=We=>{const mr=P.props;mr.onMouseMove&&mr.onMouseMove(We),jd={x:We.clientX,y:We.clientY},Te.current&&Te.current.update()},Ue={},zt=typeof I=="string";d?(Ue.title=!me&&zt&&!c?I:null,Ue["aria-describedby"]=me?ot:null):(Ue["aria-label"]=zt?I:null,Ue["aria-labelledby"]=me&&!zt?ot:null);const we={...Ue,...M,...P.props,className:Y(M.className,P.props.className),onTouchStart:nn,ref:Ke,..._?{onMouseMove:Ie}:{}},St={};f||(we.onTouchStart=K,we.onTouchEnd=ge),c||(we.onMouseOver=Ch($e,we.onMouseOver),we.onMouseLeave=Ch(Ae,we.onMouseLeave),Se||(St.onMouseOver=$e,St.onMouseLeave=Ae)),u||(we.onFocus=Ch(_e,we.onFocus),we.onBlur=Ch(Be,we.onBlur),Se||(St.onFocus=_e,St.onBlur=Be));const yn={...o,isRtl:B,arrow:r,disableInteractive:Se,placement:O,PopperComponentProp:D,touch:le.current},ae=typeof A.popper=="function"?A.popper(yn):A.popper,Q=C.useMemo(()=>{var mr,wS;let We=[{name:"arrow",enabled:!!ve,options:{element:ve,padding:4}}];return(mr=x.popperOptions)!=null&&mr.modifiers&&(We=We.concat(x.popperOptions.modifiers)),(wS=ae==null?void 0:ae.popperOptions)!=null&&wS.modifiers&&(We=We.concat(ae.popperOptions.modifiers)),{...x.popperOptions,...ae==null?void 0:ae.popperOptions,modifiers:We}},[ve,x.popperOptions,ae==null?void 0:ae.popperOptions]),ne=yH(yn),Le=typeof A.transition=="function"?A.transition(yn):A.transition,Re={slots:{popper:i.Popper,transition:i.Transition??j,tooltip:i.Tooltip,arrow:i.Arrow,...R},slotProps:{arrow:A.arrow??l.arrow,popper:{...x,...ae??l.popper},tooltip:A.tooltip??l.tooltip,transition:{...N,...Le??l.transition}}},[Rt,Ho]=Un("popper",{elementType:bH,externalForwardedProps:Re,ownerState:yn,className:Y(ne.popper,x==null?void 0:x.className)}),[fa,Ks]=Un("transition",{elementType:ip,externalForwardedProps:Re,ownerState:yn}),[Kp,yd]=Un("tooltip",{elementType:wH,className:ne.tooltip,externalForwardedProps:Re,ownerState:yn}),[AM,MM]=Un("arrow",{elementType:SH,className:ne.arrow,externalForwardedProps:Re,ownerState:yn,ref:fe});return m.jsxs(C.Fragment,{children:[C.cloneElement(P,we),m.jsx(Rt,{as:D??u5,placement:O,anchorEl:_?{getBoundingClientRect:()=>({top:jd.y,left:jd.x,right:jd.x,bottom:jd.y,width:0,height:0})}:Z,popperRef:Te,open:Z?me:!1,id:ot,transition:!0,...St,...Ho,popperOptions:Q,children:({TransitionProps:We})=>m.jsx(fa,{timeout:H.transitions.duration.shorter,...We,...Ks,children:m.jsxs(Kp,{...yd,children:[I,r?m.jsx(AM,{...MM}):null]})})})]})});function xH(e){return ie("MuiSwitch",e)}const Zn=se("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),CH=e=>{const{classes:t,edge:n,size:o,color:r,checked:a,disabled:s}=e,i={root:["root",n&&`edge${U(n)}`,`size${U(o)}`],switchBase:["switchBase",`color${U(r)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ce(i,xH,t);return{...t,...l}},$H=G("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${U(n.edge)}`],t[`size${U(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Zn.thumb}`]:{width:16,height:16},[`& .${Zn.switchBase}`]:{padding:4,[`&.${Zn.checked}`]:{transform:"translateX(16px)"}}}}]}),kH=G(nw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Zn.input}`]:t.input},n.color!=="default"&&t[`color${U(n.color)}`]]}})(pe(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Zn.checked}`]:{transform:"translateX(20px)"},[`&.${Zn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Zn.checked} + .${Zn.track}`]:{opacity:.5},[`&.${Zn.disabled} + .${Zn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Zn.input}`]:{left:"-100%",width:"300%"}})),pe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Pt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Zn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?rd(e.palette[t].main,.62):od(e.palette[t].main,.55)}`}},[`&.${Zn.checked} + .${Zn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),EH=G("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(pe(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),TH=G("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(pe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),tu=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiSwitch"}),{className:r,color:a="primary",edge:s=!1,size:i="medium",sx:l,...d}=o,u={...o,color:a,edge:s,size:i},c=CH(u),h=m.jsx(TH,{className:c.thumb,ownerState:u});return m.jsxs($H,{className:Y(c.root,r),sx:l,ownerState:u,children:[m.jsx(kH,{type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u,...d,classes:{...c,root:c.switchBase}}),m.jsx(EH,{className:c.track,ownerState:u})]})});function OH(e){return ie("MuiTab",e)}const Vo=se("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),DH=e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:r,icon:a,label:s,selected:i,disabled:l}=e,d={root:["root",a&&s&&"labelIcon",`textColor${U(n)}`,o&&"fullWidth",r&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return ce(d,OH,t)},AH=G(Lo,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${U(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Vo.iconWrapper}`]:t.iconWrapper},{[`& .${Vo.icon}`]:t.icon}]}})(pe(({theme:e})=>({...e.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:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Vo.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Vo.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Vo.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Vo.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Vo.selected}`]:{opacity:1},[`&.${Vo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Vo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Vo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Vo.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),po=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTab"}),{className:r,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:c,onChange:h,onClick:f,onFocus:g,selected:v,selectionFollowsFocus:S,textColor:_="inherit",value:b,wrapped:y=!1,...w}=o,$={...o,disabled:a,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:d,label:!!c,fullWidth:i,textColor:_,wrapped:y},k=DH($),T=l&&c&&C.isValidElement(l)?C.cloneElement(l,{className:Y(k.icon,l.props.className)}):l,O=x=>{!v&&h&&h(x,b),f&&f(x)},D=x=>{S&&!v&&h&&h(x,b),g&&g(x)};return m.jsxs(AH,{focusRipple:!s,className:Y(k.root,r),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:O,onFocus:D,ownerState:$,tabIndex:v?0:-1,...w,children:[d==="top"||d==="start"?m.jsxs(C.Fragment,{children:[T,c]}):m.jsxs(C.Fragment,{children:[c,T]}),u]})}),C5=C.createContext();function MH(e){return ie("MuiTable",e)}se("MuiTable",["root","stickyHeader"]);const NH=e=>{const{classes:t,stickyHeader:n}=e;return ce({root:["root",n&&"stickyHeader"]},MH,t)},jH=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(pe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),pC="table",zH=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTable"}),{className:r,component:a=pC,padding:s="normal",size:i="medium",stickyHeader:l=!1,...d}=o,u={...o,component:a,padding:s,size:i,stickyHeader:l},c=NH(u),h=C.useMemo(()=>({padding:s,size:i,stickyHeader:l}),[s,i,l]);return m.jsx(C5.Provider,{value:h,children:m.jsx(jH,{as:a,role:a===pC?null:"table",ref:n,className:Y(c.root,r),ownerState:u,...d})})}),t_=C.createContext();function RH(e){return ie("MuiTableBody",e)}se("MuiTableBody",["root"]);const IH=e=>{const{classes:t}=e;return ce({root:["root"]},RH,t)},LH=G("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),FH={variant:"body"},hC="tbody",PH=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableBody"}),{className:r,component:a=hC,...s}=o,i={...o,component:a},l=IH(i);return m.jsx(t_.Provider,{value:FH,children:m.jsx(LH,{className:Y(l.root,r),as:a,ref:n,role:a===hC?null:"rowgroup",ownerState:i,...s})})});function BH(e){return ie("MuiTableCell",e)}const HH=se("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),UH=e=>{const{classes:t,variant:n,align:o,padding:r,size:a,stickyHeader:s}=e,i={root:["root",n,s&&"stickyHeader",o!=="inherit"&&`align${U(o)}`,r!=="normal"&&`padding${U(r)}`,`size${U(a)}`]};return ce(i,BH,t)},WH=G("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${U(n.size)}`],n.padding!=="normal"&&t[`padding${U(n.padding)}`],n.align!=="inherit"&&t[`align${U(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(pe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?rd(Fe(e.palette.divider,1),.88):od(Fe(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${HH.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:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),gr=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableCell"}),{align:r="inherit",className:a,component:s,padding:i,scope:l,size:d,sortDirection:u,variant:c,...h}=o,f=C.useContext(C5),g=C.useContext(t_),v=g&&g.variant==="head";let S;s?S=s:S=v?"th":"td";let _=l;S==="td"?_=void 0:!_&&v&&(_="col");const b=c||g&&g.variant,y={...o,align:r,component:S,padding:i||(f&&f.padding?f.padding:"normal"),size:d||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:b==="head"&&f&&f.stickyHeader,variant:b},w=UH(y);let $=null;return u&&($=u==="asc"?"ascending":"descending"),m.jsx(WH,{as:S,ref:n,className:Y(w.root,a),"aria-sort":$,scope:_,ownerState:y,...h})});function VH(e){return ie("MuiTableHead",e)}se("MuiTableHead",["root"]);const GH=e=>{const{classes:t}=e;return ce({root:["root"]},VH,t)},qH=G("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),XH={variant:"head"},fC="thead",JH=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableHead"}),{className:r,component:a=fC,...s}=o,i={...o,component:a},l=GH(i);return m.jsx(t_.Provider,{value:XH,children:m.jsx(qH,{as:a,className:Y(l.root,r),ref:n,role:a===fC?null:"rowgroup",ownerState:i,...s})})});function YH(e){return ie("MuiToolbar",e)}se("MuiToolbar",["root","gutters","regular","dense"]);const KH=e=>{const{classes:t,disableGutters:n,variant:o}=e;return ce({root:["root",!n&&"gutters",o]},YH,t)},ZH=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(pe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),sw=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiToolbar"}),{className:r,component:a="div",disableGutters:s=!1,variant:i="regular",...l}=o,d={...o,component:a,disableGutters:s,variant:i},u=KH(d);return m.jsx(ZH,{as:a,className:Y(u.root,r),ref:n,ownerState:d,...l})}),QH=te(m.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),eU=te(m.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function tU(e){return ie("MuiTableRow",e)}const mC=se("MuiTableRow",["root","selected","hover","head","footer"]),nU=e=>{const{classes:t,selected:n,hover:o,head:r,footer:a}=e;return ce({root:["root",n&&"selected",o&&"hover",r&&"head",a&&"footer"]},tU,t)},oU=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(pe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${mC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),gC="tr",_C=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableRow"}),{className:r,component:a=gC,hover:s=!1,selected:i=!1,...l}=o,d=C.useContext(t_),u={...o,component:a,hover:s,selected:i,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},c=nU(u);return m.jsx(oU,{as:a,ref:n,className:Y(c.root,r),role:a===gC?null:"row",ownerState:u,...l})}),rU=te(m.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function aU(e){return ie("MuiTableSortLabel",e)}const Ov=se("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),sU=e=>{const{classes:t,direction:n,active:o}=e,r={root:["root",o&&"active",`direction${U(n)}`],icon:["icon",`iconDirection${U(n)}`]};return ce(r,aU,t)},iU=G(Lo,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(pe(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Ov.icon}`]:{opacity:.5}},[`&.${Ov.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Ov.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),lU=G("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${U(n.direction)}`]]}})(pe(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),vC=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTableSortLabel"}),{active:r=!1,children:a,className:s,direction:i="asc",hideSortIcon:l=!1,IconComponent:d=rU,...u}=o,c={...o,active:r,direction:i,hideSortIcon:l,IconComponent:d},h=sU(c);return m.jsxs(iU,{className:Y(h.root,s),component:"span",disableRipple:!0,ownerState:c,ref:n,...u,children:[a,l&&!r?null:m.jsx(lU,{as:d,className:Y(h.icon),ownerState:c})]})});function cU(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function dU(e,t,n,o={},r=()=>{}){const{ease:a=cU,duration:s=300}=o;let i=null;const l=t[e];let d=!1;const u=()=>{d=!0},c=h=>{if(d){r(new Error("Animation cancelled"));return}i===null&&(i=h);const f=Math.min(1,(h-i)/s);if(t[e]=a(f)*(n-l)+l,f>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(c)};return l===n?(r(new Error("Element already at target position")),u):(requestAnimationFrame(c),u)}const uU={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pU(e){const{onChange:t,...n}=e,o=C.useRef(),r=C.useRef(null),a=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return Io(()=>{const s=Gg(()=>{const l=o.current;a(),l!==o.current&&t(o.current)}),i=Dr(r.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),C.useEffect(()=>{a(),t(o.current)},[t]),m.jsx("div",{style:uU,...n,ref:r})}function hU(e){return ie("MuiTabScrollButton",e)}const fU=se("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),mU=e=>{const{classes:t,orientation:n,disabled:o}=e;return ce({root:["root",n,o&&"disabled"]},hU,t)},gU=G(Lo,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${fU.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),_U=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTabScrollButton"}),{className:r,slots:a={},slotProps:s={},direction:i,orientation:l,disabled:d,...u}=o,c=ad(),h={isRtl:c,...o},f=mU(h),g=a.StartScrollButtonIcon??QH,v=a.EndScrollButtonIcon??eU,S=Ar({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),_=Ar({elementType:v,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return m.jsx(gU,{component:"div",className:Y(f.root,r),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${c?-90:90}deg)`}},children:i==="left"?m.jsx(g,{...S}):m.jsx(v,{..._})})});function vU(e){return ie("MuiTabs",e)}const Dv=se("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),yC=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,bC=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,$h=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const a=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||a)r=n(e,r);else{r.focus();return}}},yU=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:r,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=e;return ce({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",r&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},vU,l)},bU=G("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Dv.scrollButtons}`]:t.scrollButtons},{[`& .${Dv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(pe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Dv.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),wU=G("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),SU=G("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),xU=G("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(pe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),CU=G(pU)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),wC={},$5=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTabs"}),r=qa(),a=ad(),{"aria-label":s,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:c,component:h="div",allowScrollButtonsMobile:f=!1,indicatorColor:g="primary",onChange:v,orientation:S="horizontal",ScrollButtonComponent:_=_U,scrollButtons:b="auto",selectionFollowsFocus:y,slots:w={},slotProps:$={},TabIndicatorProps:k={},TabScrollButtonProps:T={},textColor:O="primary",value:D,variant:x="standard",visibleScrollbar:A=!1,...R}=o,I=x==="scrollable",j=S==="vertical",N=j?"scrollTop":"scrollLeft",M=j?"top":"left",P=j?"bottom":"right",H=j?"clientHeight":"clientWidth",B=j?"height":"width",Z={...o,component:h,allowScrollButtonsMobile:f,indicatorColor:g,orientation:S,vertical:j,scrollButtons:b,textColor:O,variant:x,visibleScrollbar:A,fixed:!I,hideScrollbar:I&&!A,scrollableX:I&&!j,scrollableY:I&&j,centered:d&&!I,scrollButtonsHideMobile:!f},oe=yU(Z),ve=Ar({elementType:w.StartScrollButtonIcon,externalSlotProps:$.startScrollButtonIcon,ownerState:Z}),fe=Ar({elementType:w.EndScrollButtonIcon,externalSlotProps:$.endScrollButtonIcon,ownerState:Z}),[le,Se]=C.useState(!1),[De,et]=C.useState(wC),[Ge,qe]=C.useState(!1),[xe,Ee]=C.useState(!1),[me,ot]=C.useState(!1),[Ce,ze]=C.useState({overflow:"hidden",scrollbarWidth:0}),X=new Map,ee=C.useRef(null),$e=C.useRef(null),Ae=()=>{const Q=ee.current;let ne;if(Q){const Re=Q.getBoundingClientRect();ne={clientWidth:Q.clientWidth,scrollLeft:Q.scrollLeft,scrollTop:Q.scrollTop,scrollWidth:Q.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Le;if(Q&&D!==!1){const Re=$e.current.children;if(Re.length>0){const Rt=Re[X.get(D)];Le=Rt?Rt.getBoundingClientRect():null}}return{tabsMeta:ne,tabMeta:Le}},Xe=fo(()=>{const{tabsMeta:Q,tabMeta:ne}=Ae();let Le=0,Re;j?(Re="top",ne&&Q&&(Le=ne.top-Q.top+Q.scrollTop)):(Re=a?"right":"left",ne&&Q&&(Le=(a?-1:1)*(ne[Re]-Q[Re]+Q.scrollLeft)));const Rt={[Re]:Le,[B]:ne?ne[B]:0};if(typeof De[Re]!="number"||typeof De[B]!="number")et(Rt);else{const Ho=Math.abs(De[Re]-Rt[Re]),fa=Math.abs(De[B]-Rt[B]);(Ho>=1||fa>=1)&&et(Rt)}}),Be=(Q,{animation:ne=!0}={})=>{ne?dU(N,ee.current,Q,{duration:r.transitions.duration.standard}):ee.current[N]=Q},_e=Q=>{let ne=ee.current[N];j?ne+=Q:ne+=Q*(a?-1:1),Be(ne)},nn=()=>{const Q=ee.current[H];let ne=0;const Le=Array.from($e.current.children);for(let Re=0;ReQ){Re===0&&(ne=Q);break}ne+=Rt[H]}return ne},K=()=>{_e(-1*nn())},ge=()=>{_e(nn())},Ke=C.useCallback(Q=>{ze({overflow:null,scrollbarWidth:Q})},[]),Te=()=>{const Q={};Q.scrollbarSizeListener=I?m.jsx(CU,{onChange:Ke,className:Y(oe.scrollableX,oe.hideScrollbar)}):null;const Le=I&&(b==="auto"&&(Ge||xe)||b===!0);return Q.scrollButtonStart=Le?m.jsx(_,{slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ve},orientation:S,direction:a?"right":"left",onClick:K,disabled:!Ge,...T,className:Y(oe.scrollButtons,T.className)}):null,Q.scrollButtonEnd=Le?m.jsx(_,{slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:fe},orientation:S,direction:a?"left":"right",onClick:ge,disabled:!xe,...T,className:Y(oe.scrollButtons,T.className)}):null,Q},Ie=fo(Q=>{const{tabsMeta:ne,tabMeta:Le}=Ae();if(!(!Le||!ne)){if(Le[M]ne[P]){const Re=ne[N]+(Le[P]-ne[P]);Be(Re,{animation:Q})}}}),Ue=fo(()=>{I&&b!==!1&&ot(!me)});C.useEffect(()=>{const Q=Gg(()=>{ee.current&&Xe()});let ne;const Le=Ho=>{Ho.forEach(fa=>{fa.removedNodes.forEach(Ks=>{ne==null||ne.unobserve(Ks)}),fa.addedNodes.forEach(Ks=>{ne==null||ne.observe(Ks)})}),Q(),Ue()},Re=Dr(ee.current);Re.addEventListener("resize",Q);let Rt;return typeof ResizeObserver<"u"&&(ne=new ResizeObserver(Q),Array.from($e.current.children).forEach(Ho=>{ne.observe(Ho)})),typeof MutationObserver<"u"&&(Rt=new MutationObserver(Le),Rt.observe($e.current,{childList:!0})),()=>{Q.clear(),Re.removeEventListener("resize",Q),Rt==null||Rt.disconnect(),ne==null||ne.disconnect()}},[Xe,Ue]),C.useEffect(()=>{const Q=Array.from($e.current.children),ne=Q.length;if(typeof IntersectionObserver<"u"&&ne>0&&I&&b!==!1){const Le=Q[0],Re=Q[ne-1],Rt={root:ee.current,threshold:.99},Ho=yd=>{qe(!yd[0].isIntersecting)},fa=new IntersectionObserver(Ho,Rt);fa.observe(Le);const Ks=yd=>{Ee(!yd[0].isIntersecting)},Kp=new IntersectionObserver(Ks,Rt);return Kp.observe(Re),()=>{fa.disconnect(),Kp.disconnect()}}},[I,b,me,u==null?void 0:u.length]),C.useEffect(()=>{Se(!0)},[]),C.useEffect(()=>{Xe()}),C.useEffect(()=>{Ie(wC!==De)},[Ie,De]),C.useImperativeHandle(l,()=>({updateIndicator:Xe,updateScrollButtons:Ue}),[Xe,Ue]);const zt=m.jsx(xU,{...k,className:Y(oe.indicator,k.className),ownerState:Z,style:{...De,...k.style}});let we=0;const St=C.Children.map(u,Q=>{if(!C.isValidElement(Q))return null;const ne=Q.props.value===void 0?we:Q.props.value;X.set(ne,we);const Le=ne===D;return we+=1,C.cloneElement(Q,{fullWidth:x==="fullWidth",indicator:Le&&!le&&zt,selected:Le,selectionFollowsFocus:y,onChange:v,textColor:O,value:ne,...we===1&&D===!1&&!Q.props.tabIndex?{tabIndex:0}:{}})}),yn=Q=>{const ne=$e.current,Le=In(ne).activeElement;if(Le.getAttribute("role")!=="tab")return;let Rt=S==="horizontal"?"ArrowLeft":"ArrowUp",Ho=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&a&&(Rt="ArrowRight",Ho="ArrowLeft"),Q.key){case Rt:Q.preventDefault(),$h(ne,Le,bC);break;case Ho:Q.preventDefault(),$h(ne,Le,yC);break;case"Home":Q.preventDefault(),$h(ne,null,yC);break;case"End":Q.preventDefault(),$h(ne,null,bC);break}},ae=Te();return m.jsxs(bU,{className:Y(oe.root,c),ownerState:Z,ref:n,as:h,...R,children:[ae.scrollButtonStart,ae.scrollbarSizeListener,m.jsxs(wU,{className:oe.scroller,ownerState:Z,style:{overflow:Ce.overflow,[j?`margin${a?"Left":"Right"}`:"marginBottom"]:A?void 0:-Ce.scrollbarWidth},ref:ee,children:[m.jsx(SU,{"aria-label":s,"aria-labelledby":i,"aria-orientation":S==="vertical"?"vertical":null,className:oe.flexContainer,ownerState:Z,onKeyDown:yn,ref:$e,role:"tablist",children:St}),le&&zt]}),ae.scrollButtonEnd]})});function $U(e){return ie("MuiTextField",e)}se("MuiTextField",["root"]);const kU={standard:Qn,filled:ym,outlined:bm},EU=e=>{const{classes:t}=e;return ce({root:["root"]},$U,t)},TU=G(to,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),st=C.forwardRef(function(t,n){const o=de({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:a=!1,children:s,className:i,color:l="primary",defaultValue:d,disabled:u=!1,error:c=!1,FormHelperTextProps:h,fullWidth:f=!1,helperText:g,id:v,InputLabelProps:S,inputProps:_,InputProps:b,inputRef:y,label:w,maxRows:$,minRows:k,multiline:T=!1,name:O,onBlur:D,onChange:x,onFocus:A,placeholder:R,required:I=!1,rows:j,select:N=!1,SelectProps:M,slots:P={},slotProps:H={},type:B,value:Z,variant:oe="outlined",...ve}=o,fe={...o,autoFocus:a,color:l,disabled:u,error:c,fullWidth:f,multiline:T,required:I,select:N,variant:oe},le=EU(fe),Se=qg(v),De=g&&Se?`${Se}-helper-text`:void 0,et=w&&Se?`${Se}-label`:void 0,Ge=kU[oe],qe={slots:P,slotProps:{input:b,inputLabel:S,htmlInput:_,formHelperText:h,select:M,...H}},xe={},Ee=qe.slotProps.inputLabel;oe==="outlined"&&(Ee&&typeof Ee.shrink<"u"&&(xe.notched=Ee.shrink),xe.label=w),N&&((!M||!M.native)&&(xe.id=void 0),xe["aria-describedby"]=void 0);const[me,ot]=Un("input",{elementType:Ge,externalForwardedProps:qe,additionalProps:xe,ownerState:fe}),[Ce,ze]=Un("inputLabel",{elementType:xf,externalForwardedProps:qe,ownerState:fe}),[X,ee]=Un("htmlInput",{elementType:"input",externalForwardedProps:qe,ownerState:fe}),[$e,Ae]=Un("formHelperText",{elementType:Er,externalForwardedProps:qe,ownerState:fe}),[Xe,Be]=Un("select",{elementType:_n,externalForwardedProps:qe,ownerState:fe}),_e=m.jsx(me,{"aria-describedby":De,autoComplete:r,autoFocus:a,defaultValue:d,fullWidth:f,multiline:T,name:O,rows:j,maxRows:$,minRows:k,type:B,value:Z,id:Se,inputRef:y,onBlur:D,onChange:x,onFocus:A,placeholder:R,inputProps:ee,slots:{input:P.htmlInput?X:void 0},...ot});return m.jsxs(TU,{className:Y(le.root,i),disabled:u,error:c,fullWidth:f,ref:n,required:I,color:l,variant:oe,ownerState:fe,...ve,children:[w!=null&&w!==""&&m.jsx(Ce,{htmlFor:Se,id:et,...ze,children:w}),N?m.jsx(Xe,{"aria-describedby":De,id:Se,labelId:et,value:Z,input:_e,...Be,children:s}):_e,g&&m.jsx($e,{id:De,...Ae,children:g})]})}),Av=11/23/100;function SC(e){const t={r:0,g:0,b:0};if(e.length===7)t.r=parseInt(e.substr(1,2),16),t.g=parseInt(e.substr(3,2),16),t.b=parseInt(e.substr(5,2),16);else if(e.length===4){const n=e.substr(1,1),o=e.substr(2,1),r=e.substr(3,1);t.r=parseInt(n+n,16),t.g=parseInt(o+o,16),t.b=parseInt(r+r,16)}return t}function OU(e){return`#${Math.round(e.r).toString(16)}${Math.round(e.g).toString(16)}${Math.round(e.b).toString(16)}`}function DU(e,t,n){const o=SC(e),r=SC(t);return o.r+=r.r*(.05+Av*(n-1)),o.g+=r.g*(.05+Av*(n-1)),o.b+=r.b*(.05+Av*(n-1)),OU(o)}function xC(e,t){const n={};for(let o=1;o<=24;o++)n[`elevation${o}`]={backgroundColor:DU(e,t,o)};return n}function AU(e,t){var s,i,l,d,u,c,h,f,g,v,S;let n,o;e==="dark"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[200],"&:hover":{color:Mn[100]}}},MuiPaper:xC("#121212","#fff")},n={name:e,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):e==="blue"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[400],"&:hover":{color:Mn[300]}}}},n={name:e,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):e==="colored"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[200],"&:hover":{color:Mn[100]}}},MuiPaper:xC("#151d21","#fff")},n={name:e,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):e==="PT"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[400],"&:hover":{color:Mn[300]}}}},n={name:e,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):e==="DX"?(o={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[400],"&:hover":{color:Mn[300]}}}},n={name:e,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(o={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Mn[400],"&:hover":{color:Mn[300]}}}},n={name:e,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),n.toolbar={height:48},n.saveToolbar={background:(i=(s=n.palette)==null?void 0:s.primary)==null?void 0:i.main,button:{borderRadius:3,height:32}},n.palette&&(n.palette.grey={main:db[300],dark:db[400]});const r=np(n),a=r.palette;return np(r,{components:{...o,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(l=a.grey)==null?void 0:l[300],color:a.getContrastText&&((d=a.grey)!=null&&d[300])?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(u=a.text)==null?void 0:u.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(c=a.action)==null?void 0:c.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Fe(((h=a.text)==null?void 0:h.primary)||"",((f=a.action)==null?void 0:f.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(g=a.text)==null?void 0:g.primary,"&:hover":{backgroundColor:Fe(((v=a.text)==null?void 0:v.primary)||"",((S=a.action)==null?void 0:S.hoverOpacity)||.04)}}}]}}})}function MU(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Eb(e){return(e==null?void 0:e.rows.map(t=>t.value).filter(t=>!!t))??[]}function Ca(e){return e!=null&&e.startsWith("system.host.")||(e=`system.host.${e}`),e}function zd(e){return e!=null&&e.startsWith("system.host.")&&(e=e.substring(12)),e}function CC(e){return new Promise(t=>{setTimeout(t,e)})}function kh(e){e=(e||"").toString();const t=e[0]==="*",n=e[e.length-1]==="*";return e=e.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(t?"":"^")+e+(n?"":"$")}var Wr;(function(e){e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.OBJECTS_LOADED=2]="OBJECTS_LOADED",e[e.READY=3]="READY"})(Wr||(Wr={}));var Hn;(function(e){e.PERMISSION_ERROR="permissionError",e.NOT_CONNECTED="notConnectedError",e.TIMEOUT="timeout",e.NOT_ADMIN="Allowed only in admin",e.NOT_SUPPORTED="Not supported"})(Hn||(Hn={}));Hn.PERMISSION_ERROR;Hn.NOT_CONNECTED;const NU=["material","echarts","vis"];class Vr{constructor(t){F(this,"props");F(this,"ignoreState","");F(this,"connected",!1);F(this,"subscribed",!1);F(this,"firstConnect",!0);F(this,"waitForRestart",!1);F(this,"loaded",!1);F(this,"simStates",{});F(this,"statesSubscribes",{});F(this,"filesSubscribes",{});F(this,"objectsSubscribes",{});F(this,"objects",{});F(this,"states",{});F(this,"acl",null);F(this,"isSecure",!1);F(this,"onReadyDone",!1);F(this,"onConnectionHandlers",[]);F(this,"onLogHandlers",[]);F(this,"onCmdStdoutHandler");F(this,"onCmdStderrHandler");F(this,"onCmdExitHandler");F(this,"_socket");F(this,"_waitForSocketPromise");F(this,"_waitForFirstConnectionPromise",MU());F(this,"_instanceSubscriptions",{});F(this,"_promises",{});F(this,"_authTimer");F(this,"_systemConfig");F(this,"systemLang","en");this.props=this.applyDefaultProps(t),this.waitForSocketLib().then(()=>this.startSocket()).catch(n=>{alert(`Socket connection could not be initialized: ${n}`)})}applyDefaultProps(t){return{...t,protocol:t.protocol||window.location.protocol,host:t.host||window.location.hostname,port:t.port||(window.location.port==="3000"?8081:window.location.port),ioTimeout:Math.max(t.ioTimeout||2e4,2e4),cmdTimeout:Math.max(t.cmdTimeout||5e3,5e3),admin5only:t.admin5only||!1,autoSubscribes:t.autoSubscribes??[],autoSubscribeLog:t.autoSubscribeLog??!1,doNotLoadACL:t.doNotLoadACL??!0,doNotLoadAllObjects:t.doNotLoadAllObjects??!0}}onError(t){(this.props.onError??console.error)(t)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(t,n)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>t());else{for(let o=1;o<=30;o++){if(window.io||window.iob)return t();await CC(100)}n(new Error("Socket library could not be loaded!"))}else t()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let t=this.props.host,n=this.props.port,o=(this.props.protocol||window.location.protocol).replace(":",""),r=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")r="";else{if(window.socketUrl){const i=new URL(window.socketUrl);t=i.hostname,n=i.port,o=i.protocol.replace(":","")}const s=r.lastIndexOf("/");if(s!==-1&&(r=r.substring(0,s+1)),Vr.isWeb()){const i=r.split("/");i.length>2&&(i.pop(),i.pop(),NU.includes(i[i.length-1])&&i.pop(),r=i.join("/"),r.endsWith("/")||(r+="/"))}}const a=n?`${o}://${t}:${n}`:`${o}://${t}`;return this._socket=(window.io||window.iob).connect(a,{path:r.endsWith("/")?`${r}socket.io`:`${r}/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",s=>{this.onReadyDone=!1,s!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(i=>{const[l,d,u]=i.version.split(".");parseInt(l,10)*1e4+parseInt(d,10)*100+parseInt(u,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(h,f)=>this.onPreConnect(h,f))}).catch(i=>this.onError({message:i.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(i,l)=>{this.onPreConnect(i,l)})}),this._socket.on("reconnect",()=>{var s,i;this.onReadyDone=!1,(i=(s=this.props).onProgress)==null||i.call(s,Wr.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(l=>l(!0)))}),this._socket.on("disconnect",()=>{var s,i;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(i=(s=this.props).onProgress)==null||i.call(s,Wr.CONNECTING),this.onConnectionHandlers.forEach(l=>l(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",s=>{var i,l;(l=(i=this.props).onLog)==null||l.call(i,s),this.onLogHandlers.forEach(d=>d(s))}),this._socket.on("error",s=>{let i;s==null?i="":typeof s.toString=="function"?i=s.toString():(i=JSON.stringify(s),console.error(`Received strange error: ${i}`)),i.includes("User not authorized")?this.authenticate():i.includes("websocket error")?(console.error(`Socket Error => reload: ${s}`),window.location.reload()):console.error(`Socket Error: ${s}`)}),this._socket.on("connect_error",s=>console.error(`Connect error: ${s}`)),this._socket.on("permissionError",s=>this.onError({message:"no permission",operation:s.operation,type:s.type,id:s.id||""})),this._socket.on("objectChange",(s,i)=>{setTimeout(()=>this.objectChange(s,i),0)}),this._socket.on("stateChange",(s,i)=>{setTimeout(()=>this.stateChange(s,i),0)}),this._socket.on("im",(s,i,l)=>{setTimeout(()=>this.instanceMessage(s,i,l),0)}),this._socket.on("fileChange",(s,i,l)=>{setTimeout(()=>this.fileChange(s,i,l),0)}),this._socket.on("cmdStdout",(s,i)=>{var l;(l=this.onCmdStdoutHandler)==null||l.call(this,s,i)}),this._socket.on("cmdStderr",(s,i)=>{var l;(l=this.onCmdStderrHandler)==null||l.call(this,s,i)}),this._socket.on("cmdExit",(s,i)=>{var l;(l=this.onCmdExitHandler)==null||l.call(this,s,i)}),Promise.resolve()}onPreConnect(t,n){var o,r;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=n,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(a=>console.error(`Cannot load data: ${a}`)):(r=(o=this.props).onProgress)==null||r.call(o,Wr.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(a=>a(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getUserPermissions",(o,r)=>{o?n(o):t(r)})}})}async loadData(){if(this.loaded)return;const t=10;for(let n=1;n<=t;n++){if(this.doLoadData().catch(o=>console.error(`Cannot load data: ${o}`)),this.loaded)return;await CC(Vr.isCloud()?5e3:1e3)}}async doLoadData(){var t,n,o,r,a,s,i,l,d;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(u){this.onError(`Cannot read user permissions: ${u}`);return}try{this.props.admin5only&&!Vr.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(u){this.onError(`Cannot read system config: ${u}`);return}this._systemConfig&&(this.systemLang=(t=this._systemConfig.common)==null?void 0:t.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(o=(n=this.props).onLanguage)==null||o.call(n,this.systemLang),this.loaded=!0,(a=(r=this.props).onProgress)==null||a.call(r,Wr.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(i=(s=this.props).onProgress)==null||i.call(s,Wr.READY),this.onReadyDone||(this.onReadyDone=!0,(d=(l=this.props).onReady)==null||d.call(l,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...t){let n,o,r;t.length===3?[n,o,r]=t:([n,r]=t,o=!1);let a;if(Array.isArray(n)?a=n:a=[n],typeof r!="function")throw new Error("The state change handler must be a function!");const s=[];for(let i=0;ii.includes("*"))){let i;for(let l=0;lconsole.error(`Cannot call state change handler: ${h}`))}}}else try{const i=await(Vr.isWeb()?this.getStates(a):this.getForeignStates(a));if(i)for(const[l,d]of Object.entries(i)){const u=r(l,d);u instanceof Promise&&u.catch(c=>console.error(`Cannot call state change handler: ${c}`))}}catch(i){console.error(`Cannot getState "${a.join(", ")}": ${i.message}`);return}}async subscribeStateAsync(t,n){return this.subscribeState(t,n)}unsubscribeState(t,n){var a;let o;Array.isArray(t)?o=t:o=[t];const r=[];for(let s=0;s{try{const u=d(t,n,o);u instanceof Promise&&u.catch(c=>console.error(`Cannot call object change handler: ${c}`))}catch(u){console.error(`Error by callback of objectChange: ${u}`)}});if(r){const i=(s=(a=this.props).onObjectChange)==null?void 0:s.call(a,t,n);i instanceof Promise&&i.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(t,n){for(const o of Object.values(this.statesSubscribes))if(o.reg.test(t))for(const r of o.cbs)try{const a=r(t,n??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(t,n,o){var r;(r=this._instanceSubscriptions[n])==null||r.forEach(a=>{if(a.messageType===t){const s=a.callback(o,n,t);s instanceof Promise&&s.catch(i=>console.error(`Cannot call instance message handler: ${i}`))}})}fileChange(t,n,o){for(const r of Object.values(this.filesSubscribes))if(r.regId.test(t)&&r.regFilePattern.test(n))for(const a of r.cbs)try{a(t,n,o)}catch(s){console.error(`Error by callback of fileChange: ${s}`)}}async subscribeFiles(t,n,o){if(typeof o!="function")throw new Error("The state change handler must be a function!");let r;Array.isArray(n)?r=n:r=[n];const a=[];for(let s=0;s{const c={elapsed:!1,clearTimeout:()=>{}};let h;o!==!1&&(h=setTimeout(()=>{c.elapsed=!0,r==null||r(),t&&this._promises[t]instanceof Promise&&delete this._promises[t],u(new Error(Hn.TIMEOUT))},o??this.props.cmdTimeout),c.clearTimeout=()=>{clearTimeout(h)});try{await i(d,u,c)}catch(f){t&&this._promises[t]instanceof Promise&&delete this._promises[t],u(new Error(f.toString()))}});return t&&(this._promises[t]=l),l}resetCache(t,n){n?Object.keys(this._promises).filter(o=>o.startsWith(t)).forEach(o=>{delete this._promises[o]}):delete this._promises[t]}getStates(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getStates",t,(r,a)=>{this.states=a??{},r?o(r):n(this.states)})}})}getState(t){return this.request({commandTimeout:!1,executor:(n,o)=>{if(t&&t===this.ignoreState){n(this.simStates[t]||{val:null,ack:!0});return}this._socket.emit("getState",t,(r,a)=>{r?o(r):n(a)})}})}getBinaryState(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getBinaryState",t,(r,a)=>{r?o(r):n(a)})}})}setBinaryState(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("setBinaryState",t,n,a=>{a?r(a):o()})}})}setState(t,n,o){return typeof o=="boolean"&&(n={val:n,ack:o}),this.request({commandTimeout:!1,executor:(r,a)=>{if(t&&t===this.ignoreState){let s;if(typeof o=="boolean"||typeof n=="object"&&n.val!==void 0?s=n:s={val:n,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[t]=s,this.statesSubscribes[t])for(const i of this.statesSubscribes[t].cbs)try{const l=i(t,s);l instanceof Promise&&l.catch(d=>console.error(`Cannot call state change handler: ${d}`))}catch(l){console.error(`Error by callback of stateChanged: ${l}`)}r();return}this._socket.emit("setState",t,n,s=>{s?a(s):r()})}})}getObjects(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{if(!t&&this.objects){o(this.objects);return}this._socket.emit(Vr.isWeb()?"getObjects":"getAllObjects",(a,s)=>{var i,l;n||(l=(i=this.props).onProgress)==null||l.call(i,Wr.OBJECTS_LOADED),a?r(a):(this.objects=s??{},o(this.objects))})}})}getObjectsById(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjects",t,(r,a)=>{r?o(r):n(a)})}})}_subscribe(t){var n,o;if(t&&!this.subscribed){this.subscribed=!0,(n=this.props.autoSubscribes)!=null&&n.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(a=>this._socket.emit("subscribeObjects",a)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("subscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[s,i]=a.split("$%$");this._socket.emit("subscribeFiles",s,i)})}else if(!t&&this.subscribed){this.subscribed=!1,(o=this.props.autoSubscribes)!=null&&o.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(a=>this._socket.emit("unsubscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[s,i]=a.split("$%$");this._socket.emit("unsubscribeFiles",s,i)})}}requireLog(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("requireLog",t,r=>{r?o(r):n()})}})}delObject(t,n=!1){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("delObject",t,{maintenance:n},a=>{a?r(a):o()})}})}delObjects(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("delObjects",t,{maintenance:n},a=>{a?r(a):o()})}})}setObject(t,n){return n?(n=JSON.parse(JSON.stringify(n)),delete n.from,delete n.user,delete n.ts,this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("setObject",t,n,a=>{a?r(a):o()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(t){return this.request({commandTimeout:!1,executor:(n,o)=>{if(t&&t===this.ignoreState){n({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",t,(r,a)=>{r?o(r):n(a)})}})}sendTo(t,n,o){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendTo",t,n,o,a=>{r(a)})}})}extendObject(t,n){return n?(n=JSON.parse(JSON.stringify(n)),delete n.from,delete n.user,delete n.ts,this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("extendObject",t,n,a=>{a?r(a):o()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(t){this.onLogHandlers.includes(t)||this.onLogHandlers.push(t)}unregisterLogHandler(t){const n=this.onLogHandlers.indexOf(t);n!==-1&&this.onLogHandlers.splice(n,1)}registerConnectionHandler(t){this.onConnectionHandlers.includes(t)||this.onConnectionHandlers.push(t)}unregisterConnectionHandler(t){const n=this.onConnectionHandlers.indexOf(t);n!==-1&&this.onConnectionHandlers.splice(n,1)}registerCmdStdoutHandler(t){this.onCmdStdoutHandler=t}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(t){this.onCmdStderrHandler=t}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(t){this.onCmdExitHandler=t}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(t,n){return this.request({cacheKey:`enums_${t||"all"}`,forceUpdate:n,commandTimeout:!1,executor:(o,r)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${t||""}`,endkey:t?`enum.${t}.香`:"enum.香"},(a,s)=>{if(a)r(a);else{const i={};if(s)for(let l=0;l{o=o||"",r=r||"香",this._socket.emit("getObjectView",t,n,{startkey:o,endkey:r},(i,l)=>{if(i)s(i);else{const d={};if(l&&l.rows)for(let u=0;u{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(o,r)=>{var a;o?n(o):t((a=r.rows)==null?void 0:a.map(s=>s.value).filter(s=>!!s))})}})}readDir(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("readDir",t,n,(a,s)=>{a?r(a):o(s)})}})}readFile(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit(o?"readFile64":"readFile",t,n,(s,i,l)=>{s?a(s):r({file:i,mimeType:l})})}})}writeFile64(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{if(typeof o=="string")this._socket.emit("writeFile",t,n,o,s=>{s?a(s):r()});else{const s=btoa(new Uint8Array(o).reduce((i,l)=>i+String.fromCharCode(l),""));this._socket.emit("writeFile64",t,n,s,i=>{i?a(i):r()})}}})}deleteFile(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("deleteFile",t,n,a=>{a?r(a):o()})}})}deleteFolder(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("deleteFolder",t,n,a=>{a?r(a):o()})}})}rename(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("rename",t,n,o,s=>{s?a(s):r()})}})}renameFile(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("renameFile",t,n,o,s=>{s?a(s):r()})}})}cmdExec(t,n,o,r){return this.request({commandTimeout:r,executor:(a,s,i)=>{t=Ca(t),this._socket.emit("cmdExec",t,o,n,l=>{i.elapsed||(i.clearTimeout(),l?s(l):a())})}})}getSystemConfig(t){return this.request({cacheKey:"systemConfig",forceUpdate:t,commandTimeout:!1,executor:async n=>{let o=await this.getObject("system.config");o??(o={}),o.common??(o.common={}),o.native??(o.native={}),n(o)}})}getCompactSystemConfig(t){return this.request({cacheKey:"systemConfigCommon",forceUpdate:t,commandTimeout:!1,requireAdmin:!0,executor:(n,o)=>{this._socket.emit("getCompactSystemConfig",(r,a)=>{r?o(r):(a??(a={}),a.common??(a.common={}),a.native??(a.native={}),n(a))})}})}getForeignStates(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignStates",t||"*",(r,a)=>{r?o(r):n(a??{})})}})}getForeignObjects(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("getForeignObjects",t||"*",n,(a,s)=>{a?r(a):o(s)})}})}setSystemConfig(t){return this.setObject("system.config",t)}getRawSocket(){return this._socket}getHistory(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("getHistory",t,n,(a,s)=>{a?r(a):o(s)})}})}getHistoryEx(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("getHistory",t,n,(a,s,i,l)=>{a?r(a):o({values:s,sessionId:l,stepIgnore:i})})}})}getIpAddresses(t,n){return t=Ca(t),this.request({cacheKey:`IPs_${t}`,forceUpdate:n,commandTimeout:!1,executor:async o=>{const r=await this.getObject(t);o((r==null?void 0:r.common.address)??[])}})}getVersion(t){return this.request({cacheKey:"version",forceUpdate:t,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getVersion",(r,a,s)=>{r&&!a&&typeof r=="string"&&r.match(/\d+\.\d+\.\d+/)?n({version:r,serverName:"socketio"}):r?o(r):n({version:a,serverName:s})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getAdapterName",(o,r)=>{o?n(o):t(r)})}})}fileExists(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("fileExists",t,n,(a,s)=>{a?r(a):o(!!s)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:t=>{this._socket.emit("authEnabled",(n,o)=>{t(o)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async t=>{var o;const n=await this.getObject("system.meta.uuid");t((o=n==null?void 0:n.native)==null?void 0:o.uuid)}})}checkFeatureSupported(t,n){return this.request({cacheKey:`supportedFeatures_${t}`,forceUpdate:n,commandTimeout:!1,executor:(o,r)=>{this._socket.emit("checkFeatureSupported",t,(a,s)=>{a?r(a):o(s)})}})}getAdapterInstances(t,n){return typeof t=="boolean"&&(n=t,t=""),t=t||"",this.request({cacheKey:`instances_${t}`,forceUpdate:n,commandTimeout:!1,executor:async o=>{const r=t?`system.adapter.${t}.`:"system.adapter.",a=`${r}香`,s=await this.getObjectViewSystem("instance",r,a),i=Object.values(s);o(t?i.filter(l=>l.common.name===t):i)}})}getAdapters(t,n){return typeof t=="boolean"&&(n=t,t=""),t=t||"",this.request({cacheKey:`adapter_${t}`,forceUpdate:n,commandTimeout:!1,executor:async o=>{const r=await this.getObjectViewSystem("adapter",`system.adapter.${t||""}`,`system.adapter.${t||"香"}`),a=Object.values(r);o(t?a.filter(s=>s.common.name===t):a)}})}getGroups(t){return this.request({cacheKey:"groups",forceUpdate:t,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(r,a)=>{r?o(r):n(Eb(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("logout",o=>{o?n(o):t(null)})}})}subscribeOnInstance(t,n,o,r){return this.request({commandTimeout:!1,executor:(a,s)=>{this._socket.emit("clientSubscribe",t,n,o,(i,l)=>{i?s(i):l&&(l.error?s(l.error):(t.startsWith("system.adapter.")||(t=`system.adapter.${t}`),this._instanceSubscriptions[t]=this._instanceSubscriptions[t]||[],this._instanceSubscriptions[t].find(d=>d.messageType===n&&d.callback===r)||this._instanceSubscriptions[t].push({messageType:n,callback:r}),a(l)))})}})}unsubscribeFromInstance(t,n,o){var s;t.startsWith("system.adapter.")||(t=`system.adapter.${t}`);let r;const a=[];do{r=!1;const i=(s=this._instanceSubscriptions[t])==null?void 0:s.findIndex(l=>(!n||l.messageType===n)&&(!o||l.callback===o));if(i!=null&&i!==-1){r=!0;const l=this._instanceSubscriptions[t][i].messageType;this._instanceSubscriptions[t].splice(i,1),this._instanceSubscriptions[t].length||delete this._instanceSubscriptions[t],this._instanceSubscriptions[t]&&this._instanceSubscriptions[t].find(u=>u.messageType===l)||a.push(this.request({commandTimeout:!1,executor:(u,c)=>{this._socket.emit("clientUnsubscribe",t,n,(h,f)=>h?c(h):u(f))}}))}}while(r&&(!o||!n));return a.length?Promise.all(a).then(i=>!!i.find(l=>l)):Promise.resolve(!1)}log(t,n){return t?this.request({commandTimeout:!1,executor:o=>(this._socket.emit("log",t,n),o(null))}):Promise.resolve(null)}setStateToIgnore(t){this.ignoreState=t}}function jU(e,t){if(!t)return;let n;if(t.length<700&&(t.indexOf("/")!==-1||t.indexOf("\\")!==-1))if(e.toLowerCase().includes("private"))n="private";else if(t.toLowerCase().includes("private"))n="private";else if(e.toLowerCase().includes("public"))n="public";else if(t.toLowerCase().includes("public"))n="public";else if(e.toLowerCase().includes("chain"))n="chained";else if(t.toLowerCase().includes("chain"))n="chained";else return;else n=t.substring(0,26)==="-----BEGIN RSA PRIVATE KEY"||t.substring(0,22)==="-----BEGIN PRIVATE KEY"?"private":"public",n==="public"&&t.split("-----END CERTIFICATE-----").filter(r=>r.replace(/\r\n|\r|\n/,"").trim()).length>1&&(n="chained");return{name:e,type:n}}function zU(e){var o,r;const t=[{name:"[IPv4] 0.0.0.0 - Listen on all IPs",address:"0.0.0.0",family:"ipv4"}],n=[{name:"[IPv6] :: - Listen on all IPs",address:"::",family:"ipv6"}];if((r=(o=e.native)==null?void 0:o.hardware)!=null&&r.networkInterfaces){for(const[a,s]of Object.entries(e.native.hardware.networkInterfaces))if(s)for(const i of s)i.family!=="IPv6"?t.push({name:`[${i.family}] ${i.address} - ${a}`,address:i.address,family:"ipv4"}):n.push({name:`[${i.family}] ${i.address} - ${a}`,address:i.address,family:"ipv6"})}return{IPs4:t,IPs6:n}}class RU extends Vr{constructor(t){super(t)}request(t){return super.request({requireAdmin:!0,...t})}getCertificates(t){return this.request({cacheKey:"cert",forceUpdate:t,commandTimeout:!1,executor:async n=>{var r;const o=await this.getObject("system.certificates");(r=o==null?void 0:o.native)!=null&&r.certificates?n(Object.entries(o.native.certificates).map(([a,s])=>jU(a,s)).filter(a=>!!a)):n([])}})}getLogs(t,n=200){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendToHost",t,"getLogs",n||200,r=>{o(r)})}})}upgradeAdapterWithWebserver(t,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendToHost",t,"upgradeAdapterWithWebserver",n,r=>{o(r)})}})}upgradeController(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("sendToHost",t,"upgradeController",{version:n,adminInstance:o},s=>{const i=s;i.error?a(i.error):r(i.result)})}})}updateLicenses(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("updateLicenses",t,n,(a,s)=>{a?r(a):o(s)})}})}upgradeOsPackages(t,n,o){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendToHost",t,"upgradeOsPackages",{packages:n,restart:!!o},a=>{r(a)})}})}getLogsFiles(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readLogs",t,(r,a)=>{r&&o(r),n(a)})}})}delLogs(t){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("sendToHost",t,"delLogs",null,r=>{r&&o(r),n()})}})}deleteFile(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("deleteFile",t,n,a=>{a&&r(a),o()})}})}deleteFolder(t,n){return this.request({commandTimeout:!1,executor:(o,r)=>{this._socket.emit("deleteFolder",t,n,a=>{a&&r(a),o()})}})}rename(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("rename",t,n,o,s=>{s&&a(s),r()})}})}renameFile(t,n,o){return this.request({commandTimeout:!1,executor:(r,a)=>{this._socket.emit("renameFile",t,n,o,s=>{s&&a(s),r()})}})}getHosts(t){return this.request({cacheKey:"hosts",forceUpdate:t,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","host",{startkey:"system.host.",endkey:"system.host.香"},(r,a)=>{r?o(r):n(Eb(a))})}})}getUsers(t){return this.request({cacheKey:"users",forceUpdate:t,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","user",{startkey:"system.user.",endkey:"system.user.香"},(r,a)=>{r?o(r):n(Eb(a))})}})}renameGroup(t,n,o){return this.request({commandTimeout:!1,executor:async r=>{const a=await this.getGroups(!0),s=a.filter(l=>l._id.startsWith(`${t}.`));for(const l of s){const d=l._id,u=n+l._id.substring(t.length);l._id=u,await this.setObject(u,l),await this.delObject(d)}const i=a.find(l=>l._id===t);if(i){const l=i._id;i._id=n,o!==void 0&&(i.common??(i.common={}),i.common.name=o),await this.setObject(n,i),await this.delObject(l)}r()}})}getHostInfo(t,n,o){return t=Ca(t),this.request({cacheKey:`hostInfo_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("sendToHost",t,"getHostInfo",null,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getHostInfo"'):i?r(i):a('Cannot read "getHostInfo"'))})}})}getHostInfoShort(t,n,o){return t=Ca(t),this.request({cacheKey:`hostInfoShort_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("sendToHost",t,"getHostInfoShort",null,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getHostInfoShort"'):i?r(i):a('Cannot read "getHostInfoShort"'))})}})}getRepository(t,n,o,r){return this.request({cacheKey:`repository_${t}`,forceUpdate:o,commandTimeout:r,executor:(a,s,i)=>{this._socket.emit("sendToHost",t,"getRepository",n,l=>{i.elapsed||(i.clearTimeout(),l===Hn.PERMISSION_ERROR?s('May not read "getRepository"'):l?a(l):s('Cannot read "getRepository"'))})}})}getInstalled(t,n,o){return t=Ca(t),this.request({cacheKey:`installed_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("sendToHost",t,"getInstalled",null,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getInstalled"'):i?r(i):a('Cannot read "getInstalled"'))})}})}cmdExec(t,n,o,r){return this.request({commandTimeout:r,executor:(a,s,i)=>{t=Ca(t),this._socket.emit("cmdExec",t,o,n,l=>{i.elapsed||(i.clearTimeout(),l&&s(l),a())})}})}readBaseSettings(t){return t=zd(t),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(n,o,r)=>{this._socket.emit("sendToHost",t,"readBaseSettings",null,a=>{r.elapsed||(r.clearTimeout(),a===Hn.PERMISSION_ERROR?o('May not read "BaseSettings"'):a?a.error?o(new Error(a.error)):n(a):o('Cannot read "BaseSettings"'))})}})}writeBaseSettings(t,n){return t=zd(t),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(o,r,a)=>{this._socket.emit("sendToHost",t,"writeBaseSettings",n,s=>{a.elapsed||(a.clearTimeout(),s===Hn.PERMISSION_ERROR?r('May not write "BaseSettings"'):s?o(s):r('Cannot write "BaseSettings"'))})}})}restartController(t){return t=zd(t),this.request({executor:(n,o,r)=>{this._socket.emit("sendToHost",t,"restartController",null,()=>{r.elapsed||(r.clearTimeout(),n(!0))})}})}getDiagData(t,n){return t=zd(t),this.request({executor:(o,r,a)=>{this._socket.emit("sendToHost",t,"getDiagData",n,s=>{a.elapsed||(a.clearTimeout(),o(s||null))})}})}changePassword(t,n){return this.request({executor:(o,r,a)=>{this._socket.emit("changePassword",t,n,s=>{a.elapsed||(a.clearTimeout(),s&&r(s),o())})}})}getIpAddresses(t,n){return t=Ca(t),this.request({cacheKey:`IPs_${t}`,forceUpdate:n,commandTimeout:!1,executor:async o=>{const r=await this.getObject(t);o((r==null?void 0:r.common.address)??[])}})}getHostByIp(t,n){return t=zd(t),this.request({cacheKey:`rIPs_${t}`,forceUpdate:n,executor:(o,r,a)=>{this._socket.emit("getHostByIp",t,(s,i)=>{if(a.elapsed)return;a.clearTimeout();const{IPs4:l,IPs6:d}=zU(i);o([...l,...d])})}})}encrypt(t){return this.request({executor:(n,o,r)=>{this._socket.emit("encrypt",t,(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}decrypt(t){return this.request({executor:(n,o,r)=>{this._socket.emit("decrypt",t,(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}chmodFile(t,n,o){return this.request({executor:(r,a,s)=>{this._socket.emit("chmodFile",t,n,o,(i,l)=>{s.elapsed||(s.clearTimeout(),i&&a(i),r(l))})}})}chownFile(t,n,o){return this.request({executor:(r,a,s)=>{this._socket.emit("chownFile",t,n,o,(i,l)=>{s.elapsed||(s.clearTimeout(),i&&a(i),r(l))})}})}getNotifications(t,n){return this.request({executor:(o,r,a)=>{this._socket.emit("sendToHost",t,"getNotifications",{category:n},s=>{a.elapsed||(a.clearTimeout(),o(s))})}})}clearNotifications(t,n){return this.request({executor:(o,r,a)=>{this._socket.emit("sendToHost",t,"clearNotifications",{category:n},s=>{a.elapsed||(a.clearTimeout(),o(s))})}})}getIsEasyModeStrict(){return this.request({executor:(t,n,o)=>{this._socket.emit("getIsEasyModeStrict",(r,a)=>{o.elapsed||(o.clearTimeout(),r&&n(r),t(!!a))})}})}getEasyMode(){return this.request({executor:(t,n,o)=>{this._socket.emit("getEasyMode",(r,a)=>{o.elapsed||(o.clearTimeout(),r?n(new Error(r)):t(a))})}})}getRatings(t){return this.request({executor:(n,o,r)=>{this._socket.emit("getRatings",!!t,(a,s)=>{r.elapsed||(r.clearTimeout(),a?o(new Error(a)):n(s))})}})}getCurrentSession(t){const n=new AbortController;return this.request({commandTimeout:t||5e3,onTimeout:()=>{n.abort()},executor:async(o,r,a)=>{try{const s=await fetch("./session",{signal:n.signal});if(a.elapsed)return;a.clearTimeout(),o(s.json())}catch(s){r(`getCurrentSession: ${s}`)}}})}getCurrentInstance(){return this.request({cacheKey:"currentInstance",executor:(t,n,o)=>{this._socket.emit("getCurrentInstance",(r,a)=>{o.elapsed||(o.clearTimeout(),r&&n(r),t(a))})}})}getAdapterInstances(t,n){let o;return typeof t=="boolean"?(n=t,o=""):o=t||"",this.request({cacheKey:`instances_${o}`,forceUpdate:n,executor:(r,a,s)=>{this._socket.emit("getAdapterInstances",o,(i,l)=>{s.elapsed||(s.clearTimeout(),i&&a(i),r(l))})}})}getAdapters(t,n){let o;return typeof t=="boolean"?(n=t,o=""):o=t||"",this.request({cacheKey:`adapter_${o}`,forceUpdate:n,executor:(r,a,s)=>{this._socket.emit("getAdapters",o,(i,l)=>{s.elapsed||(s.clearTimeout(),i&&a(i),r(l))})}})}getCompactAdapters(t){return this.request({cacheKey:"compactAdapters",forceUpdate:t,executor:(n,o,r)=>{this._socket.emit("getCompactAdapters",(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}getAdaptersResetCache(t){t=t??"",this.resetCache(`adapter_${t}`),this.resetCache("compactAdapters")}getCompactInstances(t){return this.request({cacheKey:"compactInstances",forceUpdate:t,executor:(n,o,r)=>{this._socket.emit("getCompactInstances",(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}getAdapterInstancesResetCache(t){t=t??"",this.resetCache(`instances_${t}`),this.resetCache("compactInstances")}getCompactInstalled(t,n,o){return t=Ca(t),this.request({cacheKey:`installedCompact_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("getCompactInstalled",t,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getCompactInstalled"'):i?r(i):a('Cannot read "getCompactInstalled"'))})}})}getInstalledResetCache(t){t?(this.resetCache(`installedCompact_${t}`),this.resetCache(`installed_${t}`)):(this.resetCache("installedCompact_",!0),this.resetCache("installed_",!0))}getCompactRepository(t,n,o){return t=Ca(t),this.request({cacheKey:`repositoryCompact_${t}`,forceUpdate:n,commandTimeout:o,executor:(r,a,s)=>{this._socket.emit("getCompactRepository",t,i=>{s.elapsed||(s.clearTimeout(),i===Hn.PERMISSION_ERROR?a('May not read "getCompactRepository"'):i?r(i):a('Cannot read "getCompactRepository"'))})}})}getRepositoryResetCache(t){t?(this.resetCache(`repositoryCompact_${t}`),this.resetCache(`repository_${t}`)):(this.resetCache("repositoryCompact_",!0),this.resetCache("repository_",!0))}getCompactHosts(t){return this.request({cacheKey:"hostsCompact",forceUpdate:t,executor:(n,o,r)=>{this._socket.emit("getCompactHosts",(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}getCompactSystemRepositories(t){return this.request({cacheKey:"repositoriesCompact",forceUpdate:t,executor:(n,o,r)=>{this._socket.emit("getCompactSystemRepositories",(a,s)=>{r.elapsed||(r.clearTimeout(),a&&o(a),n(s))})}})}}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$i="8.42.0",pt=globalThis;function n_(e,t,n){const o=pt,r=o.__SENTRY__=o.__SENTRY__||{},a=r[$i]=r[$i]||{};return a[e]||(a[e]=t())}const Ji=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,IU="Sentry Logger ",Tb=["debug","info","warn","error","log","assert","trace"],wm={};function Yi(e){if(!("console"in pt))return e();const t=pt.console,n={},o=Object.keys(wm);o.forEach(r=>{const a=wm[r];n[r]=t[r],t[r]=a});try{return e()}finally{o.forEach(r=>{t[r]=n[r]})}}function LU(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Ji?Tb.forEach(n=>{t[n]=(...o)=>{e&&Yi(()=>{pt.console[n](`${IU}[${n}]:`,...o)})}}):Tb.forEach(n=>{t[n]=()=>{}}),t}const Me=n_("logger",LU),k5=50,Mi="?",$C=/\(error: (.*)\)/,kC=/captureMessage|captureException/;function E5(...e){const t=e.sort((n,o)=>n[0]-o[0]).map(n=>n[1]);return(n,o=0,r=0)=>{const a=[],s=n.split(` +`);for(let i=o;i1024)continue;const d=$C.test(l)?l.replace($C,"$1"):l;if(!d.match(/\S*Error: /)){for(const u of t){const c=u(d);if(c){a.push(c);break}}if(a.length>=k5+r)break}}return PU(a.slice(r))}}function FU(e){return Array.isArray(e)?E5(...e):e}function PU(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Eh(t).function||"")&&t.pop(),t.reverse(),kC.test(Eh(t).function||"")&&(t.pop(),kC.test(Eh(t).function||"")&&t.pop()),t.slice(0,k5).map(n=>({...n,filename:n.filename||Eh(t).filename,function:n.function||Mi}))}function Eh(e){return e[e.length-1]||{}}const Mv="";function Bs(e){try{return!e||typeof e!="function"?Mv:e.name||Mv}catch{return Mv}}function EC(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(o=>{o.stacktrace.frames&&n.push(...o.stacktrace.frames)}),n}catch{return}}}const Cf={},TC={};function Ki(e,t){Cf[e]=Cf[e]||[],Cf[e].push(t)}function Zi(e,t){if(!TC[e]){TC[e]=!0;try{t()}catch(n){Ji&&Me.error(`Error while instrumenting ${e}`,n)}}}function Or(e,t){const n=e&&Cf[e];if(n)for(const o of n)try{o(t)}catch(r){Ji&&Me.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${Bs(o)} -Error:`,r)}}let Th=null;function PU(e){const t="error";Ki(t,e),Zi(t,BU)}function BU(){Th=pt.onerror,pt.onerror=function(e,t,n,o,r){return Or("error",{column:o,error:r,line:n,msg:e,url:t}),Th&&!Th.__SENTRY_LOADER__?Th.apply(this,arguments):!1},pt.onerror.__SENTRY_INSTRUMENTED__=!0}let Oh=null;function HU(e){const t="unhandledrejection";Ki(t,e),Zi(t,UU)}function UU(){Oh=pt.onunhandledrejection,pt.onunhandledrejection=function(e){return Or("unhandledrejection",e),Oh&&!Oh.__SENTRY_LOADER__?Oh.apply(this,arguments):!0},pt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function o_(){return sw(pt),pt}function sw(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||$i,t[$i]=t[$i]||{}}const k5=Object.prototype.toString;function iw(e){switch(k5.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ni(e,Error)}}function id(e,t){return k5.call(e)===`[object ${t}]`}function E5(e){return id(e,"ErrorEvent")}function TC(e){return id(e,"DOMError")}function WU(e){return id(e,"DOMException")}function Ia(e){return id(e,"String")}function lw(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function cw(e){return e===null||lw(e)||typeof e!="object"&&typeof e!="function"}function Bc(e){return id(e,"Object")}function r_(e){return typeof Event<"u"&&Ni(e,Event)}function VU(e){return typeof Element<"u"&&Ni(e,Element)}function GU(e){return id(e,"RegExp")}function a_(e){return!!(e&&e.then&&typeof e.then=="function")}function qU(e){return Bc(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ni(e,t){try{return e instanceof t}catch{return!1}}function T5(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const dw=pt,XU=80;function O5(e,t={}){if(!e)return"";try{let n=e;const o=5,r=[];let a=0,s=0;const i=" > ",l=i.length;let d;const u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||XU;for(;n&&a++1&&s+r.length*l+d.length>=c));)r.push(d),s+=d.length,n=n.parentNode;return r.reverse().join(i)}catch{return""}}function JU(e,t){const n=e,o=[];if(!n||!n.tagName)return"";if(dw.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const r=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(r&&r.length)r.forEach(s=>{o.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&o.push(`#${n.id}`);const s=n.className;if(s&&Ia(s)){const i=s.split(/\s+/);for(const l of i)o.push(`.${l}`)}}const a=["aria-label","type","name","title","alt"];for(const s of a){const i=n.getAttribute(s);i&&o.push(`[${s}="${i}"]`)}return o.join("")}function YU(){try{return dw.document.location.href}catch{return""}}function KU(e){if(!dw.HTMLElement)return null;let t=e;const n=5;for(let o=0;oZU(e,o,n))}function Oo(e,t,n){if(!(t in e))return;const o=e[t],r=n(o);typeof r=="function"&&D5(r,o);try{e[t]=r}catch{Ji&&Me.log(`Failed to replace method "${t}" in object`,e)}}function ji(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ji&&Me.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function D5(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,ji(e,"__sentry_original__",t)}catch{}}function uw(e){return e.__sentry_original__}function A5(e){if(iw(e))return{message:e.message,name:e.name,stack:e.stack,...AC(e)};if(r_(e)){const t={type:e.type,target:DC(e.target),currentTarget:DC(e.currentTarget),...AC(e)};return typeof CustomEvent<"u"&&Ni(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function DC(e){try{return VU(e)?O5(e):Object.prototype.toString.call(e)}catch{return""}}function AC(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function QU(e,t=40){const n=Object.keys(A5(e));n.sort();const o=n[0];if(!o)return"[object has no keys]";if(o.length>=t)return vc(o,t);for(let r=n.length;r>0;r--){const a=n.slice(0,r).join(", ");if(!(a.length>t))return r===n.length?a:vc(a,t)}return""}function ar(e){return Tb(e,new Map)}function Tb(e,t){if(eW(e)){const n=t.get(e);if(n!==void 0)return n;const o={};t.set(e,o);for(const r of Object.getOwnPropertyNames(e))typeof e[r]<"u"&&(o[r]=Tb(e[r],t));return o}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const o=[];return t.set(e,o),e.forEach(r=>{o.push(Tb(r,t))}),o}return e}function eW(e){if(!Bc(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const M5=1e3;function Rp(){return Date.now()/M5}function tW(){const{performance:e}=pt;if(!e||!e.now)return Rp;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/M5}const La=tW();(()=>{const{performance:e}=pt;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),o=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,a=rMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const o=new Uint8Array(1);return t.getRandomValues(o),o[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,o=>(o^(n()&15)>>o/4).toString(16))}function N5(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ls(e){const{message:t,event_id:n}=e;if(t)return t;const o=N5(e);return o?o.type&&o.value?`${o.type}: ${o.value}`:o.type||o.value||n||"":n||""}function Ob(e,t,n){const o=e.exception=e.exception||{},r=o.values=o.values||[],a=r[0]=r[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function cp(e,t){const n=N5(e);if(!n)return;const o={type:"generic",handled:!0},r=n.mechanism;if(n.mechanism={...o,...r,...t},t&&"data"in t){const a={...r&&r.data,...t.data};n.mechanism.data=a}}function MC(e){if(nW(e))return!0;try{ji(e,"__sentry_captured__",!0)}catch{}return!1}function nW(e){try{return e.__sentry_captured__}catch{}}var $a;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const o=2;e[e.REJECTED=o]="REJECTED"})($a||($a={}));function zi(e){return new Qo(t=>{t(e)})}function Sm(e){return new Qo((t,n)=>{n(e)})}class Qo{constructor(t){Qo.prototype.__init.call(this),Qo.prototype.__init2.call(this),Qo.prototype.__init3.call(this),Qo.prototype.__init4.call(this),this._state=$a.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Qo((o,r)=>{this._handlers.push([!1,a=>{if(!t)o(a);else try{o(t(a))}catch(s){r(s)}},a=>{if(!n)r(a);else try{o(n(a))}catch(s){r(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Qo((n,o)=>{let r,a;return this.then(s=>{a=!1,r=s,t&&t()},s=>{a=!0,r=s,t&&t()}).then(()=>{if(a){o(r);return}n(r)})})}__init(){this._resolve=t=>{this._setResult($a.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult($a.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===$a.PENDING){if(a_(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===$a.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===$a.RESOLVED&&n[1](this._value),this._state===$a.REJECTED&&n[2](this._value),n[0]=!0)})}}}function oW(e){const t=La(),n={sid:ir(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>aW(n)};return e&&Hc(n,e),n}function Hc(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||La(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ir()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function rW(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Hc(e,n)}function aW(e){return ar({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function NC(){return ir()}function jC(){return ir().substring(16)}function i_(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const o={...e};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=i_(o[r],t[r],n-1));return o}const Db="_sentrySpan";function zC(e,t){t?ji(e,Db,t):delete e[Db]}function RC(e){return e[Db]}const sW=100;class pw{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:NC(),spanId:jC()}}clone(){const t=new pw;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,zC(t,RC(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Hc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[o,r]=n instanceof Ri?[n.getScopeData(),n.getRequestSession()]:Bc(n)?[t,t.requestSession]:[],{tags:a,extra:s,user:i,contexts:l,level:d,fingerprint:u=[],propagationContext:c}=o||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},i&&Object.keys(i).length&&(this._user=i),d&&(this._level=d),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,zC(this,void 0),this._attachments=[],this.setPropagationContext({traceId:NC()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const o=typeof n=="number"?n:sW;if(o<=0)return this;const r={timestamp:Rp(),...t},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>o?a.slice(-o):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,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:RC(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=i_(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:jC(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const o=n&&n.event_id?n.event_id:ir();if(!this._client)return Me.warn("No client configured on scope - will not capture exception!"),o;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...n,event_id:o},this),o}captureMessage(t,n,o){const r=o&&o.event_id?o.event_id:ir();if(!this._client)return Me.warn("No client configured on scope - will not capture message!"),r;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...o,event_id:r},this),r}captureEvent(t,n){const o=n&&n.event_id?n.event_id:ir();return this._client?(this._client.captureEvent(t,{...n,event_id:o},this),o):(Me.warn("No client configured on scope - will not capture event!"),o)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Ri=pw;function iW(){return n_("defaultCurrentScope",()=>new Ri)}function lW(){return n_("defaultIsolationScope",()=>new Ri)}class cW{constructor(t,n){let o;t?o=t:o=new Ri;let r;n?r=n:r=new Ri,this._stack=[{scope:o}],this._isolationScope=r}withScope(t){const n=this._pushScope();let o;try{o=t(n)}catch(r){throw this._popScope(),r}return a_(o)?o.then(r=>(this._popScope(),r),r=>{throw this._popScope(),r}):(this._popScope(),o)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Uc(){const e=o_(),t=sw(e);return t.stack=t.stack||new cW(iW(),lW())}function dW(e){return Uc().withScope(e)}function uW(e,t){const n=Uc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function IC(e){return Uc().withScope(()=>e(Uc().getIsolationScope()))}function pW(){return{withIsolationScope:IC,withScope:dW,withSetScope:uW,withSetIsolationScope:(e,t)=>IC(t),getCurrentScope:()=>Uc().getScope(),getIsolationScope:()=>Uc().getIsolationScope()}}function hw(e){const t=sw(e);return t.acs?t.acs:pW()}function ua(){const e=o_();return hw(e).getCurrentScope()}function Ip(){const e=o_();return hw(e).getIsolationScope()}function hW(){return n_("globalScope",()=>new Ri)}function fW(...e){const t=o_(),n=hw(t);if(e.length===2){const[o,r]=e;return o?n.withSetScope(o,r):n.withScope(r)}return n.withScope(e[0])}function Xn(){return ua().getClient()}function mW(e){const t=e.getPropagationContext(),{traceId:n,spanId:o,parentSpanId:r}=t;return ar({trace_id:n,span_id:o,parent_span_id:r})}const gW="_sentryMetrics";function _W(e){const t=e[gW];if(!t)return;const n={};for(const[,[o,r]]of t)(n[o]||(n[o]=[])).push(ar(r));return n}const vW="sentry.source",yW="sentry.sample_rate",bW="sentry.op",wW="sentry.origin",SW=0,xW=1,CW="sentry-",$W=/^sentry-/;function kW(e){const t=EW(e);if(!t)return;const n=Object.entries(t).reduce((o,[r,a])=>{if(r.match($W)){const s=r.slice(CW.length);o[s]=a}return o},{});if(Object.keys(n).length>0)return n}function EW(e){if(!(!e||!Ia(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const o=LC(n);return Object.entries(o).forEach(([r,a])=>{t[r]=a}),t},{}):LC(e)}function LC(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,o])=>(n&&o&&(t[n]=o),t),{})}const TW=1;let FC=!1;function OW(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:o}=fw(e);return ar({parent_span_id:o,span_id:t,trace_id:n})}function PC(e){return typeof e=="number"?BC(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?BC(e.getTime()):La()}function BC(e){return e>9999999999?e/1e3:e}function fw(e){if(AW(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(DW(e)){const{attributes:o,startTime:r,name:a,endTime:s,parentSpanId:i,status:l}=e;return ar({span_id:t,trace_id:n,data:o,description:a,parent_span_id:i,start_timestamp:PC(r),timestamp:PC(s)||void 0,status:NW(l),op:o[bW],origin:o[wW],_metrics_summary:_W(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function DW(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function AW(e){return typeof e.getSpanJSON=="function"}function MW(e){const{traceFlags:t}=e.spanContext();return t===TW}function NW(e){if(!(!e||e.code===SW))return e.code===xW?"ok":e.message||"unknown_error"}const jW="_sentryRootSpan";function j5(e){return e[jW]||e}function zW(){FC||(Yi(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),FC=!0)}function RW(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Xn(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const mw="production",IW="_frozenDsc";function z5(e,t){const n=t.getOptions(),{publicKey:o}=t.getDsn()||{},r=ar({environment:n.environment||mw,release:n.release,public_key:o,trace_id:e});return t.emit("createDsc",r),r}function LW(e,t){const n=t.getPropagationContext();return n.dsc||z5(n.traceId,e)}function FW(e){const t=Xn();if(!t)return{};const n=j5(e),o=n[IW];if(o)return o;const r=n.spanContext().traceState,a=r&&r.get("sentry.dsc"),s=a&&kW(a);if(s)return s;const i=z5(e.spanContext().traceId,t),l=fw(n),d=l.data||{},u=d[yW];u!=null&&(i.sample_rate=`${u}`);const c=d[vW],h=l.description;return c!=="url"&&h&&(i.transaction=h),RW()&&(i.sampled=String(MW(n))),t.emit("createDsc",i,n),i}function PW(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){Et&&Me.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const BW=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function HW(e){return e==="http"||e==="https"}function l_(e,t=!1){const{host:n,path:o,pass:r,port:a,projectId:s,protocol:i,publicKey:l}=e;return`${i}://${l}${t&&r?`:${r}`:""}@${n}${a?`:${a}`:""}/${o&&`${o}/`}${s}`}function UW(e){const t=BW.exec(e);if(!t){Yi(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,o,r="",a="",s="",i=""]=t.slice(1);let l="",d=i;const u=d.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),d=u.pop()),d){const c=d.match(/^\d+/);c&&(d=c[0])}return R5({host:a,pass:r,path:l,projectId:d,port:s,protocol:n,publicKey:o})}function R5(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function WW(e){if(!Ji)return!0;const{port:t,projectId:n,protocol:o}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Me.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?HW(o)?t&&isNaN(parseInt(t,10))?(Me.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Me.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(Me.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function VW(e){const t=typeof e=="string"?UW(e):R5(e);if(!(!t||!WW(t)))return t}function GW(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(r){if(e)return t.has(r)?!0:(t.add(r),!1);for(let a=0;an?I5(e,t-1,n):o}function Ab(e,t,n=1/0,o=1/0,r=GW()){const[a,s]=r;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const i=qW(e,t);if(!i.startsWith("[object "))return i;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return i.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const f=d.toJSON();return Ab("",f,l-1,o,r)}catch{}const u=Array.isArray(t)?[]:{};let c=0;const h=A5(t);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(c>=o){u[f]="[MaxProperties ~]";break}const g=h[f];u[f]=Ab(f,g,l-1,o,r),c++}return s(t),u}function qW(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(T5(t))return"[VueViewModel]";if(qU(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Bs(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=XW(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function XW(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function JW(e){return~-encodeURI(e).split(/%..|./).length}function YW(e){return JW(JSON.stringify(e))}function Lp(e,t=[]){return[e,t]}function KW(e,t){const[n,o]=e;return[n,[...o,t]]}function HC(e,t){const n=e[1];for(const o of n){const r=o[0].type;if(t(o,r))return!0}return!1}function Mb(e){return pt.__SENTRY__&&pt.__SENTRY__.encodePolyfill?pt.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function ZW(e){const[t,n]=e;let o=JSON.stringify(t);function r(a){typeof o=="string"?o=typeof a=="string"?o+a:[Mb(o),a]:o.push(typeof a=="string"?Mb(a):a)}for(const a of n){const[s,i]=a;if(r(` +Error:`,r)}}let Th=null;function BU(e){const t="error";Ki(t,e),Zi(t,HU)}function HU(){Th=pt.onerror,pt.onerror=function(e,t,n,o,r){return Or("error",{column:o,error:r,line:n,msg:e,url:t}),Th&&!Th.__SENTRY_LOADER__?Th.apply(this,arguments):!1},pt.onerror.__SENTRY_INSTRUMENTED__=!0}let Oh=null;function UU(e){const t="unhandledrejection";Ki(t,e),Zi(t,WU)}function WU(){Oh=pt.onunhandledrejection,pt.onunhandledrejection=function(e){return Or("unhandledrejection",e),Oh&&!Oh.__SENTRY_LOADER__?Oh.apply(this,arguments):!0},pt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function o_(){return iw(pt),pt}function iw(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||$i,t[$i]=t[$i]||{}}const T5=Object.prototype.toString;function lw(e){switch(T5.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ni(e,Error)}}function id(e,t){return T5.call(e)===`[object ${t}]`}function O5(e){return id(e,"ErrorEvent")}function OC(e){return id(e,"DOMError")}function VU(e){return id(e,"DOMException")}function Ia(e){return id(e,"String")}function cw(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function dw(e){return e===null||cw(e)||typeof e!="object"&&typeof e!="function"}function Bc(e){return id(e,"Object")}function r_(e){return typeof Event<"u"&&Ni(e,Event)}function GU(e){return typeof Element<"u"&&Ni(e,Element)}function qU(e){return id(e,"RegExp")}function a_(e){return!!(e&&e.then&&typeof e.then=="function")}function XU(e){return Bc(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ni(e,t){try{return e instanceof t}catch{return!1}}function D5(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const uw=pt,JU=80;function A5(e,t={}){if(!e)return"";try{let n=e;const o=5,r=[];let a=0,s=0;const i=" > ",l=i.length;let d;const u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||JU;for(;n&&a++1&&s+r.length*l+d.length>=c));)r.push(d),s+=d.length,n=n.parentNode;return r.reverse().join(i)}catch{return""}}function YU(e,t){const n=e,o=[];if(!n||!n.tagName)return"";if(uw.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const r=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(r&&r.length)r.forEach(s=>{o.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&o.push(`#${n.id}`);const s=n.className;if(s&&Ia(s)){const i=s.split(/\s+/);for(const l of i)o.push(`.${l}`)}}const a=["aria-label","type","name","title","alt"];for(const s of a){const i=n.getAttribute(s);i&&o.push(`[${s}="${i}"]`)}return o.join("")}function KU(){try{return uw.document.location.href}catch{return""}}function ZU(e){if(!uw.HTMLElement)return null;let t=e;const n=5;for(let o=0;oQU(e,o,n))}function Oo(e,t,n){if(!(t in e))return;const o=e[t],r=n(o);typeof r=="function"&&M5(r,o);try{e[t]=r}catch{Ji&&Me.log(`Failed to replace method "${t}" in object`,e)}}function ji(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ji&&Me.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function M5(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,ji(e,"__sentry_original__",t)}catch{}}function pw(e){return e.__sentry_original__}function N5(e){if(lw(e))return{message:e.message,name:e.name,stack:e.stack,...MC(e)};if(r_(e)){const t={type:e.type,target:AC(e.target),currentTarget:AC(e.currentTarget),...MC(e)};return typeof CustomEvent<"u"&&Ni(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function AC(e){try{return GU(e)?A5(e):Object.prototype.toString.call(e)}catch{return""}}function MC(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function eW(e,t=40){const n=Object.keys(N5(e));n.sort();const o=n[0];if(!o)return"[object has no keys]";if(o.length>=t)return vc(o,t);for(let r=n.length;r>0;r--){const a=n.slice(0,r).join(", ");if(!(a.length>t))return r===n.length?a:vc(a,t)}return""}function ar(e){return Ob(e,new Map)}function Ob(e,t){if(tW(e)){const n=t.get(e);if(n!==void 0)return n;const o={};t.set(e,o);for(const r of Object.getOwnPropertyNames(e))typeof e[r]<"u"&&(o[r]=Ob(e[r],t));return o}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const o=[];return t.set(e,o),e.forEach(r=>{o.push(Ob(r,t))}),o}return e}function tW(e){if(!Bc(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const j5=1e3;function Rp(){return Date.now()/j5}function nW(){const{performance:e}=pt;if(!e||!e.now)return Rp;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/j5}const La=nW();(()=>{const{performance:e}=pt;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),o=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,a=rMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const o=new Uint8Array(1);return t.getRandomValues(o),o[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,o=>(o^(n()&15)>>o/4).toString(16))}function z5(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ls(e){const{message:t,event_id:n}=e;if(t)return t;const o=z5(e);return o?o.type&&o.value?`${o.type}: ${o.value}`:o.type||o.value||n||"":n||""}function Db(e,t,n){const o=e.exception=e.exception||{},r=o.values=o.values||[],a=r[0]=r[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function cp(e,t){const n=z5(e);if(!n)return;const o={type:"generic",handled:!0},r=n.mechanism;if(n.mechanism={...o,...r,...t},t&&"data"in t){const a={...r&&r.data,...t.data};n.mechanism.data=a}}function NC(e){if(oW(e))return!0;try{ji(e,"__sentry_captured__",!0)}catch{}return!1}function oW(e){try{return e.__sentry_captured__}catch{}}var $a;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const o=2;e[e.REJECTED=o]="REJECTED"})($a||($a={}));function zi(e){return new Qo(t=>{t(e)})}function Sm(e){return new Qo((t,n)=>{n(e)})}class Qo{constructor(t){Qo.prototype.__init.call(this),Qo.prototype.__init2.call(this),Qo.prototype.__init3.call(this),Qo.prototype.__init4.call(this),this._state=$a.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Qo((o,r)=>{this._handlers.push([!1,a=>{if(!t)o(a);else try{o(t(a))}catch(s){r(s)}},a=>{if(!n)r(a);else try{o(n(a))}catch(s){r(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Qo((n,o)=>{let r,a;return this.then(s=>{a=!1,r=s,t&&t()},s=>{a=!0,r=s,t&&t()}).then(()=>{if(a){o(r);return}n(r)})})}__init(){this._resolve=t=>{this._setResult($a.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult($a.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===$a.PENDING){if(a_(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===$a.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===$a.RESOLVED&&n[1](this._value),this._state===$a.REJECTED&&n[2](this._value),n[0]=!0)})}}}function rW(e){const t=La(),n={sid:ir(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>sW(n)};return e&&Hc(n,e),n}function Hc(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||La(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ir()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function aW(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Hc(e,n)}function sW(e){return ar({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function jC(){return ir()}function zC(){return ir().substring(16)}function i_(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const o={...e};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=i_(o[r],t[r],n-1));return o}const Ab="_sentrySpan";function RC(e,t){t?ji(e,Ab,t):delete e[Ab]}function IC(e){return e[Ab]}const iW=100;class hw{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:jC(),spanId:zC()}}clone(){const t=new hw;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,RC(t,IC(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Hc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[o,r]=n instanceof Ri?[n.getScopeData(),n.getRequestSession()]:Bc(n)?[t,t.requestSession]:[],{tags:a,extra:s,user:i,contexts:l,level:d,fingerprint:u=[],propagationContext:c}=o||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},i&&Object.keys(i).length&&(this._user=i),d&&(this._level=d),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,RC(this,void 0),this._attachments=[],this.setPropagationContext({traceId:jC()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const o=typeof n=="number"?n:iW;if(o<=0)return this;const r={timestamp:Rp(),...t},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>o?a.slice(-o):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,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:IC(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=i_(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:zC(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const o=n&&n.event_id?n.event_id:ir();if(!this._client)return Me.warn("No client configured on scope - will not capture exception!"),o;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...n,event_id:o},this),o}captureMessage(t,n,o){const r=o&&o.event_id?o.event_id:ir();if(!this._client)return Me.warn("No client configured on scope - will not capture message!"),r;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...o,event_id:r},this),r}captureEvent(t,n){const o=n&&n.event_id?n.event_id:ir();return this._client?(this._client.captureEvent(t,{...n,event_id:o},this),o):(Me.warn("No client configured on scope - will not capture event!"),o)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Ri=hw;function lW(){return n_("defaultCurrentScope",()=>new Ri)}function cW(){return n_("defaultIsolationScope",()=>new Ri)}class dW{constructor(t,n){let o;t?o=t:o=new Ri;let r;n?r=n:r=new Ri,this._stack=[{scope:o}],this._isolationScope=r}withScope(t){const n=this._pushScope();let o;try{o=t(n)}catch(r){throw this._popScope(),r}return a_(o)?o.then(r=>(this._popScope(),r),r=>{throw this._popScope(),r}):(this._popScope(),o)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Uc(){const e=o_(),t=iw(e);return t.stack=t.stack||new dW(lW(),cW())}function uW(e){return Uc().withScope(e)}function pW(e,t){const n=Uc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function LC(e){return Uc().withScope(()=>e(Uc().getIsolationScope()))}function hW(){return{withIsolationScope:LC,withScope:uW,withSetScope:pW,withSetIsolationScope:(e,t)=>LC(t),getCurrentScope:()=>Uc().getScope(),getIsolationScope:()=>Uc().getIsolationScope()}}function fw(e){const t=iw(e);return t.acs?t.acs:hW()}function ua(){const e=o_();return fw(e).getCurrentScope()}function Ip(){const e=o_();return fw(e).getIsolationScope()}function fW(){return n_("globalScope",()=>new Ri)}function mW(...e){const t=o_(),n=fw(t);if(e.length===2){const[o,r]=e;return o?n.withSetScope(o,r):n.withScope(r)}return n.withScope(e[0])}function Xn(){return ua().getClient()}function gW(e){const t=e.getPropagationContext(),{traceId:n,spanId:o,parentSpanId:r}=t;return ar({trace_id:n,span_id:o,parent_span_id:r})}const _W="_sentryMetrics";function vW(e){const t=e[_W];if(!t)return;const n={};for(const[,[o,r]]of t)(n[o]||(n[o]=[])).push(ar(r));return n}const yW="sentry.source",bW="sentry.sample_rate",wW="sentry.op",SW="sentry.origin",xW=0,CW=1,$W="sentry-",kW=/^sentry-/;function EW(e){const t=TW(e);if(!t)return;const n=Object.entries(t).reduce((o,[r,a])=>{if(r.match(kW)){const s=r.slice($W.length);o[s]=a}return o},{});if(Object.keys(n).length>0)return n}function TW(e){if(!(!e||!Ia(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const o=FC(n);return Object.entries(o).forEach(([r,a])=>{t[r]=a}),t},{}):FC(e)}function FC(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,o])=>(n&&o&&(t[n]=o),t),{})}const OW=1;let PC=!1;function DW(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:o}=mw(e);return ar({parent_span_id:o,span_id:t,trace_id:n})}function BC(e){return typeof e=="number"?HC(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?HC(e.getTime()):La()}function HC(e){return e>9999999999?e/1e3:e}function mw(e){if(MW(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(AW(e)){const{attributes:o,startTime:r,name:a,endTime:s,parentSpanId:i,status:l}=e;return ar({span_id:t,trace_id:n,data:o,description:a,parent_span_id:i,start_timestamp:BC(r),timestamp:BC(s)||void 0,status:jW(l),op:o[wW],origin:o[SW],_metrics_summary:vW(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function AW(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function MW(e){return typeof e.getSpanJSON=="function"}function NW(e){const{traceFlags:t}=e.spanContext();return t===OW}function jW(e){if(!(!e||e.code===xW))return e.code===CW?"ok":e.message||"unknown_error"}const zW="_sentryRootSpan";function R5(e){return e[zW]||e}function RW(){PC||(Yi(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),PC=!0)}function IW(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Xn(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const gw="production",LW="_frozenDsc";function I5(e,t){const n=t.getOptions(),{publicKey:o}=t.getDsn()||{},r=ar({environment:n.environment||gw,release:n.release,public_key:o,trace_id:e});return t.emit("createDsc",r),r}function FW(e,t){const n=t.getPropagationContext();return n.dsc||I5(n.traceId,e)}function PW(e){const t=Xn();if(!t)return{};const n=R5(e),o=n[LW];if(o)return o;const r=n.spanContext().traceState,a=r&&r.get("sentry.dsc"),s=a&&EW(a);if(s)return s;const i=I5(e.spanContext().traceId,t),l=mw(n),d=l.data||{},u=d[bW];u!=null&&(i.sample_rate=`${u}`);const c=d[yW],h=l.description;return c!=="url"&&h&&(i.transaction=h),IW()&&(i.sampled=String(NW(n))),t.emit("createDsc",i,n),i}function BW(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){Et&&Me.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const HW=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function UW(e){return e==="http"||e==="https"}function l_(e,t=!1){const{host:n,path:o,pass:r,port:a,projectId:s,protocol:i,publicKey:l}=e;return`${i}://${l}${t&&r?`:${r}`:""}@${n}${a?`:${a}`:""}/${o&&`${o}/`}${s}`}function WW(e){const t=HW.exec(e);if(!t){Yi(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,o,r="",a="",s="",i=""]=t.slice(1);let l="",d=i;const u=d.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),d=u.pop()),d){const c=d.match(/^\d+/);c&&(d=c[0])}return L5({host:a,pass:r,path:l,projectId:d,port:s,protocol:n,publicKey:o})}function L5(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function VW(e){if(!Ji)return!0;const{port:t,projectId:n,protocol:o}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Me.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?UW(o)?t&&isNaN(parseInt(t,10))?(Me.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Me.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(Me.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function GW(e){const t=typeof e=="string"?WW(e):L5(e);if(!(!t||!VW(t)))return t}function qW(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(r){if(e)return t.has(r)?!0:(t.add(r),!1);for(let a=0;an?F5(e,t-1,n):o}function Mb(e,t,n=1/0,o=1/0,r=qW()){const[a,s]=r;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const i=XW(e,t);if(!i.startsWith("[object "))return i;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return i.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const f=d.toJSON();return Mb("",f,l-1,o,r)}catch{}const u=Array.isArray(t)?[]:{};let c=0;const h=N5(t);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(c>=o){u[f]="[MaxProperties ~]";break}const g=h[f];u[f]=Mb(f,g,l-1,o,r),c++}return s(t),u}function XW(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(D5(t))return"[VueViewModel]";if(XU(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Bs(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=JW(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function JW(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function YW(e){return~-encodeURI(e).split(/%..|./).length}function KW(e){return YW(JSON.stringify(e))}function Lp(e,t=[]){return[e,t]}function ZW(e,t){const[n,o]=e;return[n,[...o,t]]}function UC(e,t){const n=e[1];for(const o of n){const r=o[0].type;if(t(o,r))return!0}return!1}function Nb(e){return pt.__SENTRY__&&pt.__SENTRY__.encodePolyfill?pt.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function QW(e){const[t,n]=e;let o=JSON.stringify(t);function r(a){typeof o=="string"?o=typeof a=="string"?o+a:[Nb(o),a]:o.push(typeof a=="string"?Nb(a):a)}for(const a of n){const[s,i]=a;if(r(` ${JSON.stringify(s)} -`),typeof i=="string"||i instanceof Uint8Array)r(i);else{let l;try{l=JSON.stringify(i)}catch{l=JSON.stringify(cs(i))}r(l)}}return typeof o=="string"?o:QW(o)}function QW(e){const t=e.reduce((r,a)=>r+a.length,0),n=new Uint8Array(t);let o=0;for(const r of e)n.set(r,o),o+=r.length;return n}function eV(e){const t=typeof e.data=="string"?Mb(e.data):e.data;return[ar({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const tV={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function UC(e){return tV[e]}function L5(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function nV(e,t,n,o){const r=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&o&&{dsn:l_(o)},...r&&{trace:ar({...r})}}}function oV(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function rV(e,t,n,o){const r=L5(n),a={sent_at:new Date().toISOString(),...r&&{sdk:r},...!!o&&t&&{dsn:l_(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Lp(a,[s])}function aV(e,t,n,o){const r=L5(n),a=e.type&&e.type!=="replay_event"?e.type:"event";oV(e,n&&n.sdk);const s=nV(e,r,o,t);return delete e.sdkProcessingMetadata,Lp(s,[[{type:a},e]])}function Nb(e,t,n,o=0){return new Qo((r,a)=>{const s=e[o];if(t===null||typeof s!="function")r(t);else{const i=s({...t},n);Et&&s.id&&i===null&&Me.log(`Event processor "${s.id}" dropped event`),a_(i)?i.then(l=>Nb(e,l,n,o+1).then(r)).then(null,a):Nb(e,i,n,o+1).then(r).then(null,a)}})}let Dh,WC,Ah;function sV(e){const t=pt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ah&&n.length===WC||(WC=n.length,Ah=n.reduce((o,r)=>{Dh||(Dh={});const a=Dh[r];if(a)o[a[0]]=a[1];else{const s=e(r);for(let i=s.length-1;i>=0;i--){const l=s[i],d=l&&l.filename,u=t[r];if(d&&u){o[d]=u,Dh[r]=[d,u];break}}}return o},{})),Ah}function iV(e,t){const{fingerprint:n,span:o,breadcrumbs:r,sdkProcessingMetadata:a}=t;lV(e,t),o&&uV(e,o),pV(e,n),cV(e,r),dV(e,a)}function VC(e,t){const{extra:n,tags:o,user:r,contexts:a,level:s,sdkProcessingMetadata:i,breadcrumbs:l,fingerprint:d,eventProcessors:u,attachments:c,propagationContext:h,transactionName:f,span:g}=t;Mh(e,"extra",n),Mh(e,"tags",o),Mh(e,"user",r),Mh(e,"contexts",a),e.sdkProcessingMetadata=i_(e.sdkProcessingMetadata,i,2),s&&(e.level=s),f&&(e.transactionName=f),g&&(e.span=g),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),c.length&&(e.attachments=[...e.attachments,...c]),e.propagationContext={...e.propagationContext,...h}}function Mh(e,t,n){e[t]=i_(e[t],n,1)}function lV(e,t){const{extra:n,tags:o,user:r,contexts:a,level:s,transactionName:i}=t,l=ar(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const d=ar(o);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const u=ar(r);u&&Object.keys(u).length&&(e.user={...u,...e.user});const c=ar(a);c&&Object.keys(c).length&&(e.contexts={...c,...e.contexts}),s&&(e.level=s),i&&e.type!=="transaction"&&(e.transaction=i)}function cV(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function dV(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function uV(e,t){e.contexts={trace:OW(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:FW(t),...e.sdkProcessingMetadata};const n=j5(t),o=fw(n).description;o&&!e.transaction&&e.type==="transaction"&&(e.transaction=o)}function pV(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function hV(e,t,n,o,r,a){const{normalizeDepth:s=3,normalizeMaxBreadth:i=1e3}=e,l={...t,event_id:t.event_id||n.event_id||ir(),timestamp:t.timestamp||Rp()},d=n.integrations||e.integrations.map(S=>S.name);fV(l,e),_V(l,d),r&&r.emit("applyFrameMetadata",t),t.type===void 0&&mV(l,e.stackParser);const u=yV(o,n.captureContext);n.mechanism&&cp(l,n.mechanism);const c=r?r.getEventProcessors():[],h=hW().getScopeData();if(a){const S=a.getScopeData();VC(h,S)}if(u){const S=u.getScopeData();VC(h,S)}const f=[...n.attachments||[],...h.attachments];f.length&&(n.attachments=f),iV(l,h);const g=[...c,...h.eventProcessors];return Nb(g,l,n).then(S=>(S&&gV(S),typeof s=="number"&&s>0?vV(S,s,i):S))}function fV(e,t){const{environment:n,release:o,dist:r,maxValueLength:a=250}=t;e.environment=e.environment||n||mw,!e.release&&o&&(e.release=o),!e.dist&&r&&(e.dist=r),e.message&&(e.message=vc(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=vc(s.value,a));const i=e.request;i&&i.url&&(i.url=vc(i.url,a))}function mV(e,t){const n=sV(t);try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(r=>{n&&r.filename&&(r.debug_id=n[r.filename])})})}catch{}}function gV(e){const t={};try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(r=>{r.debug_id&&(r.abs_path?t[r.abs_path]=r.debug_id:r.filename&&(t[r.filename]=r.debug_id),delete r.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([o,r])=>{n.push({type:"sourcemap",code_file:o,debug_id:r})})}function _V(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function vV(e,t,n){if(!e)return null;const o={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(r=>({...r,...r.data&&{data:cs(r.data,t,n)}}))},...e.user&&{user:cs(e.user,t,n)},...e.contexts&&{contexts:cs(e.contexts,t,n)},...e.extra&&{extra:cs(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&o.contexts&&(o.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(o.contexts.trace.data=cs(e.contexts.trace.data,t,n))),e.spans&&(o.spans=e.spans.map(r=>({...r,...r.data&&{data:cs(r.data,t,n)}}))),o}function yV(e,t){if(!t)return e;const n=e?e.clone():new Ri;return n.update(t),n}function bV(e,t){return ua().captureException(e,void 0)}function F5(e,t){return ua().captureEvent(e,t)}function GC(e){const t=Xn(),n=Ip(),o=ua(),{release:r,environment:a=mw}=t&&t.getOptions()||{},{userAgent:s}=pt.navigator||{},i=oW({release:r,environment:a,user:o.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&Hc(l,{status:"exited"}),P5(),n.setSession(i),o.setSession(i),i}function P5(){const e=Ip(),t=ua(),n=t.getSession()||e.getSession();n&&rW(n),B5(),e.setSession(),t.setSession()}function B5(){const e=Ip(),t=ua(),n=Xn(),o=t.getSession()||e.getSession();o&&n&&n.captureSession(o)}function qC(e=!1){if(e){P5();return}B5()}const wV="7";function SV(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function xV(e){return`${SV(e)}${e.projectId}/envelope/`}function CV(e,t){const n={sentry_version:wV};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function $V(e,t,n){return t||`${xV(e)}?${CV(e,n)}`}const XC=[];function kV(e){const t={};return e.forEach(n=>{const{name:o}=n,r=t[o];r&&!r.isDefaultInstance&&n.isDefaultInstance||(t[o]=n)}),Object.values(t)}function EV(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let o;if(Array.isArray(n))o=[...t,...n];else if(typeof n=="function"){const s=n(t);o=Array.isArray(s)?s:[s]}else o=t;const r=kV(o),a=r.findIndex(s=>s.name==="Debug");if(a>-1){const[s]=r.splice(a,1);r.push(s)}return r}function TV(e,t){const n={};return t.forEach(o=>{o&&H5(e,o,n)}),n}function JC(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function H5(e,t,n){if(n[t.name]){Et&&Me.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,XC.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),XC.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const o=t.preprocessEvent.bind(t);e.on("preprocessEvent",(r,a)=>o(r,a,e))}if(typeof t.processEvent=="function"){const o=t.processEvent.bind(t),r=Object.assign((a,s)=>o(a,s,e),{id:t.name});e.addEventProcessor(r)}Et&&Me.log(`Integration installed: ${t.name}`)}function OV(e,t,n){const o=[{type:"client_report"},{timestamp:Rp(),discarded_events:e}];return Lp(t?{dsn:t}:{},[o])}class Yr extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const YC="Not capturing exception because it's already been captured.";class DV{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=VW(t.dsn):Et&&Me.warn("No DSN provided, client will not send events."),this._dsn){const r=$V(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}const o=["enableTracing","tracesSampleRate","tracesSampler"].find(r=>r in t&&t[r]==null);o&&Yi(()=>{console.warn(`[Sentry] Deprecation warning: \`${o}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,o){const r=ir();if(MC(t))return Et&&Me.log(YC),r;const a={event_id:r,...n};return this._process(this.eventFromException(t,a).then(s=>this._captureEvent(s,a,o))),a.event_id}captureMessage(t,n,o,r){const a={event_id:ir(),...o},s=lw(t)?t:String(t),i=cw(t)?this.eventFromMessage(s,n,a):this.eventFromException(t,a);return this._process(i.then(l=>this._captureEvent(l,a,r))),a.event_id}captureEvent(t,n,o){const r=ir();if(n&&n.originalException&&MC(n.originalException))return Et&&Me.log(YC),r;const a={event_id:r,...n},i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,i||o)),a.event_id}captureSession(t){typeof t.release!="string"?Et&&Me.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Hc(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(o=>n.flush(t).then(r=>o&&r))):zi(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];H5(this,t,this._integrations),n||JC(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let o=aV(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])o=KW(o,eV(a));const r=this.sendEnvelope(o);r&&r.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=rV(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,o){if(this._options.sendClientReports){const r=typeof o=="number"?o:1,a=`${t}:${n}`;Et&&Me.log(`Recording outcome: "${a}"${r>1?` (${r} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+r}}on(t,n){const o=this._hooks[t]=this._hooks[t]||[];return o.push(n),()=>{const r=o.indexOf(n);r>-1&&o.splice(r,1)}}emit(t,...n){const o=this._hooks[t];o&&o.forEach(r=>r(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Et&&Me.error("Error while sending envelope:",n),n)):(Et&&Me.error("Transport disabled"),zi({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=TV(this,t),JC(this,t)}_updateSessionFromEvent(t,n){let o=!1,r=!1;const a=n.exception&&n.exception.values;if(a){r=!0;for(const l of a){const d=l.mechanism;if(d&&d.handled===!1){o=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&o)&&(Hc(t,{...o&&{status:"crashed"},errors:t.errors||Number(r||o)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Qo(n=>{let o=0;const r=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(o+=r,t&&o>=t&&(clearInterval(a),n(!1)))},r)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,o=ua(),r=Ip()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||r.setLastEventId(t.event_id||n.event_id),hV(a,t,n,o,this,r).then(i=>{if(i===null)return i;i.contexts={trace:mW(o),...i.contexts};const l=LW(this,o);return i.sdkProcessingMetadata={dynamicSamplingContext:l,...i.sdkProcessingMetadata},i})}_captureEvent(t,n={},o){return this._processEvent(t,n,o).then(r=>r.event_id,r=>{if(Et){const a=r;a.logLevel==="log"?Me.log(a.message):Me.warn(a)}})}_processEvent(t,n,o){const r=this.getOptions(),{sampleRate:a}=r,s=W5(t),i=U5(t),l=t.type||"error",d=`before send for type \`${l}\``,u=typeof a>"u"?void 0:PW(a);if(i&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),Sm(new Yr(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const c=l==="replay_event"?"replay":l,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,o,f).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",c,t),new Yr("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=MV(this,r,g,n);return AV(S,d)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",c,t),s){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw new Yr(`${d} returned \`null\`, will not send event.`,"log")}const v=o&&o.getSession();if(!s&&v&&this._updateSessionFromEvent(v,g),s){const _=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,b=g.spans?g.spans.length:0,y=_-b;y>0&&this.recordDroppedEvent("before_send","span",y)}const S=g.transaction_info;if(s&&S&&g.transaction!==t.transaction){const _="custom";g.transaction_info={...S,source:_}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof Yr?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Yr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,o])=>{const[r,a]=n.split(":");return{reason:r,category:a,quantity:o}})}_flushOutcomes(){Et&&Me.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Et&&Me.log("No outcomes to send");return}if(!this._dsn){Et&&Me.log("No dsn provided, will not send outcomes");return}Et&&Me.log("Sending outcomes:",t);const n=OV(t,this._options.tunnel&&l_(this._dsn));this.sendEnvelope(n)}}function AV(e,t){const n=`${t} must return \`null\` or a valid event.`;if(a_(e))return e.then(o=>{if(!Bc(o)&&o!==null)throw new Yr(n);return o},o=>{throw new Yr(`${t} rejected with ${o}`)});if(!Bc(e)&&e!==null)throw new Yr(n);return e}function MV(e,t,n,o){const{beforeSend:r,beforeSendTransaction:a,beforeSendSpan:s}=t;if(U5(n)&&r)return r(n,o);if(W5(n)){if(n.spans&&s){const i=[];for(const l of n.spans){const d=s(l);d?i.push(d):(zW(),e.recordDroppedEvent("before_send","span"))}n.spans=i}if(a){if(n.spans){const i=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:i}}return a(n,o)}}return n}function U5(e){return e.type===void 0}function W5(e){return e.type==="transaction"}function NV(e,t){t.debug===!0&&(Et?Me.enable():Yi(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ua().update(t.initialScope);const o=new e(t);return jV(o),o.init(),o}function jV(e){ua().setClient(e)}function zV(e){const t=[];function n(){return e===void 0||t.lengtho(i)).then(null,()=>o(i).then(null,()=>{})),i}function a(s){return new Qo((i,l)=>{let d=t.length;if(!d)return i(!0);const u=setTimeout(()=>{s&&s>0&&i(!1)},s);t.forEach(c=>{zi(c).then(()=>{--d||(clearTimeout(u),i(!0))},l)})})}return{$:t,add:r,drain:a}}const RV=60*1e3;function IV(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const o=Date.parse(`${e}`);return isNaN(o)?RV:o-t}function LV(e,t){return e[t]||e.all||0}function FV(e,t,n=Date.now()){return LV(e,t)>n}function PV(e,{statusCode:t,headers:n},o=Date.now()){const r={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const i of a.trim().split(",")){const[l,d,,,u]=i.split(":",5),c=parseInt(l,10),h=(isNaN(c)?60:c)*1e3;if(!d)r.all=o+h;else for(const f of d.split(";"))f==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(r[f]=o+h):r[f]=o+h}else s?r.all=o+IV(s,o):t===429&&(r.all=o+60*1e3);return r}const BV=64;function HV(e,t,n=zV(e.bufferSize||BV)){let o={};const r=s=>n.drain(s);function a(s){const i=[];if(HC(s,(c,h)=>{const f=UC(h);if(FV(o,f)){const g=KC(c,h);e.recordDroppedEvent("ratelimit_backoff",f,g)}else i.push(c)}),i.length===0)return zi({});const l=Lp(s[0],i),d=c=>{HC(l,(h,f)=>{const g=KC(h,f);e.recordDroppedEvent(c,UC(f),g)})},u=()=>t({body:ZW(l)}).then(c=>(c.statusCode!==void 0&&(c.statusCode<200||c.statusCode>=300)&&Et&&Me.warn(`Sentry responded with status code ${c.statusCode} to sent event.`),o=PV(o,c),c),c=>{throw d("network_error"),c});return n.add(u).then(c=>c,c=>{if(c instanceof Yr)return Et&&Me.error("Skipped sending event because buffer is full."),d("queue_overflow"),zi({});throw c})}return{send:a,flush:r}}function KC(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function UV(e,t,n=[t],o="npm"){const r=e._metadata||{};r.sdk||(r.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${o}:@sentry/${a}`,version:$i})),version:$i}),e._metadata=r}const WV=100;function Ii(e,t){const n=Xn(),o=Ip();if(!n)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:a=WV}=n.getOptions();if(a<=0)return;const i={timestamp:Rp(),...e},l=r?Yi(()=>r(i,t)):i;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),o.addBreadcrumb(l,a))}let ZC;const VV="FunctionToString",QC=new WeakMap,GV=()=>({name:VV,setupOnce(){ZC=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=uw(this),n=QC.has(Xn())&&t!==void 0?t:this;return ZC.apply(n,e)}}catch{}},setup(e){QC.set(e,!0)}}),qV=GV,XV=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],JV="InboundFilters",YV=(e={})=>({name:JV,processEvent(t,n,o){const r=o.getOptions(),a=ZV(e,r);return QV(t,a)?null:t}}),KV=YV;function ZV(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:XV],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function QV(e,t){return t.ignoreInternal&&aG(e)?(Et&&Me.warn(`Event dropped due to being internal Sentry Error. -Event: ${ls(e)}`),!0):eG(e,t.ignoreErrors)?(Et&&Me.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${ls(e)}`),!0):iG(e)?(Et&&Me.warn(`Event dropped due to not having an error message, error type or stacktrace. -Event: ${ls(e)}`),!0):tG(e,t.ignoreTransactions)?(Et&&Me.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${ls(e)}`),!0):nG(e,t.denyUrls)?(Et&&Me.warn(`Event dropped due to being matched by \`denyUrls\` option. +`),typeof i=="string"||i instanceof Uint8Array)r(i);else{let l;try{l=JSON.stringify(i)}catch{l=JSON.stringify(cs(i))}r(l)}}return typeof o=="string"?o:eV(o)}function eV(e){const t=e.reduce((r,a)=>r+a.length,0),n=new Uint8Array(t);let o=0;for(const r of e)n.set(r,o),o+=r.length;return n}function tV(e){const t=typeof e.data=="string"?Nb(e.data):e.data;return[ar({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const nV={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function WC(e){return nV[e]}function P5(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function oV(e,t,n,o){const r=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&o&&{dsn:l_(o)},...r&&{trace:ar({...r})}}}function rV(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function aV(e,t,n,o){const r=P5(n),a={sent_at:new Date().toISOString(),...r&&{sdk:r},...!!o&&t&&{dsn:l_(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Lp(a,[s])}function sV(e,t,n,o){const r=P5(n),a=e.type&&e.type!=="replay_event"?e.type:"event";rV(e,n&&n.sdk);const s=oV(e,r,o,t);return delete e.sdkProcessingMetadata,Lp(s,[[{type:a},e]])}function jb(e,t,n,o=0){return new Qo((r,a)=>{const s=e[o];if(t===null||typeof s!="function")r(t);else{const i=s({...t},n);Et&&s.id&&i===null&&Me.log(`Event processor "${s.id}" dropped event`),a_(i)?i.then(l=>jb(e,l,n,o+1).then(r)).then(null,a):jb(e,i,n,o+1).then(r).then(null,a)}})}let Dh,VC,Ah;function iV(e){const t=pt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ah&&n.length===VC||(VC=n.length,Ah=n.reduce((o,r)=>{Dh||(Dh={});const a=Dh[r];if(a)o[a[0]]=a[1];else{const s=e(r);for(let i=s.length-1;i>=0;i--){const l=s[i],d=l&&l.filename,u=t[r];if(d&&u){o[d]=u,Dh[r]=[d,u];break}}}return o},{})),Ah}function lV(e,t){const{fingerprint:n,span:o,breadcrumbs:r,sdkProcessingMetadata:a}=t;cV(e,t),o&&pV(e,o),hV(e,n),dV(e,r),uV(e,a)}function GC(e,t){const{extra:n,tags:o,user:r,contexts:a,level:s,sdkProcessingMetadata:i,breadcrumbs:l,fingerprint:d,eventProcessors:u,attachments:c,propagationContext:h,transactionName:f,span:g}=t;Mh(e,"extra",n),Mh(e,"tags",o),Mh(e,"user",r),Mh(e,"contexts",a),e.sdkProcessingMetadata=i_(e.sdkProcessingMetadata,i,2),s&&(e.level=s),f&&(e.transactionName=f),g&&(e.span=g),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),c.length&&(e.attachments=[...e.attachments,...c]),e.propagationContext={...e.propagationContext,...h}}function Mh(e,t,n){e[t]=i_(e[t],n,1)}function cV(e,t){const{extra:n,tags:o,user:r,contexts:a,level:s,transactionName:i}=t,l=ar(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const d=ar(o);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const u=ar(r);u&&Object.keys(u).length&&(e.user={...u,...e.user});const c=ar(a);c&&Object.keys(c).length&&(e.contexts={...c,...e.contexts}),s&&(e.level=s),i&&e.type!=="transaction"&&(e.transaction=i)}function dV(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function uV(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function pV(e,t){e.contexts={trace:DW(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:PW(t),...e.sdkProcessingMetadata};const n=R5(t),o=mw(n).description;o&&!e.transaction&&e.type==="transaction"&&(e.transaction=o)}function hV(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function fV(e,t,n,o,r,a){const{normalizeDepth:s=3,normalizeMaxBreadth:i=1e3}=e,l={...t,event_id:t.event_id||n.event_id||ir(),timestamp:t.timestamp||Rp()},d=n.integrations||e.integrations.map(S=>S.name);mV(l,e),vV(l,d),r&&r.emit("applyFrameMetadata",t),t.type===void 0&&gV(l,e.stackParser);const u=bV(o,n.captureContext);n.mechanism&&cp(l,n.mechanism);const c=r?r.getEventProcessors():[],h=fW().getScopeData();if(a){const S=a.getScopeData();GC(h,S)}if(u){const S=u.getScopeData();GC(h,S)}const f=[...n.attachments||[],...h.attachments];f.length&&(n.attachments=f),lV(l,h);const g=[...c,...h.eventProcessors];return jb(g,l,n).then(S=>(S&&_V(S),typeof s=="number"&&s>0?yV(S,s,i):S))}function mV(e,t){const{environment:n,release:o,dist:r,maxValueLength:a=250}=t;e.environment=e.environment||n||gw,!e.release&&o&&(e.release=o),!e.dist&&r&&(e.dist=r),e.message&&(e.message=vc(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=vc(s.value,a));const i=e.request;i&&i.url&&(i.url=vc(i.url,a))}function gV(e,t){const n=iV(t);try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(r=>{n&&r.filename&&(r.debug_id=n[r.filename])})})}catch{}}function _V(e){const t={};try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(r=>{r.debug_id&&(r.abs_path?t[r.abs_path]=r.debug_id:r.filename&&(t[r.filename]=r.debug_id),delete r.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([o,r])=>{n.push({type:"sourcemap",code_file:o,debug_id:r})})}function vV(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function yV(e,t,n){if(!e)return null;const o={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(r=>({...r,...r.data&&{data:cs(r.data,t,n)}}))},...e.user&&{user:cs(e.user,t,n)},...e.contexts&&{contexts:cs(e.contexts,t,n)},...e.extra&&{extra:cs(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&o.contexts&&(o.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(o.contexts.trace.data=cs(e.contexts.trace.data,t,n))),e.spans&&(o.spans=e.spans.map(r=>({...r,...r.data&&{data:cs(r.data,t,n)}}))),o}function bV(e,t){if(!t)return e;const n=e?e.clone():new Ri;return n.update(t),n}function wV(e,t){return ua().captureException(e,void 0)}function B5(e,t){return ua().captureEvent(e,t)}function qC(e){const t=Xn(),n=Ip(),o=ua(),{release:r,environment:a=gw}=t&&t.getOptions()||{},{userAgent:s}=pt.navigator||{},i=rW({release:r,environment:a,user:o.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&Hc(l,{status:"exited"}),H5(),n.setSession(i),o.setSession(i),i}function H5(){const e=Ip(),t=ua(),n=t.getSession()||e.getSession();n&&aW(n),U5(),e.setSession(),t.setSession()}function U5(){const e=Ip(),t=ua(),n=Xn(),o=t.getSession()||e.getSession();o&&n&&n.captureSession(o)}function XC(e=!1){if(e){H5();return}U5()}const SV="7";function xV(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function CV(e){return`${xV(e)}${e.projectId}/envelope/`}function $V(e,t){const n={sentry_version:SV};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function kV(e,t,n){return t||`${CV(e)}?${$V(e,n)}`}const JC=[];function EV(e){const t={};return e.forEach(n=>{const{name:o}=n,r=t[o];r&&!r.isDefaultInstance&&n.isDefaultInstance||(t[o]=n)}),Object.values(t)}function TV(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let o;if(Array.isArray(n))o=[...t,...n];else if(typeof n=="function"){const s=n(t);o=Array.isArray(s)?s:[s]}else o=t;const r=EV(o),a=r.findIndex(s=>s.name==="Debug");if(a>-1){const[s]=r.splice(a,1);r.push(s)}return r}function OV(e,t){const n={};return t.forEach(o=>{o&&W5(e,o,n)}),n}function YC(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function W5(e,t,n){if(n[t.name]){Et&&Me.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,JC.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),JC.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const o=t.preprocessEvent.bind(t);e.on("preprocessEvent",(r,a)=>o(r,a,e))}if(typeof t.processEvent=="function"){const o=t.processEvent.bind(t),r=Object.assign((a,s)=>o(a,s,e),{id:t.name});e.addEventProcessor(r)}Et&&Me.log(`Integration installed: ${t.name}`)}function DV(e,t,n){const o=[{type:"client_report"},{timestamp:Rp(),discarded_events:e}];return Lp(t?{dsn:t}:{},[o])}class Yr extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const KC="Not capturing exception because it's already been captured.";class AV{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=GW(t.dsn):Et&&Me.warn("No DSN provided, client will not send events."),this._dsn){const r=kV(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}const o=["enableTracing","tracesSampleRate","tracesSampler"].find(r=>r in t&&t[r]==null);o&&Yi(()=>{console.warn(`[Sentry] Deprecation warning: \`${o}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,o){const r=ir();if(NC(t))return Et&&Me.log(KC),r;const a={event_id:r,...n};return this._process(this.eventFromException(t,a).then(s=>this._captureEvent(s,a,o))),a.event_id}captureMessage(t,n,o,r){const a={event_id:ir(),...o},s=cw(t)?t:String(t),i=dw(t)?this.eventFromMessage(s,n,a):this.eventFromException(t,a);return this._process(i.then(l=>this._captureEvent(l,a,r))),a.event_id}captureEvent(t,n,o){const r=ir();if(n&&n.originalException&&NC(n.originalException))return Et&&Me.log(KC),r;const a={event_id:r,...n},i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,i||o)),a.event_id}captureSession(t){typeof t.release!="string"?Et&&Me.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Hc(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(o=>n.flush(t).then(r=>o&&r))):zi(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];W5(this,t,this._integrations),n||YC(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let o=sV(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])o=ZW(o,tV(a));const r=this.sendEnvelope(o);r&&r.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=aV(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,o){if(this._options.sendClientReports){const r=typeof o=="number"?o:1,a=`${t}:${n}`;Et&&Me.log(`Recording outcome: "${a}"${r>1?` (${r} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+r}}on(t,n){const o=this._hooks[t]=this._hooks[t]||[];return o.push(n),()=>{const r=o.indexOf(n);r>-1&&o.splice(r,1)}}emit(t,...n){const o=this._hooks[t];o&&o.forEach(r=>r(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Et&&Me.error("Error while sending envelope:",n),n)):(Et&&Me.error("Transport disabled"),zi({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=OV(this,t),YC(this,t)}_updateSessionFromEvent(t,n){let o=!1,r=!1;const a=n.exception&&n.exception.values;if(a){r=!0;for(const l of a){const d=l.mechanism;if(d&&d.handled===!1){o=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&o)&&(Hc(t,{...o&&{status:"crashed"},errors:t.errors||Number(r||o)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Qo(n=>{let o=0;const r=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(o+=r,t&&o>=t&&(clearInterval(a),n(!1)))},r)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,o=ua(),r=Ip()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||r.setLastEventId(t.event_id||n.event_id),fV(a,t,n,o,this,r).then(i=>{if(i===null)return i;i.contexts={trace:gW(o),...i.contexts};const l=FW(this,o);return i.sdkProcessingMetadata={dynamicSamplingContext:l,...i.sdkProcessingMetadata},i})}_captureEvent(t,n={},o){return this._processEvent(t,n,o).then(r=>r.event_id,r=>{if(Et){const a=r;a.logLevel==="log"?Me.log(a.message):Me.warn(a)}})}_processEvent(t,n,o){const r=this.getOptions(),{sampleRate:a}=r,s=G5(t),i=V5(t),l=t.type||"error",d=`before send for type \`${l}\``,u=typeof a>"u"?void 0:BW(a);if(i&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),Sm(new Yr(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const c=l==="replay_event"?"replay":l,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,o,f).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",c,t),new Yr("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=NV(this,r,g,n);return MV(S,d)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",c,t),s){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw new Yr(`${d} returned \`null\`, will not send event.`,"log")}const v=o&&o.getSession();if(!s&&v&&this._updateSessionFromEvent(v,g),s){const _=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,b=g.spans?g.spans.length:0,y=_-b;y>0&&this.recordDroppedEvent("before_send","span",y)}const S=g.transaction_info;if(s&&S&&g.transaction!==t.transaction){const _="custom";g.transaction_info={...S,source:_}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof Yr?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Yr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,o])=>{const[r,a]=n.split(":");return{reason:r,category:a,quantity:o}})}_flushOutcomes(){Et&&Me.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Et&&Me.log("No outcomes to send");return}if(!this._dsn){Et&&Me.log("No dsn provided, will not send outcomes");return}Et&&Me.log("Sending outcomes:",t);const n=DV(t,this._options.tunnel&&l_(this._dsn));this.sendEnvelope(n)}}function MV(e,t){const n=`${t} must return \`null\` or a valid event.`;if(a_(e))return e.then(o=>{if(!Bc(o)&&o!==null)throw new Yr(n);return o},o=>{throw new Yr(`${t} rejected with ${o}`)});if(!Bc(e)&&e!==null)throw new Yr(n);return e}function NV(e,t,n,o){const{beforeSend:r,beforeSendTransaction:a,beforeSendSpan:s}=t;if(V5(n)&&r)return r(n,o);if(G5(n)){if(n.spans&&s){const i=[];for(const l of n.spans){const d=s(l);d?i.push(d):(RW(),e.recordDroppedEvent("before_send","span"))}n.spans=i}if(a){if(n.spans){const i=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:i}}return a(n,o)}}return n}function V5(e){return e.type===void 0}function G5(e){return e.type==="transaction"}function jV(e,t){t.debug===!0&&(Et?Me.enable():Yi(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ua().update(t.initialScope);const o=new e(t);return zV(o),o.init(),o}function zV(e){ua().setClient(e)}function RV(e){const t=[];function n(){return e===void 0||t.lengtho(i)).then(null,()=>o(i).then(null,()=>{})),i}function a(s){return new Qo((i,l)=>{let d=t.length;if(!d)return i(!0);const u=setTimeout(()=>{s&&s>0&&i(!1)},s);t.forEach(c=>{zi(c).then(()=>{--d||(clearTimeout(u),i(!0))},l)})})}return{$:t,add:r,drain:a}}const IV=60*1e3;function LV(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const o=Date.parse(`${e}`);return isNaN(o)?IV:o-t}function FV(e,t){return e[t]||e.all||0}function PV(e,t,n=Date.now()){return FV(e,t)>n}function BV(e,{statusCode:t,headers:n},o=Date.now()){const r={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const i of a.trim().split(",")){const[l,d,,,u]=i.split(":",5),c=parseInt(l,10),h=(isNaN(c)?60:c)*1e3;if(!d)r.all=o+h;else for(const f of d.split(";"))f==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(r[f]=o+h):r[f]=o+h}else s?r.all=o+LV(s,o):t===429&&(r.all=o+60*1e3);return r}const HV=64;function UV(e,t,n=RV(e.bufferSize||HV)){let o={};const r=s=>n.drain(s);function a(s){const i=[];if(UC(s,(c,h)=>{const f=WC(h);if(PV(o,f)){const g=ZC(c,h);e.recordDroppedEvent("ratelimit_backoff",f,g)}else i.push(c)}),i.length===0)return zi({});const l=Lp(s[0],i),d=c=>{UC(l,(h,f)=>{const g=ZC(h,f);e.recordDroppedEvent(c,WC(f),g)})},u=()=>t({body:QW(l)}).then(c=>(c.statusCode!==void 0&&(c.statusCode<200||c.statusCode>=300)&&Et&&Me.warn(`Sentry responded with status code ${c.statusCode} to sent event.`),o=BV(o,c),c),c=>{throw d("network_error"),c});return n.add(u).then(c=>c,c=>{if(c instanceof Yr)return Et&&Me.error("Skipped sending event because buffer is full."),d("queue_overflow"),zi({});throw c})}return{send:a,flush:r}}function ZC(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function WV(e,t,n=[t],o="npm"){const r=e._metadata||{};r.sdk||(r.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${o}:@sentry/${a}`,version:$i})),version:$i}),e._metadata=r}const VV=100;function Ii(e,t){const n=Xn(),o=Ip();if(!n)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:a=VV}=n.getOptions();if(a<=0)return;const i={timestamp:Rp(),...e},l=r?Yi(()=>r(i,t)):i;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),o.addBreadcrumb(l,a))}let QC;const GV="FunctionToString",e$=new WeakMap,qV=()=>({name:GV,setupOnce(){QC=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=pw(this),n=e$.has(Xn())&&t!==void 0?t:this;return QC.apply(n,e)}}catch{}},setup(e){e$.set(e,!0)}}),XV=qV,JV=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],YV="InboundFilters",KV=(e={})=>({name:YV,processEvent(t,n,o){const r=o.getOptions(),a=QV(e,r);return eG(t,a)?null:t}}),ZV=KV;function QV(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:JV],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function eG(e,t){return t.ignoreInternal&&sG(e)?(Et&&Me.warn(`Event dropped due to being internal Sentry Error. +Event: ${ls(e)}`),!0):tG(e,t.ignoreErrors)?(Et&&Me.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${ls(e)}`),!0):lG(e)?(Et&&Me.warn(`Event dropped due to not having an error message, error type or stacktrace. +Event: ${ls(e)}`),!0):nG(e,t.ignoreTransactions)?(Et&&Me.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${ls(e)}`),!0):oG(e,t.denyUrls)?(Et&&Me.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${ls(e)}. -Url: ${xm(e)}`),!0):oG(e,t.allowUrls)?!1:(Et&&Me.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Url: ${xm(e)}`),!0):rG(e,t.allowUrls)?!1:(Et&&Me.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${ls(e)}. -Url: ${xm(e)}`),!0)}function eG(e,t){return e.type||!t||!t.length?!1:rG(e).some(n=>s_(n,t))}function tG(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?s_(n,t):!1}function nG(e,t){if(!t||!t.length)return!1;const n=xm(e);return n?s_(n,t):!1}function oG(e,t){if(!t||!t.length)return!0;const n=xm(e);return n?s_(n,t):!0}function rG(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function aG(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function sG(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function xm(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?sG(t):null}catch{return Et&&Me.error(`Cannot extract url for event ${ls(e)}`),null}}function iG(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function lG(e,t,n=250,o,r,a,s){if(!a.exception||!a.exception.values||!s||!Ni(s.originalException,Error))return;const i=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;i&&(a.exception.values=cG(jb(e,t,r,s.originalException,o,a.exception.values,i,0),n))}function jb(e,t,n,o,r,a,s,i){if(a.length>=n+1)return a;let l=[...a];if(Ni(o[r],Error)){e$(s,i);const d=e(t,o[r]),u=l.length;t$(d,r,u,i),l=jb(e,t,n,o[r],r,[d,...l],d,u)}return Array.isArray(o.errors)&&o.errors.forEach((d,u)=>{if(Ni(d,Error)){e$(s,i);const c=e(t,d),h=l.length;t$(c,`errors[${u}]`,h,i),l=jb(e,t,n,d,r,[c,...l],c,h)}}),l}function e$(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function t$(e,t,n,o){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:o}}function cG(e,t){return e.map(n=>(n.value&&(n.value=vc(n.value,t)),n))}function Nv(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:o,relative:t[5]+n+o}}function dG(e){const t="console";Ki(t,e),Zi(t,uG)}function uG(){"console"in pt&&Eb.forEach(function(e){e in pt.console&&Oo(pt.console,e,function(t){return wm[e]=t,function(...n){Or("console",{args:n,level:e});const r=wm[e];r&&r.apply(pt.console,n)}})})}function pG(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const hG="Dedupe",fG=()=>{let e;return{name:hG,processEvent(t){if(t.type)return t;try{if(mG(t,e))return Et&&Me.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},V5=fG;function mG(e,t){return t?!!(gG(e,t)||_G(e,t)):!1}function gG(e,t){const n=e.message,o=t.message;return!(!n&&!o||n&&!o||!n&&o||n!==o||!q5(e,t)||!G5(e,t))}function _G(e,t){const n=n$(t),o=n$(e);return!(!n||!o||n.type!==o.type||n.value!==o.value||!q5(e,t)||!G5(e,t))}function G5(e,t){let n=kC(e),o=kC(t);if(!n&&!o)return!0;if(n&&!o||!n&&o||(n=n,o=o,o.length!==n.length))return!1;for(let r=0;r=400&&e<500?"warning":e>=500?"error":void 0}const zb=pt;function J5(){if(!("fetch"in zb))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Rb(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function vG(){if(typeof EdgeRuntime=="string")return!0;if(!J5())return!1;if(Rb(zb.fetch))return!0;let e=!1;const t=zb.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Rb(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Ji&&Me.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function yG(e,t){const n="fetch";Ki(n,e),Zi(n,()=>bG(void 0,t))}function bG(e,t=!1){t&&!vG()||Oo(pt,"fetch",function(n){return function(...o){const{method:r,url:a}=wG(o),s={args:o,fetchData:{method:r,url:a},startTimestamp:La()*1e3};Or("fetch",{...s});const i=new Error().stack;return n.apply(pt,o).then(async l=>(Or("fetch",{...s,endTimestamp:La()*1e3,response:l}),l),l=>{throw Or("fetch",{...s,endTimestamp:La()*1e3,error:l}),iw(l)&&l.stack===void 0&&(l.stack=i,ji(l,"framesToPop",1)),l})}})}function Ib(e,t){return!!e&&typeof e=="object"&&!!e[t]}function o$(e){return typeof e=="string"?e:e?Ib(e,"url")?e.url:e.toString?e.toString():"":""}function wG(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,o]=e;return{url:o$(n),method:Ib(o,"method")?String(o.method).toUpperCase():"GET"}}const t=e[0];return{url:o$(t),method:Ib(t,"method")?String(t.method).toUpperCase():"GET"}}function SG(){return"npm"}const Nh=pt;function xG(){const e=Nh.chrome,t=e&&e.app&&e.app.runtime,n="history"in Nh&&!!Nh.history.pushState&&!!Nh.history.replaceState;return!t&&n}const Ot=pt;let Lb=0;function Y5(){return Lb>0}function CG(){Lb++,setTimeout(()=>{Lb--})}function Wc(e,t={}){function n(r){return typeof r=="function"}if(!n(e))return e;try{const r=e.__sentry_wrapped__;if(r)return typeof r=="function"?r:e;if(uw(e))return e}catch{return e}const o=function(...r){try{const a=r.map(s=>Wc(s,t));return e.apply(this,a)}catch(a){throw CG(),fW(s=>{s.addEventProcessor(i=>(t.mechanism&&(Ob(i,void 0),cp(i,t.mechanism)),i.extra={...i.extra,arguments:r},i)),bV(a)}),a}};try{for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r])}catch{}D5(o,e),ji(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get(){return e.name}})}catch{}return o}const Fp=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function gw(e,t){const n=_w(e,t),o={type:OG(t),value:DG(t)};return n.length&&(o.stacktrace={frames:n}),o.type===void 0&&o.value===""&&(o.value="Unrecoverable error caught"),o}function $G(e,t,n,o){const r=Xn(),a=r&&r.getOptions().normalizeDepth,s=zG(t),i={__serialized__:I5(t,a)};if(s)return{exception:{values:[gw(e,s)]},extra:i};const l={exception:{values:[{type:r_(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:NG(t,{isUnhandledRejection:o})}]},extra:i};if(n){const d=_w(e,n);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function jv(e,t){return{exception:{values:[gw(e,t)]}}}function _w(e,t){const n=t.stacktrace||t.stack||"",o=EG(t),r=TG(t);try{return e(n,o,r)}catch{}return[]}const kG=/Minified React error #\d+;/i;function EG(e){return e&&kG.test(e.message)?1:0}function TG(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function K5(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function OG(e){const t=e&&e.name;return!t&&K5(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function DG(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:K5(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function AG(e,t,n,o){const r=n&&n.syntheticException||void 0,a=vw(e,t,r,o);return cp(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),zi(a)}function MG(e,t,n="info",o,r){const a=o&&o.syntheticException||void 0,s=Fb(e,t,a,r);return s.level=n,o&&o.event_id&&(s.event_id=o.event_id),zi(s)}function vw(e,t,n,o,r){let a;if(E5(t)&&t.error)return jv(e,t.error);if(TC(t)||WU(t)){const s=t;if("stack"in t)a=jv(e,t);else{const i=s.name||(TC(s)?"DOMError":"DOMException"),l=s.message?`${i}: ${s.message}`:i;a=Fb(e,l,n,o),Ob(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return iw(t)?jv(e,t):Bc(t)||r_(t)?(a=$G(e,t,n,r),cp(a,{synthetic:!0}),a):(a=Fb(e,t,n,o),Ob(a,`${t}`),cp(a,{synthetic:!0}),a)}function Fb(e,t,n,o){const r={};if(o&&n){const a=_w(e,n);a.length&&(r.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(lw(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return r.logentry={message:a,params:s},r}return r.message=t,r}function NG(e,{isUnhandledRejection:t}){const n=QU(e),o=t?"promise rejection":"exception";return E5(e)?`Event \`ErrorEvent\` captured as ${o} with message \`${e.message}\``:r_(e)?`Event \`${jG(e)}\` (type=${e.type}) captured as ${o}`:`Object captured as ${o} with keys: ${n}`}function jG(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function zG(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function RG(e,{metadata:t,tunnel:n,dsn:o}){const r={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!o&&{dsn:l_(o)}},a=IG(e);return Lp(r,[a])}function IG(e){return[{type:"user_report"},e]}class LG extends DV{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},o=Ot.SENTRY_SDK_SOURCE||SG();UV(n,"browser",["browser"],o),super(n),n.sendClientReports&&Ot.document&&Ot.document.addEventListener("visibilitychange",()=>{Ot.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return AG(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",o){return MG(this._options.stackParser,t,n,o,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Fp&&Me.warn("SDK not enabled, will not capture user feedback.");return}const n=RG(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,o)}}const FG=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,no=pt,PG=1e3;let r$,Pb,Bb;function BG(e){const t="dom";Ki(t,e),Zi(t,HG)}function HG(){if(!no.document)return;const e=Or.bind(null,"dom"),t=a$(e,!0);no.document.addEventListener("click",t,!1),no.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=no[n],a=r&&r.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(Oo(a,"addEventListener",function(s){return function(i,l,d){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},c=u[i]=u[i]||{refCount:0};if(!c.handler){const h=a$(e);c.handler=h,s.call(this,i,h,d)}c.refCount++}catch{}return s.call(this,i,l,d)}}),Oo(a,"removeEventListener",function(s){return function(i,l,d){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},c=u[i];c&&(c.refCount--,c.refCount<=0&&(s.call(this,i,c.handler,d),c.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,i,l,d)}}))})}function UG(e){if(e.type!==Pb)return!1;try{if(!e.target||e.target._sentryId!==Bb)return!1}catch{}return!0}function WG(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function a$(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const o=VG(n);if(WG(n.type,o))return;ji(n,"_sentryCaptured",!0),o&&!o._sentryId&&ji(o,"_sentryId",ir());const r=n.type==="keypress"?"input":n.type;UG(n)||(e({event:n,name:r,global:t}),Pb=n.type,Bb=o?o._sentryId:void 0),clearTimeout(r$),r$=no.setTimeout(()=>{Bb=void 0,Pb=void 0},PG)}}function VG(e){try{return e.target}catch{return null}}let jh;function Z5(e){const t="history";Ki(t,e),Zi(t,GG)}function GG(){if(!xG())return;const e=no.onpopstate;no.onpopstate=function(...n){const o=no.location.href,r=jh;if(jh=o,Or("history",{from:r,to:o}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...o){const r=o.length>2?o[2]:void 0;if(r){const a=jh,s=String(r);jh=s,Or("history",{from:a,to:s})}return n.apply(this,o)}}Oo(no.history,"pushState",t),Oo(no.history,"replaceState",t)}const $f={};function qG(e){const t=$f[e];if(t)return t;let n=no[e];if(Rb(n))return $f[e]=n.bind(no);const o=no.document;if(o&&typeof o.createElement=="function")try{const r=o.createElement("iframe");r.hidden=!0,o.head.appendChild(r);const a=r.contentWindow;a&&a[e]&&(n=a[e]),o.head.removeChild(r)}catch(r){FG&&Me.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,r)}return n&&($f[e]=n.bind(no))}function s$(e){$f[e]=void 0}const nu="__sentry_xhr_v3__";function XG(e){const t="xhr";Ki(t,e),Zi(t,JG)}function JG(){if(!no.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,o){const r=La()*1e3,a=Ia(o[0])?o[0].toUpperCase():void 0,s=YG(o[1]);if(!a||!s)return t.apply(n,o);n[nu]={method:a,url:s,request_headers:{}},a==="POST"&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const i=()=>{const l=n[nu];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const d={endTimestamp:La()*1e3,startTimestamp:r,xhr:n};Or("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,d,u){return i(),l.apply(d,u)}}):n.addEventListener("readystatechange",i),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,d,u){const[c,h]=u,f=d[nu];return f&&Ia(c)&&Ia(h)&&(f.request_headers[c.toLowerCase()]=h),l.apply(d,u)}}),t.apply(n,o)}}),e.send=new Proxy(e.send,{apply(t,n,o){const r=n[nu];if(!r)return t.apply(n,o);o[0]!==void 0&&(r.body=o[0]);const a={startTimestamp:La()*1e3,xhr:n};return Or("xhr",a),t.apply(n,o)}})}function YG(e){if(Ia(e))return e;try{return e.toString()}catch{}}function KG(e,t=qG("fetch")){let n=0,o=0;function r(a){const s=a.body.length;n+=s,o++;const i={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&o<15,...e.fetchOptions};if(!t)return s$("fetch"),Sm("No fetch implementation available");try{return t(e.url,i).then(l=>(n-=s,o--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return s$("fetch"),n-=s,o--,Sm(l)}}return HV(e,r)}const ZG=30,QG=50;function Hb(e,t,n,o){const r={filename:e,function:t===""?Mi:t,in_app:!0};return n!==void 0&&(r.lineno=n),o!==void 0&&(r.colno=o),r}const eq=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tq=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nq=/\((\S*)(?::(\d+))(?::(\d+))\)/,oq=e=>{const t=eq.exec(e);if(t){const[,o,r,a]=t;return Hb(o,Mi,+r,+a)}const n=tq.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=nq.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[r,a]=Q5(n[1]||Mi,n[2]);return Hb(a,r,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},rq=[ZG,oq],aq=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,sq=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,iq=e=>{const t=aq.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=sq.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let o=t[3],r=t[1]||Mi;return[r,o]=Q5(r,o),Hb(o,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},lq=[QG,iq],cq=[rq,lq],dq=$5(...cq),Q5=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,o=e.indexOf("safari-web-extension")!==-1;return n||o?[e.indexOf("@")!==-1?e.split("@")[0]:Mi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},zh=1024,uq="Breadcrumbs",pq=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:uq,setup(n){t.console&&dG(gq(n)),t.dom&&BG(mq(n,t.dom)),t.xhr&&XG(_q(n)),t.fetch&&yG(vq(n)),t.history&&Z5(yq(n)),t.sentry&&n.on("beforeSendEvent",fq(n))}}},hq=pq;function fq(e){return function(n){Xn()===e&&Ii({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ls(n)},{event:n})}}function mq(e,t){return function(o){if(Xn()!==e)return;let r,a,s=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;i&&i>zh&&(Fp&&Me.warn(`\`dom.maxStringLength\` cannot exceed ${zh}, but a value of ${i} was configured. Sentry will use ${zh} instead.`),i=zh),typeof s=="string"&&(s=[s]);try{const d=o.event,u=bq(d)?d.target:d;r=O5(u,{keyAttrs:s,maxStringLength:i}),a=KU(u)}catch{r=""}if(r.length===0)return;const l={category:`ui.${o.name}`,message:r};a&&(l.data={"ui.component_name":a}),Ii(l,{event:o.event,name:o.name,global:o.global})}}function gq(e){return function(n){if(Xn()!==e)return;const o={category:"console",data:{arguments:n.args,logger:"console"},level:pG(n.level),message:OC(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)o.message=`Assertion failed: ${OC(n.args.slice(1)," ")||"console.assert"}`,o.data.arguments=n.args.slice(1);else return;Ii(o,{input:n.args,level:n.level})}}function _q(e){return function(n){if(Xn()!==e)return;const{startTimestamp:o,endTimestamp:r}=n,a=n.xhr[nu];if(!o||!r||!a)return;const{method:s,url:i,status_code:l,body:d}=a,u={method:s,url:i,status_code:l},c={xhr:n.xhr,input:d,startTimestamp:o,endTimestamp:r},h=X5(l);Ii({category:"xhr",data:u,type:"http",level:h},c)}}function vq(e){return function(n){if(Xn()!==e)return;const{startTimestamp:o,endTimestamp:r}=n;if(r&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:o,endTimestamp:r};Ii({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},i={input:n.args,response:a,startTimestamp:o,endTimestamp:r},l=X5(s.status_code);Ii({category:"fetch",data:s,type:"http",level:l},i)}}}function yq(e){return function(n){if(Xn()!==e)return;let o=n.from,r=n.to;const a=Nv(Ot.location.href);let s=o?Nv(o):void 0;const i=Nv(r);(!s||!s.path)&&(s=a),a.protocol===i.protocol&&a.host===i.host&&(r=i.relative),a.protocol===s.protocol&&a.host===s.host&&(o=s.relative),Ii({category:"navigation",data:{from:o,to:r}})}}function bq(e){return!!e&&!!e.target}const wq=["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"],Sq="BrowserApiErrors",xq=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Sq,setupOnce(){t.setTimeout&&Oo(Ot,"setTimeout",i$),t.setInterval&&Oo(Ot,"setInterval",i$),t.requestAnimationFrame&&Oo(Ot,"requestAnimationFrame",$q),t.XMLHttpRequest&&"XMLHttpRequest"in Ot&&Oo(XMLHttpRequest.prototype,"send",kq);const n=t.eventTarget;n&&(Array.isArray(n)?n:wq).forEach(Eq)}}},Cq=xq;function i$(e){return function(...t){const n=t[0];return t[0]=Wc(n,{mechanism:{data:{function:Bs(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function $q(e){return function(t){return e.apply(this,[Wc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Bs(e)},handled:!1,type:"instrument"}})])}}function kq(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&Oo(n,r,function(a){const s={mechanism:{data:{function:r,handler:Bs(a)},handled:!1,type:"instrument"}},i=uw(a);return i&&(s.mechanism.data.handler=Bs(i)),Wc(a,s)})}),e.apply(this,t)}}function Eq(e){const n=Ot[e],o=n&&n.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(Oo(o,"addEventListener",function(r){return function(a,s,i){try{Tq(s)&&(s.handleEvent=Wc(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Bs(s),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[a,Wc(s,{mechanism:{data:{function:"addEventListener",handler:Bs(s),target:e},handled:!1,type:"instrument"}}),i])}}),Oo(o,"removeEventListener",function(r){return function(a,s,i){try{const l=s.__sentry_wrapped__;l&&r.call(this,a,l,i)}catch{}return r.call(this,a,s,i)}}))}function Tq(e){return typeof e.handleEvent=="function"}const Oq="GlobalHandlers",Dq=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Oq,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Mq(n),l$("onerror")),t.onunhandledrejection&&(Nq(n),l$("onunhandledrejection"))}}},Aq=Dq;function Mq(e){PU(t=>{const{stackParser:n,attachStacktrace:o}=e3();if(Xn()!==e||Y5())return;const{msg:r,url:a,line:s,column:i,error:l}=t,d=Rq(vw(n,l||r,void 0,o,!1),a,s,i);d.level="error",F5(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Nq(e){HU(t=>{const{stackParser:n,attachStacktrace:o}=e3();if(Xn()!==e||Y5())return;const r=jq(t),a=cw(r)?zq(r):vw(n,r,void 0,o,!0);a.level="error",F5(a,{originalException:r,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function jq(e){if(cw(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function zq(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Rq(e,t,n,o){const r=e.exception=e.exception||{},a=r.values=r.values||[],s=a[0]=a[0]||{},i=s.stacktrace=s.stacktrace||{},l=i.frames=i.frames||[],d=isNaN(parseInt(o,10))?void 0:o,u=isNaN(parseInt(n,10))?void 0:n,c=Ia(t)&&t.length>0?t:YU();return l.length===0&&l.push({colno:d,filename:c,function:Mi,in_app:!0,lineno:u}),e}function l$(e){Fp&&Me.log(`Global Handler attached: ${e}`)}function e3(){const e=Xn();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Iq=()=>({name:"HttpContext",preprocessEvent(e){if(!Ot.navigator&&!Ot.location&&!Ot.document)return;const t=e.request&&e.request.url||Ot.location&&Ot.location.href,{referrer:n}=Ot.document||{},{userAgent:o}=Ot.navigator||{},r={...e.request&&e.request.headers,...n&&{Referer:n},...o&&{"User-Agent":o}},a={...e.request,...t&&{url:t},headers:r};e.request=a}}),Lq="cause",Fq=5,Pq="LinkedErrors",Bq=(e={})=>{const t=e.limit||Fq,n=e.key||Lq;return{name:Pq,preprocessEvent(o,r,a){const s=a.getOptions();lG(gw,s.stackParser,s.maxValueLength,n,t,o,r)}}},Hq=Bq;function Uq(e){return[KV(),qV(),Cq(),hq(),Aq(),Hq(),V5(),Iq()]}function Wq(e={}){const t={defaultIntegrations:Uq(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ot.SENTRY_RELEASE&&Ot.SENTRY_RELEASE.id?Ot.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function Vq(){const e=typeof Ot.window<"u"&&Ot;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],o=n&&n.runtime&&n.runtime.id,r=Ot.location&&Ot.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],s=!!o&&Ot===Ot.top&&a.some(l=>r.startsWith(`${l}//`)),i=typeof e.nw<"u";return!!o&&!s&&!i}function Gq(e={}){const t=Wq(e);if(!t.skipBrowserExtensionCheck&&Vq()){Yi(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Fp&&(J5()||Me.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:LU(t.stackParser||dq),integrations:EV(t),transport:t.transport||KG},o=NV(LG,n);return t.autoSessionTracking&&qq(),o}function qq(){if(typeof Ot.document>"u"){Fp&&Me.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}GC({ignoreDuration:!0}),qC(),Z5(({from:e,to:t})=>{e!==void 0&&e!==t&&(GC({ignoreDuration:!0}),qC())})}const c$=te(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Xq=te(m.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),Jq=te(m.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),Yq=te(m.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"),Kq=te([m.jsx("path",{d:"M16.5 12h-9c-.55 0-1 .45-1 1v1h11v-1c0-.55-.45-1-1-1M7.25 8.5h4v2h-4zm5.5 0h4v2h-4z"},"0"),m.jsx("path",{d:"M20 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-1 15h-1.5v-1.5h-11V17H5v-3.83c0-.66.25-1.26.65-1.72V9c0-1.1.9-2 2-2H11c.37 0 .72.12 1 .32.28-.2.63-.32 1-.32h3.35c1.1 0 2 .9 2 2v2.45c.4.46.65 1.06.65 1.72z"},"1")],"BedroomParent"),Zq=te(m.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"),Qq=te(m.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"),eX=te(m.jsx("path",{d:"M22 24H2v-4h20zM13.06 5.19l3.75 3.75L7.75 18H4v-3.75zm4.82 2.68-3.75-3.75 1.83-1.83c.39-.39 1.02-.39 1.41 0l2.34 2.34c.39.39.39 1.02 0 1.41z"}),"BorderColor"),tX=te(m.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"),t3=te(m.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"),nX=te(m.jsx("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4"}),"Build"),oX=te(m.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"),Pp=te(m.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"),qn=te(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),rX=te(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Dt=te(m.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"),yw=te(m.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"),aX=te(m.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"}),"Construction"),sX=te(m.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"),n3=te(m.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"),iX=te(m.jsx("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"}),"DataObject"),Ns=te(m.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"),bw=te(m.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"),lX=te(m.jsx("path",{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4m-4-8c0-.55.45-1 1-1s1 .45 1 1h-1v1h1v2h-1v1h1v2h-2z"}),"DeviceThermostat"),Au=te(m.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"),cX=te(m.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-2h2zm0-4h-2V7h2z"}),"Error"),dX=te(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),c_=te(m.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}),"FileCopy"),uX=te(m.jsx("path",{d:"M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3"}),"FindInPage"),pX=te(m.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"),hX=te(m.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"),fX=te(m.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=te(m.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic"),gX=te(m.jsx("path",{d:"M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 18H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm2-7h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2h2v-2H5V5h14z"}),"Gradient"),_X=te(m.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"),vX=te(m.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"),yX=te(m.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"),o3=te(m.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"),bX=te(m.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),r3=te(m.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),wX=te(m.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),SX=te(m.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"),xX=te(m.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock"),CX=te(m.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-2m-5 14h-2V9h-2V7h4z"}),"LooksOne"),$X=te(m.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3"}),"ModeStandby"),kX=te(m.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"),EX=te(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),TX=te(m.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications"),OX=te(m.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"Palette"),a3=te(m.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"),Cm=te(m.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),s3=te(m.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"),i3=te(m.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"),Ub=te(m.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"),DX=te(m.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"),Wb=te(m.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"),d$=te(m.jsx("path",{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69s.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69"}),"SettingsApplications"),AX=te(m.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"),l3=te(m.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"),MX=te(m.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields"),NX=te(m.jsx("path",{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4m-4-2V5c0-.55.45-1 1-1s1 .45 1 1v1h-1v1h1v2h-1v1h1v1z"}),"Thermostat"),jX=te(m.jsx("path",{d:"M11 12V6c0-1.66-1.34-3-3-3S5 4.34 5 6v6c-1.21.91-2 2.37-2 4 0 1.12.38 2.14 1 2.97V19h.02c.91 1.21 2.35 2 3.98 2s3.06-.79 3.98-2H12v-.03c.62-.83 1-1.85 1-2.97 0-1.63-.79-3.09-2-4m-6 4c0-.94.45-1.84 1.2-2.4L7 13V6c0-.55.45-1 1-1s1 .45 1 1v7l.8.6c.75.57 1.2 1.46 1.2 2.4zM18.62 4h-1.61l-3.38 9h1.56l.81-2.3h3.63l.8 2.3H22zm-2.15 5.39 1.31-3.72h.08l1.31 3.72z"}),"ThermostatAuto"),zX=te(m.jsx("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-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"}),"ToggleOn"),RX=te(m.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),IX=te(m.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),LX=te(m.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"),FX=te(m.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),PX=te(m.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"),BX=te(m.jsx("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),HX=te(m.jsx("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),ou=te(m.jsx("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"}),"Wifi"),Rh=te(m.jsx("path",{d:"M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7zm-4 4c-1.29-1.29-2.84-2.13-4.49-2.56l3.53 3.53zM2 3.05 5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24C7.81 10.89 6.27 11.73 5 13v.01L6.99 15c1.36-1.36 3.14-2.04 4.92-2.06L18.98 20l1.27-1.26L3.29 1.79zM9 17l3 3 3-3c-1.65-1.66-4.34-1.66-6 0"}),"WifiOff");function UX(){console.log(` +Url: ${xm(e)}`),!0)}function tG(e,t){return e.type||!t||!t.length?!1:aG(e).some(n=>s_(n,t))}function nG(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?s_(n,t):!1}function oG(e,t){if(!t||!t.length)return!1;const n=xm(e);return n?s_(n,t):!1}function rG(e,t){if(!t||!t.length)return!0;const n=xm(e);return n?s_(n,t):!0}function aG(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function sG(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function iG(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function xm(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?iG(t):null}catch{return Et&&Me.error(`Cannot extract url for event ${ls(e)}`),null}}function lG(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function cG(e,t,n=250,o,r,a,s){if(!a.exception||!a.exception.values||!s||!Ni(s.originalException,Error))return;const i=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;i&&(a.exception.values=dG(zb(e,t,r,s.originalException,o,a.exception.values,i,0),n))}function zb(e,t,n,o,r,a,s,i){if(a.length>=n+1)return a;let l=[...a];if(Ni(o[r],Error)){t$(s,i);const d=e(t,o[r]),u=l.length;n$(d,r,u,i),l=zb(e,t,n,o[r],r,[d,...l],d,u)}return Array.isArray(o.errors)&&o.errors.forEach((d,u)=>{if(Ni(d,Error)){t$(s,i);const c=e(t,d),h=l.length;n$(c,`errors[${u}]`,h,i),l=zb(e,t,n,d,r,[c,...l],c,h)}}),l}function t$(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function n$(e,t,n,o){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:o}}function dG(e,t){return e.map(n=>(n.value&&(n.value=vc(n.value,t)),n))}function Nv(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:o,relative:t[5]+n+o}}function uG(e){const t="console";Ki(t,e),Zi(t,pG)}function pG(){"console"in pt&&Tb.forEach(function(e){e in pt.console&&Oo(pt.console,e,function(t){return wm[e]=t,function(...n){Or("console",{args:n,level:e});const r=wm[e];r&&r.apply(pt.console,n)}})})}function hG(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const fG="Dedupe",mG=()=>{let e;return{name:fG,processEvent(t){if(t.type)return t;try{if(gG(t,e))return Et&&Me.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},q5=mG;function gG(e,t){return t?!!(_G(e,t)||vG(e,t)):!1}function _G(e,t){const n=e.message,o=t.message;return!(!n&&!o||n&&!o||!n&&o||n!==o||!J5(e,t)||!X5(e,t))}function vG(e,t){const n=o$(t),o=o$(e);return!(!n||!o||n.type!==o.type||n.value!==o.value||!J5(e,t)||!X5(e,t))}function X5(e,t){let n=EC(e),o=EC(t);if(!n&&!o)return!0;if(n&&!o||!n&&o||(n=n,o=o,o.length!==n.length))return!1;for(let r=0;r=400&&e<500?"warning":e>=500?"error":void 0}const Rb=pt;function K5(){if(!("fetch"in Rb))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ib(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function yG(){if(typeof EdgeRuntime=="string")return!0;if(!K5())return!1;if(Ib(Rb.fetch))return!0;let e=!1;const t=Rb.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ib(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Ji&&Me.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function bG(e,t){const n="fetch";Ki(n,e),Zi(n,()=>wG(void 0,t))}function wG(e,t=!1){t&&!yG()||Oo(pt,"fetch",function(n){return function(...o){const{method:r,url:a}=SG(o),s={args:o,fetchData:{method:r,url:a},startTimestamp:La()*1e3};Or("fetch",{...s});const i=new Error().stack;return n.apply(pt,o).then(async l=>(Or("fetch",{...s,endTimestamp:La()*1e3,response:l}),l),l=>{throw Or("fetch",{...s,endTimestamp:La()*1e3,error:l}),lw(l)&&l.stack===void 0&&(l.stack=i,ji(l,"framesToPop",1)),l})}})}function Lb(e,t){return!!e&&typeof e=="object"&&!!e[t]}function r$(e){return typeof e=="string"?e:e?Lb(e,"url")?e.url:e.toString?e.toString():"":""}function SG(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,o]=e;return{url:r$(n),method:Lb(o,"method")?String(o.method).toUpperCase():"GET"}}const t=e[0];return{url:r$(t),method:Lb(t,"method")?String(t.method).toUpperCase():"GET"}}function xG(){return"npm"}const Nh=pt;function CG(){const e=Nh.chrome,t=e&&e.app&&e.app.runtime,n="history"in Nh&&!!Nh.history.pushState&&!!Nh.history.replaceState;return!t&&n}const Ot=pt;let Fb=0;function Z5(){return Fb>0}function $G(){Fb++,setTimeout(()=>{Fb--})}function Wc(e,t={}){function n(r){return typeof r=="function"}if(!n(e))return e;try{const r=e.__sentry_wrapped__;if(r)return typeof r=="function"?r:e;if(pw(e))return e}catch{return e}const o=function(...r){try{const a=r.map(s=>Wc(s,t));return e.apply(this,a)}catch(a){throw $G(),mW(s=>{s.addEventProcessor(i=>(t.mechanism&&(Db(i,void 0),cp(i,t.mechanism)),i.extra={...i.extra,arguments:r},i)),wV(a)}),a}};try{for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r])}catch{}M5(o,e),ji(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get(){return e.name}})}catch{}return o}const Fp=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function _w(e,t){const n=vw(e,t),o={type:DG(t),value:AG(t)};return n.length&&(o.stacktrace={frames:n}),o.type===void 0&&o.value===""&&(o.value="Unrecoverable error caught"),o}function kG(e,t,n,o){const r=Xn(),a=r&&r.getOptions().normalizeDepth,s=RG(t),i={__serialized__:F5(t,a)};if(s)return{exception:{values:[_w(e,s)]},extra:i};const l={exception:{values:[{type:r_(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:jG(t,{isUnhandledRejection:o})}]},extra:i};if(n){const d=vw(e,n);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function jv(e,t){return{exception:{values:[_w(e,t)]}}}function vw(e,t){const n=t.stacktrace||t.stack||"",o=TG(t),r=OG(t);try{return e(n,o,r)}catch{}return[]}const EG=/Minified React error #\d+;/i;function TG(e){return e&&EG.test(e.message)?1:0}function OG(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Q5(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function DG(e){const t=e&&e.name;return!t&&Q5(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function AG(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Q5(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function MG(e,t,n,o){const r=n&&n.syntheticException||void 0,a=yw(e,t,r,o);return cp(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),zi(a)}function NG(e,t,n="info",o,r){const a=o&&o.syntheticException||void 0,s=Pb(e,t,a,r);return s.level=n,o&&o.event_id&&(s.event_id=o.event_id),zi(s)}function yw(e,t,n,o,r){let a;if(O5(t)&&t.error)return jv(e,t.error);if(OC(t)||VU(t)){const s=t;if("stack"in t)a=jv(e,t);else{const i=s.name||(OC(s)?"DOMError":"DOMException"),l=s.message?`${i}: ${s.message}`:i;a=Pb(e,l,n,o),Db(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return lw(t)?jv(e,t):Bc(t)||r_(t)?(a=kG(e,t,n,r),cp(a,{synthetic:!0}),a):(a=Pb(e,t,n,o),Db(a,`${t}`),cp(a,{synthetic:!0}),a)}function Pb(e,t,n,o){const r={};if(o&&n){const a=vw(e,n);a.length&&(r.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(cw(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return r.logentry={message:a,params:s},r}return r.message=t,r}function jG(e,{isUnhandledRejection:t}){const n=eW(e),o=t?"promise rejection":"exception";return O5(e)?`Event \`ErrorEvent\` captured as ${o} with message \`${e.message}\``:r_(e)?`Event \`${zG(e)}\` (type=${e.type}) captured as ${o}`:`Object captured as ${o} with keys: ${n}`}function zG(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function RG(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function IG(e,{metadata:t,tunnel:n,dsn:o}){const r={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!o&&{dsn:l_(o)}},a=LG(e);return Lp(r,[a])}function LG(e){return[{type:"user_report"},e]}class FG extends AV{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},o=Ot.SENTRY_SDK_SOURCE||xG();WV(n,"browser",["browser"],o),super(n),n.sendClientReports&&Ot.document&&Ot.document.addEventListener("visibilitychange",()=>{Ot.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return MG(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",o){return NG(this._options.stackParser,t,n,o,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Fp&&Me.warn("SDK not enabled, will not capture user feedback.");return}const n=IG(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,o)}}const PG=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,no=pt,BG=1e3;let a$,Bb,Hb;function HG(e){const t="dom";Ki(t,e),Zi(t,UG)}function UG(){if(!no.document)return;const e=Or.bind(null,"dom"),t=s$(e,!0);no.document.addEventListener("click",t,!1),no.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=no[n],a=r&&r.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(Oo(a,"addEventListener",function(s){return function(i,l,d){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},c=u[i]=u[i]||{refCount:0};if(!c.handler){const h=s$(e);c.handler=h,s.call(this,i,h,d)}c.refCount++}catch{}return s.call(this,i,l,d)}}),Oo(a,"removeEventListener",function(s){return function(i,l,d){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},c=u[i];c&&(c.refCount--,c.refCount<=0&&(s.call(this,i,c.handler,d),c.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,i,l,d)}}))})}function WG(e){if(e.type!==Bb)return!1;try{if(!e.target||e.target._sentryId!==Hb)return!1}catch{}return!0}function VG(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function s$(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const o=GG(n);if(VG(n.type,o))return;ji(n,"_sentryCaptured",!0),o&&!o._sentryId&&ji(o,"_sentryId",ir());const r=n.type==="keypress"?"input":n.type;WG(n)||(e({event:n,name:r,global:t}),Bb=n.type,Hb=o?o._sentryId:void 0),clearTimeout(a$),a$=no.setTimeout(()=>{Hb=void 0,Bb=void 0},BG)}}function GG(e){try{return e.target}catch{return null}}let jh;function e3(e){const t="history";Ki(t,e),Zi(t,qG)}function qG(){if(!CG())return;const e=no.onpopstate;no.onpopstate=function(...n){const o=no.location.href,r=jh;if(jh=o,Or("history",{from:r,to:o}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...o){const r=o.length>2?o[2]:void 0;if(r){const a=jh,s=String(r);jh=s,Or("history",{from:a,to:s})}return n.apply(this,o)}}Oo(no.history,"pushState",t),Oo(no.history,"replaceState",t)}const $f={};function XG(e){const t=$f[e];if(t)return t;let n=no[e];if(Ib(n))return $f[e]=n.bind(no);const o=no.document;if(o&&typeof o.createElement=="function")try{const r=o.createElement("iframe");r.hidden=!0,o.head.appendChild(r);const a=r.contentWindow;a&&a[e]&&(n=a[e]),o.head.removeChild(r)}catch(r){PG&&Me.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,r)}return n&&($f[e]=n.bind(no))}function i$(e){$f[e]=void 0}const nu="__sentry_xhr_v3__";function JG(e){const t="xhr";Ki(t,e),Zi(t,YG)}function YG(){if(!no.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,o){const r=La()*1e3,a=Ia(o[0])?o[0].toUpperCase():void 0,s=KG(o[1]);if(!a||!s)return t.apply(n,o);n[nu]={method:a,url:s,request_headers:{}},a==="POST"&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const i=()=>{const l=n[nu];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const d={endTimestamp:La()*1e3,startTimestamp:r,xhr:n};Or("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,d,u){return i(),l.apply(d,u)}}):n.addEventListener("readystatechange",i),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,d,u){const[c,h]=u,f=d[nu];return f&&Ia(c)&&Ia(h)&&(f.request_headers[c.toLowerCase()]=h),l.apply(d,u)}}),t.apply(n,o)}}),e.send=new Proxy(e.send,{apply(t,n,o){const r=n[nu];if(!r)return t.apply(n,o);o[0]!==void 0&&(r.body=o[0]);const a={startTimestamp:La()*1e3,xhr:n};return Or("xhr",a),t.apply(n,o)}})}function KG(e){if(Ia(e))return e;try{return e.toString()}catch{}}function ZG(e,t=XG("fetch")){let n=0,o=0;function r(a){const s=a.body.length;n+=s,o++;const i={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&o<15,...e.fetchOptions};if(!t)return i$("fetch"),Sm("No fetch implementation available");try{return t(e.url,i).then(l=>(n-=s,o--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return i$("fetch"),n-=s,o--,Sm(l)}}return UV(e,r)}const QG=30,eq=50;function Ub(e,t,n,o){const r={filename:e,function:t===""?Mi:t,in_app:!0};return n!==void 0&&(r.lineno=n),o!==void 0&&(r.colno=o),r}const tq=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nq=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,oq=/\((\S*)(?::(\d+))(?::(\d+))\)/,rq=e=>{const t=tq.exec(e);if(t){const[,o,r,a]=t;return Ub(o,Mi,+r,+a)}const n=nq.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=oq.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[r,a]=t3(n[1]||Mi,n[2]);return Ub(a,r,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},aq=[QG,rq],sq=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,iq=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,lq=e=>{const t=sq.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=iq.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let o=t[3],r=t[1]||Mi;return[r,o]=t3(r,o),Ub(o,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},cq=[eq,lq],dq=[aq,cq],uq=E5(...dq),t3=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,o=e.indexOf("safari-web-extension")!==-1;return n||o?[e.indexOf("@")!==-1?e.split("@")[0]:Mi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},zh=1024,pq="Breadcrumbs",hq=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:pq,setup(n){t.console&&uG(_q(n)),t.dom&&HG(gq(n,t.dom)),t.xhr&&JG(vq(n)),t.fetch&&bG(yq(n)),t.history&&e3(bq(n)),t.sentry&&n.on("beforeSendEvent",mq(n))}}},fq=hq;function mq(e){return function(n){Xn()===e&&Ii({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ls(n)},{event:n})}}function gq(e,t){return function(o){if(Xn()!==e)return;let r,a,s=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;i&&i>zh&&(Fp&&Me.warn(`\`dom.maxStringLength\` cannot exceed ${zh}, but a value of ${i} was configured. Sentry will use ${zh} instead.`),i=zh),typeof s=="string"&&(s=[s]);try{const d=o.event,u=wq(d)?d.target:d;r=A5(u,{keyAttrs:s,maxStringLength:i}),a=ZU(u)}catch{r=""}if(r.length===0)return;const l={category:`ui.${o.name}`,message:r};a&&(l.data={"ui.component_name":a}),Ii(l,{event:o.event,name:o.name,global:o.global})}}function _q(e){return function(n){if(Xn()!==e)return;const o={category:"console",data:{arguments:n.args,logger:"console"},level:hG(n.level),message:DC(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)o.message=`Assertion failed: ${DC(n.args.slice(1)," ")||"console.assert"}`,o.data.arguments=n.args.slice(1);else return;Ii(o,{input:n.args,level:n.level})}}function vq(e){return function(n){if(Xn()!==e)return;const{startTimestamp:o,endTimestamp:r}=n,a=n.xhr[nu];if(!o||!r||!a)return;const{method:s,url:i,status_code:l,body:d}=a,u={method:s,url:i,status_code:l},c={xhr:n.xhr,input:d,startTimestamp:o,endTimestamp:r},h=Y5(l);Ii({category:"xhr",data:u,type:"http",level:h},c)}}function yq(e){return function(n){if(Xn()!==e)return;const{startTimestamp:o,endTimestamp:r}=n;if(r&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:o,endTimestamp:r};Ii({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},i={input:n.args,response:a,startTimestamp:o,endTimestamp:r},l=Y5(s.status_code);Ii({category:"fetch",data:s,type:"http",level:l},i)}}}function bq(e){return function(n){if(Xn()!==e)return;let o=n.from,r=n.to;const a=Nv(Ot.location.href);let s=o?Nv(o):void 0;const i=Nv(r);(!s||!s.path)&&(s=a),a.protocol===i.protocol&&a.host===i.host&&(r=i.relative),a.protocol===s.protocol&&a.host===s.host&&(o=s.relative),Ii({category:"navigation",data:{from:o,to:r}})}}function wq(e){return!!e&&!!e.target}const Sq=["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"],xq="BrowserApiErrors",Cq=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:xq,setupOnce(){t.setTimeout&&Oo(Ot,"setTimeout",l$),t.setInterval&&Oo(Ot,"setInterval",l$),t.requestAnimationFrame&&Oo(Ot,"requestAnimationFrame",kq),t.XMLHttpRequest&&"XMLHttpRequest"in Ot&&Oo(XMLHttpRequest.prototype,"send",Eq);const n=t.eventTarget;n&&(Array.isArray(n)?n:Sq).forEach(Tq)}}},$q=Cq;function l$(e){return function(...t){const n=t[0];return t[0]=Wc(n,{mechanism:{data:{function:Bs(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function kq(e){return function(t){return e.apply(this,[Wc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Bs(e)},handled:!1,type:"instrument"}})])}}function Eq(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&Oo(n,r,function(a){const s={mechanism:{data:{function:r,handler:Bs(a)},handled:!1,type:"instrument"}},i=pw(a);return i&&(s.mechanism.data.handler=Bs(i)),Wc(a,s)})}),e.apply(this,t)}}function Tq(e){const n=Ot[e],o=n&&n.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(Oo(o,"addEventListener",function(r){return function(a,s,i){try{Oq(s)&&(s.handleEvent=Wc(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Bs(s),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[a,Wc(s,{mechanism:{data:{function:"addEventListener",handler:Bs(s),target:e},handled:!1,type:"instrument"}}),i])}}),Oo(o,"removeEventListener",function(r){return function(a,s,i){try{const l=s.__sentry_wrapped__;l&&r.call(this,a,l,i)}catch{}return r.call(this,a,s,i)}}))}function Oq(e){return typeof e.handleEvent=="function"}const Dq="GlobalHandlers",Aq=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Dq,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Nq(n),c$("onerror")),t.onunhandledrejection&&(jq(n),c$("onunhandledrejection"))}}},Mq=Aq;function Nq(e){BU(t=>{const{stackParser:n,attachStacktrace:o}=n3();if(Xn()!==e||Z5())return;const{msg:r,url:a,line:s,column:i,error:l}=t,d=Iq(yw(n,l||r,void 0,o,!1),a,s,i);d.level="error",B5(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function jq(e){UU(t=>{const{stackParser:n,attachStacktrace:o}=n3();if(Xn()!==e||Z5())return;const r=zq(t),a=dw(r)?Rq(r):yw(n,r,void 0,o,!0);a.level="error",B5(a,{originalException:r,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function zq(e){if(dw(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Rq(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Iq(e,t,n,o){const r=e.exception=e.exception||{},a=r.values=r.values||[],s=a[0]=a[0]||{},i=s.stacktrace=s.stacktrace||{},l=i.frames=i.frames||[],d=isNaN(parseInt(o,10))?void 0:o,u=isNaN(parseInt(n,10))?void 0:n,c=Ia(t)&&t.length>0?t:KU();return l.length===0&&l.push({colno:d,filename:c,function:Mi,in_app:!0,lineno:u}),e}function c$(e){Fp&&Me.log(`Global Handler attached: ${e}`)}function n3(){const e=Xn();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Lq=()=>({name:"HttpContext",preprocessEvent(e){if(!Ot.navigator&&!Ot.location&&!Ot.document)return;const t=e.request&&e.request.url||Ot.location&&Ot.location.href,{referrer:n}=Ot.document||{},{userAgent:o}=Ot.navigator||{},r={...e.request&&e.request.headers,...n&&{Referer:n},...o&&{"User-Agent":o}},a={...e.request,...t&&{url:t},headers:r};e.request=a}}),Fq="cause",Pq=5,Bq="LinkedErrors",Hq=(e={})=>{const t=e.limit||Pq,n=e.key||Fq;return{name:Bq,preprocessEvent(o,r,a){const s=a.getOptions();cG(_w,s.stackParser,s.maxValueLength,n,t,o,r)}}},Uq=Hq;function Wq(e){return[ZV(),XV(),$q(),fq(),Mq(),Uq(),q5(),Lq()]}function Vq(e={}){const t={defaultIntegrations:Wq(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ot.SENTRY_RELEASE&&Ot.SENTRY_RELEASE.id?Ot.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function Gq(){const e=typeof Ot.window<"u"&&Ot;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],o=n&&n.runtime&&n.runtime.id,r=Ot.location&&Ot.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],s=!!o&&Ot===Ot.top&&a.some(l=>r.startsWith(`${l}//`)),i=typeof e.nw<"u";return!!o&&!s&&!i}function qq(e={}){const t=Vq(e);if(!t.skipBrowserExtensionCheck&&Gq()){Yi(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Fp&&(K5()||Me.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:FU(t.stackParser||uq),integrations:TV(t),transport:t.transport||ZG},o=jV(FG,n);return t.autoSessionTracking&&Xq(),o}function Xq(){if(typeof Ot.document>"u"){Fp&&Me.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}qC({ignoreDuration:!0}),XC(),e3(({from:e,to:t})=>{e!==void 0&&e!==t&&(qC({ignoreDuration:!0}),XC())})}const d$=te(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Jq=te(m.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),Yq=te(m.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),Kq=te(m.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"),Zq=te([m.jsx("path",{d:"M16.5 12h-9c-.55 0-1 .45-1 1v1h11v-1c0-.55-.45-1-1-1M7.25 8.5h4v2h-4zm5.5 0h4v2h-4z"},"0"),m.jsx("path",{d:"M20 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-1 15h-1.5v-1.5h-11V17H5v-3.83c0-.66.25-1.26.65-1.72V9c0-1.1.9-2 2-2H11c.37 0 .72.12 1 .32.28-.2.63-.32 1-.32h3.35c1.1 0 2 .9 2 2v2.45c.4.46.65 1.06.65 1.72z"},"1")],"BedroomParent"),Qq=te(m.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"),eX=te(m.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"),tX=te(m.jsx("path",{d:"M22 24H2v-4h20zM13.06 5.19l3.75 3.75L7.75 18H4v-3.75zm4.82 2.68-3.75-3.75 1.83-1.83c.39-.39 1.02-.39 1.41 0l2.34 2.34c.39.39.39 1.02 0 1.41z"}),"BorderColor"),nX=te(m.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"),o3=te(m.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"),oX=te(m.jsx("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4"}),"Build"),rX=te(m.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"),Pp=te(m.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"),qn=te(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),aX=te(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Dt=te(m.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"),bw=te(m.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"),sX=te(m.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"}),"Construction"),iX=te(m.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"),r3=te(m.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"),lX=te(m.jsx("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"}),"DataObject"),Ns=te(m.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"),ww=te(m.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"),cX=te(m.jsx("path",{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4m-4-8c0-.55.45-1 1-1s1 .45 1 1h-1v1h1v2h-1v1h1v2h-2z"}),"DeviceThermostat"),Au=te(m.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"),dX=te(m.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-2h2zm0-4h-2V7h2z"}),"Error"),uX=te(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),c_=te(m.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}),"FileCopy"),pX=te(m.jsx("path",{d:"M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3"}),"FindInPage"),hX=te(m.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"),fX=te(m.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"),mX=te(m.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"),gX=te(m.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic"),_X=te(m.jsx("path",{d:"M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 18H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm2-7h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2h2v-2H5V5h14z"}),"Gradient"),vX=te(m.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"),yX=te(m.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"),bX=te(m.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"),a3=te(m.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"),wX=te(m.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),s3=te(m.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),SX=te(m.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),xX=te(m.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"),CX=te(m.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock"),$X=te(m.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-2m-5 14h-2V9h-2V7h4z"}),"LooksOne"),kX=te(m.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3"}),"ModeStandby"),EX=te(m.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"),TX=te(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),OX=te(m.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications"),DX=te(m.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"Palette"),i3=te(m.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"),Cm=te(m.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),l3=te(m.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"),c3=te(m.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"),Wb=te(m.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"),AX=te(m.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"),Vb=te(m.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"),u$=te(m.jsx("path",{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69s.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69"}),"SettingsApplications"),MX=te(m.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"),d3=te(m.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"),NX=te(m.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields"),jX=te(m.jsx("path",{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4m-4-2V5c0-.55.45-1 1-1s1 .45 1 1v1h-1v1h1v2h-1v1h1v1z"}),"Thermostat"),zX=te(m.jsx("path",{d:"M11 12V6c0-1.66-1.34-3-3-3S5 4.34 5 6v6c-1.21.91-2 2.37-2 4 0 1.12.38 2.14 1 2.97V19h.02c.91 1.21 2.35 2 3.98 2s3.06-.79 3.98-2H12v-.03c.62-.83 1-1.85 1-2.97 0-1.63-.79-3.09-2-4m-6 4c0-.94.45-1.84 1.2-2.4L7 13V6c0-.55.45-1 1-1s1 .45 1 1v7l.8.6c.75.57 1.2 1.46 1.2 2.4zM18.62 4h-1.61l-3.38 9h1.56l.81-2.3h3.63l.8 2.3H22zm-2.15 5.39 1.31-3.72h.08l1.31 3.72z"}),"ThermostatAuto"),RX=te(m.jsx("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-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"}),"ToggleOn"),IX=te(m.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),LX=te(m.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),FX=te(m.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"),PX=te(m.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),BX=te(m.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"),HX=te(m.jsx("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),UX=te(m.jsx("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),ou=te(m.jsx("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"}),"Wifi"),Rh=te(m.jsx("path",{d:"M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7zm-4 4c-1.29-1.29-2.84-2.13-4.49-2.56l3.53 3.53zM2 3.05 5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24C7.81 10.89 6.27 11.73 5 13v.01L6.99 15c1.36-1.36 3.14-2.04 4.92-2.06L18.98 20l1.27-1.26L3.29 1.79zM9 17l3 3 3-3c-1.65-1.66-4.34-1.66-6 0"}),"WifiOff");function WX(){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 :)")}const WX=` +`),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 :)")}const VX=` /** * Copyright 2018-2024 Denis Haev (bluefox) * @@ -500,10 +500,10 @@ Url: ${xm(e)}`),!0)}function eG(e,t){return e.type||!t||!t.length?!1:rG(e).some( .logo-animate-color-outside-blue { animation: logo-color-outside-blue 1.5s; } -`;function c3(e){C.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const o=window.document.createElement("style");o.setAttribute("id","loader-iobroker-component"),o.innerHTML=WX,window.document.head.appendChild(o)}},[]);const t=e.size||234,n=e.themeName||e.theme||e.themeType||"light";return p.createElement("div",{className:`logo-back logo-background-${n}`,style:{backgroundImage:e.backgroundImage&&e.backgroundImage!=="@@loginBackgroundImage@@"?e.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:e.backgroundColor&&e.backgroundColor!=="@@loginBackgroundColor@@"?e.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:p.createElement(p.Fragment,null,p.createElement("div",{className:"logo-div",style:{width:t,height:t}},p.createElement("div",{className:`logo-top logo-background-${n}`,style:{left:"37%"}}),p.createElement("div",{className:`logo-top logo-background-${n}`,style:{left:"57%"}}),p.createElement("div",{className:`logo-border logo-background-${n} logo-animate-wait`,style:{borderWidth:t*.132}}),p.createElement("div",{className:`logo-i logo-animate-color-inside-${n}`}),p.createElement("div",{className:`logo-i-top logo-animate-color-inside-${n}`,style:{top:"18%"}}),p.createElement("div",{className:`logo-i-top logo-animate-color-inside-${n}`,style:{bottom:"18%"}})),p.createElement("div",{className:`logo-animate-grow logo-animate-grow-${n}`,style:{width:t+11,height:t+11}})))}class Mu extends C.Component{constructor(n){super(n);F(this,"onHashChangedBound");this.onHashChangedBound=this.onHashChanged.bind(this)}componentDidMount(){window.addEventListener("hashchange",this.onHashChangedBound)}componentWillUnmount(){window.removeEventListener("hashchange",this.onHashChangedBound)}onHashChanged(){}static getLocation(){let n=window.location.hash;n=n.replace(/^#/,"");const o=n.split("/").map(r=>{try{return r?decodeURIComponent(r):""}catch{return console.error(`Router: Cannot decode ${r}`),r}});return{tab:o[0]||"",dialog:o[1]||"",id:o[2]||"",arg:o[3]||""}}static doNavigate(n,o,r,a){let s="";const i=Mu.getLocation();a!==void 0&&!r&&(r=i.id),r&&!o&&(o=i.dialog),(o&&!n||n===null)&&(n=i.tab),n&&(s=`#${n}`,o&&(s+=`/${o}`,r&&(s+=`/${r}`,a!==void 0&&(s+=`/${a}`)))),window.location.hash!==s&&(window.location.hash=s)}}function VX(){const e=document.getSelection();if(!(e!=null&&e.rangeCount))return()=>{};let t=document.activeElement;const n=[];for(let o=0;o{e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(o=>e.addRange(o)),t&&t.focus()}}const u$={"text/plain":"Text","text/html":"Url",default:"Text"},GX="Copy to clipboard: #{key}, Enter";function qX(e){const t=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return e.replace(/#{\s*key\s*}/g,t)}function XX(e,t){let n,o,r,a,s=!1;t=t||{};const i=t.debug||!1;try{if(n=VX(),o=document.createRange(),r=document.getSelection(),a=document.createElement("span"),a.textContent=e,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",d=>{var u,c,h,f;if(d.stopPropagation(),t!=null&&t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),(u=window.clipboardData)==null||u.clearData();const g=u$[t.format]||u$.default;(c=window.clipboardData)==null||c.setData(g,e)}else(h=d.clipboardData)==null||h.clearData(),(f=d.clipboardData)==null||f.setData(t.format,e)}),document.body.appendChild(a),o.selectNodeContents(a),r==null||r.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(l){i&&console.error("unable to copy using execCommand: ",l),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),s=!0}catch(d){i&&console.error("unable to copy using clipboardData: ",d),i&&console.error("falling back to prompt");const u=qX("message"in t?t.message||"":GX);window.prompt(u,e)}}finally{r&&(o&&typeof r.removeRange=="function"?r.removeRange(o):r.removeAllRanges()),a&&document.body.removeChild(a),n&&n()}return s}const ft=class ft{static setLanguage(t){t&&(ft.lang=t)}static extendTranslations(t,n){if(t.prefix){const o=t;if(typeof o.prefix=="string"){const r=o.prefix;delete o.prefix,Object.keys(o).forEach(a=>{const s=a,i={},l=o[s];Object.keys(l).forEach(d=>{d&&l&&(d.startsWith(r)?i[d]=l[d]:i[`${r}${d}`]=l[d])}),t[s]=i})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!n)t.en&&t.de&&t.ru?Object.keys(t).forEach(o=>{const r=o;ft.translations[r]=ft.translations[r]||{};const a=ft.translations[r];Object.assign(a,t[r])}):Object.keys(t).forEach(o=>{const r=t[o];Object.keys(r).forEach(a=>{const s=a,i=ft.translations[s];i?i[o]?i[o]!==r[s]&&console.warn(`Translation for word "${o}" in "${s}" was ignored: existing = "${i[o]}", new = ${r[s]}`):i[o]=r[s]:console.warn(`Used unknown language: ${s}`)})});else{ft.translations[n]||console.warn(`Used unknown language: ${n}`),ft.translations[n]=ft.translations[n]||{};const o=ft.translations[n];o&&Object.keys(t).forEach(r=>{o[r]?o[r]!==t[r]&&console.warn(`Translation for word "${r}" in "${n}" was ignored: existing = "${o[r]}", new = ${t[r]}`):o[r]=t[r]})}}catch(o){console.error(`Cannot apply translations: ${o}`)}}static setTranslations(t){t&&(ft.translations=t)}static getLanguage(){return ft.lang}static t(t,...n){const o=ft.translations[ft.lang];if(o){const r=o[t];if(r)t=r;else if(ft.unknownTranslations.includes(t)||(ft.unknownTranslations.push(t),!ft._disableWarning&&console.log(`Translate: ${t}`)),ft.lang!=="en"&&ft.translations.en){const a=ft.translations.en[t];a&&(t=a)}}for(const r of n)t=t.replace("%s",r);return t}static i18nShow(t){const n={};t?typeof t=="string"?(ft.unknownTranslations.forEach(o=>{o.startsWith(t)&&(n[o]=o.replace(t,""))}),console.log(JSON.stringify(n,null,2))):typeof t=="object"&&(ft.unknownTranslations.forEach(o=>{t.test(o)&&(n[o]=o)}),console.log(JSON.stringify(n,null,2))):(ft.unknownTranslations.forEach(o=>n[o]=o),console.log(JSON.stringify(n,null,2)))}static disableWarning(t){ft._disableWarning=!!t}};F(ft,"translations",{}),F(ft,"unknownTranslations",[]),F(ft,"lang",window.sysLang||"en"),F(ft,"_disableWarning",!1);let E=ft;window.i18nShow=E.i18nShow;window.i18nDisableWarning=E.disableWarning;const Ir="material",JX=["Su","Mo","Tu","We","Th","Fr","Sa"],YX=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],zv={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"},p$={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},kt=class kt{static CapitalWords(t){return(t||"").split(/[\s_]/).filter(n=>n).map(n=>n?n[0].toUpperCase()+n.substring(1).toLowerCase():"").join(" ")}static formatSeconds(t){const n=Math.floor(t/86400);t%=3600*24;const o=Math.floor(t/3600).toString().padStart(2,"0");t%=3600;const r=Math.floor(t/60).toString().padStart(2,"0");t%=60;const a=Math.floor(t).toString().padStart(2,"0");let s="";return n&&(s+=`${n} ${E.t("ra_daysShortText")} `),s+=`${o}:${r}:${a}`,s}static getObjectName(t,n,o,r,a){var l;const s=t[n];let i;if(typeof o=="string"&&!r&&(r={language:o},o=null),r=r||{},r.language||(r.language=t["system.config"]&&t["system.config"].common&&t["system.config"].common.language||window.sysLang||"en"),o!=null&&o.name){const d=o.name;typeof d=="object"?i=r.language&&d[r.language]||d.en:i=d}else if(a&&((l=s==null?void 0:s.common)!=null&&l.desc)){const d=s.common.desc;typeof d=="object"?i=r.language&&d[r.language]||d.en||d.de||d.ru||"":i=d,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}else if(!a&&(s!=null&&s.common)){const d=s.common.name||s.common.desc;d&&typeof d=="object"?i=r.language&&d[r.language]||d.en||d.de||d.ru||"":i=d,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}else{const d=n.lastIndexOf(".");i=n.substring(d+1).replace(/[_.]/g," "),i=kt.CapitalWords(i)}return(i==null?void 0:i.trim())||""}static getObjectNameFromObj(t,n,o,r,a){var l,d;const s=t;let i=t&&t._id||"";if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},n!=null&&n.name){const u=n.name;typeof u=="object"?i=o.language&&u[o.language]||u.en:i=u}else if(r&&((l=s==null?void 0:s.common)!=null&&l.desc)){const u=s.common.desc;typeof u=="object"?i=o.language&&u[o.language]||u.en:i=u,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}else if(!r&&((d=s==null?void 0:s.common)!=null&&d.name)){let u=s.common.name;!u&&s.common.desc&&(u=s.common.desc),typeof u=="object"?i=o.language&&u[o.language]||u.en:i=u,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}return a?i:i.trim()}static getSettingsOrder(t,n,o){let r;t&&Object.prototype.hasOwnProperty.call(t,"common")?r=t.common:r=t;let a;if(r!=null&&r.custom){a=r.custom[Ir];const s=o.user||"admin";if(a&&a[s]){if(n){if(a[s].subOrder&&a[s].subOrder[n])return JSON.parse(JSON.stringify(a[s].subOrder[n]))}else if(a[s].order)return JSON.parse(JSON.stringify(a[s].order))}}return null}static getSettingsCustomURLs(t,n,o){let r;t&&Object.prototype.hasOwnProperty.call(t,"common")?r=t.common:r=t;let a;if(r!=null&&r.custom){a=r.custom[Ir];const s=o.user||"admin";if(a&&a[s]){if(n){if(a[s].subURLs&&a[s].subURLs[n])return JSON.parse(JSON.stringify(a[s].subURLs[n]))}else if(a[s].URLs)return JSON.parse(JSON.stringify(a[s].URLs))}}return null}static reorder(t,n,o){const r=Array.from(t),[a]=r.splice(n,1);return r.splice(o,0,a),r}static getSettings(t,n,o){let r;const a=(t==null?void 0:t._id)||(n==null?void 0:n.id);let s;if(t&&Object.prototype.hasOwnProperty.call(t,"common")?s=t.common:s=t,s!=null&&s.custom?(r=s.custom,r=r[Ir]&&r[Ir][n.user||"admin"]?JSON.parse(JSON.stringify(r[Ir][n.user||"admin"])):{enabled:!0}):r={enabled:o===void 0?!0:o,useCustom:!1},Object.prototype.hasOwnProperty.call(r,"enabled")||(r.enabled=o===void 0?!0:o),n&&(!r.name&&n.name&&(r.name=n.name),!r.icon&&n.icon&&(r.icon=n.icon),!r.color&&n.color&&(r.color=n.color)),s&&(!r.color&&s.color&&(r.color=s.color),!r.icon&&s.icon&&(r.icon=s.icon),!r.name&&s.name&&(r.name=s.name)),typeof r.name=="object"&&(r.name=n.language&&r.name[n.language]||r.name.en,r.name=(r.name||"").toString().replace(/_/g," "),r.name===r.name.toUpperCase()&&(r.name=r.name[0]+r.name.substring(1).toLowerCase())),!r.name&&a){const i=a.lastIndexOf(".");r.name=a.substring(i+1).replace(/[_.]/g," "),r.name=(r.name||"").toString().replace(/_/g," "),r.name=kt.CapitalWords(r.name)}return r}static setSettings(t,n,o){if(t){t.common=t.common||{},t.common.custom=t.common.custom||{},t.common.custom[Ir]=t.common.custom[Ir]||{},t.common.custom[Ir][o.user||"admin"]=n;const r=t.common.custom[Ir][o.user||"admin"];return r.useCommon&&(r.color!==void 0&&(t.common.color=r.color,delete r.color),r.icon!==void 0&&(t.common.icon=r.icon,delete r.icon),r.name!==void 0&&(typeof t.common.name!="object"&&o.language?t.common.name={[o.language]:r.name}:typeof t.common.name=="object"&&o.language&&(t.common.name[o.language]=r.name),delete r.name)),!0}return!1}static getIcon(t,n){return t!=null&&t.icon?t.icon.length<=2?p.createElement("span",{style:n||{}},t.icon):t.icon.startsWith("data:image")?p.createElement("img",{alt:t.name,src:t.icon,style:n||{}}):p.createElement("img",{alt:t.name,src:(t.prefix||"")+t.icon,style:n}):null}static getObjectIcon(t,n){var o;if(typeof t=="object"&&(n=t,t=n==null?void 0:n._id),(o=n==null?void 0:n.common)!=null&&o.icon){let r=n.common.icon;if(typeof r=="string"&&r.length<=2||r.startsWith("data:image"))return r;const a=t.split(".");return a[0]==="system"?r=`adapter/${a[2]}${r.startsWith("/")?"":"/"}${r}`:r=`adapter/${a[0]}${r.startsWith("/")?"":"/"}${r}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?r=`../../${r}`:window.location.pathname.match(/material\/[.\d]+/)?r=`../../${r}`:window.location.pathname.match(/material\//)&&(r=`../${r}`),r}return null}static splitCamelCase(t){return t?kt.CapitalWords(t):""}static isUseBright(t,n){if(!t)return n===void 0?!0:n;t=t.toString(),t.startsWith("#")&&(t=t.slice(1));let o,r,a;const s=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(s&&s.length===4)o=parseInt(s[1],10),r=parseInt(s[2],10),a=parseInt(s[3],10);else{if(t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t.length===8)t=t.substring(0,6);else if(t.length!==6)return!1;o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16)}return o*.299+r*.587+a*.114<=186}static getTimeString(t){if(t=parseFloat(t),Number.isNaN(t))return"--:--";const n=Math.floor(t/3600),o=Math.floor(t%3600/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return n?`${n}:${o}:${r}`:`${o}:${r}`}static getWindDirection(t){return t>=0&&t<11.25?"N":t>=11.25&&t<33.75?"NNE":t>=33.75&&t<56.25?"NE":t>=56.25&&t<78.75?"ENE":t>=78.75&&t<101.25?"E":t>=101.25&&t<123.75?"ESE":t>=123.75&&t<146.25?"SE":t>=146.25&&t<168.75?"SSE":t>=168.75&&t<191.25?"S":t>=191.25&&t<213.75?"SSW":t>=213.75&&t<236.25?"SW":t>=236.25&&t<258.75?"WSW":t>=258.75&&t<281.25?"W":t>=281.25&&t<303.75?"WNW":t>=303.75&&t<326.25?"NW":t>=326.25&&t<348.75?"NNW":"N"}static padding(t){return typeof t=="string"?t.length<2?`0${t}`:t:t<10?`0${t}`:t.toString()}static setDataFormat(t){t&&(kt.dateFormat=t.toUpperCase().split(/[.-/]/),kt.dateFormat.splice(kt.dateFormat.indexOf("YYYY"),1))}static date2string(t){if(typeof t=="string"){if(t=t.trim(),!t)return"";if(t.match(/^[\w\s]+$/))return t;const o=t.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(o){const r=[parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10)],a=r.find(s=>s>31);if(a!==void 0){r.splice(r.indexOf(a),1);const s=r.find(i=>i>12);s?(r.splice(r.indexOf(s),1),t=new Date(a,r[0]-1,s)):kt.dateFormat[0][0]==="M"&&kt.dateFormat[1][0]==="D"?(t=new Date(a,r[0]-1,r[1]),Math.abs(t.getTime()-Date.now())>36e5*24*10&&(t=new Date(a,r[1]-1,r[0]))):kt.dateFormat[0][0]==="D"&&kt.dateFormat[1][0]==="M"?(t=new Date(a,r[1]-1,r[0]),Math.abs(t.getTime()-Date.now())>36e5*24*10&&(t=new Date(a,r[0]-1,r[1]))):t=new Date(t)}else t=new Date(t)}else t=new Date(t)}else t=new Date(t);let n=E.t(`ra_dow_${JX[t.getDay()]}`).replace("ra_dow_","");return n+=`. ${t.getDate()} ${E.t(`ra_month_${YX[t.getMonth()]}`).replace("ra_month_","")}`,n}static renderTextWithA(t){let n=t.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(n){const o=[];let r=1;do{const a=t.substring(0,n.index);if(t=t.substring((n.index||0)+n[0].length),a&&o.push(p.createElement("span",{key:`a${r++}`},a)),n[0].startsWith(""))o.push(p.createElement("b",{key:`a${r++}`},n[0].substring(3,n[0].length-4)));else if(n[0].startsWith(""))o.push(p.createElement("i",{key:`a${r++}`},n[0].substring(3,n[0].length-4)));else if(n[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,n||t&&o.push(p.createElement("span",{key:`a${r++}`},t))}while(n);return o}return t}static getSmartName(t,n,o,r){var s,i;if(!n){if(!r)return!t.common||t&&!t.common?t.smartName:t.common.smartName;if(t&&!t.common)return t.smartName;const l=t;return(s=l==null?void 0:l.common)!=null&&s.custom&&l.common.custom[o]?l.common.custom[o].smartName:void 0}if(!r)return t[n].common.smartName;const a=t[n];return(i=a==null?void 0:a.common)!=null&&i.custom&&a.common.custom[o]&&a.common.custom[o].smartName||null}static getSmartNameFromObj(t,n,o){var a,s;if(!o)return!t.common||t&&!t.common?t.smartName:t.common.smartName;if(t&&!t.common)return t.smartName;const r=(s=(a=t==null?void 0:t.common)==null?void 0:a.custom)==null?void 0:s[n];return r?r.smartName:void 0}static enableSmartName(t,n,o){o?(t.common.custom=t.common.custom||{},t.common.custom[n]=t.common.custom[n]||{},t.common.custom[n].smartName={}):t.common.smartName={}}static removeSmartName(t,n,o){o?t.common&&t.common.custom&&t.common.custom[n]&&(t.common.custom[n]=null):t.common.smartName=null}static updateSmartName(t,n,o,r,a,s){const i=E.getLanguage();if(typeof t.common.smartName=="string"){const l=t.common.smartName;t.common.smartName={},t.common.smartName[i]=l}if(t.native&&t.native.byON){delete t.native.byON;let l=t.common.smartName;l&&typeof l!="object"&&(l={en:l,[i]:l}),t.common.smartName=l}if(r!==void 0&&(s?(t.common.custom=t.common.custom||{},t.common.custom[a]=t.common.custom[a]||{},t.common.custom[a].smartName=t.common.custom[a].smartName||{},r?t.common.custom[a].smartName.smartType=r:delete t.common.custom[a].smartName.smartType):(t.common.smartName=t.common.smartName||{},r?t.common.smartName.smartType=r:delete t.common.smartName.smartType)),o!==void 0&&(s?(t.common.custom=t.common.custom||{},t.common.custom[a]=t.common.custom[a]||{},t.common.custom[a].smartName=t.common.custom[a].smartName||{},t.common.custom[a].smartName.byON=o):(t.common.smartName=t.common.smartName||{},t.common.smartName.byON=o)),n!==void 0){let l;if(s?(t.common.custom=t.common.custom||{},t.common.custom[a]=t.common.custom[a]||{},t.common.custom[a].smartName=t.common.custom[a].smartName||{},l=t.common.custom[a].smartName):(t.common.smartName=t.common.smartName||{},l=t.common.smartName),l[i]=n,l&&(!l[i]||l[i]===t.common.name&&(!t.common.role||t.common.role.includes("button")))){delete l[i];let d=!0;for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u)){d=!1;break}if(d)if(s&&t.common.custom&&t.common.custom[a])t.common.custom[a].smartName.byON===void 0?delete t.common.custom[a]:(delete t.common.custom[a].en,delete t.common.custom[a].de,delete t.common.custom[a].ru,delete t.common.custom[a].nl,delete t.common.custom[a].pl,delete t.common.custom[a].it,delete t.common.custom[a].fr,delete t.common.custom[a].pt,delete t.common.custom[a].es,delete t.common.custom[a].uk,delete t.common.custom[a]["zh-cn"]);else if(t.common.smartName&&t.common.smartName.byON!==void 0){const u=t.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 t.common.smartName=null}}}static disableSmartName(t,n,o){o?(t.common.custom=t.common.custom||{},t.common.custom[n]=t.common.custom[n]||{},t.common.custom[n].smartName=!1):t.common.smartName=!1}static copyToClipboard(t,n){return n&&(n.stopPropagation(),n.preventDefault()),XX(t)}static getFileExtension(t){const n=(t||"").lastIndexOf(".");return n!==-1?t.substring(n+1).toLowerCase():null}static formatBytes(t){if(Math.abs(t)<1024)return`${t} B`;const n=["KB","MB","GB"];let o=-1;do t/=1024,++o;while(Math.abs(t)>=1024&&o186?`#000000${o||""}`:`#FFFFFF${o||""}`;const i=(255-r).toString(16),l=(255-a).toString(16),d=(255-s).toString(16);return`#${i.padStart(2,"0")}${l.padStart(2,"0")}${d.padStart(2,"0")}${o||""}`}static color2rgb(t){if(t==null||t===""||typeof t!="string")return!1;if(t.startsWith("rgba")){const n=t.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);n&&(t=parseInt(n[1],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0"))}else if(t.startsWith("rgb")){const n=t.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);n&&(t=parseInt(n[1],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0"))}else t.startsWith("#")&&(t=t.slice(1));return t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t.length!==6&&t.length!==8?(console.warn(`Cannot invert color: ${t}`),!1):[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}static rgb2lab(t){let n=t[0]/255,o=t[1]/255,r=t[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let a=(n*.4124+o*.3576+r*.1805)/.95047,s=n*.2126+o*.7152+r*.0722,i=(n*.0193+o*.1192+r*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,s=s>.008856?s**.33333333:7.787*s+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,[116*s-16,500*(a-s),200*(s-i)]}static colorDistance(t,n){const o=kt.color2rgb(t),r=kt.color2rgb(n);if(!o||!r)return 0;const a=kt.rgb2lab(o),s=kt.rgb2lab(r),i=a[0]-s[0],l=a[1]-s[1],d=a[2]-s[2],u=Math.sqrt(a[1]*a[1]+a[2]*a[2]),c=Math.sqrt(s[1]*s[1]+s[2]*s[2]),h=u-c;let f=l*l+d*d-h*h;f=f<0?0:Math.sqrt(f);const g=1+.045*u,v=1+.015*u,S=i,_=h/g,b=f/v,y=S*S+_*_+b*b;return y<0?0:y}static _toVal(t){let n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t))for(let r=0;r{if(o=o.trim(),o){const r=o.split("="),a=decodeURIComponent(r[0]).trim();if(r.length>1){const s=decodeURIComponent(r[1]);if(s==="true")n[a]=!0;else if(s==="false")n[a]=!1;else{const i=parseFloat(s);i.toString()===s?n[a]=i:n[a]=s}}else n[a]=!0}}),n}static getParentId(t){const n=(t||"").toString().split(".");return n.length>1?(n.pop(),n.join(".")):null}static formatDate(t,n){if(!t)return"";let o;const r=(t.getMonth()+1).toString().padStart(2,"0"),a=t.getDate().toString().padStart(2,"0");return n==="MM/DD/YYYY"?o=`${r}/${a}/${t.getFullYear()}`:o=`${t.getFullYear()}-${r}-${a}`,o+=` ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}.${t.getMilliseconds().toString().padStart(3,"0")}`,o}static formatTime(t){if(t){t=Math.round(t);const n=Math.floor(t/(3600*24)),o=Math.floor(t%(3600*24)/3600),r=Math.floor(t%3600/60),a=t%60;return n?`${n}.${o.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:o?`${o}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(t){const n=t.match(/\d+\.\)\s/);return n&&(t=t.replace(n[0],n[0].replace(/\s/," "))),t.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(t,n){t=t.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),n==="this"?window.location.href=t:window.open(t,n||"_blank")}static MDgetTitle(t){var a;const n=kt.MDextractHeader(t),o=n.header;let r=n.body;if(!o.title){r=r.replace(/{[^}]*}/g,""),r=r.trim();const s=r.replace(/\r/g,"").split(` +`;function u3(e){C.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const o=window.document.createElement("style");o.setAttribute("id","loader-iobroker-component"),o.innerHTML=VX,window.document.head.appendChild(o)}},[]);const t=e.size||234,n=e.themeName||e.theme||e.themeType||"light";return p.createElement("div",{className:`logo-back logo-background-${n}`,style:{backgroundImage:e.backgroundImage&&e.backgroundImage!=="@@loginBackgroundImage@@"?e.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:e.backgroundColor&&e.backgroundColor!=="@@loginBackgroundColor@@"?e.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:p.createElement(p.Fragment,null,p.createElement("div",{className:"logo-div",style:{width:t,height:t}},p.createElement("div",{className:`logo-top logo-background-${n}`,style:{left:"37%"}}),p.createElement("div",{className:`logo-top logo-background-${n}`,style:{left:"57%"}}),p.createElement("div",{className:`logo-border logo-background-${n} logo-animate-wait`,style:{borderWidth:t*.132}}),p.createElement("div",{className:`logo-i logo-animate-color-inside-${n}`}),p.createElement("div",{className:`logo-i-top logo-animate-color-inside-${n}`,style:{top:"18%"}}),p.createElement("div",{className:`logo-i-top logo-animate-color-inside-${n}`,style:{bottom:"18%"}})),p.createElement("div",{className:`logo-animate-grow logo-animate-grow-${n}`,style:{width:t+11,height:t+11}})))}class Mu extends C.Component{constructor(n){super(n);F(this,"onHashChangedBound");this.onHashChangedBound=this.onHashChanged.bind(this)}componentDidMount(){window.addEventListener("hashchange",this.onHashChangedBound)}componentWillUnmount(){window.removeEventListener("hashchange",this.onHashChangedBound)}onHashChanged(){}static getLocation(){let n=window.location.hash;n=n.replace(/^#/,"");const o=n.split("/").map(r=>{try{return r?decodeURIComponent(r):""}catch{return console.error(`Router: Cannot decode ${r}`),r}});return{tab:o[0]||"",dialog:o[1]||"",id:o[2]||"",arg:o[3]||""}}static doNavigate(n,o,r,a){let s="";const i=Mu.getLocation();a!==void 0&&!r&&(r=i.id),r&&!o&&(o=i.dialog),(o&&!n||n===null)&&(n=i.tab),n&&(s=`#${n}`,o&&(s+=`/${o}`,r&&(s+=`/${r}`,a!==void 0&&(s+=`/${a}`)))),window.location.hash!==s&&(window.location.hash=s)}}function GX(){const e=document.getSelection();if(!(e!=null&&e.rangeCount))return()=>{};let t=document.activeElement;const n=[];for(let o=0;o{e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(o=>e.addRange(o)),t&&t.focus()}}const p$={"text/plain":"Text","text/html":"Url",default:"Text"},qX="Copy to clipboard: #{key}, Enter";function XX(e){const t=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return e.replace(/#{\s*key\s*}/g,t)}function JX(e,t){let n,o,r,a,s=!1;t=t||{};const i=t.debug||!1;try{if(n=GX(),o=document.createRange(),r=document.getSelection(),a=document.createElement("span"),a.textContent=e,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",d=>{var u,c,h,f;if(d.stopPropagation(),t!=null&&t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),(u=window.clipboardData)==null||u.clearData();const g=p$[t.format]||p$.default;(c=window.clipboardData)==null||c.setData(g,e)}else(h=d.clipboardData)==null||h.clearData(),(f=d.clipboardData)==null||f.setData(t.format,e)}),document.body.appendChild(a),o.selectNodeContents(a),r==null||r.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(l){i&&console.error("unable to copy using execCommand: ",l),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),s=!0}catch(d){i&&console.error("unable to copy using clipboardData: ",d),i&&console.error("falling back to prompt");const u=XX("message"in t?t.message||"":qX);window.prompt(u,e)}}finally{r&&(o&&typeof r.removeRange=="function"?r.removeRange(o):r.removeAllRanges()),a&&document.body.removeChild(a),n&&n()}return s}const ft=class ft{static setLanguage(t){t&&(ft.lang=t)}static extendTranslations(t,n){if(t.prefix){const o=t;if(typeof o.prefix=="string"){const r=o.prefix;delete o.prefix,Object.keys(o).forEach(a=>{const s=a,i={},l=o[s];Object.keys(l).forEach(d=>{d&&l&&(d.startsWith(r)?i[d]=l[d]:i[`${r}${d}`]=l[d])}),t[s]=i})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!n)t.en&&t.de&&t.ru?Object.keys(t).forEach(o=>{const r=o;ft.translations[r]=ft.translations[r]||{};const a=ft.translations[r];Object.assign(a,t[r])}):Object.keys(t).forEach(o=>{const r=t[o];Object.keys(r).forEach(a=>{const s=a,i=ft.translations[s];i?i[o]?i[o]!==r[s]&&console.warn(`Translation for word "${o}" in "${s}" was ignored: existing = "${i[o]}", new = ${r[s]}`):i[o]=r[s]:console.warn(`Used unknown language: ${s}`)})});else{ft.translations[n]||console.warn(`Used unknown language: ${n}`),ft.translations[n]=ft.translations[n]||{};const o=ft.translations[n];o&&Object.keys(t).forEach(r=>{o[r]?o[r]!==t[r]&&console.warn(`Translation for word "${r}" in "${n}" was ignored: existing = "${o[r]}", new = ${t[r]}`):o[r]=t[r]})}}catch(o){console.error(`Cannot apply translations: ${o}`)}}static setTranslations(t){t&&(ft.translations=t)}static getLanguage(){return ft.lang}static t(t,...n){const o=ft.translations[ft.lang];if(o){const r=o[t];if(r)t=r;else if(ft.unknownTranslations.includes(t)||(ft.unknownTranslations.push(t),!ft._disableWarning&&console.log(`Translate: ${t}`)),ft.lang!=="en"&&ft.translations.en){const a=ft.translations.en[t];a&&(t=a)}}for(const r of n)t=t.replace("%s",r);return t}static i18nShow(t){const n={};t?typeof t=="string"?(ft.unknownTranslations.forEach(o=>{o.startsWith(t)&&(n[o]=o.replace(t,""))}),console.log(JSON.stringify(n,null,2))):typeof t=="object"&&(ft.unknownTranslations.forEach(o=>{t.test(o)&&(n[o]=o)}),console.log(JSON.stringify(n,null,2))):(ft.unknownTranslations.forEach(o=>n[o]=o),console.log(JSON.stringify(n,null,2)))}static disableWarning(t){ft._disableWarning=!!t}};F(ft,"translations",{}),F(ft,"unknownTranslations",[]),F(ft,"lang",window.sysLang||"en"),F(ft,"_disableWarning",!1);let E=ft;window.i18nShow=E.i18nShow;window.i18nDisableWarning=E.disableWarning;const Ir="material",YX=["Su","Mo","Tu","We","Th","Fr","Sa"],KX=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],zv={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"},h$={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},kt=class kt{static CapitalWords(t){return(t||"").split(/[\s_]/).filter(n=>n).map(n=>n?n[0].toUpperCase()+n.substring(1).toLowerCase():"").join(" ")}static formatSeconds(t){const n=Math.floor(t/86400);t%=3600*24;const o=Math.floor(t/3600).toString().padStart(2,"0");t%=3600;const r=Math.floor(t/60).toString().padStart(2,"0");t%=60;const a=Math.floor(t).toString().padStart(2,"0");let s="";return n&&(s+=`${n} ${E.t("ra_daysShortText")} `),s+=`${o}:${r}:${a}`,s}static getObjectName(t,n,o,r,a){var l;const s=t[n];let i;if(typeof o=="string"&&!r&&(r={language:o},o=null),r=r||{},r.language||(r.language=t["system.config"]&&t["system.config"].common&&t["system.config"].common.language||window.sysLang||"en"),o!=null&&o.name){const d=o.name;typeof d=="object"?i=r.language&&d[r.language]||d.en:i=d}else if(a&&((l=s==null?void 0:s.common)!=null&&l.desc)){const d=s.common.desc;typeof d=="object"?i=r.language&&d[r.language]||d.en||d.de||d.ru||"":i=d,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}else if(!a&&(s!=null&&s.common)){const d=s.common.name||s.common.desc;d&&typeof d=="object"?i=r.language&&d[r.language]||d.en||d.de||d.ru||"":i=d,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}else{const d=n.lastIndexOf(".");i=n.substring(d+1).replace(/[_.]/g," "),i=kt.CapitalWords(i)}return(i==null?void 0:i.trim())||""}static getObjectNameFromObj(t,n,o,r,a){var l,d;const s=t;let i=t&&t._id||"";if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},n!=null&&n.name){const u=n.name;typeof u=="object"?i=o.language&&u[o.language]||u.en:i=u}else if(r&&((l=s==null?void 0:s.common)!=null&&l.desc)){const u=s.common.desc;typeof u=="object"?i=o.language&&u[o.language]||u.en:i=u,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}else if(!r&&((d=s==null?void 0:s.common)!=null&&d.name)){let u=s.common.name;!u&&s.common.desc&&(u=s.common.desc),typeof u=="object"?i=o.language&&u[o.language]||u.en:i=u,i=(i||"").toString().replace(/[_.]/g," "),i===i.toUpperCase()&&(i=i[0]+i.substring(1).toLowerCase())}return a?i:i.trim()}static getSettingsOrder(t,n,o){let r;t&&Object.prototype.hasOwnProperty.call(t,"common")?r=t.common:r=t;let a;if(r!=null&&r.custom){a=r.custom[Ir];const s=o.user||"admin";if(a&&a[s]){if(n){if(a[s].subOrder&&a[s].subOrder[n])return JSON.parse(JSON.stringify(a[s].subOrder[n]))}else if(a[s].order)return JSON.parse(JSON.stringify(a[s].order))}}return null}static getSettingsCustomURLs(t,n,o){let r;t&&Object.prototype.hasOwnProperty.call(t,"common")?r=t.common:r=t;let a;if(r!=null&&r.custom){a=r.custom[Ir];const s=o.user||"admin";if(a&&a[s]){if(n){if(a[s].subURLs&&a[s].subURLs[n])return JSON.parse(JSON.stringify(a[s].subURLs[n]))}else if(a[s].URLs)return JSON.parse(JSON.stringify(a[s].URLs))}}return null}static reorder(t,n,o){const r=Array.from(t),[a]=r.splice(n,1);return r.splice(o,0,a),r}static getSettings(t,n,o){let r;const a=(t==null?void 0:t._id)||(n==null?void 0:n.id);let s;if(t&&Object.prototype.hasOwnProperty.call(t,"common")?s=t.common:s=t,s!=null&&s.custom?(r=s.custom,r=r[Ir]&&r[Ir][n.user||"admin"]?JSON.parse(JSON.stringify(r[Ir][n.user||"admin"])):{enabled:!0}):r={enabled:o===void 0?!0:o,useCustom:!1},Object.prototype.hasOwnProperty.call(r,"enabled")||(r.enabled=o===void 0?!0:o),n&&(!r.name&&n.name&&(r.name=n.name),!r.icon&&n.icon&&(r.icon=n.icon),!r.color&&n.color&&(r.color=n.color)),s&&(!r.color&&s.color&&(r.color=s.color),!r.icon&&s.icon&&(r.icon=s.icon),!r.name&&s.name&&(r.name=s.name)),typeof r.name=="object"&&(r.name=n.language&&r.name[n.language]||r.name.en,r.name=(r.name||"").toString().replace(/_/g," "),r.name===r.name.toUpperCase()&&(r.name=r.name[0]+r.name.substring(1).toLowerCase())),!r.name&&a){const i=a.lastIndexOf(".");r.name=a.substring(i+1).replace(/[_.]/g," "),r.name=(r.name||"").toString().replace(/_/g," "),r.name=kt.CapitalWords(r.name)}return r}static setSettings(t,n,o){if(t){t.common=t.common||{},t.common.custom=t.common.custom||{},t.common.custom[Ir]=t.common.custom[Ir]||{},t.common.custom[Ir][o.user||"admin"]=n;const r=t.common.custom[Ir][o.user||"admin"];return r.useCommon&&(r.color!==void 0&&(t.common.color=r.color,delete r.color),r.icon!==void 0&&(t.common.icon=r.icon,delete r.icon),r.name!==void 0&&(typeof t.common.name!="object"&&o.language?t.common.name={[o.language]:r.name}:typeof t.common.name=="object"&&o.language&&(t.common.name[o.language]=r.name),delete r.name)),!0}return!1}static getIcon(t,n){return t!=null&&t.icon?t.icon.length<=2?p.createElement("span",{style:n||{}},t.icon):t.icon.startsWith("data:image")?p.createElement("img",{alt:t.name,src:t.icon,style:n||{}}):p.createElement("img",{alt:t.name,src:(t.prefix||"")+t.icon,style:n}):null}static getObjectIcon(t,n){var o;if(typeof t=="object"&&(n=t,t=n==null?void 0:n._id),(o=n==null?void 0:n.common)!=null&&o.icon){let r=n.common.icon;if(typeof r=="string"&&r.length<=2||r.startsWith("data:image"))return r;const a=t.split(".");return a[0]==="system"?r=`adapter/${a[2]}${r.startsWith("/")?"":"/"}${r}`:r=`adapter/${a[0]}${r.startsWith("/")?"":"/"}${r}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?r=`../../${r}`:window.location.pathname.match(/material\/[.\d]+/)?r=`../../${r}`:window.location.pathname.match(/material\//)&&(r=`../${r}`),r}return null}static splitCamelCase(t){return t?kt.CapitalWords(t):""}static isUseBright(t,n){if(!t)return n===void 0?!0:n;t=t.toString(),t.startsWith("#")&&(t=t.slice(1));let o,r,a;const s=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(s&&s.length===4)o=parseInt(s[1],10),r=parseInt(s[2],10),a=parseInt(s[3],10);else{if(t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t.length===8)t=t.substring(0,6);else if(t.length!==6)return!1;o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16)}return o*.299+r*.587+a*.114<=186}static getTimeString(t){if(t=parseFloat(t),Number.isNaN(t))return"--:--";const n=Math.floor(t/3600),o=Math.floor(t%3600/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return n?`${n}:${o}:${r}`:`${o}:${r}`}static getWindDirection(t){return t>=0&&t<11.25?"N":t>=11.25&&t<33.75?"NNE":t>=33.75&&t<56.25?"NE":t>=56.25&&t<78.75?"ENE":t>=78.75&&t<101.25?"E":t>=101.25&&t<123.75?"ESE":t>=123.75&&t<146.25?"SE":t>=146.25&&t<168.75?"SSE":t>=168.75&&t<191.25?"S":t>=191.25&&t<213.75?"SSW":t>=213.75&&t<236.25?"SW":t>=236.25&&t<258.75?"WSW":t>=258.75&&t<281.25?"W":t>=281.25&&t<303.75?"WNW":t>=303.75&&t<326.25?"NW":t>=326.25&&t<348.75?"NNW":"N"}static padding(t){return typeof t=="string"?t.length<2?`0${t}`:t:t<10?`0${t}`:t.toString()}static setDataFormat(t){t&&(kt.dateFormat=t.toUpperCase().split(/[.-/]/),kt.dateFormat.splice(kt.dateFormat.indexOf("YYYY"),1))}static date2string(t){if(typeof t=="string"){if(t=t.trim(),!t)return"";if(t.match(/^[\w\s]+$/))return t;const o=t.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(o){const r=[parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10)],a=r.find(s=>s>31);if(a!==void 0){r.splice(r.indexOf(a),1);const s=r.find(i=>i>12);s?(r.splice(r.indexOf(s),1),t=new Date(a,r[0]-1,s)):kt.dateFormat[0][0]==="M"&&kt.dateFormat[1][0]==="D"?(t=new Date(a,r[0]-1,r[1]),Math.abs(t.getTime()-Date.now())>36e5*24*10&&(t=new Date(a,r[1]-1,r[0]))):kt.dateFormat[0][0]==="D"&&kt.dateFormat[1][0]==="M"?(t=new Date(a,r[1]-1,r[0]),Math.abs(t.getTime()-Date.now())>36e5*24*10&&(t=new Date(a,r[0]-1,r[1]))):t=new Date(t)}else t=new Date(t)}else t=new Date(t)}else t=new Date(t);let n=E.t(`ra_dow_${YX[t.getDay()]}`).replace("ra_dow_","");return n+=`. ${t.getDate()} ${E.t(`ra_month_${KX[t.getMonth()]}`).replace("ra_month_","")}`,n}static renderTextWithA(t){let n=t.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(n){const o=[];let r=1;do{const a=t.substring(0,n.index);if(t=t.substring((n.index||0)+n[0].length),a&&o.push(p.createElement("span",{key:`a${r++}`},a)),n[0].startsWith(""))o.push(p.createElement("b",{key:`a${r++}`},n[0].substring(3,n[0].length-4)));else if(n[0].startsWith(""))o.push(p.createElement("i",{key:`a${r++}`},n[0].substring(3,n[0].length-4)));else if(n[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,n||t&&o.push(p.createElement("span",{key:`a${r++}`},t))}while(n);return o}return t}static getSmartName(t,n,o,r){var s,i;if(!n){if(!r)return!t.common||t&&!t.common?t.smartName:t.common.smartName;if(t&&!t.common)return t.smartName;const l=t;return(s=l==null?void 0:l.common)!=null&&s.custom&&l.common.custom[o]?l.common.custom[o].smartName:void 0}if(!r)return t[n].common.smartName;const a=t[n];return(i=a==null?void 0:a.common)!=null&&i.custom&&a.common.custom[o]&&a.common.custom[o].smartName||null}static getSmartNameFromObj(t,n,o){var a,s;if(!o)return!t.common||t&&!t.common?t.smartName:t.common.smartName;if(t&&!t.common)return t.smartName;const r=(s=(a=t==null?void 0:t.common)==null?void 0:a.custom)==null?void 0:s[n];return r?r.smartName:void 0}static enableSmartName(t,n,o){o?(t.common.custom=t.common.custom||{},t.common.custom[n]=t.common.custom[n]||{},t.common.custom[n].smartName={}):t.common.smartName={}}static removeSmartName(t,n,o){o?t.common&&t.common.custom&&t.common.custom[n]&&(t.common.custom[n]=null):t.common.smartName=null}static updateSmartName(t,n,o,r,a,s){const i=E.getLanguage();if(typeof t.common.smartName=="string"){const l=t.common.smartName;t.common.smartName={},t.common.smartName[i]=l}if(t.native&&t.native.byON){delete t.native.byON;let l=t.common.smartName;l&&typeof l!="object"&&(l={en:l,[i]:l}),t.common.smartName=l}if(r!==void 0&&(s?(t.common.custom=t.common.custom||{},t.common.custom[a]=t.common.custom[a]||{},t.common.custom[a].smartName=t.common.custom[a].smartName||{},r?t.common.custom[a].smartName.smartType=r:delete t.common.custom[a].smartName.smartType):(t.common.smartName=t.common.smartName||{},r?t.common.smartName.smartType=r:delete t.common.smartName.smartType)),o!==void 0&&(s?(t.common.custom=t.common.custom||{},t.common.custom[a]=t.common.custom[a]||{},t.common.custom[a].smartName=t.common.custom[a].smartName||{},t.common.custom[a].smartName.byON=o):(t.common.smartName=t.common.smartName||{},t.common.smartName.byON=o)),n!==void 0){let l;if(s?(t.common.custom=t.common.custom||{},t.common.custom[a]=t.common.custom[a]||{},t.common.custom[a].smartName=t.common.custom[a].smartName||{},l=t.common.custom[a].smartName):(t.common.smartName=t.common.smartName||{},l=t.common.smartName),l[i]=n,l&&(!l[i]||l[i]===t.common.name&&(!t.common.role||t.common.role.includes("button")))){delete l[i];let d=!0;for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u)){d=!1;break}if(d)if(s&&t.common.custom&&t.common.custom[a])t.common.custom[a].smartName.byON===void 0?delete t.common.custom[a]:(delete t.common.custom[a].en,delete t.common.custom[a].de,delete t.common.custom[a].ru,delete t.common.custom[a].nl,delete t.common.custom[a].pl,delete t.common.custom[a].it,delete t.common.custom[a].fr,delete t.common.custom[a].pt,delete t.common.custom[a].es,delete t.common.custom[a].uk,delete t.common.custom[a]["zh-cn"]);else if(t.common.smartName&&t.common.smartName.byON!==void 0){const u=t.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 t.common.smartName=null}}}static disableSmartName(t,n,o){o?(t.common.custom=t.common.custom||{},t.common.custom[n]=t.common.custom[n]||{},t.common.custom[n].smartName=!1):t.common.smartName=!1}static copyToClipboard(t,n){return n&&(n.stopPropagation(),n.preventDefault()),JX(t)}static getFileExtension(t){const n=(t||"").lastIndexOf(".");return n!==-1?t.substring(n+1).toLowerCase():null}static formatBytes(t){if(Math.abs(t)<1024)return`${t} B`;const n=["KB","MB","GB"];let o=-1;do t/=1024,++o;while(Math.abs(t)>=1024&&o186?`#000000${o||""}`:`#FFFFFF${o||""}`;const i=(255-r).toString(16),l=(255-a).toString(16),d=(255-s).toString(16);return`#${i.padStart(2,"0")}${l.padStart(2,"0")}${d.padStart(2,"0")}${o||""}`}static color2rgb(t){if(t==null||t===""||typeof t!="string")return!1;if(t.startsWith("rgba")){const n=t.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);n&&(t=parseInt(n[1],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0"))}else if(t.startsWith("rgb")){const n=t.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);n&&(t=parseInt(n[1],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0")+parseInt(n[2],10).toString(16).padStart(2,"0"))}else t.startsWith("#")&&(t=t.slice(1));return t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t.length!==6&&t.length!==8?(console.warn(`Cannot invert color: ${t}`),!1):[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}static rgb2lab(t){let n=t[0]/255,o=t[1]/255,r=t[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let a=(n*.4124+o*.3576+r*.1805)/.95047,s=n*.2126+o*.7152+r*.0722,i=(n*.0193+o*.1192+r*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,s=s>.008856?s**.33333333:7.787*s+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,[116*s-16,500*(a-s),200*(s-i)]}static colorDistance(t,n){const o=kt.color2rgb(t),r=kt.color2rgb(n);if(!o||!r)return 0;const a=kt.rgb2lab(o),s=kt.rgb2lab(r),i=a[0]-s[0],l=a[1]-s[1],d=a[2]-s[2],u=Math.sqrt(a[1]*a[1]+a[2]*a[2]),c=Math.sqrt(s[1]*s[1]+s[2]*s[2]),h=u-c;let f=l*l+d*d-h*h;f=f<0?0:Math.sqrt(f);const g=1+.045*u,v=1+.015*u,S=i,_=h/g,b=f/v,y=S*S+_*_+b*b;return y<0?0:y}static _toVal(t){let n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t))for(let r=0;r{if(o=o.trim(),o){const r=o.split("="),a=decodeURIComponent(r[0]).trim();if(r.length>1){const s=decodeURIComponent(r[1]);if(s==="true")n[a]=!0;else if(s==="false")n[a]=!1;else{const i=parseFloat(s);i.toString()===s?n[a]=i:n[a]=s}}else n[a]=!0}}),n}static getParentId(t){const n=(t||"").toString().split(".");return n.length>1?(n.pop(),n.join(".")):null}static formatDate(t,n){if(!t)return"";let o;const r=(t.getMonth()+1).toString().padStart(2,"0"),a=t.getDate().toString().padStart(2,"0");return n==="MM/DD/YYYY"?o=`${r}/${a}/${t.getFullYear()}`:o=`${t.getFullYear()}-${r}-${a}`,o+=` ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}.${t.getMilliseconds().toString().padStart(3,"0")}`,o}static formatTime(t){if(t){t=Math.round(t);const n=Math.floor(t/(3600*24)),o=Math.floor(t%(3600*24)/3600),r=Math.floor(t%3600/60),a=t%60;return n?`${n}.${o.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:o?`${o}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(t){const n=t.match(/\d+\.\)\s/);return n&&(t=t.replace(n[0],n[0].replace(/\s/," "))),t.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(t,n){t=t.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),n==="this"?window.location.href=t:window.open(t,n||"_blank")}static MDgetTitle(t){var a;const n=kt.MDextractHeader(t),o=n.header;let r=n.body;if(!o.title){r=r.replace(/{[^}]*}/g,""),r=r.trim();const s=r.replace(/\r/g,"").split(` `);for(let i=0;i{if(!s.trim())return;const i=s.indexOf(":");if(i!==-1){const l=s.substring(0,i).trim();let d=s.substring(i+1).trim();d=d.replace(/^['"]|['"]$/g,""),d==="true"?n[l]=!0:d==="false"?n[l]=!1:parseFloat(d).toString()===n[l]?n[l]=parseFloat(d):n[l]=d}else n[s.trim()]=!0}),t=t.substring(o+7))}return{header:n,body:t}}static MDremoveDocsify(t){const n=t.match(/{docsify-[^}]*}/g);return n&&n.forEach(o=>t=t.replace(o,"")),t}static generateFile(t,n){const o=document.createElement("a");o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),o.setAttribute("download",t),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}static quality2text(t){const n=t&4294901760,o=zv[t];let r;return o?r=[o]:t&1?r=[zv[1],`0x${(t&65534).toString(16)}`]:t&2?r=[zv[2],`0x${(t&65533).toString(16)}`]:r=[`0x${t.toString(16)}`],n&&r.push(`0x${(n>>16).toString(16).toUpperCase()}`),r}static clone(t){return JSON.parse(JSON.stringify(t))}static getStates(t){var r;const n=(r=t==null?void 0:t.common)==null?void 0:r.states;let o;if(n)if(typeof n=="string"&&n[0]==="{")try{o=JSON.parse(n)}catch{console.error(`Cannot parse states: ${n}`),o=null}else if(typeof n=="string"){const a=n.split(";");o={};for(let s=0;so[s]=a):(t==null?void 0:t.common.type)==="string"?n.forEach(a=>o[a]=a):(t==null?void 0:t.common.type)==="boolean"&&(o.false=n[0],o.true=n[1])):typeof n=="object"&&(o=n);return o||null}static async getSvg(t){const o=await(await fetch(t)).blob();return new Promise(r=>{const a=new FileReader;a.onload=()=>{var s;return r(((s=a.result)==null?void 0:s.toString())||"")},a.readAsDataURL(o)})}static detectMimeType(t){const n=Object.keys(p$).find(o=>t.startsWith(o));return n?p$[n]:null}static isStableRepository(t){return!!(typeof t=="string"&&t.toLowerCase().startsWith("stable")||t&&typeof t!="string"&&t.find(n=>n.toLowerCase().startsWith("stable")))}static isStringInteger(t){return typeof t=="number"?Math.round(t)===t:parseInt(t,10).toString()===t}static isValidDate(t){return t instanceof Date&&!isNaN(t)}static getStyle(t,...n){const o={};for(let r=0;r{if(typeof n[r][a]=="function")o[a]=n[r][a](t);else if(typeof n[r][a]=="object"){const s=n[r][a];o[a]={},Object.keys(s).forEach(i=>{typeof s[i]=="function"?o[a][i]=s(t):(s[i]||s[i]===0)&&(o[a][i]=s[i])})}else(n[r][a]||n[r][a]===0)&&(o[a]=n[r][a])});return o}};F(kt,"namespace",Ir),F(kt,"INSTANCES","instances"),F(kt,"dateFormat",["DD","MM"]),F(kt,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let V=kt;const Rv={buttonIcon:{marginRight:8}};class KX extends p.Component{constructor(n){super(n);F(this,"isIFrame");const o=n.newReact===void 0?!0:n.newReact;if(n.isIFrame!==void 0)this.isIFrame=n.isIFrame;else try{this.isIFrame=!o&&window.self!==window.top}catch{this.isIFrame=!o}}render(){const n=this.props.noTextOnButtons,o={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},r={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(r.minHeight=48),this.props.error&&(o.border="1px solid red"),p.createElement(aw,{style:r},p.createElement(Mt,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:o},p.createElement(Ub,{style:n?void 0:Rv.buttonIcon}),!n&&E.t("ra_Save")),p.createElement(Mt,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...o,marginLeft:10}},p.createElement(Ub,{style:n?void 0:Rv.buttonIcon}),n?"+":E.t("ra_Save and close"),n&&p.createElement(Dt,null)),p.createElement("div",{style:{flexGrow:1}}),p.createElement(Mt,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:o},p.createElement(Dt,{style:n?void 0:Rv.buttonIcon}),!n&&E.t("ra_Close")))}}const h$={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class d3 extends C.Component{constructor(t){if(super(t),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let n=!1;this.props.suppressQuestionMinutes&&(n=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,n?Date.now()>n&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),n=!1):n=!1),this.state={suppress:n}}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):p.createElement(yt,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(t,n)=>{n!=="backdropClick"&&n!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},p.createElement(bt,{id:"ar_confirmation_dialog_title"},this.props.title||E.t("ra_Are you sure?")),p.createElement(jt,null,p.createElement(Ra,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?p.createElement("br",null):null,this.props.suppressQuestionMinutes?p.createElement(Oe,{sx:{"& .FormControlLabel-label":h$.suppress,"&.FormControlLabel-root":h$.suppressRoot},control:p.createElement(Tt,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||E.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),p.createElement(Nt,null,p.createElement(he,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:p.createElement(qn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(he,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:p.createElement(Dt,null)},this.props.cancel||E.t("ra_Cancel"))))}}class u3 extends C.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return p.createElement(yt,{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"},p.createElement(bt,{id:"ar_alert_dialog_title"},this.props.title||E.t("ra_Error")),p.createElement(jt,null,p.createElement(Ra,{id:"ar_alert_dialog_description"},this.props.text||E.t("ra_Unknown error!"))),p.createElement(Nt,null,p.createElement(he,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:p.createElement(qn,null)},E.t("ra_Ok"))))}}const ZX="Append",QX="Cancel",eJ="Categories",tJ="Checked",nJ="Delete",oJ="Close",rJ="Commercial",aJ="Configure",sJ="Connected",iJ="Copied",lJ="Create",cJ="Crop",dJ="Delete",uJ="Delete",pJ="Discard",hJ="Disconnected",fJ="Error",mJ="Filter",gJ="Friday",_J="Latitude",vJ="Longitude",yJ="Message",bJ="Monday",wJ="Name",SJ="Objects",xJ="Ok",CJ="Product",$J="Repeat",kJ="Replace",EJ="Root",TJ="Saturday",OJ="Save",DJ="Selected",AJ="States",MJ="Sunday",NJ="Thursday",jJ="Timestamp",zJ="Tuesday",RJ="Update",IJ="Valid till",LJ="Value",FJ="Version",PJ="Wednesday",BJ="Width",HJ="Yes",UJ="different",WJ="Everyone can read object",VJ="Everyone can read state",GJ="Everyone can write object",qJ="Everyone can write state",XJ="Group can read object",JJ="Group can read state",YJ="Group can write object",KJ="Group can write state",ZJ="Owner can read object",QJ="Owner can read state",eY="Owner can write object",tY="Owner can write state",nY="Buttons",oY="Changed from",rY="close",aY="Create boolean state",sY="Create channel",iY="Create device",lY="Create number state",cY="Create state",dY="Create string state",uY="days",pY="Fr",hY="Mo",fY="Sa",mY="Su",gY="Th",_Y="Tu",vY="We",yY="Expert mode",bY="All files",wY="Audio",SY="Code/JSON",xY="Images",CY="Text",$Y="Video",kY="Settings",EY="without",TY="Function",OY="ID",DY="Name",AY="Role",MY="Room",NY="Type",jY="Invalid settings",zY="Last change",RY="locally",IY="Apr",LY="Aug",FY="Dec",PY="Feb",BY="Jan",HY="Jul",UY="Jun",WY="Mai",VY="Mar",GY="Nov",qY="Oct",XY="Sep",JY="Apr",YY="Aug",KY="Dec",ZY="Feb",QY="Jan",eK="Jul",tK="Jun",nK="Mai",oK="Mar",rK="Nov",aK="Oct",sK="Sep",iK="none",lK="Object changed by",cK="Object last changed at",dK="Settings from other adapter %s",uK="Quality code",pK="repeat",hK='To select folder, just hold the key "shift" by clicking the folder.',fK="State changed by",mK="Object changed from",gK="Timestamp",_K="Acknowledged",vK="Comment",yK="Copy the state value",bK="Custom settings",wK="Delete object",SK="Edit object",xK="Edit the state value",CK="From",$K="Last changed",kK="Quality",EK="Time stamp",TK="User",OK="Value",DK="Value",AK="Warning: The CRON job will run every minute during the specified period!",MK="Warning: The CRON job will run every second during the specified period!",NK="CRON",jK="Date",zK="Dates",RK="Day",IK="Day of week",LK="Every",FK="every N days",PK="every Nth day of the week",BK="every N day of week",HK="every N hours",UK="every N minutes",WK="every N months",VK="every N seconds",GK="every day",qK="every day of the week",XK="every day of the week",JK="every hour",YK="every minute",KK="every month",ZK="every second",QK="From",eZ="Hours",tZ="Interval",nZ="Interval between",oZ="Invalid CRON",rZ="Minutes",aZ="months",sZ="Once",iZ="Period",lZ="Seconds",cZ="Simple",dZ="Specific time",uZ="specific dates",pZ="specific day(s) of the week",hZ="specific day of weeks",fZ="specific hours",mZ="specific minutes",gZ="specific months",_Z="specific seconds",vZ="Time",yZ="To",bZ="Wizard",wZ="all",SZ="Astro day",xZ="Astro night",CZ="Dawn",$Z="Dusk",kZ="Golden hour",EZ="Golden hour end",TZ="Nadir",OZ="Nautical dawn",DZ="Nautical dusk",AZ="Night",MZ="Night end",NZ="Solar noon",jZ="Sunrise",zZ="Sunrise end",RZ="Sunset",IZ="Sunset start",LZ="at",FZ="at %s",PZ="every day",BZ="every hour",HZ="every minute",UZ="every month",WZ="every %s day",VZ="every %s hours",GZ="every %s minutes",qZ="every %s months",XZ="every %s weeks",JZ="every %s years",YZ="every week",KZ="every year",ZZ="from %s to %s",QZ="never",eQ="on %s of %s",tQ="on %s and %s of",nQ="on every date of",oQ="%s",rQ="%s and %s",aQ="on %s",sQ="on %s and %s",iQ="on weekends",lQ="on working days",cQ="will ne be not executed any more, because start is in the past",dQ="on %s",uQ="from %s",pQ="Execute from to",hQ="to %s",fQ="every",mQ="Specific time",gQ="from",_Q="From-to",vQ="Interval time",yQ="invert",bQ="none",wQ="on",SQ="Period",xQ="Daily",CQ="Dates",$Q="Day",kQ="Every",EQ="Every day",TQ="Every month",OQ="Every week",DQ="Every year",AQ="Hours",MQ="Minutes",NQ="month",jQ="Monthly",zQ="Once",RQ="Specific months",IQ="Week",LQ="Weekdays",FQ="Weekend",PQ="Weekly",BQ="Workdays",HQ="Year",UQ="Yearly",WQ="Specific time",VQ="Time",GQ="to",qQ="Valid",XQ="from",JQ="to",YQ="Whole day",KQ="every month",ZQ={"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_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:ZX,"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:QX,"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:eJ,"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:tJ,ra_Clear:nJ,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:oJ,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:rJ,ra_Configure:aJ,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:sJ,ra_Copied:iJ,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:lJ,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:cJ,"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:dJ,ra_Delete:uJ,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:pJ,ra_Disconnected:hJ,"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_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 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_Error:fJ,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:mJ,"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:gJ,"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_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 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:_J,"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_Longitude:vJ,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:yJ,ra_Monday:bJ,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:wJ,"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 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_Objects:SJ,ra_Ok:xJ,"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 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_Private certificate":"Private certificate",ra_Product:CJ,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:$J,ra_Replace:kJ,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:EJ,ra_Saturday:TJ,ra_Save:OJ,"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:DJ,"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_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:AJ,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:MJ,"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:NJ,ra_Timestamp:jJ,"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:zJ,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:RJ,"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:IJ,ra_Value:LJ,ra_Version:FJ,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:PJ,ra_Width:BJ,ra_Yes:HJ,"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___different__:UJ,ra_aclEveryone_read_object:WJ,ra_aclEveryone_read_state:VJ,ra_aclEveryone_write_object:GJ,ra_aclEveryone_write_state:qJ,ra_aclGroup_read_object:XJ,ra_aclGroup_read_state:JJ,ra_aclGroup_write_object:YJ,ra_aclGroup_write_state:KJ,ra_aclOwner_read_object:ZJ,ra_aclOwner_read_state:QJ,ra_aclOwner_write_object:eY,ra_aclOwner_write_state:tY,ra_buttons:nY,ra_changedFrom:oY,ra_close:rY,ra_create_boolean_state:aY,ra_create_channel:sY,ra_create_device:iY,ra_create_number_state:lY,ra_create_state:cY,ra_create_string_state:dY,ra_daysShortText:uY,ra_dow_Fr:pY,ra_dow_Mo:hY,ra_dow_Sa:fY,ra_dow_Su:mY,ra_dow_Th:gY,ra_dow_Tu:_Y,ra_dow_We:vY,ra_expertMode:yY,ra_fileType_all:bY,ra_fileType_audio:wY,ra_fileType_code:SY,ra_fileType_images:xY,ra_fileType_txt:CY,ra_fileType_video:$Y,"ra_fileType_video,":"Video",ra_filter_customs:kY,ra_filter_customs_without:EY,ra_filter_func:TY,ra_filter_id:OY,ra_filter_name:DY,ra_filter_role:AY,ra_filter_room:MY,ra_filter_type:NY,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:jY,ra_lastChange:zY,ra_locally:RY,ra_month_Apr:IY,ra_month_Aug:LY,ra_month_Dec:FY,ra_month_Feb:PY,ra_month_Jan:BY,ra_month_Jul:HY,ra_month_Jun:UY,ra_month_Mai:WY,ra_month_Mar:VY,ra_month_Nov:GY,ra_month_Oct:qY,ra_month_Sep:XY,ra_months_Apr:JY,ra_months_Aug:YY,ra_months_Dec:KY,ra_months_Feb:ZY,ra_months_Jan:QY,ra_months_Jul:eK,ra_months_Jun:tK,ra_months_Mai:nK,ra_months_Mar:oK,ra_months_Nov:rK,ra_months_Oct:aK,ra_months_Sep:sK,ra_none:iK,ra_object_changed_by:lK,ra_object_changed_by_user:cK,ra_otherConfig:dK,ra_qualityCode:uK,ra_repeat:pK,ra_select_folder_hint:hK,ra_state_changed_by:fK,ra_state_changed_from:mK,ra_timestamp:gK,ra_tooltip_ack:_K,ra_tooltip_comment:vK,ra_tooltip_copyState:yK,ra_tooltip_customConfig:bK,ra_tooltip_deleteObject:wK,ra_tooltip_editObject:SK,ra_tooltip_editState:xK,ra_tooltip_from:CK,ra_tooltip_lc:$K,ra_tooltip_quality:kK,ra_tooltip_ts:EK,ra_tooltip_user:TK,ra_tooltip_value:OK,"ra_use seconds":"use seconds",ra_val:DK,"ra_via internet":"via internet",ra_warning_every_minute:AK,ra_warning_every_second:MK,sc_cron:NK,sc_date:jK,sc_dates:zK,sc_dow:RK,sc_dows:IK,sc_every:LK,sc_everyN_dates:FK,sc_everyN_dow:PK,sc_everyN_dows:BK,sc_everyN_hours:HK,sc_everyN_minutes:UK,sc_everyN_months:WK,sc_everyN_seconds:VK,sc_every_dates:GK,sc_every_dow:qK,sc_every_dows:XK,sc_every_hours:JK,sc_every_minutes:YK,sc_every_months:KK,sc_every_seconds:ZK,sc_from:QK,sc_hours:eZ,sc_interval:tZ,sc_intervalBetween:nZ,sc_invalid_cron:oZ,sc_minutes:rZ,sc_months:aZ,sc_once:sZ,sc_period:iZ,sc_seconds:lZ,sc_simple:cZ,sc_specific:dZ,sc_specific_dates:uZ,sc_specific_dow:pZ,sc_specific_dows:hZ,sc_specific_hours:fZ,sc_specific_minutes:mZ,sc_specific_months:gZ,sc_specific_seconds:_Z,sc_time:vZ,sc_to:yZ,sc_wizard:bZ,sch_all:wZ,sch_astroDay:SZ,sch_astroNight:xZ,sch_astro_dawn:CZ,sch_astro_dusk:$Z,sch_astro_goldenHour:kZ,sch_astro_goldenHourEnd:EZ,sch_astro_nadir:TZ,sch_astro_nauticalDawn:OZ,sch_astro_nauticalDusk:DZ,sch_astro_night:AZ,sch_astro_nightEnd:MZ,sch_astro_solarNoon:NZ,sch_astro_sunrise:jZ,sch_astro_sunriseEnd:zZ,sch_astro_sunset:RZ,sch_astro_sunsetStart:IZ,sch_at:LZ,sch_desc_atTime:FZ,sch_desc_everyDay:PZ,sch_desc_everyHour:BZ,sch_desc_everyMinute:HZ,sch_desc_everyMonth:UZ,sch_desc_everyNDay:WZ,sch_desc_everyNHours:VZ,sch_desc_everyNMinutes:GZ,sch_desc_everyNMonths:qZ,sch_desc_everyNWeeks:XZ,sch_desc_everyNYears:JZ,sch_desc_everyWeek:YZ,sch_desc_everyYear:KZ,sch_desc_intervalFromTo:ZZ,sch_desc_never:QZ,sch_desc_onDate:eQ,sch_desc_onDates:tQ,sch_desc_onEveryDate:nQ,sch_desc_onMonth:oQ,sch_desc_onMonths:rQ,sch_desc_onWeekday:aQ,sch_desc_onWeekdays:sQ,sch_desc_onWeekends:iQ,sch_desc_onWorkdays:lQ,sch_desc_onceInPast:cQ,sch_desc_once_on:dQ,sch_desc_validFrom:uQ,sch_desc_validFromTo:pQ,sch_desc_validTo:hQ,sch_every:fQ,sch_exactTime:mQ,sch_from:gQ,sch_fromTo:_Q,sch_intervalTime:vQ,sch_invert:yQ,sch_no_one:bQ,sch_on:wQ,sch_period:SQ,sch_periodDaily:xQ,sch_periodDates:CQ,sch_periodDay:$Q,sch_periodEvery:kQ,sch_periodEveryDay:EQ,sch_periodEveryMonth:TQ,sch_periodEveryWeek:OQ,sch_periodEveryYear:DQ,sch_periodHours:AQ,sch_periodMinutes:MQ,sch_periodMonth:NQ,sch_periodMonthly:jQ,sch_periodOnce:zQ,sch_periodSpecificMonths:RQ,sch_periodWeek:IQ,sch_periodWeekdays:LQ,sch_periodWeekend:FQ,sch_periodWeekly:PQ,sch_periodWorkdays:BQ,sch_periodYear:HQ,sch_periodYearly:UQ,sch_specificTime:WQ,sch_time:VQ,sch_to:GQ,sch_valid:qQ,sch_validFrom:XQ,sch_validTo:JQ,sch_wholeDay:YQ,sch_yearEveryMonth:KQ},QQ="Anhängen",eee="Abbrechen",tee="Kategorien",nee="Geprüft",oee="Löschen",ree="Schließen",aee="Kommerziell",see="Konfigurieren",iee="Verbunden",lee="Kopiert",cee="Erstellen",dee="Ernte",uee="Entf",pee="Löschen",hee="Verwerfen",fee="Getrennt",mee="Fehler",gee="Filter",_ee="Freitag",vee="Breite",yee="Längengrad",bee="Meldung",wee="Montag",See="Name",xee="Objekte",Cee="OK",$ee="Produkt",kee="Wiederholen",Eee="Ersetzen",Tee="Anfang",Oee="Samstag",Dee="Speichern",Aee="Ausgewählt",Mee="Zustände",Nee="Sonntag",jee="Donnerstag",zee="Zeitstempel",Ree="Dienstag",Iee="Aktualisieren",Lee="Gültig bis",Fee="Wert",Pee="Ausführung",Bee="Mittwoch",Hee="Breite",Uee="Ja",Wee="unterschiedlich",Vee="Jeder kann Objekt lesen",Gee="Jeder kann Zustand lesen",qee="Jeder kann ein Objekt schreiben",Xee="Jeder kann Zustand schreiben",Jee="Gruppe kann Objekt lesen",Yee="Gruppe kann Status lesen",Kee="Gruppe kann Objekt schreiben",Zee="Gruppe kann Status schreiben",Qee="Besitzer kann Objekt lesen",ete="Besitzer kann Zustand lesen",tte="Besitzer kann Objekt schreiben",nte="Besitzer kann Zustand schreiben",ote="Tasten",rte="Geändert von",ate="Schließen",ste="Booleschen Zustand erstellen",ite="Kanal erstellen",lte="Gerät erstellen",cte="Nummern-Zustand erstellen",dte="Zustand erstellen",ute="String-Zustand erstellen",pte="T.",hte="Fr",fte="Mo",mte="Sa",gte="So",_te="Do",vte="Di",yte="Mi",bte="Expertenmodus",wte="Alle Dateien",Ste="Audio",xte="Code/JSON",Cte="Bilder",$te="Text",kte="Video",Ete="Einstellungen",Tte="ohne",Ote="Funktion",Dte="ID",Ate="Name",Mte="Rolle",Nte="Raum",jte="Typ",zte="Ungültige Einstellungen",Rte="Letzte Änderung",Ite="örtlich",Lte="Apr",Fte="Aug",Pte="Dez",Bte="Feb",Hte="Jan",Ute="Jul",Wte="Jun",Vte="Mai",Gte="Mär",qte="Nov",Xte="Okt",Jte="Sep",Yte="Apr",Kte="Aug",Zte="Dez",Qte="Feb",ene="Jan",tne="Jul",nne="Jun",one="Mai",rne="Mär",ane="Nov",sne="Okt",ine="Sep",lne="kein",cne="Objekt geändert von",dne="Objekt zuletzt geändert um",une="Einstellungen von anderen Adaptern %s",pne="Qualitätscode",hne="wiederholen",fne='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',mne="Zustand geändert durch",gne="Objekt geändert von",_ne="Zeitstempel",vne="Bestätigt",yne="Kommentar",bne="Statuswert kopieren",wne="Benutzerdefinierte Einstellungen",Sne="Objekt löschen",xne="Objekt bearbeiten",Cne="Statuswert bearbeiten",$ne="Von",kne="Zuletzt geändert",Ene="Qualität",Tne="Zeitstempel",One="Benutzer",Dne="Wert",Ane="Wert",Mne="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",Nne="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",jne="CRON",zne="Datum",Rne="Tage",Ine="Tag",Lne="Wochentage",Fne="Jeden",Pne="alle N Tage",Bne="jeden x-ten Tag der Woche",Hne="alle N Wochentage",Une="alle N Stunden",Wne="alle N Minuten",Vne="alle N Monate",Gne="alle N Sekunden",qne="jeden Tag",Xne="jeden Tag der Woche",Jne="jeden Tag der Woche",Yne="jede Stunde",Kne="jede Minute",Zne="jeden Monat",Qne="jede Sekunde",eoe="Von",toe="Stunden",noe="Intervall",ooe="Intervall zwischen",roe="Ungültiger CRON",aoe="Minuten",soe="Monate",ioe="Einmal",loe="Zeitraum",coe="Sekunden",doe="Einfach",uoe="Bestimmte Zeit",poe="bestimmte Tage",hoe="bestimmte(r) Tag(e) der Woche",foe="bestimmten Wochentag",moe="bestimmte Stunden",goe="bestimmte Minuten",_oe="bestimmte Monate",voe="bestimmte Sekunden",yoe="Zeit",boe="Bis",woe="Wizard",Soe="alle",xoe="Astronomischer Tag",Coe="Astronomische Nacht",$oe="Morgendämmerung",koe="Abenddämmerung",Eoe="Goldene Stunde",Toe="Goldene Stundenende",Ooe="Nadir",Doe="Nautische Morgendämmerung",Aoe="Nautische Abenddämmerung",Moe="Nacht",Noe="Nachtende",joe="Sonnenmittag",zoe="Sonnenaufgang",Roe="Sonnenaufgangende",Ioe="Sonnenuntergang",Loe="Sonnenuntergangstart",Foe="am",Poe="um %s",Boe="jeden Tag",Hoe="jede Stunde",Uoe="jede Minute",Woe="jeden Monat",Voe="jeden %s Tag",Goe="alle %s Stunden",qoe="alle %s Minuten",Xoe="alle %s Monate",Joe="alle %s Wochen",Yoe="alle %s Jahre",Koe="jede Woche",Zoe="jedes Jahr",Qoe="von %s bis %s",ere="noch nie",tre="am %s von %s",nre="am %s und %s von",ore="an jedem Datum von",rre="%s",are="%s und %s",sre="auf %s",ire="auf %s und %s",lre="an Wochenenden",cre="an Werktagen",dre="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",ure="auf %s",pre="von %s",hre="Ausführen von bis",fre="bis %s",mre="jeden",gre="Bestimmte Zeit",_re="von",vre="Von bis",yre="Zeitintervall",bre="umkehren",wre="keiner",Sre="am",xre="Zeitraum",Cre="Täglich",$re="Daten",kre="Tag",Ere="Jeden",Tre="Jeden Tag",Ore="Jeden Monat",Dre="Jede Woche",Are="Jedes Jahr",Mre="Stunden",Nre="Minuten",jre="Monat",zre="Monatlich",Rre="Einmal",Ire="Bestimmte Monate",Lre="Woche",Fre="Wochentage",Pre="Wochenende",Bre="Wöchentlich",Hre="Arbeitstage",Ure="Jahr",Wre="Jährlich",Vre="Bestimmte Zeit",Gre="Zeit",qre="zu",Xre="Gültigkeit",Jre="von",Yre="bis",Kre="Ganzer Tag",Zre="jeden Monat",Qre={"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_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 werden herausgefiltert","ra_All objects":"Alle Objekte",ra_Append:QQ,"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:eee,"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:tee,"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:nee,ra_Clear:oee,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:ree,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:aee,ra_Configure:see,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:iee,ra_Copied:lee,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:cee,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:dee,"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:uee,ra_Delete:pee,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:hee,ra_Disconnected:fee,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:mee,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:gee,"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:_ee,"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_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 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:vee,"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_Longitude:yee,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:bee,ra_Monday:wee,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:See,"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 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_Objects:xee,ra_Ok:Cee,"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 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_Private certificate":"Privates Zertifikat",ra_Product:$ee,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:kee,ra_Replace:Eee,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:Tee,ra_Saturday:Oee,ra_Save:Dee,"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:Aee,"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_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:Mee,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:Nee,"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:jee,ra_Timestamp:zee,"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:Ree,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:Iee,"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:Lee,ra_Value:Fee,ra_Version:Pee,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:Bee,ra_Width:Hee,ra_Yes:Uee,"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___different__:Wee,ra_aclEveryone_read_object:Vee,ra_aclEveryone_read_state:Gee,ra_aclEveryone_write_object:qee,ra_aclEveryone_write_state:Xee,ra_aclGroup_read_object:Jee,ra_aclGroup_read_state:Yee,ra_aclGroup_write_object:Kee,ra_aclGroup_write_state:Zee,ra_aclOwner_read_object:Qee,ra_aclOwner_read_state:ete,ra_aclOwner_write_object:tte,ra_aclOwner_write_state:nte,ra_buttons:ote,ra_changedFrom:rte,ra_close:ate,ra_create_boolean_state:ste,ra_create_channel:ite,ra_create_device:lte,ra_create_number_state:cte,ra_create_state:dte,ra_create_string_state:ute,ra_daysShortText:pte,ra_dow_Fr:hte,ra_dow_Mo:fte,ra_dow_Sa:mte,ra_dow_Su:gte,ra_dow_Th:_te,ra_dow_Tu:vte,ra_dow_We:yte,ra_expertMode:bte,ra_fileType_all:wte,ra_fileType_audio:Ste,ra_fileType_code:xte,ra_fileType_images:Cte,ra_fileType_txt:$te,ra_fileType_video:kte,"ra_fileType_video,":"Video",ra_filter_customs:Ete,ra_filter_customs_without:Tte,ra_filter_func:Ote,ra_filter_id:Dte,ra_filter_name:Ate,ra_filter_role:Mte,ra_filter_room:Nte,ra_filter_type:jte,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:zte,ra_lastChange:Rte,ra_locally:Ite,ra_month_Apr:Lte,ra_month_Aug:Fte,ra_month_Dec:Pte,ra_month_Feb:Bte,ra_month_Jan:Hte,ra_month_Jul:Ute,ra_month_Jun:Wte,ra_month_Mai:Vte,ra_month_Mar:Gte,ra_month_Nov:qte,ra_month_Oct:Xte,ra_month_Sep:Jte,ra_months_Apr:Yte,ra_months_Aug:Kte,ra_months_Dec:Zte,ra_months_Feb:Qte,ra_months_Jan:ene,ra_months_Jul:tne,ra_months_Jun:nne,ra_months_Mai:one,ra_months_Mar:rne,ra_months_Nov:ane,ra_months_Oct:sne,ra_months_Sep:ine,ra_none:lne,ra_object_changed_by:cne,ra_object_changed_by_user:dne,ra_otherConfig:une,ra_qualityCode:pne,ra_repeat:hne,ra_select_folder_hint:fne,ra_state_changed_by:mne,ra_state_changed_from:gne,ra_timestamp:_ne,ra_tooltip_ack:vne,ra_tooltip_comment:yne,ra_tooltip_copyState:bne,ra_tooltip_customConfig:wne,ra_tooltip_deleteObject:Sne,ra_tooltip_editObject:xne,ra_tooltip_editState:Cne,ra_tooltip_from:$ne,ra_tooltip_lc:kne,ra_tooltip_quality:Ene,ra_tooltip_ts:Tne,ra_tooltip_user:One,ra_tooltip_value:Dne,"ra_use seconds":"Sekunden benutzen",ra_val:Ane,"ra_via internet":"übers Internet",ra_warning_every_minute:Mne,ra_warning_every_second:Nne,sc_cron:jne,sc_date:zne,sc_dates:Rne,sc_dow:Ine,sc_dows:Lne,sc_every:Fne,sc_everyN_dates:Pne,sc_everyN_dow:Bne,sc_everyN_dows:Hne,sc_everyN_hours:Une,sc_everyN_minutes:Wne,sc_everyN_months:Vne,sc_everyN_seconds:Gne,sc_every_dates:qne,sc_every_dow:Xne,sc_every_dows:Jne,sc_every_hours:Yne,sc_every_minutes:Kne,sc_every_months:Zne,sc_every_seconds:Qne,sc_from:eoe,sc_hours:toe,sc_interval:noe,sc_intervalBetween:ooe,sc_invalid_cron:roe,sc_minutes:aoe,sc_months:soe,sc_once:ioe,sc_period:loe,sc_seconds:coe,sc_simple:doe,sc_specific:uoe,sc_specific_dates:poe,sc_specific_dow:hoe,sc_specific_dows:foe,sc_specific_hours:moe,sc_specific_minutes:goe,sc_specific_months:_oe,sc_specific_seconds:voe,sc_time:yoe,sc_to:boe,sc_wizard:woe,sch_all:Soe,sch_astroDay:xoe,sch_astroNight:Coe,sch_astro_dawn:$oe,sch_astro_dusk:koe,sch_astro_goldenHour:Eoe,sch_astro_goldenHourEnd:Toe,sch_astro_nadir:Ooe,sch_astro_nauticalDawn:Doe,sch_astro_nauticalDusk:Aoe,sch_astro_night:Moe,sch_astro_nightEnd:Noe,sch_astro_solarNoon:joe,sch_astro_sunrise:zoe,sch_astro_sunriseEnd:Roe,sch_astro_sunset:Ioe,sch_astro_sunsetStart:Loe,sch_at:Foe,sch_desc_atTime:Poe,sch_desc_everyDay:Boe,sch_desc_everyHour:Hoe,sch_desc_everyMinute:Uoe,sch_desc_everyMonth:Woe,sch_desc_everyNDay:Voe,sch_desc_everyNHours:Goe,sch_desc_everyNMinutes:qoe,sch_desc_everyNMonths:Xoe,sch_desc_everyNWeeks:Joe,sch_desc_everyNYears:Yoe,sch_desc_everyWeek:Koe,sch_desc_everyYear:Zoe,sch_desc_intervalFromTo:Qoe,sch_desc_never:ere,sch_desc_onDate:tre,sch_desc_onDates:nre,sch_desc_onEveryDate:ore,sch_desc_onMonth:rre,sch_desc_onMonths:are,sch_desc_onWeekday:sre,sch_desc_onWeekdays:ire,sch_desc_onWeekends:lre,sch_desc_onWorkdays:cre,sch_desc_onceInPast:dre,sch_desc_once_on:ure,sch_desc_validFrom:pre,sch_desc_validFromTo:hre,sch_desc_validTo:fre,sch_every:mre,sch_exactTime:gre,sch_from:_re,sch_fromTo:vre,sch_intervalTime:yre,sch_invert:bre,sch_no_one:wre,sch_on:Sre,sch_period:xre,sch_periodDaily:Cre,sch_periodDates:$re,sch_periodDay:kre,sch_periodEvery:Ere,sch_periodEveryDay:Tre,sch_periodEveryMonth:Ore,sch_periodEveryWeek:Dre,sch_periodEveryYear:Are,sch_periodHours:Mre,sch_periodMinutes:Nre,sch_periodMonth:jre,sch_periodMonthly:zre,sch_periodOnce:Rre,sch_periodSpecificMonths:Ire,sch_periodWeek:Lre,sch_periodWeekdays:Fre,sch_periodWeekend:Pre,sch_periodWeekly:Bre,sch_periodWorkdays:Hre,sch_periodYear:Ure,sch_periodYearly:Wre,sch_specificTime:Vre,sch_time:Gre,sch_to:qre,sch_valid:Xre,sch_validFrom:Jre,sch_validTo:Yre,sch_wholeDay:Kre,sch_yearEveryMonth:Zre},eae="Добавить",tae="Отмена",nae="Категории",oae="Проверено",rae="Удалить",aae="Закрыть",sae="Коммерческая",iae="Настроить",lae="Соединение установлено",cae="скопировано",dae="Создать",uae="Обрезать",pae="Delete",hae="Удалить",fae="Отказаться",mae="Отключено",gae="Ошибка",_ae="Фильтр",vae="Пятница",yae="Широта",bae="Долгота",wae="Сообщение",Sae="Понедельник",xae="Имя",Cae="Объекты",$ae="Ok",kae="Продукт",Eae="Повторение",Tae="Заменять",Oae="Начало",Dae="Суббота",Aae="Сохранить",Mae="выбранный",Nae="Состояния",jae="Воскресенье",zae="Четверг",Rae="Времени",Iae="Вторник",Lae="Обновить",Fae="Годен до",Pae="Значение",Bae="Версия",Hae="Среда",Uae="Ширина",Wae="Да",Vae="разное",Gae="Каждый может читать объект",qae="Каждый может читать состояние",Xae="Каждый может написать объект",Jae="Каждый может написать состояние",Yae="Группа может читать объект",Kae="Группа может читать состояние",Zae="Группа может писать объект",Qae="Группа может записывать состояние",ese="Владелец может читать объект",tse="Владелец может читать состояние",nse="Владелец может писать объект",ose="Владелец может писать состояние",rse="Кнопки",ase="Изменено с",sse="Закрыть",ise="Создать логическое состояние",lse="Создать канал",cse="Создать устройство",dse="Создать состояние номера",use="Создать состояние",pse="Создать состояние строки",hse="д.",fse="Пт",mse="Пн",gse="Сб",_se="Вс",vse="Чт",yse="Вт",bse="Ср",wse="Экспертный режим",Sse="Все файлы",xse="Аудио",Cse="Код/JSON",$se="Картинки",kse="Текст",Ese="видео",Tse="настройки",Ose="без",Dse="функция",Ase="ID",Mse="Имя",Nse="роль",jse="комната",zse="Тип",Rse="Неверные настройки",Ise="Последнее изменение",Lse="локально",Fse="Апр",Pse="Авг",Bse="Дек",Hse="Фев",Use="Янв",Wse="Июл",Vse="Июн",Gse="Май",qse="Мрт",Xse="Ноя",Jse="Окт",Yse="Сен",Kse="Апр",Zse="Авг",Qse="Дек",eie="Фев",tie="Янв",nie="Июнь",oie="Июль",rie="Май",aie="Март",sie="Ноя",iie="Окт",lie="Сен",cie="ничего",die="Объект изменен",uie="Последний раз объект изменен в",pie="Настройки из другого адаптера %s",hie="Код качества",fie="повтор",mie="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",gie="Состояние изменено",_ie="Объект изменен с",vie="Отметка времени",yie="Подтверждено",bie="Комментарий",wie="Скопируйте значение состояния",Sie="Пользовательские настройки",xie="Удалить объект",Cie="Редактировать объект",$ie="Изменить значение состояния",kie="От",Eie="Последнее изменение",Tie="Качество",Oie="Отметка времени",Die="пользователь",Aie="Значение",Mie="Значение",Nie="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",jie="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",zie="CRON",Rie="Дата",Iie="Даты",Lie="День",Fie="День недели",Pie="каждый(ую/ые)",Bie="каждый N день",Hie="каждый N-й день недели",Uie="каждый N день недели",Wie="каждые N часов",Vie="каждые N минут",Gie="каждые N месяцев",qie="каждые N секунд",Xie="каждый день",Jie="Каждый день недели",Yie="каждый день недели",Kie="каждый час",Zie="каждую минуту",Qie="каждый месяц",ele="каждую секунду",tle="От",nle="часы",ole="Интервал",rle="Интервал между",ale="Неверный CRON",sle="минуты",ile="Месяцы",lle="один раз",cle="Период",dle="секунды",ule="Просто",ple="Конкретное время",hle="конкретные даты",fle="конкретный день(а) недели",mle="конкретный день недели",gle="конкретные часы",_le="конкретные минуты",vle="конкретные месяцы",yle="конкретные секунды",ble="Время",wle="До",Sle="Форма",xle="все",Cle="днём",$le="ночью",kle="Рассвет",Ele="Сумерки",Tle="Золотой час",Ole="Конец золотого часа",Dle="Надир",Ale="Морской рассвет",Mle="Морские сумерки",Nle="Ночь",jle="Конец ночи",zle="Солнечный полдень",Rle="Восход",Ile="Восход солнца",Lle="Заход солнца",Fle="Начало заката",Ple="дата",Ble="в %s",Hle="каждый день",Ule="каждый час",Wle="каждую минуту",Vle="каждый месяц",Gle="каждый %s день",qle="каждый %s часов",Xle="каждые %s минут",Jle="каждые %s месяцев",Yle="каждые %s недель",Kle="каждые %s лет",Zle="каждую неделю",Qle="каждый год",ece="от %s до %s",tce="никогда",nce="%s %s",oce="%s и %s",rce="в каждый день",ace="%s",sce="%s и %s",ice="%s",lce="%s и %s",cce="на выходных",dce="в рабочие дни",uce="не будет больше выполняться, потому что начало в прошлом",pce="%s",hce="%s",fce="Выполнить с",mce="%s",gce="каждый",_ce="Конкретное время",vce="от",yce="От и до",bce="Интервал времени",wce="инвертировать",Sce="никакой",xce="на",Cce="период",$ce="Ежедневно",kce="Даты",Ece="День",Tce="каждый",Oce="Каждый день",Dce="Каждый месяц",Ace="Каждую неделю",Mce="Каждый год",Nce="часов",jce="минут",zce="месяц",Rce="ежемесячно",Ice="однажды",Lce="Конкретные месяцы",Fce="Неделю",Pce="Будние дни",Bce="выходные",Hce="еженедельно",Uce="Рабочие дни",Wce="Год",Vce="каждый год",Gce="Конкретное время",qce="Время",Xce="в",Jce="действительный",Yce="от",Kce="в",Zce="Весь день",Qce="каждый месяц",ede={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:eae,"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:tae,"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:nae,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:oae,ra_Clear:rae,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:aae,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:sae,ra_Configure:iae,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:lae,ra_Copied:cae,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:dae,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:uae,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:pae,ra_Delete:hae,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:fae,ra_Disconnected:mae,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:gae,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:_ae,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:vae,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:yae,"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_Longitude:bae,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:wae,ra_Monday:Sae,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:xae,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:Cae,ra_Ok:$ae,"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 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_Private certificate":"Частный сертификат",ra_Product:kae,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:Eae,ra_Replace:Tae,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:Oae,ra_Saturday:Dae,ra_Save:Aae,"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:Mae,"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_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:Nae,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:jae,"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:zae,ra_Timestamp:Rae,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:Iae,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:Lae,"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:Fae,ra_Value:Pae,ra_Version:Bae,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:Hae,ra_Width:Uae,ra_Yes:Wae,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:Vae,ra_aclEveryone_read_object:Gae,ra_aclEveryone_read_state:qae,ra_aclEveryone_write_object:Xae,ra_aclEveryone_write_state:Jae,ra_aclGroup_read_object:Yae,ra_aclGroup_read_state:Kae,ra_aclGroup_write_object:Zae,ra_aclGroup_write_state:Qae,ra_aclOwner_read_object:ese,ra_aclOwner_read_state:tse,ra_aclOwner_write_object:nse,ra_aclOwner_write_state:ose,ra_buttons:rse,ra_changedFrom:ase,ra_close:sse,ra_create_boolean_state:ise,ra_create_channel:lse,ra_create_device:cse,ra_create_number_state:dse,ra_create_state:use,ra_create_string_state:pse,ra_daysShortText:hse,ra_dow_Fr:fse,ra_dow_Mo:mse,ra_dow_Sa:gse,ra_dow_Su:_se,ra_dow_Th:vse,ra_dow_Tu:yse,ra_dow_We:bse,ra_expertMode:wse,ra_fileType_all:Sse,ra_fileType_audio:xse,ra_fileType_code:Cse,ra_fileType_images:$se,ra_fileType_txt:kse,ra_fileType_video:Ese,"ra_fileType_video,":"видео",ra_filter_customs:Tse,ra_filter_customs_without:Ose,ra_filter_func:Dse,ra_filter_id:Ase,ra_filter_name:Mse,ra_filter_role:Nse,ra_filter_room:jse,ra_filter_type:zse,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:Rse,ra_lastChange:Ise,ra_locally:Lse,ra_month_Apr:Fse,ra_month_Aug:Pse,ra_month_Dec:Bse,ra_month_Feb:Hse,ra_month_Jan:Use,ra_month_Jul:Wse,ra_month_Jun:Vse,ra_month_Mai:Gse,ra_month_Mar:qse,ra_month_Nov:Xse,ra_month_Oct:Jse,ra_month_Sep:Yse,ra_months_Apr:Kse,ra_months_Aug:Zse,ra_months_Dec:Qse,ra_months_Feb:eie,ra_months_Jan:tie,ra_months_Jul:nie,ra_months_Jun:oie,ra_months_Mai:rie,ra_months_Mar:aie,ra_months_Nov:sie,ra_months_Oct:iie,ra_months_Sep:lie,ra_none:cie,ra_object_changed_by:die,ra_object_changed_by_user:uie,ra_otherConfig:pie,ra_qualityCode:hie,ra_repeat:fie,ra_select_folder_hint:mie,ra_state_changed_by:gie,ra_state_changed_from:_ie,ra_timestamp:vie,ra_tooltip_ack:yie,ra_tooltip_comment:bie,ra_tooltip_copyState:wie,ra_tooltip_customConfig:Sie,ra_tooltip_deleteObject:xie,ra_tooltip_editObject:Cie,ra_tooltip_editState:$ie,ra_tooltip_from:kie,ra_tooltip_lc:Eie,ra_tooltip_quality:Tie,ra_tooltip_ts:Oie,ra_tooltip_user:Die,ra_tooltip_value:Aie,"ra_use seconds":"секунды",ra_val:Mie,"ra_via internet":"через интернет",ra_warning_every_minute:Nie,ra_warning_every_second:jie,sc_cron:zie,sc_date:Rie,sc_dates:Iie,sc_dow:Lie,sc_dows:Fie,sc_every:Pie,sc_everyN_dates:Bie,sc_everyN_dow:Hie,sc_everyN_dows:Uie,sc_everyN_hours:Wie,sc_everyN_minutes:Vie,sc_everyN_months:Gie,sc_everyN_seconds:qie,sc_every_dates:Xie,sc_every_dow:Jie,sc_every_dows:Yie,sc_every_hours:Kie,sc_every_minutes:Zie,sc_every_months:Qie,sc_every_seconds:ele,sc_from:tle,sc_hours:nle,sc_interval:ole,sc_intervalBetween:rle,sc_invalid_cron:ale,sc_minutes:sle,sc_months:ile,sc_once:lle,sc_period:cle,sc_seconds:dle,sc_simple:ule,sc_specific:ple,sc_specific_dates:hle,sc_specific_dow:fle,sc_specific_dows:mle,sc_specific_hours:gle,sc_specific_minutes:_le,sc_specific_months:vle,sc_specific_seconds:yle,sc_time:ble,sc_to:wle,sc_wizard:Sle,sch_all:xle,sch_astroDay:Cle,sch_astroNight:$le,sch_astro_dawn:kle,sch_astro_dusk:Ele,sch_astro_goldenHour:Tle,sch_astro_goldenHourEnd:Ole,sch_astro_nadir:Dle,sch_astro_nauticalDawn:Ale,sch_astro_nauticalDusk:Mle,sch_astro_night:Nle,sch_astro_nightEnd:jle,sch_astro_solarNoon:zle,sch_astro_sunrise:Rle,sch_astro_sunriseEnd:Ile,sch_astro_sunset:Lle,sch_astro_sunsetStart:Fle,sch_at:Ple,sch_desc_atTime:Ble,sch_desc_everyDay:Hle,sch_desc_everyHour:Ule,sch_desc_everyMinute:Wle,sch_desc_everyMonth:Vle,sch_desc_everyNDay:Gle,sch_desc_everyNHours:qle,sch_desc_everyNMinutes:Xle,sch_desc_everyNMonths:Jle,sch_desc_everyNWeeks:Yle,sch_desc_everyNYears:Kle,sch_desc_everyWeek:Zle,sch_desc_everyYear:Qle,sch_desc_intervalFromTo:ece,sch_desc_never:tce,sch_desc_onDate:nce,sch_desc_onDates:oce,sch_desc_onEveryDate:rce,sch_desc_onMonth:ace,sch_desc_onMonths:sce,sch_desc_onWeekday:ice,sch_desc_onWeekdays:lce,sch_desc_onWeekends:cce,sch_desc_onWorkdays:dce,sch_desc_onceInPast:uce,sch_desc_once_on:pce,sch_desc_validFrom:hce,sch_desc_validFromTo:fce,sch_desc_validTo:mce,sch_every:gce,sch_exactTime:_ce,sch_from:vce,sch_fromTo:yce,sch_intervalTime:bce,sch_invert:wce,sch_no_one:Sce,sch_on:xce,sch_period:Cce,sch_periodDaily:$ce,sch_periodDates:kce,sch_periodDay:Ece,sch_periodEvery:Tce,sch_periodEveryDay:Oce,sch_periodEveryMonth:Dce,sch_periodEveryWeek:Ace,sch_periodEveryYear:Mce,sch_periodHours:Nce,sch_periodMinutes:jce,sch_periodMonth:zce,sch_periodMonthly:Rce,sch_periodOnce:Ice,sch_periodSpecificMonths:Lce,sch_periodWeek:Fce,sch_periodWeekdays:Pce,sch_periodWeekend:Bce,sch_periodWeekly:Hce,sch_periodWorkdays:Uce,sch_periodYear:Wce,sch_periodYearly:Vce,sch_specificTime:Gce,sch_time:qce,sch_to:Xce,sch_valid:Jce,sch_validFrom:Yce,sch_validTo:Kce,sch_wholeDay:Zce,sch_yearEveryMonth:Qce},tde="Acrescentar",nde="Cancelar",ode="Categorias",rde="Verificado",ade="Excluir",sde="Perto",ide="Comercial",lde="Configurar",cde="Conectado",dde="Copiado",ude="Crio",pde="Colheita",hde="Delete",fde="Excluir",mde="Descartar",gde="Desconectado",_de="Erro",vde="Filtro",yde="Sexta-feira",bde="Latitude",wde="Longitude",Sde="mensagem",xde="Segunda-feira",Cde="Nome",$de="Objetos",kde="Está bem",Ede="produtos",Tde="Repita",Ode="Substituir",Dde="Raiz",Ade="Sábado",Mde="Salve ",Nde="Selecionado",jde="Estados",zde="Domingo",Rde="Quinta-feira",Ide="Timestamp",Lde="Terça-feira",Fde="Atualizar",Pde="Válida até",Bde="Valor",Hde="Versão",Ude="Quarta-feira",Wde="Largura",Vde="Sim",Gde="diferente",qde="Todos podem ler objetos",Xde="Todos podem ler o estado",Jde="Todos podem escrever objetos",Yde="Todos podem escrever o estado",Kde="O grupo pode ler o objeto",Zde="O grupo pode ler o estado",Qde="O grupo pode escrever o objeto",eue="O grupo pode escrever o estado",tue="O proprietário pode ler o objeto",nue="O proprietário pode ler o estado",oue="O proprietário pode escrever o objeto",rue="O proprietário pode escrever o estado",aue="Botões",sue="Mudou de",iue="fechar",lue="Criar estado booleano",cue="Criar canal",due="Criar dispositivo",uue="Criar estado numérico",pue="Criar estado",hue="Criar estado de string",fue="d.",mue="Fr",gue="Mo",_ue="Sa",vue="Su",yue="º",bue="Tu",wue="Nós",Sue="Modo especialista",xue="Todos os arquivos",Cue="áudio",$ue="Código/JSON",kue="Imagens",Eue="Texto",Tue="Vídeo",Oue="Configurações",Due="sem",Aue="Função",Mue="ID",Nue="Nome",jue="Papel (Função)",zue="Quarto",Rue="Tipo",Iue="Configurações inválidas",Lue="Última mudança",Fue="localmente",Pue="abril",Bue="agosto",Hue="dezembro",Uue="fevereiro",Wue="janeiro",Vue="julho",Gue="junho",que="Mai",Xue="março",Jue="novembro",Yue="outubro",Kue="setembro",Zue="abril",Que="agosto",epe="dezembro",tpe="fevereiro",npe="janeiro",ope="julho",rpe="junho",ape="Mai",spe="março",ipe="novembro",lpe="outubro",cpe="setembro",dpe="Nenhum",upe="Objeto alterado por",ppe="Objeto alterado pela última vez em",hpe="Configurações de outro adaptador %s",fpe="Código de qualidade",mpe="repetir",gpe='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',_pe="Estado alterado por",vpe="Objeto alterado de",ype="Timestamp",bpe="Confirmado",wpe="Comente",Spe="Copie o valor do estado",xpe="Opções customizadas",Cpe="Excluir objeto",$pe="Editar objeto",kpe="Edite o valor do estado",Epe="De",Tpe="Última alteração",Ope="Qualidade",Dpe="Timestamp",Ape="Usuário",Mpe="Valor",Npe="Valor",jpe="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",zpe="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",Rpe="CRON",Ipe="Data",Lpe="Dias",Fpe="Dia",Ppe="Dia da semana",Bpe="todos",Hpe="a cada N dias",Upe="todo enésimo dia da semana",Wpe="todos os N dias da semana",Vpe="a cada N horas",Gpe="a cada N minutos",qpe="a cada N meses",Xpe="a cada N segundos",Jpe="todo dia",Ype="todos os dias da semana",Kpe="todos os dias da semana",Zpe="toda hora",Qpe="todo minuto",ehe="todo mês",the="todo segundo",nhe="de",ohe="horas",rhe="intervalo",ahe="intervalo entre",she="CRON inválido",ihe="minutos",lhe="meses",che="uma vez",dhe="período",uhe="segundos",phe="simples",hhe="tempo específico",fhe="datas específicas",mhe="dia(s) específico(s) da semana",ghe="dia específico de semanas",_he="horas específicas",vhe="minutos específicos",yhe="meses específicos",bhe="segundos específicos",whe="tempo",She="para",xhe="assistente",Che="tudo",$he="dia astral",khe="noite astral",Ehe="amanhecer",The="anoitecer",Ohe="hora dourada",Dhe="Fim da hora dourada",Ahe="nadir",Mhe="Amanhecer náutico",Nhe="Anoitecer náutico",jhe="noite",zhe="fim da noite",Rhe="meio-dia solar",Ihe="nascer do sol",Lhe="fim do nascer do sol",Fhe="pôr do sol",Phe="início do pôr do sol",Bhe="às",Hhe="em %s",Uhe="todo dia",Whe="toda hora",Vhe="todo minuto",Ghe="todo mês",qhe="a cada %s dias",Xhe="a cada %s horas",Jhe="a cada %s minutos",Yhe="a cada %s meses",Khe="a cada %s semanas",Zhe="a cada %s anos",Qhe="toda semana",efe="todo ano",tfe="de %s para %s",nfe="nunca",ofe="em %s de %s",rfe="em %s e %s de",afe="em toda data de",sfe="%s",ife="%s e %s",lfe="em %s",cfe="em %s e %s",dfe="nos fins de semana",ufe="em dias úteis",pfe="não será mais executado, porque o começo está no passado",hfe="em %s",ffe="de %s",mfe="Executar de até",gfe="até %s",_fe="cada",vfe="tempo específico",yfe="de",bfe="de a´t",wfe="tempo de intervalo",Sfe="invertido",xfe="nenhum",Cfe="em",$fe="período",kfe="diariamente",Efe="datas",Tfe="dia",Ofe="todos",Dfe="todo dia",Afe="todo mês",Mfe="toda semana",Nfe="todo ano",jfe="horas",zfe="minutos",Rfe="mês",Ife="por mês",Lfe="uma vez",Ffe="meses específicos",Pfe="semana",Bfe="dias úteis",Hfe="final de semana",Ufe="semanal",Wfe="dias úteis",Vfe="ano",Gfe="anual",qfe="tempo específico",Xfe="tempo",Jfe="para",Yfe="válido",Kfe="de",Zfe="para",Qfe="dia inteiro",eme="todo mês",tme={"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_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:tde,"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:nde,"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:ode,"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:rde,ra_Clear:ade,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:sde,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:ide,ra_Configure:lde,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:cde,ra_Copied:dde,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:ude,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:pde,"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:hde,ra_Delete:fde,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:mde,ra_Disconnected:gde,"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_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 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_Error:_de,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:vde,"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:yde,"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_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 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:bde,"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_Longitude:wde,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:Sde,ra_Monday:xde,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:Cde,"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 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_Objects:$de,ra_Ok:kde,"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 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_Private certificate":"certificado privado",ra_Product:Ede,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:Tde,ra_Replace:Ode,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:Dde,ra_Saturday:Ade,ra_Save:Mde,"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:Nde,"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_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:jde,"ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:zde,"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:Rde,ra_Timestamp:Ide,"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:Lde,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:Fde,"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:Bde,ra_Version:Hde,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:Ude,ra_Width:Wde,ra_Yes:Vde,"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___different__:Gde,ra_aclEveryone_read_object:qde,ra_aclEveryone_read_state:Xde,ra_aclEveryone_write_object:Jde,ra_aclEveryone_write_state:Yde,ra_aclGroup_read_object:Kde,ra_aclGroup_read_state:Zde,ra_aclGroup_write_object:Qde,ra_aclGroup_write_state:eue,ra_aclOwner_read_object:tue,ra_aclOwner_read_state:nue,ra_aclOwner_write_object:oue,ra_aclOwner_write_state:rue,ra_buttons:aue,ra_changedFrom:sue,ra_close:iue,ra_create_boolean_state:lue,ra_create_channel:cue,ra_create_device:due,ra_create_number_state:uue,ra_create_state:pue,ra_create_string_state:hue,ra_daysShortText:fue,ra_dow_Fr:mue,ra_dow_Mo:gue,ra_dow_Sa:_ue,ra_dow_Su:vue,ra_dow_Th:yue,ra_dow_Tu:bue,ra_dow_We:wue,ra_expertMode:Sue,ra_fileType_all:xue,ra_fileType_audio:Cue,ra_fileType_code:$ue,ra_fileType_images:kue,ra_fileType_txt:Eue,ra_fileType_video:Tue,"ra_fileType_video,":"Vídeo",ra_filter_customs:Oue,ra_filter_customs_without:Due,ra_filter_func:Aue,ra_filter_id:Mue,ra_filter_name:Nue,ra_filter_role:jue,ra_filter_room:zue,ra_filter_type:Rue,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:Iue,ra_lastChange:Lue,ra_locally:Fue,ra_month_Apr:Pue,ra_month_Aug:Bue,ra_month_Dec:Hue,ra_month_Feb:Uue,ra_month_Jan:Wue,ra_month_Jul:Vue,ra_month_Jun:Gue,ra_month_Mai:que,ra_month_Mar:Xue,ra_month_Nov:Jue,ra_month_Oct:Yue,ra_month_Sep:Kue,ra_months_Apr:Zue,ra_months_Aug:Que,ra_months_Dec:epe,ra_months_Feb:tpe,ra_months_Jan:npe,ra_months_Jul:ope,ra_months_Jun:rpe,ra_months_Mai:ape,ra_months_Mar:spe,ra_months_Nov:ipe,ra_months_Oct:lpe,ra_months_Sep:cpe,ra_none:dpe,ra_object_changed_by:upe,ra_object_changed_by_user:ppe,ra_otherConfig:hpe,ra_qualityCode:fpe,ra_repeat:mpe,ra_select_folder_hint:gpe,ra_state_changed_by:_pe,ra_state_changed_from:vpe,ra_timestamp:ype,ra_tooltip_ack:bpe,ra_tooltip_comment:wpe,ra_tooltip_copyState:Spe,ra_tooltip_customConfig:xpe,ra_tooltip_deleteObject:Cpe,ra_tooltip_editObject:$pe,ra_tooltip_editState:kpe,ra_tooltip_from:Epe,ra_tooltip_lc:Tpe,ra_tooltip_quality:Ope,ra_tooltip_ts:Dpe,ra_tooltip_user:Ape,ra_tooltip_value:Mpe,"ra_use seconds":"use segundos",ra_val:Npe,"ra_via internet":"via internet",ra_warning_every_minute:jpe,ra_warning_every_second:zpe,sc_cron:Rpe,sc_date:Ipe,sc_dates:Lpe,sc_dow:Fpe,sc_dows:Ppe,sc_every:Bpe,sc_everyN_dates:Hpe,sc_everyN_dow:Upe,sc_everyN_dows:Wpe,sc_everyN_hours:Vpe,sc_everyN_minutes:Gpe,sc_everyN_months:qpe,sc_everyN_seconds:Xpe,sc_every_dates:Jpe,sc_every_dow:Ype,sc_every_dows:Kpe,sc_every_hours:Zpe,sc_every_minutes:Qpe,sc_every_months:ehe,sc_every_seconds:the,sc_from:nhe,sc_hours:ohe,sc_interval:rhe,sc_intervalBetween:ahe,sc_invalid_cron:she,sc_minutes:ihe,sc_months:lhe,sc_once:che,sc_period:dhe,sc_seconds:uhe,sc_simple:phe,sc_specific:hhe,sc_specific_dates:fhe,sc_specific_dow:mhe,sc_specific_dows:ghe,sc_specific_hours:_he,sc_specific_minutes:vhe,sc_specific_months:yhe,sc_specific_seconds:bhe,sc_time:whe,sc_to:She,sc_wizard:xhe,sch_all:Che,sch_astroDay:$he,sch_astroNight:khe,sch_astro_dawn:Ehe,sch_astro_dusk:The,sch_astro_goldenHour:Ohe,sch_astro_goldenHourEnd:Dhe,sch_astro_nadir:Ahe,sch_astro_nauticalDawn:Mhe,sch_astro_nauticalDusk:Nhe,sch_astro_night:jhe,sch_astro_nightEnd:zhe,sch_astro_solarNoon:Rhe,sch_astro_sunrise:Ihe,sch_astro_sunriseEnd:Lhe,sch_astro_sunset:Fhe,sch_astro_sunsetStart:Phe,sch_at:Bhe,sch_desc_atTime:Hhe,sch_desc_everyDay:Uhe,sch_desc_everyHour:Whe,sch_desc_everyMinute:Vhe,sch_desc_everyMonth:Ghe,sch_desc_everyNDay:qhe,sch_desc_everyNHours:Xhe,sch_desc_everyNMinutes:Jhe,sch_desc_everyNMonths:Yhe,sch_desc_everyNWeeks:Khe,sch_desc_everyNYears:Zhe,sch_desc_everyWeek:Qhe,sch_desc_everyYear:efe,sch_desc_intervalFromTo:tfe,sch_desc_never:nfe,sch_desc_onDate:ofe,sch_desc_onDates:rfe,sch_desc_onEveryDate:afe,sch_desc_onMonth:sfe,sch_desc_onMonths:ife,sch_desc_onWeekday:lfe,sch_desc_onWeekdays:cfe,sch_desc_onWeekends:dfe,sch_desc_onWorkdays:ufe,sch_desc_onceInPast:pfe,sch_desc_once_on:hfe,sch_desc_validFrom:ffe,sch_desc_validFromTo:mfe,sch_desc_validTo:gfe,sch_every:_fe,sch_exactTime:vfe,sch_from:yfe,sch_fromTo:bfe,sch_intervalTime:wfe,sch_invert:Sfe,sch_no_one:xfe,sch_on:Cfe,sch_period:$fe,sch_periodDaily:kfe,sch_periodDates:Efe,sch_periodDay:Tfe,sch_periodEvery:Ofe,sch_periodEveryDay:Dfe,sch_periodEveryMonth:Afe,sch_periodEveryWeek:Mfe,sch_periodEveryYear:Nfe,sch_periodHours:jfe,sch_periodMinutes:zfe,sch_periodMonth:Rfe,sch_periodMonthly:Ife,sch_periodOnce:Lfe,sch_periodSpecificMonths:Ffe,sch_periodWeek:Pfe,sch_periodWeekdays:Bfe,sch_periodWeekend:Hfe,sch_periodWeekly:Ufe,sch_periodWorkdays:Wfe,sch_periodYear:Vfe,sch_periodYearly:Gfe,sch_specificTime:qfe,sch_time:Xfe,sch_to:Jfe,sch_valid:Yfe,sch_validFrom:Kfe,sch_validTo:Zfe,sch_wholeDay:Qfe,sch_yearEveryMonth:eme},nme="toevoegen",ome="Annuleer",rme="Categorieën",ame="Gecontroleerd",sme="Verwijderen",ime="Dichtbij",lme="Reclame",cme="Configureren",dme="Verbonden",ume="Gekopieerd",pme="Creëer",hme="Bijsnijden",fme="Delete",mme="Verwijderen",gme="Weggooien",_me="Verbinding verbroken",vme="Fout",yme="Filter",bme="Vrijdag",wme="Breedtegraad",Sme="Lengtegraad",xme="Bericht",Cme="Maandag",$me="Naam",kme="Voorwerpen",Eme="OK",Tme="Product",Ome="Herhaling",Dme="Vervangen",Ame="Wortel",Mme="Zaterdag",Nme="Sparen",jme="Geselecteerd",zme="Staten",Rme="Zondag",Ime="Donderdag",Lme="Tijdstempel",Fme="Dinsdag",Pme="Bijwerken",Bme="Geldig tot",Hme="Waarde",Ume="Versie",Wme="Woensdag",Vme="Breedte",Gme="Ja",qme="verschillend",Xme="Iedereen kan object lezen",Jme="Iedereen kan staat lezen",Yme="Iedereen kan object schrijven",Kme="Iedereen kan staat schrijven",Zme="Groep kan object lezen",Qme="Groep kan status lezen",ege="Groep kan object schrijven",tge="Groep kan staat schrijven",nge="Eigenaar kan object lezen",oge="Eigenaar kan staat lezen",rge="Eigenaar kan object schrijven",age="Eigenaar kan staat schrijven",sge="Toetsen",ige="Veranderd van",lge="dichtbij",cge="Creëer een Booleaanse status",dge="Kanaal maken",uge="Apparaat maken",pge="Nummerstatus maken",hge="Staat creëren",fge="Tekenreeksstatus maken",mge="d.",gge="Fr",_ge="Mo",vge="Za",yge="Zo",bge="Th",wge="Tu",Sge="Wij",xge="Expert modus",Cge="Alle bestanden",$ge="Audio",kge="Code/JSON",Ege="Afbeeldingen",Tge="Tekst",Oge="Video",Dge="Instellingen",Age="zonder",Mge="Functie",Nge="ID",jge="Naam",zge="Rol",Rge="Kamer",Ige="Type",Lge="Ongeldige instellingen",Fge="Laatste wijziging",Pge="plaatselijk",Bge="april",Hge="aug",Uge="dec",Wge="februari",Vge="jan",Gge="jul",qge="juni",Xge="Mei",Jge="mrt",Yge="nov",Kge="Okt",Zge="sept",Qge="april",e_e="aug",t_e="dec",n_e="februari",o_e="jan",r_e="jul",a_e="juni",s_e="Mei",i_e="mrt",l_e="nov",c_e="Okt",d_e="sept",u_e="geen",p_e="Object veranderd door",h_e="Object voor het laatst gewijzigd om",f_e="Instellingen van andere adapter %s",m_e="Kwaliteitscode",g_e="herhalen",__e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',v_e="Staat veranderd door",y_e="Object veranderd van",b_e="Tijdstempel",w_e="Erkende vlag",S_e="Opmerking",x_e="Kopieer de statuswaarde",C_e="Aangepaste instellingen",$_e="Object verwijderen",k_e="Object bewerken",E_e="Bewerk de statuswaarde",T_e="Van",O_e="Laatst gewijzigd",D_e="Kwaliteit",A_e="Tijdstempel",M_e="Gebruiker",N_e="Waarde",j_e="Waarde",z_e="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",R_e="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",I_e="CRON",L_e="Datum",F_e="data",P_e="Dag",B_e="Dag van de week",H_e="elk",U_e="elke N dagen",W_e="elke N-de dag van de week",V_e="elke N dag van de week",G_e="elke N uur",q_e="elke N minuten",X_e="elke N maanden",J_e="elke N seconden",Y_e="elke dag",K_e="elke dag van de week",Z_e="elke dag van de week",Q_e="elk uur",eve="elke minuut",tve="elke maand",nve="elke seconde",ove="Van",rve="uren",ave="Interval",sve="Interval tussen",ive="Ongeldige CRON",lve="Notulen",cve="maanden",dve="Een keer",uve="Periode",pve="seconden",hve="Gemakkelijk",fve="Specifieke tijd",mve="specifieke data",gve="specifieke dag(en) van de week",_ve="specifieke dag van weken",vve="specifieke uren",yve="specifieke minuten",bve="specifieke maanden",wve="specifieke seconden",Sve="Tijd",xve="Naar",Cve="tovenaar",$ve="allemaal",kve="Astro-dag",Eve="Astro-nacht",Tve="Dageraad",Ove="Schemer",Dve="gouden uur",Ave="Gouden uur einde",Mve="Nadir",Nve="Nautische dageraad",jve="Nautische schemering",zve="Nacht",Rve="Nacht einde",Ive="Zonne middag",Lve="zonsopkomst",Fve="Sunrise einde",Pve="Zonsondergang",Bve="Zonsondergang start",Hve="Bij",Uve="op %s",Wve="elke dag",Vve="elk uur",Gve="elke minuut",qve="elke maand",Xve="elke %s dag",Jve="elke %s uur",Yve="elke %s minuten",Kve="elke %s maanden",Zve="elke %s weken",Qve="elke %s jaar",eye="elke week",tye="elk jaar",nye="van %s tot %s",oye="nooit",rye="op %s van %s",aye="op %s en %s van",sye="op elke datum van",iye="%s",lye="%s en %s",cye="op %s",dye="op %s en %s",uye="in het weekend",pye="op werkdagen",hye="zal niet meer worden uitgevoerd, omdat start verleden tijd is",fye="op %s",mye="van %s",gye="Uitvoeren van tot",_ye="tot %s",vye="elk",yye="Specifieke tijd",bye="van",wye="Van naar",Sye="Interval tijd",xye="omkeren",Cye="geen",$ye="Aan",kye="Periode",Eye="Dagelijks",Tye="data",Oye="Dag",Dye="elk",Aye="Elke dag",Mye="Elke maand",Nye="Elke week",jye="Elk jaar",zye="uren",Rye="Notulen",Iye="maand",Lye="Maandelijks",Fye="Een keer",Pye="Specifieke maanden",Bye="Week",Hye="Doordeweekse dagen",Uye="Weekend",Wye="Wekelijks",Vye="werkdagen",Gye="Jaar",qye="jaar-",Xye="Specifieke tijd",Jye="Tijd",Yye="naar",Kye="Geldig",Zye="van",Qye="naar",ebe="Hele dag",tbe="elke maand",nbe={"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_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:nme,"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:ome,"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:rme,"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:ame,ra_Clear:sme,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:ime,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:lme,ra_Configure:cme,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:dme,ra_Copied:ume,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:pme,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:hme,"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:fme,ra_Delete:mme,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:gme,ra_Disconnected:_me,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:vme,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:yme,"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:bme,"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_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 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:wme,"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_Longitude:Sme,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:xme,ra_Monday:Cme,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:$me,"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 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_Objects:kme,ra_Ok:Eme,"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 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_Private certificate":"Privé certificaat",ra_Product:Tme,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:Ome,ra_Replace:Dme,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:Ame,ra_Saturday:Mme,ra_Save:Nme,"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:jme,"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_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:zme,"ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:Rme,"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:Ime,ra_Timestamp:Lme,"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:Fme,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:Pme,"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:Bme,ra_Value:Hme,ra_Version:Ume,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:Wme,ra_Width:Vme,ra_Yes:Gme,"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___different__:qme,ra_aclEveryone_read_object:Xme,ra_aclEveryone_read_state:Jme,ra_aclEveryone_write_object:Yme,ra_aclEveryone_write_state:Kme,ra_aclGroup_read_object:Zme,ra_aclGroup_read_state:Qme,ra_aclGroup_write_object:ege,ra_aclGroup_write_state:tge,ra_aclOwner_read_object:nge,ra_aclOwner_read_state:oge,ra_aclOwner_write_object:rge,ra_aclOwner_write_state:age,ra_buttons:sge,ra_changedFrom:ige,ra_close:lge,ra_create_boolean_state:cge,ra_create_channel:dge,ra_create_device:uge,ra_create_number_state:pge,ra_create_state:hge,ra_create_string_state:fge,ra_daysShortText:mge,ra_dow_Fr:gge,ra_dow_Mo:_ge,ra_dow_Sa:vge,ra_dow_Su:yge,ra_dow_Th:bge,ra_dow_Tu:wge,ra_dow_We:Sge,ra_expertMode:xge,ra_fileType_all:Cge,ra_fileType_audio:$ge,ra_fileType_code:kge,ra_fileType_images:Ege,ra_fileType_txt:Tge,ra_fileType_video:Oge,"ra_fileType_video,":"Video",ra_filter_customs:Dge,ra_filter_customs_without:Age,ra_filter_func:Mge,ra_filter_id:Nge,ra_filter_name:jge,ra_filter_role:zge,ra_filter_room:Rge,ra_filter_type:Ige,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:Lge,ra_lastChange:Fge,ra_locally:Pge,ra_month_Apr:Bge,ra_month_Aug:Hge,ra_month_Dec:Uge,ra_month_Feb:Wge,ra_month_Jan:Vge,ra_month_Jul:Gge,ra_month_Jun:qge,ra_month_Mai:Xge,ra_month_Mar:Jge,ra_month_Nov:Yge,ra_month_Oct:Kge,ra_month_Sep:Zge,ra_months_Apr:Qge,ra_months_Aug:e_e,ra_months_Dec:t_e,ra_months_Feb:n_e,ra_months_Jan:o_e,ra_months_Jul:r_e,ra_months_Jun:a_e,ra_months_Mai:s_e,ra_months_Mar:i_e,ra_months_Nov:l_e,ra_months_Oct:c_e,ra_months_Sep:d_e,ra_none:u_e,ra_object_changed_by:p_e,ra_object_changed_by_user:h_e,ra_otherConfig:f_e,ra_qualityCode:m_e,ra_repeat:g_e,ra_select_folder_hint:__e,ra_state_changed_by:v_e,ra_state_changed_from:y_e,ra_timestamp:b_e,ra_tooltip_ack:w_e,ra_tooltip_comment:S_e,ra_tooltip_copyState:x_e,ra_tooltip_customConfig:C_e,ra_tooltip_deleteObject:$_e,ra_tooltip_editObject:k_e,ra_tooltip_editState:E_e,ra_tooltip_from:T_e,ra_tooltip_lc:O_e,ra_tooltip_quality:D_e,ra_tooltip_ts:A_e,ra_tooltip_user:M_e,ra_tooltip_value:N_e,"ra_use seconds":"gebruik seconden",ra_val:j_e,"ra_via internet":"via internet",ra_warning_every_minute:z_e,ra_warning_every_second:R_e,sc_cron:I_e,sc_date:L_e,sc_dates:F_e,sc_dow:P_e,sc_dows:B_e,sc_every:H_e,sc_everyN_dates:U_e,sc_everyN_dow:W_e,sc_everyN_dows:V_e,sc_everyN_hours:G_e,sc_everyN_minutes:q_e,sc_everyN_months:X_e,sc_everyN_seconds:J_e,sc_every_dates:Y_e,sc_every_dow:K_e,sc_every_dows:Z_e,sc_every_hours:Q_e,sc_every_minutes:eve,sc_every_months:tve,sc_every_seconds:nve,sc_from:ove,sc_hours:rve,sc_interval:ave,sc_intervalBetween:sve,sc_invalid_cron:ive,sc_minutes:lve,sc_months:cve,sc_once:dve,sc_period:uve,sc_seconds:pve,sc_simple:hve,sc_specific:fve,sc_specific_dates:mve,sc_specific_dow:gve,sc_specific_dows:_ve,sc_specific_hours:vve,sc_specific_minutes:yve,sc_specific_months:bve,sc_specific_seconds:wve,sc_time:Sve,sc_to:xve,sc_wizard:Cve,sch_all:$ve,sch_astroDay:kve,sch_astroNight:Eve,sch_astro_dawn:Tve,sch_astro_dusk:Ove,sch_astro_goldenHour:Dve,sch_astro_goldenHourEnd:Ave,sch_astro_nadir:Mve,sch_astro_nauticalDawn:Nve,sch_astro_nauticalDusk:jve,sch_astro_night:zve,sch_astro_nightEnd:Rve,sch_astro_solarNoon:Ive,sch_astro_sunrise:Lve,sch_astro_sunriseEnd:Fve,sch_astro_sunset:Pve,sch_astro_sunsetStart:Bve,sch_at:Hve,sch_desc_atTime:Uve,sch_desc_everyDay:Wve,sch_desc_everyHour:Vve,sch_desc_everyMinute:Gve,sch_desc_everyMonth:qve,sch_desc_everyNDay:Xve,sch_desc_everyNHours:Jve,sch_desc_everyNMinutes:Yve,sch_desc_everyNMonths:Kve,sch_desc_everyNWeeks:Zve,sch_desc_everyNYears:Qve,sch_desc_everyWeek:eye,sch_desc_everyYear:tye,sch_desc_intervalFromTo:nye,sch_desc_never:oye,sch_desc_onDate:rye,sch_desc_onDates:aye,sch_desc_onEveryDate:sye,sch_desc_onMonth:iye,sch_desc_onMonths:lye,sch_desc_onWeekday:cye,sch_desc_onWeekdays:dye,sch_desc_onWeekends:uye,sch_desc_onWorkdays:pye,sch_desc_onceInPast:hye,sch_desc_once_on:fye,sch_desc_validFrom:mye,sch_desc_validFromTo:gye,sch_desc_validTo:_ye,sch_every:vye,sch_exactTime:yye,sch_from:bye,sch_fromTo:wye,sch_intervalTime:Sye,sch_invert:xye,sch_no_one:Cye,sch_on:$ye,sch_period:kye,sch_periodDaily:Eye,sch_periodDates:Tye,sch_periodDay:Oye,sch_periodEvery:Dye,sch_periodEveryDay:Aye,sch_periodEveryMonth:Mye,sch_periodEveryWeek:Nye,sch_periodEveryYear:jye,sch_periodHours:zye,sch_periodMinutes:Rye,sch_periodMonth:Iye,sch_periodMonthly:Lye,sch_periodOnce:Fye,sch_periodSpecificMonths:Pye,sch_periodWeek:Bye,sch_periodWeekdays:Hye,sch_periodWeekend:Uye,sch_periodWeekly:Wye,sch_periodWorkdays:Vye,sch_periodYear:Gye,sch_periodYearly:qye,sch_specificTime:Xye,sch_time:Jye,sch_to:Yye,sch_valid:Kye,sch_validFrom:Zye,sch_validTo:Qye,sch_wholeDay:ebe,sch_yearEveryMonth:tbe},obe="Ajouter",rbe="Annuler",abe="Catégories",sbe="Vérifié",ibe="Effacer",lbe="Fermer",cbe="Commercial",dbe="Configurer",ube="Lié",pbe="Copié",hbe="Créer",fbe="Recadrer",mbe="Delete",gbe="Supprimer",_be="Jeter",vbe="Débranché",ybe="Erreur",bbe="Filtre",wbe="Vendredi",Sbe="Latitude",xbe="Longitude",Cbe="Message",$be="Lundi",kbe="Nom",Ebe="Objets",Tbe="D'accord",Obe="Produit",Dbe="Répéter",Abe="Remplacer",Mbe="Racine",Nbe="Samedi",jbe="sauver",zbe="Choisi",Rbe="États",Ibe="Dimanche",Lbe="Jeudi",Fbe="Horodatage",Pbe="Mardi",Bbe="Mise à jour",Hbe="Valable jusqu'au",Ube="Valeur",Wbe="Version",Vbe="Mercredi",Gbe="Largeur",qbe="Oui",Xbe="différent",Jbe="Tout le monde peut lire un objet",Ybe="Tout le monde peut lire l'état",Kbe="Tout le monde peut écrire un objet",Zbe="Tout le monde peut écrire l'état",Qbe="Le groupe peut lire l'objet",e0e="Le groupe peut lire l'état",t0e="Le groupe peut écrire un objet",n0e="Le groupe peut écrire l'état",o0e="Le propriétaire peut lire l'objet",r0e="Le propriétaire peut lire l'état",a0e="Le propriétaire peut écrire un objet",s0e="Le propriétaire peut écrire l'état",i0e="Boutons",l0e="Changé de",c0e="Fermer",d0e="Créer un état booléen",u0e="Créer une chaîne",p0e="Créer un appareil",h0e="Créer un état de numéro",f0e="Créer un état",m0e="Créer un état de chaîne",g0e="j.",_0e="Fr",v0e="Mo",y0e="Sa",b0e="Su",w0e="Th",S0e="Tu",x0e="Nous",C0e="Mode expert",$0e="Tous les fichiers",k0e="l'audio",E0e="Code/JSON",T0e="Images",O0e="Texte",D0e="Vidéo",A0e="Paramètres",M0e="sans",N0e="Une fonction",j0e="ID",z0e="Prénom",R0e="Rôle",I0e="Pièce",L0e="Type",F0e="Paramètres invalides",P0e="Dernier changement",B0e="localement",H0e="Avr",U0e="Août",W0e="Déc",V0e="Fév",G0e="Jan",q0e="Juil",X0e="Juin",J0e="Mai",Y0e="Mar",K0e="Nov",Z0e="Oct",Q0e="Sep",e1e="Avr",t1e="Août",n1e="Déc",o1e="Fév",r1e="Jan",a1e="Juil",s1e="Juin",i1e="Mai",l1e="Mar",c1e="Nov",d1e="Oct",u1e="Sep",p1e="rien",h1e="Objet modifié par",f1e="Objet modifié pour la dernière fois à",m1e="Paramètres d'un autre adaptateur %s",g1e="Code de qualité",_1e="répéter",v1e='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',y1e="État modifié par",b1e="Objet changé de",w1e="Horodatage",S1e="Drapeau reconnu",x1e="Commentaire",C1e="Copiez la valeur d'état",$1e="Paramètres personnalisés",k1e="Supprimer un objet",E1e="Modifier l'objet",T1e="Modifier la valeur d'état",O1e="De",D1e="Dernière modification",A1e="Qualité",M1e="Horodatage",N1e="Utilisateur",j1e="Valeur",z1e="Valeur",R1e="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",I1e="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",L1e="CRON",F1e="Date",P1e="Rendez-vous",B1e="Jour",H1e="Jour de la semaine",U1e="Chaque",W1e="tous les N jours",V1e="chaque Nième jour de la semaine",G1e="tous les N jours de la semaine",q1e="toutes les N heures",X1e="toutes les N minutes",J1e="tous les N mois",Y1e="toutes les N secondes",K1e="tous les jours",Z1e="Chaque jour de la semaine",Q1e="Chaque jour de la semaine",ewe="Toutes les heures",twe="chaque minute",nwe="chaque mois",owe="chaque seconde",rwe="De",awe="Heures",swe="Intervalle",iwe="Intervalle entre",lwe="CRON non valide",cwe="Minutes",dwe="mois",uwe="Une fois que",pwe="Période",hwe="Secondes",fwe="Facile",mwe="Temps spécifique",gwe="dates spécifiques",_we="jour(s) spécifique(s) de la semaine",vwe="jour spécifique de semaines",ywe="heures spécifiques",bwe="minutes spécifiques",wwe="mois spécifiques",Swe="secondes spécifiques",xwe="Temps",Cwe="À",$we="sorcier",kwe="tout",Ewe="Journée astronomique",Twe="Nuit astronomique",Owe="Aube",Dwe="Crépuscule",Awe="Heure d'or",Mwe="Fin de l'heure d'or",Nwe="Nadir",jwe="Aube nautique",zwe="Crépuscule nautique",Rwe="Nuit",Iwe="Fin de nuit",Lwe="Midi solaire",Fwe="lever du soleil",Pwe="Fin du lever du soleil",Bwe="Le coucher du soleil",Hwe="Coucher du soleil",Uwe="à",Wwe="à %s",Vwe="tous les jours",Gwe="Toutes les heures",qwe="chaque minute",Xwe="chaque mois",Jwe="chaque %s jour",Ywe="chaque %s heures",Kwe="toutes les %s minutes",Zwe="tous les %s mois",Qwe="chaque %s semaines",eSe="tous les %s ans",tSe="toutes les semaines",nSe="chaque année",oSe="de %s à %s",rSe="jamais",aSe="sur %s de %s",sSe="sur %s et %s de",iSe="à chaque date de",lSe="%s",cSe="%s et %s",dSe="sur %s",uSe="sur %s et %s",pSe="les weekends",hSe="les jours ouvrables",fSe="ne sera plus exécuté, car start est dans le passé",mSe="sur %s",gSe="de %s",_Se="Exécuter de à",vSe="à %s",ySe="chaque",bSe="Temps spécifique",wSe="de",SSe="De à",xSe="Temps d'interval",CSe="inverser",$Se="aucun",kSe="sur",ESe="Période",TSe="du quotidien",OSe="Rendez-vous",DSe="journée",ASe="Chaque",MSe="Tous les jours",NSe="Chaque mois",jSe="Toutes les semaines",zSe="Chaque année",RSe="Heures",ISe="Minutes",LSe="mois",FSe="Mensuel",PSe="Une fois que",BSe="Mois spécifiques",HSe="La semaine",USe="Jours de la semaine",WSe="Weekend",VSe="Hebdomadaire",GSe="Jours ouvrables",qSe="Année",XSe="Annuel",JSe="Temps spécifique",YSe="Temps",KSe="à",ZSe="Valide",QSe="de",exe="à",txe="Toute la journée",nxe="chaque mois",oxe={"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_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:obe,"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:rbe,"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:abe,"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:sbe,ra_Clear:ibe,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:lbe,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:cbe,ra_Configure:dbe,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:ube,ra_Copied:pbe,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:hbe,"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:fbe,"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:mbe,ra_Delete:gbe,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:_be,ra_Disconnected:vbe,"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_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 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_Error:ybe,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:bbe,"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:wbe,"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_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 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:Sbe,"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_Longitude:xbe,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:Cbe,ra_Monday:$be,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:kbe,"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 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_Objects:Ebe,ra_Ok:Tbe,"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 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_Private certificate":"Certificat privé",ra_Product:Obe,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:Dbe,ra_Replace:Abe,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:Mbe,ra_Saturday:Nbe,ra_Save:jbe,"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:zbe,"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_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:Rbe,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:Ibe,"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:Lbe,ra_Timestamp:Fbe,"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:Pbe,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:Bbe,"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:Hbe,ra_Value:Ube,ra_Version:Wbe,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:Vbe,ra_Width:Gbe,ra_Yes:qbe,"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___different__:Xbe,ra_aclEveryone_read_object:Jbe,ra_aclEveryone_read_state:Ybe,ra_aclEveryone_write_object:Kbe,ra_aclEveryone_write_state:Zbe,ra_aclGroup_read_object:Qbe,ra_aclGroup_read_state:e0e,ra_aclGroup_write_object:t0e,ra_aclGroup_write_state:n0e,ra_aclOwner_read_object:o0e,ra_aclOwner_read_state:r0e,ra_aclOwner_write_object:a0e,ra_aclOwner_write_state:s0e,ra_buttons:i0e,ra_changedFrom:l0e,ra_close:c0e,ra_create_boolean_state:d0e,ra_create_channel:u0e,ra_create_device:p0e,ra_create_number_state:h0e,ra_create_state:f0e,ra_create_string_state:m0e,ra_daysShortText:g0e,ra_dow_Fr:_0e,ra_dow_Mo:v0e,ra_dow_Sa:y0e,ra_dow_Su:b0e,ra_dow_Th:w0e,ra_dow_Tu:S0e,ra_dow_We:x0e,ra_expertMode:C0e,ra_fileType_all:$0e,ra_fileType_audio:k0e,ra_fileType_code:E0e,ra_fileType_images:T0e,ra_fileType_txt:O0e,ra_fileType_video:D0e,"ra_fileType_video,":"Vidéo",ra_filter_customs:A0e,ra_filter_customs_without:M0e,ra_filter_func:N0e,ra_filter_id:j0e,ra_filter_name:z0e,ra_filter_role:R0e,ra_filter_room:I0e,ra_filter_type:L0e,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:F0e,ra_lastChange:P0e,ra_locally:B0e,ra_month_Apr:H0e,ra_month_Aug:U0e,ra_month_Dec:W0e,ra_month_Feb:V0e,ra_month_Jan:G0e,ra_month_Jul:q0e,ra_month_Jun:X0e,ra_month_Mai:J0e,ra_month_Mar:Y0e,ra_month_Nov:K0e,ra_month_Oct:Z0e,ra_month_Sep:Q0e,ra_months_Apr:e1e,ra_months_Aug:t1e,ra_months_Dec:n1e,ra_months_Feb:o1e,ra_months_Jan:r1e,ra_months_Jul:a1e,ra_months_Jun:s1e,ra_months_Mai:i1e,ra_months_Mar:l1e,ra_months_Nov:c1e,ra_months_Oct:d1e,ra_months_Sep:u1e,ra_none:p1e,ra_object_changed_by:h1e,ra_object_changed_by_user:f1e,ra_otherConfig:m1e,ra_qualityCode:g1e,ra_repeat:_1e,ra_select_folder_hint:v1e,ra_state_changed_by:y1e,ra_state_changed_from:b1e,ra_timestamp:w1e,ra_tooltip_ack:S1e,ra_tooltip_comment:x1e,ra_tooltip_copyState:C1e,ra_tooltip_customConfig:$1e,ra_tooltip_deleteObject:k1e,ra_tooltip_editObject:E1e,ra_tooltip_editState:T1e,ra_tooltip_from:O1e,ra_tooltip_lc:D1e,ra_tooltip_quality:A1e,ra_tooltip_ts:M1e,ra_tooltip_user:N1e,ra_tooltip_value:j1e,"ra_use seconds":"utiliser les secondes",ra_val:z1e,"ra_via internet":"par Internet",ra_warning_every_minute:R1e,ra_warning_every_second:I1e,sc_cron:L1e,sc_date:F1e,sc_dates:P1e,sc_dow:B1e,sc_dows:H1e,sc_every:U1e,sc_everyN_dates:W1e,sc_everyN_dow:V1e,sc_everyN_dows:G1e,sc_everyN_hours:q1e,sc_everyN_minutes:X1e,sc_everyN_months:J1e,sc_everyN_seconds:Y1e,sc_every_dates:K1e,sc_every_dow:Z1e,sc_every_dows:Q1e,sc_every_hours:ewe,sc_every_minutes:twe,sc_every_months:nwe,sc_every_seconds:owe,sc_from:rwe,sc_hours:awe,sc_interval:swe,sc_intervalBetween:iwe,sc_invalid_cron:lwe,sc_minutes:cwe,sc_months:dwe,sc_once:uwe,sc_period:pwe,sc_seconds:hwe,sc_simple:fwe,sc_specific:mwe,sc_specific_dates:gwe,sc_specific_dow:_we,sc_specific_dows:vwe,sc_specific_hours:ywe,sc_specific_minutes:bwe,sc_specific_months:wwe,sc_specific_seconds:Swe,sc_time:xwe,sc_to:Cwe,sc_wizard:$we,sch_all:kwe,sch_astroDay:Ewe,sch_astroNight:Twe,sch_astro_dawn:Owe,sch_astro_dusk:Dwe,sch_astro_goldenHour:Awe,sch_astro_goldenHourEnd:Mwe,sch_astro_nadir:Nwe,sch_astro_nauticalDawn:jwe,sch_astro_nauticalDusk:zwe,sch_astro_night:Rwe,sch_astro_nightEnd:Iwe,sch_astro_solarNoon:Lwe,sch_astro_sunrise:Fwe,sch_astro_sunriseEnd:Pwe,sch_astro_sunset:Bwe,sch_astro_sunsetStart:Hwe,sch_at:Uwe,sch_desc_atTime:Wwe,sch_desc_everyDay:Vwe,sch_desc_everyHour:Gwe,sch_desc_everyMinute:qwe,sch_desc_everyMonth:Xwe,sch_desc_everyNDay:Jwe,sch_desc_everyNHours:Ywe,sch_desc_everyNMinutes:Kwe,sch_desc_everyNMonths:Zwe,sch_desc_everyNWeeks:Qwe,sch_desc_everyNYears:eSe,sch_desc_everyWeek:tSe,sch_desc_everyYear:nSe,sch_desc_intervalFromTo:oSe,sch_desc_never:rSe,sch_desc_onDate:aSe,sch_desc_onDates:sSe,sch_desc_onEveryDate:iSe,sch_desc_onMonth:lSe,sch_desc_onMonths:cSe,sch_desc_onWeekday:dSe,sch_desc_onWeekdays:uSe,sch_desc_onWeekends:pSe,sch_desc_onWorkdays:hSe,sch_desc_onceInPast:fSe,sch_desc_once_on:mSe,sch_desc_validFrom:gSe,sch_desc_validFromTo:_Se,sch_desc_validTo:vSe,sch_every:ySe,sch_exactTime:bSe,sch_from:wSe,sch_fromTo:SSe,sch_intervalTime:xSe,sch_invert:CSe,sch_no_one:$Se,sch_on:kSe,sch_period:ESe,sch_periodDaily:TSe,sch_periodDates:OSe,sch_periodDay:DSe,sch_periodEvery:ASe,sch_periodEveryDay:MSe,sch_periodEveryMonth:NSe,sch_periodEveryWeek:jSe,sch_periodEveryYear:zSe,sch_periodHours:RSe,sch_periodMinutes:ISe,sch_periodMonth:LSe,sch_periodMonthly:FSe,sch_periodOnce:PSe,sch_periodSpecificMonths:BSe,sch_periodWeek:HSe,sch_periodWeekdays:USe,sch_periodWeekend:WSe,sch_periodWeekly:VSe,sch_periodWorkdays:GSe,sch_periodYear:qSe,sch_periodYearly:XSe,sch_specificTime:JSe,sch_time:YSe,sch_to:KSe,sch_valid:ZSe,sch_validFrom:QSe,sch_validTo:exe,sch_wholeDay:txe,sch_yearEveryMonth:nxe},rxe="Aggiungere",axe="Annulla",sxe="Categorie",ixe="Controllato",lxe="Elimina",cxe="Vicino",dxe="Commerciale",uxe="Configura",pxe="Collegato",hxe="Copiato",fxe="Creare",mxe="Raccolto",gxe="Delete",_xe="Elimina",vxe="Scartare",yxe="Disconnesso",bxe="Errore",wxe="Filtro",Sxe="Venerdì",xxe="Latitudine",Cxe="Longitudine",$xe="Messaggio",kxe="Lunedi",Exe="Nome",Txe="Oggetti",Oxe="Ok",Dxe="Prodotto",Axe="Ripetere",Mxe="Sostituire",Nxe="Radice",jxe="Sabato",zxe="Salva",Rxe="Selezionato",Ixe="stati",Lxe="Domenica",Fxe="Giovedì",Pxe="Timestamp",Bxe="Martedì",Hxe="Aggiornare",Uxe="Valido fino a",Wxe="Valore",Vxe="Versione",Gxe="Mercoledì",qxe="Larghezza",Xxe="SÌ",Jxe="diverso",Yxe="Tutti possono leggere gli oggetti",Kxe="Tutti possono leggere lo stato",Zxe="Tutti possono scrivere oggetti",Qxe="Tutti possono scrivere stato",e2e="Il gruppo può leggere l'oggetto",t2e="Il gruppo può leggere lo stato",n2e="Il gruppo può scrivere l'oggetto",o2e="Il gruppo può scrivere lo stato",r2e="Il proprietario può leggere l'oggetto",a2e="Il proprietario può leggere lo stato",s2e="Il proprietario può scrivere l'oggetto",i2e="Il proprietario può scrivere lo stato",l2e="Bottoni",c2e="Cambiato da",d2e="vicino",u2e="Crea uno stato booleano",p2e="Crea canale",h2e="Crea dispositivo",f2e="Crea lo stato del numero",m2e="Crea stato",g2e="Crea lo stato della stringa",_2e="g.",v2e="fr",y2e="momento",b2e="Sa",w2e="su",S2e="th",x2e="Tu",C2e="Noi",$2e="Modalità esperto",k2e="Tutti i files",E2e="Audio",T2e="Codice/JSON",O2e="immagini",D2e="Testo",A2e="video",M2e="impostazioni",N2e="senza",j2e="Funzione",z2e="ID",R2e="Nome",I2e="Ruolo",L2e="Camera",F2e="genere",P2e="Impostazioni non valide",B2e="Ultima modifica",H2e="localmente",U2e="apr",W2e="agosto",V2e="Dic",G2e="febbraio",q2e="gen",X2e="lug",J2e="giu",Y2e="Mai",K2e="marzo",Z2e="nov",Q2e="ottobre",eCe="Sett",tCe="apr",nCe="agosto",oCe="Dic",rCe="febbraio",aCe="gen",sCe="lug",iCe="giu",lCe="Mai",cCe="marzo",dCe="nov",uCe="ottobre",pCe="Sett",hCe="nessuna",fCe="Oggetto modificato da",mCe="L'oggetto è stato modificato l'ultima volta alle",gCe="Impostazioni dall'altro adattatore %s",_Ce="Codice di qualità",vCe="ripetere",yCe='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',bCe="Stato cambiato da",wCe="Oggetto cambiato da",SCe="Timestamp",xCe="Bandiera riconosciuta",CCe="Commento",$Ce="Copia il valore dello stato",kCe="Impostazioni personalizzate",ECe="Elimina oggetto",TCe="Modifica oggetto",OCe="Modifica il valore dello stato",DCe="A partire dal",ACe="Ultima modifica",MCe="Qualità",NCe="Data e ora",jCe="Utente",zCe="Valore",RCe="Valore",ICe="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",LCe="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",FCe="CRON",PCe="Data",BCe="Date",HCe="Giorno",UCe="Giorno della settimana",WCe="Ogni",VCe="ogni N giorni",GCe="ogni Nesimo giorno della settimana",qCe="ogni N giorno della settimana",XCe="ogni N ore",JCe="ogni N minuti",YCe="ogni N mesi",KCe="ogni N secondi",ZCe="ogni giorno",QCe="Tutti i giorni della settimana",e$e="Tutti i giorni della settimana",t$e="ogni ora",n$e="ogni minuto",o$e="ogni mese",r$e="ogni secondo",a$e="A partire dal",s$e="Ore",i$e="Intervallo",l$e="Intervallo tra",c$e="CRON non valido",d$e="Minuti",u$e="mesi",p$e="Una volta",h$e="Periodo",f$e="secondi",m$e="Semplice",g$e="Orario preciso",_$e="date specifiche",v$e="giorno/i specifico/i della settimana",y$e="giorno specifico delle settimane",b$e="orari specifici",w$e="minuti specifici",S$e="mesi specifici",x$e="secondi specifici",C$e="Tempo",$$e="Per",k$e="procedura guidata",E$e="tutti",T$e="Astro day",O$e="Astro night",D$e="Alba",A$e="Crepuscolo",M$e="Ora d'oro",N$e="Fine dell'ora d'oro",j$e="Nadir",z$e="Alba nautica",R$e="Crepuscolo nautico",I$e="Notte",L$e="Fine della notte",F$e="Mezzogiorno solare",P$e="Alba",B$e="Fine dell'alba",H$e="Tramonto",U$e="Inizio del tramonto",W$e="a",V$e="a %s",G$e="ogni giorno",q$e="ogni ora",X$e="ogni minuto",J$e="ogni mese",Y$e="ogni %s giorno",K$e="ogni %s ore",Z$e="ogni %s minuti",Q$e="ogni %s mesi",eke="ogni %s settimane",tke="ogni %s anni",nke="ogni settimana",oke="ogni anno",rke="da %s a %s",ake="mai",ske="su %s di %s",ike="su %s e %s di",lke="in ogni data di",cke="%s",dke="%s e %s",uke="su %s",pke="su %s e %s",hke="nei finesettimana",fke="nei giorni lavorativi",mke="non verrà più eseguito, perché start è nel passato",gke="su %s",_ke="da %s",vke="Eseguire da a",yke="a %s",bke="ogni",wke="Orario preciso",Ske="a partire dal",xke="Da A",Cke="Intervallo di tempo",$ke="invertire",kke="nessuna",Eke="sopra",Tke="Periodo",Oke="Quotidiano",Dke="Date",Ake="Giorno",Mke="Ogni",Nke="Ogni giorno",jke="Ogni mese",zke="Ogni settimana",Rke="Ogni anno",Ike="Ore",Lke="Minuti",Fke="mese",Pke="Mensile",Bke="Una volta",Hke="Mesi specifici",Uke="Settimana",Wke="Giorni della settimana",Vke="Fine settimana",Gke="settimanalmente",qke="giorni feriali",Xke="Anno",Jke="Annuale",Yke="Orario preciso",Kke="Tempo",Zke="per",Qke="Valido",eEe="a partire dal",tEe="per",nEe="Giorno intero",oEe="ogni mese",rEe={"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_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:rxe,"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:axe,"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:sxe,"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:ixe,ra_Clear:lxe,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:cxe,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:dxe,ra_Configure:uxe,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:pxe,ra_Copied:hxe,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:fxe,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:mxe,"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:gxe,ra_Delete:_xe,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:vxe,ra_Disconnected:yxe,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:bxe,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:wxe,"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:Sxe,"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_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 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:xxe,"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_Longitude:Cxe,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:$xe,ra_Monday:kxe,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:Exe,"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 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_Objects:Txe,ra_Ok:Oxe,"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 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_Private certificate":"Certificato privato",ra_Product:Dxe,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:Axe,ra_Replace:Mxe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:Nxe,ra_Saturday:jxe,ra_Save:zxe,"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:Rxe,"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_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_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:Lxe,"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:Fxe,ra_Timestamp:Pxe,"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:Bxe,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:Hxe,"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:Uxe,ra_Value:Wxe,ra_Version:Vxe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:Gxe,ra_Width:qxe,ra_Yes:Xxe,"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___different__:Jxe,ra_aclEveryone_read_object:Yxe,ra_aclEveryone_read_state:Kxe,ra_aclEveryone_write_object:Zxe,ra_aclEveryone_write_state:Qxe,ra_aclGroup_read_object:e2e,ra_aclGroup_read_state:t2e,ra_aclGroup_write_object:n2e,ra_aclGroup_write_state:o2e,ra_aclOwner_read_object:r2e,ra_aclOwner_read_state:a2e,ra_aclOwner_write_object:s2e,ra_aclOwner_write_state:i2e,ra_buttons:l2e,ra_changedFrom:c2e,ra_close:d2e,ra_create_boolean_state:u2e,ra_create_channel:p2e,ra_create_device:h2e,ra_create_number_state:f2e,ra_create_state:m2e,ra_create_string_state:g2e,ra_daysShortText:_2e,ra_dow_Fr:v2e,ra_dow_Mo:y2e,ra_dow_Sa:b2e,ra_dow_Su:w2e,ra_dow_Th:S2e,ra_dow_Tu:x2e,ra_dow_We:C2e,ra_expertMode:$2e,ra_fileType_all:k2e,ra_fileType_audio:E2e,ra_fileType_code:T2e,ra_fileType_images:O2e,ra_fileType_txt:D2e,ra_fileType_video:A2e,"ra_fileType_video,":"video",ra_filter_customs:M2e,ra_filter_customs_without:N2e,ra_filter_func:j2e,ra_filter_id:z2e,ra_filter_name:R2e,ra_filter_role:I2e,ra_filter_room:L2e,ra_filter_type:F2e,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:P2e,ra_lastChange:B2e,ra_locally:H2e,ra_month_Apr:U2e,ra_month_Aug:W2e,ra_month_Dec:V2e,ra_month_Feb:G2e,ra_month_Jan:q2e,ra_month_Jul:X2e,ra_month_Jun:J2e,ra_month_Mai:Y2e,ra_month_Mar:K2e,ra_month_Nov:Z2e,ra_month_Oct:Q2e,ra_month_Sep:eCe,ra_months_Apr:tCe,ra_months_Aug:nCe,ra_months_Dec:oCe,ra_months_Feb:rCe,ra_months_Jan:aCe,ra_months_Jul:sCe,ra_months_Jun:iCe,ra_months_Mai:lCe,ra_months_Mar:cCe,ra_months_Nov:dCe,ra_months_Oct:uCe,ra_months_Sep:pCe,ra_none:hCe,ra_object_changed_by:fCe,ra_object_changed_by_user:mCe,ra_otherConfig:gCe,ra_qualityCode:_Ce,ra_repeat:vCe,ra_select_folder_hint:yCe,ra_state_changed_by:bCe,ra_state_changed_from:wCe,ra_timestamp:SCe,ra_tooltip_ack:xCe,ra_tooltip_comment:CCe,ra_tooltip_copyState:$Ce,ra_tooltip_customConfig:kCe,ra_tooltip_deleteObject:ECe,ra_tooltip_editObject:TCe,ra_tooltip_editState:OCe,ra_tooltip_from:DCe,ra_tooltip_lc:ACe,ra_tooltip_quality:MCe,ra_tooltip_ts:NCe,ra_tooltip_user:jCe,ra_tooltip_value:zCe,"ra_use seconds":"usa i secondi",ra_val:RCe,"ra_via internet":"attraverso internet",ra_warning_every_minute:ICe,ra_warning_every_second:LCe,sc_cron:FCe,sc_date:PCe,sc_dates:BCe,sc_dow:HCe,sc_dows:UCe,sc_every:WCe,sc_everyN_dates:VCe,sc_everyN_dow:GCe,sc_everyN_dows:qCe,sc_everyN_hours:XCe,sc_everyN_minutes:JCe,sc_everyN_months:YCe,sc_everyN_seconds:KCe,sc_every_dates:ZCe,sc_every_dow:QCe,sc_every_dows:e$e,sc_every_hours:t$e,sc_every_minutes:n$e,sc_every_months:o$e,sc_every_seconds:r$e,sc_from:a$e,sc_hours:s$e,sc_interval:i$e,sc_intervalBetween:l$e,sc_invalid_cron:c$e,sc_minutes:d$e,sc_months:u$e,sc_once:p$e,sc_period:h$e,sc_seconds:f$e,sc_simple:m$e,sc_specific:g$e,sc_specific_dates:_$e,sc_specific_dow:v$e,sc_specific_dows:y$e,sc_specific_hours:b$e,sc_specific_minutes:w$e,sc_specific_months:S$e,sc_specific_seconds:x$e,sc_time:C$e,sc_to:$$e,sc_wizard:k$e,sch_all:E$e,sch_astroDay:T$e,sch_astroNight:O$e,sch_astro_dawn:D$e,sch_astro_dusk:A$e,sch_astro_goldenHour:M$e,sch_astro_goldenHourEnd:N$e,sch_astro_nadir:j$e,sch_astro_nauticalDawn:z$e,sch_astro_nauticalDusk:R$e,sch_astro_night:I$e,sch_astro_nightEnd:L$e,sch_astro_solarNoon:F$e,sch_astro_sunrise:P$e,sch_astro_sunriseEnd:B$e,sch_astro_sunset:H$e,sch_astro_sunsetStart:U$e,sch_at:W$e,sch_desc_atTime:V$e,sch_desc_everyDay:G$e,sch_desc_everyHour:q$e,sch_desc_everyMinute:X$e,sch_desc_everyMonth:J$e,sch_desc_everyNDay:Y$e,sch_desc_everyNHours:K$e,sch_desc_everyNMinutes:Z$e,sch_desc_everyNMonths:Q$e,sch_desc_everyNWeeks:eke,sch_desc_everyNYears:tke,sch_desc_everyWeek:nke,sch_desc_everyYear:oke,sch_desc_intervalFromTo:rke,sch_desc_never:ake,sch_desc_onDate:ske,sch_desc_onDates:ike,sch_desc_onEveryDate:lke,sch_desc_onMonth:cke,sch_desc_onMonths:dke,sch_desc_onWeekday:uke,sch_desc_onWeekdays:pke,sch_desc_onWeekends:hke,sch_desc_onWorkdays:fke,sch_desc_onceInPast:mke,sch_desc_once_on:gke,sch_desc_validFrom:_ke,sch_desc_validFromTo:vke,sch_desc_validTo:yke,sch_every:bke,sch_exactTime:wke,sch_from:Ske,sch_fromTo:xke,sch_intervalTime:Cke,sch_invert:$ke,sch_no_one:kke,sch_on:Eke,sch_period:Tke,sch_periodDaily:Oke,sch_periodDates:Dke,sch_periodDay:Ake,sch_periodEvery:Mke,sch_periodEveryDay:Nke,sch_periodEveryMonth:jke,sch_periodEveryWeek:zke,sch_periodEveryYear:Rke,sch_periodHours:Ike,sch_periodMinutes:Lke,sch_periodMonth:Fke,sch_periodMonthly:Pke,sch_periodOnce:Bke,sch_periodSpecificMonths:Hke,sch_periodWeek:Uke,sch_periodWeekdays:Wke,sch_periodWeekend:Vke,sch_periodWeekly:Gke,sch_periodWorkdays:qke,sch_periodYear:Xke,sch_periodYearly:Jke,sch_specificTime:Yke,sch_time:Kke,sch_to:Zke,sch_valid:Qke,sch_validFrom:eEe,sch_validTo:tEe,sch_wholeDay:nEe,sch_yearEveryMonth:oEe},aEe="Adjuntar",sEe="Cancelar",iEe="Categorías",lEe="Comprobado",cEe="Borrar",dEe="Cerca",uEe="Comercial",pEe="Configurar",hEe="Conectado",fEe="Copiado",mEe="Crear",gEe="Cultivo",_Ee="Delete",vEe="Eliminar",yEe="Desechar",bEe="Desconectado",wEe="Error",SEe="Filtrar",xEe="Viernes",CEe="Latitud",$Ee="Longitud",kEe="Mensaje",EEe="Lunes",TEe="Nombre",OEe="Objetos",DEe="Okay",AEe="Producto",MEe="Repetir",NEe="Reemplazar",jEe="Raíz",zEe="Sábado",REe="Salvar",IEe="Seleccionado",LEe="Estados",FEe="Domingo",PEe="Jueves",BEe="Marca de tiempo",HEe="Martes",UEe="Actualizar",WEe="Válida hasta",VEe="Valor",GEe="Versión",qEe="Miércoles",XEe="Anchura",JEe="Sí",YEe="diferente",KEe="Todo el mundo puede leer el objeto",ZEe="Todos pueden leer el estado",QEe="Todos pueden escribir objetos",eTe="Todos pueden escribir el estado",tTe="El grupo puede leer el objeto",nTe="El grupo puede leer el estado",oTe="El grupo puede escribir un objeto",rTe="El grupo puede escribir el estado",aTe="El propietario puede leer el objeto",sTe="El propietario puede leer el estado",iTe="El propietario puede escribir el objeto",lTe="El propietario puede escribir el estado",cTe="Botones",dTe="Cambiaron desde",uTe="cerrar",pTe="Crear estado booleano",hTe="Crear canal",fTe="Crear dispositivo",mTe="Crear estado numérico",gTe="Crear estado",_Te="Crear estado de cadena",vTe="d.",yTe="Fr",bTe="Mes",wTe="Sa",STe="Su",xTe="Th",CTe="Tu",$Te="Nosotros",kTe="Modo experto",ETe="Todos los archivos",TTe="Audio",OTe="Código/JSON",DTe="Imágenes",ATe="Texto",MTe="Video",NTe="Configuraciones",jTe="sin",zTe="Función",RTe="ID",ITe="Nombre",LTe="Papel",FTe="Habitación",PTe="Tipo",BTe="Configuraciones inválidas",HTe="Ultimo cambio",UTe="en la zona",WTe="Abr",VTe="Ago",GTe="Dic",qTe="Feb",XTe="Ene",JTe="Jul",YTe="Jun",KTe="Mai",ZTe="Mar",QTe="Nov",eOe="Oct",tOe="Sep",nOe="Abr",oOe="Ago",rOe="Dic",aOe="Feb",sOe="Ene",iOe="Jul",lOe="Jun",cOe="Mai",dOe="Mar",uOe="Nov",pOe="Oct",hOe="Sep",fOe="ninguno",mOe="Objeto cambiado por",gOe="Objeto cambiado por última vez a las",_Oe="Configuraciones de otro adaptador %s",vOe="Código de calidad",yOe="repetir",bOe='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',wOe="Estado cambiado por",SOe="Objeto cambiado de",xOe="Marca de tiempo",COe="Bandera reconocida",$Oe="Comentario",kOe="Copie el valor del estado",EOe="Ajustes personalizados",TOe="Eliminar objeto",OOe="Editar objeto",DOe="Edite el valor del estado",AOe="Desde",MOe="Último cambio",NOe="Calidad",jOe="Sello de tiempo",zOe="Usuario",ROe="Valor",IOe="Valor",LOe="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",FOe="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",POe="CRON",BOe="Fecha",HOe="fechas",UOe="Día",WOe="Día de la semana",VOe="Cada",GOe="cada N días",qOe="cada enésimo día de la semana",XOe="cada N día de la semana",JOe="cada N horas",YOe="cada N minutos",KOe="cada N meses",ZOe="cada N segundos",QOe="cada día",eDe="Cada día de la semana",tDe="Cada día de la semana",nDe="cada hora",oDe="cada minuto",rDe="cada mes",aDe="cada segundo",sDe="De",iDe="Horas",lDe="Intervalo",cDe="Intervalo entre",dDe="CRON no válido",uDe="Minutos",pDe="meses",hDe="Una vez",fDe="Período",mDe="Segundos",gDe="Sencillo",_De="Tiempo específico",vDe="fechas especificas",yDe="día(s) específico(s) de la semana",bDe="día específico de semanas",wDe="horas específicas",SDe="minutos específicos",xDe="meses específicos",CDe="segundos específicos",$De="Hora",kDe="A",EDe="Mago",TDe="todas",ODe="Día astro",DDe="Noche astro",ADe="Amanecer",MDe="Oscuridad",NDe="hora dorada",jDe="Fin de la hora dorada",zDe="Nadir",RDe="Amanecer náutico",IDe="Anochecer náutico",LDe="Noche",FDe="Fin de la noche",PDe="Mediodía solar",BDe="amanecer",HDe="Fin del amanecer",UDe="Puesta de sol",WDe="Puesta de sol",VDe="a",GDe="en %s",qDe="cada día",XDe="cada hora",JDe="cada minuto",YDe="cada mes",KDe="cada %s días",ZDe="cada %s horas",QDe="cada %s minutos",e4e="cada %s meses",t4e="cada %s semanas",n4e="cada %s años",o4e="cada semana",r4e="todos los años",a4e="de %s a %s",s4e="Nunca",i4e="en %s de %s",l4e="en %s y %s de",c4e="en cada fecha de",d4e="%s",u4e="%s y %s",p4e="en %s",h4e="en %s y %s",f4e="en los fines de semana",m4e="en días laborables",g4e="ya no se ejecutará más, porque el inicio está en el pasado",_4e="en %s",v4e="de %s",y4e="Ejecutar desde hasta",b4e="a %s",w4e="cada",S4e="Tiempo específico",x4e="de",C4e="De-a",$4e="Tiempo de intervalo",k4e="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",E4e="ninguna",T4e="en",O4e="Período",D4e="Diario",A4e="fechas",M4e="Día",N4e="Cada",j4e="Cada día",z4e="Cada mes",R4e="Cada semana",I4e="Todos los años",L4e="Horas",F4e="Minutos",P4e="mes",B4e="Mensual",H4e="Una vez",U4e="Meses específicos",W4e="Semana",V4e="Días laborables",G4e="Fin de semana",q4e="Semanal",X4e="Días laborables",J4e="Año",Y4e="Anual",K4e="Tiempo específico",Z4e="Hora",Q4e="a",e5e="Válido",t5e="de",n5e="a",o5e="Todo el dia",r5e="cada mes",a5e={"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_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:aEe,"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:sEe,"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:iEe,"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:lEe,ra_Clear:cEe,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:dEe,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:uEe,ra_Configure:pEe,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:hEe,ra_Copied:fEe,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:mEe,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:gEe,"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:_Ee,ra_Delete:vEe,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:yEe,ra_Disconnected:bEe,"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_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 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_Error:wEe,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:SEe,"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:xEe,"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_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 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:CEe,"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_Longitude:$Ee,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:kEe,ra_Monday:EEe,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:TEe,"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 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_Objects:OEe,ra_Ok:DEe,"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 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_Private certificate":"certificado privado",ra_Product:AEe,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:MEe,ra_Replace:NEe,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:jEe,ra_Saturday:zEe,ra_Save:REe,"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:IEe,"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_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:LEe,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:FEe,"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:PEe,ra_Timestamp:BEe,"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:HEe,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:UEe,"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:WEe,ra_Value:VEe,ra_Version:GEe,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:qEe,ra_Width:XEe,ra_Yes:JEe,"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___different__:YEe,ra_aclEveryone_read_object:KEe,ra_aclEveryone_read_state:ZEe,ra_aclEveryone_write_object:QEe,ra_aclEveryone_write_state:eTe,ra_aclGroup_read_object:tTe,ra_aclGroup_read_state:nTe,ra_aclGroup_write_object:oTe,ra_aclGroup_write_state:rTe,ra_aclOwner_read_object:aTe,ra_aclOwner_read_state:sTe,ra_aclOwner_write_object:iTe,ra_aclOwner_write_state:lTe,ra_buttons:cTe,ra_changedFrom:dTe,ra_close:uTe,ra_create_boolean_state:pTe,ra_create_channel:hTe,ra_create_device:fTe,ra_create_number_state:mTe,ra_create_state:gTe,ra_create_string_state:_Te,ra_daysShortText:vTe,ra_dow_Fr:yTe,ra_dow_Mo:bTe,ra_dow_Sa:wTe,ra_dow_Su:STe,ra_dow_Th:xTe,ra_dow_Tu:CTe,ra_dow_We:$Te,ra_expertMode:kTe,ra_fileType_all:ETe,ra_fileType_audio:TTe,ra_fileType_code:OTe,ra_fileType_images:DTe,ra_fileType_txt:ATe,ra_fileType_video:MTe,"ra_fileType_video,":"Video",ra_filter_customs:NTe,ra_filter_customs_without:jTe,ra_filter_func:zTe,ra_filter_id:RTe,ra_filter_name:ITe,ra_filter_role:LTe,ra_filter_room:FTe,ra_filter_type:PTe,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:BTe,ra_lastChange:HTe,ra_locally:UTe,ra_month_Apr:WTe,ra_month_Aug:VTe,ra_month_Dec:GTe,ra_month_Feb:qTe,ra_month_Jan:XTe,ra_month_Jul:JTe,ra_month_Jun:YTe,ra_month_Mai:KTe,ra_month_Mar:ZTe,ra_month_Nov:QTe,ra_month_Oct:eOe,ra_month_Sep:tOe,ra_months_Apr:nOe,ra_months_Aug:oOe,ra_months_Dec:rOe,ra_months_Feb:aOe,ra_months_Jan:sOe,ra_months_Jul:iOe,ra_months_Jun:lOe,ra_months_Mai:cOe,ra_months_Mar:dOe,ra_months_Nov:uOe,ra_months_Oct:pOe,ra_months_Sep:hOe,ra_none:fOe,ra_object_changed_by:mOe,ra_object_changed_by_user:gOe,ra_otherConfig:_Oe,ra_qualityCode:vOe,ra_repeat:yOe,ra_select_folder_hint:bOe,ra_state_changed_by:wOe,ra_state_changed_from:SOe,ra_timestamp:xOe,ra_tooltip_ack:COe,ra_tooltip_comment:$Oe,ra_tooltip_copyState:kOe,ra_tooltip_customConfig:EOe,ra_tooltip_deleteObject:TOe,ra_tooltip_editObject:OOe,ra_tooltip_editState:DOe,ra_tooltip_from:AOe,ra_tooltip_lc:MOe,ra_tooltip_quality:NOe,ra_tooltip_ts:jOe,ra_tooltip_user:zOe,ra_tooltip_value:ROe,"ra_use seconds":"usar segundos",ra_val:IOe,"ra_via internet":"vía Internet",ra_warning_every_minute:LOe,ra_warning_every_second:FOe,sc_cron:POe,sc_date:BOe,sc_dates:HOe,sc_dow:UOe,sc_dows:WOe,sc_every:VOe,sc_everyN_dates:GOe,sc_everyN_dow:qOe,sc_everyN_dows:XOe,sc_everyN_hours:JOe,sc_everyN_minutes:YOe,sc_everyN_months:KOe,sc_everyN_seconds:ZOe,sc_every_dates:QOe,sc_every_dow:eDe,sc_every_dows:tDe,sc_every_hours:nDe,sc_every_minutes:oDe,sc_every_months:rDe,sc_every_seconds:aDe,sc_from:sDe,sc_hours:iDe,sc_interval:lDe,sc_intervalBetween:cDe,sc_invalid_cron:dDe,sc_minutes:uDe,sc_months:pDe,sc_once:hDe,sc_period:fDe,sc_seconds:mDe,sc_simple:gDe,sc_specific:_De,sc_specific_dates:vDe,sc_specific_dow:yDe,sc_specific_dows:bDe,sc_specific_hours:wDe,sc_specific_minutes:SDe,sc_specific_months:xDe,sc_specific_seconds:CDe,sc_time:$De,sc_to:kDe,sc_wizard:EDe,sch_all:TDe,sch_astroDay:ODe,sch_astroNight:DDe,sch_astro_dawn:ADe,sch_astro_dusk:MDe,sch_astro_goldenHour:NDe,sch_astro_goldenHourEnd:jDe,sch_astro_nadir:zDe,sch_astro_nauticalDawn:RDe,sch_astro_nauticalDusk:IDe,sch_astro_night:LDe,sch_astro_nightEnd:FDe,sch_astro_solarNoon:PDe,sch_astro_sunrise:BDe,sch_astro_sunriseEnd:HDe,sch_astro_sunset:UDe,sch_astro_sunsetStart:WDe,sch_at:VDe,sch_desc_atTime:GDe,sch_desc_everyDay:qDe,sch_desc_everyHour:XDe,sch_desc_everyMinute:JDe,sch_desc_everyMonth:YDe,sch_desc_everyNDay:KDe,sch_desc_everyNHours:ZDe,sch_desc_everyNMinutes:QDe,sch_desc_everyNMonths:e4e,sch_desc_everyNWeeks:t4e,sch_desc_everyNYears:n4e,sch_desc_everyWeek:o4e,sch_desc_everyYear:r4e,sch_desc_intervalFromTo:a4e,sch_desc_never:s4e,sch_desc_onDate:i4e,sch_desc_onDates:l4e,sch_desc_onEveryDate:c4e,sch_desc_onMonth:d4e,sch_desc_onMonths:u4e,sch_desc_onWeekday:p4e,sch_desc_onWeekdays:h4e,sch_desc_onWeekends:f4e,sch_desc_onWorkdays:m4e,sch_desc_onceInPast:g4e,sch_desc_once_on:_4e,sch_desc_validFrom:v4e,sch_desc_validFromTo:y4e,sch_desc_validTo:b4e,sch_every:w4e,sch_exactTime:S4e,sch_from:x4e,sch_fromTo:C4e,sch_intervalTime:$4e,sch_invert:k4e,sch_no_one:E4e,sch_on:T4e,sch_period:O4e,sch_periodDaily:D4e,sch_periodDates:A4e,sch_periodDay:M4e,sch_periodEvery:N4e,sch_periodEveryDay:j4e,sch_periodEveryMonth:z4e,sch_periodEveryWeek:R4e,sch_periodEveryYear:I4e,sch_periodHours:L4e,sch_periodMinutes:F4e,sch_periodMonth:P4e,sch_periodMonthly:B4e,sch_periodOnce:H4e,sch_periodSpecificMonths:U4e,sch_periodWeek:W4e,sch_periodWeekdays:V4e,sch_periodWeekend:G4e,sch_periodWeekly:q4e,sch_periodWorkdays:X4e,sch_periodYear:J4e,sch_periodYearly:Y4e,sch_specificTime:K4e,sch_time:Z4e,sch_to:Q4e,sch_valid:e5e,sch_validFrom:t5e,sch_validTo:n5e,sch_wholeDay:o5e,sch_yearEveryMonth:r5e},s5e="Dodać",i5e="Anuluj",l5e="Kategorie",c5e="Sprawdzony",d5e="Kasować",u5e="Blisko",p5e="Handlowy",h5e="Konfiguruj",f5e="Połączony",m5e="Skopiowano",g5e="Stwórz",_5e="Przyciąć",v5e="Delete",y5e="Usunąć",b5e="Wyrzucać",w5e="Niepowiązany",S5e="Błąd",x5e="Filtr",C5e="Piątek",$5e="Szerokość",k5e="Długość geograficzna",E5e="Wiadomość",T5e="Poniedziałek",O5e="Nazwa",D5e="Obiekty",A5e="Dobrze",M5e="Produkt",N5e="Powtarzać",j5e="Zastępować",z5e="Korzeń",R5e="Sobota",I5e="Zapisać",L5e="Wybrany",F5e="Stany",P5e="Niedziela",B5e="Czwartek",H5e="Znak czasu",U5e="Wtorek",W5e="Aktualizacja",V5e="Obowiązuje do",G5e="Wartość",q5e="Wersja",X5e="Środa",J5e="Szerokość",Y5e="Tak",K5e="różne",Z5e="Każdy może czytać obiekt",Q5e="Każdy może czytać stan",e3e="Każdy może pisać przedmiot",t3e="Każdy może pisać stan",n3e="Grupa może odczytać obiekt",o3e="Grupa może odczytać stan",r3e="Grupa może pisać obiekt",a3e="Grupa może pisać stan",s3e="Właściciel może czytać obiekt",i3e="Właściciel może odczytać stan",l3e="Właściciel może napisać obiekt",c3e="Właściciel może pisać stan",d3e="guziki",u3e="Zmieniony z",p3e="blisko",h3e="Utwórz stan logiczny",f3e="Utwórz kanał",m3e="Utwórz urządzenie",g3e="Utwórz stan liczbowy",_3e="Utwórz stan",v3e="Utwórz stan ciągu",y3e="d.",b3e="Ks",w3e="Mo",S3e="Sa",x3e="Su",C3e="Th",$3e="Tu",k3e="My",E3e="Tryb ekspercki",T3e="Wszystkie pliki",O3e="Audio",D3e="Kod/JSON",A3e="Obrazy",M3e="Tekst",N3e="Wideo",j3e="Ustawienia",z3e="bez",R3e="Funkcjonować",I3e="ID",L3e="Imię",F3e="Rola",P3e="Sala",B3e="Rodzaj",H3e="Nieprawidłowe ustawienia",U3e="Ostatnia zmiana",W3e="lokalnie",V3e="kwiecień",G3e="sierpień",q3e="grudzień",X3e="luty",J3e="styczeń",Y3e="lipiec",K3e="czerwiec",Z3e="Mai",Q3e="Zniszczyć",eAe="listopad",tAe="październik",nAe="wrzesień",oAe="kwiecień",rAe="sierpień",aAe="grudzień",sAe="luty",iAe="styczeń",lAe="lipiec",cAe="czerwiec",dAe="Mai",uAe="Zniszczyć",pAe="listopad",hAe="październik",fAe="wrzesień",mAe="Żaden",gAe="Obiekt zmieniony przez",_Ae="Obiekt ostatnio zmieniony o godz",vAe="Ustawienia z innego adaptera %s",yAe="Kod jakości",bAe="powtarzać",wAe="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",SAe="Stan zmieniony przez",xAe="Obiekt zmieniony z",CAe="Znak czasu",$Ae="Potwierdzon",kAe="Komentarz",EAe="Skopiuj wartość stanu",TAe="Własne ustawienia",OAe="Usuń obiekt",DAe="Edytuj obiekt",AAe="Edytuj wartość stanu",MAe="Z",NAe="Ostatnia zmiana",jAe="Jakość",zAe="Znak czasu",RAe="Użytkownik",IAe="Wartość",LAe="Wartość",FAe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",PAe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",BAe="CRON",HAe="Data",UAe="Daktyle",WAe="Dzień",VAe="Dzień tygodnia",GAe="Każdy",qAe="co N dni",XAe="w każdy N-ty dzień tygodnia",JAe="co N dnia tygodnia",YAe="co N godzin",KAe="co N minut",ZAe="co N miesięcy",QAe="co N sekund",eMe="codziennie",tMe="każdy dzień tygodnia",nMe="każdy dzień tygodnia",oMe="co godzinę",rMe="każda minuta",aMe="każdego miesiąca",sMe="każda sekunda",iMe="Od",lMe="godziny",cMe="Interwał",dMe="Interwał między",uMe="Nieprawidłowy CRON",pMe="Minuty",hMe="miesięcy",fMe="Pewnego razu",mMe="Kropka",gMe="sekundy",_Me="Prosty",vMe="Określony czas",yMe="konkretne daty",bMe="określone dni tygodnia",wMe="określony dzień tygodni",SMe="określone godziny",xMe="określone minuty",CMe="określone miesiące",$Me="określone sekundy",kMe="Czas",EMe="Do",TMe="Czarodziej",OMe="wszystko",DMe="Dzień Astro",AMe="Noc Astro",MMe="Świt",NMe="Zmierzch",jMe="złota godzina",zMe="Koniec złotej godziny",RMe="Nadir",IMe="Morski świt",LMe="Morski zmierzch",FMe="Noc",PMe="Koniec nocy",BMe="Południe słoneczne",HMe="wschód słońca",UMe="Koniec wschodu słońca",WMe="Zachód słońca",VMe="Początek zachodu słońca",GMe="w",qMe="na %s",XMe="codziennie",JMe="co godzinę",YMe="każda minuta",KMe="każdego miesiąca",ZMe="każdego dnia %s",QMe="co %s godzin",e6e="co %s minut",t6e="co %s miesięcy",n6e="co %s tygodni",o6e="co %s lat",r6e="co tydzień",a6e="każdego roku",s6e="od %s do %s",i6e="nigdy",l6e="na %s z %s",c6e="na %s i %s z",d6e="w każdą datę",u6e="%s",p6e="%s i %s",h6e="na %s",f6e="na %s i %s",m6e="w weekendy",g6e="w dni robocze",_6e="nie będzie już wykonywany, ponieważ start jest w przeszłości",v6e="na %s",y6e="z %s",b6e="Wykonaj od do",w6e="do %s",S6e="każdy",x6e="Określony czas",C6e="od",$6e="Od-do",k6e="Czas przerwy",E6e="odwracać",T6e="Żaden",O6e="na",D6e="Kropka",A6e="Codziennie",M6e="Daktyle",N6e="Dzień",j6e="Każdy",z6e="Codziennie",R6e="Każdego miesiąca",I6e="Co tydzień",L6e="Każdego roku",F6e="godziny",P6e="Minuty",B6e="miesiąc",H6e="Miesięczny",U6e="Pewnego razu",W6e="Określone miesiące",V6e="Tydzień",G6e="Dni powszednie",q6e="Weekend",X6e="Co tydzień",J6e="Dni robocze",Y6e="Rok",K6e="Rocznie",Z6e="Określony czas",Q6e="Czas",eNe="do",tNe="Ważny",nNe="od",oNe="do",rNe="Cały dzień",aNe="każdego miesiąca",sNe={"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_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:s5e,"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:i5e,"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:l5e,"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:c5e,ra_Clear:d5e,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:u5e,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:p5e,ra_Configure:h5e,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:f5e,ra_Copied:m5e,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:g5e,"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:_5e,"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:v5e,ra_Delete:y5e,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:b5e,ra_Disconnected:w5e,"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_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 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_Error:S5e,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:x5e,"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:C5e,"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_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 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:$5e,"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_Longitude:k5e,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:E5e,ra_Monday:T5e,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:O5e,"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 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_Objects:D5e,ra_Ok:A5e,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:M5e,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:N5e,ra_Replace:j5e,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:z5e,ra_Saturday:R5e,ra_Save:I5e,"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:L5e,"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_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:F5e,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:P5e,"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:B5e,ra_Timestamp:H5e,"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:U5e,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:W5e,"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:V5e,ra_Value:G5e,ra_Version:q5e,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:X5e,ra_Width:J5e,ra_Yes:Y5e,"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___different__:K5e,ra_aclEveryone_read_object:Z5e,ra_aclEveryone_read_state:Q5e,ra_aclEveryone_write_object:e3e,ra_aclEveryone_write_state:t3e,ra_aclGroup_read_object:n3e,ra_aclGroup_read_state:o3e,ra_aclGroup_write_object:r3e,ra_aclGroup_write_state:a3e,ra_aclOwner_read_object:s3e,ra_aclOwner_read_state:i3e,ra_aclOwner_write_object:l3e,ra_aclOwner_write_state:c3e,ra_buttons:d3e,ra_changedFrom:u3e,ra_close:p3e,ra_create_boolean_state:h3e,ra_create_channel:f3e,ra_create_device:m3e,ra_create_number_state:g3e,ra_create_state:_3e,ra_create_string_state:v3e,ra_daysShortText:y3e,ra_dow_Fr:b3e,ra_dow_Mo:w3e,ra_dow_Sa:S3e,ra_dow_Su:x3e,ra_dow_Th:C3e,ra_dow_Tu:$3e,ra_dow_We:k3e,ra_expertMode:E3e,ra_fileType_all:T3e,ra_fileType_audio:O3e,ra_fileType_code:D3e,ra_fileType_images:A3e,ra_fileType_txt:M3e,ra_fileType_video:N3e,"ra_fileType_video,":"Wideo",ra_filter_customs:j3e,ra_filter_customs_without:z3e,ra_filter_func:R3e,ra_filter_id:I3e,ra_filter_name:L3e,ra_filter_role:F3e,ra_filter_room:P3e,ra_filter_type:B3e,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:H3e,ra_lastChange:U3e,ra_locally:W3e,ra_month_Apr:V3e,ra_month_Aug:G3e,ra_month_Dec:q3e,ra_month_Feb:X3e,ra_month_Jan:J3e,ra_month_Jul:Y3e,ra_month_Jun:K3e,ra_month_Mai:Z3e,ra_month_Mar:Q3e,ra_month_Nov:eAe,ra_month_Oct:tAe,ra_month_Sep:nAe,ra_months_Apr:oAe,ra_months_Aug:rAe,ra_months_Dec:aAe,ra_months_Feb:sAe,ra_months_Jan:iAe,ra_months_Jul:lAe,ra_months_Jun:cAe,ra_months_Mai:dAe,ra_months_Mar:uAe,ra_months_Nov:pAe,ra_months_Oct:hAe,ra_months_Sep:fAe,ra_none:mAe,ra_object_changed_by:gAe,ra_object_changed_by_user:_Ae,ra_otherConfig:vAe,ra_qualityCode:yAe,ra_repeat:bAe,ra_select_folder_hint:wAe,ra_state_changed_by:SAe,ra_state_changed_from:xAe,ra_timestamp:CAe,ra_tooltip_ack:$Ae,ra_tooltip_comment:kAe,ra_tooltip_copyState:EAe,ra_tooltip_customConfig:TAe,ra_tooltip_deleteObject:OAe,ra_tooltip_editObject:DAe,ra_tooltip_editState:AAe,ra_tooltip_from:MAe,ra_tooltip_lc:NAe,ra_tooltip_quality:jAe,ra_tooltip_ts:zAe,ra_tooltip_user:RAe,ra_tooltip_value:IAe,"ra_use seconds":"użyj sekund",ra_val:LAe,"ra_via internet":"przez internet",ra_warning_every_minute:FAe,ra_warning_every_second:PAe,sc_cron:BAe,sc_date:HAe,sc_dates:UAe,sc_dow:WAe,sc_dows:VAe,sc_every:GAe,sc_everyN_dates:qAe,sc_everyN_dow:XAe,sc_everyN_dows:JAe,sc_everyN_hours:YAe,sc_everyN_minutes:KAe,sc_everyN_months:ZAe,sc_everyN_seconds:QAe,sc_every_dates:eMe,sc_every_dow:tMe,sc_every_dows:nMe,sc_every_hours:oMe,sc_every_minutes:rMe,sc_every_months:aMe,sc_every_seconds:sMe,sc_from:iMe,sc_hours:lMe,sc_interval:cMe,sc_intervalBetween:dMe,sc_invalid_cron:uMe,sc_minutes:pMe,sc_months:hMe,sc_once:fMe,sc_period:mMe,sc_seconds:gMe,sc_simple:_Me,sc_specific:vMe,sc_specific_dates:yMe,sc_specific_dow:bMe,sc_specific_dows:wMe,sc_specific_hours:SMe,sc_specific_minutes:xMe,sc_specific_months:CMe,sc_specific_seconds:$Me,sc_time:kMe,sc_to:EMe,sc_wizard:TMe,sch_all:OMe,sch_astroDay:DMe,sch_astroNight:AMe,sch_astro_dawn:MMe,sch_astro_dusk:NMe,sch_astro_goldenHour:jMe,sch_astro_goldenHourEnd:zMe,sch_astro_nadir:RMe,sch_astro_nauticalDawn:IMe,sch_astro_nauticalDusk:LMe,sch_astro_night:FMe,sch_astro_nightEnd:PMe,sch_astro_solarNoon:BMe,sch_astro_sunrise:HMe,sch_astro_sunriseEnd:UMe,sch_astro_sunset:WMe,sch_astro_sunsetStart:VMe,sch_at:GMe,sch_desc_atTime:qMe,sch_desc_everyDay:XMe,sch_desc_everyHour:JMe,sch_desc_everyMinute:YMe,sch_desc_everyMonth:KMe,sch_desc_everyNDay:ZMe,sch_desc_everyNHours:QMe,sch_desc_everyNMinutes:e6e,sch_desc_everyNMonths:t6e,sch_desc_everyNWeeks:n6e,sch_desc_everyNYears:o6e,sch_desc_everyWeek:r6e,sch_desc_everyYear:a6e,sch_desc_intervalFromTo:s6e,sch_desc_never:i6e,sch_desc_onDate:l6e,sch_desc_onDates:c6e,sch_desc_onEveryDate:d6e,sch_desc_onMonth:u6e,sch_desc_onMonths:p6e,sch_desc_onWeekday:h6e,sch_desc_onWeekdays:f6e,sch_desc_onWeekends:m6e,sch_desc_onWorkdays:g6e,sch_desc_onceInPast:_6e,sch_desc_once_on:v6e,sch_desc_validFrom:y6e,sch_desc_validFromTo:b6e,sch_desc_validTo:w6e,sch_every:S6e,sch_exactTime:x6e,sch_from:C6e,sch_fromTo:$6e,sch_intervalTime:k6e,sch_invert:E6e,sch_no_one:T6e,sch_on:O6e,sch_period:D6e,sch_periodDaily:A6e,sch_periodDates:M6e,sch_periodDay:N6e,sch_periodEvery:j6e,sch_periodEveryDay:z6e,sch_periodEveryMonth:R6e,sch_periodEveryWeek:I6e,sch_periodEveryYear:L6e,sch_periodHours:F6e,sch_periodMinutes:P6e,sch_periodMonth:B6e,sch_periodMonthly:H6e,sch_periodOnce:U6e,sch_periodSpecificMonths:W6e,sch_periodWeek:V6e,sch_periodWeekdays:G6e,sch_periodWeekend:q6e,sch_periodWeekly:X6e,sch_periodWorkdays:J6e,sch_periodYear:Y6e,sch_periodYearly:K6e,sch_specificTime:Z6e,sch_time:Q6e,sch_to:eNe,sch_valid:tNe,sch_validFrom:nNe,sch_validTo:oNe,sch_wholeDay:rNe,sch_yearEveryMonth:aNe},iNe="Додайте",lNe="Скасувати",cNe="Категорії",dNe="Перевірено",uNe="Видалити",pNe="Закрити",hNe="Комерційний",fNe="Налаштувати",mNe="Підключено",gNe="Скопійовано",_Ne="Створити",vNe="Урожай",yNe="Delete",bNe="Видалити",wNe="Відкинути",SNe="Відключено",xNe="Помилка",CNe="фільтр",$Ne="П'ятниця",kNe="Широта",ENe="Довгота",TNe="повідомлення",ONe="понеділок",DNe="Ім'я",ANe="Об'єкти",MNe="В порядку",NNe="Продукт",jNe="Повторіть",zNe="Замінити",RNe="Корінь",INe="Субота",LNe="зберегти",FNe="Вибране",PNe="держави",BNe="неділя",HNe="четвер",UNe="Мітка часу",WNe="вівторок",VNe="оновлення",GNe="Дійсний до",qNe="Значення",XNe="Версія",JNe="Середа",YNe="Ширина",KNe="Так",ZNe="інший",QNe="Кожен може читати об'єкт",eje="Кожен може читати стан",tje="Кожен може написати об'єкт",nje="Кожен може написати стан",oje="Група може читати об'єкт",rje="Група може читати стан",aje="Група може писати об'єкт",sje="Група може писати стан",ije="Власник може читати об'єкт",lje="Власник може читати стан",cje="Власник може написати об'єкт",dje="Власник може написати стан",uje="кнопки",pje="Змінено з",hje="закрити",fje="Створіть логічний стан",mje="Створити канал",gje="Створити пристрій",_je="Створити номерний стан",vje="Створити состояние",yje="Створити рядковий стан",bje="днів",wje="О",Sje="пн",xje="Sa",Cje="Нд",$je="чт",kje="вт",Eje="ми",Tje="Експертний режим",Oje="Всі файли",Dje="Аудіо",Aje="Код/JSON",Mje="Зображення",Nje="текст",jje="відео",zje="Налаштування",Rje="без",Ije="функція",Lje="ID",Fje="Ім'я",Pje="Роль",Bje="Кімната",Hje="Тип",Uje="Недійсні налаштування",Wje="Остання зміна",Vje="локально",Gje="квіт",qje="серп",Xje="груд",Jje="лютий",Yje="січня",Kje="лип",Zje="черв",Qje="травень",eze="березень",tze="Листопад",nze="жовт",oze="вер",rze="квіт",aze="серп",sze="груд",ize="лютий",lze="січня",cze="лип",dze="черв",uze="травень",pze="березень",hze="Листопад",fze="жовт",mze="вер",gze="немає",_ze="Об'єкт змінено",vze="Об'єкт востаннє змінено о",yze="Налаштування з іншого адаптера %s",bze="Код якості",wze="повторити",Sze="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",xze="Стан змінено на",Cze="Об'єкт змінено з",$ze="Мітка часу",kze="Визнано",Eze="коментар",Tze="Скопіюйте значення стану",Oze="Спеціальні налаштування",Dze="Видалити об'єкт",Aze="Редагувати об'єкт",Mze="Відредагуйте значення стану",Nze="Від",jze="Востаннє змінено",zze="якість",Rze="Позначка часу",Ize="Користувач",Lze="Значення",Fze="Значення",Pze="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",Bze="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",Hze="CRON",Uze="Дата",Wze="дати",Vze="День",Gze="День тижня",qze="кожен",Xze="кожні N днів",Jze="кожен N-й день тижня",Yze="кожні N днів тижня",Kze="кожні N годин",Zze="кожні N хвилин",Qze="кожні N місяців",eRe="кожні N секунд",tRe="кожен день",nRe="кожен день тижня",oRe="кожен день тижня",rRe="щогодини",aRe="кожну хвилину",sRe="щомісяця",iRe="кожна секунда",lRe="Від",cRe="години",dRe="Інтервал",uRe="Інтервал між",pRe="Недійсний CRON",hRe="хвилин",fRe="місяців",mRe="Один раз",gRe="Крапка",_Re="секунд",vRe="просто",yRe="Конкретний час",bRe="конкретні дати",wRe="конкретний день (дні) тижня",SRe="конкретний день тижня",xRe="конкретні години",CRe="конкретні хвилини",$Re="конкретні місяці",kRe="конкретні секунди",ERe="час",TRe="до",ORe="майстер",DRe="все",ARe="Астродень",MRe="Астро ніч",NRe="Світанок",jRe="Сутінки",zRe="Золота година",RRe="Кінець золотої години",IRe="Надір",LRe="Морський світанок",FRe="Морські сутінки",PRe="ніч",BRe="Кінець ночі",HRe="Сонячний полудень",URe="Схід сонця",WRe="Кінець сходу сонця",VRe="Захід сонця",GRe="Початок заходу сонця",qRe="в",XRe="в %s",JRe="кожен день",YRe="щогодини",KRe="кожну хвилину",ZRe="щомісяця",QRe="кожен %s день",e8e="кожні %s годин",t8e="кожні %s хвилин",n8e="кожні %s місяців",o8e="кожні %s тижнів",r8e="кожні %s років",a8e="щотижня",s8e="щороку",i8e="від %s до %s",l8e="ніколи",c8e="на %s з %s",d8e="на %s і %s з",u8e="на кожну дату",p8e="%s",h8e="%s і %s",f8e="на %s",m8e="на %s і %s",g8e="на вихідних",_8e="в робочі дні",v8e="більше не виконуватиметься, оскільки запуск у минулому",y8e="на %s",b8e="від %s",w8e="Виконати від до",S8e="до %s",x8e="кожен",C8e="Конкретний час",$8e="від",k8e="Від до",E8e="Час інтервалу",T8e="інвертувати",O8e="немає",D8e="на",A8e="Крапка",M8e="Щодня",N8e="дати",j8e="День",z8e="кожен",R8e="Кожен день",I8e="Щомісяця",L8e="Щотижня",F8e="Щороку",P8e="години",B8e="хвилин",H8e="місяць",U8e="Щомісяця",W8e="Один раз",V8e="Конкретні місяці",G8e="тиждень",q8e="будні",X8e="Вихідні",J8e="Щотижня",Y8e="робочі дні",K8e="рік",Z8e="щорічно",Q8e="Конкретний час",e9e="час",t9e="до",n9e="Дійсний",o9e="від",r9e="до",a9e="Цілий день",s9e="щомісяця",i9e={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:iNe,"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:lNe,"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:cNe,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:dNe,ra_Clear:uNe,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:pNe,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:hNe,ra_Configure:fNe,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:mNe,ra_Copied:gNe,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:_Ne,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:vNe,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:yNe,ra_Delete:bNe,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:wNe,ra_Disconnected:SNe,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:xNe,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:CNe,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:$Ne,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:kNe,"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_Longitude:ENe,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:TNe,ra_Monday:ONe,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:DNe,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:ANe,ra_Ok:MNe,"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 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_Private certificate":"Приватний сертифікат",ra_Product:NNe,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:jNe,ra_Replace:zNe,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:RNe,ra_Saturday:INe,ra_Save:LNe,"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:FNe,"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_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:PNe,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:BNe,"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:HNe,ra_Timestamp:UNe,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:WNe,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:VNe,"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:GNe,ra_Value:qNe,ra_Version:XNe,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:JNe,ra_Width:YNe,ra_Yes:KNe,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:ZNe,ra_aclEveryone_read_object:QNe,ra_aclEveryone_read_state:eje,ra_aclEveryone_write_object:tje,ra_aclEveryone_write_state:nje,ra_aclGroup_read_object:oje,ra_aclGroup_read_state:rje,ra_aclGroup_write_object:aje,ra_aclGroup_write_state:sje,ra_aclOwner_read_object:ije,ra_aclOwner_read_state:lje,ra_aclOwner_write_object:cje,ra_aclOwner_write_state:dje,ra_buttons:uje,ra_changedFrom:pje,ra_close:hje,ra_create_boolean_state:fje,ra_create_channel:mje,ra_create_device:gje,ra_create_number_state:_je,ra_create_state:vje,ra_create_string_state:yje,ra_daysShortText:bje,ra_dow_Fr:wje,ra_dow_Mo:Sje,ra_dow_Sa:xje,ra_dow_Su:Cje,ra_dow_Th:$je,ra_dow_Tu:kje,ra_dow_We:Eje,ra_expertMode:Tje,ra_fileType_all:Oje,ra_fileType_audio:Dje,ra_fileType_code:Aje,ra_fileType_images:Mje,ra_fileType_txt:Nje,ra_fileType_video:jje,"ra_fileType_video,":"відео",ra_filter_customs:zje,ra_filter_customs_without:Rje,ra_filter_func:Ije,ra_filter_id:Lje,ra_filter_name:Fje,ra_filter_role:Pje,ra_filter_room:Bje,ra_filter_type:Hje,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:Uje,ra_lastChange:Wje,ra_locally:Vje,ra_month_Apr:Gje,ra_month_Aug:qje,ra_month_Dec:Xje,ra_month_Feb:Jje,ra_month_Jan:Yje,ra_month_Jul:Kje,ra_month_Jun:Zje,ra_month_Mai:Qje,ra_month_Mar:eze,ra_month_Nov:tze,ra_month_Oct:nze,ra_month_Sep:oze,ra_months_Apr:rze,ra_months_Aug:aze,ra_months_Dec:sze,ra_months_Feb:ize,ra_months_Jan:lze,ra_months_Jul:cze,ra_months_Jun:dze,ra_months_Mai:uze,ra_months_Mar:pze,ra_months_Nov:hze,ra_months_Oct:fze,ra_months_Sep:mze,ra_none:gze,ra_object_changed_by:_ze,ra_object_changed_by_user:vze,ra_otherConfig:yze,ra_qualityCode:bze,ra_repeat:wze,ra_select_folder_hint:Sze,ra_state_changed_by:xze,ra_state_changed_from:Cze,ra_timestamp:$ze,ra_tooltip_ack:kze,ra_tooltip_comment:Eze,ra_tooltip_copyState:Tze,ra_tooltip_customConfig:Oze,ra_tooltip_deleteObject:Dze,ra_tooltip_editObject:Aze,ra_tooltip_editState:Mze,ra_tooltip_from:Nze,ra_tooltip_lc:jze,ra_tooltip_quality:zze,ra_tooltip_ts:Rze,ra_tooltip_user:Ize,ra_tooltip_value:Lze,"ra_use seconds":"використовуйте секунди",ra_val:Fze,"ra_via internet":"через інтернет",ra_warning_every_minute:Pze,ra_warning_every_second:Bze,sc_cron:Hze,sc_date:Uze,sc_dates:Wze,sc_dow:Vze,sc_dows:Gze,sc_every:qze,sc_everyN_dates:Xze,sc_everyN_dow:Jze,sc_everyN_dows:Yze,sc_everyN_hours:Kze,sc_everyN_minutes:Zze,sc_everyN_months:Qze,sc_everyN_seconds:eRe,sc_every_dates:tRe,sc_every_dow:nRe,sc_every_dows:oRe,sc_every_hours:rRe,sc_every_minutes:aRe,sc_every_months:sRe,sc_every_seconds:iRe,sc_from:lRe,sc_hours:cRe,sc_interval:dRe,sc_intervalBetween:uRe,sc_invalid_cron:pRe,sc_minutes:hRe,sc_months:fRe,sc_once:mRe,sc_period:gRe,sc_seconds:_Re,sc_simple:vRe,sc_specific:yRe,sc_specific_dates:bRe,sc_specific_dow:wRe,sc_specific_dows:SRe,sc_specific_hours:xRe,sc_specific_minutes:CRe,sc_specific_months:$Re,sc_specific_seconds:kRe,sc_time:ERe,sc_to:TRe,sc_wizard:ORe,sch_all:DRe,sch_astroDay:ARe,sch_astroNight:MRe,sch_astro_dawn:NRe,sch_astro_dusk:jRe,sch_astro_goldenHour:zRe,sch_astro_goldenHourEnd:RRe,sch_astro_nadir:IRe,sch_astro_nauticalDawn:LRe,sch_astro_nauticalDusk:FRe,sch_astro_night:PRe,sch_astro_nightEnd:BRe,sch_astro_solarNoon:HRe,sch_astro_sunrise:URe,sch_astro_sunriseEnd:WRe,sch_astro_sunset:VRe,sch_astro_sunsetStart:GRe,sch_at:qRe,sch_desc_atTime:XRe,sch_desc_everyDay:JRe,sch_desc_everyHour:YRe,sch_desc_everyMinute:KRe,sch_desc_everyMonth:ZRe,sch_desc_everyNDay:QRe,sch_desc_everyNHours:e8e,sch_desc_everyNMinutes:t8e,sch_desc_everyNMonths:n8e,sch_desc_everyNWeeks:o8e,sch_desc_everyNYears:r8e,sch_desc_everyWeek:a8e,sch_desc_everyYear:s8e,sch_desc_intervalFromTo:i8e,sch_desc_never:l8e,sch_desc_onDate:c8e,sch_desc_onDates:d8e,sch_desc_onEveryDate:u8e,sch_desc_onMonth:p8e,sch_desc_onMonths:h8e,sch_desc_onWeekday:f8e,sch_desc_onWeekdays:m8e,sch_desc_onWeekends:g8e,sch_desc_onWorkdays:_8e,sch_desc_onceInPast:v8e,sch_desc_once_on:y8e,sch_desc_validFrom:b8e,sch_desc_validFromTo:w8e,sch_desc_validTo:S8e,sch_every:x8e,sch_exactTime:C8e,sch_from:$8e,sch_fromTo:k8e,sch_intervalTime:E8e,sch_invert:T8e,sch_no_one:O8e,sch_on:D8e,sch_period:A8e,sch_periodDaily:M8e,sch_periodDates:N8e,sch_periodDay:j8e,sch_periodEvery:z8e,sch_periodEveryDay:R8e,sch_periodEveryMonth:I8e,sch_periodEveryWeek:L8e,sch_periodEveryYear:F8e,sch_periodHours:P8e,sch_periodMinutes:B8e,sch_periodMonth:H8e,sch_periodMonthly:U8e,sch_periodOnce:W8e,sch_periodSpecificMonths:V8e,sch_periodWeek:G8e,sch_periodWeekdays:q8e,sch_periodWeekend:X8e,sch_periodWeekly:J8e,sch_periodWorkdays:Y8e,sch_periodYear:K8e,sch_periodYearly:Z8e,sch_specificTime:Q8e,sch_time:e9e,sch_to:t9e,sch_valid:n9e,sch_validFrom:o9e,sch_validTo:r9e,sch_wholeDay:a9e,sch_yearEveryMonth:s9e},l9e="附加",c9e="取消",d9e="类别",u9e="勾选",p9e="删除",h9e="关",f9e="商业的",m9e="配置",g9e="连接的",_9e="复制的",v9e="创建",y9e="庄稼",b9e="Delete",w9e="删除",S9e="丢弃",x9e="断开连接",C9e="错误",$9e="筛选",k9e="星期五",E9e="纬度",T9e="经度",O9e="信息",D9e="周一",A9e="姓名",M9e="对象",N9e="好",j9e="产品",z9e="重复",R9e="代替",I9e="根",L9e="周六",F9e="保存",P9e="已选",B9e="状态",H9e="星期日",U9e="周四",W9e="时间戳记",V9e="周二",G9e="更新资料",q9e="有效期至",X9e="值",J9e="版本",Y9e="周三",K9e="宽度",Z9e="是的",Q9e="不同的",eIe="每个人都可以阅读对象",tIe="每个人都可以阅读状态",nIe="每个人都可以写对象",oIe="每个人都可以写状态",rIe="组可以读取对象",aIe="群组可以读取状态",sIe="组可以写对象",iIe="组可以写状态",lIe="所有者可以读取对象",cIe="所有者可以读取状态",dIe="所有者可以写对象",uIe="所有者可以写状态",pIe="纽扣",hIe="更改为",fIe="关闭",mIe="创建布尔状态",gIe="创建频道",_Ie="创建设备",vIe="创建号码状态",yIe="创建状态",bIe="创建字符串状态",wIe="天",SIe="r",xIe="莫",CIe="萨",$Ie="苏",kIe="Th",EIe="Tu",TIe="我们",OIe="专家模式",DIe="所有文件",AIe="声音的",MIe="代码/JSON",NIe="图片",jIe="文本",zIe="视频",RIe="设定值",IIe="没有",LIe="功能",FIe="ID",PIe="名称",BIe="角色",HIe="房间",UIe="类型",WIe="无效的设定",VIe="最后一次变更",GIe="本地",qIe="4月",XIe="八月",JIe="十二月",YIe="二月",KIe="简",ZIe="七月",QIe="君",e7e="迈",t7e="三月",n7e="十一月",o7e="十月",r7e="九月",a7e="4月",s7e="八月",i7e="十二月",l7e="二月",c7e="简",d7e="七月",u7e="君",p7e="迈",h7e="三月",f7e="十一月",m7e="十月",g7e="九月",_7e="没有任何",v7e="物件变更者",y7e="对象上次更改时间为",b7e="来自其他适配器%s的设置",w7e="质量代码",S7e="重复",x7e="要选择文件夹,只需按住“shift”键单击文件夹即可。",C7e="状态由",$7e="对象已从更改",k7e="时间戳记",E7e="致谢国旗",T7e="评论",O7e="复制状态值",D7e="自定义设置",A7e="删除物件",M7e="编辑物件",N7e="编辑状态值",j7e="从",z7e="最后改变了",R7e="质量",I7e="时间戳",L7e="用户",F7e="值",P7e="值",B7e="警告:CRON 作业将在指定期间内每分钟运行一次!",H7e="警告:CRON 作业将在指定期间内每秒运行一次!",U7e="周期任务",W7e="日期",V7e="日",G7e="天",q7e="星期",X7e="每",J7e="每N天",Y7e="每周的第 N 天",K7e="每周N天",Z7e="每N小时一次",Q7e="每N分钟",eLe="每N个月",tLe="每N秒",nLe="每天",oLe="一周的每一天",rLe="一周的每一天",aLe="每小时",sLe="每分钟",iLe="每月",lLe="每秒",cLe="从",dLe="小时",uLe="间隔",pLe="间隔时间",hLe="无效的 CRON",fLe="分钟",mLe="月",gLe="一次",_Le="周期",vLe="秒",yLe="简单模式",bLe="特定的时间",wLe="特定的日子",SLe="一周中的特定日子",xLe="特定的一周",CLe="特定的小时",$Le="特定的分钟",kLe="特定的月份",ELe="特定的描述",TLe="时间",OLe="至",DLe="向导模式",ALe="全选",MLe="天文白天",NLe="天文夜晚",jLe="黎明",zLe="黄昏",RLe="黄金时段",ILe="黄金时段结束",LLe="天底",FLe="航海黎明",PLe="航海黄昏",BLe="夜晚",HLe="夜晚结束",ULe="正午",WLe="日出",VLe="日出结束",GLe="日落",qLe="日落开始",XLe="在",JLe="的%s",YLe="每天",KLe="每小时",ZLe="每分钟",QLe="每月",eFe="每%s天",tFe="每%s小时",nFe="每%s分钟",oFe="每%s月",rFe="每%s周",aFe="每%s年",sFe="每周",iFe="每年",lFe="从%s到%s",cFe="决不",dFe="在%s的%s上",uFe="在%s和%s上",pFe="在每天",hFe="%s",fFe="%s和%s",mFe="在%s上",gFe="在%s和%s上",_Fe="在周末",vFe="在工作日",yFe="将不再执行,因为起始时间已经是过去的时间了。",bFe="在%s上",wFe="来自%s",SFe="从执行到",xFe="到%s",CFe="每",$Fe="特定的时间",kFe="从",EFe="从到",TFe="间隔时间",OFe="倒置",DFe="取消全选",AFe="的",MFe="周期",NFe="每天",jFe="日期",zFe="天",RFe="每",IFe="每天",LFe="每月",FFe="每周",PFe="每年",BFe="小时",HFe="分钟",UFe="月",WFe="每月一次",VFe="一次",GFe="特定的月份",qFe="周",XFe="工作日",JFe="周末",YFe="每周",KFe="工作日",ZFe="年",QFe="每年",ePe="特定的时间",tPe="时间",nPe="至",oPe="生效",rPe="从",aPe="至",sPe="一整天",iPe="每月",lPe={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:l9e,"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:c9e,"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:d9e,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:u9e,ra_Clear:p9e,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:h9e,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:f9e,ra_Configure:m9e,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:g9e,ra_Copied:_9e,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:v9e,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:y9e,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:b9e,ra_Delete:w9e,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:S9e,ra_Disconnected:x9e,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:C9e,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:$9e,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:k9e,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:E9e,"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_Longitude:T9e,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:O9e,ra_Monday:D9e,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:A9e,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:M9e,ra_Ok:N9e,"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 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_Private certificate":"私有证书",ra_Product:j9e,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:z9e,ra_Replace:R9e,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:I9e,ra_Saturday:L9e,ra_Save:F9e,"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:P9e,"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_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:B9e,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:H9e,"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:U9e,ra_Timestamp:W9e,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:V9e,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:G9e,"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:q9e,ra_Value:X9e,ra_Version:J9e,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:Y9e,ra_Width:K9e,ra_Yes:Z9e,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:Q9e,ra_aclEveryone_read_object:eIe,ra_aclEveryone_read_state:tIe,ra_aclEveryone_write_object:nIe,ra_aclEveryone_write_state:oIe,ra_aclGroup_read_object:rIe,ra_aclGroup_read_state:aIe,ra_aclGroup_write_object:sIe,ra_aclGroup_write_state:iIe,ra_aclOwner_read_object:lIe,ra_aclOwner_read_state:cIe,ra_aclOwner_write_object:dIe,ra_aclOwner_write_state:uIe,ra_buttons:pIe,ra_changedFrom:hIe,ra_close:fIe,ra_create_boolean_state:mIe,ra_create_channel:gIe,ra_create_device:_Ie,ra_create_number_state:vIe,ra_create_state:yIe,ra_create_string_state:bIe,ra_daysShortText:wIe,ra_dow_Fr:SIe,ra_dow_Mo:xIe,ra_dow_Sa:CIe,ra_dow_Su:$Ie,ra_dow_Th:kIe,ra_dow_Tu:EIe,ra_dow_We:TIe,ra_expertMode:OIe,ra_fileType_all:DIe,ra_fileType_audio:AIe,ra_fileType_code:MIe,ra_fileType_images:NIe,ra_fileType_txt:jIe,ra_fileType_video:zIe,"ra_fileType_video,":"视频",ra_filter_customs:RIe,ra_filter_customs_without:IIe,ra_filter_func:LIe,ra_filter_id:FIe,ra_filter_name:PIe,ra_filter_role:BIe,ra_filter_room:HIe,ra_filter_type:UIe,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:WIe,ra_lastChange:VIe,ra_locally:GIe,ra_month_Apr:qIe,ra_month_Aug:XIe,ra_month_Dec:JIe,ra_month_Feb:YIe,ra_month_Jan:KIe,ra_month_Jul:ZIe,ra_month_Jun:QIe,ra_month_Mai:e7e,ra_month_Mar:t7e,ra_month_Nov:n7e,ra_month_Oct:o7e,ra_month_Sep:r7e,ra_months_Apr:a7e,ra_months_Aug:s7e,ra_months_Dec:i7e,ra_months_Feb:l7e,ra_months_Jan:c7e,ra_months_Jul:d7e,ra_months_Jun:u7e,ra_months_Mai:p7e,ra_months_Mar:h7e,ra_months_Nov:f7e,ra_months_Oct:m7e,ra_months_Sep:g7e,ra_none:_7e,ra_object_changed_by:v7e,ra_object_changed_by_user:y7e,ra_otherConfig:b7e,ra_qualityCode:w7e,ra_repeat:S7e,ra_select_folder_hint:x7e,ra_state_changed_by:C7e,ra_state_changed_from:$7e,ra_timestamp:k7e,ra_tooltip_ack:E7e,ra_tooltip_comment:T7e,ra_tooltip_copyState:O7e,ra_tooltip_customConfig:D7e,ra_tooltip_deleteObject:A7e,ra_tooltip_editObject:M7e,ra_tooltip_editState:N7e,ra_tooltip_from:j7e,ra_tooltip_lc:z7e,ra_tooltip_quality:R7e,ra_tooltip_ts:I7e,ra_tooltip_user:L7e,ra_tooltip_value:F7e,"ra_use seconds":"用秒",ra_val:P7e,"ra_via internet":"通过互联网",ra_warning_every_minute:B7e,ra_warning_every_second:H7e,sc_cron:U7e,sc_date:W7e,sc_dates:V7e,sc_dow:G7e,sc_dows:q7e,sc_every:X7e,sc_everyN_dates:J7e,sc_everyN_dow:Y7e,sc_everyN_dows:K7e,sc_everyN_hours:Z7e,sc_everyN_minutes:Q7e,sc_everyN_months:eLe,sc_everyN_seconds:tLe,sc_every_dates:nLe,sc_every_dow:oLe,sc_every_dows:rLe,sc_every_hours:aLe,sc_every_minutes:sLe,sc_every_months:iLe,sc_every_seconds:lLe,sc_from:cLe,sc_hours:dLe,sc_interval:uLe,sc_intervalBetween:pLe,sc_invalid_cron:hLe,sc_minutes:fLe,sc_months:mLe,sc_once:gLe,sc_period:_Le,sc_seconds:vLe,sc_simple:yLe,sc_specific:bLe,sc_specific_dates:wLe,sc_specific_dow:SLe,sc_specific_dows:xLe,sc_specific_hours:CLe,sc_specific_minutes:$Le,sc_specific_months:kLe,sc_specific_seconds:ELe,sc_time:TLe,sc_to:OLe,sc_wizard:DLe,sch_all:ALe,sch_astroDay:MLe,sch_astroNight:NLe,sch_astro_dawn:jLe,sch_astro_dusk:zLe,sch_astro_goldenHour:RLe,sch_astro_goldenHourEnd:ILe,sch_astro_nadir:LLe,sch_astro_nauticalDawn:FLe,sch_astro_nauticalDusk:PLe,sch_astro_night:BLe,sch_astro_nightEnd:HLe,sch_astro_solarNoon:ULe,sch_astro_sunrise:WLe,sch_astro_sunriseEnd:VLe,sch_astro_sunset:GLe,sch_astro_sunsetStart:qLe,sch_at:XLe,sch_desc_atTime:JLe,sch_desc_everyDay:YLe,sch_desc_everyHour:KLe,sch_desc_everyMinute:ZLe,sch_desc_everyMonth:QLe,sch_desc_everyNDay:eFe,sch_desc_everyNHours:tFe,sch_desc_everyNMinutes:nFe,sch_desc_everyNMonths:oFe,sch_desc_everyNWeeks:rFe,sch_desc_everyNYears:aFe,sch_desc_everyWeek:sFe,sch_desc_everyYear:iFe,sch_desc_intervalFromTo:lFe,sch_desc_never:cFe,sch_desc_onDate:dFe,sch_desc_onDates:uFe,sch_desc_onEveryDate:pFe,sch_desc_onMonth:hFe,sch_desc_onMonths:fFe,sch_desc_onWeekday:mFe,sch_desc_onWeekdays:gFe,sch_desc_onWeekends:_Fe,sch_desc_onWorkdays:vFe,sch_desc_onceInPast:yFe,sch_desc_once_on:bFe,sch_desc_validFrom:wFe,sch_desc_validFromTo:SFe,sch_desc_validTo:xFe,sch_every:CFe,sch_exactTime:$Fe,sch_from:kFe,sch_fromTo:EFe,sch_intervalTime:TFe,sch_invert:OFe,sch_no_one:DFe,sch_on:AFe,sch_period:MFe,sch_periodDaily:NFe,sch_periodDates:jFe,sch_periodDay:zFe,sch_periodEvery:RFe,sch_periodEveryDay:IFe,sch_periodEveryMonth:LFe,sch_periodEveryWeek:FFe,sch_periodEveryYear:PFe,sch_periodHours:BFe,sch_periodMinutes:HFe,sch_periodMonth:UFe,sch_periodMonthly:WFe,sch_periodOnce:VFe,sch_periodSpecificMonths:GFe,sch_periodWeek:qFe,sch_periodWeekdays:XFe,sch_periodWeekend:JFe,sch_periodWeekly:YFe,sch_periodWorkdays:KFe,sch_periodYear:ZFe,sch_periodYearly:QFe,sch_specificTime:ePe,sch_time:tPe,sch_to:nPe,sch_valid:oPe,sch_validFrom:rPe,sch_validTo:aPe,sch_wholeDay:sPe,sch_yearEveryMonth:iPe},cPe={en:ZQ,de:Qre,ru:ede,pt:tme,nl:nbe,fr:oxe,it:rEe,es:a5e,pl:sNe,uk:i9e,"zh-cn":lPe},dPe=` +`).forEach(s=>{if(!s.trim())return;const i=s.indexOf(":");if(i!==-1){const l=s.substring(0,i).trim();let d=s.substring(i+1).trim();d=d.replace(/^['"]|['"]$/g,""),d==="true"?n[l]=!0:d==="false"?n[l]=!1:parseFloat(d).toString()===n[l]?n[l]=parseFloat(d):n[l]=d}else n[s.trim()]=!0}),t=t.substring(o+7))}return{header:n,body:t}}static MDremoveDocsify(t){const n=t.match(/{docsify-[^}]*}/g);return n&&n.forEach(o=>t=t.replace(o,"")),t}static generateFile(t,n){const o=document.createElement("a");o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),o.setAttribute("download",t),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}static quality2text(t){const n=t&4294901760,o=zv[t];let r;return o?r=[o]:t&1?r=[zv[1],`0x${(t&65534).toString(16)}`]:t&2?r=[zv[2],`0x${(t&65533).toString(16)}`]:r=[`0x${t.toString(16)}`],n&&r.push(`0x${(n>>16).toString(16).toUpperCase()}`),r}static clone(t){return JSON.parse(JSON.stringify(t))}static getStates(t){var r;const n=(r=t==null?void 0:t.common)==null?void 0:r.states;let o;if(n)if(typeof n=="string"&&n[0]==="{")try{o=JSON.parse(n)}catch{console.error(`Cannot parse states: ${n}`),o=null}else if(typeof n=="string"){const a=n.split(";");o={};for(let s=0;so[s]=a):(t==null?void 0:t.common.type)==="string"?n.forEach(a=>o[a]=a):(t==null?void 0:t.common.type)==="boolean"&&(o.false=n[0],o.true=n[1])):typeof n=="object"&&(o=n);return o||null}static async getSvg(t){const o=await(await fetch(t)).blob();return new Promise(r=>{const a=new FileReader;a.onload=()=>{var s;return r(((s=a.result)==null?void 0:s.toString())||"")},a.readAsDataURL(o)})}static detectMimeType(t){const n=Object.keys(h$).find(o=>t.startsWith(o));return n?h$[n]:null}static isStableRepository(t){return!!(typeof t=="string"&&t.toLowerCase().startsWith("stable")||t&&typeof t!="string"&&t.find(n=>n.toLowerCase().startsWith("stable")))}static isStringInteger(t){return typeof t=="number"?Math.round(t)===t:parseInt(t,10).toString()===t}static isValidDate(t){return t instanceof Date&&!isNaN(t)}static getStyle(t,...n){const o={};for(let r=0;r{if(typeof n[r][a]=="function")o[a]=n[r][a](t);else if(typeof n[r][a]=="object"){const s=n[r][a];o[a]={},Object.keys(s).forEach(i=>{typeof s[i]=="function"?o[a][i]=s(t):(s[i]||s[i]===0)&&(o[a][i]=s[i])})}else(n[r][a]||n[r][a]===0)&&(o[a]=n[r][a])});return o}};F(kt,"namespace",Ir),F(kt,"INSTANCES","instances"),F(kt,"dateFormat",["DD","MM"]),F(kt,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let V=kt;const Rv={buttonIcon:{marginRight:8}};class ZX extends p.Component{constructor(n){super(n);F(this,"isIFrame");const o=n.newReact===void 0?!0:n.newReact;if(n.isIFrame!==void 0)this.isIFrame=n.isIFrame;else try{this.isIFrame=!o&&window.self!==window.top}catch{this.isIFrame=!o}}render(){const n=this.props.noTextOnButtons,o={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},r={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(r.minHeight=48),this.props.error&&(o.border="1px solid red"),p.createElement(sw,{style:r},p.createElement(Mt,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:o},p.createElement(Wb,{style:n?void 0:Rv.buttonIcon}),!n&&E.t("ra_Save")),p.createElement(Mt,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...o,marginLeft:10}},p.createElement(Wb,{style:n?void 0:Rv.buttonIcon}),n?"+":E.t("ra_Save and close"),n&&p.createElement(Dt,null)),p.createElement("div",{style:{flexGrow:1}}),p.createElement(Mt,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:o},p.createElement(Dt,{style:n?void 0:Rv.buttonIcon}),!n&&E.t("ra_Close")))}}const f$={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class p3 extends C.Component{constructor(t){if(super(t),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let n=!1;this.props.suppressQuestionMinutes&&(n=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,n?Date.now()>n&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),n=!1):n=!1),this.state={suppress:n}}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):p.createElement(yt,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(t,n)=>{n!=="backdropClick"&&n!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},p.createElement(bt,{id:"ar_confirmation_dialog_title"},this.props.title||E.t("ra_Are you sure?")),p.createElement(jt,null,p.createElement(Ra,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?p.createElement("br",null):null,this.props.suppressQuestionMinutes?p.createElement(Oe,{sx:{"& .FormControlLabel-label":f$.suppress,"&.FormControlLabel-root":f$.suppressRoot},control:p.createElement(Tt,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||E.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),p.createElement(Nt,null,p.createElement(he,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:p.createElement(qn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(he,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:p.createElement(Dt,null)},this.props.cancel||E.t("ra_Cancel"))))}}class h3 extends C.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return p.createElement(yt,{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"},p.createElement(bt,{id:"ar_alert_dialog_title"},this.props.title||E.t("ra_Error")),p.createElement(jt,null,p.createElement(Ra,{id:"ar_alert_dialog_description"},this.props.text||E.t("ra_Unknown error!"))),p.createElement(Nt,null,p.createElement(he,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:p.createElement(qn,null)},E.t("ra_Ok"))))}}const QX="Append",eJ="Cancel",tJ="Categories",nJ="Checked",oJ="Delete",rJ="Close",aJ="Commercial",sJ="Configure",iJ="Connected",lJ="Copied",cJ="Create",dJ="Crop",uJ="Delete",pJ="Delete",hJ="Discard",fJ="Disconnected",mJ="Error",gJ="Filter",_J="Friday",vJ="Latitude",yJ="Longitude",bJ="Message",wJ="Monday",SJ="Name",xJ="Objects",CJ="Ok",$J="Product",kJ="Repeat",EJ="Replace",TJ="Root",OJ="Saturday",DJ="Save",AJ="Selected",MJ="States",NJ="Sunday",jJ="Thursday",zJ="Timestamp",RJ="Tuesday",IJ="Update",LJ="Valid till",FJ="Value",PJ="Version",BJ="Wednesday",HJ="Width",UJ="Yes",WJ="different",VJ="Everyone can read object",GJ="Everyone can read state",qJ="Everyone can write object",XJ="Everyone can write state",JJ="Group can read object",YJ="Group can read state",KJ="Group can write object",ZJ="Group can write state",QJ="Owner can read object",eY="Owner can read state",tY="Owner can write object",nY="Owner can write state",oY="Buttons",rY="Changed from",aY="close",sY="Create boolean state",iY="Create channel",lY="Create device",cY="Create number state",dY="Create state",uY="Create string state",pY="days",hY="Fr",fY="Mo",mY="Sa",gY="Su",_Y="Th",vY="Tu",yY="We",bY="Expert mode",wY="All files",SY="Audio",xY="Code/JSON",CY="Images",$Y="Text",kY="Video",EY="Settings",TY="without",OY="Function",DY="ID",AY="Name",MY="Role",NY="Room",jY="Type",zY="Invalid settings",RY="Last change",IY="locally",LY="Apr",FY="Aug",PY="Dec",BY="Feb",HY="Jan",UY="Jul",WY="Jun",VY="Mai",GY="Mar",qY="Nov",XY="Oct",JY="Sep",YY="Apr",KY="Aug",ZY="Dec",QY="Feb",eK="Jan",tK="Jul",nK="Jun",oK="Mai",rK="Mar",aK="Nov",sK="Oct",iK="Sep",lK="none",cK="Object changed by",dK="Object last changed at",uK="Settings from other adapter %s",pK="Quality code",hK="repeat",fK='To select folder, just hold the key "shift" by clicking the folder.',mK="State changed by",gK="Object changed from",_K="Timestamp",vK="Acknowledged",yK="Comment",bK="Copy the state value",wK="Custom settings",SK="Delete object",xK="Edit object",CK="Edit the state value",$K="From",kK="Last changed",EK="Quality",TK="Time stamp",OK="User",DK="Value",AK="Value",MK="Warning: The CRON job will run every minute during the specified period!",NK="Warning: The CRON job will run every second during the specified period!",jK="CRON",zK="Date",RK="Dates",IK="Day",LK="Day of week",FK="Every",PK="every N days",BK="every Nth day of the week",HK="every N day of week",UK="every N hours",WK="every N minutes",VK="every N months",GK="every N seconds",qK="every day",XK="every day of the week",JK="every day of the week",YK="every hour",KK="every minute",ZK="every month",QK="every second",eZ="From",tZ="Hours",nZ="Interval",oZ="Interval between",rZ="Invalid CRON",aZ="Minutes",sZ="months",iZ="Once",lZ="Period",cZ="Seconds",dZ="Simple",uZ="Specific time",pZ="specific dates",hZ="specific day(s) of the week",fZ="specific day of weeks",mZ="specific hours",gZ="specific minutes",_Z="specific months",vZ="specific seconds",yZ="Time",bZ="To",wZ="Wizard",SZ="all",xZ="Astro day",CZ="Astro night",$Z="Dawn",kZ="Dusk",EZ="Golden hour",TZ="Golden hour end",OZ="Nadir",DZ="Nautical dawn",AZ="Nautical dusk",MZ="Night",NZ="Night end",jZ="Solar noon",zZ="Sunrise",RZ="Sunrise end",IZ="Sunset",LZ="Sunset start",FZ="at",PZ="at %s",BZ="every day",HZ="every hour",UZ="every minute",WZ="every month",VZ="every %s day",GZ="every %s hours",qZ="every %s minutes",XZ="every %s months",JZ="every %s weeks",YZ="every %s years",KZ="every week",ZZ="every year",QZ="from %s to %s",eQ="never",tQ="on %s of %s",nQ="on %s and %s of",oQ="on every date of",rQ="%s",aQ="%s and %s",sQ="on %s",iQ="on %s and %s",lQ="on weekends",cQ="on working days",dQ="will ne be not executed any more, because start is in the past",uQ="on %s",pQ="from %s",hQ="Execute from to",fQ="to %s",mQ="every",gQ="Specific time",_Q="from",vQ="From-to",yQ="Interval time",bQ="invert",wQ="none",SQ="on",xQ="Period",CQ="Daily",$Q="Dates",kQ="Day",EQ="Every",TQ="Every day",OQ="Every month",DQ="Every week",AQ="Every year",MQ="Hours",NQ="Minutes",jQ="month",zQ="Monthly",RQ="Once",IQ="Specific months",LQ="Week",FQ="Weekdays",PQ="Weekend",BQ="Weekly",HQ="Workdays",UQ="Year",WQ="Yearly",VQ="Specific time",GQ="Time",qQ="to",XQ="Valid",JQ="from",YQ="to",KQ="Whole day",ZQ="every month",QQ={"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_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:QX,"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:eJ,"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:tJ,"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:nJ,ra_Clear:oJ,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:rJ,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:aJ,ra_Configure:sJ,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:iJ,ra_Copied:lJ,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:cJ,"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:uJ,ra_Delete:pJ,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:hJ,ra_Disconnected:fJ,"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_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 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_Error:mJ,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:gJ,"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:_J,"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_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 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:vJ,"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_Longitude:yJ,'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:SJ,"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 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_Objects:xJ,ra_Ok:CJ,"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 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_Private certificate":"Private certificate",ra_Product:$J,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:kJ,ra_Replace:EJ,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:TJ,ra_Saturday:OJ,ra_Save:DJ,"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:AJ,"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_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:MJ,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:NJ,"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:jJ,ra_Timestamp:zJ,"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:RJ,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:IJ,"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:LJ,ra_Value:FJ,ra_Version:PJ,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:BJ,ra_Width:HJ,ra_Yes:UJ,"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___different__:WJ,ra_aclEveryone_read_object:VJ,ra_aclEveryone_read_state:GJ,ra_aclEveryone_write_object:qJ,ra_aclEveryone_write_state:XJ,ra_aclGroup_read_object:JJ,ra_aclGroup_read_state:YJ,ra_aclGroup_write_object:KJ,ra_aclGroup_write_state:ZJ,ra_aclOwner_read_object:QJ,ra_aclOwner_read_state:eY,ra_aclOwner_write_object:tY,ra_aclOwner_write_state:nY,ra_buttons:oY,ra_changedFrom:rY,ra_close:aY,ra_create_boolean_state:sY,ra_create_channel:iY,ra_create_device:lY,ra_create_number_state:cY,ra_create_state:dY,ra_create_string_state:uY,ra_daysShortText:pY,ra_dow_Fr:hY,ra_dow_Mo:fY,ra_dow_Sa:mY,ra_dow_Su:gY,ra_dow_Th:_Y,ra_dow_Tu:vY,ra_dow_We:yY,ra_expertMode:bY,ra_fileType_all:wY,ra_fileType_audio:SY,ra_fileType_code:xY,ra_fileType_images:CY,ra_fileType_txt:$Y,ra_fileType_video:kY,"ra_fileType_video,":"Video",ra_filter_customs:EY,ra_filter_customs_without:TY,ra_filter_func:OY,ra_filter_id:DY,ra_filter_name:AY,ra_filter_role:MY,ra_filter_room:NY,ra_filter_type:jY,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:zY,ra_lastChange:RY,ra_locally:IY,ra_month_Apr:LY,ra_month_Aug:FY,ra_month_Dec:PY,ra_month_Feb:BY,ra_month_Jan:HY,ra_month_Jul:UY,ra_month_Jun:WY,ra_month_Mai:VY,ra_month_Mar:GY,ra_month_Nov:qY,ra_month_Oct:XY,ra_month_Sep:JY,ra_months_Apr:YY,ra_months_Aug:KY,ra_months_Dec:ZY,ra_months_Feb:QY,ra_months_Jan:eK,ra_months_Jul:tK,ra_months_Jun:nK,ra_months_Mai:oK,ra_months_Mar:rK,ra_months_Nov:aK,ra_months_Oct:sK,ra_months_Sep:iK,ra_none:lK,ra_object_changed_by:cK,ra_object_changed_by_user:dK,ra_otherConfig:uK,ra_qualityCode:pK,ra_repeat:hK,ra_select_folder_hint:fK,ra_state_changed_by:mK,ra_state_changed_from:gK,ra_timestamp:_K,ra_tooltip_ack:vK,ra_tooltip_comment:yK,ra_tooltip_copyState:bK,ra_tooltip_customConfig:wK,ra_tooltip_deleteObject:SK,ra_tooltip_editObject:xK,ra_tooltip_editState:CK,ra_tooltip_from:$K,ra_tooltip_lc:kK,ra_tooltip_quality:EK,ra_tooltip_ts:TK,ra_tooltip_user:OK,ra_tooltip_value:DK,"ra_use seconds":"use seconds",ra_val:AK,"ra_via internet":"via internet",ra_warning_every_minute:MK,ra_warning_every_second:NK,sc_cron:jK,sc_date:zK,sc_dates:RK,sc_dow:IK,sc_dows:LK,sc_every:FK,sc_everyN_dates:PK,sc_everyN_dow:BK,sc_everyN_dows:HK,sc_everyN_hours:UK,sc_everyN_minutes:WK,sc_everyN_months:VK,sc_everyN_seconds:GK,sc_every_dates:qK,sc_every_dow:XK,sc_every_dows:JK,sc_every_hours:YK,sc_every_minutes:KK,sc_every_months:ZK,sc_every_seconds:QK,sc_from:eZ,sc_hours:tZ,sc_interval:nZ,sc_intervalBetween:oZ,sc_invalid_cron:rZ,sc_minutes:aZ,sc_months:sZ,sc_once:iZ,sc_period:lZ,sc_seconds:cZ,sc_simple:dZ,sc_specific:uZ,sc_specific_dates:pZ,sc_specific_dow:hZ,sc_specific_dows:fZ,sc_specific_hours:mZ,sc_specific_minutes:gZ,sc_specific_months:_Z,sc_specific_seconds:vZ,sc_time:yZ,sc_to:bZ,sc_wizard:wZ,sch_all:SZ,sch_astroDay:xZ,sch_astroNight:CZ,sch_astro_dawn:$Z,sch_astro_dusk:kZ,sch_astro_goldenHour:EZ,sch_astro_goldenHourEnd:TZ,sch_astro_nadir:OZ,sch_astro_nauticalDawn:DZ,sch_astro_nauticalDusk:AZ,sch_astro_night:MZ,sch_astro_nightEnd:NZ,sch_astro_solarNoon:jZ,sch_astro_sunrise:zZ,sch_astro_sunriseEnd:RZ,sch_astro_sunset:IZ,sch_astro_sunsetStart:LZ,sch_at:FZ,sch_desc_atTime:PZ,sch_desc_everyDay:BZ,sch_desc_everyHour:HZ,sch_desc_everyMinute:UZ,sch_desc_everyMonth:WZ,sch_desc_everyNDay:VZ,sch_desc_everyNHours:GZ,sch_desc_everyNMinutes:qZ,sch_desc_everyNMonths:XZ,sch_desc_everyNWeeks:JZ,sch_desc_everyNYears:YZ,sch_desc_everyWeek:KZ,sch_desc_everyYear:ZZ,sch_desc_intervalFromTo:QZ,sch_desc_never:eQ,sch_desc_onDate:tQ,sch_desc_onDates:nQ,sch_desc_onEveryDate:oQ,sch_desc_onMonth:rQ,sch_desc_onMonths:aQ,sch_desc_onWeekday:sQ,sch_desc_onWeekdays:iQ,sch_desc_onWeekends:lQ,sch_desc_onWorkdays:cQ,sch_desc_onceInPast:dQ,sch_desc_once_on:uQ,sch_desc_validFrom:pQ,sch_desc_validFromTo:hQ,sch_desc_validTo:fQ,sch_every:mQ,sch_exactTime:gQ,sch_from:_Q,sch_fromTo:vQ,sch_intervalTime:yQ,sch_invert:bQ,sch_no_one:wQ,sch_on:SQ,sch_period:xQ,sch_periodDaily:CQ,sch_periodDates:$Q,sch_periodDay:kQ,sch_periodEvery:EQ,sch_periodEveryDay:TQ,sch_periodEveryMonth:OQ,sch_periodEveryWeek:DQ,sch_periodEveryYear:AQ,sch_periodHours:MQ,sch_periodMinutes:NQ,sch_periodMonth:jQ,sch_periodMonthly:zQ,sch_periodOnce:RQ,sch_periodSpecificMonths:IQ,sch_periodWeek:LQ,sch_periodWeekdays:FQ,sch_periodWeekend:PQ,sch_periodWeekly:BQ,sch_periodWorkdays:HQ,sch_periodYear:UQ,sch_periodYearly:WQ,sch_specificTime:VQ,sch_time:GQ,sch_to:qQ,sch_valid:XQ,sch_validFrom:JQ,sch_validTo:YQ,sch_wholeDay:KQ,sch_yearEveryMonth:ZQ},eee="Anhängen",tee="Abbrechen",nee="Kategorien",oee="Geprüft",ree="Löschen",aee="Schließen",see="Kommerziell",iee="Konfigurieren",lee="Verbunden",cee="Kopiert",dee="Erstellen",uee="Ernte",pee="Entf",hee="Löschen",fee="Verwerfen",mee="Getrennt",gee="Fehler",_ee="Filter",vee="Freitag",yee="Breite",bee="Längengrad",wee="Meldung",See="Montag",xee="Name",Cee="Objekte",$ee="OK",kee="Produkt",Eee="Wiederholen",Tee="Ersetzen",Oee="Anfang",Dee="Samstag",Aee="Speichern",Mee="Ausgewählt",Nee="Zustände",jee="Sonntag",zee="Donnerstag",Ree="Zeitstempel",Iee="Dienstag",Lee="Aktualisieren",Fee="Gültig bis",Pee="Wert",Bee="Ausführung",Hee="Mittwoch",Uee="Breite",Wee="Ja",Vee="unterschiedlich",Gee="Jeder kann Objekt lesen",qee="Jeder kann Zustand lesen",Xee="Jeder kann ein Objekt schreiben",Jee="Jeder kann Zustand schreiben",Yee="Gruppe kann Objekt lesen",Kee="Gruppe kann Status lesen",Zee="Gruppe kann Objekt schreiben",Qee="Gruppe kann Status schreiben",ete="Besitzer kann Objekt lesen",tte="Besitzer kann Zustand lesen",nte="Besitzer kann Objekt schreiben",ote="Besitzer kann Zustand schreiben",rte="Tasten",ate="Geändert von",ste="Schließen",ite="Booleschen Zustand erstellen",lte="Kanal erstellen",cte="Gerät erstellen",dte="Nummern-Zustand erstellen",ute="Zustand erstellen",pte="String-Zustand erstellen",hte="T.",fte="Fr",mte="Mo",gte="Sa",_te="So",vte="Do",yte="Di",bte="Mi",wte="Expertenmodus",Ste="Alle Dateien",xte="Audio",Cte="Code/JSON",$te="Bilder",kte="Text",Ete="Video",Tte="Einstellungen",Ote="ohne",Dte="Funktion",Ate="ID",Mte="Name",Nte="Rolle",jte="Raum",zte="Typ",Rte="Ungültige Einstellungen",Ite="Letzte Änderung",Lte="örtlich",Fte="Apr",Pte="Aug",Bte="Dez",Hte="Feb",Ute="Jan",Wte="Jul",Vte="Jun",Gte="Mai",qte="Mär",Xte="Nov",Jte="Okt",Yte="Sep",Kte="Apr",Zte="Aug",Qte="Dez",ene="Feb",tne="Jan",nne="Jul",one="Jun",rne="Mai",ane="Mär",sne="Nov",ine="Okt",lne="Sep",cne="kein",dne="Objekt geändert von",une="Objekt zuletzt geändert um",pne="Einstellungen von anderen Adaptern %s",hne="Qualitätscode",fne="wiederholen",mne='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',gne="Zustand geändert durch",_ne="Objekt geändert von",vne="Zeitstempel",yne="Bestätigt",bne="Kommentar",wne="Statuswert kopieren",Sne="Benutzerdefinierte Einstellungen",xne="Objekt löschen",Cne="Objekt bearbeiten",$ne="Statuswert bearbeiten",kne="Von",Ene="Zuletzt geändert",Tne="Qualität",One="Zeitstempel",Dne="Benutzer",Ane="Wert",Mne="Wert",Nne="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",jne="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",zne="CRON",Rne="Datum",Ine="Tage",Lne="Tag",Fne="Wochentage",Pne="Jeden",Bne="alle N Tage",Hne="jeden x-ten Tag der Woche",Une="alle N Wochentage",Wne="alle N Stunden",Vne="alle N Minuten",Gne="alle N Monate",qne="alle N Sekunden",Xne="jeden Tag",Jne="jeden Tag der Woche",Yne="jeden Tag der Woche",Kne="jede Stunde",Zne="jede Minute",Qne="jeden Monat",eoe="jede Sekunde",toe="Von",noe="Stunden",ooe="Intervall",roe="Intervall zwischen",aoe="Ungültiger CRON",soe="Minuten",ioe="Monate",loe="Einmal",coe="Zeitraum",doe="Sekunden",uoe="Einfach",poe="Bestimmte Zeit",hoe="bestimmte Tage",foe="bestimmte(r) Tag(e) der Woche",moe="bestimmten Wochentag",goe="bestimmte Stunden",_oe="bestimmte Minuten",voe="bestimmte Monate",yoe="bestimmte Sekunden",boe="Zeit",woe="Bis",Soe="Wizard",xoe="alle",Coe="Astronomischer Tag",$oe="Astronomische Nacht",koe="Morgendämmerung",Eoe="Abenddämmerung",Toe="Goldene Stunde",Ooe="Goldene Stundenende",Doe="Nadir",Aoe="Nautische Morgendämmerung",Moe="Nautische Abenddämmerung",Noe="Nacht",joe="Nachtende",zoe="Sonnenmittag",Roe="Sonnenaufgang",Ioe="Sonnenaufgangende",Loe="Sonnenuntergang",Foe="Sonnenuntergangstart",Poe="am",Boe="um %s",Hoe="jeden Tag",Uoe="jede Stunde",Woe="jede Minute",Voe="jeden Monat",Goe="jeden %s Tag",qoe="alle %s Stunden",Xoe="alle %s Minuten",Joe="alle %s Monate",Yoe="alle %s Wochen",Koe="alle %s Jahre",Zoe="jede Woche",Qoe="jedes Jahr",ere="von %s bis %s",tre="noch nie",nre="am %s von %s",ore="am %s und %s von",rre="an jedem Datum von",are="%s",sre="%s und %s",ire="auf %s",lre="auf %s und %s",cre="an Wochenenden",dre="an Werktagen",ure="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",pre="auf %s",hre="von %s",fre="Ausführen von bis",mre="bis %s",gre="jeden",_re="Bestimmte Zeit",vre="von",yre="Von bis",bre="Zeitintervall",wre="umkehren",Sre="keiner",xre="am",Cre="Zeitraum",$re="Täglich",kre="Daten",Ere="Tag",Tre="Jeden",Ore="Jeden Tag",Dre="Jeden Monat",Are="Jede Woche",Mre="Jedes Jahr",Nre="Stunden",jre="Minuten",zre="Monat",Rre="Monatlich",Ire="Einmal",Lre="Bestimmte Monate",Fre="Woche",Pre="Wochentage",Bre="Wochenende",Hre="Wöchentlich",Ure="Arbeitstage",Wre="Jahr",Vre="Jährlich",Gre="Bestimmte Zeit",qre="Zeit",Xre="zu",Jre="Gültigkeit",Yre="von",Kre="bis",Zre="Ganzer Tag",Qre="jeden Monat",eae={"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_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 werden herausgefiltert","ra_All objects":"Alle Objekte",ra_Append:eee,"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:tee,"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:nee,"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:oee,ra_Clear:ree,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","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:see,ra_Configure:iee,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:lee,ra_Copied:cee,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:dee,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:uee,"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:pee,ra_Delete:hee,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:fee,ra_Disconnected:mee,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:gee,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:_ee,"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:vee,"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_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 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:yee,"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_Longitude:bee,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:wee,ra_Monday:See,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:xee,"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 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_Objects:Cee,ra_Ok:$ee,"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 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_Private certificate":"Privates Zertifikat",ra_Product:kee,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:Eee,ra_Replace:Tee,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:Oee,ra_Saturday:Dee,ra_Save:Aee,"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:Mee,"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_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:Nee,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:jee,"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:zee,ra_Timestamp:Ree,"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:Iee,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:Lee,"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:Fee,ra_Value:Pee,ra_Version:Bee,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:Hee,ra_Width:Uee,ra_Yes:Wee,"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___different__:Vee,ra_aclEveryone_read_object:Gee,ra_aclEveryone_read_state:qee,ra_aclEveryone_write_object:Xee,ra_aclEveryone_write_state:Jee,ra_aclGroup_read_object:Yee,ra_aclGroup_read_state:Kee,ra_aclGroup_write_object:Zee,ra_aclGroup_write_state:Qee,ra_aclOwner_read_object:ete,ra_aclOwner_read_state:tte,ra_aclOwner_write_object:nte,ra_aclOwner_write_state:ote,ra_buttons:rte,ra_changedFrom:ate,ra_close:ste,ra_create_boolean_state:ite,ra_create_channel:lte,ra_create_device:cte,ra_create_number_state:dte,ra_create_state:ute,ra_create_string_state:pte,ra_daysShortText:hte,ra_dow_Fr:fte,ra_dow_Mo:mte,ra_dow_Sa:gte,ra_dow_Su:_te,ra_dow_Th:vte,ra_dow_Tu:yte,ra_dow_We:bte,ra_expertMode:wte,ra_fileType_all:Ste,ra_fileType_audio:xte,ra_fileType_code:Cte,ra_fileType_images:$te,ra_fileType_txt:kte,ra_fileType_video:Ete,"ra_fileType_video,":"Video",ra_filter_customs:Tte,ra_filter_customs_without:Ote,ra_filter_func:Dte,ra_filter_id:Ate,ra_filter_name:Mte,ra_filter_role:Nte,ra_filter_room:jte,ra_filter_type:zte,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:Rte,ra_lastChange:Ite,ra_locally:Lte,ra_month_Apr:Fte,ra_month_Aug:Pte,ra_month_Dec:Bte,ra_month_Feb:Hte,ra_month_Jan:Ute,ra_month_Jul:Wte,ra_month_Jun:Vte,ra_month_Mai:Gte,ra_month_Mar:qte,ra_month_Nov:Xte,ra_month_Oct:Jte,ra_month_Sep:Yte,ra_months_Apr:Kte,ra_months_Aug:Zte,ra_months_Dec:Qte,ra_months_Feb:ene,ra_months_Jan:tne,ra_months_Jul:nne,ra_months_Jun:one,ra_months_Mai:rne,ra_months_Mar:ane,ra_months_Nov:sne,ra_months_Oct:ine,ra_months_Sep:lne,ra_none:cne,ra_object_changed_by:dne,ra_object_changed_by_user:une,ra_otherConfig:pne,ra_qualityCode:hne,ra_repeat:fne,ra_select_folder_hint:mne,ra_state_changed_by:gne,ra_state_changed_from:_ne,ra_timestamp:vne,ra_tooltip_ack:yne,ra_tooltip_comment:bne,ra_tooltip_copyState:wne,ra_tooltip_customConfig:Sne,ra_tooltip_deleteObject:xne,ra_tooltip_editObject:Cne,ra_tooltip_editState:$ne,ra_tooltip_from:kne,ra_tooltip_lc:Ene,ra_tooltip_quality:Tne,ra_tooltip_ts:One,ra_tooltip_user:Dne,ra_tooltip_value:Ane,"ra_use seconds":"Sekunden benutzen",ra_val:Mne,"ra_via internet":"übers Internet",ra_warning_every_minute:Nne,ra_warning_every_second:jne,sc_cron:zne,sc_date:Rne,sc_dates:Ine,sc_dow:Lne,sc_dows:Fne,sc_every:Pne,sc_everyN_dates:Bne,sc_everyN_dow:Hne,sc_everyN_dows:Une,sc_everyN_hours:Wne,sc_everyN_minutes:Vne,sc_everyN_months:Gne,sc_everyN_seconds:qne,sc_every_dates:Xne,sc_every_dow:Jne,sc_every_dows:Yne,sc_every_hours:Kne,sc_every_minutes:Zne,sc_every_months:Qne,sc_every_seconds:eoe,sc_from:toe,sc_hours:noe,sc_interval:ooe,sc_intervalBetween:roe,sc_invalid_cron:aoe,sc_minutes:soe,sc_months:ioe,sc_once:loe,sc_period:coe,sc_seconds:doe,sc_simple:uoe,sc_specific:poe,sc_specific_dates:hoe,sc_specific_dow:foe,sc_specific_dows:moe,sc_specific_hours:goe,sc_specific_minutes:_oe,sc_specific_months:voe,sc_specific_seconds:yoe,sc_time:boe,sc_to:woe,sc_wizard:Soe,sch_all:xoe,sch_astroDay:Coe,sch_astroNight:$oe,sch_astro_dawn:koe,sch_astro_dusk:Eoe,sch_astro_goldenHour:Toe,sch_astro_goldenHourEnd:Ooe,sch_astro_nadir:Doe,sch_astro_nauticalDawn:Aoe,sch_astro_nauticalDusk:Moe,sch_astro_night:Noe,sch_astro_nightEnd:joe,sch_astro_solarNoon:zoe,sch_astro_sunrise:Roe,sch_astro_sunriseEnd:Ioe,sch_astro_sunset:Loe,sch_astro_sunsetStart:Foe,sch_at:Poe,sch_desc_atTime:Boe,sch_desc_everyDay:Hoe,sch_desc_everyHour:Uoe,sch_desc_everyMinute:Woe,sch_desc_everyMonth:Voe,sch_desc_everyNDay:Goe,sch_desc_everyNHours:qoe,sch_desc_everyNMinutes:Xoe,sch_desc_everyNMonths:Joe,sch_desc_everyNWeeks:Yoe,sch_desc_everyNYears:Koe,sch_desc_everyWeek:Zoe,sch_desc_everyYear:Qoe,sch_desc_intervalFromTo:ere,sch_desc_never:tre,sch_desc_onDate:nre,sch_desc_onDates:ore,sch_desc_onEveryDate:rre,sch_desc_onMonth:are,sch_desc_onMonths:sre,sch_desc_onWeekday:ire,sch_desc_onWeekdays:lre,sch_desc_onWeekends:cre,sch_desc_onWorkdays:dre,sch_desc_onceInPast:ure,sch_desc_once_on:pre,sch_desc_validFrom:hre,sch_desc_validFromTo:fre,sch_desc_validTo:mre,sch_every:gre,sch_exactTime:_re,sch_from:vre,sch_fromTo:yre,sch_intervalTime:bre,sch_invert:wre,sch_no_one:Sre,sch_on:xre,sch_period:Cre,sch_periodDaily:$re,sch_periodDates:kre,sch_periodDay:Ere,sch_periodEvery:Tre,sch_periodEveryDay:Ore,sch_periodEveryMonth:Dre,sch_periodEveryWeek:Are,sch_periodEveryYear:Mre,sch_periodHours:Nre,sch_periodMinutes:jre,sch_periodMonth:zre,sch_periodMonthly:Rre,sch_periodOnce:Ire,sch_periodSpecificMonths:Lre,sch_periodWeek:Fre,sch_periodWeekdays:Pre,sch_periodWeekend:Bre,sch_periodWeekly:Hre,sch_periodWorkdays:Ure,sch_periodYear:Wre,sch_periodYearly:Vre,sch_specificTime:Gre,sch_time:qre,sch_to:Xre,sch_valid:Jre,sch_validFrom:Yre,sch_validTo:Kre,sch_wholeDay:Zre,sch_yearEveryMonth:Qre},tae="Добавить",nae="Отмена",oae="Категории",rae="Проверено",aae="Удалить",sae="Закрыть",iae="Коммерческая",lae="Настроить",cae="Соединение установлено",dae="скопировано",uae="Создать",pae="Обрезать",hae="Delete",fae="Удалить",mae="Отказаться",gae="Отключено",_ae="Ошибка",vae="Фильтр",yae="Пятница",bae="Широта",wae="Долгота",Sae="Сообщение",xae="Понедельник",Cae="Имя",$ae="Объекты",kae="Ok",Eae="Продукт",Tae="Повторение",Oae="Заменять",Dae="Начало",Aae="Суббота",Mae="Сохранить",Nae="выбранный",jae="Состояния",zae="Воскресенье",Rae="Четверг",Iae="Времени",Lae="Вторник",Fae="Обновить",Pae="Годен до",Bae="Значение",Hae="Версия",Uae="Среда",Wae="Ширина",Vae="Да",Gae="разное",qae="Каждый может читать объект",Xae="Каждый может читать состояние",Jae="Каждый может написать объект",Yae="Каждый может написать состояние",Kae="Группа может читать объект",Zae="Группа может читать состояние",Qae="Группа может писать объект",ese="Группа может записывать состояние",tse="Владелец может читать объект",nse="Владелец может читать состояние",ose="Владелец может писать объект",rse="Владелец может писать состояние",ase="Кнопки",sse="Изменено с",ise="Закрыть",lse="Создать логическое состояние",cse="Создать канал",dse="Создать устройство",use="Создать состояние номера",pse="Создать состояние",hse="Создать состояние строки",fse="д.",mse="Пт",gse="Пн",_se="Сб",vse="Вс",yse="Чт",bse="Вт",wse="Ср",Sse="Экспертный режим",xse="Все файлы",Cse="Аудио",$se="Код/JSON",kse="Картинки",Ese="Текст",Tse="видео",Ose="настройки",Dse="без",Ase="функция",Mse="ID",Nse="Имя",jse="роль",zse="комната",Rse="Тип",Ise="Неверные настройки",Lse="Последнее изменение",Fse="локально",Pse="Апр",Bse="Авг",Hse="Дек",Use="Фев",Wse="Янв",Vse="Июл",Gse="Июн",qse="Май",Xse="Мрт",Jse="Ноя",Yse="Окт",Kse="Сен",Zse="Апр",Qse="Авг",eie="Дек",tie="Фев",nie="Янв",oie="Июнь",rie="Июль",aie="Май",sie="Март",iie="Ноя",lie="Окт",cie="Сен",die="ничего",uie="Объект изменен",pie="Последний раз объект изменен в",hie="Настройки из другого адаптера %s",fie="Код качества",mie="повтор",gie="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",_ie="Состояние изменено",vie="Объект изменен с",yie="Отметка времени",bie="Подтверждено",wie="Комментарий",Sie="Скопируйте значение состояния",xie="Пользовательские настройки",Cie="Удалить объект",$ie="Редактировать объект",kie="Изменить значение состояния",Eie="От",Tie="Последнее изменение",Oie="Качество",Die="Отметка времени",Aie="пользователь",Mie="Значение",Nie="Значение",jie="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",zie="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",Rie="CRON",Iie="Дата",Lie="Даты",Fie="День",Pie="День недели",Bie="каждый(ую/ые)",Hie="каждый N день",Uie="каждый N-й день недели",Wie="каждый N день недели",Vie="каждые N часов",Gie="каждые N минут",qie="каждые N месяцев",Xie="каждые N секунд",Jie="каждый день",Yie="Каждый день недели",Kie="каждый день недели",Zie="каждый час",Qie="каждую минуту",ele="каждый месяц",tle="каждую секунду",nle="От",ole="часы",rle="Интервал",ale="Интервал между",sle="Неверный CRON",ile="минуты",lle="Месяцы",cle="один раз",dle="Период",ule="секунды",ple="Просто",hle="Конкретное время",fle="конкретные даты",mle="конкретный день(а) недели",gle="конкретный день недели",_le="конкретные часы",vle="конкретные минуты",yle="конкретные месяцы",ble="конкретные секунды",wle="Время",Sle="До",xle="Форма",Cle="все",$le="днём",kle="ночью",Ele="Рассвет",Tle="Сумерки",Ole="Золотой час",Dle="Конец золотого часа",Ale="Надир",Mle="Морской рассвет",Nle="Морские сумерки",jle="Ночь",zle="Конец ночи",Rle="Солнечный полдень",Ile="Восход",Lle="Восход солнца",Fle="Заход солнца",Ple="Начало заката",Ble="дата",Hle="в %s",Ule="каждый день",Wle="каждый час",Vle="каждую минуту",Gle="каждый месяц",qle="каждый %s день",Xle="каждый %s часов",Jle="каждые %s минут",Yle="каждые %s месяцев",Kle="каждые %s недель",Zle="каждые %s лет",Qle="каждую неделю",ece="каждый год",tce="от %s до %s",nce="никогда",oce="%s %s",rce="%s и %s",ace="в каждый день",sce="%s",ice="%s и %s",lce="%s",cce="%s и %s",dce="на выходных",uce="в рабочие дни",pce="не будет больше выполняться, потому что начало в прошлом",hce="%s",fce="%s",mce="Выполнить с",gce="%s",_ce="каждый",vce="Конкретное время",yce="от",bce="От и до",wce="Интервал времени",Sce="инвертировать",xce="никакой",Cce="на",$ce="период",kce="Ежедневно",Ece="Даты",Tce="День",Oce="каждый",Dce="Каждый день",Ace="Каждый месяц",Mce="Каждую неделю",Nce="Каждый год",jce="часов",zce="минут",Rce="месяц",Ice="ежемесячно",Lce="однажды",Fce="Конкретные месяцы",Pce="Неделю",Bce="Будние дни",Hce="выходные",Uce="еженедельно",Wce="Рабочие дни",Vce="Год",Gce="каждый год",qce="Конкретное время",Xce="Время",Jce="в",Yce="действительный",Kce="от",Zce="в",Qce="Весь день",ede="каждый месяц",tde={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:tae,"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:nae,"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:oae,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:rae,ra_Clear:aae,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:sae,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:iae,ra_Configure:lae,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:cae,ra_Copied:dae,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:uae,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:pae,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:hae,ra_Delete:fae,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:mae,ra_Disconnected:gae,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:_ae,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:vae,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:yae,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:bae,"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_Longitude:wae,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:Sae,ra_Monday:xae,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:Cae,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:$ae,ra_Ok:kae,"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 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_Private certificate":"Частный сертификат",ra_Product:Eae,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:Tae,ra_Replace:Oae,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:Dae,ra_Saturday:Aae,ra_Save:Mae,"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:Nae,"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_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:jae,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:zae,"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:Rae,ra_Timestamp:Iae,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:Lae,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:Fae,"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:Pae,ra_Value:Bae,ra_Version:Hae,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:Uae,ra_Width:Wae,ra_Yes:Vae,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:Gae,ra_aclEveryone_read_object:qae,ra_aclEveryone_read_state:Xae,ra_aclEveryone_write_object:Jae,ra_aclEveryone_write_state:Yae,ra_aclGroup_read_object:Kae,ra_aclGroup_read_state:Zae,ra_aclGroup_write_object:Qae,ra_aclGroup_write_state:ese,ra_aclOwner_read_object:tse,ra_aclOwner_read_state:nse,ra_aclOwner_write_object:ose,ra_aclOwner_write_state:rse,ra_buttons:ase,ra_changedFrom:sse,ra_close:ise,ra_create_boolean_state:lse,ra_create_channel:cse,ra_create_device:dse,ra_create_number_state:use,ra_create_state:pse,ra_create_string_state:hse,ra_daysShortText:fse,ra_dow_Fr:mse,ra_dow_Mo:gse,ra_dow_Sa:_se,ra_dow_Su:vse,ra_dow_Th:yse,ra_dow_Tu:bse,ra_dow_We:wse,ra_expertMode:Sse,ra_fileType_all:xse,ra_fileType_audio:Cse,ra_fileType_code:$se,ra_fileType_images:kse,ra_fileType_txt:Ese,ra_fileType_video:Tse,"ra_fileType_video,":"видео",ra_filter_customs:Ose,ra_filter_customs_without:Dse,ra_filter_func:Ase,ra_filter_id:Mse,ra_filter_name:Nse,ra_filter_role:jse,ra_filter_room:zse,ra_filter_type:Rse,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:Ise,ra_lastChange:Lse,ra_locally:Fse,ra_month_Apr:Pse,ra_month_Aug:Bse,ra_month_Dec:Hse,ra_month_Feb:Use,ra_month_Jan:Wse,ra_month_Jul:Vse,ra_month_Jun:Gse,ra_month_Mai:qse,ra_month_Mar:Xse,ra_month_Nov:Jse,ra_month_Oct:Yse,ra_month_Sep:Kse,ra_months_Apr:Zse,ra_months_Aug:Qse,ra_months_Dec:eie,ra_months_Feb:tie,ra_months_Jan:nie,ra_months_Jul:oie,ra_months_Jun:rie,ra_months_Mai:aie,ra_months_Mar:sie,ra_months_Nov:iie,ra_months_Oct:lie,ra_months_Sep:cie,ra_none:die,ra_object_changed_by:uie,ra_object_changed_by_user:pie,ra_otherConfig:hie,ra_qualityCode:fie,ra_repeat:mie,ra_select_folder_hint:gie,ra_state_changed_by:_ie,ra_state_changed_from:vie,ra_timestamp:yie,ra_tooltip_ack:bie,ra_tooltip_comment:wie,ra_tooltip_copyState:Sie,ra_tooltip_customConfig:xie,ra_tooltip_deleteObject:Cie,ra_tooltip_editObject:$ie,ra_tooltip_editState:kie,ra_tooltip_from:Eie,ra_tooltip_lc:Tie,ra_tooltip_quality:Oie,ra_tooltip_ts:Die,ra_tooltip_user:Aie,ra_tooltip_value:Mie,"ra_use seconds":"секунды",ra_val:Nie,"ra_via internet":"через интернет",ra_warning_every_minute:jie,ra_warning_every_second:zie,sc_cron:Rie,sc_date:Iie,sc_dates:Lie,sc_dow:Fie,sc_dows:Pie,sc_every:Bie,sc_everyN_dates:Hie,sc_everyN_dow:Uie,sc_everyN_dows:Wie,sc_everyN_hours:Vie,sc_everyN_minutes:Gie,sc_everyN_months:qie,sc_everyN_seconds:Xie,sc_every_dates:Jie,sc_every_dow:Yie,sc_every_dows:Kie,sc_every_hours:Zie,sc_every_minutes:Qie,sc_every_months:ele,sc_every_seconds:tle,sc_from:nle,sc_hours:ole,sc_interval:rle,sc_intervalBetween:ale,sc_invalid_cron:sle,sc_minutes:ile,sc_months:lle,sc_once:cle,sc_period:dle,sc_seconds:ule,sc_simple:ple,sc_specific:hle,sc_specific_dates:fle,sc_specific_dow:mle,sc_specific_dows:gle,sc_specific_hours:_le,sc_specific_minutes:vle,sc_specific_months:yle,sc_specific_seconds:ble,sc_time:wle,sc_to:Sle,sc_wizard:xle,sch_all:Cle,sch_astroDay:$le,sch_astroNight:kle,sch_astro_dawn:Ele,sch_astro_dusk:Tle,sch_astro_goldenHour:Ole,sch_astro_goldenHourEnd:Dle,sch_astro_nadir:Ale,sch_astro_nauticalDawn:Mle,sch_astro_nauticalDusk:Nle,sch_astro_night:jle,sch_astro_nightEnd:zle,sch_astro_solarNoon:Rle,sch_astro_sunrise:Ile,sch_astro_sunriseEnd:Lle,sch_astro_sunset:Fle,sch_astro_sunsetStart:Ple,sch_at:Ble,sch_desc_atTime:Hle,sch_desc_everyDay:Ule,sch_desc_everyHour:Wle,sch_desc_everyMinute:Vle,sch_desc_everyMonth:Gle,sch_desc_everyNDay:qle,sch_desc_everyNHours:Xle,sch_desc_everyNMinutes:Jle,sch_desc_everyNMonths:Yle,sch_desc_everyNWeeks:Kle,sch_desc_everyNYears:Zle,sch_desc_everyWeek:Qle,sch_desc_everyYear:ece,sch_desc_intervalFromTo:tce,sch_desc_never:nce,sch_desc_onDate:oce,sch_desc_onDates:rce,sch_desc_onEveryDate:ace,sch_desc_onMonth:sce,sch_desc_onMonths:ice,sch_desc_onWeekday:lce,sch_desc_onWeekdays:cce,sch_desc_onWeekends:dce,sch_desc_onWorkdays:uce,sch_desc_onceInPast:pce,sch_desc_once_on:hce,sch_desc_validFrom:fce,sch_desc_validFromTo:mce,sch_desc_validTo:gce,sch_every:_ce,sch_exactTime:vce,sch_from:yce,sch_fromTo:bce,sch_intervalTime:wce,sch_invert:Sce,sch_no_one:xce,sch_on:Cce,sch_period:$ce,sch_periodDaily:kce,sch_periodDates:Ece,sch_periodDay:Tce,sch_periodEvery:Oce,sch_periodEveryDay:Dce,sch_periodEveryMonth:Ace,sch_periodEveryWeek:Mce,sch_periodEveryYear:Nce,sch_periodHours:jce,sch_periodMinutes:zce,sch_periodMonth:Rce,sch_periodMonthly:Ice,sch_periodOnce:Lce,sch_periodSpecificMonths:Fce,sch_periodWeek:Pce,sch_periodWeekdays:Bce,sch_periodWeekend:Hce,sch_periodWeekly:Uce,sch_periodWorkdays:Wce,sch_periodYear:Vce,sch_periodYearly:Gce,sch_specificTime:qce,sch_time:Xce,sch_to:Jce,sch_valid:Yce,sch_validFrom:Kce,sch_validTo:Zce,sch_wholeDay:Qce,sch_yearEveryMonth:ede},nde="Acrescentar",ode="Cancelar",rde="Categorias",ade="Verificado",sde="Excluir",ide="Perto",lde="Comercial",cde="Configurar",dde="Conectado",ude="Copiado",pde="Crio",hde="Colheita",fde="Delete",mde="Excluir",gde="Descartar",_de="Desconectado",vde="Erro",yde="Filtro",bde="Sexta-feira",wde="Latitude",Sde="Longitude",xde="mensagem",Cde="Segunda-feira",$de="Nome",kde="Objetos",Ede="Está bem",Tde="produtos",Ode="Repita",Dde="Substituir",Ade="Raiz",Mde="Sábado",Nde="Salve ",jde="Selecionado",zde="Estados",Rde="Domingo",Ide="Quinta-feira",Lde="Timestamp",Fde="Terça-feira",Pde="Atualizar",Bde="Válida até",Hde="Valor",Ude="Versão",Wde="Quarta-feira",Vde="Largura",Gde="Sim",qde="diferente",Xde="Todos podem ler objetos",Jde="Todos podem ler o estado",Yde="Todos podem escrever objetos",Kde="Todos podem escrever o estado",Zde="O grupo pode ler o objeto",Qde="O grupo pode ler o estado",eue="O grupo pode escrever o objeto",tue="O grupo pode escrever o estado",nue="O proprietário pode ler o objeto",oue="O proprietário pode ler o estado",rue="O proprietário pode escrever o objeto",aue="O proprietário pode escrever o estado",sue="Botões",iue="Mudou de",lue="fechar",cue="Criar estado booleano",due="Criar canal",uue="Criar dispositivo",pue="Criar estado numérico",hue="Criar estado",fue="Criar estado de string",mue="d.",gue="Fr",_ue="Mo",vue="Sa",yue="Su",bue="º",wue="Tu",Sue="Nós",xue="Modo especialista",Cue="Todos os arquivos",$ue="áudio",kue="Código/JSON",Eue="Imagens",Tue="Texto",Oue="Vídeo",Due="Configurações",Aue="sem",Mue="Função",Nue="ID",jue="Nome",zue="Papel (Função)",Rue="Quarto",Iue="Tipo",Lue="Configurações inválidas",Fue="Última mudança",Pue="localmente",Bue="abril",Hue="agosto",Uue="dezembro",Wue="fevereiro",Vue="janeiro",Gue="julho",que="junho",Xue="Mai",Jue="março",Yue="novembro",Kue="outubro",Zue="setembro",Que="abril",epe="agosto",tpe="dezembro",npe="fevereiro",ope="janeiro",rpe="julho",ape="junho",spe="Mai",ipe="março",lpe="novembro",cpe="outubro",dpe="setembro",upe="Nenhum",ppe="Objeto alterado por",hpe="Objeto alterado pela última vez em",fpe="Configurações de outro adaptador %s",mpe="Código de qualidade",gpe="repetir",_pe='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',vpe="Estado alterado por",ype="Objeto alterado de",bpe="Timestamp",wpe="Confirmado",Spe="Comente",xpe="Copie o valor do estado",Cpe="Opções customizadas",$pe="Excluir objeto",kpe="Editar objeto",Epe="Edite o valor do estado",Tpe="De",Ope="Última alteração",Dpe="Qualidade",Ape="Timestamp",Mpe="Usuário",Npe="Valor",jpe="Valor",zpe="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",Rpe="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",Ipe="CRON",Lpe="Data",Fpe="Dias",Ppe="Dia",Bpe="Dia da semana",Hpe="todos",Upe="a cada N dias",Wpe="todo enésimo dia da semana",Vpe="todos os N dias da semana",Gpe="a cada N horas",qpe="a cada N minutos",Xpe="a cada N meses",Jpe="a cada N segundos",Ype="todo dia",Kpe="todos os dias da semana",Zpe="todos os dias da semana",Qpe="toda hora",ehe="todo minuto",the="todo mês",nhe="todo segundo",ohe="de",rhe="horas",ahe="intervalo",she="intervalo entre",ihe="CRON inválido",lhe="minutos",che="meses",dhe="uma vez",uhe="período",phe="segundos",hhe="simples",fhe="tempo específico",mhe="datas específicas",ghe="dia(s) específico(s) da semana",_he="dia específico de semanas",vhe="horas específicas",yhe="minutos específicos",bhe="meses específicos",whe="segundos específicos",She="tempo",xhe="para",Che="assistente",$he="tudo",khe="dia astral",Ehe="noite astral",The="amanhecer",Ohe="anoitecer",Dhe="hora dourada",Ahe="Fim da hora dourada",Mhe="nadir",Nhe="Amanhecer náutico",jhe="Anoitecer náutico",zhe="noite",Rhe="fim da noite",Ihe="meio-dia solar",Lhe="nascer do sol",Fhe="fim do nascer do sol",Phe="pôr do sol",Bhe="início do pôr do sol",Hhe="às",Uhe="em %s",Whe="todo dia",Vhe="toda hora",Ghe="todo minuto",qhe="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",efe="toda semana",tfe="todo ano",nfe="de %s para %s",ofe="nunca",rfe="em %s de %s",afe="em %s e %s de",sfe="em toda data de",ife="%s",lfe="%s e %s",cfe="em %s",dfe="em %s e %s",ufe="nos fins de semana",pfe="em dias úteis",hfe="não será mais executado, porque o começo está no passado",ffe="em %s",mfe="de %s",gfe="Executar de até",_fe="até %s",vfe="cada",yfe="tempo específico",bfe="de",wfe="de a´t",Sfe="tempo de intervalo",xfe="invertido",Cfe="nenhum",$fe="em",kfe="período",Efe="diariamente",Tfe="datas",Ofe="dia",Dfe="todos",Afe="todo dia",Mfe="todo mês",Nfe="toda semana",jfe="todo ano",zfe="horas",Rfe="minutos",Ife="mês",Lfe="por mês",Ffe="uma vez",Pfe="meses específicos",Bfe="semana",Hfe="dias úteis",Ufe="final de semana",Wfe="semanal",Vfe="dias úteis",Gfe="ano",qfe="anual",Xfe="tempo específico",Jfe="tempo",Yfe="para",Kfe="válido",Zfe="de",Qfe="para",eme="dia inteiro",tme="todo mês",nme={"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_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:nde,"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:ode,"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:rde,"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:ade,ra_Clear:sde,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:ide,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:lde,ra_Configure:cde,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:dde,ra_Copied:ude,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:pde,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:hde,"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:fde,ra_Delete:mde,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:gde,ra_Disconnected:_de,"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_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 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_Error:vde,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:yde,"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:bde,"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_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 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:wde,"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_Longitude:Sde,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:xde,ra_Monday:Cde,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:$de,"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 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_Objects:kde,ra_Ok:Ede,"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 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_Private certificate":"certificado privado",ra_Product:Tde,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:Ode,ra_Replace:Dde,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:Ade,ra_Saturday:Mde,ra_Save:Nde,"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:jde,"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_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:zde,"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:Ide,ra_Timestamp:Lde,"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:Fde,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:Pde,"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:Bde,ra_Value:Hde,ra_Version:Ude,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:Wde,ra_Width:Vde,ra_Yes:Gde,"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___different__:qde,ra_aclEveryone_read_object:Xde,ra_aclEveryone_read_state:Jde,ra_aclEveryone_write_object:Yde,ra_aclEveryone_write_state:Kde,ra_aclGroup_read_object:Zde,ra_aclGroup_read_state:Qde,ra_aclGroup_write_object:eue,ra_aclGroup_write_state:tue,ra_aclOwner_read_object:nue,ra_aclOwner_read_state:oue,ra_aclOwner_write_object:rue,ra_aclOwner_write_state:aue,ra_buttons:sue,ra_changedFrom:iue,ra_close:lue,ra_create_boolean_state:cue,ra_create_channel:due,ra_create_device:uue,ra_create_number_state:pue,ra_create_state:hue,ra_create_string_state:fue,ra_daysShortText:mue,ra_dow_Fr:gue,ra_dow_Mo:_ue,ra_dow_Sa:vue,ra_dow_Su:yue,ra_dow_Th:bue,ra_dow_Tu:wue,ra_dow_We:Sue,ra_expertMode:xue,ra_fileType_all:Cue,ra_fileType_audio:$ue,ra_fileType_code:kue,ra_fileType_images:Eue,ra_fileType_txt:Tue,ra_fileType_video:Oue,"ra_fileType_video,":"Vídeo",ra_filter_customs:Due,ra_filter_customs_without:Aue,ra_filter_func:Mue,ra_filter_id:Nue,ra_filter_name:jue,ra_filter_role:zue,ra_filter_room:Rue,ra_filter_type:Iue,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:Lue,ra_lastChange:Fue,ra_locally:Pue,ra_month_Apr:Bue,ra_month_Aug:Hue,ra_month_Dec:Uue,ra_month_Feb:Wue,ra_month_Jan:Vue,ra_month_Jul:Gue,ra_month_Jun:que,ra_month_Mai:Xue,ra_month_Mar:Jue,ra_month_Nov:Yue,ra_month_Oct:Kue,ra_month_Sep:Zue,ra_months_Apr:Que,ra_months_Aug:epe,ra_months_Dec:tpe,ra_months_Feb:npe,ra_months_Jan:ope,ra_months_Jul:rpe,ra_months_Jun:ape,ra_months_Mai:spe,ra_months_Mar:ipe,ra_months_Nov:lpe,ra_months_Oct:cpe,ra_months_Sep:dpe,ra_none:upe,ra_object_changed_by:ppe,ra_object_changed_by_user:hpe,ra_otherConfig:fpe,ra_qualityCode:mpe,ra_repeat:gpe,ra_select_folder_hint:_pe,ra_state_changed_by:vpe,ra_state_changed_from:ype,ra_timestamp:bpe,ra_tooltip_ack:wpe,ra_tooltip_comment:Spe,ra_tooltip_copyState:xpe,ra_tooltip_customConfig:Cpe,ra_tooltip_deleteObject:$pe,ra_tooltip_editObject:kpe,ra_tooltip_editState:Epe,ra_tooltip_from:Tpe,ra_tooltip_lc:Ope,ra_tooltip_quality:Dpe,ra_tooltip_ts:Ape,ra_tooltip_user:Mpe,ra_tooltip_value:Npe,"ra_use seconds":"use segundos",ra_val:jpe,"ra_via internet":"via internet",ra_warning_every_minute:zpe,ra_warning_every_second:Rpe,sc_cron:Ipe,sc_date:Lpe,sc_dates:Fpe,sc_dow:Ppe,sc_dows:Bpe,sc_every:Hpe,sc_everyN_dates:Upe,sc_everyN_dow:Wpe,sc_everyN_dows:Vpe,sc_everyN_hours:Gpe,sc_everyN_minutes:qpe,sc_everyN_months:Xpe,sc_everyN_seconds:Jpe,sc_every_dates:Ype,sc_every_dow:Kpe,sc_every_dows:Zpe,sc_every_hours:Qpe,sc_every_minutes:ehe,sc_every_months:the,sc_every_seconds:nhe,sc_from:ohe,sc_hours:rhe,sc_interval:ahe,sc_intervalBetween:she,sc_invalid_cron:ihe,sc_minutes:lhe,sc_months:che,sc_once:dhe,sc_period:uhe,sc_seconds:phe,sc_simple:hhe,sc_specific:fhe,sc_specific_dates:mhe,sc_specific_dow:ghe,sc_specific_dows:_he,sc_specific_hours:vhe,sc_specific_minutes:yhe,sc_specific_months:bhe,sc_specific_seconds:whe,sc_time:She,sc_to:xhe,sc_wizard:Che,sch_all:$he,sch_astroDay:khe,sch_astroNight:Ehe,sch_astro_dawn:The,sch_astro_dusk:Ohe,sch_astro_goldenHour:Dhe,sch_astro_goldenHourEnd:Ahe,sch_astro_nadir:Mhe,sch_astro_nauticalDawn:Nhe,sch_astro_nauticalDusk:jhe,sch_astro_night:zhe,sch_astro_nightEnd:Rhe,sch_astro_solarNoon:Ihe,sch_astro_sunrise:Lhe,sch_astro_sunriseEnd:Fhe,sch_astro_sunset:Phe,sch_astro_sunsetStart:Bhe,sch_at:Hhe,sch_desc_atTime:Uhe,sch_desc_everyDay:Whe,sch_desc_everyHour:Vhe,sch_desc_everyMinute:Ghe,sch_desc_everyMonth:qhe,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:efe,sch_desc_everyYear:tfe,sch_desc_intervalFromTo:nfe,sch_desc_never:ofe,sch_desc_onDate:rfe,sch_desc_onDates:afe,sch_desc_onEveryDate:sfe,sch_desc_onMonth:ife,sch_desc_onMonths:lfe,sch_desc_onWeekday:cfe,sch_desc_onWeekdays:dfe,sch_desc_onWeekends:ufe,sch_desc_onWorkdays:pfe,sch_desc_onceInPast:hfe,sch_desc_once_on:ffe,sch_desc_validFrom:mfe,sch_desc_validFromTo:gfe,sch_desc_validTo:_fe,sch_every:vfe,sch_exactTime:yfe,sch_from:bfe,sch_fromTo:wfe,sch_intervalTime:Sfe,sch_invert:xfe,sch_no_one:Cfe,sch_on:$fe,sch_period:kfe,sch_periodDaily:Efe,sch_periodDates:Tfe,sch_periodDay:Ofe,sch_periodEvery:Dfe,sch_periodEveryDay:Afe,sch_periodEveryMonth:Mfe,sch_periodEveryWeek:Nfe,sch_periodEveryYear:jfe,sch_periodHours:zfe,sch_periodMinutes:Rfe,sch_periodMonth:Ife,sch_periodMonthly:Lfe,sch_periodOnce:Ffe,sch_periodSpecificMonths:Pfe,sch_periodWeek:Bfe,sch_periodWeekdays:Hfe,sch_periodWeekend:Ufe,sch_periodWeekly:Wfe,sch_periodWorkdays:Vfe,sch_periodYear:Gfe,sch_periodYearly:qfe,sch_specificTime:Xfe,sch_time:Jfe,sch_to:Yfe,sch_valid:Kfe,sch_validFrom:Zfe,sch_validTo:Qfe,sch_wholeDay:eme,sch_yearEveryMonth:tme},ome="toevoegen",rme="Annuleer",ame="Categorieën",sme="Gecontroleerd",ime="Verwijderen",lme="Dichtbij",cme="Reclame",dme="Configureren",ume="Verbonden",pme="Gekopieerd",hme="Creëer",fme="Bijsnijden",mme="Delete",gme="Verwijderen",_me="Weggooien",vme="Verbinding verbroken",yme="Fout",bme="Filter",wme="Vrijdag",Sme="Breedtegraad",xme="Lengtegraad",Cme="Bericht",$me="Maandag",kme="Naam",Eme="Voorwerpen",Tme="OK",Ome="Product",Dme="Herhaling",Ame="Vervangen",Mme="Wortel",Nme="Zaterdag",jme="Sparen",zme="Geselecteerd",Rme="Staten",Ime="Zondag",Lme="Donderdag",Fme="Tijdstempel",Pme="Dinsdag",Bme="Bijwerken",Hme="Geldig tot",Ume="Waarde",Wme="Versie",Vme="Woensdag",Gme="Breedte",qme="Ja",Xme="verschillend",Jme="Iedereen kan object lezen",Yme="Iedereen kan staat lezen",Kme="Iedereen kan object schrijven",Zme="Iedereen kan staat schrijven",Qme="Groep kan object lezen",ege="Groep kan status lezen",tge="Groep kan object schrijven",nge="Groep kan staat schrijven",oge="Eigenaar kan object lezen",rge="Eigenaar kan staat lezen",age="Eigenaar kan object schrijven",sge="Eigenaar kan staat schrijven",ige="Toetsen",lge="Veranderd van",cge="dichtbij",dge="Creëer een Booleaanse status",uge="Kanaal maken",pge="Apparaat maken",hge="Nummerstatus maken",fge="Staat creëren",mge="Tekenreeksstatus maken",gge="d.",_ge="Fr",vge="Mo",yge="Za",bge="Zo",wge="Th",Sge="Tu",xge="Wij",Cge="Expert modus",$ge="Alle bestanden",kge="Audio",Ege="Code/JSON",Tge="Afbeeldingen",Oge="Tekst",Dge="Video",Age="Instellingen",Mge="zonder",Nge="Functie",jge="ID",zge="Naam",Rge="Rol",Ige="Kamer",Lge="Type",Fge="Ongeldige instellingen",Pge="Laatste wijziging",Bge="plaatselijk",Hge="april",Uge="aug",Wge="dec",Vge="februari",Gge="jan",qge="jul",Xge="juni",Jge="Mei",Yge="mrt",Kge="nov",Zge="Okt",Qge="sept",e_e="april",t_e="aug",n_e="dec",o_e="februari",r_e="jan",a_e="jul",s_e="juni",i_e="Mei",l_e="mrt",c_e="nov",d_e="Okt",u_e="sept",p_e="geen",h_e="Object veranderd door",f_e="Object voor het laatst gewijzigd om",m_e="Instellingen van andere adapter %s",g_e="Kwaliteitscode",__e="herhalen",v_e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',y_e="Staat veranderd door",b_e="Object veranderd van",w_e="Tijdstempel",S_e="Erkende vlag",x_e="Opmerking",C_e="Kopieer de statuswaarde",$_e="Aangepaste instellingen",k_e="Object verwijderen",E_e="Object bewerken",T_e="Bewerk de statuswaarde",O_e="Van",D_e="Laatst gewijzigd",A_e="Kwaliteit",M_e="Tijdstempel",N_e="Gebruiker",j_e="Waarde",z_e="Waarde",R_e="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",I_e="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",L_e="CRON",F_e="Datum",P_e="data",B_e="Dag",H_e="Dag van de week",U_e="elk",W_e="elke N dagen",V_e="elke N-de dag van de week",G_e="elke N dag van de week",q_e="elke N uur",X_e="elke N minuten",J_e="elke N maanden",Y_e="elke N seconden",K_e="elke dag",Z_e="elke dag van de week",Q_e="elke dag van de week",eve="elk uur",tve="elke minuut",nve="elke maand",ove="elke seconde",rve="Van",ave="uren",sve="Interval",ive="Interval tussen",lve="Ongeldige CRON",cve="Notulen",dve="maanden",uve="Een keer",pve="Periode",hve="seconden",fve="Gemakkelijk",mve="Specifieke tijd",gve="specifieke data",_ve="specifieke dag(en) van de week",vve="specifieke dag van weken",yve="specifieke uren",bve="specifieke minuten",wve="specifieke maanden",Sve="specifieke seconden",xve="Tijd",Cve="Naar",$ve="tovenaar",kve="allemaal",Eve="Astro-dag",Tve="Astro-nacht",Ove="Dageraad",Dve="Schemer",Ave="gouden uur",Mve="Gouden uur einde",Nve="Nadir",jve="Nautische dageraad",zve="Nautische schemering",Rve="Nacht",Ive="Nacht einde",Lve="Zonne middag",Fve="zonsopkomst",Pve="Sunrise einde",Bve="Zonsondergang",Hve="Zonsondergang start",Uve="Bij",Wve="op %s",Vve="elke dag",Gve="elk uur",qve="elke minuut",Xve="elke maand",Jve="elke %s dag",Yve="elke %s uur",Kve="elke %s minuten",Zve="elke %s maanden",Qve="elke %s weken",eye="elke %s jaar",tye="elke week",nye="elk jaar",oye="van %s tot %s",rye="nooit",aye="op %s van %s",sye="op %s en %s van",iye="op elke datum van",lye="%s",cye="%s en %s",dye="op %s",uye="op %s en %s",pye="in het weekend",hye="op werkdagen",fye="zal niet meer worden uitgevoerd, omdat start verleden tijd is",mye="op %s",gye="van %s",_ye="Uitvoeren van tot",vye="tot %s",yye="elk",bye="Specifieke tijd",wye="van",Sye="Van naar",xye="Interval tijd",Cye="omkeren",$ye="geen",kye="Aan",Eye="Periode",Tye="Dagelijks",Oye="data",Dye="Dag",Aye="elk",Mye="Elke dag",Nye="Elke maand",jye="Elke week",zye="Elk jaar",Rye="uren",Iye="Notulen",Lye="maand",Fye="Maandelijks",Pye="Een keer",Bye="Specifieke maanden",Hye="Week",Uye="Doordeweekse dagen",Wye="Weekend",Vye="Wekelijks",Gye="werkdagen",qye="Jaar",Xye="jaar-",Jye="Specifieke tijd",Yye="Tijd",Kye="naar",Zye="Geldig",Qye="van",ebe="naar",tbe="Hele dag",nbe="elke maand",obe={"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_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:ome,"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:rme,"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:ame,"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:sme,ra_Clear:ime,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:lme,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:cme,ra_Configure:dme,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:ume,ra_Copied:pme,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:hme,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:fme,"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:mme,ra_Delete:gme,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:_me,ra_Disconnected:vme,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:yme,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:bme,"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:wme,"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_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 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:Sme,"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_Longitude:xme,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:Cme,ra_Monday:$me,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:kme,"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 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_Objects:Eme,ra_Ok:Tme,"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 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_Private certificate":"Privé certificaat",ra_Product:Ome,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:Dme,ra_Replace:Ame,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:Mme,ra_Saturday:Nme,ra_Save:jme,"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:zme,"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_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_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:Ime,"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:Lme,ra_Timestamp:Fme,"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:Pme,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:Bme,"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:Hme,ra_Value:Ume,ra_Version:Wme,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:Vme,ra_Width:Gme,ra_Yes:qme,"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___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:ege,ra_aclGroup_write_object:tge,ra_aclGroup_write_state:nge,ra_aclOwner_read_object:oge,ra_aclOwner_read_state:rge,ra_aclOwner_write_object:age,ra_aclOwner_write_state:sge,ra_buttons:ige,ra_changedFrom:lge,ra_close:cge,ra_create_boolean_state:dge,ra_create_channel:uge,ra_create_device:pge,ra_create_number_state:hge,ra_create_state:fge,ra_create_string_state:mge,ra_daysShortText:gge,ra_dow_Fr:_ge,ra_dow_Mo:vge,ra_dow_Sa:yge,ra_dow_Su:bge,ra_dow_Th:wge,ra_dow_Tu:Sge,ra_dow_We:xge,ra_expertMode:Cge,ra_fileType_all:$ge,ra_fileType_audio:kge,ra_fileType_code:Ege,ra_fileType_images:Tge,ra_fileType_txt:Oge,ra_fileType_video:Dge,"ra_fileType_video,":"Video",ra_filter_customs:Age,ra_filter_customs_without:Mge,ra_filter_func:Nge,ra_filter_id:jge,ra_filter_name:zge,ra_filter_role:Rge,ra_filter_room:Ige,ra_filter_type:Lge,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:Fge,ra_lastChange:Pge,ra_locally:Bge,ra_month_Apr:Hge,ra_month_Aug:Uge,ra_month_Dec:Wge,ra_month_Feb:Vge,ra_month_Jan:Gge,ra_month_Jul:qge,ra_month_Jun:Xge,ra_month_Mai:Jge,ra_month_Mar:Yge,ra_month_Nov:Kge,ra_month_Oct:Zge,ra_month_Sep:Qge,ra_months_Apr:e_e,ra_months_Aug:t_e,ra_months_Dec:n_e,ra_months_Feb:o_e,ra_months_Jan:r_e,ra_months_Jul:a_e,ra_months_Jun:s_e,ra_months_Mai:i_e,ra_months_Mar:l_e,ra_months_Nov:c_e,ra_months_Oct:d_e,ra_months_Sep:u_e,ra_none:p_e,ra_object_changed_by:h_e,ra_object_changed_by_user:f_e,ra_otherConfig:m_e,ra_qualityCode:g_e,ra_repeat:__e,ra_select_folder_hint:v_e,ra_state_changed_by:y_e,ra_state_changed_from:b_e,ra_timestamp:w_e,ra_tooltip_ack:S_e,ra_tooltip_comment:x_e,ra_tooltip_copyState:C_e,ra_tooltip_customConfig:$_e,ra_tooltip_deleteObject:k_e,ra_tooltip_editObject:E_e,ra_tooltip_editState:T_e,ra_tooltip_from:O_e,ra_tooltip_lc:D_e,ra_tooltip_quality:A_e,ra_tooltip_ts:M_e,ra_tooltip_user:N_e,ra_tooltip_value:j_e,"ra_use seconds":"gebruik seconden",ra_val:z_e,"ra_via internet":"via internet",ra_warning_every_minute:R_e,ra_warning_every_second:I_e,sc_cron:L_e,sc_date:F_e,sc_dates:P_e,sc_dow:B_e,sc_dows:H_e,sc_every:U_e,sc_everyN_dates:W_e,sc_everyN_dow:V_e,sc_everyN_dows:G_e,sc_everyN_hours:q_e,sc_everyN_minutes:X_e,sc_everyN_months:J_e,sc_everyN_seconds:Y_e,sc_every_dates:K_e,sc_every_dow:Z_e,sc_every_dows:Q_e,sc_every_hours:eve,sc_every_minutes:tve,sc_every_months:nve,sc_every_seconds:ove,sc_from:rve,sc_hours:ave,sc_interval:sve,sc_intervalBetween:ive,sc_invalid_cron:lve,sc_minutes:cve,sc_months:dve,sc_once:uve,sc_period:pve,sc_seconds:hve,sc_simple:fve,sc_specific:mve,sc_specific_dates:gve,sc_specific_dow:_ve,sc_specific_dows:vve,sc_specific_hours:yve,sc_specific_minutes:bve,sc_specific_months:wve,sc_specific_seconds:Sve,sc_time:xve,sc_to:Cve,sc_wizard:$ve,sch_all:kve,sch_astroDay:Eve,sch_astroNight:Tve,sch_astro_dawn:Ove,sch_astro_dusk:Dve,sch_astro_goldenHour:Ave,sch_astro_goldenHourEnd:Mve,sch_astro_nadir:Nve,sch_astro_nauticalDawn:jve,sch_astro_nauticalDusk:zve,sch_astro_night:Rve,sch_astro_nightEnd:Ive,sch_astro_solarNoon:Lve,sch_astro_sunrise:Fve,sch_astro_sunriseEnd:Pve,sch_astro_sunset:Bve,sch_astro_sunsetStart:Hve,sch_at:Uve,sch_desc_atTime:Wve,sch_desc_everyDay:Vve,sch_desc_everyHour:Gve,sch_desc_everyMinute:qve,sch_desc_everyMonth:Xve,sch_desc_everyNDay:Jve,sch_desc_everyNHours:Yve,sch_desc_everyNMinutes:Kve,sch_desc_everyNMonths:Zve,sch_desc_everyNWeeks:Qve,sch_desc_everyNYears:eye,sch_desc_everyWeek:tye,sch_desc_everyYear:nye,sch_desc_intervalFromTo:oye,sch_desc_never:rye,sch_desc_onDate:aye,sch_desc_onDates:sye,sch_desc_onEveryDate:iye,sch_desc_onMonth:lye,sch_desc_onMonths:cye,sch_desc_onWeekday:dye,sch_desc_onWeekdays:uye,sch_desc_onWeekends:pye,sch_desc_onWorkdays:hye,sch_desc_onceInPast:fye,sch_desc_once_on:mye,sch_desc_validFrom:gye,sch_desc_validFromTo:_ye,sch_desc_validTo:vye,sch_every:yye,sch_exactTime:bye,sch_from:wye,sch_fromTo:Sye,sch_intervalTime:xye,sch_invert:Cye,sch_no_one:$ye,sch_on:kye,sch_period:Eye,sch_periodDaily:Tye,sch_periodDates:Oye,sch_periodDay:Dye,sch_periodEvery:Aye,sch_periodEveryDay:Mye,sch_periodEveryMonth:Nye,sch_periodEveryWeek:jye,sch_periodEveryYear:zye,sch_periodHours:Rye,sch_periodMinutes:Iye,sch_periodMonth:Lye,sch_periodMonthly:Fye,sch_periodOnce:Pye,sch_periodSpecificMonths:Bye,sch_periodWeek:Hye,sch_periodWeekdays:Uye,sch_periodWeekend:Wye,sch_periodWeekly:Vye,sch_periodWorkdays:Gye,sch_periodYear:qye,sch_periodYearly:Xye,sch_specificTime:Jye,sch_time:Yye,sch_to:Kye,sch_valid:Zye,sch_validFrom:Qye,sch_validTo:ebe,sch_wholeDay:tbe,sch_yearEveryMonth:nbe},rbe="Ajouter",abe="Annuler",sbe="Catégories",ibe="Vérifié",lbe="Effacer",cbe="Fermer",dbe="Commercial",ube="Configurer",pbe="Lié",hbe="Copié",fbe="Créer",mbe="Recadrer",gbe="Delete",_be="Supprimer",vbe="Jeter",ybe="Débranché",bbe="Erreur",wbe="Filtre",Sbe="Vendredi",xbe="Latitude",Cbe="Longitude",$be="Message",kbe="Lundi",Ebe="Nom",Tbe="Objets",Obe="D'accord",Dbe="Produit",Abe="Répéter",Mbe="Remplacer",Nbe="Racine",jbe="Samedi",zbe="sauver",Rbe="Choisi",Ibe="États",Lbe="Dimanche",Fbe="Jeudi",Pbe="Horodatage",Bbe="Mardi",Hbe="Mise à jour",Ube="Valable jusqu'au",Wbe="Valeur",Vbe="Version",Gbe="Mercredi",qbe="Largeur",Xbe="Oui",Jbe="différent",Ybe="Tout le monde peut lire un objet",Kbe="Tout le monde peut lire l'état",Zbe="Tout le monde peut écrire un objet",Qbe="Tout le monde peut écrire l'état",e0e="Le groupe peut lire l'objet",t0e="Le groupe peut lire l'état",n0e="Le groupe peut écrire un objet",o0e="Le groupe peut écrire l'état",r0e="Le propriétaire peut lire l'objet",a0e="Le propriétaire peut lire l'état",s0e="Le propriétaire peut écrire un objet",i0e="Le propriétaire peut écrire l'état",l0e="Boutons",c0e="Changé de",d0e="Fermer",u0e="Créer un état booléen",p0e="Créer une chaîne",h0e="Créer un appareil",f0e="Créer un état de numéro",m0e="Créer un état",g0e="Créer un état de chaîne",_0e="j.",v0e="Fr",y0e="Mo",b0e="Sa",w0e="Su",S0e="Th",x0e="Tu",C0e="Nous",$0e="Mode expert",k0e="Tous les fichiers",E0e="l'audio",T0e="Code/JSON",O0e="Images",D0e="Texte",A0e="Vidéo",M0e="Paramètres",N0e="sans",j0e="Une fonction",z0e="ID",R0e="Prénom",I0e="Rôle",L0e="Pièce",F0e="Type",P0e="Paramètres invalides",B0e="Dernier changement",H0e="localement",U0e="Avr",W0e="Août",V0e="Déc",G0e="Fév",q0e="Jan",X0e="Juil",J0e="Juin",Y0e="Mai",K0e="Mar",Z0e="Nov",Q0e="Oct",e1e="Sep",t1e="Avr",n1e="Août",o1e="Déc",r1e="Fév",a1e="Jan",s1e="Juil",i1e="Juin",l1e="Mai",c1e="Mar",d1e="Nov",u1e="Oct",p1e="Sep",h1e="rien",f1e="Objet modifié par",m1e="Objet modifié pour la dernière fois à",g1e="Paramètres d'un autre adaptateur %s",_1e="Code de qualité",v1e="répéter",y1e='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',b1e="État modifié par",w1e="Objet changé de",S1e="Horodatage",x1e="Drapeau reconnu",C1e="Commentaire",$1e="Copiez la valeur d'état",k1e="Paramètres personnalisés",E1e="Supprimer un objet",T1e="Modifier l'objet",O1e="Modifier la valeur d'état",D1e="De",A1e="Dernière modification",M1e="Qualité",N1e="Horodatage",j1e="Utilisateur",z1e="Valeur",R1e="Valeur",I1e="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",L1e="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",F1e="CRON",P1e="Date",B1e="Rendez-vous",H1e="Jour",U1e="Jour de la semaine",W1e="Chaque",V1e="tous les N jours",G1e="chaque Nième jour de la semaine",q1e="tous les N jours de la semaine",X1e="toutes les N heures",J1e="toutes les N minutes",Y1e="tous les N mois",K1e="toutes les N secondes",Z1e="tous les jours",Q1e="Chaque jour de la semaine",ewe="Chaque jour de la semaine",twe="Toutes les heures",nwe="chaque minute",owe="chaque mois",rwe="chaque seconde",awe="De",swe="Heures",iwe="Intervalle",lwe="Intervalle entre",cwe="CRON non valide",dwe="Minutes",uwe="mois",pwe="Une fois que",hwe="Période",fwe="Secondes",mwe="Facile",gwe="Temps spécifique",_we="dates spécifiques",vwe="jour(s) spécifique(s) de la semaine",ywe="jour spécifique de semaines",bwe="heures spécifiques",wwe="minutes spécifiques",Swe="mois spécifiques",xwe="secondes spécifiques",Cwe="Temps",$we="À",kwe="sorcier",Ewe="tout",Twe="Journée astronomique",Owe="Nuit astronomique",Dwe="Aube",Awe="Crépuscule",Mwe="Heure d'or",Nwe="Fin de l'heure d'or",jwe="Nadir",zwe="Aube nautique",Rwe="Crépuscule nautique",Iwe="Nuit",Lwe="Fin de nuit",Fwe="Midi solaire",Pwe="lever du soleil",Bwe="Fin du lever du soleil",Hwe="Le coucher du soleil",Uwe="Coucher du soleil",Wwe="à",Vwe="à %s",Gwe="tous les jours",qwe="Toutes les heures",Xwe="chaque minute",Jwe="chaque mois",Ywe="chaque %s jour",Kwe="chaque %s heures",Zwe="toutes les %s minutes",Qwe="tous les %s mois",eSe="chaque %s semaines",tSe="tous les %s ans",nSe="toutes les semaines",oSe="chaque année",rSe="de %s à %s",aSe="jamais",sSe="sur %s de %s",iSe="sur %s et %s de",lSe="à chaque date de",cSe="%s",dSe="%s et %s",uSe="sur %s",pSe="sur %s et %s",hSe="les weekends",fSe="les jours ouvrables",mSe="ne sera plus exécuté, car start est dans le passé",gSe="sur %s",_Se="de %s",vSe="Exécuter de à",ySe="à %s",bSe="chaque",wSe="Temps spécifique",SSe="de",xSe="De à",CSe="Temps d'interval",$Se="inverser",kSe="aucun",ESe="sur",TSe="Période",OSe="du quotidien",DSe="Rendez-vous",ASe="journée",MSe="Chaque",NSe="Tous les jours",jSe="Chaque mois",zSe="Toutes les semaines",RSe="Chaque année",ISe="Heures",LSe="Minutes",FSe="mois",PSe="Mensuel",BSe="Une fois que",HSe="Mois spécifiques",USe="La semaine",WSe="Jours de la semaine",VSe="Weekend",GSe="Hebdomadaire",qSe="Jours ouvrables",XSe="Année",JSe="Annuel",YSe="Temps spécifique",KSe="Temps",ZSe="à",QSe="Valide",exe="de",txe="à",nxe="Toute la journée",oxe="chaque mois",rxe={"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_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:rbe,"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:abe,"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:sbe,"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:ibe,ra_Clear:lbe,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:cbe,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:dbe,ra_Configure:ube,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:pbe,ra_Copied:hbe,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:fbe,"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:mbe,"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:gbe,ra_Delete:_be,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:vbe,ra_Disconnected:ybe,"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_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 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_Error:bbe,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:wbe,"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:Sbe,"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_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 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:xbe,"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_Longitude:Cbe,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:$be,ra_Monday:kbe,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:Ebe,"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 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_Objects:Tbe,ra_Ok:Obe,"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 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_Private certificate":"Certificat privé",ra_Product:Dbe,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:Abe,ra_Replace:Mbe,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:Nbe,ra_Saturday:jbe,ra_Save:zbe,"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:Rbe,"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_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:Ibe,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:Lbe,"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:Fbe,ra_Timestamp:Pbe,"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:Bbe,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:Hbe,"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:Ube,ra_Value:Wbe,ra_Version:Vbe,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:Gbe,ra_Width:qbe,ra_Yes:Xbe,"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___different__:Jbe,ra_aclEveryone_read_object:Ybe,ra_aclEveryone_read_state:Kbe,ra_aclEveryone_write_object:Zbe,ra_aclEveryone_write_state:Qbe,ra_aclGroup_read_object:e0e,ra_aclGroup_read_state:t0e,ra_aclGroup_write_object:n0e,ra_aclGroup_write_state:o0e,ra_aclOwner_read_object:r0e,ra_aclOwner_read_state:a0e,ra_aclOwner_write_object:s0e,ra_aclOwner_write_state:i0e,ra_buttons:l0e,ra_changedFrom:c0e,ra_close:d0e,ra_create_boolean_state:u0e,ra_create_channel:p0e,ra_create_device:h0e,ra_create_number_state:f0e,ra_create_state:m0e,ra_create_string_state:g0e,ra_daysShortText:_0e,ra_dow_Fr:v0e,ra_dow_Mo:y0e,ra_dow_Sa:b0e,ra_dow_Su:w0e,ra_dow_Th:S0e,ra_dow_Tu:x0e,ra_dow_We:C0e,ra_expertMode:$0e,ra_fileType_all:k0e,ra_fileType_audio:E0e,ra_fileType_code:T0e,ra_fileType_images:O0e,ra_fileType_txt:D0e,ra_fileType_video:A0e,"ra_fileType_video,":"Vidéo",ra_filter_customs:M0e,ra_filter_customs_without:N0e,ra_filter_func:j0e,ra_filter_id:z0e,ra_filter_name:R0e,ra_filter_role:I0e,ra_filter_room:L0e,ra_filter_type:F0e,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:P0e,ra_lastChange:B0e,ra_locally:H0e,ra_month_Apr:U0e,ra_month_Aug:W0e,ra_month_Dec:V0e,ra_month_Feb:G0e,ra_month_Jan:q0e,ra_month_Jul:X0e,ra_month_Jun:J0e,ra_month_Mai:Y0e,ra_month_Mar:K0e,ra_month_Nov:Z0e,ra_month_Oct:Q0e,ra_month_Sep:e1e,ra_months_Apr:t1e,ra_months_Aug:n1e,ra_months_Dec:o1e,ra_months_Feb:r1e,ra_months_Jan:a1e,ra_months_Jul:s1e,ra_months_Jun:i1e,ra_months_Mai:l1e,ra_months_Mar:c1e,ra_months_Nov:d1e,ra_months_Oct:u1e,ra_months_Sep:p1e,ra_none:h1e,ra_object_changed_by:f1e,ra_object_changed_by_user:m1e,ra_otherConfig:g1e,ra_qualityCode:_1e,ra_repeat:v1e,ra_select_folder_hint:y1e,ra_state_changed_by:b1e,ra_state_changed_from:w1e,ra_timestamp:S1e,ra_tooltip_ack:x1e,ra_tooltip_comment:C1e,ra_tooltip_copyState:$1e,ra_tooltip_customConfig:k1e,ra_tooltip_deleteObject:E1e,ra_tooltip_editObject:T1e,ra_tooltip_editState:O1e,ra_tooltip_from:D1e,ra_tooltip_lc:A1e,ra_tooltip_quality:M1e,ra_tooltip_ts:N1e,ra_tooltip_user:j1e,ra_tooltip_value:z1e,"ra_use seconds":"utiliser les secondes",ra_val:R1e,"ra_via internet":"par Internet",ra_warning_every_minute:I1e,ra_warning_every_second:L1e,sc_cron:F1e,sc_date:P1e,sc_dates:B1e,sc_dow:H1e,sc_dows:U1e,sc_every:W1e,sc_everyN_dates:V1e,sc_everyN_dow:G1e,sc_everyN_dows:q1e,sc_everyN_hours:X1e,sc_everyN_minutes:J1e,sc_everyN_months:Y1e,sc_everyN_seconds:K1e,sc_every_dates:Z1e,sc_every_dow:Q1e,sc_every_dows:ewe,sc_every_hours:twe,sc_every_minutes:nwe,sc_every_months:owe,sc_every_seconds:rwe,sc_from:awe,sc_hours:swe,sc_interval:iwe,sc_intervalBetween:lwe,sc_invalid_cron:cwe,sc_minutes:dwe,sc_months:uwe,sc_once:pwe,sc_period:hwe,sc_seconds:fwe,sc_simple:mwe,sc_specific:gwe,sc_specific_dates:_we,sc_specific_dow:vwe,sc_specific_dows:ywe,sc_specific_hours:bwe,sc_specific_minutes:wwe,sc_specific_months:Swe,sc_specific_seconds:xwe,sc_time:Cwe,sc_to:$we,sc_wizard:kwe,sch_all:Ewe,sch_astroDay:Twe,sch_astroNight:Owe,sch_astro_dawn:Dwe,sch_astro_dusk:Awe,sch_astro_goldenHour:Mwe,sch_astro_goldenHourEnd:Nwe,sch_astro_nadir:jwe,sch_astro_nauticalDawn:zwe,sch_astro_nauticalDusk:Rwe,sch_astro_night:Iwe,sch_astro_nightEnd:Lwe,sch_astro_solarNoon:Fwe,sch_astro_sunrise:Pwe,sch_astro_sunriseEnd:Bwe,sch_astro_sunset:Hwe,sch_astro_sunsetStart:Uwe,sch_at:Wwe,sch_desc_atTime:Vwe,sch_desc_everyDay:Gwe,sch_desc_everyHour:qwe,sch_desc_everyMinute:Xwe,sch_desc_everyMonth:Jwe,sch_desc_everyNDay:Ywe,sch_desc_everyNHours:Kwe,sch_desc_everyNMinutes:Zwe,sch_desc_everyNMonths:Qwe,sch_desc_everyNWeeks:eSe,sch_desc_everyNYears:tSe,sch_desc_everyWeek:nSe,sch_desc_everyYear:oSe,sch_desc_intervalFromTo:rSe,sch_desc_never:aSe,sch_desc_onDate:sSe,sch_desc_onDates:iSe,sch_desc_onEveryDate:lSe,sch_desc_onMonth:cSe,sch_desc_onMonths:dSe,sch_desc_onWeekday:uSe,sch_desc_onWeekdays:pSe,sch_desc_onWeekends:hSe,sch_desc_onWorkdays:fSe,sch_desc_onceInPast:mSe,sch_desc_once_on:gSe,sch_desc_validFrom:_Se,sch_desc_validFromTo:vSe,sch_desc_validTo:ySe,sch_every:bSe,sch_exactTime:wSe,sch_from:SSe,sch_fromTo:xSe,sch_intervalTime:CSe,sch_invert:$Se,sch_no_one:kSe,sch_on:ESe,sch_period:TSe,sch_periodDaily:OSe,sch_periodDates:DSe,sch_periodDay:ASe,sch_periodEvery:MSe,sch_periodEveryDay:NSe,sch_periodEveryMonth:jSe,sch_periodEveryWeek:zSe,sch_periodEveryYear:RSe,sch_periodHours:ISe,sch_periodMinutes:LSe,sch_periodMonth:FSe,sch_periodMonthly:PSe,sch_periodOnce:BSe,sch_periodSpecificMonths:HSe,sch_periodWeek:USe,sch_periodWeekdays:WSe,sch_periodWeekend:VSe,sch_periodWeekly:GSe,sch_periodWorkdays:qSe,sch_periodYear:XSe,sch_periodYearly:JSe,sch_specificTime:YSe,sch_time:KSe,sch_to:ZSe,sch_valid:QSe,sch_validFrom:exe,sch_validTo:txe,sch_wholeDay:nxe,sch_yearEveryMonth:oxe},axe="Aggiungere",sxe="Annulla",ixe="Categorie",lxe="Controllato",cxe="Elimina",dxe="Vicino",uxe="Commerciale",pxe="Configura",hxe="Collegato",fxe="Copiato",mxe="Creare",gxe="Raccolto",_xe="Delete",vxe="Elimina",yxe="Scartare",bxe="Disconnesso",wxe="Errore",Sxe="Filtro",xxe="Venerdì",Cxe="Latitudine",$xe="Longitudine",kxe="Messaggio",Exe="Lunedi",Txe="Nome",Oxe="Oggetti",Dxe="Ok",Axe="Prodotto",Mxe="Ripetere",Nxe="Sostituire",jxe="Radice",zxe="Sabato",Rxe="Salva",Ixe="Selezionato",Lxe="stati",Fxe="Domenica",Pxe="Giovedì",Bxe="Timestamp",Hxe="Martedì",Uxe="Aggiornare",Wxe="Valido fino a",Vxe="Valore",Gxe="Versione",qxe="Mercoledì",Xxe="Larghezza",Jxe="SÌ",Yxe="diverso",Kxe="Tutti possono leggere gli oggetti",Zxe="Tutti possono leggere lo stato",Qxe="Tutti possono scrivere oggetti",e2e="Tutti possono scrivere stato",t2e="Il gruppo può leggere l'oggetto",n2e="Il gruppo può leggere lo stato",o2e="Il gruppo può scrivere l'oggetto",r2e="Il gruppo può scrivere lo stato",a2e="Il proprietario può leggere l'oggetto",s2e="Il proprietario può leggere lo stato",i2e="Il proprietario può scrivere l'oggetto",l2e="Il proprietario può scrivere lo stato",c2e="Bottoni",d2e="Cambiato da",u2e="vicino",p2e="Crea uno stato booleano",h2e="Crea canale",f2e="Crea dispositivo",m2e="Crea lo stato del numero",g2e="Crea stato",_2e="Crea lo stato della stringa",v2e="g.",y2e="fr",b2e="momento",w2e="Sa",S2e="su",x2e="th",C2e="Tu",$2e="Noi",k2e="Modalità esperto",E2e="Tutti i files",T2e="Audio",O2e="Codice/JSON",D2e="immagini",A2e="Testo",M2e="video",N2e="impostazioni",j2e="senza",z2e="Funzione",R2e="ID",I2e="Nome",L2e="Ruolo",F2e="Camera",P2e="genere",B2e="Impostazioni non valide",H2e="Ultima modifica",U2e="localmente",W2e="apr",V2e="agosto",G2e="Dic",q2e="febbraio",X2e="gen",J2e="lug",Y2e="giu",K2e="Mai",Z2e="marzo",Q2e="nov",eCe="ottobre",tCe="Sett",nCe="apr",oCe="agosto",rCe="Dic",aCe="febbraio",sCe="gen",iCe="lug",lCe="giu",cCe="Mai",dCe="marzo",uCe="nov",pCe="ottobre",hCe="Sett",fCe="nessuna",mCe="Oggetto modificato da",gCe="L'oggetto è stato modificato l'ultima volta alle",_Ce="Impostazioni dall'altro adattatore %s",vCe="Codice di qualità",yCe="ripetere",bCe='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',wCe="Stato cambiato da",SCe="Oggetto cambiato da",xCe="Timestamp",CCe="Bandiera riconosciuta",$Ce="Commento",kCe="Copia il valore dello stato",ECe="Impostazioni personalizzate",TCe="Elimina oggetto",OCe="Modifica oggetto",DCe="Modifica il valore dello stato",ACe="A partire dal",MCe="Ultima modifica",NCe="Qualità",jCe="Data e ora",zCe="Utente",RCe="Valore",ICe="Valore",LCe="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",FCe="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",PCe="CRON",BCe="Data",HCe="Date",UCe="Giorno",WCe="Giorno della settimana",VCe="Ogni",GCe="ogni N giorni",qCe="ogni Nesimo giorno della settimana",XCe="ogni N giorno della settimana",JCe="ogni N ore",YCe="ogni N minuti",KCe="ogni N mesi",ZCe="ogni N secondi",QCe="ogni giorno",e$e="Tutti i giorni della settimana",t$e="Tutti i giorni della settimana",n$e="ogni ora",o$e="ogni minuto",r$e="ogni mese",a$e="ogni secondo",s$e="A partire dal",i$e="Ore",l$e="Intervallo",c$e="Intervallo tra",d$e="CRON non valido",u$e="Minuti",p$e="mesi",h$e="Una volta",f$e="Periodo",m$e="secondi",g$e="Semplice",_$e="Orario preciso",v$e="date specifiche",y$e="giorno/i specifico/i della settimana",b$e="giorno specifico delle settimane",w$e="orari specifici",S$e="minuti specifici",x$e="mesi specifici",C$e="secondi specifici",$$e="Tempo",k$e="Per",E$e="procedura guidata",T$e="tutti",O$e="Astro day",D$e="Astro night",A$e="Alba",M$e="Crepuscolo",N$e="Ora d'oro",j$e="Fine dell'ora d'oro",z$e="Nadir",R$e="Alba nautica",I$e="Crepuscolo nautico",L$e="Notte",F$e="Fine della notte",P$e="Mezzogiorno solare",B$e="Alba",H$e="Fine dell'alba",U$e="Tramonto",W$e="Inizio del tramonto",V$e="a",G$e="a %s",q$e="ogni giorno",X$e="ogni ora",J$e="ogni minuto",Y$e="ogni mese",K$e="ogni %s giorno",Z$e="ogni %s ore",Q$e="ogni %s minuti",eke="ogni %s mesi",tke="ogni %s settimane",nke="ogni %s anni",oke="ogni settimana",rke="ogni anno",ake="da %s a %s",ske="mai",ike="su %s di %s",lke="su %s e %s di",cke="in ogni data di",dke="%s",uke="%s e %s",pke="su %s",hke="su %s e %s",fke="nei finesettimana",mke="nei giorni lavorativi",gke="non verrà più eseguito, perché start è nel passato",_ke="su %s",vke="da %s",yke="Eseguire da a",bke="a %s",wke="ogni",Ske="Orario preciso",xke="a partire dal",Cke="Da A",$ke="Intervallo di tempo",kke="invertire",Eke="nessuna",Tke="sopra",Oke="Periodo",Dke="Quotidiano",Ake="Date",Mke="Giorno",Nke="Ogni",jke="Ogni giorno",zke="Ogni mese",Rke="Ogni settimana",Ike="Ogni anno",Lke="Ore",Fke="Minuti",Pke="mese",Bke="Mensile",Hke="Una volta",Uke="Mesi specifici",Wke="Settimana",Vke="Giorni della settimana",Gke="Fine settimana",qke="settimanalmente",Xke="giorni feriali",Jke="Anno",Yke="Annuale",Kke="Orario preciso",Zke="Tempo",Qke="per",eEe="Valido",tEe="a partire dal",nEe="per",oEe="Giorno intero",rEe="ogni mese",aEe={"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_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:axe,"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:sxe,"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:ixe,"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:lxe,ra_Clear:cxe,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:dxe,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:uxe,ra_Configure:pxe,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:hxe,ra_Copied:fxe,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:mxe,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:gxe,"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:_xe,ra_Delete:vxe,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:yxe,ra_Disconnected:bxe,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:wxe,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:Sxe,"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:xxe,"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_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 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:Cxe,"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_Longitude:$xe,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:kxe,ra_Monday:Exe,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:Txe,"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 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_Objects:Oxe,ra_Ok:Dxe,"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 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_Private certificate":"Certificato privato",ra_Product:Axe,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:Mxe,ra_Replace:Nxe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:jxe,ra_Saturday:zxe,ra_Save:Rxe,"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:Ixe,"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_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:Lxe,"ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:Fxe,"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:Pxe,ra_Timestamp:Bxe,"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:Hxe,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:Uxe,"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:Wxe,ra_Value:Vxe,ra_Version:Gxe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:qxe,ra_Width:Xxe,ra_Yes:Jxe,"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___different__:Yxe,ra_aclEveryone_read_object:Kxe,ra_aclEveryone_read_state:Zxe,ra_aclEveryone_write_object:Qxe,ra_aclEveryone_write_state:e2e,ra_aclGroup_read_object:t2e,ra_aclGroup_read_state:n2e,ra_aclGroup_write_object:o2e,ra_aclGroup_write_state:r2e,ra_aclOwner_read_object:a2e,ra_aclOwner_read_state:s2e,ra_aclOwner_write_object:i2e,ra_aclOwner_write_state:l2e,ra_buttons:c2e,ra_changedFrom:d2e,ra_close:u2e,ra_create_boolean_state:p2e,ra_create_channel:h2e,ra_create_device:f2e,ra_create_number_state:m2e,ra_create_state:g2e,ra_create_string_state:_2e,ra_daysShortText:v2e,ra_dow_Fr:y2e,ra_dow_Mo:b2e,ra_dow_Sa:w2e,ra_dow_Su:S2e,ra_dow_Th:x2e,ra_dow_Tu:C2e,ra_dow_We:$2e,ra_expertMode:k2e,ra_fileType_all:E2e,ra_fileType_audio:T2e,ra_fileType_code:O2e,ra_fileType_images:D2e,ra_fileType_txt:A2e,ra_fileType_video:M2e,"ra_fileType_video,":"video",ra_filter_customs:N2e,ra_filter_customs_without:j2e,ra_filter_func:z2e,ra_filter_id:R2e,ra_filter_name:I2e,ra_filter_role:L2e,ra_filter_room:F2e,ra_filter_type:P2e,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:B2e,ra_lastChange:H2e,ra_locally:U2e,ra_month_Apr:W2e,ra_month_Aug:V2e,ra_month_Dec:G2e,ra_month_Feb:q2e,ra_month_Jan:X2e,ra_month_Jul:J2e,ra_month_Jun:Y2e,ra_month_Mai:K2e,ra_month_Mar:Z2e,ra_month_Nov:Q2e,ra_month_Oct:eCe,ra_month_Sep:tCe,ra_months_Apr:nCe,ra_months_Aug:oCe,ra_months_Dec:rCe,ra_months_Feb:aCe,ra_months_Jan:sCe,ra_months_Jul:iCe,ra_months_Jun:lCe,ra_months_Mai:cCe,ra_months_Mar:dCe,ra_months_Nov:uCe,ra_months_Oct:pCe,ra_months_Sep:hCe,ra_none:fCe,ra_object_changed_by:mCe,ra_object_changed_by_user:gCe,ra_otherConfig:_Ce,ra_qualityCode:vCe,ra_repeat:yCe,ra_select_folder_hint:bCe,ra_state_changed_by:wCe,ra_state_changed_from:SCe,ra_timestamp:xCe,ra_tooltip_ack:CCe,ra_tooltip_comment:$Ce,ra_tooltip_copyState:kCe,ra_tooltip_customConfig:ECe,ra_tooltip_deleteObject:TCe,ra_tooltip_editObject:OCe,ra_tooltip_editState:DCe,ra_tooltip_from:ACe,ra_tooltip_lc:MCe,ra_tooltip_quality:NCe,ra_tooltip_ts:jCe,ra_tooltip_user:zCe,ra_tooltip_value:RCe,"ra_use seconds":"usa i secondi",ra_val:ICe,"ra_via internet":"attraverso internet",ra_warning_every_minute:LCe,ra_warning_every_second:FCe,sc_cron:PCe,sc_date:BCe,sc_dates:HCe,sc_dow:UCe,sc_dows:WCe,sc_every:VCe,sc_everyN_dates:GCe,sc_everyN_dow:qCe,sc_everyN_dows:XCe,sc_everyN_hours:JCe,sc_everyN_minutes:YCe,sc_everyN_months:KCe,sc_everyN_seconds:ZCe,sc_every_dates:QCe,sc_every_dow:e$e,sc_every_dows:t$e,sc_every_hours:n$e,sc_every_minutes:o$e,sc_every_months:r$e,sc_every_seconds:a$e,sc_from:s$e,sc_hours:i$e,sc_interval:l$e,sc_intervalBetween:c$e,sc_invalid_cron:d$e,sc_minutes:u$e,sc_months:p$e,sc_once:h$e,sc_period:f$e,sc_seconds:m$e,sc_simple:g$e,sc_specific:_$e,sc_specific_dates:v$e,sc_specific_dow:y$e,sc_specific_dows:b$e,sc_specific_hours:w$e,sc_specific_minutes:S$e,sc_specific_months:x$e,sc_specific_seconds:C$e,sc_time:$$e,sc_to:k$e,sc_wizard:E$e,sch_all:T$e,sch_astroDay:O$e,sch_astroNight:D$e,sch_astro_dawn:A$e,sch_astro_dusk:M$e,sch_astro_goldenHour:N$e,sch_astro_goldenHourEnd:j$e,sch_astro_nadir:z$e,sch_astro_nauticalDawn:R$e,sch_astro_nauticalDusk:I$e,sch_astro_night:L$e,sch_astro_nightEnd:F$e,sch_astro_solarNoon:P$e,sch_astro_sunrise:B$e,sch_astro_sunriseEnd:H$e,sch_astro_sunset:U$e,sch_astro_sunsetStart:W$e,sch_at:V$e,sch_desc_atTime:G$e,sch_desc_everyDay:q$e,sch_desc_everyHour:X$e,sch_desc_everyMinute:J$e,sch_desc_everyMonth:Y$e,sch_desc_everyNDay:K$e,sch_desc_everyNHours:Z$e,sch_desc_everyNMinutes:Q$e,sch_desc_everyNMonths:eke,sch_desc_everyNWeeks:tke,sch_desc_everyNYears:nke,sch_desc_everyWeek:oke,sch_desc_everyYear:rke,sch_desc_intervalFromTo:ake,sch_desc_never:ske,sch_desc_onDate:ike,sch_desc_onDates:lke,sch_desc_onEveryDate:cke,sch_desc_onMonth:dke,sch_desc_onMonths:uke,sch_desc_onWeekday:pke,sch_desc_onWeekdays:hke,sch_desc_onWeekends:fke,sch_desc_onWorkdays:mke,sch_desc_onceInPast:gke,sch_desc_once_on:_ke,sch_desc_validFrom:vke,sch_desc_validFromTo:yke,sch_desc_validTo:bke,sch_every:wke,sch_exactTime:Ske,sch_from:xke,sch_fromTo:Cke,sch_intervalTime:$ke,sch_invert:kke,sch_no_one:Eke,sch_on:Tke,sch_period:Oke,sch_periodDaily:Dke,sch_periodDates:Ake,sch_periodDay:Mke,sch_periodEvery:Nke,sch_periodEveryDay:jke,sch_periodEveryMonth:zke,sch_periodEveryWeek:Rke,sch_periodEveryYear:Ike,sch_periodHours:Lke,sch_periodMinutes:Fke,sch_periodMonth:Pke,sch_periodMonthly:Bke,sch_periodOnce:Hke,sch_periodSpecificMonths:Uke,sch_periodWeek:Wke,sch_periodWeekdays:Vke,sch_periodWeekend:Gke,sch_periodWeekly:qke,sch_periodWorkdays:Xke,sch_periodYear:Jke,sch_periodYearly:Yke,sch_specificTime:Kke,sch_time:Zke,sch_to:Qke,sch_valid:eEe,sch_validFrom:tEe,sch_validTo:nEe,sch_wholeDay:oEe,sch_yearEveryMonth:rEe},sEe="Adjuntar",iEe="Cancelar",lEe="Categorías",cEe="Comprobado",dEe="Borrar",uEe="Cerca",pEe="Comercial",hEe="Configurar",fEe="Conectado",mEe="Copiado",gEe="Crear",_Ee="Cultivo",vEe="Delete",yEe="Eliminar",bEe="Desechar",wEe="Desconectado",SEe="Error",xEe="Filtrar",CEe="Viernes",$Ee="Latitud",kEe="Longitud",EEe="Mensaje",TEe="Lunes",OEe="Nombre",DEe="Objetos",AEe="Okay",MEe="Producto",NEe="Repetir",jEe="Reemplazar",zEe="Raíz",REe="Sábado",IEe="Salvar",LEe="Seleccionado",FEe="Estados",PEe="Domingo",BEe="Jueves",HEe="Marca de tiempo",UEe="Martes",WEe="Actualizar",VEe="Válida hasta",GEe="Valor",qEe="Versión",XEe="Miércoles",JEe="Anchura",YEe="Sí",KEe="diferente",ZEe="Todo el mundo puede leer el objeto",QEe="Todos pueden leer el estado",eTe="Todos pueden escribir objetos",tTe="Todos pueden escribir el estado",nTe="El grupo puede leer el objeto",oTe="El grupo puede leer el estado",rTe="El grupo puede escribir un objeto",aTe="El grupo puede escribir el estado",sTe="El propietario puede leer el objeto",iTe="El propietario puede leer el estado",lTe="El propietario puede escribir el objeto",cTe="El propietario puede escribir el estado",dTe="Botones",uTe="Cambiaron desde",pTe="cerrar",hTe="Crear estado booleano",fTe="Crear canal",mTe="Crear dispositivo",gTe="Crear estado numérico",_Te="Crear estado",vTe="Crear estado de cadena",yTe="d.",bTe="Fr",wTe="Mes",STe="Sa",xTe="Su",CTe="Th",$Te="Tu",kTe="Nosotros",ETe="Modo experto",TTe="Todos los archivos",OTe="Audio",DTe="Código/JSON",ATe="Imágenes",MTe="Texto",NTe="Video",jTe="Configuraciones",zTe="sin",RTe="Función",ITe="ID",LTe="Nombre",FTe="Papel",PTe="Habitación",BTe="Tipo",HTe="Configuraciones inválidas",UTe="Ultimo cambio",WTe="en la zona",VTe="Abr",GTe="Ago",qTe="Dic",XTe="Feb",JTe="Ene",YTe="Jul",KTe="Jun",ZTe="Mai",QTe="Mar",eOe="Nov",tOe="Oct",nOe="Sep",oOe="Abr",rOe="Ago",aOe="Dic",sOe="Feb",iOe="Ene",lOe="Jul",cOe="Jun",dOe="Mai",uOe="Mar",pOe="Nov",hOe="Oct",fOe="Sep",mOe="ninguno",gOe="Objeto cambiado por",_Oe="Objeto cambiado por última vez a las",vOe="Configuraciones de otro adaptador %s",yOe="Código de calidad",bOe="repetir",wOe='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',SOe="Estado cambiado por",xOe="Objeto cambiado de",COe="Marca de tiempo",$Oe="Bandera reconocida",kOe="Comentario",EOe="Copie el valor del estado",TOe="Ajustes personalizados",OOe="Eliminar objeto",DOe="Editar objeto",AOe="Edite el valor del estado",MOe="Desde",NOe="Último cambio",jOe="Calidad",zOe="Sello de tiempo",ROe="Usuario",IOe="Valor",LOe="Valor",FOe="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",POe="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",BOe="CRON",HOe="Fecha",UOe="fechas",WOe="Día",VOe="Día de la semana",GOe="Cada",qOe="cada N días",XOe="cada enésimo día de la semana",JOe="cada N día de la semana",YOe="cada N horas",KOe="cada N minutos",ZOe="cada N meses",QOe="cada N segundos",eDe="cada día",tDe="Cada día de la semana",nDe="Cada día de la semana",oDe="cada hora",rDe="cada minuto",aDe="cada mes",sDe="cada segundo",iDe="De",lDe="Horas",cDe="Intervalo",dDe="Intervalo entre",uDe="CRON no válido",pDe="Minutos",hDe="meses",fDe="Una vez",mDe="Período",gDe="Segundos",_De="Sencillo",vDe="Tiempo específico",yDe="fechas especificas",bDe="día(s) específico(s) de la semana",wDe="día específico de semanas",SDe="horas específicas",xDe="minutos específicos",CDe="meses específicos",$De="segundos específicos",kDe="Hora",EDe="A",TDe="Mago",ODe="todas",DDe="Día astro",ADe="Noche astro",MDe="Amanecer",NDe="Oscuridad",jDe="hora dorada",zDe="Fin de la hora dorada",RDe="Nadir",IDe="Amanecer náutico",LDe="Anochecer náutico",FDe="Noche",PDe="Fin de la noche",BDe="Mediodía solar",HDe="amanecer",UDe="Fin del amanecer",WDe="Puesta de sol",VDe="Puesta de sol",GDe="a",qDe="en %s",XDe="cada día",JDe="cada hora",YDe="cada minuto",KDe="cada mes",ZDe="cada %s días",QDe="cada %s horas",e4e="cada %s minutos",t4e="cada %s meses",n4e="cada %s semanas",o4e="cada %s años",r4e="cada semana",a4e="todos los años",s4e="de %s a %s",i4e="Nunca",l4e="en %s de %s",c4e="en %s y %s de",d4e="en cada fecha de",u4e="%s",p4e="%s y %s",h4e="en %s",f4e="en %s y %s",m4e="en los fines de semana",g4e="en días laborables",_4e="ya no se ejecutará más, porque el inicio está en el pasado",v4e="en %s",y4e="de %s",b4e="Ejecutar desde hasta",w4e="a %s",S4e="cada",x4e="Tiempo específico",C4e="de",$4e="De-a",k4e="Tiempo de intervalo",E4e="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",T4e="ninguna",O4e="en",D4e="Período",A4e="Diario",M4e="fechas",N4e="Día",j4e="Cada",z4e="Cada día",R4e="Cada mes",I4e="Cada semana",L4e="Todos los años",F4e="Horas",P4e="Minutos",B4e="mes",H4e="Mensual",U4e="Una vez",W4e="Meses específicos",V4e="Semana",G4e="Días laborables",q4e="Fin de semana",X4e="Semanal",J4e="Días laborables",Y4e="Año",K4e="Anual",Z4e="Tiempo específico",Q4e="Hora",e5e="a",t5e="Válido",n5e="de",o5e="a",r5e="Todo el dia",a5e="cada mes",s5e={"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_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:sEe,"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:iEe,"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:lEe,"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:cEe,ra_Clear:dEe,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:uEe,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:pEe,ra_Configure:hEe,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:fEe,ra_Copied:mEe,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:gEe,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:_Ee,"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:vEe,ra_Delete:yEe,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:bEe,ra_Disconnected:wEe,"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_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 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_Error:SEe,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:xEe,"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:CEe,"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_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 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:$Ee,"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_Longitude:kEe,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:EEe,ra_Monday:TEe,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:OEe,"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 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_Objects:DEe,ra_Ok:AEe,"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 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_Private certificate":"certificado privado",ra_Product:MEe,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:NEe,ra_Replace:jEe,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:zEe,ra_Saturday:REe,ra_Save:IEe,"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:LEe,"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_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:FEe,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:PEe,"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:BEe,ra_Timestamp:HEe,"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:UEe,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:WEe,"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:VEe,ra_Value:GEe,ra_Version:qEe,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:XEe,ra_Width:JEe,ra_Yes:YEe,"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___different__:KEe,ra_aclEveryone_read_object:ZEe,ra_aclEveryone_read_state:QEe,ra_aclEveryone_write_object:eTe,ra_aclEveryone_write_state:tTe,ra_aclGroup_read_object:nTe,ra_aclGroup_read_state:oTe,ra_aclGroup_write_object:rTe,ra_aclGroup_write_state:aTe,ra_aclOwner_read_object:sTe,ra_aclOwner_read_state:iTe,ra_aclOwner_write_object:lTe,ra_aclOwner_write_state:cTe,ra_buttons:dTe,ra_changedFrom:uTe,ra_close:pTe,ra_create_boolean_state:hTe,ra_create_channel:fTe,ra_create_device:mTe,ra_create_number_state:gTe,ra_create_state:_Te,ra_create_string_state:vTe,ra_daysShortText:yTe,ra_dow_Fr:bTe,ra_dow_Mo:wTe,ra_dow_Sa:STe,ra_dow_Su:xTe,ra_dow_Th:CTe,ra_dow_Tu:$Te,ra_dow_We:kTe,ra_expertMode:ETe,ra_fileType_all:TTe,ra_fileType_audio:OTe,ra_fileType_code:DTe,ra_fileType_images:ATe,ra_fileType_txt:MTe,ra_fileType_video:NTe,"ra_fileType_video,":"Video",ra_filter_customs:jTe,ra_filter_customs_without:zTe,ra_filter_func:RTe,ra_filter_id:ITe,ra_filter_name:LTe,ra_filter_role:FTe,ra_filter_room:PTe,ra_filter_type:BTe,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:HTe,ra_lastChange:UTe,ra_locally:WTe,ra_month_Apr:VTe,ra_month_Aug:GTe,ra_month_Dec:qTe,ra_month_Feb:XTe,ra_month_Jan:JTe,ra_month_Jul:YTe,ra_month_Jun:KTe,ra_month_Mai:ZTe,ra_month_Mar:QTe,ra_month_Nov:eOe,ra_month_Oct:tOe,ra_month_Sep:nOe,ra_months_Apr:oOe,ra_months_Aug:rOe,ra_months_Dec:aOe,ra_months_Feb:sOe,ra_months_Jan:iOe,ra_months_Jul:lOe,ra_months_Jun:cOe,ra_months_Mai:dOe,ra_months_Mar:uOe,ra_months_Nov:pOe,ra_months_Oct:hOe,ra_months_Sep:fOe,ra_none:mOe,ra_object_changed_by:gOe,ra_object_changed_by_user:_Oe,ra_otherConfig:vOe,ra_qualityCode:yOe,ra_repeat:bOe,ra_select_folder_hint:wOe,ra_state_changed_by:SOe,ra_state_changed_from:xOe,ra_timestamp:COe,ra_tooltip_ack:$Oe,ra_tooltip_comment:kOe,ra_tooltip_copyState:EOe,ra_tooltip_customConfig:TOe,ra_tooltip_deleteObject:OOe,ra_tooltip_editObject:DOe,ra_tooltip_editState:AOe,ra_tooltip_from:MOe,ra_tooltip_lc:NOe,ra_tooltip_quality:jOe,ra_tooltip_ts:zOe,ra_tooltip_user:ROe,ra_tooltip_value:IOe,"ra_use seconds":"usar segundos",ra_val:LOe,"ra_via internet":"vía Internet",ra_warning_every_minute:FOe,ra_warning_every_second:POe,sc_cron:BOe,sc_date:HOe,sc_dates:UOe,sc_dow:WOe,sc_dows:VOe,sc_every:GOe,sc_everyN_dates:qOe,sc_everyN_dow:XOe,sc_everyN_dows:JOe,sc_everyN_hours:YOe,sc_everyN_minutes:KOe,sc_everyN_months:ZOe,sc_everyN_seconds:QOe,sc_every_dates:eDe,sc_every_dow:tDe,sc_every_dows:nDe,sc_every_hours:oDe,sc_every_minutes:rDe,sc_every_months:aDe,sc_every_seconds:sDe,sc_from:iDe,sc_hours:lDe,sc_interval:cDe,sc_intervalBetween:dDe,sc_invalid_cron:uDe,sc_minutes:pDe,sc_months:hDe,sc_once:fDe,sc_period:mDe,sc_seconds:gDe,sc_simple:_De,sc_specific:vDe,sc_specific_dates:yDe,sc_specific_dow:bDe,sc_specific_dows:wDe,sc_specific_hours:SDe,sc_specific_minutes:xDe,sc_specific_months:CDe,sc_specific_seconds:$De,sc_time:kDe,sc_to:EDe,sc_wizard:TDe,sch_all:ODe,sch_astroDay:DDe,sch_astroNight:ADe,sch_astro_dawn:MDe,sch_astro_dusk:NDe,sch_astro_goldenHour:jDe,sch_astro_goldenHourEnd:zDe,sch_astro_nadir:RDe,sch_astro_nauticalDawn:IDe,sch_astro_nauticalDusk:LDe,sch_astro_night:FDe,sch_astro_nightEnd:PDe,sch_astro_solarNoon:BDe,sch_astro_sunrise:HDe,sch_astro_sunriseEnd:UDe,sch_astro_sunset:WDe,sch_astro_sunsetStart:VDe,sch_at:GDe,sch_desc_atTime:qDe,sch_desc_everyDay:XDe,sch_desc_everyHour:JDe,sch_desc_everyMinute:YDe,sch_desc_everyMonth:KDe,sch_desc_everyNDay:ZDe,sch_desc_everyNHours:QDe,sch_desc_everyNMinutes:e4e,sch_desc_everyNMonths:t4e,sch_desc_everyNWeeks:n4e,sch_desc_everyNYears:o4e,sch_desc_everyWeek:r4e,sch_desc_everyYear:a4e,sch_desc_intervalFromTo:s4e,sch_desc_never:i4e,sch_desc_onDate:l4e,sch_desc_onDates:c4e,sch_desc_onEveryDate:d4e,sch_desc_onMonth:u4e,sch_desc_onMonths:p4e,sch_desc_onWeekday:h4e,sch_desc_onWeekdays:f4e,sch_desc_onWeekends:m4e,sch_desc_onWorkdays:g4e,sch_desc_onceInPast:_4e,sch_desc_once_on:v4e,sch_desc_validFrom:y4e,sch_desc_validFromTo:b4e,sch_desc_validTo:w4e,sch_every:S4e,sch_exactTime:x4e,sch_from:C4e,sch_fromTo:$4e,sch_intervalTime:k4e,sch_invert:E4e,sch_no_one:T4e,sch_on:O4e,sch_period:D4e,sch_periodDaily:A4e,sch_periodDates:M4e,sch_periodDay:N4e,sch_periodEvery:j4e,sch_periodEveryDay:z4e,sch_periodEveryMonth:R4e,sch_periodEveryWeek:I4e,sch_periodEveryYear:L4e,sch_periodHours:F4e,sch_periodMinutes:P4e,sch_periodMonth:B4e,sch_periodMonthly:H4e,sch_periodOnce:U4e,sch_periodSpecificMonths:W4e,sch_periodWeek:V4e,sch_periodWeekdays:G4e,sch_periodWeekend:q4e,sch_periodWeekly:X4e,sch_periodWorkdays:J4e,sch_periodYear:Y4e,sch_periodYearly:K4e,sch_specificTime:Z4e,sch_time:Q4e,sch_to:e5e,sch_valid:t5e,sch_validFrom:n5e,sch_validTo:o5e,sch_wholeDay:r5e,sch_yearEveryMonth:a5e},i5e="Dodać",l5e="Anuluj",c5e="Kategorie",d5e="Sprawdzony",u5e="Kasować",p5e="Blisko",h5e="Handlowy",f5e="Konfiguruj",m5e="Połączony",g5e="Skopiowano",_5e="Stwórz",v5e="Przyciąć",y5e="Delete",b5e="Usunąć",w5e="Wyrzucać",S5e="Niepowiązany",x5e="Błąd",C5e="Filtr",$5e="Piątek",k5e="Szerokość",E5e="Długość geograficzna",T5e="Wiadomość",O5e="Poniedziałek",D5e="Nazwa",A5e="Obiekty",M5e="Dobrze",N5e="Produkt",j5e="Powtarzać",z5e="Zastępować",R5e="Korzeń",I5e="Sobota",L5e="Zapisać",F5e="Wybrany",P5e="Stany",B5e="Niedziela",H5e="Czwartek",U5e="Znak czasu",W5e="Wtorek",V5e="Aktualizacja",G5e="Obowiązuje do",q5e="Wartość",X5e="Wersja",J5e="Środa",Y5e="Szerokość",K5e="Tak",Z5e="różne",Q5e="Każdy może czytać obiekt",e3e="Każdy może czytać stan",t3e="Każdy może pisać przedmiot",n3e="Każdy może pisać stan",o3e="Grupa może odczytać obiekt",r3e="Grupa może odczytać stan",a3e="Grupa może pisać obiekt",s3e="Grupa może pisać stan",i3e="Właściciel może czytać obiekt",l3e="Właściciel może odczytać stan",c3e="Właściciel może napisać obiekt",d3e="Właściciel może pisać stan",u3e="guziki",p3e="Zmieniony z",h3e="blisko",f3e="Utwórz stan logiczny",m3e="Utwórz kanał",g3e="Utwórz urządzenie",_3e="Utwórz stan liczbowy",v3e="Utwórz stan",y3e="Utwórz stan ciągu",b3e="d.",w3e="Ks",S3e="Mo",x3e="Sa",C3e="Su",$3e="Th",k3e="Tu",E3e="My",T3e="Tryb ekspercki",O3e="Wszystkie pliki",D3e="Audio",A3e="Kod/JSON",M3e="Obrazy",N3e="Tekst",j3e="Wideo",z3e="Ustawienia",R3e="bez",I3e="Funkcjonować",L3e="ID",F3e="Imię",P3e="Rola",B3e="Sala",H3e="Rodzaj",U3e="Nieprawidłowe ustawienia",W3e="Ostatnia zmiana",V3e="lokalnie",G3e="kwiecień",q3e="sierpień",X3e="grudzień",J3e="luty",Y3e="styczeń",K3e="lipiec",Z3e="czerwiec",Q3e="Mai",eAe="Zniszczyć",tAe="listopad",nAe="październik",oAe="wrzesień",rAe="kwiecień",aAe="sierpień",sAe="grudzień",iAe="luty",lAe="styczeń",cAe="lipiec",dAe="czerwiec",uAe="Mai",pAe="Zniszczyć",hAe="listopad",fAe="październik",mAe="wrzesień",gAe="Żaden",_Ae="Obiekt zmieniony przez",vAe="Obiekt ostatnio zmieniony o godz",yAe="Ustawienia z innego adaptera %s",bAe="Kod jakości",wAe="powtarzać",SAe="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",xAe="Stan zmieniony przez",CAe="Obiekt zmieniony z",$Ae="Znak czasu",kAe="Potwierdzon",EAe="Komentarz",TAe="Skopiuj wartość stanu",OAe="Własne ustawienia",DAe="Usuń obiekt",AAe="Edytuj obiekt",MAe="Edytuj wartość stanu",NAe="Z",jAe="Ostatnia zmiana",zAe="Jakość",RAe="Znak czasu",IAe="Użytkownik",LAe="Wartość",FAe="Wartość",PAe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",BAe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",HAe="CRON",UAe="Data",WAe="Daktyle",VAe="Dzień",GAe="Dzień tygodnia",qAe="Każdy",XAe="co N dni",JAe="w każdy N-ty dzień tygodnia",YAe="co N dnia tygodnia",KAe="co N godzin",ZAe="co N minut",QAe="co N miesięcy",eMe="co N sekund",tMe="codziennie",nMe="każdy dzień tygodnia",oMe="każdy dzień tygodnia",rMe="co godzinę",aMe="każda minuta",sMe="każdego miesiąca",iMe="każda sekunda",lMe="Od",cMe="godziny",dMe="Interwał",uMe="Interwał między",pMe="Nieprawidłowy CRON",hMe="Minuty",fMe="miesięcy",mMe="Pewnego razu",gMe="Kropka",_Me="sekundy",vMe="Prosty",yMe="Określony czas",bMe="konkretne daty",wMe="określone dni tygodnia",SMe="określony dzień tygodni",xMe="określone godziny",CMe="określone minuty",$Me="określone miesiące",kMe="określone sekundy",EMe="Czas",TMe="Do",OMe="Czarodziej",DMe="wszystko",AMe="Dzień Astro",MMe="Noc Astro",NMe="Świt",jMe="Zmierzch",zMe="złota godzina",RMe="Koniec złotej godziny",IMe="Nadir",LMe="Morski świt",FMe="Morski zmierzch",PMe="Noc",BMe="Koniec nocy",HMe="Południe słoneczne",UMe="wschód słońca",WMe="Koniec wschodu słońca",VMe="Zachód słońca",GMe="Początek zachodu słońca",qMe="w",XMe="na %s",JMe="codziennie",YMe="co godzinę",KMe="każda minuta",ZMe="każdego miesiąca",QMe="każdego dnia %s",e6e="co %s godzin",t6e="co %s minut",n6e="co %s miesięcy",o6e="co %s tygodni",r6e="co %s lat",a6e="co tydzień",s6e="każdego roku",i6e="od %s do %s",l6e="nigdy",c6e="na %s z %s",d6e="na %s i %s z",u6e="w każdą datę",p6e="%s",h6e="%s i %s",f6e="na %s",m6e="na %s i %s",g6e="w weekendy",_6e="w dni robocze",v6e="nie będzie już wykonywany, ponieważ start jest w przeszłości",y6e="na %s",b6e="z %s",w6e="Wykonaj od do",S6e="do %s",x6e="każdy",C6e="Określony czas",$6e="od",k6e="Od-do",E6e="Czas przerwy",T6e="odwracać",O6e="Żaden",D6e="na",A6e="Kropka",M6e="Codziennie",N6e="Daktyle",j6e="Dzień",z6e="Każdy",R6e="Codziennie",I6e="Każdego miesiąca",L6e="Co tydzień",F6e="Każdego roku",P6e="godziny",B6e="Minuty",H6e="miesiąc",U6e="Miesięczny",W6e="Pewnego razu",V6e="Określone miesiące",G6e="Tydzień",q6e="Dni powszednie",X6e="Weekend",J6e="Co tydzień",Y6e="Dni robocze",K6e="Rok",Z6e="Rocznie",Q6e="Określony czas",eNe="Czas",tNe="do",nNe="Ważny",oNe="od",rNe="do",aNe="Cały dzień",sNe="każdego miesiąca",iNe={"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_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:i5e,"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:l5e,"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:c5e,"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:d5e,ra_Clear:u5e,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:p5e,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:h5e,ra_Configure:f5e,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:m5e,ra_Copied:g5e,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:_5e,"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:v5e,"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:y5e,ra_Delete:b5e,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:w5e,ra_Disconnected:S5e,"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_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 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_Error:x5e,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:C5e,"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:$5e,"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_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 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:k5e,"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_Longitude:E5e,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:T5e,ra_Monday:O5e,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:D5e,"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 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_Objects:A5e,ra_Ok:M5e,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:N5e,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:j5e,ra_Replace:z5e,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:R5e,ra_Saturday:I5e,ra_Save:L5e,"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:F5e,"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_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:P5e,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:B5e,"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:H5e,ra_Timestamp:U5e,"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:W5e,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:V5e,"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:G5e,ra_Value:q5e,ra_Version:X5e,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:J5e,ra_Width:Y5e,ra_Yes:K5e,"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___different__:Z5e,ra_aclEveryone_read_object:Q5e,ra_aclEveryone_read_state:e3e,ra_aclEveryone_write_object:t3e,ra_aclEveryone_write_state:n3e,ra_aclGroup_read_object:o3e,ra_aclGroup_read_state:r3e,ra_aclGroup_write_object:a3e,ra_aclGroup_write_state:s3e,ra_aclOwner_read_object:i3e,ra_aclOwner_read_state:l3e,ra_aclOwner_write_object:c3e,ra_aclOwner_write_state:d3e,ra_buttons:u3e,ra_changedFrom:p3e,ra_close:h3e,ra_create_boolean_state:f3e,ra_create_channel:m3e,ra_create_device:g3e,ra_create_number_state:_3e,ra_create_state:v3e,ra_create_string_state:y3e,ra_daysShortText:b3e,ra_dow_Fr:w3e,ra_dow_Mo:S3e,ra_dow_Sa:x3e,ra_dow_Su:C3e,ra_dow_Th:$3e,ra_dow_Tu:k3e,ra_dow_We:E3e,ra_expertMode:T3e,ra_fileType_all:O3e,ra_fileType_audio:D3e,ra_fileType_code:A3e,ra_fileType_images:M3e,ra_fileType_txt:N3e,ra_fileType_video:j3e,"ra_fileType_video,":"Wideo",ra_filter_customs:z3e,ra_filter_customs_without:R3e,ra_filter_func:I3e,ra_filter_id:L3e,ra_filter_name:F3e,ra_filter_role:P3e,ra_filter_room:B3e,ra_filter_type:H3e,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:U3e,ra_lastChange:W3e,ra_locally:V3e,ra_month_Apr:G3e,ra_month_Aug:q3e,ra_month_Dec:X3e,ra_month_Feb:J3e,ra_month_Jan:Y3e,ra_month_Jul:K3e,ra_month_Jun:Z3e,ra_month_Mai:Q3e,ra_month_Mar:eAe,ra_month_Nov:tAe,ra_month_Oct:nAe,ra_month_Sep:oAe,ra_months_Apr:rAe,ra_months_Aug:aAe,ra_months_Dec:sAe,ra_months_Feb:iAe,ra_months_Jan:lAe,ra_months_Jul:cAe,ra_months_Jun:dAe,ra_months_Mai:uAe,ra_months_Mar:pAe,ra_months_Nov:hAe,ra_months_Oct:fAe,ra_months_Sep:mAe,ra_none:gAe,ra_object_changed_by:_Ae,ra_object_changed_by_user:vAe,ra_otherConfig:yAe,ra_qualityCode:bAe,ra_repeat:wAe,ra_select_folder_hint:SAe,ra_state_changed_by:xAe,ra_state_changed_from:CAe,ra_timestamp:$Ae,ra_tooltip_ack:kAe,ra_tooltip_comment:EAe,ra_tooltip_copyState:TAe,ra_tooltip_customConfig:OAe,ra_tooltip_deleteObject:DAe,ra_tooltip_editObject:AAe,ra_tooltip_editState:MAe,ra_tooltip_from:NAe,ra_tooltip_lc:jAe,ra_tooltip_quality:zAe,ra_tooltip_ts:RAe,ra_tooltip_user:IAe,ra_tooltip_value:LAe,"ra_use seconds":"użyj sekund",ra_val:FAe,"ra_via internet":"przez internet",ra_warning_every_minute:PAe,ra_warning_every_second:BAe,sc_cron:HAe,sc_date:UAe,sc_dates:WAe,sc_dow:VAe,sc_dows:GAe,sc_every:qAe,sc_everyN_dates:XAe,sc_everyN_dow:JAe,sc_everyN_dows:YAe,sc_everyN_hours:KAe,sc_everyN_minutes:ZAe,sc_everyN_months:QAe,sc_everyN_seconds:eMe,sc_every_dates:tMe,sc_every_dow:nMe,sc_every_dows:oMe,sc_every_hours:rMe,sc_every_minutes:aMe,sc_every_months:sMe,sc_every_seconds:iMe,sc_from:lMe,sc_hours:cMe,sc_interval:dMe,sc_intervalBetween:uMe,sc_invalid_cron:pMe,sc_minutes:hMe,sc_months:fMe,sc_once:mMe,sc_period:gMe,sc_seconds:_Me,sc_simple:vMe,sc_specific:yMe,sc_specific_dates:bMe,sc_specific_dow:wMe,sc_specific_dows:SMe,sc_specific_hours:xMe,sc_specific_minutes:CMe,sc_specific_months:$Me,sc_specific_seconds:kMe,sc_time:EMe,sc_to:TMe,sc_wizard:OMe,sch_all:DMe,sch_astroDay:AMe,sch_astroNight:MMe,sch_astro_dawn:NMe,sch_astro_dusk:jMe,sch_astro_goldenHour:zMe,sch_astro_goldenHourEnd:RMe,sch_astro_nadir:IMe,sch_astro_nauticalDawn:LMe,sch_astro_nauticalDusk:FMe,sch_astro_night:PMe,sch_astro_nightEnd:BMe,sch_astro_solarNoon:HMe,sch_astro_sunrise:UMe,sch_astro_sunriseEnd:WMe,sch_astro_sunset:VMe,sch_astro_sunsetStart:GMe,sch_at:qMe,sch_desc_atTime:XMe,sch_desc_everyDay:JMe,sch_desc_everyHour:YMe,sch_desc_everyMinute:KMe,sch_desc_everyMonth:ZMe,sch_desc_everyNDay:QMe,sch_desc_everyNHours:e6e,sch_desc_everyNMinutes:t6e,sch_desc_everyNMonths:n6e,sch_desc_everyNWeeks:o6e,sch_desc_everyNYears:r6e,sch_desc_everyWeek:a6e,sch_desc_everyYear:s6e,sch_desc_intervalFromTo:i6e,sch_desc_never:l6e,sch_desc_onDate:c6e,sch_desc_onDates:d6e,sch_desc_onEveryDate:u6e,sch_desc_onMonth:p6e,sch_desc_onMonths:h6e,sch_desc_onWeekday:f6e,sch_desc_onWeekdays:m6e,sch_desc_onWeekends:g6e,sch_desc_onWorkdays:_6e,sch_desc_onceInPast:v6e,sch_desc_once_on:y6e,sch_desc_validFrom:b6e,sch_desc_validFromTo:w6e,sch_desc_validTo:S6e,sch_every:x6e,sch_exactTime:C6e,sch_from:$6e,sch_fromTo:k6e,sch_intervalTime:E6e,sch_invert:T6e,sch_no_one:O6e,sch_on:D6e,sch_period:A6e,sch_periodDaily:M6e,sch_periodDates:N6e,sch_periodDay:j6e,sch_periodEvery:z6e,sch_periodEveryDay:R6e,sch_periodEveryMonth:I6e,sch_periodEveryWeek:L6e,sch_periodEveryYear:F6e,sch_periodHours:P6e,sch_periodMinutes:B6e,sch_periodMonth:H6e,sch_periodMonthly:U6e,sch_periodOnce:W6e,sch_periodSpecificMonths:V6e,sch_periodWeek:G6e,sch_periodWeekdays:q6e,sch_periodWeekend:X6e,sch_periodWeekly:J6e,sch_periodWorkdays:Y6e,sch_periodYear:K6e,sch_periodYearly:Z6e,sch_specificTime:Q6e,sch_time:eNe,sch_to:tNe,sch_valid:nNe,sch_validFrom:oNe,sch_validTo:rNe,sch_wholeDay:aNe,sch_yearEveryMonth:sNe},lNe="Додайте",cNe="Скасувати",dNe="Категорії",uNe="Перевірено",pNe="Видалити",hNe="Закрити",fNe="Комерційний",mNe="Налаштувати",gNe="Підключено",_Ne="Скопійовано",vNe="Створити",yNe="Урожай",bNe="Delete",wNe="Видалити",SNe="Відкинути",xNe="Відключено",CNe="Помилка",$Ne="фільтр",kNe="П'ятниця",ENe="Широта",TNe="Довгота",ONe="повідомлення",DNe="понеділок",ANe="Ім'я",MNe="Об'єкти",NNe="В порядку",jNe="Продукт",zNe="Повторіть",RNe="Замінити",INe="Корінь",LNe="Субота",FNe="зберегти",PNe="Вибране",BNe="держави",HNe="неділя",UNe="четвер",WNe="Мітка часу",VNe="вівторок",GNe="оновлення",qNe="Дійсний до",XNe="Значення",JNe="Версія",YNe="Середа",KNe="Ширина",ZNe="Так",QNe="інший",eje="Кожен може читати об'єкт",tje="Кожен може читати стан",nje="Кожен може написати об'єкт",oje="Кожен може написати стан",rje="Група може читати об'єкт",aje="Група може читати стан",sje="Група може писати об'єкт",ije="Група може писати стан",lje="Власник може читати об'єкт",cje="Власник може читати стан",dje="Власник може написати об'єкт",uje="Власник може написати стан",pje="кнопки",hje="Змінено з",fje="закрити",mje="Створіть логічний стан",gje="Створити канал",_je="Створити пристрій",vje="Створити номерний стан",yje="Створити состояние",bje="Створити рядковий стан",wje="днів",Sje="О",xje="пн",Cje="Sa",$je="Нд",kje="чт",Eje="вт",Tje="ми",Oje="Експертний режим",Dje="Всі файли",Aje="Аудіо",Mje="Код/JSON",Nje="Зображення",jje="текст",zje="відео",Rje="Налаштування",Ije="без",Lje="функція",Fje="ID",Pje="Ім'я",Bje="Роль",Hje="Кімната",Uje="Тип",Wje="Недійсні налаштування",Vje="Остання зміна",Gje="локально",qje="квіт",Xje="серп",Jje="груд",Yje="лютий",Kje="січня",Zje="лип",Qje="черв",eze="травень",tze="березень",nze="Листопад",oze="жовт",rze="вер",aze="квіт",sze="серп",ize="груд",lze="лютий",cze="січня",dze="лип",uze="черв",pze="травень",hze="березень",fze="Листопад",mze="жовт",gze="вер",_ze="немає",vze="Об'єкт змінено",yze="Об'єкт востаннє змінено о",bze="Налаштування з іншого адаптера %s",wze="Код якості",Sze="повторити",xze="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",Cze="Стан змінено на",$ze="Об'єкт змінено з",kze="Мітка часу",Eze="Визнано",Tze="коментар",Oze="Скопіюйте значення стану",Dze="Спеціальні налаштування",Aze="Видалити об'єкт",Mze="Редагувати об'єкт",Nze="Відредагуйте значення стану",jze="Від",zze="Востаннє змінено",Rze="якість",Ize="Позначка часу",Lze="Користувач",Fze="Значення",Pze="Значення",Bze="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",Hze="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",Uze="CRON",Wze="Дата",Vze="дати",Gze="День",qze="День тижня",Xze="кожен",Jze="кожні N днів",Yze="кожен N-й день тижня",Kze="кожні N днів тижня",Zze="кожні N годин",Qze="кожні N хвилин",eRe="кожні N місяців",tRe="кожні N секунд",nRe="кожен день",oRe="кожен день тижня",rRe="кожен день тижня",aRe="щогодини",sRe="кожну хвилину",iRe="щомісяця",lRe="кожна секунда",cRe="Від",dRe="години",uRe="Інтервал",pRe="Інтервал між",hRe="Недійсний CRON",fRe="хвилин",mRe="місяців",gRe="Один раз",_Re="Крапка",vRe="секунд",yRe="просто",bRe="Конкретний час",wRe="конкретні дати",SRe="конкретний день (дні) тижня",xRe="конкретний день тижня",CRe="конкретні години",$Re="конкретні хвилини",kRe="конкретні місяці",ERe="конкретні секунди",TRe="час",ORe="до",DRe="майстер",ARe="все",MRe="Астродень",NRe="Астро ніч",jRe="Світанок",zRe="Сутінки",RRe="Золота година",IRe="Кінець золотої години",LRe="Надір",FRe="Морський світанок",PRe="Морські сутінки",BRe="ніч",HRe="Кінець ночі",URe="Сонячний полудень",WRe="Схід сонця",VRe="Кінець сходу сонця",GRe="Захід сонця",qRe="Початок заходу сонця",XRe="в",JRe="в %s",YRe="кожен день",KRe="щогодини",ZRe="кожну хвилину",QRe="щомісяця",e8e="кожен %s день",t8e="кожні %s годин",n8e="кожні %s хвилин",o8e="кожні %s місяців",r8e="кожні %s тижнів",a8e="кожні %s років",s8e="щотижня",i8e="щороку",l8e="від %s до %s",c8e="ніколи",d8e="на %s з %s",u8e="на %s і %s з",p8e="на кожну дату",h8e="%s",f8e="%s і %s",m8e="на %s",g8e="на %s і %s",_8e="на вихідних",v8e="в робочі дні",y8e="більше не виконуватиметься, оскільки запуск у минулому",b8e="на %s",w8e="від %s",S8e="Виконати від до",x8e="до %s",C8e="кожен",$8e="Конкретний час",k8e="від",E8e="Від до",T8e="Час інтервалу",O8e="інвертувати",D8e="немає",A8e="на",M8e="Крапка",N8e="Щодня",j8e="дати",z8e="День",R8e="кожен",I8e="Кожен день",L8e="Щомісяця",F8e="Щотижня",P8e="Щороку",B8e="години",H8e="хвилин",U8e="місяць",W8e="Щомісяця",V8e="Один раз",G8e="Конкретні місяці",q8e="тиждень",X8e="будні",J8e="Вихідні",Y8e="Щотижня",K8e="робочі дні",Z8e="рік",Q8e="щорічно",e9e="Конкретний час",t9e="час",n9e="до",o9e="Дійсний",r9e="від",a9e="до",s9e="Цілий день",i9e="щомісяця",l9e={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:lNe,"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:cNe,"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:dNe,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:uNe,ra_Clear:pNe,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:hNe,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:fNe,ra_Configure:mNe,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:gNe,ra_Copied:_Ne,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:vNe,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:yNe,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:bNe,ra_Delete:wNe,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:SNe,ra_Disconnected:xNe,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:CNe,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:$Ne,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:kNe,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:ENe,"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_Longitude:TNe,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:ONe,ra_Monday:DNe,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:ANe,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:MNe,ra_Ok:NNe,"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 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_Private certificate":"Приватний сертифікат",ra_Product:jNe,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:zNe,ra_Replace:RNe,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:INe,ra_Saturday:LNe,ra_Save:FNe,"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:PNe,"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_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:BNe,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:HNe,"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:UNe,ra_Timestamp:WNe,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:VNe,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:GNe,"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:qNe,ra_Value:XNe,ra_Version:JNe,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:YNe,ra_Width:KNe,ra_Yes:ZNe,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:QNe,ra_aclEveryone_read_object:eje,ra_aclEveryone_read_state:tje,ra_aclEveryone_write_object:nje,ra_aclEveryone_write_state:oje,ra_aclGroup_read_object:rje,ra_aclGroup_read_state:aje,ra_aclGroup_write_object:sje,ra_aclGroup_write_state:ije,ra_aclOwner_read_object:lje,ra_aclOwner_read_state:cje,ra_aclOwner_write_object:dje,ra_aclOwner_write_state:uje,ra_buttons:pje,ra_changedFrom:hje,ra_close:fje,ra_create_boolean_state:mje,ra_create_channel:gje,ra_create_device:_je,ra_create_number_state:vje,ra_create_state:yje,ra_create_string_state:bje,ra_daysShortText:wje,ra_dow_Fr:Sje,ra_dow_Mo:xje,ra_dow_Sa:Cje,ra_dow_Su:$je,ra_dow_Th:kje,ra_dow_Tu:Eje,ra_dow_We:Tje,ra_expertMode:Oje,ra_fileType_all:Dje,ra_fileType_audio:Aje,ra_fileType_code:Mje,ra_fileType_images:Nje,ra_fileType_txt:jje,ra_fileType_video:zje,"ra_fileType_video,":"відео",ra_filter_customs:Rje,ra_filter_customs_without:Ije,ra_filter_func:Lje,ra_filter_id:Fje,ra_filter_name:Pje,ra_filter_role:Bje,ra_filter_room:Hje,ra_filter_type:Uje,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:Wje,ra_lastChange:Vje,ra_locally:Gje,ra_month_Apr:qje,ra_month_Aug:Xje,ra_month_Dec:Jje,ra_month_Feb:Yje,ra_month_Jan:Kje,ra_month_Jul:Zje,ra_month_Jun:Qje,ra_month_Mai:eze,ra_month_Mar:tze,ra_month_Nov:nze,ra_month_Oct:oze,ra_month_Sep:rze,ra_months_Apr:aze,ra_months_Aug:sze,ra_months_Dec:ize,ra_months_Feb:lze,ra_months_Jan:cze,ra_months_Jul:dze,ra_months_Jun:uze,ra_months_Mai:pze,ra_months_Mar:hze,ra_months_Nov:fze,ra_months_Oct:mze,ra_months_Sep:gze,ra_none:_ze,ra_object_changed_by:vze,ra_object_changed_by_user:yze,ra_otherConfig:bze,ra_qualityCode:wze,ra_repeat:Sze,ra_select_folder_hint:xze,ra_state_changed_by:Cze,ra_state_changed_from:$ze,ra_timestamp:kze,ra_tooltip_ack:Eze,ra_tooltip_comment:Tze,ra_tooltip_copyState:Oze,ra_tooltip_customConfig:Dze,ra_tooltip_deleteObject:Aze,ra_tooltip_editObject:Mze,ra_tooltip_editState:Nze,ra_tooltip_from:jze,ra_tooltip_lc:zze,ra_tooltip_quality:Rze,ra_tooltip_ts:Ize,ra_tooltip_user:Lze,ra_tooltip_value:Fze,"ra_use seconds":"використовуйте секунди",ra_val:Pze,"ra_via internet":"через інтернет",ra_warning_every_minute:Bze,ra_warning_every_second:Hze,sc_cron:Uze,sc_date:Wze,sc_dates:Vze,sc_dow:Gze,sc_dows:qze,sc_every:Xze,sc_everyN_dates:Jze,sc_everyN_dow:Yze,sc_everyN_dows:Kze,sc_everyN_hours:Zze,sc_everyN_minutes:Qze,sc_everyN_months:eRe,sc_everyN_seconds:tRe,sc_every_dates:nRe,sc_every_dow:oRe,sc_every_dows:rRe,sc_every_hours:aRe,sc_every_minutes:sRe,sc_every_months:iRe,sc_every_seconds:lRe,sc_from:cRe,sc_hours:dRe,sc_interval:uRe,sc_intervalBetween:pRe,sc_invalid_cron:hRe,sc_minutes:fRe,sc_months:mRe,sc_once:gRe,sc_period:_Re,sc_seconds:vRe,sc_simple:yRe,sc_specific:bRe,sc_specific_dates:wRe,sc_specific_dow:SRe,sc_specific_dows:xRe,sc_specific_hours:CRe,sc_specific_minutes:$Re,sc_specific_months:kRe,sc_specific_seconds:ERe,sc_time:TRe,sc_to:ORe,sc_wizard:DRe,sch_all:ARe,sch_astroDay:MRe,sch_astroNight:NRe,sch_astro_dawn:jRe,sch_astro_dusk:zRe,sch_astro_goldenHour:RRe,sch_astro_goldenHourEnd:IRe,sch_astro_nadir:LRe,sch_astro_nauticalDawn:FRe,sch_astro_nauticalDusk:PRe,sch_astro_night:BRe,sch_astro_nightEnd:HRe,sch_astro_solarNoon:URe,sch_astro_sunrise:WRe,sch_astro_sunriseEnd:VRe,sch_astro_sunset:GRe,sch_astro_sunsetStart:qRe,sch_at:XRe,sch_desc_atTime:JRe,sch_desc_everyDay:YRe,sch_desc_everyHour:KRe,sch_desc_everyMinute:ZRe,sch_desc_everyMonth:QRe,sch_desc_everyNDay:e8e,sch_desc_everyNHours:t8e,sch_desc_everyNMinutes:n8e,sch_desc_everyNMonths:o8e,sch_desc_everyNWeeks:r8e,sch_desc_everyNYears:a8e,sch_desc_everyWeek:s8e,sch_desc_everyYear:i8e,sch_desc_intervalFromTo:l8e,sch_desc_never:c8e,sch_desc_onDate:d8e,sch_desc_onDates:u8e,sch_desc_onEveryDate:p8e,sch_desc_onMonth:h8e,sch_desc_onMonths:f8e,sch_desc_onWeekday:m8e,sch_desc_onWeekdays:g8e,sch_desc_onWeekends:_8e,sch_desc_onWorkdays:v8e,sch_desc_onceInPast:y8e,sch_desc_once_on:b8e,sch_desc_validFrom:w8e,sch_desc_validFromTo:S8e,sch_desc_validTo:x8e,sch_every:C8e,sch_exactTime:$8e,sch_from:k8e,sch_fromTo:E8e,sch_intervalTime:T8e,sch_invert:O8e,sch_no_one:D8e,sch_on:A8e,sch_period:M8e,sch_periodDaily:N8e,sch_periodDates:j8e,sch_periodDay:z8e,sch_periodEvery:R8e,sch_periodEveryDay:I8e,sch_periodEveryMonth:L8e,sch_periodEveryWeek:F8e,sch_periodEveryYear:P8e,sch_periodHours:B8e,sch_periodMinutes:H8e,sch_periodMonth:U8e,sch_periodMonthly:W8e,sch_periodOnce:V8e,sch_periodSpecificMonths:G8e,sch_periodWeek:q8e,sch_periodWeekdays:X8e,sch_periodWeekend:J8e,sch_periodWeekly:Y8e,sch_periodWorkdays:K8e,sch_periodYear:Z8e,sch_periodYearly:Q8e,sch_specificTime:e9e,sch_time:t9e,sch_to:n9e,sch_valid:o9e,sch_validFrom:r9e,sch_validTo:a9e,sch_wholeDay:s9e,sch_yearEveryMonth:i9e},c9e="附加",d9e="取消",u9e="类别",p9e="勾选",h9e="删除",f9e="关",m9e="商业的",g9e="配置",_9e="连接的",v9e="复制的",y9e="创建",b9e="庄稼",w9e="Delete",S9e="删除",x9e="丢弃",C9e="断开连接",$9e="错误",k9e="筛选",E9e="星期五",T9e="纬度",O9e="经度",D9e="信息",A9e="周一",M9e="姓名",N9e="对象",j9e="好",z9e="产品",R9e="重复",I9e="代替",L9e="根",F9e="周六",P9e="保存",B9e="已选",H9e="状态",U9e="星期日",W9e="周四",V9e="时间戳记",G9e="周二",q9e="更新资料",X9e="有效期至",J9e="值",Y9e="版本",K9e="周三",Z9e="宽度",Q9e="是的",eIe="不同的",tIe="每个人都可以阅读对象",nIe="每个人都可以阅读状态",oIe="每个人都可以写对象",rIe="每个人都可以写状态",aIe="组可以读取对象",sIe="群组可以读取状态",iIe="组可以写对象",lIe="组可以写状态",cIe="所有者可以读取对象",dIe="所有者可以读取状态",uIe="所有者可以写对象",pIe="所有者可以写状态",hIe="纽扣",fIe="更改为",mIe="关闭",gIe="创建布尔状态",_Ie="创建频道",vIe="创建设备",yIe="创建号码状态",bIe="创建状态",wIe="创建字符串状态",SIe="天",xIe="r",CIe="莫",$Ie="萨",kIe="苏",EIe="Th",TIe="Tu",OIe="我们",DIe="专家模式",AIe="所有文件",MIe="声音的",NIe="代码/JSON",jIe="图片",zIe="文本",RIe="视频",IIe="设定值",LIe="没有",FIe="功能",PIe="ID",BIe="名称",HIe="角色",UIe="房间",WIe="类型",VIe="无效的设定",GIe="最后一次变更",qIe="本地",XIe="4月",JIe="八月",YIe="十二月",KIe="二月",ZIe="简",QIe="七月",e7e="君",t7e="迈",n7e="三月",o7e="十一月",r7e="十月",a7e="九月",s7e="4月",i7e="八月",l7e="十二月",c7e="二月",d7e="简",u7e="七月",p7e="君",h7e="迈",f7e="三月",m7e="十一月",g7e="十月",_7e="九月",v7e="没有任何",y7e="物件变更者",b7e="对象上次更改时间为",w7e="来自其他适配器%s的设置",S7e="质量代码",x7e="重复",C7e="要选择文件夹,只需按住“shift”键单击文件夹即可。",$7e="状态由",k7e="对象已从更改",E7e="时间戳记",T7e="致谢国旗",O7e="评论",D7e="复制状态值",A7e="自定义设置",M7e="删除物件",N7e="编辑物件",j7e="编辑状态值",z7e="从",R7e="最后改变了",I7e="质量",L7e="时间戳",F7e="用户",P7e="值",B7e="值",H7e="警告:CRON 作业将在指定期间内每分钟运行一次!",U7e="警告:CRON 作业将在指定期间内每秒运行一次!",W7e="周期任务",V7e="日期",G7e="日",q7e="天",X7e="星期",J7e="每",Y7e="每N天",K7e="每周的第 N 天",Z7e="每周N天",Q7e="每N小时一次",eLe="每N分钟",tLe="每N个月",nLe="每N秒",oLe="每天",rLe="一周的每一天",aLe="一周的每一天",sLe="每小时",iLe="每分钟",lLe="每月",cLe="每秒",dLe="从",uLe="小时",pLe="间隔",hLe="间隔时间",fLe="无效的 CRON",mLe="分钟",gLe="月",_Le="一次",vLe="周期",yLe="秒",bLe="简单模式",wLe="特定的时间",SLe="特定的日子",xLe="一周中的特定日子",CLe="特定的一周",$Le="特定的小时",kLe="特定的分钟",ELe="特定的月份",TLe="特定的描述",OLe="时间",DLe="至",ALe="向导模式",MLe="全选",NLe="天文白天",jLe="天文夜晚",zLe="黎明",RLe="黄昏",ILe="黄金时段",LLe="黄金时段结束",FLe="天底",PLe="航海黎明",BLe="航海黄昏",HLe="夜晚",ULe="夜晚结束",WLe="正午",VLe="日出",GLe="日出结束",qLe="日落",XLe="日落开始",JLe="在",YLe="的%s",KLe="每天",ZLe="每小时",QLe="每分钟",eFe="每月",tFe="每%s天",nFe="每%s小时",oFe="每%s分钟",rFe="每%s月",aFe="每%s周",sFe="每%s年",iFe="每周",lFe="每年",cFe="从%s到%s",dFe="决不",uFe="在%s的%s上",pFe="在%s和%s上",hFe="在每天",fFe="%s",mFe="%s和%s",gFe="在%s上",_Fe="在%s和%s上",vFe="在周末",yFe="在工作日",bFe="将不再执行,因为起始时间已经是过去的时间了。",wFe="在%s上",SFe="来自%s",xFe="从执行到",CFe="到%s",$Fe="每",kFe="特定的时间",EFe="从",TFe="从到",OFe="间隔时间",DFe="倒置",AFe="取消全选",MFe="的",NFe="周期",jFe="每天",zFe="日期",RFe="天",IFe="每",LFe="每天",FFe="每月",PFe="每周",BFe="每年",HFe="小时",UFe="分钟",WFe="月",VFe="每月一次",GFe="一次",qFe="特定的月份",XFe="周",JFe="工作日",YFe="周末",KFe="每周",ZFe="工作日",QFe="年",ePe="每年",tPe="特定的时间",nPe="时间",oPe="至",rPe="生效",aPe="从",sPe="至",iPe="一整天",lPe="每月",cPe={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:c9e,"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:d9e,"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:u9e,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:p9e,ra_Clear:h9e,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:f9e,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:m9e,ra_Configure:g9e,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:_9e,ra_Copied:v9e,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:y9e,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:b9e,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:w9e,ra_Delete:S9e,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:x9e,ra_Disconnected:C9e,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:$9e,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:k9e,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:E9e,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:T9e,"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_Longitude:O9e,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:D9e,ra_Monday:A9e,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:M9e,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:N9e,ra_Ok:j9e,"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 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_Private certificate":"私有证书",ra_Product:z9e,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:R9e,ra_Replace:I9e,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:L9e,ra_Saturday:F9e,ra_Save:P9e,"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:B9e,"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_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:H9e,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:U9e,"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:W9e,ra_Timestamp:V9e,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:G9e,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:q9e,"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:X9e,ra_Value:J9e,ra_Version:Y9e,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:K9e,ra_Width:Z9e,ra_Yes:Q9e,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:eIe,ra_aclEveryone_read_object:tIe,ra_aclEveryone_read_state:nIe,ra_aclEveryone_write_object:oIe,ra_aclEveryone_write_state:rIe,ra_aclGroup_read_object:aIe,ra_aclGroup_read_state:sIe,ra_aclGroup_write_object:iIe,ra_aclGroup_write_state:lIe,ra_aclOwner_read_object:cIe,ra_aclOwner_read_state:dIe,ra_aclOwner_write_object:uIe,ra_aclOwner_write_state:pIe,ra_buttons:hIe,ra_changedFrom:fIe,ra_close:mIe,ra_create_boolean_state:gIe,ra_create_channel:_Ie,ra_create_device:vIe,ra_create_number_state:yIe,ra_create_state:bIe,ra_create_string_state:wIe,ra_daysShortText:SIe,ra_dow_Fr:xIe,ra_dow_Mo:CIe,ra_dow_Sa:$Ie,ra_dow_Su:kIe,ra_dow_Th:EIe,ra_dow_Tu:TIe,ra_dow_We:OIe,ra_expertMode:DIe,ra_fileType_all:AIe,ra_fileType_audio:MIe,ra_fileType_code:NIe,ra_fileType_images:jIe,ra_fileType_txt:zIe,ra_fileType_video:RIe,"ra_fileType_video,":"视频",ra_filter_customs:IIe,ra_filter_customs_without:LIe,ra_filter_func:FIe,ra_filter_id:PIe,ra_filter_name:BIe,ra_filter_role:HIe,ra_filter_room:UIe,ra_filter_type:WIe,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:VIe,ra_lastChange:GIe,ra_locally:qIe,ra_month_Apr:XIe,ra_month_Aug:JIe,ra_month_Dec:YIe,ra_month_Feb:KIe,ra_month_Jan:ZIe,ra_month_Jul:QIe,ra_month_Jun:e7e,ra_month_Mai:t7e,ra_month_Mar:n7e,ra_month_Nov:o7e,ra_month_Oct:r7e,ra_month_Sep:a7e,ra_months_Apr:s7e,ra_months_Aug:i7e,ra_months_Dec:l7e,ra_months_Feb:c7e,ra_months_Jan:d7e,ra_months_Jul:u7e,ra_months_Jun:p7e,ra_months_Mai:h7e,ra_months_Mar:f7e,ra_months_Nov:m7e,ra_months_Oct:g7e,ra_months_Sep:_7e,ra_none:v7e,ra_object_changed_by:y7e,ra_object_changed_by_user:b7e,ra_otherConfig:w7e,ra_qualityCode:S7e,ra_repeat:x7e,ra_select_folder_hint:C7e,ra_state_changed_by:$7e,ra_state_changed_from:k7e,ra_timestamp:E7e,ra_tooltip_ack:T7e,ra_tooltip_comment:O7e,ra_tooltip_copyState:D7e,ra_tooltip_customConfig:A7e,ra_tooltip_deleteObject:M7e,ra_tooltip_editObject:N7e,ra_tooltip_editState:j7e,ra_tooltip_from:z7e,ra_tooltip_lc:R7e,ra_tooltip_quality:I7e,ra_tooltip_ts:L7e,ra_tooltip_user:F7e,ra_tooltip_value:P7e,"ra_use seconds":"用秒",ra_val:B7e,"ra_via internet":"通过互联网",ra_warning_every_minute:H7e,ra_warning_every_second:U7e,sc_cron:W7e,sc_date:V7e,sc_dates:G7e,sc_dow:q7e,sc_dows:X7e,sc_every:J7e,sc_everyN_dates:Y7e,sc_everyN_dow:K7e,sc_everyN_dows:Z7e,sc_everyN_hours:Q7e,sc_everyN_minutes:eLe,sc_everyN_months:tLe,sc_everyN_seconds:nLe,sc_every_dates:oLe,sc_every_dow:rLe,sc_every_dows:aLe,sc_every_hours:sLe,sc_every_minutes:iLe,sc_every_months:lLe,sc_every_seconds:cLe,sc_from:dLe,sc_hours:uLe,sc_interval:pLe,sc_intervalBetween:hLe,sc_invalid_cron:fLe,sc_minutes:mLe,sc_months:gLe,sc_once:_Le,sc_period:vLe,sc_seconds:yLe,sc_simple:bLe,sc_specific:wLe,sc_specific_dates:SLe,sc_specific_dow:xLe,sc_specific_dows:CLe,sc_specific_hours:$Le,sc_specific_minutes:kLe,sc_specific_months:ELe,sc_specific_seconds:TLe,sc_time:OLe,sc_to:DLe,sc_wizard:ALe,sch_all:MLe,sch_astroDay:NLe,sch_astroNight:jLe,sch_astro_dawn:zLe,sch_astro_dusk:RLe,sch_astro_goldenHour:ILe,sch_astro_goldenHourEnd:LLe,sch_astro_nadir:FLe,sch_astro_nauticalDawn:PLe,sch_astro_nauticalDusk:BLe,sch_astro_night:HLe,sch_astro_nightEnd:ULe,sch_astro_solarNoon:WLe,sch_astro_sunrise:VLe,sch_astro_sunriseEnd:GLe,sch_astro_sunset:qLe,sch_astro_sunsetStart:XLe,sch_at:JLe,sch_desc_atTime:YLe,sch_desc_everyDay:KLe,sch_desc_everyHour:ZLe,sch_desc_everyMinute:QLe,sch_desc_everyMonth:eFe,sch_desc_everyNDay:tFe,sch_desc_everyNHours:nFe,sch_desc_everyNMinutes:oFe,sch_desc_everyNMonths:rFe,sch_desc_everyNWeeks:aFe,sch_desc_everyNYears:sFe,sch_desc_everyWeek:iFe,sch_desc_everyYear:lFe,sch_desc_intervalFromTo:cFe,sch_desc_never:dFe,sch_desc_onDate:uFe,sch_desc_onDates:pFe,sch_desc_onEveryDate:hFe,sch_desc_onMonth:fFe,sch_desc_onMonths:mFe,sch_desc_onWeekday:gFe,sch_desc_onWeekdays:_Fe,sch_desc_onWeekends:vFe,sch_desc_onWorkdays:yFe,sch_desc_onceInPast:bFe,sch_desc_once_on:wFe,sch_desc_validFrom:SFe,sch_desc_validFromTo:xFe,sch_desc_validTo:CFe,sch_every:$Fe,sch_exactTime:kFe,sch_from:EFe,sch_fromTo:TFe,sch_intervalTime:OFe,sch_invert:DFe,sch_no_one:AFe,sch_on:MFe,sch_period:NFe,sch_periodDaily:jFe,sch_periodDates:zFe,sch_periodDay:RFe,sch_periodEvery:IFe,sch_periodEveryDay:LFe,sch_periodEveryMonth:FFe,sch_periodEveryWeek:PFe,sch_periodEveryYear:BFe,sch_periodHours:HFe,sch_periodMinutes:UFe,sch_periodMonth:WFe,sch_periodMonthly:VFe,sch_periodOnce:GFe,sch_periodSpecificMonths:qFe,sch_periodWeek:XFe,sch_periodWeekdays:JFe,sch_periodWeekend:YFe,sch_periodWeekly:KFe,sch_periodWorkdays:ZFe,sch_periodYear:QFe,sch_periodYearly:ePe,sch_specificTime:tPe,sch_time:nPe,sch_to:oPe,sch_valid:rPe,sch_validFrom:aPe,sch_validTo:sPe,sch_wholeDay:iPe,sch_yearEveryMonth:lPe},dPe={en:QQ,de:eae,ru:tde,pt:nme,nl:obe,fr:rxe,it:aEe,es:s5e,pl:iNe,uk:l9e,"zh-cn":cPe},uPe=` html { height: 100%; } @@ -552,9 +552,9 @@ body { background-color: #58c458; } } -`;class ds extends Mu{constructor(n,o){const r=n.Connection||(o==null?void 0:o.Connection)||Vr;if(!window.document.getElementById("generic-app-iobroker-component")){const c=window.document.createElement("style");c.setAttribute("id","generic-app-iobroker-component"),c.innerHTML=dPe,window.document.head.appendChild(c)}if(!ds.isWeb()&&window.io&&window.location.port==="3000")try{const c=new window.SocketClient;delete window.io,window.io=c}catch{}super(n);F(this,"socket");F(this,"instance");F(this,"adapterName");F(this,"instanceId");F(this,"newReact");F(this,"encryptedFields");F(this,"sentryDSN");F(this,"alertDialogRendered");F(this,"_secret");F(this,"_systemConfig");F(this,"savedNative");F(this,"common",null);F(this,"sentryStarted",!1);F(this,"sentryInited",!1);F(this,"resizeTimer",null);F(this,"onSystemConfigChanged",(n,o)=>{var r,a;o&&n==="system.config"&&(this.socket.systemLang!==(o==null?void 0:o.common.language)&&(this.socket.systemLang=(o==null?void 0:o.common.language)||"en",E.setLanguage(this.socket.systemLang)),((r=this._systemConfig)==null?void 0:r.expertMode)!==!!((a=o==null?void 0:o.common)!=null&&a.expertMode)?(this._systemConfig=(o==null?void 0:o.common)||{},this.setState({expertMode:this.getExpertMode()})):this._systemConfig=(o==null?void 0:o.common)||{})});F(this,"onReceiveMessage",n=>{if(n!=null&&n.data)if(n.data==="updateTheme"){const o=V.getThemeName();V.setThemeName(V.getThemeName());const r=this.createTheme(o);this.setState({theme:r,themeName:this.getThemeName(r),themeType:this.getThemeType(r)},()=>{this.props.onThemeChange&&this.props.onThemeChange(o),this.onThemeChanged&&this.onThemeChanged(o)})}else n.data==="updateExpertMode"?this.onToggleExpertMode&&this.onToggleExpertMode(this.getExpertMode()):n.data!=="chartReady"&&console.debug(`Received unknown message: "${JSON.stringify(n.data)}". May be it will be processed later`)});F(this,"onResize",()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.resizeTimer=null,this.setState({width:ds.getWidth()})},200)});UX();const a=(window.location.search||"").replace(/^\?/,"").replace(/#.*$/,""),s={};a.trim().split("&").filter(c=>c.trim()).forEach(c=>{const h=c.split("=");s[h[0]]=h.length===2?h[1]:!0,s[h[0]]==="true"?s[h[0]]=!0:s[h[0]]==="false"&&(s[h[0]]=!1)}),this.instance=(o==null?void 0:o.instance)??n.instance??(s.instance!==void 0?parseInt(s.instance,10)||0:parseInt(window.location.search.slice(1),10)||0);const i=window.location.pathname.split("/");this.adapterName=(o==null?void 0:o.adapterName)||n.adapterName||window.adapterName||i[i.length-2]||"iot",this.instanceId=`system.adapter.${this.adapterName}.${this.instance}`,this.newReact=s.newReact===!0;const l=Mu.getLocation();l.tab=l.tab||(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"";const d=this.createTheme();this.state=Object.assign(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:d,themeName:this.getThemeName(d),themeType:this.getThemeType(d),bottomButtons:(o&&o.bottomButtons)===!1?!1:(n==null?void 0:n.bottomButtons)!==!1,width:ds.getWidth(),confirmClose:!1,_alert:!1,_alertType:"info",_alertMessage:""});const u=cPe;o!=null&&o.translations?Object.keys(o.translations).forEach(c=>{o.translations&&(u[c]=Object.assign(u[c],o.translations[c]||{}))}):n.translations&&Object.keys(n.translations).forEach(c=>{n.translations&&(u[c]=Object.assign(u[c],n.translations[c]||{}))}),E.setTranslations(u),this.savedNative={},this.encryptedFields=n.encryptedFields||(o==null?void 0:o.encryptedFields)||[],this.sentryDSN=o&&o.sentryDSN||n.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.oldAlert=window.alert,window.alert=c=>{if(!this.alertDialogRendered){window.oldAlert(c);return}c&&c.toString().toLowerCase().includes("error")?(console.error(c),this.showAlert(c.toString(),"error")):(console.log(c),this.showAlert(c.toString(),"info"))},this.socket=new r({...(n==null?void 0:n.socket)||(o==null?void 0:o.socket),name:this.adapterName,doNotLoadAllObjects:o==null?void 0:o.doNotLoadAllObjects,onProgress:c=>{c===Wr.CONNECTING?this.setState({connected:!1}):c===Wr.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:()=>{E.setLanguage(this.socket.systemLang),this.socket.subscribeObject("system.config",this.onSystemConfigChanged).then(()=>this.getSystemConfig()).then(c=>(this._secret=typeof c<"u"&&c.native&&c.native.secret||"Zgfr56gFe87jJOM",this._systemConfig=(c==null?void 0:c.common)||{},this.socket.getObject(this.instanceId))).then(async c=>{var S,_;let h;const f=c,v=((S=await this.socket.getState(`${this.instanceId}.plugins.sentry.enabled`))==null?void 0:S.val)!==!1&&((_=this._systemConfig)==null?void 0:_.diag)!=="none"&&(f==null?void 0:f.common)&&f.common.name&&f.common.version&&!f.common.disableDataReporting&&window.location.host!=="localhost:3000";!this.sentryStarted&&this.sentryDSN&&v&&(this.sentryStarted=!0,Gq({dsn:this.sentryDSN,release:`iobroker.${f.common.name}@${f.common.version}`,integrations:[V5()]}),console.log("Sentry initialized")),!this.sentryInited&&v&&(this.sentryInited=!0,h=this.socket.getObject("system.meta.uuid").then(b=>{b&&b.native&&b.native.uuid&&ua().setUser({id:b.native.uuid})})),h=h instanceof Promise?h:Promise.resolve(),h.then(()=>{f?(this.common=f==null?void 0:f.common,this.onPrepareLoad(f.native,f.encryptedNative),this.savedNative=JSON.parse(JSON.stringify(f.native)),this.setState({native:f.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(c=>window.alert(`Cannot settings: ${c}`))},onError:c=>{console.error(c),this.showError(c)}})}static isWeb(){return window.socketUrl!==void 0}showAlert(n,o){o!=="error"&&o!=="warning"&&o!=="info"&&o!=="success"&&(o="info"),this.setState({_alert:!0,_alertType:o,_alertMessage:n})}renderAlertSnackbar(){return this.alertDialogRendered=!0,p.createElement(lp,{style:this.state._alertType==="error"?{backgroundColor:"#f44336"}:this.state._alertType==="success"?{backgroundColor:"#4caf50"}:void 0,open:this.state._alert,autoHideDuration:6e3,onClose:(n,o)=>o!=="clickaway"&&this.setState({_alert:!1}),message:this.state._alertMessage})}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),super.componentWillUnmount()}static getWidth(){const n={xs:0,sm:600,md:960,lg:1280,xl:1920},o=window.innerWidth;return Object.keys(n).reverse().find(s=>o>=n[s])||"xs"}createTheme(n){return DU(V.getThemeName(n))}getThemeName(n){return n.name}getThemeType(n){return n.palette.mode}onThemeChanged(n){}onToggleExpertMode(n){}toggleTheme(n){const o=this.state.themeName;if(n=n||(o==="dark"||o==="blue"||o==="colored"?"light":"dark"),n!==o){V.setThemeName(n);const r=this.createTheme(n);this.setState({theme:r,themeName:this.getThemeName(r),themeType:this.getThemeType(r)},()=>{this.props.onThemeChange&&this.props.onThemeChange(n||"light"),this.onThemeChanged&&this.onThemeChanged(n||"light")})}}getSystemConfig(){return this.socket.getSystemConfig()}getExpertMode(){var n;return window.sessionStorage.getItem("App.expertMode")==="true"||!!((n=this._systemConfig)!=null&&n.expertMode)}onConnectionReady(){}encrypt(n){let o="";if(this._secret)for(let r=0;r{n[o]&&(n[o]=this.encrypt(n[o]))}),!0}onPrepareLoad(n,o){this.encryptedFields&&this.encryptedFields.forEach(r=>{n[r]&&(n[r]=this.decrypt(n[r]))}),o&&o.forEach(r=>{this.encryptedFields=this.encryptedFields||[],!this.encryptedFields.includes(r)&&this.encryptedFields.push(r),n[r]&&(n[r]=this.decrypt(n[r]))})}async getExtendableInstances(){try{const n=await this.socket.getObjectViewSystem("instance","system.adapter.","system.adapter.香");return Object.values(n).filter(o=>{var r;return!!((r=o==null?void 0:o.common)!=null&&r.webExtendable)})}catch{return[]}}async getIpAddresses(n){var s;const o=await this.socket.getHostByIp(n||((s=this.common)==null?void 0:s.host)||""),r=o.find(i=>i.address==="0.0.0.0");r&&(r.name=`[IPv4] 0.0.0.0 - ${E.t("ra_Listen on all IPs")}`);const a=o.find(i=>i.address==="::");return a&&(a.name=`[IPv4] :: - ${E.t("ra_Listen on all IPs")}`),o}onSave(n){let o;if(this.state.isConfigurationError){this.setState({errorText:this.state.isConfigurationError});return}this.socket.getObject(this.instanceId).then(r=>{o=r||{};for(const a in this.state.native)Object.prototype.hasOwnProperty.call(this.state.native,a)&&(this.state.native[a]===null?o.native[a]=null:this.state.native[a]!==void 0?o.native[a]=JSON.parse(JSON.stringify(this.state.native[a])):delete o.native[a]);if(this.state.common)for(const a in this.state.common)this.state.common[a]===null?o.common[a]=null:this.state.common[a]!==void 0?o.common[a]=JSON.parse(JSON.stringify(this.state.common[a])):delete o.common[a];return this.onPrepareSave(o.native)!==!1?this.socket.setObject(this.instanceId,o):Promise.reject(new Error("Invalid configuration"))}).then(()=>{this.savedNative=o.native,globalThis.changed=!1;try{window.parent.postMessage("nochange","*")}catch{}this.setState({changed:!1}),n&&ds.onClose()}).catch(r=>console.error(`Cannot save configuration: ${r}`))}renderToast(){var n;return this.state.toast?p.createElement(lp,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:p.createElement("span",{id:"message-id"},this.state.toast),action:[p.createElement(ue,{key:"close","aria-label":"Close",color:"inherit",className:(n=this.props.classes)==null?void 0:n.close,onClick:()=>this.setState({toast:""}),size:"large"},p.createElement(Dt,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?p.createElement(u3,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}getIsChanged(n){n=n||this.state.native;const o=JSON.stringify(n)!==JSON.stringify(this.savedNative);return globalThis.changed=o,o}onLoadConfig(n){JSON.stringify(n)!==JSON.stringify(this.state.native)&&this.setState({native:n,changed:this.getIsChanged(n)})}setConfigurationError(n){this.state.isConfigurationError!==n&&this.setState({isConfigurationError:n})}renderSaveCloseButtons(){return!this.state.confirmClose&&!this.state.bottomButtons?null:p.createElement(p.Fragment,null,this.state.bottomButtons?p.createElement(KX,{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:n=>this.onSave(n),onClose:()=>{this.state.changed?this.setState({confirmClose:!0}):ds.onClose()}}):null,this.state.confirmClose?p.createElement(d3,{title:E.t("ra_Please confirm"),text:E.t("ra_Some data are not stored. Discard?"),ok:E.t("ra_Discard"),cancel:E.t("ra_Cancel"),onClose:n=>this.setState({confirmClose:!1},()=>n&&ds.onClose())}):null)}_updateNativeValue(n,o,r){typeof o!="object"&&(o=o.split("."));const a=o.shift()||"";if(!o.length)return r&&typeof r=="object"?JSON.stringify(n[a])!==JSON.stringify(r)?(n[a]=r,!0):!1:n[a]!==r?(n[a]=r,!0):!1;if(n[a]=n[a]||{},typeof n[a]!="object")throw new Error(`attribute ${a} is no object, but ${typeof n[a]}`);return this._updateNativeValue(n[a],o,r)}updateNativeValue(n,o,r){const a=JSON.parse(JSON.stringify(this.state.native));if(this._updateNativeValue(a,n,o)){const s=this.getIsChanged(a);if(s!==this.state.changed)try{window.parent.postMessage(s?"change":"nochange","*")}catch{}this.setState({native:a,changed:s},r)}}showError(n){this.setState({errorText:n})}showToast(n){this.setState({toast:n})}renderHelperDialogs(){return p.createElement(p.Fragment,null,this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar())}render(){return this.state.loaded?p.createElement("div",{className:"App"},this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar()):p.createElement(c3,{themeType:this.state.themeType})}}var nr={},Bp={},uPe=typeof Zp=="object"&&Zp&&Zp.Object===Object&&Zp,p3=uPe,pPe=p3,hPe=typeof self=="object"&&self&&self.Object===Object&&self,fPe=pPe||hPe||Function("return this")(),pa=fPe,mPe=pa,gPe=mPe.Symbol,Hp=gPe,f$=Hp,h3=Object.prototype,_Pe=h3.hasOwnProperty,vPe=h3.toString,Rd=f$?f$.toStringTag:void 0;function yPe(e){var t=_Pe.call(e,Rd),n=e[Rd];try{e[Rd]=void 0;var o=!0}catch{}var r=vPe.call(e);return o&&(t?e[Rd]=n:delete e[Rd]),r}var bPe=yPe,wPe=Object.prototype,SPe=wPe.toString;function xPe(e){return SPe.call(e)}var CPe=xPe,m$=Hp,$Pe=bPe,kPe=CPe,EPe="[object Null]",TPe="[object Undefined]",g$=m$?m$.toStringTag:void 0;function OPe(e){return e==null?e===void 0?TPe:EPe:g$&&g$ in Object(e)?$Pe(e):kPe(e)}var Qi=OPe,DPe=Array.isArray,Nr=DPe;function APe(e){return e!=null&&typeof e=="object"}var Xa=APe,MPe=Qi,NPe=Nr,jPe=Xa,zPe="[object String]";function RPe(e){return typeof e=="string"||!NPe(e)&&jPe(e)&&MPe(e)==zPe}var IPe=RPe;function LPe(e){return function(t,n,o){for(var r=-1,a=Object(t),s=o(t),i=s.length;i--;){var l=s[e?i:++r];if(n(a[l],l,a)===!1)break}return t}}var FPe=LPe,PPe=FPe,BPe=PPe(),HPe=BPe;function UPe(e,t){for(var n=-1,o=Array(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=aBe}var Sw=sBe,iBe=Qi,lBe=Sw,cBe=Xa,dBe="[object Arguments]",uBe="[object Array]",pBe="[object Boolean]",hBe="[object Date]",fBe="[object Error]",mBe="[object Function]",gBe="[object Map]",_Be="[object Number]",vBe="[object Object]",yBe="[object RegExp]",bBe="[object Set]",wBe="[object String]",SBe="[object WeakMap]",xBe="[object ArrayBuffer]",CBe="[object DataView]",$Be="[object Float32Array]",kBe="[object Float64Array]",EBe="[object Int8Array]",TBe="[object Int16Array]",OBe="[object Int32Array]",DBe="[object Uint8Array]",ABe="[object Uint8ClampedArray]",MBe="[object Uint16Array]",NBe="[object Uint32Array]",Ht={};Ht[$Be]=Ht[kBe]=Ht[EBe]=Ht[TBe]=Ht[OBe]=Ht[DBe]=Ht[ABe]=Ht[MBe]=Ht[NBe]=!0;Ht[dBe]=Ht[uBe]=Ht[xBe]=Ht[pBe]=Ht[CBe]=Ht[hBe]=Ht[fBe]=Ht[mBe]=Ht[gBe]=Ht[_Be]=Ht[vBe]=Ht[yBe]=Ht[bBe]=Ht[wBe]=Ht[SBe]=!1;function jBe(e){return cBe(e)&&lBe(e.length)&&!!Ht[iBe(e)]}var zBe=jBe;function RBe(e){return function(t){return e(t)}}var xw=RBe,km={exports:{}};km.exports;(function(e,t){var n=p3,o=t&&!t.nodeType&&t,r=o&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===o,s=a&&n.process,i=function(){try{var l=r&&r.require&&r.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=i})(km,km.exports);var Cw=km.exports,IBe=zBe,LBe=xw,v$=Cw,y$=v$&&v$.isTypedArray,FBe=y$?LBe(y$):IBe,_3=FBe,PBe=WPe,BBe=m3,HBe=Nr,UBe=ww,WBe=g3,VBe=_3,GBe=Object.prototype,qBe=GBe.hasOwnProperty;function XBe(e,t){var n=HBe(e),o=!n&&BBe(e),r=!n&&!o&&UBe(e),a=!n&&!o&&!r&&VBe(e),s=n||o||r||a,i=s?PBe(e.length,String):[],l=i.length;for(var d in e)(t||qBe.call(e,d))&&!(s&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||WBe(d,l)))&&i.push(d);return i}var v3=XBe,JBe=Object.prototype;function YBe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||JBe;return e===n}var $w=YBe;function KBe(e,t){return function(n){return e(t(n))}}var y3=KBe,ZBe=y3,QBe=ZBe(Object.keys,Object),eHe=QBe,tHe=$w,nHe=eHe,oHe=Object.prototype,rHe=oHe.hasOwnProperty;function aHe(e){if(!tHe(e))return nHe(e);var t=[];for(var n in Object(e))rHe.call(e,n)&&n!="constructor"&&t.push(n);return t}var sHe=aHe;function iHe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ld=iHe,lHe=Qi,cHe=ld,dHe="[object AsyncFunction]",uHe="[object Function]",pHe="[object GeneratorFunction]",hHe="[object Proxy]";function fHe(e){if(!cHe(e))return!1;var t=lHe(e);return t==uHe||t==pHe||t==dHe||t==hHe}var b3=fHe,mHe=b3,gHe=Sw;function _He(e){return e!=null&&gHe(e.length)&&!mHe(e)}var d_=_He,vHe=v3,yHe=sHe,bHe=d_;function wHe(e){return bHe(e)?vHe(e):yHe(e)}var Up=wHe,SHe=HPe,xHe=Up;function CHe(e,t){return e&&SHe(e,t,xHe)}var w3=CHe;function $He(e){return e}var S3=$He,kHe=S3;function EHe(e){return typeof e=="function"?e:kHe}var THe=EHe,OHe=w3,DHe=THe;function AHe(e,t){return e&&OHe(e,DHe(t))}var kw=AHe,MHe=y3,NHe=MHe(Object.getPrototypeOf,Object),Ew=NHe,jHe=Qi,zHe=Ew,RHe=Xa,IHe="[object Object]",LHe=Function.prototype,FHe=Object.prototype,x3=LHe.toString,PHe=FHe.hasOwnProperty,BHe=x3.call(Object);function HHe(e){if(!RHe(e)||jHe(e)!=IHe)return!1;var t=zHe(e);if(t===null)return!0;var n=PHe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&x3.call(n)==BHe}var UHe=HHe;function WHe(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n-1}var sUe=aUe,iUe=u_;function lUe(e,t){var n=this.__data__,o=iUe(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var cUe=lUe,dUe=GHe,uUe=eUe,pUe=oUe,hUe=sUe,fUe=cUe;function cd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ti))return!1;var d=a.get(e),u=a.get(t);if(d&&u)return d==t&&u==e;var c=-1,h=!0,f=n&kVe?new SVe:void 0;for(a.set(e,t),a.set(t,e);++c0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,gJe.default)(t,function(o){Array.isArray(o)?e(o).map(function(r){return n.push(r)}):(0,fJe.default)(o)?(0,pJe.default)(o,function(r,a){r===!0&&n.push(a),n.push(a+"-"+r)}):(0,dJe.default)(o)&&n.push(o)}),n};Bp.default=_Je;var Wp={};function vJe(e,t){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],o=t.default&&(0,LZe.default)(t.default)||{};return n.map(function(r){var a=t[r];return a&&(0,RZe.default)(a,function(s,i){o[i]||(o[i]={}),o[i]=FZe({},o[i],a[i])}),r}),o};Wp.default=PZe;var Vp={};Object.defineProperty(Vp,"__esModule",{value:!0});Vp.autoprefix=void 0;var BZe=kw,Q$=UZe(BZe),HZe=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){YZe(r,o);function r(){var a,s,i,l;JZe(this,r);for(var d=arguments.length,u=Array(d),c=0;c1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){nQe(r,o);function r(){var a,s,i,l;tQe(this,r);for(var d=arguments.length,u=Array(d),c=0;c1&&arguments[1]!==void 0?arguments[1]:!0;o[s]=i};return t===0&&r("first-child"),t===n-1&&r("last-child"),(t===0||t%2===0)&&r("even"),Math.abs(t%2)===1&&r("odd"),r("nth-child",t),o};Lw.default=rQe;Object.defineProperty(nr,"__esModule",{value:!0});nr.ReactCSS=nr.loop=nr.handleActive=Fw=nr.handleHover=nr.hover=void 0;var aQe=Bp,sQe=fd(aQe),iQe=Wp,lQe=fd(iQe),cQe=Vp,dQe=fd(cQe),uQe=Gp,X3=fd(uQe),pQe=qp,hQe=fd(pQe),fQe=Lw,mQe=fd(fQe);function fd(e){return e&&e.__esModule?e:{default:e}}nr.hover=X3.default;var Fw=nr.handleHover=X3.default;nr.handleActive=hQe.default;nr.loop=mQe.default;var gQe=nr.ReactCSS=function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;ri?h=1:h=Math.round(c*100/i)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var f=void 0;if(u<0?f=0:u>s?f=1:f=Math.round(u*100/s)/100,r!==f)return{h:n.h,s:n.s,l:n.l,a:f,source:"rgb"}}return null},Hv={},vQe=function(t,n,o,r){if(typeof document>"u"&&!r)return null;var a=r?new r:document.createElement("canvas");a.width=o*2,a.height=o*2;var s=a.getContext("2d");return s?(s.fillStyle=t,s.fillRect(0,0,a.width,a.height),s.fillStyle=n,s.fillRect(0,0,o,o),s.translate(o,o),s.fillRect(0,0,o,o),a.toDataURL()):null},yQe=function(t,n,o,r){var a=t+"-"+n+"-"+o+(r?"-server":"");if(Hv[a])return Hv[a];var s=vQe(t,n,o,r);return Hv[a]=s,s},nk=Object.assign||function(e){for(var t=1;t{var r,a;o&&n==="system.config"&&(this.socket.systemLang!==(o==null?void 0:o.common.language)&&(this.socket.systemLang=(o==null?void 0:o.common.language)||"en",E.setLanguage(this.socket.systemLang)),((r=this._systemConfig)==null?void 0:r.expertMode)!==!!((a=o==null?void 0:o.common)!=null&&a.expertMode)?(this._systemConfig=(o==null?void 0:o.common)||{},this.setState({expertMode:this.getExpertMode()})):this._systemConfig=(o==null?void 0:o.common)||{})});F(this,"onReceiveMessage",n=>{if(n!=null&&n.data)if(n.data==="updateTheme"){const o=V.getThemeName();V.setThemeName(V.getThemeName());const r=this.createTheme(o);this.setState({theme:r,themeName:this.getThemeName(r),themeType:this.getThemeType(r)},()=>{this.props.onThemeChange&&this.props.onThemeChange(o),this.onThemeChanged&&this.onThemeChanged(o)})}else n.data==="updateExpertMode"?this.onToggleExpertMode&&this.onToggleExpertMode(this.getExpertMode()):n.data!=="chartReady"&&console.debug(`Received unknown message: "${JSON.stringify(n.data)}". May be it will be processed later`)});F(this,"onResize",()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.resizeTimer=null,this.setState({width:ds.getWidth()})},200)});WX();const a=(window.location.search||"").replace(/^\?/,"").replace(/#.*$/,""),s={};a.trim().split("&").filter(c=>c.trim()).forEach(c=>{const h=c.split("=");s[h[0]]=h.length===2?h[1]:!0,s[h[0]]==="true"?s[h[0]]=!0:s[h[0]]==="false"&&(s[h[0]]=!1)}),this.instance=(o==null?void 0:o.instance)??n.instance??(s.instance!==void 0?parseInt(s.instance,10)||0:parseInt(window.location.search.slice(1),10)||0);const i=window.location.pathname.split("/");this.adapterName=(o==null?void 0:o.adapterName)||n.adapterName||window.adapterName||i[i.length-2]||"iot",this.instanceId=`system.adapter.${this.adapterName}.${this.instance}`,this.newReact=s.newReact===!0;const l=Mu.getLocation();l.tab=l.tab||(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"";const d=this.createTheme();this.state=Object.assign(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:d,themeName:this.getThemeName(d),themeType:this.getThemeType(d),bottomButtons:(o&&o.bottomButtons)===!1?!1:(n==null?void 0:n.bottomButtons)!==!1,width:ds.getWidth(),confirmClose:!1,_alert:!1,_alertType:"info",_alertMessage:""});const u=dPe;o!=null&&o.translations?Object.keys(o.translations).forEach(c=>{o.translations&&(u[c]=Object.assign(u[c],o.translations[c]||{}))}):n.translations&&Object.keys(n.translations).forEach(c=>{n.translations&&(u[c]=Object.assign(u[c],n.translations[c]||{}))}),E.setTranslations(u),this.savedNative={},this.encryptedFields=n.encryptedFields||(o==null?void 0:o.encryptedFields)||[],this.sentryDSN=o&&o.sentryDSN||n.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.oldAlert=window.alert,window.alert=c=>{if(!this.alertDialogRendered){window.oldAlert(c);return}c&&c.toString().toLowerCase().includes("error")?(console.error(c),this.showAlert(c.toString(),"error")):(console.log(c),this.showAlert(c.toString(),"info"))},this.socket=new r({...(n==null?void 0:n.socket)||(o==null?void 0:o.socket),name:this.adapterName,doNotLoadAllObjects:o==null?void 0:o.doNotLoadAllObjects,onProgress:c=>{c===Wr.CONNECTING?this.setState({connected:!1}):c===Wr.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:()=>{E.setLanguage(this.socket.systemLang),this.socket.subscribeObject("system.config",this.onSystemConfigChanged).then(()=>this.getSystemConfig()).then(c=>(this._secret=typeof c<"u"&&c.native&&c.native.secret||"Zgfr56gFe87jJOM",this._systemConfig=(c==null?void 0:c.common)||{},this.socket.getObject(this.instanceId))).then(async c=>{var S,_;let h;const f=c,v=((S=await this.socket.getState(`${this.instanceId}.plugins.sentry.enabled`))==null?void 0:S.val)!==!1&&((_=this._systemConfig)==null?void 0:_.diag)!=="none"&&(f==null?void 0:f.common)&&f.common.name&&f.common.version&&!f.common.disableDataReporting&&window.location.host!=="localhost:3000";!this.sentryStarted&&this.sentryDSN&&v&&(this.sentryStarted=!0,qq({dsn:this.sentryDSN,release:`iobroker.${f.common.name}@${f.common.version}`,integrations:[q5()]}),console.log("Sentry initialized")),!this.sentryInited&&v&&(this.sentryInited=!0,h=this.socket.getObject("system.meta.uuid").then(b=>{b&&b.native&&b.native.uuid&&ua().setUser({id:b.native.uuid})})),h=h instanceof Promise?h:Promise.resolve(),h.then(()=>{f?(this.common=f==null?void 0:f.common,this.onPrepareLoad(f.native,f.encryptedNative),this.savedNative=JSON.parse(JSON.stringify(f.native)),this.setState({native:f.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(c=>window.alert(`Cannot settings: ${c}`))},onError:c=>{console.error(c),this.showError(c)}})}static isWeb(){return window.socketUrl!==void 0}showAlert(n,o){o!=="error"&&o!=="warning"&&o!=="info"&&o!=="success"&&(o="info"),this.setState({_alert:!0,_alertType:o,_alertMessage:n})}renderAlertSnackbar(){return this.alertDialogRendered=!0,p.createElement(lp,{style:this.state._alertType==="error"?{backgroundColor:"#f44336"}:this.state._alertType==="success"?{backgroundColor:"#4caf50"}:void 0,open:this.state._alert,autoHideDuration:6e3,onClose:(n,o)=>o!=="clickaway"&&this.setState({_alert:!1}),message:this.state._alertMessage})}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),super.componentWillUnmount()}static getWidth(){const n={xs:0,sm:600,md:960,lg:1280,xl:1920},o=window.innerWidth;return Object.keys(n).reverse().find(s=>o>=n[s])||"xs"}createTheme(n){return AU(V.getThemeName(n))}getThemeName(n){return n.name}getThemeType(n){return n.palette.mode}onThemeChanged(n){}onToggleExpertMode(n){}toggleTheme(n){const o=this.state.themeName;if(n=n||(o==="dark"||o==="blue"||o==="colored"?"light":"dark"),n!==o){V.setThemeName(n);const r=this.createTheme(n);this.setState({theme:r,themeName:this.getThemeName(r),themeType:this.getThemeType(r)},()=>{this.props.onThemeChange&&this.props.onThemeChange(n||"light"),this.onThemeChanged&&this.onThemeChanged(n||"light")})}}getSystemConfig(){return this.socket.getSystemConfig()}getExpertMode(){var n;return window.sessionStorage.getItem("App.expertMode")==="true"||!!((n=this._systemConfig)!=null&&n.expertMode)}onConnectionReady(){}encrypt(n){let o="";if(this._secret)for(let r=0;r{n[o]&&(n[o]=this.encrypt(n[o]))}),!0}onPrepareLoad(n,o){this.encryptedFields&&this.encryptedFields.forEach(r=>{n[r]&&(n[r]=this.decrypt(n[r]))}),o&&o.forEach(r=>{this.encryptedFields=this.encryptedFields||[],!this.encryptedFields.includes(r)&&this.encryptedFields.push(r),n[r]&&(n[r]=this.decrypt(n[r]))})}async getExtendableInstances(){try{const n=await this.socket.getObjectViewSystem("instance","system.adapter.","system.adapter.香");return Object.values(n).filter(o=>{var r;return!!((r=o==null?void 0:o.common)!=null&&r.webExtendable)})}catch{return[]}}async getIpAddresses(n){var s;const o=await this.socket.getHostByIp(n||((s=this.common)==null?void 0:s.host)||""),r=o.find(i=>i.address==="0.0.0.0");r&&(r.name=`[IPv4] 0.0.0.0 - ${E.t("ra_Listen on all IPs")}`);const a=o.find(i=>i.address==="::");return a&&(a.name=`[IPv4] :: - ${E.t("ra_Listen on all IPs")}`),o}onSave(n){let o;if(this.state.isConfigurationError){this.setState({errorText:this.state.isConfigurationError});return}this.socket.getObject(this.instanceId).then(r=>{o=r||{};for(const a in this.state.native)Object.prototype.hasOwnProperty.call(this.state.native,a)&&(this.state.native[a]===null?o.native[a]=null:this.state.native[a]!==void 0?o.native[a]=JSON.parse(JSON.stringify(this.state.native[a])):delete o.native[a]);if(this.state.common)for(const a in this.state.common)this.state.common[a]===null?o.common[a]=null:this.state.common[a]!==void 0?o.common[a]=JSON.parse(JSON.stringify(this.state.common[a])):delete o.common[a];return this.onPrepareSave(o.native)!==!1?this.socket.setObject(this.instanceId,o):Promise.reject(new Error("Invalid configuration"))}).then(()=>{this.savedNative=o.native,globalThis.changed=!1;try{window.parent.postMessage("nochange","*")}catch{}this.setState({changed:!1}),n&&ds.onClose()}).catch(r=>console.error(`Cannot save configuration: ${r}`))}renderToast(){var n;return this.state.toast?p.createElement(lp,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:p.createElement("span",{id:"message-id"},this.state.toast),action:[p.createElement(ue,{key:"close","aria-label":"Close",color:"inherit",className:(n=this.props.classes)==null?void 0:n.close,onClick:()=>this.setState({toast:""}),size:"large"},p.createElement(Dt,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?p.createElement(h3,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}getIsChanged(n){n=n||this.state.native;const o=JSON.stringify(n)!==JSON.stringify(this.savedNative);return globalThis.changed=o,o}onLoadConfig(n){JSON.stringify(n)!==JSON.stringify(this.state.native)&&this.setState({native:n,changed:this.getIsChanged(n)})}setConfigurationError(n){this.state.isConfigurationError!==n&&this.setState({isConfigurationError:n})}renderSaveCloseButtons(){return!this.state.confirmClose&&!this.state.bottomButtons?null:p.createElement(p.Fragment,null,this.state.bottomButtons?p.createElement(ZX,{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:n=>this.onSave(n),onClose:()=>{this.state.changed?this.setState({confirmClose:!0}):ds.onClose()}}):null,this.state.confirmClose?p.createElement(p3,{title:E.t("ra_Please confirm"),text:E.t("ra_Some data are not stored. Discard?"),ok:E.t("ra_Discard"),cancel:E.t("ra_Cancel"),onClose:n=>this.setState({confirmClose:!1},()=>n&&ds.onClose())}):null)}_updateNativeValue(n,o,r){typeof o!="object"&&(o=o.split("."));const a=o.shift()||"";if(!o.length)return r&&typeof r=="object"?JSON.stringify(n[a])!==JSON.stringify(r)?(n[a]=r,!0):!1:n[a]!==r?(n[a]=r,!0):!1;if(n[a]=n[a]||{},typeof n[a]!="object")throw new Error(`attribute ${a} is no object, but ${typeof n[a]}`);return this._updateNativeValue(n[a],o,r)}updateNativeValue(n,o,r){const a=JSON.parse(JSON.stringify(this.state.native));if(this._updateNativeValue(a,n,o)){const s=this.getIsChanged(a);if(s!==this.state.changed)try{window.parent.postMessage(s?"change":"nochange","*")}catch{}this.setState({native:a,changed:s},r)}}showError(n){this.setState({errorText:n})}showToast(n){this.setState({toast:n})}renderHelperDialogs(){return p.createElement(p.Fragment,null,this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar())}render(){return this.state.loaded?p.createElement("div",{className:"App"},this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar()):p.createElement(u3,{themeType:this.state.themeType})}}var nr={},Bp={},pPe=typeof Zp=="object"&&Zp&&Zp.Object===Object&&Zp,f3=pPe,hPe=f3,fPe=typeof self=="object"&&self&&self.Object===Object&&self,mPe=hPe||fPe||Function("return this")(),pa=mPe,gPe=pa,_Pe=gPe.Symbol,Hp=_Pe,m$=Hp,m3=Object.prototype,vPe=m3.hasOwnProperty,yPe=m3.toString,Rd=m$?m$.toStringTag:void 0;function bPe(e){var t=vPe.call(e,Rd),n=e[Rd];try{e[Rd]=void 0;var o=!0}catch{}var r=yPe.call(e);return o&&(t?e[Rd]=n:delete e[Rd]),r}var wPe=bPe,SPe=Object.prototype,xPe=SPe.toString;function CPe(e){return xPe.call(e)}var $Pe=CPe,g$=Hp,kPe=wPe,EPe=$Pe,TPe="[object Null]",OPe="[object Undefined]",_$=g$?g$.toStringTag:void 0;function DPe(e){return e==null?e===void 0?OPe:TPe:_$&&_$ in Object(e)?kPe(e):EPe(e)}var Qi=DPe,APe=Array.isArray,Nr=APe;function MPe(e){return e!=null&&typeof e=="object"}var Xa=MPe,NPe=Qi,jPe=Nr,zPe=Xa,RPe="[object String]";function IPe(e){return typeof e=="string"||!jPe(e)&&zPe(e)&&NPe(e)==RPe}var LPe=IPe;function FPe(e){return function(t,n,o){for(var r=-1,a=Object(t),s=o(t),i=s.length;i--;){var l=s[e?i:++r];if(n(a[l],l,a)===!1)break}return t}}var PPe=FPe,BPe=PPe,HPe=BPe(),UPe=HPe;function WPe(e,t){for(var n=-1,o=Array(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=sBe}var xw=iBe,lBe=Qi,cBe=xw,dBe=Xa,uBe="[object Arguments]",pBe="[object Array]",hBe="[object Boolean]",fBe="[object Date]",mBe="[object Error]",gBe="[object Function]",_Be="[object Map]",vBe="[object Number]",yBe="[object Object]",bBe="[object RegExp]",wBe="[object Set]",SBe="[object String]",xBe="[object WeakMap]",CBe="[object ArrayBuffer]",$Be="[object DataView]",kBe="[object Float32Array]",EBe="[object Float64Array]",TBe="[object Int8Array]",OBe="[object Int16Array]",DBe="[object Int32Array]",ABe="[object Uint8Array]",MBe="[object Uint8ClampedArray]",NBe="[object Uint16Array]",jBe="[object Uint32Array]",Ht={};Ht[kBe]=Ht[EBe]=Ht[TBe]=Ht[OBe]=Ht[DBe]=Ht[ABe]=Ht[MBe]=Ht[NBe]=Ht[jBe]=!0;Ht[uBe]=Ht[pBe]=Ht[CBe]=Ht[hBe]=Ht[$Be]=Ht[fBe]=Ht[mBe]=Ht[gBe]=Ht[_Be]=Ht[vBe]=Ht[yBe]=Ht[bBe]=Ht[wBe]=Ht[SBe]=Ht[xBe]=!1;function zBe(e){return dBe(e)&&cBe(e.length)&&!!Ht[lBe(e)]}var RBe=zBe;function IBe(e){return function(t){return e(t)}}var Cw=IBe,km={exports:{}};km.exports;(function(e,t){var n=f3,o=t&&!t.nodeType&&t,r=o&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===o,s=a&&n.process,i=function(){try{var l=r&&r.require&&r.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=i})(km,km.exports);var $w=km.exports,LBe=RBe,FBe=Cw,y$=$w,b$=y$&&y$.isTypedArray,PBe=b$?FBe(b$):LBe,y3=PBe,BBe=VPe,HBe=_3,UBe=Nr,WBe=Sw,VBe=v3,GBe=y3,qBe=Object.prototype,XBe=qBe.hasOwnProperty;function JBe(e,t){var n=UBe(e),o=!n&&HBe(e),r=!n&&!o&&WBe(e),a=!n&&!o&&!r&&GBe(e),s=n||o||r||a,i=s?BBe(e.length,String):[],l=i.length;for(var d in e)(t||XBe.call(e,d))&&!(s&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||VBe(d,l)))&&i.push(d);return i}var b3=JBe,YBe=Object.prototype;function KBe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||YBe;return e===n}var kw=KBe;function ZBe(e,t){return function(n){return e(t(n))}}var w3=ZBe,QBe=w3,eHe=QBe(Object.keys,Object),tHe=eHe,nHe=kw,oHe=tHe,rHe=Object.prototype,aHe=rHe.hasOwnProperty;function sHe(e){if(!nHe(e))return oHe(e);var t=[];for(var n in Object(e))aHe.call(e,n)&&n!="constructor"&&t.push(n);return t}var iHe=sHe;function lHe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ld=lHe,cHe=Qi,dHe=ld,uHe="[object AsyncFunction]",pHe="[object Function]",hHe="[object GeneratorFunction]",fHe="[object Proxy]";function mHe(e){if(!dHe(e))return!1;var t=cHe(e);return t==pHe||t==hHe||t==uHe||t==fHe}var S3=mHe,gHe=S3,_He=xw;function vHe(e){return e!=null&&_He(e.length)&&!gHe(e)}var d_=vHe,yHe=b3,bHe=iHe,wHe=d_;function SHe(e){return wHe(e)?yHe(e):bHe(e)}var Up=SHe,xHe=UPe,CHe=Up;function $He(e,t){return e&&xHe(e,t,CHe)}var x3=$He;function kHe(e){return e}var C3=kHe,EHe=C3;function THe(e){return typeof e=="function"?e:EHe}var OHe=THe,DHe=x3,AHe=OHe;function MHe(e,t){return e&&DHe(e,AHe(t))}var Ew=MHe,NHe=w3,jHe=NHe(Object.getPrototypeOf,Object),Tw=jHe,zHe=Qi,RHe=Tw,IHe=Xa,LHe="[object Object]",FHe=Function.prototype,PHe=Object.prototype,$3=FHe.toString,BHe=PHe.hasOwnProperty,HHe=$3.call(Object);function UHe(e){if(!IHe(e)||zHe(e)!=LHe)return!1;var t=RHe(e);if(t===null)return!0;var n=BHe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$3.call(n)==HHe}var WHe=UHe;function VHe(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n-1}var iUe=sUe,lUe=u_;function cUe(e,t){var n=this.__data__,o=lUe(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var dUe=cUe,uUe=qHe,pUe=tUe,hUe=rUe,fUe=iUe,mUe=dUe;function cd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ti))return!1;var d=a.get(e),u=a.get(t);if(d&&u)return d==t&&u==e;var c=-1,h=!0,f=n&EVe?new xVe:void 0;for(a.set(e,t),a.set(t,e);++c0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,_Je.default)(t,function(o){Array.isArray(o)?e(o).map(function(r){return n.push(r)}):(0,mJe.default)(o)?(0,hJe.default)(o,function(r,a){r===!0&&n.push(a),n.push(a+"-"+r)}):(0,uJe.default)(o)&&n.push(o)}),n};Bp.default=vJe;var Wp={};function yJe(e,t){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],o=t.default&&(0,FZe.default)(t.default)||{};return n.map(function(r){var a=t[r];return a&&(0,IZe.default)(a,function(s,i){o[i]||(o[i]={}),o[i]=PZe({},o[i],a[i])}),r}),o};Wp.default=BZe;var Vp={};Object.defineProperty(Vp,"__esModule",{value:!0});Vp.autoprefix=void 0;var HZe=Ew,ek=WZe(HZe),UZe=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){KZe(r,o);function r(){var a,s,i,l;YZe(this,r);for(var d=arguments.length,u=Array(d),c=0;c1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){oQe(r,o);function r(){var a,s,i,l;nQe(this,r);for(var d=arguments.length,u=Array(d),c=0;c1&&arguments[1]!==void 0?arguments[1]:!0;o[s]=i};return t===0&&r("first-child"),t===n-1&&r("last-child"),(t===0||t%2===0)&&r("even"),Math.abs(t%2)===1&&r("odd"),r("nth-child",t),o};Fw.default=aQe;Object.defineProperty(nr,"__esModule",{value:!0});nr.ReactCSS=nr.loop=nr.handleActive=Pw=nr.handleHover=nr.hover=void 0;var sQe=Bp,iQe=fd(sQe),lQe=Wp,cQe=fd(lQe),dQe=Vp,uQe=fd(dQe),pQe=Gp,Y3=fd(pQe),hQe=qp,fQe=fd(hQe),mQe=Fw,gQe=fd(mQe);function fd(e){return e&&e.__esModule?e:{default:e}}nr.hover=Y3.default;var Pw=nr.handleHover=Y3.default;nr.handleActive=fQe.default;nr.loop=gQe.default;var _Qe=nr.ReactCSS=function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;ri?h=1:h=Math.round(c*100/i)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var f=void 0;if(u<0?f=0:u>s?f=1:f=Math.round(u*100/s)/100,r!==f)return{h:n.h,s:n.s,l:n.l,a:f,source:"rgb"}}return null},Hv={},yQe=function(t,n,o,r){if(typeof document>"u"&&!r)return null;var a=r?new r:document.createElement("canvas");a.width=o*2,a.height=o*2;var s=a.getContext("2d");return s?(s.fillStyle=t,s.fillRect(0,0,a.width,a.height),s.fillStyle=n,s.fillRect(0,0,o,o),s.translate(o,o),s.fillRect(0,0,o,o),a.toDataURL()):null},bQe=function(t,n,o,r){var a=t+"-"+n+"-"+o+(r?"-server":"");if(Hv[a])return Hv[a];var s=yQe(t,n,o,r);return Hv[a]=s,s},ok=Object.assign||function(e){for(var t=1;t-1},NQe=function(t){return Number(String(t).replace(/%/g,""))},jQe=1,at=function(e){TQe(t,e);function t(n){kQe(this,t);var o=EQe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(r){o.setUpdatedValue(r.target.value,r)},o.handleKeyDown=function(r){var a=NQe(r.target.value);if(!isNaN(a)&&MQe(r.keyCode)){var s=o.getArrowOffset(),i=r.keyCode===J3?a+s:a-s;o.setUpdatedValue(i,r)}},o.handleDrag=function(r){if(o.props.dragLabel){var a=Math.round(o.props.value+r.movementX);a>=0&&a<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(a),r)}},o.handleMouseDown=function(r){o.props.dragLabel&&(r.preventDefault(),o.handleDrag(r),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},o.inputId="rc-editable-input-"+jQe++,o}return CQe(t,[{key:"componentDidUpdate",value:function(o,r){this.props.value!==this.state.value&&(o.value!==this.props.value||r.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(o){return $Qe({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||OQe}},{key:"setUpdatedValue",value:function(o,r){var a=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(a,r),this.setState({value:o})}},{key:"render",value:function(){var o=this,r=Ne({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 p.createElement("div",{style:r.wrap},p.createElement("input",{id:this.inputId,style:r.input,ref:function(s){return o.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?p.createElement("label",{htmlFor:this.inputId,style:r.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(C.PureComponent||C.Component),zQe=function(t,n,o,r){var a=r.clientWidth,s=r.clientHeight,i=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,d=i-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var c=void 0;if(u<0)c=359;else if(u>s)c=0;else{var h=-(u*100/s)+100;c=360*h/100}if(o.h!==c)return{h:c,s:o.s,l:o.l,a:o.a,source:"hsl"}}else{var f=void 0;if(d<0)f=0;else if(d>a)f=359;else{var g=d*100/a;f=360*g/100}if(o.h!==f)return{h:f,s:o.s,l:o.l,a:o.a,source:"hsl"}}return null},RQe=function(){function e(t,n){for(var o=0;o-1},jQe=function(t){return Number(String(t).replace(/%/g,""))},zQe=1,at=function(e){OQe(t,e);function t(n){EQe(this,t);var o=TQe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(r){o.setUpdatedValue(r.target.value,r)},o.handleKeyDown=function(r){var a=jQe(r.target.value);if(!isNaN(a)&&NQe(r.keyCode)){var s=o.getArrowOffset(),i=r.keyCode===K3?a+s:a-s;o.setUpdatedValue(i,r)}},o.handleDrag=function(r){if(o.props.dragLabel){var a=Math.round(o.props.value+r.movementX);a>=0&&a<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(a),r)}},o.handleMouseDown=function(r){o.props.dragLabel&&(r.preventDefault(),o.handleDrag(r),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},o.inputId="rc-editable-input-"+zQe++,o}return $Qe(t,[{key:"componentDidUpdate",value:function(o,r){this.props.value!==this.state.value&&(o.value!==this.props.value||r.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(o){return kQe({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DQe}},{key:"setUpdatedValue",value:function(o,r){var a=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(a,r),this.setState({value:o})}},{key:"render",value:function(){var o=this,r=Ne({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 p.createElement("div",{style:r.wrap},p.createElement("input",{id:this.inputId,style:r.input,ref:function(s){return o.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?p.createElement("label",{htmlFor:this.inputId,style:r.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(C.PureComponent||C.Component),RQe=function(t,n,o,r){var a=r.clientWidth,s=r.clientHeight,i=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,d=i-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var c=void 0;if(u<0)c=359;else if(u>s)c=0;else{var h=-(u*100/s)+100;c=360*h/100}if(o.h!==c)return{h:c,s:o.s,l:o.l,a:o.a,source:"hsl"}}else{var f=void 0;if(d<0)f=0;else if(d>a)f=359;else{var g=d*100/a;f=360*g/100}if(o.h!==f)return{h:f,s:o.s,l:o.l,a:o.a,source:"hsl"}}return null},IQe=function(){function e(t,n){for(var o=0;o-1}function VQe(e,t){var n=this.__data__,o=y_(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Ja(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=ett}function _d(e){return e!=null&&Ww(e.length)&&!Bw(e)}function ttt(e){return Us(e)&&_d(e)}function ntt(){return!1}var oA=typeof Do=="object"&&Do&&!Do.nodeType&&Do,uk=oA&&typeof Ao=="object"&&Ao&&!Ao.nodeType&&Ao,ott=uk&&uk.exports===oA,pk=ott?jr.Buffer:void 0,rtt=pk?pk.isBuffer:void 0,Mm=rtt||ntt,att="[object Object]",stt=Function.prototype,itt=Object.prototype,rA=stt.toString,ltt=itt.hasOwnProperty,ctt=rA.call(Object);function dtt(e){if(!Us(e)||tl(e)!=att)return!1;var t=tA(e);if(t===null)return!0;var n=ltt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&rA.call(n)==ctt}var utt="[object Arguments]",ptt="[object Array]",htt="[object Boolean]",ftt="[object Date]",mtt="[object Error]",gtt="[object Function]",_tt="[object Map]",vtt="[object Number]",ytt="[object Object]",btt="[object RegExp]",wtt="[object Set]",Stt="[object String]",xtt="[object WeakMap]",Ctt="[object ArrayBuffer]",$tt="[object DataView]",ktt="[object Float32Array]",Ett="[object Float64Array]",Ttt="[object Int8Array]",Ott="[object Int16Array]",Dtt="[object Int32Array]",Att="[object Uint8Array]",Mtt="[object Uint8ClampedArray]",Ntt="[object Uint16Array]",jtt="[object Uint32Array]",Ut={};Ut[ktt]=Ut[Ett]=Ut[Ttt]=Ut[Ott]=Ut[Dtt]=Ut[Att]=Ut[Mtt]=Ut[Ntt]=Ut[jtt]=!0;Ut[utt]=Ut[ptt]=Ut[Ctt]=Ut[htt]=Ut[$tt]=Ut[ftt]=Ut[mtt]=Ut[gtt]=Ut[_tt]=Ut[vtt]=Ut[ytt]=Ut[btt]=Ut[wtt]=Ut[Stt]=Ut[xtt]=!1;function ztt(e){return Us(e)&&Ww(e.length)&&!!Ut[tl(e)]}function Rtt(e){return function(t){return e(t)}}var aA=typeof Do=="object"&&Do&&!Do.nodeType&&Do,Nu=aA&&typeof Ao=="object"&&Ao&&!Ao.nodeType&&Ao,Itt=Nu&&Nu.exports===aA,Wv=Itt&&Y3.process,hk=function(){try{var e=Nu&&Nu.require&&Nu.require("util").types;return e||Wv&&Wv.binding&&Wv.binding("util")}catch{}}(),fk=hk&&hk.isTypedArray,Vw=fk?Rtt(fk):ztt;function Kb(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ltt=Object.prototype,Ftt=Ltt.hasOwnProperty;function Ptt(e,t,n){var o=e[t];(!(Ftt.call(e,t)&&Xp(o,n))||n===void 0&&!(t in e))&&Hw(e,t,n)}function Btt(e,t,n,o){var r=!n;n||(n={});for(var a=-1,s=t.length;++a-1&&e%1==0&&e0){if(++t>=ont)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var int=snt(nnt);function lnt(e,t){return int(ent(e,t,w_),e+"")}function cnt(e,t,n){if(!pr(n))return!1;var o=typeof t;return(o=="number"?_d(n)&&Gw(t,n.length):o=="string"&&t in n)?Xp(n[t],e):!1}function dnt(e){return lnt(function(t,n){var o=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,s&&cnt(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++o=t||T<0||c&&O>=a}function _(){var k=Vv();if(S(k))return b(k);i=setTimeout(_,v(k))}function b(k){return i=void 0,h&&o?f(k):(o=r=void 0,s)}function y(){i!==void 0&&clearTimeout(i),d=0,o=l=r=i=void 0}function w(){return i===void 0?s:b(Vv())}function $(){var k=Vv(),T=S(k);if(o=arguments,r=this,l=k,T){if(i===void 0)return g(l);if(c)return clearTimeout(i),i=setTimeout(_,t),f(l)}return i===void 0&&(i=setTimeout(_,t)),s}return $.cancel=y,$.flush=w,$}var xnt="Expected a function";function Cnt(e,t,n){var o=!0,r=!0;if(typeof e!="function")throw new TypeError(xnt);return pr(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),cA(e,t,{leading:o,maxWait:t,trailing:r})}var $nt=function(t,n,o){var r=o.getBoundingClientRect(),a=r.width,s=r.height,i=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,d=i-(o.getBoundingClientRect().left+window.pageXOffset),u=l-(o.getBoundingClientRect().top+window.pageYOffset);d<0?d=0:d>a&&(d=a),u<0?u=0:u>s&&(u=s);var c=d/a,h=1-u/s;return{h:n.h,s:c,v:h,a:n.a,source:"hsv"}},knt=function(){function e(t,n){for(var o=0;o-1}function GQe(e,t){var n=this.__data__,o=y_(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Ja(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=ttt}function _d(e){return e!=null&&Vw(e.length)&&!Hw(e)}function ntt(e){return Us(e)&&_d(e)}function ott(){return!1}var aA=typeof Do=="object"&&Do&&!Do.nodeType&&Do,pk=aA&&typeof Ao=="object"&&Ao&&!Ao.nodeType&&Ao,rtt=pk&&pk.exports===aA,hk=rtt?jr.Buffer:void 0,att=hk?hk.isBuffer:void 0,Mm=att||ott,stt="[object Object]",itt=Function.prototype,ltt=Object.prototype,sA=itt.toString,ctt=ltt.hasOwnProperty,dtt=sA.call(Object);function utt(e){if(!Us(e)||tl(e)!=stt)return!1;var t=oA(e);if(t===null)return!0;var n=ctt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&sA.call(n)==dtt}var ptt="[object Arguments]",htt="[object Array]",ftt="[object Boolean]",mtt="[object Date]",gtt="[object Error]",_tt="[object Function]",vtt="[object Map]",ytt="[object Number]",btt="[object Object]",wtt="[object RegExp]",Stt="[object Set]",xtt="[object String]",Ctt="[object WeakMap]",$tt="[object ArrayBuffer]",ktt="[object DataView]",Ett="[object Float32Array]",Ttt="[object Float64Array]",Ott="[object Int8Array]",Dtt="[object Int16Array]",Att="[object Int32Array]",Mtt="[object Uint8Array]",Ntt="[object Uint8ClampedArray]",jtt="[object Uint16Array]",ztt="[object Uint32Array]",Ut={};Ut[Ett]=Ut[Ttt]=Ut[Ott]=Ut[Dtt]=Ut[Att]=Ut[Mtt]=Ut[Ntt]=Ut[jtt]=Ut[ztt]=!0;Ut[ptt]=Ut[htt]=Ut[$tt]=Ut[ftt]=Ut[ktt]=Ut[mtt]=Ut[gtt]=Ut[_tt]=Ut[vtt]=Ut[ytt]=Ut[btt]=Ut[wtt]=Ut[Stt]=Ut[xtt]=Ut[Ctt]=!1;function Rtt(e){return Us(e)&&Vw(e.length)&&!!Ut[tl(e)]}function Itt(e){return function(t){return e(t)}}var iA=typeof Do=="object"&&Do&&!Do.nodeType&&Do,Nu=iA&&typeof Ao=="object"&&Ao&&!Ao.nodeType&&Ao,Ltt=Nu&&Nu.exports===iA,Wv=Ltt&&Z3.process,fk=function(){try{var e=Nu&&Nu.require&&Nu.require("util").types;return e||Wv&&Wv.binding&&Wv.binding("util")}catch{}}(),mk=fk&&fk.isTypedArray,Gw=mk?Itt(mk):Rtt;function Zb(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ftt=Object.prototype,Ptt=Ftt.hasOwnProperty;function Btt(e,t,n){var o=e[t];(!(Ptt.call(e,t)&&Xp(o,n))||n===void 0&&!(t in e))&&Uw(e,t,n)}function Htt(e,t,n,o){var r=!n;n||(n={});for(var a=-1,s=t.length;++a-1&&e%1==0&&e0){if(++t>=rnt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var lnt=int(ont);function cnt(e,t){return lnt(tnt(e,t,w_),e+"")}function dnt(e,t,n){if(!pr(n))return!1;var o=typeof t;return(o=="number"?_d(n)&&qw(t,n.length):o=="string"&&t in n)?Xp(n[t],e):!1}function unt(e){return cnt(function(t,n){var o=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,s&&dnt(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++o=t||T<0||c&&O>=a}function _(){var k=Vv();if(S(k))return b(k);i=setTimeout(_,v(k))}function b(k){return i=void 0,h&&o?f(k):(o=r=void 0,s)}function y(){i!==void 0&&clearTimeout(i),d=0,o=l=r=i=void 0}function w(){return i===void 0?s:b(Vv())}function $(){var k=Vv(),T=S(k);if(o=arguments,r=this,l=k,T){if(i===void 0)return g(l);if(c)return clearTimeout(i),i=setTimeout(_,t),f(l)}return i===void 0&&(i=setTimeout(_,t)),s}return $.cancel=y,$.flush=w,$}var Cnt="Expected a function";function $nt(e,t,n){var o=!0,r=!0;if(typeof e!="function")throw new TypeError(Cnt);return pr(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),uA(e,t,{leading:o,maxWait:t,trailing:r})}var knt=function(t,n,o){var r=o.getBoundingClientRect(),a=r.width,s=r.height,i=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,d=i-(o.getBoundingClientRect().left+window.pageXOffset),u=l-(o.getBoundingClientRect().top+window.pageYOffset);d<0?d=0:d>a&&(d=a),u<0?u=0:u>s&&(u=s);var c=d/a,h=1-u/s;return{h:n.h,s:c,v:h,a:n.a,source:"hsv"}},Ent=function(){function e(t,n){for(var o=0;o=0,a=!n&&r&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},clone:function(){return ye(this.toString())},_applyModification:function(t,n){var o=t.apply(null,[this].concat([].slice.call(n)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(Jnt,arguments)},brighten:function(){return this._applyModification(Ynt,arguments)},darken:function(){return this._applyModification(Knt,arguments)},desaturate:function(){return this._applyModification(Gnt,arguments)},saturate:function(){return this._applyModification(qnt,arguments)},greyscale:function(){return this._applyModification(Xnt,arguments)},spin:function(){return this._applyModification(Znt,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(tot,arguments)},complement:function(){return this._applyCombination(Qnt,arguments)},monochromatic:function(){return this._applyCombination(not,arguments)},splitcomplement:function(){return this._applyCombination(eot,arguments)},triad:function(){return this._applyCombination(Sk,[3])},tetrad:function(){return this._applyCombination(Sk,[4])}};ye.fromRatio=function(e,t){if(Nm(e)=="object"){var n={};for(var o in e)e.hasOwnProperty(o)&&(o==="a"?n[o]=e[o]:n[o]=ru(e[o]));e=n}return ye(e,t)};function Bnt(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=iot(e)),Nm(e)=="object"&&(wa(e.r)&&wa(e.g)&&wa(e.b)?(t=Hnt(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wa(e.h)&&wa(e.s)&&wa(e.v)?(o=ru(e.s),r=ru(e.v),t=Wnt(e.h,o,r),s=!0,i="hsv"):wa(e.h)&&wa(e.s)&&wa(e.l)&&(o=ru(e.s),a=ru(e.l),t=Unt(e.h,o,a),s=!0,i="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=uA(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function Hnt(e,t,n){return{r:Xt(e,255)*255,g:Xt(t,255)*255,b:Xt(n,255)*255}}function vk(e,t,n){e=Xt(e,255),t=Xt(t,255),n=Xt(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a,s,i=(o+r)/2;if(o==r)a=s=0;else{var l=o-r;switch(s=i>.5?l/(2-o-r):l/(o+r),o){case e:a=(t-n)/l+(t1&&(c-=1),c<1/6?d+(u-d)*6*c:c<1/2?u:c<2/3?d+(u-d)*(2/3-c)*6:d}if(t===0)o=r=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;o=s(l,i,e+1/3),r=s(l,i,e),a=s(l,i,e-1/3)}return{r:o*255,g:r*255,b:a*255}}function yk(e,t,n){e=Xt(e,255),t=Xt(t,255),n=Xt(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a,s,i=o,l=o-r;if(s=o===0?0:l/o,o==r)a=0;else{switch(o){case e:a=(t-n)/l+(t>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(ye(o));return a}function not(e,t){t=t||6;for(var n=ye(e).toHsv(),o=n.h,r=n.s,a=n.v,s=[],i=1/t;t--;)s.push(ye({h:o,s:r,v:a})),a=(a+i)%1;return s}ye.mix=function(e,t,n){n=n===0?0:n||50;var o=ye(e).toRgb(),r=ye(t).toRgb(),a=n/100,s={r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a};return ye(s)};ye.readability=function(e,t){var n=ye(e),o=ye(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)};ye.isReadable=function(e,t,n){var o=ye.readability(e,t),r,a;switch(a=!1,r=lot(n),r.level+r.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7;break}return a};ye.mostReadable=function(e,t,n){var o=null,r=0,a,s,i,l;n=n||{},s=n.includeFallbackColors,i=n.level,l=n.size;for(var d=0;dr&&(r=a,o=ye(t[d]));return ye.isReadable(e,o,{level:i,size:l})||!s?o:(n.includeFallbackColors=!1,ye.mostReadable(e,["#fff","#000"],n))};var Zb=ye.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"},oot=ye.hexNames=rot(Zb);function rot(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function uA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Xt(e,t){aot(e)&&(e="100%");var n=sot(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C_(e){return Math.min(1,Math.max(0,e))}function xo(e){return parseInt(e,16)}function aot(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function sot(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Cr(e){return e.length==1?"0"+e:""+e}function ru(e){return e<=1&&(e=e*100+"%"),e}function pA(e){return Math.round(parseFloat(e)*255).toString(16)}function xk(e){return xo(e)/255}var br=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+o),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+o),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+o),hsva:new RegExp("hsva"+r),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 wa(e){return!!br.CSS_UNIT.exec(e)}function iot(e){e=e.replace(Fnt,"").replace(Pnt,"").toLowerCase();var t=!1;if(Zb[e])e=Zb[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=br.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=br.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=br.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=br.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=br.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=br.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=br.hex8.exec(e))?{r:xo(n[1]),g:xo(n[2]),b:xo(n[3]),a:xk(n[4]),format:t?"name":"hex8"}:(n=br.hex6.exec(e))?{r:xo(n[1]),g:xo(n[2]),b:xo(n[3]),format:t?"name":"hex"}:(n=br.hex4.exec(e))?{r:xo(n[1]+""+n[1]),g:xo(n[2]+""+n[2]),b:xo(n[3]+""+n[3]),a:xk(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=br.hex3.exec(e))?{r:xo(n[1]+""+n[1]),g:xo(n[2]+""+n[2]),b:xo(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function lot(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var Ck=function(t){var n=["r","g","b","a","h","s","l","v"],o=0,r=0;return Lnt(n,function(a){if(t[a]&&(o+=1,isNaN(t[a])||(r+=1),a==="s"||a==="l")){var s=/^\d+%$/;s.test(t[a])&&(r+=1)}}),o===r?t:!1},au=function(t,n){var o=t.hex?ye(t.hex):ye(t),r=o.toHsl(),a=o.toHsv(),s=o.toRgb(),i=o.toHex();r.s===0&&(r.h=n||0,a.h=n||0);var l=i==="000000"&&s.a===0;return{hsl:r,hex:l?"transparent":"#"+i,rgb:s,hsv:a,oldHue:t.h||n||r.h,source:t.source}},Ys=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&ye(t).isValid()},Xw=function(t){if(!t)return"#fff";var n=au(t);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var o=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return o>=128?"#000":"#fff"},Gv=function(t,n){var o=t.replace("°","");return ye(n+" ("+o+")")._ok},Ld=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){got(r,o);function r(){var a,s,i,l;mot(this,r);for(var d=arguments.length,u=Array(d),c=0;ci))return!1;var d=a.get(e),u=a.get(t);if(d&&u)return d==t&&u==e;var c=-1,h=!0,f=n&Tot?new jm:void 0;for(a.set(e,t),a.set(t,e);++c=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}var Fh=24,Wrt=SA.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,o=e.width,r=o===void 0?Fh:o,a=e.height,s=a===void 0?Fh:a,i=e.style,l=i===void 0?{}:i,d=Urt(e,["fill","width","height","style"]);return Hk.default.createElement("svg",Bk({viewBox:"0 0 "+Fh+" "+Fh,style:Bk({fill:n,width:r,height:s},l)},d),Hk.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"}))},Vrt=function(){function e(t,n){for(var o=0;o1&&(r.a=1),o.props.onChange({h:o.props.hsl.h,s:o.props.hsl.s,l:o.props.hsl.l,a:Math.round(r.a*100)/100,source:"rgb"},a)):(r.h||r.s||r.l)&&(typeof r.s=="string"&&r.s.includes("%")&&(r.s=r.s.replace("%","")),typeof r.l=="string"&&r.l.includes("%")&&(r.l=r.l.replace("%","")),r.s==1?r.s=.01:r.l==1&&(r.l=.01),o.props.onChange({h:r.h||o.props.hsl.h,s:Number(Pk(r.s)?o.props.hsl.s:r.s),l:Number(Pk(r.l)?o.props.hsl.l:r.l),source:"hsl"},a))},o.showHighlight=function(r){r.currentTarget.style.background="#eee"},o.hideHighlight=function(r){r.currentTarget.style.background="transparent"},n.hsl.a!==1&&n.view==="hex"?o.state={view:"rgb"}:o.state={view:n.view},o}return Vrt(t,[{key:"render",value:function(){var o=this,r=Ne({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=p.createElement("div",{style:r.fields,className:"flexbox-fix"},p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=p.createElement("div",{style:r.fields,className:"flexbox-fix"},p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),p.createElement("div",{style:r.alpha},p.createElement(at,{style:{input:r.input,label:r.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=p.createElement("div",{style:r.fields,className:"flexbox-fix"},p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:r.alpha},p.createElement(at,{style:{input:r.input,label:r.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),p.createElement("div",{style:r.wrap,className:"flexbox-fix"},a,p.createElement("div",{style:r.toggle},p.createElement("div",{style:r.icon,onClick:this.toggleViews,ref:function(i){return o.icon=i}},p.createElement(Wrt,{style:r.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(o,r){return o.hsl.a!==1&&r.view==="hex"?{view:"rgb"}:null}}]),t}(p.Component);xA.defaultProps={view:"hex"};var Uk=function(){var t=Ne({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 p.createElement("div",{style:t.picker})},Jrt=function(){var t=Ne({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return p.createElement("div",{style:t.picker})},eS=function(t){var n=t.width,o=t.onChange,r=t.disableAlpha,a=t.rgb,s=t.hsl,i=t.hsv,l=t.hex,d=t.renderers,u=t.styles,c=u===void 0?{}:u,h=t.className,f=h===void 0?"":h,g=t.defaultView,v=Ne(bo({default:{picker:{width:n,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"}}},c),{disableAlpha:r});return p.createElement("div",{style:v.picker,className:"chrome-picker "+f},p.createElement("div",{style:v.saturation},p.createElement(x_,{style:v.Saturation,hsl:s,hsv:i,pointer:Jrt,onChange:o})),p.createElement("div",{style:v.body},p.createElement("div",{style:v.controls,className:"flexbox-fix"},p.createElement("div",{style:v.color},p.createElement("div",{style:v.swatch},p.createElement("div",{style:v.active}),p.createElement(md,{renderers:d}))),p.createElement("div",{style:v.toggles},p.createElement("div",{style:v.hue},p.createElement(gd,{style:v.Hue,hsl:s,pointer:Uk,onChange:o})),p.createElement("div",{style:v.alpha},p.createElement(Pw,{style:v.Alpha,rgb:a,hsl:s,pointer:Uk,renderers:d,onChange:o})))),p.createElement(xA,{rgb:a,hsl:s,hex:l,view:g,onChange:o,disableAlpha:r})))};eS.propTypes={width:L.oneOfType([L.string,L.number]),disableAlpha:L.bool,styles:L.object,defaultView:L.oneOf(["hex","rgb","hsl"])};eS.defaultProps={width:225,disableAlpha:!1,styles:{}};wo(eS);var Yrt=function(t){var n=t.color,o=t.onClick,r=o===void 0?function(){}:o,a=t.onSwatchHover,s=t.active,i=Ne({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Xw(n),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":n==="#FFFFFF",transparent:n==="transparent"});return p.createElement(rl,{style:i.color,color:n,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+n}},p.createElement("div",{style:i.dot}))},Krt=function(t){var n=t.hex,o=t.rgb,r=t.onChange,a=Ne({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},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(l,d){l.r||l.g||l.b?r({r:l.r||o.r,g:l.g||o.g,b:l.b||o.b,source:"rgb"},d):r({hex:l.hex,source:"hex"},d)};return p.createElement("div",{style:a.fields,className:"flexbox-fix"},p.createElement("div",{style:a.active}),p.createElement(at,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:n,onChange:s}),p.createElement(at,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:o.r,onChange:s}),p.createElement(at,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:o.g,onChange:s}),p.createElement(at,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:o.b,onChange:s}))},tS=function(t){var n=t.onChange,o=t.onSwatchHover,r=t.colors,a=t.hex,s=t.rgb,i=t.styles,l=i===void 0?{}:i,d=t.className,u=d===void 0?"":d,c=Ne(bo({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),h=function(g,v){g.hex?Ys(g.hex)&&n({hex:g.hex,source:"hex"},v):n(g,v)};return p.createElement(Jp,{style:c.Compact,styles:l},p.createElement("div",{style:c.compact,className:"compact-picker "+u},p.createElement("div",null,al(r,function(f){return p.createElement(Yrt,{key:f,color:f,active:f.toLowerCase()===a,onClick:h,onSwatchHover:o})}),p.createElement("div",{style:c.clear})),p.createElement(Krt,{hex:a,rgb:s,onChange:h})))};tS.propTypes={colors:L.arrayOf(L.string),styles:L.object};tS.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:{}};wo(tS);var Zrt=function(t){var n=t.hover,o=t.color,r=t.onClick,a=t.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=Ne({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:n});return p.createElement("div",{style:i.swatch},p.createElement(rl,{color:o,onClick:r,onHover:a,focusStyle:s}))};const Qrt=Fw(Zrt);var nS=function(t){var n=t.width,o=t.colors,r=t.onChange,a=t.onSwatchHover,s=t.triangle,i=t.styles,l=i===void 0?{}:i,d=t.className,u=d===void 0?"":d,c=Ne(bo({default:{card:{width:n,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)"}}},l),{"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"}),h=function(g,v){return r({hex:g,source:"hex"},v)};return p.createElement("div",{style:c.card,className:"github-picker "+u},p.createElement("div",{style:c.triangleShadow}),p.createElement("div",{style:c.triangle}),al(o,function(f){return p.createElement(Qrt,{color:f,key:f,onClick:h,onSwatchHover:a})}))};nS.propTypes={width:L.oneOfType([L.string,L.number]),colors:L.arrayOf(L.string),triangle:L.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:L.object};nS.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};wo(nS);var eat=function(t){var n=t.direction,o=Ne({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:n==="vertical"});return p.createElement("div",{style:o.picker})},tat=Object.assign||function(e){for(var t=1;t.5});return p.createElement("div",{style:o.picker})},aat=function(){var t=Ne({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 p.createElement("div",{style:t.pointer},p.createElement("div",{style:t.left},p.createElement("div",{style:t.leftInside})),p.createElement("div",{style:t.right},p.createElement("div",{style:t.rightInside})))},Wk=function(t){var n=t.onClick,o=t.label,r=t.children,a=t.active,s=Ne({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 p.createElement("div",{style:s.button,onClick:n},o||r)},sat=function(t){var n=t.rgb,o=t.currentColor,r=Ne({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:o,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return p.createElement("div",null,p.createElement("div",{style:r.label},"new"),p.createElement("div",{style:r.swatches},p.createElement("div",{style:r.new}),p.createElement("div",{style:r.current})),p.createElement("div",{style:r.label},"current"))},iat=function(){function e(t,n){for(var o=0;o100&&(u.a=100),u.a/=100,n({h:r.h,s:r.s,l:r.l,a:u.a,source:"rgb"},c))};return p.createElement("div",{style:i.fields,className:"flexbox-fix"},p.createElement("div",{style:i.double},p.createElement(at,{style:{input:i.input,label:i.label},label:"hex",value:a.replace("#",""),onChange:l})),p.createElement("div",{style:i.single},p.createElement(at,{style:{input:i.input,label:i.label},label:"r",value:o.r,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:i.single},p.createElement(at,{style:{input:i.input,label:i.label},label:"g",value:o.g,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:i.single},p.createElement(at,{style:{input:i.input,label:i.label},label:"b",value:o.b,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:i.alpha},p.createElement(at,{style:{input:i.input,label:i.label},label:"a",value:Math.round(o.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},pat=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}var Ph=24,yat=$A.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,o=e.width,r=o===void 0?Ph:o,a=e.height,s=a===void 0?Ph:a,i=e.style,l=i===void 0?{}:i,d=vat(e,["fill","width","height","style"]);return Gk.default.createElement("svg",Vk({viewBox:"0 0 "+Ph+" "+Ph,style:Vk({fill:n,width:r,height:s},l)},d),Gk.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},bat=function(t){var n=t.color,o=t.onClick,r=o===void 0?function(){}:o,a=t.onSwatchHover,s=t.first,i=t.last,l=t.active,d=Ne({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:Xw(n),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:i,active:l,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return p.createElement(rl,{color:n,style:d.color,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+n}},p.createElement("div",{style:d.check},p.createElement(yat,null)))},wat=function(t){var n=t.onClick,o=t.onSwatchHover,r=t.group,a=t.active,s=Ne({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return p.createElement("div",{style:s.group},al(r,function(i,l){return p.createElement(bat,{key:i,color:i,active:i.toLowerCase()===a,first:l===0,last:l===r.length-1,onClick:n,onSwatchHover:o})}))},iS=function(t){var n=t.width,o=t.height,r=t.onChange,a=t.onSwatchHover,s=t.colors,i=t.hex,l=t.styles,d=l===void 0?{}:l,u=t.className,c=u===void 0?"":u,h=Ne(bo({default:{picker:{width:n,height:o},overflow:{height:o,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},d)),f=function(v,S){return r({hex:v,source:"hex"},S)};return p.createElement("div",{style:h.picker,className:"swatches-picker "+c},p.createElement(Jp,null,p.createElement("div",{style:h.overflow},p.createElement("div",{style:h.body},al(s,function(g){return p.createElement(wat,{key:g.toString(),group:g,active:i,onClick:f,onSwatchHover:a})}),p.createElement("div",{style:h.clear})))))};iS.propTypes={width:L.oneOfType([L.string,L.number]),height:L.oneOfType([L.string,L.number]),colors:L.arrayOf(L.arrayOf(L.string)),styles:L.object};iS.defaultProps={width:320,height:240,colors:[[Ol[900],Ol[700],Ol[500],Ol[300],Ol[100]],[Dl[900],Dl[700],Dl[500],Dl[300],Dl[100]],[Al[900],Al[700],Al[500],Al[300],Al[100]],[Ml[900],Ml[700],Ml[500],Ml[300],Ml[100]],[Nl[900],Nl[700],Nl[500],Nl[300],Nl[100]],[jl[900],jl[700],jl[500],jl[300],jl[100]],[zl[900],zl[700],zl[500],zl[300],zl[100]],[Rl[900],Rl[700],Rl[500],Rl[300],Rl[100]],[Il[900],Il[700],Il[500],Il[300],Il[100]],["#194D33",su[700],su[500],su[300],su[100]],[Ll[900],Ll[700],Ll[500],Ll[300],Ll[100]],[Fl[900],Fl[700],Fl[500],Fl[300],Fl[100]],[Pl[900],Pl[700],Pl[500],Pl[300],Pl[100]],[Bl[900],Bl[700],Bl[500],Bl[300],Bl[100]],[Hl[900],Hl[700],Hl[500],Hl[300],Hl[100]],[Ul[900],Ul[700],Ul[500],Ul[300],Ul[100]],[Wl[900],Wl[700],Wl[500],Wl[300],Wl[100]],[Vl[900],Vl[700],Vl[500],Vl[300],Vl[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};wo(iS);var lS=function(t){var n=t.onChange,o=t.onSwatchHover,r=t.hex,a=t.colors,s=t.width,i=t.triangle,l=t.styles,d=l===void 0?{}:l,u=t.className,c=u===void 0?"":u,h=Ne(bo({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"}}},d),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right"}),f=function(v,S){Ys(v)&&n({hex:v,source:"hex"},S)};return p.createElement("div",{style:h.card,className:"twitter-picker "+c},p.createElement("div",{style:h.triangleShadow}),p.createElement("div",{style:h.triangle}),p.createElement("div",{style:h.body},al(a,function(g,v){return p.createElement(rl,{key:v,color:g,hex:g,style:h.swatch,onClick:f,onHover:o,focusStyle:{boxShadow:"0 0 4px "+g}})}),p.createElement("div",{style:h.hash},"#"),p.createElement(at,{label:null,style:{input:h.input},value:r.replace("#",""),onChange:f}),p.createElement("div",{style:h.clear})))};lS.propTypes={width:L.oneOfType([L.string,L.number]),triangle:L.oneOf(["hide","top-left","top-right"]),colors:L.arrayOf(L.string),styles:L.object};lS.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};wo(lS);var cS=function(t){var n=Ne({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return p.createElement("div",{style:n.picker})};cS.propTypes={hsl:L.shape({h:L.number,s:L.number,l:L.number,a:L.number})};cS.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var dS=function(t){var n=Ne({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return p.createElement("div",{style:n.picker})};dS.propTypes={hsl:L.shape({h:L.number,s:L.number,l:L.number,a:L.number})};dS.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Sat=function(t){var n=t.onChange,o=t.rgb,r=t.hsl,a=t.hex,s=t.hsv,i=function(f,g){if(f.hex)Ys(f.hex)&&n({hex:f.hex,source:"hex"},g);else if(f.rgb){var v=f.rgb.split(",");Gv(f.rgb,"rgb")&&n({r:v[0],g:v[1],b:v[2],a:1,source:"rgb"},g)}else if(f.hsv){var S=f.hsv.split(",");Gv(f.hsv,"hsv")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),S[1]==1?S[1]=.01:S[2]==1&&(S[2]=.01),n({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsv"},g))}else if(f.hsl){var _=f.hsl.split(",");Gv(f.hsl,"hsl")&&(_[2]=_[2].replace("%",""),_[1]=_[1].replace("%",""),_[0]=_[0].replace("°",""),c[1]==1?c[1]=.01:c[2]==1&&(c[2]=.01),n({h:Number(_[0]),s:Number(_[1]),v:Number(_[2]),source:"hsl"},g))}},l=Ne({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"}}}),d=o.r+", "+o.g+", "+o.b,u=Math.round(r.h)+"°, "+Math.round(r.s*100)+"%, "+Math.round(r.l*100)+"%",c=Math.round(s.h)+"°, "+Math.round(s.s*100)+"%, "+Math.round(s.v*100)+"%";return p.createElement("div",{style:l.wrap,className:"flexbox-fix"},p.createElement("div",{style:l.fields},p.createElement("div",{style:l.double},p.createElement(at,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:i})),p.createElement("div",{style:l.column},p.createElement("div",{style:l.single},p.createElement(at,{style:{input:l.input2,label:l.label2},label:"rgb",value:d,onChange:i})),p.createElement("div",{style:l.single},p.createElement(at,{style:{input:l.input2,label:l.label2},label:"hsv",value:c,onChange:i})),p.createElement("div",{style:l.single},p.createElement(at,{style:{input:l.input2,label:l.label2},label:"hsl",value:u,onChange:i})))))},uS=function(t){var n=t.width,o=t.onChange,r=t.rgb,a=t.hsl,s=t.hsv,i=t.hex,l=t.header,d=t.styles,u=d===void 0?{}:d,c=t.className,h=c===void 0?"":c,f=Ne(bo({default:{picker:{width:n,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("+r.r+", "+r.g+", "+r.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"}}},u));return p.createElement("div",{style:f.picker,className:"google-picker "+h},p.createElement("div",{style:f.head},l),p.createElement("div",{style:f.swatch}),p.createElement("div",{style:f.saturation},p.createElement(x_,{hsl:a,hsv:s,pointer:cS,onChange:o})),p.createElement("div",{style:f.body},p.createElement("div",{style:f.controls,className:"flexbox-fix"},p.createElement("div",{style:f.hue},p.createElement(gd,{style:f.Hue,hsl:a,radius:"4px",pointer:dS,onChange:o}))),p.createElement(Sat,{rgb:r,hsl:a,hex:i,hsv:s,onChange:o})))};uS.propTypes={width:L.oneOfType([L.string,L.number]),styles:L.object,header:L.string};uS.defaultProps={width:652,styles:{},header:"Color picker"};wo(uS);var kA={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:(s,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CronParser=void 0;var d=l(515),u=function(){function c(h,f,g){f===void 0&&(f=!0),g===void 0&&(g=!1),this.expression=h,this.dayOfWeekStartIndexZero=f,this.monthStartIndexZero=g}return c.prototype.parse=function(){var h,f,g=(h=this.expression)!==null&&h!==void 0?h:"";if(g.startsWith("@")){var v=this.parseSpecial(this.expression);f=this.extractParts(v)}else f=this.extractParts(this.expression);return this.normalize(f),this.validate(f),f},c.prototype.parseSpecial=function(h){var f={"@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 * * * *"},g=f[h];if(!g)throw new Error("Unknown special expression.");return g},c.prototype.extractParts=function(h){if(!this.expression)throw new Error("cron expression is empty");for(var f=h.trim().split(/[ ]+/),g=0;g7)throw new Error("Expression has ".concat(f.length," parts; too many!"));return f},c.prototype.normalize=function(h){var f=this;if(h[3]=h[3].replace("?","*"),h[5]=h[5].replace("?","*"),h[2]=h[2].replace("?","*"),h[0].indexOf("0/")==0&&(h[0]=h[0].replace("0/","*/")),h[1].indexOf("0/")==0&&(h[1]=h[1].replace("0/","*/")),h[2].indexOf("0/")==0&&(h[2]=h[2].replace("0/","*/")),h[3].indexOf("1/")==0&&(h[3]=h[3].replace("1/","*/")),h[4].indexOf("1/")==0&&(h[4]=h[4].replace("1/","*/")),h[6].indexOf("1/")==0&&(h[6]=h[6].replace("1/","*/")),h[5]=h[5].replace(/(^\d)|([^#/\s]\d)/g,function($){var k=$.replace(/\D/,""),T=k;return f.dayOfWeekStartIndexZero?k=="7"&&(T="0"):T=(parseInt(k)-1).toString(),$.replace(k,T)}),h[5]=="L"&&(h[5]="6"),h[3]=="?"&&(h[3]="*"),h[3].indexOf("W")>-1&&(h[3].indexOf(",")>-1||h[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 g={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var v in g)h[5]=h[5].replace(new RegExp(v,"gi"),g[v].toString());h[4]=h[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function($){var k=$.replace(/\D/,""),T=k;return f.monthStartIndexZero&&(T=(parseInt(k)+1).toString()),$.replace(k,T)});var S={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 _ in S)h[4]=h[4].replace(new RegExp(_,"gi"),S[_].toString());h[0]=="0"&&(h[0]=""),!/\*|\-|\,|\//.test(h[2])&&(/\*|\//.test(h[1])||/\*|\//.test(h[0]))&&(h[2]+="-".concat(h[2]));for(var b=0;b-1&&!/^\*|\-|\,/.test(h[b])){var y=null;switch(b){case 4:y="12";break;case 5:y="6";break;case 6:y="9999";break;default:y=null;break}if(y!==null){var w=h[b].split("/");h[b]="".concat(w[0],"-").concat(y,"/").concat(w[1])}}},c.prototype.validate=function(h){this.assertNoInvalidCharacters("DOW",h[5]),this.assertNoInvalidCharacters("DOM",h[3]),this.validateRange(h)},c.prototype.validateRange=function(h){d.default.secondRange(h[0]),d.default.minuteRange(h[1]),d.default.hourRange(h[2]),d.default.dayOfMonthRange(h[3]),d.default.monthRange(h[4],this.monthStartIndexZero),d.default.dayOfWeekRange(h[5],this.dayOfWeekStartIndexZero)},c.prototype.assertNoInvalidCharacters=function(h,f){var g=f.match(/[A-KM-VX-Z]+/gi);if(g&&g.length)throw new Error("".concat(h," part contains invalid values: '").concat(g.toString(),"'"))},c}();i.CronParser=u},333:(s,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ExpressionDescriptor=void 0;var d=l(823),u=l(949),c=function(){function h(f,g){if(this.expression=f,this.options=g,this.expressionParts=new Array(5),!this.options.locale&&h.defaultLocale&&(this.options.locale=h.defaultLocale),!h.locales[this.options.locale]){var v=Object.keys(h.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(v,"'.")),this.options.locale=v}this.i18n=h.locales[this.options.locale],g.use24HourTimeFormat===void 0&&(g.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return h.toString=function(f,g){var v=g===void 0?{}:g,S=v.throwExceptionOnParseError,_=S===void 0?!0:S,b=v.verbose,y=b===void 0?!1:b,w=v.dayOfWeekStartIndexZero,$=w===void 0?!0:w,k=v.monthStartIndexZero,T=k===void 0?!1:k,O=v.use24HourTimeFormat,D=v.locale,x=D===void 0?null:D,A=v.tzOffset,R=A===void 0?0:A,I={throwExceptionOnParseError:_,verbose:y,dayOfWeekStartIndexZero:$,monthStartIndexZero:T,use24HourTimeFormat:O,locale:x,tzOffset:R},j=new h(f,I);return j.getFullDescription()},h.initialize=function(f,g){g===void 0&&(g="en"),h.specialCharacters=["/","-",",","*"],h.defaultLocale=g,f.load(h.locales)},h.prototype.getFullDescription=function(){var f="";try{var g=new u.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=g.parse();var v=this.getTimeOfDayDescription(),S=this.getDayOfMonthDescription(),_=this.getMonthDescription(),b=this.getDayOfWeekDescription(),y=this.getYearDescription();f+=v+S+b+_+y,f=this.transformVerbosity(f,!!this.options.verbose),f=f.charAt(0).toLocaleUpperCase()+f.substr(1)}catch(w){if(!this.options.throwExceptionOnParseError)f=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(w)}return f},h.prototype.getTimeOfDayDescription=function(){var f=this.expressionParts[0],g=this.expressionParts[1],v=this.expressionParts[2],S="";if(!d.StringUtilities.containsAny(g,h.specialCharacters)&&!d.StringUtilities.containsAny(v,h.specialCharacters)&&!d.StringUtilities.containsAny(f,h.specialCharacters))S+=this.i18n.atSpace()+this.formatTime(v,g,f);else if(!f&&g.indexOf("-")>-1&&!(g.indexOf(",")>-1)&&!(g.indexOf("/")>-1)&&!d.StringUtilities.containsAny(v,h.specialCharacters)){var _=g.split("-");S+=d.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(v,_[0],""),this.formatTime(v,_[1],""))}else if(!f&&v.indexOf(",")>-1&&v.indexOf("-")==-1&&v.indexOf("/")==-1&&!d.StringUtilities.containsAny(g,h.specialCharacters)){var b=v.split(",");S+=this.i18n.at();for(var y=0;y1){var _=S[S.length-1].index;v=v.substring(0,_)+":59"+v.substring(_+3)}}return v},h.prototype.getDayOfWeekDescription=function(){var f=this,g=this.i18n.daysOfTheWeek(),v=null;return this.expressionParts[5]=="*"?v="":v=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(S,_){var b=S;S.indexOf("#")>-1?b=S.substring(0,S.indexOf("#")):S.indexOf("L")>-1&&(b=b.replace("L",""));var y=parseInt(b);if(f.options.tzOffset){var w=f.expressionParts[2],$=parseInt(w)+(f.options.tzOffset?f.options.tzOffset:0);$>=24?y++:$<0&&y--,y>6?y=0:y<0&&(y=6)}var k=f.i18n.daysOfTheWeekInCase?f.i18n.daysOfTheWeekInCase(_)[y]:g[y];if(S.indexOf("#")>-1){var T=null,O=S.substring(S.indexOf("#")+1),D=S.substring(0,S.indexOf("#"));switch(O){case"1":T=f.i18n.first(D);break;case"2":T=f.i18n.second(D);break;case"3":T=f.i18n.third(D);break;case"4":T=f.i18n.fourth(D);break;case"5":T=f.i18n.fifth(D);break}k=T+" "+k}return k},function(S){return parseInt(S)==1?"":d.StringUtilities.format(f.i18n.commaEveryX0DaysOfTheWeek(S),S)},function(S){var _=S.substring(0,S.indexOf("-")),b=f.expressionParts[3]!="*";return b?f.i18n.commaAndX0ThroughX1(_):f.i18n.commaX0ThroughX1(_)},function(S){var _=null;if(S.indexOf("#")>-1){var b=S.substring(S.indexOf("#")+1),y=S.substring(0,S.indexOf("#"));_=f.i18n.commaOnThe(b,y).trim()+f.i18n.spaceX0OfTheMonth()}else if(S.indexOf("L")>-1)_=f.i18n.commaOnTheLastX0OfTheMonth(S.replace("L",""));else{var w=f.expressionParts[3]!="*";_=w?f.i18n.commaAndOnX0():f.i18n.commaOnlyOnX0(S)}return _}),v},h.prototype.getMonthDescription=function(){var f=this,g=this.i18n.monthsOfTheYear(),v=this.getSegmentDescription(this.expressionParts[4],"",function(S,_){return _&&f.i18n.monthsOfTheYearInCase?f.i18n.monthsOfTheYearInCase(_)[parseInt(S)-1]:g[parseInt(S)-1]},function(S){return parseInt(S)==1?"":d.StringUtilities.format(f.i18n.commaEveryX0Months(S),S)},function(S){return f.i18n.commaMonthX0ThroughMonthX1()||f.i18n.commaX0ThroughX1()},function(S){return f.i18n.commaOnlyInMonthX0?f.i18n.commaOnlyInMonthX0():f.i18n.commaOnlyInX0()});return v},h.prototype.getDayOfMonthDescription=function(){var f=this,g=null,v=this.expressionParts[3];switch(v){case"L":g=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":g=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var S=v.match(/(\d{1,2}W)|(W\d{1,2})/);if(S){var _=parseInt(S[0].replace("W","")),b=_==1?this.i18n.firstWeekday():d.StringUtilities.format(this.i18n.weekdayNearestDayX0(),_.toString());g=d.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),b);break}else{var y=v.match(/L-(\d{1,2})/);if(y){var w=y[1];g=d.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(w),w);break}else{if(v=="*"&&this.expressionParts[5]!="*")return"";g=this.getSegmentDescription(v,this.i18n.commaEveryDay(),function($){return $=="L"?f.i18n.lastDay():f.i18n.dayX0?d.StringUtilities.format(f.i18n.dayX0(),$):$},function($){return $=="1"?f.i18n.commaEveryDay():f.i18n.commaEveryX0Days($)},function($){return f.i18n.commaBetweenDayX0AndX1OfTheMonth($)},function($){return f.i18n.commaOnDayX0OfTheMonth($)})}break}}return g},h.prototype.getYearDescription=function(){var f=this,g=this.getSegmentDescription(this.expressionParts[6],"",function(v){return/^\d+$/.test(v)?new Date(parseInt(v),1).getFullYear().toString():v},function(v){return d.StringUtilities.format(f.i18n.commaEveryX0Years(v),v)},function(v){return f.i18n.commaYearX0ThroughYearX1()||f.i18n.commaX0ThroughX1()},function(v){return f.i18n.commaOnlyInYearX0?f.i18n.commaOnlyInYearX0():f.i18n.commaOnlyInX0()});return g},h.prototype.getSegmentDescription=function(f,g,v,S,_,b){var y=null,w=f.indexOf("/")>-1,$=f.indexOf("-")>-1,k=f.indexOf(",")>-1;if(!f)y="";else if(f==="*")y=g;else if(!w&&!$&&!k)y=d.StringUtilities.format(b(f),v(f));else if(k){for(var T=f.split(","),O="",D=0;D0&&T.length>2&&(O+=",",D0&&T.length>1&&(D==T.length-1||T.length==2)&&(O+="".concat(this.i18n.spaceAnd()," ")),T[D].indexOf("/")>-1||T[D].indexOf("-")>-1){var x=T[D].indexOf("-")>-1&&T[D].indexOf("/")==-1,A=this.getSegmentDescription(T[D],g,v,S,x?this.i18n.commaX0ThroughX1:_,b);x&&(A=A.replace(", ","")),O+=A}else w?O+=this.getSegmentDescription(T[D],g,v,S,_,b):O+=v(T[D]);w?y=O:y=d.StringUtilities.format(b(f),O)}else if(w){var T=f.split("/");if(y=d.StringUtilities.format(S(T[1]),T[1]),T[0].indexOf("-")>-1){var R=this.generateRangeSegmentDescription(T[0],_,v);R.indexOf(", ")!=0&&(y+=", "),y+=R}else if(T[0].indexOf("*")==-1){var I=d.StringUtilities.format(b(T[0]),v(T[0]));I=I.replace(", ",""),y+=d.StringUtilities.format(this.i18n.commaStartingX0(),I)}}else $&&(y=this.generateRangeSegmentDescription(f,_,v));return y},h.prototype.generateRangeSegmentDescription=function(f,g,v){var S="",_=f.split("-"),b=v(_[0],1),y=v(_[1],2),w=g(f);return S+=d.StringUtilities.format(w,b,y),S},h.prototype.formatTime=function(f,g,v){var S=0,_=0;this.options.tzOffset&&(S=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),_=parseFloat((this.options.tzOffset%1).toFixed(2)),_!=0&&(_*=60));var b=parseInt(f)+S,y=parseInt(g)+_;y>=60?(y-=60,b+=1):y<0&&(y+=60,b-=1),b>=24?b=b-24:b<0&&(b=24+b);var w="",$=!1;this.options.use24HourTimeFormat||($=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),w=$?"".concat(this.getPeriod(b)," "):" ".concat(this.getPeriod(b)),b>12&&(b-=12),b===0&&(b=12));var k="";return v&&(k=":".concat(("00"+v).substring(v.length))),"".concat($?w:"").concat(("00"+b.toString()).substring(b.toString().length),":").concat(("00"+y.toString()).substring(y.toString().length)).concat(k).concat($?"":w)},h.prototype.transformVerbosity=function(f,g){return g||(f=f.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),f=f.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),f=f.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),f=f.replace(/\, ?$/,"")),f},h.prototype.getPeriod=function(f){return f>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},h.locales={},h}();i.ExpressionDescriptor=c},747:(s,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.enLocaleLoader=void 0;var d=l(486),u=function(){function c(){}return c.prototype.load=function(h){h.en=new d.en},c}();i.enLocaleLoader=u},486:(s,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.en=void 0;var l=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!1},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},d.prototype.everyMinute=function(){return"every minute"},d.prototype.everyHour=function(){return"every hour"},d.prototype.atSpace=function(){return"At "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},d.prototype.at=function(){return"At"},d.prototype.spaceAnd=function(){return" and"},d.prototype.everySecond=function(){return"every second"},d.prototype.everyX0Seconds=function(){return"every %s seconds"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},d.prototype.everyX0Minutes=function(){return"every %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},d.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},d.prototype.everyX0Hours=function(){return"every %s hours"},d.prototype.betweenX0AndX1=function(){return"between %s and %s"},d.prototype.atX0=function(){return"at %s"},d.prototype.commaEveryDay=function(){return", every day"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},d.prototype.commaX0ThroughX1=function(){return", %s through %s"},d.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},d.prototype.first=function(){return"first"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"third"},d.prototype.fourth=function(){return"fourth"},d.prototype.fifth=function(){return"fifth"},d.prototype.commaOnThe=function(){return", on the "},d.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},d.prototype.lastDay=function(){return"the last day"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},d.prototype.commaOnlyOnX0=function(){return", only on %s"},d.prototype.commaAndOnX0=function(){return", and on %s"},d.prototype.commaEveryX0Months=function(){return", every %s months"},d.prototype.commaOnlyInX0=function(){return", only in %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},d.prototype.firstWeekday=function(){return"first weekday"},d.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},d.prototype.commaEveryX0Days=function(){return", every %s days"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},d.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},d.prototype.commaEveryHour=function(){return", every hour"},d.prototype.commaEveryX0Years=function(){return", every %s years"},d.prototype.commaStartingX0=function(){return", starting %s"},d.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},d.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},d}();i.en=l},515:(s,i)=>{Object.defineProperty(i,"__esModule",{value:!0});function l(u,c){if(!u)throw new Error(c)}var d=function(){function u(){}return u.secondRange=function(c){for(var h=c.split(","),f=0;f=0&&g<=59,"seconds part must be >= 0 and <= 59")}},u.minuteRange=function(c){for(var h=c.split(","),f=0;f=0&&g<=59,"minutes part must be >= 0 and <= 59")}},u.hourRange=function(c){for(var h=c.split(","),f=0;f=0&&g<=23,"hours part must be >= 0 and <= 23")}},u.dayOfMonthRange=function(c){for(var h=c.split(","),f=0;f=1&&g<=31,"DOM part must be >= 1 and <= 31")}},u.monthRange=function(c,h){for(var f=c.split(","),g=0;g=1&&v<=12,h?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},u.dayOfWeekRange=function(c,h){for(var f=c.split(","),g=0;g=0&&v<=6,h?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},u}();i.default=d},823:(s,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.StringUtilities=void 0;var l=function(){function d(){}return d.format=function(u){for(var c=[],h=1;h-1})},d}();i.StringUtilities=l}},o={};function r(s){var i=o[s];if(i!==void 0)return i.exports;var l=o[s]={exports:{}};return n[s](l,l.exports,r),l.exports}var a={};return(()=>{var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0;var i=r(333),l=r(747);i.ExpressionDescriptor.initialize(new l.enLocaleLoader),s.default=i.ExpressionDescriptor;var d=i.ExpressionDescriptor.toString;s.toString=d})(),a})())})(kA);var ha=kA.exports;const xat=Xm(ha);var Cat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha)})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.fr=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.everyMinute=function(){return"toutes les minutes"},c.prototype.everyHour=function(){return"toutes les heures"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},c.prototype.atSpace=function(){return"À "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},c.prototype.at=function(){return"À"},c.prototype.spaceAnd=function(){return" et"},c.prototype.everySecond=function(){return"toutes les secondes"},c.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},c.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},c.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},c.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},c.prototype.everyX0Hours=function(){return"toutes les %s heures"},c.prototype.betweenX0AndX1=function(){return"de %s à %s"},c.prototype.atX0=function(){return"à %s"},c.prototype.commaEveryDay=function(){return", tous les jours"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},c.prototype.commaX0ThroughX1=function(){return", de %s à %s"},c.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},c.prototype.first=function(){return"premier"},c.prototype.second=function(){return"second"},c.prototype.third=function(){return"troisième"},c.prototype.fourth=function(){return"quatrième"},c.prototype.fifth=function(){return"cinquième"},c.prototype.commaOnThe=function(){return", le "},c.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},c.prototype.lastDay=function(){return"le dernier jour"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},c.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},c.prototype.commaAndOnX0=function(){return", et %s"},c.prototype.commaEveryX0Months=function(){return", tous les %s mois"},c.prototype.commaOnlyInX0=function(){return", uniquement en %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},c.prototype.firstWeekday=function(){return"premier jour ouvrable"},c.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},c.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},c.prototype.commaEveryX0Days=function(){return", tous les %s jours"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},c.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},c.prototype.commaEveryX0Years=function(){return", tous les %s ans"},c.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},c.prototype.commaStartingX0=function(){return", à partir de %s"},c.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},c.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},c}();return d.fr=u,l().locales.fr=new u,s})())})(Cat);var $at={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha)})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.es=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.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."},c.prototype.at=function(){return"A las"},c.prototype.atSpace=function(){return"A las "},c.prototype.atX0=function(){return"a las %s"},c.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},c.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},c.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},c.prototype.commaEveryDay=function(){return", cada día"},c.prototype.commaEveryX0Days=function(){return", cada %s días"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},c.prototype.commaEveryX0Months=function(){return", cada %s meses"},c.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},c.prototype.commaOnlyInX0=function(){return", sólo en %s"},c.prototype.commaOnlyOnX0=function(){return", sólo el %s"},c.prototype.commaAndOnX0=function(){return", y el %s"},c.prototype.commaOnThe=function(){return", en el "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},c.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},c.prototype.commaX0ThroughX1=function(){return", de %s a %s"},c.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},c.prototype.everyHour=function(){return"cada hora"},c.prototype.everyMinute=function(){return"cada minuto"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},c.prototype.everySecond=function(){return"cada segundo"},c.prototype.everyX0Hours=function(){return"cada %s horas"},c.prototype.everyX0Minutes=function(){return"cada %s minutos"},c.prototype.everyX0Seconds=function(){return"cada %s segundos"},c.prototype.fifth=function(){return"quinto"},c.prototype.first=function(){return"primero"},c.prototype.firstWeekday=function(){return"primer día de la semana"},c.prototype.fourth=function(){return"cuarto"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},c.prototype.second=function(){return"segundo"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},c.prototype.spaceAnd=function(){return" y"},c.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},c.prototype.lastDay=function(){return"el último día"},c.prototype.third=function(){return"tercer"},c.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},c.prototype.commaEveryX0Years=function(){return", cada %s años"},c.prototype.commaStartingX0=function(){return", comenzando %s"},c.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},c.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},c}();return d.es=u,l().locales.es=new u,s})())})($at);var kat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha)})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.de=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.everyMinute=function(){return"jede Minute"},c.prototype.everyHour=function(){return"jede Stunde"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},c.prototype.atSpace=function(){return"Um "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},c.prototype.at=function(){return"Um"},c.prototype.spaceAnd=function(){return" und"},c.prototype.everySecond=function(){return"Jede Sekunde"},c.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},c.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},c.prototype.everyX0Minutes=function(){return"alle %s Minuten"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},c.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},c.prototype.everyX0Hours=function(){return"alle %s Stunden"},c.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},c.prototype.atX0=function(){return"um %s"},c.prototype.commaEveryDay=function(){return", jeden Tag"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},c.prototype.commaX0ThroughX1=function(){return", %s bis %s"},c.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},c.prototype.first=function(){return"ersten"},c.prototype.second=function(){return"zweiten"},c.prototype.third=function(){return"dritten"},c.prototype.fourth=function(){return"vierten"},c.prototype.fifth=function(){return"fünften"},c.prototype.commaOnThe=function(){return", am "},c.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},c.prototype.lastDay=function(){return"der letzte Tag"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},c.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},c.prototype.commaAndOnX0=function(){return", und jeden %s"},c.prototype.commaEveryX0Months=function(){return", alle %s Monate"},c.prototype.commaOnlyInX0=function(){return", nur im %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},c.prototype.firstWeekday=function(){return"ersten Werktag"},c.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},c.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},c.prototype.commaEveryX0Days=function(){return", alle %s Tage"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},c.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},c.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},c.prototype.commaStartingX0=function(){return", beginnend %s"},c.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},c.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},c}();return d.de=u,l().locales.de=new u,s})())})(kat);var Eat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha)})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.it=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},c.prototype.at=function(){return"Alle"},c.prototype.atSpace=function(){return"Alle "},c.prototype.atX0=function(){return"alle %s"},c.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},c.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},c.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},c.prototype.commaEveryDay=function(){return", ogni giorno"},c.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},c.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},c.prototype.commaEveryX0Years=function(){return", ogni %s anni"},c.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},c.prototype.commaOnlyInX0=function(){return", solo in %s"},c.prototype.commaOnlyOnX0=function(){return", solo il %s"},c.prototype.commaAndOnX0=function(){return", e il %s"},c.prototype.commaOnThe=function(){return", il "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},c.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},c.prototype.commaX0ThroughX1=function(){return", %s al %s"},c.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},c.prototype.everyHour=function(){return"ogni ora"},c.prototype.everyMinute=function(){return"ogni minuto"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},c.prototype.everySecond=function(){return"ogni secondo"},c.prototype.everyX0Hours=function(){return"ogni %s ore"},c.prototype.everyX0Minutes=function(){return"ogni %s minuti"},c.prototype.everyX0Seconds=function(){return"ogni %s secondi"},c.prototype.fifth=function(){return"quinto"},c.prototype.first=function(){return"primo"},c.prototype.firstWeekday=function(){return"primo giorno della settimana"},c.prototype.fourth=function(){return"quarto"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},c.prototype.second=function(){return"secondo"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},c.prototype.spaceAnd=function(){return" e"},c.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},c.prototype.lastDay=function(){return"l'ultimo giorno"},c.prototype.third=function(){return"terzo"},c.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},c.prototype.commaStartingX0=function(){return", a partire %s"},c.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},c.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},c}();return d.it=u,l().locales.it=new u,s})())})(Eat);var Tat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha)})(globalThis,n=>(()=>{var o={93:f=>{f.exports=n}},r={};function a(f){var g=r[f];if(g!==void 0)return g.exports;var v=r[f]={exports:{}};return o[f](v,v.exports,a),v.exports}a.n=f=>{var g=f&&f.__esModule?()=>f.default:()=>f;return a.d(g,{a:g}),g},a.d=(f,g)=>{for(var v in g)a.o(g,v)&&!a.o(f,v)&&Object.defineProperty(f,v,{enumerable:!0,get:g[v]})},a.o=(f,g)=>Object.prototype.hasOwnProperty.call(f,g),a.r=f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.ru=void 0;var u=function(f,g){var v=Number(f);return v!==void 0?g[v%100>4&&v%100<20?2:[2,0,1,1,1,2][v%10<5?Math.abs(v)%10:5]]:g[2]},c=function(f,g){var v=Number(f);return v!==void 0?g[v===0?0:v===1||v===2||v===4?1:2]:g[1]},h=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!0},f.prototype.everyMinute=function(){return"каждую минуту"},f.prototype.everyHour=function(){return"каждый час"},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},f.prototype.atSpace=function(){return"В "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},f.prototype.at=function(){return"В"},f.prototype.spaceAnd=function(){return" и"},f.prototype.everySecond=function(){return"каждую секунду"},f.prototype.everyX0Seconds=function(g){return u(g,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},f.prototype.atX0SecondsPastTheMinute=function(g){return u(g,["в %s секунду","в %s секунды","в %s секунд"])},f.prototype.everyX0Minutes=function(g){return u(g,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},f.prototype.atX0MinutesPastTheHour=function(g){return u(g,["в %s минуту","в %s минуты","в %s минут"])},f.prototype.everyX0Hours=function(g){return u(g,["каждый %s час","каждые %s часа","каждые %s часов"])},f.prototype.betweenX0AndX1=function(){return"с %s по %s"},f.prototype.atX0=function(){return"в %s"},f.prototype.commaEveryDay=function(){return", каждый день"},f.prototype.commaEveryX0DaysOfTheWeek=function(g){return u(g,["",", каждые %s дня недели",", каждые %s дней недели"])},f.prototype.commaX0ThroughX1=function(g){return g&&(g[0]=="2"||g[0]=="3")?", со %s по %s":", с %s по %s"},f.prototype.commaAndX0ThroughX1=function(g){return g&&(g[0]=="2"||g[0]=="3")?" и со %s по %s":" и с %s по %s"},f.prototype.first=function(g){return c(g,["первое","первый","первую"])},f.prototype.second=function(g){return c(g,["второе","второй","вторую"])},f.prototype.third=function(g){return c(g,["третье","третий","третью"])},f.prototype.fourth=function(g){return c(g,["четвертое","четвертый","четвертую"])},f.prototype.fifth=function(g){return c(g,["пятое","пятый","пятую"])},f.prototype.commaOnThe=function(g){return g==="2"?", во ":", в "},f.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},f.prototype.lastDay=function(){return"последний день"},f.prototype.commaOnTheLastX0OfTheMonth=function(g){return c(g,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},f.prototype.commaOnlyOnX0=function(g){return g&&g[0]==="2"?", только во %s":", только в %s"},f.prototype.commaAndOnX0=function(){return", и %s"},f.prototype.commaEveryX0Months=function(g){return u(g,[""," каждые %s месяца"," каждые %s месяцев"])},f.prototype.commaOnlyInMonthX0=function(){return", только %s"},f.prototype.commaOnlyInX0=function(){return", только в %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(g){return u(g,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},f.prototype.firstWeekday=function(){return"первый будний день"},f.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},f.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},f.prototype.commaEveryX0Days=function(g){return u(g,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(g){return g&&g.substring(0,g.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},f.prototype.commaOnDayX0OfTheMonth=function(g){return g&&g[0]=="2"?", во %s число месяца":", в %s число месяца"},f.prototype.commaEveryX0Years=function(g){return u(g,[", каждый %s год",", каждые %s года",", каждые %s лет"])},f.prototype.commaStartingX0=function(){return", начало %s"},f.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},f.prototype.daysOfTheWeekInCase=function(g){return g===void 0&&(g=2),g==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},f.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},f.prototype.monthsOfTheYearInCase=function(g){return g==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},f}();return d.ru=h,l().locales.ru=new h,s})())})(Tat);var Oat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha)})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.zh_CN=void 0;var u=function(){function c(){}return c.prototype.setPeriodBeforeTime=function(){return!0},c.prototype.pm=function(){return"下午"},c.prototype.am=function(){return"上午"},c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},c.prototype.use24HourTimeFormatByDefault=function(){return!1},c.prototype.everyMinute=function(){return"每分钟"},c.prototype.everyHour=function(){return"每小时"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},c.prototype.atSpace=function(){return"在"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},c.prototype.at=function(){return"在"},c.prototype.spaceAnd=function(){return" 和"},c.prototype.everySecond=function(){return"每秒"},c.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},c.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},c.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},c.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},c.prototype.everyX0Hours=function(){return"每隔 %s 小时"},c.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},c.prototype.atX0=function(){return"在%s"},c.prototype.commaEveryDay=function(){return", 每天"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},c.prototype.commaX0ThroughX1=function(){return", %s至%s"},c.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},c.prototype.first=function(){return"第一个"},c.prototype.second=function(){return"第二个"},c.prototype.third=function(){return"第三个"},c.prototype.fourth=function(){return"第四个"},c.prototype.fifth=function(){return"第五个"},c.prototype.commaOnThe=function(){return", 限每月的"},c.prototype.spaceX0OfTheMonth=function(){return"%s"},c.prototype.lastDay=function(){return"本月最后一天"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},c.prototype.commaOnlyOnX0=function(){return", 仅%s"},c.prototype.commaAndOnX0=function(){return", 或者为%s"},c.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},c.prototype.commaOnlyInX0=function(){return", 仅限%s"},c.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},c.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},c.prototype.firstWeekday=function(){return"第一个工作日"},c.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},c.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},c.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},c.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},c.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},c.prototype.commaStartingX0=function(){return", %s开始"},c.prototype.dayX0=function(){return" %s 号"},c.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},c.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},c}();return d.zh_CN=u,l().locales.zh_CN=new u,s})())})(Oat);var Dat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha)})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.uk=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.everyMinute=function(){return"щохвилини"},c.prototype.everyHour=function(){return"щогодини"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},c.prototype.atSpace=function(){return"О "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},c.prototype.at=function(){return"О"},c.prototype.spaceAnd=function(){return" та"},c.prototype.everySecond=function(){return"Щосекунди"},c.prototype.everyX0Seconds=function(){return"кожні %s секунд"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},c.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},c.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},c.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},c.prototype.everyX0Hours=function(){return"кожні %s годин"},c.prototype.betweenX0AndX1=function(){return"між %s та %s"},c.prototype.atX0=function(){return"о %s"},c.prototype.commaEveryDay=function(){return", щоденно"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},c.prototype.commaX0ThroughX1=function(){return", %s по %s"},c.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},c.prototype.first=function(){return"перший"},c.prototype.second=function(){return"другий"},c.prototype.third=function(){return"третій"},c.prototype.fourth=function(){return"четвертий"},c.prototype.fifth=function(){return"п'ятий"},c.prototype.commaOnThe=function(){return", в "},c.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},c.prototype.lastDay=function(){return"останній день"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},c.prototype.commaOnlyOnX0=function(){return", тільки в %s"},c.prototype.commaAndOnX0=function(){return", і в %s"},c.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},c.prototype.commaOnlyInX0=function(){return", тільки в %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},c.prototype.firstWeekday=function(){return"перший будень"},c.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},c.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},c.prototype.commaEveryX0Days=function(){return", кожен %s день"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},c.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},c.prototype.commaEveryX0Years=function(){return", кожні %s роки"},c.prototype.commaStartingX0=function(){return", початок %s"},c.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},c.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},c}();return d.uk=u,l().locales.uk=new u,s})())})(Dat);var Aat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha)})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.pt_BR=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},c.prototype.at=function(){return"às"},c.prototype.atSpace=function(){return"às "},c.prototype.atX0=function(){return"Às %s"},c.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},c.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},c.prototype.betweenX0AndX1=function(){return"entre %s e %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},c.prototype.commaEveryDay=function(){return", a cada dia"},c.prototype.commaEveryX0Days=function(){return", a cada %s dias"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},c.prototype.commaEveryX0Months=function(){return", a cada %s meses"},c.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},c.prototype.commaOnlyInX0=function(h){return h&&h.length>1&&h[1]==="-"?"somente %s":", somente em %s"},c.prototype.commaOnlyOnX0=function(h){return h&&h.length>1&&h[1]==="-"?", somente %s":", somente de %s"},c.prototype.commaAndOnX0=function(){return", e de %s"},c.prototype.commaOnThe=function(h,f){return f==="6"||f==="0"?", no":", na "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},c.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},c.prototype.commaX0ThroughX1=function(){return", de %s a %s"},c.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},c.prototype.everyHour=function(){return"a cada hora"},c.prototype.everyMinute=function(){return"a cada minuto"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},c.prototype.everySecond=function(){return"a cada segundo"},c.prototype.everyX0Hours=function(){return"a cada %s horas"},c.prototype.everyX0Minutes=function(){return"a cada %s minutos"},c.prototype.everyX0Seconds=function(){return"a cada %s segundos"},c.prototype.fifth=function(h){return h==="6"||h==="0"?"quinto":"quinta"},c.prototype.first=function(h){return h==="6"||h==="0"?"primeiro":"primeira"},c.prototype.firstWeekday=function(){return"primeiro dia da semana"},c.prototype.fourth=function(h){return h==="6"||h==="0"?"quarto":"quarta"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},c.prototype.second=function(h){return h==="6"||h==="0"?"segundo":"segunda"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},c.prototype.spaceAnd=function(){return" e"},c.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},c.prototype.lastDay=function(){return"o último dia"},c.prototype.third=function(h){return h==="6"||h==="0"?"terceiro":"terceira"},c.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},c.prototype.commaEveryX0Years=function(){return", a cada %s anos"},c.prototype.commaStartingX0=function(){return", iniciando %s"},c.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},c.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},c}();return d.pt_BR=u,l().locales.pt_BR=new u,s})())})(Aat);var Mat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha)})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.pl=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},c.prototype.at=function(){return"O"},c.prototype.atSpace=function(){return"O "},c.prototype.atX0=function(){return"o %s"},c.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},c.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},c.prototype.betweenX0AndX1=function(){return"od %s do %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},c.prototype.commaEveryDay=function(){return", co dzień"},c.prototype.commaEveryX0Days=function(){return", co %s dni"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},c.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},c.prototype.commaEveryX0Years=function(){return", co %s lat"},c.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},c.prototype.commaOnlyInX0=function(){return", tylko %s"},c.prototype.commaOnlyOnX0=function(){return", tylko %s"},c.prototype.commaAndOnX0=function(){return", i %s"},c.prototype.commaOnThe=function(){return", "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},c.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},c.prototype.commaX0ThroughX1=function(){return", od %s do %s"},c.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},c.prototype.everyHour=function(){return"co godzinę"},c.prototype.everyMinute=function(){return"co minutę"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},c.prototype.everySecond=function(){return"co sekundę"},c.prototype.everyX0Hours=function(){return"co %s godzin"},c.prototype.everyX0Minutes=function(){return"co %s minut"},c.prototype.everyX0Seconds=function(){return"co %s sekund"},c.prototype.fifth=function(){return"piąty"},c.prototype.first=function(){return"pierwszy"},c.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},c.prototype.fourth=function(){return"czwarty"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},c.prototype.second=function(){return"drugi"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},c.prototype.spaceAnd=function(){return" i"},c.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},c.prototype.lastDay=function(){return"ostatni dzień"},c.prototype.third=function(){return"trzeci"},c.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},c.prototype.commaStartingX0=function(){return", startowy %s"},c.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},c.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},c}();return d.pl=u,l().locales.pl=new u,s})())})(Mat);function EA(e,t){return xat.toString(e,{locale:t})}const io={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},Nat=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],jat=["January","February","March","April","May","June","July","August","September","October","November","December"];function qk(e,t){const n=[];if(e==="*"){if(t===24||t===60||t===7)for(let r=0;r1){const s=parseInt(a[1],10);for(let i=parseInt(a[0],10);i<=s;i++)n.push(i)}else n.push(parseInt(o[r],10))}n.sort();for(let r=n.length-1;r>=0;r--)n[r]===n[r+1]&&n.splice(r+1,1);return n}function Xk(e,t){if(typeof e!="object"&&(e=[e]),e.length===t)return"*";const n=[];if(!e.length)return"-";e=e.map(a=>parseInt(a,10)),e.sort((a,s)=>a-s);let o=e[0],r=e[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(t){t=t.replace(/['"]/g,"").trim();const n=t.split(" ").map(r=>r.trim());let o;return n.length===6?o={seconds:n[0]||"*",minutes:n[1]||"*",hours:n[2]||"*",dates:n[3]||"*",months:n[4]||"*",dow:n[5]||"*"}:o={seconds:!1,minutes:n[0]||"*",hours:n[1]||"*",dates:n[2]||"*",months:n[3]||"*",dow:n[4]||"*"},o}static state2cron(t){let n=`${t.minutes} ${t.hours} ${t.dates} ${t.months} ${t.dow}`;return t.seconds!==!1&&(n=`${t.seconds} ${n}`),n}recalcCron(){const t=ws.state2cron(this.state);t!==this.state.cron&&this.setState({cron:t},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(t,n,o){if(t===!0)this.setCronAttr(n,"*");else if(t===!1)o===60||o===24?this.setCronAttr(n,"0"):this.setCronAttr(n,"1");else{const r=qk(this.state[n],o),a=r.indexOf(t);a!==-1?r.splice(a,1):(r.push(t),r.sort()),this.setCronAttr(n,Xk(r,o))}}getDigitsSelector(t,n){let o=[];if(n===7)o=[1,2,3,4,5,6,0];else if(n===60||n===24)for(let a=0;athis.onToggle(!1,t,n)},E.t("ra_Deselect all")),p.createElement(he,{key:"addall",variant:"contained",style:io.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,t,n)},E.t("ra_Select all")),p.createElement("div",{key:"all"},o.map(a=>[n===7&&a===4||n===12&&a===7||n===31&&!((a-1)%10)||n===60&&a&&!(a%10)||n===24&&a&&!(a%6)?p.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,p.createElement(he,{key:`_${a}`,variant:r.indexOf(a)!==-1?"contained":"outlined",style:io.numberButton,color:r.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,t,n)},n===7?E.t(Nat[a]):n===12?jat[a-1]:a)]))]}getPeriodsTab(t,n){const o=this.state[t];let r=o==="*",a=o==null?!1:o.toString().includes("/"),s;if(this.state.modes[t]===null){s=r?"every":a?"everyN":"specific";const l=JSON.parse(JSON.stringify(this.state.modes));return l[t]=s,setTimeout(()=>this.setState({modes:l},()=>this.recalcCron()),100),null}r=this.state.modes[t]==="every",a=this.state.modes[t]==="everyN",s=this.state.modes[t];let i=1;return a&&o&&(i=parseInt(o.replace("*/",""),10)||1),p.createElement("div",null,p.createElement(_n,{variant:"standard",style:{...io.periodSelect,verticalAlign:"bottom"},value:s,onChange:l=>{const d=JSON.parse(JSON.stringify(this.state.modes));if(d[t]=l.target.value,l.target.value==="every")this.setCronAttr(t,"*",d);else if(l.target.value==="everyN"){const u=parseInt((this.state[t]||"").toString().replace("*/",""),10)||1;this.setCronAttr(t,`*/${u}`,d)}else if(l.target.value==="specific"){let u=parseInt((this.state[t]||"").toString().split(",")[0],10)||0;!u&&(t==="months"||t==="dates")&&(u=1),this.setCronAttr(t,Xk(u,n),d)}}},p.createElement(je,{key:"every",value:"every"},E.t(`sc_every_${t}`)),p.createElement(je,{key:"everyN",value:"everyN"},E.t(`sc_everyN_${t}`)),p.createElement(je,{key:"specific",value:"specific"},E.t(`sc_specific_${t}`))),a&&p.createElement(st,{variant:"standard",key:"interval",label:E.t(`sc_${t}`),value:i,slotProps:{htmlInput:{min:1,max:n},inputLabel:{shrink:!0}},onChange:l=>{this.setState({[t]:`*/${l.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!r&&!a&&this.getDigitsSelector(t,n))}static convertCronToText(t,n){return t.split(" ").includes("-")?E.t("ra_Invalid CRON"):EA(t,n)}setCronAttr(t,n,o){o?t==="seconds"?this.setState({seconds:n,modes:o},()=>this.recalcCron()):t==="minutes"?this.setState({minutes:n,modes:o},()=>this.recalcCron()):t==="hours"?this.setState({hours:n,modes:o},()=>this.recalcCron()):t==="dates"?this.setState({dates:n,modes:o},()=>this.recalcCron()):t==="months"?this.setState({months:n,modes:o},()=>this.recalcCron()):t==="dow"?this.setState({dow:n,modes:o},()=>this.recalcCron()):this.setState({modes:o},()=>this.recalcCron()):t==="seconds"?this.setState({seconds:n},()=>this.recalcCron()):t==="minutes"?this.setState({minutes:n},()=>this.recalcCron()):t==="hours"?this.setState({hours:n},()=>this.recalcCron()):t==="dates"?this.setState({dates:n},()=>this.recalcCron()):t==="months"?this.setState({months:n},()=>this.recalcCron()):t==="dow"&&this.setState({dow:n},()=>this.recalcCron())}render(){const t=this.state.seconds!==!1?this.state.tab:this.state.tab+1,n=this.state.minutes==="*"||this.state.minutes==="*/1",o=this.state.seconds==="*"||this.state.seconds==="*/1";return p.createElement("div",{style:io.mainDiv},p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},p.createElement(st,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},ws.convertCronToText(this.state.cron,this.props.language||"en"),p.createElement("span",{style:io.warning},o?E.t("ra_warning_every_second"):n?E.t("ra_warning_every_minute"):"")),p.createElement(Oe,{control:p.createElement(Tt,{checked:!!this.state.seconds,onChange:r=>this.setState({seconds:r.target.checked?"*":!1},()=>this.recalcCron())}),label:E.t("ra_use seconds")}),p.createElement(Z4,{position:"static",sx:{"&.MuiAppBar-root":io.appBar},color:"secondary"},p.createElement(x5,{value:this.state.tab,style:io.appBar,color:"secondary",onChange:(r,a)=>this.setState({tab:a})},this.state.seconds!==!1&&p.createElement(po,{id:"sc_seconds",label:E.t("sc_seconds")}),p.createElement(po,{id:"minutes",label:E.t("sc_minutes")}),p.createElement(po,{id:"hours",label:E.t("sc_hours")}),p.createElement(po,{id:"dates",label:E.t("sc_dates")}),p.createElement(po,{id:"months",label:E.t("sc_months")}),p.createElement(po,{id:"dow",label:E.t("sc_dows")}))),t===0&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("seconds",60)),t===1&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("minutes",60)),t===2&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("hours",24)),t===3&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("dates",31)),t===4&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("months",12)),t===5&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("dow",7)))}}function sl(e,t,n,o){function r(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function i(u){try{d(o.next(u))}catch(c){s(c)}}function l(u){try{d(o.throw(u))}catch(c){s(c)}}function d(u){u.done?a(u.value):r(u.value).then(i,l)}d((o=o.apply(e,t||[])).next())})}const zat=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 Vc(e,t,n){const o=Rat(e),{webkitRelativePath:r}=e,a=typeof t=="string"?t:typeof r=="string"&&r.length>0?r:`./${e.name}`;return typeof o.path!="string"&&Jk(o,"path",a),Jk(o,"relativePath",a),o}function Rat(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const o=t.split(".").pop().toLowerCase(),r=zat.get(o);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function Jk(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const Iat=[".DS_Store","Thumbs.db"];function Lat(e){return sl(this,void 0,void 0,function*(){return zm(e)&&Fat(e.dataTransfer)?Uat(e.dataTransfer,e.type):Pat(e)?Bat(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?Hat(e):[]})}function Fat(e){return zm(e)}function Pat(e){return zm(e)&&zm(e.target)}function zm(e){return typeof e=="object"&&e!==null}function Bat(e){return o0(e.target.files).map(t=>Vc(t))}function Hat(e){return sl(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Vc(n))})}function Uat(e,t){return sl(this,void 0,void 0,function*(){if(e.items){const n=o0(e.items).filter(r=>r.kind==="file");if(t!=="drop")return n;const o=yield Promise.all(n.map(Wat));return Yk(TA(o))}return Yk(o0(e.files).map(n=>Vc(n)))})}function Yk(e){return e.filter(t=>Iat.indexOf(t.name)===-1)}function o0(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?TA(n):[n]],[])}function Kk(e,t){return sl(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const s=yield a.getFile();return s.handle=a,Vc(s)}}const o=e.getAsFile();if(!o)throw new Error(`${e} is not a File`);return Vc(o,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function Vat(e){return sl(this,void 0,void 0,function*(){return e.isDirectory?OA(e):Gat(e)})}function OA(e){const t=e.createReader();return new Promise((n,o)=>{const r=[];function a(){t.readEntries(s=>sl(this,void 0,void 0,function*(){if(s.length){const i=Promise.all(s.map(Vat));r.push(i),a()}else try{const i=yield Promise.all(r);n(i)}catch(i){o(i)}}),s=>{o(s)})}a()})}function Gat(e){return sl(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(o=>{const r=Vc(o,e.fullPath);t(r)},o=>{n(o)})})})}var Xv=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var o=e.name||"",r=(e.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return n.some(function(s){var i=s.trim().toLowerCase();return i.charAt(0)==="."?o.toLowerCase().endsWith(i):i.endsWith("/*")?a===i.replace(/\/.*$/,""):r===i})}return!0};function Zk(e){return Jat(e)||Xat(e)||AA(e)||qat()}function qat(){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 Xat(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jat(e){if(Array.isArray(e))return r0(e)}function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function eE(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),o=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:est,message:"File type must be ".concat(o)}},tE=function(t){return{code:tst,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},nE=function(t){return{code:nst,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},ast={code:ost,message:"Too many files"};function MA(e,t){var n=e.type==="application/x-moz-file"||Qat(e,t);return[n,n?null:rst(t)]}function NA(e,t,n){if(ui(e.size))if(ui(t)&&ui(n)){if(e.size>n)return[!1,tE(n)];if(e.sizen)return[!1,tE(n)]}return[!0,null]}function ui(e){return e!=null}function sst(e){var t=e.files,n=e.accept,o=e.minSize,r=e.maxSize,a=e.multiple,s=e.maxFiles,i=e.validator;return!a&&t.length>1||a&&s>=1&&t.length>s?!1:t.every(function(l){var d=MA(l,n),u=pp(d,1),c=u[0],h=NA(l,o,r),f=pp(h,1),g=f[0],v=i?i(l):null;return c&&g&&!v})}function Rm(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Bh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function oE(e){e.preventDefault()}function ist(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function lst(e){return e.indexOf("Edge/")!==-1}function cst(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return ist(e)||lst(e)}function Lr(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),s=1;se.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function kst(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,a;for(a=0;a=0)&&(n[r]=e[r]);return n}var k_=C.forwardRef(function(e,t){var n=e.children,o=Im(e,mst),r=Est(o),a=r.open,s=Im(r,gst);return C.useImperativeHandle(t,function(){return{open:a}},[a]),p.createElement(C.Fragment,null,n(Qt(Qt({},s),{},{open:a})))});k_.displayName="Dropzone";var IA={disabled:!1,getFilesFromEvent:Lat,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};k_.defaultProps=IA;k_.propTypes={children:L.func,accept:L.objectOf(L.arrayOf(L.string)),multiple:L.bool,preventDropOnDocument:L.bool,noClick:L.bool,noKeyboard:L.bool,noDrag:L.bool,noDragEventsBubbling:L.bool,minSize:L.number,maxSize:L.number,maxFiles:L.number,disabled:L.bool,getFilesFromEvent:L.func,onFileDialogCancel:L.func,onFileDialogOpen:L.func,useFsAccessApi:L.bool,autoFocus:L.bool,onDragEnter:L.func,onDragLeave:L.func,onDragOver:L.func,onDrop:L.func,onDropAccepted:L.func,onDropRejected:L.func,onError:L.func,validator:L.func};var i0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Est(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Qt(Qt({},IA),e),n=t.accept,o=t.disabled,r=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,i=t.multiple,l=t.maxFiles,d=t.onDragEnter,u=t.onDragLeave,c=t.onDragOver,h=t.onDrop,f=t.onDropAccepted,g=t.onDropRejected,v=t.onFileDialogCancel,S=t.onFileDialogOpen,_=t.useFsAccessApi,b=t.autoFocus,y=t.preventDropOnDocument,w=t.noClick,$=t.noKeyboard,k=t.noDrag,T=t.noDragEventsBubbling,O=t.onError,D=t.validator,x=C.useMemo(function(){return pst(n)},[n]),A=C.useMemo(function(){return ust(n)},[n]),R=C.useMemo(function(){return typeof S=="function"?S:aE},[S]),I=C.useMemo(function(){return typeof v=="function"?v:aE},[v]),j=C.useRef(null),N=C.useRef(null),M=C.useReducer(Tst,i0),P=Jv(M,2),H=P[0],B=P[1],Z=H.isFocused,oe=H.isFileDialogActive,ve=C.useRef(typeof window<"u"&&window.isSecureContext&&_&&dst()),fe=function(){!ve.current&&oe&&setTimeout(function(){if(N.current){var ge=N.current.files;ge.length||(B({type:"closeDialog"}),I())}},300)};C.useEffect(function(){return window.addEventListener("focus",fe,!1),function(){window.removeEventListener("focus",fe,!1)}},[N,oe,I,ve]);var le=C.useRef([]),Se=function(ge){j.current&&j.current.contains(ge.target)||(ge.preventDefault(),le.current=[])};C.useEffect(function(){return y&&(document.addEventListener("dragover",oE,!1),document.addEventListener("drop",Se,!1)),function(){y&&(document.removeEventListener("dragover",oE),document.removeEventListener("drop",Se))}},[j,y]),C.useEffect(function(){return!o&&b&&j.current&&j.current.focus(),function(){}},[j,b,o]);var De=C.useCallback(function(K){O?O(K):console.error(K)},[O]),et=C.useCallback(function(K){K.preventDefault(),K.persist(),Xe(K),le.current=[].concat(yst(le.current),[K.target]),Bh(K)&&Promise.resolve(r(K)).then(function(ge){if(!(Rm(K)&&!T)){var Ke=ge.length,Te=Ke>0&&sst({files:ge,accept:x,minSize:s,maxSize:a,multiple:i,maxFiles:l,validator:D}),Ie=Ke>0&&!Te;B({isDragAccept:Te,isDragReject:Ie,isDragActive:!0,type:"setDraggedFiles"}),d&&d(K)}}).catch(function(ge){return De(ge)})},[r,d,De,T,x,s,a,i,l,D]),Ge=C.useCallback(function(K){K.preventDefault(),K.persist(),Xe(K);var ge=Bh(K);if(ge&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return ge&&c&&c(K),!1},[c,T]),qe=C.useCallback(function(K){K.preventDefault(),K.persist(),Xe(K);var ge=le.current.filter(function(Te){return j.current&&j.current.contains(Te)}),Ke=ge.indexOf(K.target);Ke!==-1&&ge.splice(Ke,1),le.current=ge,!(ge.length>0)&&(B({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Bh(K)&&u&&u(K))},[j,u,T]),xe=C.useCallback(function(K,ge){var Ke=[],Te=[];K.forEach(function(Ie){var Ue=MA(Ie,x),zt=Jv(Ue,2),we=zt[0],St=zt[1],yn=NA(Ie,s,a),ae=Jv(yn,2),Q=ae[0],ne=ae[1],Le=D?D(Ie):null;if(we&&Q&&!Le)Ke.push(Ie);else{var Re=[St,ne];Le&&(Re=Re.concat(Le)),Te.push({file:Ie,errors:Re.filter(function(Rt){return Rt})})}}),(!i&&Ke.length>1||i&&l>=1&&Ke.length>l)&&(Ke.forEach(function(Ie){Te.push({file:Ie,errors:[ast]})}),Ke.splice(0)),B({acceptedFiles:Ke,fileRejections:Te,isDragReject:Te.length>0,type:"setFiles"}),h&&h(Ke,Te,ge),Te.length>0&&g&&g(Te,ge),Ke.length>0&&f&&f(Ke,ge)},[B,i,x,s,a,l,h,f,g,D]),Ee=C.useCallback(function(K){K.preventDefault(),K.persist(),Xe(K),le.current=[],Bh(K)&&Promise.resolve(r(K)).then(function(ge){Rm(K)&&!T||xe(ge,K)}).catch(function(ge){return De(ge)}),B({type:"reset"})},[r,xe,De,T]),me=C.useCallback(function(){if(ve.current){B({type:"openDialog"}),R();var K={multiple:i,types:A};window.showOpenFilePicker(K).then(function(ge){return r(ge)}).then(function(ge){xe(ge,null),B({type:"closeDialog"})}).catch(function(ge){hst(ge)?(I(ge),B({type:"closeDialog"})):fst(ge)?(ve.current=!1,N.current?(N.current.value=null,N.current.click()):De(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."))):De(ge)});return}N.current&&(B({type:"openDialog"}),R(),N.current.value=null,N.current.click())},[B,R,I,_,xe,De,A,i]),ot=C.useCallback(function(K){!j.current||!j.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),me())},[j,me]),Ce=C.useCallback(function(){B({type:"focus"})},[]),ze=C.useCallback(function(){B({type:"blur"})},[]),X=C.useCallback(function(){w||(cst()?setTimeout(me,0):me())},[w,me]),ee=function(ge){return o?null:ge},$e=function(ge){return $?null:ee(ge)},Ae=function(ge){return k?null:ee(ge)},Xe=function(ge){T&&ge.stopPropagation()},Be=C.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ge=K.refKey,Ke=ge===void 0?"ref":ge,Te=K.role,Ie=K.onKeyDown,Ue=K.onFocus,zt=K.onBlur,we=K.onClick,St=K.onDragEnter,yn=K.onDragOver,ae=K.onDragLeave,Q=K.onDrop,ne=Im(K,_st);return Qt(Qt(s0({onKeyDown:$e(Lr(Ie,ot)),onFocus:$e(Lr(Ue,Ce)),onBlur:$e(Lr(zt,ze)),onClick:ee(Lr(we,X)),onDragEnter:Ae(Lr(St,et)),onDragOver:Ae(Lr(yn,Ge)),onDragLeave:Ae(Lr(ae,qe)),onDrop:Ae(Lr(Q,Ee)),role:typeof Te=="string"&&Te!==""?Te:"presentation"},Ke,j),!o&&!$?{tabIndex:0}:{}),ne)}},[j,ot,Ce,ze,X,et,Ge,qe,Ee,$,k,o]),_e=C.useCallback(function(K){K.stopPropagation()},[]),nn=C.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ge=K.refKey,Ke=ge===void 0?"ref":ge,Te=K.onChange,Ie=K.onClick,Ue=Im(K,vst),zt=s0({accept:x,multiple:i,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ee(Lr(Te,Ee)),onClick:ee(Lr(Ie,_e)),tabIndex:-1},Ke,N);return Qt(Qt({},zt),Ue)}},[N,n,i,Ee,o]);return Qt(Qt({},H),{},{isFocused:Z&&!o,getRootProps:Be,getInputProps:nn,rootRef:j,inputRef:N,open:ee(me)})}function Tst(e,t){switch(t.type){case"focus":return Qt(Qt({},e),{},{isFocused:!0});case"blur":return Qt(Qt({},e),{},{isFocused:!1});case"openDialog":return Qt(Qt({},i0),{},{isFileDialogActive:!0});case"closeDialog":return Qt(Qt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Qt(Qt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Qt(Qt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Qt({},i0);default:return e}}function aE(){}function Ost(){const e=qa();return[...e.breakpoints.keys].reverse().reduce((n,o)=>{const r=m5(e.breakpoints.up(o));return!n&&r?o:n},null)||"xs"}function E_(){return e=>function(n){const o=Ost();return p.createElement(e,{...n,width:o})}}function Dst(e){const[t,n]=p.useState(e.input||e.value||""),[o,r]=p.useState("");return p.createElement(yt,{open:!0,onClose:()=>e.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:e.fullWidth!==void 0?e.fullWidth:!1},p.createElement(bt,{id:"form-dialog-title"},e.titleText),p.createElement(jt,null,p.createElement(Ra,null,e.promptText),p.createElement(st,{variant:"standard",autoFocus:!0,margin:"dense",error:!!o,helperText:o===!0||!o?"":o,value:t,label:e.labelText||"",type:e.type||"text",onKeyUp:a=>a.code==="Enter"&&t&&e.onClose(t),onChange:a=>{let s="";e.verify&&(s=!e.verify(a.target.value)),e.rule?n(e.rule(a.target.value)):n(a.target.value),r(s)},fullWidth:!0})),p.createElement(Nt,null,p.createElement(he,{variant:"contained",disabled:!t||!!o,onClick:()=>e.onClose(t),color:"primary",startIcon:p.createElement(qn,null)},e.applyText||E.t("ra_Ok")),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>e.onClose(null),startIcon:p.createElement(Dt,null)},e.cancelText||E.t("ra_Cancel"))))}const Ast=E_()(Dst),Lm=e=>p.createElement("svg",{onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 486 486",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:e.className,style:e.style},p.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"}),p.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"})),yc=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 650 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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"})),Ef=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 650 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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"})),pS=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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 Mst=e=>typeof e!="string"?{}:e.split(/ ?; ?/).reduce((t,n)=>{const[o,r]=n.split(/ ?: ?/).map((a,s)=>s===0?a.replace(/\s+/g,""):a.trim());if(o&&r){const a=o.replace(/(\w)-(\w)/g,(i,l,d)=>`${l}${d.toUpperCase()}`);let s=r.trim();Number.isNaN(Number(r))||(s=Number(r)),t[o.startsWith("-")?o:a]=s}return t},{});function Nst(e=6){const t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let n="";for(let o=e;o>0;--o)n+=t[Math.round(Math.random()*(t.length-1))];return n}var jst=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],sE={"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 zst(e,t){var a;const{key:n,level:o,...r}=t;switch(e.nodeType){case 1:return C.createElement(Ist(e.nodeName),Rst(e,n),iE(e.childNodes,o,r));case 3:{const s=((a=e.nodeValue)==null?void 0:a.toString())??"";if(!r.allowWhiteSpaces&&/^\s+$/.test(s)&&!/[\u00A0\u202F]/.test(s))return null;if(!e.parentNode)return s;const i=e.parentNode.nodeName.toLowerCase();return jst.includes(i)?(/\S/.test(s)&&console.warn(`A textNode is not allowed inside '${i}'. Your text "${s}" will be ignored`),null):s}case 8:return null;case 11:return iE(e.childNodes,o,t);default:return null}}function Rst(e,t){const n={key:t};if(e instanceof Element){const o=e.getAttribute("class");o&&(n.className=o),[...e.attributes].forEach(r=>{switch(r.name){case"class":break;case"style":n[r.name]=Mst(r.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":n[sE[r.name]||r.name]=!0;break;default:n[sE[r.name]||r.name]=r.value}})}return n}function iE(e,t,n){const o=[...e].map((r,a)=>Fm(r,{...n,index:a,level:t+1})).filter(Boolean);return o.length?o:null}function Ist(e){return/[a-z]+[A-Z]+[a-z]+/.test(e)?e:e.toLowerCase()}function Fm(e,t={}){if(!e||!(e instanceof Node))return null;const{actions:n=[],index:o=0,level:r=0,randomKey:a}=t;let s=e,i=`${r}-${o}`;const l=[];return a&&r===0&&(i=`${Nst()}-${i}`),Array.isArray(n)&&n.forEach(d=>{d.condition(s,i,r)&&(typeof d.pre=="function"&&(s=d.pre(s,i,r),s instanceof Node||(s=e)),typeof d.post=="function"&&l.push(d.post(s,i,r)))}),l.length?l:zst(s,{key:i,level:r,...t})}function Lst(e,t={}){if(!e||typeof e!="string")return null;const{includeAllNodes:n=!1,nodeOnly:o=!1,selector:r="body > *",type:a="text/html"}=t;try{const i=new DOMParser().parseFromString(e,a);if(n){const{childNodes:d}=i.body;return o?d:[...d].map(u=>Fm(u,t))}const l=i.querySelector(r)||i.body.childNodes[0];if(!(l instanceof Node))throw new TypeError("Error parsing input");return o?l:Fm(l,t)}catch{}return null}function LA(e,t={}){return typeof e=="string"?Lst(e,t):e instanceof Node?Fm(e,t):null}var Fst=Object.defineProperty,Pst=(e,t,n)=>t in e?Fst(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hh=(e,t,n)=>Pst(e,typeof t!="symbol"?t+"":t,n),lE="react-inlinesvg",cE=10,mt={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Tf(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Bst(){return Ust()&&typeof window<"u"&&window!==null}async function FA(e,t){const n=await fetch(e,t),o=n.headers.get("content-type"),[r]=(o??"").split(/ ?; ?/);if(n.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>r.includes(a)))throw new Error(`Content type isn't valid: ${r}`);return n.text()}function Hst(e=1){return new Promise(t=>{setTimeout(t,e*1e3)})}function Ust(){if(!document)return!1;const e=document.createElement("div");e.innerHTML="";const t=e.firstChild;return!!t&&t.namespaceURI==="http://www.w3.org/2000/svg"}function Wst(e){return e[Math.floor(Math.random()*e.length)]}function Vst(e){const t="abcdefghijklmnopqrstuvwxyz",o=`${t}${t.toUpperCase()}1234567890`;let r="";for(let a=0;a{this.cacheApi=n}).catch(n=>{console.error(`Failed to open cache: ${n.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(n=>n())}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,t){var n;return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,t):this.fetchAndAddToInternalCache(e,t)),((n=this.cacheStore.get(e))==null?void 0:n.content)??""}set(e,t){this.cacheStore.set(e,t)}isCached(e){var t;return((t=this.cacheStore.get(e))==null?void 0:t.status)===mt.LOADED}async fetchAndAddToInternalCache(e,t){const n=this.cacheStore.get(e);if((n==null?void 0:n.status)===mt.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:mt.IDLE}),await this.fetchAndAddToInternalCache(e,t)});return}if(!(n!=null&&n.content)){this.cacheStore.set(e,{content:"",status:mt.LOADING});try{const o=await FA(e,t);this.cacheStore.set(e,{content:o,status:mt.LOADED})}catch(o){throw this.cacheStore.set(e,{content:"",status:mt.FAILED}),o}}}async fetchAndAddToPersistentCache(e,t){var r,a,s;const n=this.cacheStore.get(e);if((n==null?void 0:n.status)===mt.LOADED)return;if((n==null?void 0:n.status)===mt.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:mt.IDLE}),await this.fetchAndAddToPersistentCache(e,t)});return}this.cacheStore.set(e,{content:"",status:mt.LOADING});const o=await((r=this.cacheApi)==null?void 0:r.match(e));if(o){const i=await o.text();this.cacheStore.set(e,{content:i,status:mt.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(e,t)));const i=await((s=this.cacheApi)==null?void 0:s.match(e)),l=await(i==null?void 0:i.text())??"";this.cacheStore.set(e,{content:l,status:mt.LOADED})}catch(i){throw this.cacheStore.set(e,{content:"",status:mt.FAILED}),i}}async handleLoading(e,t){var o;let n=0;for(;((o=this.cacheStore.get(e))==null?void 0:o.status)===mt.LOADING&&n=cE&&await t()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){const e=await this.cacheApi.keys();for(const t of e)await this.cacheApi.delete(t)}this.cacheStore.clear()}};function dE(e){const t=C.useRef();return C.useEffect(()=>{t.current=e}),t.current}function Xst(e){const{baseURL:t,content:n,description:o,handleError:r,hash:a,preProcessor:s,title:i,uniquifyIDs:l=!1}=e;try{const d=Jst(n,s),u=LA(d,{nodeOnly:!0});if(!u||!(u instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const c=PA(u,{baseURL:t,hash:a,uniquifyIDs:l});if(o){const h=c.querySelector("desc");h!=null&&h.parentNode&&h.parentNode.removeChild(h);const f=document.createElementNS("http://www.w3.org/2000/svg","desc");f.innerHTML=o,c.prepend(f)}if(typeof i<"u"){const h=c.querySelector("title");if(h!=null&&h.parentNode&&h.parentNode.removeChild(h),i){const f=document.createElementNS("http://www.w3.org/2000/svg","title");f.innerHTML=i,c.prepend(f)}}return c}catch(d){return r(d)}}function Jst(e,t){return t?t(e):e}function PA(e,t){const{baseURL:n="",hash:o,uniquifyIDs:r}=t,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],s=["href","xlink:href"],i=(l,d)=>s.includes(l)&&(d?!d.includes("#"):!1);return r&&[...e.children].forEach(l=>{var d;if((d=l.attributes)!=null&&d.length){const u=Object.values(l.attributes).map(c=>{const h=c,f=/url\((.*?)\)/.exec(c.value);return f!=null&&f[1]&&(h.value=c.value.replace(f[0],`url(${n}${f[1]}__${o})`)),h});a.forEach(c=>{const h=u.find(f=>f.name===c);h&&!i(c,h.value)&&(h.value=`${h.value}__${o}`)})}return l.children.length?PA(l,t):l}),e}var rc;function Yst(e){const{cacheRequests:t=!0,children:n=null,description:o,fetchOptions:r,innerRef:a,loader:s=null,onError:i,onLoad:l,src:d,title:u,uniqueHash:c}=e,[h,f]=C.useReducer((j,N)=>({...j,...N}),{content:"",element:null,isCached:t&&rc.isCached(e.src),status:mt.IDLE}),{content:g,element:v,isCached:S,status:_}=h,b=dE(e),y=dE(h),w=C.useRef(c??Vst(8)),$=C.useRef(!1),k=C.useRef(!1),T=C.useCallback(j=>{$.current&&(f({status:j.message==="Browser does not support SVG"?mt.UNSUPPORTED:mt.FAILED}),i==null||i(j))},[i]),O=C.useCallback((j,N=!1)=>{$.current&&f({content:j,isCached:N,status:mt.LOADED})},[]),D=C.useCallback(async()=>{const j=await FA(d,r);O(j)},[r,O,d]),x=C.useCallback(()=>{try{const j=Xst({...e,handleError:T,hash:w.current,content:g}),N=LA(j);if(!N||!C.isValidElement(N))throw new Error("Could not convert the src to a React element");f({element:N,status:mt.READY})}catch(j){T(new Error(j.message))}},[g,T,e]),A=C.useCallback(async()=>{const j=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(d);let N;if(j?N=j[1]?window.atob(j[2]):decodeURIComponent(j[2]):d.includes("{$.current&&f({content:"",element:null,isCached:!1,status:mt.LOADING})},[]);C.useEffect(()=>{if($.current=!0,!Tf()||k.current)return()=>{};try{if(_===mt.IDLE){if(!Bst())throw new Error("Browser does not support SVG");if(!d)throw new Error("Missing src");R()}}catch(j){T(j)}return k.current=!0,()=>{$.current=!1}},[]),C.useEffect(()=>{if(Tf()&&b)if(b.src!==d){if(!d){T(new Error("Missing src"));return}R()}else(b.title!==u||b.description!==o)&&x()},[o,x,T,R,b,d,u]),C.useEffect(()=>{y&&(y.status!==mt.LOADING&&_===mt.LOADING&&A(),y.status!==mt.LOADED&&_===mt.LOADED&&x(),y.status!==mt.READY&&_===mt.READY&&(l==null||l(d,S)))},[A,x,S,l,y,d,_]);const I=Gst(e,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Tf()?v?C.cloneElement(v,{ref:a,...I}):[mt.UNSUPPORTED,mt.FAILED].includes(_)?n:s:s}function Pm(e){rc||(rc=new qst);const{loader:t}=e,n=C.useRef(!1),[o,r]=C.useState(rc.isReady);return C.useEffect(()=>{n.current||(rc.onReady(()=>{r(!0)}),n.current=!0)},[]),o?p.createElement(Yst,{...e}):t}const Kst=window.location.hostname.endsWith("iobroker.in"),uE=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function Ss(e){var t,n,o;if(e.src){if(typeof e.src=="string"){if(e.src.length<3)return e.sx?p.createElement(ke,{component:"span",sx:e.sx,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:V.clsx(e.className,"iconOwn")},e.src):p.createElement("span",{title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:V.clsx(e.className,"iconOwn")},e.src);if(e.src.startsWith("data:image/svg"))return p.createElement(Pm,{title:e.title||void 0,src:e.src,className:V.clsx(e.className,"iconOwn"),width:((t=e.style)==null?void 0:t.width)||28,height:((n=e.style)==null?void 0:n.height)||((o=e.style)==null?void 0:o.width)||28,style:e.style||void 0});if(Kst&&!e.src.startsWith("http://")&&!e.src.startsWith("https://")){let r=e.src;return r.startsWith("./")?r=uE+r.substring(2):r.startsWith("/")||(r=uE+r),e.sx?p.createElement(ke,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:V.clsx(e.className,"iconOwn"),src:`https://remote-files.iobroker.in${r}`,alt:e.alt||void 0,ref:e.ref,onError:a=>e.onError&&e.onError(a)}):p.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:V.clsx(e.className,"iconOwn"),src:`https://remote-files.iobroker.in${r}`,alt:e.alt||void 0,ref:e.ref,onError:a=>e.onError&&e.onError(a)})}return e.sx?p.createElement(ke,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:V.clsx(e.className,"iconOwn"),src:e.src,alt:e.alt||void 0,ref:e.ref,onError:e.onError}):p.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:V.clsx(e.className,"iconOwn"),src:e.src,alt:e.alt||void 0,ref:e.ref,onError:e.onError})}return e.src}return null}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"}},Pn={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function pE(e,t){let n="";const o=new Uint8Array((e==null?void 0:e.data)||e),r=o.byteLength;for(let a=0;a{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,r===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const o=V.getFileExtension(n.href);this.state={text:null,code:null,ext:o,editing:!1,editingValue:null,copyPossible:!!o&&(Pn.code.includes(o)||Pn.txt.includes(o)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const n=this.props.href.split("/");n.splice(0,2);const o=n[0],r=n.splice(1).join("/");this.props.socket.readFile(o,r).then(a=>{let s="";a.file!==void 0&&(s=a.file);const i={copyPossible:this.state.copyPossible,ext:this.state.ext};if(s.type==="Buffer")if(r.toLowerCase().endsWith(".json5")){i.ext="json5",i.copyPossible=!0;try{s=atob(pE(s,!0))}catch{console.error("Cannot convert base64 to string"),s=""}}else{const l=V.detectMimeType(pE(s));l&&(i.ext=l,i.copyPossible=Pn.code.includes(l)||Pn.txt.includes(l))}i.copyPossible&&(i.ext&&Pn.txt.includes(i.ext)?(i.text=s,i.editingValue=s):i.ext&&Pn.code.includes(i.ext)&&(i.code=s,i.editingValue=s)),this.setState(i)}).catch(a=>window.alert(`Cannot read file: ${a}`))}}componentDidMount(){this.readFile();const n=this.props.href.split("/");n.splice(0,2);const o=n[0],r=n.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(o,r,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const n=this.props.href.split("/");n.splice(0,2);const o=n[0],r=n.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(o,r,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}getEditorOrViewer(){return p.createElement(st,{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&&Pn.images.includes(this.state.ext)?this.state.imgError?p.createElement(pS,{style:{...ei.img,...this.props.getStyleBackgroundImage()}}):p.createElement(Ss,{onError:n=>{n.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&&Pn.audio.includes(this.state.ext)?p.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},p.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Pn.video.includes(this.state.ext)?p.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},p.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},p.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 p.createElement(yt,{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"},p.createElement("div",{style:ei.dialogTitle},p.createElement(bt,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Pn.images.includes(this.state.ext)&&p.createElement("div",null,p.createElement(ue,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},p.createElement(t3,null)))),p.createElement(jt,{style:ei.content},this.getContent()),p.createElement(Nt,null,this.state.copyPossible?p.createElement(he,{color:"grey",onClick:n=>{n.stopPropagation(),n.preventDefault(),V.copyToClipboard(this.state.text||this.state.code||"")},startIcon:p.createElement(sX,null)},this.props.t("Copy content")):null,this.state.editing?p.createElement(he,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:p.createElement(Ub,null)},this.props.t("Save")):null,p.createElement(he,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:p.createElement(Dt,null)},this.props.t("Close"))))}}const Qst=E_()(Zst),gl=32,Sa=32,Uh=120,hE=64,fE="Not found",Wh={all:o3,images:vX,code:yw,txt:fX,audio:Yq,video:LX},re={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 16px)",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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${hE}px`},itemTile:e=>({position:"relative",userSelect:"none",cursor:"pointer",height:Uh,width:hE,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:e.palette.secondary.light,color:V.invertColor(e.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:e=>({width:"100%",height:Uh-32-16-8,display:"block",pl:1,color:e.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:e=>({position:"absolute",top:22,left:18,zIndex:1,color:e.palette.mode==="dark"?"#FFF":"#000"}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:Uh-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:Uh-32-16-8,display:"block",objectFit:"contain"},itemSelected:e=>({background:e.palette.primary.main,color:V.invertColor(e.palette.primary.main,!0)}),itemTable:e=>({userSelect:"none",cursor:"pointer",height:gl,display:"inline-flex",lineHeight:`${gl}px`,"&:hover":{background:e.palette.secondary.light,color:V.invertColor(e.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:e=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:e.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:e=>({display:"inline-block",width:Sa,height:gl,minWidth:Sa,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${Sa/2}px`,"&:hover":{backgroundColor:e.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:e.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:Sa,height:gl,minWidth:Sa,padding:0},itemAclButtonTable:{width:Sa,height:gl,minWidth:Sa,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:Sa,height:gl,minWidth:Sa,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:e=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:e.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:e=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:e.palette.secondary.main}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:e=>({pl:"2px",pr:"2px",cursor:"pointer","&:hover":{background:e.palette.primary.main}}),pathDivBreadcrumbSelected:{},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:e=>({color:e.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},ts="0_userdata.0";function _l(e){const t=(e||"").split("/");return t.length&&t.pop(),t.join("/")}function Yv(e){const t=V.getFileExtension(e);return!!(t!=null&&t.toLowerCase().match(/[a-z]+/)&&t.length<5)}const ct="Table",Kv="Tile";function mE(e,t){return e.folder&&t.folder?e.name>t.name?1:e.namet.name?1:e.name{const a=`${n}/${o}`,s=a.lastIndexOf("/"),i=a.substring(0,s);console.log(`File changed ${a}[${r}]`),this.state.folders[i]&&(this._tempTimeout[i]&&clearTimeout(this._tempTimeout[i]),this._tempTimeout[i]=setTimeout(()=>{delete this._tempTimeout[i],this.browseFolder(i,null,!1,!0).then(l=>this.setState({folders:l})).catch(l=>console.error(`Cannot read folder: ${l.message}`))},300))});F(this,"setStateBackgroundImage",()=>{const n=["light","dark","colored","delete"];this.setState(({backgroundImage:o})=>o&&n.indexOf(o)!==-1&&n.length-1!==n.indexOf(o)?(this.localStorage.setItem("files.backgroundImage",n[n.indexOf(o)+1]),{backgroundImage:n[n.indexOf(o)+1]}):(this.localStorage.setItem("files.backgroundImage",n[0]),{backgroundImage:n[0]}))});F(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return re.backgroundImageLight;case"dark":return re.backgroundImageDark;case"colored":return re.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const o=this.localStorage.getItem("files.expanded")||"[]";if(this.props.limitPath){const d=this.props.limitPath.split("/");this.limitToObjectID=d[0],this.limitToPath=d.length?d.length===1&&d[0]===""?null:d.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let r;try{r=JSON.parse(o),this.limitToPath&&(r=r.filter(d=>{var u;return d.startsWith(`${this.limitToPath}/`)||d===this.limitToPath||((u=this.limitToPath)==null?void 0:u.startsWith(`${d}/`))}))}catch{r=[]}let a;this.props.showViewTypeButton?a=this.localStorage.getItem("files.viewType")||ct:a=ct;let s=this.props.selected||this.localStorage.getItem("files.selected")||ts,i;if(n.restrictToFolder){s=n.restrictToFolder,i=n.restrictToFolder;const d=n.restrictToFolder.split("/");r=[];let u="";for(let c=0;c{if(this.state.viewType===ct&&!this.findItem(this.state.selected)){const o=this.state.selected.split("/");for(;o.length&&!this.findItem(o.join("/"));)o.pop();let r;o.length?r=o.join("/"):r=ts,this.setState({selected:r,path:r,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const n=document.getElementById(this.state.selected);n==null||n.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(n=>console.error(`Cannot load folders: ${n}`)),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(n=>n&&clearTimeout(n)),this._tempTimeout={}}browseFoldersCb(n,o,r){if(!(n!=null&&n.length))r(o);else{const a=n.shift();a?this.browseFolder(a,o).catch(s=>console.error(`Cannot read folder ${a}: ${s.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(n,o,r),0)}):setTimeout(()=>this.browseFoldersCb(n,o,r),0)}}browseFolders(n,o){let r;return o?r=o:(r={},Object.keys(this.state.folders).forEach(a=>r[a]=this.state.folders[a])),n!=null&&n.length?new Promise(a=>{this.browseFoldersCb(n,r,a)}):Promise.resolve(r)}readDirSerial(n,o){return new Promise((r,a)=>{this.browseList&&(this.browseList.push({resolve:r,reject:a,adapter:n,relPath:o}),this.browseListRunning||this.processBrowseList())})}processBrowseList(n=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(o=>{if(this.browseList){const r=this.browseList.shift();if(r){const a=r.resolve;r.resolve=null,r.reject=null,r.adapter=null,r.relPath=null,a&&a(o),this.browseListRunning=!1,this.browseList.length?n<5?this.processBrowseList(n+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(o=>{if(this.browseList){const r=this.browseList.shift();if(r){const a=r.reject;r.resolve=null,r.reject=null,r.adapter=null,r.relPath=null,a&&a(o),this.browseListRunning=!1,this.browseList.length?n<5?this.processBrowseList(n+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(n,o,r,a){let s;if(o?s=o:(s={},Object.keys(this.state.folders).forEach(h=>{s[h]=this.state.folders[h]})),s[n]&&!a)return r?Promise.resolve(s):new Promise((h,f)=>{Promise.all(s[n].filter(g=>g.folder).map(g=>this.browseFolder(g.id,s,!0).catch(()=>{}))).then(()=>h(s)).catch(g=>f(new Error(g)))});if(!n||n==="/"){try{let h=await this.props.socket.readMetaItems();const f=[];let g=null;if(this.state.restrictToFolder){const S=this.state.restrictToFolder.split("/")[0];h=h.filter(_=>_._id===S)}else this.state.expertMode||(h=h.filter(S=>!S._id.endsWith(".admin")));const v=h.findIndex(S=>S._id==="system.meta.uuid");if(v!==-1&&h.splice(v,1),h.forEach(S=>{if(this.limitToObjectID&&this.limitToObjectID!==S._id)return;const _={id:S._id,name:S._id,title:S.common&&S.common.name||S._id,meta:!0,from:S.from,ts:S.ts,color:S.common&&S.common.color,icon:S.common&&S.common.icon,folder:!0,acl:S.acl,level:0};_.id===ts?g=_:f.push(_)}),f.sort((S,_)=>S.id>_.id?1:S.id<_.id?-1:0),(!this.limitToObjectID||this.limitToObjectID===ts)&&g&&f.unshift(g),s[n||"/"]=f,!r)return Promise.all(f.filter(S=>S.folder).map(S=>this.browseFolder(S.id,s,!0).catch(()=>{}))).then(()=>s)}catch(h){const f=h;this.initialReadFinished&&window.alert(`Cannot read meta items: ${f.message}`),s[n||"/"]=[]}return s}const i=n.split("/"),l=i.length,d=i.shift(),u=i.join("/");let c;try{c=await this.readDirSerial(d||"",u)}catch(h){if(h==="Not exists"&&d==="0_userdata.0")c=[];else throw h}try{const h=[];if(c.forEach(f=>{var v;const g={id:`${n}/${f.file}`,ext:V.getFileExtension(f.file),folder:f.isDir,name:f.file,size:(v=f.stats)==null?void 0:v.size,modified:f.modifiedAt,acl:f.acl,level:l};this.state.restrictToFolder?(g.folder&&(g.id.startsWith(`${this.state.restrictToFolder}/`)||g.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${g.id}/`))||g.id.startsWith(`${this.state.restrictToFolder}/`))&&h.push(g):this.limitToPath?(g.folder&&(g.id.startsWith(`${this.limitToPath}/`)||g.id===this.limitToPath||this.limitToPath.startsWith(`${g.id}/`))||g.id.startsWith(`${this.limitToPath}/`))&&h.push(g):h.push(g)}),h.sort(mE),s[n]=h,!r)return Promise.all(h.filter(f=>f.folder).map(f=>this.browseFolder(f.id,s,!0))).then(()=>s)}catch(h){const f=h;this.initialReadFinished&&window.alert(`Cannot read ${d}${u?`/${u}`:""}: ${f==null?void 0:f.message}`),s[n]=[]}return s}toggleFolder(n,o){o==null||o.stopPropagation();const r=[...this.state.expanded],a=r.indexOf(n.id);a===-1?(r.push(n.id),r.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(r)),n.temp?this.setState({expanded:r}):this.browseFolder(n.id).then(s=>this.setState({expanded:r,folders:s})).catch(s=>window.alert(s===fE?this.props.t('ra_Cannot find "%s"',n.id):this.props.t('ra_Cannot read "%s"',n.id)))):(r.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(r)),this.setState({expanded:r}))}changeFolder(n,o){n==null||n.stopPropagation(),this.lastSelect=Date.now();let r=o||_l(this.state.currentDir);if(r==="/"&&(r=""),this.localStorage.setItem("files.currentDir",r),o&&n&&(n.altKey||n.shiftKey||n.ctrlKey||n.metaKey)){this.setState({selected:r});return}if(r&&!this.state.folders[r]){this.browseFolder(r).then(a=>this.setState({folders:a,path:r,currentDir:r,selected:r,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(a=>console.error(`Cannot read folder: ${a.message}`));return}this.setState({currentDir:r,selected:r,path:r,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))}select(n,o,r){o&&o.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",n),this.setState({selected:n,path:n,pathFocus:!1},()=>{if(this.props.onSelect){const a=V.getFileExtension(n);(!this.props.filterFiles||a&&this.props.filterFiles.includes(a))&&(!this.state.filterByType||a&&Pn[this.state.filterByType].includes(a))?this.props.onSelect(n,!1,!!this.state.folders[n]):this.props.onSelect("")}r&&r()})}getText(n){if(n)return typeof n=="object"?n[this.props.lang]||n.en||void 0:n}renderFolder(n,o){if(this.state.viewType===ct&&this.state.filterEmpty&&(!this.state.folders[n.id]||!this.state.folders[n.id].length)&&n.id!==ts&&!n.temp)return null;const r=o?Ef:yc,a=this.state.viewType===ct?n.level*this.levelPadding:0,s=n.name===ts,i=s||n.name==="vis.0"||n.name==="vis-2.0",l=V.getStyle(this.props.theme,re[`itemFolderIcon${this.state.viewType}`],i&&re.specialFolder);return p.createElement(ke,{component:"div",key:n.id,id:n.id,style:this.state.viewType===ct?{marginLeft:a,width:`calc(100% - ${a}px`}:{},onClick:d=>this.state.viewType===ct?this.select(n.id,d):this.changeFolder(d,n.id),onDoubleClick:d=>this.state.viewType===ct&&this.toggleFolder(n,d),title:this.getText(n.title),className:"browserItem",sx:V.getStyle(this.props.theme,re[`item${this.state.viewType}`],re[`itemFolder${this.state.viewType}`],this.state.selected===n.id?re.itemSelected:{},n.temp?re.itemFolderTemp:{})},p.createElement(r,{style:l,onClick:this.state.viewType===ct?d=>this.toggleFolder(n,d):void 0}),p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,re[`itemName${this.state.viewType}`],re[`itemNameFolder${this.state.viewType}`])},s?this.props.t("ra_User files"):n.name),p.createElement(ke,{component:"div",style:re[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ct&&this.state.folders[n.id]?this.state.folders[n.id].length:""),p.createElement(ke,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ct&&this.props.expertMode?this.formatAcl(n.acl):null),this.state.viewType===ct&&this.props.expertMode?p.createElement(ke,{component:"div",sx:{...re.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===ct&&this.props.allowDownload?p.createElement("div",{style:re[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===ct&&this.props.allowDelete&&this.state.folders[n.id]&&this.state.folders[n.id].length?p.createElement(ue,{"aria-label":"delete",onClick:d=>{d.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(n.id):this.setState({deleteItem:n.id})},sx:re[`itemDeleteButton${this.state.viewType}`],size:"large"},p.createElement(Ns,{fontSize:"small"})):this.state.viewType===ct&&this.props.allowDelete?p.createElement(ke,{component:"div",sx:re[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return p.createElement(ke,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:n=>this.changeFolder(n),title:this.props.t("ra_Back to %s",_l(this.state.currentDir)),className:"browserItem",sx:V.getStyle(this.props.theme,re[`item${this.state.viewType}`],re[`itemFolder${this.state.viewType}`])},p.createElement(yc,{style:V.getStyle(this.props.theme,re[`itemFolderIcon${this.state.viewType}`])}),p.createElement(Xq,{sx:re.itemFolderIconBack}),p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,re[`itemName${this.state.viewType}`],re[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(n){return p.createElement("div",{style:re[`itemSize${this.state.viewType}`]},n||n===0?V.formatBytes(n):"")}formatAcl(n){const o=n?n.permissions||n.file:0;let r;return o?r=o.toString(16).padStart(3,"0"):r="",p.createElement("div",{style:re[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?p.createElement(ue,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:re[`itemAclButton${this.state.viewType}`]},r||"---"):r||"---")}getFileIcon(n){switch(n){case"json":case"json5":return p.createElement(Zq,{style:re[`itemIcon${this.state.viewType}`]});case"css":return p.createElement(Qq,{style:re[`itemIcon${this.state.viewType}`]});case"js":case"ts":return p.createElement(yw,{style:re[`itemIcon${this.state.viewType}`]});case"html":case"md":return p.createElement(bw,{style:re[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return p.createElement(kX,{style:re[`itemIcon${this.state.viewType}`]});default:return p.createElement(o3,{style:re[`itemIcon${this.state.viewType}`]})}}static getEditFile(n){switch(n){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(n){const o=this.state.viewType===ct?n.level*this.levelPadding:0,r=V.getFileExtension(n.name);return p.createElement(ke,{component:"div",key:n.id,id:n.id,onDoubleClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Pn[this.state.filterByType].includes(n.ext))&&this.props.onSelect(n.id,!0,!!this.state.folders[n.id]):this.setState({viewer:this.imagePrefix+n.id,formatEditFile:r})},onClick:a=>this.select(n.id,a),style:this.state.viewType===ct?{marginLeft:o,width:`calc(100% - ${o}px)`}:{},className:"browserItem",sx:V.getStyle(this.props.theme,re[`item${this.state.viewType}`],re[`itemFile${this.state.viewType}`],this.state.selected===n.id?re.itemSelected:void 0)},r&&Pn.images.includes(r)?this.state.fileErrors.includes(n.id)?p.createElement(pS,{style:{...re[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...re[`itemNoImage${this.state.viewType}`]}}):p.createElement(Ss,{onError:a=>{a.target.onerror=null;const s=[...this.state.fileErrors];s.includes(n.id)||(s.push(n.id),this.setState({fileErrors:s}))},style:{...re[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+n.id,alt:n.name}):this.getFileIcon(r),p.createElement(ke,{component:"div",sx:re[`itemName${this.state.viewType}`]},n.name),p.createElement(ke,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(n.size)),p.createElement(ke,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ct&&this.props.expertMode?this.formatAcl(n.acl):null),p.createElement(ke,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ct&&this.props.expertMode&&hS.getEditFile(r)?p.createElement(ue,{"aria-label":"edit",onClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Pn[this.state.filterByType].includes(n.ext))&&this.props.onSelect(n.id,!0,!!this.state.folders[n.id]):this.setState({viewer:this.imagePrefix+n.id,formatEditFile:r})},sx:re.itemDeleteButtonTable,size:"large"},p.createElement(Au,{fontSize:"small"})):p.createElement(ke,{component:"div",sx:re[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===ct&&this.props.allowDownload?p.createElement(ke,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:re.itemDownloadButtonTable,tabIndex:0,download:n.id,href:this.imagePrefix+n.id,onClick:a=>a.stopPropagation()},p.createElement(DX,null)):null,this.state.viewType===ct&&this.props.allowDelete&&n.id!=="vis.0/"&&n.id!=="vis-2.0/"&&n.id!==ts?p.createElement(ue,{"aria-label":"delete",onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(n.id):this.setState({deleteItem:n.id})},sx:re[`itemDeleteButton${this.state.viewType}`],size:"large"},p.createElement(Ns,{fontSize:"small"})):this.state.viewType===ct&&this.props.allowDelete?p.createElement(ke,{component:"div",sx:re[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(n){if(this.state.folders&&this.state.folders[n]){if(this.state.viewType===Kv){const r=[];return n&&n!=="/"&&r.push(this.renderBackFolder()),this.state.folders[n].forEach(a=>{a.folder?r.push(this.renderFolder(a)):(!this.props.filterFiles||a.ext&&this.props.filterFiles.includes(a.ext))&&(!this.state.filterByType||a.ext&&Pn[this.state.filterByType].includes(a.ext))&&r.push(this.renderFile(a))}),r}const o=[];return this.state.folders[n].forEach(r=>{if(r.folder){const a=this.state.expanded.includes(r.id),s=this.renderFolder(r,a);if(Array.isArray(s)?s.forEach(i=>o.push(i)):o.push(s),this.state.folders[r.id]&&a){const i=this.renderItems(r.id);Array.isArray(i)?i.forEach(l=>o.push(l)):o.push(i)}}else(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Pn[this.state.filterByType].includes(r.ext))&&o.push(this.renderFile(r))}),o}return p.createElement("div",{style:{position:"relative"}},p.createElement(ro,{key:n,color:"secondary",size:24}),p.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const n=this.props.showTypeSelector?Wh[this.state.filterByType||"all"]||Wh.all:null,o=this.findFirstFolder(this.state.selected);return p.createElement(aw,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?p.createElement(ue,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...re.menuButton,...this.state.restrictToFolder?re.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},p.createElement(hX,{fontSize:"small"})):null,this.props.showExpertButton?p.createElement(ue,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...re.menuButton,...this.state.expertMode?re.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},p.createElement(Lm,null)):null,this.props.showViewTypeButton?p.createElement(ue,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:re.menuButton,"aria-label":"view mode",onClick:()=>{const r=this.state.viewType===ct?Kv:ct;this.localStorage.setItem("files.viewType",r);let a=this.state.selected;Yv(a)&&(a=_l(a)),this.setState({viewType:r,currentDir:a},()=>{this.state.viewType===ct&&this.scrollToSelected()})},size:"small"},this.state.viewType!==ct?p.createElement(wX,{fontSize:"small"}):p.createElement(PX,{fontSize:"small"})):null,p.createElement(ue,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:re.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"},p.createElement(pX,{fontSize:"small"})),p.createElement(ue,{edge:"start",title:this.props.t("ra_Reload files"),style:re.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},p.createElement(s3,{fontSize:"small"})),this.props.allowCreateFolder?p.createElement(ue,{edge:"start",disabled:!this.state.selected||!o||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:re.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},p.createElement(n3,{fontSize:"small"})):null,this.props.allowUpload?p.createElement(ue,{edge:"start",disabled:!this.state.selected||!o||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:re.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},p.createElement(Cm,{fontSize:"small"})):null,this.props.showTypeSelector&&n?p.createElement(bn,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:re.tooltip}}},p.createElement(ue,{size:"small",onClick:r=>this.setState({showTypesMenu:r.target})},p.createElement(n,{fontSize:"small"}))):null,this.state.showTypesMenu?p.createElement(Du,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(Wh).map(r=>{const a=Wh[r];return p.createElement(je,{key:r,selected:this.state.filterByType===r,onClick:()=>{r==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",r),this.setState({filterByType:r,showTypesMenu:null}))}},p.createElement(Tl,null,p.createElement(a,{fontSize:"small"})),p.createElement(as,null,this.props.t(`ra_fileType_${r}`)))})):null,p.createElement(bn,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:re.tooltip}}},p.createElement(ue,{color:"inherit",edge:"start",style:re.menuButton,onClick:this.setStateBackgroundImage,size:"small"},p.createElement(t3,{fontSize:"small"}))),this.state.viewType!==ct&&this.props.allowDelete?p.createElement(bn,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:re.tooltip}}},p.createElement("span",null,p.createElement(ue,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===ts,color:"inherit",edge:"start",style:re.menuButton,onClick:r=>{r.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},p.createElement(Ns,{fontSize:"small"})))):null)}findItem(n,o){if(o=o||this.state.folders,!o)return null;const r=n.split("/");r.pop();const a=r.join("/")||"/";return o[a]&&o[a].find(s=>s.id===n)||null}renderInputDialog(){if(this.state.addFolder){const n=this.findFirstFolder(this.state.selected);return n?p.createElement(Ast,{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:o=>this.state.folders[n].find(r=>r.name===o)?"":this.props.t("ra_Duplicate name"),onClose:o=>{if(o){const r={};Object.keys(this.state.folders).forEach(l=>r[l]=this.state.folders[l]);const a=this.findItem(n),s=`${n}/${o}`;r[n].push({id:s,level:((a==null?void 0:a.level)||0)+1,name:o,folder:!0,temp:!0}),r[n].sort(mE),r[s]=[];const i=[...this.state.expanded];i.includes(n)||(i.push(n),i.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(i)),this.setState({addFolder:!1,folders:r,expanded:i},()=>this.select(s))}else this.setState({addFolder:!1})},replace:o=>o.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 n=window.document.getElementsByClassName("browserItem");for(let o=0;othis.setState({uploadFile:!1})},p.createElement(Dt,null)),p.createElement(k_,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:n=>{let o=n.length;n.forEach(r=>{const a=new FileReader;a.onabort=()=>console.log("file reading was aborted"),a.onerror=()=>console.log("file reading has failed"),a.onload=()=>{const s=this.findFirstFolder(this.state.selected);if(!s)window.alert(this.props.t("ra_Invalid parent folder!"));else{const i=`${s}/${r.name}`;this.uploadFile(i,a.result).then(()=>{--o||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const l=[...this.state.expanded];l.includes(s)||(l.push(s),l.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(l))),this.setState({expanded:l},()=>this.select(i))}else setTimeout(()=>this.browseFolder(s,null,!1,!0).then(l=>{const d=[...this.state.expanded];d.includes(s)||(d.push(s),d.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(d))),this.setState({folders:l,expanded:d},()=>this.select(i))}),500)})})}},a.readAsArrayBuffer(r)})}},({getRootProps:n,getInputProps:o})=>p.createElement("div",{style:{...re.uploadDiv,...this.state.uploadFile==="dragging"?re.uploadDivDragging:void 0},...n()},p.createElement("input",{...o()}),p.createElement(ke,{component:"div",sx:re.uploadCenterDiv},p.createElement("div",{style:re.uploadCenterTextAndIcon},p.createElement(Cm,{style:re.uploadCenterIcon}),p.createElement("div",{style:re.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(n){const o=this.findItem(n);if(o!=null&&o.folder)return(this.state.folders[n]?Promise.all(this.state.folders[n].map(s=>this.deleteRecursive(s.id))):Promise.resolve()).then(()=>{if(o.level>=1){const s=n.split("/"),i=s.shift();this.props.socket.deleteFolder(i||"",s.join("/")).then(()=>{const l=JSON.parse(JSON.stringify(this.state.folders));delete l[o.id];const d=_l(o.id),u=l[d];if(u){const c=u.findIndex(h=>h.id===o.id);c!==-1&&u.splice(c,1),this.select(d,null,()=>this.setState({folders:l}))}})}});const r=n.split("/"),a=r.shift();return r.length?this.props.socket.deleteFile(a||"",r.join("/")).catch(s=>window.alert(`Cannot delete file: ${s}`)):Promise.resolve()}deleteItem(n){n=n||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(n).then(()=>{const o={},r=this.state.expanded.indexOf(n);if(r!==-1){const a=[...this.state.expanded];a.splice(r,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),o.expanded=a}if(this.state.selected===n){const a=this.state.selected.split("/");a.pop(),o.selected=a.join("/")}if(this.supportSubscribes)this.setState(o);else{const a=this.findFirstFolder(n),s={};Object.keys(this.state.folders).forEach(i=>{i!==a&&!i.startsWith(`${a}/`)&&(s[i]=this.state.folders[i])}),o.folders=s,this.setState(o,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],s).then(i=>this.setState({folders:i})).catch(i=>console.error(i))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?p.createElement(yt,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},p.createElement(bt,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),p.createElement(jt,null,p.createElement(Ra,null,this.props.t("ra_Are you sure?"))),p.createElement(Nt,null,p.createElement(he,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),p.createElement(he,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),p.createElement(he,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const n=this.props.FileViewer||Qst;return this.state.viewer?p.createElement(n,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?p.createElement(u3,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(n){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let o;n.forEach(r=>{const a=this.findItem(r.id,this.cacheFolders);a&&JSON.stringify(a.acl)!==JSON.stringify(r.acl)&&(a.acl=r.acl,o=!0)}),o&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const r=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:r})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let n=this.state.path;Yv(this.state.path)&&(n=_l(this.state.path)),new Promise(o=>{this.state.folders[n]?o(!0):this.browseFolder(n).then(r=>this.setState({folders:r},()=>o(!0))).catch(r=>this.setState({errorText:r===fE?this.props.t('ra_Cannot find "%s"',n):this.props.t('ra_Cannot read "%s"',n)}))}).then(o=>o&&this.setState({selected:this.state.path,currentDir:n,pathFocus:!1})).catch(o=>console.error(o))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const n=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),o=[];return p.createElement(yL,{style:{paddingLeft:8}},n.map((r,a)=>{r&&o.push(r);const s=o.join("/");return athis.changeFolder(i,s||"/")},r||this.props.t("ra_Root")):p.createElement("div",{style:re.pathDivBreadcrumbSelected,key:`${this.state.selected}_${a}`,onClick:()=>this.setState({pathFocus:!0})},r)}))}renderPath(){return p.createElement(ke,{component:"div",key:"path",sx:re.pathDiv},this.state.pathFocus?p.createElement(Qn,{value:this.state.path,onKeyDown:n=>{n.key==="Enter"?this.changeToPath():n.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:p.createElement(ue,{size:"small",onClick:()=>this.changeToPath()},p.createElement(bX,null)),onBlur:()=>this.changeToPath(),onChange:n=>this.setState({path:n.target.value}),style:re.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(n=>console.error(`Cannot load folders: ${n}`))})},300)),p.createElement("div",{style:{...re.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===Kv?this.renderPath():null,p.createElement("div",{style:{...re.filesDiv,...re[`filesDiv${this.state.viewType}`]},onClick:n=>{this.state.viewType!==ct&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(n,this.state.currentDir||"/"):n.stopPropagation())}},this.state.viewType===ct?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==ct?p.createElement("div",{style:re.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())):p.createElement(HP,null)}}const eit=E_()(hS),tit=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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 nit(e){const t=document.createElement("div");t.innerHTML=e;const n=t.firstElementChild;return n!=null&&n.remove?n.remove():n&&t.removeChild(n),t.remove(),n}function oit(e){const t={};if(!e)return t;for(let n,o=0;oa[1].toUpperCase()),t[n]=e[o].value}return t}const hi=class hi extends C.Component{constructor(n){var o;super(n);F(this,"svg");this.state={svg:!!((o=this.props.src)!=null&&o.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(n,o){var s;const r={};let a=!1;return n&&o&&n.src!==o.src&&(r.src=n.src,r.svg=(s=n.src)==null?void 0:s.startsWith("data:"),r.created=!1,a=!0),n&&o&&n.color!==o.color&&(r.color=n.color,r.created=!1,a=!0),n&&o&&n.showError!==o.showError&&(r.showError=n.showError,a=!0),a?r:null}getSvgFromData(n){const o="data:image/svg+xml;base64,";if(!n.startsWith(o))return null;n=n.substring(o.length);try{n=atob(n);const r=nit(n),a=r.innerHTML,s=oit(r.attributes);return r.remove(),p.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...s,dangerouslySetInnerHTML:{__html:a}})}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 p.createElement(pS,{className:this.props.className});if(hi.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let n=(this.props.imagePrefix||"")+this.state.src;return n.startsWith("./")?n=hi.REMOTE_PREFIX+n.substring(2):n.startsWith("/")||(n=hi.REMOTE_PREFIX+n),p.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${n}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return p.createElement("img",{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}};F(hi,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),F(hi,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1));let gE=hi;class fS extends p.Component{constructor(){super(...arguments);F(this,"handleFileSelect",n=>{const o=n.target,r=o==null?void 0:o.files;if(!r||!r.length){console.error("No files found. Please report to developers");return}const a=r[0];if(a){const s=new window.FileReader;s.onload=()=>{var l;const i=((l=s.result)==null?void 0:l.toString())||"";try{const d=JSON.parse(i);d.native&&d.common?d.common.name!==this.props.common.name?this.props.onError&&this.props.onError(E.t("ra_otherConfig",d.common.name)):this.props.onLoad&&this.props.onLoad(d.native):this.props.onError&&this.props.onError(E.t("ra_invalidConfig"))}catch(d){this.props.onError&&this.props.onError(d==null?void 0:d.toString())}},s.readAsText(a)}else alert("Failed to open JSON File")})}static generateFile(n,o){const r=window.document.createElement("a");r.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(o,null,2))}`),r.setAttribute("download",n),r.style.display="none",window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r)}download(){const n={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};n.common.news&&delete n.common.news,n.common.titleLang&&delete n.common.titleLang,n.common.desc&&delete n.common.desc,fS.generateFile(`${n._id}.json`,n)}upload(){const n=window.document.createElement("input");n.setAttribute("type","file"),n.setAttribute("id","files"),n.setAttribute("opacity","0"),n.addEventListener("change",this.handleFileSelect,!1),n.click()}render(){return p.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?p.createElement(Ss,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?p.createElement(Mt,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const n=window.open(this.props.common.readme,"_blank");n==null||n.focus()}},p.createElement(_X,null)):null,p.createElement(Mt,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:E.t("ra_Load configuration from file"),onClick:()=>this.upload()},p.createElement(IX,null)),p.createElement(Mt,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:E.t("ra_Save configuration to file"),onClick:()=>this.download()},p.createElement(RX,null)))}}const rit=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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"})),BA=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 320 320",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("g",{fill:"currentColor"},p.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),p.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),ps=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"})),HA=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 320 320",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("g",{fill:"currentColor"},p.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),p.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),p.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),p.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),ait=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",onClick:t=>e.onClick&&e.onClick(t),width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"})),sit=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"}),p.createElement("path",{fill:"currentColor",stroke:"null",d:"m261,270l-12,0l0,-24c0,-33.12 -26.88,-60 -60,-60s-60,26.88 -60,60l0,24l-12,0c-13.2,0 -24,10.8 -24,24l0,120c0,13.2 10.8,24 24,24l144,0c13.2,0 24,-10.8 24,-24l0,-120c0,-13.2 -10.8,-24 -24,-24zm-72,108c-13.2,0 -24,-10.8 -24,-24s10.8,-24 24,-24s24,10.8 24,24s-10.8,24 -24,24zm37.2,-108l-74.4,0l0,-24c0,-20.52 16.68,-37.2 37.2,-37.2c20.52,0 37.2,16.68 37.2,37.2l0,24z"})),iu=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 320 320",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),p.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"})),iit=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 24 24",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",stroke:"currentColor",d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39A.998.998 0 0 0 18.95 4H5.04c-.83 0-1.3.95-.79 1.61z"})),Zv={root:{width:"100%",height:"100%"},overflowHidden:{overflow:"hidden"},container:{height:"100%"}};function lit(e){var t;return p.createElement(qs,{elevation:Number.isNaN(e.elevation)?1:e.elevation,style:{...Zv.root,...((t=e.styles)==null?void 0:t.root)||void 0,...e.overflow!=="visible"?Zv.overflowHidden:void 0},onKeyDown:e.onKeyDown,tabIndex:e.tabIndex},p.createElement(_s,{container:!0,direction:"column",wrap:"nowrap",sx:Zv.container},e.children))}const _E={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};function cit(e){return p.createElement(_s,{sx:{..._E.root,...(e==null?void 0:e.style)||void 0,...e.overflow==="auto"?_E.overflowAuto:void 0},ref:e.ref},e.children)}function dit(e){return p.createElement(_s,{container:!0,alignItems:"center"},e.children)}const vl=24,Kn=32,uit=16,pn=20,UA=e=>e==="dark"?"#62ff25":"#37c400",WA=e=>e==="dark"?"#ee56ff":"#a204b4",pit=e=>e==="dark"?"#fff46e":"#b89101",VA=e=>"#ff6d69",GA=e=>"#5773ff",qA="#ff413c",XA="#86211f",l0="#57ff45",c0="#098c04",d0="#f3ad11",u0="#6c5008",z={toolbar:{minHeight:38},toolbarButtons:{padding:4,marginLeft:4},switchColumnAuto:{marginLeft:16},dialogColumns:{transition:"opacity 1s"},dialogColumnsLabel:{fontSize:12,paddingTop:8},columnCustom:{width:"100%",display:"inline-block"},columnCustomEditable:{cursor:"text"},columnCustom_center:{textAlign:"center"},columnCustom_left:{textAlign:"left"},columnCustom_right:{textAlign:"right"},width100:{width:"100%"},transparent_10:{opacity:.1},transparent_20:{opacity:.2},transparent_30:{opacity:.3},transparent_40:{opacity:.4},transparent_50:{opacity:.5},transparent_60:{opacity:.6},transparent_70:{opacity:.7},transparent_80:{opacity:.8},transparent_90:{opacity:.9},transparent_100:{opacity:1},headerRow:{paddingLeft:8,height:38,whiteSpace:"nowrap",userSelect:"none"},buttonClearFilter:{position:"relative",float:"right",padding:0},buttonClearFilterIcon:{zIndex:2,position:"absolute",top:0,left:0,color:"#FF0000",opacity:.7},tableDiv:{paddingTop:0,paddingLeft:0,width:"calc(100% - 8px)",height:"calc(100% - 38px)",overflow:"auto"},tableRow:e=>({pl:1,height:Kn,lineHeight:`${Kn}px`,verticalAlign:"top",userSelect:"none",position:"relative",width:"100%","&:hover":{background:`${e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light} !important`,color:V.invertColor(e.palette.primary.main,!0)},whiteSpace:"nowrap",flexWrap:"nowrap"}),tableRowLines:e=>({borderBottom:`1px solid ${e.palette.mode==="dark","#8888882e"}`,"& > div":{borderRight:`1px solid ${e.palette.mode==="dark","#8888882e"}`}}),tableRowNoDragging:{cursor:"pointer"},tableRowAlias:{height:Kn+10},tableRowAliasReadWrite:{height:Kn+22},tableRowFocused:e=>({"&:after":{content:'""',position:"absolute",top:1,left:1,right:1,bottom:1,border:e.palette.mode?"1px dotted #000":"1px dotted #FFF"}}),checkBox:{padding:0},cellId:{position:"relative",fontSize:"1rem",overflow:"hidden",textOverflow:"ellipsis","& .copyButton":{display:"none"},"&:hover .copyButton":{display:"block"},"& .iconOwn":{display:"block",width:Kn-4,height:Kn-4,mt:"2px",float:"right"},"&:hover .iconOwn":{display:"none"},"& *":{width:"initial"}},cellIdSpan:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cellIdIconFolder:e=>({marginRight:8,width:Kn-4,height:Kn-4,cursor:"pointer",color:e.palette.secondary.main||"#fbff7d",verticalAlign:"top"}),cellIdIconDocument:{verticalAlign:"middle",marginLeft:(Kn-pn)/2,marginRight:8,width:pn,height:pn},cellIdIconOwn:{},cellIdTooltip:{fontSize:14},cellIdTooltipLink:{color:"#7ec2fd","&:hover":{color:"#7ec2fd"},"&:visited":{color:"#7ec2fd"}},cellCopyButton:{width:pn,height:pn,top:(Kn-pn)/2,opacity:.8,position:"absolute",right:3},cellCopyButtonInDetails:{width:pn,height:pn,top:(Kn-pn)/2,opacity:.8},cellEditButton:{width:pn,height:pn,color:"white",position:"absolute",top:(Kn-pn)/2,right:pn+3,opacity:.7,"&:hover":{opacity:1}},cellName:{display:"inline-block",verticalAlign:"top",fontSize:14,ml:"5px",overflow:"hidden",textOverflow:"ellipsis",position:"relative","& .copyButton":{display:"none"},"&:hover .copyButton":{display:"block"}},cellNameWithDesc:{lineHeight:"normal"},cellNameDivDiv:{},cellDescription:{fontSize:10,opacity:.5,fontStyle:"italic"},cellIdAlias:e=>({fontStyle:"italic",fontSize:12,opacity:.7,"&:hover":{color:e.palette.mode==="dark"?"#009900":"#007700"}}),cellIdAliasReadWriteDiv:{height:24,marginTop:-5},cellIdAliasAlone:{lineHeight:0},cellIdAliasReadWrite:{lineHeight:"12px"},cellType:{display:"inline-block",verticalAlign:"top","& .itemIcon":{verticalAlign:"middle",width:vl,height:vl,display:"inline-block"},"& .itemIconFolder":{marginLeft:3}},cellRole:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellRoom:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellEnumParent:{opacity:.4},cellFunc:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellValue:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellValueButton:{marginTop:5},cellValueButtonFalse:{opacity:.3},cellAdapter:{display:"inline-block",verticalAlign:"top"},cellValueTooltip:{fontSize:12},cellValueText:{width:"100%",height:Kn,fontSize:16,display:"flex",overflow:"hidden",textOverflow:"ellipsis",position:"relative",verticalAlign:"top","& .copyButton":{display:"none"},"&:hover .copyButton":{display:"block"}},cellValueFile:{color:"#2837b9"},cellValueTooltipTitle:{fontStyle:"italic",width:100,display:"inline-block"},cellValueTooltipValue:{width:120,display:"inline-block",whiteSpace:"nowrap",textOverflow:"ellipsis"},cellValueTooltipImage:{width:100,height:"auto"},cellValueTooltipBoth:{width:220,display:"inline-block",whiteSpace:"nowrap"},cellValueTooltipBox:{width:250,overflow:"hidden",pointerEvents:"none"},tooltip:{pointerEvents:"none"},cellValueTextUnit:{marginLeft:4,opacity:.8,display:"inline-block"},cellValueTextState:{opacity:.7},cellValueTooltipCopy:{position:"absolute",bottom:3,right:3},cellValueTooltipEdit:{position:"absolute",bottom:3,right:15},cellButtons:{display:"inline-block",verticalAlign:"top"},cellButtonsButton:{display:"inline-block",opacity:.5,width:pn+4,height:pn+4,"&:hover":{opacity:1},p:0,mt:"-2px"},cellButtonsEmptyButton:{fontSize:12},cellButtonMinWidth:{minWidth:40},cellButtonsButtonAlone:{ml:`${pn+6}px`,pt:0,mt:"-2px"},cellButtonsButtonWithCustoms:e=>({color:e.palette.mode==="dark"?e.palette.primary.main:e.palette.secondary.main}),cellButtonsButtonWithoutCustoms:{opacity:.2},cellButtonsValueButton:e=>({position:"absolute",top:pn/2-2,opacity:.7,width:pn-2,height:pn-2,color:e.palette.action.active,"&:hover":{opacity:1}}),cellButtonsValueButtonCopy:{right:8,cursor:"pointer"},cellButtonsValueButtonEdit:{right:pn/2+16},cellDetailsLine:{display:"flex",alignItems:"center",width:"100%",height:32,fontSize:16},cellDetailsName:{fontWeight:"bold",marginRight:8,minWidth:80},filteredOut:{opacity:.5},filteredParentOut:{opacity:.3},filterInput:{mt:0,mb:0},selectIcon:{width:24,height:24,marginRight:4},selectNone:{opacity:.5},itemSelected:e=>({background:`${e.palette.primary.main} !important`,color:`${V.invertColor(e.palette.primary.main,!0)} !important`}),header:{width:"100%"},headerCell:{display:"inline-block",verticalAlign:"top"},headerCellValue:{paddingTop:4,fontSize:16},headerCellInput:{width:"calc(100% - 5px)",height:Kn,pt:0,"& .itemIcon":{verticalAlign:"middle",width:vl,height:vl,display:"inline-block"}},headerCellSelectItem:{"& .itemIcon":{width:vl,height:vl,mr:"5px",display:"inline-block"}},visibleButtons:{color:"#2196f3",opacity:.7},grow:{flexGrow:1},enumIconDiv:{marginRight:8,width:32,height:32,borderRadius:8,background:"#FFFFFF"},enumIcon:{marginTop:4,marginLeft:4,width:24,height:24},enumDialog:{overflow:"hidden"},enumList:{minWidth:250,height:"calc(100% - 50px)",overflow:"auto"},enumButton:{float:"right"},enumCheckbox:{minWidth:0},buttonDiv:{display:"flex",height:"100%",alignItems:"center"},aclText:{fontSize:13,marginTop:6},rightsObject:{color:"#55ff55",paddingLeft:3},rightsState:{color:"#86b6ff",paddingLeft:3},textCenter:{padding:12,textAlign:"center"},tooltipAccessControl:{display:"flex",flexDirection:"column"},fontSizeTitle:{"@media screen and (max-width: 465px)":{"& *":{fontSize:12}}},draggable:{cursor:"copy"},nonDraggable:{cursor:"no-drop"},selectClearButton:{position:"absolute",top:0,right:0,borderRadius:5,backgroundColor:"background.default"},iconDeviceConnected:e=>({color:e.palette.mode==="dark"?l0:c0,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceDisconnected:e=>({color:e.palette.mode==="dark"?d0:u0,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceError:e=>({color:e.palette.mode==="dark"?qA:XA,opacity:.8,position:"absolute",top:4,right:50,width:20}),resizeHandle:{display:"block",position:"absolute",cursor:"col-resize",width:7,top:2,bottom:2,zIndex:1},resizeHandleRight:{right:3,borderRight:"2px dotted #888","&:hover":{borderColor:"#ccc",borderRightStyle:"solid"},"&.active":{borderColor:"#517ea5",borderRightStyle:"solid"}},invertedBackground:e=>({backgroundColor:e.palette.mode==="dark"?"#9a9a9a":"#565656",padding:"0 3px",borderRadius:"2px 0 0 2px"}),invertedBackgroundFlex:e=>({backgroundColor:e.palette.mode==="dark"?"#9a9a9a":"#565656",borderRadius:"0 2px 2px 0"}),contextMenuEdit:e=>({color:e.palette.mode==="dark"?"#ffee48":"#cbb801"}),contextMenuEditValue:e=>({color:e.palette.mode==="dark"?"#5dff45":"#1cd301"}),contextMenuView:e=>({color:e.palette.mode==="dark"?"#FFF":"#000"}),contextMenuCustom:e=>({color:e.palette.mode==="dark"?"#42eaff":"#01bbc2"}),contextMenuACL:e=>({color:e.palette.mode==="dark"?"#e079ff":"#500070"}),contextMenuRoom:e=>({color:e.palette.mode==="dark"?"#ff9a33":"#642a00"}),contextMenuRole:e=>({color:e.palette.mode==="dark"?"#ffdb43":"#562d00"}),contextMenuDelete:e=>({color:e.palette.mode==="dark"?"#ff4f4f":"#cf0000"}),contextMenuKeys:{marginLeft:8,opacity:.7,fontSize:"smaller"},contextMenuWithSubMenu:{display:"flex"}};function hit(e){return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 436 436",style:e==null?void 0:e.style,width:"24",height:"24",className:"admin-button"},p.createElement("g",{fill:"currentColor"},p.createElement("path",{d:"m195.23077,24.30769c-36,3 -67,12 -96,26c-49,24 -82,61 -93,104l-3,11l-1,50c0,46 0,49 2,59l5,20c21,58 84,103 165,116c16,3 53,4 70,2c60,-6 111,-28 147,-64c21,-21 36,-49 40,-74a866,866 0 0 0 1,-104c-3,-18 -6,-28 -13,-43c-26,-52 -87,-90 -162,-101c-16,-2 -48,-3 -63,-2l1,0zm60,23c36,5 70,18 95,35c31,20 51,47 59,77c2,7 2,11 2,25c1,15 0,18 -2,26c-19,69 -104,117 -200,114c-47,-2 -90,-15 -124,-38c-31,-20 -51,-47 -59,-77c-3,-11 -4,-32 -2,-43c8,-42 41,-78 91,-101a260,260 0 0 1 140,-19l0,1zm-221,222c21,26 57,49 95,62c81,27 174,14 239,-32c14,-10 31,-27 41,-41c2,-2 2,-2 2,7c-1,23 -16,50 -38,72c-78,74 -233,74 -311,-1a121,121 0 0 1 -39,-76l0,-6l3,4l8,11z"}),p.createElement("path",{d:"m201.23077,47.30769c-40,3 -79,19 -104,44c-55,55 -38,133 37,171c52,26 122,24 172,-5c30,-17 51,-42 58,-71c3,-11 3,-34 0,-45c-6,-23 -21,-44 -40,-60l-27,-16a184,184 0 0 0 -96,-18zm30,21c56,5 100,35 112,75c4,11 4,30 0,41c-8,25 -26,45 -54,59a166,166 0 0 1 -160,-8a98,98 0 0 1 -41,-53c-5,-18 -2,-39 8,-57c23,-39 79,-62 135,-57z"})))}function fit(e,t){const n=[];for(let o=0;o{if(r==null)return;const s=typeof r=="object";if(n&&s&&typeof r.en=="string"&&typeof r.de=="string"){o[a]=r.en;return}o[a]=s?p0(r,t,n):r}):mit(e,(o,r,a)=>{if(r==null||t.includes(a))return;const s=typeof r=="object";if(n&&s&&typeof r.en=="string"&&typeof r.de=="string"){o[a]=r.en;return}o[a]=s?p0(r,t,n):r})}function vE(e,t,n){const o=document.createElement("a"),r=[];n.excludeSystemRepositories&&r.push("system.repositories");const a=r.length>0||n.excludeTranslations?p0(t,r,n.excludeTranslations):t,s=n.beautify?JSON.stringify(a,null,2):JSON.stringify(a);o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(s)}`),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}function hp(e,t,n,o){if(n=n||0,o===void 0&&(o=e.length-1,!o))return e[0]===t;const r=Math.floor((n+o)/2);return t===e[r]?!0:o-1===n?e[n]===t||e[o]===t:t>e[r]?hp(e,t,r,o):t$.role.startsWith(k))||(d=!0)):d=!0),!d&&((b=s.common)==null?void 0:b.custom)==="_"&&($!=null&&$.custom))d=!0;else if(!d&&((y=s.common)!=null&&y.custom)&&((w=s.common)==null?void 0:w.custom)!=="_"){const k=s.common.custom;if(!($!=null&&$.custom))d=!0;else if(k==="_dataSources")Object.keys($.custom).find(T=>T.startsWith("history.")||T.startsWith("sql.")||T.startsWith("influxdb."))||(d=!0);else if(Array.isArray(k)){const T=Object.keys($.custom);k.find(O=>T.find(D=>D.startsWith(O)))&&(d=!0)}else k!==!0&&!Object.keys($.custom).find(T=>T.startsWith(k))&&(d=!0)}}!d&&!t.expertMode&&(d=u.id==="system"||u.id==="enum"||u.id.startsWith("system.")||u.id.startsWith("enum.")||u.id.startsWith("_design/")||u.id.endsWith(".admin")||!!($!=null&&$.expert)),!d&&r.id&&(u.fID===void 0&&(u.fID=u.id.toLowerCase()),d=!u.fID.includes(r.id)),!d&&r.name&&($?(u.fName===void 0&&(u.fName=$&&To($.name,n)||"",u.fName=u.fName.toLowerCase()),d=!u.fName.includes(r.name)):d=!0),!d&&t.role&&$&&($?d=!($.role&&$.role.startsWith(r.role)):d=!0),!d&&r.room&&(d=!r.room.find(k=>k===u.id||u.id.startsWith(`${k}.`))),!d&&r.func&&(d=!r.func.find(k=>k===u.id||u.id.startsWith(`${k}.`))),!d&&r.type&&(d=!(u.obj&&u.obj.type&&u.obj.type===r.type)),!d&&i&&(d=!(u.obj&&u.obj.type&&i.includes(u.obj.type))),!d&&r.custom&&($?r.custom==="_"?d=!!$.custom:d=!$.custom||!$.custom[r.custom]:d=!0)}return u.visible=!d,u.hasVisibleChildren=!1,e.children&&l<20&&e.children.forEach($=>{h0($,t,n,o,r,a,s,i,l+1)&&(u.hasVisibleChildren=!0)}),u.sumVisibility=u.visible||u.hasVisibleChildren,a&&u.sumVisibility&&a.count++,u.id&&u.sumVisibility&&e.children&&e.children.forEach($=>$.data.hasVisibleParent=!0),u.visible||u.hasVisibleChildren}function JA(e,t,n,o){var a;o=o||[];const r=e.data;return r.sumVisibility&&(r.id&&n[r.id]&&n[r.id].type===t&&o.push(r.id),(a=e.children)==null||a.forEach(s=>JA(s,t,n,o))),o}function yE(e,t,n,o,r,a){let s;return t==="alias"||t==="alias.0"?s=p.createElement(r3,{className:"iconOwn",style:{color:WA(o)}}):t==="0_userdata"||t==="0_userdata.0"?s=p.createElement(iX,{className:"iconOwn",style:{color:UA(o)}}):t.startsWith("_design/")||t==="system"?s=p.createElement(d$,{className:"iconOwn",style:{color:VA(o)}}):t==="system.adapter"?s=p.createElement(d$,{className:"iconOwn",style:{color:GA(o)}}):t==="system.group"?s=p.createElement(l3,{className:"iconOwn"}):t==="system.user"?s=p.createElement(a3,{className:"iconOwn"}):t==="system.host"?s=p.createElement(i3,{className:"iconOwn"}):t.endsWith(".connection")||t.endsWith(".connected")?s=p.createElement(ou,{className:"iconOwn"}):t.endsWith(".info")?s=p.createElement(yX,{className:"iconOwn"}):e[t]&&e[t].type==="meta"?s=p.createElement(bw,{className:"iconOwn"}):n<2&&e[`system.adapter.${t}`]&&(s=Bm(e,`system.adapter.${t}`,r,a)),s||null}function YA(e,t){var n,o;return(o=(n=e==null?void 0:e.obj)==null?void 0:n.common)!=null&&o.desc&&To(e.obj.common.desc,t)||null}function git(e,t){const n=YA(e,t);return n!=null&&n.startsWith("http")?p.createElement(ke,{component:"a",sx:z.cellIdTooltipLink,href:n,target:"_blank",rel:"noreferrer"},n):p.createElement("span",{style:z.cellIdTooltip},n||e.id||"")}function bE(e,t){var u,c,h,f,g,v,S,_,b;const n=t.imagePrefix||".";let o=Object.keys(e);o.sort((y,w)=>y===w?0:(y=y.replace(/\./g,"!!!"),w=w.replace(/\./g,"!!!"),y>w?1:-1)),t.root&&(o=o.filter(y=>y===t.root||y.startsWith(`${t.root}.`)));let r=[],a="",s=0;const i={data:{name:"",id:""},children:[]},l={funcEnums:[],roomEnums:[],roles:[],ids:[],types:[],objects:e,customs:["_"],enums:[],hasSomeCustoms:!1,aliasesMap:{}};let d=i;for(let y=0;y1){let D=a;for(let x=s;xA.data.name===k[x]));else{const A={data:{name:k[x],parent:d,id:D,obj:e[D],level:x,icon:yE(e,D,x,t.themeType,t.lang,n),generated:!0}};d.children=d.children||[],d.children.push(A),d=A,l.ids.push(D)}}const O={data:{name:k[k.length-1],title:To((h=$==null?void 0:$.common)==null?void 0:h.name,t.lang),obj:$,parent:d,icon:Bm(e,w,t.lang,n)||yE(e,w,0,t.themeType,t.lang,n),id:w,hasCustoms:!!((f=$.common)!=null&&f.custom&&Object.keys($.common.custom).length),level:k.length-1,generated:!1,button:$.type==="state"&&!!((g=$.common)!=null&&g.role)&&typeof $.common.role=="string"&&$.common.role.startsWith("button")&&((v=$.common)==null?void 0:v.write)!==!1,switch:$.type==="state"&&((S=$.common)==null?void 0:S.type)==="boolean"&&((_=$.common)==null?void 0:_.write)!==!1&&((b=$.common)==null?void 0:b.read)!==!1}};d.children=d.children||[],d.children.push(O),d=O,s=k.length,r=k,a=w}else{let O=0;for(;r[O]===k[O];)O++;if(O>0){let D=r.length;for(r=r.splice(0,O),s=O,a=r.join(".");D>O;)d.data.parent?d=d.data.parent:console.error(`Parent is null for ${w} ${a} ${r.join(".")}`),D--}else d=i,r=[],a="",s=0;T=!0}while(T)}return l.roomEnums.sort((y,w)=>{var T,O,D,x;const $=To((O=(T=e[y])==null?void 0:T.common)==null?void 0:O.name,t.lang)||y.split(".").pop(),k=To((x=(D=e[w])==null?void 0:D.common)==null?void 0:x.name,t.lang)||w.split(".").pop();return $>k?1:${var T,O,D,x;const $=To((O=(T=e[y])==null?void 0:T.common)==null?void 0:O.name,t.lang)||y.split(".").pop(),k=To((x=(D=e[w])==null?void 0:D.common)==null?void 0:x.name,t.lang)||w.split(".").pop();return $>k?1:$o)break}return a?(r=r||0,KA(a,t,n,`${o}.${n[r+1]}`,r+1)):null}function ZA(e,t,n,o){var s,i;if(!t)return{rooms:[],per:!1};o=o||[];for(const l of e.roomEnums){const d=(s=e.objects[l])==null?void 0:s.common;if(!d)continue;const u=To(d.name,n);(i=d.members)!=null&&i.includes(t)&&!o.includes(u)&&o.push(u)}let r;const a=t.split(".");return a.pop(),t=a.join("."),e.objects[t]&&(r=o.length,ZA(e,t,n,o)),{rooms:o,per:!r}}function yl(e,t,n,o){var r,a;if(!t)return[];o=o||[];for(let s=0;s946681200&&d<9466812e5&&(d*=1e3),d=d&&new Date(d).toString();else u==="number"?Number.isInteger(d)||(d=Math.round(d*1e8)/1e8,o&&(d=d.toString().replace(".",","))):u==="object"?d=JSON.stringify(d):u!=="string"?d=d.toString():d.startsWith("data:image/")&&(l="image"),typeof d!="string"&&(d=d.toString());const c={v:d};s&&s[d]!==void 0&&d!==s[d]&&(c.s=d,d=s[d],c.v=d),i!=null&&i.unit&&(c.u=i.unit);let h;if(e.full&&(h=[{t:r.value,v:d}],n)){if(n.ack!==void 0&&n.ack!==null&&h.push({t:r.ack,v:n.ack.toString()}),n.ts&&h.push({t:r.ts,v:n.ts?V.formatDate(new Date(n.ts),t):""}),n.lc&&h.push({t:r.lc,v:n.lc?V.formatDate(new Date(n.lc),t):""}),n.from){let f=n.from.toString();f.startsWith("system.adapter.")&&(f=f.substring(15)),h.push({t:r.from,v:f})}if(n.user){let f=n.user.toString();f.startsWith("system.user.")&&(f=f.substring(12)),h.push({t:r.user,v:f})}n.c&&h.push({t:r.c,v:n.c}),h.push({t:r.quality,v:V.quality2text(n.q||0).join(", "),nbr:!0})}return{valText:c,valFull:h,fileViewer:l}}function _it(e){const{state:t}=e;return{color:t!=null&&t.ack?t.q?"#ffa500":"":"#ff2222c9"}}function vit(e,t){let n=t,o=1;const r=[];for(;o=n)r.push(0);else if(o{this.contextMenu&&Date.now()-this.contextMenu.ts<2e3?(n.preventDefault(),this.setState({showContextMenu:{item:this.contextMenu.item,position:{left:n.clientX+2,top:n.clientY-6}}})):this.state.showContextMenu&&(n.preventDefault(),this.setState({showContextMenu:null})),this.contextMenu=null});F(this,"onStateChange",(n,o)=>{if(console.log(`> stateChange ${n}`),this.states[n]){const r=this.findItem(n);r!=null&&r.data.state&&(r.data.state=void 0)}o?this.states[n]=o:delete this.states[n],this.pausedSubscribes?this.statesUpdateTimer&&(clearTimeout(this.statesUpdateTimer),this.statesUpdateTimer=null):this.statesUpdateTimer||(this.statesUpdateTimer=setTimeout(()=>{this.statesUpdateTimer=null,this.forceUpdate()},300))});F(this,"onObjectChangeFromWorker",n=>{if(Array.isArray(n)){let o=null;n.forEach(r=>{const{newInnerState:a,filtered:s}=this.processOnObjectChangeElement(r.id,r.obj);s||(a&&o?Object.assign(o,a):o=a)}),o&&this.setState(o),this.afterObjectUpdated()}});F(this,"onObjectChange",(n,o)=>{const{newInnerState:r,filtered:a}=this.processOnObjectChangeElement(n,o);a||(r&&this.setState(r),this.afterObjectUpdated())});F(this,"getEnumsForId",n=>{const o=[];return this.info.enums.forEach(r=>{var a,s,i;if((i=(s=(a=this.objects[r])==null?void 0:a.common)==null?void 0:s.members)!=null&&i.includes(n)){const l={_id:this.objects[r]._id,common:JSON.parse(JSON.stringify(this.objects[r].common)),native:this.objects[r].native,type:"enum"};l.common&&(delete l.common.members,delete l.common.custom,delete l.common.mobile),o.push(l)}}),o.length?o:void 0});F(this,"_createAllEnums",async(n,o)=>{var r,a;for(let s=0;s{var r,a;const{t:n}=this.props;let o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:2},n("ra_Folder → State")),p.createElement("div",{key:3},n("ra_Folder → Channel → State")),p.createElement("div",{key:4},n("ra_Folder → Device → Channel → State")),p.createElement("div",{key:5},n("ra_Device → Channel → State")),p.createElement("div",{key:6},n("ra_Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];if(this.state.selected.length||this.state.selectedNonObject){const s=this.state.selected[0]||this.state.selectedNonObject;if(!(s.split(".").length<2||this.objects[s]&&((r=this.objects[s])==null?void 0:r.type)==="state"))if(this.state.filter.expertMode)switch((a=this.objects[s])==null?void 0:a.type){case"device":o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:5},n("ra_Device → Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"folder":o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:2},n("ra_Folder → State")),p.createElement("div",{key:3},n("ra_Folder → Channel → State")),p.createElement("div",{key:4},n("ra_Folder → Device → Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"channel":o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:1},n("ra_Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break}else(s.startsWith("alias.0")||s.startsWith("0_userdata"))&&(o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:2},n("ra_Folder → State")),p.createElement("div",{key:3},n("ra_Folder → Channel → State")),p.createElement("div",{key:4},n("ra_Folder → Device → Channel → State")),p.createElement("div",{key:5},n("ra_Device → Channel → State")),p.createElement("div",{key:6},n("ra_Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:7},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:8},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))])}return o.length?o:n("ra_Add new child object to selected parent")});F(this,"renderTooltipAccessControl",n=>{if(!n)return null;const o=[{value:"0x400",valueNum:1024,title:"read",group:"Owner"},{value:"0x200",valueNum:512,title:"write",group:"Owner"},{value:"0x40",valueNum:64,title:"read",group:"Group"},{value:"0x20",valueNum:32,title:"write",group:"Group"},{value:"0x4",valueNum:4,title:"read",group:"Everyone"},{value:"0x2",valueNum:2,title:"write",group:"Everyone"}],r=[],a=s=>{const i=n[s];o.forEach((l,d)=>{i&l.valueNum&&r.push(p.createElement("span",{key:s+d},this.texts[`acl${l.group}_${l.title}_${s}`],",",p.createElement("span",{style:s==="object"?z.rightsObject:z.rightsState},l.value)))})};return r.push(p.createElement("span",{key:"group"},`${this.texts.ownerGroup}: ${(n.ownerGroup||"").replace("system.group.","")}`)),r.push(p.createElement("span",{key:"owner"},`${this.texts.ownerUser}: ${(n.owner||"").replace("system.user.","")}`)),a("object"),n.state&&a("state"),r.length?p.createElement("span",{style:z.tooltipAccessControl},r.map(s=>s)):null});F(this,"resizerMouseMove",n=>{if(this.resizerActiveDiv){let o,r;this.resizeLeft?(o=this.resizerOldWidth-n.clientX+this.resizerPosition,r=this.resizerOldWidthNext+n.clientX-this.resizerPosition):(o=this.resizerOldWidth+n.clientX-this.resizerPosition,r=this.resizerOldWidthNext-n.clientX+this.resizerPosition),this.resizerActiveName&&this.resizerNextName&&(!this.resizerMin||o>this.resizerMin)&&(!this.resizerNextMin||r>this.resizerNextMin)&&(this.resizerCurrentWidths[this.resizerActiveName]=o,this.resizerCurrentWidths[this.resizerNextName]=r,this.resizerActiveDiv.style.width=`${o}px`,this.resizerNextDiv&&(this.resizerNextDiv.style.width=`${r}px`),this.columnsVisibility[this.resizerActiveName]=o,this.columnsVisibility[this.resizerNextName]=r,this.resizerNextName==="nameHeader"?(this.columnsVisibility.name=r-this.state.scrollBarWidth,this.resizerCurrentWidths.name=r-this.state.scrollBarWidth):this.resizerActiveName==="nameHeader"&&(this.columnsVisibility.name=o-this.state.scrollBarWidth,this.resizerCurrentWidths.name=o-this.state.scrollBarWidth),this.customWidth=!0,this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=null,this.forceUpdate()},200))}});F(this,"resizerMouseUp",()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.table`,JSON.stringify(this.resizerCurrentWidths)),this.resizerActiveName=null,this.resizerNextName=null,this.resizerActiveDiv=null,this.resizerNextDiv=null,window.removeEventListener("mousemove",this.resizerMouseMove),window.removeEventListener("mouseup",this.resizerMouseUp)});F(this,"resizerMouseDown",n=>{if(this.storedWidths=this.storedWidths||JSON.parse(JSON.stringify(cn[this.props.width||"lg"])),this.resizerCurrentWidths=this.resizerCurrentWidths||{},this.resizerActiveDiv=n.target.parentNode,this.resizerActiveName=this.resizerActiveDiv.dataset.name||null,this.resizerActiveName){let o=0;if(n.target.dataset.left==="true"){this.resizeLeft=!0,this.resizerNextDiv=this.resizerActiveDiv.previousElementSibling;let r=this.resizerNextDiv.querySelector(".iob-ob-resize-handler");for(;this.resizerNextDiv&&!r&&o<10;)this.resizerNextDiv=this.resizerNextDiv.previousElementSibling,r=this.resizerNextDiv.querySelector(".iob-ob-resize-handler"),o++;(r==null?void 0:r.dataset.left)!=="true"&&(this.resizerNextDiv=this.resizerNextDiv.nextElementSibling)}else this.resizeLeft=!1,this.resizerNextDiv=this.resizerActiveDiv.nextElementSibling;this.resizerNextName=this.resizerNextDiv.dataset.name||null,this.resizerMin=parseInt(this.resizerActiveDiv.dataset.min,10)||0,this.resizerNextMin=parseInt(this.resizerNextDiv.dataset.min,10)||0,this.resizerPosition=n.clientX,this.resizerCurrentWidths[this.resizerActiveName]=this.resizerActiveDiv.offsetWidth,this.resizerOldWidth=this.resizerCurrentWidths[this.resizerActiveName],this.resizerNextName&&(this.resizerCurrentWidths[this.resizerNextName]=this.resizerNextDiv.offsetWidth,this.resizerOldWidthNext=this.resizerCurrentWidths[this.resizerNextName]),window.addEventListener("mousemove",this.resizerMouseMove),window.addEventListener("mouseup",this.resizerMouseUp)}});F(this,"resizerReset",()=>{this.customWidth=!1,cn[this.props.width||"lg"]=JSON.parse(JSON.stringify(this.storedWidths)),this.calculateColumnsVisibility(),this.localStorage.removeItem(`${this.props.dialogName||"App"}.table`),this.forceUpdate()});const o=this.localStorage.getItem(`${n.dialogName||"App"}.objectSelected`)||"";if(this.selectFirst="",o.startsWith("["))try{const _=JSON.parse(o);this.selectFirst=_[0]||""}catch{}else this.selectFirst=o;let r;const a=this.localStorage.getItem(`${n.dialogName||"App"}.objectExpanded`)||"[]";try{r=JSON.parse(a)}catch{r=[]}let s;const i=n.defaultFilters?"":this.localStorage.getItem(`${n.dialogName||"App"}.objectFilter`)||"";if(i)try{s=JSON.parse(i)}catch{s={...Vh}}else n.defaultFilters&&typeof n.defaultFilters=="object"?s={...n.defaultFilters}:s={...Vh};if(s.expertMode=n.expertMode!==void 0?n.expertMode:(window._sessionStorage||window.sessionStorage).getItem("App.expertMode")==="true",this.tableRef=C.createRef(),this.filterRefs={},Object.keys(Vh).forEach(_=>this.filterRefs[_]=C.createRef()),this.visibleCols=n.columns||cn[n.width||"lg"].fields,n.types&&n.types.length===1){const _=this.visibleCols.indexOf("type");_!==-1&&this.visibleCols.splice(_,1)}this.possibleCols=cn.xl.fields;let l=null;if(n.router){const _=n.router.getLocation();_.id&&_.dialog==="customs"&&(l=[_.id],this.pauseSubscribe(!0))}let d;Array.isArray(n.selected)?d=n.selected:d=[n.selected||""],d=d.map(_=>_.replace(/["']/g,"")).filter(_=>_),this.selectFirst=d.length&&d[0]?d[0]:this.selectFirst;const u=this.localStorage.getItem(`${n.dialogName||"App"}.columns`);let c;try{c=u?JSON.parse(u):null}catch{c=null}let h=null;try{h=h?JSON.parse(h):{}}catch{h={}}this.imagePrefix=n.imagePrefix||".";let f;const g=this.localStorage.getItem(`${n.dialogName||"App"}.foldersFirst`);g==="false"?f=!1:g==="true"?f=!0:f=n.foldersFirst===void 0?!0:n.foldersFirst;let v=!1;try{v=this.props.objectStatesView&&JSON.parse(this.localStorage.getItem(`${n.dialogName||"App"}.objectStatesView`)||"")||!1}catch{}this.state={loaded:!1,foldersFirst:f,selected:d,selectedNonObject:this.localStorage.getItem(`${n.dialogName||"App"}.selectedNonObject`)||"",filter:s,filterKey:0,focused:this.localStorage.getItem(`${n.dialogName||"App"}.focused`)||"",depth:0,expandAllVisible:!1,expanded:r,toast:"",scrollBarWidth:16,customDialog:l,editObjectDialog:"",editObjectAlias:!1,viewFileDialog:"",showAliasEditor:"",enumDialog:null,roleDialog:null,statesView:v,columns:c,columnsForAdmin:null,columnsSelectorShow:!1,columnsAuto:this.localStorage.getItem(`${n.dialogName||"App"}.columnsAuto`)!=="false",columnsWidths:h,columnsDialogTransparent:100,columnsEditCustomDialog:null,customColumnDialogValueChanged:!1,showExportDialog:!1,showAllExportOptions:!1,linesEnabled:this.localStorage.getItem(`${n.dialogName||"App"}.lines`)==="true",showDescription:this.localStorage.getItem(`${n.dialogName||"App"}.desc`)!=="false",showContextMenu:null,noStatesByExportImport:!1,beautifyJsonExport:!0,excludeSystemRepositoriesFromExport:!0,excludeTranslations:!1,tooltipInfo:null,aliasMenu:""},this.texts={name:n.t("ra_Name"),categories:n.t("ra_Categories"),value:n.t("ra_tooltip_value"),ack:n.t("ra_tooltip_ack"),ts:n.t("ra_tooltip_ts"),lc:n.t("ra_tooltip_lc"),from:n.t("ra_tooltip_from"),user:n.t("ra_tooltip_user"),c:n.t("ra_tooltip_comment"),quality:n.t("ra_tooltip_quality"),editObject:n.t("ra_tooltip_editObject"),deleteObject:n.t("ra_tooltip_deleteObject"),customConfig:n.t("ra_tooltip_customConfig"),copyState:n.t("ra_tooltip_copyState"),editState:n.t("ra_tooltip_editState"),close:n.t("ra_Close"),filter_id:n.t("ra_filter_id"),filter_name:n.t("ra_filter_name"),filter_type:n.t("ra_filter_type"),filter_role:n.t("ra_filter_role"),filter_room:n.t("ra_filter_room"),filter_func:n.t("ra_filter_func"),filter_custom:n.t("ra_filter_customs"),filterCustomsWithout:n.t("ra_filter_customs_without"),objectChangedByUser:n.t("ra_object_changed_by_user"),objectChangedBy:n.t("ra_object_changed_by"),objectChangedFrom:n.t("ra_state_changed_from"),stateChangedBy:n.t("ra_state_changed_by"),stateChangedFrom:n.t("ra_state_changed_from"),ownerGroup:n.t("ra_Owner group"),ownerUser:n.t("ra_Owner user"),deviceError:n.t("ra_Error"),deviceDisconnected:n.t("ra_Disconnected"),deviceConnected:n.t("ra_Connected"),aclOwner_read_object:n.t("ra_aclOwner_read_object"),aclOwner_read_state:n.t("ra_aclOwner_read_state"),aclOwner_write_object:n.t("ra_aclOwner_write_object"),aclOwner_write_state:n.t("ra_aclOwner_write_state"),aclGroup_read_object:n.t("ra_aclGroup_read_object"),aclGroup_read_state:n.t("ra_aclGroup_read_state"),aclGroup_write_object:n.t("ra_aclGroup_write_object"),aclGroup_write_state:n.t("ra_aclGroup_write_state"),aclEveryone_read_object:n.t("ra_aclEveryone_read_object"),aclEveryone_read_state:n.t("ra_aclEveryone_read_state"),aclEveryone_write_object:n.t("ra_aclEveryone_write_object"),aclEveryone_write_state:n.t("ra_aclEveryone_write_state"),create:n.t("ra_Create"),createBooleanState:n.t("ra_create_boolean_state"),createNumberState:n.t("ra_create_number_state"),createStringState:n.t("ra_create_string_state"),createState:n.t("ra_create_state"),createChannel:n.t("ra_create_channel"),createDevice:n.t("ra_create_device"),createFolder:n.t("ra_Create folder")},this.levelPadding=n.levelPadding||uit;const S=this.localStorage.getItem(`${this.props.dialogName||"App"}.table`);if(S)try{const _=JSON.parse(S),b=this.props.width||"lg";this.storedWidths=JSON.parse(JSON.stringify(cn[b])),Object.keys(_).forEach(y=>{y==="id"?cn[b].idWidth=_.id:y==="nameHeader"?cn[b].widths.name=_[y]:cn[b].widths[y]!==void 0&&(cn[b].widths[y]=_[y])}),this.customWidth=!0}catch{}this.calculateColumnsVisibility()}async loadAllObjects(n){const o=this.props;try{await new Promise(d=>{this.setState({updating:!0},()=>d())});const r=(this.props.objectsWorker?await this.props.objectsWorker.getObjects(n):await o.socket.getObjects(n,!0))||{};if(o.types&&Vr.isWeb())for(let d=0;d{try{if(d(r[u]))this.objects[u]=r[u];else{const c=r[u]&&r[u].type;c&&(c==="channel"||c==="device"||c==="folder"||c==="adapter"||c==="instance")&&(this.objects[u]=r[u])}}catch(c){console.log(`Error by filtering of "${u}": ${c}`)}})}else if(o.types){this.objects={};const d=o.types;Object.keys(r).forEach(u=>{const c=r[u]&&r[u].type;c&&(c==="channel"||c==="device"||c==="enum"||c==="folder"||c==="adapter"||c==="instance"||d.includes(c))&&(this.objects[u]=r[u])})}else this.objects=r;o.setObjectsReference&&o.setObjectsReference(this.objects),this.defaultHistory=this.systemConfig.common.defaultHistory,this.defaultHistory&&o.socket.getState(`system.adapter.${this.defaultHistory}.alive`).then(d=>{(!d||!d.val)&&(this.defaultHistory="")}).catch(d=>window.alert(`Cannot get state: ${d}`));const a=await this.getAdditionalColumns();this.calculateColumnsVisibility(null,null,a);const{info:s,root:i}=bE(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=i,this.info=s;const l=this.state.selected&&this.state.selected.length&&KA(this.root,this.state.selected[0]);this.lastAppliedFilter=null,l&&!h0(l,this.state.filter,this.props.lang,this.objects,void 0,void 0,o.customFilter,o.types)?this.setState({filter:{...Vh},columnsForAdmin:a},()=>{this.setState({loaded:!0,updating:!1},()=>this.expandAllSelected(()=>this.onAfterSelect()))}):this.setState({loaded:!0,updating:!1,columnsForAdmin:a},()=>this.expandAllSelected(()=>this.onAfterSelect()))}catch(r){this.showError(r)}}static isNonExpertId(n){return!!SS(wr,qm).find(o=>n.startsWith(o))}expandAllSelected(n){const o=[...this.state.expanded];let r=!1;this.state.selected.forEach(a=>{const s=a.split("."),i=[];for(let l=0;lthis.props.onSelect&&this.props.onSelect([],"")):this.props.onSelect&&this.props.onSelect([],"")}static getDerivedStateFromProps(n,o){const r={};let a=!1;return n.expertMode!==void 0&&n.expertMode!==o.filter.expertMode&&(a=!0,r.filter={...o.filter},r.filter.expertMode=n.expertMode),a?r:null}async componentDidMount(){await this.loadAllObjects(!SE),this.props.objectsWorker?this.props.objectsWorker.registerHandler(this.onObjectChangeFromWorker):await this.props.socket.subscribeObject("*",this.onObjectChange),SE=!0,window.addEventListener("contextmenu",this.onContextMenu,!0)}componentWillUnmount(){this.filterTimer&&(clearTimeout(this.filterTimer),this.filterTimer=null),window.removeEventListener("contextmenu",this.onContextMenu,!0),this.props.objectsWorker?this.props.objectsWorker.unregisterHandler(this.onObjectChangeFromWorker,!0):this.props.socket.unsubscribeObject("*",this.onObjectChange).catch(n=>console.error(`Cannot unsubscribe *: ${n}`)),this.subscribes.forEach(n=>{console.log(`- unsubscribe ${n}`),this.props.socket.unsubscribeState(n,this.onStateChange)}),this.subscribes=[],this.objects={}}showDeleteDialog(n){var d,u;const{id:o,obj:r,item:a}=n,s=Object.keys(this.objects);s.sort();let i=0;const l=`${o}.`;for(let c=0;cl)break;this.props.onObjectDelete&&this.props.onObjectDelete(o,!!((d=a.children)!=null&&d.length),!((u=r.common)!=null&&u.dontDelete),i+1)}refreshComponent(){this.subscribes.forEach(n=>{console.log(`- unsubscribe ${n}`),this.props.socket.unsubscribeState(n,this.onStateChange)}),this.subscribes=[],this.loadAllObjects(!0).then(()=>console.log("updated!")).catch(n=>this.showError(n))}renderErrorDialog(){return this.state.error?p.createElement(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({error:""}),"aria-labelledby":"error-dialog-title","aria-describedby":"error-dialog-description"},p.createElement(bt,{id:"alert-dialog-title"},this.props.t("ra_Error")),p.createElement(jt,null,p.createElement(Ra,{id:"alert-dialog-description"},this.state.error)),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.setState({error:""}),color:"primary",autoFocus:!0,startIcon:p.createElement(qn,null)},this.props.t("ra_Ok")))):null}showError(n){this.setState({error:typeof n=="object"?n&&typeof n.toString=="function"?n.toString():JSON.stringify(n):n})}onSelect(n,o,r){if(this.localStorage.setItem(`${this.props.dialogName||"App"}.focused`,n),!this.props.multiSelect)this.objects[n]&&(!this.props.types||this.props.types.includes(this.objects[n].type))?(this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`),this.state.selected[0]!==n?this.setState({selected:[n],selectedNonObject:"",focused:n},()=>{this.onAfterSelect(o),r&&r()}):o&&this.props.onSelect&&this.onAfterSelect(o)):(this.localStorage.setItem(`${this.props.dialogName||"App"}.selectedNonObject`,n),this.setState({selected:[],selectedNonObject:n,focused:n},()=>{this.onAfterSelect(),r&&r()}));else if(this.objects[n]&&(!this.props.types||this.props.types.includes(this.objects[n].type))){this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`);const a=[...this.state.selected],s=a.indexOf(n);s===-1?(a.push(n),a.sort()):o||a.splice(s,1),this.setState({selected:a,selectedNonObject:"",focused:n},()=>{this.onAfterSelect(o),r&&r()})}}_renderDefinedList(n){const o=[...this.possibleCols];if(o.unshift("id"),this.props.columns&&!this.props.columns.includes("buttons")){const r=o.indexOf("buttons");r!==-1&&o.splice(r,1)}return o.filter(r=>n&&(r==="val"||r==="buttons")||!n&&r!=="val"&&r!=="buttons").map(r=>{var a;return p.createElement(K2,{onClick:()=>{if(!this.state.columnsAuto&&r!=="id"){const s=[...this.state.columns||[]],i=s.indexOf(r);i===-1?(s.push(r),s.sort()):s.splice(i,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(s)),this.calculateColumnsVisibility(null,s),this.setState({columns:s})}},key:r},p.createElement(Tt,{edge:"start",disabled:r==="id"||this.state.columnsAuto,checked:r==="id"||!!(this.state.columnsAuto?this.visibleCols.includes(r):(a=this.state.columns)!=null&&a.includes(r)),disableRipple:!0}),p.createElement(as,{primary:this.texts[`filter_${r}`]||this.props.t(`ra_${r}`)}))})}renderColumnsSelectorDialog(){return this.state.columnsSelectorShow?p.createElement(yt,{onClose:()=>this.setState({columnsSelectorShow:!1}),open:!0,sx:{"& .MuiPaper-root":V.getStyle(this.props.theme,z.dialogColumns,z[`transparent_${this.state.columnsDialogTransparent}`])}},p.createElement(bt,{sx:z.fontSizeTitle},this.props.t("ra_Configure")),p.createElement(jt,{sx:z.fontSizeTitle},p.createElement(Oe,{style:z.switchColumnAuto,control:p.createElement(tu,{checked:this.state.foldersFirst,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.foldersFirst`,this.state.foldersFirst?"false":"true"),this.setState({foldersFirst:!this.state.foldersFirst})}}),label:this.props.t("ra_Folders always first")}),p.createElement(Oe,{style:z.switchColumnAuto,control:p.createElement(tu,{checked:this.state.linesEnabled,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.lines`,this.state.linesEnabled?"false":"true"),this.setState({linesEnabled:!this.state.linesEnabled})}}),label:this.props.t("ra_Show lines between rows")}),p.createElement(Oe,{style:z.switchColumnAuto,control:p.createElement(tu,{checked:this.state.columnsAuto,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.columnsAuto`,this.state.columnsAuto?"false":"true"),this.state.columnsAuto?this.state.columns?(this.calculateColumnsVisibility(!1),this.setState({columnsAuto:!1})):(this.calculateColumnsVisibility(!1,[...this.visibleCols]),this.setState({columnsAuto:!1,columns:[...this.visibleCols]})):(this.calculateColumnsVisibility(!0),this.setState({columnsAuto:!0}))}}),label:this.props.t("ra_Auto (no custom columns)")}),p.createElement($b,null,this._renderDefinedList(!1),this.state.columnsForAdmin&&Object.keys(this.state.columnsForAdmin).sort().map(n=>this.state.columnsForAdmin&&this.state.columnsForAdmin[n].map(o=>{var r;return p.createElement(K2,{onClick:()=>{if(!this.state.columnsAuto){const a=[...this.state.columns||[]],s=`_${n}_${o.path}`,i=a.indexOf(s);i===-1?(a.push(s),a.sort()):a.splice(i,1),this.calculateColumnsVisibility(null,a),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(a)),this.setState({columns:a})}},key:`${n}_${o.name}`},p.createElement(Tl,null,p.createElement(Tt,{disabled:this.state.columnsAuto,edge:"start",checked:!this.state.columnsAuto&&((r=this.state.columns)==null?void 0:r.includes(`_${n}_${o.path}`)),disableRipple:!0})),p.createElement(as,{primary:`${o.name} (${n})`}))})),this._renderDefinedList(!0))),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.setState({columnsSelectorShow:!1}),color:"primary",startIcon:p.createElement(Dt,null)},this.texts.close))):null}async getAdditionalColumns(){try{const n=await this.props.socket.getAdapters();let o=null;return n.forEach(r=>o=this.parseObjectForAdmins(o,r)),o}catch(n){return console.error(`Cannot get adapters: ${n}`),null}}checkUnsubscribes(){for(let n=this.subscribes.length-1;n>=0;n--)this.recordStates.includes(this.subscribes[n])||this.unsubscribe(this.subscribes[n]);this.recordStates=[]}findItem(n,o,r,a){if(o=o||n.split("."),r=r||this.root,!r||!o.length)return null;if(a=(a?`${a}.`:"")+o.shift(),r.children){const s=r.children.find(i=>i.data.id===a);if(s){if(s.data.id===n)return s;if(o.length)return this.findItem(n,o,s,a)}else return null}return null}parseObjectForAdmins(n,o){if(o.common&&o.common.adminColumns&&o.common.name){const r=o.common.adminColumns;let a;r&&typeof r!="object"?a=[r]:r&&(a=r);let s;r?s=a.map(i=>{if(typeof i!="object")return{path:i,name:i.split(".").pop()};const l=i;return l.objTypes&&typeof l.objTypes!="object"?l.objTypes=[l.objTypes]:l.objTypes||(l.objTypes=void 0),!l.name&&l.path?{path:l.path,name:l.path.split(".").pop(),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:l.path?{path:l.path,name:To(l.name||"",this.props.lang),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:(console.warn(`Admin columns for ${o._id} ignored, because path not found`),null)}).filter(i=>i):s=null,s&&s.length&&(n=n||{},n[o.common.name]=s.sort((i,l)=>i.path>l.path?-1:i.path{this.objectsUpdateTimer=null;const{info:n,root:o}=bE(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=o,this.info=n,this.lastAppliedFilter=null,this.pausedSubscribes||this.forceUpdate()},500))}updateAliases(n){var r,a,s;if(!this.objects||!((r=this.info)!=null&&r.aliasesMap)||!(n!=null&&n.startsWith("alias.")))return;const o=Object.keys(this.objects).filter(i=>i.startsWith("alias.0"));this.info.aliasesMap={};for(const i of o){const l=this.objects[i];if((s=(a=l==null?void 0:l.common)==null?void 0:a.alias)!=null&&s.id)if(typeof l.common.alias.id=="string"){const d=l.common.alias.id;this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(i)||this.info.aliasesMap[d].push(i):this.info.aliasesMap[d]=[i]}else{const d=l.common.alias.id.read;d&&(this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(i)||this.info.aliasesMap[d].push(i):this.info.aliasesMap[d]=[i]);const u=l.common.alias.id.write;u&&(this.info.aliasesMap[u]?this.info.aliasesMap[u].includes(i)||this.info.aliasesMap[u].push(i):this.info.aliasesMap[u]=[i])}}}processOnObjectChangeElement(n,o){console.log(`> objectChange ${n}`);const r=o==null?void 0:o.type;if(o&&typeof this.props.filterFunc=="function"&&!this.props.filterFunc(o)&&r!=="channel"&&r!=="device"&&r!=="folder"&&r!=="adapter"&&r!=="instance")return{newInnerState:null,filtered:!0};let a=null;if(n.startsWith("system.adapter.")&&(o==null?void 0:o.type)==="adapter"){const s=JSON.parse(JSON.stringify(this.state.columnsForAdmin));this.parseObjectForAdmins(s,o),JSON.stringify(this.state.columnsForAdmin)!==JSON.stringify(s)&&(a={columnsForAdmin:s})}return this.objects=this.objects||{},o?this.objects[n]=o:this.objects[n]&&delete this.objects[n],this.updateAliases(n),{newInnerState:a,filtered:!1}}subscribe(n){this.subscribes.includes(n)||(this.subscribes.push(n),console.log(`+ subscribe ${n}`),this.pausedSubscribes||this.props.socket.subscribeState(n,this.onStateChange).catch(o=>console.error(`Cannot subscribe on state ${n}: ${o}`)))}unsubscribe(n){const o=this.subscribes.indexOf(n);o!==-1&&(this.subscribes.splice(o,1),this.states[n]&&delete this.states[n],console.log(`- unsubscribe ${n}`),this.props.socket.unsubscribeState(n,this.onStateChange),this.pausedSubscribes&&console.warn("Unsubscribe during pause?"))}pauseSubscribe(n){!this.pausedSubscribes&&n?(this.pausedSubscribes=!0,this.subscribes.forEach(o=>this.props.socket.unsubscribeState(o,this.onStateChange))):this.pausedSubscribes&&!n&&(this.pausedSubscribes=!1,this.subscribes.forEach(o=>this.props.socket.subscribeState(o,this.onStateChange)))}onFilter(n,o){this.filterTimer=null;const r={...this.state.filter};Object.keys(this.filterRefs).forEach(a=>{if(this.filterRefs[a]&&this.filterRefs[a].current){const s=this.filterRefs[a].current;for(let i=0;ithis.props.onFilterChanged&&this.props.onFilterChanged(r)))}clearFilter(){const n={...this.state.filter};Object.keys(this.filterRefs).forEach(o=>{if(this.filterRefs[o]&&this.filterRefs[o].current){const r=this.filterRefs[o].current;for(let a=0;athis.props.onFilterChanged&&this.props.onFilterChanged(n)))}isFilterEmpty(){return!Object.keys(this.state.filter).find(o=>o!=="expertMode"&&this.state.filter[o])}getFilterInput(n){var o,r,a;return p.createElement(to,{sx:this.styles.filterInput,key:`${n}_${this.state.filterKey}`,margin:"dense"},p.createElement(Qn,{ref:this.filterRefs[n],classes:{underline:"no-underline"},id:n,placeholder:this.texts[`filter_${n}`],defaultValue:this.state.filter[n]||"",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},autoComplete:"off"}),(a=(r=(o=this.filterRefs[n])==null?void 0:o.current)==null?void 0:r.firstChild)!=null&&a.value?p.createElement("div",{style:{position:"absolute",right:0}},p.createElement(ue,{size:"small",onClick:()=>{var s;((s=this.filterRefs[n].current)==null?void 0:s.firstChild).value="",this.onFilter(n,"")}},p.createElement(Dt,null))):null)}getFilterSelect(n,o){var a,s,i;const r=!!(o!=null&&o.find(l=>l.icon));return p.createElement("div",{style:{position:"relative"}},p.createElement(_n,{variant:"standard",key:`${n}_${this.state.filterKey}`,ref:this.filterRefs[n],sx:z.headerCellInput,className:"no-underline",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},defaultValue:this.state.filter[n]||"",inputProps:{name:n,id:n},displayEmpty:!0},p.createElement(je,{key:"empty",value:""},p.createElement("span",{style:z.selectNone},this.texts[`filter_${n}`])),o==null?void 0:o.map(l=>{let d,u,c;return typeof l=="object"?(d=l.value,u=l.name,c=l.icon):(d=l,u=l),p.createElement(je,{sx:z.headerCellSelectItem,key:d,value:d},c||(r?p.createElement("div",{className:"itemIcon"}):null),u)})),(i=(s=(a=this.filterRefs[n])==null?void 0:a.current)==null?void 0:s.childNodes[1])!=null&&i.value?p.createElement(ke,{component:"div",sx:z.selectClearButton},p.createElement(ue,{size:"small",onClick:()=>{var d;const l={...this.state.filter};l[n]="",((d=this.filterRefs[n].current)==null?void 0:d.childNodes[1]).value="",this.localStorage.setItem(`${this.props.dialogName||"App"}.objectFilter`,JSON.stringify(l)),this.setState({filter:l,filterKey:this.state.filterKey+1},()=>this.props.onFilterChanged&&this.props.onFilterChanged(l))}},p.createElement(Dt,null))):null)}getFilterSelectRole(){return this.getFilterSelect("role",this.info.roles)}getFilterSelectRoom(){const n=this.info.roomEnums.map(o=>{var r,a,s,i;return{name:To((a=(r=this.objects[o])==null?void 0:r.common)==null?void 0:a.name,this.props.lang)||o.split(".").pop(),value:o,icon:p.createElement(Ss,{src:((i=(s=this.objects[o])==null?void 0:s.common)==null?void 0:i.icon)||"",style:z.selectIcon})}});return this.getFilterSelect("room",n)}getFilterSelectFunction(){const n=this.info.funcEnums.map(o=>{var r,a,s,i;return{name:To((a=(r=this.objects[o])==null?void 0:r.common)==null?void 0:a.name,this.props.lang)||o.split(".").pop(),value:o,icon:p.createElement(Ss,{src:((i=(s=this.objects[o])==null?void 0:s.common)==null?void 0:i.icon)||"",style:z.selectIcon})}});return this.getFilterSelect("func",n)}getFilterSelectType(){const n=this.info.types.map(o=>({name:o,value:o,icon:wE[o]||null}));return this.getFilterSelect("type",n)}getFilterSelectCustoms(){if(this.info.customs.length>1){const n=this.info.customs.map(o=>({name:o==="_"?this.texts.filterCustomsWithout:o,value:o,icon:o==="_"?null:p.createElement(Ss,{src:Bm(this.objects,o,this.props.lang,this.imagePrefix)||"",style:z.selectIcon})}));return this.getFilterSelect("custom",n)}return null}onExpandAll(n,o){var a;const r=n||this.root;o=o||[],(a=r==null?void 0:r.children)==null||a.forEach(s=>{s.data.sumVisibility&&(o.push(s.data.id),this.onExpandAll(s,o))}),r===this.root&&(o.sort(),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(o)),this.setState({expanded:o}))}onCollapseAll(){this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify([])),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,"[]"),this.setState({expanded:[],depth:0,selected:[]},()=>this.onAfterSelect())}expandDepth(n,o,r){var a;n=n||this.root,o>0&&((a=n.children)==null||a.forEach(s=>{s.data.sumVisibility&&(hp(r,s.data.id)||(r.push(s.data.id),r.sort()),o-1>0&&this.expandDepth(s,o-1,r))}))}static collapseDepth(n,o){return o.filter(r=>r.split(".").length<=n)}onExpandVisible(){if(this.state.depth<9){const n=this.state.depth+1,o=[...this.state.expanded];this.root&&this.expandDepth(this.root,n,o),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(o)),this.setState({depth:n,expanded:o})}}onStatesViewVisible(){const n=!this.state.statesView;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectStatesView`,JSON.stringify(n)),this.setState({statesView:n})}onCollapseVisible(){if(this.state.depth>0){const n=this.state.depth-1,o=wr.collapseDepth(n,this.state.expanded);this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(o)),this.setState({depth:n,expanded:o})}}async loadObjects(n){if(n)for(const o in n){if(!Object.prototype.hasOwnProperty.call(n,o)||!n[o])continue;const r=n[o];let a=null,s,i;r&&r.common&&r.common.enums?(a=r.common.enums,delete r.common.enums):a=null,(r.val||r.val===0)&&(s=r.val,delete r.val),r.ack!==void 0&&(i=r.ack,delete r.ack);try{if(await this.props.socket.setObject(o,r),a&&await this._createAllEnums(a,r._id),r.type==="state")if(s!=null)try{await this.props.socket.setState(r._id,s,i!==void 0?i:!0)}catch(l){window.alert(`Cannot set state "${r._id} with ${s}": ${l}`)}else try{const l=await this.props.socket.getState(r._id);if(!l||l.val===null)try{await this.props.socket.setState(r._id,!r.common||r.common.def===void 0?null:r.common.def,!0)}catch(d){window.alert(`Cannot set state "${r._id}": ${d}`)}}catch(l){window.alert(`Cannot read state "${r._id}": ${l}`)}}catch(l){window.alert(l)}}}_getSelectedIdsForExport(){if(this.state.selected.length||this.state.selectedNonObject){const n=[],o=Object.keys(this.objects);o.sort();const r=this.state.selected[0]||this.state.selectedNonObject,a=`${r}.`,s=a.length;for(let i=0;ia)break}return n}return[]}async _exportObjects(n){var s;if(n.isAll){vE("allObjects.json",this.objects,n);return}if(!(this.state.selected.length||this.state.selectedNonObject)){window.alert(this.props.t("ra_Save of objects-tree is not possible"));return}const o={},r=this.state.selected[0]||this.state.selectedNonObject,a=this._getSelectedIdsForExport();for(const i of a){if(o[i]=JSON.parse(JSON.stringify(this.objects[i])),((s=o[i])==null?void 0:s.type)==="state"&&!n.noStatesByExportImport){const l=await this.props.socket.getState(i);l&&(o[i].val=l.val,o[i].ack=l.ack)}if(o[i].common){const l=this.getEnumsForId(i);l&&(o[i].common.enums=l)}}vE(`${r}.json`,o,n)}renderExportDialog(){return this.state.showExportDialog===!1?null:p.createElement(yt,{open:!0,maxWidth:"lg"},p.createElement(bt,null,this.props.t("ra_Select type of export")),p.createElement(jt,null,p.createElement(Ra,null,this.state.filter.expertMode||this.state.showAllExportOptions?p.createElement(p.Fragment,null,this.props.t("ra_You can export all objects or just the selected branch."),p.createElement("br",null),this.props.t("ra_Selected %s object(s)",this.state.showExportDialog),p.createElement("br",null),p.createElement(Oe,{control:p.createElement(Tt,{checked:this.state.noStatesByExportImport,onChange:n=>this.setState({noStatesByExportImport:n.target.checked})}),label:this.props.t("ra_Do not export values of states")}),p.createElement("br",null),this.props.t("These options can reduce the size of the export file:"),p.createElement(Oe,{control:p.createElement(Tt,{checked:this.state.beautifyJsonExport,onChange:n=>this.setState({beautifyJsonExport:n.target.checked})}),label:this.props.t("Beautify JSON output")}),p.createElement("br",null),p.createElement(Oe,{control:p.createElement(Tt,{checked:this.state.excludeSystemRepositoriesFromExport,onChange:n=>this.setState({excludeSystemRepositoriesFromExport:n.target.checked})}),label:this.props.t("Exclude system repositories from export JSON")}),p.createElement(Oe,{control:p.createElement(Tt,{checked:this.state.excludeTranslations,onChange:n=>this.setState({excludeTranslations:n.target.checked})}),label:this.props.t("Exclude translations (except english) from export JSON")})):null)),p.createElement(Nt,null,this.state.filter.expertMode||this.state.showAllExportOptions?p.createElement(he,{color:"grey",variant:"outlined",onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1},()=>this._exportObjects({isAll:!0,noStatesByExportImport:this.state.noStatesByExportImport,beautify:this.state.beautifyJsonExport,excludeSystemRepositories:this.state.excludeSystemRepositoriesFromExport,excludeTranslations:this.state.excludeTranslations}))},p.createElement("span",{style:{marginRight:8}},this.props.t("ra_All objects")),"(",Object.keys(this.objects).length,")"):p.createElement(he,{color:"grey",variant:"outlined",startIcon:p.createElement(Lm,null),onClick:()=>this.setState({showAllExportOptions:!0})},this.props.t("ra_Advanced options")),p.createElement(he,{color:"primary",variant:"contained",autoFocus:!0,onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1},()=>this._exportObjects({isAll:!1,noStatesByExportImport:this.state.noStatesByExportImport,beautify:this.state.beautifyJsonExport,excludeSystemRepositories:this.state.excludeSystemRepositoriesFromExport,excludeTranslations:this.state.excludeTranslations}))},p.createElement("span",{style:{marginRight:8}},this.props.t("ra_Only selected")),"(",this.state.showExportDialog,")"),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1}),startIcon:p.createElement(Dt,null)},this.props.t("ra_Cancel"))))}handleJsonUpload(n){var a;const o=n.target,r=((a=o.files)==null?void 0:a.length)&&o.files[0];if(r){const s=new FileReader;s.onload=async i=>{var d;const l=(d=i.target)==null?void 0:d.result;try{const u=JSON.parse(l),c=Object.keys(u).length,h=u._id;if(h===void 0&&c)await this.loadObjects(u),window.alert(this.props.t("ra_%s object(s) processed",c));else{if(!h)return window.alert(this.props.t("ra_Invalid structure"));try{let f,g,v;if(u.common.enums&&(f=u.common.enums,delete u.common.enums),u.val&&(g=u.val,delete u.val),u.ack!==void 0&&(v=u.ack,delete u.ack),await this.props.socket.setObject(u._id,u),u.type==="state")if(g!=null)await this.props.socket.setState(u._id,g,v===void 0?!0:v);else{const S=await this.props.socket.getState(u._id);(!S||S.val===null||S.val===void 0)&&await this.props.socket.setState(u._id,u.common.def===void 0?null:u.common.def,!0)}f&&await this._createAllEnums(f,u._id),window.alert(this.props.t("ra_%s was imported",u._id))}catch(f){window.alert(f)}}}catch(u){window.alert(u)}return null},s.readAsText(r)}else window.alert(this.props.t("ra_Failed to open JSON File"))}getToolbar(){let n=!1;if(this.state.selected.length||this.state.selectedNonObject){const o=this.state.selected[0]||this.state.selectedNonObject;o.split(".").length<2||this.objects[o]&&this.objects[o].type==="state"?n=!1:(this.state.filter.expertMode||o.startsWith("alias.0")||o.startsWith("0_userdata"))&&(n=!0)}return p.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",overflowX:"auto"}},p.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center"}},p.createElement(bn,{title:this.props.t("ra_Refresh tree"),slotProps:{popper:{sx:z.tooltip}}},p.createElement("div",null,p.createElement(ue,{onClick:()=>this.refreshComponent(),disabled:this.state.updating,size:"large"},p.createElement(s3,null)))),this.props.showExpertButton&&!this.props.expertMode&&p.createElement(bn,{title:this.props.t("ra_expertMode"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"expertMode",color:this.state.filter.expertMode?"secondary":"default",onClick:()=>this.onFilter("expertMode",!this.state.filter.expertMode),size:"large"},p.createElement(Lm,null))),!this.props.disableColumnSelector&&this.props.width!=="xs"&&p.createElement(bn,{title:this.props.t("ra_Configure"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"columnSelector",color:this.state.columnsAuto?"primary":"default",onClick:()=>this.setState({columnsSelectorShow:!0}),size:"large"},p.createElement(FX,null))),this.props.width!=="xs"&&this.state.expandAllVisible&&p.createElement(bn,{title:this.props.t("ra_Expand all nodes"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"expandAll",onClick:()=>this.onExpandAll(),size:"large"},p.createElement(Ef,null))),p.createElement(bn,{title:this.props.t("ra_Collapse all nodes"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"collapseAll",onClick:()=>this.onCollapseAll(),size:"large"},p.createElement(yc,null))),this.props.width!=="xs"&&p.createElement(bn,{title:this.props.t("ra_Expand one step node"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"expandVisible",color:"primary",onClick:()=>this.onExpandVisible(),size:"large"},p.createElement(sp,{badgeContent:this.state.depth,color:"secondary",sx:o=>({badge:{right:3,top:3,border:`2px solid ${o.palette.background.paper}`,padding:"0 4px"}})},p.createElement(Ef,null)))),this.props.width!=="xs"&&p.createElement(bn,{title:this.props.t("ra_Collapse one step node"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"collapseVisible",color:"primary",onClick:()=>this.onCollapseVisible(),size:"large"},p.createElement(sp,{sx:o=>({badge:{right:3,top:3,border:`2px solid ${o.palette.background.paper}`,padding:"0 4px"}}),badgeContent:this.state.depth,color:"secondary"},p.createElement(yc,null)))),this.props.objectStatesView&&p.createElement(bn,{title:this.props.t("ra_Toggle the states view"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>this.onStatesViewVisible(),size:"large"},p.createElement(CX,{color:this.state.statesView?"primary":"inherit"}))),p.createElement(bn,{title:this.props.t("ra_Show/Hide object descriptions"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.desc`,this.state.showDescription?"false":"true"),this.setState({showDescription:!this.state.showDescription})},size:"large"},p.createElement(MX,{color:this.state.showDescription?"primary":"inherit"}))),this.props.objectAddBoolean?p.createElement(bn,{title:this.toolTipObjectCreating(),slotProps:{popper:{sx:z.tooltip}}},p.createElement("div",null,p.createElement(ue,{disabled:!n,onClick:()=>this.setState({modalNewObj:{id:this.state.selected[0]||this.state.selectedNonObject}}),size:"large"},p.createElement(c$,null)))):null,this.props.objectImportExport&&p.createElement(bn,{title:this.props.t("ra_Add objects tree from JSON file"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>{const o=document.createElement("input");o.setAttribute("type","file"),o.setAttribute("id","files"),o.setAttribute("opacity","0"),o.addEventListener("change",r=>this.handleJsonUpload(r),!1),o.click()},size:"large"},p.createElement(Cm,null))),this.props.objectImportExport&&(!!this.state.selected.length||this.state.selectedNonObject)&&p.createElement(bn,{title:this.props.t("ra_Save objects tree as JSON file"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>this.setState({showExportDialog:this._getSelectedIdsForExport().length}),size:"large"},p.createElement(Cm,{style:{transform:"rotate(180deg)"}})))),!!this.props.objectBrowserEditObject&&this.props.width!=="xs"&&p.createElement("div",{style:{display:"flex",whiteSpace:"nowrap"}},`${this.props.t("ra_Objects")}: ${Object.keys(this.info.objects).length}, ${this.props.t("ra_States")}: ${Object.keys(this.info.objects).filter(o=>this.info.objects[o].type==="state").length}`),this.props.objectEditBoolean&&p.createElement(bn,{title:this.props.t("ra_Edit custom config"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>{var r;const o=this.root?JA(this.root,"state",this.objects):[];o.length?(this.pauseSubscribe(!0),o.length===1&&(this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,this.state.selected[0]),(r=this.props.router)==null||r.doNavigate(null,"custom",this.state.selected[0])),this.setState({customDialog:o,customDialogAll:!0})):this.setState({toast:this.props.t("ra_please select object")})},size:"large"},p.createElement(nX,null))))}toggleExpanded(n){const o=JSON.parse(JSON.stringify(this.state.expanded)),r=o.indexOf(n);r===-1?(o.push(n),o.sort()):o.splice(r,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(o)),this.setState({expanded:o})}onCopy(n,o){n.stopPropagation(),n.preventDefault(),o&&(V.copyToClipboard(o),o.length<50?this.setState({toast:this.props.t("ra_Copied %s",o)}):this.setState({toast:this.props.t("ra_Copied")}))}renderColumnButtons(n,o){var i,l,d;if(!o.data.obj)return this.props.onObjectDelete||this.props.objectEditOfAccessControl?p.createElement("div",{style:z.buttonDiv},this.state.filter.expertMode&&this.props.objectEditOfAccessControl?p.createElement(ue,{sx:{...z.cellButtonsButton,...z.cellButtonsEmptyButton,...z.cellButtonMinWidth},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:o.data}),size:"large"},p.createElement("div",{style:{height:15}},"---")):null,this.props.onObjectDelete&&o.children&&o.children.length?p.createElement(ue,{sx:{...z.cellButtonsButton,...z.cellButtonsButtonAlone},size:"small","aria-label":"delete",title:this.texts.deleteObject,onClick:()=>{var f;const u=Object.keys(this.objects);u.sort();let c=0;const h=`${n}.`;for(let g=0;gh)break;this.props.onObjectDelete&&this.props.onObjectDelete(n,!!((f=o.children)!=null&&f.length),!1,c+1)}},p.createElement(Ns,{style:z.cellButtonsButtonIcon})):null):null;o.data.aclTooltip=o.data.aclTooltip||this.renderTooltipAccessControl(o.data.obj.acl);const r=o.data.obj.acl?o.data.obj.type==="state"?o.data.obj.acl.state:o.data.obj.acl.object:0,a=o.data.obj.acl&&(o.data.obj.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object),s=this.state.filter.expertMode||wr.isNonExpertId(o.data.id);return[this.state.filter.expertMode&&this.props.objectEditOfAccessControl?p.createElement(bn,{key:"acl",title:o.data.aclTooltip,slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{sx:{...z.cellButtonsButton,...z.cellButtonMinWidth,opacity:1},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:o.data}),size:"large"},p.createElement("div",{style:z.aclText},Number.isNaN(Number(r))?Number(a).toString(16):Number(r).toString(16)))):p.createElement("div",{key:"aclEmpty",style:z.cellButtonMinWidth}),s?p.createElement(ue,{key:"edit",sx:{marginRight:"2px",...z.cellButtonsButton},size:"small","aria-label":"edit",title:this.texts.editObject,onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,n),this.setState({editObjectDialog:n,editObjectAlias:!1})}},p.createElement(Au,{style:z.cellButtonsButtonIcon})):p.createElement(ke,{component:"div",key:"editDisabled",sx:z.cellButtonsButton}),this.props.onObjectDelete&&((i=o.children)!=null&&i.length||!((l=o.data.obj.common)!=null&&l.dontDelete))?p.createElement(ue,{key:"delete",sx:z.cellButtonsButton,size:"small","aria-label":"delete",onClick:()=>{var f,g,v;const u=Object.keys(this.objects);u.sort();let c=0;const h=`${n}.`;for(let S=0;Sh)break;this.props.onObjectDelete&&this.props.onObjectDelete(n,!!((f=o.children)!=null&&f.length),!((v=(g=o.data.obj)==null?void 0:g.common)!=null&&v.dontDelete),c)},title:this.texts.deleteObject},p.createElement(Ns,{style:z.cellButtonsButtonIcon})):null,this.props.objectCustomDialog&&this.info.hasSomeCustoms&&o.data.obj.type==="state"&&((d=o.data.obj.common)==null?void 0:d.type)!=="file"?p.createElement(ue,{sx:{...z.cellButtonsButton,...o.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:z.cellButtonsButtonWithoutCustoms},key:"custom",size:"small","aria-label":"config",title:this.texts.customConfig,onClick:()=>{var u;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,n),this.pauseSubscribe(!0),(u=this.props.router)==null||u.doNavigate(null,"customs",n),this.setState({customDialog:[n],customDialogAll:!1})}},p.createElement(Wb,{style:z.cellButtonsButtonIcon})):null]}readHistory(n){var o,r;if(window.sparkline&&this.defaultHistory&&((r=(o=this.objects[n])==null?void 0:o.common)!=null&&r.custom)&&this.objects[n].common.custom[this.defaultHistory]){const a=new Date;a.setHours(a.getHours()-24),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0);const s=a.getTime();this.props.socket.getHistory(n,{instance:this.defaultHistory,start:s,end:Date.now(),step:36e5,from:!1,ack:!1,q:!1,addID:!1,aggregate:"minmax"}).then(i=>{const l=window.document.getElementsByClassName("sparkline");for(let d=0;dconsole.warn(`Cannot read history: ${i}`))}}getTooltipInfo(n,o){var d,u;const r=this.objects[n],a=this.states[n],{valFull:s,fileViewer:i}=Qv({state:a,obj:r,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,full:!0}),l=[];s==null||s.forEach(c=>{c.t===this.texts.quality&&a.q?(l.push(p.createElement("div",{style:z.cellValueTooltipBoth,key:c.t},c.t,": ",c.v)),c.nbr||l.push(p.createElement("br",{key:`${c.t}_br`}))):(l.push(p.createElement("div",{style:z.cellValueTooltipTitle,key:c.t},c.t,": ")),l.push(p.createElement("div",{style:z.cellValueTooltipValue,key:`${c.t}_v`},c.v)),c.nbr||l.push(p.createElement("br",{key:`${c.t}_br`})))}),i==="image"?l.push(p.createElement("img",{style:z.cellValueTooltipImage,src:a.val,alt:n})):this.defaultHistory&&((u=(d=this.objects[n])==null?void 0:d.common)!=null&&u.custom)&&this.objects[n].common.custom[this.defaultHistory]&&l.push(p.createElement("svg",{key:"sparkline",className:"sparkline","data-id":n,style:{fill:"#3d85de"},width:"200",height:"30",strokeWidth:"3"})),this.setState({tooltipInfo:{el:l,id:n}},()=>o&&o())}renderColumnValue(n,o,r){var d,u;const a=o.data.obj;if(!a||!this.states)return null;if(((d=a.common)==null?void 0:d.type)==="file")return p.createElement(ke,{component:"div",sx:{...z.cellValueText,...z.cellValueFile}},"[file]");if(!this.states[n])return a.type==="state"&&(this.recordStates.includes(n)||this.recordStates.push(n),this.states[n]={val:null},this.subscribe(n)),null;this.recordStates.includes(n)||this.recordStates.push(n);const s=this.states[n];let i=o.data.state;if(!i){const{valText:c}=Qv({state:s,obj:a,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma}),h=[];o.data.state={valTextRx:h};const f=c.v||"";h.push(p.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${c.v.toString()}valText`,style:{whiteSpace:"nowrap",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}},c.v.toString())),c.u&&h.push(p.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,style:z.cellValueTextUnit,key:`${c.v.toString()}unit`},c.u)),c.s!==void 0&&h.push(p.createElement("span",{style:z.cellValueTextState,className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${c.v.toString()}states`},"(",c.s,")")),r||h.push(p.createElement(ps,{className:"copyButton",style:this.styles.iconCopy,onClick:g=>this.onCopy(g,f),key:"cc"})),i=o.data.state}i.style=_it({state:s,isExpertMode:this.state.filter.expertMode,isButton:o.data.button});let l=i.valTextRx;return this.state.filter.expertMode||(o.data.button?l=[p.createElement(hit,{key:"button",style:{color:i.style.color,...z.cellValueButton}})]:o.data.switch&&(l=[p.createElement(tu,{key:"switch",sx:{"& .MuiSwitch-thumb":{color:i.style.color},"& .MuiSwitch-track":{backgroundColor:this.states[n].val&&this.state.selected.includes(n)?this.props.themeType==="dark"?"#FFF !important":"#111 !important":void 0}},checked:!!this.states[n].val})])),p.createElement(bn,{key:"value",title:(u=this.state.tooltipInfo)==null?void 0:u.el,slotProps:{popper:{sx:z.cellValueTooltipBox},tooltip:{sx:z.cellValueTooltip}},onOpen:()=>this.getTooltipInfo(n,()=>this.readHistory(n)),onClose:()=>{var c;return((c=this.state.tooltipInfo)==null?void 0:c.id)===n&&this.setState({tooltipInfo:null})}},p.createElement(ke,{component:"div",style:i.style,sx:{...z.cellValueText,height:r?void 0:Kn,"& .admin-button:active":{transform:"translate(0, 2px)"}}},l))}_syncEnum(n,o,r,a){var l,d,u;if(!o||!o.length){a&&a();return}const s=o.pop()||"",i=[];if((l=this.info.objects[s])!=null&&l.common){if((d=this.info.objects[s].common.members)!=null&&d.length){const c=this.info.objects[s].common.members.indexOf(n);if(c!==-1&&!r.includes(s)){const h=JSON.parse(JSON.stringify(this.info.objects[s]));h.common.members.splice(c,1),i.push(this.props.socket.setObject(s,h).then(()=>this.info.objects[s]=h).catch(f=>this.showError(f)))}}if(r.includes(s)&&!((u=this.info.objects[s].common.members)!=null&&u.includes(n))){const c=JSON.parse(JSON.stringify(this.info.objects[s]));c.common.members=c.common.members||[],c.common.members.push(n),c.common.members.sort(),i.push(this.props.socket.setObject(s,c).then(()=>this.info.objects[s]=c).catch(h=>this.showError(h)))}}Promise.all(i).then(()=>{setTimeout(()=>this._syncEnum(n,o,r,a),0)})}syncEnum(n,o,r){const a=[...this.info[o==="func"?"funcEnums":"roomEnums"]];return new Promise(s=>{this._syncEnum(n,a,r,()=>{s()})})}renderEnumDialog(){if(!this.state.enumDialog)return null;const n=this.state.enumDialog.type,o=this.state.enumDialog.item,r=this.state.enumDialogEnums,a=this.state.enumDialog.enumsOriginal,s=(n==="room"?this.info.roomEnums:this.info.funcEnums).map(i=>{var l,d;return{name:To(((d=(l=this.objects[i])==null?void 0:l.common)==null?void 0:d.name)||i.split(".").pop()||"",this.props.lang),value:i,icon:Bm(this.objects,i,this.props.lang,this.imagePrefix)}}).sort((i,l)=>i.name>l.name?1:-1);return s.forEach(i=>{i.icon&&typeof i.icon=="string"&&(i.icon=p.createElement(ke,{style:z.enumIconDiv},p.createElement("img",{src:i.icon,style:z.enumIcon,alt:i.name})))}),p.createElement(yt,{sx:{"& .MuiPaper-root":z.enumDialog},onClose:()=>this.setState({enumDialog:null}),"aria-labelledby":"enum-dialog-title",open:!0},p.createElement(bt,{id:"enum-dialog-title"},n==="func"?this.props.t("ra_Define functions"):this.props.t("ra_Define rooms"),p.createElement(Mt,{sx:z.enumButton,color:"primary",disabled:a===JSON.stringify(r),size:"small",onClick:()=>this.syncEnum(o.data.id,n,r).then(()=>this.setState({enumDialog:null,enumDialogEnums:null}))},p.createElement(qn,null))),p.createElement($b,{sx:{"&.MuiList-root":z.enumList}},s.map(i=>{let l,d,u;typeof i=="object"?(l=i.value,d=i.name,u=i.icon):(l=i,d=i);const c=`checkbox-list-label-${l}`;return p.createElement(rB,{sx:z.headerCellSelectItem,key:l,onClick:()=>{const h=r.indexOf(l),f=JSON.parse(JSON.stringify(this.state.enumDialogEnums));h===-1?(f.push(l),f.sort()):f.splice(h,1),this.setState({enumDialogEnums:f})},secondaryAction:u},p.createElement(Tl,{sx:{"&.MuiListItemIcon-root":z.enumCheckbox}},p.createElement(Tt,{edge:"start",checked:r.includes(l),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":c}})),p.createElement(as,{id:c},d))})))}renderEditRoleDialog(){if(!this.state.roleDialog||!this.props.objectBrowserEditRole)return null;if(this.state.roleDialog&&this.props.objectBrowserEditRole){const n=this.props.objectBrowserEditRole;return p.createElement(n,{key:"objectBrowserEditRole",id:this.state.roleDialog,socket:this.props.socket,t:this.props.t,roles:this.info.roles,onClose:o=>{o&&(this.info.objects[this.state.roleDialog]=o),this.setState({roleDialog:null})}})}return null}onColumnsEditCustomDialogClose(n){var r,a;const o=this.customColumnDialog;if(n){let s=o.value;o.type==="boolean"?s=s==="true"||s===!0:o.type==="number"&&(s=parseFloat(s)),this.customColumnDialog=null,this.props.socket.getObject(((a=(r=this.state.columnsEditCustomDialog)==null?void 0:r.obj)==null?void 0:a._id)||"").then(i=>{var l;if(i&&wr.setCustomValue(i,(l=this.state.columnsEditCustomDialog)==null?void 0:l.it,s))return this.props.socket.setObject(i._id,i);throw new Error(this.props.t("ra_Cannot update attribute, because not found in the object"))}).then(()=>this.setState({columnsEditCustomDialog:null})).catch(i=>this.showError(i))}else this.customColumnDialog=null,this.setState({columnsEditCustomDialog:null})}renderColumnsEditCustomDialog(){if(!this.state.columnsEditCustomDialog)return null;if(!this.customColumnDialog){const n=wr.getCustomValue(this.state.columnsEditCustomDialog.obj,this.state.columnsEditCustomDialog.it);this.customColumnDialog={type:this.state.columnsEditCustomDialog.it.type||typeof n,initValue:(n??"").toString(),value:(n??"").toString()}}return p.createElement(yt,{onClose:()=>this.setState({columnsEditCustomDialog:null}),maxWidth:"md","aria-labelledby":"custom-dialog-title",open:!0},p.createElement(bt,{id:"custom-dialog-title"},`${this.props.t("ra_Edit object field")}: ${this.state.columnsEditCustomDialog.obj._id}`),p.createElement(jt,null,p.createElement(Ra,{id:"alert-dialog-description"},this.customColumnDialog.type==="boolean"?p.createElement(Oe,{control:p.createElement(Tt,{onKeyUp:n=>n.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),defaultChecked:this.customColumnDialog.value==="true",onChange:n=>{const o=this.customColumnDialog;o.value=n.target.checked.toString();const r=o.value!==o.initValue;r===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:r})}}),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`}):p.createElement(st,{variant:"standard",defaultValue:this.customColumnDialog.value,fullWidth:!0,onKeyUp:n=>n.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`,onChange:n=>{const o=this.customColumnDialog;o.value=n.target.value;const r=o.value!==o.initValue;r===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:r})},autoFocus:!0}))),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(!0),disabled:!this.state.customColumnDialogValueChanged,color:"primary",startIcon:p.createElement(qn,null)},this.props.t("ra_Update")),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(),startIcon:p.createElement(Dt,null)},this.props.t("ra_Cancel"))))}static getCustomValue(n,o){var r;if((r=n==null?void 0:n._id)!=null&&r.startsWith(`${o.adapter}.`)&&o.path.length>1){const a=o.path;let s;const i=n;if(i[a[0]]&&typeof i[a[0]]=="object")return a.length===2?s=i[a[0]][a[1]]:a.length===3?s=i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"?i[a[0]][a[1]][a[2]]:null:a.length===4?s=i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"&&i[a[0]][a[1]][a[2]]?i[a[0]][a[1]][a[2]][a[3]]:null:a.length===5?s=i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"&&i[a[0]][a[1]][a[2]]&&i[a[0]][a[1]][a[2]][a[3]]?i[a[0]][a[1]][a[2]][a[3]][a[4]]:null:a.length===6&&(s=i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"&&i[a[0]][a[1]][a[2]]&&i[a[0]][a[1]][a[2]][a[3]]&&i[a[0]][a[1]][a[2]][a[3]][a[4]]?i[a[0]][a[1]][a[2]][a[3]][a[4]][a[5]]:null),s??null}return null}static setCustomValue(n,o,r){var a;if((a=n==null?void 0:n._id)!=null&&a.startsWith(`${o.adapter}.`)&&o.path.length>1){const s=o.path,i=n;if(i[s[0]]&&typeof i[s[0]]=="object"){if(s.length===2)return i[s[0]][s[1]]=r,!0;if(s.length===3){if(i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object")return i[s[0]][s[1]][s[2]]=r,!0}else if(s.length===4){if(i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"&&i[s[0]][s[1]][s[2]]&&typeof i[s[0]][s[1]][s[2]]=="object")return i[s[0]][s[1]][s[2]][s[3]]=r,!0}else if(s.length===5){if(i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"&&i[s[0]][s[1]][s[2]]&&typeof i[s[0]][s[1]][s[2]]=="object"&&i[s[0]][s[1]][s[2]][s[3]]&&typeof i[s[0]][s[1]][s[2]][s[3]]=="object")return i[s[0]][s[1]][s[2]][s[3]][s[4]]=r,!0}else if(s.length===6&&i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"&&i[s[0]][s[1]][s[2]]&&typeof i[s[0]][s[1]][s[2]]=="object"&&i[s[0]][s[1]][s[2]][s[3]]&&typeof i[s[0]][s[1]][s[2]][s[3]]=="object"&&i[s[0]][s[1]][s[2]][s[3]][s[4]]&&typeof i[s[0]][s[1]][s[2]][s[3]][s[4]]=="object")return i[s[0]][s[1]][s[2]][s[3]][s[4]][s[5]]=r,!0}}return!1}renderCustomValue(n,o,r){const a=wr.getCustomValue(n,o);return a!=null?o.edit&&!this.props.notEditable&&(!o.objTypes||o.objTypes.includes(n.type))?p.createElement(ke,{component:"div",style:{...z.columnCustom,...z.columnCustomEditable,...z[`columnCustom_${o.align}`]},onClick:()=>this.setState({columnsEditCustomDialog:{item:r,it:o,obj:n},customColumnDialogValueChanged:!1})},a):p.createElement(ke,{component:"div",style:{...z.columnCustom,...z[`columnCustom_${o.align}`]}},a):null}renderAliasLink(n,o,r){const a=o||0,s=this.objects[this.info.aliasesMap[n][a]].common.alias.id;return s?p.createElement(ke,{component:"div",onClick:i=>{i.stopPropagation(),i.preventDefault();const l=this.info.aliasesMap[n][a];this.info.aliasesMap[n].length>1&&this.setState({aliasMenu:""}),this.onSelect(l),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(l)),100)},sx:r||this.styles.aliasAlone},p.createElement("span",{className:"admin-browser-arrow"},typeof s=="string"||s.read===n&&s.write===n?"↔":s.read===n?"→":"←"),this.info.aliasesMap[n][a]):null}renderLeaf(n,o,r){var ve,fe,le,Se,De,et,Ge,qe,xe,Ee,me,ot,Ce,ze;const a=n.data.id;r.count++,o=o===void 0?this.state.expanded.includes(a):o;let s;const i=n.data.obj,l=i==null?void 0:i.type;n.children||l==="folder"||l==="device"||l==="channel"||l==="meta"?s=o?p.createElement(Ef,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(a)}):p.createElement(yc,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(a)}):i&&i.common&&i.common.write===!1&&i.type==="state"?s=p.createElement(sit,{style:this.styles.cellIdIconDocument}):s=p.createElement(ait,{style:this.styles.cellIdIconDocument});let d=null;n.data.icon&&(typeof n.data.icon=="string"?n.data.icon.length<3?d=p.createElement("span",{className:"iconOwn",style:z.cellIdIconOwn},n.data.icon):d=p.createElement(Ss,{style:z.cellIdIconOwn,className:"iconOwn",src:n.data.icon,alt:""}):d=n.data.icon);const u=i==null?void 0:i.common,c=(i==null?void 0:i.type)&&wE[i.type]||p.createElement("div",{className:"itemIcon"}),h=this.levelPadding*(n.data.level||0);if(n.data.lang!==this.props.lang){const{rooms:X,per:ee}=ZA(this.info,a,this.props.lang);n.data.rooms=X.join(", "),n.data.per=ee;const{funcs:$e,pef:Ae}=QA(this.info,a,this.props.lang);n.data.funcs=$e.join(", "),n.data.pef=Ae,n.data.lang=this.props.lang}const f=this.props.multiSelect&&this.objects[a]&&(!this.props.types||this.props.types.includes(this.objects[a].type))?p.createElement(Tt,{style:z.checkBox,checked:this.state.selected.includes(a)}):null;let g=!this.props.notEditable&&l==="state"&&(this.state.filter.expertMode||(u==null?void 0:u.write)!==!1);this.props.objectBrowserViewFile&&(u==null?void 0:u.type)==="file"&&(g=!0);const v=!this.props.notEditable&&this.objects[a]&&(this.state.filter.expertMode||l==="state"||l==="channel"||l==="device"),S=this.state.statesView&&(l==="state"||l==="channel"||l==="device");let _="";const b=[];if(S&&(_=(ve=this.states[a])==null?void 0:ve.from,_===void 0?_=" ":(_=_?_.replace(/^system\.adapter\.|^system\./,""):"",b.push(`${this.texts.stateChangedFrom} ${_}`)),i!=null&&i.user)){const X=i.user.replace("system.user.","");_+=`/${X}`,b.push(`${this.texts.stateChangedBy} ${X}`)}i&&(i.from&&b.push(`${this.texts.objectChangedFrom} ${i.from.replace(/^system\.adapter\.|^system\./,"")}`),i.user&&b.push(`${this.texts.objectChangedBy} ${i.user.replace(/^system\.user\./,"")}`),i.ts&&b.push(`${this.texts.objectChangedByUser} ${V.formatDate(new Date(i.ts),this.props.dateFormat||this.systemConfig.common.dateFormat)}`));let y=!1,w=null;a.startsWith("alias.")&&((fe=u==null?void 0:u.alias)!=null&&fe.id)?(y=typeof u.alias.id=="object",y?w=p.createElement("div",{style:z.cellIdAliasReadWriteDiv},u.alias.id.read?p.createElement(ke,{component:"div",onClick:X=>{X.stopPropagation(),X.preventDefault(),this.onSelect(u.alias.id.read),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(u.alias.id.read)),100)},sx:this.styles.aliasReadWrite},"←",u.alias.id.read):null,u.alias.id.write?p.createElement(ke,{component:"div",onClick:X=>{X.stopPropagation(),X.preventDefault(),this.onSelect(u.alias.id.write),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(u.alias.id.write)),100)},sx:this.styles.aliasReadWrite},"→",u.alias.id.write):null):w=p.createElement(ke,{component:"div",onClick:X=>{X.stopPropagation(),X.preventDefault(),this.onSelect(u.alias.id),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(u.alias.id)),100)},sx:this.styles.aliasAlone},"→",u.alias.id)):this.info.aliasesMap[a]&&(this.info.aliasesMap[a].length>1?w=p.createElement(ke,{component:"div",id:`alias_${a}`,onClick:X=>{X.stopPropagation(),X.preventDefault(),this.setState({aliasMenu:a})},sx:this.styles.aliasAlone},this.props.t("ra_%s links from aliases",this.info.aliasesMap[a].length)):w=this.renderAliasLink(a,0));let $=u==null?void 0:u.color,k;if($&&!this.state.selected.includes(a)){const X=this.props.themeName==="dark"?"#1f1f1f":this.props.themeName==="blue"?"#222a2e":"#FFFFFF";V.colorDistance($,X)<1e3&&(k=this.props.themeType==="dark"?"#9a9a9a":"#565656")}let T=!1;a==="0_userdata"?($=UA(this.props.themeType),T=!0):a==="alias"?($=WA(this.props.themeType),T=!0):a==="javascript"?($=pit(this.props.themeType),T=!0):a==="system"?($=VA(this.props.themeType),T=!0):a==="system.adapter"?$=GA(this.props.themeType):(!$||this.state.selected.includes(a))&&($="inherit");const O=[];if(u!=null&&u.statusStates){const X={};Object.keys(u.statusStates).forEach($e=>{var Xe;let Ae=u.statusStates[$e];Ae.split(".").length<3&&(Ae=`${a}.${Ae}`),X[$e]=Ae,this.states[Ae]?this.recordStates.includes(Ae)||this.recordStates.push(Ae):((Xe=this.objects[Ae])==null?void 0:Xe.type)==="state"&&(this.recordStates.includes(Ae)||this.recordStates.push(Ae),this.states[Ae]={val:null},this.subscribe(Ae))});let ee=!1;u.statusStates.errorId&&this.states[X.errorId]&&this.states[X.errorId].val&&($=this.props.themeType==="dark"?qA:XA,ee=!0,O.push(p.createElement(cX,{key:"error",style:this.styles.iconDeviceError}))),X.onlineId&&this.states[X.onlineId]?ee?this.states[X.onlineId].val?O.push(p.createElement(ou,{key:"conn",style:this.styles.iconDeviceConnected})):O.push(p.createElement(Rh,{key:"disc",style:this.styles.iconDeviceDisconnected})):this.states[X.onlineId].val?($=this.props.themeType==="dark"?l0:c0,O.push(p.createElement(ou,{key:"conn",style:this.styles.iconDeviceConnected}))):($=this.props.themeType==="dark"?d0:u0,O.push(p.createElement(Rh,{key:"disc",style:this.styles.iconDeviceDisconnected}))):X.offlineId&&this.states[X.offlineId]&&(ee?this.states[X.offlineId].val?O.push(p.createElement(Rh,{key:"disc",style:this.styles.iconDeviceDisconnected})):O.push(p.createElement(ou,{key:"conn",style:this.styles.iconDeviceConnected})):this.states[X.offlineId].val?($=this.props.themeType==="dark"?d0:u0,O.push(p.createElement(Rh,{key:"disc",style:this.styles.iconDeviceDisconnected}))):($=this.props.themeType==="dark"?l0:c0,O.push(p.createElement(ou,{key:"conn",style:this.styles.iconDeviceConnected}))))}const D=S?V.quality2text(((le=this.states[a])==null?void 0:le.q)||0).join(", "):null;let x=((Se=n.data)==null?void 0:Se.title)||"",A=!1;if(this.state.showDescription){const X=YA(n.data,this.props.lang);X&&(x=[p.createElement("div",{key:"name",style:z.cellNameDivDiv},x),p.createElement("div",{key:"desc",style:z.cellDescription},X)],A=!!X)}const R=this.props.width==="xs"&&this.state.focused===a,I=p.createElement(_s,{container:!0,wrap:"nowrap",direction:"row",sx:z.cellId,style:{width:this.columnsVisibility.id,paddingLeft:h}},p.createElement(_s,{container:!0,alignItems:"center"},f,s),p.createElement(_s,{style:{...z.cellIdSpan,...k?this.styles.invertedBackground:void 0,color:$,fontWeight:T?"bold":void 0}},p.createElement(bn,{title:git(n.data,this.props.lang),slotProps:{popper:{sx:z.tooltip}}},p.createElement("div",null,n.data.name)),w,O),p.createElement("div",{style:{...z.grow,...k?this.styles.invertedBackgroundFlex:{}}}),p.createElement(_s,{container:!0,alignItems:"center"},d),this.props.width!=="xs"?p.createElement("div",null,p.createElement(ps,{className:R?"":"copyButton",style:z.cellCopyButton,onClick:X=>this.onCopy(X,a)})):null);let j=R&&x||this.columnsVisibility.name?p.createElement(ke,{component:"div",sx:{...z.cellName,...A?z.cellNameWithDesc:void 0,width:this.props.width!=="xs"?this.columnsVisibility.name:void 0,ml:R?0:"5px"}},x,!R&&((De=n.data)!=null&&De.title)?p.createElement(ke,{style:{color:$}},p.createElement(ps,{className:"copyButton",style:z.cellCopyButton,onClick:X=>{var ee;return this.onCopy(X,(ee=n.data)==null?void 0:ee.title)}})):null):null,N;this.state.statesView?N=[R&&S&&((et=this.states[a])!=null&&et.from)||this.columnsVisibility.changedFrom?{el:p.createElement("div",{key:"from",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.changedFrom:void 0},title:b.join(` -`)},S&&((Ge=this.states[a])!=null&&Ge.from)?_:null),type:"from"}:null,R&&D||this.columnsVisibility.qualityCode?{el:p.createElement("div",{key:"q",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.qualityCode:void 0},title:D||""},D),type:"quality"}:null,R&&S&&((qe=this.states[a])!=null&&qe.ts)||this.columnsVisibility.timestamp?{el:p.createElement("div",{key:"ts",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.timestamp:void 0}},S&&((xe=this.states[a])!=null&&xe.ts)?V.formatDate(new Date(this.states[a].ts),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"ts"}:null,R&&S&&((Ee=this.states[a])!=null&&Ee.lc)||this.columnsVisibility.lastChange?{el:p.createElement("div",{key:"lc",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.lastChange:void 0}},S&&((me=this.states[a])!=null&&me.lc)?V.formatDate(new Date(this.states[a].lc),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"lc"}:null]:N=[R&&(i!=null&&i.type)||this.columnsVisibility.type?{el:p.createElement("div",{key:"type",style:{...z.cellType,width:this.props.width!=="xs"?this.columnsVisibility.type:void 0}},c," ",i==null?void 0:i.type),type:"filter_type"}:null,R&&u||this.columnsVisibility.role?{el:p.createElement("div",{key:"role",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.role:"100%",cursor:this.state.filter.expertMode&&v&&this.props.objectBrowserEditRole?"text":"default"},onClick:!R&&this.state.filter.expertMode&&v&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:n.data.id}):void 0},u==null?void 0:u.role),type:"filter_role",onClick:R&&this.state.filter.expertMode&&v&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:n.data.id}):void 0}:null,R&&u||this.columnsVisibility.room?{el:p.createElement("div",{key:"room",style:{...z.cellRoom,...n.data.per?z.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.room:"100%",cursor:v?"text":"default"},onClick:!R&&v?()=>{const X=yl(this.info,n.data.id,"roomEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"room",enumsOriginal:JSON.stringify(X)}})}:void 0},n.data.rooms),type:"filter_room",onClick:R&&v?()=>{const X=yl(this.info,n.data.id,"roomEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"room",enumsOriginal:JSON.stringify(X)}})}:void 0}:null,R&&u||this.columnsVisibility.func?{el:p.createElement("div",{key:"func",style:{...z.cellFunc,...n.data.pef?z.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.func:"100%",cursor:v?"text":"default"},onClick:!R&&v?()=>{const X=yl(this.info,n.data.id,"funcEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"func",enumsOriginal:JSON.stringify(X)}})}:void 0},n.data.funcs),type:"filter_func",onClick:R&&v?()=>{const X=yl(this.info,n.data.id,"funcEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"func",enumsOriginal:JSON.stringify(X)}})}:void 0}:null];let M=((ot=this.adapterColumns)==null?void 0:ot.map(X=>p.createElement("div",{style:{...z.cellAdapter,width:this.props.width!=="xs"?this.columnsVisibility[X.id]:void 0},key:X.id,title:`${X.adapter} => ${X.pathText}`},i?this.renderCustomValue(i,X,n):null)))||null;const P=R||this.columnsVisibility.val?this.renderColumnValue(a,n,R):null;let H=R&&P||this.columnsVisibility.val?p.createElement("div",{style:{...z.cellValue,width:this.props.width!=="xs"?this.columnsVisibility.val:"calc(100% - 100px)",cursor:g?(u==null?void 0:u.type)==="file"?"zoom-in":n.data.button?"grab":"text":"default"},onClick:g?()=>{!i||!this.states||((u==null?void 0:u.type)==="file"?this.setState({viewFileDialog:a}):!this.state.filter.expertMode&&n.data.button?this.props.socket.setState(a,!0).catch(X=>window.alert(`Cannot write state "${a}": ${X}`)):!this.state.filter.expertMode&&n.data.switch?this.props.socket.setState(a,!this.states[a].val).catch(X=>window.alert(`Cannot write state "${a}": ${X}`)):(this.edit={val:this.states[a]?this.states[a].val:"",q:this.states[a]&&this.states[a].q||0,ack:!1,id:a},this.setState({updateOpened:!0})))}:void 0},P):null,B=R||this.columnsVisibility.buttons?p.createElement("div",{style:{...z.cellButtons,width:this.props.width!=="xs"?this.columnsVisibility.buttons:void 0}},this.renderColumnButtons(a,n)):null,Z=null;if(this.props.width==="xs"&&this.state.focused===a){N=N.filter(ee=>ee);let X;N.length?X=N.map(ee=>ee?p.createElement("div",{key:ee.type,style:z.cellDetailsLine},p.createElement("span",{style:z.cellDetailsName},this.texts[ee.type],":"),ee.el,p.createElement("div",{style:{flexGrow:1}}),ee.onClick?p.createElement(Au,{style:z.cellCopyButtonInDetails,onClick:()=>{ee!=null&&ee.onClick&&ee.onClick()}}):null):null):X=null,M.length||(M=null),Z=p.createElement(qs,{style:{width:"100%",display:"flex",flexDirection:"column",padding:10,backgroundColor:this.props.theme.palette.mode==="dark"?"#333":"#ccc"}},p.createElement("div",{style:z.cellDetailsLine},p.createElement("div",{style:{flexGrow:1}}),p.createElement(ps,{style:z.cellCopyButtonInDetails,onClick:ee=>this.onCopy(ee,a)})),j&&p.createElement("div",{style:z.cellDetailsLine},p.createElement("span",{style:z.cellDetailsName},this.texts.name,":"),j,p.createElement("div",{style:{flexGrow:1}}),(Ce=n.data)!=null&&Ce.title?p.createElement(ps,{className:"copyButton",style:z.cellCopyButtonInDetails,onClick:ee=>{var $e;return this.onCopy(ee,($e=n.data)==null?void 0:$e.title)}}):null),X,M&&p.createElement("div",{style:z.cellDetailsLine},M),((ze=this.objects[a])==null?void 0:ze.type)==="state"&&p.createElement("div",{style:z.cellDetailsLine},p.createElement("span",{style:z.cellDetailsName},this.texts.value,":"),H,p.createElement("div",{style:{flexGrow:1}}),p.createElement(ps,{className:"copyButton",style:z.cellCopyButtonInDetails,onClick:ee=>{const{valText:$e}=Qv({state:this.states[a],obj:this.objects[a],texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma});this.onCopy(ee,$e.v.toString())},key:"cc"})),B&&p.createElement("div",{style:{...z.cellDetailsLine,justifyContent:"right"}},B)),j=null,N=null,M=null,H=null,B=null}return{row:p.createElement(_s,{container:!0,direction:"row",wrap:"nowrap",sx:V.getStyle(this.props.theme,z.tableRow,this.state.linesEnabled&&z.tableRowLines,!this.props.dragEnabled&&z.tableRowNoDragging,w&&z.tableRowAlias,y&&z.tableRowAliasReadWrite,this.state.focused===a&&this.props.multiSelect&&z.tableRowFocused,!n.data.visible&&z.filteredOut,n.data.hasVisibleParent&&!n.data.visible&&!n.data.hasVisibleChildren&&z.filteredParentOut,this.state.selected.includes(a)&&z.itemSelected,this.state.selectedNonObject===a&&z.itemSelected),key:a,id:a,onMouseDown:X=>{this.onSelect(a);let ee;"which"in X?ee=X.which===3:"button"in X&&(ee=X.button===2),ee?this.contextMenu={item:n,ts:Date.now()}:this.contextMenu=null},onDoubleClick:()=>{n.children?this.toggleExpanded(a):this.onSelect(a,!0)}},I,j,N==null?void 0:N.map(X=>X==null?void 0:X.el),M,H,B),details:Z}}renderItem(n,o,r){const a=[];r=r||{count:0};const s=this.renderLeaf(n,o,r);let i;const l=this.props.DragWrapper;return this.props.dragEnabled&&l?n.data.sumVisibility?i=p.createElement(l,{key:n.data.id,item:n,style:z.draggable},s.row):i=p.createElement("div",{key:n.data.id,style:z.nonDraggable},s.row):i=s.row,n.data.id&&i&&a.push(i),s.details&&a.push(s.details),o=o===void 0?hp(this.state.expanded,n.data.id):o,(!n.data.id||o)&&(this.state.foldersFirst?n.children&&(a.push(n.children.map(d=>d.children&&(!this.state.columnsSelectorShow||r.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,r):null)),a.push(n.children.map(d=>!d.children&&(!this.state.columnsSelectorShow||r.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,r):null))):n.children&&a.push(n.children.map(d=>(!this.state.columnsSelectorShow||r.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,r):null))),a}calculateColumnsVisibility(n,o,r,a){let s=a||this.state.columnsWidths;const i=r||this.state.columnsForAdmin,l=o||this.state.columns||[],d=typeof n!="boolean"?this.state.columnsAuto:n;s=JSON.parse(JSON.stringify(s)),Object.keys(s).forEach(c=>{s[c]&&(s[c]=parseInt(s[c],10)||0)}),this.adapterColumns=[];const u=cn[this.props.width||"lg"].widths;if(d){if(this.columnsVisibility={id:cn[this.props.width||"lg"].idWidth,name:this.visibleCols.includes("name")&&u.name||0,nameHeader:this.visibleCols.includes("name")&&u.name||0,type:this.visibleCols.includes("type")&&u.type||0,role:this.visibleCols.includes("role")&&u.role||0,room:this.visibleCols.includes("room")&&u.room||0,func:this.visibleCols.includes("func")&&u.func||0,changedFrom:this.visibleCols.includes("changedFrom")&&u.changedFrom||0,qualityCode:this.visibleCols.includes("qualityCode")&&u.qualityCode||0,timestamp:this.visibleCols.includes("timestamp")&&u.timestamp||0,lastChange:this.visibleCols.includes("lastChange")&&u.lastChange||0,val:this.visibleCols.includes("val")&&u.val||0,buttons:this.visibleCols.includes("buttons")&&u.buttons||0},this.columnsVisibility.name&&!this.customWidth){let c=this.columnsVisibility.id||0;this.state.statesView?(c+=this.columnsVisibility.changedFrom||0,c+=this.columnsVisibility.qualityCode||0,c+=this.columnsVisibility.timestamp||0,c+=this.columnsVisibility.lastChange||0):(c+=this.columnsVisibility.type||0,c+=this.columnsVisibility.role||0,c+=this.columnsVisibility.room||0,c+=this.columnsVisibility.func||0),c+=this.columnsVisibility.val||0,c+=this.columnsVisibility.buttons||0,this.columnsVisibility.name=`calc(100% - ${c+5}px)`,this.columnsVisibility.nameHeader=`calc(100% - ${c+5+this.state.scrollBarWidth}px)`}else if(!this.customWidth){let c=0;this.state.statesView?(c+=this.columnsVisibility.changedFrom||0,c+=this.columnsVisibility.qualityCode||0,c+=this.columnsVisibility.timestamp||0,c+=this.columnsVisibility.lastChange||0):(c+=this.columnsVisibility.type||0,c+=this.columnsVisibility.role||0,c+=this.columnsVisibility.room||0,c+=this.columnsVisibility.func||0),c+=this.columnsVisibility.val||0,c+=this.columnsVisibility.buttons||0,this.columnsVisibility.id=`calc(100% - ${c+5}px)`}}else{const c=this.props.width||"lg";this.columnsVisibility={id:s.id||cn[c].idWidth,name:l.includes("name")&&(s.name||u.name||cn[c].widths.name)||0,type:l.includes("type")&&(s.type||u.type||cn[c].widths.type)||0,role:l.includes("role")&&(s.role||u.role||cn[c].widths.role)||0,room:l.includes("room")&&(s.room||u.room||cn[c].widths.room)||0,func:l.includes("func")&&(s.func||u.func||cn[c].widths.func)||0};let h=this.columnsVisibility.id;if(this.columnsVisibility.name&&(h+=this.columnsVisibility.type||0,h+=this.columnsVisibility.role||0,h+=this.columnsVisibility.room||0,h+=this.columnsVisibility.func||0),i&&l&&Object.keys(i).sort().forEach(f=>i[f].forEach(g=>{const v=`_${f}_${g.path}`;if(l.includes(v)){const S={adapter:f,id:`_${f}_${g.path}`,name:g.name,path:g.path.split("."),pathText:g.path};g.edit&&(S.edit=!0,g.type&&(S.type=g.type),g.objTypes&&(S.objTypes=g.objTypes)),this.adapterColumns.push(S),this.columnsVisibility[v]=s[S.id]||g.width||cn[c].widths.func||cn.xl.widths.func||0,h+=this.columnsVisibility[v]}else this.columnsVisibility[v]=0})),this.adapterColumns.sort((f,g)=>f.id>g.id?-1:f.idv==="id"||typeof this.columnsVisibility[v]=="string"||!this.columnsVisibility[v]?g:g+this.columnsVisibility[v],0);this.columnsVisibility.id=`calc(100% - ${f}px)`}}}navigateKeyPress(n){var r,a;const o=this.state.selectedNonObject||this.state.selected[0];if(o){if(n.code==="ArrowUp"||n.code==="ArrowDown"){n.preventDefault();const s=[];(r=this.tableRef.current)==null||r.childNodes.forEach(u=>s.push(u.id));const i=s.indexOf(o),l=n.code==="ArrowDown"?i+1:i-1,d=s[l]||o;this.onSelect(d),this.scrollToItem(d)}if((n.code==="ArrowRight"||n.code==="ArrowLeft")&&this.toggleExpanded(o),n.code==="Delete"&&this.root&&o){const s=wr.getItemFromRoot(this.root,o);if(s){const{obj:i}=s.data;i&&!((a=i.common)!=null&&a.dontDelete)&&this.showDeleteDialog({id:o,obj:i,item:s})}}}}static getItemFromRoot(n,o){const r=o.split(".");let a="",s=n;for(let i=0;ithis.clearFilter(),style:z.buttonClearFilter,title:this.props.t("ra_Clear filter"),size:"large"},p.createElement(iit,null),p.createElement(Dt,{style:z.buttonClearFilterIcon}))),this.props.width==="xs"?p.createElement("div",{style:z.headerRow},p.createElement("div",{style:{...z.headerCell,width:"100%"}},this.getFilterInput("id"))):p.createElement("div",{style:z.headerRow},p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.id,position:"relative"},"data-min":240,"data-name":"id"},this.getFilterInput("id"),this.renderHandleRight()),this.columnsVisibility.name?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.nameHeader,position:"relative"},"data-min":100,"data-name":"nameHeader"},this.getFilterInput("name"),this.renderHandleRight()):null,!this.state.statesView&&p.createElement(p.Fragment,null,this.columnsVisibility.type?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.type,position:"relative"},"data-min":100,"data-name":"type"},this.getFilterSelectType(),this.renderHandleRight()):null,this.columnsVisibility.role?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.role,position:"relative"},"data-min":100,"data-name":"role"},this.getFilterSelectRole(),this.renderHandleRight()):null,this.columnsVisibility.room?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.room,position:"relative"},"data-min":100,"data-name":"room"},this.getFilterSelectRoom(),this.renderHandleRight()):null,this.columnsVisibility.func?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.func,position:"relative"},"data-min":100,"data-name":"func"},this.getFilterSelectFunction(),this.renderHandleRight()):null),this.state.statesView&&p.createElement(p.Fragment,null,p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.changedFrom,position:"relative"},"data-min":100,"data-name":"changedFrom"},this.props.t("ra_Changed from"),this.renderHandleRight()),p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.qualityCode,position:"relative"},"data-min":100,"data-name":"qualityCode"},this.props.t("ra_Quality code"),this.renderHandleRight()),p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.timestamp,position:"relative"},"data-min":100,"data-name":"timestamp"},this.props.t("ra_Timestamp"),this.renderHandleRight()),p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.lastChange,position:"relative"},"data-min":100,"data-name":"lastChange"},this.props.t("ra_Last change"),this.renderHandleRight())),this.adapterColumns.map(o=>p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility[o.id]},title:o.adapter,key:o.id,"data-min":100,"data-name":o.id},o.name)),this.columnsVisibility.val?p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.val,position:"relative"},"data-min":120,"data-name":"val"},this.props.t("ra_Value"),n):null,this.columnsVisibility.buttons?p.createElement("div",{title:this.texts.filter_custom,style:{...z.headerCell,width:this.columnsVisibility.buttons}}," ",this.getFilterSelectCustoms()):null)}renderToast(){return p.createElement(lp,{open:!!this.state.toast,autoHideDuration:3e3,onClick:()=>this.setState({toast:""}),onClose:()=>this.setState({toast:""}),message:this.state.toast,action:p.createElement(ue,{size:"small","aria-label":"close",color:"inherit",onClick:()=>this.setState({toast:""})},p.createElement(Dt,{fontSize:"small"}))})}componentDidUpdate(){if(this.tableRef.current){const n=this.tableRef.current.offsetWidth-this.tableRef.current.clientWidth;this.state.scrollBarWidth!==n?setTimeout(()=>this.setState({scrollBarWidth:n}),100):this.selectFirst&&this.scrollToItem(this.selectFirst)}}scrollToItem(n){this.selectFirst="";const o=window.document.getElementById(n);o==null||o.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}renderCustomDialog(){if(this.state.customDialog&&this.props.objectCustomDialog){const n=this.props.objectCustomDialog;return p.createElement(n,{reportChangedIds:o=>this.changedIds=[...o],objectIDs:this.state.customDialog,allVisibleObjects:!!this.state.customDialogAll,expertMode:this.state.filter.expertMode,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,t:this.props.t,lang:this.props.lang,socket:this.props.socket,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,objects:this.objects,customsInstances:this.info.customs,onClose:()=>{var o;this.pauseSubscribe(!1),this.setState({customDialog:null}),this.changedIds&&(this.changedIds=null,this.forceUpdate()),(o=this.props.router)==null||o.doNavigate("tab-objects")},systemConfig:this.systemConfig})}return null}onUpdate(n){this.props.socket.setState(this.edit.id,{val:n.val,ack:n.ack,q:n.q||0,expire:n.expire||void 0}).catch(o=>this.showError(`Cannot write value: ${o}`))}renderEditObjectDialog(){if(!this.state.editObjectDialog||!this.props.objectBrowserEditObject)return null;const n=this.props.objectBrowserEditObject;return p.createElement(n,{key:this.state.editObjectDialog,obj:this.objects[this.state.editObjectDialog],roleArray:this.info.roles,objects:this.objects,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,themeType:this.props.themeType,theme:this.props.theme,socket:this.props.socket,dialogName:this.props.dialogName,aliasTab:this.state.editObjectAlias,t:this.props.t,expertMode:!!this.state.filter.expertMode,onNewObject:o=>this.props.socket.setObject(o._id,o).then(()=>this.setState({editObjectDialog:o._id,editObjectAlias:!1},()=>this.onSelect(o._id))).catch(r=>this.showError(`Cannot write object: ${r}`)),onClose:o=>{var r,a;if(o){let s;this.state.editObjectDialog.startsWith("alias.")&&JSON.stringify((r=this.objects[this.state.editObjectDialog].common)==null?void 0:r.alias)!==JSON.stringify((a=o.common)==null?void 0:a.alias)&&(s=this.state.editObjectDialog),this.props.socket.setObject(o._id,o).then(()=>{s&&this.subscribes.includes(s)&&(this.unsubscribe(s),setTimeout(()=>this.subscribe(s),100))}).catch(i=>this.showError(`Cannot write object: ${i}`))}this.setState({editObjectDialog:"",editObjectAlias:!1})},width:this.props.width})}renderViewObjectFileDialog(){if(!this.state.viewFileDialog||!this.props.objectBrowserViewFile)return null;const n=this.props.objectBrowserViewFile;return p.createElement(n,{key:"viewFile",obj:this.objects[this.state.viewFileDialog],socket:this.props.socket,t:this.props.t,onClose:()=>this.setState({viewFileDialog:""})})}renderAliasEditorDialog(){if(!this.props.objectBrowserAliasEditor||!this.state.showAliasEditor)return null;const n=this.props.objectBrowserAliasEditor;return p.createElement(n,{key:"editAlias",obj:this.objects[this.state.showAliasEditor],objects:this.objects,socket:this.props.socket,t:this.props.t,onClose:()=>this.setState({showAliasEditor:""}),onRedirect:(o,r)=>setTimeout(()=>this.onSelect(o,!1,()=>this.expandAllSelected(()=>{this.scrollToItem(o),setTimeout(()=>this.setState({editObjectDialog:o,showAliasEditor:"",editObjectAlias:!0}),300)})),r||0)})}showAddDataPointDialog(n,o,r){this.setState({showContextMenu:null,modalNewObj:{id:n,initialType:o,initialStateType:r}})}renderAliasMenu(){return this.state.aliasMenu?p.createElement(Du,{key:"aliasmenu",open:!0,anchorEl:window.document.getElementById(`alias_${this.state.aliasMenu}`),onClose:()=>this.setState({aliasMenu:""})},this.info.aliasesMap[this.state.aliasMenu].map((n,o)=>p.createElement(je,{key:n,onClick:()=>this.onSelect(n)},p.createElement(as,null,this.renderAliasLink(this.state.aliasMenu,o,{"& .admin-browser-arrow":{mr:"8px"}}))))):null}renderContextMenu(){var f,g,v,S,_,b,y;if(!this.state.showContextMenu)return null;const n=this.state.showContextMenu.item,o=n.data.id,r=[],a=n.data.obj;let s="";if(this.props.objectEditOfAccessControl&&this.state.filter.expertMode)if(!a)s="---";else{const w=a.acl?a.type==="state"?a.acl.state:a.acl.object:0,$=a.acl&&(a.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object);s=Number.isNaN(Number(w))?Number($).toString(16):Number(w).toString(16)}const i=!this.props.notEditable&&a&&(this.state.filter.expertMode||a.type==="state"||a.type==="channel"||a.type==="device"),l=!n.data.obj||n.data.obj.type==="folder"||n.data.obj.type==="channel"||n.data.obj.type==="device"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",d=!n.data.obj||n.data.obj.type==="folder"||n.data.obj.type==="device"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",u=!n.data.obj||n.data.obj.type==="folder"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",c=!n.data.obj||n.data.obj.type==="folder"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",h={EDIT:{key:"0",visibility:!!(this.props.objectBrowserEditObject&&a&&(this.state.filter.expertMode||wr.isNonExpertId(o))),icon:p.createElement(Au,{fontSize:"small",style:this.styles.contextMenuEdit}),label:this.texts.editObject,onClick:()=>this.setState({editObjectDialog:n.data.id,showContextMenu:null,editObjectAlias:!1})},EDIT_VALUE:{key:"1",visibility:!!(this.states&&!this.props.notEditable&&a&&a.type==="state"&&((f=a.common)==null?void 0:f.type)!=="file"&&(this.state.filter.expertMode||a.common.write!==!1)),icon:p.createElement(mX,{fontSize:"small",style:this.styles.contextMenuEditValue}),label:this.props.t("ra_Edit value"),onClick:()=>{this.edit={val:this.states[o]?this.states[o].val:"",q:this.states[o]&&this.states[o].q||0,ack:!1,id:o},this.setState({updateOpened:!0,showContextMenu:null})}},VIEW:{visibility:!!this.props.objectBrowserViewFile&&(a==null?void 0:a.type)==="state"&&((g=a.common)==null?void 0:g.type)==="file",icon:p.createElement(uX,{fontSize:"small",style:this.styles.contextMenuView}),label:this.props.t("ra_View file"),onClick:()=>this.setState({viewFileDialog:(a==null?void 0:a._id)||"",showContextMenu:null})},CUSTOM:{key:"2",visibility:!(this.props.objectCustomDialog&&this.info.hasSomeCustoms&&a&&a.type==="state"&&((v=a.common)==null?void 0:v.type)!=="file"),icon:p.createElement(Wb,{fontSize:"small",style:n.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:z.cellButtonsButtonWithoutCustoms}),style:this.styles.contextMenuCustom,label:this.texts.customConfig,onClick:()=>{var w;this.pauseSubscribe(!0),(w=this.props.router)==null||w.doNavigate(null,"customs",o),this.setState({customDialog:[o],showContextMenu:null})}},ACL:{key:"3",visibility:!!s,icon:s,iconStyle:{fontSize:"smaller"},listItemIconStyle:this.styles.contextMenuACL,style:this.styles.contextMenuACL,label:this.props.t("ra_Edit ACL"),onClick:()=>this.setState({showContextMenu:null,modalEditOfAccess:!0,modalEditOfAccessObjData:n.data})},ROLE:{key:"4",visibility:!!(this.state.filter.expertMode&&i&&this.props.objectBrowserEditRole),icon:p.createElement(eX,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit role"),onClick:()=>this.setState({roleDialog:n.data.id,showContextMenu:null})},FUNCTION:{key:"5",visibility:!!i,icon:p.createElement(Kq,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit function"),onClick:()=>{const w=yl(this.info,n.data.id,"funcEnums");this.setState({enumDialogEnums:w,enumDialog:{item:n,type:"func",enumsOriginal:JSON.stringify(w)},showContextMenu:null})}},ROOM:{key:"6",visibility:!!i,icon:p.createElement(aX,{fontSize:"small",style:this.styles.contextMenuRoom}),label:this.props.t("ra_Edit room"),onClick:()=>{const w=yl(this.info,n.data.id,"roomEnums");this.setState({enumDialogEnums:w,enumDialog:{item:n,type:"room",enumsOriginal:JSON.stringify(w)},showContextMenu:null})}},ALIAS:{key:"7",visibility:!!(!this.props.notEditable&&this.props.objectBrowserAliasEditor&&this.props.objectBrowserEditObject&&(a==null?void 0:a.type)==="state"&&((S=a.common)==null?void 0:S.type)!=="file"),icon:p.createElement(r3,{style:(_=a==null?void 0:a.common)!=null&&_.alias?this.styles.cellButtonsButtonWithCustoms:z.cellButtonsButtonWithoutCustoms}),label:this.info.aliasesMap[n.data.id]||n.data.id.startsWith("alias.0.")?this.props.t("ra_Edit alias"):this.props.t("ra_Create alias"),onClick:()=>{var w;(w=a==null?void 0:a.common)!=null&&w.alias?this.setState({showContextMenu:null,editObjectDialog:n.data.id,editObjectAlias:!0}):this.setState({showContextMenu:null,showAliasEditor:n.data.id})}},CREATE:{key:"+",visibility:(n.data.id.startsWith("0_userdata.0")||n.data.id.startsWith("javascript."))&&(l||d||u||c),icon:p.createElement(c$,{fontSize:"small",style:this.styles.cellButtonsButtonWithCustoms}),style:z.contextMenuWithSubMenu,label:this.texts.create,subMenu:[{label:this.texts.createBooleanState,visibility:l,icon:p.createElement(iu,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state","boolean")},{label:this.texts.createNumberState,visibility:l,icon:p.createElement(iu,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state","number")},{label:this.texts.createStringState,visibility:l,icon:p.createElement(iu,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state","string")},{label:this.texts.createState,visibility:l,icon:p.createElement(iu,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state")},{label:this.texts.createChannel,visibility:d,icon:p.createElement(BA,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"channel")},{label:this.texts.createDevice,visibility:u,icon:p.createElement(HA,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"device")},{label:this.texts.createFolder,icon:p.createElement(n3,{fontSize:"small"}),visibility:c,onClick:()=>this.showAddDataPointDialog(n.data.id,"folder")}]},DELETE:{key:"Delete",visibility:!!(this.props.onObjectDelete&&((b=n.children)!=null&&b.length||a&&!((y=a.common)!=null&&y.dontDelete))),icon:p.createElement(Ns,{fontSize:"small",style:this.styles.contextMenuDelete}),style:this.styles.contextMenuDelete,label:this.texts.deleteObject,onClick:()=>this.setState({showContextMenu:null},()=>this.showDeleteDialog({id:o,obj:a||{},item:n}))}};return Object.keys(h).forEach(w=>{var $,k;h[w].visibility&&(h[w].subMenu?(r.push(p.createElement(je,{key:w,href:"",onClick:T=>this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position,subItem:w,subAnchor:T.target}}),style:h[w].style},p.createElement(Tl,{style:{...h[w].iconStyle,...h[w].listItemIconStyle}},h[w].icon),p.createElement(as,null,h[w].label,"..."),p.createElement("div",{style:{...z.contextMenuKeys,opacity:1}},p.createElement(Jq,null)))),(($=this.state.showContextMenu)==null?void 0:$.subItem)===w&&r.push(p.createElement(Du,{key:"subContextMenu",open:!0,anchorEl:this.state.showContextMenu.subAnchor,onClose:()=>{this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position}}),this.contextMenu=null}},(k=h[w].subMenu)==null?void 0:k.map(T=>T.visibility?p.createElement(je,{key:T.label,onClick:T.onClick,style:T.style},p.createElement(Tl,{style:{...T.iconStyle,...T.listItemIconStyle||void 0}},T.icon),p.createElement(as,null,T.label)):null)))):r.push(p.createElement(je,{key:w,onClick:h[w].onClick,sx:h[w].style},p.createElement(Tl,{style:{...h[w].iconStyle,...h[w].listItemIconStyle}},h[w].icon),p.createElement(as,null,h[w].label),h[w].key?p.createElement("div",{style:z.contextMenuKeys},`Alt+${h[w].key==="Delete"?this.props.t("ra_Del"):h[w].key}`):null)))}),r.length?p.createElement(Du,{key:"contextMenu",open:!0,onKeyUp:w=>{w.preventDefault(),w.altKey&&Object.keys(h).forEach($=>{w.key===h[$].key&&h[$].onClick&&h[$].onClick()})},anchorReference:"anchorPosition",anchorPosition:this.state.showContextMenu.position,onClose:()=>{this.setState({showContextMenu:null}),this.contextMenu=null}},r):(setTimeout(()=>this.setState({showContextMenu:null}),100),null)}renderEditValueDialog(){var a;if(!this.state.updateOpened||!this.props.objectBrowserValue)return null;if(!this.edit.id)return console.error(`Invalid ID for edit: ${JSON.stringify(this.edit)}`),null;if(!this.objects[this.edit.id])return console.error(`Something went wrong. Possibly the object ${this.edit.id} was deleted.`),null;const n=(a=this.objects[this.edit.id].common)!=null&&a.type?this.objects[this.edit.id].common.type:typeof this.edit.val,o=this.objects[this.edit.id].common.role,r=this.props.objectBrowserValue;return p.createElement(r,{t:this.props.t,lang:this.props.lang,type:n,role:o||"",states:V.getStates(this.objects[this.edit.id]),themeType:this.props.themeType,theme:this.props.theme,expertMode:!!this.state.filter.expertMode,value:this.edit.val,socket:this.props.socket,object:this.objects[this.edit.id],defaultHistory:this.defaultHistory,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,onClose:s=>{this.setState({updateOpened:!1}),s&&this.onUpdate(s)},width:this.props.width})}render(){this.recordStates=[],this.unsubscribeTimer&&clearTimeout(this.unsubscribeTimer),this.styleTheme!==this.props.themeType&&(this.styles={cellIdIconFolder:V.getStyle(this.props.theme,z.cellIdIconFolder),cellIdIconDocument:V.getStyle(this.props.theme,z.cellIdIconDocument),iconDeviceError:V.getStyle(this.props.theme,z.iconDeviceError),iconDeviceConnected:V.getStyle(this.props.theme,z.iconDeviceConnected),iconDeviceDisconnected:V.getStyle(this.props.theme,z.iconDeviceDisconnected),cellButtonsButtonWithCustoms:V.getStyle(this.props.theme,z.cellButtonsButtonWithCustoms),invertedBackground:V.getStyle(this.props.theme,z.invertedBackground),invertedBackgroundFlex:V.getStyle(this.props.theme,z.invertedBackgroundFlex),contextMenuEdit:V.getStyle(this.props.theme,z.contextMenuEdit),contextMenuEditValue:V.getStyle(this.props.theme,z.contextMenuEditValue),contextMenuView:V.getStyle(this.props.theme,z.contextMenuView),contextMenuCustom:V.getStyle(this.props.theme,z.contextMenuCustom),contextMenuACL:V.getStyle(this.props.theme,z.contextMenuACL),contextMenuRoom:V.getStyle(this.props.theme,z.contextMenuRoom),contextMenuRole:V.getStyle(this.props.theme,z.contextMenuRole),contextMenuDelete:V.getStyle(this.props.theme,z.contextMenuDelete),filterInput:V.getStyle(this.props.theme,z.headerCellInput,z.filterInput),iconCopy:V.getStyle(this.props.theme,z.cellButtonsValueButton,z.cellButtonsValueButtonCopy),aliasReadWrite:V.getStyle(this.props.theme,z.cellIdAlias,z.cellIdAliasReadWrite),aliasAlone:V.getStyle(this.props.theme,z.cellIdAlias,z.cellIdAliasAlone)},this.styleTheme=this.props.themeType);const n=JSON.stringify(this.state.filter);if(this.lastAppliedFilter!==n&&this.objects&&this.root){const r={count:0};h0(this.root,this.state.filter,this.props.lang,this.objects,void 0,r,this.props.customFilter,this.props.types),r.count<500&&!this.state.expandAllVisible?setTimeout(()=>this.setState({expandAllVisible:!0})):r.count>=500&&this.state.expandAllVisible&&setTimeout(()=>this.setState({expandAllVisible:!1})),this.lastAppliedFilter=n}if(this.unsubscribeTimer=setTimeout(()=>{this.unsubscribeTimer=null,this.checkUnsubscribes()},200),!this.state.loaded)return p.createElement(ro,{key:`${this.props.dialogName}_c`});const o=this.root?this.renderItem(this.root,void 0):null;return p.createElement(lit,{key:this.props.dialogName},p.createElement("style",null,` + `),p.createElement("div",{style:u.white,className:"saturation-white"},p.createElement("div",{style:u.black,className:"saturation-black"}),p.createElement("div",{style:u.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:u.circle}))))}}]),t}(C.PureComponent||C.Component);function Ant(e,t){for(var n=-1,o=e==null?0:e.length;++n=0,a=!n&&r&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},clone:function(){return ye(this.toString())},_applyModification:function(t,n){var o=t.apply(null,[this].concat([].slice.call(n)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(Ynt,arguments)},brighten:function(){return this._applyModification(Knt,arguments)},darken:function(){return this._applyModification(Znt,arguments)},desaturate:function(){return this._applyModification(qnt,arguments)},saturate:function(){return this._applyModification(Xnt,arguments)},greyscale:function(){return this._applyModification(Jnt,arguments)},spin:function(){return this._applyModification(Qnt,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(not,arguments)},complement:function(){return this._applyCombination(eot,arguments)},monochromatic:function(){return this._applyCombination(oot,arguments)},splitcomplement:function(){return this._applyCombination(tot,arguments)},triad:function(){return this._applyCombination(xk,[3])},tetrad:function(){return this._applyCombination(xk,[4])}};ye.fromRatio=function(e,t){if(Nm(e)=="object"){var n={};for(var o in e)e.hasOwnProperty(o)&&(o==="a"?n[o]=e[o]:n[o]=ru(e[o]));e=n}return ye(e,t)};function Hnt(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=lot(e)),Nm(e)=="object"&&(wa(e.r)&&wa(e.g)&&wa(e.b)?(t=Unt(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wa(e.h)&&wa(e.s)&&wa(e.v)?(o=ru(e.s),r=ru(e.v),t=Vnt(e.h,o,r),s=!0,i="hsv"):wa(e.h)&&wa(e.s)&&wa(e.l)&&(o=ru(e.s),a=ru(e.l),t=Wnt(e.h,o,a),s=!0,i="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=hA(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function Unt(e,t,n){return{r:Xt(e,255)*255,g:Xt(t,255)*255,b:Xt(n,255)*255}}function yk(e,t,n){e=Xt(e,255),t=Xt(t,255),n=Xt(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a,s,i=(o+r)/2;if(o==r)a=s=0;else{var l=o-r;switch(s=i>.5?l/(2-o-r):l/(o+r),o){case e:a=(t-n)/l+(t1&&(c-=1),c<1/6?d+(u-d)*6*c:c<1/2?u:c<2/3?d+(u-d)*(2/3-c)*6:d}if(t===0)o=r=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;o=s(l,i,e+1/3),r=s(l,i,e),a=s(l,i,e-1/3)}return{r:o*255,g:r*255,b:a*255}}function bk(e,t,n){e=Xt(e,255),t=Xt(t,255),n=Xt(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a,s,i=o,l=o-r;if(s=o===0?0:l/o,o==r)a=0;else{switch(o){case e:a=(t-n)/l+(t>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(ye(o));return a}function oot(e,t){t=t||6;for(var n=ye(e).toHsv(),o=n.h,r=n.s,a=n.v,s=[],i=1/t;t--;)s.push(ye({h:o,s:r,v:a})),a=(a+i)%1;return s}ye.mix=function(e,t,n){n=n===0?0:n||50;var o=ye(e).toRgb(),r=ye(t).toRgb(),a=n/100,s={r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a};return ye(s)};ye.readability=function(e,t){var n=ye(e),o=ye(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)};ye.isReadable=function(e,t,n){var o=ye.readability(e,t),r,a;switch(a=!1,r=cot(n),r.level+r.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7;break}return a};ye.mostReadable=function(e,t,n){var o=null,r=0,a,s,i,l;n=n||{},s=n.includeFallbackColors,i=n.level,l=n.size;for(var d=0;dr&&(r=a,o=ye(t[d]));return ye.isReadable(e,o,{level:i,size:l})||!s?o:(n.includeFallbackColors=!1,ye.mostReadable(e,["#fff","#000"],n))};var Qb=ye.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"},rot=ye.hexNames=aot(Qb);function aot(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function hA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Xt(e,t){sot(e)&&(e="100%");var n=iot(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C_(e){return Math.min(1,Math.max(0,e))}function xo(e){return parseInt(e,16)}function sot(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function iot(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Cr(e){return e.length==1?"0"+e:""+e}function ru(e){return e<=1&&(e=e*100+"%"),e}function fA(e){return Math.round(parseFloat(e)*255).toString(16)}function Ck(e){return xo(e)/255}var br=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+o),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+o),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+o),hsva:new RegExp("hsva"+r),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 wa(e){return!!br.CSS_UNIT.exec(e)}function lot(e){e=e.replace(Pnt,"").replace(Bnt,"").toLowerCase();var t=!1;if(Qb[e])e=Qb[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=br.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=br.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=br.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=br.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=br.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=br.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=br.hex8.exec(e))?{r:xo(n[1]),g:xo(n[2]),b:xo(n[3]),a:Ck(n[4]),format:t?"name":"hex8"}:(n=br.hex6.exec(e))?{r:xo(n[1]),g:xo(n[2]),b:xo(n[3]),format:t?"name":"hex"}:(n=br.hex4.exec(e))?{r:xo(n[1]+""+n[1]),g:xo(n[2]+""+n[2]),b:xo(n[3]+""+n[3]),a:Ck(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=br.hex3.exec(e))?{r:xo(n[1]+""+n[1]),g:xo(n[2]+""+n[2]),b:xo(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function cot(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var $k=function(t){var n=["r","g","b","a","h","s","l","v"],o=0,r=0;return Fnt(n,function(a){if(t[a]&&(o+=1,isNaN(t[a])||(r+=1),a==="s"||a==="l")){var s=/^\d+%$/;s.test(t[a])&&(r+=1)}}),o===r?t:!1},au=function(t,n){var o=t.hex?ye(t.hex):ye(t),r=o.toHsl(),a=o.toHsv(),s=o.toRgb(),i=o.toHex();r.s===0&&(r.h=n||0,a.h=n||0);var l=i==="000000"&&s.a===0;return{hsl:r,hex:l?"transparent":"#"+i,rgb:s,hsv:a,oldHue:t.h||n||r.h,source:t.source}},Ys=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&ye(t).isValid()},Jw=function(t){if(!t)return"#fff";var n=au(t);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var o=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return o>=128?"#000":"#fff"},Gv=function(t,n){var o=t.replace("°","");return ye(n+" ("+o+")")._ok},Ld=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){_ot(r,o);function r(){var a,s,i,l;got(this,r);for(var d=arguments.length,u=Array(d),c=0;ci))return!1;var d=a.get(e),u=a.get(t);if(d&&u)return d==t&&u==e;var c=-1,h=!0,f=n&Oot?new jm:void 0;for(a.set(e,t),a.set(t,e);++c=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}var Fh=24,Vrt=CA.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,o=e.width,r=o===void 0?Fh:o,a=e.height,s=a===void 0?Fh:a,i=e.style,l=i===void 0?{}:i,d=Wrt(e,["fill","width","height","style"]);return Uk.default.createElement("svg",Hk({viewBox:"0 0 "+Fh+" "+Fh,style:Hk({fill:n,width:r,height:s},l)},d),Uk.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"}))},Grt=function(){function e(t,n){for(var o=0;o1&&(r.a=1),o.props.onChange({h:o.props.hsl.h,s:o.props.hsl.s,l:o.props.hsl.l,a:Math.round(r.a*100)/100,source:"rgb"},a)):(r.h||r.s||r.l)&&(typeof r.s=="string"&&r.s.includes("%")&&(r.s=r.s.replace("%","")),typeof r.l=="string"&&r.l.includes("%")&&(r.l=r.l.replace("%","")),r.s==1?r.s=.01:r.l==1&&(r.l=.01),o.props.onChange({h:r.h||o.props.hsl.h,s:Number(Bk(r.s)?o.props.hsl.s:r.s),l:Number(Bk(r.l)?o.props.hsl.l:r.l),source:"hsl"},a))},o.showHighlight=function(r){r.currentTarget.style.background="#eee"},o.hideHighlight=function(r){r.currentTarget.style.background="transparent"},n.hsl.a!==1&&n.view==="hex"?o.state={view:"rgb"}:o.state={view:n.view},o}return Grt(t,[{key:"render",value:function(){var o=this,r=Ne({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=p.createElement("div",{style:r.fields,className:"flexbox-fix"},p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=p.createElement("div",{style:r.fields,className:"flexbox-fix"},p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),p.createElement("div",{style:r.alpha},p.createElement(at,{style:{input:r.input,label:r.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=p.createElement("div",{style:r.fields,className:"flexbox-fix"},p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:r.field},p.createElement(at,{style:{input:r.input,label:r.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:r.alpha},p.createElement(at,{style:{input:r.input,label:r.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),p.createElement("div",{style:r.wrap,className:"flexbox-fix"},a,p.createElement("div",{style:r.toggle},p.createElement("div",{style:r.icon,onClick:this.toggleViews,ref:function(i){return o.icon=i}},p.createElement(Vrt,{style:r.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(o,r){return o.hsl.a!==1&&r.view==="hex"?{view:"rgb"}:null}}]),t}(p.Component);$A.defaultProps={view:"hex"};var Wk=function(){var t=Ne({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 p.createElement("div",{style:t.picker})},Yrt=function(){var t=Ne({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return p.createElement("div",{style:t.picker})},tS=function(t){var n=t.width,o=t.onChange,r=t.disableAlpha,a=t.rgb,s=t.hsl,i=t.hsv,l=t.hex,d=t.renderers,u=t.styles,c=u===void 0?{}:u,h=t.className,f=h===void 0?"":h,g=t.defaultView,v=Ne(bo({default:{picker:{width:n,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"}}},c),{disableAlpha:r});return p.createElement("div",{style:v.picker,className:"chrome-picker "+f},p.createElement("div",{style:v.saturation},p.createElement(x_,{style:v.Saturation,hsl:s,hsv:i,pointer:Yrt,onChange:o})),p.createElement("div",{style:v.body},p.createElement("div",{style:v.controls,className:"flexbox-fix"},p.createElement("div",{style:v.color},p.createElement("div",{style:v.swatch},p.createElement("div",{style:v.active}),p.createElement(md,{renderers:d}))),p.createElement("div",{style:v.toggles},p.createElement("div",{style:v.hue},p.createElement(gd,{style:v.Hue,hsl:s,pointer:Wk,onChange:o})),p.createElement("div",{style:v.alpha},p.createElement(Bw,{style:v.Alpha,rgb:a,hsl:s,pointer:Wk,renderers:d,onChange:o})))),p.createElement($A,{rgb:a,hsl:s,hex:l,view:g,onChange:o,disableAlpha:r})))};tS.propTypes={width:L.oneOfType([L.string,L.number]),disableAlpha:L.bool,styles:L.object,defaultView:L.oneOf(["hex","rgb","hsl"])};tS.defaultProps={width:225,disableAlpha:!1,styles:{}};wo(tS);var Krt=function(t){var n=t.color,o=t.onClick,r=o===void 0?function(){}:o,a=t.onSwatchHover,s=t.active,i=Ne({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Jw(n),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":n==="#FFFFFF",transparent:n==="transparent"});return p.createElement(rl,{style:i.color,color:n,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+n}},p.createElement("div",{style:i.dot}))},Zrt=function(t){var n=t.hex,o=t.rgb,r=t.onChange,a=Ne({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},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(l,d){l.r||l.g||l.b?r({r:l.r||o.r,g:l.g||o.g,b:l.b||o.b,source:"rgb"},d):r({hex:l.hex,source:"hex"},d)};return p.createElement("div",{style:a.fields,className:"flexbox-fix"},p.createElement("div",{style:a.active}),p.createElement(at,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:n,onChange:s}),p.createElement(at,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:o.r,onChange:s}),p.createElement(at,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:o.g,onChange:s}),p.createElement(at,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:o.b,onChange:s}))},nS=function(t){var n=t.onChange,o=t.onSwatchHover,r=t.colors,a=t.hex,s=t.rgb,i=t.styles,l=i===void 0?{}:i,d=t.className,u=d===void 0?"":d,c=Ne(bo({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),h=function(g,v){g.hex?Ys(g.hex)&&n({hex:g.hex,source:"hex"},v):n(g,v)};return p.createElement(Jp,{style:c.Compact,styles:l},p.createElement("div",{style:c.compact,className:"compact-picker "+u},p.createElement("div",null,al(r,function(f){return p.createElement(Krt,{key:f,color:f,active:f.toLowerCase()===a,onClick:h,onSwatchHover:o})}),p.createElement("div",{style:c.clear})),p.createElement(Zrt,{hex:a,rgb:s,onChange:h})))};nS.propTypes={colors:L.arrayOf(L.string),styles:L.object};nS.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:{}};wo(nS);var Qrt=function(t){var n=t.hover,o=t.color,r=t.onClick,a=t.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=Ne({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:n});return p.createElement("div",{style:i.swatch},p.createElement(rl,{color:o,onClick:r,onHover:a,focusStyle:s}))};const eat=Pw(Qrt);var oS=function(t){var n=t.width,o=t.colors,r=t.onChange,a=t.onSwatchHover,s=t.triangle,i=t.styles,l=i===void 0?{}:i,d=t.className,u=d===void 0?"":d,c=Ne(bo({default:{card:{width:n,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)"}}},l),{"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"}),h=function(g,v){return r({hex:g,source:"hex"},v)};return p.createElement("div",{style:c.card,className:"github-picker "+u},p.createElement("div",{style:c.triangleShadow}),p.createElement("div",{style:c.triangle}),al(o,function(f){return p.createElement(eat,{color:f,key:f,onClick:h,onSwatchHover:a})}))};oS.propTypes={width:L.oneOfType([L.string,L.number]),colors:L.arrayOf(L.string),triangle:L.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:L.object};oS.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};wo(oS);var tat=function(t){var n=t.direction,o=Ne({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:n==="vertical"});return p.createElement("div",{style:o.picker})},nat=Object.assign||function(e){for(var t=1;t.5});return p.createElement("div",{style:o.picker})},sat=function(){var t=Ne({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 p.createElement("div",{style:t.pointer},p.createElement("div",{style:t.left},p.createElement("div",{style:t.leftInside})),p.createElement("div",{style:t.right},p.createElement("div",{style:t.rightInside})))},Vk=function(t){var n=t.onClick,o=t.label,r=t.children,a=t.active,s=Ne({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 p.createElement("div",{style:s.button,onClick:n},o||r)},iat=function(t){var n=t.rgb,o=t.currentColor,r=Ne({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:o,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return p.createElement("div",null,p.createElement("div",{style:r.label},"new"),p.createElement("div",{style:r.swatches},p.createElement("div",{style:r.new}),p.createElement("div",{style:r.current})),p.createElement("div",{style:r.label},"current"))},lat=function(){function e(t,n){for(var o=0;o100&&(u.a=100),u.a/=100,n({h:r.h,s:r.s,l:r.l,a:u.a,source:"rgb"},c))};return p.createElement("div",{style:i.fields,className:"flexbox-fix"},p.createElement("div",{style:i.double},p.createElement(at,{style:{input:i.input,label:i.label},label:"hex",value:a.replace("#",""),onChange:l})),p.createElement("div",{style:i.single},p.createElement(at,{style:{input:i.input,label:i.label},label:"r",value:o.r,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:i.single},p.createElement(at,{style:{input:i.input,label:i.label},label:"g",value:o.g,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:i.single},p.createElement(at,{style:{input:i.input,label:i.label},label:"b",value:o.b,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:i.alpha},p.createElement(at,{style:{input:i.input,label:i.label},label:"a",value:Math.round(o.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},hat=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}var Ph=24,bat=EA.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,o=e.width,r=o===void 0?Ph:o,a=e.height,s=a===void 0?Ph:a,i=e.style,l=i===void 0?{}:i,d=yat(e,["fill","width","height","style"]);return qk.default.createElement("svg",Gk({viewBox:"0 0 "+Ph+" "+Ph,style:Gk({fill:n,width:r,height:s},l)},d),qk.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},wat=function(t){var n=t.color,o=t.onClick,r=o===void 0?function(){}:o,a=t.onSwatchHover,s=t.first,i=t.last,l=t.active,d=Ne({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:Jw(n),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:i,active:l,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return p.createElement(rl,{color:n,style:d.color,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+n}},p.createElement("div",{style:d.check},p.createElement(bat,null)))},Sat=function(t){var n=t.onClick,o=t.onSwatchHover,r=t.group,a=t.active,s=Ne({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return p.createElement("div",{style:s.group},al(r,function(i,l){return p.createElement(wat,{key:i,color:i,active:i.toLowerCase()===a,first:l===0,last:l===r.length-1,onClick:n,onSwatchHover:o})}))},lS=function(t){var n=t.width,o=t.height,r=t.onChange,a=t.onSwatchHover,s=t.colors,i=t.hex,l=t.styles,d=l===void 0?{}:l,u=t.className,c=u===void 0?"":u,h=Ne(bo({default:{picker:{width:n,height:o},overflow:{height:o,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},d)),f=function(v,S){return r({hex:v,source:"hex"},S)};return p.createElement("div",{style:h.picker,className:"swatches-picker "+c},p.createElement(Jp,null,p.createElement("div",{style:h.overflow},p.createElement("div",{style:h.body},al(s,function(g){return p.createElement(Sat,{key:g.toString(),group:g,active:i,onClick:f,onSwatchHover:a})}),p.createElement("div",{style:h.clear})))))};lS.propTypes={width:L.oneOfType([L.string,L.number]),height:L.oneOfType([L.string,L.number]),colors:L.arrayOf(L.arrayOf(L.string)),styles:L.object};lS.defaultProps={width:320,height:240,colors:[[Ol[900],Ol[700],Ol[500],Ol[300],Ol[100]],[Dl[900],Dl[700],Dl[500],Dl[300],Dl[100]],[Al[900],Al[700],Al[500],Al[300],Al[100]],[Ml[900],Ml[700],Ml[500],Ml[300],Ml[100]],[Nl[900],Nl[700],Nl[500],Nl[300],Nl[100]],[jl[900],jl[700],jl[500],jl[300],jl[100]],[zl[900],zl[700],zl[500],zl[300],zl[100]],[Rl[900],Rl[700],Rl[500],Rl[300],Rl[100]],[Il[900],Il[700],Il[500],Il[300],Il[100]],["#194D33",su[700],su[500],su[300],su[100]],[Ll[900],Ll[700],Ll[500],Ll[300],Ll[100]],[Fl[900],Fl[700],Fl[500],Fl[300],Fl[100]],[Pl[900],Pl[700],Pl[500],Pl[300],Pl[100]],[Bl[900],Bl[700],Bl[500],Bl[300],Bl[100]],[Hl[900],Hl[700],Hl[500],Hl[300],Hl[100]],[Ul[900],Ul[700],Ul[500],Ul[300],Ul[100]],[Wl[900],Wl[700],Wl[500],Wl[300],Wl[100]],[Vl[900],Vl[700],Vl[500],Vl[300],Vl[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};wo(lS);var cS=function(t){var n=t.onChange,o=t.onSwatchHover,r=t.hex,a=t.colors,s=t.width,i=t.triangle,l=t.styles,d=l===void 0?{}:l,u=t.className,c=u===void 0?"":u,h=Ne(bo({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"}}},d),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right"}),f=function(v,S){Ys(v)&&n({hex:v,source:"hex"},S)};return p.createElement("div",{style:h.card,className:"twitter-picker "+c},p.createElement("div",{style:h.triangleShadow}),p.createElement("div",{style:h.triangle}),p.createElement("div",{style:h.body},al(a,function(g,v){return p.createElement(rl,{key:v,color:g,hex:g,style:h.swatch,onClick:f,onHover:o,focusStyle:{boxShadow:"0 0 4px "+g}})}),p.createElement("div",{style:h.hash},"#"),p.createElement(at,{label:null,style:{input:h.input},value:r.replace("#",""),onChange:f}),p.createElement("div",{style:h.clear})))};cS.propTypes={width:L.oneOfType([L.string,L.number]),triangle:L.oneOf(["hide","top-left","top-right"]),colors:L.arrayOf(L.string),styles:L.object};cS.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};wo(cS);var dS=function(t){var n=Ne({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return p.createElement("div",{style:n.picker})};dS.propTypes={hsl:L.shape({h:L.number,s:L.number,l:L.number,a:L.number})};dS.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var uS=function(t){var n=Ne({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return p.createElement("div",{style:n.picker})};uS.propTypes={hsl:L.shape({h:L.number,s:L.number,l:L.number,a:L.number})};uS.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var xat=function(t){var n=t.onChange,o=t.rgb,r=t.hsl,a=t.hex,s=t.hsv,i=function(f,g){if(f.hex)Ys(f.hex)&&n({hex:f.hex,source:"hex"},g);else if(f.rgb){var v=f.rgb.split(",");Gv(f.rgb,"rgb")&&n({r:v[0],g:v[1],b:v[2],a:1,source:"rgb"},g)}else if(f.hsv){var S=f.hsv.split(",");Gv(f.hsv,"hsv")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),S[1]==1?S[1]=.01:S[2]==1&&(S[2]=.01),n({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsv"},g))}else if(f.hsl){var _=f.hsl.split(",");Gv(f.hsl,"hsl")&&(_[2]=_[2].replace("%",""),_[1]=_[1].replace("%",""),_[0]=_[0].replace("°",""),c[1]==1?c[1]=.01:c[2]==1&&(c[2]=.01),n({h:Number(_[0]),s:Number(_[1]),v:Number(_[2]),source:"hsl"},g))}},l=Ne({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"}}}),d=o.r+", "+o.g+", "+o.b,u=Math.round(r.h)+"°, "+Math.round(r.s*100)+"%, "+Math.round(r.l*100)+"%",c=Math.round(s.h)+"°, "+Math.round(s.s*100)+"%, "+Math.round(s.v*100)+"%";return p.createElement("div",{style:l.wrap,className:"flexbox-fix"},p.createElement("div",{style:l.fields},p.createElement("div",{style:l.double},p.createElement(at,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:i})),p.createElement("div",{style:l.column},p.createElement("div",{style:l.single},p.createElement(at,{style:{input:l.input2,label:l.label2},label:"rgb",value:d,onChange:i})),p.createElement("div",{style:l.single},p.createElement(at,{style:{input:l.input2,label:l.label2},label:"hsv",value:c,onChange:i})),p.createElement("div",{style:l.single},p.createElement(at,{style:{input:l.input2,label:l.label2},label:"hsl",value:u,onChange:i})))))},pS=function(t){var n=t.width,o=t.onChange,r=t.rgb,a=t.hsl,s=t.hsv,i=t.hex,l=t.header,d=t.styles,u=d===void 0?{}:d,c=t.className,h=c===void 0?"":c,f=Ne(bo({default:{picker:{width:n,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("+r.r+", "+r.g+", "+r.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"}}},u));return p.createElement("div",{style:f.picker,className:"google-picker "+h},p.createElement("div",{style:f.head},l),p.createElement("div",{style:f.swatch}),p.createElement("div",{style:f.saturation},p.createElement(x_,{hsl:a,hsv:s,pointer:dS,onChange:o})),p.createElement("div",{style:f.body},p.createElement("div",{style:f.controls,className:"flexbox-fix"},p.createElement("div",{style:f.hue},p.createElement(gd,{style:f.Hue,hsl:a,radius:"4px",pointer:uS,onChange:o}))),p.createElement(xat,{rgb:r,hsl:a,hex:i,hsv:s,onChange:o})))};pS.propTypes={width:L.oneOfType([L.string,L.number]),styles:L.object,header:L.string};pS.defaultProps={width:652,styles:{},header:"Color picker"};wo(pS);var Xv={exports:{}},Xk;function ha(){return Xk||(Xk=1,function(e,t){(function(o,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:(s,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CronParser=void 0;var d=l(515),u=function(){function c(h,f,g){f===void 0&&(f=!0),g===void 0&&(g=!1),this.expression=h,this.dayOfWeekStartIndexZero=f,this.monthStartIndexZero=g}return c.prototype.parse=function(){var h,f,g=(h=this.expression)!==null&&h!==void 0?h:"";if(g.startsWith("@")){var v=this.parseSpecial(this.expression);f=this.extractParts(v)}else f=this.extractParts(this.expression);return this.normalize(f),this.validate(f),f},c.prototype.parseSpecial=function(h){var f={"@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 * * * *"},g=f[h];if(!g)throw new Error("Unknown special expression.");return g},c.prototype.extractParts=function(h){if(!this.expression)throw new Error("cron expression is empty");for(var f=h.trim().split(/[ ]+/),g=0;g7)throw new Error("Expression has ".concat(f.length," parts; too many!"));return f},c.prototype.normalize=function(h){var f=this;if(h[3]=h[3].replace("?","*"),h[5]=h[5].replace("?","*"),h[2]=h[2].replace("?","*"),h[0].indexOf("0/")==0&&(h[0]=h[0].replace("0/","*/")),h[1].indexOf("0/")==0&&(h[1]=h[1].replace("0/","*/")),h[2].indexOf("0/")==0&&(h[2]=h[2].replace("0/","*/")),h[3].indexOf("1/")==0&&(h[3]=h[3].replace("1/","*/")),h[4].indexOf("1/")==0&&(h[4]=h[4].replace("1/","*/")),h[6].indexOf("1/")==0&&(h[6]=h[6].replace("1/","*/")),h[5]=h[5].replace(/(^\d)|([^#/\s]\d)/g,function($){var k=$.replace(/\D/,""),T=k;return f.dayOfWeekStartIndexZero?k=="7"&&(T="0"):T=(parseInt(k)-1).toString(),$.replace(k,T)}),h[5]=="L"&&(h[5]="6"),h[3]=="?"&&(h[3]="*"),h[3].indexOf("W")>-1&&(h[3].indexOf(",")>-1||h[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 g={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var v in g)h[5]=h[5].replace(new RegExp(v,"gi"),g[v].toString());h[4]=h[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function($){var k=$.replace(/\D/,""),T=k;return f.monthStartIndexZero&&(T=(parseInt(k)+1).toString()),$.replace(k,T)});var S={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 _ in S)h[4]=h[4].replace(new RegExp(_,"gi"),S[_].toString());h[0]=="0"&&(h[0]=""),!/\*|\-|\,|\//.test(h[2])&&(/\*|\//.test(h[1])||/\*|\//.test(h[0]))&&(h[2]+="-".concat(h[2]));for(var b=0;b-1&&!/^\*|\-|\,/.test(h[b])){var y=null;switch(b){case 4:y="12";break;case 5:y="6";break;case 6:y="9999";break;default:y=null;break}if(y!==null){var w=h[b].split("/");h[b]="".concat(w[0],"-").concat(y,"/").concat(w[1])}}},c.prototype.validate=function(h){this.assertNoInvalidCharacters("DOW",h[5]),this.assertNoInvalidCharacters("DOM",h[3]),this.validateRange(h)},c.prototype.validateRange=function(h){d.default.secondRange(h[0]),d.default.minuteRange(h[1]),d.default.hourRange(h[2]),d.default.dayOfMonthRange(h[3]),d.default.monthRange(h[4],this.monthStartIndexZero),d.default.dayOfWeekRange(h[5],this.dayOfWeekStartIndexZero)},c.prototype.assertNoInvalidCharacters=function(h,f){var g=f.match(/[A-KM-VX-Z]+/gi);if(g&&g.length)throw new Error("".concat(h," part contains invalid values: '").concat(g.toString(),"'"))},c}();i.CronParser=u},333:(s,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ExpressionDescriptor=void 0;var d=l(823),u=l(949),c=function(){function h(f,g){if(this.expression=f,this.options=g,this.expressionParts=new Array(5),!this.options.locale&&h.defaultLocale&&(this.options.locale=h.defaultLocale),!h.locales[this.options.locale]){var v=Object.keys(h.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(v,"'.")),this.options.locale=v}this.i18n=h.locales[this.options.locale],g.use24HourTimeFormat===void 0&&(g.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return h.toString=function(f,g){var v=g===void 0?{}:g,S=v.throwExceptionOnParseError,_=S===void 0?!0:S,b=v.verbose,y=b===void 0?!1:b,w=v.dayOfWeekStartIndexZero,$=w===void 0?!0:w,k=v.monthStartIndexZero,T=k===void 0?!1:k,O=v.use24HourTimeFormat,D=v.locale,x=D===void 0?null:D,A=v.tzOffset,R=A===void 0?0:A,I={throwExceptionOnParseError:_,verbose:y,dayOfWeekStartIndexZero:$,monthStartIndexZero:T,use24HourTimeFormat:O,locale:x,tzOffset:R},j=new h(f,I);return j.getFullDescription()},h.initialize=function(f,g){g===void 0&&(g="en"),h.specialCharacters=["/","-",",","*"],h.defaultLocale=g,f.load(h.locales)},h.prototype.getFullDescription=function(){var f="";try{var g=new u.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=g.parse();var v=this.getTimeOfDayDescription(),S=this.getDayOfMonthDescription(),_=this.getMonthDescription(),b=this.getDayOfWeekDescription(),y=this.getYearDescription();f+=v+S+b+_+y,f=this.transformVerbosity(f,!!this.options.verbose),f=f.charAt(0).toLocaleUpperCase()+f.substr(1)}catch(w){if(!this.options.throwExceptionOnParseError)f=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(w)}return f},h.prototype.getTimeOfDayDescription=function(){var f=this.expressionParts[0],g=this.expressionParts[1],v=this.expressionParts[2],S="";if(!d.StringUtilities.containsAny(g,h.specialCharacters)&&!d.StringUtilities.containsAny(v,h.specialCharacters)&&!d.StringUtilities.containsAny(f,h.specialCharacters))S+=this.i18n.atSpace()+this.formatTime(v,g,f);else if(!f&&g.indexOf("-")>-1&&!(g.indexOf(",")>-1)&&!(g.indexOf("/")>-1)&&!d.StringUtilities.containsAny(v,h.specialCharacters)){var _=g.split("-");S+=d.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(v,_[0],""),this.formatTime(v,_[1],""))}else if(!f&&v.indexOf(",")>-1&&v.indexOf("-")==-1&&v.indexOf("/")==-1&&!d.StringUtilities.containsAny(g,h.specialCharacters)){var b=v.split(",");S+=this.i18n.at();for(var y=0;y1){var _=S[S.length-1].index;v=v.substring(0,_)+":59"+v.substring(_+3)}}return v},h.prototype.getDayOfWeekDescription=function(){var f=this,g=this.i18n.daysOfTheWeek(),v=null;return this.expressionParts[5]=="*"?v="":v=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(S,_){var b=S;S.indexOf("#")>-1?b=S.substring(0,S.indexOf("#")):S.indexOf("L")>-1&&(b=b.replace("L",""));var y=parseInt(b);if(f.options.tzOffset){var w=f.expressionParts[2],$=parseInt(w)+(f.options.tzOffset?f.options.tzOffset:0);$>=24?y++:$<0&&y--,y>6?y=0:y<0&&(y=6)}var k=f.i18n.daysOfTheWeekInCase?f.i18n.daysOfTheWeekInCase(_)[y]:g[y];if(S.indexOf("#")>-1){var T=null,O=S.substring(S.indexOf("#")+1),D=S.substring(0,S.indexOf("#"));switch(O){case"1":T=f.i18n.first(D);break;case"2":T=f.i18n.second(D);break;case"3":T=f.i18n.third(D);break;case"4":T=f.i18n.fourth(D);break;case"5":T=f.i18n.fifth(D);break}k=T+" "+k}return k},function(S){return parseInt(S)==1?"":d.StringUtilities.format(f.i18n.commaEveryX0DaysOfTheWeek(S),S)},function(S){var _=S.substring(0,S.indexOf("-")),b=f.expressionParts[3]!="*";return b?f.i18n.commaAndX0ThroughX1(_):f.i18n.commaX0ThroughX1(_)},function(S){var _=null;if(S.indexOf("#")>-1){var b=S.substring(S.indexOf("#")+1),y=S.substring(0,S.indexOf("#"));_=f.i18n.commaOnThe(b,y).trim()+f.i18n.spaceX0OfTheMonth()}else if(S.indexOf("L")>-1)_=f.i18n.commaOnTheLastX0OfTheMonth(S.replace("L",""));else{var w=f.expressionParts[3]!="*";_=w?f.i18n.commaAndOnX0():f.i18n.commaOnlyOnX0(S)}return _}),v},h.prototype.getMonthDescription=function(){var f=this,g=this.i18n.monthsOfTheYear(),v=this.getSegmentDescription(this.expressionParts[4],"",function(S,_){return _&&f.i18n.monthsOfTheYearInCase?f.i18n.monthsOfTheYearInCase(_)[parseInt(S)-1]:g[parseInt(S)-1]},function(S){return parseInt(S)==1?"":d.StringUtilities.format(f.i18n.commaEveryX0Months(S),S)},function(S){return f.i18n.commaMonthX0ThroughMonthX1()||f.i18n.commaX0ThroughX1()},function(S){return f.i18n.commaOnlyInMonthX0?f.i18n.commaOnlyInMonthX0():f.i18n.commaOnlyInX0()});return v},h.prototype.getDayOfMonthDescription=function(){var f=this,g=null,v=this.expressionParts[3];switch(v){case"L":g=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":g=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var S=v.match(/(\d{1,2}W)|(W\d{1,2})/);if(S){var _=parseInt(S[0].replace("W","")),b=_==1?this.i18n.firstWeekday():d.StringUtilities.format(this.i18n.weekdayNearestDayX0(),_.toString());g=d.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),b);break}else{var y=v.match(/L-(\d{1,2})/);if(y){var w=y[1];g=d.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(w),w);break}else{if(v=="*"&&this.expressionParts[5]!="*")return"";g=this.getSegmentDescription(v,this.i18n.commaEveryDay(),function($){return $=="L"?f.i18n.lastDay():f.i18n.dayX0?d.StringUtilities.format(f.i18n.dayX0(),$):$},function($){return $=="1"?f.i18n.commaEveryDay():f.i18n.commaEveryX0Days($)},function($){return f.i18n.commaBetweenDayX0AndX1OfTheMonth($)},function($){return f.i18n.commaOnDayX0OfTheMonth($)})}break}}return g},h.prototype.getYearDescription=function(){var f=this,g=this.getSegmentDescription(this.expressionParts[6],"",function(v){return/^\d+$/.test(v)?new Date(parseInt(v),1).getFullYear().toString():v},function(v){return d.StringUtilities.format(f.i18n.commaEveryX0Years(v),v)},function(v){return f.i18n.commaYearX0ThroughYearX1()||f.i18n.commaX0ThroughX1()},function(v){return f.i18n.commaOnlyInYearX0?f.i18n.commaOnlyInYearX0():f.i18n.commaOnlyInX0()});return g},h.prototype.getSegmentDescription=function(f,g,v,S,_,b){var y=null,w=f.indexOf("/")>-1,$=f.indexOf("-")>-1,k=f.indexOf(",")>-1;if(!f)y="";else if(f==="*")y=g;else if(!w&&!$&&!k)y=d.StringUtilities.format(b(f),v(f));else if(k){for(var T=f.split(","),O="",D=0;D0&&T.length>2&&(O+=",",D0&&T.length>1&&(D==T.length-1||T.length==2)&&(O+="".concat(this.i18n.spaceAnd()," ")),T[D].indexOf("/")>-1||T[D].indexOf("-")>-1){var x=T[D].indexOf("-")>-1&&T[D].indexOf("/")==-1,A=this.getSegmentDescription(T[D],g,v,S,x?this.i18n.commaX0ThroughX1:_,b);x&&(A=A.replace(", ","")),O+=A}else w?O+=this.getSegmentDescription(T[D],g,v,S,_,b):O+=v(T[D]);w?y=O:y=d.StringUtilities.format(b(f),O)}else if(w){var T=f.split("/");if(y=d.StringUtilities.format(S(T[1]),T[1]),T[0].indexOf("-")>-1){var R=this.generateRangeSegmentDescription(T[0],_,v);R.indexOf(", ")!=0&&(y+=", "),y+=R}else if(T[0].indexOf("*")==-1){var I=d.StringUtilities.format(b(T[0]),v(T[0]));I=I.replace(", ",""),y+=d.StringUtilities.format(this.i18n.commaStartingX0(),I)}}else $&&(y=this.generateRangeSegmentDescription(f,_,v));return y},h.prototype.generateRangeSegmentDescription=function(f,g,v){var S="",_=f.split("-"),b=v(_[0],1),y=v(_[1],2),w=g(f);return S+=d.StringUtilities.format(w,b,y),S},h.prototype.formatTime=function(f,g,v){var S=0,_=0;this.options.tzOffset&&(S=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),_=parseFloat((this.options.tzOffset%1).toFixed(2)),_!=0&&(_*=60));var b=parseInt(f)+S,y=parseInt(g)+_;y>=60?(y-=60,b+=1):y<0&&(y+=60,b-=1),b>=24?b=b-24:b<0&&(b=24+b);var w="",$=!1;this.options.use24HourTimeFormat||($=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),w=$?"".concat(this.getPeriod(b)," "):" ".concat(this.getPeriod(b)),b>12&&(b-=12),b===0&&(b=12));var k="";return v&&(k=":".concat(("00"+v).substring(v.length))),"".concat($?w:"").concat(("00"+b.toString()).substring(b.toString().length),":").concat(("00"+y.toString()).substring(y.toString().length)).concat(k).concat($?"":w)},h.prototype.transformVerbosity=function(f,g){return g||(f=f.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),f=f.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),f=f.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),f=f.replace(/\, ?$/,"")),f},h.prototype.getPeriod=function(f){return f>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},h.locales={},h}();i.ExpressionDescriptor=c},747:(s,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.enLocaleLoader=void 0;var d=l(486),u=function(){function c(){}return c.prototype.load=function(h){h.en=new d.en},c}();i.enLocaleLoader=u},486:(s,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.en=void 0;var l=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!1},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},d.prototype.everyMinute=function(){return"every minute"},d.prototype.everyHour=function(){return"every hour"},d.prototype.atSpace=function(){return"At "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},d.prototype.at=function(){return"At"},d.prototype.spaceAnd=function(){return" and"},d.prototype.everySecond=function(){return"every second"},d.prototype.everyX0Seconds=function(){return"every %s seconds"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},d.prototype.everyX0Minutes=function(){return"every %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},d.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},d.prototype.everyX0Hours=function(){return"every %s hours"},d.prototype.betweenX0AndX1=function(){return"between %s and %s"},d.prototype.atX0=function(){return"at %s"},d.prototype.commaEveryDay=function(){return", every day"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},d.prototype.commaX0ThroughX1=function(){return", %s through %s"},d.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},d.prototype.first=function(){return"first"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"third"},d.prototype.fourth=function(){return"fourth"},d.prototype.fifth=function(){return"fifth"},d.prototype.commaOnThe=function(){return", on the "},d.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},d.prototype.lastDay=function(){return"the last day"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},d.prototype.commaOnlyOnX0=function(){return", only on %s"},d.prototype.commaAndOnX0=function(){return", and on %s"},d.prototype.commaEveryX0Months=function(){return", every %s months"},d.prototype.commaOnlyInX0=function(){return", only in %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},d.prototype.firstWeekday=function(){return"first weekday"},d.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},d.prototype.commaEveryX0Days=function(){return", every %s days"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},d.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},d.prototype.commaEveryHour=function(){return", every hour"},d.prototype.commaEveryX0Years=function(){return", every %s years"},d.prototype.commaStartingX0=function(){return", starting %s"},d.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},d.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},d}();i.en=l},515:(s,i)=>{Object.defineProperty(i,"__esModule",{value:!0});function l(u,c){if(!u)throw new Error(c)}var d=function(){function u(){}return u.secondRange=function(c){for(var h=c.split(","),f=0;f=0&&g<=59,"seconds part must be >= 0 and <= 59")}},u.minuteRange=function(c){for(var h=c.split(","),f=0;f=0&&g<=59,"minutes part must be >= 0 and <= 59")}},u.hourRange=function(c){for(var h=c.split(","),f=0;f=0&&g<=23,"hours part must be >= 0 and <= 23")}},u.dayOfMonthRange=function(c){for(var h=c.split(","),f=0;f=1&&g<=31,"DOM part must be >= 1 and <= 31")}},u.monthRange=function(c,h){for(var f=c.split(","),g=0;g=1&&v<=12,h?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},u.dayOfWeekRange=function(c,h){for(var f=c.split(","),g=0;g=0&&v<=6,h?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},u}();i.default=d},823:(s,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.StringUtilities=void 0;var l=function(){function d(){}return d.format=function(u){for(var c=[],h=1;h-1})},d}();i.StringUtilities=l}},o={};function r(s){var i=o[s];if(i!==void 0)return i.exports;var l=o[s]={exports:{}};return n[s](l,l.exports,r),l.exports}var a={};return(()=>{var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0;var i=r(333),l=r(747);i.ExpressionDescriptor.initialize(new l.enLocaleLoader),s.default=i.ExpressionDescriptor;var d=i.ExpressionDescriptor.toString;s.toString=d})(),a})())}(Xv)),Xv.exports}var Cat=ha();const $at=Xm(Cat);var kat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha())})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.fr=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.everyMinute=function(){return"toutes les minutes"},c.prototype.everyHour=function(){return"toutes les heures"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},c.prototype.atSpace=function(){return"À "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},c.prototype.at=function(){return"À"},c.prototype.spaceAnd=function(){return" et"},c.prototype.everySecond=function(){return"toutes les secondes"},c.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},c.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},c.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},c.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},c.prototype.everyX0Hours=function(){return"toutes les %s heures"},c.prototype.betweenX0AndX1=function(){return"de %s à %s"},c.prototype.atX0=function(){return"à %s"},c.prototype.commaEveryDay=function(){return", tous les jours"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},c.prototype.commaX0ThroughX1=function(){return", de %s à %s"},c.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},c.prototype.first=function(){return"premier"},c.prototype.second=function(){return"second"},c.prototype.third=function(){return"troisième"},c.prototype.fourth=function(){return"quatrième"},c.prototype.fifth=function(){return"cinquième"},c.prototype.commaOnThe=function(){return", le "},c.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},c.prototype.lastDay=function(){return"le dernier jour"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},c.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},c.prototype.commaAndOnX0=function(){return", et %s"},c.prototype.commaEveryX0Months=function(){return", tous les %s mois"},c.prototype.commaOnlyInX0=function(){return", uniquement en %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},c.prototype.firstWeekday=function(){return"premier jour ouvrable"},c.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},c.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},c.prototype.commaEveryX0Days=function(){return", tous les %s jours"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},c.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},c.prototype.commaEveryX0Years=function(){return", tous les %s ans"},c.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},c.prototype.commaStartingX0=function(){return", à partir de %s"},c.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},c.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},c}();return d.fr=u,l().locales.fr=new u,s})())})(kat);var Eat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha())})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.es=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.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."},c.prototype.at=function(){return"A las"},c.prototype.atSpace=function(){return"A las "},c.prototype.atX0=function(){return"a las %s"},c.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},c.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},c.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},c.prototype.commaEveryDay=function(){return", cada día"},c.prototype.commaEveryX0Days=function(){return", cada %s días"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},c.prototype.commaEveryX0Months=function(){return", cada %s meses"},c.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},c.prototype.commaOnlyInX0=function(){return", sólo en %s"},c.prototype.commaOnlyOnX0=function(){return", sólo el %s"},c.prototype.commaAndOnX0=function(){return", y el %s"},c.prototype.commaOnThe=function(){return", en el "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},c.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},c.prototype.commaX0ThroughX1=function(){return", de %s a %s"},c.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},c.prototype.everyHour=function(){return"cada hora"},c.prototype.everyMinute=function(){return"cada minuto"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},c.prototype.everySecond=function(){return"cada segundo"},c.prototype.everyX0Hours=function(){return"cada %s horas"},c.prototype.everyX0Minutes=function(){return"cada %s minutos"},c.prototype.everyX0Seconds=function(){return"cada %s segundos"},c.prototype.fifth=function(){return"quinto"},c.prototype.first=function(){return"primero"},c.prototype.firstWeekday=function(){return"primer día de la semana"},c.prototype.fourth=function(){return"cuarto"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},c.prototype.second=function(){return"segundo"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},c.prototype.spaceAnd=function(){return" y"},c.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},c.prototype.lastDay=function(){return"el último día"},c.prototype.third=function(){return"tercer"},c.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},c.prototype.commaEveryX0Years=function(){return", cada %s años"},c.prototype.commaStartingX0=function(){return", comenzando %s"},c.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},c.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},c}();return d.es=u,l().locales.es=new u,s})())})(Eat);var Tat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha())})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.de=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.everyMinute=function(){return"jede Minute"},c.prototype.everyHour=function(){return"jede Stunde"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},c.prototype.atSpace=function(){return"Um "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},c.prototype.at=function(){return"Um"},c.prototype.spaceAnd=function(){return" und"},c.prototype.everySecond=function(){return"Jede Sekunde"},c.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},c.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},c.prototype.everyX0Minutes=function(){return"alle %s Minuten"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},c.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},c.prototype.everyX0Hours=function(){return"alle %s Stunden"},c.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},c.prototype.atX0=function(){return"um %s"},c.prototype.commaEveryDay=function(){return", jeden Tag"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},c.prototype.commaX0ThroughX1=function(){return", %s bis %s"},c.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},c.prototype.first=function(){return"ersten"},c.prototype.second=function(){return"zweiten"},c.prototype.third=function(){return"dritten"},c.prototype.fourth=function(){return"vierten"},c.prototype.fifth=function(){return"fünften"},c.prototype.commaOnThe=function(){return", am "},c.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},c.prototype.lastDay=function(){return"der letzte Tag"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},c.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},c.prototype.commaAndOnX0=function(){return", und jeden %s"},c.prototype.commaEveryX0Months=function(){return", alle %s Monate"},c.prototype.commaOnlyInX0=function(){return", nur im %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},c.prototype.firstWeekday=function(){return"ersten Werktag"},c.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},c.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},c.prototype.commaEveryX0Days=function(){return", alle %s Tage"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},c.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},c.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},c.prototype.commaStartingX0=function(){return", beginnend %s"},c.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},c.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},c}();return d.de=u,l().locales.de=new u,s})())})(Tat);var Oat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha())})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.it=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},c.prototype.at=function(){return"Alle"},c.prototype.atSpace=function(){return"Alle "},c.prototype.atX0=function(){return"alle %s"},c.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},c.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},c.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},c.prototype.commaEveryDay=function(){return", ogni giorno"},c.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},c.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},c.prototype.commaEveryX0Years=function(){return", ogni %s anni"},c.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},c.prototype.commaOnlyInX0=function(){return", solo in %s"},c.prototype.commaOnlyOnX0=function(){return", solo il %s"},c.prototype.commaAndOnX0=function(){return", e il %s"},c.prototype.commaOnThe=function(){return", il "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},c.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},c.prototype.commaX0ThroughX1=function(){return", %s al %s"},c.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},c.prototype.everyHour=function(){return"ogni ora"},c.prototype.everyMinute=function(){return"ogni minuto"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},c.prototype.everySecond=function(){return"ogni secondo"},c.prototype.everyX0Hours=function(){return"ogni %s ore"},c.prototype.everyX0Minutes=function(){return"ogni %s minuti"},c.prototype.everyX0Seconds=function(){return"ogni %s secondi"},c.prototype.fifth=function(){return"quinto"},c.prototype.first=function(){return"primo"},c.prototype.firstWeekday=function(){return"primo giorno della settimana"},c.prototype.fourth=function(){return"quarto"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},c.prototype.second=function(){return"secondo"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},c.prototype.spaceAnd=function(){return" e"},c.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},c.prototype.lastDay=function(){return"l'ultimo giorno"},c.prototype.third=function(){return"terzo"},c.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},c.prototype.commaStartingX0=function(){return", a partire %s"},c.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},c.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},c}();return d.it=u,l().locales.it=new u,s})())})(Oat);var Dat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha())})(globalThis,n=>(()=>{var o={93:f=>{f.exports=n}},r={};function a(f){var g=r[f];if(g!==void 0)return g.exports;var v=r[f]={exports:{}};return o[f](v,v.exports,a),v.exports}a.n=f=>{var g=f&&f.__esModule?()=>f.default:()=>f;return a.d(g,{a:g}),g},a.d=(f,g)=>{for(var v in g)a.o(g,v)&&!a.o(f,v)&&Object.defineProperty(f,v,{enumerable:!0,get:g[v]})},a.o=(f,g)=>Object.prototype.hasOwnProperty.call(f,g),a.r=f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.ru=void 0;var u=function(f,g){var v=Number(f);return v!==void 0?g[v%100>4&&v%100<20?2:[2,0,1,1,1,2][v%10<5?Math.abs(v)%10:5]]:g[2]},c=function(f,g){var v=Number(f);return v!==void 0?g[v===0?0:v===1||v===2||v===4?1:2]:g[1]},h=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!0},f.prototype.everyMinute=function(){return"каждую минуту"},f.prototype.everyHour=function(){return"каждый час"},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},f.prototype.atSpace=function(){return"В "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},f.prototype.at=function(){return"В"},f.prototype.spaceAnd=function(){return" и"},f.prototype.everySecond=function(){return"каждую секунду"},f.prototype.everyX0Seconds=function(g){return u(g,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},f.prototype.atX0SecondsPastTheMinute=function(g){return u(g,["в %s секунду","в %s секунды","в %s секунд"])},f.prototype.everyX0Minutes=function(g){return u(g,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},f.prototype.atX0MinutesPastTheHour=function(g){return u(g,["в %s минуту","в %s минуты","в %s минут"])},f.prototype.everyX0Hours=function(g){return u(g,["каждый %s час","каждые %s часа","каждые %s часов"])},f.prototype.betweenX0AndX1=function(){return"с %s по %s"},f.prototype.atX0=function(){return"в %s"},f.prototype.commaEveryDay=function(){return", каждый день"},f.prototype.commaEveryX0DaysOfTheWeek=function(g){return u(g,["",", каждые %s дня недели",", каждые %s дней недели"])},f.prototype.commaX0ThroughX1=function(g){return g&&(g[0]=="2"||g[0]=="3")?", со %s по %s":", с %s по %s"},f.prototype.commaAndX0ThroughX1=function(g){return g&&(g[0]=="2"||g[0]=="3")?" и со %s по %s":" и с %s по %s"},f.prototype.first=function(g){return c(g,["первое","первый","первую"])},f.prototype.second=function(g){return c(g,["второе","второй","вторую"])},f.prototype.third=function(g){return c(g,["третье","третий","третью"])},f.prototype.fourth=function(g){return c(g,["четвертое","четвертый","четвертую"])},f.prototype.fifth=function(g){return c(g,["пятое","пятый","пятую"])},f.prototype.commaOnThe=function(g){return g==="2"?", во ":", в "},f.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},f.prototype.lastDay=function(){return"последний день"},f.prototype.commaOnTheLastX0OfTheMonth=function(g){return c(g,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},f.prototype.commaOnlyOnX0=function(g){return g&&g[0]==="2"?", только во %s":", только в %s"},f.prototype.commaAndOnX0=function(){return", и %s"},f.prototype.commaEveryX0Months=function(g){return u(g,[""," каждые %s месяца"," каждые %s месяцев"])},f.prototype.commaOnlyInMonthX0=function(){return", только %s"},f.prototype.commaOnlyInX0=function(){return", только в %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(g){return u(g,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},f.prototype.firstWeekday=function(){return"первый будний день"},f.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},f.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},f.prototype.commaEveryX0Days=function(g){return u(g,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(g){return g&&g.substring(0,g.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},f.prototype.commaOnDayX0OfTheMonth=function(g){return g&&g[0]=="2"?", во %s число месяца":", в %s число месяца"},f.prototype.commaEveryX0Years=function(g){return u(g,[", каждый %s год",", каждые %s года",", каждые %s лет"])},f.prototype.commaStartingX0=function(){return", начало %s"},f.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},f.prototype.daysOfTheWeekInCase=function(g){return g===void 0&&(g=2),g==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},f.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},f.prototype.monthsOfTheYearInCase=function(g){return g==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},f}();return d.ru=h,l().locales.ru=new h,s})())})(Dat);var Aat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha())})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.zh_CN=void 0;var u=function(){function c(){}return c.prototype.setPeriodBeforeTime=function(){return!0},c.prototype.pm=function(){return"下午"},c.prototype.am=function(){return"上午"},c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},c.prototype.use24HourTimeFormatByDefault=function(){return!1},c.prototype.everyMinute=function(){return"每分钟"},c.prototype.everyHour=function(){return"每小时"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},c.prototype.atSpace=function(){return"在"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},c.prototype.at=function(){return"在"},c.prototype.spaceAnd=function(){return" 和"},c.prototype.everySecond=function(){return"每秒"},c.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},c.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},c.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},c.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},c.prototype.everyX0Hours=function(){return"每隔 %s 小时"},c.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},c.prototype.atX0=function(){return"在%s"},c.prototype.commaEveryDay=function(){return", 每天"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},c.prototype.commaX0ThroughX1=function(){return", %s至%s"},c.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},c.prototype.first=function(){return"第一个"},c.prototype.second=function(){return"第二个"},c.prototype.third=function(){return"第三个"},c.prototype.fourth=function(){return"第四个"},c.prototype.fifth=function(){return"第五个"},c.prototype.commaOnThe=function(){return", 限每月的"},c.prototype.spaceX0OfTheMonth=function(){return"%s"},c.prototype.lastDay=function(){return"本月最后一天"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},c.prototype.commaOnlyOnX0=function(){return", 仅%s"},c.prototype.commaAndOnX0=function(){return", 或者为%s"},c.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},c.prototype.commaOnlyInX0=function(){return", 仅限%s"},c.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},c.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},c.prototype.firstWeekday=function(){return"第一个工作日"},c.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},c.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},c.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},c.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},c.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},c.prototype.commaStartingX0=function(){return", %s开始"},c.prototype.dayX0=function(){return" %s 号"},c.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},c.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},c}();return d.zh_CN=u,l().locales.zh_CN=new u,s})())})(Aat);var Mat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha())})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.uk=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.everyMinute=function(){return"щохвилини"},c.prototype.everyHour=function(){return"щогодини"},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},c.prototype.atSpace=function(){return"О "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},c.prototype.at=function(){return"О"},c.prototype.spaceAnd=function(){return" та"},c.prototype.everySecond=function(){return"Щосекунди"},c.prototype.everyX0Seconds=function(){return"кожні %s секунд"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},c.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},c.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},c.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},c.prototype.everyX0Hours=function(){return"кожні %s годин"},c.prototype.betweenX0AndX1=function(){return"між %s та %s"},c.prototype.atX0=function(){return"о %s"},c.prototype.commaEveryDay=function(){return", щоденно"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},c.prototype.commaX0ThroughX1=function(){return", %s по %s"},c.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},c.prototype.first=function(){return"перший"},c.prototype.second=function(){return"другий"},c.prototype.third=function(){return"третій"},c.prototype.fourth=function(){return"четвертий"},c.prototype.fifth=function(){return"п'ятий"},c.prototype.commaOnThe=function(){return", в "},c.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},c.prototype.lastDay=function(){return"останній день"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},c.prototype.commaOnlyOnX0=function(){return", тільки в %s"},c.prototype.commaAndOnX0=function(){return", і в %s"},c.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},c.prototype.commaOnlyInX0=function(){return", тільки в %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},c.prototype.firstWeekday=function(){return"перший будень"},c.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},c.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},c.prototype.commaEveryX0Days=function(){return", кожен %s день"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},c.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},c.prototype.commaEveryX0Years=function(){return", кожні %s роки"},c.prototype.commaStartingX0=function(){return", початок %s"},c.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},c.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},c}();return d.uk=u,l().locales.uk=new u,s})())})(Mat);var Nat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha())})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.pt_BR=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},c.prototype.at=function(){return"às"},c.prototype.atSpace=function(){return"às "},c.prototype.atX0=function(){return"Às %s"},c.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},c.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},c.prototype.betweenX0AndX1=function(){return"entre %s e %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},c.prototype.commaEveryDay=function(){return", a cada dia"},c.prototype.commaEveryX0Days=function(){return", a cada %s dias"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},c.prototype.commaEveryX0Months=function(){return", a cada %s meses"},c.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},c.prototype.commaOnlyInX0=function(h){return h&&h.length>1&&h[1]==="-"?"somente %s":", somente em %s"},c.prototype.commaOnlyOnX0=function(h){return h&&h.length>1&&h[1]==="-"?", somente %s":", somente de %s"},c.prototype.commaAndOnX0=function(){return", e de %s"},c.prototype.commaOnThe=function(h,f){return f==="6"||f==="0"?", no":", na "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},c.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},c.prototype.commaX0ThroughX1=function(){return", de %s a %s"},c.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},c.prototype.everyHour=function(){return"a cada hora"},c.prototype.everyMinute=function(){return"a cada minuto"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},c.prototype.everySecond=function(){return"a cada segundo"},c.prototype.everyX0Hours=function(){return"a cada %s horas"},c.prototype.everyX0Minutes=function(){return"a cada %s minutos"},c.prototype.everyX0Seconds=function(){return"a cada %s segundos"},c.prototype.fifth=function(h){return h==="6"||h==="0"?"quinto":"quinta"},c.prototype.first=function(h){return h==="6"||h==="0"?"primeiro":"primeira"},c.prototype.firstWeekday=function(){return"primeiro dia da semana"},c.prototype.fourth=function(h){return h==="6"||h==="0"?"quarto":"quarta"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},c.prototype.second=function(h){return h==="6"||h==="0"?"segundo":"segunda"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},c.prototype.spaceAnd=function(){return" e"},c.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},c.prototype.lastDay=function(){return"o último dia"},c.prototype.third=function(h){return h==="6"||h==="0"?"terceiro":"terceira"},c.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},c.prototype.commaEveryX0Years=function(){return", a cada %s anos"},c.prototype.commaStartingX0=function(){return", iniciando %s"},c.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},c.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},c}();return d.pt_BR=u,l().locales.pt_BR=new u,s})())})(Nat);var jat={exports:{}};(function(e,t){(function(o,r){e.exports=r(ha())})(globalThis,n=>(()=>{var o={93:c=>{c.exports=n}},r={};function a(c){var h=r[c];if(h!==void 0)return h.exports;var f=r[c]={exports:{}};return o[c](f,f.exports,a),f.exports}a.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return a.d(h,{a:h}),h},a.d=(c,h)=>{for(var f in h)a.o(h,f)&&!a.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:h[f]})},a.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),a.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};a.r(s);var i=a(93),l=a.n(i),d=s;Object.defineProperty(d,"__esModule",{value:!0}),d.pl=void 0;var u=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!0},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},c.prototype.at=function(){return"O"},c.prototype.atSpace=function(){return"O "},c.prototype.atX0=function(){return"o %s"},c.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},c.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},c.prototype.betweenX0AndX1=function(){return"od %s do %s"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},c.prototype.commaEveryDay=function(){return", co dzień"},c.prototype.commaEveryX0Days=function(){return", co %s dni"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},c.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},c.prototype.commaEveryX0Years=function(){return", co %s lat"},c.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},c.prototype.commaOnlyInX0=function(){return", tylko %s"},c.prototype.commaOnlyOnX0=function(){return", tylko %s"},c.prototype.commaAndOnX0=function(){return", i %s"},c.prototype.commaOnThe=function(){return", "},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},c.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},c.prototype.commaX0ThroughX1=function(){return", od %s do %s"},c.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},c.prototype.everyHour=function(){return"co godzinę"},c.prototype.everyMinute=function(){return"co minutę"},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},c.prototype.everySecond=function(){return"co sekundę"},c.prototype.everyX0Hours=function(){return"co %s godzin"},c.prototype.everyX0Minutes=function(){return"co %s minut"},c.prototype.everyX0Seconds=function(){return"co %s sekund"},c.prototype.fifth=function(){return"piąty"},c.prototype.first=function(){return"pierwszy"},c.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},c.prototype.fourth=function(){return"czwarty"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},c.prototype.second=function(){return"drugi"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},c.prototype.spaceAnd=function(){return" i"},c.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},c.prototype.lastDay=function(){return"ostatni dzień"},c.prototype.third=function(){return"trzeci"},c.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},c.prototype.commaStartingX0=function(){return", startowy %s"},c.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},c.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},c}();return d.pl=u,l().locales.pl=new u,s})())})(jat);function TA(e,t){return $at.toString(e,{locale:t})}const io={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},zat=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Rat=["January","February","March","April","May","June","July","August","September","October","November","December"];function Jk(e,t){const n=[];if(e==="*"){if(t===24||t===60||t===7)for(let r=0;r1){const s=parseInt(a[1],10);for(let i=parseInt(a[0],10);i<=s;i++)n.push(i)}else n.push(parseInt(o[r],10))}n.sort();for(let r=n.length-1;r>=0;r--)n[r]===n[r+1]&&n.splice(r+1,1);return n}function Yk(e,t){if(typeof e!="object"&&(e=[e]),e.length===t)return"*";const n=[];if(!e.length)return"-";e=e.map(a=>parseInt(a,10)),e.sort((a,s)=>a-s);let o=e[0],r=e[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(t){t=t.replace(/['"]/g,"").trim();const n=t.split(" ").map(r=>r.trim());let o;return n.length===6?o={seconds:n[0]||"*",minutes:n[1]||"*",hours:n[2]||"*",dates:n[3]||"*",months:n[4]||"*",dow:n[5]||"*"}:o={seconds:!1,minutes:n[0]||"*",hours:n[1]||"*",dates:n[2]||"*",months:n[3]||"*",dow:n[4]||"*"},o}static state2cron(t){let n=`${t.minutes} ${t.hours} ${t.dates} ${t.months} ${t.dow}`;return t.seconds!==!1&&(n=`${t.seconds} ${n}`),n}recalcCron(){const t=ws.state2cron(this.state);t!==this.state.cron&&this.setState({cron:t},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(t,n,o){if(t===!0)this.setCronAttr(n,"*");else if(t===!1)o===60||o===24?this.setCronAttr(n,"0"):this.setCronAttr(n,"1");else{const r=Jk(this.state[n],o),a=r.indexOf(t);a!==-1?r.splice(a,1):(r.push(t),r.sort()),this.setCronAttr(n,Yk(r,o))}}getDigitsSelector(t,n){let o=[];if(n===7)o=[1,2,3,4,5,6,0];else if(n===60||n===24)for(let a=0;athis.onToggle(!1,t,n)},E.t("ra_Deselect all")),p.createElement(he,{key:"addall",variant:"contained",style:io.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,t,n)},E.t("ra_Select all")),p.createElement("div",{key:"all"},o.map(a=>[n===7&&a===4||n===12&&a===7||n===31&&!((a-1)%10)||n===60&&a&&!(a%10)||n===24&&a&&!(a%6)?p.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,p.createElement(he,{key:`_${a}`,variant:r.indexOf(a)!==-1?"contained":"outlined",style:io.numberButton,color:r.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,t,n)},n===7?E.t(zat[a]):n===12?Rat[a-1]:a)]))]}getPeriodsTab(t,n){const o=this.state[t];let r=o==="*",a=o==null?!1:o.toString().includes("/"),s;if(this.state.modes[t]===null){s=r?"every":a?"everyN":"specific";const l=JSON.parse(JSON.stringify(this.state.modes));return l[t]=s,setTimeout(()=>this.setState({modes:l},()=>this.recalcCron()),100),null}r=this.state.modes[t]==="every",a=this.state.modes[t]==="everyN",s=this.state.modes[t];let i=1;return a&&o&&(i=parseInt(o.replace("*/",""),10)||1),p.createElement("div",null,p.createElement(_n,{variant:"standard",style:{...io.periodSelect,verticalAlign:"bottom"},value:s,onChange:l=>{const d=JSON.parse(JSON.stringify(this.state.modes));if(d[t]=l.target.value,l.target.value==="every")this.setCronAttr(t,"*",d);else if(l.target.value==="everyN"){const u=parseInt((this.state[t]||"").toString().replace("*/",""),10)||1;this.setCronAttr(t,`*/${u}`,d)}else if(l.target.value==="specific"){let u=parseInt((this.state[t]||"").toString().split(",")[0],10)||0;!u&&(t==="months"||t==="dates")&&(u=1),this.setCronAttr(t,Yk(u,n),d)}}},p.createElement(je,{key:"every",value:"every"},E.t(`sc_every_${t}`)),p.createElement(je,{key:"everyN",value:"everyN"},E.t(`sc_everyN_${t}`)),p.createElement(je,{key:"specific",value:"specific"},E.t(`sc_specific_${t}`))),a&&p.createElement(st,{variant:"standard",key:"interval",label:E.t(`sc_${t}`),value:i,slotProps:{htmlInput:{min:1,max:n},inputLabel:{shrink:!0}},onChange:l=>{this.setState({[t]:`*/${l.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!r&&!a&&this.getDigitsSelector(t,n))}static convertCronToText(t,n){return t.split(" ").includes("-")?E.t("ra_Invalid CRON"):TA(t,n)}setCronAttr(t,n,o){o?t==="seconds"?this.setState({seconds:n,modes:o},()=>this.recalcCron()):t==="minutes"?this.setState({minutes:n,modes:o},()=>this.recalcCron()):t==="hours"?this.setState({hours:n,modes:o},()=>this.recalcCron()):t==="dates"?this.setState({dates:n,modes:o},()=>this.recalcCron()):t==="months"?this.setState({months:n,modes:o},()=>this.recalcCron()):t==="dow"?this.setState({dow:n,modes:o},()=>this.recalcCron()):this.setState({modes:o},()=>this.recalcCron()):t==="seconds"?this.setState({seconds:n},()=>this.recalcCron()):t==="minutes"?this.setState({minutes:n},()=>this.recalcCron()):t==="hours"?this.setState({hours:n},()=>this.recalcCron()):t==="dates"?this.setState({dates:n},()=>this.recalcCron()):t==="months"?this.setState({months:n},()=>this.recalcCron()):t==="dow"&&this.setState({dow:n},()=>this.recalcCron())}render(){const t=this.state.seconds!==!1?this.state.tab:this.state.tab+1,n=this.state.minutes==="*"||this.state.minutes==="*/1",o=this.state.seconds==="*"||this.state.seconds==="*/1";return p.createElement("div",{style:io.mainDiv},p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},p.createElement(st,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},ws.convertCronToText(this.state.cron,this.props.language||"en"),p.createElement("span",{style:io.warning},o?E.t("ra_warning_every_second"):n?E.t("ra_warning_every_minute"):"")),p.createElement(Oe,{control:p.createElement(Tt,{checked:!!this.state.seconds,onChange:r=>this.setState({seconds:r.target.checked?"*":!1},()=>this.recalcCron())}),label:E.t("ra_use seconds")}),p.createElement(e5,{position:"static",sx:{"&.MuiAppBar-root":io.appBar},color:"secondary"},p.createElement($5,{value:this.state.tab,style:io.appBar,color:"secondary",onChange:(r,a)=>this.setState({tab:a})},this.state.seconds!==!1&&p.createElement(po,{id:"sc_seconds",label:E.t("sc_seconds")}),p.createElement(po,{id:"minutes",label:E.t("sc_minutes")}),p.createElement(po,{id:"hours",label:E.t("sc_hours")}),p.createElement(po,{id:"dates",label:E.t("sc_dates")}),p.createElement(po,{id:"months",label:E.t("sc_months")}),p.createElement(po,{id:"dow",label:E.t("sc_dows")}))),t===0&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("seconds",60)),t===1&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("minutes",60)),t===2&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("hours",24)),t===3&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("dates",31)),t===4&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("months",12)),t===5&&p.createElement("div",{style:io.tabContent},this.getPeriodsTab("dow",7)))}}function sl(e,t,n,o){function r(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function i(u){try{d(o.next(u))}catch(c){s(c)}}function l(u){try{d(o.throw(u))}catch(c){s(c)}}function d(u){u.done?a(u.value):r(u.value).then(i,l)}d((o=o.apply(e,t||[])).next())})}const Iat=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 Vc(e,t,n){const o=Lat(e),{webkitRelativePath:r}=e,a=typeof t=="string"?t:typeof r=="string"&&r.length>0?r:`./${e.name}`;return typeof o.path!="string"&&Kk(o,"path",a),Kk(o,"relativePath",a),o}function Lat(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const o=t.split(".").pop().toLowerCase(),r=Iat.get(o);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function Kk(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const Fat=[".DS_Store","Thumbs.db"];function Pat(e){return sl(this,void 0,void 0,function*(){return zm(e)&&Bat(e.dataTransfer)?Vat(e.dataTransfer,e.type):Hat(e)?Uat(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?Wat(e):[]})}function Bat(e){return zm(e)}function Hat(e){return zm(e)&&zm(e.target)}function zm(e){return typeof e=="object"&&e!==null}function Uat(e){return r0(e.target.files).map(t=>Vc(t))}function Wat(e){return sl(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Vc(n))})}function Vat(e,t){return sl(this,void 0,void 0,function*(){if(e.items){const n=r0(e.items).filter(r=>r.kind==="file");if(t!=="drop")return n;const o=yield Promise.all(n.map(Gat));return Zk(OA(o))}return Zk(r0(e.files).map(n=>Vc(n)))})}function Zk(e){return e.filter(t=>Fat.indexOf(t.name)===-1)}function r0(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?OA(n):[n]],[])}function Qk(e,t){return sl(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const s=yield a.getFile();return s.handle=a,Vc(s)}}const o=e.getAsFile();if(!o)throw new Error(`${e} is not a File`);return Vc(o,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function qat(e){return sl(this,void 0,void 0,function*(){return e.isDirectory?DA(e):Xat(e)})}function DA(e){const t=e.createReader();return new Promise((n,o)=>{const r=[];function a(){t.readEntries(s=>sl(this,void 0,void 0,function*(){if(s.length){const i=Promise.all(s.map(qat));r.push(i),a()}else try{const i=yield Promise.all(r);n(i)}catch(i){o(i)}}),s=>{o(s)})}a()})}function Xat(e){return sl(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(o=>{const r=Vc(o,e.fullPath);t(r)},o=>{n(o)})})})}var Jv=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var o=e.name||"",r=(e.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return n.some(function(s){var i=s.trim().toLowerCase();return i.charAt(0)==="."?o.toLowerCase().endsWith(i):i.endsWith("/*")?a===i.replace(/\/.*$/,""):r===i})}return!0};function eE(e){return Kat(e)||Yat(e)||MA(e)||Jat()}function Jat(){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 Yat(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kat(e){if(Array.isArray(e))return a0(e)}function tE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function nE(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),o=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:nst,message:"File type must be ".concat(o)}},oE=function(t){return{code:ost,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},rE=function(t){return{code:rst,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},ist={code:ast,message:"Too many files"};function NA(e,t){var n=e.type==="application/x-moz-file"||tst(e,t);return[n,n?null:sst(t)]}function jA(e,t,n){if(ui(e.size))if(ui(t)&&ui(n)){if(e.size>n)return[!1,oE(n)];if(e.sizen)return[!1,oE(n)]}return[!0,null]}function ui(e){return e!=null}function lst(e){var t=e.files,n=e.accept,o=e.minSize,r=e.maxSize,a=e.multiple,s=e.maxFiles,i=e.validator;return!a&&t.length>1||a&&s>=1&&t.length>s?!1:t.every(function(l){var d=NA(l,n),u=pp(d,1),c=u[0],h=jA(l,o,r),f=pp(h,1),g=f[0],v=i?i(l):null;return c&&g&&!v})}function Rm(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Bh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function aE(e){e.preventDefault()}function cst(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function dst(e){return e.indexOf("Edge/")!==-1}function ust(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return cst(e)||dst(e)}function Lr(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),s=1;se.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Tst(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,a;for(a=0;a=0)&&(n[r]=e[r]);return n}var k_=C.forwardRef(function(e,t){var n=e.children,o=Im(e,_st),r=Ost(o),a=r.open,s=Im(r,vst);return C.useImperativeHandle(t,function(){return{open:a}},[a]),p.createElement(C.Fragment,null,n(Qt(Qt({},s),{},{open:a})))});k_.displayName="Dropzone";var LA={disabled:!1,getFilesFromEvent:Pat,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};k_.defaultProps=LA;k_.propTypes={children:L.func,accept:L.objectOf(L.arrayOf(L.string)),multiple:L.bool,preventDropOnDocument:L.bool,noClick:L.bool,noKeyboard:L.bool,noDrag:L.bool,noDragEventsBubbling:L.bool,minSize:L.number,maxSize:L.number,maxFiles:L.number,disabled:L.bool,getFilesFromEvent:L.func,onFileDialogCancel:L.func,onFileDialogOpen:L.func,useFsAccessApi:L.bool,autoFocus:L.bool,onDragEnter:L.func,onDragLeave:L.func,onDragOver:L.func,onDrop:L.func,onDropAccepted:L.func,onDropRejected:L.func,onError:L.func,validator:L.func};var l0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Ost(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Qt(Qt({},LA),e),n=t.accept,o=t.disabled,r=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,i=t.multiple,l=t.maxFiles,d=t.onDragEnter,u=t.onDragLeave,c=t.onDragOver,h=t.onDrop,f=t.onDropAccepted,g=t.onDropRejected,v=t.onFileDialogCancel,S=t.onFileDialogOpen,_=t.useFsAccessApi,b=t.autoFocus,y=t.preventDropOnDocument,w=t.noClick,$=t.noKeyboard,k=t.noDrag,T=t.noDragEventsBubbling,O=t.onError,D=t.validator,x=C.useMemo(function(){return fst(n)},[n]),A=C.useMemo(function(){return hst(n)},[n]),R=C.useMemo(function(){return typeof S=="function"?S:iE},[S]),I=C.useMemo(function(){return typeof v=="function"?v:iE},[v]),j=C.useRef(null),N=C.useRef(null),M=C.useReducer(Dst,l0),P=Yv(M,2),H=P[0],B=P[1],Z=H.isFocused,oe=H.isFileDialogActive,ve=C.useRef(typeof window<"u"&&window.isSecureContext&&_&&pst()),fe=function(){!ve.current&&oe&&setTimeout(function(){if(N.current){var ge=N.current.files;ge.length||(B({type:"closeDialog"}),I())}},300)};C.useEffect(function(){return window.addEventListener("focus",fe,!1),function(){window.removeEventListener("focus",fe,!1)}},[N,oe,I,ve]);var le=C.useRef([]),Se=function(ge){j.current&&j.current.contains(ge.target)||(ge.preventDefault(),le.current=[])};C.useEffect(function(){return y&&(document.addEventListener("dragover",aE,!1),document.addEventListener("drop",Se,!1)),function(){y&&(document.removeEventListener("dragover",aE),document.removeEventListener("drop",Se))}},[j,y]),C.useEffect(function(){return!o&&b&&j.current&&j.current.focus(),function(){}},[j,b,o]);var De=C.useCallback(function(K){O?O(K):console.error(K)},[O]),et=C.useCallback(function(K){K.preventDefault(),K.persist(),Xe(K),le.current=[].concat(wst(le.current),[K.target]),Bh(K)&&Promise.resolve(r(K)).then(function(ge){if(!(Rm(K)&&!T)){var Ke=ge.length,Te=Ke>0&&lst({files:ge,accept:x,minSize:s,maxSize:a,multiple:i,maxFiles:l,validator:D}),Ie=Ke>0&&!Te;B({isDragAccept:Te,isDragReject:Ie,isDragActive:!0,type:"setDraggedFiles"}),d&&d(K)}}).catch(function(ge){return De(ge)})},[r,d,De,T,x,s,a,i,l,D]),Ge=C.useCallback(function(K){K.preventDefault(),K.persist(),Xe(K);var ge=Bh(K);if(ge&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return ge&&c&&c(K),!1},[c,T]),qe=C.useCallback(function(K){K.preventDefault(),K.persist(),Xe(K);var ge=le.current.filter(function(Te){return j.current&&j.current.contains(Te)}),Ke=ge.indexOf(K.target);Ke!==-1&&ge.splice(Ke,1),le.current=ge,!(ge.length>0)&&(B({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Bh(K)&&u&&u(K))},[j,u,T]),xe=C.useCallback(function(K,ge){var Ke=[],Te=[];K.forEach(function(Ie){var Ue=NA(Ie,x),zt=Yv(Ue,2),we=zt[0],St=zt[1],yn=jA(Ie,s,a),ae=Yv(yn,2),Q=ae[0],ne=ae[1],Le=D?D(Ie):null;if(we&&Q&&!Le)Ke.push(Ie);else{var Re=[St,ne];Le&&(Re=Re.concat(Le)),Te.push({file:Ie,errors:Re.filter(function(Rt){return Rt})})}}),(!i&&Ke.length>1||i&&l>=1&&Ke.length>l)&&(Ke.forEach(function(Ie){Te.push({file:Ie,errors:[ist]})}),Ke.splice(0)),B({acceptedFiles:Ke,fileRejections:Te,isDragReject:Te.length>0,type:"setFiles"}),h&&h(Ke,Te,ge),Te.length>0&&g&&g(Te,ge),Ke.length>0&&f&&f(Ke,ge)},[B,i,x,s,a,l,h,f,g,D]),Ee=C.useCallback(function(K){K.preventDefault(),K.persist(),Xe(K),le.current=[],Bh(K)&&Promise.resolve(r(K)).then(function(ge){Rm(K)&&!T||xe(ge,K)}).catch(function(ge){return De(ge)}),B({type:"reset"})},[r,xe,De,T]),me=C.useCallback(function(){if(ve.current){B({type:"openDialog"}),R();var K={multiple:i,types:A};window.showOpenFilePicker(K).then(function(ge){return r(ge)}).then(function(ge){xe(ge,null),B({type:"closeDialog"})}).catch(function(ge){mst(ge)?(I(ge),B({type:"closeDialog"})):gst(ge)?(ve.current=!1,N.current?(N.current.value=null,N.current.click()):De(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."))):De(ge)});return}N.current&&(B({type:"openDialog"}),R(),N.current.value=null,N.current.click())},[B,R,I,_,xe,De,A,i]),ot=C.useCallback(function(K){!j.current||!j.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),me())},[j,me]),Ce=C.useCallback(function(){B({type:"focus"})},[]),ze=C.useCallback(function(){B({type:"blur"})},[]),X=C.useCallback(function(){w||(ust()?setTimeout(me,0):me())},[w,me]),ee=function(ge){return o?null:ge},$e=function(ge){return $?null:ee(ge)},Ae=function(ge){return k?null:ee(ge)},Xe=function(ge){T&&ge.stopPropagation()},Be=C.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ge=K.refKey,Ke=ge===void 0?"ref":ge,Te=K.role,Ie=K.onKeyDown,Ue=K.onFocus,zt=K.onBlur,we=K.onClick,St=K.onDragEnter,yn=K.onDragOver,ae=K.onDragLeave,Q=K.onDrop,ne=Im(K,yst);return Qt(Qt(i0({onKeyDown:$e(Lr(Ie,ot)),onFocus:$e(Lr(Ue,Ce)),onBlur:$e(Lr(zt,ze)),onClick:ee(Lr(we,X)),onDragEnter:Ae(Lr(St,et)),onDragOver:Ae(Lr(yn,Ge)),onDragLeave:Ae(Lr(ae,qe)),onDrop:Ae(Lr(Q,Ee)),role:typeof Te=="string"&&Te!==""?Te:"presentation"},Ke,j),!o&&!$?{tabIndex:0}:{}),ne)}},[j,ot,Ce,ze,X,et,Ge,qe,Ee,$,k,o]),_e=C.useCallback(function(K){K.stopPropagation()},[]),nn=C.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ge=K.refKey,Ke=ge===void 0?"ref":ge,Te=K.onChange,Ie=K.onClick,Ue=Im(K,bst),zt=i0({accept:x,multiple:i,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ee(Lr(Te,Ee)),onClick:ee(Lr(Ie,_e)),tabIndex:-1},Ke,N);return Qt(Qt({},zt),Ue)}},[N,n,i,Ee,o]);return Qt(Qt({},H),{},{isFocused:Z&&!o,getRootProps:Be,getInputProps:nn,rootRef:j,inputRef:N,open:ee(me)})}function Dst(e,t){switch(t.type){case"focus":return Qt(Qt({},e),{},{isFocused:!0});case"blur":return Qt(Qt({},e),{},{isFocused:!1});case"openDialog":return Qt(Qt({},l0),{},{isFileDialogActive:!0});case"closeDialog":return Qt(Qt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Qt(Qt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Qt(Qt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Qt({},l0);default:return e}}function iE(){}function Ast(){const e=qa();return[...e.breakpoints.keys].reverse().reduce((n,o)=>{const r=_5(e.breakpoints.up(o));return!n&&r?o:n},null)||"xs"}function E_(){return e=>function(n){const o=Ast();return p.createElement(e,{...n,width:o})}}function Mst(e){const[t,n]=p.useState(e.input||e.value||""),[o,r]=p.useState("");return p.createElement(yt,{open:!0,onClose:()=>e.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:e.fullWidth!==void 0?e.fullWidth:!1},p.createElement(bt,{id:"form-dialog-title"},e.titleText),p.createElement(jt,null,p.createElement(Ra,null,e.promptText),p.createElement(st,{variant:"standard",autoFocus:!0,margin:"dense",error:!!o,helperText:o===!0||!o?"":o,value:t,label:e.labelText||"",type:e.type||"text",onKeyUp:a=>a.code==="Enter"&&t&&e.onClose(t),onChange:a=>{let s="";e.verify&&(s=!e.verify(a.target.value)),e.rule?n(e.rule(a.target.value)):n(a.target.value),r(s)},fullWidth:!0})),p.createElement(Nt,null,p.createElement(he,{variant:"contained",disabled:!t||!!o,onClick:()=>e.onClose(t),color:"primary",startIcon:p.createElement(qn,null)},e.applyText||E.t("ra_Ok")),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>e.onClose(null),startIcon:p.createElement(Dt,null)},e.cancelText||E.t("ra_Cancel"))))}const Nst=E_()(Mst),Lm=e=>p.createElement("svg",{onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 486 486",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:e.className,style:e.style},p.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"}),p.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"})),yc=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 650 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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"})),Ef=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 650 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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"})),hS=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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 jst=e=>typeof e!="string"?{}:e.split(/ ?; ?/).reduce((t,n)=>{const[o,r]=n.split(/ ?: ?/).map((a,s)=>s===0?a.replace(/\s+/g,""):a.trim());if(o&&r){const a=o.replace(/(\w)-(\w)/g,(i,l,d)=>`${l}${d.toUpperCase()}`);let s=r.trim();Number.isNaN(Number(r))||(s=Number(r)),t[o.startsWith("-")?o:a]=s}return t},{});function zst(e=6){const t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let n="";for(let o=e;o>0;--o)n+=t[Math.round(Math.random()*(t.length-1))];return n}var Rst=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],lE={"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 Ist(e,t){var a;const{key:n,level:o,...r}=t;switch(e.nodeType){case 1:return C.createElement(Fst(e.nodeName),Lst(e,n),cE(e.childNodes,o,r));case 3:{const s=((a=e.nodeValue)==null?void 0:a.toString())??"";if(!r.allowWhiteSpaces&&/^\s+$/.test(s)&&!/[\u00A0\u202F]/.test(s))return null;if(!e.parentNode)return s;const i=e.parentNode.nodeName.toLowerCase();return Rst.includes(i)?(/\S/.test(s)&&console.warn(`A textNode is not allowed inside '${i}'. Your text "${s}" will be ignored`),null):s}case 8:return null;case 11:return cE(e.childNodes,o,t);default:return null}}function Lst(e,t){const n={key:t};if(e instanceof Element){const o=e.getAttribute("class");o&&(n.className=o),[...e.attributes].forEach(r=>{switch(r.name){case"class":break;case"style":n[r.name]=jst(r.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":n[lE[r.name]||r.name]=!0;break;default:n[lE[r.name]||r.name]=r.value}})}return n}function cE(e,t,n){const o=[...e].map((r,a)=>Fm(r,{...n,index:a,level:t+1})).filter(Boolean);return o.length?o:null}function Fst(e){return/[a-z]+[A-Z]+[a-z]+/.test(e)?e:e.toLowerCase()}function Fm(e,t={}){if(!e||!(e instanceof Node))return null;const{actions:n=[],index:o=0,level:r=0,randomKey:a}=t;let s=e,i=`${r}-${o}`;const l=[];return a&&r===0&&(i=`${zst()}-${i}`),Array.isArray(n)&&n.forEach(d=>{d.condition(s,i,r)&&(typeof d.pre=="function"&&(s=d.pre(s,i,r),s instanceof Node||(s=e)),typeof d.post=="function"&&l.push(d.post(s,i,r)))}),l.length?l:Ist(s,{key:i,level:r,...t})}function Pst(e,t={}){if(!e||typeof e!="string")return null;const{includeAllNodes:n=!1,nodeOnly:o=!1,selector:r="body > *",type:a="text/html"}=t;try{const i=new DOMParser().parseFromString(e,a);if(n){const{childNodes:d}=i.body;return o?d:[...d].map(u=>Fm(u,t))}const l=i.querySelector(r)||i.body.childNodes[0];if(!(l instanceof Node))throw new TypeError("Error parsing input");return o?l:Fm(l,t)}catch{}return null}function FA(e,t={}){return typeof e=="string"?Pst(e,t):e instanceof Node?Fm(e,t):null}var Bst=Object.defineProperty,Hst=(e,t,n)=>t in e?Bst(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hh=(e,t,n)=>Hst(e,typeof t!="symbol"?t+"":t,n),dE="react-inlinesvg",uE=10,mt={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Tf(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ust(){return Vst()&&typeof window<"u"&&window!==null}async function PA(e,t){const n=await fetch(e,t),o=n.headers.get("content-type"),[r]=(o??"").split(/ ?; ?/);if(n.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>r.includes(a)))throw new Error(`Content type isn't valid: ${r}`);return n.text()}function Wst(e=1){return new Promise(t=>{setTimeout(t,e*1e3)})}function Vst(){if(!document)return!1;const e=document.createElement("div");e.innerHTML="";const t=e.firstChild;return!!t&&t.namespaceURI==="http://www.w3.org/2000/svg"}function Gst(e){return e[Math.floor(Math.random()*e.length)]}function qst(e){const t="abcdefghijklmnopqrstuvwxyz",o=`${t}${t.toUpperCase()}1234567890`;let r="";for(let a=0;a{this.cacheApi=n}).catch(n=>{console.error(`Failed to open cache: ${n.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(n=>n())}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,t){var n;return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,t):this.fetchAndAddToInternalCache(e,t)),((n=this.cacheStore.get(e))==null?void 0:n.content)??""}set(e,t){this.cacheStore.set(e,t)}isCached(e){var t;return((t=this.cacheStore.get(e))==null?void 0:t.status)===mt.LOADED}async fetchAndAddToInternalCache(e,t){const n=this.cacheStore.get(e);if((n==null?void 0:n.status)===mt.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:mt.IDLE}),await this.fetchAndAddToInternalCache(e,t)});return}if(!(n!=null&&n.content)){this.cacheStore.set(e,{content:"",status:mt.LOADING});try{const o=await PA(e,t);this.cacheStore.set(e,{content:o,status:mt.LOADED})}catch(o){throw this.cacheStore.set(e,{content:"",status:mt.FAILED}),o}}}async fetchAndAddToPersistentCache(e,t){var r,a,s;const n=this.cacheStore.get(e);if((n==null?void 0:n.status)===mt.LOADED)return;if((n==null?void 0:n.status)===mt.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:mt.IDLE}),await this.fetchAndAddToPersistentCache(e,t)});return}this.cacheStore.set(e,{content:"",status:mt.LOADING});const o=await((r=this.cacheApi)==null?void 0:r.match(e));if(o){const i=await o.text();this.cacheStore.set(e,{content:i,status:mt.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(e,t)));const i=await((s=this.cacheApi)==null?void 0:s.match(e)),l=await(i==null?void 0:i.text())??"";this.cacheStore.set(e,{content:l,status:mt.LOADED})}catch(i){throw this.cacheStore.set(e,{content:"",status:mt.FAILED}),i}}async handleLoading(e,t){var o;let n=0;for(;((o=this.cacheStore.get(e))==null?void 0:o.status)===mt.LOADING&&n=uE&&await t()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){const e=await this.cacheApi.keys();for(const t of e)await this.cacheApi.delete(t)}this.cacheStore.clear()}};function pE(e){const t=C.useRef();return C.useEffect(()=>{t.current=e}),t.current}function Yst(e){const{baseURL:t,content:n,description:o,handleError:r,hash:a,preProcessor:s,title:i,uniquifyIDs:l=!1}=e;try{const d=Kst(n,s),u=FA(d,{nodeOnly:!0});if(!u||!(u instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const c=BA(u,{baseURL:t,hash:a,uniquifyIDs:l});if(o){const h=c.querySelector("desc");h!=null&&h.parentNode&&h.parentNode.removeChild(h);const f=document.createElementNS("http://www.w3.org/2000/svg","desc");f.innerHTML=o,c.prepend(f)}if(typeof i<"u"){const h=c.querySelector("title");if(h!=null&&h.parentNode&&h.parentNode.removeChild(h),i){const f=document.createElementNS("http://www.w3.org/2000/svg","title");f.innerHTML=i,c.prepend(f)}}return c}catch(d){return r(d)}}function Kst(e,t){return t?t(e):e}function BA(e,t){const{baseURL:n="",hash:o,uniquifyIDs:r}=t,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],s=["href","xlink:href"],i=(l,d)=>s.includes(l)&&(d?!d.includes("#"):!1);return r&&[...e.children].forEach(l=>{var d;if((d=l.attributes)!=null&&d.length){const u=Object.values(l.attributes).map(c=>{const h=c,f=/url\((.*?)\)/.exec(c.value);return f!=null&&f[1]&&(h.value=c.value.replace(f[0],`url(${n}${f[1]}__${o})`)),h});a.forEach(c=>{const h=u.find(f=>f.name===c);h&&!i(c,h.value)&&(h.value=`${h.value}__${o}`)})}return l.children.length?BA(l,t):l}),e}var rc;function Zst(e){const{cacheRequests:t=!0,children:n=null,description:o,fetchOptions:r,innerRef:a,loader:s=null,onError:i,onLoad:l,src:d,title:u,uniqueHash:c}=e,[h,f]=C.useReducer((j,N)=>({...j,...N}),{content:"",element:null,isCached:t&&rc.isCached(e.src),status:mt.IDLE}),{content:g,element:v,isCached:S,status:_}=h,b=pE(e),y=pE(h),w=C.useRef(c??qst(8)),$=C.useRef(!1),k=C.useRef(!1),T=C.useCallback(j=>{$.current&&(f({status:j.message==="Browser does not support SVG"?mt.UNSUPPORTED:mt.FAILED}),i==null||i(j))},[i]),O=C.useCallback((j,N=!1)=>{$.current&&f({content:j,isCached:N,status:mt.LOADED})},[]),D=C.useCallback(async()=>{const j=await PA(d,r);O(j)},[r,O,d]),x=C.useCallback(()=>{try{const j=Yst({...e,handleError:T,hash:w.current,content:g}),N=FA(j);if(!N||!C.isValidElement(N))throw new Error("Could not convert the src to a React element");f({element:N,status:mt.READY})}catch(j){T(new Error(j.message))}},[g,T,e]),A=C.useCallback(async()=>{const j=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(d);let N;if(j?N=j[1]?window.atob(j[2]):decodeURIComponent(j[2]):d.includes("{$.current&&f({content:"",element:null,isCached:!1,status:mt.LOADING})},[]);C.useEffect(()=>{if($.current=!0,!Tf()||k.current)return()=>{};try{if(_===mt.IDLE){if(!Ust())throw new Error("Browser does not support SVG");if(!d)throw new Error("Missing src");R()}}catch(j){T(j)}return k.current=!0,()=>{$.current=!1}},[]),C.useEffect(()=>{if(Tf()&&b)if(b.src!==d){if(!d){T(new Error("Missing src"));return}R()}else(b.title!==u||b.description!==o)&&x()},[o,x,T,R,b,d,u]),C.useEffect(()=>{y&&(y.status!==mt.LOADING&&_===mt.LOADING&&A(),y.status!==mt.LOADED&&_===mt.LOADED&&x(),y.status!==mt.READY&&_===mt.READY&&(l==null||l(d,S)))},[A,x,S,l,y,d,_]);const I=Xst(e,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Tf()?v?C.cloneElement(v,{ref:a,...I}):[mt.UNSUPPORTED,mt.FAILED].includes(_)?n:s:s}function Pm(e){rc||(rc=new Jst);const{loader:t}=e,n=C.useRef(!1),[o,r]=C.useState(rc.isReady);return C.useEffect(()=>{n.current||(rc.onReady(()=>{r(!0)}),n.current=!0)},[]),o?p.createElement(Zst,{...e}):t}const Qst=window.location.hostname.endsWith("iobroker.in"),hE=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function Ss(e){var t,n,o;if(e.src){if(typeof e.src=="string"){if(e.src.length<3)return e.sx?p.createElement(ke,{component:"span",sx:e.sx,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:V.clsx(e.className,"iconOwn")},e.src):p.createElement("span",{title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:V.clsx(e.className,"iconOwn")},e.src);if(e.src.startsWith("data:image/svg"))return p.createElement(Pm,{title:e.title||void 0,src:e.src,className:V.clsx(e.className,"iconOwn"),width:((t=e.style)==null?void 0:t.width)||28,height:((n=e.style)==null?void 0:n.height)||((o=e.style)==null?void 0:o.width)||28,style:e.style||void 0});if(Qst&&!e.src.startsWith("http://")&&!e.src.startsWith("https://")){let r=e.src;return r.startsWith("./")?r=hE+r.substring(2):r.startsWith("/")||(r=hE+r),e.sx?p.createElement(ke,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:V.clsx(e.className,"iconOwn"),src:`https://remote-files.iobroker.in${r}`,alt:e.alt||void 0,ref:e.ref,onError:a=>e.onError&&e.onError(a)}):p.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:V.clsx(e.className,"iconOwn"),src:`https://remote-files.iobroker.in${r}`,alt:e.alt||void 0,ref:e.ref,onError:a=>e.onError&&e.onError(a)})}return e.sx?p.createElement(ke,{component:"img",sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:V.clsx(e.className,"iconOwn"),src:e.src,alt:e.alt||void 0,ref:e.ref,onError:e.onError}):p.createElement("img",{title:e.title||void 0,style:e.style||void 0,className:V.clsx(e.className,"iconOwn"),src:e.src,alt:e.alt||void 0,ref:e.ref,onError:e.onError})}return e.src}return null}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"}},Pn={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function fE(e,t){let n="";const o=new Uint8Array((e==null?void 0:e.data)||e),r=o.byteLength;for(let a=0;a{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,r===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const o=V.getFileExtension(n.href);this.state={text:null,code:null,ext:o,editing:!1,editingValue:null,copyPossible:!!o&&(Pn.code.includes(o)||Pn.txt.includes(o)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const n=this.props.href.split("/");n.splice(0,2);const o=n[0],r=n.splice(1).join("/");this.props.socket.readFile(o,r).then(a=>{let s="";a.file!==void 0&&(s=a.file);const i={copyPossible:this.state.copyPossible,ext:this.state.ext};if(s.type==="Buffer")if(r.toLowerCase().endsWith(".json5")){i.ext="json5",i.copyPossible=!0;try{s=atob(fE(s,!0))}catch{console.error("Cannot convert base64 to string"),s=""}}else{const l=V.detectMimeType(fE(s));l&&(i.ext=l,i.copyPossible=Pn.code.includes(l)||Pn.txt.includes(l))}i.copyPossible&&(i.ext&&Pn.txt.includes(i.ext)?(i.text=s,i.editingValue=s):i.ext&&Pn.code.includes(i.ext)&&(i.code=s,i.editingValue=s)),this.setState(i)}).catch(a=>window.alert(`Cannot read file: ${a}`))}}componentDidMount(){this.readFile();const n=this.props.href.split("/");n.splice(0,2);const o=n[0],r=n.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(o,r,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const n=this.props.href.split("/");n.splice(0,2);const o=n[0],r=n.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(o,r,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}getEditorOrViewer(){return p.createElement(st,{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&&Pn.images.includes(this.state.ext)?this.state.imgError?p.createElement(hS,{style:{...ei.img,...this.props.getStyleBackgroundImage()}}):p.createElement(Ss,{onError:n=>{n.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&&Pn.audio.includes(this.state.ext)?p.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},p.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Pn.video.includes(this.state.ext)?p.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},p.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},p.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 p.createElement(yt,{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"},p.createElement("div",{style:ei.dialogTitle},p.createElement(bt,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Pn.images.includes(this.state.ext)&&p.createElement("div",null,p.createElement(ue,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},p.createElement(o3,null)))),p.createElement(jt,{style:ei.content},this.getContent()),p.createElement(Nt,null,this.state.copyPossible?p.createElement(he,{color:"grey",onClick:n=>{n.stopPropagation(),n.preventDefault(),V.copyToClipboard(this.state.text||this.state.code||"")},startIcon:p.createElement(iX,null)},this.props.t("Copy content")):null,this.state.editing?p.createElement(he,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:p.createElement(Wb,null)},this.props.t("Save")):null,p.createElement(he,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:p.createElement(Dt,null)},this.props.t("Close"))))}}const tit=E_()(eit),gl=32,Sa=32,Uh=120,mE=64,gE="Not found",Wh={all:a3,images:yX,code:bw,txt:mX,audio:Kq,video:FX},re={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 16px)",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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${mE}px`},itemTile:e=>({position:"relative",userSelect:"none",cursor:"pointer",height:Uh,width:mE,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:e.palette.secondary.light,color:V.invertColor(e.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:e=>({width:"100%",height:Uh-32-16-8,display:"block",pl:1,color:e.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:e=>({position:"absolute",top:22,left:18,zIndex:1,color:e.palette.mode==="dark"?"#FFF":"#000"}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:Uh-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:Uh-32-16-8,display:"block",objectFit:"contain"},itemSelected:e=>({background:e.palette.primary.main,color:V.invertColor(e.palette.primary.main,!0)}),itemTable:e=>({userSelect:"none",cursor:"pointer",height:gl,display:"inline-flex",lineHeight:`${gl}px`,"&:hover":{background:e.palette.secondary.light,color:V.invertColor(e.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:e=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:e.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:e=>({display:"inline-block",width:Sa,height:gl,minWidth:Sa,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${Sa/2}px`,"&:hover":{backgroundColor:e.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:e.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:Sa,height:gl,minWidth:Sa,padding:0},itemAclButtonTable:{width:Sa,height:gl,minWidth:Sa,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:Sa,height:gl,minWidth:Sa,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:e=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:e.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:e=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:e.palette.secondary.main}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:e=>({pl:"2px",pr:"2px",cursor:"pointer","&:hover":{background:e.palette.primary.main}}),pathDivBreadcrumbSelected:{},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:e=>({color:e.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},ts="0_userdata.0";function _l(e){const t=(e||"").split("/");return t.length&&t.pop(),t.join("/")}function Kv(e){const t=V.getFileExtension(e);return!!(t!=null&&t.toLowerCase().match(/[a-z]+/)&&t.length<5)}const ct="Table",Zv="Tile";function _E(e,t){return e.folder&&t.folder?e.name>t.name?1:e.namet.name?1:e.name{const a=`${n}/${o}`,s=a.lastIndexOf("/"),i=a.substring(0,s);console.log(`File changed ${a}[${r}]`),this.state.folders[i]&&(this._tempTimeout[i]&&clearTimeout(this._tempTimeout[i]),this._tempTimeout[i]=setTimeout(()=>{delete this._tempTimeout[i],this.browseFolder(i,null,!1,!0).then(l=>this.setState({folders:l})).catch(l=>console.error(`Cannot read folder: ${l.message}`))},300))});F(this,"setStateBackgroundImage",()=>{const n=["light","dark","colored","delete"];this.setState(({backgroundImage:o})=>o&&n.indexOf(o)!==-1&&n.length-1!==n.indexOf(o)?(this.localStorage.setItem("files.backgroundImage",n[n.indexOf(o)+1]),{backgroundImage:n[n.indexOf(o)+1]}):(this.localStorage.setItem("files.backgroundImage",n[0]),{backgroundImage:n[0]}))});F(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return re.backgroundImageLight;case"dark":return re.backgroundImageDark;case"colored":return re.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const o=this.localStorage.getItem("files.expanded")||"[]";if(this.props.limitPath){const d=this.props.limitPath.split("/");this.limitToObjectID=d[0],this.limitToPath=d.length?d.length===1&&d[0]===""?null:d.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let r;try{r=JSON.parse(o),this.limitToPath&&(r=r.filter(d=>{var u;return d.startsWith(`${this.limitToPath}/`)||d===this.limitToPath||((u=this.limitToPath)==null?void 0:u.startsWith(`${d}/`))}))}catch{r=[]}let a;this.props.showViewTypeButton?a=this.localStorage.getItem("files.viewType")||ct:a=ct;let s=this.props.selected||this.localStorage.getItem("files.selected")||ts,i;if(n.restrictToFolder){s=n.restrictToFolder,i=n.restrictToFolder;const d=n.restrictToFolder.split("/");r=[];let u="";for(let c=0;c{if(this.state.viewType===ct&&!this.findItem(this.state.selected)){const o=this.state.selected.split("/");for(;o.length&&!this.findItem(o.join("/"));)o.pop();let r;o.length?r=o.join("/"):r=ts,this.setState({selected:r,path:r,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const n=document.getElementById(this.state.selected);n==null||n.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(n=>console.error(`Cannot load folders: ${n}`)),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(n=>n&&clearTimeout(n)),this._tempTimeout={}}browseFoldersCb(n,o,r){if(!(n!=null&&n.length))r(o);else{const a=n.shift();a?this.browseFolder(a,o).catch(s=>console.error(`Cannot read folder ${a}: ${s.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(n,o,r),0)}):setTimeout(()=>this.browseFoldersCb(n,o,r),0)}}browseFolders(n,o){let r;return o?r=o:(r={},Object.keys(this.state.folders).forEach(a=>r[a]=this.state.folders[a])),n!=null&&n.length?new Promise(a=>{this.browseFoldersCb(n,r,a)}):Promise.resolve(r)}readDirSerial(n,o){return new Promise((r,a)=>{this.browseList&&(this.browseList.push({resolve:r,reject:a,adapter:n,relPath:o}),this.browseListRunning||this.processBrowseList())})}processBrowseList(n=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(o=>{if(this.browseList){const r=this.browseList.shift();if(r){const a=r.resolve;r.resolve=null,r.reject=null,r.adapter=null,r.relPath=null,a&&a(o),this.browseListRunning=!1,this.browseList.length?n<5?this.processBrowseList(n+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(o=>{if(this.browseList){const r=this.browseList.shift();if(r){const a=r.reject;r.resolve=null,r.reject=null,r.adapter=null,r.relPath=null,a&&a(o),this.browseListRunning=!1,this.browseList.length?n<5?this.processBrowseList(n+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(n,o,r,a){let s;if(o?s=o:(s={},Object.keys(this.state.folders).forEach(h=>{s[h]=this.state.folders[h]})),s[n]&&!a)return r?Promise.resolve(s):new Promise((h,f)=>{Promise.all(s[n].filter(g=>g.folder).map(g=>this.browseFolder(g.id,s,!0).catch(()=>{}))).then(()=>h(s)).catch(g=>f(new Error(g)))});if(!n||n==="/"){try{let h=await this.props.socket.readMetaItems();const f=[];let g=null;if(this.state.restrictToFolder){const S=this.state.restrictToFolder.split("/")[0];h=h.filter(_=>_._id===S)}else this.state.expertMode||(h=h.filter(S=>!S._id.endsWith(".admin")));const v=h.findIndex(S=>S._id==="system.meta.uuid");if(v!==-1&&h.splice(v,1),h.forEach(S=>{if(this.limitToObjectID&&this.limitToObjectID!==S._id)return;const _={id:S._id,name:S._id,title:S.common&&S.common.name||S._id,meta:!0,from:S.from,ts:S.ts,color:S.common&&S.common.color,icon:S.common&&S.common.icon,folder:!0,acl:S.acl,level:0};_.id===ts?g=_:f.push(_)}),f.sort((S,_)=>S.id>_.id?1:S.id<_.id?-1:0),(!this.limitToObjectID||this.limitToObjectID===ts)&&g&&f.unshift(g),s[n||"/"]=f,!r)return Promise.all(f.filter(S=>S.folder).map(S=>this.browseFolder(S.id,s,!0).catch(()=>{}))).then(()=>s)}catch(h){const f=h;this.initialReadFinished&&window.alert(`Cannot read meta items: ${f.message}`),s[n||"/"]=[]}return s}const i=n.split("/"),l=i.length,d=i.shift(),u=i.join("/");let c;try{c=await this.readDirSerial(d||"",u)}catch(h){if(h==="Not exists"&&d==="0_userdata.0")c=[];else throw h}try{const h=[];if(c.forEach(f=>{var v;const g={id:`${n}/${f.file}`,ext:V.getFileExtension(f.file),folder:f.isDir,name:f.file,size:(v=f.stats)==null?void 0:v.size,modified:f.modifiedAt,acl:f.acl,level:l};this.state.restrictToFolder?(g.folder&&(g.id.startsWith(`${this.state.restrictToFolder}/`)||g.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${g.id}/`))||g.id.startsWith(`${this.state.restrictToFolder}/`))&&h.push(g):this.limitToPath?(g.folder&&(g.id.startsWith(`${this.limitToPath}/`)||g.id===this.limitToPath||this.limitToPath.startsWith(`${g.id}/`))||g.id.startsWith(`${this.limitToPath}/`))&&h.push(g):h.push(g)}),h.sort(_E),s[n]=h,!r)return Promise.all(h.filter(f=>f.folder).map(f=>this.browseFolder(f.id,s,!0))).then(()=>s)}catch(h){const f=h;this.initialReadFinished&&window.alert(`Cannot read ${d}${u?`/${u}`:""}: ${f==null?void 0:f.message}`),s[n]=[]}return s}toggleFolder(n,o){o==null||o.stopPropagation();const r=[...this.state.expanded],a=r.indexOf(n.id);a===-1?(r.push(n.id),r.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(r)),n.temp?this.setState({expanded:r}):this.browseFolder(n.id).then(s=>this.setState({expanded:r,folders:s})).catch(s=>window.alert(s===gE?this.props.t('ra_Cannot find "%s"',n.id):this.props.t('ra_Cannot read "%s"',n.id)))):(r.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(r)),this.setState({expanded:r}))}changeFolder(n,o){n==null||n.stopPropagation(),this.lastSelect=Date.now();let r=o||_l(this.state.currentDir);if(r==="/"&&(r=""),this.localStorage.setItem("files.currentDir",r),o&&n&&(n.altKey||n.shiftKey||n.ctrlKey||n.metaKey)){this.setState({selected:r});return}if(r&&!this.state.folders[r]){this.browseFolder(r).then(a=>this.setState({folders:a,path:r,currentDir:r,selected:r,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(a=>console.error(`Cannot read folder: ${a.message}`));return}this.setState({currentDir:r,selected:r,path:r,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))}select(n,o,r){o&&o.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",n),this.setState({selected:n,path:n,pathFocus:!1},()=>{if(this.props.onSelect){const a=V.getFileExtension(n);(!this.props.filterFiles||a&&this.props.filterFiles.includes(a))&&(!this.state.filterByType||a&&Pn[this.state.filterByType].includes(a))?this.props.onSelect(n,!1,!!this.state.folders[n]):this.props.onSelect("")}r&&r()})}getText(n){if(n)return typeof n=="object"?n[this.props.lang]||n.en||void 0:n}renderFolder(n,o){if(this.state.viewType===ct&&this.state.filterEmpty&&(!this.state.folders[n.id]||!this.state.folders[n.id].length)&&n.id!==ts&&!n.temp)return null;const r=o?Ef:yc,a=this.state.viewType===ct?n.level*this.levelPadding:0,s=n.name===ts,i=s||n.name==="vis.0"||n.name==="vis-2.0",l=V.getStyle(this.props.theme,re[`itemFolderIcon${this.state.viewType}`],i&&re.specialFolder);return p.createElement(ke,{component:"div",key:n.id,id:n.id,style:this.state.viewType===ct?{marginLeft:a,width:`calc(100% - ${a}px`}:{},onClick:d=>this.state.viewType===ct?this.select(n.id,d):this.changeFolder(d,n.id),onDoubleClick:d=>this.state.viewType===ct&&this.toggleFolder(n,d),title:this.getText(n.title),className:"browserItem",sx:V.getStyle(this.props.theme,re[`item${this.state.viewType}`],re[`itemFolder${this.state.viewType}`],this.state.selected===n.id?re.itemSelected:{},n.temp?re.itemFolderTemp:{})},p.createElement(r,{style:l,onClick:this.state.viewType===ct?d=>this.toggleFolder(n,d):void 0}),p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,re[`itemName${this.state.viewType}`],re[`itemNameFolder${this.state.viewType}`])},s?this.props.t("ra_User files"):n.name),p.createElement(ke,{component:"div",style:re[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ct&&this.state.folders[n.id]?this.state.folders[n.id].length:""),p.createElement(ke,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ct&&this.props.expertMode?this.formatAcl(n.acl):null),this.state.viewType===ct&&this.props.expertMode?p.createElement(ke,{component:"div",sx:{...re.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===ct&&this.props.allowDownload?p.createElement("div",{style:re[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===ct&&this.props.allowDelete&&this.state.folders[n.id]&&this.state.folders[n.id].length?p.createElement(ue,{"aria-label":"delete",onClick:d=>{d.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(n.id):this.setState({deleteItem:n.id})},sx:re[`itemDeleteButton${this.state.viewType}`],size:"large"},p.createElement(Ns,{fontSize:"small"})):this.state.viewType===ct&&this.props.allowDelete?p.createElement(ke,{component:"div",sx:re[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return p.createElement(ke,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:n=>this.changeFolder(n),title:this.props.t("ra_Back to %s",_l(this.state.currentDir)),className:"browserItem",sx:V.getStyle(this.props.theme,re[`item${this.state.viewType}`],re[`itemFolder${this.state.viewType}`])},p.createElement(yc,{style:V.getStyle(this.props.theme,re[`itemFolderIcon${this.state.viewType}`])}),p.createElement(Jq,{sx:re.itemFolderIconBack}),p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,re[`itemName${this.state.viewType}`],re[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(n){return p.createElement("div",{style:re[`itemSize${this.state.viewType}`]},n||n===0?V.formatBytes(n):"")}formatAcl(n){const o=n?n.permissions||n.file:0;let r;return o?r=o.toString(16).padStart(3,"0"):r="",p.createElement("div",{style:re[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?p.createElement(ue,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:re[`itemAclButton${this.state.viewType}`]},r||"---"):r||"---")}getFileIcon(n){switch(n){case"json":case"json5":return p.createElement(Qq,{style:re[`itemIcon${this.state.viewType}`]});case"css":return p.createElement(eX,{style:re[`itemIcon${this.state.viewType}`]});case"js":case"ts":return p.createElement(bw,{style:re[`itemIcon${this.state.viewType}`]});case"html":case"md":return p.createElement(ww,{style:re[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return p.createElement(EX,{style:re[`itemIcon${this.state.viewType}`]});default:return p.createElement(a3,{style:re[`itemIcon${this.state.viewType}`]})}}static getEditFile(n){switch(n){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(n){const o=this.state.viewType===ct?n.level*this.levelPadding:0,r=V.getFileExtension(n.name);return p.createElement(ke,{component:"div",key:n.id,id:n.id,onDoubleClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Pn[this.state.filterByType].includes(n.ext))&&this.props.onSelect(n.id,!0,!!this.state.folders[n.id]):this.setState({viewer:this.imagePrefix+n.id,formatEditFile:r})},onClick:a=>this.select(n.id,a),style:this.state.viewType===ct?{marginLeft:o,width:`calc(100% - ${o}px)`}:{},className:"browserItem",sx:V.getStyle(this.props.theme,re[`item${this.state.viewType}`],re[`itemFile${this.state.viewType}`],this.state.selected===n.id?re.itemSelected:void 0)},r&&Pn.images.includes(r)?this.state.fileErrors.includes(n.id)?p.createElement(hS,{style:{...re[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...re[`itemNoImage${this.state.viewType}`]}}):p.createElement(Ss,{onError:a=>{a.target.onerror=null;const s=[...this.state.fileErrors];s.includes(n.id)||(s.push(n.id),this.setState({fileErrors:s}))},style:{...re[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+n.id,alt:n.name}):this.getFileIcon(r),p.createElement(ke,{component:"div",sx:re[`itemName${this.state.viewType}`]},n.name),p.createElement(ke,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(n.size)),p.createElement(ke,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ct&&this.props.expertMode?this.formatAcl(n.acl):null),p.createElement(ke,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===ct&&this.props.expertMode&&fS.getEditFile(r)?p.createElement(ue,{"aria-label":"edit",onClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||n.ext&&this.props.filterFiles.includes(n.ext))&&(!this.state.filterByType||n.ext&&Pn[this.state.filterByType].includes(n.ext))&&this.props.onSelect(n.id,!0,!!this.state.folders[n.id]):this.setState({viewer:this.imagePrefix+n.id,formatEditFile:r})},sx:re.itemDeleteButtonTable,size:"large"},p.createElement(Au,{fontSize:"small"})):p.createElement(ke,{component:"div",sx:re[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===ct&&this.props.allowDownload?p.createElement(ke,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:re.itemDownloadButtonTable,tabIndex:0,download:n.id,href:this.imagePrefix+n.id,onClick:a=>a.stopPropagation()},p.createElement(AX,null)):null,this.state.viewType===ct&&this.props.allowDelete&&n.id!=="vis.0/"&&n.id!=="vis-2.0/"&&n.id!==ts?p.createElement(ue,{"aria-label":"delete",onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(n.id):this.setState({deleteItem:n.id})},sx:re[`itemDeleteButton${this.state.viewType}`],size:"large"},p.createElement(Ns,{fontSize:"small"})):this.state.viewType===ct&&this.props.allowDelete?p.createElement(ke,{component:"div",sx:re[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(n){if(this.state.folders&&this.state.folders[n]){if(this.state.viewType===Zv){const r=[];return n&&n!=="/"&&r.push(this.renderBackFolder()),this.state.folders[n].forEach(a=>{a.folder?r.push(this.renderFolder(a)):(!this.props.filterFiles||a.ext&&this.props.filterFiles.includes(a.ext))&&(!this.state.filterByType||a.ext&&Pn[this.state.filterByType].includes(a.ext))&&r.push(this.renderFile(a))}),r}const o=[];return this.state.folders[n].forEach(r=>{if(r.folder){const a=this.state.expanded.includes(r.id),s=this.renderFolder(r,a);if(Array.isArray(s)?s.forEach(i=>o.push(i)):o.push(s),this.state.folders[r.id]&&a){const i=this.renderItems(r.id);Array.isArray(i)?i.forEach(l=>o.push(l)):o.push(i)}}else(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Pn[this.state.filterByType].includes(r.ext))&&o.push(this.renderFile(r))}),o}return p.createElement("div",{style:{position:"relative"}},p.createElement(ro,{key:n,color:"secondary",size:24}),p.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const n=this.props.showTypeSelector?Wh[this.state.filterByType||"all"]||Wh.all:null,o=this.findFirstFolder(this.state.selected);return p.createElement(sw,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?p.createElement(ue,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...re.menuButton,...this.state.restrictToFolder?re.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},p.createElement(fX,{fontSize:"small"})):null,this.props.showExpertButton?p.createElement(ue,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...re.menuButton,...this.state.expertMode?re.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},p.createElement(Lm,null)):null,this.props.showViewTypeButton?p.createElement(ue,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:re.menuButton,"aria-label":"view mode",onClick:()=>{const r=this.state.viewType===ct?Zv:ct;this.localStorage.setItem("files.viewType",r);let a=this.state.selected;Kv(a)&&(a=_l(a)),this.setState({viewType:r,currentDir:a},()=>{this.state.viewType===ct&&this.scrollToSelected()})},size:"small"},this.state.viewType!==ct?p.createElement(SX,{fontSize:"small"}):p.createElement(BX,{fontSize:"small"})):null,p.createElement(ue,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:re.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"},p.createElement(hX,{fontSize:"small"})),p.createElement(ue,{edge:"start",title:this.props.t("ra_Reload files"),style:re.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},p.createElement(l3,{fontSize:"small"})),this.props.allowCreateFolder?p.createElement(ue,{edge:"start",disabled:!this.state.selected||!o||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:re.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},p.createElement(r3,{fontSize:"small"})):null,this.props.allowUpload?p.createElement(ue,{edge:"start",disabled:!this.state.selected||!o||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:re.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},p.createElement(Cm,{fontSize:"small"})):null,this.props.showTypeSelector&&n?p.createElement(bn,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:re.tooltip}}},p.createElement(ue,{size:"small",onClick:r=>this.setState({showTypesMenu:r.target})},p.createElement(n,{fontSize:"small"}))):null,this.state.showTypesMenu?p.createElement(Du,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(Wh).map(r=>{const a=Wh[r];return p.createElement(je,{key:r,selected:this.state.filterByType===r,onClick:()=>{r==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",r),this.setState({filterByType:r,showTypesMenu:null}))}},p.createElement(Tl,null,p.createElement(a,{fontSize:"small"})),p.createElement(as,null,this.props.t(`ra_fileType_${r}`)))})):null,p.createElement(bn,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:re.tooltip}}},p.createElement(ue,{color:"inherit",edge:"start",style:re.menuButton,onClick:this.setStateBackgroundImage,size:"small"},p.createElement(o3,{fontSize:"small"}))),this.state.viewType!==ct&&this.props.allowDelete?p.createElement(bn,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:re.tooltip}}},p.createElement("span",null,p.createElement(ue,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===ts,color:"inherit",edge:"start",style:re.menuButton,onClick:r=>{r.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},p.createElement(Ns,{fontSize:"small"})))):null)}findItem(n,o){if(o=o||this.state.folders,!o)return null;const r=n.split("/");r.pop();const a=r.join("/")||"/";return o[a]&&o[a].find(s=>s.id===n)||null}renderInputDialog(){if(this.state.addFolder){const n=this.findFirstFolder(this.state.selected);return n?p.createElement(Nst,{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:o=>this.state.folders[n].find(r=>r.name===o)?"":this.props.t("ra_Duplicate name"),onClose:o=>{if(o){const r={};Object.keys(this.state.folders).forEach(l=>r[l]=this.state.folders[l]);const a=this.findItem(n),s=`${n}/${o}`;r[n].push({id:s,level:((a==null?void 0:a.level)||0)+1,name:o,folder:!0,temp:!0}),r[n].sort(_E),r[s]=[];const i=[...this.state.expanded];i.includes(n)||(i.push(n),i.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(i)),this.setState({addFolder:!1,folders:r,expanded:i},()=>this.select(s))}else this.setState({addFolder:!1})},replace:o=>o.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 n=window.document.getElementsByClassName("browserItem");for(let o=0;othis.setState({uploadFile:!1})},p.createElement(Dt,null)),p.createElement(k_,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:n=>{let o=n.length;n.forEach(r=>{const a=new FileReader;a.onabort=()=>console.log("file reading was aborted"),a.onerror=()=>console.log("file reading has failed"),a.onload=()=>{const s=this.findFirstFolder(this.state.selected);if(!s)window.alert(this.props.t("ra_Invalid parent folder!"));else{const i=`${s}/${r.name}`;this.uploadFile(i,a.result).then(()=>{--o||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const l=[...this.state.expanded];l.includes(s)||(l.push(s),l.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(l))),this.setState({expanded:l},()=>this.select(i))}else setTimeout(()=>this.browseFolder(s,null,!1,!0).then(l=>{const d=[...this.state.expanded];d.includes(s)||(d.push(s),d.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(d))),this.setState({folders:l,expanded:d},()=>this.select(i))}),500)})})}},a.readAsArrayBuffer(r)})}},({getRootProps:n,getInputProps:o})=>p.createElement("div",{style:{...re.uploadDiv,...this.state.uploadFile==="dragging"?re.uploadDivDragging:void 0},...n()},p.createElement("input",{...o()}),p.createElement(ke,{component:"div",sx:re.uploadCenterDiv},p.createElement("div",{style:re.uploadCenterTextAndIcon},p.createElement(Cm,{style:re.uploadCenterIcon}),p.createElement("div",{style:re.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(n){const o=this.findItem(n);if(o!=null&&o.folder)return(this.state.folders[n]?Promise.all(this.state.folders[n].map(s=>this.deleteRecursive(s.id))):Promise.resolve()).then(()=>{if(o.level>=1){const s=n.split("/"),i=s.shift();this.props.socket.deleteFolder(i||"",s.join("/")).then(()=>{const l=JSON.parse(JSON.stringify(this.state.folders));delete l[o.id];const d=_l(o.id),u=l[d];if(u){const c=u.findIndex(h=>h.id===o.id);c!==-1&&u.splice(c,1),this.select(d,null,()=>this.setState({folders:l}))}})}});const r=n.split("/"),a=r.shift();return r.length?this.props.socket.deleteFile(a||"",r.join("/")).catch(s=>window.alert(`Cannot delete file: ${s}`)):Promise.resolve()}deleteItem(n){n=n||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(n).then(()=>{const o={},r=this.state.expanded.indexOf(n);if(r!==-1){const a=[...this.state.expanded];a.splice(r,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),o.expanded=a}if(this.state.selected===n){const a=this.state.selected.split("/");a.pop(),o.selected=a.join("/")}if(this.supportSubscribes)this.setState(o);else{const a=this.findFirstFolder(n),s={};Object.keys(this.state.folders).forEach(i=>{i!==a&&!i.startsWith(`${a}/`)&&(s[i]=this.state.folders[i])}),o.folders=s,this.setState(o,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],s).then(i=>this.setState({folders:i})).catch(i=>console.error(i))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?p.createElement(yt,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},p.createElement(bt,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),p.createElement(jt,null,p.createElement(Ra,null,this.props.t("ra_Are you sure?"))),p.createElement(Nt,null,p.createElement(he,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),p.createElement(he,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),p.createElement(he,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const n=this.props.FileViewer||tit;return this.state.viewer?p.createElement(n,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?p.createElement(h3,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(n){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let o;n.forEach(r=>{const a=this.findItem(r.id,this.cacheFolders);a&&JSON.stringify(a.acl)!==JSON.stringify(r.acl)&&(a.acl=r.acl,o=!0)}),o&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const r=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:r})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let n=this.state.path;Kv(this.state.path)&&(n=_l(this.state.path)),new Promise(o=>{this.state.folders[n]?o(!0):this.browseFolder(n).then(r=>this.setState({folders:r},()=>o(!0))).catch(r=>this.setState({errorText:r===gE?this.props.t('ra_Cannot find "%s"',n):this.props.t('ra_Cannot read "%s"',n)}))}).then(o=>o&&this.setState({selected:this.state.path,currentDir:n,pathFocus:!1})).catch(o=>console.error(o))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const n=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),o=[];return p.createElement(bL,{style:{paddingLeft:8}},n.map((r,a)=>{r&&o.push(r);const s=o.join("/");return athis.changeFolder(i,s||"/")},r||this.props.t("ra_Root")):p.createElement("div",{style:re.pathDivBreadcrumbSelected,key:`${this.state.selected}_${a}`,onClick:()=>this.setState({pathFocus:!0})},r)}))}renderPath(){return p.createElement(ke,{component:"div",key:"path",sx:re.pathDiv},this.state.pathFocus?p.createElement(Qn,{value:this.state.path,onKeyDown:n=>{n.key==="Enter"?this.changeToPath():n.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:p.createElement(ue,{size:"small",onClick:()=>this.changeToPath()},p.createElement(wX,null)),onBlur:()=>this.changeToPath(),onChange:n=>this.setState({path:n.target.value}),style:re.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(n=>console.error(`Cannot load folders: ${n}`))})},300)),p.createElement("div",{style:{...re.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===Zv?this.renderPath():null,p.createElement("div",{style:{...re.filesDiv,...re[`filesDiv${this.state.viewType}`]},onClick:n=>{this.state.viewType!==ct&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(n,this.state.currentDir||"/"):n.stopPropagation())}},this.state.viewType===ct?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==ct?p.createElement("div",{style:re.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())):p.createElement(UP,null)}}const nit=E_()(fS),oit=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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 rit(e){const t=document.createElement("div");t.innerHTML=e;const n=t.firstElementChild;return n!=null&&n.remove?n.remove():n&&t.removeChild(n),t.remove(),n}function ait(e){const t={};if(!e)return t;for(let n,o=0;oa[1].toUpperCase()),t[n]=e[o].value}return t}const hi=class hi extends C.Component{constructor(n){var o;super(n);F(this,"svg");this.state={svg:!!((o=this.props.src)!=null&&o.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(n,o){var s;const r={};let a=!1;return n&&o&&n.src!==o.src&&(r.src=n.src,r.svg=(s=n.src)==null?void 0:s.startsWith("data:"),r.created=!1,a=!0),n&&o&&n.color!==o.color&&(r.color=n.color,r.created=!1,a=!0),n&&o&&n.showError!==o.showError&&(r.showError=n.showError,a=!0),a?r:null}getSvgFromData(n){const o="data:image/svg+xml;base64,";if(!n.startsWith(o))return null;n=n.substring(o.length);try{n=atob(n);const r=rit(n),a=r.innerHTML,s=ait(r.attributes);return r.remove(),p.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...s,dangerouslySetInnerHTML:{__html:a}})}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 p.createElement(hS,{className:this.props.className});if(hi.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let n=(this.props.imagePrefix||"")+this.state.src;return n.startsWith("./")?n=hi.REMOTE_PREFIX+n.substring(2):n.startsWith("/")||(n=hi.REMOTE_PREFIX+n),p.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${n}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return p.createElement("img",{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}};F(hi,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),F(hi,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1));let vE=hi;class mS extends p.Component{constructor(){super(...arguments);F(this,"handleFileSelect",n=>{const o=n.target,r=o==null?void 0:o.files;if(!r||!r.length){console.error("No files found. Please report to developers");return}const a=r[0];if(a){const s=new window.FileReader;s.onload=()=>{var l;const i=((l=s.result)==null?void 0:l.toString())||"";try{const d=JSON.parse(i);d.native&&d.common?d.common.name!==this.props.common.name?this.props.onError&&this.props.onError(E.t("ra_otherConfig",d.common.name)):this.props.onLoad&&this.props.onLoad(d.native):this.props.onError&&this.props.onError(E.t("ra_invalidConfig"))}catch(d){this.props.onError&&this.props.onError(d==null?void 0:d.toString())}},s.readAsText(a)}else alert("Failed to open JSON File")})}static generateFile(n,o){const r=window.document.createElement("a");r.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(o,null,2))}`),r.setAttribute("download",n),r.style.display="none",window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r)}download(){const n={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};n.common.news&&delete n.common.news,n.common.titleLang&&delete n.common.titleLang,n.common.desc&&delete n.common.desc,mS.generateFile(`${n._id}.json`,n)}upload(){const n=window.document.createElement("input");n.setAttribute("type","file"),n.setAttribute("id","files"),n.setAttribute("opacity","0"),n.addEventListener("change",this.handleFileSelect,!1),n.click()}render(){return p.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?p.createElement(Ss,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?p.createElement(Mt,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const n=window.open(this.props.common.readme,"_blank");n==null||n.focus()}},p.createElement(vX,null)):null,p.createElement(Mt,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:E.t("ra_Load configuration from file"),onClick:()=>this.upload()},p.createElement(LX,null)),p.createElement(Mt,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:E.t("ra_Save configuration to file"),onClick:()=>this.download()},p.createElement(IX,null)))}}const sit=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.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"})),HA=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 320 320",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("g",{fill:"currentColor"},p.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),p.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),ps=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"})),UA=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 320 320",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("g",{fill:"currentColor"},p.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),p.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),p.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),p.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),p.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),p.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),iit=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",onClick:t=>e.onClick&&e.onClick(t),width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"})),lit=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 512 512",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"}),p.createElement("path",{fill:"currentColor",stroke:"null",d:"m261,270l-12,0l0,-24c0,-33.12 -26.88,-60 -60,-60s-60,26.88 -60,60l0,24l-12,0c-13.2,0 -24,10.8 -24,24l0,120c0,13.2 10.8,24 24,24l144,0c13.2,0 24,-10.8 24,-24l0,-120c0,-13.2 -10.8,-24 -24,-24zm-72,108c-13.2,0 -24,-10.8 -24,-24s10.8,-24 24,-24s24,10.8 24,24s-10.8,24 -24,24zm37.2,-108l-74.4,0l0,-24c0,-20.52 16.68,-37.2 37.2,-37.2c20.52,0 37.2,16.68 37.2,37.2l0,24z"})),iu=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 320 320",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),p.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"})),cit=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:t=>e.onClick&&e.onClick(t),viewBox:"0 0 24 24",width:e.width||(e.fontSize==="small"?16:20),height:e.height||e.width||(e.fontSize==="small"?16:20),className:e.className,style:e.style},p.createElement("path",{fill:"currentColor",stroke:"currentColor",d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39A.998.998 0 0 0 18.95 4H5.04c-.83 0-1.3.95-.79 1.61z"})),Qv={root:{width:"100%",height:"100%"},overflowHidden:{overflow:"hidden"},container:{height:"100%"}};function dit(e){var t;return p.createElement(qs,{elevation:Number.isNaN(e.elevation)?1:e.elevation,style:{...Qv.root,...((t=e.styles)==null?void 0:t.root)||void 0,...e.overflow!=="visible"?Qv.overflowHidden:void 0},onKeyDown:e.onKeyDown,tabIndex:e.tabIndex},p.createElement(_s,{container:!0,direction:"column",wrap:"nowrap",sx:Qv.container},e.children))}const yE={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};function uit(e){return p.createElement(_s,{sx:{...yE.root,...(e==null?void 0:e.style)||void 0,...e.overflow==="auto"?yE.overflowAuto:void 0},ref:e.ref},e.children)}function pit(e){return p.createElement(_s,{container:!0,alignItems:"center"},e.children)}const vl=24,Kn=32,hit=16,pn=20,WA=e=>e==="dark"?"#62ff25":"#37c400",VA=e=>e==="dark"?"#ee56ff":"#a204b4",fit=e=>e==="dark"?"#fff46e":"#b89101",GA=e=>"#ff6d69",qA=e=>"#5773ff",XA="#ff413c",JA="#86211f",c0="#57ff45",d0="#098c04",u0="#f3ad11",p0="#6c5008",z={toolbar:{minHeight:38},toolbarButtons:{padding:4,marginLeft:4},switchColumnAuto:{marginLeft:16},dialogColumns:{transition:"opacity 1s"},dialogColumnsLabel:{fontSize:12,paddingTop:8},columnCustom:{width:"100%",display:"inline-block"},columnCustomEditable:{cursor:"text"},columnCustom_center:{textAlign:"center"},columnCustom_left:{textAlign:"left"},columnCustom_right:{textAlign:"right"},width100:{width:"100%"},transparent_10:{opacity:.1},transparent_20:{opacity:.2},transparent_30:{opacity:.3},transparent_40:{opacity:.4},transparent_50:{opacity:.5},transparent_60:{opacity:.6},transparent_70:{opacity:.7},transparent_80:{opacity:.8},transparent_90:{opacity:.9},transparent_100:{opacity:1},headerRow:{paddingLeft:8,height:38,whiteSpace:"nowrap",userSelect:"none"},buttonClearFilter:{position:"relative",float:"right",padding:0},buttonClearFilterIcon:{zIndex:2,position:"absolute",top:0,left:0,color:"#FF0000",opacity:.7},tableDiv:{paddingTop:0,paddingLeft:0,width:"calc(100% - 8px)",height:"calc(100% - 38px)",overflow:"auto"},tableRow:e=>({pl:1,height:Kn,lineHeight:`${Kn}px`,verticalAlign:"top",userSelect:"none",position:"relative",width:"100%","&:hover":{background:`${e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light} !important`,color:V.invertColor(e.palette.primary.main,!0)},whiteSpace:"nowrap",flexWrap:"nowrap"}),tableRowLines:e=>({borderBottom:`1px solid ${e.palette.mode==="dark","#8888882e"}`,"& > div":{borderRight:`1px solid ${e.palette.mode==="dark","#8888882e"}`}}),tableRowNoDragging:{cursor:"pointer"},tableRowAlias:{height:Kn+10},tableRowAliasReadWrite:{height:Kn+22},tableRowFocused:e=>({"&:after":{content:'""',position:"absolute",top:1,left:1,right:1,bottom:1,border:e.palette.mode?"1px dotted #000":"1px dotted #FFF"}}),checkBox:{padding:0},cellId:{position:"relative",fontSize:"1rem",overflow:"hidden",textOverflow:"ellipsis","& .copyButton":{display:"none"},"&:hover .copyButton":{display:"block"},"& .iconOwn":{display:"block",width:Kn-4,height:Kn-4,mt:"2px",float:"right"},"&:hover .iconOwn":{display:"none"},"& *":{width:"initial"}},cellIdSpan:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cellIdIconFolder:e=>({marginRight:8,width:Kn-4,height:Kn-4,cursor:"pointer",color:e.palette.secondary.main||"#fbff7d",verticalAlign:"top"}),cellIdIconDocument:{verticalAlign:"middle",marginLeft:(Kn-pn)/2,marginRight:8,width:pn,height:pn},cellIdIconOwn:{},cellIdTooltip:{fontSize:14},cellIdTooltipLink:{color:"#7ec2fd","&:hover":{color:"#7ec2fd"},"&:visited":{color:"#7ec2fd"}},cellCopyButton:{width:pn,height:pn,top:(Kn-pn)/2,opacity:.8,position:"absolute",right:3},cellCopyButtonInDetails:{width:pn,height:pn,top:(Kn-pn)/2,opacity:.8},cellEditButton:{width:pn,height:pn,color:"white",position:"absolute",top:(Kn-pn)/2,right:pn+3,opacity:.7,"&:hover":{opacity:1}},cellName:{display:"inline-block",verticalAlign:"top",fontSize:14,ml:"5px",overflow:"hidden",textOverflow:"ellipsis",position:"relative","& .copyButton":{display:"none"},"&:hover .copyButton":{display:"block"}},cellNameWithDesc:{lineHeight:"normal"},cellNameDivDiv:{},cellDescription:{fontSize:10,opacity:.5,fontStyle:"italic"},cellIdAlias:e=>({fontStyle:"italic",fontSize:12,opacity:.7,"&:hover":{color:e.palette.mode==="dark"?"#009900":"#007700"}}),cellIdAliasReadWriteDiv:{height:24,marginTop:-5},cellIdAliasAlone:{lineHeight:0},cellIdAliasReadWrite:{lineHeight:"12px"},cellType:{display:"inline-block",verticalAlign:"top","& .itemIcon":{verticalAlign:"middle",width:vl,height:vl,display:"inline-block"},"& .itemIconFolder":{marginLeft:3}},cellRole:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellRoom:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellEnumParent:{opacity:.4},cellFunc:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellValue:{display:"inline-block",verticalAlign:"top",textOverflow:"ellipsis",overflow:"hidden"},cellValueButton:{marginTop:5},cellValueButtonFalse:{opacity:.3},cellAdapter:{display:"inline-block",verticalAlign:"top"},cellValueTooltip:{fontSize:12},cellValueText:{width:"100%",height:Kn,fontSize:16,display:"flex",overflow:"hidden",textOverflow:"ellipsis",position:"relative",verticalAlign:"top","& .copyButton":{display:"none"},"&:hover .copyButton":{display:"block"}},cellValueFile:{color:"#2837b9"},cellValueTooltipTitle:{fontStyle:"italic",width:100,display:"inline-block"},cellValueTooltipValue:{width:120,display:"inline-block",whiteSpace:"nowrap",textOverflow:"ellipsis"},cellValueTooltipImage:{width:100,height:"auto"},cellValueTooltipBoth:{width:220,display:"inline-block",whiteSpace:"nowrap"},cellValueTooltipBox:{width:250,overflow:"hidden",pointerEvents:"none"},tooltip:{pointerEvents:"none"},cellValueTextUnit:{marginLeft:4,opacity:.8,display:"inline-block"},cellValueTextState:{opacity:.7},cellValueTooltipCopy:{position:"absolute",bottom:3,right:3},cellValueTooltipEdit:{position:"absolute",bottom:3,right:15},cellButtons:{display:"inline-block",verticalAlign:"top"},cellButtonsButton:{display:"inline-block",opacity:.5,width:pn+4,height:pn+4,"&:hover":{opacity:1},p:0,mt:"-2px"},cellButtonsEmptyButton:{fontSize:12},cellButtonMinWidth:{minWidth:40},cellButtonsButtonAlone:{ml:`${pn+6}px`,pt:0,mt:"-2px"},cellButtonsButtonWithCustoms:e=>({color:e.palette.mode==="dark"?e.palette.primary.main:e.palette.secondary.main}),cellButtonsButtonWithoutCustoms:{opacity:.2},cellButtonsValueButton:e=>({position:"absolute",top:pn/2-2,opacity:.7,width:pn-2,height:pn-2,color:e.palette.action.active,"&:hover":{opacity:1}}),cellButtonsValueButtonCopy:{right:8,cursor:"pointer"},cellButtonsValueButtonEdit:{right:pn/2+16},cellDetailsLine:{display:"flex",alignItems:"center",width:"100%",height:32,fontSize:16},cellDetailsName:{fontWeight:"bold",marginRight:8,minWidth:80},filteredOut:{opacity:.5},filteredParentOut:{opacity:.3},filterInput:{mt:0,mb:0},selectIcon:{width:24,height:24,marginRight:4},selectNone:{opacity:.5},itemSelected:e=>({background:`${e.palette.primary.main} !important`,color:`${V.invertColor(e.palette.primary.main,!0)} !important`}),header:{width:"100%"},headerCell:{display:"inline-block",verticalAlign:"top"},headerCellValue:{paddingTop:4,fontSize:16},headerCellInput:{width:"calc(100% - 5px)",height:Kn,pt:0,"& .itemIcon":{verticalAlign:"middle",width:vl,height:vl,display:"inline-block"}},headerCellSelectItem:{"& .itemIcon":{width:vl,height:vl,mr:"5px",display:"inline-block"}},visibleButtons:{color:"#2196f3",opacity:.7},grow:{flexGrow:1},enumIconDiv:{marginRight:8,width:32,height:32,borderRadius:8,background:"#FFFFFF"},enumIcon:{marginTop:4,marginLeft:4,width:24,height:24},enumDialog:{overflow:"hidden"},enumList:{minWidth:250,height:"calc(100% - 50px)",overflow:"auto"},enumButton:{float:"right"},enumCheckbox:{minWidth:0},buttonDiv:{display:"flex",height:"100%",alignItems:"center"},aclText:{fontSize:13,marginTop:6},rightsObject:{color:"#55ff55",paddingLeft:3},rightsState:{color:"#86b6ff",paddingLeft:3},textCenter:{padding:12,textAlign:"center"},tooltipAccessControl:{display:"flex",flexDirection:"column"},fontSizeTitle:{"@media screen and (max-width: 465px)":{"& *":{fontSize:12}}},draggable:{cursor:"copy"},nonDraggable:{cursor:"no-drop"},selectClearButton:{position:"absolute",top:0,right:0,borderRadius:5,backgroundColor:"background.default"},iconDeviceConnected:e=>({color:e.palette.mode==="dark"?c0:d0,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceDisconnected:e=>({color:e.palette.mode==="dark"?u0:p0,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceError:e=>({color:e.palette.mode==="dark"?XA:JA,opacity:.8,position:"absolute",top:4,right:50,width:20}),resizeHandle:{display:"block",position:"absolute",cursor:"col-resize",width:7,top:2,bottom:2,zIndex:1},resizeHandleRight:{right:3,borderRight:"2px dotted #888","&:hover":{borderColor:"#ccc",borderRightStyle:"solid"},"&.active":{borderColor:"#517ea5",borderRightStyle:"solid"}},invertedBackground:e=>({backgroundColor:e.palette.mode==="dark"?"#9a9a9a":"#565656",padding:"0 3px",borderRadius:"2px 0 0 2px"}),invertedBackgroundFlex:e=>({backgroundColor:e.palette.mode==="dark"?"#9a9a9a":"#565656",borderRadius:"0 2px 2px 0"}),contextMenuEdit:e=>({color:e.palette.mode==="dark"?"#ffee48":"#cbb801"}),contextMenuEditValue:e=>({color:e.palette.mode==="dark"?"#5dff45":"#1cd301"}),contextMenuView:e=>({color:e.palette.mode==="dark"?"#FFF":"#000"}),contextMenuCustom:e=>({color:e.palette.mode==="dark"?"#42eaff":"#01bbc2"}),contextMenuACL:e=>({color:e.palette.mode==="dark"?"#e079ff":"#500070"}),contextMenuRoom:e=>({color:e.palette.mode==="dark"?"#ff9a33":"#642a00"}),contextMenuRole:e=>({color:e.palette.mode==="dark"?"#ffdb43":"#562d00"}),contextMenuDelete:e=>({color:e.palette.mode==="dark"?"#ff4f4f":"#cf0000"}),contextMenuKeys:{marginLeft:8,opacity:.7,fontSize:"smaller"},contextMenuWithSubMenu:{display:"flex"}};function mit(e){return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 436 436",style:e==null?void 0:e.style,width:"24",height:"24",className:"admin-button"},p.createElement("g",{fill:"currentColor"},p.createElement("path",{d:"m195.23077,24.30769c-36,3 -67,12 -96,26c-49,24 -82,61 -93,104l-3,11l-1,50c0,46 0,49 2,59l5,20c21,58 84,103 165,116c16,3 53,4 70,2c60,-6 111,-28 147,-64c21,-21 36,-49 40,-74a866,866 0 0 0 1,-104c-3,-18 -6,-28 -13,-43c-26,-52 -87,-90 -162,-101c-16,-2 -48,-3 -63,-2l1,0zm60,23c36,5 70,18 95,35c31,20 51,47 59,77c2,7 2,11 2,25c1,15 0,18 -2,26c-19,69 -104,117 -200,114c-47,-2 -90,-15 -124,-38c-31,-20 -51,-47 -59,-77c-3,-11 -4,-32 -2,-43c8,-42 41,-78 91,-101a260,260 0 0 1 140,-19l0,1zm-221,222c21,26 57,49 95,62c81,27 174,14 239,-32c14,-10 31,-27 41,-41c2,-2 2,-2 2,7c-1,23 -16,50 -38,72c-78,74 -233,74 -311,-1a121,121 0 0 1 -39,-76l0,-6l3,4l8,11z"}),p.createElement("path",{d:"m201.23077,47.30769c-40,3 -79,19 -104,44c-55,55 -38,133 37,171c52,26 122,24 172,-5c30,-17 51,-42 58,-71c3,-11 3,-34 0,-45c-6,-23 -21,-44 -40,-60l-27,-16a184,184 0 0 0 -96,-18zm30,21c56,5 100,35 112,75c4,11 4,30 0,41c-8,25 -26,45 -54,59a166,166 0 0 1 -160,-8a98,98 0 0 1 -41,-53c-5,-18 -2,-39 8,-57c23,-39 79,-62 135,-57z"})))}function git(e,t){const n=[];for(let o=0;o{if(r==null)return;const s=typeof r=="object";if(n&&s&&typeof r.en=="string"&&typeof r.de=="string"){o[a]=r.en;return}o[a]=s?h0(r,t,n):r}):_it(e,(o,r,a)=>{if(r==null||t.includes(a))return;const s=typeof r=="object";if(n&&s&&typeof r.en=="string"&&typeof r.de=="string"){o[a]=r.en;return}o[a]=s?h0(r,t,n):r})}function bE(e,t,n){const o=document.createElement("a"),r=[];n.excludeSystemRepositories&&r.push("system.repositories");const a=r.length>0||n.excludeTranslations?h0(t,r,n.excludeTranslations):t,s=n.beautify?JSON.stringify(a,null,2):JSON.stringify(a);o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(s)}`),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}function hp(e,t,n,o){if(n=n||0,o===void 0&&(o=e.length-1,!o))return e[0]===t;const r=Math.floor((n+o)/2);return t===e[r]?!0:o-1===n?e[n]===t||e[o]===t:t>e[r]?hp(e,t,r,o):t$.role.startsWith(k))||(d=!0)):d=!0),!d&&((b=s.common)==null?void 0:b.custom)==="_"&&($!=null&&$.custom))d=!0;else if(!d&&((y=s.common)!=null&&y.custom)&&((w=s.common)==null?void 0:w.custom)!=="_"){const k=s.common.custom;if(!($!=null&&$.custom))d=!0;else if(k==="_dataSources")Object.keys($.custom).find(T=>T.startsWith("history.")||T.startsWith("sql.")||T.startsWith("influxdb."))||(d=!0);else if(Array.isArray(k)){const T=Object.keys($.custom);k.find(O=>T.find(D=>D.startsWith(O)))&&(d=!0)}else k!==!0&&!Object.keys($.custom).find(T=>T.startsWith(k))&&(d=!0)}}!d&&!t.expertMode&&(d=u.id==="system"||u.id==="enum"||u.id.startsWith("system.")||u.id.startsWith("enum.")||u.id.startsWith("_design/")||u.id.endsWith(".admin")||!!($!=null&&$.expert)),!d&&r.id&&(u.fID===void 0&&(u.fID=u.id.toLowerCase()),d=!u.fID.includes(r.id)),!d&&r.name&&($?(u.fName===void 0&&(u.fName=$&&To($.name,n)||"",u.fName=u.fName.toLowerCase()),d=!u.fName.includes(r.name)):d=!0),!d&&t.role&&$&&($?d=!($.role&&$.role.startsWith(r.role)):d=!0),!d&&r.room&&(d=!r.room.find(k=>k===u.id||u.id.startsWith(`${k}.`))),!d&&r.func&&(d=!r.func.find(k=>k===u.id||u.id.startsWith(`${k}.`))),!d&&r.type&&(d=!(u.obj&&u.obj.type&&u.obj.type===r.type)),!d&&i&&(d=!(u.obj&&u.obj.type&&i.includes(u.obj.type))),!d&&r.custom&&($?r.custom==="_"?d=!!$.custom:d=!$.custom||!$.custom[r.custom]:d=!0)}return u.visible=!d,u.hasVisibleChildren=!1,e.children&&l<20&&e.children.forEach($=>{f0($,t,n,o,r,a,s,i,l+1)&&(u.hasVisibleChildren=!0)}),u.sumVisibility=u.visible||u.hasVisibleChildren,a&&u.sumVisibility&&a.count++,u.id&&u.sumVisibility&&e.children&&e.children.forEach($=>$.data.hasVisibleParent=!0),u.visible||u.hasVisibleChildren}function YA(e,t,n,o){var a;o=o||[];const r=e.data;return r.sumVisibility&&(r.id&&n[r.id]&&n[r.id].type===t&&o.push(r.id),(a=e.children)==null||a.forEach(s=>YA(s,t,n,o))),o}function wE(e,t,n,o,r,a){let s;return t==="alias"||t==="alias.0"?s=p.createElement(s3,{className:"iconOwn",style:{color:VA(o)}}):t==="0_userdata"||t==="0_userdata.0"?s=p.createElement(lX,{className:"iconOwn",style:{color:WA(o)}}):t.startsWith("_design/")||t==="system"?s=p.createElement(u$,{className:"iconOwn",style:{color:GA(o)}}):t==="system.adapter"?s=p.createElement(u$,{className:"iconOwn",style:{color:qA(o)}}):t==="system.group"?s=p.createElement(d3,{className:"iconOwn"}):t==="system.user"?s=p.createElement(i3,{className:"iconOwn"}):t==="system.host"?s=p.createElement(c3,{className:"iconOwn"}):t.endsWith(".connection")||t.endsWith(".connected")?s=p.createElement(ou,{className:"iconOwn"}):t.endsWith(".info")?s=p.createElement(bX,{className:"iconOwn"}):e[t]&&e[t].type==="meta"?s=p.createElement(ww,{className:"iconOwn"}):n<2&&e[`system.adapter.${t}`]&&(s=Bm(e,`system.adapter.${t}`,r,a)),s||null}function KA(e,t){var n,o;return(o=(n=e==null?void 0:e.obj)==null?void 0:n.common)!=null&&o.desc&&To(e.obj.common.desc,t)||null}function vit(e,t){const n=KA(e,t);return n!=null&&n.startsWith("http")?p.createElement(ke,{component:"a",sx:z.cellIdTooltipLink,href:n,target:"_blank",rel:"noreferrer"},n):p.createElement("span",{style:z.cellIdTooltip},n||e.id||"")}function SE(e,t){var u,c,h,f,g,v,S,_,b;const n=t.imagePrefix||".";let o=Object.keys(e);o.sort((y,w)=>y===w?0:(y=y.replace(/\./g,"!!!"),w=w.replace(/\./g,"!!!"),y>w?1:-1)),t.root&&(o=o.filter(y=>y===t.root||y.startsWith(`${t.root}.`)));let r=[],a="",s=0;const i={data:{name:"",id:""},children:[]},l={funcEnums:[],roomEnums:[],roles:[],ids:[],types:[],objects:e,customs:["_"],enums:[],hasSomeCustoms:!1,aliasesMap:{}};let d=i;for(let y=0;y1){let D=a;for(let x=s;xA.data.name===k[x]));else{const A={data:{name:k[x],parent:d,id:D,obj:e[D],level:x,icon:wE(e,D,x,t.themeType,t.lang,n),generated:!0}};d.children=d.children||[],d.children.push(A),d=A,l.ids.push(D)}}const O={data:{name:k[k.length-1],title:To((h=$==null?void 0:$.common)==null?void 0:h.name,t.lang),obj:$,parent:d,icon:Bm(e,w,t.lang,n)||wE(e,w,0,t.themeType,t.lang,n),id:w,hasCustoms:!!((f=$.common)!=null&&f.custom&&Object.keys($.common.custom).length),level:k.length-1,generated:!1,button:$.type==="state"&&!!((g=$.common)!=null&&g.role)&&typeof $.common.role=="string"&&$.common.role.startsWith("button")&&((v=$.common)==null?void 0:v.write)!==!1,switch:$.type==="state"&&((S=$.common)==null?void 0:S.type)==="boolean"&&((_=$.common)==null?void 0:_.write)!==!1&&((b=$.common)==null?void 0:b.read)!==!1}};d.children=d.children||[],d.children.push(O),d=O,s=k.length,r=k,a=w}else{let O=0;for(;r[O]===k[O];)O++;if(O>0){let D=r.length;for(r=r.splice(0,O),s=O,a=r.join(".");D>O;)d.data.parent?d=d.data.parent:console.error(`Parent is null for ${w} ${a} ${r.join(".")}`),D--}else d=i,r=[],a="",s=0;T=!0}while(T)}return l.roomEnums.sort((y,w)=>{var T,O,D,x;const $=To((O=(T=e[y])==null?void 0:T.common)==null?void 0:O.name,t.lang)||y.split(".").pop(),k=To((x=(D=e[w])==null?void 0:D.common)==null?void 0:x.name,t.lang)||w.split(".").pop();return $>k?1:${var T,O,D,x;const $=To((O=(T=e[y])==null?void 0:T.common)==null?void 0:O.name,t.lang)||y.split(".").pop(),k=To((x=(D=e[w])==null?void 0:D.common)==null?void 0:x.name,t.lang)||w.split(".").pop();return $>k?1:$o)break}return a?(r=r||0,ZA(a,t,n,`${o}.${n[r+1]}`,r+1)):null}function QA(e,t,n,o){var s,i;if(!t)return{rooms:[],per:!1};o=o||[];for(const l of e.roomEnums){const d=(s=e.objects[l])==null?void 0:s.common;if(!d)continue;const u=To(d.name,n);(i=d.members)!=null&&i.includes(t)&&!o.includes(u)&&o.push(u)}let r;const a=t.split(".");return a.pop(),t=a.join("."),e.objects[t]&&(r=o.length,QA(e,t,n,o)),{rooms:o,per:!r}}function yl(e,t,n,o){var r,a;if(!t)return[];o=o||[];for(let s=0;s946681200&&d<9466812e5&&(d*=1e3),d=d&&new Date(d).toString();else u==="number"?Number.isInteger(d)||(d=Math.round(d*1e8)/1e8,o&&(d=d.toString().replace(".",","))):u==="object"?d=JSON.stringify(d):u!=="string"?d=d.toString():d.startsWith("data:image/")&&(l="image"),typeof d!="string"&&(d=d.toString());const c={v:d};s&&s[d]!==void 0&&d!==s[d]&&(c.s=d,d=s[d],c.v=d),i!=null&&i.unit&&(c.u=i.unit);let h;if(e.full&&(h=[{t:r.value,v:d}],n)){if(n.ack!==void 0&&n.ack!==null&&h.push({t:r.ack,v:n.ack.toString()}),n.ts&&h.push({t:r.ts,v:n.ts?V.formatDate(new Date(n.ts),t):""}),n.lc&&h.push({t:r.lc,v:n.lc?V.formatDate(new Date(n.lc),t):""}),n.from){let f=n.from.toString();f.startsWith("system.adapter.")&&(f=f.substring(15)),h.push({t:r.from,v:f})}if(n.user){let f=n.user.toString();f.startsWith("system.user.")&&(f=f.substring(12)),h.push({t:r.user,v:f})}n.c&&h.push({t:r.c,v:n.c}),h.push({t:r.quality,v:V.quality2text(n.q||0).join(", "),nbr:!0})}return{valText:c,valFull:h,fileViewer:l}}function yit(e){const{state:t}=e;return{color:t!=null&&t.ack?t.q?"#ffa500":"":"#ff2222c9"}}function bit(e,t){let n=t,o=1;const r=[];for(;o=n)r.push(0);else if(o{this.contextMenu&&Date.now()-this.contextMenu.ts<2e3?(n.preventDefault(),this.setState({showContextMenu:{item:this.contextMenu.item,position:{left:n.clientX+2,top:n.clientY-6}}})):this.state.showContextMenu&&(n.preventDefault(),this.setState({showContextMenu:null})),this.contextMenu=null});F(this,"onStateChange",(n,o)=>{if(console.log(`> stateChange ${n}`),this.states[n]){const r=this.findItem(n);r!=null&&r.data.state&&(r.data.state=void 0)}o?this.states[n]=o:delete this.states[n],this.pausedSubscribes?this.statesUpdateTimer&&(clearTimeout(this.statesUpdateTimer),this.statesUpdateTimer=null):this.statesUpdateTimer||(this.statesUpdateTimer=setTimeout(()=>{this.statesUpdateTimer=null,this.forceUpdate()},300))});F(this,"onObjectChangeFromWorker",n=>{if(Array.isArray(n)){let o=null;n.forEach(r=>{const{newInnerState:a,filtered:s}=this.processOnObjectChangeElement(r.id,r.obj);s||(a&&o?Object.assign(o,a):o=a)}),o&&this.setState(o),this.afterObjectUpdated()}});F(this,"onObjectChange",(n,o)=>{const{newInnerState:r,filtered:a}=this.processOnObjectChangeElement(n,o);a||(r&&this.setState(r),this.afterObjectUpdated())});F(this,"getEnumsForId",n=>{const o=[];return this.info.enums.forEach(r=>{var a,s,i;if((i=(s=(a=this.objects[r])==null?void 0:a.common)==null?void 0:s.members)!=null&&i.includes(n)){const l={_id:this.objects[r]._id,common:JSON.parse(JSON.stringify(this.objects[r].common)),native:this.objects[r].native,type:"enum"};l.common&&(delete l.common.members,delete l.common.custom,delete l.common.mobile),o.push(l)}}),o.length?o:void 0});F(this,"_createAllEnums",async(n,o)=>{var r,a;for(let s=0;s{var r,a;const{t:n}=this.props;let o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:2},n("ra_Folder → State")),p.createElement("div",{key:3},n("ra_Folder → Channel → State")),p.createElement("div",{key:4},n("ra_Folder → Device → Channel → State")),p.createElement("div",{key:5},n("ra_Device → Channel → State")),p.createElement("div",{key:6},n("ra_Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];if(this.state.selected.length||this.state.selectedNonObject){const s=this.state.selected[0]||this.state.selectedNonObject;if(!(s.split(".").length<2||this.objects[s]&&((r=this.objects[s])==null?void 0:r.type)==="state"))if(this.state.filter.expertMode)switch((a=this.objects[s])==null?void 0:a.type){case"device":o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:5},n("ra_Device → Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"folder":o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:2},n("ra_Folder → State")),p.createElement("div",{key:3},n("ra_Folder → Channel → State")),p.createElement("div",{key:4},n("ra_Folder → Device → Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"channel":o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:1},n("ra_Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:8},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:9},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break}else(s.startsWith("alias.0")||s.startsWith("0_userdata"))&&(o=[p.createElement("div",{key:1},n("ra_Only following structures of objects are available:")),p.createElement("div",{key:2},n("ra_Folder → State")),p.createElement("div",{key:3},n("ra_Folder → Channel → State")),p.createElement("div",{key:4},n("ra_Folder → Device → Channel → State")),p.createElement("div",{key:5},n("ra_Device → Channel → State")),p.createElement("div",{key:6},n("ra_Channel → State")),p.createElement("div",{key:7,style:{height:10}}),p.createElement("div",{key:7},n('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),p.createElement("div",{key:8},n('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))])}return o.length?o:n("ra_Add new child object to selected parent")});F(this,"renderTooltipAccessControl",n=>{if(!n)return null;const o=[{value:"0x400",valueNum:1024,title:"read",group:"Owner"},{value:"0x200",valueNum:512,title:"write",group:"Owner"},{value:"0x40",valueNum:64,title:"read",group:"Group"},{value:"0x20",valueNum:32,title:"write",group:"Group"},{value:"0x4",valueNum:4,title:"read",group:"Everyone"},{value:"0x2",valueNum:2,title:"write",group:"Everyone"}],r=[],a=s=>{const i=n[s];o.forEach((l,d)=>{i&l.valueNum&&r.push(p.createElement("span",{key:s+d},this.texts[`acl${l.group}_${l.title}_${s}`],",",p.createElement("span",{style:s==="object"?z.rightsObject:z.rightsState},l.value)))})};return r.push(p.createElement("span",{key:"group"},`${this.texts.ownerGroup}: ${(n.ownerGroup||"").replace("system.group.","")}`)),r.push(p.createElement("span",{key:"owner"},`${this.texts.ownerUser}: ${(n.owner||"").replace("system.user.","")}`)),a("object"),n.state&&a("state"),r.length?p.createElement("span",{style:z.tooltipAccessControl},r.map(s=>s)):null});F(this,"resizerMouseMove",n=>{if(this.resizerActiveDiv){let o,r;this.resizeLeft?(o=this.resizerOldWidth-n.clientX+this.resizerPosition,r=this.resizerOldWidthNext+n.clientX-this.resizerPosition):(o=this.resizerOldWidth+n.clientX-this.resizerPosition,r=this.resizerOldWidthNext-n.clientX+this.resizerPosition),this.resizerActiveName&&this.resizerNextName&&(!this.resizerMin||o>this.resizerMin)&&(!this.resizerNextMin||r>this.resizerNextMin)&&(this.resizerCurrentWidths[this.resizerActiveName]=o,this.resizerCurrentWidths[this.resizerNextName]=r,this.resizerActiveDiv.style.width=`${o}px`,this.resizerNextDiv&&(this.resizerNextDiv.style.width=`${r}px`),this.columnsVisibility[this.resizerActiveName]=o,this.columnsVisibility[this.resizerNextName]=r,this.resizerNextName==="nameHeader"?(this.columnsVisibility.name=r-this.state.scrollBarWidth,this.resizerCurrentWidths.name=r-this.state.scrollBarWidth):this.resizerActiveName==="nameHeader"&&(this.columnsVisibility.name=o-this.state.scrollBarWidth,this.resizerCurrentWidths.name=o-this.state.scrollBarWidth),this.customWidth=!0,this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=null,this.forceUpdate()},200))}});F(this,"resizerMouseUp",()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.table`,JSON.stringify(this.resizerCurrentWidths)),this.resizerActiveName=null,this.resizerNextName=null,this.resizerActiveDiv=null,this.resizerNextDiv=null,window.removeEventListener("mousemove",this.resizerMouseMove),window.removeEventListener("mouseup",this.resizerMouseUp)});F(this,"resizerMouseDown",n=>{if(this.storedWidths=this.storedWidths||JSON.parse(JSON.stringify(cn[this.props.width||"lg"])),this.resizerCurrentWidths=this.resizerCurrentWidths||{},this.resizerActiveDiv=n.target.parentNode,this.resizerActiveName=this.resizerActiveDiv.dataset.name||null,this.resizerActiveName){let o=0;if(n.target.dataset.left==="true"){this.resizeLeft=!0,this.resizerNextDiv=this.resizerActiveDiv.previousElementSibling;let r=this.resizerNextDiv.querySelector(".iob-ob-resize-handler");for(;this.resizerNextDiv&&!r&&o<10;)this.resizerNextDiv=this.resizerNextDiv.previousElementSibling,r=this.resizerNextDiv.querySelector(".iob-ob-resize-handler"),o++;(r==null?void 0:r.dataset.left)!=="true"&&(this.resizerNextDiv=this.resizerNextDiv.nextElementSibling)}else this.resizeLeft=!1,this.resizerNextDiv=this.resizerActiveDiv.nextElementSibling;this.resizerNextName=this.resizerNextDiv.dataset.name||null,this.resizerMin=parseInt(this.resizerActiveDiv.dataset.min,10)||0,this.resizerNextMin=parseInt(this.resizerNextDiv.dataset.min,10)||0,this.resizerPosition=n.clientX,this.resizerCurrentWidths[this.resizerActiveName]=this.resizerActiveDiv.offsetWidth,this.resizerOldWidth=this.resizerCurrentWidths[this.resizerActiveName],this.resizerNextName&&(this.resizerCurrentWidths[this.resizerNextName]=this.resizerNextDiv.offsetWidth,this.resizerOldWidthNext=this.resizerCurrentWidths[this.resizerNextName]),window.addEventListener("mousemove",this.resizerMouseMove),window.addEventListener("mouseup",this.resizerMouseUp)}});F(this,"resizerReset",()=>{this.customWidth=!1,cn[this.props.width||"lg"]=JSON.parse(JSON.stringify(this.storedWidths)),this.calculateColumnsVisibility(),this.localStorage.removeItem(`${this.props.dialogName||"App"}.table`),this.forceUpdate()});const o=this.localStorage.getItem(`${n.dialogName||"App"}.objectSelected`)||"";if(this.selectFirst="",o.startsWith("["))try{const _=JSON.parse(o);this.selectFirst=_[0]||""}catch{}else this.selectFirst=o;let r;const a=this.localStorage.getItem(`${n.dialogName||"App"}.objectExpanded`)||"[]";try{r=JSON.parse(a)}catch{r=[]}let s;const i=n.defaultFilters?"":this.localStorage.getItem(`${n.dialogName||"App"}.objectFilter`)||"";if(i)try{s=JSON.parse(i)}catch{s={...Vh}}else n.defaultFilters&&typeof n.defaultFilters=="object"?s={...n.defaultFilters}:s={...Vh};if(s.expertMode=n.expertMode!==void 0?n.expertMode:(window._sessionStorage||window.sessionStorage).getItem("App.expertMode")==="true",this.tableRef=C.createRef(),this.filterRefs={},Object.keys(Vh).forEach(_=>this.filterRefs[_]=C.createRef()),this.visibleCols=n.columns||cn[n.width||"lg"].fields,n.types&&n.types.length===1){const _=this.visibleCols.indexOf("type");_!==-1&&this.visibleCols.splice(_,1)}this.possibleCols=cn.xl.fields;let l=null;if(n.router){const _=n.router.getLocation();_.id&&_.dialog==="customs"&&(l=[_.id],this.pauseSubscribe(!0))}let d;Array.isArray(n.selected)?d=n.selected:d=[n.selected||""],d=d.map(_=>_.replace(/["']/g,"")).filter(_=>_),this.selectFirst=d.length&&d[0]?d[0]:this.selectFirst;const u=this.localStorage.getItem(`${n.dialogName||"App"}.columns`);let c;try{c=u?JSON.parse(u):null}catch{c=null}let h=null;try{h=h?JSON.parse(h):{}}catch{h={}}this.imagePrefix=n.imagePrefix||".";let f;const g=this.localStorage.getItem(`${n.dialogName||"App"}.foldersFirst`);g==="false"?f=!1:g==="true"?f=!0:f=n.foldersFirst===void 0?!0:n.foldersFirst;let v=!1;try{v=this.props.objectStatesView&&JSON.parse(this.localStorage.getItem(`${n.dialogName||"App"}.objectStatesView`)||"")||!1}catch{}this.state={loaded:!1,foldersFirst:f,selected:d,selectedNonObject:this.localStorage.getItem(`${n.dialogName||"App"}.selectedNonObject`)||"",filter:s,filterKey:0,focused:this.localStorage.getItem(`${n.dialogName||"App"}.focused`)||"",depth:0,expandAllVisible:!1,expanded:r,toast:"",scrollBarWidth:16,customDialog:l,editObjectDialog:"",editObjectAlias:!1,viewFileDialog:"",showAliasEditor:"",enumDialog:null,roleDialog:null,statesView:v,columns:c,columnsForAdmin:null,columnsSelectorShow:!1,columnsAuto:this.localStorage.getItem(`${n.dialogName||"App"}.columnsAuto`)!=="false",columnsWidths:h,columnsDialogTransparent:100,columnsEditCustomDialog:null,customColumnDialogValueChanged:!1,showExportDialog:!1,showAllExportOptions:!1,linesEnabled:this.localStorage.getItem(`${n.dialogName||"App"}.lines`)==="true",showDescription:this.localStorage.getItem(`${n.dialogName||"App"}.desc`)!=="false",showContextMenu:null,noStatesByExportImport:!1,beautifyJsonExport:!0,excludeSystemRepositoriesFromExport:!0,excludeTranslations:!1,tooltipInfo:null,aliasMenu:""},this.texts={name:n.t("ra_Name"),categories:n.t("ra_Categories"),value:n.t("ra_tooltip_value"),ack:n.t("ra_tooltip_ack"),ts:n.t("ra_tooltip_ts"),lc:n.t("ra_tooltip_lc"),from:n.t("ra_tooltip_from"),user:n.t("ra_tooltip_user"),c:n.t("ra_tooltip_comment"),quality:n.t("ra_tooltip_quality"),editObject:n.t("ra_tooltip_editObject"),deleteObject:n.t("ra_tooltip_deleteObject"),customConfig:n.t("ra_tooltip_customConfig"),copyState:n.t("ra_tooltip_copyState"),editState:n.t("ra_tooltip_editState"),close:n.t("ra_Close"),filter_id:n.t("ra_filter_id"),filter_name:n.t("ra_filter_name"),filter_type:n.t("ra_filter_type"),filter_role:n.t("ra_filter_role"),filter_room:n.t("ra_filter_room"),filter_func:n.t("ra_filter_func"),filter_custom:n.t("ra_filter_customs"),filterCustomsWithout:n.t("ra_filter_customs_without"),objectChangedByUser:n.t("ra_object_changed_by_user"),objectChangedBy:n.t("ra_object_changed_by"),objectChangedFrom:n.t("ra_state_changed_from"),stateChangedBy:n.t("ra_state_changed_by"),stateChangedFrom:n.t("ra_state_changed_from"),ownerGroup:n.t("ra_Owner group"),ownerUser:n.t("ra_Owner user"),deviceError:n.t("ra_Error"),deviceDisconnected:n.t("ra_Disconnected"),deviceConnected:n.t("ra_Connected"),aclOwner_read_object:n.t("ra_aclOwner_read_object"),aclOwner_read_state:n.t("ra_aclOwner_read_state"),aclOwner_write_object:n.t("ra_aclOwner_write_object"),aclOwner_write_state:n.t("ra_aclOwner_write_state"),aclGroup_read_object:n.t("ra_aclGroup_read_object"),aclGroup_read_state:n.t("ra_aclGroup_read_state"),aclGroup_write_object:n.t("ra_aclGroup_write_object"),aclGroup_write_state:n.t("ra_aclGroup_write_state"),aclEveryone_read_object:n.t("ra_aclEveryone_read_object"),aclEveryone_read_state:n.t("ra_aclEveryone_read_state"),aclEveryone_write_object:n.t("ra_aclEveryone_write_object"),aclEveryone_write_state:n.t("ra_aclEveryone_write_state"),create:n.t("ra_Create"),createBooleanState:n.t("ra_create_boolean_state"),createNumberState:n.t("ra_create_number_state"),createStringState:n.t("ra_create_string_state"),createState:n.t("ra_create_state"),createChannel:n.t("ra_create_channel"),createDevice:n.t("ra_create_device"),createFolder:n.t("ra_Create folder")},this.levelPadding=n.levelPadding||hit;const S=this.localStorage.getItem(`${this.props.dialogName||"App"}.table`);if(S)try{const _=JSON.parse(S),b=this.props.width||"lg";this.storedWidths=JSON.parse(JSON.stringify(cn[b])),Object.keys(_).forEach(y=>{y==="id"?cn[b].idWidth=_.id:y==="nameHeader"?cn[b].widths.name=_[y]:cn[b].widths[y]!==void 0&&(cn[b].widths[y]=_[y])}),this.customWidth=!0}catch{}this.calculateColumnsVisibility()}async loadAllObjects(n){const o=this.props;try{await new Promise(d=>{this.setState({updating:!0},()=>d())});const r=(this.props.objectsWorker?await this.props.objectsWorker.getObjects(n):await o.socket.getObjects(n,!0))||{};if(o.types&&Vr.isWeb())for(let d=0;d{try{if(d(r[u]))this.objects[u]=r[u];else{const c=r[u]&&r[u].type;c&&(c==="channel"||c==="device"||c==="folder"||c==="adapter"||c==="instance")&&(this.objects[u]=r[u])}}catch(c){console.log(`Error by filtering of "${u}": ${c}`)}})}else if(o.types){this.objects={};const d=o.types;Object.keys(r).forEach(u=>{const c=r[u]&&r[u].type;c&&(c==="channel"||c==="device"||c==="enum"||c==="folder"||c==="adapter"||c==="instance"||d.includes(c))&&(this.objects[u]=r[u])})}else this.objects=r;o.setObjectsReference&&o.setObjectsReference(this.objects),this.defaultHistory=this.systemConfig.common.defaultHistory,this.defaultHistory&&o.socket.getState(`system.adapter.${this.defaultHistory}.alive`).then(d=>{(!d||!d.val)&&(this.defaultHistory="")}).catch(d=>window.alert(`Cannot get state: ${d}`));const a=await this.getAdditionalColumns();this.calculateColumnsVisibility(null,null,a);const{info:s,root:i}=SE(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=i,this.info=s;const l=this.state.selected&&this.state.selected.length&&ZA(this.root,this.state.selected[0]);this.lastAppliedFilter=null,l&&!f0(l,this.state.filter,this.props.lang,this.objects,void 0,void 0,o.customFilter,o.types)?this.setState({filter:{...Vh},columnsForAdmin:a},()=>{this.setState({loaded:!0,updating:!1},()=>this.expandAllSelected(()=>this.onAfterSelect()))}):this.setState({loaded:!0,updating:!1,columnsForAdmin:a},()=>this.expandAllSelected(()=>this.onAfterSelect()))}catch(r){this.showError(r)}}static isNonExpertId(n){return!!xS(wr,qm).find(o=>n.startsWith(o))}expandAllSelected(n){const o=[...this.state.expanded];let r=!1;this.state.selected.forEach(a=>{const s=a.split("."),i=[];for(let l=0;lthis.props.onSelect&&this.props.onSelect([],"")):this.props.onSelect&&this.props.onSelect([],"")}static getDerivedStateFromProps(n,o){const r={};let a=!1;return n.expertMode!==void 0&&n.expertMode!==o.filter.expertMode&&(a=!0,r.filter={...o.filter},r.filter.expertMode=n.expertMode),a?r:null}async componentDidMount(){await this.loadAllObjects(!CE),this.props.objectsWorker?this.props.objectsWorker.registerHandler(this.onObjectChangeFromWorker):await this.props.socket.subscribeObject("*",this.onObjectChange),CE=!0,window.addEventListener("contextmenu",this.onContextMenu,!0)}componentWillUnmount(){this.filterTimer&&(clearTimeout(this.filterTimer),this.filterTimer=null),window.removeEventListener("contextmenu",this.onContextMenu,!0),this.props.objectsWorker?this.props.objectsWorker.unregisterHandler(this.onObjectChangeFromWorker,!0):this.props.socket.unsubscribeObject("*",this.onObjectChange).catch(n=>console.error(`Cannot unsubscribe *: ${n}`)),this.subscribes.forEach(n=>{console.log(`- unsubscribe ${n}`),this.props.socket.unsubscribeState(n,this.onStateChange)}),this.subscribes=[],this.objects={}}showDeleteDialog(n){var d,u;const{id:o,obj:r,item:a}=n,s=Object.keys(this.objects);s.sort();let i=0;const l=`${o}.`;for(let c=0;cl)break;this.props.onObjectDelete&&this.props.onObjectDelete(o,!!((d=a.children)!=null&&d.length),!((u=r.common)!=null&&u.dontDelete),i+1)}refreshComponent(){this.subscribes.forEach(n=>{console.log(`- unsubscribe ${n}`),this.props.socket.unsubscribeState(n,this.onStateChange)}),this.subscribes=[],this.loadAllObjects(!0).then(()=>console.log("updated!")).catch(n=>this.showError(n))}renderErrorDialog(){return this.state.error?p.createElement(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({error:""}),"aria-labelledby":"error-dialog-title","aria-describedby":"error-dialog-description"},p.createElement(bt,{id:"alert-dialog-title"},this.props.t("ra_Error")),p.createElement(jt,null,p.createElement(Ra,{id:"alert-dialog-description"},this.state.error)),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.setState({error:""}),color:"primary",autoFocus:!0,startIcon:p.createElement(qn,null)},this.props.t("ra_Ok")))):null}showError(n){this.setState({error:typeof n=="object"?n&&typeof n.toString=="function"?n.toString():JSON.stringify(n):n})}onSelect(n,o,r){if(this.localStorage.setItem(`${this.props.dialogName||"App"}.focused`,n),!this.props.multiSelect)this.objects[n]&&(!this.props.types||this.props.types.includes(this.objects[n].type))?(this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`),this.state.selected[0]!==n?this.setState({selected:[n],selectedNonObject:"",focused:n},()=>{this.onAfterSelect(o),r&&r()}):o&&this.props.onSelect&&this.onAfterSelect(o)):(this.localStorage.setItem(`${this.props.dialogName||"App"}.selectedNonObject`,n),this.setState({selected:[],selectedNonObject:n,focused:n},()=>{this.onAfterSelect(),r&&r()}));else if(this.objects[n]&&(!this.props.types||this.props.types.includes(this.objects[n].type))){this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`);const a=[...this.state.selected],s=a.indexOf(n);s===-1?(a.push(n),a.sort()):o||a.splice(s,1),this.setState({selected:a,selectedNonObject:"",focused:n},()=>{this.onAfterSelect(o),r&&r()})}}_renderDefinedList(n){const o=[...this.possibleCols];if(o.unshift("id"),this.props.columns&&!this.props.columns.includes("buttons")){const r=o.indexOf("buttons");r!==-1&&o.splice(r,1)}return o.filter(r=>n&&(r==="val"||r==="buttons")||!n&&r!=="val"&&r!=="buttons").map(r=>{var a;return p.createElement(Z2,{onClick:()=>{if(!this.state.columnsAuto&&r!=="id"){const s=[...this.state.columns||[]],i=s.indexOf(r);i===-1?(s.push(r),s.sort()):s.splice(i,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(s)),this.calculateColumnsVisibility(null,s),this.setState({columns:s})}},key:r},p.createElement(Tt,{edge:"start",disabled:r==="id"||this.state.columnsAuto,checked:r==="id"||!!(this.state.columnsAuto?this.visibleCols.includes(r):(a=this.state.columns)!=null&&a.includes(r)),disableRipple:!0}),p.createElement(as,{primary:this.texts[`filter_${r}`]||this.props.t(`ra_${r}`)}))})}renderColumnsSelectorDialog(){return this.state.columnsSelectorShow?p.createElement(yt,{onClose:()=>this.setState({columnsSelectorShow:!1}),open:!0,sx:{"& .MuiPaper-root":V.getStyle(this.props.theme,z.dialogColumns,z[`transparent_${this.state.columnsDialogTransparent}`])}},p.createElement(bt,{sx:z.fontSizeTitle},this.props.t("ra_Configure")),p.createElement(jt,{sx:z.fontSizeTitle},p.createElement(Oe,{style:z.switchColumnAuto,control:p.createElement(tu,{checked:this.state.foldersFirst,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.foldersFirst`,this.state.foldersFirst?"false":"true"),this.setState({foldersFirst:!this.state.foldersFirst})}}),label:this.props.t("ra_Folders always first")}),p.createElement(Oe,{style:z.switchColumnAuto,control:p.createElement(tu,{checked:this.state.linesEnabled,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.lines`,this.state.linesEnabled?"false":"true"),this.setState({linesEnabled:!this.state.linesEnabled})}}),label:this.props.t("ra_Show lines between rows")}),p.createElement(Oe,{style:z.switchColumnAuto,control:p.createElement(tu,{checked:this.state.columnsAuto,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.columnsAuto`,this.state.columnsAuto?"false":"true"),this.state.columnsAuto?this.state.columns?(this.calculateColumnsVisibility(!1),this.setState({columnsAuto:!1})):(this.calculateColumnsVisibility(!1,[...this.visibleCols]),this.setState({columnsAuto:!1,columns:[...this.visibleCols]})):(this.calculateColumnsVisibility(!0),this.setState({columnsAuto:!0}))}}),label:this.props.t("ra_Auto (no custom columns)")}),p.createElement(kb,null,this._renderDefinedList(!1),this.state.columnsForAdmin&&Object.keys(this.state.columnsForAdmin).sort().map(n=>this.state.columnsForAdmin&&this.state.columnsForAdmin[n].map(o=>{var r;return p.createElement(Z2,{onClick:()=>{if(!this.state.columnsAuto){const a=[...this.state.columns||[]],s=`_${n}_${o.path}`,i=a.indexOf(s);i===-1?(a.push(s),a.sort()):a.splice(i,1),this.calculateColumnsVisibility(null,a),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(a)),this.setState({columns:a})}},key:`${n}_${o.name}`},p.createElement(Tl,null,p.createElement(Tt,{disabled:this.state.columnsAuto,edge:"start",checked:!this.state.columnsAuto&&((r=this.state.columns)==null?void 0:r.includes(`_${n}_${o.path}`)),disableRipple:!0})),p.createElement(as,{primary:`${o.name} (${n})`}))})),this._renderDefinedList(!0))),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.setState({columnsSelectorShow:!1}),color:"primary",startIcon:p.createElement(Dt,null)},this.texts.close))):null}async getAdditionalColumns(){try{const n=await this.props.socket.getAdapters();let o=null;return n.forEach(r=>o=this.parseObjectForAdmins(o,r)),o}catch(n){return console.error(`Cannot get adapters: ${n}`),null}}checkUnsubscribes(){for(let n=this.subscribes.length-1;n>=0;n--)this.recordStates.includes(this.subscribes[n])||this.unsubscribe(this.subscribes[n]);this.recordStates=[]}findItem(n,o,r,a){if(o=o||n.split("."),r=r||this.root,!r||!o.length)return null;if(a=(a?`${a}.`:"")+o.shift(),r.children){const s=r.children.find(i=>i.data.id===a);if(s){if(s.data.id===n)return s;if(o.length)return this.findItem(n,o,s,a)}else return null}return null}parseObjectForAdmins(n,o){if(o.common&&o.common.adminColumns&&o.common.name){const r=o.common.adminColumns;let a;r&&typeof r!="object"?a=[r]:r&&(a=r);let s;r?s=a.map(i=>{if(typeof i!="object")return{path:i,name:i.split(".").pop()};const l=i;return l.objTypes&&typeof l.objTypes!="object"?l.objTypes=[l.objTypes]:l.objTypes||(l.objTypes=void 0),!l.name&&l.path?{path:l.path,name:l.path.split(".").pop(),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:l.path?{path:l.path,name:To(l.name||"",this.props.lang),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:(console.warn(`Admin columns for ${o._id} ignored, because path not found`),null)}).filter(i=>i):s=null,s&&s.length&&(n=n||{},n[o.common.name]=s.sort((i,l)=>i.path>l.path?-1:i.path{this.objectsUpdateTimer=null;const{info:n,root:o}=SE(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=o,this.info=n,this.lastAppliedFilter=null,this.pausedSubscribes||this.forceUpdate()},500))}updateAliases(n){var r,a,s;if(!this.objects||!((r=this.info)!=null&&r.aliasesMap)||!(n!=null&&n.startsWith("alias.")))return;const o=Object.keys(this.objects).filter(i=>i.startsWith("alias.0"));this.info.aliasesMap={};for(const i of o){const l=this.objects[i];if((s=(a=l==null?void 0:l.common)==null?void 0:a.alias)!=null&&s.id)if(typeof l.common.alias.id=="string"){const d=l.common.alias.id;this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(i)||this.info.aliasesMap[d].push(i):this.info.aliasesMap[d]=[i]}else{const d=l.common.alias.id.read;d&&(this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(i)||this.info.aliasesMap[d].push(i):this.info.aliasesMap[d]=[i]);const u=l.common.alias.id.write;u&&(this.info.aliasesMap[u]?this.info.aliasesMap[u].includes(i)||this.info.aliasesMap[u].push(i):this.info.aliasesMap[u]=[i])}}}processOnObjectChangeElement(n,o){console.log(`> objectChange ${n}`);const r=o==null?void 0:o.type;if(o&&typeof this.props.filterFunc=="function"&&!this.props.filterFunc(o)&&r!=="channel"&&r!=="device"&&r!=="folder"&&r!=="adapter"&&r!=="instance")return{newInnerState:null,filtered:!0};let a=null;if(n.startsWith("system.adapter.")&&(o==null?void 0:o.type)==="adapter"){const s=JSON.parse(JSON.stringify(this.state.columnsForAdmin));this.parseObjectForAdmins(s,o),JSON.stringify(this.state.columnsForAdmin)!==JSON.stringify(s)&&(a={columnsForAdmin:s})}return this.objects=this.objects||{},o?this.objects[n]=o:this.objects[n]&&delete this.objects[n],this.updateAliases(n),{newInnerState:a,filtered:!1}}subscribe(n){this.subscribes.includes(n)||(this.subscribes.push(n),console.log(`+ subscribe ${n}`),this.pausedSubscribes||this.props.socket.subscribeState(n,this.onStateChange).catch(o=>console.error(`Cannot subscribe on state ${n}: ${o}`)))}unsubscribe(n){const o=this.subscribes.indexOf(n);o!==-1&&(this.subscribes.splice(o,1),this.states[n]&&delete this.states[n],console.log(`- unsubscribe ${n}`),this.props.socket.unsubscribeState(n,this.onStateChange),this.pausedSubscribes&&console.warn("Unsubscribe during pause?"))}pauseSubscribe(n){!this.pausedSubscribes&&n?(this.pausedSubscribes=!0,this.subscribes.forEach(o=>this.props.socket.unsubscribeState(o,this.onStateChange))):this.pausedSubscribes&&!n&&(this.pausedSubscribes=!1,this.subscribes.forEach(o=>this.props.socket.subscribeState(o,this.onStateChange)))}onFilter(n,o){this.filterTimer=null;const r={...this.state.filter};Object.keys(this.filterRefs).forEach(a=>{if(this.filterRefs[a]&&this.filterRefs[a].current){const s=this.filterRefs[a].current;for(let i=0;ithis.props.onFilterChanged&&this.props.onFilterChanged(r)))}clearFilter(){const n={...this.state.filter};Object.keys(this.filterRefs).forEach(o=>{if(this.filterRefs[o]&&this.filterRefs[o].current){const r=this.filterRefs[o].current;for(let a=0;athis.props.onFilterChanged&&this.props.onFilterChanged(n)))}isFilterEmpty(){return!Object.keys(this.state.filter).find(o=>o!=="expertMode"&&this.state.filter[o])}getFilterInput(n){var o,r,a;return p.createElement(to,{sx:this.styles.filterInput,key:`${n}_${this.state.filterKey}`,margin:"dense"},p.createElement(Qn,{ref:this.filterRefs[n],classes:{underline:"no-underline"},id:n,placeholder:this.texts[`filter_${n}`],defaultValue:this.state.filter[n]||"",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},autoComplete:"off"}),(a=(r=(o=this.filterRefs[n])==null?void 0:o.current)==null?void 0:r.firstChild)!=null&&a.value?p.createElement("div",{style:{position:"absolute",right:0}},p.createElement(ue,{size:"small",onClick:()=>{var s;((s=this.filterRefs[n].current)==null?void 0:s.firstChild).value="",this.onFilter(n,"")}},p.createElement(Dt,null))):null)}getFilterSelect(n,o){var a,s,i;const r=!!(o!=null&&o.find(l=>l.icon));return p.createElement("div",{style:{position:"relative"}},p.createElement(_n,{variant:"standard",key:`${n}_${this.state.filterKey}`,ref:this.filterRefs[n],sx:z.headerCellInput,className:"no-underline",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},defaultValue:this.state.filter[n]||"",inputProps:{name:n,id:n},displayEmpty:!0},p.createElement(je,{key:"empty",value:""},p.createElement("span",{style:z.selectNone},this.texts[`filter_${n}`])),o==null?void 0:o.map(l=>{let d,u,c;return typeof l=="object"?(d=l.value,u=l.name,c=l.icon):(d=l,u=l),p.createElement(je,{sx:z.headerCellSelectItem,key:d,value:d},c||(r?p.createElement("div",{className:"itemIcon"}):null),u)})),(i=(s=(a=this.filterRefs[n])==null?void 0:a.current)==null?void 0:s.childNodes[1])!=null&&i.value?p.createElement(ke,{component:"div",sx:z.selectClearButton},p.createElement(ue,{size:"small",onClick:()=>{var d;const l={...this.state.filter};l[n]="",((d=this.filterRefs[n].current)==null?void 0:d.childNodes[1]).value="",this.localStorage.setItem(`${this.props.dialogName||"App"}.objectFilter`,JSON.stringify(l)),this.setState({filter:l,filterKey:this.state.filterKey+1},()=>this.props.onFilterChanged&&this.props.onFilterChanged(l))}},p.createElement(Dt,null))):null)}getFilterSelectRole(){return this.getFilterSelect("role",this.info.roles)}getFilterSelectRoom(){const n=this.info.roomEnums.map(o=>{var r,a,s,i;return{name:To((a=(r=this.objects[o])==null?void 0:r.common)==null?void 0:a.name,this.props.lang)||o.split(".").pop(),value:o,icon:p.createElement(Ss,{src:((i=(s=this.objects[o])==null?void 0:s.common)==null?void 0:i.icon)||"",style:z.selectIcon})}});return this.getFilterSelect("room",n)}getFilterSelectFunction(){const n=this.info.funcEnums.map(o=>{var r,a,s,i;return{name:To((a=(r=this.objects[o])==null?void 0:r.common)==null?void 0:a.name,this.props.lang)||o.split(".").pop(),value:o,icon:p.createElement(Ss,{src:((i=(s=this.objects[o])==null?void 0:s.common)==null?void 0:i.icon)||"",style:z.selectIcon})}});return this.getFilterSelect("func",n)}getFilterSelectType(){const n=this.info.types.map(o=>({name:o,value:o,icon:xE[o]||null}));return this.getFilterSelect("type",n)}getFilterSelectCustoms(){if(this.info.customs.length>1){const n=this.info.customs.map(o=>({name:o==="_"?this.texts.filterCustomsWithout:o,value:o,icon:o==="_"?null:p.createElement(Ss,{src:Bm(this.objects,o,this.props.lang,this.imagePrefix)||"",style:z.selectIcon})}));return this.getFilterSelect("custom",n)}return null}onExpandAll(n,o){var a;const r=n||this.root;o=o||[],(a=r==null?void 0:r.children)==null||a.forEach(s=>{s.data.sumVisibility&&(o.push(s.data.id),this.onExpandAll(s,o))}),r===this.root&&(o.sort(),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(o)),this.setState({expanded:o}))}onCollapseAll(){this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify([])),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,"[]"),this.setState({expanded:[],depth:0,selected:[]},()=>this.onAfterSelect())}expandDepth(n,o,r){var a;n=n||this.root,o>0&&((a=n.children)==null||a.forEach(s=>{s.data.sumVisibility&&(hp(r,s.data.id)||(r.push(s.data.id),r.sort()),o-1>0&&this.expandDepth(s,o-1,r))}))}static collapseDepth(n,o){return o.filter(r=>r.split(".").length<=n)}onExpandVisible(){if(this.state.depth<9){const n=this.state.depth+1,o=[...this.state.expanded];this.root&&this.expandDepth(this.root,n,o),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(o)),this.setState({depth:n,expanded:o})}}onStatesViewVisible(){const n=!this.state.statesView;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectStatesView`,JSON.stringify(n)),this.setState({statesView:n})}onCollapseVisible(){if(this.state.depth>0){const n=this.state.depth-1,o=wr.collapseDepth(n,this.state.expanded);this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(o)),this.setState({depth:n,expanded:o})}}async loadObjects(n){if(n)for(const o in n){if(!Object.prototype.hasOwnProperty.call(n,o)||!n[o])continue;const r=n[o];let a=null,s,i;r&&r.common&&r.common.enums?(a=r.common.enums,delete r.common.enums):a=null,(r.val||r.val===0)&&(s=r.val,delete r.val),r.ack!==void 0&&(i=r.ack,delete r.ack);try{if(await this.props.socket.setObject(o,r),a&&await this._createAllEnums(a,r._id),r.type==="state")if(s!=null)try{await this.props.socket.setState(r._id,s,i!==void 0?i:!0)}catch(l){window.alert(`Cannot set state "${r._id} with ${s}": ${l}`)}else try{const l=await this.props.socket.getState(r._id);if(!l||l.val===null)try{await this.props.socket.setState(r._id,!r.common||r.common.def===void 0?null:r.common.def,!0)}catch(d){window.alert(`Cannot set state "${r._id}": ${d}`)}}catch(l){window.alert(`Cannot read state "${r._id}": ${l}`)}}catch(l){window.alert(l)}}}_getSelectedIdsForExport(){if(this.state.selected.length||this.state.selectedNonObject){const n=[],o=Object.keys(this.objects);o.sort();const r=this.state.selected[0]||this.state.selectedNonObject,a=`${r}.`,s=a.length;for(let i=0;ia)break}return n}return[]}async _exportObjects(n){var s;if(n.isAll){bE("allObjects.json",this.objects,n);return}if(!(this.state.selected.length||this.state.selectedNonObject)){window.alert(this.props.t("ra_Save of objects-tree is not possible"));return}const o={},r=this.state.selected[0]||this.state.selectedNonObject,a=this._getSelectedIdsForExport();for(const i of a){if(o[i]=JSON.parse(JSON.stringify(this.objects[i])),((s=o[i])==null?void 0:s.type)==="state"&&!n.noStatesByExportImport){const l=await this.props.socket.getState(i);l&&(o[i].val=l.val,o[i].ack=l.ack)}if(o[i].common){const l=this.getEnumsForId(i);l&&(o[i].common.enums=l)}}bE(`${r}.json`,o,n)}renderExportDialog(){return this.state.showExportDialog===!1?null:p.createElement(yt,{open:!0,maxWidth:"lg"},p.createElement(bt,null,this.props.t("ra_Select type of export")),p.createElement(jt,null,p.createElement(Ra,null,this.state.filter.expertMode||this.state.showAllExportOptions?p.createElement(p.Fragment,null,this.props.t("ra_You can export all objects or just the selected branch."),p.createElement("br",null),this.props.t("ra_Selected %s object(s)",this.state.showExportDialog),p.createElement("br",null),p.createElement(Oe,{control:p.createElement(Tt,{checked:this.state.noStatesByExportImport,onChange:n=>this.setState({noStatesByExportImport:n.target.checked})}),label:this.props.t("ra_Do not export values of states")}),p.createElement("br",null),this.props.t("These options can reduce the size of the export file:"),p.createElement(Oe,{control:p.createElement(Tt,{checked:this.state.beautifyJsonExport,onChange:n=>this.setState({beautifyJsonExport:n.target.checked})}),label:this.props.t("Beautify JSON output")}),p.createElement("br",null),p.createElement(Oe,{control:p.createElement(Tt,{checked:this.state.excludeSystemRepositoriesFromExport,onChange:n=>this.setState({excludeSystemRepositoriesFromExport:n.target.checked})}),label:this.props.t("Exclude system repositories from export JSON")}),p.createElement(Oe,{control:p.createElement(Tt,{checked:this.state.excludeTranslations,onChange:n=>this.setState({excludeTranslations:n.target.checked})}),label:this.props.t("Exclude translations (except english) from export JSON")})):null)),p.createElement(Nt,null,this.state.filter.expertMode||this.state.showAllExportOptions?p.createElement(he,{color:"grey",variant:"outlined",onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1},()=>this._exportObjects({isAll:!0,noStatesByExportImport:this.state.noStatesByExportImport,beautify:this.state.beautifyJsonExport,excludeSystemRepositories:this.state.excludeSystemRepositoriesFromExport,excludeTranslations:this.state.excludeTranslations}))},p.createElement("span",{style:{marginRight:8}},this.props.t("ra_All objects")),"(",Object.keys(this.objects).length,")"):p.createElement(he,{color:"grey",variant:"outlined",startIcon:p.createElement(Lm,null),onClick:()=>this.setState({showAllExportOptions:!0})},this.props.t("ra_Advanced options")),p.createElement(he,{color:"primary",variant:"contained",autoFocus:!0,onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1},()=>this._exportObjects({isAll:!1,noStatesByExportImport:this.state.noStatesByExportImport,beautify:this.state.beautifyJsonExport,excludeSystemRepositories:this.state.excludeSystemRepositoriesFromExport,excludeTranslations:this.state.excludeTranslations}))},p.createElement("span",{style:{marginRight:8}},this.props.t("ra_Only selected")),"(",this.state.showExportDialog,")"),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1}),startIcon:p.createElement(Dt,null)},this.props.t("ra_Cancel"))))}handleJsonUpload(n){var a;const o=n.target,r=((a=o.files)==null?void 0:a.length)&&o.files[0];if(r){const s=new FileReader;s.onload=async i=>{var d;const l=(d=i.target)==null?void 0:d.result;try{const u=JSON.parse(l),c=Object.keys(u).length,h=u._id;if(h===void 0&&c)await this.loadObjects(u),window.alert(this.props.t("ra_%s object(s) processed",c));else{if(!h)return window.alert(this.props.t("ra_Invalid structure"));try{let f,g,v;if(u.common.enums&&(f=u.common.enums,delete u.common.enums),u.val&&(g=u.val,delete u.val),u.ack!==void 0&&(v=u.ack,delete u.ack),await this.props.socket.setObject(u._id,u),u.type==="state")if(g!=null)await this.props.socket.setState(u._id,g,v===void 0?!0:v);else{const S=await this.props.socket.getState(u._id);(!S||S.val===null||S.val===void 0)&&await this.props.socket.setState(u._id,u.common.def===void 0?null:u.common.def,!0)}f&&await this._createAllEnums(f,u._id),window.alert(this.props.t("ra_%s was imported",u._id))}catch(f){window.alert(f)}}}catch(u){window.alert(u)}return null},s.readAsText(r)}else window.alert(this.props.t("ra_Failed to open JSON File"))}getToolbar(){let n=!1;if(this.state.selected.length||this.state.selectedNonObject){const o=this.state.selected[0]||this.state.selectedNonObject;o.split(".").length<2||this.objects[o]&&this.objects[o].type==="state"?n=!1:(this.state.filter.expertMode||o.startsWith("alias.0")||o.startsWith("0_userdata"))&&(n=!0)}return p.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",overflowX:"auto"}},p.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center"}},p.createElement(bn,{title:this.props.t("ra_Refresh tree"),slotProps:{popper:{sx:z.tooltip}}},p.createElement("div",null,p.createElement(ue,{onClick:()=>this.refreshComponent(),disabled:this.state.updating,size:"large"},p.createElement(l3,null)))),this.props.showExpertButton&&!this.props.expertMode&&p.createElement(bn,{title:this.props.t("ra_expertMode"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"expertMode",color:this.state.filter.expertMode?"secondary":"default",onClick:()=>this.onFilter("expertMode",!this.state.filter.expertMode),size:"large"},p.createElement(Lm,null))),!this.props.disableColumnSelector&&this.props.width!=="xs"&&p.createElement(bn,{title:this.props.t("ra_Configure"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"columnSelector",color:this.state.columnsAuto?"primary":"default",onClick:()=>this.setState({columnsSelectorShow:!0}),size:"large"},p.createElement(PX,null))),this.props.width!=="xs"&&this.state.expandAllVisible&&p.createElement(bn,{title:this.props.t("ra_Expand all nodes"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"expandAll",onClick:()=>this.onExpandAll(),size:"large"},p.createElement(Ef,null))),p.createElement(bn,{title:this.props.t("ra_Collapse all nodes"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"collapseAll",onClick:()=>this.onCollapseAll(),size:"large"},p.createElement(yc,null))),this.props.width!=="xs"&&p.createElement(bn,{title:this.props.t("ra_Expand one step node"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"expandVisible",color:"primary",onClick:()=>this.onExpandVisible(),size:"large"},p.createElement(sp,{badgeContent:this.state.depth,color:"secondary",sx:o=>({badge:{right:3,top:3,border:`2px solid ${o.palette.background.paper}`,padding:"0 4px"}})},p.createElement(Ef,null)))),this.props.width!=="xs"&&p.createElement(bn,{title:this.props.t("ra_Collapse one step node"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{key:"collapseVisible",color:"primary",onClick:()=>this.onCollapseVisible(),size:"large"},p.createElement(sp,{sx:o=>({badge:{right:3,top:3,border:`2px solid ${o.palette.background.paper}`,padding:"0 4px"}}),badgeContent:this.state.depth,color:"secondary"},p.createElement(yc,null)))),this.props.objectStatesView&&p.createElement(bn,{title:this.props.t("ra_Toggle the states view"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>this.onStatesViewVisible(),size:"large"},p.createElement($X,{color:this.state.statesView?"primary":"inherit"}))),p.createElement(bn,{title:this.props.t("ra_Show/Hide object descriptions"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.desc`,this.state.showDescription?"false":"true"),this.setState({showDescription:!this.state.showDescription})},size:"large"},p.createElement(NX,{color:this.state.showDescription?"primary":"inherit"}))),this.props.objectAddBoolean?p.createElement(bn,{title:this.toolTipObjectCreating(),slotProps:{popper:{sx:z.tooltip}}},p.createElement("div",null,p.createElement(ue,{disabled:!n,onClick:()=>this.setState({modalNewObj:{id:this.state.selected[0]||this.state.selectedNonObject}}),size:"large"},p.createElement(d$,null)))):null,this.props.objectImportExport&&p.createElement(bn,{title:this.props.t("ra_Add objects tree from JSON file"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>{const o=document.createElement("input");o.setAttribute("type","file"),o.setAttribute("id","files"),o.setAttribute("opacity","0"),o.addEventListener("change",r=>this.handleJsonUpload(r),!1),o.click()},size:"large"},p.createElement(Cm,null))),this.props.objectImportExport&&(!!this.state.selected.length||this.state.selectedNonObject)&&p.createElement(bn,{title:this.props.t("ra_Save objects tree as JSON file"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>this.setState({showExportDialog:this._getSelectedIdsForExport().length}),size:"large"},p.createElement(Cm,{style:{transform:"rotate(180deg)"}})))),!!this.props.objectBrowserEditObject&&this.props.width!=="xs"&&p.createElement("div",{style:{display:"flex",whiteSpace:"nowrap"}},`${this.props.t("ra_Objects")}: ${Object.keys(this.info.objects).length}, ${this.props.t("ra_States")}: ${Object.keys(this.info.objects).filter(o=>this.info.objects[o].type==="state").length}`),this.props.objectEditBoolean&&p.createElement(bn,{title:this.props.t("ra_Edit custom config"),slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{onClick:()=>{var r;const o=this.root?YA(this.root,"state",this.objects):[];o.length?(this.pauseSubscribe(!0),o.length===1&&(this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,this.state.selected[0]),(r=this.props.router)==null||r.doNavigate(null,"custom",this.state.selected[0])),this.setState({customDialog:o,customDialogAll:!0})):this.setState({toast:this.props.t("ra_please select object")})},size:"large"},p.createElement(oX,null))))}toggleExpanded(n){const o=JSON.parse(JSON.stringify(this.state.expanded)),r=o.indexOf(n);r===-1?(o.push(n),o.sort()):o.splice(r,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(o)),this.setState({expanded:o})}onCopy(n,o){n.stopPropagation(),n.preventDefault(),o&&(V.copyToClipboard(o),o.length<50?this.setState({toast:this.props.t("ra_Copied %s",o)}):this.setState({toast:this.props.t("ra_Copied")}))}renderColumnButtons(n,o){var i,l,d;if(!o.data.obj)return this.props.onObjectDelete||this.props.objectEditOfAccessControl?p.createElement("div",{style:z.buttonDiv},this.state.filter.expertMode&&this.props.objectEditOfAccessControl?p.createElement(ue,{sx:{...z.cellButtonsButton,...z.cellButtonsEmptyButton,...z.cellButtonMinWidth},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:o.data}),size:"large"},p.createElement("div",{style:{height:15}},"---")):null,this.props.onObjectDelete&&o.children&&o.children.length?p.createElement(ue,{sx:{...z.cellButtonsButton,...z.cellButtonsButtonAlone},size:"small","aria-label":"delete",title:this.texts.deleteObject,onClick:()=>{var f;const u=Object.keys(this.objects);u.sort();let c=0;const h=`${n}.`;for(let g=0;gh)break;this.props.onObjectDelete&&this.props.onObjectDelete(n,!!((f=o.children)!=null&&f.length),!1,c+1)}},p.createElement(Ns,{style:z.cellButtonsButtonIcon})):null):null;o.data.aclTooltip=o.data.aclTooltip||this.renderTooltipAccessControl(o.data.obj.acl);const r=o.data.obj.acl?o.data.obj.type==="state"?o.data.obj.acl.state:o.data.obj.acl.object:0,a=o.data.obj.acl&&(o.data.obj.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object),s=this.state.filter.expertMode||wr.isNonExpertId(o.data.id);return[this.state.filter.expertMode&&this.props.objectEditOfAccessControl?p.createElement(bn,{key:"acl",title:o.data.aclTooltip,slotProps:{popper:{sx:z.tooltip}}},p.createElement(ue,{sx:{...z.cellButtonsButton,...z.cellButtonMinWidth,opacity:1},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:o.data}),size:"large"},p.createElement("div",{style:z.aclText},Number.isNaN(Number(r))?Number(a).toString(16):Number(r).toString(16)))):p.createElement("div",{key:"aclEmpty",style:z.cellButtonMinWidth}),s?p.createElement(ue,{key:"edit",sx:{marginRight:"2px",...z.cellButtonsButton},size:"small","aria-label":"edit",title:this.texts.editObject,onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,n),this.setState({editObjectDialog:n,editObjectAlias:!1})}},p.createElement(Au,{style:z.cellButtonsButtonIcon})):p.createElement(ke,{component:"div",key:"editDisabled",sx:z.cellButtonsButton}),this.props.onObjectDelete&&((i=o.children)!=null&&i.length||!((l=o.data.obj.common)!=null&&l.dontDelete))?p.createElement(ue,{key:"delete",sx:z.cellButtonsButton,size:"small","aria-label":"delete",onClick:()=>{var f,g,v;const u=Object.keys(this.objects);u.sort();let c=0;const h=`${n}.`;for(let S=0;Sh)break;this.props.onObjectDelete&&this.props.onObjectDelete(n,!!((f=o.children)!=null&&f.length),!((v=(g=o.data.obj)==null?void 0:g.common)!=null&&v.dontDelete),c)},title:this.texts.deleteObject},p.createElement(Ns,{style:z.cellButtonsButtonIcon})):null,this.props.objectCustomDialog&&this.info.hasSomeCustoms&&o.data.obj.type==="state"&&((d=o.data.obj.common)==null?void 0:d.type)!=="file"?p.createElement(ue,{sx:{...z.cellButtonsButton,...o.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:z.cellButtonsButtonWithoutCustoms},key:"custom",size:"small","aria-label":"config",title:this.texts.customConfig,onClick:()=>{var u;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,n),this.pauseSubscribe(!0),(u=this.props.router)==null||u.doNavigate(null,"customs",n),this.setState({customDialog:[n],customDialogAll:!1})}},p.createElement(Vb,{style:z.cellButtonsButtonIcon})):null]}readHistory(n){var o,r;if(window.sparkline&&this.defaultHistory&&((r=(o=this.objects[n])==null?void 0:o.common)!=null&&r.custom)&&this.objects[n].common.custom[this.defaultHistory]){const a=new Date;a.setHours(a.getHours()-24),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0);const s=a.getTime();this.props.socket.getHistory(n,{instance:this.defaultHistory,start:s,end:Date.now(),step:36e5,from:!1,ack:!1,q:!1,addID:!1,aggregate:"minmax"}).then(i=>{const l=window.document.getElementsByClassName("sparkline");for(let d=0;dconsole.warn(`Cannot read history: ${i}`))}}getTooltipInfo(n,o){var d,u;const r=this.objects[n],a=this.states[n],{valFull:s,fileViewer:i}=ey({state:a,obj:r,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,full:!0}),l=[];s==null||s.forEach(c=>{c.t===this.texts.quality&&a.q?(l.push(p.createElement("div",{style:z.cellValueTooltipBoth,key:c.t},c.t,": ",c.v)),c.nbr||l.push(p.createElement("br",{key:`${c.t}_br`}))):(l.push(p.createElement("div",{style:z.cellValueTooltipTitle,key:c.t},c.t,": ")),l.push(p.createElement("div",{style:z.cellValueTooltipValue,key:`${c.t}_v`},c.v)),c.nbr||l.push(p.createElement("br",{key:`${c.t}_br`})))}),i==="image"?l.push(p.createElement("img",{style:z.cellValueTooltipImage,src:a.val,alt:n})):this.defaultHistory&&((u=(d=this.objects[n])==null?void 0:d.common)!=null&&u.custom)&&this.objects[n].common.custom[this.defaultHistory]&&l.push(p.createElement("svg",{key:"sparkline",className:"sparkline","data-id":n,style:{fill:"#3d85de"},width:"200",height:"30",strokeWidth:"3"})),this.setState({tooltipInfo:{el:l,id:n}},()=>o&&o())}renderColumnValue(n,o,r){var d,u;const a=o.data.obj;if(!a||!this.states)return null;if(((d=a.common)==null?void 0:d.type)==="file")return p.createElement(ke,{component:"div",sx:{...z.cellValueText,...z.cellValueFile}},"[file]");if(!this.states[n])return a.type==="state"&&(this.recordStates.includes(n)||this.recordStates.push(n),this.states[n]={val:null},this.subscribe(n)),null;this.recordStates.includes(n)||this.recordStates.push(n);const s=this.states[n];let i=o.data.state;if(!i){const{valText:c}=ey({state:s,obj:a,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma}),h=[];o.data.state={valTextRx:h};const f=c.v||"";h.push(p.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${c.v.toString()}valText`,style:{whiteSpace:"nowrap",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}},c.v.toString())),c.u&&h.push(p.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,style:z.cellValueTextUnit,key:`${c.v.toString()}unit`},c.u)),c.s!==void 0&&h.push(p.createElement("span",{style:z.cellValueTextState,className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${c.v.toString()}states`},"(",c.s,")")),r||h.push(p.createElement(ps,{className:"copyButton",style:this.styles.iconCopy,onClick:g=>this.onCopy(g,f),key:"cc"})),i=o.data.state}i.style=yit({state:s,isExpertMode:this.state.filter.expertMode,isButton:o.data.button});let l=i.valTextRx;return this.state.filter.expertMode||(o.data.button?l=[p.createElement(mit,{key:"button",style:{color:i.style.color,...z.cellValueButton}})]:o.data.switch&&(l=[p.createElement(tu,{key:"switch",sx:{"& .MuiSwitch-thumb":{color:i.style.color},"& .MuiSwitch-track":{backgroundColor:this.states[n].val&&this.state.selected.includes(n)?this.props.themeType==="dark"?"#FFF !important":"#111 !important":void 0}},checked:!!this.states[n].val})])),p.createElement(bn,{key:"value",title:(u=this.state.tooltipInfo)==null?void 0:u.el,slotProps:{popper:{sx:z.cellValueTooltipBox},tooltip:{sx:z.cellValueTooltip}},onOpen:()=>this.getTooltipInfo(n,()=>this.readHistory(n)),onClose:()=>{var c;return((c=this.state.tooltipInfo)==null?void 0:c.id)===n&&this.setState({tooltipInfo:null})}},p.createElement(ke,{component:"div",style:i.style,sx:{...z.cellValueText,height:r?void 0:Kn,"& .admin-button:active":{transform:"translate(0, 2px)"}}},l))}_syncEnum(n,o,r,a){var l,d,u;if(!o||!o.length){a&&a();return}const s=o.pop()||"",i=[];if((l=this.info.objects[s])!=null&&l.common){if((d=this.info.objects[s].common.members)!=null&&d.length){const c=this.info.objects[s].common.members.indexOf(n);if(c!==-1&&!r.includes(s)){const h=JSON.parse(JSON.stringify(this.info.objects[s]));h.common.members.splice(c,1),i.push(this.props.socket.setObject(s,h).then(()=>this.info.objects[s]=h).catch(f=>this.showError(f)))}}if(r.includes(s)&&!((u=this.info.objects[s].common.members)!=null&&u.includes(n))){const c=JSON.parse(JSON.stringify(this.info.objects[s]));c.common.members=c.common.members||[],c.common.members.push(n),c.common.members.sort(),i.push(this.props.socket.setObject(s,c).then(()=>this.info.objects[s]=c).catch(h=>this.showError(h)))}}Promise.all(i).then(()=>{setTimeout(()=>this._syncEnum(n,o,r,a),0)})}syncEnum(n,o,r){const a=[...this.info[o==="func"?"funcEnums":"roomEnums"]];return new Promise(s=>{this._syncEnum(n,a,r,()=>{s()})})}renderEnumDialog(){if(!this.state.enumDialog)return null;const n=this.state.enumDialog.type,o=this.state.enumDialog.item,r=this.state.enumDialogEnums,a=this.state.enumDialog.enumsOriginal,s=(n==="room"?this.info.roomEnums:this.info.funcEnums).map(i=>{var l,d;return{name:To(((d=(l=this.objects[i])==null?void 0:l.common)==null?void 0:d.name)||i.split(".").pop()||"",this.props.lang),value:i,icon:Bm(this.objects,i,this.props.lang,this.imagePrefix)}}).sort((i,l)=>i.name>l.name?1:-1);return s.forEach(i=>{i.icon&&typeof i.icon=="string"&&(i.icon=p.createElement(ke,{style:z.enumIconDiv},p.createElement("img",{src:i.icon,style:z.enumIcon,alt:i.name})))}),p.createElement(yt,{sx:{"& .MuiPaper-root":z.enumDialog},onClose:()=>this.setState({enumDialog:null}),"aria-labelledby":"enum-dialog-title",open:!0},p.createElement(bt,{id:"enum-dialog-title"},n==="func"?this.props.t("ra_Define functions"):this.props.t("ra_Define rooms"),p.createElement(Mt,{sx:z.enumButton,color:"primary",disabled:a===JSON.stringify(r),size:"small",onClick:()=>this.syncEnum(o.data.id,n,r).then(()=>this.setState({enumDialog:null,enumDialogEnums:null}))},p.createElement(qn,null))),p.createElement(kb,{sx:{"&.MuiList-root":z.enumList}},s.map(i=>{let l,d,u;typeof i=="object"?(l=i.value,d=i.name,u=i.icon):(l=i,d=i);const c=`checkbox-list-label-${l}`;return p.createElement(aB,{sx:z.headerCellSelectItem,key:l,onClick:()=>{const h=r.indexOf(l),f=JSON.parse(JSON.stringify(this.state.enumDialogEnums));h===-1?(f.push(l),f.sort()):f.splice(h,1),this.setState({enumDialogEnums:f})},secondaryAction:u},p.createElement(Tl,{sx:{"&.MuiListItemIcon-root":z.enumCheckbox}},p.createElement(Tt,{edge:"start",checked:r.includes(l),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":c}})),p.createElement(as,{id:c},d))})))}renderEditRoleDialog(){if(!this.state.roleDialog||!this.props.objectBrowserEditRole)return null;if(this.state.roleDialog&&this.props.objectBrowserEditRole){const n=this.props.objectBrowserEditRole;return p.createElement(n,{key:"objectBrowserEditRole",id:this.state.roleDialog,socket:this.props.socket,t:this.props.t,roles:this.info.roles,onClose:o=>{o&&(this.info.objects[this.state.roleDialog]=o),this.setState({roleDialog:null})}})}return null}onColumnsEditCustomDialogClose(n){var r,a;const o=this.customColumnDialog;if(n){let s=o.value;o.type==="boolean"?s=s==="true"||s===!0:o.type==="number"&&(s=parseFloat(s)),this.customColumnDialog=null,this.props.socket.getObject(((a=(r=this.state.columnsEditCustomDialog)==null?void 0:r.obj)==null?void 0:a._id)||"").then(i=>{var l;if(i&&wr.setCustomValue(i,(l=this.state.columnsEditCustomDialog)==null?void 0:l.it,s))return this.props.socket.setObject(i._id,i);throw new Error(this.props.t("ra_Cannot update attribute, because not found in the object"))}).then(()=>this.setState({columnsEditCustomDialog:null})).catch(i=>this.showError(i))}else this.customColumnDialog=null,this.setState({columnsEditCustomDialog:null})}renderColumnsEditCustomDialog(){if(!this.state.columnsEditCustomDialog)return null;if(!this.customColumnDialog){const n=wr.getCustomValue(this.state.columnsEditCustomDialog.obj,this.state.columnsEditCustomDialog.it);this.customColumnDialog={type:this.state.columnsEditCustomDialog.it.type||typeof n,initValue:(n??"").toString(),value:(n??"").toString()}}return p.createElement(yt,{onClose:()=>this.setState({columnsEditCustomDialog:null}),maxWidth:"md","aria-labelledby":"custom-dialog-title",open:!0},p.createElement(bt,{id:"custom-dialog-title"},`${this.props.t("ra_Edit object field")}: ${this.state.columnsEditCustomDialog.obj._id}`),p.createElement(jt,null,p.createElement(Ra,{id:"alert-dialog-description"},this.customColumnDialog.type==="boolean"?p.createElement(Oe,{control:p.createElement(Tt,{onKeyUp:n=>n.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),defaultChecked:this.customColumnDialog.value==="true",onChange:n=>{const o=this.customColumnDialog;o.value=n.target.checked.toString();const r=o.value!==o.initValue;r===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:r})}}),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`}):p.createElement(st,{variant:"standard",defaultValue:this.customColumnDialog.value,fullWidth:!0,onKeyUp:n=>n.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`,onChange:n=>{const o=this.customColumnDialog;o.value=n.target.value;const r=o.value!==o.initValue;r===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:r})},autoFocus:!0}))),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(!0),disabled:!this.state.customColumnDialogValueChanged,color:"primary",startIcon:p.createElement(qn,null)},this.props.t("ra_Update")),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(),startIcon:p.createElement(Dt,null)},this.props.t("ra_Cancel"))))}static getCustomValue(n,o){var r;if((r=n==null?void 0:n._id)!=null&&r.startsWith(`${o.adapter}.`)&&o.path.length>1){const a=o.path;let s;const i=n;if(i[a[0]]&&typeof i[a[0]]=="object")return a.length===2?s=i[a[0]][a[1]]:a.length===3?s=i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"?i[a[0]][a[1]][a[2]]:null:a.length===4?s=i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"&&i[a[0]][a[1]][a[2]]?i[a[0]][a[1]][a[2]][a[3]]:null:a.length===5?s=i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"&&i[a[0]][a[1]][a[2]]&&i[a[0]][a[1]][a[2]][a[3]]?i[a[0]][a[1]][a[2]][a[3]][a[4]]:null:a.length===6&&(s=i[a[0]][a[1]]&&typeof i[a[0]][a[1]]=="object"&&i[a[0]][a[1]][a[2]]&&i[a[0]][a[1]][a[2]][a[3]]&&i[a[0]][a[1]][a[2]][a[3]][a[4]]?i[a[0]][a[1]][a[2]][a[3]][a[4]][a[5]]:null),s??null}return null}static setCustomValue(n,o,r){var a;if((a=n==null?void 0:n._id)!=null&&a.startsWith(`${o.adapter}.`)&&o.path.length>1){const s=o.path,i=n;if(i[s[0]]&&typeof i[s[0]]=="object"){if(s.length===2)return i[s[0]][s[1]]=r,!0;if(s.length===3){if(i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object")return i[s[0]][s[1]][s[2]]=r,!0}else if(s.length===4){if(i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"&&i[s[0]][s[1]][s[2]]&&typeof i[s[0]][s[1]][s[2]]=="object")return i[s[0]][s[1]][s[2]][s[3]]=r,!0}else if(s.length===5){if(i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"&&i[s[0]][s[1]][s[2]]&&typeof i[s[0]][s[1]][s[2]]=="object"&&i[s[0]][s[1]][s[2]][s[3]]&&typeof i[s[0]][s[1]][s[2]][s[3]]=="object")return i[s[0]][s[1]][s[2]][s[3]][s[4]]=r,!0}else if(s.length===6&&i[s[0]][s[1]]&&typeof i[s[0]][s[1]]=="object"&&i[s[0]][s[1]][s[2]]&&typeof i[s[0]][s[1]][s[2]]=="object"&&i[s[0]][s[1]][s[2]][s[3]]&&typeof i[s[0]][s[1]][s[2]][s[3]]=="object"&&i[s[0]][s[1]][s[2]][s[3]][s[4]]&&typeof i[s[0]][s[1]][s[2]][s[3]][s[4]]=="object")return i[s[0]][s[1]][s[2]][s[3]][s[4]][s[5]]=r,!0}}return!1}renderCustomValue(n,o,r){const a=wr.getCustomValue(n,o);return a!=null?o.edit&&!this.props.notEditable&&(!o.objTypes||o.objTypes.includes(n.type))?p.createElement(ke,{component:"div",style:{...z.columnCustom,...z.columnCustomEditable,...z[`columnCustom_${o.align}`]},onClick:()=>this.setState({columnsEditCustomDialog:{item:r,it:o,obj:n},customColumnDialogValueChanged:!1})},a):p.createElement(ke,{component:"div",style:{...z.columnCustom,...z[`columnCustom_${o.align}`]}},a):null}renderAliasLink(n,o,r){const a=o||0,s=this.objects[this.info.aliasesMap[n][a]].common.alias.id;return s?p.createElement(ke,{component:"div",onClick:i=>{i.stopPropagation(),i.preventDefault();const l=this.info.aliasesMap[n][a];this.info.aliasesMap[n].length>1&&this.setState({aliasMenu:""}),this.onSelect(l),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(l)),100)},sx:r||this.styles.aliasAlone},p.createElement("span",{className:"admin-browser-arrow"},typeof s=="string"||s.read===n&&s.write===n?"↔":s.read===n?"→":"←"),this.info.aliasesMap[n][a]):null}renderLeaf(n,o,r){var ve,fe,le,Se,De,et,Ge,qe,xe,Ee,me,ot,Ce,ze;const a=n.data.id;r.count++,o=o===void 0?this.state.expanded.includes(a):o;let s;const i=n.data.obj,l=i==null?void 0:i.type;n.children||l==="folder"||l==="device"||l==="channel"||l==="meta"?s=o?p.createElement(Ef,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(a)}):p.createElement(yc,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(a)}):i&&i.common&&i.common.write===!1&&i.type==="state"?s=p.createElement(lit,{style:this.styles.cellIdIconDocument}):s=p.createElement(iit,{style:this.styles.cellIdIconDocument});let d=null;n.data.icon&&(typeof n.data.icon=="string"?n.data.icon.length<3?d=p.createElement("span",{className:"iconOwn",style:z.cellIdIconOwn},n.data.icon):d=p.createElement(Ss,{style:z.cellIdIconOwn,className:"iconOwn",src:n.data.icon,alt:""}):d=n.data.icon);const u=i==null?void 0:i.common,c=(i==null?void 0:i.type)&&xE[i.type]||p.createElement("div",{className:"itemIcon"}),h=this.levelPadding*(n.data.level||0);if(n.data.lang!==this.props.lang){const{rooms:X,per:ee}=QA(this.info,a,this.props.lang);n.data.rooms=X.join(", "),n.data.per=ee;const{funcs:$e,pef:Ae}=eM(this.info,a,this.props.lang);n.data.funcs=$e.join(", "),n.data.pef=Ae,n.data.lang=this.props.lang}const f=this.props.multiSelect&&this.objects[a]&&(!this.props.types||this.props.types.includes(this.objects[a].type))?p.createElement(Tt,{style:z.checkBox,checked:this.state.selected.includes(a)}):null;let g=!this.props.notEditable&&l==="state"&&(this.state.filter.expertMode||(u==null?void 0:u.write)!==!1);this.props.objectBrowserViewFile&&(u==null?void 0:u.type)==="file"&&(g=!0);const v=!this.props.notEditable&&this.objects[a]&&(this.state.filter.expertMode||l==="state"||l==="channel"||l==="device"),S=this.state.statesView&&(l==="state"||l==="channel"||l==="device");let _="";const b=[];if(S&&(_=(ve=this.states[a])==null?void 0:ve.from,_===void 0?_=" ":(_=_?_.replace(/^system\.adapter\.|^system\./,""):"",b.push(`${this.texts.stateChangedFrom} ${_}`)),i!=null&&i.user)){const X=i.user.replace("system.user.","");_+=`/${X}`,b.push(`${this.texts.stateChangedBy} ${X}`)}i&&(i.from&&b.push(`${this.texts.objectChangedFrom} ${i.from.replace(/^system\.adapter\.|^system\./,"")}`),i.user&&b.push(`${this.texts.objectChangedBy} ${i.user.replace(/^system\.user\./,"")}`),i.ts&&b.push(`${this.texts.objectChangedByUser} ${V.formatDate(new Date(i.ts),this.props.dateFormat||this.systemConfig.common.dateFormat)}`));let y=!1,w=null;a.startsWith("alias.")&&((fe=u==null?void 0:u.alias)!=null&&fe.id)?(y=typeof u.alias.id=="object",y?w=p.createElement("div",{style:z.cellIdAliasReadWriteDiv},u.alias.id.read?p.createElement(ke,{component:"div",onClick:X=>{X.stopPropagation(),X.preventDefault(),this.onSelect(u.alias.id.read),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(u.alias.id.read)),100)},sx:this.styles.aliasReadWrite},"←",u.alias.id.read):null,u.alias.id.write?p.createElement(ke,{component:"div",onClick:X=>{X.stopPropagation(),X.preventDefault(),this.onSelect(u.alias.id.write),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(u.alias.id.write)),100)},sx:this.styles.aliasReadWrite},"→",u.alias.id.write):null):w=p.createElement(ke,{component:"div",onClick:X=>{X.stopPropagation(),X.preventDefault(),this.onSelect(u.alias.id),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(u.alias.id)),100)},sx:this.styles.aliasAlone},"→",u.alias.id)):this.info.aliasesMap[a]&&(this.info.aliasesMap[a].length>1?w=p.createElement(ke,{component:"div",id:`alias_${a}`,onClick:X=>{X.stopPropagation(),X.preventDefault(),this.setState({aliasMenu:a})},sx:this.styles.aliasAlone},this.props.t("ra_%s links from aliases",this.info.aliasesMap[a].length)):w=this.renderAliasLink(a,0));let $=u==null?void 0:u.color,k;if($&&!this.state.selected.includes(a)){const X=this.props.themeName==="dark"?"#1f1f1f":this.props.themeName==="blue"?"#222a2e":"#FFFFFF";V.colorDistance($,X)<1e3&&(k=this.props.themeType==="dark"?"#9a9a9a":"#565656")}let T=!1;a==="0_userdata"?($=WA(this.props.themeType),T=!0):a==="alias"?($=VA(this.props.themeType),T=!0):a==="javascript"?($=fit(this.props.themeType),T=!0):a==="system"?($=GA(this.props.themeType),T=!0):a==="system.adapter"?$=qA(this.props.themeType):(!$||this.state.selected.includes(a))&&($="inherit");const O=[];if(u!=null&&u.statusStates){const X={};Object.keys(u.statusStates).forEach($e=>{var Xe;let Ae=u.statusStates[$e];Ae.split(".").length<3&&(Ae=`${a}.${Ae}`),X[$e]=Ae,this.states[Ae]?this.recordStates.includes(Ae)||this.recordStates.push(Ae):((Xe=this.objects[Ae])==null?void 0:Xe.type)==="state"&&(this.recordStates.includes(Ae)||this.recordStates.push(Ae),this.states[Ae]={val:null},this.subscribe(Ae))});let ee=!1;u.statusStates.errorId&&this.states[X.errorId]&&this.states[X.errorId].val&&($=this.props.themeType==="dark"?XA:JA,ee=!0,O.push(p.createElement(dX,{key:"error",style:this.styles.iconDeviceError}))),X.onlineId&&this.states[X.onlineId]?ee?this.states[X.onlineId].val?O.push(p.createElement(ou,{key:"conn",style:this.styles.iconDeviceConnected})):O.push(p.createElement(Rh,{key:"disc",style:this.styles.iconDeviceDisconnected})):this.states[X.onlineId].val?($=this.props.themeType==="dark"?c0:d0,O.push(p.createElement(ou,{key:"conn",style:this.styles.iconDeviceConnected}))):($=this.props.themeType==="dark"?u0:p0,O.push(p.createElement(Rh,{key:"disc",style:this.styles.iconDeviceDisconnected}))):X.offlineId&&this.states[X.offlineId]&&(ee?this.states[X.offlineId].val?O.push(p.createElement(Rh,{key:"disc",style:this.styles.iconDeviceDisconnected})):O.push(p.createElement(ou,{key:"conn",style:this.styles.iconDeviceConnected})):this.states[X.offlineId].val?($=this.props.themeType==="dark"?u0:p0,O.push(p.createElement(Rh,{key:"disc",style:this.styles.iconDeviceDisconnected}))):($=this.props.themeType==="dark"?c0:d0,O.push(p.createElement(ou,{key:"conn",style:this.styles.iconDeviceConnected}))))}const D=S?V.quality2text(((le=this.states[a])==null?void 0:le.q)||0).join(", "):null;let x=((Se=n.data)==null?void 0:Se.title)||"",A=!1;if(this.state.showDescription){const X=KA(n.data,this.props.lang);X&&(x=[p.createElement("div",{key:"name",style:z.cellNameDivDiv},x),p.createElement("div",{key:"desc",style:z.cellDescription},X)],A=!!X)}const R=this.props.width==="xs"&&this.state.focused===a,I=p.createElement(_s,{container:!0,wrap:"nowrap",direction:"row",sx:z.cellId,style:{width:this.columnsVisibility.id,paddingLeft:h}},p.createElement(_s,{container:!0,alignItems:"center"},f,s),p.createElement(_s,{style:{...z.cellIdSpan,...k?this.styles.invertedBackground:void 0,color:$,fontWeight:T?"bold":void 0}},p.createElement(bn,{title:vit(n.data,this.props.lang),slotProps:{popper:{sx:z.tooltip}}},p.createElement("div",null,n.data.name)),w,O),p.createElement("div",{style:{...z.grow,...k?this.styles.invertedBackgroundFlex:{}}}),p.createElement(_s,{container:!0,alignItems:"center"},d),this.props.width!=="xs"?p.createElement("div",null,p.createElement(ps,{className:R?"":"copyButton",style:z.cellCopyButton,onClick:X=>this.onCopy(X,a)})):null);let j=R&&x||this.columnsVisibility.name?p.createElement(ke,{component:"div",sx:{...z.cellName,...A?z.cellNameWithDesc:void 0,width:this.props.width!=="xs"?this.columnsVisibility.name:void 0,ml:R?0:"5px"}},x,!R&&((De=n.data)!=null&&De.title)?p.createElement(ke,{style:{color:$}},p.createElement(ps,{className:"copyButton",style:z.cellCopyButton,onClick:X=>{var ee;return this.onCopy(X,(ee=n.data)==null?void 0:ee.title)}})):null):null,N;this.state.statesView?N=[R&&S&&((et=this.states[a])!=null&&et.from)||this.columnsVisibility.changedFrom?{el:p.createElement("div",{key:"from",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.changedFrom:void 0},title:b.join(` +`)},S&&((Ge=this.states[a])!=null&&Ge.from)?_:null),type:"from"}:null,R&&D||this.columnsVisibility.qualityCode?{el:p.createElement("div",{key:"q",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.qualityCode:void 0},title:D||""},D),type:"quality"}:null,R&&S&&((qe=this.states[a])!=null&&qe.ts)||this.columnsVisibility.timestamp?{el:p.createElement("div",{key:"ts",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.timestamp:void 0}},S&&((xe=this.states[a])!=null&&xe.ts)?V.formatDate(new Date(this.states[a].ts),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"ts"}:null,R&&S&&((Ee=this.states[a])!=null&&Ee.lc)||this.columnsVisibility.lastChange?{el:p.createElement("div",{key:"lc",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.lastChange:void 0}},S&&((me=this.states[a])!=null&&me.lc)?V.formatDate(new Date(this.states[a].lc),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"lc"}:null]:N=[R&&(i!=null&&i.type)||this.columnsVisibility.type?{el:p.createElement("div",{key:"type",style:{...z.cellType,width:this.props.width!=="xs"?this.columnsVisibility.type:void 0}},c," ",i==null?void 0:i.type),type:"filter_type"}:null,R&&u||this.columnsVisibility.role?{el:p.createElement("div",{key:"role",style:{...z.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.role:"100%",cursor:this.state.filter.expertMode&&v&&this.props.objectBrowserEditRole?"text":"default"},onClick:!R&&this.state.filter.expertMode&&v&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:n.data.id}):void 0},u==null?void 0:u.role),type:"filter_role",onClick:R&&this.state.filter.expertMode&&v&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:n.data.id}):void 0}:null,R&&u||this.columnsVisibility.room?{el:p.createElement("div",{key:"room",style:{...z.cellRoom,...n.data.per?z.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.room:"100%",cursor:v?"text":"default"},onClick:!R&&v?()=>{const X=yl(this.info,n.data.id,"roomEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"room",enumsOriginal:JSON.stringify(X)}})}:void 0},n.data.rooms),type:"filter_room",onClick:R&&v?()=>{const X=yl(this.info,n.data.id,"roomEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"room",enumsOriginal:JSON.stringify(X)}})}:void 0}:null,R&&u||this.columnsVisibility.func?{el:p.createElement("div",{key:"func",style:{...z.cellFunc,...n.data.pef?z.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.func:"100%",cursor:v?"text":"default"},onClick:!R&&v?()=>{const X=yl(this.info,n.data.id,"funcEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"func",enumsOriginal:JSON.stringify(X)}})}:void 0},n.data.funcs),type:"filter_func",onClick:R&&v?()=>{const X=yl(this.info,n.data.id,"funcEnums");this.setState({enumDialogEnums:X,enumDialog:{item:n,type:"func",enumsOriginal:JSON.stringify(X)}})}:void 0}:null];let M=((ot=this.adapterColumns)==null?void 0:ot.map(X=>p.createElement("div",{style:{...z.cellAdapter,width:this.props.width!=="xs"?this.columnsVisibility[X.id]:void 0},key:X.id,title:`${X.adapter} => ${X.pathText}`},i?this.renderCustomValue(i,X,n):null)))||null;const P=R||this.columnsVisibility.val?this.renderColumnValue(a,n,R):null;let H=R&&P||this.columnsVisibility.val?p.createElement("div",{style:{...z.cellValue,width:this.props.width!=="xs"?this.columnsVisibility.val:"calc(100% - 100px)",cursor:g?(u==null?void 0:u.type)==="file"?"zoom-in":n.data.button?"grab":"text":"default"},onClick:g?()=>{!i||!this.states||((u==null?void 0:u.type)==="file"?this.setState({viewFileDialog:a}):!this.state.filter.expertMode&&n.data.button?this.props.socket.setState(a,!0).catch(X=>window.alert(`Cannot write state "${a}": ${X}`)):!this.state.filter.expertMode&&n.data.switch?this.props.socket.setState(a,!this.states[a].val).catch(X=>window.alert(`Cannot write state "${a}": ${X}`)):(this.edit={val:this.states[a]?this.states[a].val:"",q:this.states[a]&&this.states[a].q||0,ack:!1,id:a},this.setState({updateOpened:!0})))}:void 0},P):null,B=R||this.columnsVisibility.buttons?p.createElement("div",{style:{...z.cellButtons,width:this.props.width!=="xs"?this.columnsVisibility.buttons:void 0}},this.renderColumnButtons(a,n)):null,Z=null;if(this.props.width==="xs"&&this.state.focused===a){N=N.filter(ee=>ee);let X;N.length?X=N.map(ee=>ee?p.createElement("div",{key:ee.type,style:z.cellDetailsLine},p.createElement("span",{style:z.cellDetailsName},this.texts[ee.type],":"),ee.el,p.createElement("div",{style:{flexGrow:1}}),ee.onClick?p.createElement(Au,{style:z.cellCopyButtonInDetails,onClick:()=>{ee!=null&&ee.onClick&&ee.onClick()}}):null):null):X=null,M.length||(M=null),Z=p.createElement(qs,{style:{width:"100%",display:"flex",flexDirection:"column",padding:10,backgroundColor:this.props.theme.palette.mode==="dark"?"#333":"#ccc"}},p.createElement("div",{style:z.cellDetailsLine},p.createElement("div",{style:{flexGrow:1}}),p.createElement(ps,{style:z.cellCopyButtonInDetails,onClick:ee=>this.onCopy(ee,a)})),j&&p.createElement("div",{style:z.cellDetailsLine},p.createElement("span",{style:z.cellDetailsName},this.texts.name,":"),j,p.createElement("div",{style:{flexGrow:1}}),(Ce=n.data)!=null&&Ce.title?p.createElement(ps,{className:"copyButton",style:z.cellCopyButtonInDetails,onClick:ee=>{var $e;return this.onCopy(ee,($e=n.data)==null?void 0:$e.title)}}):null),X,M&&p.createElement("div",{style:z.cellDetailsLine},M),((ze=this.objects[a])==null?void 0:ze.type)==="state"&&p.createElement("div",{style:z.cellDetailsLine},p.createElement("span",{style:z.cellDetailsName},this.texts.value,":"),H,p.createElement("div",{style:{flexGrow:1}}),p.createElement(ps,{className:"copyButton",style:z.cellCopyButtonInDetails,onClick:ee=>{const{valText:$e}=ey({state:this.states[a],obj:this.objects[a],texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma});this.onCopy(ee,$e.v.toString())},key:"cc"})),B&&p.createElement("div",{style:{...z.cellDetailsLine,justifyContent:"right"}},B)),j=null,N=null,M=null,H=null,B=null}return{row:p.createElement(_s,{container:!0,direction:"row",wrap:"nowrap",sx:V.getStyle(this.props.theme,z.tableRow,this.state.linesEnabled&&z.tableRowLines,!this.props.dragEnabled&&z.tableRowNoDragging,w&&z.tableRowAlias,y&&z.tableRowAliasReadWrite,this.state.focused===a&&this.props.multiSelect&&z.tableRowFocused,!n.data.visible&&z.filteredOut,n.data.hasVisibleParent&&!n.data.visible&&!n.data.hasVisibleChildren&&z.filteredParentOut,this.state.selected.includes(a)&&z.itemSelected,this.state.selectedNonObject===a&&z.itemSelected),key:a,id:a,onMouseDown:X=>{this.onSelect(a);let ee;"which"in X?ee=X.which===3:"button"in X&&(ee=X.button===2),ee?this.contextMenu={item:n,ts:Date.now()}:this.contextMenu=null},onDoubleClick:()=>{n.children?this.toggleExpanded(a):this.onSelect(a,!0)}},I,j,N==null?void 0:N.map(X=>X==null?void 0:X.el),M,H,B),details:Z}}renderItem(n,o,r){const a=[];r=r||{count:0};const s=this.renderLeaf(n,o,r);let i;const l=this.props.DragWrapper;return this.props.dragEnabled&&l?n.data.sumVisibility?i=p.createElement(l,{key:n.data.id,item:n,style:z.draggable},s.row):i=p.createElement("div",{key:n.data.id,style:z.nonDraggable},s.row):i=s.row,n.data.id&&i&&a.push(i),s.details&&a.push(s.details),o=o===void 0?hp(this.state.expanded,n.data.id):o,(!n.data.id||o)&&(this.state.foldersFirst?n.children&&(a.push(n.children.map(d=>d.children&&(!this.state.columnsSelectorShow||r.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,r):null)),a.push(n.children.map(d=>!d.children&&(!this.state.columnsSelectorShow||r.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,r):null))):n.children&&a.push(n.children.map(d=>(!this.state.columnsSelectorShow||r.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,r):null))),a}calculateColumnsVisibility(n,o,r,a){let s=a||this.state.columnsWidths;const i=r||this.state.columnsForAdmin,l=o||this.state.columns||[],d=typeof n!="boolean"?this.state.columnsAuto:n;s=JSON.parse(JSON.stringify(s)),Object.keys(s).forEach(c=>{s[c]&&(s[c]=parseInt(s[c],10)||0)}),this.adapterColumns=[];const u=cn[this.props.width||"lg"].widths;if(d){if(this.columnsVisibility={id:cn[this.props.width||"lg"].idWidth,name:this.visibleCols.includes("name")&&u.name||0,nameHeader:this.visibleCols.includes("name")&&u.name||0,type:this.visibleCols.includes("type")&&u.type||0,role:this.visibleCols.includes("role")&&u.role||0,room:this.visibleCols.includes("room")&&u.room||0,func:this.visibleCols.includes("func")&&u.func||0,changedFrom:this.visibleCols.includes("changedFrom")&&u.changedFrom||0,qualityCode:this.visibleCols.includes("qualityCode")&&u.qualityCode||0,timestamp:this.visibleCols.includes("timestamp")&&u.timestamp||0,lastChange:this.visibleCols.includes("lastChange")&&u.lastChange||0,val:this.visibleCols.includes("val")&&u.val||0,buttons:this.visibleCols.includes("buttons")&&u.buttons||0},this.columnsVisibility.name&&!this.customWidth){let c=this.columnsVisibility.id||0;this.state.statesView?(c+=this.columnsVisibility.changedFrom||0,c+=this.columnsVisibility.qualityCode||0,c+=this.columnsVisibility.timestamp||0,c+=this.columnsVisibility.lastChange||0):(c+=this.columnsVisibility.type||0,c+=this.columnsVisibility.role||0,c+=this.columnsVisibility.room||0,c+=this.columnsVisibility.func||0),c+=this.columnsVisibility.val||0,c+=this.columnsVisibility.buttons||0,this.columnsVisibility.name=`calc(100% - ${c+5}px)`,this.columnsVisibility.nameHeader=`calc(100% - ${c+5+this.state.scrollBarWidth}px)`}else if(!this.customWidth){let c=0;this.state.statesView?(c+=this.columnsVisibility.changedFrom||0,c+=this.columnsVisibility.qualityCode||0,c+=this.columnsVisibility.timestamp||0,c+=this.columnsVisibility.lastChange||0):(c+=this.columnsVisibility.type||0,c+=this.columnsVisibility.role||0,c+=this.columnsVisibility.room||0,c+=this.columnsVisibility.func||0),c+=this.columnsVisibility.val||0,c+=this.columnsVisibility.buttons||0,this.columnsVisibility.id=`calc(100% - ${c+5}px)`}}else{const c=this.props.width||"lg";this.columnsVisibility={id:s.id||cn[c].idWidth,name:l.includes("name")&&(s.name||u.name||cn[c].widths.name)||0,type:l.includes("type")&&(s.type||u.type||cn[c].widths.type)||0,role:l.includes("role")&&(s.role||u.role||cn[c].widths.role)||0,room:l.includes("room")&&(s.room||u.room||cn[c].widths.room)||0,func:l.includes("func")&&(s.func||u.func||cn[c].widths.func)||0};let h=this.columnsVisibility.id;if(this.columnsVisibility.name&&(h+=this.columnsVisibility.type||0,h+=this.columnsVisibility.role||0,h+=this.columnsVisibility.room||0,h+=this.columnsVisibility.func||0),i&&l&&Object.keys(i).sort().forEach(f=>i[f].forEach(g=>{const v=`_${f}_${g.path}`;if(l.includes(v)){const S={adapter:f,id:`_${f}_${g.path}`,name:g.name,path:g.path.split("."),pathText:g.path};g.edit&&(S.edit=!0,g.type&&(S.type=g.type),g.objTypes&&(S.objTypes=g.objTypes)),this.adapterColumns.push(S),this.columnsVisibility[v]=s[S.id]||g.width||cn[c].widths.func||cn.xl.widths.func||0,h+=this.columnsVisibility[v]}else this.columnsVisibility[v]=0})),this.adapterColumns.sort((f,g)=>f.id>g.id?-1:f.idv==="id"||typeof this.columnsVisibility[v]=="string"||!this.columnsVisibility[v]?g:g+this.columnsVisibility[v],0);this.columnsVisibility.id=`calc(100% - ${f}px)`}}}navigateKeyPress(n){var r,a;const o=this.state.selectedNonObject||this.state.selected[0];if(o){if(n.code==="ArrowUp"||n.code==="ArrowDown"){n.preventDefault();const s=[];(r=this.tableRef.current)==null||r.childNodes.forEach(u=>s.push(u.id));const i=s.indexOf(o),l=n.code==="ArrowDown"?i+1:i-1,d=s[l]||o;this.onSelect(d),this.scrollToItem(d)}if((n.code==="ArrowRight"||n.code==="ArrowLeft")&&this.toggleExpanded(o),n.code==="Delete"&&this.root&&o){const s=wr.getItemFromRoot(this.root,o);if(s){const{obj:i}=s.data;i&&!((a=i.common)!=null&&a.dontDelete)&&this.showDeleteDialog({id:o,obj:i,item:s})}}}}static getItemFromRoot(n,o){const r=o.split(".");let a="",s=n;for(let i=0;ithis.clearFilter(),style:z.buttonClearFilter,title:this.props.t("ra_Clear filter"),size:"large"},p.createElement(cit,null),p.createElement(Dt,{style:z.buttonClearFilterIcon}))),this.props.width==="xs"?p.createElement("div",{style:z.headerRow},p.createElement("div",{style:{...z.headerCell,width:"100%"}},this.getFilterInput("id"))):p.createElement("div",{style:z.headerRow},p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.id,position:"relative"},"data-min":240,"data-name":"id"},this.getFilterInput("id"),this.renderHandleRight()),this.columnsVisibility.name?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.nameHeader,position:"relative"},"data-min":100,"data-name":"nameHeader"},this.getFilterInput("name"),this.renderHandleRight()):null,!this.state.statesView&&p.createElement(p.Fragment,null,this.columnsVisibility.type?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.type,position:"relative"},"data-min":100,"data-name":"type"},this.getFilterSelectType(),this.renderHandleRight()):null,this.columnsVisibility.role?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.role,position:"relative"},"data-min":100,"data-name":"role"},this.getFilterSelectRole(),this.renderHandleRight()):null,this.columnsVisibility.room?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.room,position:"relative"},"data-min":100,"data-name":"room"},this.getFilterSelectRoom(),this.renderHandleRight()):null,this.columnsVisibility.func?p.createElement("div",{style:{...z.headerCell,width:this.columnsVisibility.func,position:"relative"},"data-min":100,"data-name":"func"},this.getFilterSelectFunction(),this.renderHandleRight()):null),this.state.statesView&&p.createElement(p.Fragment,null,p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.changedFrom,position:"relative"},"data-min":100,"data-name":"changedFrom"},this.props.t("ra_Changed from"),this.renderHandleRight()),p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.qualityCode,position:"relative"},"data-min":100,"data-name":"qualityCode"},this.props.t("ra_Quality code"),this.renderHandleRight()),p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.timestamp,position:"relative"},"data-min":100,"data-name":"timestamp"},this.props.t("ra_Timestamp"),this.renderHandleRight()),p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.lastChange,position:"relative"},"data-min":100,"data-name":"lastChange"},this.props.t("ra_Last change"),this.renderHandleRight())),this.adapterColumns.map(o=>p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility[o.id]},title:o.adapter,key:o.id,"data-min":100,"data-name":o.id},o.name)),this.columnsVisibility.val?p.createElement("div",{style:{...z.headerCell,...z.headerCellValue,width:this.columnsVisibility.val,position:"relative"},"data-min":120,"data-name":"val"},this.props.t("ra_Value"),n):null,this.columnsVisibility.buttons?p.createElement("div",{title:this.texts.filter_custom,style:{...z.headerCell,width:this.columnsVisibility.buttons}}," ",this.getFilterSelectCustoms()):null)}renderToast(){return p.createElement(lp,{open:!!this.state.toast,autoHideDuration:3e3,onClick:()=>this.setState({toast:""}),onClose:()=>this.setState({toast:""}),message:this.state.toast,action:p.createElement(ue,{size:"small","aria-label":"close",color:"inherit",onClick:()=>this.setState({toast:""})},p.createElement(Dt,{fontSize:"small"}))})}componentDidUpdate(){if(this.tableRef.current){const n=this.tableRef.current.offsetWidth-this.tableRef.current.clientWidth;this.state.scrollBarWidth!==n?setTimeout(()=>this.setState({scrollBarWidth:n}),100):this.selectFirst&&this.scrollToItem(this.selectFirst)}}scrollToItem(n){this.selectFirst="";const o=window.document.getElementById(n);o==null||o.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}renderCustomDialog(){if(this.state.customDialog&&this.props.objectCustomDialog){const n=this.props.objectCustomDialog;return p.createElement(n,{reportChangedIds:o=>this.changedIds=[...o],objectIDs:this.state.customDialog,allVisibleObjects:!!this.state.customDialogAll,expertMode:this.state.filter.expertMode,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,t:this.props.t,lang:this.props.lang,socket:this.props.socket,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,objects:this.objects,customsInstances:this.info.customs,onClose:()=>{var o;this.pauseSubscribe(!1),this.setState({customDialog:null}),this.changedIds&&(this.changedIds=null,this.forceUpdate()),(o=this.props.router)==null||o.doNavigate("tab-objects")},systemConfig:this.systemConfig})}return null}onUpdate(n){this.props.socket.setState(this.edit.id,{val:n.val,ack:n.ack,q:n.q||0,expire:n.expire||void 0}).catch(o=>this.showError(`Cannot write value: ${o}`))}renderEditObjectDialog(){if(!this.state.editObjectDialog||!this.props.objectBrowserEditObject)return null;const n=this.props.objectBrowserEditObject;return p.createElement(n,{key:this.state.editObjectDialog,obj:this.objects[this.state.editObjectDialog],roleArray:this.info.roles,objects:this.objects,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,themeType:this.props.themeType,theme:this.props.theme,socket:this.props.socket,dialogName:this.props.dialogName,aliasTab:this.state.editObjectAlias,t:this.props.t,expertMode:!!this.state.filter.expertMode,onNewObject:o=>this.props.socket.setObject(o._id,o).then(()=>this.setState({editObjectDialog:o._id,editObjectAlias:!1},()=>this.onSelect(o._id))).catch(r=>this.showError(`Cannot write object: ${r}`)),onClose:o=>{var r,a;if(o){let s;this.state.editObjectDialog.startsWith("alias.")&&JSON.stringify((r=this.objects[this.state.editObjectDialog].common)==null?void 0:r.alias)!==JSON.stringify((a=o.common)==null?void 0:a.alias)&&(s=this.state.editObjectDialog),this.props.socket.setObject(o._id,o).then(()=>{s&&this.subscribes.includes(s)&&(this.unsubscribe(s),setTimeout(()=>this.subscribe(s),100))}).catch(i=>this.showError(`Cannot write object: ${i}`))}this.setState({editObjectDialog:"",editObjectAlias:!1})},width:this.props.width})}renderViewObjectFileDialog(){if(!this.state.viewFileDialog||!this.props.objectBrowserViewFile)return null;const n=this.props.objectBrowserViewFile;return p.createElement(n,{key:"viewFile",obj:this.objects[this.state.viewFileDialog],socket:this.props.socket,t:this.props.t,onClose:()=>this.setState({viewFileDialog:""})})}renderAliasEditorDialog(){if(!this.props.objectBrowserAliasEditor||!this.state.showAliasEditor)return null;const n=this.props.objectBrowserAliasEditor;return p.createElement(n,{key:"editAlias",obj:this.objects[this.state.showAliasEditor],objects:this.objects,socket:this.props.socket,t:this.props.t,onClose:()=>this.setState({showAliasEditor:""}),onRedirect:(o,r)=>setTimeout(()=>this.onSelect(o,!1,()=>this.expandAllSelected(()=>{this.scrollToItem(o),setTimeout(()=>this.setState({editObjectDialog:o,showAliasEditor:"",editObjectAlias:!0}),300)})),r||0)})}showAddDataPointDialog(n,o,r){this.setState({showContextMenu:null,modalNewObj:{id:n,initialType:o,initialStateType:r}})}renderAliasMenu(){return this.state.aliasMenu?p.createElement(Du,{key:"aliasmenu",open:!0,anchorEl:window.document.getElementById(`alias_${this.state.aliasMenu}`),onClose:()=>this.setState({aliasMenu:""})},this.info.aliasesMap[this.state.aliasMenu].map((n,o)=>p.createElement(je,{key:n,onClick:()=>this.onSelect(n)},p.createElement(as,null,this.renderAliasLink(this.state.aliasMenu,o,{"& .admin-browser-arrow":{mr:"8px"}}))))):null}renderContextMenu(){var f,g,v,S,_,b,y;if(!this.state.showContextMenu)return null;const n=this.state.showContextMenu.item,o=n.data.id,r=[],a=n.data.obj;let s="";if(this.props.objectEditOfAccessControl&&this.state.filter.expertMode)if(!a)s="---";else{const w=a.acl?a.type==="state"?a.acl.state:a.acl.object:0,$=a.acl&&(a.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object);s=Number.isNaN(Number(w))?Number($).toString(16):Number(w).toString(16)}const i=!this.props.notEditable&&a&&(this.state.filter.expertMode||a.type==="state"||a.type==="channel"||a.type==="device"),l=!n.data.obj||n.data.obj.type==="folder"||n.data.obj.type==="channel"||n.data.obj.type==="device"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",d=!n.data.obj||n.data.obj.type==="folder"||n.data.obj.type==="device"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",u=!n.data.obj||n.data.obj.type==="folder"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",c=!n.data.obj||n.data.obj.type==="folder"||n.data.id==="0_userdata.0"||n.data.obj.type==="meta",h={EDIT:{key:"0",visibility:!!(this.props.objectBrowserEditObject&&a&&(this.state.filter.expertMode||wr.isNonExpertId(o))),icon:p.createElement(Au,{fontSize:"small",style:this.styles.contextMenuEdit}),label:this.texts.editObject,onClick:()=>this.setState({editObjectDialog:n.data.id,showContextMenu:null,editObjectAlias:!1})},EDIT_VALUE:{key:"1",visibility:!!(this.states&&!this.props.notEditable&&a&&a.type==="state"&&((f=a.common)==null?void 0:f.type)!=="file"&&(this.state.filter.expertMode||a.common.write!==!1)),icon:p.createElement(gX,{fontSize:"small",style:this.styles.contextMenuEditValue}),label:this.props.t("ra_Edit value"),onClick:()=>{this.edit={val:this.states[o]?this.states[o].val:"",q:this.states[o]&&this.states[o].q||0,ack:!1,id:o},this.setState({updateOpened:!0,showContextMenu:null})}},VIEW:{visibility:!!this.props.objectBrowserViewFile&&(a==null?void 0:a.type)==="state"&&((g=a.common)==null?void 0:g.type)==="file",icon:p.createElement(pX,{fontSize:"small",style:this.styles.contextMenuView}),label:this.props.t("ra_View file"),onClick:()=>this.setState({viewFileDialog:(a==null?void 0:a._id)||"",showContextMenu:null})},CUSTOM:{key:"2",visibility:!(this.props.objectCustomDialog&&this.info.hasSomeCustoms&&a&&a.type==="state"&&((v=a.common)==null?void 0:v.type)!=="file"),icon:p.createElement(Vb,{fontSize:"small",style:n.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:z.cellButtonsButtonWithoutCustoms}),style:this.styles.contextMenuCustom,label:this.texts.customConfig,onClick:()=>{var w;this.pauseSubscribe(!0),(w=this.props.router)==null||w.doNavigate(null,"customs",o),this.setState({customDialog:[o],showContextMenu:null})}},ACL:{key:"3",visibility:!!s,icon:s,iconStyle:{fontSize:"smaller"},listItemIconStyle:this.styles.contextMenuACL,style:this.styles.contextMenuACL,label:this.props.t("ra_Edit ACL"),onClick:()=>this.setState({showContextMenu:null,modalEditOfAccess:!0,modalEditOfAccessObjData:n.data})},ROLE:{key:"4",visibility:!!(this.state.filter.expertMode&&i&&this.props.objectBrowserEditRole),icon:p.createElement(tX,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit role"),onClick:()=>this.setState({roleDialog:n.data.id,showContextMenu:null})},FUNCTION:{key:"5",visibility:!!i,icon:p.createElement(Zq,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit function"),onClick:()=>{const w=yl(this.info,n.data.id,"funcEnums");this.setState({enumDialogEnums:w,enumDialog:{item:n,type:"func",enumsOriginal:JSON.stringify(w)},showContextMenu:null})}},ROOM:{key:"6",visibility:!!i,icon:p.createElement(sX,{fontSize:"small",style:this.styles.contextMenuRoom}),label:this.props.t("ra_Edit room"),onClick:()=>{const w=yl(this.info,n.data.id,"roomEnums");this.setState({enumDialogEnums:w,enumDialog:{item:n,type:"room",enumsOriginal:JSON.stringify(w)},showContextMenu:null})}},ALIAS:{key:"7",visibility:!!(!this.props.notEditable&&this.props.objectBrowserAliasEditor&&this.props.objectBrowserEditObject&&(a==null?void 0:a.type)==="state"&&((S=a.common)==null?void 0:S.type)!=="file"),icon:p.createElement(s3,{style:(_=a==null?void 0:a.common)!=null&&_.alias?this.styles.cellButtonsButtonWithCustoms:z.cellButtonsButtonWithoutCustoms}),label:this.info.aliasesMap[n.data.id]||n.data.id.startsWith("alias.0.")?this.props.t("ra_Edit alias"):this.props.t("ra_Create alias"),onClick:()=>{var w;(w=a==null?void 0:a.common)!=null&&w.alias?this.setState({showContextMenu:null,editObjectDialog:n.data.id,editObjectAlias:!0}):this.setState({showContextMenu:null,showAliasEditor:n.data.id})}},CREATE:{key:"+",visibility:(n.data.id.startsWith("0_userdata.0")||n.data.id.startsWith("javascript."))&&(l||d||u||c),icon:p.createElement(d$,{fontSize:"small",style:this.styles.cellButtonsButtonWithCustoms}),style:z.contextMenuWithSubMenu,label:this.texts.create,subMenu:[{label:this.texts.createBooleanState,visibility:l,icon:p.createElement(iu,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state","boolean")},{label:this.texts.createNumberState,visibility:l,icon:p.createElement(iu,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state","number")},{label:this.texts.createStringState,visibility:l,icon:p.createElement(iu,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state","string")},{label:this.texts.createState,visibility:l,icon:p.createElement(iu,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"state")},{label:this.texts.createChannel,visibility:d,icon:p.createElement(HA,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"channel")},{label:this.texts.createDevice,visibility:u,icon:p.createElement(UA,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(n.data.id,"device")},{label:this.texts.createFolder,icon:p.createElement(r3,{fontSize:"small"}),visibility:c,onClick:()=>this.showAddDataPointDialog(n.data.id,"folder")}]},DELETE:{key:"Delete",visibility:!!(this.props.onObjectDelete&&((b=n.children)!=null&&b.length||a&&!((y=a.common)!=null&&y.dontDelete))),icon:p.createElement(Ns,{fontSize:"small",style:this.styles.contextMenuDelete}),style:this.styles.contextMenuDelete,label:this.texts.deleteObject,onClick:()=>this.setState({showContextMenu:null},()=>this.showDeleteDialog({id:o,obj:a||{},item:n}))}};return Object.keys(h).forEach(w=>{var $,k;h[w].visibility&&(h[w].subMenu?(r.push(p.createElement(je,{key:w,href:"",onClick:T=>this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position,subItem:w,subAnchor:T.target}}),style:h[w].style},p.createElement(Tl,{style:{...h[w].iconStyle,...h[w].listItemIconStyle}},h[w].icon),p.createElement(as,null,h[w].label,"..."),p.createElement("div",{style:{...z.contextMenuKeys,opacity:1}},p.createElement(Yq,null)))),(($=this.state.showContextMenu)==null?void 0:$.subItem)===w&&r.push(p.createElement(Du,{key:"subContextMenu",open:!0,anchorEl:this.state.showContextMenu.subAnchor,onClose:()=>{this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position}}),this.contextMenu=null}},(k=h[w].subMenu)==null?void 0:k.map(T=>T.visibility?p.createElement(je,{key:T.label,onClick:T.onClick,style:T.style},p.createElement(Tl,{style:{...T.iconStyle,...T.listItemIconStyle||void 0}},T.icon),p.createElement(as,null,T.label)):null)))):r.push(p.createElement(je,{key:w,onClick:h[w].onClick,sx:h[w].style},p.createElement(Tl,{style:{...h[w].iconStyle,...h[w].listItemIconStyle}},h[w].icon),p.createElement(as,null,h[w].label),h[w].key?p.createElement("div",{style:z.contextMenuKeys},`Alt+${h[w].key==="Delete"?this.props.t("ra_Del"):h[w].key}`):null)))}),r.length?p.createElement(Du,{key:"contextMenu",open:!0,onKeyUp:w=>{w.preventDefault(),w.altKey&&Object.keys(h).forEach($=>{w.key===h[$].key&&h[$].onClick&&h[$].onClick()})},anchorReference:"anchorPosition",anchorPosition:this.state.showContextMenu.position,onClose:()=>{this.setState({showContextMenu:null}),this.contextMenu=null}},r):(setTimeout(()=>this.setState({showContextMenu:null}),100),null)}renderEditValueDialog(){var a;if(!this.state.updateOpened||!this.props.objectBrowserValue)return null;if(!this.edit.id)return console.error(`Invalid ID for edit: ${JSON.stringify(this.edit)}`),null;if(!this.objects[this.edit.id])return console.error(`Something went wrong. Possibly the object ${this.edit.id} was deleted.`),null;const n=(a=this.objects[this.edit.id].common)!=null&&a.type?this.objects[this.edit.id].common.type:typeof this.edit.val,o=this.objects[this.edit.id].common.role,r=this.props.objectBrowserValue;return p.createElement(r,{t:this.props.t,lang:this.props.lang,type:n,role:o||"",states:V.getStates(this.objects[this.edit.id]),themeType:this.props.themeType,theme:this.props.theme,expertMode:!!this.state.filter.expertMode,value:this.edit.val,socket:this.props.socket,object:this.objects[this.edit.id],defaultHistory:this.defaultHistory,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,onClose:s=>{this.setState({updateOpened:!1}),s&&this.onUpdate(s)},width:this.props.width})}render(){this.recordStates=[],this.unsubscribeTimer&&clearTimeout(this.unsubscribeTimer),this.styleTheme!==this.props.themeType&&(this.styles={cellIdIconFolder:V.getStyle(this.props.theme,z.cellIdIconFolder),cellIdIconDocument:V.getStyle(this.props.theme,z.cellIdIconDocument),iconDeviceError:V.getStyle(this.props.theme,z.iconDeviceError),iconDeviceConnected:V.getStyle(this.props.theme,z.iconDeviceConnected),iconDeviceDisconnected:V.getStyle(this.props.theme,z.iconDeviceDisconnected),cellButtonsButtonWithCustoms:V.getStyle(this.props.theme,z.cellButtonsButtonWithCustoms),invertedBackground:V.getStyle(this.props.theme,z.invertedBackground),invertedBackgroundFlex:V.getStyle(this.props.theme,z.invertedBackgroundFlex),contextMenuEdit:V.getStyle(this.props.theme,z.contextMenuEdit),contextMenuEditValue:V.getStyle(this.props.theme,z.contextMenuEditValue),contextMenuView:V.getStyle(this.props.theme,z.contextMenuView),contextMenuCustom:V.getStyle(this.props.theme,z.contextMenuCustom),contextMenuACL:V.getStyle(this.props.theme,z.contextMenuACL),contextMenuRoom:V.getStyle(this.props.theme,z.contextMenuRoom),contextMenuRole:V.getStyle(this.props.theme,z.contextMenuRole),contextMenuDelete:V.getStyle(this.props.theme,z.contextMenuDelete),filterInput:V.getStyle(this.props.theme,z.headerCellInput,z.filterInput),iconCopy:V.getStyle(this.props.theme,z.cellButtonsValueButton,z.cellButtonsValueButtonCopy),aliasReadWrite:V.getStyle(this.props.theme,z.cellIdAlias,z.cellIdAliasReadWrite),aliasAlone:V.getStyle(this.props.theme,z.cellIdAlias,z.cellIdAliasAlone)},this.styleTheme=this.props.themeType);const n=JSON.stringify(this.state.filter);if(this.lastAppliedFilter!==n&&this.objects&&this.root){const r={count:0};f0(this.root,this.state.filter,this.props.lang,this.objects,void 0,r,this.props.customFilter,this.props.types),r.count<500&&!this.state.expandAllVisible?setTimeout(()=>this.setState({expandAllVisible:!0})):r.count>=500&&this.state.expandAllVisible&&setTimeout(()=>this.setState({expandAllVisible:!1})),this.lastAppliedFilter=n}if(this.unsubscribeTimer=setTimeout(()=>{this.unsubscribeTimer=null,this.checkUnsubscribes()},200),!this.state.loaded)return p.createElement(ro,{key:`${this.props.dialogName}_c`});const o=this.root?this.renderItem(this.root,void 0):null;return p.createElement(dit,{key:this.props.dialogName},p.createElement("style",null,` @keyframes newValueAnimation-light { 0% { color: #00f900; @@ -612,7 +612,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .newValueBrowser-light { animation: newValueAnimation-light 2s ease-in-out; } -`),p.createElement(dit,null,this.getToolbar()),p.createElement(cit,null,this.renderHeader(),p.createElement("div",{style:z.tableDiv,ref:this.tableRef,onKeyDown:r=>this.navigateKeyPress(r)},o)),this.renderContextMenu(),this.renderAliasMenu(),this.renderToast(),this.renderColumnsEditCustomDialog(),this.renderColumnsSelectorDialog(),this.renderCustomDialog(),this.renderEditValueDialog(),this.renderEditObjectDialog(),this.renderViewObjectFileDialog(),this.renderAliasEditorDialog(),this.renderEditRoleDialog(),this.renderEnumDialog(),this.renderErrorDialog(),this.renderExportDialog(),this.state.modalNewObj&&this.props.modalNewObject&&this.props.modalNewObject(this),this.state.modalEditOfAccess&&this.state.modalEditOfAccessObjData&&this.props.modalEditOfAccessControl&&this.props.modalEditOfAccessControl(this,this.state.modalEditOfAccessObjData))}};qm=new WeakMap,xS(wr,qm,["0_userdata.0.","alias.0."]);let f0=wr;const yit=E_()(f0),J={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:e=>({background:e.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:e=>({background:e.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:e=>({background:e.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:e=>({background:e.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:e=>({background:e.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:e=>({background:e.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:e=>({background:e.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:e=>({background:e.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:e=>({background:e.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},ey=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Gh=["January","February","March","April","May","June","July","August","September","October","November","December"],ty={minutes:"minutes",hours:"hours"},Pd=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function xa(e){return e<10?`0${e}`:`${e}`}const xE={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 ny(e){const t=e.split(".");return t.length===3?`${t[2]}-${t[1]}-${t[0]}`:""}class An extends C.Component{constructor(n){super(n);F(this,"refFrom");F(this,"refTo");F(this,"refOnce");F(this,"timerOnce",null);F(this,"timerFrom",null);F(this,"timerTo",null);let o;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{o=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(o=this.props.schedule);(!o||!Object.keys(o).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),o=xE),o={...xE,...o},o.valid.from=o.valid.from||An.now2string(),this.refFrom=p.createRef(),this.refTo=p.createRef(),this.refOnce=p.createRef(),this.state={schedule:o,desc:An.state2text(o)},JSON.stringify(o)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(o)),100)}onChange(n,o){const r=JSON.stringify(n)!==JSON.stringify(this.state.schedule);if(o||r){r&&this.setState({schedule:n,desc:An.state2text(n)});const a=JSON.parse(JSON.stringify(n));if(a.period.once){const s=a.period.once;delete a.period,a.period={once:s},delete a.valid}else if(a.period.days){const s=a.period.days,i=a.period.dows;delete a.period,a.period={days:s},i&&i!=="[]"&&(a.period.dows=i)}else if(a.period.weeks){const s=a.period.weeks,i=a.period.dows;delete a.period,a.period={weeks:s},i&&i!=="[]"&&(a.period.dows=i)}else if(a.period.months){const s=a.period.months,i=a.period.dates;delete a.period,a.period={months:s},i&&i!=="[]"&&(a.period.dates=i)}else if(a.period.years){const s=a.period.years,i=a.period.yearMonth,l=a.period.yearDate;delete a.period,a.period={years:s,yearDate:l},i&&(a.period.yearMonth=i)}if(a.time.exactTime?(delete a.time.end,delete a.time.mode,delete a.time.interval):delete a.time.exactTime,a.valid){if(a.valid.to||delete a.valid.to,a.period.days===1||a.period.weeks===1||a.period.months===1||a.period.years===1){const s=An.string2date(a.valid.from),i=new Date;i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),s<=i&&delete a.valid.from}!a.valid.from&&!a.valid.to&&delete a.valid}this.props.onChange&&this.props.onChange(JSON.stringify(a),An.state2text(n))}}static state2text(n){if(typeof n=="string")try{n=JSON.parse(n)}catch{return""}const o=[],r=An.string2date(n.valid.from);if(n.period.once){const a=An.string2date(n.period.once),s=new Date;if(s.setMilliseconds(0),s.setSeconds(0),s.setMinutes(0),s.setHours(0),aE.t(ey[i]));if(s.length===1)o.push(E.t("sch_desc_onWeekday",s[0]));else if(s.length===7)o.push(E.t("sch_desc_everyDay"));else{const i=s.pop();o.push(E.t("sch_desc_onWeekdays",s.join(", "),i))}}}else o.push(E.t("sch_desc_everyDay"));else o.push(E.t("sch_desc_everyNDay",n.period.days.toString()));else if(n.period.weeks)if(n.period.weeks===1?o.push(E.t("sch_desc_everyWeek")):o.push(E.t("sch_desc_everyNWeeks",n.period.weeks.toString())),n.period.dows){const a=JSON.parse(n.period.dows);if(a.length===2&&a[0]===0&&a[1]===6)o.push(E.t("sch_desc_onWeekends"));else if(a.length===5&&a[0]===1&&a[1]===2&&a[2]===3&&a[3]===4&&a[4]===5)o.push(E.t("sch_desc_onWorkdays"));else{const s=a.map(i=>E.t(ey[i]));if(s.length===1)o.push(E.t("sch_desc_onWeekday",s[0]));else if(s.length===7)o.push(E.t("sch_desc_everyDay"));else{const i=s.pop();o.push(E.t("sch_desc_onWeekdays",s.join(", "),i))}}}else return E.t("sch_desc_never");else if(n.period.months){if(n.period.dates){const a=JSON.parse(n.period.dates);if(a.length===1)o.push(E.t("sch_desc_onDate",a[0]));else if(a.length===31)o.push(E.t("sch_desc_onEveryDate"));else if(a.length){const s=a.pop();o.push(E.t("sch_desc_onDates",a.join(", "),s))}else return E.t("sch_desc_never")}else o.push(E.t("sch_desc_onEveryDate"));if(n.period.months===1)o.push(E.t("sch_desc_everyMonth"));else if(typeof n.period.months=="number")o.push(E.t("sch_desc_everyNMonths",n.period.months.toString()));else{const s=JSON.parse(n.period.months).map(i=>E.t(Gh[i-1]));if(!s.length)return E.t("sch_desc_never");if(s.length===1)o.push(E.t("sch_desc_onMonth",s[0]));else if(s.length===12)o.push(E.t("sch_desc_everyMonth"));else{const i=s.pop();o.push(E.t("sch_desc_onMonths",s.join(", "),i))}}}else n.period.years&&(n.period.years===1?o.push(E.t("sch_desc_everyYear")):o.push(E.t("sch_desc_everyNYears",n.period.years.toString())),o.push(E.t("sch_desc_onDate",n.period.yearDate.toString(),n.period.yearMonth?E.t(Gh[n.period.yearMonth-1]):E.t("sch_desc_everyMonth"))));if(n.time.exactTime)Pd.includes(n.time.start)?o.push(E.t("sch_desc_atTime",E.t(`sch_astro_${n.time.start}`))):o.push(E.t("sch_desc_atTime",n.time.start));else{n.time.mode===ty.minutes?n.time.interval===1?o.push(E.t("sch_desc_everyMinute")):o.push(E.t("sch_desc_everyNMinutes",n.time.interval.toString())):n.time.interval===1?o.push(E.t("sch_desc_everyHour")):o.push(E.t("sch_desc_everyNHours",n.time.interval.toString()));const a=Pd.indexOf(n.time.start)!==-1?E.t(`sch_astro_${n.time.start}`):n.time.start,s=Pd.indexOf(n.time.end)!==-1?E.t(`sch_astro_${n.time.end}`):n.time.end;(a!=="00:00"||s!=="24:00"&&s!=="23:59")&&o.push(E.t("sch_desc_intervalFromTo",a,s))}return n.period.once||(r.getTime()>Date.now()&&n.valid.to?o.push(E.t("sch_desc_validFromTo",n.valid.from,n.valid.to)):r.getTime()>Date.now()?o.push(E.t("sch_desc_validFrom",n.valid.from)):n.valid.to&&o.push(E.t("sch_desc_validTo",n.valid.to))),o.join(" ")}getTimePeriodElements(){const n=this.state.schedule;let o=!1,r=!1,a=!1,s=!0;return n.time.start==="00:00"&&n.time.end==="24:00"?(o=!0,s=!1):n.time.start==="sunrise"?(r=!0,s=!1):n.time.start==="sunset"&&(a=!0,s=!1),p.createElement("div",{key:"timePeriod",style:J.rowDiv},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!n.time.exactTime,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.exactTime=!1,this.onChange(i)}}),label:E.t("sch_intervalTime")})),p.createElement("div",{style:J.settingsDiv},p.createElement("div",{style:J.settingsDiv},!n.time.exactTime&&p.createElement("div",null,p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!s,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="00:00",i.time.end="23:59",this.onChange(i)}}),label:s?"":E.t("sch_fromTo")}),s&&[p.createElement(st,{variant:"standard",style:{...J.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:i=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:i.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start=i.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:E.t("sch_from"),margin:"normal"}),p.createElement(st,{variant:"standard",style:J.inputTime,key:"exactTimeTo",type:"time",sx:i=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:i.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.end=i.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:E.t("sch_to"),margin:"normal"})])),!n.time.exactTime&&p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!o,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="00:00",i.time.end="24:00",this.onChange(i)}}),label:E.t("sch_wholeDay")})),!n.time.exactTime&&p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!r,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="sunrise",i.time.end="sunset",this.onChange(i)}}),label:E.t("sch_astroDay")})),!n.time.exactTime&&p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!a,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="sunset",i.time.end="sunrise",this.onChange(i)}}),label:E.t("sch_astroNight")}))),!n.time.exactTime&&this.getPeriodSettingsMinutes(s)))}getTimeExactElements(){const n=Pd.includes(this.state.schedule.time.start);return p.createElement("div",{key:"timeExact",style:J.rowDiv},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.exactTime=!0,this.onChange(o)}}),label:E.t("sch_exactTime")})),this.state.schedule.time.exactTime&&p.createElement(_n,{variant:"standard",value:n?this.state.schedule.time.start:"00:00",onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.start=o.target.value,this.onChange(r)}},p.createElement(je,{key:"specific",value:"00:00"},E.t("sch_specificTime")),Pd.map(o=>p.createElement(je,{key:o,value:o},E.t(`sch_astro_${o}`)))),this.state.schedule.time.exactTime&&!n&&p.createElement("div",{style:J.settingsDiv},p.createElement(st,{variant:"standard",style:J.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:o=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:o.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.start=o.target.value,this.onChange(r)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return p.createElement("hr",{style:J.hr})}getPeriodModes(){const n=this.state.schedule,o=!n.period.dows&&!n.period.months&&!n.period.dates&&!n.period.years&&!n.period.days&&!n.period.weeks;return o&&!n.period.once&&(n.period.once=An.now2string(!0)),[p.createElement("div",{key:"once",style:{...J.rowDiv,...J.rowOnce}},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!o,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.once=r.period.once||An.now2string(!0),r.period.dows="",r.period.months="",r.period.dates="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.weeks=0,r.period.days=0,this.onChange(r)}}),label:E.t("sch_periodOnce")})),o&&p.createElement("div",{style:J.settingsDiv},p.createElement(st,{variant:"standard",style:J.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:ny(n.period.once),onChange:r=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(a=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const s=JSON.parse(JSON.stringify(this.state.schedule)),i=An.string2date(a);i.toString()!=="Invalid Date"&&(s.period.once=`${xa(i.getDate())}.${xa(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(s))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},label:E.t("sch_at"),margin:"normal"}))),p.createElement(ke,{component:"div",key:"days",sx:V.getStyle(this.props.theme,J.rowDiv,J.rowDays)},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!n.period.days,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",r.period.months="",r.period.dates="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.weeks=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodDaily")})),p.createElement("div",{style:J.settingsDiv},this.getPeriodSettingsDaily(),n.period.days?this.getPeriodSettingsWeekdays():null)),p.createElement(ke,{component:"div",key:"weeks",sx:V.getStyle(this.props.theme,J.rowDiv,J.rowDows)},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!n.period.weeks,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=n.period.weeks?0:1,r.period.dows=n.period.dows||"[0]",r.period.months="",r.period.dates="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.days=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodWeekly")})),p.createElement(ke,{component:"div",style:J.settingsDiv},p.createElement("div",{style:J.settingsDiv},this.getPeriodSettingsWeekly()),p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,J.settingsDiv,J.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),p.createElement(ke,{component:"div",key:"months",sx:V.getStyle(this.props.theme,J.rowDiv,J.rowMonths)},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!n.period.months,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months=1,r.period.dows="",r.period.dates="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.weeks=0,r.period.days=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodMonthly")})),p.createElement("div",{style:J.settingsDiv},this.getPeriodSettingsMonthly(),n.period.months?p.createElement(ke,null,p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,J.settingsDiv,J.rowMonthsDates)},p.createElement(Oe,{control:p.createElement(Tt,{style:J.inputRadio,checked:!!n.period.dates,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months=r.period.months||1;const a=[];for(let s=1;s<=31;s++)a.push(s);r.period.dates=r.period.dates||JSON.stringify(a),r.period.dows="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.weeks=0,r.period.days=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodDates")})),p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,J.settingsDiv,J.rowMonthsDates)},this.getPeriodSettingsDates())):null)),p.createElement(ke,{component:"div",key:"years",sx:V.getStyle(this.props.theme,J.rowDiv,J.rowYears)},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!n.period.years,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,r.period.yearDate=1,r.period.yearMonth=1,r.period.dows="",r.period.months=0,r.period.dates="",r.period.weeks=0,r.period.days=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodYearly")})),p.createElement("div",{style:J.settingsDiv},p.createElement("div",{style:J.settingsDiv},this.getPeriodSettingsYearly()),!!n.period.years&&p.createElement("div",{style:J.settingsDiv},p.createElement("span",null,E.t("sch_on")),p.createElement(Qn,{key:"input",value:this.state.schedule.period.yearDate,style:J.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:r=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearDate=parseInt(r.target.value,10),a.period.yearDate<1&&(a.period.yearDate=31),a.period.yearDate>31&&(a.period.yearDate=1),this.onChange(a)}}),p.createElement(_n,{variant:"standard",value:n.period.yearMonth,onChange:r=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearMonth=r.target.value,this.onChange(a)}},p.createElement(je,{key:"every",value:0},E.t("sch_yearEveryMonth")),Gh.map((r,a)=>p.createElement(je,{key:r,value:a+1},E.t(r)))))))]}getPeriodSettingsMinutes(n){return p.createElement("div",{style:{display:"inline-block",marginTop:n?15:"inherit"}},p.createElement("label",{style:{marginLeft:4,marginRight:4}},E.t("sch_every")),p.createElement(Qn,{value:this.state.schedule.time.interval,style:{...J.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.interval=parseInt(o.target.value,10),this.onChange(r)}}),p.createElement(_n,{variant:"standard",value:this.state.schedule.time.mode,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.mode=o.target.value,this.onChange(r)}},p.createElement(je,{value:ty.minutes},E.t("sch_periodMinutes")),p.createElement(je,{value:ty.hours},E.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const n=this.state.schedule,o=n.period.dows&&n.period.dows!=="[1, 2, 3, 4, 5]"&&n.period.dows!=="[0, 6]";return[p.createElement("div",{key:"workdays"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.dows="[1, 2, 3, 4, 5]",r.period.days&&(r.period.days=1),this.onChange(r)}}),label:E.t("sch_periodWorkdays")})),p.createElement("div",{key:"weekend"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.dows==="[0, 6]",onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.dows="[0, 6]",r.period.days&&(r.period.days=1),this.onChange(r)}}),label:E.t("sch_periodWeekend")})),p.createElement("div",{key:"specific",style:{verticalAlign:"top"}},p.createElement(Oe,{style:{verticalAlign:"top"},control:p.createElement(It,{style:J.inputRadio,checked:!!o,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.dows="[0, 1, 2, 3, 4, 5, 6]",r.period.days&&(r.period.days=1),this.onChange(r)}}),label:E.t("sch_periodWeekdays")}),o&&(n.period.days===1||n.period.weeks)&&p.createElement($v,{row:!0,style:{...J.inputGroup,width:150}},[1,2,3,4,5,6,0].map(r=>p.createElement(Oe,{key:`specific_${r}`,style:J.inputGroupElement,control:p.createElement(Tt,{style:J.inputSmallCheck,checked:n.period.dows.includes(r.toString()),onChange:a=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let i;try{i=JSON.parse(s.period.dows)}catch{i=[]}a.target.checked&&!i.includes(r)?i.push(r):!a.target.checked&&i.includes(r)&&i.splice(i.indexOf(r),1),i.sort((l,d)=>l-d),s.period.dows=JSON.stringify(i),s.period.days&&(s.period.days=1),this.onChange(s)}}),label:E.t(ey[r])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const n=this.state.schedule;return[p.createElement("div",{key:"every_day"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.days===1&&!n.period.dows,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=1,o.period.dows="",this.onChange(o)}}),label:E.t("sch_periodEveryDay")})),p.createElement("div",{key:"everyN_day"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.days>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=2,o.period.dows="",this.onChange(o)}}),label:E.t("sch_periodEvery")}),n.period.days>1&&[p.createElement(Qn,{key:"input",value:this.state.schedule.period.days,style:J.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=parseInt(o.target.value,10),r.period.dows="",this.onChange(r)}}),p.createElement("span",{key:"span",style:{paddingRight:10}},E.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const n=this.state.schedule;return[p.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.weeks===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=1,this.onChange(o)}}),label:E.t("sch_periodEveryWeek")})),p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.weeks>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=2,this.onChange(o)}}),label:E.t("sch_periodEvery")}),n.period.weeks>1&&[p.createElement(Qn,{key:"input",value:this.state.schedule.period.weeks,style:J.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=parseInt(o.target.value,10),this.onChange(r)}}),p.createElement("span",{key:"text"},E.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const n=this.state.schedule,o=[];for(let a=1;a<=31;a++)o.push(a);const r=JSON.parse(n.period.dates);return p.createElement($v,{row:!0,style:{...J.inputGroup,maxWidth:620}},p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:r.length===31,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),s=[];for(let i=1;i<=31;i++)s.push(i);a.period.dates=JSON.stringify(s),this.onChange(a)}}),label:E.t("sch_all")}),p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:!r.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dates="[]",this.onChange(a)}}),label:E.t("sch_no_one")}),r.length!==31&&!!r.length&&p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),s=[],i=JSON.parse(a.period.dates);for(let l=1;l<=31;l++)i.includes(l)||s.push(l);s.sort((l,d)=>l-d),a.period.dates=JSON.stringify(s),this.onChange(a)}}),label:E.t("sch_invert")}),p.createElement("div",null),o.map(a=>p.createElement(Oe,{key:`date_${a}`,style:a?J.inputDateDay:{...J.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:JSON.parse(n.period.dates).includes(a),onChange:s=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dates)}catch{l=[]}s.target.checked&&!l.includes(a)?l.push(a):!s.target.checked&&l.includes(a)&&l.splice(l.indexOf(a),1),l.sort((d,u)=>d-u),i.period.dates=JSON.stringify(l),this.onChange(i)}}),label:a<10?[p.createElement("span",{key:"0",style:{opacity:0}},"0"),p.createElement("span",{key:"num"},a)]:a})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const n=this.state.schedule,o=typeof n.period.months=="string"?JSON.parse(n.period.months):[];return[p.createElement("div",{key:"every"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:typeof n.period.months=="number"&&n.period.months===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months=1,this.onChange(n)}}),label:E.t("sch_periodEveryMonth")})),p.createElement("div",{key:"everyN"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:typeof n.period.months=="number"&&n.period.months>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months=2,this.onChange(r)}}),label:E.t("sch_periodEvery")}),typeof n.period.months=="number"&&n.period.months>1&&[p.createElement(Qn,{key:"input",value:n.period.months,style:J.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=parseInt(r.target.value,10),a.period.months<1&&(a.period.months=1),this.onChange(a)}}),p.createElement("span",{key:"text"},E.t("sch_periodMonth"))]),p.createElement("div",{key:"specific",style:{verticalAlign:"top"}},p.createElement(Oe,{style:{verticalAlign:"top"},control:p.createElement(It,{style:J.inputRadio,checked:typeof n.period.months=="string",onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(r)}}),label:E.t("sch_periodSpecificMonths")}),typeof n.period.months=="string"&&p.createElement($v,{row:!0,style:J.inputGroup},p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:o.length===12,onChange:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let s=1;s<=12;s++)a.push(s);r.period.months=JSON.stringify(a),this.onChange(r)}}),label:E.t("sch_all")}),p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:!o.length,onChange:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months="[]",this.onChange(r)}}),label:E.t("sch_no_one")}),o.length!==12&&!!o.length&&p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:!1,onChange:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule)),a=[],s=JSON.parse(r.period.months);for(let i=1;i<=12;i++)s.includes(i)||a.push(i);a.sort((i,l)=>i-l),r.period.months=JSON.stringify(a),this.onChange(r)}}),label:E.t("sch_invert")}),p.createElement("div",null),Gh.map((r,a)=>p.createElement(Oe,{key:`month_${a}`,style:J.inputGroupElement,control:p.createElement(Tt,{style:J.inputSmallCheck,checked:typeof n.period.months=="string"?JSON.parse(n.period.months).includes(a+1):n.period.months===a,onChange:s=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.months)}catch{l=[]}s.target.checked&&!l.includes(a+1)?l.push(a+1):!s.target.checked&&l.includes(a+1)&&l.splice(l.indexOf(a+1),1),l.sort((d,u)=>d-u),i.period.months=JSON.stringify(l),this.onChange(i)}}),label:E.t(r)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const n=this.state.schedule;return[p.createElement("div",{key:"year"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.years===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=1,this.onChange(o)}}),label:E.t("sch_periodEveryYear")})),p.createElement("div",{key:"every"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.years>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=2,this.onChange(o)}}),label:E.t("sch_periodEvery")}),n.period.years>1&&[p.createElement(Qn,{key:"input",value:this.state.schedule.period.years,style:J.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=parseInt(o.target.value,10),r.period.years<1&&(r.period.years=1),this.onChange(r)}}),p.createElement("span",{key:"text"},E.t("sch_periodYear"))])]}static now2string(n){const o=new Date;return o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),n&&(o.setDate(o.getDate()+2),o.setMilliseconds(o.getMilliseconds()-1)),`${xa(o.getDate())}.${xa(o.getMonth()+1)}.${xa(o.getFullYear())}`}static string2date(n){let o=n.split(".");return o.length===1?(o=n.split("-"),new Date(parseInt(o[0],10),parseInt(o[1],10)-1,parseInt(o[2],10))):new Date(parseInt(o[2],10),parseInt(o[1],10)-1,parseInt(o[0],10))}getValidSettings(){const n=this.state.schedule;return p.createElement("div",{style:J.rowDiv},p.createElement("div",{style:{...J.modeDiv,verticalAlign:"middle"}},p.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},E.t("sch_valid")),p.createElement("span",null,E.t("sch_validFrom"))),p.createElement("div",{style:J.settingsDiv},p.createElement(st,{variant:"standard",style:{...J.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:ny(n.valid.from),type:"date",onChange:o=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(r=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),s=An.string2date(r);s.toString()!=="Invalid Date"&&(a.valid.from=`${xa(s.getDate())}.${xa(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(a))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),p.createElement(Oe,{control:p.createElement(Tt,{style:J.inputRadio,checked:!!n.valid.to,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.valid.to=o.valid.to?"":An.now2string(!0),this.onChange(o)}}),label:E.t("sch_validTo")}),!!n.valid.to&&p.createElement(st,{variant:"standard",inputRef:this.refTo,style:{...J.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:ny(n.valid.to),onChange:o=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(r=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),s=An.string2date(r);s.toString()!=="Invalid Date"&&(a.valid.to=`${xa(s.getDate())}.${xa(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(a))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return p.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},p.createElement("div",null,this.state.desc),p.createElement("div",{style:J.scrollWindow},p.createElement("h5",null,E.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),An.getDivider(),p.createElement("h5",null,E.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&An.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}class vd extends C.Component{constructor(n){super(n);F(this,"dialogName");F(this,"filters");F(this,"filterFunc");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectID.${this.dialogName}`;const o=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(o)}catch{this.filters={}}n.filters&&(this.filters={...this.filters,...n.filters||{}});let r=this.props.selected||[];if(Array.isArray(r)||(r=[r]),r=r.filter(a=>a),n.filterFunc)if(typeof n.filterFunc=="string")try{this.filterFunc=new Function("obj",n.filterFunc)}catch{console.error(`Cannot parse filter function: "obj => ${n.filterFunc}"`),this.filterFunc=void 0}else this.filterFunc=n.filterFunc;this.state={selected:r,name:""}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect?this.state.selected:this.state.selected[0]||"",this.state.name),this.props.onClose()}render(){let n;return this.state.name||this.state.selected.length?this.state.selected.length===1?n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},(this.state.name||this.state.selected[0])+(this.state.name?` [${this.state.selected[0]}]`:""))]:n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},E.t("%s items",this.state.selected.length.toString()))]:n=this.props.title||E.t("ra_Please select object ID..."),p.createElement(yt,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{height:"95%",p:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)"}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectid_title"},p.createElement(bt,{id:"ar_dialog_selectid_title",style:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}},n),p.createElement(jt,{style:{height:"100%",overflow:"hidden",padding:"8px 4px"}},p.createElement(yit,{foldersFirst:this.props.foldersFirst,imagePrefix:this.props.imagePrefix||this.props.prefix,dateFormat:this.props.dateFormat,defaultFilters:this.filters,dialogName:this.dialogName,isFloatComma:this.props.isFloatComma,showExpertButton:this.props.showExpertButton!==void 0?this.props.showExpertButton:!0,expertMode:this.props.expertMode,columns:this.props.columns||["name","type","role","room","func","val"],types:this.props.types?Array.isArray(this.props.types)?this.props.types:[this.props.types]:["state"],root:this.props.root,t:E.t,lang:this.props.lang||E.getLanguage(),socket:this.props.socket,selected:this.state.selected,multiSelect:this.props.multiSelect,notEditable:this.props.notEditable===void 0?!0:this.props.notEditable,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,customFilter:this.props.customFilter,onFilterChanged:o=>{this.filters=o,(window._localStorage||window.localStorage).setItem(this.dialogName,JSON.stringify(o))},onSelect:(o,r,a)=>{let s;Array.isArray(o)?s=o:s=[o],JSON.stringify(s)!==JSON.stringify(this.state.selected)?this.setState({selected:s,name:r},()=>a&&this.handleOk()):a&&this.handleOk()},filterFunc:this.filterFunc,title:"",classes:{}})),p.createElement(Nt,null,p.createElement(he,{id:`ar_dialog_selectid_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),startIcon:p.createElement(qn,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||E.t("ra_Ok")),p.createElement(he,{id:`ar_dialog_selectid_cancel_${this.props.dialogName||""}`,color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}/*! +`),p.createElement(pit,null,this.getToolbar()),p.createElement(uit,null,this.renderHeader(),p.createElement("div",{style:z.tableDiv,ref:this.tableRef,onKeyDown:r=>this.navigateKeyPress(r)},o)),this.renderContextMenu(),this.renderAliasMenu(),this.renderToast(),this.renderColumnsEditCustomDialog(),this.renderColumnsSelectorDialog(),this.renderCustomDialog(),this.renderEditValueDialog(),this.renderEditObjectDialog(),this.renderViewObjectFileDialog(),this.renderAliasEditorDialog(),this.renderEditRoleDialog(),this.renderEnumDialog(),this.renderErrorDialog(),this.renderExportDialog(),this.state.modalNewObj&&this.props.modalNewObject&&this.props.modalNewObject(this),this.state.modalEditOfAccess&&this.state.modalEditOfAccessObjData&&this.props.modalEditOfAccessControl&&this.props.modalEditOfAccessControl(this,this.state.modalEditOfAccessObjData))}};qm=new WeakMap,CS(wr,qm,["0_userdata.0.","alias.0."]);let m0=wr;const wit=E_()(m0),J={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:e=>({background:e.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:e=>({background:e.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:e=>({background:e.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:e=>({background:e.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:e=>({background:e.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:e=>({background:e.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:e=>({background:e.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:e=>({background:e.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:e=>({background:e.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},ty=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Gh=["January","February","March","April","May","June","July","August","September","October","November","December"],ny={minutes:"minutes",hours:"hours"},Pd=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function xa(e){return e<10?`0${e}`:`${e}`}const $E={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 oy(e){const t=e.split(".");return t.length===3?`${t[2]}-${t[1]}-${t[0]}`:""}class An extends C.Component{constructor(n){super(n);F(this,"refFrom");F(this,"refTo");F(this,"refOnce");F(this,"timerOnce",null);F(this,"timerFrom",null);F(this,"timerTo",null);let o;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{o=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(o=this.props.schedule);(!o||!Object.keys(o).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),o=$E),o={...$E,...o},o.valid.from=o.valid.from||An.now2string(),this.refFrom=p.createRef(),this.refTo=p.createRef(),this.refOnce=p.createRef(),this.state={schedule:o,desc:An.state2text(o)},JSON.stringify(o)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(o)),100)}onChange(n,o){const r=JSON.stringify(n)!==JSON.stringify(this.state.schedule);if(o||r){r&&this.setState({schedule:n,desc:An.state2text(n)});const a=JSON.parse(JSON.stringify(n));if(a.period.once){const s=a.period.once;delete a.period,a.period={once:s},delete a.valid}else if(a.period.days){const s=a.period.days,i=a.period.dows;delete a.period,a.period={days:s},i&&i!=="[]"&&(a.period.dows=i)}else if(a.period.weeks){const s=a.period.weeks,i=a.period.dows;delete a.period,a.period={weeks:s},i&&i!=="[]"&&(a.period.dows=i)}else if(a.period.months){const s=a.period.months,i=a.period.dates;delete a.period,a.period={months:s},i&&i!=="[]"&&(a.period.dates=i)}else if(a.period.years){const s=a.period.years,i=a.period.yearMonth,l=a.period.yearDate;delete a.period,a.period={years:s,yearDate:l},i&&(a.period.yearMonth=i)}if(a.time.exactTime?(delete a.time.end,delete a.time.mode,delete a.time.interval):delete a.time.exactTime,a.valid){if(a.valid.to||delete a.valid.to,a.period.days===1||a.period.weeks===1||a.period.months===1||a.period.years===1){const s=An.string2date(a.valid.from),i=new Date;i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),s<=i&&delete a.valid.from}!a.valid.from&&!a.valid.to&&delete a.valid}this.props.onChange&&this.props.onChange(JSON.stringify(a),An.state2text(n))}}static state2text(n){if(typeof n=="string")try{n=JSON.parse(n)}catch{return""}const o=[],r=An.string2date(n.valid.from);if(n.period.once){const a=An.string2date(n.period.once),s=new Date;if(s.setMilliseconds(0),s.setSeconds(0),s.setMinutes(0),s.setHours(0),aE.t(ty[i]));if(s.length===1)o.push(E.t("sch_desc_onWeekday",s[0]));else if(s.length===7)o.push(E.t("sch_desc_everyDay"));else{const i=s.pop();o.push(E.t("sch_desc_onWeekdays",s.join(", "),i))}}}else o.push(E.t("sch_desc_everyDay"));else o.push(E.t("sch_desc_everyNDay",n.period.days.toString()));else if(n.period.weeks)if(n.period.weeks===1?o.push(E.t("sch_desc_everyWeek")):o.push(E.t("sch_desc_everyNWeeks",n.period.weeks.toString())),n.period.dows){const a=JSON.parse(n.period.dows);if(a.length===2&&a[0]===0&&a[1]===6)o.push(E.t("sch_desc_onWeekends"));else if(a.length===5&&a[0]===1&&a[1]===2&&a[2]===3&&a[3]===4&&a[4]===5)o.push(E.t("sch_desc_onWorkdays"));else{const s=a.map(i=>E.t(ty[i]));if(s.length===1)o.push(E.t("sch_desc_onWeekday",s[0]));else if(s.length===7)o.push(E.t("sch_desc_everyDay"));else{const i=s.pop();o.push(E.t("sch_desc_onWeekdays",s.join(", "),i))}}}else return E.t("sch_desc_never");else if(n.period.months){if(n.period.dates){const a=JSON.parse(n.period.dates);if(a.length===1)o.push(E.t("sch_desc_onDate",a[0]));else if(a.length===31)o.push(E.t("sch_desc_onEveryDate"));else if(a.length){const s=a.pop();o.push(E.t("sch_desc_onDates",a.join(", "),s))}else return E.t("sch_desc_never")}else o.push(E.t("sch_desc_onEveryDate"));if(n.period.months===1)o.push(E.t("sch_desc_everyMonth"));else if(typeof n.period.months=="number")o.push(E.t("sch_desc_everyNMonths",n.period.months.toString()));else{const s=JSON.parse(n.period.months).map(i=>E.t(Gh[i-1]));if(!s.length)return E.t("sch_desc_never");if(s.length===1)o.push(E.t("sch_desc_onMonth",s[0]));else if(s.length===12)o.push(E.t("sch_desc_everyMonth"));else{const i=s.pop();o.push(E.t("sch_desc_onMonths",s.join(", "),i))}}}else n.period.years&&(n.period.years===1?o.push(E.t("sch_desc_everyYear")):o.push(E.t("sch_desc_everyNYears",n.period.years.toString())),o.push(E.t("sch_desc_onDate",n.period.yearDate.toString(),n.period.yearMonth?E.t(Gh[n.period.yearMonth-1]):E.t("sch_desc_everyMonth"))));if(n.time.exactTime)Pd.includes(n.time.start)?o.push(E.t("sch_desc_atTime",E.t(`sch_astro_${n.time.start}`))):o.push(E.t("sch_desc_atTime",n.time.start));else{n.time.mode===ny.minutes?n.time.interval===1?o.push(E.t("sch_desc_everyMinute")):o.push(E.t("sch_desc_everyNMinutes",n.time.interval.toString())):n.time.interval===1?o.push(E.t("sch_desc_everyHour")):o.push(E.t("sch_desc_everyNHours",n.time.interval.toString()));const a=Pd.indexOf(n.time.start)!==-1?E.t(`sch_astro_${n.time.start}`):n.time.start,s=Pd.indexOf(n.time.end)!==-1?E.t(`sch_astro_${n.time.end}`):n.time.end;(a!=="00:00"||s!=="24:00"&&s!=="23:59")&&o.push(E.t("sch_desc_intervalFromTo",a,s))}return n.period.once||(r.getTime()>Date.now()&&n.valid.to?o.push(E.t("sch_desc_validFromTo",n.valid.from,n.valid.to)):r.getTime()>Date.now()?o.push(E.t("sch_desc_validFrom",n.valid.from)):n.valid.to&&o.push(E.t("sch_desc_validTo",n.valid.to))),o.join(" ")}getTimePeriodElements(){const n=this.state.schedule;let o=!1,r=!1,a=!1,s=!0;return n.time.start==="00:00"&&n.time.end==="24:00"?(o=!0,s=!1):n.time.start==="sunrise"?(r=!0,s=!1):n.time.start==="sunset"&&(a=!0,s=!1),p.createElement("div",{key:"timePeriod",style:J.rowDiv},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!n.time.exactTime,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.exactTime=!1,this.onChange(i)}}),label:E.t("sch_intervalTime")})),p.createElement("div",{style:J.settingsDiv},p.createElement("div",{style:J.settingsDiv},!n.time.exactTime&&p.createElement("div",null,p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!s,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="00:00",i.time.end="23:59",this.onChange(i)}}),label:s?"":E.t("sch_fromTo")}),s&&[p.createElement(st,{variant:"standard",style:{...J.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:i=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:i.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start=i.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:E.t("sch_from"),margin:"normal"}),p.createElement(st,{variant:"standard",style:J.inputTime,key:"exactTimeTo",type:"time",sx:i=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:i.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.end=i.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:E.t("sch_to"),margin:"normal"})])),!n.time.exactTime&&p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!o,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="00:00",i.time.end="24:00",this.onChange(i)}}),label:E.t("sch_wholeDay")})),!n.time.exactTime&&p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!r,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="sunrise",i.time.end="sunset",this.onChange(i)}}),label:E.t("sch_astroDay")})),!n.time.exactTime&&p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!a,onClick:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.time.start="sunset",i.time.end="sunrise",this.onChange(i)}}),label:E.t("sch_astroNight")}))),!n.time.exactTime&&this.getPeriodSettingsMinutes(s)))}getTimeExactElements(){const n=Pd.includes(this.state.schedule.time.start);return p.createElement("div",{key:"timeExact",style:J.rowDiv},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.exactTime=!0,this.onChange(o)}}),label:E.t("sch_exactTime")})),this.state.schedule.time.exactTime&&p.createElement(_n,{variant:"standard",value:n?this.state.schedule.time.start:"00:00",onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.start=o.target.value,this.onChange(r)}},p.createElement(je,{key:"specific",value:"00:00"},E.t("sch_specificTime")),Pd.map(o=>p.createElement(je,{key:o,value:o},E.t(`sch_astro_${o}`)))),this.state.schedule.time.exactTime&&!n&&p.createElement("div",{style:J.settingsDiv},p.createElement(st,{variant:"standard",style:J.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:o=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:o.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.start=o.target.value,this.onChange(r)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return p.createElement("hr",{style:J.hr})}getPeriodModes(){const n=this.state.schedule,o=!n.period.dows&&!n.period.months&&!n.period.dates&&!n.period.years&&!n.period.days&&!n.period.weeks;return o&&!n.period.once&&(n.period.once=An.now2string(!0)),[p.createElement("div",{key:"once",style:{...J.rowDiv,...J.rowOnce}},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!o,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.once=r.period.once||An.now2string(!0),r.period.dows="",r.period.months="",r.period.dates="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.weeks=0,r.period.days=0,this.onChange(r)}}),label:E.t("sch_periodOnce")})),o&&p.createElement("div",{style:J.settingsDiv},p.createElement(st,{variant:"standard",style:J.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:oy(n.period.once),onChange:r=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(a=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const s=JSON.parse(JSON.stringify(this.state.schedule)),i=An.string2date(a);i.toString()!=="Invalid Date"&&(s.period.once=`${xa(i.getDate())}.${xa(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(s))},1500,r.target.value)},slotProps:{inputLabel:{shrink:!0}},label:E.t("sch_at"),margin:"normal"}))),p.createElement(ke,{component:"div",key:"days",sx:V.getStyle(this.props.theme,J.rowDiv,J.rowDays)},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!n.period.days,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=1,r.period.dows="",r.period.months="",r.period.dates="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.weeks=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodDaily")})),p.createElement("div",{style:J.settingsDiv},this.getPeriodSettingsDaily(),n.period.days?this.getPeriodSettingsWeekdays():null)),p.createElement(ke,{component:"div",key:"weeks",sx:V.getStyle(this.props.theme,J.rowDiv,J.rowDows)},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!n.period.weeks,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=n.period.weeks?0:1,r.period.dows=n.period.dows||"[0]",r.period.months="",r.period.dates="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.days=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodWeekly")})),p.createElement(ke,{component:"div",style:J.settingsDiv},p.createElement("div",{style:J.settingsDiv},this.getPeriodSettingsWeekly()),p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,J.settingsDiv,J.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),p.createElement(ke,{component:"div",key:"months",sx:V.getStyle(this.props.theme,J.rowDiv,J.rowMonths)},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!n.period.months,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months=1,r.period.dows="",r.period.dates="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.weeks=0,r.period.days=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodMonthly")})),p.createElement("div",{style:J.settingsDiv},this.getPeriodSettingsMonthly(),n.period.months?p.createElement(ke,null,p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,J.settingsDiv,J.rowMonthsDates)},p.createElement(Oe,{control:p.createElement(Tt,{style:J.inputRadio,checked:!!n.period.dates,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months=r.period.months||1;const a=[];for(let s=1;s<=31;s++)a.push(s);r.period.dates=r.period.dates||JSON.stringify(a),r.period.dows="",r.period.years=0,r.period.yearDate=0,r.period.yearMonth=0,r.period.weeks=0,r.period.days=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodDates")})),p.createElement(ke,{component:"div",sx:V.getStyle(this.props.theme,J.settingsDiv,J.rowMonthsDates)},this.getPeriodSettingsDates())):null)),p.createElement(ke,{component:"div",key:"years",sx:V.getStyle(this.props.theme,J.rowDiv,J.rowYears)},p.createElement("div",{style:J.modeDiv},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:!!n.period.years,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=1,r.period.yearDate=1,r.period.yearMonth=1,r.period.dows="",r.period.months=0,r.period.dates="",r.period.weeks=0,r.period.days=0,r.period.once="",this.onChange(r)}}),label:E.t("sch_periodYearly")})),p.createElement("div",{style:J.settingsDiv},p.createElement("div",{style:J.settingsDiv},this.getPeriodSettingsYearly()),!!n.period.years&&p.createElement("div",{style:J.settingsDiv},p.createElement("span",null,E.t("sch_on")),p.createElement(Qn,{key:"input",value:this.state.schedule.period.yearDate,style:J.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:r=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearDate=parseInt(r.target.value,10),a.period.yearDate<1&&(a.period.yearDate=31),a.period.yearDate>31&&(a.period.yearDate=1),this.onChange(a)}}),p.createElement(_n,{variant:"standard",value:n.period.yearMonth,onChange:r=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearMonth=r.target.value,this.onChange(a)}},p.createElement(je,{key:"every",value:0},E.t("sch_yearEveryMonth")),Gh.map((r,a)=>p.createElement(je,{key:r,value:a+1},E.t(r)))))))]}getPeriodSettingsMinutes(n){return p.createElement("div",{style:{display:"inline-block",marginTop:n?15:"inherit"}},p.createElement("label",{style:{marginLeft:4,marginRight:4}},E.t("sch_every")),p.createElement(Qn,{value:this.state.schedule.time.interval,style:{...J.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.interval=parseInt(o.target.value,10),this.onChange(r)}}),p.createElement(_n,{variant:"standard",value:this.state.schedule.time.mode,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.time.mode=o.target.value,this.onChange(r)}},p.createElement(je,{value:ny.minutes},E.t("sch_periodMinutes")),p.createElement(je,{value:ny.hours},E.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const n=this.state.schedule,o=n.period.dows&&n.period.dows!=="[1, 2, 3, 4, 5]"&&n.period.dows!=="[0, 6]";return[p.createElement("div",{key:"workdays"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.dows="[1, 2, 3, 4, 5]",r.period.days&&(r.period.days=1),this.onChange(r)}}),label:E.t("sch_periodWorkdays")})),p.createElement("div",{key:"weekend"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.dows==="[0, 6]",onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.dows="[0, 6]",r.period.days&&(r.period.days=1),this.onChange(r)}}),label:E.t("sch_periodWeekend")})),p.createElement("div",{key:"specific",style:{verticalAlign:"top"}},p.createElement(Oe,{style:{verticalAlign:"top"},control:p.createElement(It,{style:J.inputRadio,checked:!!o,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.dows="[0, 1, 2, 3, 4, 5, 6]",r.period.days&&(r.period.days=1),this.onChange(r)}}),label:E.t("sch_periodWeekdays")}),o&&(n.period.days===1||n.period.weeks)&&p.createElement($v,{row:!0,style:{...J.inputGroup,width:150}},[1,2,3,4,5,6,0].map(r=>p.createElement(Oe,{key:`specific_${r}`,style:J.inputGroupElement,control:p.createElement(Tt,{style:J.inputSmallCheck,checked:n.period.dows.includes(r.toString()),onChange:a=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let i;try{i=JSON.parse(s.period.dows)}catch{i=[]}a.target.checked&&!i.includes(r)?i.push(r):!a.target.checked&&i.includes(r)&&i.splice(i.indexOf(r),1),i.sort((l,d)=>l-d),s.period.dows=JSON.stringify(i),s.period.days&&(s.period.days=1),this.onChange(s)}}),label:E.t(ty[r])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const n=this.state.schedule;return[p.createElement("div",{key:"every_day"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.days===1&&!n.period.dows,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=1,o.period.dows="",this.onChange(o)}}),label:E.t("sch_periodEveryDay")})),p.createElement("div",{key:"everyN_day"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.days>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=2,o.period.dows="",this.onChange(o)}}),label:E.t("sch_periodEvery")}),n.period.days>1&&[p.createElement(Qn,{key:"input",value:this.state.schedule.period.days,style:J.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.days=parseInt(o.target.value,10),r.period.dows="",this.onChange(r)}}),p.createElement("span",{key:"span",style:{paddingRight:10}},E.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const n=this.state.schedule;return[p.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.weeks===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=1,this.onChange(o)}}),label:E.t("sch_periodEveryWeek")})),p.createElement("div",null,p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.weeks>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=2,this.onChange(o)}}),label:E.t("sch_periodEvery")}),n.period.weeks>1&&[p.createElement(Qn,{key:"input",value:this.state.schedule.period.weeks,style:J.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.weeks=parseInt(o.target.value,10),this.onChange(r)}}),p.createElement("span",{key:"text"},E.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const n=this.state.schedule,o=[];for(let a=1;a<=31;a++)o.push(a);const r=JSON.parse(n.period.dates);return p.createElement($v,{row:!0,style:{...J.inputGroup,maxWidth:620}},p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:r.length===31,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),s=[];for(let i=1;i<=31;i++)s.push(i);a.period.dates=JSON.stringify(s),this.onChange(a)}}),label:E.t("sch_all")}),p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:!r.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dates="[]",this.onChange(a)}}),label:E.t("sch_no_one")}),r.length!==31&&!!r.length&&p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),s=[],i=JSON.parse(a.period.dates);for(let l=1;l<=31;l++)i.includes(l)||s.push(l);s.sort((l,d)=>l-d),a.period.dates=JSON.stringify(s),this.onChange(a)}}),label:E.t("sch_invert")}),p.createElement("div",null),o.map(a=>p.createElement(Oe,{key:`date_${a}`,style:a?J.inputDateDay:{...J.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:JSON.parse(n.period.dates).includes(a),onChange:s=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dates)}catch{l=[]}s.target.checked&&!l.includes(a)?l.push(a):!s.target.checked&&l.includes(a)&&l.splice(l.indexOf(a),1),l.sort((d,u)=>d-u),i.period.dates=JSON.stringify(l),this.onChange(i)}}),label:a<10?[p.createElement("span",{key:"0",style:{opacity:0}},"0"),p.createElement("span",{key:"num"},a)]:a})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const n=this.state.schedule,o=typeof n.period.months=="string"?JSON.parse(n.period.months):[];return[p.createElement("div",{key:"every"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:typeof n.period.months=="number"&&n.period.months===1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months=1,this.onChange(n)}}),label:E.t("sch_periodEveryMonth")})),p.createElement("div",{key:"everyN"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:typeof n.period.months=="number"&&n.period.months>1,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months=2,this.onChange(r)}}),label:E.t("sch_periodEvery")}),typeof n.period.months=="number"&&n.period.months>1&&[p.createElement(Qn,{key:"input",value:n.period.months,style:J.inputEvery,type:"number",inputProps:{min:2},onChange:r=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=parseInt(r.target.value,10),a.period.months<1&&(a.period.months=1),this.onChange(a)}}),p.createElement("span",{key:"text"},E.t("sch_periodMonth"))]),p.createElement("div",{key:"specific",style:{verticalAlign:"top"}},p.createElement(Oe,{style:{verticalAlign:"top"},control:p.createElement(It,{style:J.inputRadio,checked:typeof n.period.months=="string",onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(r)}}),label:E.t("sch_periodSpecificMonths")}),typeof n.period.months=="string"&&p.createElement($v,{row:!0,style:J.inputGroup},p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:o.length===12,onChange:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let s=1;s<=12;s++)a.push(s);r.period.months=JSON.stringify(a),this.onChange(r)}}),label:E.t("sch_all")}),p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:!o.length,onChange:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.months="[]",this.onChange(r)}}),label:E.t("sch_no_one")}),o.length!==12&&!!o.length&&p.createElement(Oe,{style:J.inputDateDay,control:p.createElement(Tt,{style:J.inputDateDayCheck,checked:!1,onChange:()=>{const r=JSON.parse(JSON.stringify(this.state.schedule)),a=[],s=JSON.parse(r.period.months);for(let i=1;i<=12;i++)s.includes(i)||a.push(i);a.sort((i,l)=>i-l),r.period.months=JSON.stringify(a),this.onChange(r)}}),label:E.t("sch_invert")}),p.createElement("div",null),Gh.map((r,a)=>p.createElement(Oe,{key:`month_${a}`,style:J.inputGroupElement,control:p.createElement(Tt,{style:J.inputSmallCheck,checked:typeof n.period.months=="string"?JSON.parse(n.period.months).includes(a+1):n.period.months===a,onChange:s=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.months)}catch{l=[]}s.target.checked&&!l.includes(a+1)?l.push(a+1):!s.target.checked&&l.includes(a+1)&&l.splice(l.indexOf(a+1),1),l.sort((d,u)=>d-u),i.period.months=JSON.stringify(l),this.onChange(i)}}),label:E.t(r)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const n=this.state.schedule;return[p.createElement("div",{key:"year"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.years===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=1,this.onChange(o)}}),label:E.t("sch_periodEveryYear")})),p.createElement("div",{key:"every"},p.createElement(Oe,{control:p.createElement(It,{style:J.inputRadio,checked:n.period.years>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=2,this.onChange(o)}}),label:E.t("sch_periodEvery")}),n.period.years>1&&[p.createElement(Qn,{key:"input",value:this.state.schedule.period.years,style:J.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const r=JSON.parse(JSON.stringify(this.state.schedule));r.period.years=parseInt(o.target.value,10),r.period.years<1&&(r.period.years=1),this.onChange(r)}}),p.createElement("span",{key:"text"},E.t("sch_periodYear"))])]}static now2string(n){const o=new Date;return o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),n&&(o.setDate(o.getDate()+2),o.setMilliseconds(o.getMilliseconds()-1)),`${xa(o.getDate())}.${xa(o.getMonth()+1)}.${xa(o.getFullYear())}`}static string2date(n){let o=n.split(".");return o.length===1?(o=n.split("-"),new Date(parseInt(o[0],10),parseInt(o[1],10)-1,parseInt(o[2],10))):new Date(parseInt(o[2],10),parseInt(o[1],10)-1,parseInt(o[0],10))}getValidSettings(){const n=this.state.schedule;return p.createElement("div",{style:J.rowDiv},p.createElement("div",{style:{...J.modeDiv,verticalAlign:"middle"}},p.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},E.t("sch_valid")),p.createElement("span",null,E.t("sch_validFrom"))),p.createElement("div",{style:J.settingsDiv},p.createElement(st,{variant:"standard",style:{...J.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:oy(n.valid.from),type:"date",onChange:o=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(r=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),s=An.string2date(r);s.toString()!=="Invalid Date"&&(a.valid.from=`${xa(s.getDate())}.${xa(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(a))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),p.createElement(Oe,{control:p.createElement(Tt,{style:J.inputRadio,checked:!!n.valid.to,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.valid.to=o.valid.to?"":An.now2string(!0),this.onChange(o)}}),label:E.t("sch_validTo")}),!!n.valid.to&&p.createElement(st,{variant:"standard",inputRef:this.refTo,style:{...J.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:oy(n.valid.to),onChange:o=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(r=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),s=An.string2date(r);s.toString()!=="Invalid Date"&&(a.valid.to=`${xa(s.getDate())}.${xa(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(a))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return p.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},p.createElement("div",null,this.state.desc),p.createElement("div",{style:J.scrollWindow},p.createElement("h5",null,E.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),An.getDivider(),p.createElement("h5",null,E.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&An.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}class vd extends C.Component{constructor(n){super(n);F(this,"dialogName");F(this,"filters");F(this,"filterFunc");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectID.${this.dialogName}`;const o=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(o)}catch{this.filters={}}n.filters&&(this.filters={...this.filters,...n.filters||{}});let r=this.props.selected||[];if(Array.isArray(r)||(r=[r]),r=r.filter(a=>a),n.filterFunc)if(typeof n.filterFunc=="string")try{this.filterFunc=new Function("obj",n.filterFunc)}catch{console.error(`Cannot parse filter function: "obj => ${n.filterFunc}"`),this.filterFunc=void 0}else this.filterFunc=n.filterFunc;this.state={selected:r,name:""}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect?this.state.selected:this.state.selected[0]||"",this.state.name),this.props.onClose()}render(){let n;return this.state.name||this.state.selected.length?this.state.selected.length===1?n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},(this.state.name||this.state.selected[0])+(this.state.name?` [${this.state.selected[0]}]`:""))]:n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},E.t("%s items",this.state.selected.length.toString()))]:n=this.props.title||E.t("ra_Please select object ID..."),p.createElement(yt,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{height:"95%",p:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)"}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectid_title"},p.createElement(bt,{id:"ar_dialog_selectid_title",style:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}},n),p.createElement(jt,{style:{height:"100%",overflow:"hidden",padding:"8px 4px"}},p.createElement(wit,{foldersFirst:this.props.foldersFirst,imagePrefix:this.props.imagePrefix||this.props.prefix,dateFormat:this.props.dateFormat,defaultFilters:this.filters,dialogName:this.dialogName,isFloatComma:this.props.isFloatComma,showExpertButton:this.props.showExpertButton!==void 0?this.props.showExpertButton:!0,expertMode:this.props.expertMode,columns:this.props.columns||["name","type","role","room","func","val"],types:this.props.types?Array.isArray(this.props.types)?this.props.types:[this.props.types]:["state"],root:this.props.root,t:E.t,lang:this.props.lang||E.getLanguage(),socket:this.props.socket,selected:this.state.selected,multiSelect:this.props.multiSelect,notEditable:this.props.notEditable===void 0?!0:this.props.notEditable,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,customFilter:this.props.customFilter,onFilterChanged:o=>{this.filters=o,(window._localStorage||window.localStorage).setItem(this.dialogName,JSON.stringify(o))},onSelect:(o,r,a)=>{let s;Array.isArray(o)?s=o:s=[o],JSON.stringify(s)!==JSON.stringify(this.state.selected)?this.setState({selected:s,name:r},()=>a&&this.handleOk()):a&&this.handleOk()},filterFunc:this.filterFunc,title:"",classes:{}})),p.createElement(Nt,null,p.createElement(he,{id:`ar_dialog_selectid_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),startIcon:p.createElement(qn,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||E.t("ra_Ok")),p.createElement(he,{id:`ar_dialog_selectid_cancel_${this.props.dialogName||""}`,color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}/*! * Cropper.js v1.6.2 * https://fengyuanchen.github.io/cropperjs * @@ -620,20 +620,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * Released under the MIT license * * Date: 2024-04-21T07:43:05.335Z - */function CE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function eM(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n
',Iit=Number.isNaN||sa.isNaN;function nt(e){return typeof e=="number"&&!Iit(e)}var IE=function(t){return t>0&&t<1/0};function oy(e){return typeof e>"u"}function Fi(e){return m0(e)==="object"&&e!==null}var Lit=Object.prototype.hasOwnProperty;function ac(e){if(!Fi(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&Lit.call(n,"isPrototypeOf")}catch{return!1}}function co(e){return typeof e=="function"}var Fit=Array.prototype.slice;function dM(e){return Array.from?Array.from(e):Fit.call(e)}function gn(e,t){return e&&co(t)&&(Array.isArray(e)||nt(e.length)?dM(e).forEach(function(n,o){t.call(e,n,o,e)}):Fi(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)})),e}var Jt=Object.assign||function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r0&&o.forEach(function(a){Fi(a)&&Object.keys(a).forEach(function(s){t[s]=a[s]})}),t},Pit=/\.\d*(?:0|9){12}\d*$/;function bc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Pit.test(e)?Math.round(e*t)/t:e}var Bit=/^width|height|left|top|marginLeft|marginTop$/;function xs(e,t){var n=e.style;gn(t,function(o,r){Bit.test(r)&&nt(o)&&(o="".concat(o,"px")),n[r]=o})}function Hit(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function $n(e,t){if(t){if(nt(e.length)){gn(e,function(o){$n(o,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function oa(e,t){if(t){if(nt(e.length)){gn(e,function(n){oa(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function sc(e,t,n){if(t){if(nt(e.length)){gn(e,function(o){sc(o,t,n)});return}n?$n(e,t):oa(e,t)}}var Uit=/([a-z\d])([A-Z])/g;function yS(e){return e.replace(Uit,"$1-$2").toLowerCase()}function C0(e,t){return Fi(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(yS(t)))}function mp(e,t,n){Fi(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(yS(t)),n)}function Wit(e,t){if(Fi(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch{e.dataset[t]=void 0}else e.removeAttribute("data-".concat(yS(t)))}var uM=/\s\s*/,pM=function(){var e=!1;if(T_){var t=!1,n=function(){},o=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(a){t=a}});sa.addEventListener("test",n,o),sa.removeEventListener("test",n,o)}return e}();function _r(e,t,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(uM).forEach(function(a){if(!pM){var s=e.listeners;s&&s[a]&&s[a][n]&&(r=s[a][n],delete s[a][n],Object.keys(s[a]).length===0&&delete s[a],Object.keys(s).length===0&&delete e.listeners)}e.removeEventListener(a,r,o)})}function Go(e,t,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(uM).forEach(function(a){if(o.once&&!pM){var s=e.listeners,i=s===void 0?{}:s;r=function(){delete i[a][n],e.removeEventListener(a,r,o);for(var d=arguments.length,u=new Array(d),c=0;cMath.abs(n)&&(n=h)})}),n}function Xh(e,t){var n=e.pageX,o=e.pageY,r={endX:n,endY:o};return t?r:eM({startX:n,startY:o},r)}function qit(e){var t=0,n=0,o=0;return gn(e,function(r){var a=r.startX,s=r.startY;t+=a,n+=s,o+=1}),t/=o,n/=o,{pageX:t,pageY:n}}function Cs(e){var t=e.aspectRatio,n=e.height,o=e.width,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=IE(o),s=IE(n);if(a&&s){var i=n*t;r==="contain"&&i>o||r==="cover"&&i90?{width:l,height:i}:{width:i,height:l}}function Jit(e,t,n,o){var r=t.aspectRatio,a=t.naturalWidth,s=t.naturalHeight,i=t.rotate,l=i===void 0?0:i,d=t.scaleX,u=d===void 0?1:d,c=t.scaleY,h=c===void 0?1:c,f=n.aspectRatio,g=n.naturalWidth,v=n.naturalHeight,S=o.fillColor,_=S===void 0?"transparent":S,b=o.imageSmoothingEnabled,y=b===void 0?!0:b,w=o.imageSmoothingQuality,$=w===void 0?"low":w,k=o.maxWidth,T=k===void 0?1/0:k,O=o.maxHeight,D=O===void 0?1/0:O,x=o.minWidth,A=x===void 0?0:x,R=o.minHeight,I=R===void 0?0:R,j=document.createElement("canvas"),N=j.getContext("2d"),M=Cs({aspectRatio:f,width:T,height:D}),P=Cs({aspectRatio:f,width:A,height:I},"cover"),H=Math.min(M.width,Math.max(P.width,g)),B=Math.min(M.height,Math.max(P.height,v)),Z=Cs({aspectRatio:r,width:T,height:D}),oe=Cs({aspectRatio:r,width:A,height:I},"cover"),ve=Math.min(Z.width,Math.max(oe.width,a)),fe=Math.min(Z.height,Math.max(oe.height,s)),le=[-ve/2,-fe/2,ve,fe];return j.width=bc(H),j.height=bc(B),N.fillStyle=_,N.fillRect(0,0,H,B),N.save(),N.translate(H/2,B/2),N.rotate(l*Math.PI/180),N.scale(u,h),N.imageSmoothingEnabled=y,N.imageSmoothingQuality=$,N.drawImage.apply(N,[e].concat(nM(le.map(function(Se){return Math.floor(bc(Se))})))),N.restore(),j}var fM=String.fromCharCode;function Yit(e,t,n){var o="";n+=t;for(var r=t;r0;)n.push(fM.apply(null,dM(r.subarray(0,o)))),r=r.subarray(o);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}function elt(e){var t=new DataView(e),n;try{var o,r,a;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var s=t.byteLength,i=2;i+1=8&&(a=d+c)}}}if(a){var h=t.getUint16(a,o),f,g;for(g=0;g=0?a:lM),height:Math.max(o.offsetHeight,s>=0?s:cM)};this.containerData=i,xs(r,{width:i.width,height:i.height}),$n(t,ho),oa(r,ho)},initCanvas:function(){var t=this.containerData,n=this.imageData,o=this.options.viewMode,r=Math.abs(n.rotate)%180===90,a=r?n.naturalHeight:n.naturalWidth,s=r?n.naturalWidth:n.naturalHeight,i=a/s,l=t.width,d=t.height;t.height*i>t.width?o===3?l=t.height*i:d=t.width/i:o===3?d=t.width/i:l=t.height*i;var u={aspectRatio:i,naturalWidth:a,naturalHeight:s,width:l,height:d};this.canvasData=u,this.limited=o===1||o===2,this.limitCanvas(!0,!0),u.width=Math.min(Math.max(u.width,u.minWidth),u.maxWidth),u.height=Math.min(Math.max(u.height,u.minHeight),u.maxHeight),u.left=(t.width-u.width)/2,u.top=(t.height-u.height)/2,u.oldLeft=u.left,u.oldTop=u.top,this.initialCanvasData=Jt({},u)},limitCanvas:function(t,n){var o=this.options,r=this.containerData,a=this.canvasData,s=this.cropBoxData,i=o.viewMode,l=a.aspectRatio,d=this.cropped&&s;if(t){var u=Number(o.minCanvasWidth)||0,c=Number(o.minCanvasHeight)||0;i>1?(u=Math.max(u,r.width),c=Math.max(c,r.height),i===3&&(c*l>u?u=c*l:c=u/l)):i>0&&(u?u=Math.max(u,d?s.width:0):c?c=Math.max(c,d?s.height:0):d&&(u=s.width,c=s.height,c*l>u?u=c*l:c=u/l));var h=Cs({aspectRatio:l,width:u,height:c});u=h.width,c=h.height,a.minWidth=u,a.minHeight=c,a.maxWidth=1/0,a.maxHeight=1/0}if(n)if(i>(d?0:1)){var f=r.width-a.width,g=r.height-a.height;a.minLeft=Math.min(0,f),a.minTop=Math.min(0,g),a.maxLeft=Math.max(0,f),a.maxTop=Math.max(0,g),d&&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,i===2&&(a.width>=r.width&&(a.minLeft=Math.min(0,f),a.maxLeft=Math.max(0,f)),a.height>=r.height&&(a.minTop=Math.min(0,g),a.maxTop=Math.max(0,g))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=r.width,a.maxTop=r.height},renderCanvas:function(t,n){var o=this.canvasData,r=this.imageData;if(n){var a=Xit({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),s=a.width,i=a.height,l=o.width*(s/o.naturalWidth),d=o.height*(i/o.naturalHeight);o.left-=(l-o.width)/2,o.top-=(d-o.height)/2,o.width=l,o.height=d,o.aspectRatio=s/i,o.naturalWidth=s,o.naturalHeight=i,this.limitCanvas(!0,!1)}(o.width>o.maxWidth||o.widtho.maxHeight||o.heightn.width?a.height=a.width/o:a.width=a.height*o),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*r),a.height=Math.max(a.minHeight,a.height*r),a.left=n.left+(n.width-a.width)/2,a.top=n.top+(n.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Jt({},a)},limitCropBox:function(t,n){var o=this.options,r=this.containerData,a=this.canvasData,s=this.cropBoxData,i=this.limited,l=o.aspectRatio;if(t){var d=Number(o.minCropBoxWidth)||0,u=Number(o.minCropBoxHeight)||0,c=i?Math.min(r.width,a.width,a.width+a.left,r.width-a.left):r.width,h=i?Math.min(r.height,a.height,a.height+a.top,r.height-a.top):r.height;d=Math.min(d,r.width),u=Math.min(u,r.height),l&&(d&&u?u*l>d?u=d/l:d=u*l:d?u=d/l:u&&(d=u*l),h*l>c?h=c/l:c=h*l),s.minWidth=Math.min(d,c),s.minHeight=Math.min(u,h),s.maxWidth=c,s.maxHeight=h}n&&(i?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(r.width,a.left+a.width)-s.width,s.maxTop=Math.min(r.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=r.width-s.width,s.maxTop=r.height-s.height))},renderCropBox:function(){var t=this.options,n=this.containerData,o=this.cropBoxData;(o.width>o.maxWidth||o.widtho.maxHeight||o.height=n.width&&o.height>=n.height?rM:_S),xs(this.cropBox,Jt({width:o.width,height:o.height},ju({translateX:o.left,translateY:o.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),wc(this.element,y0,this.getData())}},olt={initPreview:function(){var t=this.element,n=this.crossOrigin,o=this.options.preview,r=n?this.crossOriginUrl:this.url,a=t.alt||"The image to preview",s=document.createElement("img");if(n&&(s.crossOrigin=n),s.src=r,s.alt=a,this.viewBox.appendChild(s),this.viewBoxImage=s,!!o){var i=o;typeof o=="string"?i=t.ownerDocument.querySelectorAll(o):o.querySelector&&(i=[o]),this.previews=i,gn(i,function(l){var d=document.createElement("img");mp(l,qh,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),n&&(d.crossOrigin=n),d.src=r,d.alt=a,d.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;"',l.innerHTML="",l.appendChild(d)})}},resetPreview:function(){gn(this.previews,function(t){var n=C0(t,qh);xs(t,{width:n.width,height:n.height}),t.innerHTML=n.html,Wit(t,qh)})},preview:function(){var t=this.imageData,n=this.canvasData,o=this.cropBoxData,r=o.width,a=o.height,s=t.width,i=t.height,l=o.left-n.left-t.left,d=o.top-n.top-t.top;!this.cropped||this.disabled||(xs(this.viewBoxImage,Jt({width:s,height:i},ju(Jt({translateX:-l,translateY:-d},t)))),gn(this.previews,function(u){var c=C0(u,qh),h=c.width,f=c.height,g=h,v=f,S=1;r&&(S=h/r,v=a*S),a&&v>f&&(S=f/a,g=r*S,v=f),xs(u,{width:g,height:v}),xs(u.getElementsByTagName("img")[0],Jt({width:s*S,height:i*S},ju(Jt({translateX:-l*S,translateY:-d*S},t))))}))}},rlt={bind:function(){var t=this.element,n=this.options,o=this.cropper;co(n.cropstart)&&Go(t,S0,n.cropstart),co(n.cropmove)&&Go(t,w0,n.cropmove),co(n.cropend)&&Go(t,b0,n.cropend),co(n.crop)&&Go(t,y0,n.crop),co(n.zoom)&&Go(t,x0,n.zoom),Go(o,OE,this.onCropStart=this.cropStart.bind(this)),n.zoomable&&n.zoomOnWheel&&Go(o,jE,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&Go(o,TE,this.onDblclick=this.dblclick.bind(this)),Go(t.ownerDocument,DE,this.onCropMove=this.cropMove.bind(this)),Go(t.ownerDocument,AE,this.onCropEnd=this.cropEnd.bind(this)),n.responsive&&Go(window,NE,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,n=this.options,o=this.cropper;co(n.cropstart)&&_r(t,S0,n.cropstart),co(n.cropmove)&&_r(t,w0,n.cropmove),co(n.cropend)&&_r(t,b0,n.cropend),co(n.crop)&&_r(t,y0,n.crop),co(n.zoom)&&_r(t,x0,n.zoom),_r(o,OE,this.onCropStart),n.zoomable&&n.zoomOnWheel&&_r(o,jE,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&_r(o,TE,this.onDblclick),_r(t.ownerDocument,DE,this.onCropMove),_r(t.ownerDocument,AE,this.onCropEnd),n.responsive&&_r(window,NE,this.onResize)}},alt={resize:function(){if(!this.disabled){var t=this.options,n=this.container,o=this.containerData,r=n.offsetWidth/o.width,a=n.offsetHeight/o.height,s=Math.abs(r-1)>Math.abs(a-1)?r:a;if(s!==1){var i,l;t.restore&&(i=this.getCanvasData(),l=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(gn(i,function(d,u){i[u]=d*s})),this.setCropBoxData(gn(l,function(d,u){l[u]=d*s})))}}},dblclick:function(){this.disabled||this.options.dragMode===iM||this.setDragMode(Hit(this.dragBox,_0)?sM:vS)},wheel:function(t){var n=this,o=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*o,t)))},cropStart:function(t){var n=t.buttons,o=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(nt(n)&&n!==1||nt(o)&&o!==0||t.ctrlKey))){var r=this.options,a=this.pointers,s;t.changedTouches?gn(t.changedTouches,function(i){a[i.identifier]=Xh(i)}):a[t.pointerId||0]=Xh(t),Object.keys(a).length>1&&r.zoomable&&r.zoomOnTouch?s=aM:s=C0(t.target,fp),Mit.test(s)&&wc(this.element,S0,{originalEvent:t,action:s})!==!1&&(t.preventDefault(),this.action=s,this.cropping=!1,s===oM&&(this.cropping=!0,$n(this.dragBox,Hm)))}},cropMove:function(t){var n=this.action;if(!(this.disabled||!n)){var o=this.pointers;t.preventDefault(),wc(this.element,w0,{originalEvent:t,action:n})!==!1&&(t.changedTouches?gn(t.changedTouches,function(r){Jt(o[r.identifier]||{},Xh(r,!0))}):Jt(o[t.pointerId||0]||{},Xh(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var n=this.action,o=this.pointers;t.changedTouches?gn(t.changedTouches,function(r){delete o[r.identifier]}):delete o[t.pointerId||0],n&&(t.preventDefault(),Object.keys(o).length||(this.action=""),this.cropping&&(this.cropping=!1,sc(this.dragBox,Hm,this.cropped&&this.options.modal)),wc(this.element,b0,{originalEvent:t,action:n}))}}},slt={change:function(t){var n=this.options,o=this.canvasData,r=this.containerData,a=this.cropBoxData,s=this.pointers,i=this.action,l=n.aspectRatio,d=a.left,u=a.top,c=a.width,h=a.height,f=d+c,g=u+h,v=0,S=0,_=r.width,b=r.height,y=!0,w;!l&&t.shiftKey&&(l=c&&h?c/h:1),this.limited&&(v=a.minLeft,S=a.minTop,_=v+Math.min(r.width,o.width,o.left+o.width),b=S+Math.min(r.height,o.height,o.top+o.height));var $=s[Object.keys(s)[0]],k={x:$.endX-$.startX,y:$.endY-$.startY},T=function(D){switch(D){case ti:f+k.x>_&&(k.x=_-f);break;case ni:d+k.xb&&(k.y=b-g);break}};switch(i){case _S:d+=k.x,u+=k.y;break;case ti:if(k.x>=0&&(f>=_||l&&(u<=S||g>=b))){y=!1;break}T(ti),c+=k.x,c<0&&(i=ni,c=-c,d-=c),l&&(h=c/l,u+=(a.height-h)/2);break;case ns:if(k.y<=0&&(u<=S||l&&(d<=v||f>=_))){y=!1;break}T(ns),h-=k.y,u+=k.y,h<0&&(i=bl,h=-h,u-=h),l&&(c=h*l,d+=(a.width-c)/2);break;case ni:if(k.x<=0&&(d<=v||l&&(u<=S||g>=b))){y=!1;break}T(ni),c-=k.x,d+=k.x,c<0&&(i=ti,c=-c,d-=c),l&&(h=c/l,u+=(a.height-h)/2);break;case bl:if(k.y>=0&&(g>=b||l&&(d<=v||f>=_))){y=!1;break}T(bl),h+=k.y,h<0&&(i=ns,h=-h,u-=h),l&&(c=h*l,d+=(a.width-c)/2);break;case Bd:if(l){if(k.y<=0&&(u<=S||f>=_)){y=!1;break}T(ns),h-=k.y,u+=k.y,c=h*l}else T(ns),T(ti),k.x>=0?f<_?c+=k.x:k.y<=0&&u<=S&&(y=!1):c+=k.x,k.y<=0?u>S&&(h-=k.y,u+=k.y):(h-=k.y,u+=k.y);c<0&&h<0?(i=Wd,h=-h,c=-c,u-=h,d-=c):c<0?(i=Hd,c=-c,d-=c):h<0&&(i=Ud,h=-h,u-=h);break;case Hd:if(l){if(k.y<=0&&(u<=S||d<=v)){y=!1;break}T(ns),h-=k.y,u+=k.y,c=h*l,d+=a.width-c}else T(ns),T(ni),k.x<=0?d>v?(c-=k.x,d+=k.x):k.y<=0&&u<=S&&(y=!1):(c-=k.x,d+=k.x),k.y<=0?u>S&&(h-=k.y,u+=k.y):(h-=k.y,u+=k.y);c<0&&h<0?(i=Ud,h=-h,c=-c,u-=h,d-=c):c<0?(i=Bd,c=-c,d-=c):h<0&&(i=Wd,h=-h,u-=h);break;case Wd:if(l){if(k.x<=0&&(d<=v||g>=b)){y=!1;break}T(ni),c-=k.x,d+=k.x,h=c/l}else T(bl),T(ni),k.x<=0?d>v?(c-=k.x,d+=k.x):k.y>=0&&g>=b&&(y=!1):(c-=k.x,d+=k.x),k.y>=0?g=0&&(f>=_||g>=b)){y=!1;break}T(ti),c+=k.x,h=c/l}else T(bl),T(ti),k.x>=0?f<_?c+=k.x:k.y>=0&&g>=b&&(y=!1):c+=k.x,k.y>=0?g0?i=k.y>0?Ud:Bd:k.x<0&&(d-=c,i=k.y>0?Wd:Hd),k.y<0&&(u-=h),this.cropped||(oa(this.cropBox,ho),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}y&&(a.width=c,a.height=h,a.left=d,a.top=u,this.action=i,this.renderCropBox()),gn(s,function(O){O.startX=O.endX,O.startY=O.endY})}},ilt={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&$n(this.dragBox,Hm),oa(this.cropBox,ho),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Jt({},this.initialImageData),this.canvasData=Jt({},this.initialCanvasData),this.cropBoxData=Jt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Jt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),oa(this.dragBox,Hm),$n(this.cropBox,ho)),this},replace:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),n?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,gn(this.previews,function(o){o.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,oa(this.cropper,kE)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,$n(this.cropper,kE)),this},destroy:function(){var t=this.element;return t[qt]?(t[qt]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.canvasData,r=o.left,a=o.top;return this.moveTo(oy(t)?t:r+Number(t),oy(n)?n:a+Number(n))},moveTo:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.canvasData,r=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.movable&&(nt(t)&&(o.left=t,r=!0),nt(n)&&(o.top=n,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,n){var o=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(o.width*t/o.naturalWidth,null,n)},zoomTo:function(t,n,o){var r=this.options,a=this.canvasData,s=a.width,i=a.height,l=a.naturalWidth,d=a.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&r.zoomable){var u=l*t,c=d*t;if(wc(this.element,x0,{ratio:t,oldRatio:s/l,originalEvent:o})===!1)return this;if(o){var h=this.pointers,f=hM(this.cropper),g=h&&Object.keys(h).length?qit(h):{pageX:o.pageX,pageY:o.pageY};a.left-=(u-s)*((g.pageX-f.left-a.left)/s),a.top-=(c-i)*((g.pageY-f.top-a.top)/i)}else ac(n)&&nt(n.x)&&nt(n.y)?(a.left-=(u-s)*((n.x-a.left)/s),a.top-=(c-i)*((n.y-a.top)/i)):(a.left-=(u-s)/2,a.top-=(c-i)/2);a.width=u,a.height=c,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),nt(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var n=this.imageData.scaleY;return this.scale(t,nt(n)?n:1)},scaleY:function(t){var n=this.imageData.scaleX;return this.scale(nt(n)?n:1,t)},scale:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.imageData,r=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.scalable&&(nt(t)&&(o.scaleX=t,r=!0),nt(n)&&(o.scaleY=n,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.options,o=this.imageData,r=this.canvasData,a=this.cropBoxData,s;if(this.ready&&this.cropped){s={x:a.left-r.left,y:a.top-r.top,width:a.width,height:a.height};var i=o.width/o.naturalWidth;if(gn(s,function(u,c){s[c]=u/i}),t){var l=Math.round(s.y+s.height),d=Math.round(s.x+s.width);s.x=Math.round(s.x),s.y=Math.round(s.y),s.width=d-s.x,s.height=l-s.y}}else s={x:0,y:0,width:0,height:0};return n.rotatable&&(s.rotate=o.rotate||0),n.scalable&&(s.scaleX=o.scaleX||1,s.scaleY=o.scaleY||1),s},setData:function(t){var n=this.options,o=this.imageData,r=this.canvasData,a={};if(this.ready&&!this.disabled&&ac(t)){var s=!1;n.rotatable&&nt(t.rotate)&&t.rotate!==o.rotate&&(o.rotate=t.rotate,s=!0),n.scalable&&(nt(t.scaleX)&&t.scaleX!==o.scaleX&&(o.scaleX=t.scaleX,s=!0),nt(t.scaleY)&&t.scaleY!==o.scaleY&&(o.scaleY=t.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var i=o.width/o.naturalWidth;nt(t.x)&&(a.left=t.x*i+r.left),nt(t.y)&&(a.top=t.y*i+r.top),nt(t.width)&&(a.width=t.width*i),nt(t.height)&&(a.height=t.height*i),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Jt({},this.containerData):{}},getImageData:function(){return this.sized?Jt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&gn(["left","top","width","height","naturalWidth","naturalHeight"],function(o){n[o]=t[o]}),n},setCanvasData:function(t){var n=this.canvasData,o=n.aspectRatio;return this.ready&&!this.disabled&&ac(t)&&(nt(t.left)&&(n.left=t.left),nt(t.top)&&(n.top=t.top),nt(t.width)?(n.width=t.width,n.height=t.width/o):nt(t.height)&&(n.height=t.height,n.width=t.height*o),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,n;return this.ready&&this.cropped&&(n={left:t.left,top:t.top,width:t.width,height:t.height}),n||{}},setCropBoxData:function(t){var n=this.cropBoxData,o=this.options.aspectRatio,r,a;return this.ready&&this.cropped&&!this.disabled&&ac(t)&&(nt(t.left)&&(n.left=t.left),nt(t.top)&&(n.top=t.top),nt(t.width)&&t.width!==n.width&&(r=!0,n.width=t.width),nt(t.height)&&t.height!==n.height&&(a=!0,n.height=t.height),o&&(r?n.height=n.width/o:a&&(n.width=n.height*o)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var n=this.canvasData,o=Jit(this.image,this.imageData,n,t);if(!this.cropped)return o;var r=this.getData(t.rounded),a=r.x,s=r.y,i=r.width,l=r.height,d=o.width/Math.floor(n.naturalWidth);d!==1&&(a*=d,s*=d,i*=d,l*=d);var u=i/l,c=Cs({aspectRatio:u,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),h=Cs({aspectRatio:u,width:t.minWidth||0,height:t.minHeight||0},"cover"),f=Cs({aspectRatio:u,width:t.width||(d!==1?o.width:i),height:t.height||(d!==1?o.height:l)}),g=f.width,v=f.height;g=Math.min(c.width,Math.max(h.width,g)),v=Math.min(c.height,Math.max(h.height,v));var S=document.createElement("canvas"),_=S.getContext("2d");S.width=bc(g),S.height=bc(v),_.fillStyle=t.fillColor||"transparent",_.fillRect(0,0,g,v);var b=t.imageSmoothingEnabled,y=b===void 0?!0:b,w=t.imageSmoothingQuality;_.imageSmoothingEnabled=y,w&&(_.imageSmoothingQuality=w);var $=o.width,k=o.height,T=a,O=s,D,x,A,R,I,j;T<=-i||T>$?(T=0,D=0,A=0,I=0):T<=0?(A=-T,T=0,D=Math.min($,i+T),I=D):T<=$&&(A=0,D=Math.min(i,$-T),I=D),D<=0||O<=-l||O>k?(O=0,x=0,R=0,j=0):O<=0?(R=-O,O=0,x=Math.min(k,l+O),j=x):O<=k&&(R=0,x=Math.min(l,k-O),j=x);var N=[T,O,D,x];if(I>0&&j>0){var M=g/i;N.push(A*M,R*M,I*M,j*M)}return _.drawImage.apply(_,[o].concat(nM(N.map(function(P){return Math.floor(bc(P))})))),S},setAspectRatio:function(t){var n=this.options;return!this.disabled&&!oy(t)&&(n.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var n=this.options,o=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var a=t===vS,s=n.movable&&t===sM;t=a||s?t:iM,n.dragMode=t,mp(o,fp,t),sc(o,_0,a),sc(o,v0,s),n.cropBoxMovable||(mp(r,fp,t),sc(r,_0,a),sc(r,v0,s))}return this}},llt=sa.Cropper,mM=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(wit(this,e),!t||!zit.test(t.tagName))throw new Error("The first argument is required and must be an or element.");this.element=t,this.options=Jt({},RE,ac(n)&&n),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 Sit(e,[{key:"init",value:function(){var n=this.element,o=n.tagName.toLowerCase(),r;if(!n[qt]){if(n[qt]=this,o==="img"){if(this.isImg=!0,r=n.getAttribute("src")||"",this.originalUrl=r,!r)return;r=n.src}else o==="canvas"&&window.HTMLCanvasElement&&(r=n.toDataURL());this.load(r)}}},{key:"load",value:function(n){var o=this;if(n){this.url=n,this.imageData={};var r=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Nit.test(n)){jit.test(n)?this.read(Zit(n)):this.clone();return}var s=new XMLHttpRequest,i=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=i,s.onerror=i,s.ontimeout=i,s.onprogress=function(){s.getResponseHeader("content-type")!==zE&&s.abort()},s.onload=function(){o.read(s.response)},s.onloadend=function(){o.reloading=!1,o.xhr=null},a.checkCrossOrigin&&LE(n)&&r.crossOrigin&&(n=FE(n)),s.open("GET",n,!0),s.responseType="arraybuffer",s.withCredentials=r.crossOrigin==="use-credentials",s.send()}}},{key:"read",value:function(n){var o=this.options,r=this.imageData,a=elt(n),s=0,i=1,l=1;if(a>1){this.url=Qit(n,zE);var d=tlt(a);s=d.rotate,i=d.scaleX,l=d.scaleY}o.rotatable&&(r.rotate=s),o.scalable&&(r.scaleX=i,r.scaleY=l),this.clone()}},{key:"clone",value:function(){var n=this.element,o=this.url,r=n.crossOrigin,a=o;this.options.checkCrossOrigin&&LE(o)&&(r||(r="anonymous"),a=FE(o)),this.crossOrigin=r,this.crossOriginUrl=a;var s=document.createElement("img");r&&(s.crossOrigin=r),s.src=a||o,s.alt=n.alt||"The image to crop",this.image=s,s.onload=this.start.bind(this),s.onerror=this.stop.bind(this),$n(s,EE),n.parentNode.insertBefore(s,n.nextSibling)}},{key:"start",value:function(){var n=this,o=this.image;o.onload=null,o.onerror=null,this.sizing=!0;var r=sa.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(sa.navigator.userAgent),a=function(d,u){Jt(n.imageData,{naturalWidth:d,naturalHeight:u,aspectRatio:d/u}),n.initialImageData=Jt({},n.imageData),n.sizing=!1,n.sized=!0,n.build()};if(o.naturalWidth&&!r){a(o.naturalWidth,o.naturalHeight);return}var s=document.createElement("img"),i=document.body||document.documentElement;this.sizingImage=s,s.onload=function(){a(s.width,s.height),r||i.removeChild(s)},s.src=o.src,r||(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;",i.appendChild(s))}},{key:"stop",value:function(){var n=this.image;n.onload=null,n.onerror=null,n.parentNode.removeChild(n),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var n=this.element,o=this.options,r=this.image,a=n.parentNode,s=document.createElement("div");s.innerHTML=Rit;var i=s.querySelector(".".concat(qt,"-container")),l=i.querySelector(".".concat(qt,"-canvas")),d=i.querySelector(".".concat(qt,"-drag-box")),u=i.querySelector(".".concat(qt,"-crop-box")),c=u.querySelector(".".concat(qt,"-face"));this.container=a,this.cropper=i,this.canvas=l,this.dragBox=d,this.cropBox=u,this.viewBox=i.querySelector(".".concat(qt,"-view-box")),this.face=c,l.appendChild(r),$n(n,ho),a.insertBefore(i,n.nextSibling),oa(r,EE),this.initPreview(),this.bind(),o.initialAspectRatio=Math.max(0,o.initialAspectRatio)||NaN,o.aspectRatio=Math.max(0,o.aspectRatio)||NaN,o.viewMode=Math.max(0,Math.min(3,Math.round(o.viewMode)))||0,$n(u,ho),o.guides||$n(u.getElementsByClassName("".concat(qt,"-dashed")),ho),o.center||$n(u.getElementsByClassName("".concat(qt,"-center")),ho),o.background&&$n(i,"".concat(qt,"-bg")),o.highlight||$n(c,Tit),o.cropBoxMovable&&($n(c,v0),mp(c,fp,_S)),o.cropBoxResizable||($n(u.getElementsByClassName("".concat(qt,"-line")),ho),$n(u.getElementsByClassName("".concat(qt,"-point")),ho)),this.render(),this.ready=!0,this.setDragMode(o.dragMode),o.autoCrop&&this.crop(),this.setData(o.data),co(o.ready)&&Go(n,ME,o.ready,{once:!0}),wc(n,ME)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var n=this.cropper.parentNode;n&&n.removeChild(this.cropper),oa(this.element,ho)}}},{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=llt,e}},{key:"setDefaults",value:function(n){Jt(RE,ac(n)&&n)}}])}();Jt(mM.prototype,nlt,olt,rlt,alt,slt,ilt);var pi=function(){return pi=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&O.zoomTo(P)}(T.currentTarget.cropper,y),S&&S(T)}}));_&&_(k)}return function(){var T,O;(O=(T=w.current)===null||T===void 0?void 0:T.cropper)===null||O===void 0||O.destroy()}},[w]);var $=function(k){return clt.reduce(function(T,O){var D=T,x=O;return D[x],ay(D,[typeof x=="symbol"?x:x+""])},k)}(pi(pi({},b),{crossOrigin:l,src:a,alt:v}));return p.createElement("div",{style:s,className:i},p.createElement("img",pi({},$,{style:dlt,ref:w})))});const os={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},ult={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},Bn={seconds:"seconds",minutes:"minutes"},PE=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function Gr(e){return e<10?`0${e}`:`${e}`}const plt={mode:"interval",interval:{period:1,unit:Bn.minutes}};function Of(e){if(e==="*")return[0,1,2,3,4,5,6];const t=e.split(","),n=[];return t.forEach(o=>{const r=o.split("-");if(r.length===2){const a=parseInt(r[0],10),s=parseInt(r[1],10);for(let i=a;i<=s;i++)n.includes(i===7?0:i)||n.push(i===7?0:i)}else{o==="7"&&(o="0");const a=parseInt(o,10);n.includes(a)||n.push(a)}}),n.sort(),n}function gM(e,t){e=e.replace(/['"]/g,"").trim();const n=e.split(" ");let o,r=null;return n.length===6?o={seconds:n[0]||"*",minutes:n[1]||"*",hours:n[2]||"*",date:n[3]||"*",months:n[4]||"*",dow:n[5]||"*"}:o={seconds:null,minutes:n[0]||"*",hours:n[1]||"*",date:n[2]||"*",months:n[3]||"*",dow:n[4]||"*"},o.seconds===null&&o.minutes==="*"&&o.hours==="*"&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)&&(r={mode:"interval",interval:{period:1,unit:Bn.minutes}}),o.seconds==="*"&&o.minutes==="*"&&o.hours==="*"&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"interval",interval:{period:1,unit:Bn.seconds}}:o.seconds===null&&o.minutes.includes("/")&&o.hours==="*"&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"interval",interval:{period:parseInt(o.minutes.split("/")[1],10),unit:Bn.minutes}}:o.seconds!==null&&o.seconds.includes("/")&&o.minutes==="*"&&o.hours==="*"&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"interval",interval:{period:parseInt(o.seconds.split("/")[1],10),unit:Bn.seconds}}:o.seconds!==null&&o.seconds.includes("/")&&o.minutes==="*"&&o.hours.includes("-")&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"intervalBetween",intervalBetween:{period:parseInt(o.seconds.split("/")[1],10),unit:Bn.seconds,timeFrom:parseInt(o.hours.split("-")[0],10),timeTo:parseInt(o.hours.split("-")[1],10),weekdays:Of(o.dow)}}:o.seconds===null&&o.minutes.includes("/")&&o.hours.includes("-")&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"intervalBetween",intervalBetween:{period:parseInt(o.minutes.split("/")[1],10),unit:Bn.minutes,timeFrom:parseInt(o.hours.split("-")[0],10),timeTo:parseInt(o.hours.split("-")[1],10),weekdays:Of(o.dow)}}:o.seconds===null&&parseInt(o.minutes,10).toString()===o.minutes&&parseInt(o.hours,10).toString()===o.hours&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"specific",specific:{time:`${Gr(parseInt(o.hours,10))}:${Gr(parseInt(o.minutes,10))}`,weekdays:Of(o.dow)}}:o.seconds===null&&parseInt(o.minutes,10).toString()===o.minutes&&parseInt(o.hours,10).toString()===o.hours&&parseInt(o.date,10).toString()===o.date&&parseInt(o.months,10).toString()===o.months&&(o.dow==="*"||t)&&(r={mode:"once",once:{time:`${Gr(parseInt(o.hours,10))}:${Gr(parseInt(o.minutes,10))}`,date:`${Gr(parseInt(o.date,10))}.${Gr(parseInt(o.months,10))}`}}),r}class gp extends p.Component{constructor(t){super(t);let n=typeof t.cronExpression=="string"?t.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";n[0]==="{"&&(n="");const o=gM(n||"* * * * *",!0)||plt;this.state={extended:!1,cron:gp.state2cron(o),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Bn.minutes},intervalBetween:{period:1,unit:Bn.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,o),this.state.cron!==t.cronExpression&&setTimeout(()=>t.onChange&&t.onChange(this.state.cron),100)}static periodArray2text(t,n=7){if(n=n||7,t.length===n)return"*";const o=[];let r=null,a=null;if(!t.length)return"_";for(let s=0;s60&&(o.period=60),o.period!==void 0&&o.period<1&&(o.period=1),o.minutes!==void 0&&o.minutes!==null&&o.minutes>60&&(o.minutes=60),o.minutes!==void 0&&o.minutes!==null&&o.minutes<1&&(o.minutes=1),o.hours!==void 0&&o.hours!==null&&o.hours>24&&(o.hours=24),o.hours!==void 0&&o.hours!==null&&o.hours<1&&(o.hours=1),t.extended)n=`${o.minutes!==void 0&&o.minutes!==null&&o.minutes>1?`*/${o.minutes}`:"*"} ${o.hours!==void 0&&o.hours!==null&&o.hours>1?`*/${o.hours}`:"*"} * * *`;else switch(o.unit){case Bn.seconds:n=`${o.period>1?`*/${o.period}`:"*"} * * * * *`;break;case Bn.minutes:n=`${o.period>1?`*/${o.period}`:"*"} * * * *`;break}}else if(t.mode==="intervalBetween"){const o=t.intervalBetween||{period:1,unit:Bn.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let r;switch(o.timeFrom=o.timeFrom||0,o.timeTo=o.timeTo===void 0?24:o.timeTo,o.timeFrom!==0&&o.timeTo===24&&(o.timeTo=23),o.timeFrom===0&&o.timeTo===24?r="*":r=o.timeFrom!==o.timeTo?`${o.timeFrom}-${o.timeTo}`:"*",o.period>60&&(o.period=60),o.period<1&&(o.period=1),o.unit=o.unit||Bn.minutes,o.unit){case Bn.seconds:n=`${o.period>1?`*/${o.period}`:"*"} * ${r} * * ${this.periodArray2text(o.weekdays)}`;break;case Bn.minutes:n=`${o.period>1?`*/${o.period}`:"*"} ${r} * * ${this.periodArray2text(o.weekdays)}`;break}}else if(t.mode==="specific"){const o=t.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},r=(o.time||"00:00").split(":");let a=parseInt(r[1],10)||0;a>59&&(a=59),a<0&&(a=0);let s=parseInt(r[0],10)||0;s>23&&(s=59),s<0&&(s=0),n=`${a} ${s} * * ${this.periodArray2text(o.weekdays||[])}`}else if(t.mode==="once"){const o=t.once||{time:"00:00",date:""};o.date||(o.date=`${new Date().getDate()}.${Gr(new Date().getMonth()+1)}`);const r=(o.time||"00:00").split(":"),a=o.date.split(".");let s=parseInt(r[1],10)||0;s>59&&(s=59),s<0&&(s=0);let i=parseInt(r[0],10)||0;i>23&&(i=59),i<0&&(i=0);let l=parseInt(a[0],10)||1;l>31&&(l=31),l<1&&(i=1);let d=parseInt(a[1],10)||1;d>12&&(d=12),d<1&&(d=1),n=`${s} ${i} ${l} ${d} *`}return n}recalcCron(){this.onChange(gp.state2cron(this.state))}getControlsWeekdaysElements(t){const n=t==="intervalBetween"?this.state.intervalBetween:this.state.specific;return p.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},p.createElement("h5",null,E.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(o=>p.createElement(Oe,{key:PE[o],control:p.createElement(Tt,{checked:n.weekdays.includes(o),onChange:r=>{const a=JSON.parse(JSON.stringify(this.state[t])),s=a.weekdays.indexOf(o);r.target.checked?s===-1&&a.weekdays.push(o):s!==-1&&a.weekdays.splice(s,1),a.weekdays.sort(),t==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:o.toString()}),label:E.t(PE[o])})))}getControlsPeriodElements(t){const n=t==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?p.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},p.createElement("h5",{style:{marginBottom:5}},E.t("sc_period")),p.createElement(st,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:E.t("sc_minutes"),value:n.minutes,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.minutes=parseInt(o.target.value,10),r.minutes<1&&(r.minutes=1),t==="interval"?this.setState({interval:r},()=>this.recalcCron()):this.setState({intervalBetween:r},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),p.createElement(st,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:E.t("sc_hours"),value:n.hours,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.hours=parseInt(o.target.value,10),r.hours<1&&(r.hours=1),t==="interval"?this.setState({interval:r},()=>this.recalcCron()):this.setState({intervalBetween:r},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):p.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},p.createElement("h5",{style:{marginBottom:5}},E.t("sc_period")),p.createElement(st,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:E.t("sc_every"),value:n.period,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.period=parseInt(o.target.value,10),r.period<1&&(r.period=1),t==="interval"?this.setState({interval:r},()=>this.recalcCron()):this.setState({intervalBetween:r},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),p.createElement(_n,{variant:"standard",style:{verticalAlign:"bottom"},value:n.unit,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.unit=o.target.value,t==="interval"?this.setState({interval:r},()=>this.recalcCron()):this.setState({intervalBetween:r},()=>this.recalcCron())}},p.createElement(je,{value:"seconds"},E.t("sc_seconds")),")",p.createElement(je,{value:"minutes"},E.t("sc_minutes")),")"))}getControlsTime(t){const n=t==="once"?this.state.once:this.state.specific;return p.createElement(to,{variant:"standard",sx:{...os.formControl,"&.MuiFormControl-root":os.formControlMarginRight}},p.createElement(st,{variant:"standard",key:"at",label:E.t("sc_time"),value:n.time,type:"time",sx:o=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:o.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.time=o.target.value,t==="once"?this.setState({once:r},()=>this.recalcCron()):this.setState({specific:r},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const t=this.state.once;if(!t.date){const n=new Date;t.date=`${n.getDate()}.${Gr(n.getMonth()+1)}`}return p.createElement(to,{variant:"standard",style:os.formControl},p.createElement(st,{variant:"standard",key:"date",label:E.t("sc_date"),value:t.date,type:"text",slotProps:{htmlInput:{style:os.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.once));o.date=n.target.value,this.setState({once:o},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return p.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const t=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),p.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},p.createElement("h5",{style:{marginBottom:5}},E.t("sc_hours")),p.createElement(to,{variant:"standard",style:os.formControl},p.createElement(xf,{shrink:!0,htmlFor:"age-label-placeholder"},E.t("sc_from")),p.createElement(_n,{variant:"standard",style:{width:100},value:t.timeFrom,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.intervalBetween));o.timeFrom=parseInt(n.target.value,10),o.timeTo===24&&(o.timeTo=23),this.setState({intervalBetween:o},()=>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(n=>p.createElement(je,{key:`B_${n}`,value:n},`${Gr(n)}:00`)))),p.createElement(to,{variant:"standard",style:os.formControl},p.createElement(xf,{shrink:!0,htmlFor:"age-label-placeholder"},E.t("sc_to")),p.createElement(_n,{variant:"standard",style:{width:100},value:t.timeTo,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.intervalBetween));o.timeTo=parseInt(n.target.value,10),this.setState({intervalBetween:o},()=>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(n=>p.createElement(je,{key:`A_${n}`,value:n},`${Gr(n)}:00`)),!t.timeFrom&&p.createElement(je,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[p.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(t){t!==this.state.mode&&this.setState({mode:t},()=>this.recalcCron())}onChange(t){t!==this.state.cron&&(this.setState({cron:t}),this.props.onChange&&this.props.onChange(t))}render(){return p.createElement("div",{style:os.mainDiv},p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},p.createElement(st,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?E.t("sc_invalid_cron"):EA(this.state.cron,this.props.language||"en")),p.createElement("div",null,p.createElement(to,{variant:"standard",style:{...os.formControl,marginLeft:8,marginTop:8}},p.createElement(xf,null,E.t("ra_Repeat")),p.createElement(_n,{variant:"standard",value:this.state.mode,onChange:t=>this.onModeChange(t.target.value),inputProps:{name:"mode",id:"mode"}},p.createElement(je,{value:"once"},E.t("sc_once")),p.createElement(je,{value:"interval"},E.t("sc_interval")),p.createElement(je,{value:"intervalBetween"},E.t("sc_intervalBetween")),p.createElement(je,{value:"specific"},E.t("sc_specific"))))),this.state.mode===ult.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const hlt={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class fkt extends p.Component{constructor(t){super(t);let n;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?n=this.props.cron.replace(/['"]/g,"").trim():(n=this.props.cron||"{}",typeof n=="string"&&(n=n.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:n}}handleCancel(){this.props.onClose()}handleOk(t){if(!t){const n=ws.cron2state(this.state.cron);if(n.seconds==="*"||n.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(n.minutes==="*"||n.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?p.createElement(d3,{title:E.t("ra_Please confirm"),text:E.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:t=>this.setState({showWarning:""},()=>{t&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return p.createElement(yt,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":hlt.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),p.createElement(bt,{id:"cron-dialog-title"},this.props.title||E.t("ra_Define schedule...")),p.createElement(jt,{style:{height:"100%",overflow:"hidden"}},p.createElement(ws,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()})),p.createElement(Nt,null,!!this.props.clearButton&&p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:p.createElement(Ns,null)},this.props.clear||E.t("ra_Clear")),p.createElement(he,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:p.createElement(qn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}const flt={dialogPaper:{height:"calc(100% - 96px)"}};class mkt extends p.Component{constructor(t){super(t);let n;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?n=this.props.cron.replace(/['"]/g,"").trim():(n=this.props.cron||"{}",typeof n=="string"&&(n=n.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:n,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof n=="object"||n[0]==="{")&&!this.props.noWizard?"wizard":gM(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(t){this.setState({mode:t})}render(){return p.createElement(yt,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":flt.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},p.createElement(bt,{id:"cron-dialog-title"},this.props.title||E.t("ra_Define schedule...")),p.createElement(jt,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?p.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&p.createElement(p.Fragment,null,p.createElement(It,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),p.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},E.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&p.createElement(p.Fragment,null,p.createElement(It,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),p.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},E.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&p.createElement(p.Fragment,null,p.createElement(It,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),p.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},E.t("sc_cron")))):null,this.state.mode==="simple"&&p.createElement(gp,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()}),this.state.mode==="wizard"&&p.createElement(An,{theme:this.props.theme,schedule:this.state.cron,onChange:t=>this.setState({cron:t})}),this.state.mode==="complex"&&p.createElement(ws,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()})),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:p.createElement(qn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(he,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}class Yp extends C.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return p.createElement(yt,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"ar_dialog_message_title","aria-describedby":"ar_dialog_message_description"},p.createElement(bt,{id:"ar_dialog_message_title"},this.props.title||E.t("ra_Message")),p.createElement(jt,null,p.createElement(Ra,{id:"ar_dialog_message_description"},p.createElement("span",{style:{marginRight:this.props.icon?8:0}},this.props.icon||null),this.props.text)),p.createElement(Nt,null,p.createElement(he,{id:"ar_dialog_message_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:p.createElement(Dt,null)},this.props.ok||E.t("ra_Close"))))}}const oi={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 gkt extends p.Component{constructor(n){super(n);F(this,"dialogName");F(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const o=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(o)}catch{this.filters={}}n.filters&&(this.filters={...this.filters,...n.filters});let r=this.props.selected||[];typeof r!="object"?r=[r]:r=[...r],r=r.filter(a=>a),this.state={selected:r}}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 n;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:oi.headerID},this.state.selected)]:n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:oi.headerID},E.t("%s items",this.state.selected.length))]:n=this.props.title||E.t("ra_Please select file..."),p.createElement(yt,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...oi.dialog,...oi.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},p.createElement(bt,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":oi.titleRoot}},n),p.createElement(jt,{style:{...oi.content,...oi.contentMobile}},p.createElement(eit,{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:(o,r,a)=>{this.setState({selected:Array.isArray(o)?o:[o]},()=>r&&(!this.props.selectOnlyFolders||a)&&this.handleOk())},t:this.props.t||E.t,lang:this.props.lang||E.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})),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.handleOk(),startIcon:p.createElement(qn,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||E.t("ra_Ok")),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}const mlt={dialogPaper:{height:"calc(100% - 96px)"}};class _kt extends p.Component{constructor(t){super(t);let n;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?n=this.props.cron.replace(/['"]/g,"").trim():(n=this.props.cron||"{}",typeof n=="string"&&(n=n.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return p.createElement(yt,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":mlt.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},p.createElement(bt,{id:"cron-dialog-title"},this.props.title||E.t("ra_Define CRON...")),p.createElement(jt,{style:{height:"100%",overflow:"hidden"}},p.createElement(gp,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()})),p.createElement(Nt,null,p.createElement(he,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:p.createElement(qn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(he,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}var _M={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},BE=p.createContext&&p.createContext(_M),glt=["attr","size","title"];function _lt(e,t){if(e==null)return{};var n=vlt(e,t),o,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function vlt(e,t){if(e==null)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(t.tag,Wm({key:n},t.attr),vM(t.child)))}function Ye(e){return t=>p.createElement(Slt,Um({attr:Wm({},e.attr)},t),vM(e.child))}function Slt(e){var t=n=>{var{attr:o,size:r,title:a}=e,s=_lt(e,glt),i=r||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),p.createElement("svg",Um({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:l,style:Wm(Wm({color:e.color||n.color},n.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&p.createElement("title",null,a),e.children)};return BE!==void 0?p.createElement(BE.Consumer,null,n=>t(n)):t(_M)}function js(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(e)}function xlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"},child:[]}]})(e)}function O_(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"},child:[]}]})(e)}function Pi(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function D_(e){return Ye({tag:"svg",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:[]}]})(e)}function Gc(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"},child:[]}]})(e)}function qc(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"},child:[]}]})(e)}function Clt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 19V3H4v16H2v2h20v-2h-2zM16 9h2v2h-2V9zm-2 2H6V9h8v2zm4-4h-2V5h2v2zm-4-2v2H6V5h8zM6 19v-6h8v1.82A1.746 1.746 0 0 0 15 18a1.746 1.746 0 0 0 1-3.18V13h2v6H6z"},child:[]}]})(e)}function A_(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(e)}function yM(e){return Ye({tag:"svg",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:[]}]})(e)}function Bi(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 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.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function $lt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.76 16.24C6.67 15.16 6 13.66 6 12s.67-3.16 1.76-4.24l1.42 1.42C8.45 9.9 8 10.9 8 12c0 1.1.45 2.1 1.17 2.83l-1.41 1.41zm8.48 0C17.33 15.16 18 13.66 18 12s-.67-3.16-1.76-4.24l-1.42 1.42C15.55 9.9 16 10.9 16 12c0 1.1-.45 2.1-1.17 2.83l1.41 1.41zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 2c0 2.21-.9 4.21-2.35 5.65l1.42 1.42C20.88 17.26 22 14.76 22 12s-1.12-5.26-2.93-7.07l-1.42 1.42A7.94 7.94 0 0 1 20 12zM6.35 6.35 4.93 4.93C3.12 6.74 2 9.24 2 12s1.12 5.26 2.93 7.07l1.42-1.42C4.9 16.21 4 14.21 4 12s.9-4.21 2.35-5.65z"},child:[]}]})(e)}function klt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4zm-4-8c0-.55.45-1 1-1s1 .45 1 1h-1v1h1v2h-1v1h1v2h-2V5z"},child:[]}]})(e)}const Jn={tab:{width:"100%",minHeight:"100%"},input:{minWidth:300},button:{marginRight:20,marginBottom:40},card:{maxWidth:345,textAlign:"center"},media:{height:180},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnLogo:{width:350,marginRight:0},columnSettings:{width:"calc(100% - 370px)"},cannotUse:{color:"red",fontWeight:"bold"},hintUnsaved:{fontSize:12,color:"red",fontStyle:"italic"}};let bM=class wM extends C.Component{constructor(n){super(n);F(this,"onAliveChanged",(n,o)=>{n===`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`&&this.setState({isInstanceAlive:o&&o.val})});this.state={inAction:!1,toast:"",isInstanceAlive:!1},this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>this.setState({isInstanceAlive:o&&o.val}))}componentDidMount(){this.props.socket.subscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged)}componentWillUnmount(){this.props.socket.unsubscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged)}static checkPassword(n){return n=(n||"").toString(),n.length<8||!n.match(/[a-z]/)||!n.match(/[A-Z]/)||!n.match(/\d/)?E.t("invalid_password_warning"):!1}renderInput(n,o,r,a){const s=o==="pass"&&wM.checkPassword(this.props.native[o]);return m.jsx(st,{variant:"standard",label:E.t(n),error:!!s,autoComplete:a||"",style:Jn.input,value:this.props.native[o],type:r||"text",helperText:s||"",onChange:i=>this.props.onChange(o,i.target.value),margin:"normal"})}renderCard(){return m.jsxs(DL,{style:Jn.card,children:[m.jsxs(zL,{children:[m.jsx(JL,{style:Jn.media,image:"alexalogo.png",title:"Alexa logo"}),m.jsx(UL,{children:V.renderTextWithA(E.t("amazon link"))})]}),m.jsxs(FL,{style:{textAlign:"center"},children:[m.jsx(he,{variant:"outlined",size:"small",color:"primary",style:{textAlign:"center"},onClick:()=>{window.open("https://alexa.amazon.de/spa/index.html#skills/dp/B07L66BFF9/reviews","_blank").focus()},children:E.t("Review")}),this.props.native.amazonAlexa?m.jsx(he,{color:"grey",title:"Debug",onClick:()=>this.onDebug(),style:{opacity:this.state.debugVisible?1:0},onMouseEnter:()=>this.setState({debugVisible:!0}),onMouseLeave:()=>this.setState({debugVisible:!1}),children:E.t("Debug")}):null]})]})}onDebug(){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"debug",null).then(n=>{const o=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(o,"debug.json");else{const r=document.createElement("a"),a=URL.createObjectURL(o);r.href=a,r.download="debug.json",document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),window.URL.revokeObjectURL(a)},0)}})}async resetCerts(n){this.setState({inAction:!0});const o={inAction:!1};try{const r=`iot.${this.props.instance}.certs.`;await this.props.socket.setState(`${r}private`,{val:"",ack:!0}),await this.props.socket.setState(`${r}id`,{val:"",ack:!0}),await this.props.socket.setState(`${r}public`,{val:"",ack:!0}),await this.props.socket.setState(`${r}certificate`,{val:"",ack:!0}),n&&await this.props.socket.setState(`${r}forceUserCreate`,{val:!0,ack:!0});const a=await this.props.socket.getObject(`system.adapter.iot.${this.props.instance}`);a&&a.common&&a.common.enabled&&await this.props.socket.setObject(a._id,a),o.toast=E.t("Certificates will be updated after start")}catch(r){this.props.onError(r)}this.setState(o)}renderToast(){return this.state.toast?m.jsx(lp,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:m.jsx("span",{id:"message-id",children:this.state.toast}),action:[m.jsx(ue,{"aria-label":"Close",color:"inherit",style:Jn.close,onClick:()=>this.setState({toast:""}),children:m.jsx(yM,{})},"close")]}):null}renderCheckbox(n,o,r){return m.jsx(Oe,{style:{...Jn.controlElement,paddingTop:5,...r},control:m.jsx(Tt,{checked:this.props.native[o],onChange:()=>this.props.onChange(o,!this.props.native[o]),color:"primary"}),label:E.t(n)},o)}render(){return m.jsxs("form",{style:Jn.tab,children:[m.jsx(fS,{instance:this.props.instance,common:this.props.common,native:this.props.native,onError:n=>window.alert(n),onLoad:this.props.onLoad}),m.jsxs("div",{style:{...Jn.column,...Jn.columnSettings},children:[this.renderInput("ioBroker.pro Login","login",null,"username"),m.jsx("br",{}),this.renderInput("ioBroker.pro Password","pass","password","current-password"),m.jsx("br",{}),this.renderCheckbox("Amazon Alexa","amazonAlexa"),this.renderCheckbox("Amazon AlexaV3 (Beta)","amazonAlexaV3"),m.jsx(Oe,{style:{...Jn.controlElement,marginTop:5},control:m.jsx(Tt,{checked:this.props.native.googleHome,onChange:()=>{const n=!this.props.native.googleHome;this.props.onChange("googleHome",n,()=>n&&this.props.onChange("amazonAlexa",!0))},color:"primary"}),label:E.t("Google Home")},"googleHome"),this.renderCheckbox("Yandex Алиса","yandexAlisa"),m.jsx("br",{}),m.jsx("p",{children:E.t("new_certs_tip")}),this.props.changed?m.jsx("div",{style:Jn.hintUnsaved,children:E.t("Save settings before pressing this button")}):null,m.jsx(he,{variant:"outlined",style:Jn.button,disabled:this.props.changed||this.state.inAction||!this.state.isInstanceAlive,title:this.state.isInstanceAlive?"":E.t("Instance must be enabled"),onClick:()=>this.resetCerts(),startIcon:m.jsx(Bi,{}),color:"grey",children:E.t("Get new connection certificates")}),m.jsx("p",{children:E.t("new_credentials_tip")}),this.props.changed?m.jsx("div",{style:Jn.hintUnsaved,children:E.t("Save settings before pressing this button")}):null,m.jsx(he,{variant:"outlined",color:"grey",style:Jn.button,disabled:this.props.changed||this.state.inAction||!this.state.isInstanceAlive,title:this.state.isInstanceAlive?"":E.t("Instance must be enabled"),onClick:()=>this.resetCerts(!0),startIcon:m.jsx(Bi,{}),children:E.t("Create IoT credentials anew")}),m.jsx("p",{children:V.renderTextWithA(E.t("forum_tip"))}),m.jsx("p",{style:{fontWeight:"bold"},children:V.renderTextWithA(E.t("help_tip"))}),m.jsx("p",{style:{fontWeight:"bold",paddingTop:20},children:V.renderTextWithA(E.t("help_link_tip1"))}),m.jsx("p",{style:{fontWeight:"bold"},children:V.renderTextWithA(E.t("help_link_tip2"))}),m.jsx("p",{style:{fontWeight:"bold",color:"red"},children:V.renderTextWithA(E.t("help_link_tip3"))})]}),m.jsx("div",{style:{...Jn.column,...Jn.columnLogo},children:this.renderCard()}),this.renderToast()]})}};bM.propTypes={common:L.object.isRequired,native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,onLoad:L.func,onChange:L.func,changed:L.bool,socket:L.object.isRequired};const vr={tab:{display:"flex",flexDirection:"column",gap:8},input:{marginTop:0,minWidth:300,maxWidth:500},button:{marginRight:20},card:{maxWidth:345,textAlign:"center"},media:{height:180},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnLogo:{width:350,marginRight:0},columnSettings:{width:"calc(100% - 370px)"},controlElement:{marginBottom:5}};class SM extends C.Component{constructor(t){super(t),this.state={showSelectId:!1,adminInstances:[],webInstances:[]}}componentDidMount(){this.props.socket.getAdapterInstances("admin").then(t=>(t=t.filter(n=>!n.common.auth).map(n=>({title:`${n.common.name}.${n._id.split(".").pop()}`,value:`${n.common.name}.${n._id.split(".").pop()}`,noTranslation:!0})),t.unshift({title:"disabled",value:""}),this.props.socket.getAdapterInstances("web").then(n=>{n=n.filter(o=>!o.common.auth).map(o=>({title:`${o.common.name}.${o._id.split(".").pop()}`,value:`${o.common.name}.${o._id.split(".").pop()}`,noTranslation:!0})),n.unshift({title:"disabled",value:""}),this.setState({adminInstances:t,webInstances:n})})))}renderInput(t,n,o,r,a){return m.jsx(st,{variant:"standard",label:E.t(t),disabled:r,style:{...vr.input,...vr.controlElement},value:this.props.native[n],type:o||"text",helperText:a?E.t(a):"",onChange:s=>this.props.onChange(n,s.target.value),margin:"normal"})}renderSelect(t,n,o,r){return m.jsxs(to,{style:{...vr.input,...vr.controlElement,paddingTop:5,paddingRight:8,...r},variant:"standard",children:[m.jsx(_n,{variant:"standard",value:this.props.native[n]||"_",onChange:a=>this.props.onChange(n,a.target.value==="_"?"":a.target.value),input:m.jsx(Qn,{name:n,id:`${n}-helper`}),children:o.map(a=>m.jsx(je,{value:a.value||"_",children:a.noTranslation?a.title:E.t(a.title)},`key-${a.value}`))}),m.jsx(Er,{children:E.t(t)})]})}renderCheckbox(t,n,o){return m.jsx(Oe,{style:{...vr.controlElement,paddingTop:5,...o},control:m.jsx(Tt,{checked:this.props.native[n],onChange:()=>this.props.onChange(n,!this.props.native[n]),color:"primary"}),label:E.t(t)},n)}getSelectIdDialog(t){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:this.props.native[t],types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:n=>{this.setState({showSelectId:!1}),this.props.onChange(t,n)}},"dialogSelectID2"):null}render(){return m.jsxs("form",{style:vr.tab,children:[this.renderSelect("Language","language",[{title:"default",value:""},{title:"english",value:"en",noTranslation:!0},{title:"Deutsch",value:"de",noTranslation:!0},{title:"русский",value:"ru",noTranslation:!0}]),this.renderCheckbox("Place function in names first","functionFirst"),this.renderInput("Concatenate words with","concatWord"),this.props.native.amazonAlexaV3?m.jsxs(to,{style:{...vr.input,...vr.controlElement,paddingTop:5,paddingRight:8},variant:"standard",children:[m.jsxs(_n,{variant:"standard",value:this.props.native.defaultToggle||!1,onChange:t=>this.props.onChange("defaultToggle",t.target.value),children:[m.jsx(je,{value:!1,children:E.t("Do not toggle")}),m.jsx(je,{value:!0,children:E.t("Toggle")})]}),m.jsx(Er,{children:E.t("Default toggle behaviour (Only alexa v3)")})]}):null,this.renderInput("OFF level for switches in %","deviceOffLevel",null,!1,"(Set to 0 if behavior not desired)"),m.jsxs("div",{style:vr.controlElement,children:[this.renderInput("Write response to","responseOID"),m.jsx(Mt,{size:"small",color:"secondary",onClick:()=>this.setState({showSelectId:!0}),"aria-label":"Add",style:{marginLeft:5,marginTop:10},children:m.jsx(Pi,{})})]}),m.jsxs("div",{style:vr.controlElement,children:[this.renderCheckbox("Personal settings (only pro)","noCommon"),m.jsx(Er,{children:V.renderTextWithA(E.t("help_tip"))})]}),this.renderCheckbox("Debug outputs","debug"),m.jsxs("div",{style:vr.controlElement,children:[this.renderCheckbox("Allow remote access","remote"),this.props.native.remote?this.renderSelect("Admin instance","remoteAdminInstance",this.state.adminInstances,{width:120,minWidth:120}):null,this.props.native.remote?this.renderSelect("Web instance","remoteWebInstance",this.state.webInstances,{width:120,minWidth:120}):null]}),this.getSelectIdDialog("responseOID")]})}}SM.propTypes={native:L.object.isRequired,onChange:L.func,socket:L.object.isRequired,theme:L.object};const $t={tab:{width:"100%",minHeight:"100%"},input:{marginTop:0,minWidth:400},fullSize:{width:"calc(100% - 64px)"},normalSize:{width:"calc(30% - 64px)",marginLeft:10},button:{marginRight:20},card:{maxWidth:345,textAlign:"center"},media:{height:180},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnLogo:{width:350,marginRight:0},columnSettings:{width:"calc(100% - 370px)"},controlElement:{marginBottom:5},chips:{border:"1px solid #DDD",borderRadius:1,width:"calc(100% - 250px)",display:"inline-block",padding:5,minHeight:32,marginLeft:10,marginTop:20},chip:{marginRight:5}};class xM extends C.Component{constructor(t){super(t),this.state={running:!1,toast:"",showSelectId:!1,text2commandList:[],nightscoutList:[],addValue:"",isInstanceAlive:!1},this.onKeyChangedBound=this.onKeyChanged.bind(this),this.props.socket.getAdapterInstances("text2command").then(n=>this.props.socket.getAdapterInstances("nightscout").then(o=>this.setState({nightscoutList:o.map(r=>r._id.replace("system.adapter.nightscout.","")),text2commandList:n.map(r=>r._id.replace("system.adapter.text2command.",""))})))}componentDidMount(){this.props.socket.subscribeState(`iot.${this.props.instance}.certs.urlKey`,this.onKeyChangedBound),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(t=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(n=>this.setState({isInstanceAlive:t&&t.common&&n&&n.val})))}componentWillUnmount(){this.props.socket.unsubscribeState(`iot.${this.props.instance}.certs.urlKey`,this.onKeyChangedBound)}onKeyChanged(t,n){n&&this.setState({key:n.val})}renderInput(t,n,o){return m.jsx(st,{variant:"standard",label:E.t(t),style:{...$t.input,...$t.controlElement},value:this.props.native[n],type:o||"text",onChange:r=>this.props.onChange(n,r.target.value),margin:"normal"})}reissueUrlKey(){return this.setState({running:!0}),this.props.socket.setState(`iot.${this.props.instance}.certs.urlKey`,{val:"",ack:!0}).then(()=>this.props.socket.getObject(`system.adapter.iot.${this.props.instance}`)).then(t=>{!t||!t.common||!t.common.enabled?this.setState({running:!1,toast:E.t("Key will be updated after start")}):this.props.socket.setObject(`system.adapter.iot.${this.props.instance}`,t)}).then(()=>this.setState({running:!1,toast:E.t("Certificates will be updated after initiated restart")})).catch(t=>{this.setState({running:!1}),this.props.showError(t)})}renderToast(){return this.state.toast?m.jsx(lp,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:m.jsx("span",{id:"message-id",children:this.state.toast}),action:[m.jsx(ue,{"aria-label":"Close",color:"inherit",style:$t.close,onClick:()=>this.setState({toast:""}),children:m.jsx(yM,{})},"close")]}):null}onChipsDelete(t,n){const o=(this.props.native[t]||"").split(/[,;\s]/).filter(a=>!!a),r=o.indexOf(n);r!==-1&&(o.splice(r,1),this.props.onChange(t,o.join(" ")))}onChipsAdd(t){const n=(this.props.native[t]||"").split(/[,;\s]/).filter(o=>!!o);this.state.addValue==="visu"?(this.props.onError(E.t("This service is reserved for the ioBroker.visu app. Please use another service name.")),this.setState({addValue:""})):!n.includes(this.state.addValue)&&this.state.addValue&&(n.push(this.state.addValue),this.setState({addValue:""},()=>this.props.onChange(t,n.join(" "))))}calcNightscoutSecret(){const t=this.props.native.login.replace(/[^\w\d-_]/g,"_"),n=this.props.native.nightscoutPass;return t+(n?`-${n}`:"")}getSelectIdDialog(t){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:this.props.native[t],types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:n=>{this.setState({showSelectId:!1}),this.props.onChange(t,n)}},"dialogSelectID3"):null}renderChips(t,n){return m.jsxs("div",{style:$t.chipsDiv,children:[m.jsx(Er,{children:V.renderTextWithA(E.t(t))}),m.jsx(st,{variant:"standard",label:E.t("Add service"),style:{width:150},type:"text",value:this.state.addValue,onKeyUp:o=>o.key==="Enter"&&this.onChipsAdd(n),onChange:o=>this.setState({addValue:o.target.value.trim()}),margin:"normal"}),m.jsx(Mt,{size:"small",color:"secondary",disabled:!this.state.addValue,onClick:()=>this.onChipsAdd(n),style:{marginLeft:5,marginTop:-15},children:m.jsx(Pi,{})}),m.jsx("div",{style:$t.chips,children:(this.props.native[n]||"").split(/[,;\s]/).filter(o=>!!o).map(o=>m.jsx(F7,{size:"small",label:o,onDelete:()=>this.onChipsDelete(n,o),style:$t.chip},o))})]})}render(){return m.jsxs("form",{style:$t.tab,children:[m.jsx(he,{variant:"outlined",disabled:!this.state.isInstanceAlive||this.state.running,color:"primary",title:this.state.isInstanceAlive?"":E.t("Instance must be enabled"),onClick:()=>this.reissueUrlKey(),startIcon:m.jsx(Bi,{}),children:E.t("Get new service URL key")}),m.jsx("br",{}),this.renderInput("IFTTT key","iftttKey"),m.jsx("br",{}),m.jsx(st,{variant:"standard",label:E.t("Use following link for IFTTT"),style:{...$t.input,...$t.controlElement,...$t.fullSize,marginTop:10},value:`https://service.iobroker.in/v1/iotService?service=ifttt&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}`,type:"text",slotProps:{htmlInput:{readOnly:!0}},margin:"normal"}),m.jsx(Mt,{size:"small",style:{marginTop:10,marginLeft:5},onClick:()=>V.copyToClipboard(`https://service.iobroker.in/v1/iotService?service=ifttt&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}`),children:m.jsx(ps,{})}),m.jsx("br",{}),m.jsx("br",{}),this.renderChips("White list for services","allowedServices"),m.jsx("br",{}),m.jsx(st,{variant:"standard",label:E.t("Use following link for custom service"),style:{...$t.input,...$t.controlElement,...$t.fullSize,marginTop:10},value:`https://service.iobroker.in/v1/iotService?service=custom_&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}&data=`,type:"text",slotProps:{htmlInput:{readOnly:!0}},margin:"normal"}),m.jsx(Mt,{size:"small",style:{marginTop:10,marginLeft:5},onClick:()=>V.copyToClipboard(`https://service.iobroker.in/v1/iotService?service=custom_&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}&data=`),children:m.jsx(ps,{})}),m.jsx("br",{}),m.jsxs(to,{style:{...$t.input,...$t.controlElement,paddingTop:20},variant:"standard",children:[m.jsxs(_n,{variant:"standard",value:this.props.native.text2command||"_",onChange:t=>this.props.onChange("text2command",t.target.value==="_"?"":t.target.value),input:m.jsx(Qn,{name:"text2command",id:"text2command-helper"}),children:[m.jsx(je,{value:"_",children:E.t("disabled")},"key-default"),this.state.text2commandList.map(t=>m.jsxs(je,{value:t,children:["text2command.",t]},`key-${t}`))]}),m.jsx(Er,{children:E.t("Use text2command instance")})]}),m.jsx("br",{}),m.jsxs(to,{style:{...$t.input,...$t.controlElement,paddingTop:20},variant:"standard",children:[m.jsxs(_n,{variant:"standard",value:this.props.native.nightscout||"_",onChange:t=>this.props.onChange("nightscout",t.target.value==="_"?"":t.target.value),input:m.jsx(Qn,{name:"nightscout",id:"nightscout-helper"}),children:[m.jsx(je,{value:"_",children:E.t("disabled")},"key-default"),this.state.nightscoutList.map(t=>m.jsxs(je,{value:t,children:["nightscout.",t]},`key-${t}`))]}),m.jsx(Er,{children:E.t("Use Nightscout instance")})]}),this.props.native.nightscout?m.jsx(st,{variant:"standard",label:E.t("Nightscout password"),onChange:t=>this.props.onChange("nightscoutPass",t.target.value.replace(/[^\w\d-_]/g,"_")),style:{...$t.input,...$t.controlElement,...$t.normalSize,marginTop:3.5},value:this.props.native.nightscoutPass,type:"text",margin:"normal"}):null,this.props.native.nightscout?m.jsx(st,{variant:"standard",label:E.t("Nightscout api-secret"),style:{...$t.input,...$t.controlElement,...$t.normalSize,marginTop:3.5},value:this.calcNightscoutSecret(),type:"text",slotProps:{htmlInput:{readOnly:!0}},margin:"normal"}):null,m.jsx("br",{}),m.jsx("br",{}),m.jsxs("div",{style:$t.controlElement,children:[m.jsx(st,{variant:"standard",label:E.t("Read blood sugar from"),style:{...$t.input,...$t.controlElement},value:this.props.native.amazonAlexaBlood||"",type:"text",onChange:t=>this.props.onChange("amazonAlexaBlood",t.target.value),margin:"normal"}),m.jsx(Mt,{size:"small",color:"secondary",onClick:()=>this.setState({showSelectId:!0}),"aria-label":"Add",style:{marginLeft:5,marginTop:10},children:m.jsx(Pi,{})}),m.jsx(Oe,{style:$t.controlElement,control:m.jsx(Tt,{style:{paddingLeft:30},checked:this.props.native.amazonAlexaBloodShortAnswer||!1,onChange:t=>this.props.onChange("amazonAlexaBloodShortAnswer",t.target.checked),color:"primary"}),label:E.t("Short answer for blood sugar")})]}),m.jsx("br",{}),this.renderToast(),this.getSelectIdDialog("amazonAlexaBlood")]})}}xM.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,onChange:L.func,socket:L.object.isRequired,theme:L.object};const Elt="#e7000040",So={tab:{width:"100%",height:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:10,height:"100%",overflow:"hidden",width:"calc(50% - 20px)",minWidth:300,maxWidth:450},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},enumLineEnabled:{},enumLineEdit:{},enumLineName:{},enumLineSubName:{fontStyle:"italic"},enumLine:{height:48,width:"100%",position:"relative",display:"flex",alignItems:"center"},enumLineId:{display:"block",fontStyle:"italic",fontSize:12},columnHeader:e=>({background:e.palette.primary.light,padding:"10px",color:e.palette.primary.contrastText,marginTop:0,marginBottom:0})};class CM extends C.Component{constructor(t){super(t),this.state={inAction:!1,editId:"",editedSmartName:"",funcs:[],rooms:[],changed:[],message:"",loading:!0},this.onEnumUpdateBound=this.onEnumUpdate.bind(this),this.props.socket.getEnums().then(n=>{const o=[],r=[];return n&&Object.keys(n).forEach(a=>{a.match(/^enum\.rooms\./)?r.push(n[a]):a.match(/^enum\.functions\./)&&o.push(n[a])}),this.setState({funcs:o,rooms:r,loading:!1}),this.props.socket.subscribeObject("enum.*",this.onEnumUpdateBound)})}componentWillUnmount(){this.props.socket.unsubscribeObject("enum.*",this.onEnumUpdateBound).then(()=>{})}onEnumUpdate(t,n){this.removeChanged(t),this.updateObjInState(t,n)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t){const n=JSON.parse(JSON.stringify(this.state.changed));n.includes(t)||(n.push(t),this.setState({changed:n}))}removeChanged(t){const n=JSON.parse(JSON.stringify(this.state.changed)),o=n.indexOf(t);o!==-1&&(n.splice(o,1),this.setState({changed:n}))}updateObjInState(t,n){if(t.match(/^enum\.functions\./)){for(let o=this.state.funcs.length-1;o>=0;o--)if(this.state.funcs[o]._id===t){const r=JSON.parse(JSON.stringify(this.state.funcs));n?r[o]=n:r.splice(o,1),this.setState({funcs:r});break}}else if(t.match(/^enum\.rooms\./)){for(let o=this.state.rooms.length-1;o>=0;o--)if(this.state.rooms[o]._id===t){const r=JSON.parse(JSON.stringify(this.state.rooms));n?r[o]=n:r.splice(o,1),this.setState({rooms:r});break}}}onToggleEnum(t){let n=this.state.funcs.find(r=>r._id===t)||this.state.rooms.find(r=>r._id===t);const o=V.getSmartNameFromObj(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);n=JSON.parse(JSON.stringify(n)),o!==!1?V.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon):V.removeSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(t),this.props.socket.setObject(t,n).then(()=>{this.updateObjInState(t,n),this.informInstance(t),setTimeout(()=>this.removeChanged(t),500)})}onEdit(t){const n=this.state.funcs.find(r=>r._id===t)||this.state.rooms.find(r=>r._id===t);let o=V.getSmartNameFromObj(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);typeof o=="object"&&o&&(o=o[E.getLanguage()]||o.en),o=o||V.getObjectNameFromObj(n,null,{language:E.getLanguage()}),this.setState({editId:t,editedSmartName:o})}renderEnum(t){let n=V.getSmartNameFromObj(t,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);n&&typeof n=="object"&&(n=n[E.getLanguage()]||n.en||"");const o=V.getObjectNameFromObj(t,null,{language:E.getLanguage()});return m.jsxs("div",{style:{...So.enumLine,background:this.state.changed.indexOf(t._id)!==-1?Elt:"inherit"},children:[m.jsxs("div",{style:{marginLeft:8},children:[m.jsxs("span",{style:{...So.enumLineName,opacity:n===!1?.5:1},children:[n||null,n?m.jsxs("span",{style:So.enumLineSubName,children:[" (",o,")"]}):o]}),m.jsx("span",{style:{...So.enumLineId,opacity:n===!1?.5:1},children:t._id})]}),m.jsx("div",{style:{flex:1}}),m.jsx(ue,{"aria-label":"Edit",style:So.enumLineEdit,onClick:()=>this.onEdit(t._id),children:m.jsx(A_,{fontSize:"large"})}),m.jsx(tu,{style:So.enumLineEnabled,checked:n!==!1,onChange:()=>this.onToggleEnum(t._id)})]},t._id)}renderEnums(t){return this.state[t].map(n=>this.renderEnum(n))}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(){if((this.state.editId.startsWith("enum.functions.")?this.state.funcs:this.state.rooms).find(n=>this.state.editId!==n._id&&(this.state.editedSmartName===V.getObjectNameFromObj(n,null,{language:E.getLanguage()})||this.state.editedSmartName===V.getSmartNameFromObj(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon))))this.setState({message:E.t("Duplicate name")});else{this.addChanged(this.state.editId),setTimeout(()=>this.removeChanged(this.state.editId),500);const n=this.state.editId;this.setState({editId:""});let o;this.props.socket.getObject(n).then(r=>(V.updateSmartName(r,this.state.editedSmartName,void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),o=r,this.props.socket.setObject(n,r))).then(()=>{this.updateObjInState(n,o),this.informInstance(n)}).catch(r=>this.props.onError(r))}}renderEditDialog(){if(this.state.editId){const t=this.state.funcs.find(n=>n._id===this.state.editId)||this.state.rooms.find(n=>n._id===this.state.editId);return m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({editId:""}),"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(bt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",V.getObjectNameFromObj(t,null,{language:E.getLanguage()}))}),m.jsx(jt,{children:m.jsx(st,{variant:"standard",autoFocus:!0,style:{width:"100%"},label:E.t("Smart name"),onChange:n=>this.setState({editedSmartName:n.target.value}),value:this.state.editedSmartName,helperText:E.t("You can enter several names divided by comma"),margin:"normal"})}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(qn,{}),children:E.t("Ok")}),m.jsx(he,{color:"grey",variant:"contained",onClick:()=>this.setState({editId:""}),startIcon:m.jsx(Dt,{}),children:E.t("Cancel")})]})]})}return null}render(){return this.state.loading?m.jsx(ro,{}):m.jsxs("form",{style:So.tab,children:[m.jsxs("div",{style:So.column,children:[m.jsx(ke,{component:"h5",sx:So.columnHeader,children:E.t("Rooms")}),m.jsx("div",{style:So.columnDiv,children:this.renderEnums("rooms")})]}),m.jsxs("div",{style:So.column,children:[m.jsx(ke,{component:"h5",sx:So.columnHeader,children:E.t("Functions")}),m.jsx("div",{style:So.columnDiv,children:this.renderEnums("funcs")})]}),this.renderMessage(),this.renderEditDialog()]})}}CM.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired};function Vm(e){return Ye({tag:"svg",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:[]}]})(e)}function Tlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},child:[]}]})(e)}function Gm(e){return Ye({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-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-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"},child:[]}]})(e)}function Sc(e){return Ye({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"},child:[]}]})(e)}function xc(e){return Ye({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"},child:[]}]})(e)}function Olt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"},child:[]}]})(e)}function $M(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},child:[]}]})(e)}function kM(e){return Ye({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"},child:[]}]})(e)}function $0(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}function Dlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M440.3 345.2l-33.8-19.5 26-7c8.2-2.2 13.1-10.7 10.9-18.9l-4-14.9c-2.2-8.2-10.7-13.1-18.9-10.9l-70.8 19-63.9-37 63.8-36.9 70.8 19c8.2 2.2 16.7-2.7 18.9-10.9l4-14.9c2.2-8.2-2.7-16.7-10.9-18.9l-26-7 33.8-19.5c7.4-4.3 9.9-13.7 5.7-21.1L430.4 119c-4.3-7.4-13.7-9.9-21.1-5.7l-33.8 19.5 7-26c2.2-8.2-2.7-16.7-10.9-18.9l-14.9-4c-8.2-2.2-16.7 2.7-18.9 10.9l-19 70.8-62.8 36.2v-77.5l53.7-53.7c6.2-6.2 6.2-16.4 0-22.6l-11.3-11.3c-6.2-6.2-16.4-6.2-22.6 0L256 56.4V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v40.4l-19.7-19.7c-6.2-6.2-16.4-6.2-22.6 0L138.3 48c-6.3 6.2-6.3 16.4 0 22.6l53.7 53.7v77.5l-62.8-36.2-19-70.8c-2.2-8.2-10.7-13.1-18.9-10.9l-14.9 4c-8.2 2.2-13.1 10.7-10.9 18.9l7 26-33.8-19.5c-7.4-4.3-16.8-1.7-21.1 5.7L2.1 145.7c-4.3 7.4-1.7 16.8 5.7 21.1l33.8 19.5-26 7c-8.3 2.2-13.2 10.7-11 19l4 14.9c2.2 8.2 10.7 13.1 18.9 10.9l70.8-19 63.8 36.9-63.8 36.9-70.8-19c-8.2-2.2-16.7 2.7-18.9 10.9l-4 14.9c-2.2 8.2 2.7 16.7 10.9 18.9l26 7-33.8 19.6c-7.4 4.3-9.9 13.7-5.7 21.1l15.5 26.8c4.3 7.4 13.7 9.9 21.1 5.7l33.8-19.5-7 26c-2.2 8.2 2.7 16.7 10.9 18.9l14.9 4c8.2 2.2 16.7-2.7 18.9-10.9l19-70.8 62.8-36.2v77.5l-53.7 53.7c-6.3 6.2-6.3 16.4 0 22.6l11.3 11.3c6.2 6.2 16.4 6.2 22.6 0l19.7-19.7V496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-40.4l19.7 19.7c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6L256 387.7v-77.5l62.8 36.2 19 70.8c2.2 8.2 10.7 13.1 18.9 10.9l14.9-4c8.2-2.2 13.1-10.7 10.9-18.9l-7-26 33.8 19.5c7.4 4.3 16.8 1.7 21.1-5.7l15.5-26.8c4.3-7.3 1.8-16.8-5.6-21z"},child:[]}]})(e)}function Alt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V304c0-8.8-7.2-16-16-16s-16 7.2-16 16v18.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"},child:[]}]})(e)}function EM(e){return Ye({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},child:[]}]})(e)}function zu(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"},child:[]}]})(e)}function Mlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(e)}const Jh="#aba613",Yh="#444",Vd="#00c6ff",sy="#00bc00",Kh="#e7000040",Zh="#4f4f4f",Qh="#e9e9e9",ef="#5c8f65",tf="#b4ffbe",Fr={turnOn:{color:Jh,icon:$0,desc:"Turn on",v2:!0},turnOff:{color:Yh,icon:$0,desc:"Turn off",v2:!0},setTargetTemperature:{color:Vd,icon:EM,desc:"Set target temperature",v2:!0},incrementTargetTemperature:{color:Jh,icon:xc,desc:"Increment target temperature",v2:!0},decrementTargetTemperature:{color:Yh,icon:Sc,desc:"Decrement target temperature",v2:!0},setPercentage:{color:Vd,icon:kM,desc:"Set percentage",v2:!0},incrementPercentage:{color:Jh,icon:xc,desc:"Increment percentage",v2:!0},decrementPercentage:{color:Yh,icon:Sc,desc:"Decrement percentage",v2:!0},setColor:{color:Vd,icon:$M,desc:"Set color",v2:!0},setColorTemperature:{color:Vd,icon:Vm,desc:"Set color temperature",v2:!0},incrementColorTemperature:{color:Jh,icon:xc,desc:"Increment color temperature",v2:!0},decrementColorTemperature:{color:Yh,icon:Sc,desc:"Decrement color temperature",v2:!0},getTargetTemperature:{color:sy,icon:zu,desc:"Get target temperature",v2:!0},getTemperatureReading:{color:sy,icon:zu,desc:"Get actual temperature",v2:!0},setLockState:{color:Vd,icon:Gm,desc:"Set lock state",v2:!0},getLockState:{color:sy,icon:Gm,desc:"Read lock state",v2:!0}},nf=["LIGHT","SWITCH","THERMOSTAT","ACTIVITY_TRIGGER","SCENE_TRIGGER","SMARTPLUG","SMARTLOCK","CAMERA"],tt={tab:{width:"100%",height:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20,height:"100%",overflow:"hidden"},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},filter:{margin:0},button:{marginRight:20},devLineExpand:{marginRight:10},devLineEnabled:{position:"absolute",right:0,top:0},devLineEdit:{position:"absolute",top:5,right:50},devLineDelete:{position:"absolute",top:5,right:0},devLineName:{},devLineNumber:{display:"inline-block",verticalAlign:"middle",width:15},editedId:{fontStyle:"italic"},enumLineSubName:{fontStyle:"italic"},devLine:{height:48,width:"100%",position:"relative"},devLineDescription:{display:"block",fontStyle:"italic",fontSize:12},devLineActions:{fontStyle:"italic",fontSize:12,paddingLeft:50,display:"inline-block"},devLineProgress:{position:"absolute",top:0,left:0},channelLineActions:{width:80},devLineNameBlock:{display:"inline-block",width:"calc(100% - 350px)"},devModified:{fontStyle:"italic"},actionIcon:{width:16},devSubLine:{position:"relative",height:48},devSubLineName:{marginLeft:5,marginTop:14,display:"inline-block",fontSize:13,width:"calc(100% - 400px)"},devSubSubLineName:{fontSize:8,fontStyle:"italic",display:"block"},devSubLineByOn:{marginLeft:5},devSubLineDelete:{position:"absolute",top:12,right:12,padding:0},devSubLineEdit:{position:"absolute",top:12,right:62,padding:0},devSubLineTypeTitle:{marginTop:0},headerRow:e=>({pl:1,background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"100%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"100%"}};class vs extends C.Component{constructor(t){super(t),Fr.translated||(Object.keys(Fr).forEach(n=>Fr[n].desc=E.t(Fr[n].desc)),Fr.translated=!0),this.state={edit:null,deleteId:"",showListOfDevices:!1,showSelectId:!1,showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:[],lastChanged:""},this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.waitForUpdateID=null,this.onReadyUpdateBound=this.onReadyUpdate.bind(this),this.onResultUpdateBound=this.onResultUpdate.bind(this),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>{!n||!n.common||!n.common.enabled&&(!o||!o.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[]}):this.browse()}))}browse(t){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),t?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),console.log("Send BROWSE!"),this.browseTimer=setTimeout(()=>{console.log("Browse timeout!"),this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(t):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browse",null).then(n=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,n&&n.error?this.setState({message:E.t(n.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,n)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),console.log("BROWSE received."),this.setState({devices:n,loading:!1,changed:[],browse:!1}),n.length>300&&this.props.onError(E.t("Too many devices (%s) configured. Max number is 300",n.length)))}).catch(n=>this.setState({message:E.t("Error %s",n),browse:!1})))}onReadyUpdate(t,n){console.log(`Update ${t} ${n?`${n.val}/${n.ack}`:"null"}`),n&&n.ack===!0&&n.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},300))}onResultUpdate(t,n){n&&n.ack===!0&&n.val&&this.setState({message:n.val})}componentDidMount(){this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t,n){const o=JSON.parse(JSON.stringify(this.state.changed));o.includes(t)?n&&n():(o.push(t),this.setState({changed:o},()=>n&&n()))}onEdit(t,n){n=n||this.state.devices;const o=n.find(r=>r.additionalApplianceDetails.id===t);return o?(this.props.socket.getObject(t).then(r=>{let a=o.additionalApplianceDetails.friendlyNames?o.additionalApplianceDetails.friendlyNames:o.friendlyName;typeof a=="object"&&a&&(a=a[E.getLanguage()]||a.en);let s=null;o.additionalApplianceDetails.group||(s=o.additionalApplianceDetails.smartType),this.setState({edit:{id:t,type:s,name:a,objectName:V.getObjectNameFromObj(r,null,{language:E.getLanguage()}),originalName:a,originalType:s}})}),!0):!1}onAskDelete(t){this.setState({deleteId:t,showConfirmation:!0})}onDelete(){const t=this.state.deleteId;this.addChanged(t,()=>{this.props.socket.getObject(t).then(n=>(V.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(t,n))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(t)}).catch(n=>this.props.onError(n))})}static renderActions(t){const n=[];if(!t.actions)return console.log("Something went wrong"),null;t.actions.sort((o,r)=>o===r?0:o==="turnOn"?-1:r==="turnOn"?1:o==="turnOff"?-1:r==="turnOff"?1:0),Object.keys(Fr).forEach(o=>{if(t.actions.includes(o)){const r=Fr[o].icon;n.push(m.jsx("span",{title:Fr[o].desc,children:m.jsx(r,{style:{...tt.actionIcon,color:Fr[o].color}})},o))}});for(let o=0;othis.onParamsChange(o,s.target.value),children:a}),m.jsx(Er,{style:tt.devSubLineTypeTitle,children:E.t("by ON")})]})}return null}onParamsChange(t,n,o){this.addChanged(t,()=>{this.props.socket.getObject(t).then(r=>(V.updateSmartName(r,void 0,n,o,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.state.lastChanged!==t&&(this.setState({lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(t,r))).then(()=>{this.informInstance(t)}).catch(r=>this.props.onError(r))})}static renderSelectTypeSelector(t,n){if(t!==!1){const o=[m.jsx(je,{value:"_",children:m.jsx("em",{children:E.t("no type")})},"_")];for(let r=0;rn(r.target.value==="_"?"":r.target.value),children:o}),m.jsx(Er,{style:tt.devSubLineTypeTitle,children:E.t("Types")})]})}return""}renderSelectType(t,n,o,r){return vs.renderSelectTypeSelector(r,a=>this.onParamsChange(o,void 0,a))}renderChannels(t,n){const o=[];if(t.additionalApplianceDetails.group){const r=t.additionalApplianceDetails.channels,a=t.additionalApplianceDetails.names,s=t.additionalApplianceDetails.byONs,i=t.additionalApplianceDetails.smartTypes;let l=0;r&&Object.keys(r).forEach(d=>{for(let u=0;uthis.onAskDelete(c,n),children:m.jsx(js,{fontSize:"middle"})})]},`sub${c}`)),l++}})}else{const r=t.additionalApplianceDetails.id,a=t.additionalApplianceDetails.name||r;let s=this.state.changed.includes(r)?Kh:this.props.themeType==="dark"?Zh:Qh;this.state.lastChanged===r&&(s===Zh||s===Qh)&&(s=this.props.themeType==="dark"?ef:tf),o.push(m.jsxs("div",{style:{...tt.devSubLine,background:s},children:[m.jsx("div",{style:{...tt.devLineActions,...tt.channelLineActions,width:80},children:vs.renderActions(t)}),m.jsx("div",{style:tt.devSubLineName,title:r||"",children:a}),this.renderSelectType(t,n,r,t.additionalApplianceDetails.smartType),this.renderSelectByOn(t,n,r,t.additionalApplianceDetails.byON)]},`sub${r}`))}return o}renderDevice(t,n){var u;const o=t.friendlyName;let r;!t.additionalApplianceDetails.group&&t.additionalApplianceDetails.nameModified?r=o:r=m.jsx("span",{style:tt.devModified,title:E.t("modified"),children:o});let a=0;t.additionalApplianceDetails.channels&&Object.keys(t.additionalApplianceDetails.channels).forEach(c=>a+=t.additionalApplianceDetails.channels[c].length),a=a||1;const s=this.state.expanded.includes(o),i=(u=t.additionalApplianceDetails)==null?void 0:u.id;let l=n%2?this.props.themeType==="dark"?"#272727":"#f1f1f1":"inherit";const d=this.state.changed.includes(i);if(d?l=Kh:i===this.state.lastChanged&&(l=this.props.themeType==="dark"?ef:tf),t.additionalApplianceDetails.group&&!d&&i!==this.state.lastChanged){const c=t.additionalApplianceDetails.channels;try{c&&Object.keys(c).forEach(h=>h&&c[h].forEach(f=>{this.state.changed.includes(f.id)?l=Kh:this.state.lastChanged===f.id&&(l=this.props.themeType==="dark"?ef:tf)}))}catch(h){console.log(h)}}return[m.jsxs("div",{style:{...tt.devLine,background:l},children:[m.jsxs("div",{style:tt.devLineNumber,children:[n+1,"."]}),m.jsx(ue,{style:tt.devLineExpand,onClick:()=>this.onExpand(n),children:a>1?m.jsx(sp,{badgeContent:a,color:"primary",children:s?m.jsx(Gc,{}):m.jsx(qc,{})}):s?m.jsx(Gc,{}):m.jsx(qc,{})}),m.jsxs("div",{style:{...tt.devLineNameBlock,display:"inline-block",position:"relative"},children:[m.jsx("span",{style:tt.devLineName,children:r}),m.jsx("span",{style:tt.devLineDescription,children:t.friendlyDescription}),d?m.jsx(ro,{style:tt.devLineProgress,size:20}):null]}),m.jsx("span",{style:tt.devLineActions,children:vs.renderActions(t)}),t.additionalApplianceDetails.group?null:m.jsx(ue,{"aria-label":"Edit",style:tt.devLineEdit,onClick:()=>this.onEdit(i),children:m.jsx(A_,{fontSize:"middle"})}),t.additionalApplianceDetails.group?null:m.jsx(ue,{"aria-label":"Delete",style:tt.devLineDelete,onClick:()=>this.onAskDelete(i),children:m.jsx(js,{fontSize:"middle"})})]},`line${n}`),s?this.renderChannels(t,n):null]}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(t){t==null||t.preventDefault(),this.addChanged(this.state.edit.id,()=>{const n=this.state.edit.id,o=this.state.edit.type,r=this.state.edit.name.trim();this.setState({edit:null,lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.props.socket.getObject(n).then(a=>(V.updateSmartName(a,r,void 0,o===null?void 0:o,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(n,a))).then(()=>this.informInstance(n)).catch(a=>this.props.onError(a))})}renderEditDialog(){return this.state.edit?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({edit:null}),"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(bt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",this.state.edit.objectName)}),m.jsxs(jt,{children:[m.jsxs("p",{children:[m.jsx("span",{children:"ID:"})," ",m.jsx("span",{style:tt.editedId,children:this.state.edit.id})]}),m.jsx(st,{variant:"standard",style:{width:"100%"},label:E.t("Smart name"),autoFocus:!0,onKeyDown:t=>t.key==="Enter"&&this.changeSmartName(t),value:this.state.edit.name,onChange:t=>{const n=JSON.parse(JSON.stringify(this.state.edit));n.name=t.target.value,this.setState({edit:n})},helperText:E.t("You can enter several names divided by comma"),margin:"normal"}),this.state.edit.type!==null?vs.renderSelectTypeSelector(this.state.edit.type,t=>{const n=JSON.parse(JSON.stringify(this.state.edit));n.type=t,this.setState({edit:n})}):null]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",disabled:!this.state.edit.name||this.state.edit.originalName===this.state.edit.name&&(this.state.edit.type||null)===(this.state.edit.originalType||null),onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(qn,{}),children:E.t("Ok")}),m.jsx(he,{variant:"contained",onClick:()=>{this.setState({edit:null})},startIcon:m.jsx(Dt,{}),color:"grey",children:E.t("Cancel")})]})]}):null}renderConfirmDialog(){return this.state.showConfirmation?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({showConfirmation:""}),"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[m.jsx(bt,{id:"confirmation-dialog-title",children:this.props.title||E.t("Device %s will be disabled.",this.state.deleteId)}),m.jsx(jt,{children:m.jsx("p",{children:E.t("Are you sure?")})}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.onDelete(),color:"primary",autoFocus:!0,startIcon:m.jsx(js,{}),children:E.t("Delete")}),m.jsx(he,{color:"grey",variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showConfirmation:""}),children:E.t("Cancel")})]})]}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:t=>{this.setState({showSelectId:!1}),this.props.socket.getObject(t).then(n=>{if(n){const o=V.getObjectNameFromObj(n,null,{language:E.getLanguage()});V.updateSmartName(n,(o||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(n._id),this.waitForUpdateID=n._id,this.state.lastChanged!==n._id&&(this.setState({lastChanged:n._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(n._id,n).then(()=>this.informInstance(n._id)).catch(r=>this.setState({message:r}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectID1"):null}renderDevices(){const t=this.state.filter.toLowerCase(),n=[];for(let o=0;othis.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(bt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(jt,{children:[m.jsx(ke,{sx:tt.headerRow,children:m.jsx("div",{style:tt.headerCell,children:E.t("Name")})}),m.jsx("div",{style:tt.tableDiv,children:this.state.devices.map((t,n)=>m.jsx("div",{children:m.jsx("div",{style:tt.tableCell,children:t.friendlyName})},n))})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const t=this.state.devices.map(n=>n.friendlyName);V.copyToClipboard(t.join(` -`))},color:"primary",startIcon:m.jsx(c_,{}),children:E.t("Copy to clipboard")}),m.jsx(he,{variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,color:"grey",children:E.t("Close")})]})]}):null}render(){return this.state.loading?m.jsx(ro,{},"alexaProgress"):m.jsxs("form",{style:tt.tab,children:[m.jsx(Mt,{size:"small",color:"secondary","aria-label":"Add",style:tt.button,onClick:()=>this.setState({showSelectId:!0}),children:m.jsx(Pi,{})}),m.jsx(Mt,{size:"small",color:"primary","aria-label":"Refresh",style:tt.button,onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(ro,{size:20}):m.jsx(Bi,{})}),m.jsx(Mt,{style:{...tt.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse,children:m.jsx(O_,{})}),m.jsx(st,{variant:"standard",placeholder:E.t("Filter"),className:this.state.filter,value:this.state.filter,onChange:t=>this.setState({filter:t.target.value}),slotProps:{input:{endAdornment:this.state.filter?m.jsx(ue,{onClick:()=>this.setState({filter:""}),children:m.jsx(D_,{})}):void 0}}}),this.renderDevices(),this.renderMessage(),this.renderEditDialog(),this.getSelectIdDialog(),this.renderConfirmDialog(),this.renderListOfDevices()]},"alexa")}}vs.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired,themeType:L.string,theme:L.object};function Nlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0z"},child:[]}]})(e)}function jlt(e){return Ye({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1.5 15a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1H13V2.5A1.5 1.5 0 0 0 11.5 1H11V.5a.5.5 0 0 0-.57-.495l-7 1A.5.5 0 0 0 3 1.5V15zM11 2h.5a.5.5 0 0 1 .5.5V15h-1zm-2.5 8c-.276 0-.5-.448-.5-1s.224-1 .5-1 .5.448.5 1-.224 1-.5 1"},child:[]}]})(e)}function UE(e){return Ye({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11.536 14.01A8.47 8.47 0 0 0 14.026 8a8.47 8.47 0 0 0-2.49-6.01l-.708.707A7.48 7.48 0 0 1 13.025 8c0 2.071-.84 3.946-2.197 5.303z"},child:[]},{tag:"path",attr:{d:"M10.121 12.596A6.48 6.48 0 0 0 12.025 8a6.48 6.48 0 0 0-1.904-4.596l-.707.707A5.48 5.48 0 0 1 11.025 8a5.48 5.48 0 0 1-1.61 3.89z"},child:[]},{tag:"path",attr:{d:"M8.707 11.182A4.5 4.5 0 0 0 10.025 8a4.5 4.5 0 0 0-1.318-3.182L8 5.525A3.5 3.5 0 0 1 9.025 8 3.5 3.5 0 0 1 8 10.475zM6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06"},child:[]}]})(e)}function zlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M23 23v466h466V23H23zm233 64c93.2 0 169 75.8 169 169s-75.8 169-169 169S87 349.2 87 256 162.8 87 256 87zm0 18c-83.5 0-151 67.5-151 151 0 71.3 49.2 130.9 115.5 146.8l13.9-27.8h43.2l13.9 27.8C357.8 386.9 407 327.3 407 256c0-83.5-67.5-151-151-151zm0 30c13.7 0 25 11.3 25 25s-11.3 25-25 25-25-11.3-25-25 11.3-25 25-25zm-80 89a32 32 0 0 1 32 32 32 32 0 0 1-32 32 32 32 0 0 1-32-32 32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32 32 32 0 0 1-32 32 32 32 0 0 1-32-32 32 32 0 0 1 32-32zm-90.4 169l-6.5 13.1c5.5.6 11.2.9 16.9.9 5.7 0 11.4-.3 16.9-.9l-6.5-13.1h-20.8z"},child:[]}]})(e)}function Rlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M248 88v32.652c-5.287.834-10.615 2.448-16 4.63V104h-16v29.16c-1.698.96-3.402 1.953-5.115 2.98-3.598 2.16-7.23 4.48-10.885 6.905V120h-16v34.19c-5.324 3.85-10.664 7.826-16 11.822V152h-16v25.965c-5.402 4.008-10.75 7.9-16 11.592V168h-16v32.213c-1.04.647-2.09 1.312-3.115 1.928-4.448 2.67-8.766 5.003-12.885 6.962V200H88V214.973c-2.89.67-5.575 1.027-8 1.027h-8v-32H24v304h48V232h8c2.658 0 5.324-.23 8-.652V488h16V226.717c5.272-2.138 10.6-4.82 16-7.877V488h16V208.955c5.294-3.512 10.637-7.264 16-11.144V488h16V344h16v144h16V162.443c5.462-3.838 10.81-7.427 16-10.656V296h16V142.898c5.793-2.754 11.188-4.755 16-5.87V296h16V137.027c4.812 1.116 10.207 3.117 16 5.87V296h16V151.787c5.19 3.23 10.538 6.818 16 10.656V488h16V344h16v144h16V197.81c5.363 3.88 10.706 7.633 16 11.145V488h16V218.84c5.4 3.056 10.728 5.74 16 7.877V488h16V231.348c2.676.422 5.342.652 8 .652h8v256h48V184h-48v32h-8c-2.425 0-5.11-.357-8-1.027V200h-16v9.102c-4.12-1.96-8.437-4.292-12.885-6.96-1.026-.617-2.075-1.282-3.115-1.93V168h-16V189.557c-5.252-3.69-10.598-7.584-16-11.592V152h-16v14.012c-5.336-3.996-10.676-7.97-16-11.823V120h-16v23.045c-3.654-2.424-7.287-4.746-10.885-6.904-1.713-1.027-3.417-2.02-5.115-2.98V104h-16v21.283c-5.385-2.183-10.713-3.797-16-4.63V88h-16zM48 120c-13.35 0-24 10.65-24 24s10.65 24 24 24 24-10.65 24-24-10.65-24-24-24zm416 0c-13.35 0-24 10.65-24 24s10.65 24 24 24 24-10.65 24-24-10.65-24-24-24zm-280 54.035V328h-16V185.988c1.6-1.198 3.203-2.39 4.8-3.588 3.75-2.81 7.484-5.608 11.2-8.365zm144 0c3.716 2.757 7.45 5.555 11.2 8.365 1.597 1.2 3.2 2.39 4.8 3.588V328h-16V174.035zM216 312v32h80v-32h-80zm0 48v128h16V360h-16zm32 0v128h16V360h-16zm32 0v128h16V360h-16z"},child:[]}]})(e)}function Ilt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M25 66.75V425.8l78-26V92.74zm462 0l-78 25.99V399.8l78 26V267.5c-1 3.2-2.4 6.2-4.2 8.8-4.1 6.1-10.7 11-18.8 11-8.1 0-14.7-4.9-18.8-11-4.1-6.1-6.2-13.8-6.2-22s2.1-15.9 6.2-22 10.7-11 18.8-11c8.1 0 14.7 4.9 18.8 11 1.8 2.6 3.2 5.6 4.2 8.8zm-366 28.5V397.3h126V95.25zm144 0V397.3h126V95.25zM135 109.3h98v274h-98v-265zm144 0h98v274h-98v-265zm-126 18v110h62v-110zm144 0v110h62v-110zm167 112c-.8 0-2.1.4-3.8 3-1.7 2.6-3.2 7-3.2 12s1.5 9.4 3.2 12c1.7 2.6 3 3 3.8 3 .8 0 2.1-.4 3.8-3 1.7-2.6 3.2-7 3.2-12s-1.5-9.4-3.2-12c-1.7-2.6-3-3-3.8-3zm-311 16v110h62v-110zm144 0v110h62v-110zm-184 160v30h286v-30z"},child:[]}]})(e)}function Llt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"},child:[]}]})(e)}function WE(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M442 248.9c-15.7-20.6-37.7-35.9-62.1-43.6 1-6.3 1.4-12.7 1.4-19.1 0-33.7-13-65.4-36.7-89.2C321 73.1 289.5 60 256 60s-65 13.1-88.6 37c-23.7 23.8-36.7 55.5-36.7 89.2 0 6.4.5 12.8 1.4 19.1-24.5 7.7-46.4 23.1-62.1 43.6-17 22.2-26 48.8-26 76.9 0 33.7 13 65.4 36.7 89.2 23.7 23.8 55.2 37 88.6 37 32.6 0 63.2-12.4 86.7-35 23.4 22.6 54.1 35 86.7 35 33.5 0 65-13.1 88.6-37 23.7-23.8 36.7-55.5 36.7-89.2 0-28.1-9-54.7-26-76.9zM256 85.5c55.1 0 100 45.2 100 100.7 0 4.7-.3 9.4-1 14.1-4.1-.4-8.2-.6-12.4-.6-32.6 0-63.2 12.4-86.7 35-23.4-22.6-54.1-35-86.7-35-4.1 0-8.3.2-12.4.6-.6-4.6-1-9.4-1-14.1.2-55.6 45.1-100.7 100.2-100.7zm0 201.4c-1.8 0-3.7-.1-5.5-.2 1.6-3.8 3.4-7.5 5.5-11.1 2.1 3.6 3.9 7.3 5.5 11.1-1.8.2-3.7.2-5.5.2zm-46.6 131.2c-12.7 5.6-26.1 8.4-40.1 8.4-55.1 0-100-45.2-100-100.7 0-22.3 7.1-43.5 20.6-61.2 12.3-16.1 29.4-28.3 48.5-34.6 6.6 17.9 17.3 34.3 31.2 47.6 13.9 13.4 30.9 23.4 49.2 29.1-1 6.3-1.4 12.7-1.4 19.1 0 25.8 7.7 50.6 22.2 71.7-8.8 8.7-19 15.6-30.2 20.6zM225.1 282c-27.6-9-50-29.8-61.3-56.7 1.8-.1 3.7-.2 5.5-.2 13.9 0 27.4 2.8 40.1 8.4 11.2 5 21.4 11.9 30.1 20.6-5.9 8.7-10.8 18-14.4 27.9zm30.9 94c-8.7-15.2-13.3-32.5-13.3-50.2 0-4.7.3-9.4 1-14.1a128.658 128.658 0 0 0 24.8 0c.6 4.6 1 9.4 1 14.1-.2 17.7-4.8 35-13.5 50.2zm46.6-142.5c12.7-5.6 26.1-8.4 40.1-8.4 1.8 0 3.7.1 5.5.2-11.3 26.9-33.7 47.7-61.3 56.7-3.6-9.8-8.5-19.2-14.4-27.9 8.7-8.7 18.9-15.6 30.1-20.6zm40.1 193c-13.9 0-27.4-2.8-40.1-8.4-11.2-5-21.4-11.9-30.1-20.6 14.5-21.1 22.2-45.8 22.2-71.7 0-6.4-.5-12.8-1.4-19.1 18.3-5.7 35.2-15.7 49.2-29.1 13.8-13.3 24.5-29.6 31.2-47.6 19.1 6.3 36.2 18.4 48.5 34.6 13.5 17.7 20.6 38.9 20.6 61.2-.1 55.6-45 100.7-100.1 100.7z"},child:[]}]})(e)}function Flt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M12 5C11.4477 5 11 5.44772 11 6C11 6.55228 11.4477 7 12 7H20C20.5523 7 21 6.55228 21 6C21 5.44772 20.5523 5 20 5H12Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M7 12C7 11.4477 7.44772 11 8 11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H8C7.44772 13 7 12.5523 7 12Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M3 18C3 17.4477 3.44772 17 4 17H12C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19H4C3.44772 19 3 18.5523 3 18Z",fill:"currentColor"},child:[]}]})(e)}function Plt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3004 7.49991C10.3004 8.4943 9.49426 9.30041 8.49988 9.30041C7.50549 9.30041 6.69938 8.4943 6.69938 7.49991C6.69938 6.50553 7.50549 5.69942 8.49988 5.69942C9.49426 5.69942 10.3004 6.50553 10.3004 7.49991ZM11.205 8C10.9699 9.28029 9.84816 10.2504 8.49988 10.2504C7.1516 10.2504 6.0299 9.28029 5.79473 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H5.7947C6.0298 5.71962 7.15154 4.74942 8.49988 4.74942C9.84822 4.74942 10.97 5.71962 11.2051 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H11.205Z",fill:"currentColor"},child:[]}]})(e)}function Blt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 12a9 9 0 1 1 -18 0a9 9 0 0 1 18 0z"},child:[]},{tag:"path",attr:{d:"M14 9a2 2 0 1 1 -4 0a2 2 0 0 1 4 0z"},child:[]},{tag:"path",attr:{d:"M12 16h.01"},child:[]}]})(e)}const VE="#e7000040",GE="#4f4f4f",Hlt="#313131",qE="#e9e9e9",Ult="#bbbbbb",XE="#5c8f65",JE="#b4ffbe",YE="#6e6e6e",KE="#d0d0d0",wl=["socket","light","dimmer","thermostat","blinds","gate","lock","hue","ct","motion","levelSlider","temperature","window"],ZE={LIGHT:"light",SWITCH:"socket",THERMOSTAT:"thermostat",SMARTPLUG:"socket",SMARTLOCK:"lock",CAMERA:"camera"},lo={brightness:{label:"Brightness",icon:tX,color:"#c9b803"},powerState:{label:"Power",icon:zX,color:"#70bd00"},colorTemperatureInKelvin:{label:"Color temperature",icon:gX,color:"#019bb6"},color:{label:"Color",icon:OX,color:"#a20030"},detectionState:{label:"Detection",icon:TX,color:"#913c01"},lockState:{label:"Lock",icon:xX,color:"#00519b"},mode:{label:"Mode",icon:$X,color:"#112233"},muted:{label:"Muted",icon:BX,color:"#9701af"},percentage:{label:"Percentage",icon:kM,color:"#009870"},targetSetpoint:{label:"Set point",icon:NX,color:"#813600"},temperature:{label:"Temperature",icon:lX,color:"#9f1300"},thermostatMode:{label:"Thermostat mode",icon:jX,color:"#800048"},volume:{label:"Volume",icon:HX,color:"#006702"}},Yn={Light:{label:"Light",icon:Vm,color:"#c9b803",control:"switch",controllable:!0},AirCondition:{label:"AirCondition",icon:Dlt,color:"#001fb9",control:"switch",controllable:!0},Blind:{label:"Blinds",icon:Clt,color:"#00a28f",control:"blinds",controllable:!0},ContactSensor:{label:"Sensor",icon:$lt,color:"#c9b803",control:"sensor",controllable:!1},Dimmer:{label:"Dimmer",icon:Llt,color:"#cb8500",control:"slider",controllable:!0},Door:{label:"Door sensor",icon:jlt,color:"#ad002a",control:"doorSensor",controllable:!1},Gate:{label:"Gate",icon:Rlt,color:"#9d02af",control:"gate"},Hue:{label:"Color HUE",icon:WE,color:"#007a96",control:"color"},Ct:{label:"Color temperature",icon:WE,color:"#5a9600"},Lock:{label:"Lock",icon:Nlt,color:"#c9030a"},Motion:{label:"Motion",icon:Flt,color:"#149100"},Slider:{label:"Slider",icon:Plt,color:"#029a7f"},Socket:{label:"Socket",icon:zlt,color:"#834303"},Temperature:{label:"Temperature",icon:Alt,color:"#8ca102"},Thermostat:{label:"Thermostat",icon:klt,color:"#8c4800"},VacuumCleaner:{label:"Vacuum cleaner",icon:Blt,color:"#9e03c9"},Volume:{label:"Volume",icon:UE,color:"#c903c6"},VolumeGroup:{label:"Volume group",icon:UE,color:"#c903c6"},Window:{label:"Window sensor",icon:Ilt,color:"#27c903"}},be={tab:{width:"100%",height:"100%"},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},filter:{margin:0},button:{marginRight:20},devLineExpand:{width:40},devLineEdit:{width:40,marginLeft:5},devLineDelete:{width:40},devLineName:{},devLineNumber:{width:15},editedId:{fontStyle:"italic"},devLine:{height:48,width:"100%",position:"relative",display:"flex",alignItems:"center"},devLineDescription:{display:"block",fontStyle:"italic",fontSize:12},devLineActions:{fontStyle:"italic",fontSize:12,paddingRight:5,display:"flex"},devLineProgress:{position:"absolute",top:0,left:0},devLineNameBlock:{flexGrow:1},devModified:{fontStyle:"italic"},actionSpan:{marginRight:5,display:"flex",alignItems:"center"},deviceOff:{filter:"grayscale(0.9)"},actionIcon:{width:16},deviceIcon:{width:24,height:24},deviceSmallIcon:{width:20,height:20},devSubLine:{position:"relative",display:"flex",width:"100%",alignItems:"center"},devSubLineExpand:{marginLeft:15},devSubLineExpanded:{transition:"transform 0.3s",transform:"rotate(90deg)"},devSubLineName:{flexGrow:1,fontSize:13,fontWeight:"bold",marginLeft:5},devSubLineName1:{minWidth:100,marginRight:5,display:"inline-block"},devSubLineName2:{fontWeight:"normal",display:"inline-block"},devSubLineName2Div:{display:"flex",alignItems:"center",gap:5},devSubSubLineName:{fontSize:11,fontStyle:"italic",paddingLeft:10},devSubSubLineStateName:{minWidth:121,display:"inline-block",fontWeight:"bold"},devSubSubLineStateId:{marginLeft:5},devSubLineDelete:{},devSubLineEdit:{},devSubLineTypeTitle:{marginTop:0},statesLine:{position:"relative",width:"calc(100% - 50px)",paddingLeft:50,paddingBottom:5},devSubSubLine:{position:"relative",display:"flex",alignItems:"center",paddingTop:2,paddingBottom:2},headerRow:e=>({pl:1,background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"100%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"100%"},selectType:{width:130,marginLeft:8}};function Wlt(e,t,n){n=n||".";let o="";const r=e&&e.common;if(r){const a=r.icon;if(a)if(a.startsWith("data:image/"))o=a;else if(a.includes(".")){let s;e.type==="instance"||e.type==="adapter"?o=`${n}/adapter/${r.name}/${a}`:t&&t.startsWith("system.adapter.")?(s=t.split(".",3),a[0]==="/"?s[2]+=a:s[2]+=`/${a}`,o=`${n}/adapter/${s[2]}`):(s=t.split(".",2),a[0]==="/"?s[0]+=a:s[0]+=`/${a}`,o=`${n}/adapter/${s[0]}`)}else return null}return o||null}function iy(e,t){return e&&typeof e=="object"?e[t]||e.en:e}class Br extends C.Component{constructor(n){super(n);F(this,"onAliveChanged",(n,o)=>{!!(o!=null&&o.val)!==this.state.alive&&this.setState({alive:!!(o!=null&&o.val)},()=>this.state.alive&&setTimeout(()=>this.browse(),1e4))});F(this,"onReadyUpdate",(n,o)=>{console.log(`Update ${n} ${o?`${o.val}/${o.ack}`:"null"}`),o&&o.ack===!0&&o.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},300))});F(this,"onResultUpdate",(n,o)=>{o&&o.ack===!0&&o.val&&this.setState({message:o.val})});lo.translated||(Object.keys(lo).forEach(r=>lo[r].label=E.t(lo[r].label)),lo.translated=!0),Yn.translated||(Object.keys(Yn).forEach(r=>Yn[r].label=E.t(Yn[r].label)),Yn.translated=!0);let o=window.localStorage.getItem("v3.expanded")||"[]";try{o=JSON.parse(o)}catch{o=[]}this.state={edit:null,deleteId:"",showListOfDevices:!1,showSelectId:!1,showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:o,lastChanged:"",objects:{},alive:!1},this.requesting={},this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.waitForUpdateID=null,this.language=E.getLanguage()}browse(n){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),n?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),console.log("Send BROWSE!"),this.browseTimer=setTimeout(()=>{console.log("Browse timeout!"),this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(n):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browse3",null).then(o=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,o&&o.error?this.setState({message:E.t(o.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,o)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),console.log("BROWSE received."),o.sort((r,a)=>r.friendlyName>a.friendlyName?1:r.friendlyName300&&this.props.onError(E.t("Too many devices (%s) configured. Max number is 300",o.length)))}).catch(o=>this.setState({message:E.t("Error %s",o),browse:!1})))}componentDidMount(){this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>{!n||!n.common||!n.common.enabled&&(!o||!o.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[],alive:!1}):this.setState({alive:!0},()=>this.browse())})),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates3`,this.onReadyUpdate),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdate),this.props.socket.subscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates3`,this.onReadyUpdate),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdate),this.props.socket.unsubscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(n){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",n)}addChanged(n,o){const r=JSON.parse(JSON.stringify(this.state.changed));r.includes(n)?o&&o():(r.push(n),this.setState({changed:r},()=>o&&o()))}onEdit(n,o){return o=o||this.state.devices,o.find(a=>a.controls.find(s=>Object.values(s.states).find(i=>i.id===n)))?(this.props.socket.getObject(n).then(a=>{let s=V.getSmartNameFromObj(a,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);typeof s=="object"&&s&&(s=s[E.getLanguage()]||s.en),this.editedSmartName=s;let i=null;this.setState({edit:{id:n,type:i,name:s,originalType:i,originalName:s,objectName:V.getObjectNameFromObj(a,null,{language:E.getLanguage()})}})}),!0):!1}onAskDelete(n){this.setState({deleteId:n,showConfirmation:!0})}onDelete(){const n=this.state.deleteId;this.addChanged(n,()=>{this.props.socket.getObject(n).then(o=>(V.disableSmartName(o,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(n,o))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(n)}).catch(o=>this.props.onError(o))})}static renderChannelActions(n){const o=[];return Object.keys(lo).forEach(r=>{if(r!=="translated"){if(n.supported.includes(r)){let a;const s=lo[r].icon;let i=be.actionIcon,l=null,d=null,u=null;n.state&&(a=n.state.find(c=>r===c.name),(a==null?void 0:a.name)==="powerState"?(a==null?void 0:a.value)==="OFF"&&(i={...i,...be.deviceOff}):(a==null?void 0:a.name)==="detectionState"?(a==null?void 0:a.value)==="NOT_DETECTED"&&(i={...i,...be.deviceOff}):(a==null?void 0:a.name)==="percentage"?l=`${a.value}%`:(a==null?void 0:a.name)==="brightness"?d=a.value:(a==null?void 0:a.name)==="color"&&(u=`hsl(${a.value}, 50%, 50%)`)),o.push(m.jsxs("span",{title:lo[r].label+(a?` - ${a.value}`:""),style:be.actionSpan,children:[m.jsx(s,{style:{...i,color:lo[r].color,backgroundColor:u}}),l!==null?m.jsx("span",{style:{color:Yn[n.type].color},children:l}):null,d!==null?m.jsx("span",{style:{color:Yn[n.type].color},children:d}):null]},r))}else if(n.enforced.includes(r)){const a=lo[r].icon;o.push(m.jsx("span",{title:lo[r].label,style:{...be.actionSpan,opacity:.7},children:m.jsx(a,{style:{...be.actionIcon,color:lo[r].color}})},r))}}}),n.supported.forEach(r=>{lo[r]||o.push(m.jsx("span",{title:r,style:be.actionSpan,children:r},r))}),n.enforced.forEach(r=>{lo[r]||o.push(m.jsx("span",{title:r,style:{...be.actionSpan,opacity:.7},children:r},r))}),o}static renderDevTypes(n){const o=[];if(!n.controls)return console.log("Something went wrong"),null;const r=[];return n.controls.forEach((a,s)=>{if(!r.includes(a.type)&&(r.push(a.type),Yn[a.type])){const i=Yn[a.type].icon;let l=be.actionSpan,d=null,u=null,c=null,h;n.state&&(h=n.state.find(g=>a.supported.includes(g.name)),(h==null?void 0:h.name)==="powerState"?(h==null?void 0:h.value)==="OFF"&&(l={...l,...be.deviceOff}):(h==null?void 0:h.name)==="detectionState"?(h==null?void 0:h.value)==="NOT_DETECTED"&&(l={...l,...be.deviceOff}):(h==null?void 0:h.name)==="percentage"?d=`${h.value}%`:(h==null?void 0:h.name)==="brightness"?u=h.value:(h==null?void 0:h.name)==="color"&&(c=`hsl(${h.value}, 100%, 50%)`));const f=m.jsxs("span",{title:Yn[a.type].label+(h?` - ${h.value}`:""),style:l,children:[m.jsx(i,{style:{...be.deviceIcon,color:Yn[a.type].color,backgroundColor:c}}),d!==null?m.jsx("span",{style:{color:Yn[a.type].color},children:d}):null,u!==null?m.jsx("span",{style:{color:Yn[a.type].color},children:u}):null]},`${a.type}_${s}`);a.type!=="Blind"&&a.type!=="Light"&&a.type!=="Socket"?o.unshift(f):o.push(f)}}),o}getControlId(n,o){return o===void 0?this.state.devices[n].friendlyName:`${this.state.devices[n].friendlyName}_${o}`}onExpand(n,o){const r=[...this.state.expanded],a=this.getControlId(n,o),s=r.indexOf(a);s===-1?r.push(a):r.splice(s,1),window.localStorage.setItem("v3.expanded",JSON.stringify(r)),this.setState({expanded:r})}renderSelectByOn(n){var r;const o=n.supported.concat(n.enforced);if(o.includes("brightness")&&o.includes("powerState")||o.includes("percentage")&&o.includes("powerState")){const a=Object.values(n.states)[0],s=((r=a.smartName)==null?void 0:r.byON)||void 0,i=[m.jsx(je,{value:"",children:m.jsx("em",{children:E.t("Default")})},"_"),m.jsx(je,{value:"stored",children:E.t("last value")},"last"),m.jsx(je,{value:"omit",children:E.t("omit value")},"omit")];for(let l=5;l<=100;l+=5)i.push(m.jsxs(je,{value:l.toString(),children:[l,"%"]},l.toString()));return m.jsxs(to,{style:be.selectType,variant:"standard",children:[m.jsx(_n,{variant:"standard",style:be.devSubLineByOnSelect,value:(s||"").toString(),onChange:l=>this.onParamsChange(a.id,l.target.value),children:i}),m.jsx(Er,{style:be.devSubLineTypeTitle,children:E.t("by ON")})]})}return m.jsx("div",{style:be.selectType})}onParamsChange(n,o,r){this.addChanged(n,()=>this.props.socket.getObject(n).then(a=>(V.updateSmartName(a,void 0,o,r,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.state.lastChanged!==n&&(this.setState({lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(n,a))).then(()=>this.informInstance(n)).catch(a=>this.props.onError(a)))}static renderSelectTypeSelector(n,o){if(n!==!1){const r=[m.jsx(je,{value:"_",children:m.jsx("em",{children:E.t("no type")})},"_")];for(let a=0;ao(a.target.value==="_"?"":a.target.value),children:r}),m.jsx(Er,{style:be.devSubLineTypeTitle,children:E.t("Types")})]})}return null}renderSelectType(n,o){var s;if(o.autoDetected)return m.jsx("div",{style:be.selectType});const r=Object.values(n.states)[0],a=(s=r.smartName)==null?void 0:s.smartType;return Br.renderSelectTypeSelector(a,i=>this.onParamsChange(r.id,void 0,i))}renderStates(n,o){return m.jsx("div",{style:{...be.statesLine,background:o},children:Object.keys(n.states).map((r,a)=>m.jsx("div",{style:{...be.devSubSubLine,...a%2?{background:this.props.themeType==="dark"?`${YE}80`:`${KE}80`}:{background:this.props.themeType==="dark"?YE:KE}},children:m.jsxs("div",{style:be.devSubSubLineName,children:[m.jsxs("div",{style:be.devSubSubLineStateName,children:[r,":"]}),m.jsx("span",{style:be.devSubSubLineStateId,children:n.states[r].id})]})},r))},"states")}static getParentId(n){const o=n.split(".");return o.pop(),o.join(".")}async findDeviceForState(n){const o=Br.getParentId(n),r=await this.props.socket.getObject(o);if((r==null?void 0:r.type)==="device")return r;if(r&&(r.type==="channel"||r.type==="folder")){let a=Br.getParentId(o),s=await this.props.socket.getObject(a);return(s==null?void 0:s.type)==="device"||(s==null?void 0:s.type)==="folder"&&(a=Br.getParentId(o),s=await this.props.socket.getObject(a),(s==null?void 0:s.type)==="device")?s:r}return this.props.socket.getObject(n)}getControlProps(n){const o=Object.values(n.states)[0].id;return this.state.objects[o]===void 0&&!this.requesting[o]&&(this.requesting[o]=!0,setTimeout(()=>{this.findDeviceForState(o).then(r=>{var s;delete this.requesting[o];const a=JSON.parse(JSON.stringify(this.state.objects));r&&r.common?(a[o]={name:((s=r.common)==null?void 0:s.name)||null,icon:Wlt(r,o,"../..")},a[o].name=iy(a[o].name,this.language)):a[o]={name:o},this.setState({objects:a})})},50)),this.state.objects[o]?this.state.objects[o]:{name:o}}renderChannels(n,o){return n.controls.map((r,a)=>{var c;const s=Object.values(r.states)[0].id;let i=this.state.changed.includes(s)?VE:this.props.themeType==="dark"?a%2?GE:Hlt:a%2?qE:Ult;this.state.lastChanged===s&&(i===GE||i===qE)&&(i=this.props.themeType==="dark"?XE:JE);const l=((c=Yn[r.type])==null?void 0:c.icon)||null,d=this.state.expanded.includes(this.getControlId(o,a)),u=this.getControlProps(r);return[m.jsxs("div",{style:{...be.devSubLine,background:i},children:[m.jsx(ue,{style:be.devSubLineExpand,onClick:()=>this.onExpand(o,a),children:m.jsx(rX,{style:d?be.devSubLineExpanded:void 0})}),l?m.jsx(l,{style:{...be.deviceSmallIcon,color:Yn[r.type].color}}):null,m.jsxs("div",{style:be.devSubLineName,children:[m.jsx("div",{style:be.devSubLineName1,children:E.t(r.type)}),m.jsx("div",{style:be.devSubLineName2,children:m.jsxs("div",{style:be.devSubLineName2Div,children:[u.icon?u.icon.startsWith("data:image/svg")?m.jsx(Pm,{style:be.devSubLineName2Icon,src:u.icon,width:20,height:20}):m.jsx(Ss,{src:u.icon,style:{...be.devSubLineName2Icon,width:20,height:20}}):null,u.name]})})]}),m.jsx("div",{style:be.devLineActions,children:Br.renderChannelActions(r)}),this.renderSelectByOn(r,n),this.renderSelectType(r,n),n.autoDetected?m.jsx("div",{style:be.devLineEdit}):m.jsx(ue,{"aria-label":"Edit",style:be.devLineEdit,onClick:()=>this.onEdit(s),children:m.jsx(A_,{fontSize:"middle"})}),n.autoDetected?n.controls.length>1?m.jsx(ue,{"aria-label":"Delete",style:be.devSubLineDelete,onClick:()=>this.onAskDelete(s),children:m.jsx(js,{fontSize:"middle"})}):m.jsx("div",{style:be.devLineDelete}):m.jsx(ue,{"aria-label":"Delete",style:be.devLineDelete,onClick:()=>this.onAskDelete(s),children:m.jsx(js,{fontSize:"middle"})})]},a),d?this.renderStates(r,i):null]})}renderDevice(n,o){const r=n.friendlyName,a=this.state.expanded.includes(r),s=Object.values(n.controls[0].states)[0].id;let i=o%2?this.props.themeType==="dark"?"#272727":"#f1f1f1":"inherit";const l=this.state.changed.includes(s);return l?i=VE:s===this.state.lastChanged&&(i=this.props.themeType==="dark"?XE:JE),[m.jsxs("div",{style:{...be.devLine,background:i},children:[m.jsxs("div",{style:be.devLineNumber,children:[o+1,"."]}),m.jsx(ue,{style:be.devLineExpand,onClick:()=>this.onExpand(o),children:n.controls.length>1?m.jsx(sp,{badgeContent:n.controls.length,color:"primary",children:a?m.jsx(Gc,{}):m.jsx(qc,{})}):a?m.jsx(Gc,{}):m.jsx(qc,{})}),m.jsxs("div",{style:be.devLineNameBlock,children:[n.autoDetected?m.jsxs(m.Fragment,{children:[m.jsx("span",{style:be.devLineName,children:r}),m.jsx("span",{style:be.devLineDescription,children:E.t("Grouped from %s and %s",iy(n.roomName,this.language),iy(n.funcName,this.language))})]}):r,l?m.jsx(ro,{style:be.devLineProgress,size:20}):null]}),m.jsx("span",{style:be.devLineActions,children:Br.renderDevTypes(n)})]},`line${o}`),a?this.renderChannels(n,o):null]}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(n){n==null||n.preventDefault(),this.addChanged(this.state.edit.id,()=>{const o=this.state.edit.id,r=this.state.edit.type,a=this.state.edit.name;this.setState({edit:null,lastChanged:o}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.props.socket.getObject(o).then(s=>(V.updateSmartName(s,a,void 0,r===null?void 0:r,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(o,s))).then(()=>this.informInstance(o)).catch(s=>this.props.onError(s))})}renderEditDialog(){return this.state.edit?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({edit:null}),"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(bt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",this.state.edit.objectName)}),m.jsxs(jt,{children:[m.jsxs("p",{children:[m.jsx("span",{children:"ID:"})," ",m.jsx("span",{style:be.editedId,children:this.state.edit.id})]}),m.jsx(st,{variant:"standard",style:{width:"100%"},label:E.t("Smart name"),autoFocus:!0,onKeyDown:n=>n.key==="Enter"&&this.changeSmartName(n),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.edit));o.name=n.target.value,this.setState({edit:o})},value:this.state.edit.name,helperText:E.t("You can enter several names divided by comma"),margin:"normal"}),this.state.edit.type!==null?Br.renderSelectTypeSelector(this.state.edit.type,n=>{const o=JSON.parse(JSON.stringify(this.state.edit));o.type=n,this.setState({edit:o})}):null]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",disabled:!this.state.edit.name||this.state.edit.originalName===this.state.edit.name&&(this.state.edit.type||null)===(this.state.edit.originalType||null),onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(qn,{}),children:E.t("Ok")}),m.jsx(he,{variant:"contained",onClick:()=>this.setState({edit:null}),startIcon:m.jsx(Dt,{}),color:"grey",children:E.t("Cancel")})]})]}):null}renderConfirmDialog(){return this.state.showConfirmation?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({showConfirmation:""}),"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[m.jsx(bt,{id:"confirmation-dialog-title",children:this.props.title||E.t("Device %s will be disabled.",this.state.deleteId)}),m.jsx(jt,{children:m.jsx("p",{children:E.t("Are you sure?")})}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.onDelete(),color:"primary",autoFocus:!0,startIcon:m.jsx(js,{}),children:E.t("Delete")}),m.jsx(he,{color:"grey",variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showConfirmation:""}),children:E.t("Cancel")})]})]}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(vd,{imagePrefix:"../..",theme:this.props.theme,socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:n=>{this.setState({showSelectId:!1}),this.props.socket.getObject(n).then(o=>{if(o){const r=V.getObjectNameFromObj(o,null,{language:this.language});V.updateSmartName(o,(r||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(o._id),this.waitForUpdateID=o._id,this.state.lastChanged!==o._id&&(this.setState({lastChanged:o._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(o._id,o).then(()=>this.informInstance(o._id)).catch(a=>this.setState({message:a}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectID1"):null}renderDevices(){const n=this.state.filter.toLowerCase(),o=[];for(let r=0;rthis.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(bt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(jt,{children:[m.jsx(ke,{sx:be.headerRow,children:m.jsx("div",{style:be.headerCell,children:E.t("Name")})}),m.jsx("div",{style:be.tableDiv,children:this.state.devices.map((n,o)=>m.jsx("div",{children:m.jsx("div",{style:be.tableCell,children:n.friendlyName})},o))})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const n=this.state.devices.map(o=>o.friendlyName);V.copyToClipboard(n.join(` -`))},color:"primary",startIcon:m.jsx(c_,{}),children:E.t("Copy to clipboard")}),m.jsx(he,{variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,color:"grey",children:E.t("Close")})]})]}):null}render(){return this.state.loading?m.jsx(ro,{},"alexaProgress"):m.jsxs("form",{style:be.tab,children:[m.jsx(Mt,{size:"small",color:"secondary","aria-label":"Add",disabled:!!this.state.lastChanged&&!!this.waitForUpdateID||!this.state.alive,style:be.button,onClick:()=>this.setState({showSelectId:!0}),children:this.state.lastChanged&&this.waitForUpdateID?m.jsx(ro,{}):m.jsx(Pi,{})}),m.jsx(Mt,{size:"small",color:"primary","aria-label":"Refresh",disable:!this.state.alive,style:be.button,onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(ro,{size:20}):m.jsx(Bi,{})}),m.jsx(Mt,{style:{...be.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse||!this.state.alive,children:m.jsx(O_,{})}),m.jsx(st,{variant:"standard",placeholder:E.t("Filter"),value:this.state.filter,onChange:n=>this.setState({filter:n.target.value}),slotProps:{input:{endAdornment:this.state.filter?m.jsx(ue,{onClick:()=>this.setState({filter:""}),children:m.jsx(D_,{})}):void 0}}}),this.renderDevices(),this.renderMessage(),this.renderEditDialog(),this.getSelectIdDialog(),this.renderConfirmDialog(),this.renderListOfDevices()]},"alexa")}}Br.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired,themeType:L.string,theme:L.object};const of="#aba613",ly="#444",rf="#00c6ff",Vlt="#ff7ee3",ri="#00bc00",Glt="#e7000040",qlt="#4f4f4f",Xlt="#e9e9e9",Jlt="#5c8f65",Ylt="#b4ffbe",Pr={OnOff:{color:of,icon:$0,desc:"On/Off"},Brightness:{color:rf,icon:Vm,desc:"Dimmer"},RGB:{color:Vlt,icon:Vm,desc:"Set color"},setTargetTemperature:{color:rf,icon:EM,desc:"Set target temperature"},incrementTargetTemperature:{color:of,icon:xc,desc:"Increment target temperature"},decrementTargetTemperature:{color:ly,icon:Sc,desc:"Decrement target temperature"},incrementPercentage:{color:of,icon:xc,desc:"Increment percentage"},decrementPercentage:{color:ly,icon:Sc,desc:"Decrement percentage"},setColor:{color:rf,icon:$M,desc:"Set color"},incrementColorTemperature:{color:of,icon:xc,desc:"Increment color temperature"},decrementColorTemperature:{color:ly,icon:Sc,desc:"Decrement color temperature"},getTargetTemperature:{color:ri,icon:zu,desc:"Get target temperature"},getTemperatureReading:{color:ri,icon:zu,desc:"Get actual temperature"},setLockState:{color:rf,icon:Gm,desc:"Set lock state"},getLockState:{color:ri,icon:Gm,desc:"Read lock state"},getActualTemperature:{color:ri,icon:zu,desc:"Get actual temperature"},getActualHumidity:{color:ri,icon:Mlt,desc:"Get actual humidity"},getMotion:{color:ri,icon:Olt,desc:"Get motion"},getContact:{color:ri,icon:Tlt,desc:"Get contact"}},ht={tab:{width:"100%",height:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20,height:"100%",overflow:"hidden"},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},filter:{margin:0},button:{marginRight:20},devLineExpand:{marginRight:10},devLineEnabled:{position:"absolute",right:0,top:0},devLineEdit:{position:"absolute",top:5,right:50},devLineDelete:{position:"absolute",top:5,right:0},devLineName:{},devLineNumber:{display:"inline-block",verticalAlign:"middle",width:15},editedId:{fontStyle:"italic"},enumLineSubName:{fontStyle:"italic"},devLine:{height:48,width:"100%",position:"relative"},devLineDescription:{display:"block",fontStyle:"italic",fontSize:12},devLineActions:{fontStyle:"italic",fontSize:12,paddingLeft:50,display:"inline-block"},devLineProgress:{position:"absolute",top:0,left:0},channelLineActions:{width:80},devLineNameBlock:{display:"inline-block",width:"calc(100% - 350px)"},devModified:{fontStyle:"italic"},actionIcon:{width:16},devSubLine:{position:"relative",height:48},devSubLineName:{marginLeft:5,marginTop:14,minWidth:100,display:"inline-block",fontSize:13,paddingLeft:70},devSubSubLine:{fontSize:10,fontStyle:"italic",display:"inline-block",marginLeft:15},devSubLineSetId:{fontStyle:"italic",display:"block",color:"#999"},devSubLineByOn:{marginLeft:5},devSubLineDelete:{position:"absolute",top:12,right:12,padding:0},devSubLineEdit:{position:"absolute",top:12,right:62,padding:0},devSubLineTypeTitle:{marginTop:0},headerRow:e=>({paddingLeft:e.spacing(1),background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"100%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"100%"}};class M_ extends C.Component{constructor(t){super(t),Pr.translated||(Object.keys(Pr).forEach(n=>Pr[n].desc=E.t(Pr[n].desc)),Pr.translated=!0),this.state={editedSmartName:"",editId:"",editObjectName:"",deleteId:"",showSelectId:!1,showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:[],lastChanged:""},this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.editedSmartName="",this.waitForUpdateID=null,this.onReadyUpdateBound=this.onReadyUpdate.bind(this),this.onResultUpdateBound=this.onResultUpdate.bind(this),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>{this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>{!n||!n.common||!n.common.enabled&&(!o||!o.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[]}):this.browse()})})}browse(t){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),t?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),this.browseTimer=setTimeout(()=>{this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(t):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browseAlisa",null).then(n=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,n&&n.error?this.setState({message:E.t(n.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,n)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),this.setState({devices:n,loading:!1,changed:[],browse:!1}))}))}onReadyUpdate(t,n){n&&n.ack===!0&&n.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},300))}onResultUpdate(t,n){n&&n.ack===!0&&n.val&&this.setState({message:n.val})}componentDidMount(){this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t,n){const o=JSON.parse(JSON.stringify(this.state.changed));o.includes(t)?n&&n():(o.push(t),this.setState({changed:o},()=>n&&n()))}onEdit(t,n){n=n||this.state.devices;const o=n.find(r=>r.iobID===t);if(o){let r=o.name;return typeof r=="object"&&r&&(r=r[E.getLanguage()]||r.en),this.editedSmartName=r,this.setState({editId:t,editedSmartName:r,editObjectName:r}),!0}return!1}onAskDelete(t){this.setState({deleteId:t,showConfirmation:!0})}onDelete(){const t=this.state.deleteId;this.addChanged(t,()=>{this.props.socket.getObject(t).then(n=>(V.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(t,n))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(t)}).catch(n=>this.props.onError(n))})}static renderActions(t){const n=[];if(!t.actions)return console.log("Something went wrong"),null;t.actions.sort((o,r)=>o===r?0:o==="OnOff"?-1:r==="OnOff"?1:0),Object.keys(Pr).forEach(o=>{if(t.actions.includes(o)){const r=Pr[o].icon;n.push(m.jsx("span",{title:Pr[o].desc,children:m.jsx(r,{style:{...ht.actionIcon,color:Pr[o].color}})},o))}});for(let o=0;o{o.push(m.jsxs("div",{style:{...ht.devSubLine,background:s},children:[m.jsx("div",{style:ht.devSubLineName,children:i.name.toUpperCase()}),m.jsxs("div",{style:ht.devSubSubLine,children:[m.jsx("div",{children:i.getId}),i.setId&&i.setId!==i.getId?m.jsx("div",{style:ht.devSubLineSetId,children:i.setId}):null]})]},`sub${i.getId}`))}),o}renderDevice(t,n){const o=this.state.expanded.includes(t.name);let r=n%2?this.props.themeType==="dark"?"#272727":"#f1f1f1":"inherit";const a=this.state.changed.includes(t.iobID);return a?r=Glt:t.iobID===this.state.lastChanged&&(r=this.props.themeType==="dark"?Jlt:Ylt),[m.jsxs("div",{style:{...ht.devLine,background:r},children:[m.jsxs("div",{style:ht.devLineNumber,children:[n+1,"."]}),m.jsx(ue,{style:ht.devLineExpand,onClick:()=>this.onExpand(n),children:t.attributes.length?m.jsx(sp,{badgeContent:t.attributes.length,color:"primary",children:o?m.jsx(Gc,{}):m.jsx(qc,{})}):o?m.jsx(Gc,{}):m.jsx(qc,{})}),m.jsxs("div",{style:{...ht.devLineNameBlock,display:"inline-block",position:"relative"},children:[m.jsx("span",{style:ht.devLineName,children:t.name}),m.jsx("span",{style:ht.devLineDescription,children:t.description}),a?m.jsx(ro,{style:ht.devLineProgress,size:20}):null]}),m.jsx("span",{style:ht.devLineActions,children:M_.renderActions(t)}),m.jsx(ue,{"aria-label":"Edit",style:ht.devLineEdit,onClick:()=>this.onEdit(t.iobID),children:m.jsx(A_,{fontSize:"middle"})}),m.jsx(ue,{"aria-label":"Delete",style:ht.devLineDelete,onClick:()=>this.onAskDelete(t.iobID),children:m.jsx(js,{fontSize:"middle"})})]},`line${n}`),o?this.renderChannels(t,n):null]}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(t){t&&t.preventDefault(),this.addChanged(this.state.editId,()=>{const n=this.state.editId;this.setState({editId:"",editObjectName:"",lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.props.socket.getObject(n).then(o=>(V.updateSmartName(o,this.editedSmartName,void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(n,o))).then(()=>this.informInstance(n)).catch(o=>this.props.onError(o))})}renderEditDialog(){return this.state.editId?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>{this.editedSmartName=null,this.setState({editId:"",editedSmartName:""})},"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(bt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",this.state.editObjectName)}),m.jsxs(jt,{children:[m.jsxs("p",{children:[m.jsx("span",{children:"ID:"})," ",m.jsx("span",{style:ht.editedId,children:this.state.editId})]}),m.jsx(st,{variant:"standard",style:{width:"100%"},label:E.t("Smart name"),autoFocus:!0,onKeyDown:t=>t.key==="Enter"&&this.changeSmartName(t),onChange:t=>this.editedSmartName=t.target.value,defaultValue:this.state.editedSmartName,helperText:E.t("You can enter several names divided by comma"),margin:"normal"})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(qn,{}),children:E.t("Ok")}),m.jsx(he,{variant:"contained",startIcon:m.jsx(Dt,{}),color:"grey",onClick:()=>{this.editedSmartName=null,this.setState({editId:"",editedSmartName:""})},children:E.t("Cancel")})]})]}):null}renderConfirmDialog(){return this.state.showConfirmation?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({showConfirmation:""}),"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[m.jsx(bt,{id:"confirmation-dialog-title",children:this.props.title||E.t("Device %s will be disabled.",this.state.deleteId)}),m.jsx(jt,{children:m.jsx("p",{children:E.t("Are you sure?")})}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.onDelete(),color:"primary",autoFocus:!0,startIcon:m.jsx(js,{}),children:E.t("Delete")}),m.jsx(he,{color:"grey",variant:"contained",onClick:()=>this.setState({showConfirmation:""}),startIcon:m.jsx(Dt,{}),children:E.t("Cancel")})]})]}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:t=>{this.setState({showSelectId:!1}),this.props.socket.getObject(t).then(n=>{if(n){const o=V.getObjectNameFromObj(n,null,{language:E.getLanguage()});V.updateSmartName(n,(o||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(n._id),this.waitForUpdateID=n._id,this.state.lastChanged!==n._id&&(this.setState({lastChanged:n._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(n._id,n).then(()=>this.informInstance(n._id)).catch(r=>this.setState({message:r}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectAlisa"):null}renderDevices(){const t=this.state.filter.toLowerCase(),n=[];for(let o=0;othis.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(bt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(jt,{children:[m.jsx(ke,{sx:ht.headerRow,children:m.jsx("div",{style:ht.headerCell,children:E.t("Name")})}),m.jsx("div",{style:ht.tableDiv,children:this.state.devices.map((t,n)=>m.jsx("div",{children:m.jsx("div",{style:ht.tableCell,children:t.name})},n))})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const t=this.state.devices.map(n=>n.name);V.copyToClipboard(t.join(` -`))},color:"primary",startIcon:m.jsx(c_,{}),children:E.t("Copy to clipboard")}),m.jsx(he,{color:"grey",variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,children:E.t("Close")})]})]}):null}render(){return this.state.loading?m.jsx(ro,{},"alexaProgress"):m.jsxs("form",{style:ht.tab,children:[m.jsx(Mt,{size:"small",color:"secondary","aria-label":"Add",style:ht.button,onClick:()=>this.setState({showSelectId:!0}),children:m.jsx(Pi,{})}),m.jsx(Mt,{size:"small",color:"primary","aria-label":"Refresh",style:ht.button,onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(ro,{size:20}):m.jsx(Bi,{})}),m.jsx(Mt,{style:{...ht.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse,children:m.jsx(O_,{})}),m.jsx(st,{variant:"standard",placeholder:E.t("Filter"),className:this.state.filter,value:this.state.filter,onChange:t=>this.setState({filter:t.target.value}),slotProps:{input:{endAdornment:this.state.filter?m.jsx(ue,{onClick:()=>this.setState({filter:""}),children:m.jsx(D_,{})}):void 0}}}),this.renderDevices(),this.renderMessage(),this.renderEditDialog(),this.getSelectIdDialog(),this.renderConfirmDialog(),this.renderListOfDevices()]},"alexa")}}M_.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired,themeType:L.string,theme:L.object};function Cc(e,t,n){if(typeof t=="string"&&(t=t.split(".")),!e)return null;if(t.length===1)return n&&n[e[t[0]]]?n[e[t[0]]]:e[t[0]];const o=t.shift();return Cc(e[o],t)}function TM(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)return e[t[0]]=n;const o=t.shift();return(e[o]===null||e[o]===void 0)&&(e[o]={}),TM(e[o],t,n)}const Je={tableContainer:{width:"100%",height:"100%",overflow:"auto"},table:{width:"100%",minWidth:800,maxWidth:1920},cell:{paddingTop:0,paddingBottom:0,paddingLeft:4,paddingRight:4},rowMainWithChildren:{},rowMainWithoutChildren:{},rowNoEdit:{opacity:.3},cellExpand:{width:30},cellButton:{width:30},cellHeader:e=>({fontWeight:"bold",background:(e.palette.mode==="dark","#888"),color:e.palette.mode==="dark"?"#EEE":"#111",height:48,wordBreak:"break-word",whiteSpace:"pre"}),width_name_nicknames:{maxWidth:150},width_ioType:{maxWidth:100},width_type:{maxWidth:100},width_displayTraits:{maxWidth:100},width_roomHint:{maxWidth:100},rowSecondary:{fontStyle:"italic"},cellSecondary:{fontSize:10},visuallyHidden:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}};function QE(e,t,n,o){const r=Cc(e,n,o)||"",a=Cc(t,n,o)||"";return ar?1:0}function Klt(e,t,n){return e==="desc"?(o,r)=>QE(o,r,t,n):(o,r)=>-QE(o,r,t,n)}function Zlt(e,t){const n=e.map((o,r)=>[o,r]);return n.sort((o,r)=>{const a=t(o[0],r[0]);return a||o[1]-r[1]}),n.map(o=>o[0])}class OM extends p.Component{constructor(t){super(t);let n=window.localStorage.getItem("iot.ghome.opened")||"[]";try{n=JSON.parse(n)||[]}catch{n=[]}Array.isArray(n)||(n=[]),this.state={opened:n,editMode:!1,deleteMode:!1,editData:null,order:"asc",orderBy:this.props.columns[0].field}}renderCell(t,n,o,r){if(this.state.editMode===r&&n.editable!=="never"){let a=Cc(t,n.field);return Array.isArray(a)&&(a=a[0]),m.jsx(gr,{style:{...Je.cell,...o?Je.cellSecondary:void 0,...n.cellStyle},component:"th",children:n.lookup?m.jsx(_n,{variant:"standard",onChange:s=>{const i=this.state.editData?{...this.state.editData}:{};s.target.value===a?delete i[n.field]:i[n.field]=s.target.value,this.setState({editData:i})},value:this.state.editData&&this.state.editData[n.field]||a,children:Object.keys(n.lookup).map(s=>m.jsx(je,{value:s,children:n.lookup[s]}))}):m.jsx(st,{variant:"standard",value:this.state.editData&&this.state.editData[n.field]!==void 0?this.state.editData[n.field]:a,onChange:s=>{const i=this.state.editData?{...this.state.editData}:{};s.target.value===a?delete i[n.field]:i[n.field]=s.target.value,this.setState({editData:i})}})},n.field)}return m.jsx(gr,{style:{...Je.cell,...o?Je.cellSecondary:void 0,...n.cellStyle},component:"th",children:Cc(t,n.field,n.lookup)},n.field)}renderLine(t,n){n=n||0;const o=this.props.data.indexOf(t);if(!t||!n&&t.parentId||n&&!t.parentId)return null;const r=this.props.data.filter(s=>s.parentId===t.id),a=this.state.opened.includes(t.id);return[m.jsxs(gC,{style:{...Je.row,...n?Je.rowSecondary:void 0,...!n&&r.length?Je.rowMainWithChildren:void 0,...!n&&!r.length?Je.rowMainWithoutChildren:void 0,...this.state.editMode!==!1&&this.state.editMode!==o?Je.rowNoEdit:void 0,...this.state.deleteMode!==!1&&this.state.deleteMode!==o?Je.rowNoEdit:void 0},children:[m.jsx(gr,{style:{...Je.cell,...Je.cellExpand,...n?Je.cellSecondary:void 0},children:r.length?m.jsx(ue,{onClick:()=>{const s=[...this.state.opened],i=s.indexOf(t.id);i===-1?(s.push(t.id),s.sort()):s.splice(i,1),this.setState({opened:s})},children:a?m.jsx(dX,{}):m.jsx(EX,{})}):null}),m.jsx(gr,{scope:"row",style:{...Je.cell,...n?Je.cellSecondary:void 0,...this.props.columns[0].cellStyle},children:Cc(t,this.props.columns[0].field,this.props.columns[0].lookup)}),this.props.columns.map((s,i)=>i?this.renderCell(t,s,n,o):null),m.jsx(gr,{style:{...Je.cell,...Je.cellButton},children:this.state.editMode===o||this.state.deleteMode===o?m.jsx(ue,{disabled:this.state.editMode!==!1&&(!this.state.editData||!Object.keys(this.state.editData).length),onClick:()=>{if(this.state.editMode!==!1){const s=JSON.parse(JSON.stringify(t));this.state.editData&&Object.keys(this.state.editData).forEach(i=>TM(s,i,this.state.editData[i])),this.setState({editMode:!1},()=>this.props.onUpdate(s,t))}else this.setState({deleteMode:!1},()=>this.props.onDelete(t))},children:m.jsx(qn,{})}):m.jsx(ue,{disabled:this.state.editMode!==!1,onClick:()=>this.setState({editMode:o,editData:null}),children:m.jsx(Au,{})})}),m.jsx(gr,{style:{...Je.cell,...Je.cellButton},children:this.state.editMode===o||this.state.deleteMode===o?m.jsx(ue,{onClick:()=>this.setState({editMode:!1,deleteMode:!1}),children:m.jsx(Dt,{})}):m.jsx(ue,{disabled:this.state.deleteMode!==!1,onClick:()=>this.setState({deleteMode:o}),children:m.jsx(Ns,{})})})]},t.id),!n&&this.state.opened.includes(t.id)?r.map(s=>this.renderLine(s,n+1)):null]}handleRequestSort(t){const n=this.state.orderBy===t&&this.state.order==="asc";this.setState({order:n?"desc":"asc",orderBy:t})}renderHead(){return m.jsx(XH,{children:m.jsxs(gC,{children:[m.jsx(gr,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je.cellExpand}}),m.jsx(gr,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je[`width_${this.props.columns[0].field.replace(/\./g,"_")}`],...this.props.columns[0].cellStyle||void 0},sortDirection:this.state.orderBy===this.props.columns[0].field?this.state.order:!1,children:m.jsxs(_C,{active:this.state.orderBy===this.props.columns[0].field,direction:this.state.orderBy===this.props.columns[0].field?this.state.order:"asc",onClick:()=>this.handleRequestSort(this.props.columns[0].field),children:[this.props.columns[0].title,this.state.orderBy===this.props.columns[0].field?m.jsx("span",{style:Je.visuallyHidden,children:this.state.order==="desc"?"sorted descending":"sorted ascending"}):null]})}),this.props.columns.map((t,n)=>n?m.jsx(gr,{sx:Je.cellHeader,style:{...Je.cell,...Je[`width_${t.field.replace(/\./g,"_")}`],...t.cellStyle},component:"th",children:m.jsxs(_C,{active:this.state.orderBy===t.field,direction:this.state.orderBy===t.field?this.state.order:"asc",onClick:()=>this.handleRequestSort(t.field),children:[t.title,this.state.orderBy===t.field?m.jsx("span",{style:Je.visuallyHidden,children:this.state.order==="desc"?"sorted descending":"sorted ascending"}):null]})},t.field):null),m.jsx(gr,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je.cellButton}}),m.jsx(gr,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je.cellButton}})]})})}render(){const t=this.props.columns?this.props.columns.find(o=>o.field===this.state.orderBy).lookup:"",n=Zlt(this.props.data,Klt(this.state.order,this.state.orderBy,t));return m.jsx("div",{style:{...Je.tableContainer,...this.props.style||void 0},className:this.props.className,children:m.jsxs(jH,{style:Je.table,"aria-label":"simple table",size:"small",stickyHeader:!0,children:[this.renderHead(),m.jsx(FH,{children:n.map(o=>this.renderLine(o))})]})})}}OM.propTypes={data:L.array.isRequired,className:L.string,columns:L.array,onUpdate:L.func,onDelete:L.func};const Ln={tab:{height:"100%",overflow:"hidden"},tableDiv:{width:"100%",overflow:"hidden",height:"calc(100% - 48px)"},searchText:{width:150,marginLeft:8,verticalAlign:"middle"},headerRow:e=>({pl:1,background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"30%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"30%"}},eT=400,tT=400;class $c extends C.Component{constructor(t){super(t),this.state={editedSmartName:"",editId:"",editObjectName:"",deleteId:"",expertMode:window.localStorage.getItem("App.expertMode")!=="true",helpHidden:window.localStorage.getItem("App.helpHidden")==="true",showSelectId:!1,searchText:"",showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:[],lastChanged:"",helpHeight:0},this.columns=[{title:E.t("ID"),field:"id",editable:"never",cellStyle:{maxWidth:"12rem",overflow:"hidden",wordBreak:"break-word"}},{title:E.t("Smart names"),field:"name.nicknames"},{title:E.t("ioBType"),field:"ioType",editable:"never",cellStyle:{maxWidth:"4rem",overflow:"hidden",wordBreak:"break-word"}},{title:E.t("Type"),field:"type",lookup:{"action.devices.types.AC_UNIT":"Air conditioning unit","action.devices.types.AIRFRESHENER":"Air Freshener","action.devices.types.AIRPURIFIER":"Air purifier","action.devices.types.AWNING":"Awning","action.devices.types.BLINDS":"Blinds","action.devices.types.BOILER":"Boiler","action.devices.types.CAMERA":"Camera","action.devices.types.COFFEE_MAKER":"Coffee maker","action.devices.types.CURTAIN":"Curtain","action.devices.types.DISHWASHER":"Dishwasher","action.devices.types.DOOR":"Door","action.devices.types.DRYER":"Dryer","action.devices.types.FAN":"Fan","action.devices.types.FIREPLACE":"Fireplace","action.devices.types.GARAGE":"Garage","action.devices.types.GATE":"Gate","action.devices.types.HEATER":"Heater","action.devices.types.HOOD":"Hood","action.devices.types.KETTLE":"Kettle","action.devices.types.LIGHT":"Light","action.devices.types.LOCK":"Lock","action.devices.types.MOP":"Mop","action.devices.types.MICROWAVE":"Microwave","action.devices.types.OUTLET":"Outlet","action.devices.types.OVEN":"Oven","action.devices.types.PERGOLA":"Pergola","action.devices.types.REFRIGERATOR":"Refrigerator","action.devices.types.SCENE":"Scene","action.devices.types.SECURITYSYSTEM":"Security System","action.devices.types.SENSOR":"Sensor","action.devices.types.SHUTTER":"Shutter","action.devices.types.SHOWER":"Shower","action.devices.types.SPEAKER":"Speaker","action.devices.types.SPRINKLER":"Sprinkler","action.devices.types.SWITCH":"Switch","action.devices.types.THERMOSTAT":"Thermostat","action.devices.types.VACUUM":"Vacuum","action.devices.types.VALVE":"Valve","action.devices.types.WASHER":"Washer","action.devices.types.WATERHEATER":"Water heater","action.devices.types.WINDOW":"Window"}},{title:E.t("Function/Trait"),field:"displayTraits",lookup:{"action.devices.traits.Brightness":"Brightness","action.devices.traits.ColorSetting_temperature":"ColorSetting_Temperature","action.devices.traits.ColorSetting_spectrumRGB":"ColorSetting_RGB","action.devices.traits.FanSpeed":"FanSpeed","action.devices.traits.LockUnlock":"LockUnlock","action.devices.traits.Modes":"Modes","action.devices.traits.OnOff":"OnOff","action.devices.traits.OpenClose":"OpenClose","action.devices.traits.Scene":"Scene","action.devices.traits.StartStop":"StartStop","action.devices.traits.TemperatureControl_temperatureSetpointCelsius":"Oven_SetTemp","action.devices.traits.TemperatureControl_temperatureAmbientCelsius":"Oven_StatusTemp","action.devices.traits.TemperatureSetting_thermostatMode":"Thermostat_Mode","action.devices.traits.TemperatureSetting_thermostatTemperatureSetpoint":"Thermostat_SetTemp","action.devices.traits.TemperatureSetting_thermostatTemperatureAmbient":"Thermostat_StatusTemp","action.devices.traits.TemperatureSetting_thermostatHumidityAmbient":"Thermostat_StatusHumidity","action.devices.traits.Toggles":"Toggles","action.devices.traits.Volume":"Volume"}},{title:E.t("Attributes"),field:"displayAttributes",cellStyle:{maxWidth:"12rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0,editComponent:$c.editDisplayAttributesComponent},{title:E.t("Room"),field:"roomHint",editable:"never"},{title:E.t("Auto"),field:"smartEnum",editable:"never",cellStyle:{maxWidth:"3rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0},{title:E.t("Conversation to GH"),field:"displayConv2GH",cellStyle:{maxWidth:"4rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0,editComponent:$c.editDisplayConv2GH},{title:E.t("Conversation to ioB"),field:"displayConv2iob",cellStyle:{maxWidth:"4rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0,editComponent:$c.editDisplayConv2iob}],this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.editedSmartName="",this.waitForUpdateID=null,this.onReadyUpdateBound=this.onReadyUpdate.bind(this),this.onResultUpdateBound=this.onResultUpdate.bind(this),this.helpRef=p.createRef(),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>{!n||!n.common||!n.common.enabled&&(!o||!o.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[]}):this.browse()}))}static editDisplayConv2GH(t){return m.jsxs("div",{children:["Conversation to Google Home = function(value){",m.jsx("br",{}),m.jsx("textarea",{rows:4,style:{width:"100%",resize:"vertical"},value:t.value,onChange:n=>t.onChange(n.target.value)}),"}"]})}static editDisplayConv2iob(t){return m.jsxs("div",{children:["Conversation to ioBroker = function(value){",m.jsx("br",{}),m.jsx("textarea",{rows:4,style:{width:"100%",resize:"vertical"},value:t.value,onChange:n=>t.onChange(n.target.value)}),"}"]})}static editDisplayAttributesComponent(t){return m.jsx("textarea",{rows:4,style:{width:"100%",resize:"vertical"},value:t.value,onChange:n=>t.onChange(n.target.value)})}browse(t){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),t?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),this.browseTimer=setTimeout(()=>{console.log("Browse timeout!"),this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(t):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browseGH",null).then(n=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,n&&n.error?this.setState({message:E.t(n.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,n)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),this.setState({devices:n,loading:!1,changed:[],browse:!1}))}).catch(n=>this.setState({message:E.t(n),browse:!1})))}onReadyUpdate(t,n){console.log(`Update ${t} ${n?`${n.val}/${n.ack}`:"null"}`),n&&n.ack===!0&&n.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},10))}onResultUpdate(t){t&&t.ack===!0&&t.val&&this.setState({message:t.val})}componentDidMount(){this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesGH`,this.onReadyUpdateBound),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesGH`,this.onReadyUpdateBound),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t,n){const o=JSON.parse(JSON.stringify(this.state.changed));o.includes(t)?n&&n():(o.push(t),this.setState({changed:o},()=>n&&n()))}onEdit(t,n){n=n||this.state.devices;const o=n.find(r=>r.id===t);return o?(this.props.socket.getObject(t).then(r=>{let a=o.common&&o.common.smartName?o.common.smartName:o._id;typeof a=="object"&&a&&(a=a[E.getLanguage()]||a.en),this.editedSmartName=a,this.setState({editId:t,editedSmartName:a,editObjectName:V.getObjectNameFromObj(r,null,{language:E.getLanguage()})})}),!0):!1}onDelete(){const t=this.state.deleteId;this.addChanged(t,()=>{this.props.socket.getObject(t).then(n=>(V.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(t,n))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(t)}).catch(n=>this.props.onError(n))})}onGHParamsChange(t,n){this.addChanged(t.id,()=>{this.props.socket.getObject(t.id).then(o=>{if(!o||!o.common)return this.setState({message:E.t("Object %s is invalid. No common found.",t.id)});if(V.updateSmartName(o,this.editedSmartName,void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),JSON.stringify(t.displayTraits)!==JSON.stringify(n.displayTraits)&&(Array.isArray(t.displayTraits)||(t.displayTraits=[t.displayTraits]),o.common.smartName.ghTraits=t.displayTraits),t.type!==n.type&&(o.common.smartName.ghType=t.type),t.displayAttributes!==n.displayAttributes){o.common.smartName.ghAttributes=t.displayAttributes;try{o.common.smartName.ghAttributes&&JSON.parse(o.common.smartName.ghAttributes)}catch{this.setState({message:E.t("Attributes has not correct JSON format.")})}}return t.conv2GH&&(o.common.smartName.ghConv2GH=t.displayConv2GH),t.conv2iob&&(o.common.smartName.ghConv2iob=t.displayConv2iob),this.props.socket.setObject(t.id,o)}).then(()=>this.informInstance(t.id)).catch(o=>this.props.onError(o))})}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:t=>{this.setState({showSelectId:!1}),this.props.socket.getObject(t).then(n=>{if(n){if(!n.common){this.setState({message:E.t("Object %s is invalid. No common found.",t)});return}const o=V.getObjectNameFromObj(n,null,{language:E.getLanguage()});V.updateSmartName(n,(o||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(n._id),this.waitForUpdateID=n._id,this.state.lastChanged!==n._id&&(this.setState({lastChanged:n._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),n.common.smartName?(n.common.smartName.ghType="action.devices.types.LIGHT",n.common.smartName.ghTraits=["action.devices.traits.OnOff"]):(n.common.smartName={ghType:"action.devices.types.LIGHT"},n.common.smartName={ghTraits:["action.devices.traits.OnOff"]}),this.props.socket.setObject(n._id,n).then(()=>{this.informInstance(n._id),this.setState({message:E.t("Please add type and trait to complete the Google Home state.")})}).catch(r=>this.setState({message:r}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectGoogle"):null}renderListOfDevices(){return this.state.showListOfDevices?m.jsxs(yt,{open:!0,maxWidth:"xl",fullWidth:!0,onClose:()=>this.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(bt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(jt,{children:[m.jsxs(ke,{sx:Ln.headerRow,children:[m.jsx("div",{style:Ln.headerCell,children:E.t("Name")}),m.jsx("div",{style:Ln.headerCell,children:E.t("Function")}),m.jsx("div",{style:Ln.headerCell,children:E.t("Room")})]}),m.jsx("div",{style:Ln.tableDiv,children:this.state.devices.map((t,n)=>m.jsxs("div",{children:[m.jsx("div",{style:Ln.tableCell,children:t.name.nicknames.join(", ")}),m.jsx("div",{style:Ln.tableCell,children:t.displayTraits.map(o=>o.replace("action.devices.traits.","")).join(", ")}),m.jsx("div",{style:Ln.tableCell,children:t.roomHint})]},n))})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const t=this.state.devices.map(n=>`${n.name.nicknames.join(", ")} ${n.displayTraits} ${n.roomHint}`);V.copyToClipboard(t.join(` -`))},color:"primary",startIcon:m.jsx(c_,{}),children:E.t("Copy to clipboard")}),m.jsx(he,{color:"grey",startIcon:m.jsx(Dt,{}),variant:"contained",onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,children:E.t("Close")})]})]}):null}renderInstructions(){const t=window.innerHeight>eT&&window.innerWidth>tT;if(this.state.helpHidden||this.props.smallDisplay||!t)return null;const n=E.t("manualModeHint");return m.jsxs("div",{style:{width:"100%"},ref:this.helpRef,children:[m.jsxs("div",{style:{marginTop:"4rem",display:"flex"},children:[m.jsxs("div",{style:{flex:"50%"},children:[m.jsx("div",{style:{fontWeight:"bold"},children:E.t("Auto Mode")}),m.jsx("div",{style:{marginTop:"0.8rem",marginRight:"0.8rem"},children:E.t("To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung")})]}),m.jsxs("div",{style:{flex:"50%"},children:[m.jsx("div",{style:{fontWeight:"bold"},children:E.t("Manual Mode")}),m.jsx("span",{children:V.renderTextWithA(n)})]})]}),m.jsx("br",{}),m.jsx("div",{style:{flex:"100%"},children:m.jsx("div",{style:{fontWeight:"bold"},children:V.renderTextWithA(E.t("For help use this forum"))})})]})}renderToolbar(){const t=window.innerHeight>eT&&window.innerWidth>tT;return m.jsxs(aw,{variant:"dense",children:[m.jsx(Mt,{size:"small",color:"secondary","aria-label":"Add",style:Ln.button,onClick:()=>this.setState({showSelectId:!0}),children:m.jsx(Pi,{})}),m.jsx(Mt,{style:{...Ln.button,marginLeft:"1rem"},size:"small",color:"primary","aria-label":"Refresh",onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(ro,{size:20}):m.jsx(Bi,{})}),t&&!this.state.hideHelp?m.jsx(Mt,{style:{...Ln.button,marginLeft:"1rem"},size:"small",color:this.state.helpHidden?"default":"primary","aria-label":"Help",title:E.t("Show/Hide help"),onClick:()=>{window.localStorage.setItem("App.helpHidden",this.state.helpHidden?"false":"true"),this.setState({helpHidden:!this.state.helpHidden})},disabled:this.state.browse,children:m.jsx(xlt,{})}):null,m.jsx(Mt,{style:{...Ln.button,marginLeft:"1rem"},size:"small",color:this.state.expertMode?"primary":"default","aria-label":"Help",title:E.t("Toggle expert mode"),onClick:()=>{window.localStorage.setItem("App.expertMode",this.state.expertMode?"false":"true"),this.setState({expertMode:!this.state.expertMode})},disabled:this.state.browse,children:m.jsx(Lm,{})}),m.jsx(Mt,{style:{...Ln.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse,children:m.jsx(O_,{})}),this.props.smallDisplay?null:m.jsx(st,{variant:"standard",style:Ln.searchText,label:E.t("Filter"),value:this.state.searchText,onChange:n=>this.setState({searchText:n.target.value}),slotProps:{input:{endAdornment:this.state.searchText?m.jsx(ue,{onClick:()=>this.setState({searchText:""}),children:m.jsx(D_,{})}):void 0}}})]})}componentDidUpdate(){if(this.helpRef.current){const t=this.helpRef.current.clientHeight;this.state.helpHeight!==t&&(!this.state.helpHidden&&t+64+48+200>window.innerHeight?setTimeout(()=>this.setState({helpHeight:t,helpHidden:!0,hideHelp:!0}),50):setTimeout(()=>this.setState({helpHeight:t}),50))}else this.state.helpHeight&&setTimeout(()=>this.setState({helpHeight:0}),50)}render(){if(this.state.loading)return m.jsx(ro,{},"alexaProgress");const t=this.state.searchText.toLowerCase(),n=this.state.searchText?this.state.devices.filter(o=>{var r,a,s,i,l,d;return((a=(r=o.name)==null?void 0:r.name)==null?void 0:a.toLowerCase().includes(t))||((i=(s=o.name)==null?void 0:s.defaultNames)==null?void 0:i.find(u=>u.toLowerCase().includes(t)))||((d=(l=o.name)==null?void 0:l.nicknames)==null?void 0:d.find(u=>u.toLowerCase().includes(t)))}):this.state.devices;return m.jsxs("form",{style:Ln.tab,children:[this.renderToolbar(),this.renderInstructions(),m.jsx("div",{style:{...Ln.tableDiv,height:`calc(100% - ${48+(this.state.helpHeight?this.state.helpHeight+64:0)}px)`},children:m.jsx(OM,{columns:this.state.expertMode?this.columns:this.columns.filter(o=>!o.expertMode),data:n,onUpdate:(o,r)=>{o.name.nicknames&&Array.isArray(o.name.nicknames)&&(o.name.nicknames=o.name.nicknames.join(",")),this.editedSmartName=o.name.nicknames,this.setState({editId:o.id},()=>{!o.type||!o.displayTraits?this.setState({browse:!0,message:E.t("Please add action and trait to complete the Google Home state.")}):this.setState({browse:!0}),this.onGHParamsChange(o,r);const a=JSON.parse(JSON.stringify(this.state.devices));a[a.indexOf(r)]=o,this.setState({...this.state,devices:a})})},onDelete:o=>(o.smartEnum==="X"?this.setState({deleteId:o.id}):this.props.socket.getObject(o.id).then(r=>(r&&r.common&&r.common.smartName&&(delete r.common.smartName.ghTraits,delete r.common.smartName.ghType,delete r.common.smartName.ghAttributes),this.props.socket.setObject(o.id,r))),new Promise(r=>{setTimeout(()=>{this.state.deleteId?this.onDelete():this.informInstance(o.id),r();const a=JSON.parse(JSON.stringify(this.state.devices));a.splice(a.indexOf(o),1),this.setState({...this.state,devices:a})},600)}))})}),this.renderMessage(),this.getSelectIdDialog(),this.renderListOfDevices()]},"gh")}}$c.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired,theme:L.object};const Qlt=()=>e=>t=>m.jsx(e,{smallDisplay:m5("(max-width:600px)"),...t}),ect=Qlt()($c),tct="Active",nct="Addresses",oct="Cancel",rct="Close",act="Commands",sct="Default",ict="Dimmer",lct="Filter",cct="Functions",dct="Instance",uct="Language",pct="Message",hct="off",fct="Ok",mct="on",gct="Options",_ct="Review",vct="Rooms",yct="Save",bct="Select",wct="Type",Sct="Types",xct="Value",Cct="clear",$ct="disabled",kct='Before writing to support be sure you have read and understand the instructions of the web page:
https://www.iobroker.net',Ect='If you still have issue with the connection to Iot, you can request support im Forum',Tct='and only after that you should write an email to support@iobroker.com',Oct='No iobroker.pro account? Buy it on https://iobroker.pro for validated access or get for free, but limited access.',Dct="divided by comma. Use * to allow all services.",Act="You can find your key here under 'Documentation'",Mct="Name was modified by user",Nct="If you use your own cloud, you can allow the use of self-signed certificates for the cloud.",jct="This key is required to communicate with a cloud. You can get the API-KEY on https://iobroker.net and it looks like nickname_f1f439a0-001a-11e7-bc64-92361f002671",zct="Normally you do not need to change it. Only required if you plan to use your own cloud.",Rct="Define how to concatenate Room and Function. E.g. with 'in': Light in living room.",Ict="Some groups consist of mixed devices: dimmers and switches. It is allowed to control them with ON and OFF commands and with percents",Lct="Normally the names looks like room_function. Here you can switch it to function_room.",Fct="Web instance, which will be shown for your connections from cloud.",Pct="You can define the languages to switch fast between US Alexa Skill and DE Alexa Skill.",Bct="If enabled, the settings will be stored only for this instance. So in the another instance the other names could be set.",Hct="For every command the text response will be generated. You can define here the Object ID , where this text must be written to. E.g. sayit.0.tts.text.",Uct="Workaround for missing connection to Alexa after the connection to cloud was lost. With this option you can restart adapter after each disconnection and it will work.",Wct="You cannot use % in password. We are working on the fix.",Vct=`Password must be at least 8 characters long and must have numbers, upper and lower case letters. Please change it in the ioBroker.pro profile -`,Gct="If you made a restore from backup, or moved your instance from one device to other or deleted the IoT instance and added it again you must load the connection security certificates with this button",qct="If the login to the Alexa Skill/Google Action/Alisa with the ioBroker.pro login data fails, then please press the below button.",Xct='Any questions in any language please ask here in forum: link',Jct="Please select a TYPE and a TRAIT after adding a state. To add multiple traits add a different id and trait but same smart name, type and room. Comma separated for the multiple smart names. To assign a room please use the ioBroker Enums/Aufzählungen. With attributes you can for example set a range for the color temperature Infos about Attributes you can find here. Empty attribute is {}",Yct="Search",Kct="Name",Zct="Room",Qct="ID",edt="IoB Type",tdt="Attributes",ndt="Automatically",odt="Delete",rdt="Dimmer",adt="On/Off",sdt="Color",idt="Detection",ldt="Lock",cdt="Mode",ddt="Muted",udt="Percentage",pdt="Temperature",hdt="Volume",fdt="socket",mdt="light",gdt="dimmer",_dt="thermostat",vdt="window blinds",ydt="gate",bdt="lock",wdt="hue",Sdt="motion",xdt="slider",Cdt="temperature",$dt="window",kdt="Thermostat",Edt="Light",Tdt="Air condition",Odt="Window blinds",Ddt="Contact sensor",Adt="Control",Mdt="Door",Ndt="Gate",jdt="Hue",zdt="Motion",Rdt="Slider",Idt="Socket",Ldt="Vacuum cleaner",Fdt="Volume group",Pdt="Window",Bdt="Sensor",Hdt="Window blinds",Udt="Toggle",Wdt={"(Set to 0 if behavior not desired)":"(Set to 0 if behavior not desired)","(you can separate names with comma)":"You can enter several names divided by comma",Active:tct,"Add device":"Add device","Add service":"Add service",Addresses:nct,"Alexa devices":"Alexa devices","Alisa devices":"Alisa devices","Allow admin access (only pro)":"Allow admin access (only pro)","Allow self-signed certificates":"Allow self-signed certificates","Amazon Alexa":"Amazon Alexa","Are you sure?":"Are you sure?","Attributes has not correct JSON format.":"Attributes is not in the correct JSON format","Authentication must be disabled. You can create second instance extra for cloud.":"Authentication must be disabled. You can create a second instance extra for the cloud.",Cancel:oct,"Cannot add this object":"Cannot add this object, because not supported.","Cannot read devices!":"Cannot read devices!","Certificates will be updated after initiated restart":"Certificates will be updated after initiated restart","Certificates will be updated after start":"Certificates will be updated after start","Click now Get new connection certificates to request new temporary password":'Click now "Get new connection certificates" to request new temporary password',Close:rct,"Cloud URL":"Cloud URL","Cloud adapter settings":"Cloud adapter settings",Commands:act,"Concatenate words with":"Concatenate words with","Connection timeout":"Connection timeout(ms)","Debug outputs":"Debug outputs","Decrement color temperature":"Decrement color temperature","Decrement percentage":"Decrement percentage","Decrement target temperature":"Decrement target temperature",Default:sct,"Device %s was not added":"Device %s was not added","Device will be deactivated.":"Device will be deactivated.","Device will be disabled.":"Device %s will be disabled.",Dimmer:ict,"Duplicate name":"Duplicate name","Edit smart name":"Edit smart name",Error:"Error","Extended options":"Extended options",Filter:lct,"For help use this forum":"For help, visit this forum post",Functions:cct,"Get actual temperature":"Get actual temperature","Get new connection certificates":"Get new connection certificates","Get new service URL key":"Get new service URL key","Get target temperature":"Get target temperature","Google Home":"Google Home","IFTTT key":"IFTTT key","Increment color temperature":"Increment color temperature","Increment percentage":"Increment percentage","Increment target temperature":"Increment target temperature",Instance:dct,"Instance does not exists":"Instance does not exists","Instance is not active.":"Instance is not active.","Instance must be enabled":"Instance must be enabled","Instance must run to deliver the data":"The instance must run to deliver the data","Invalid object":"Invalid object",Language:uct,"Load configuration from file":"Load configuration from file",Message:pct,"OFF level for switches":"OFF level for switches","OFF level for switches in %":"OFF level for switches in %",Off:hct,Ok:fct,On:mct,"On/Off":"On/Off",Options:gct,"Personal settings (only pro)":"Personal settings (only pro)","Ping timeout:":"Ping timeout(ms)","Place function in names first":"Place function in names first","Please add action and trait to complete the Google Home state.":"Please add action and trait to complete the Google Home state.","Please add type and trait to complete the Google Home state.":"Please add type and trait to complete the Google Home state.","Please select object ID...":"Please select object ID...","Please write your email only in lower case letters":"Please write your email only in lower case letters","Read lock state":"Read lock state","Replace in names":"Replace in names","Request email with password one more time":"Request email with password one more time","Restart on disconnect":"Restart on disconnect",Review:_ct,Rooms:vct,Save:yct,"Save and close":"Save and close","Save configuration to file":"Save configuration to file","Save settings and the names will be changed":"Save settings and the names will be changed",Select:bct,"Service names":"Service names","Services and IFTTT":"Services and IFTTT","Set color":"Set color","Set color temperature":"Set color temperature","Set lock state":"Set lock state","Set percentage":"Set percentage","Set target temperature":"Set target temperature","Smart Devices":"Smart Devices","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Smart enums","Smart name":"Smart name","Smart name for %s":"Smart name for %s","To apply this setting, the restart of adapter must be done. Agree?":"To apply this setting, the adapter must be restarted. Agree?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"For automatic detection, under objects assign a channel (device if no channel is available) to a room and function. It is not sufficient to assign the room to a state or device. Rooms/functions can be added under enumeration (indicated by the white arrow at the top right) and must be activated in the IoT adapter under Intelligent enumeration. In order to automatically recognize manual states, the state must be deleted.","Turn off":"Turn off","Turn on":"Turn on",Type:wct,Types:Sct,"Use Nightscout instance":"Use Nightscout instance","Use following link for IFTTT":"Use following link for IFTTT","Use following link for custom service":"Use following link for custom service","Use text2command instance":"Use text2command instance",Value:xct,"White list for services":"White list for services","Write response to":"Write response to","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"You can enter several names divided by comma","amazon link":"If you use the Alexa Skill, please write a review for us here.
Examples can be found here.","by ON":"by ON",clear:Cct,default:"default",disabled:$ct,help_link_tip1:kct,help_link_tip2:Ect,help_link_tip3:Tct,help_tip:Oct,info_allowedServices:Dct,info_iftttKey:Act,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Password","last value":"no value","omit value":"omit value",modified:Mct,"no type":"no type",tooltip_allowSelfSignedCertificate:Nct,tooltip_apikey:jct,tooltip_cloudUrl:zct,tooltip_concatWord:Rct,tooltip_deviceOffLevel:Ict,tooltip_functionFirst:Lct,tooltip_instance:Fct,tooltip_language:Pct,tooltip_noCommon:Bct,tooltip_responseOID:Hct,tooltip_restartOnDisconnect:Uct,"Short answer for blood sugar":"Short answer for blood sugar",cannot_use_password:Wct,invalid_password_warning:Vct,new_certs_tip:Gct,new_credentials_tip:qct,"Create IoT credentials anew":"Create IoT credentials anew",forum_tip:Xct,"Save settings before pressing this button":"Save settings before pressing this button","Auto Mode":"Auto Mode","Manual Mode":"Manual Mode",manualModeHint:Jct,"not activated":"not activated","Google devices":"Google devices","Show/Hide help":"Show/Hide help","Show all devices for print out":"Show all devices for print out",Search:Yct,"List of devices to print out, e.g. to give all device names to your partner.":"List of devices to print out, e.g. to give all device names to your partner.",Name:Kct,Function:"Function",Room:Zct,"Copy to clipboard":"Copy to clipboard","Toggle expert mode":"Toggle expert mode",ID:Qct,"Smart names":"Smart names",ioBType:edt,"Function/Trait":"Function/Trait",Attributes:tdt,Auto:ndt,"Conversation to GH":"Convert to GH","Conversation to ioB":"Convert to ioB","Information: The skill linking process was changed!":"Information: The skill linking process was changed!","The linking process has been changed for a few months.":"The linking process has been changed for a few months.","Now there is no temporary password that will be sent by email.":"Now there is no temporary password that will be sent by email.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"The password is equal with ioBroker.pro and with password that was entered here in the settings!","Not understood":"Not understood","Roger that":"Roger that","Read blood sugar from":"Read blood sugar from","Get actual humidity":"Get actual humidity","Get motion":"Get motion","Get contact":"Get contact status","Too many devices (%s) configured. Max number is 300":"Too many devices (%s) configured. Max number is 300!","Allow remote access":"Allow remote access","Admin instance":"Admin instance","Web instance":"Web instance","Device %s will be disabled.":"Device %s will be disabled.",Delete:odt,Brightness:rdt,Power:adt,"Color temperature":"Color temperature",Color:sdt,Detection:idt,Lock:ldt,Mode:cdt,Muted:ddt,Percentage:udt,"Set point":"Set point",Temperature:pdt,"Thermostat mode":"Thermostat mode",Volume:hdt,socket:fdt,light:mdt,dimmer:gdt,thermostat:_dt,blind:vdt,gate:ydt,lock:bdt,hue:wdt,motion:Sdt,slider:xdt,temperature:Cdt,window:$dt,Thermostat:kdt,Light:Edt,AirCondition:Tdt,Blind:Odt,ContactSensor:Ddt,Control:Adt,Door:Mdt,Gate:Ndt,Hue:jdt,Motion:zdt,Slider:Rdt,Socket:Idt,VacuumCleaner:Ldt,VolumeGroup:Fdt,Window:Pdt,"Window sensor":"Window sensor","Volume group":"Volume group","Vacuum cleaner":"Vacuum cleaner",Sensor:Bdt,"Door sensor":"Door sensor","Color HUE":"Color HUE",Blinds:Hdt,"Grouped from %s and %s":"Grouped from %s and %s","Default toggle behaviour (Only alexa v3)":"Default toggle behaviour (Only alexa v3)","Do not toggle":"Do not toggle",Toggle:Udt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"This service is reserved for the ioBroker.visu app. Please use another service name."},Vdt="Aktiv",Gdt="Adressen",qdt="Abbrechen",Xdt="Schließen",Jdt="Befehle",Ydt="Standard",Kdt="Dimmer",Zdt="Filter",Qdt="Funktionen",eut="Instanz",tut="Sprache",nut="Nachricht",out="aus",rut="Ok",aut="an",sut="Einstellungen",iut="Rezension",lut="Räume",cut="Speichern",dut="Auswählen",uut="Typ",put="Typen",hut="Wert",fut="löschen",mut="deaktiviert",gut='Stellen Sie vor dem Schreiben an den Support sicher, dass Sie die Anweisungen auf der Webseite gelesen und verstanden haben: https://www.iobroker.net',_ut='Wenn Sie immer noch Probleme mit der Verbindung zu Iot haben, können Sie im Forum Support anfordern',vut='und erst danach sollten Sie eine E-Mail an support@iobroker.com schreiben',yut='Kein iobroker.pro-Konto? Kaufen Sie es auf https://iobroker.pro für den validierten Zugriff oder erhalten Sie kostenlosen, aber eingeschränkten Zugriff.',but="durch Komma getrennt. Benutze * um alle Services zu erlauben.",wut="Der Schlüssel kann hier unter 'Documentation' gefunden werden",Sut="Der Name wurde vom Benutzer geändert",xut="Wenn man eine eigene Cloud verwendet, man kann die Benutzung von selbst-signierten Zertifikaten erlauben.",Cut="Dieser Schlüssel wird benötigt um mit der Cloud zu kommunizieren. Man kann den Schlüssel unter https://iobroker.net bekommen. Es sieht wie folgt aus nickname_f1f439a0-001a-11e7-bc64-92361f002671",$ut="Normalerweise muss diese Option nicht geändert werden. Dies ist nur notwendig, wenn man eigenen Cloud verwendet.",kut="Damit wird definiert wie Funktion und Raum miteinander verbunden werden; z.B. mit 'im': Licht im Schlafzimmer",Eut="Gruppen können aus gemischten Geräten (Schaltern und Dimmern) bestehen. Sie können mit ON/OFF sowie Prozentwerten angesteuert werden, hier kann definiert werden welcher Prozentsatz OFF entspricht.",Tut="Die automatischen Namen werden im Schema Raum-Funktion generiert. Hiermit kann man es auf Funktion-Raum geändert werden.",Out="Web Instanz, die für ihre Anfragen aus dem Cloud angezeigt wird.",Dut="Man kann hier die Sprache definieren um zwischen US Alexa Skill und DE Alexa Skill umschalten zu können",Aut="Wenn diese Option aktiviert wird, so werden die Einstellungen nur für diese Instanz gespeichert. So ist es möglich in einer anderen Instanz andere Namen zu setzen.",Mut="Für jedes Kommando wird eine Textantwort generiert. Hier kannst du die Objekt ID angeben, an welche die Textantwort gesendet werden soll, z.B. sayit.0.tts.text.",Nut="Workaround für fehlende Kommunikation mit Alexa nach Verbindungsabbruch. Damit kann man zwingen den Adapter neu zu starten und das Problem umgehen.",jut="Sie können nicht % im Passwort verwenden. Wir arbeiten an der Lösung.",zut=`Das Passwort muss mindestens 8 Zeichen lang sein und Zahlen sowie Groß- und Kleinbuchstaben enthalten. Bitte ändern Sie es im ioBroker.pro-Profil -`,Rut="Wenn Sie eine Wiederherstellung aus einer Sicherung durchgeführt oder Ihre Instanz von einem Gerät auf ein anderes verschoben oder die IoT-Instanz gelöscht und erneut hinzugefügt haben, müssen Sie die Verbindungssicherheitszertifikate mit diesem Knopf herunterladen.",Iut="Sollte die Anmeldung am Alexa Skill/Google Action/Alisa mit den ioBroker.pro-Anmeldedaten fehlschlagen, dann drücken Sie bitte den untenstehenden Button.",Lut='Bei Fragen in einer beliebigen Sprache wenden Sie sich bitte hier im Forum an: Link ',Fut="Bitte wählen Sie einen TYPE und einen TRAIT nach dem Hinzufügen eines Status. Um mehrere Merkmale hinzuzufügen, fügen Sie eine andere ID und ein anderes Merkmal hinzu, jedoch denselben intelligenten Namen, Typ und Raum. Komma getrennt für die mehreren intelligenten Namen. Um einen Raum zuzuweisen, verwenden Sie bitte die ioBroker Enums/Aufzählungen. Mit Attributen können Sie beispielsweise einen Bereich für die Farbtemperatur festlegen. Infos zu Attribute finden Sie hier. Das leere Attribut ist {}",Put="Suche",But="Name",Hut="Raum",Uut="ID",Wut="IoB-Typ",Vut="Attribute",Gut="Automatisch",qut="Löschen",Xut="Dimmer",Jut="An/Aus",Yut="Farbe",Kut="Erkennung",Zut="Sperren",Qut="Modus",ept="Stummgeschaltet",tpt="Prozentsatz",npt="Temperatur",opt="Volumen",rpt="Steckdose",apt="Licht",spt="Dimmer",ipt="Thermostat",lpt="Fensterrollos",cpt="Tor",dpt="sperren",upt="Farbton",ppt="Bewegung",hpt="Schieberegler",fpt="Temperatur",mpt="Fenster",gpt="Thermostat",_pt="Licht",vpt="Klimaanlage",ypt="Fensterrollos",bpt="Kontaktsensor",wpt="Kontrolle",Spt="Tür",xpt="Tor",Cpt="Farbton",$pt="Bewegung",kpt="Schieberegler",Ept="Steckdose",Tpt="Staubsauger",Opt="Volumengruppe",Dpt="Fenster",Apt="Sensor",Mpt="Fensterrollos",Npt="Umschalten",jpt={"(Set to 0 if behavior not desired)":"(Auf 0 setzten, falls das Verhalten unerwünscht ist)","(you can separate names with comma)":"Mehrere Namen können separiert mit Kommas angegeben werden",Active:Vdt,"Add device":"Gerät hinzufügen","Add service":"Dienst hinzufügen",Addresses:Gdt,"Alexa devices":"Alexa-Geräte","Alisa devices":"Alisa Geräte","Allow admin access (only pro)":"Erlaube Zugriff auf Admin (nur pro)","Allow self-signed certificates":"Erlaube selbst-signierte Zertifikate","Amazon Alexa":"Amazon Alexa","Are you sure?":"Wirklich sicher?","Attributes has not correct JSON format.":"Attributes ist nicht im korrekten JSON Format","Authentication must be disabled. You can create second instance extra for cloud.":"Die Authentifizierung muss deaktiviert sein. Sie können zweite Instanz extra für Cloud erstellen.",Cancel:qdt,"Cannot add this object":"Dieses Objekt kann nicht hinzugefügt werden, da es nicht unterstützt wird.","Cannot read devices!":"Geräte können nicht gelesen werden!","Certificates will be updated after initiated restart":"Zertifikate werden nach dem Neustart aktualisiert","Certificates will be updated after start":"Zertifikate werden nach dem Start aktualisiert","Click now Get new connection certificates to request new temporary password":'Klicken Sie jetzt auf "Neue Verbindungszertifikate anfordern", um ein neues temporäres Passwort anzufordern',Close:Xdt,"Cloud URL":"Cloud-URL","Cloud adapter settings":"Einstellungen für Cloud-Adapter",Commands:Jdt,"Concatenate words with":"Verbinde Raum und Funktion mit","Connection timeout":"Verbindungs-Timeout(ms)","Debug outputs":"Ausgaben debuggen","Decrement color temperature":"Verringern der Farbtemperatur","Decrement percentage":"Prozentsatz der Verringerung","Decrement target temperature":"Solltemperatur verringern",Default:Ydt,"Device %s was not added":"Gerät %s wurde nicht hinzugefügt","Device will be deactivated.":"Gerät wird für die Sprachsteuerung deaktiviert.","Device will be disabled.":"Gerät %s wird aus der Liste entfernt.",Dimmer:Kdt,"Duplicate name":"Name wurde schon benutzt","Edit smart name":"Smartname editieren",Error:"Fehler","Extended options":"Erweiterte Einstellungen",Filter:Zdt,"For help use this forum":"Für Hilfe besuche diesen Forumbeitrag",Functions:Qdt,"Get actual temperature":"Aktuelle Temperatur abrufen","Get new connection certificates":"Neue Verbindungszertifikate anfordern","Get new service URL key":"Neuen Service-URL-Schlüssel abrufen","Get target temperature":"Solltemperatur abrufen","Google Home":"Google Home","IFTTT key":"IFTTT key","Increment color temperature":"Erhöhung der Farbtemperatur","Increment percentage":"Prozentsatz erhöhen","Increment target temperature":"Solltemperatur erhöhen",Instance:eut,"Instance does not exists":"Instanz existiert nicht","Instance is not active.":"Instanz ist nicht aktiv.","Instance must be enabled":"Instanz muss aktiviert sein","Instance must run to deliver the data":"Die Instanz muss laufen um die Daten zu liefern","Invalid object":"Ungültiges Objekt",Language:tut,"Load configuration from file":"Konfiguration aus Datei laden",Message:nut,"OFF level for switches":"OFF level for switches","OFF level for switches in %":"AUS-Pegel für Schalter in %",Off:out,Ok:rut,On:aut,"On/Off":"An aus",Options:sut,"Personal settings (only pro)":"Eigene Einstellungen (nur pro)","Ping timeout:":"Ping-Timeout(ms)","Place function in names first":"Platziere Funktionsnamen vorne","Please add action and trait to complete the Google Home state.":"Bitte fügen Sie eine Aktion und ein Merkmal hinzu, um den Google Home-Status zu vervollständigen.","Please add type and trait to complete the Google Home state.":"Bitte füge eine Type und Trait hinzu um den Google Home State zu vervollständigen.","Please select object ID...":"Bitte Objekt ID auswählen ...","Please write your email only in lower case letters":"Bitte E-Mail nur in Kleinbuchstaben schreiben","Read lock state":"Verschlusszustand lesen","Replace in names":"Ersetze in Namen","Request email with password one more time":"Noch einmal eine E-Mail mit Passwort anfordern","Restart on disconnect":"Neustart bei Verbindungsabbruch",Review:iut,Rooms:lut,Save:cut,"Save and close":"Speichern und schließen","Save configuration to file":"Konfiguration in Datei speichern","Save settings and the names will be changed":"Speichere die Einstellungen um die neuen Namen zu sehen",Select:dut,"Service names":"Servicenamen","Services and IFTTT":"Services und IFTTT","Set color":"Farbe einstellen","Set color temperature":"Farbtemperatur einstellen","Set lock state":"Verschlussstatus einstellen","Set percentage":"Prozent einstellen","Set target temperature":"Solltemperatur einstellen","Smart Devices":"Smart Geräte","Smart Enums":"Smart Aufzählungen","Smart Media":"Smart Media","Smart enums":"Intelligente Aufzählungen","Smart name":"Smart-Name","Smart name for %s":"Smart Name für %s","To apply this setting, the restart of adapter must be done. Agree?":"Um diese Einstellung zu ändern ist es erforderlich, diese Instanz neu zu starten. Einverstanden?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Für automatische Erkennung, unter Objekte ordne einem Channel (Device wenn kein Channel vorhanden ist) ein Raum und Funktion zu. Es reicht nicht einem State oder Device den Raum zuzuordnen. Räume/Funktionen können unter Aufzählung (Anzeigen über den weißen Pfeil oben rechts) hinzugefügt werden und müssen im IoT Adapter unter Intelligente Aufzählung aktiviert werden. Um manuelle States wieder automatisch erkennen zu lassen muss der State gelöscht werden.","Turn off":"Ausschalten","Turn on":"Einschalten",Type:uut,Types:put,"Use Nightscout instance":"Benutze Nightscout Instanz","Use following link for IFTTT":"Benutze folgenden Link für IFTTT","Use following link for custom service":"Benutze folgende Link für einen eigenen Service","Use text2command instance":"Benutze text2command Instanz",Value:hut,"White list for services":"White list für Services","Write response to":"Schreibe Antwort ins","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Man kann mehrere durch Komma getrennte Namen eingeben","amazon link":"Falls du den Alexa Skill benutzt, schreibe doch bitte hier eine Review.
Beispiele kann man hier anschauen.","by ON":"bei AN",clear:fut,default:"Systemsprache",disabled:mut,help_link_tip1:gut,help_link_tip2:_ut,help_link_tip3:vut,help_tip:yut,info_allowedServices:but,info_iftttKey:wut,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Passwort","omit value":"kein Wert","last value":"letzter Wert",modified:Sut,"no type":"kein Typ",tooltip_allowSelfSignedCertificate:xut,tooltip_apikey:Cut,tooltip_cloudUrl:$ut,tooltip_concatWord:kut,tooltip_deviceOffLevel:Eut,tooltip_functionFirst:Tut,tooltip_instance:Out,tooltip_language:Dut,tooltip_noCommon:Aut,tooltip_responseOID:Mut,tooltip_restartOnDisconnect:Nut,"Short answer for blood sugar":"Kurze Antwort für Blutzucker",cannot_use_password:jut,invalid_password_warning:zut,new_certs_tip:Rut,new_credentials_tip:Iut,"Create IoT credentials anew":"IoT-Anmeldeinformationen neu erstellen",forum_tip:Lut,"Save settings before pressing this button":"Einstellungen müssen gespeichert werden, bevor Sie diese Taste drücken","Auto Mode":"Automatikmodus","Manual Mode":"Manueller Modus",manualModeHint:Fut,"not activated":"nicht aktiviert","Google devices":"Google-Geräte","Show/Hide help":"Hilfe ein- / ausblenden","Show all devices for print out":"Alle Geräte zum Ausdrucken anzeigen",Search:Put,"List of devices to print out, e.g. to give all device names to your partner.":"Liste der auszudruckenden Geräte, z. um Ihrem Partner/in alle Gerätenamen zu zeigen.",Name:But,Function:"Funktion",Room:Hut,"Copy to clipboard":"In die Zwischenablage kopieren","Toggle expert mode":"Expertenmodus umschalten",ID:Uut,"Smart names":"Intelligente Namen",ioBType:Wut,"Function/Trait":"Funktion / Eigenschaft",Attributes:Vut,Auto:Gut,"Conversation to GH":"In GH konvertieren","Conversation to ioB":"In ioB konvertieren","Information: The skill linking process was changed!":"Information: Der Skill Linking Prozess wurde geändert!","The linking process has been changed for a few months.":"Der Verknüpfungsprozess wurde vor einigen Monaten geändert.","Now there is no temporary password that will be sent by email.":"Jetzt gibt es kein temporäres Passwort, das per E-Mail gesendet wird.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Das Passwort ist gleich mit ioBroker.pro und mit dem Passwort, das hier in den Einstellungen eingegeben wurde!","Not understood":"Nicht verstanden","Roger that":"Verstanden","Read blood sugar from":"Blutzucker lesen aus","Get actual humidity":"Holen Sie sich die tatsächliche Luftfeuchtigkeit","Get motion":"Bewegung bekommen","Get contact":"Kontaktstatus abrufen","Too many devices (%s) configured. Max number is 300":"Zu viele Geräte (%s) konfiguriert. Maximale Anzahl ist 300!","Allow remote access":"Fernzugriff zulassen","Admin instance":"Admin-Instanz","Web instance":"Webinstanz","Device %s will be disabled.":"Gerät %s wird deaktiviert.",Delete:qut,Brightness:Xut,Power:Jut,"Color temperature":"Farbtemperatur",Color:Yut,Detection:Kut,Lock:Zut,Mode:Qut,Muted:ept,Percentage:tpt,"Set point":"Sollwert",Temperature:npt,"Thermostat mode":"Thermostatmodus",Volume:opt,socket:rpt,light:apt,dimmer:spt,thermostat:ipt,blind:lpt,gate:cpt,lock:dpt,hue:upt,motion:ppt,slider:hpt,temperature:fpt,window:mpt,Thermostat:gpt,Light:_pt,AirCondition:vpt,Blind:ypt,ContactSensor:bpt,Control:wpt,Door:Spt,Gate:xpt,Hue:Cpt,Motion:$pt,Slider:kpt,Socket:Ept,VacuumCleaner:Tpt,VolumeGroup:Opt,Window:Dpt,"Color HUE":"Farbe Farbton","Door sensor":"Türsensor",Sensor:Apt,"Vacuum cleaner":"Staubsauger","Volume group":"Volumengruppe","Window sensor":"Fenstersensor",Blinds:Mpt,"Grouped from %s and %s":"Gruppiert aus %s und %s","Default toggle behaviour (Only alexa v3)":"Standardmäßiges Umschaltverhalten (nur Alexa v3)","Do not toggle":"Nicht umschalten",Toggle:Npt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Dieser Dienst ist für die ioBroker.visu-App reserviert. Bitte verwenden Sie einen anderen Dienstnamen."},zpt="Активно",Rpt="Адреса",Ipt="Отмена",Lpt="Закрыть",Fpt="Команды",Ppt="По умолчанию",Bpt="Диммер",Hpt="Фильтр",Upt="Функции",Wpt="Экземпляр",Vpt="Язык",Gpt="Сообщение",qpt="выкл",Xpt="Ok",Jpt="вкл",Ypt="Настройки",Kpt="Обзор",Zpt="Комнаты",Qpt="Сохранить",eht="Выбрать",tht="Тип",nht="Типы",oht="Значение",rht="очистить",aht="неактивно",sht='Прежде чем писать в службу поддержки, убедитесь, что вы прочитали и поняли инструкции с веб-страницы: https://www.iobroker.net',iht='Если у вас все еще есть проблема с подключением к Iot, вы можете запросить поддержку на форуме',lht='и только после этого вы можете написать письмо на support@iobroker.com',cht='Нет учетной записи iobroker.pro? Купите его на https://iobroker.pro для гарантированного доступа или получения бесплатного, но ограниченного доступа.',dht="разделённые запятой. Используйте *, что бы разрешить все сервисы.",uht="Свой ключ можно найти здесь в 'Documentation'",pht="Имя изменено пользователем",hht="Если используется собственное облако, то можно разрешить использование самоподписанных сертификатов",fht="Ключ необходимый для коммуникации с облаком. Его можно получить на https://iobroker.net и он похож на nickname_f1f439a0-001a-11e7-bc64-92361f002671",mht="Обычно не нужно менять этот параметр. Только если используется собственное облако.",ght="Можно указать каким словом соединять Функцию и Комнату. Например с 'в': Свет в зале.",_ht="Некоторые группы состоят из смешанных устройств: диммеров и переключателей. Разрешено управлять ими с помощью команд ON и OFF и с процентами",vht="Обычно имена выглядят как Комната-Функция. Этой настройкой можно переключить на Функция-Комната.",yht="Экземпляр WEB, который будет показываться при доступе из облака",bht="Можно выбрать язык, что бы быстро переключаться между US Alexa Skill и DE Alexa Skill",wht="Если выбрана эта опция, то настройки будут сохраняться только для этой инстанции. Что бы в другой инстанции можно было выбрать другие имена.",Sht="Для каждой команды будет генерироваться текстовый ответ. Вы можете определить здесь ID объекта , где этот текст должен быть записан. Например sayit.0.tts.text.",xht="Временное решение для проблемы с пропажей соединения с Alexa, после воссоединения с облаком. Этим можно перестартовать драйвер после потери соединения.",Cht="Вы не можете использовать% в пароле. Мы работаем над исправлением.",$ht=`Пароль должен содержать не менее 8 символов и должен состоять из цифр, прописных и строчных букв. Пожалуйста, измените его в профиле ioBroker.pro -`,kht="Если вы сделали восстановление из резервной копии, перенесли свой экземпляр с одного устройства на другое или удалили экземпляр IoT и добавили его снова, вы должны загрузить сертификаты безопасности подключения с помощью этой кнопки",Eht="Если не удается войти в Alexa Skill/Google Action/Alisa с данными для входа в ioBroker.pro, нажмите кнопку ниже.",Tht='Любые вопросы на любом языке, пожалуйста, задавайте здесь на форуме: ссылка ',Oht="Пожалуйста, выберите TYPE и TRAIT после добавления состояния. Чтобы добавить несколько черт, добавьте другой идентификатор и черту, но то же имя, тип и номер. Запятая разделена для нескольких умных имен. Чтобы назначить комнату, пожалуйста, используйте ioBroker Enums/Aufzählungen. С помощью атрибутов вы можете, например, установить диапазон для цветовой температуры Информация о Атрибуты вы можете найти здесь. Пустой атрибут - {}",Dht="Поиск",Aht="название",Mht="Комната",Nht="ID",jht="Тип IoB",zht="Атрибуты",Rht="Автоматически",Iht="Удалить",Lht="Диммер",Fht="Вкл/Выкл",Pht="Цвет",Bht="Обнаружение",Hht="Замок",Uht="Режим",Wht="Приглушен",Vht="Процент",Ght="Температура",qht="Объем",Xht="разъем",Jht="свет",Yht="диммер",Kht="термостат",Zht="жалюзи",Qht="ворота",eft="замок",tft="оттенок",nft="движение",oft="ползунок",rft="температура",aft="окно",sft="Термостат",ift="Свет",lft="Кондиционер",cft="Жалюзи",dft="Контактный датчик",uft="Контроль",pft="Дверь",hft="Ворота",fft="оттенок",mft="Движение",gft="Слайдер",_ft="Разъем",vft="Пылесос",yft="Группа томов",bft="Окно",wft="Датчик",Sft="Жалюзи",xft="Переключать",Cft={"(Set to 0 if behavior not desired)":"(для деактивации установить на 0)","(you can separate names with comma)":"Вы можете ввести несколько имен, разделенных запятой",Active:zpt,"Add device":"Добавить устройство","Add service":"Добавить услугу",Addresses:Rpt,"Alexa devices":"Устройства Alexa","Alisa devices":"Устройства Алисы","Allow admin access (only pro)":"Разрешить доступ к admin (только pro)","Allow self-signed certificates":"Разрешить самоподписанные сертификаты","Amazon Alexa":"Amazon Alexa","Are you sure?":"Уверены?","Attributes has not correct JSON format.":"Атрибуты не в правильном формате JSON","Authentication must be disabled. You can create second instance extra for cloud.":"Аутентификация должна быть отключена. Вы можете создать дополнительный экземпляр для облака.",Cancel:Ipt,"Cannot add this object":"Невозможно добавить этот объект, потому что он не поддерживается.","Cannot read devices!":"Не могу прочитать устройства!","Certificates will be updated after initiated restart":"Сертификаты будут обновлены после инициированного перезапуска","Certificates will be updated after start":"Сертификаты будут обновлены после запуска","Click now Get new connection certificates to request new temporary password":"Нажмите «Получить новые сертификаты подключения», чтобы запросить новый временный пароль.",Close:Lpt,"Cloud URL":"URL облака","Cloud adapter settings":"Настройки драйвера Cloud",Commands:Fpt,"Concatenate words with":"Связывать комнаты и функции словом","Connection timeout":"Таймаут соединения(мс)","Debug outputs":"Вывод отладочной информации","Decrement color temperature":"Уменьшение цветовой температуры","Decrement percentage":"Уменьшение процентного значения","Decrement target temperature":"Уменьшение целевой температуры",Default:Ppt,"Device %s was not added":"Устройство %s не было добавлено","Device will be deactivated.":"Устройство будет недоступно для голосового управления.","Device will be disabled.":"Устройство %s исчезнет из списка.",Dimmer:Bpt,"Duplicate name":"Имя уже используется","Edit smart name":"Редактировать имя",Error:"Ошибка","Extended options":"Расширенные настройки",Filter:Hpt,"For help use this forum":"Чтобы получить помощь, посетите этот форум пост",Functions:Upt,"Get actual temperature":"Получить фактическую температуру","Get new connection certificates":"Получение новых сертификатов подключения","Get new service URL key":"Получить новый ключ службы URL","Get target temperature":"Получить целевую температуру","Google Home":"Google Home","IFTTT key":"IFTTT key","Increment color temperature":"Увеличение цветовой температуры","Increment percentage":"Процент прироста","Increment target temperature":"Увеличение целевой температуры",Instance:Wpt,"Instance does not exists":"Экземпляр не существует","Instance is not active.":"Экземпляр не активен.","Instance must be enabled":"Экземпляр должен быть включен","Instance must run to deliver the data":"Драйвер должен быть запущен, что бы отобразить данные","Invalid object":"Недействительный объект",Language:Vpt,"Load configuration from file":"Загрузить конфигурацию из файла",Message:Gpt,"OFF level for switches":"Уровень выключения для выключателей","OFF level for switches in %":"Уровень выключения для переключателей в %",Off:qpt,Ok:Xpt,On:Jpt,"On/Off":"Вкл/выкл",Options:Ypt,"Personal settings (only pro)":"Личные настройки (только pro)","Ping timeout:":"Пинг-Таймаут(мс)","Place function in names first":"Имена функций в начале","Please add action and trait to complete the Google Home state.":"Пожалуйста, добавьте действие и черту, чтобы завершить состояние Google Home.","Please add type and trait to complete the Google Home state.":"Пожалуйста, добавьте тип и черту, чтобы завершить состояние Google Home.","Please select object ID...":"Пожалуйста, выберите идентификатор объекта ...","Please write your email only in lower case letters":"Пожалуйста, пишите свою электронную почту только строчными буквами","Read lock state":"Чтение состояния блокировки","Replace in names":"Заменить в именах","Request email with password one more time":"Запросите письмо с паролем еще раз","Restart on disconnect":"Перезапуск при потере сединения",Review:Kpt,Rooms:Zpt,Save:Qpt,"Save and close":"Сохранить и закрыть","Save configuration to file":"Сохранить конфигурацию в файл","Save settings and the names will be changed":"Сохраните настройки, что бы увидеть изменения",Select:eht,"Service names":"Названия служб","Services and IFTTT":"Сервисы и IFTTT","Set color":"Установить цвет","Set color temperature":"Цветовая температура","Set lock state":"Установить состояние блокировки","Set percentage":"Установить процент","Set target temperature":"Установите целевую температуру","Smart Devices":"Smart устройства","Smart Enums":"Smart категории","Smart Media":"Smart Media","Smart enums":"Умные перечисления","Smart name":"Smart имя","Smart name for %s":"Умное имя для %s","To apply this setting, the restart of adapter must be done. Agree?":"Что бы поменять эту опцию, необходимо перезагрузить инстанцию. Согласны?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Для автоматического обнаружения под объектами назначают канал (устройство, если канал недоступен) комнате и функции. Недостаточно присвоить комнату состоянию или устройству. Комнаты/функции могут быть добавлены в нумерацию (обозначена белой стрелкой в правом верхнем углу) и должны быть активированы в адаптере IoT в разделе Интеллектуальное перечисление. Чтобы автоматически распознавать ручные состояния, это состояние должно быть удалено.","Turn off":"Выключи","Turn on":"Включи",Type:tht,Types:nht,"Use Nightscout instance":"Использовать Nightscout","Use following link for IFTTT":"Используйте этот URL для IFTTT","Use following link for custom service":"Используйте этот URL для своего сервиса","Use text2command instance":"Использовать text2command",Value:oht,"White list for services":"Белый список для сервисов","Write response to":"Писать ответ в","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Вы можете ввести несколько имен, разделенных запятой","amazon link":"Если вы используете Alexa, пожалуйста оставьте свой отзыв здесь.
Примеры отзывов можно посмотреть здесь.","by ON":"при ВКЛ",clear:rht,default:"системный",disabled:aht,help_link_tip1:sht,help_link_tip2:iht,help_link_tip3:lht,help_tip:cht,info_allowedServices:dht,info_iftttKey:uht,"ioBroker.pro Login":"Логин ioBroker.pro","ioBroker.pro Password":"Пароль ioBroker.pro","omit value":"нет значения","last value":"последнее значение",modified:pht,"no type":"нет типа",tooltip_allowSelfSignedCertificate:hht,tooltip_apikey:fht,tooltip_cloudUrl:mht,tooltip_concatWord:ght,tooltip_deviceOffLevel:_ht,tooltip_functionFirst:vht,tooltip_instance:yht,tooltip_language:bht,tooltip_noCommon:wht,tooltip_responseOID:Sht,tooltip_restartOnDisconnect:xht,"Short answer for blood sugar":"Краткий ответ на уровень сахара в крови",cannot_use_password:Cht,invalid_password_warning:$ht,new_certs_tip:kht,new_credentials_tip:Eht,"Create IoT credentials anew":"Создайте учетные данные IoT заново",forum_tip:Tht,"Save settings before pressing this button":"Сохраните настройки перед нажатием этой кнопки","Auto Mode":"Автоматический режим","Manual Mode":"Ручной режим",manualModeHint:Oht,"not activated":"не активирован","Google devices":"Устройства Google","Show/Hide help":"Показать / Скрыть помощь","Show all devices for print out":"Показать все устройства для распечатки",Search:Dht,"List of devices to print out, e.g. to give all device names to your partner.":"Список устройств для распечатки, например, что бы показать все названия устройств вашему партнеру/партнёрше.",Name:Aht,Function:"функция",Room:Mht,"Copy to clipboard":"Скопировать в буфер обмена","Toggle expert mode":"Переключить режим эксперта",ID:Nht,"Smart names":"Умные имена",ioBType:jht,"Function/Trait":"Функция / Тр",Attributes:zht,Auto:Rht,"Conversation to GH":"Конвертировать в GH","Conversation to ioB":"Конвертировать в ioB","Information: The skill linking process was changed!":"Информация: Изменен процесс привязки навыков!","The linking process has been changed for a few months.":"Несколько месяцев назад изменился процесс привязки.","Now there is no temporary password that will be sent by email.":"Теперь нет временного пароля, который отправлялся по электронной почте.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Пароль совпадает с ioBroker.pro и с паролем, который был введен здесь в настройках!","Not understood":"Не понятно","Roger that":"Понятно","Read blood sugar from":"Считывать уровень сахара в крови из","Get actual humidity":"Получите фактическую влажность","Get motion":"Получить движение","Get contact":"Получить статус контакта","Too many devices (%s) configured. Max number is 300":"Настроено слишком много устройств (%s). Максимальное количество - 300!","Allow remote access":"Разрешить удаленный доступ","Admin instance":"Экземпляр администратора","Web instance":"Веб-экземпляр","Device %s will be disabled.":"Устройство %s будет отключено.",Delete:Iht,Brightness:Lht,Power:Fht,"Color temperature":"Цветовая температура",Color:Pht,Detection:Bht,Lock:Hht,Mode:Uht,Muted:Wht,Percentage:Vht,"Set point":"Установить точку",Temperature:Ght,"Thermostat mode":"Режим термостата",Volume:qht,socket:Xht,light:Jht,dimmer:Yht,thermostat:Kht,blind:Zht,gate:Qht,lock:eft,hue:tft,motion:nft,slider:oft,temperature:rft,window:aft,Thermostat:sft,Light:ift,AirCondition:lft,Blind:cft,ContactSensor:dft,Control:uft,Door:pft,Gate:hft,Hue:fft,Motion:mft,Slider:gft,Socket:_ft,VacuumCleaner:vft,VolumeGroup:yft,Window:bft,"Color HUE":"Цвет ОТТЕНОК","Door sensor":"Датчик двери",Sensor:wft,"Vacuum cleaner":"Пылесос","Volume group":"Группа томов","Window sensor":"Датчик окна",Blinds:Sft,"Grouped from %s and %s":"Сгруппировано из %s и %s","Default toggle behaviour (Only alexa v3)":"Поведение переключения по умолчанию (только Alexa v3)","Do not toggle":"Не переключать",Toggle:xft,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Эта служба зарезервирована для приложения ioBroker.visu. Пожалуйста, используйте другое имя службы."},$ft="Ativo",kft="Endereços",Eft="Cancelar",Tft="Feixar",Oft="Comandos",Dft="Padrão",Aft="regulador de luz",Mft="Filtro",Nft="Funções",jft="Instância",zft="Língua",Rft="mensagem",Ift="desligado",Lft="Ok",Fft="ligado",Pft="Opções",Bft="Reveja",Hft="quartos",Uft="Salve",Wft="Selecione",Vft="Tipo",Gft="Tipos",qft="Valor",Xft="limpar",Jft="desativado",Yft='Antes de escrever para o suporte, certifique-se de ler e entender as instruções da página da Web: https://www.iobroker.net',Kft='Se você ainda tiver problemas com a conexão com o Iot, poderá solicitar suporte no Fórum',Zft='e somente depois disso, você deve escrever um email para support@iobroker.com',Qft='Nenhuma conta no iobroker.pro? Registe-se gratuamente no https://iobroker.pro , para obter um acesso limitado ou compre um acesso sem limitação.',emt="dividido por vírgula. Use * para permitir todos os serviços.",tmt="Você pode encontrar sua chave aqui, no botão 'Documentation'",nmt="O nome foi modificado pelo usuário",omt="Se você usa sua própria nuvem, você pode permitir o uso de certificados auto-assinados para a nuvem.",rmt="Essa chave é necessária para se comunicar com uma nuvem. Você pode obter a API-KEY em https://iobroker.net. A chave parece tem esse formato: apelido_f1f439a0-001a-11e7-bc64-92361f002671",amt="Normalmente, você não precisa mudá-lo. Só é necessário se você planeja usar sua própria nuvem.",smt="Defina como concatenar o Quarto e a Função. Por exemplo com 'na': luz na sala de estar.",imt="Alguns grupos consistem em dispositivos mistos: regulador de luz e interruptores. É permitido controlá-los com comandos ligar/desligar e com porcentagens",lmt="Normalmente, os nomes são gerados no esquema quarto_função. Aqui pode mudar para função_quarto.",cmt="Instância da Web, que será mostrada para suas conexões a da nuvem.",dmt="Você pode definir os idiomas para mudar rapidamente entre o skill da Alexa do EUA e o da Alemãnha.",umt="Se ativado, as configurações serão armazenadas somente para esta instância. Então, na outra instância, outros nomes podem ser definidos.",pmt="Para cada comando, uma resposta de texto é gerada. Aqui você pode especificar o ID do objeto ao qual a resposta de texto deve ser enviada, por exemplo sayit.0.tts.text.",hmt="Solução alternativa para falta de comunicação com o Alexa após a desconexão. Isso pode forçar você a reiniciar o adaptador e solucionar o problema.",fmt="Você não pode usar% na senha. Estamos trabalhando na correção.",mmt=`A senha deve ter pelo menos 8 caracteres e deve ter números, letras maiúsculas e minúsculas. Altere-o no perfil ioBroker.pro -`,gmt="Se você fez uma restauração a partir do backup ou moveu sua instância de um dispositivo para outro ou excluiu a instância da IoT e a adicionou novamente, carregue os certificados de segurança da conexão com este botão",_mt="Se o login no Alexa Skill/Google Action/Alisa com os dados de login ioBroker.pro falhar, pressione o botão abaixo.",vmt='Qualquer dúvida em qualquer idioma, pergunte aqui no fórum: link ',ymt="Selecione um TYPE e um TRAIT depois de adicionar um estado. Para adicionar vários traços, adicione um ID e traço diferentes, mas o mesmo nome, tipo e sala inteligentes. Vírgula separada para os vários nomes inteligentes. Para atribuir uma sala, use o ioBroker Enums/Aufzählungen. Com os atributos, você pode, por exemplo, definir um intervalo para a temperatura da cor. Atributos que você pode encontrar aqui. O atributo vazio é {}",bmt="Procurar",wmt="Nome",Smt="Quarto",xmt="ID",Cmt="Tipo IoB",$mt="Atributos",kmt="Automaticamente",Emt="Excluir",Tmt="Obscuro",Omt="Ligado/Desligado",Dmt="Cor",Amt="Detecção",Mmt="Trancar",Nmt="Modo",jmt="silenciado",zmt="Percentagem",Rmt="Temperatura",Imt="Volume",Lmt="soquete",Fmt="luz",Pmt="obscuro",Bmt="termostato",Hmt="persianas",Umt="portão",Wmt="trancar",Vmt="matiz",Gmt="movimento",qmt="controle deslizante",Xmt="temperatura",Jmt="janela",Ymt="Termostato",Kmt="Luz",Zmt="Condição do ar",Qmt="Persianas",egt="Sensor de contato",tgt="Ao controle",ngt="Porta",ogt="Portão",rgt="Matiz",agt="Movimento",sgt="Controle deslizante",igt="soquete",lgt="Aspirador de pó",cgt="Grupo de volumes",dgt="Janela",ugt="Sensor",pgt="Persianas",hgt="Alternar",fgt={"(Set to 0 if behavior not desired)":"(Defina para 0 se o comportamento não for desejado)","(you can separate names with comma)":"Você pode inserir vários nomes divididos por vírgula",Active:$ft,"Add device":"Adicionar dispositivo","Add service":"Adicionar serviço",Addresses:kft,"Alexa devices":"Dispositivos Alexa","Alisa devices":"Dispositivos Alisa","Allow admin access (only pro)":"Permitir acesso de administrador (apenas pro)","Allow self-signed certificates":"Permitir certificados auto-assinados","Amazon Alexa":"Amazon Alexa","Are you sure?":"Você tem certeza?","Attributes has not correct JSON format.":"Os atributos não estão no formato JSON correto.","Authentication must be disabled. You can create second instance extra for cloud.":"A autenticação deve ser desativada. Você pode criar uma segunda instância extra para a nuvem.",Cancel:Eft,"Cannot add this object":"Não é possível adicionar este objeto, porque não é suportado.","Cannot read devices!":"Não é possível ler dispositivos!","Certificates will be updated after initiated restart":"Os certificados serão atualizados após a primeira reinicialização","Certificates will be updated after start":"Certificados serão atualizados após o início","Click now Get new connection certificates to request new temporary password":'Clique agora "Obter novos certificados de conexão" para solicitar uma nova senha temporária',Close:Tft,"Cloud URL":"URL da nuvem","Cloud adapter settings":"Configurações do adaptador de nuvem",Commands:Oft,"Concatenate words with":"Concatenar palavras com","Connection timeout":"Tempo limite de conexão (ms)","Debug outputs":"Saídas de depuração","Decrement color temperature":"Temperatura de cor decrescente","Decrement percentage":"Percentual de decréscimo","Decrement target temperature":"Temperatura alvo de descida",Default:Dft,"Device %s was not added":"O dispositivo %s não foi adicionado","Device will be deactivated.":"O dispositivo será desativado.","Device will be disabled.":"O dispositivo será desabilitado.",Dimmer:Aft,"Duplicate name":"Duplicar nome","Edit smart name":"Edite o nome inteligente",Error:"Erro","Extended options":"Configuração avançada",Filter:Mft,"For help use this forum":"Para obter ajuda, visite este fórum postar",Functions:Nft,"Get actual temperature":"Obter temperatura atual","Get new connection certificates":"Obter novos certificados de conexão","Get new service URL key":"Obter nova chave do URL de serviço","Get target temperature":"Obter temperatura desejada","Google Home":"Google Home","IFTTT key":"Chave IFTTT","Increment color temperature":"Incremento da temperatura de cor","Increment percentage":"Percentual de incremento","Increment target temperature":"Incremento da temperatura desejada",Instance:jft,"Instance does not exists":"Instância não existe","Instance is not active.":"A instância não está ativa.","Instance must be enabled":"A instância deve estar ativada","Instance must run to deliver the data":"A instância deve ser executada para obter os dados","Invalid object":"Objeto inválido",Language:zft,"Load configuration from file":"Carregar configuração do arquivo",Message:Rft,"OFF level for switches":"Nível OFF para interruptores","OFF level for switches in %":"Nível OFF para interruptores em %",Off:Ift,Ok:Lft,On:Fft,"On/Off":"ligado/desligado",Options:Pft,"Personal settings (only pro)":"Configurações pessoais (somente pro)","Ping timeout:":"Tempo limite de ping (ms)","Place function in names first":"Coloque a função na frente dos nomes","Please add action and trait to complete the Google Home state.":"Adicione ação e característica para concluir o estado da Página inicial do Google.","Please add type and trait to complete the Google Home state.":"Adicione tipo e característica para concluir o estado da Página inicial do Google.","Please select object ID...":"Por favor selecione o ID do objeto ...","Please write your email only in lower case letters":"Por favor, escreva seu e-mail apenas em letras minúsculas","Read lock state":"Ler estado de bloqueio","Replace in names":"Substitua nos nomes","Request email with password one more time":"Solicite email com senha mais uma vez","Restart on disconnect":"Reiniciar na desconexão",Review:Bft,Rooms:Hft,Save:Uft,"Save and close":"Salvar e fechar","Save configuration to file":"Salvar configuração no arquivo","Save settings and the names will be changed":"Salve as configurações e os nomes serão alterados",Select:Wft,"Service names":"Nome do serviço","Services and IFTTT":"Serviços e IFTTT","Set color":"Definir cor","Set color temperature":"Definir temperatura de cor","Set lock state":"Definir estado de bloqueio","Set percentage":"Definir porcentagem","Set target temperature":"Definir temperatura desejada","Smart Devices":"Dispositivos inteligentes","Smart Enums":"Enumeração inteligentes","Smart Media":"Smart Media","Smart enums":"Enumeração inteligentes","Smart name":"Nome inteligente","Smart name for %s":"Nome inteligente para %s","To apply this setting, the restart of adapter must be done. Agree?":"Para aplicar esta configuração, o adaptador tem que ser reiniciado. Aceita?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Para detecção automática, coloque embaixo dos objetos em um canal (dispositivo se não houver canal) uma sala e função também. Não é suficiente atribuir um estado ou dispositivo. Salas/funções podem ser adicionadas enumeradas e devem ser ativadas no adaptador IoT em Enumeração inteligente. Para detectar automaticamente estados manuais novamente, o estado deve ser limpo.","Turn off":"Desligar","Turn on":"Ligar",Type:Vft,Types:Gft,"Use Nightscout instance":"Use a instância Nightscout","Use following link for IFTTT":"Use o seguinte link para IFTTT","Use following link for custom service":"Use o seguinte link para o outros serviços","Use text2command instance":"Use a instância text2command",Value:qft,"White list for services":"Lista branca para serviços","Write response to":"Escreva a resposta para","Yandex Алиса":"Yandex Alice","You can enter several names divided by comma":"Você pode inserir vários nomes divididos por vírgula","amazon link":"Se você usa o ioBroker skill para a Alexa, escreva um comentário para nós aqui.
Exemplos podem ser encontrados aqui.","by ON":"por ON",clear:Xft,default:"padrão",disabled:Jft,help_link_tip1:Yft,help_link_tip2:Kft,help_link_tip3:Zft,help_tip:Qft,info_allowedServices:emt,info_iftttKey:tmt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"Senha do ioBroker.pro","omit value":"sem valor","last value":"último valor",modified:nmt,"no type":"nenhum tipo",tooltip_allowSelfSignedCertificate:omt,tooltip_apikey:rmt,tooltip_cloudUrl:amt,tooltip_concatWord:smt,tooltip_deviceOffLevel:imt,tooltip_functionFirst:lmt,tooltip_instance:cmt,tooltip_language:dmt,tooltip_noCommon:umt,tooltip_responseOID:pmt,tooltip_restartOnDisconnect:hmt,"Short answer for blood sugar":"Resposta curta para açúcar no sangue",cannot_use_password:fmt,invalid_password_warning:mmt,new_certs_tip:gmt,new_credentials_tip:_mt,"Create IoT credentials anew":"Crie credenciais de IoT novamente",forum_tip:vmt,"Save settings before pressing this button":"Salve as configurações antes de pressionar este botão","Auto Mode":"Modo automático","Manual Mode":"Modo manual",manualModeHint:ymt,"not activated":"não ativado","Google devices":"Dispositivos do Google","Show/Hide help":"Mostrar / ocultar ajuda","Show all devices for print out":"Mostrar todos os dispositivos para impressão",Search:bmt,"List of devices to print out, e.g. to give all device names to your partner.":"Lista de dispositivos a serem impressos, p. para dar todos os nomes de dispositivos ao seu parceiro.",Name:wmt,Function:"Função",Room:Smt,"Copy to clipboard":"Copiar para área de transferência","Toggle expert mode":"Alternar modo especialista",ID:xmt,"Smart names":"Nomes inteligentes",ioBType:Cmt,"Function/Trait":"Função / Traço",Attributes:$mt,Auto:kmt,"Conversation to GH":"Converta para GH","Conversation to ioB":"Converta para ioB","Information: The skill linking process was changed!":"Informações: O processo de vinculação de habilidades foi alterado!","The linking process has been changed for a few months.":"O processo de vinculação foi alterado por alguns meses.","Now there is no temporary password that will be sent by email.":"Agora não existe uma senha temporária que será enviada por e-mail.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"A senha é igual a ioBroker.pro e com a senha que foi digitada aqui nas configurações!","Not understood":"Não entendido","Roger that":"Entendido","Read blood sugar from":"Leia o açúcar no sangue de","Get actual humidity":"Obtenha a umidade real","Get motion":"Mexa-se","Get contact":"Obter status de contato","Too many devices (%s) configured. Max number is 300":"Muitos dispositivos (%s) configurados. O número máximo é 300!","Allow remote access":"Permitir acesso remoto","Admin instance":"Instância de administrador","Web instance":"Instância da web","Device %s will be disabled.":"O dispositivo %s será desabilitado.",Delete:Emt,Brightness:Tmt,Power:Omt,"Color temperature":"Temperatura de cor",Color:Dmt,Detection:Amt,Lock:Mmt,Mode:Nmt,Muted:jmt,Percentage:zmt,"Set point":"Ponto de ajuste",Temperature:Rmt,"Thermostat mode":"Modo termostato",Volume:Imt,socket:Lmt,light:Fmt,dimmer:Pmt,thermostat:Bmt,blind:Hmt,gate:Umt,lock:Wmt,hue:Vmt,motion:Gmt,slider:qmt,temperature:Xmt,window:Jmt,Thermostat:Ymt,Light:Kmt,AirCondition:Zmt,Blind:Qmt,ContactSensor:egt,Control:tgt,Door:ngt,Gate:ogt,Hue:rgt,Motion:agt,Slider:sgt,Socket:igt,VacuumCleaner:lgt,VolumeGroup:cgt,Window:dgt,"Color HUE":"Cor MATIZ","Door sensor":"Sensor de porta",Sensor:ugt,"Vacuum cleaner":"Aspirador de pó","Volume group":"Grupo de volumes","Window sensor":"Sensor de janela",Blinds:pgt,"Grouped from %s and %s":"Agrupados de %s e %s","Default toggle behaviour (Only alexa v3)":"Comportamento de alternância padrão (somente alexa v3)","Do not toggle":"Não alterne",Toggle:hgt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Este serviço está reservado para o aplicativo ioBroker.visu. Use outro nome de serviço."},mgt="Actief",ggt="adressen",_gt="Annuleer",vgt="Dichtbij",ygt="commando's",bgt="Standaard",wgt="dimmer",Sgt="Filter",xgt="functies",Cgt="Aanleg",$gt="Taal",kgt="Bericht",Egt="uit",Tgt="OK",Ogt="op",Dgt="opties",Agt="Beoordeling",Mgt="kamers",Ngt="Opslaan",jgt="kiezen",zgt="Type",Rgt="Soorten",Igt="Waarde",Lgt="wissen",Fgt="invalide",Pgt='Voordat u ter ondersteuning schrijft, moet u ervoor zorgen dat u de instructies van de webpagina hebt gelezen en begrepen: https://www.iobroker.net',Bgt='Als je nog steeds problemen hebt met de verbinding met Iot, kun je support im Forum aanvragen',Hgt='en pas daarna moet u een e-mail schrijven naar support@iobroker.com',Ugt='Geen iobroker.pro-account? Koop het op https://iobroker.pro voor gevalideerde toegang of krijg gratis toegang, maar beperkte toegang.',Wgt="gedeeld door een komma. Gebruik * om alle services toe te staan.",Vgt="Je kunt je belangrijkste hier vinden onder 'Documentatie'",Ggt="Naam is gewijzigd door gebruiker",qgt="Als u uw eigen cloud gebruikt, kunt u het gebruik van zelfondertekende certificaten voor de cloud toestaan.",Xgt="Deze sleutel is vereist om te communiceren met een cloud. Je kunt de API-KEY op https://iobroker.net krijgen en het lijkt op nickname_f1f439a0-001a-11e7-bc64-92361f002671",Jgt="Normaal gesproken hoeft u dit niet te veranderen. Alleen vereist als u van plan bent uw eigen cloud te gebruiken.",Ygt="Bepaal hoe kamer en functie moeten worden samengevoegd. Bijv. met 'in': licht in de woonkamer.",Kgt="Sommige groepen bestaan ​​uit gemengde apparaten: dimmers en schakelaars. Het is toegestaan ​​om ze te besturen met AAN- en UIT-commando's en met percentages",Zgt="Normaal gezien zien de namen eruit als room_function. Hier kun je het omschakelen naar function_room.",Qgt="Web-instantie, die wordt weergegeven voor uw verbindingen vanuit de cloud.",e_t="Je kunt de talen definiëren om snel te schakelen tussen US Alexa Skill en DE Alexa Skill.",t_t="Indien ingeschakeld, worden de instellingen alleen voor deze instantie opgeslagen. Dus in het andere geval kunnen de andere namen worden ingesteld.",n_t="Voor elke opdracht wordt het tekstantwoord gegenereerd. U kunt hier de Object-ID definiëren, waar deze tekst naartoe moet worden geschreven. Bijv. sayit.0.tts.text.",o_t="Oplossing voor ontbrekende verbinding met Alexa nadat de verbinding met de cloud verloren was gegaan. Met deze optie kunt u de adapter opnieuw opstarten na elke verbreking en het zal werken.",r_t="U kunt% in wachtwoord niet gebruiken. We werken aan de oplossing.",a_t=`Wachtwoord moet minimaal 8 tekens lang zijn en moet cijfers, hoofdletters en kleine letters bevatten. Wijzig dit in het ioBroker.pro-profiel -`,s_t="Als u een herstelbewerking hebt uitgevoerd vanaf een back-up of uw instantie van het ene apparaat naar het andere hebt verplaatst of het IoT-exemplaar hebt verwijderd en opnieuw hebt toegevoegd, moet u de verbindingsbeveiligingscertificaten met deze knop laden",i_t="Als het inloggen op Alexa Skill/Google Action/Alisa met de ioBroker.pro-inloggegevens mislukt, druk dan op de onderstaande knop.",l_t='Voor vragen in welke taal dan ook, stel deze hier op het forum: link ',c_t="Selecteer een TYPE en een TRAIT na het toevoegen van een staat. Om meerdere eigenschappen toe te voegen, voegt u een andere id en eigenschap toe, maar dezelfde slimme naam, type en kamer. Door komma's gescheiden voor de meerdere slimme namen. Gebruik de ioBroker Enums/Aufzählungen om een kamer toe te wijzen. Met attributen kun je bijvoorbeeld een bereik instellen voor de kleurtemperatuur Info over Kenmerken die u hier kunt vinden. Leeg kenmerk is {}",d_t="Zoeken",u_t="Naam",p_t="Kamer",h_t="ID",f_t="IoB-type",m_t="Attributen",g_t="Automatisch",__t="Verwijderen",v_t="Dimmer",y_t="Aan/Uit",b_t="Kleur",w_t="Detectie",S_t="Slot",x_t="modus",C_t="Gedempt",$_t="Percentage",k_t="Temperatuur",E_t="Volume",T_t="stopcontact",O_t="licht",D_t="dimmer",A_t="thermostaat",M_t="jaloezieën",N_t="hek",j_t="slot",z_t="tint",R_t="beweging",I_t="schuifregelaar",L_t="temperatuur",F_t="raam",P_t="Thermostaat",B_t="Licht",H_t="Airco",U_t="Jaloezieën",W_t="Contactsensor",V_t="Controle",G_t="Deur",q_t="Hek",X_t="Tint",J_t="Beweging",Y_t="Schuifregelaar",K_t="Stopcontact",Z_t="Stofzuiger",Q_t="Volumegroep",evt="Raam",tvt="Sensor",nvt="Jaloezieën",ovt="Schakelaar",rvt={"(Set to 0 if behavior not desired)":"(Stel in op 0 als gedrag niet gewenst is)","(you can separate names with comma)":"U kunt verschillende namen invoeren, gescheiden door een komma",Active:mgt,"Add device":"Voeg toestel toe","Add service":"Service toevoegen",Addresses:ggt,"Alexa devices":"Alexa-apparaten","Alisa devices":"Alisa-apparaten","Allow admin access (only pro)":"Beheerrechten toestaan ​​(alleen pro)","Allow self-signed certificates":"Sta zelf-ondertekende certificaten toe","Amazon Alexa":"Amazon Alexa","Are you sure?":"Weet je het zeker?","Attributes has not correct JSON format.":"Attributen hebben niet de juiste JSON-indeling","Authentication must be disabled. You can create second instance extra for cloud.":"Verificatie moet zijn uitgeschakeld. U kunt een tweede exemplaar extra voor de cloud maken.",Cancel:_gt,"Cannot add this object":"Kan dit object niet toevoegen, omdat het niet wordt ondersteund.","Cannot read devices!":"Kan geen apparaten lezen!","Certificates will be updated after initiated restart":"Certificaten worden bijgewerkt na de herstart opnieuw gestart","Certificates will be updated after start":"Certificaten worden na het opstarten bijgewerkt","Click now Get new connection certificates to request new temporary password":'Klik nu op "Nieuwe verbindingscertificaten verkrijgen" om een ​​nieuw tijdelijk wachtwoord aan te vragen',Close:vgt,"Cloud URL":"Cloud URL","Cloud adapter settings":"Cloud adapter-instellingen",Commands:ygt,"Concatenate words with":"Woorden samenvoegen met","Connection timeout":"Verbinding time-out (ms)","Debug outputs":"Debug-uitgangen","Decrement color temperature":"Verlaag de kleurtemperatuur","Decrement percentage":"Verlagingspercentage","Decrement target temperature":"Verlaag de doeltemperatuur",Default:bgt,"Device %s was not added":"Apparaat %s is niet toegevoegd","Device will be deactivated.":"Apparaat wordt gedeactiveerd.","Device will be disabled.":"Apparaat %s zal worden uitgeschakeld.",Dimmer:wgt,"Duplicate name":"Dubbele naam","Edit smart name":"Bewerk slimme naam",Error:"Fout","Extended options":"Uitgebreide opties",Filter:Sgt,"For help use this forum":"Ga voor hulp naar dit forum post",Functions:xgt,"Get actual temperature":"Krijg de werkelijke temperatuur","Get new connection certificates":"Ontvang nieuwe verbindingscertificaten","Get new service URL key":"Ontvang nieuwe service URL-sleutel","Get target temperature":"Krijg doeltemperatuur","Google Home":"Google Home","IFTTT key":"IFTTT-sleutel","Increment color temperature":"Verhoog de kleurtemperatuur","Increment percentage":"Verhoging percentage","Increment target temperature":"Verhoog de doeltemperatuur",Instance:Cgt,"Instance does not exists":"Instantie bestaat niet","Instance is not active.":"Instantie is niet actief.","Instance must be enabled":"Exemplaar moet zijn ingeschakeld","Instance must run to deliver the data":"Het exemplaar moet worden uitgevoerd om de gegevens te bezorgen","Invalid object":"Ongeldig object",Language:$gt,"Load configuration from file":"Laad configuratie vanuit bestand",Message:kgt,"OFF level for switches":"UIT-niveau voor schakelaars","OFF level for switches in %":"UIT-niveau voor schakelaars in %",Off:Egt,Ok:Tgt,On:Ogt,"On/Off":"Aan uit",Options:Dgt,"Personal settings (only pro)":"Persoonlijke instellingen (alleen pro)","Ping timeout:":"Ping-timeout (ms)","Place function in names first":"Plaats eerst de functie in namen","Please add action and trait to complete the Google Home state.":"Voeg actie en eigenschap toe om de Google Home-status te voltooien.","Please add type and trait to complete the Google Home state.":"Voeg type en kenmerk toe om de Google Home-status te voltooien.","Please select object ID...":"Selecteer een object-ID ...","Please write your email only in lower case letters":"Schrijf uw e-mail alleen in kleine letters","Read lock state":"Lees de vergrendelingsstatus","Replace in names":"Vervangen in namen","Request email with password one more time":"E-mail met wachtwoord nog een keer aanvragen","Restart on disconnect":"Opnieuw opstarten bij verbreken",Review:Agt,Rooms:Mgt,Save:Ngt,"Save and close":"Opslaan en sluiten","Save configuration to file":"Sla configuratie op naar bestand","Save settings and the names will be changed":"Sla instellingen op en de namen worden gewijzigd",Select:jgt,"Service names":"Servicenamen","Services and IFTTT":"Diensten en IFTTT","Set color":"Stel de kleur in","Set color temperature":"Stel de kleurtemperatuur in","Set lock state":"Stel de vergrendelingsstatus in","Set percentage":"Percentage instellen","Set target temperature":"Stel de doeltemperatuur in","Smart Devices":"Slimme apparaten","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Slim enums","Smart name":"Slimme naam","Smart name for %s":"Slimme naam voor %s","To apply this setting, the restart of adapter must be done. Agree?":"Om deze instelling toe te passen, moet de adapter opnieuw worden opgestart. Mee eens?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Voor automatische detectie wijst onder objecten een kanaal (apparaat als er geen kanaal beschikbaar is) toe aan een kamer en functie. Het is niet voldoende om de kamer toe te wijzen aan een staat of apparaat. Kamers/functies kunnen worden toegevoegd onder opsomming (aangegeven door de witte pijl in de rechterbovenhoek) en moeten worden geactiveerd in de IoT-adapter onder Intelligente opsomming. Om handmatige statussen automatisch te herkennen, moet de status worden verwijderd.","Turn off":"Uitschakelen","Turn on":"Aanzetten",Type:zgt,Types:Rgt,"Use Nightscout instance":"Gebruik de Nightscout-instantie","Use following link for IFTTT":"Gebruik de volgende link voor IFTTT","Use following link for custom service":"Gebruik de volgende link voor aangepaste service","Use text2command instance":"Gebruik de text2command-instantie",Value:Igt,"White list for services":"Witte lijst voor services","Write response to":"Schrijf reactie op","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"U kunt verschillende namen invoeren, gescheiden door een komma","amazon link":"Als je de Alexa Skill gebruikt, schrijf dan een recensie voor ons hier.
Voorbeelden zijn hier te vinden.","by ON":"door ON",clear:Lgt,default:"standaard",disabled:Fgt,help_link_tip1:Pgt,help_link_tip2:Bgt,help_link_tip3:Hgt,help_tip:Ugt,info_allowedServices:Wgt,info_iftttKey:Vgt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Wachtwoord","omit value":"geen waarde","last value":"laatste waarde",modified:Ggt,"no type":"geen type",tooltip_allowSelfSignedCertificate:qgt,tooltip_apikey:Xgt,tooltip_cloudUrl:Jgt,tooltip_concatWord:Ygt,tooltip_deviceOffLevel:Kgt,tooltip_functionFirst:Zgt,tooltip_instance:Qgt,tooltip_language:e_t,tooltip_noCommon:t_t,tooltip_responseOID:n_t,tooltip_restartOnDisconnect:o_t,"Short answer for blood sugar":"Kort antwoord voor bloedsuiker",cannot_use_password:r_t,invalid_password_warning:a_t,new_certs_tip:s_t,new_credentials_tip:i_t,"Create IoT credentials anew":"Maak opnieuw IoT-inloggegevens",forum_tip:l_t,"Save settings before pressing this button":"Sla de instellingen op voordat u op deze knop drukt","Auto Mode":"Automatische modus","Manual Mode":"Handmatige modus",manualModeHint:c_t,"not activated":"niet geactiveerd","Google devices":"Google-apparaten","Show/Hide help":"Help weergeven / verbergen","Show all devices for print out":"Alle apparaten weergeven om af te drukken",Search:d_t,"List of devices to print out, e.g. to give all device names to your partner.":"Lijst met af te drukken apparaten, b.v. om alle apparaatnamen aan uw partner te geven.",Name:u_t,Function:"Functie",Room:p_t,"Copy to clipboard":"Kopieer naar klembord","Toggle expert mode":"Schakel de expertmodus in",ID:h_t,"Smart names":"Slimme namen",ioBType:f_t,"Function/Trait":"Functie / eigenschap",Attributes:m_t,Auto:g_t,"Conversation to GH":"Converteer naar GH","Conversation to ioB":"Converteer naar ioB","Information: The skill linking process was changed!":"Informatie: het proces voor het koppelen van vaardigheden is gewijzigd!","The linking process has been changed for a few months.":"Het koppelingsproces is voor een paar maanden gewijzigd.","Now there is no temporary password that will be sent by email.":"Nu is er geen tijdelijk wachtwoord dat per e-mail wordt verzonden.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Het wachtwoord is gelijk aan ioBroker.pro en met het wachtwoord dat hier in de instellingen is ingevoerd!","Not understood":"Niet begrepen","Roger that":"Begrepen","Read blood sugar from":"Lees de bloedsuikerspiegel van","Get actual humidity":"Verkrijg de werkelijke luchtvochtigheid","Get motion":"Krijg beweging","Get contact":"Krijg contactstatus","Too many devices (%s) configured. Max number is 300":"Te veel apparaten (%s) geconfigureerd. Maximaal aantal is 300!","Allow remote access":"Externe toegang toestaan","Admin instance":"Beheerdersinstantie","Web instance":"Webinstantie","Device %s will be disabled.":"Apparaat %s wordt uitgeschakeld.",Delete:__t,Brightness:v_t,Power:y_t,"Color temperature":"Kleurtemperatuur",Color:b_t,Detection:w_t,Lock:S_t,Mode:x_t,Muted:C_t,Percentage:$_t,"Set point":"Setpunt",Temperature:k_t,"Thermostat mode":"Thermostaat modus",Volume:E_t,socket:T_t,light:O_t,dimmer:D_t,thermostat:A_t,blind:M_t,gate:N_t,lock:j_t,hue:z_t,motion:R_t,slider:I_t,temperature:L_t,window:F_t,Thermostat:P_t,Light:B_t,AirCondition:H_t,Blind:U_t,ContactSensor:W_t,Control:V_t,Door:G_t,Gate:q_t,Hue:X_t,Motion:J_t,Slider:Y_t,Socket:K_t,VacuumCleaner:Z_t,VolumeGroup:Q_t,Window:evt,"Color HUE":"Kleur TINT","Door sensor":"Deur sensor",Sensor:tvt,"Vacuum cleaner":"Stofzuiger","Volume group":"Volumegroep","Window sensor":"Raam sensor",Blinds:nvt,"Grouped from %s and %s":"Gegroepeerd van %s en %s","Default toggle behaviour (Only alexa v3)":"Standaard schakelgedrag (alleen alexa v3)","Do not toggle":"Wissel niet",Toggle:ovt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Deze service is gereserveerd voor de ioBroker.visu-app. Gebruik een andere servicenaam."},avt="actif",svt="Adresses",ivt="Annuler",lvt="Fermer",cvt="Commandes",dvt="Défaut",uvt="Variateur",pvt="Filtre",hvt="Les fonctions",fvt="Exemple",mvt="La langue",gvt="Message",_vt="de",vvt="D'accord",yvt="sur",bvt="Options",wvt="La revue",Svt="Pièces",xvt="sauvegarder",Cvt="Sélectionner",$vt="Type",kvt="Les types",Evt="Valeur",Tvt="nettoyer",Ovt="désactivée",Dvt=`Avant d'écrire au support, assurez-vous d'avoir lu et compris les instructions de la page Web: https://www.iobroker.net`,Avt='Si vous rencontrez toujours des problèmes avec la connexion à Iot, vous pouvez demander une assistance dans le forum',Mvt='et seulement après cela, vous devez écrire un e-mail à support@iobroker.com',Nvt='Pas de compte iobroker.pro? Achetez-le sur https://iobroker.pro pour un accès validé ou obtenez gratuitement un accès limité.',jvt="divisé par virgule. Utilisez * pour autoriser tous les services.",zvt="Vous pouvez trouver votre clé ici sous 'Documentation'",Rvt="Le nom a été modifié par l'utilisateur",Ivt="Si vous utilisez votre propre cloud, vous pouvez autoriser l'utilisation de certificats autosignés pour le cloud.",Lvt="Cette clé est requise pour communiquer avec un nuage. Vous pouvez obtenir l'API-KEY sur https://iobroker.net et il ressemble à pseudo_f1f439a0-001a-11e7-bc64-92361f002671",Fvt="Normalement, vous n'avez pas besoin de le changer. Uniquement nécessaire si vous prévoyez d'utiliser votre propre cloud.",Pvt="Définir la concaténation de la pièce et de la fonction. Par exemple. avec 'in': Lumière dans le salon.",Bvt="Certains groupes sont composés de dispositifs mixtes: gradateurs et commutateurs. Il est permis de les contrôler avec des commandes ON et OFF et avec des pourcentages",Hvt="Normalement, les noms ressemblent à room_function. Ici vous pouvez passer à function_room.",Uvt="Instance Web, qui sera affichée pour vos connexions depuis le cloud.",Wvt="Vous pouvez définir les langues pour passer rapidement entre les compétences américaines Alexa et DE Alexa.",Vvt="Si activé, les paramètres seront stockés uniquement pour cette instance. Dans un autre cas, les autres noms pourraient être définis.",Gvt="Pour chaque commande, la réponse textuelle sera générée. Vous pouvez définir ici l'ID de l'objet, où ce texte doit être écrit. Par exemple. sayit.0.tts.text.",qvt="Solution de contournement pour la connexion manquante à Alexa après la connexion au cloud a été perdue. Avec cette option, vous pouvez redémarrer l'adaptateur après chaque déconnexion et cela fonctionnera.",Xvt="Vous ne pouvez pas utiliser% dans le mot de passe. Nous travaillons sur le correctif.",Jvt=`Le mot de passe doit comporter au moins 8 caractères et doit comporter des chiffres, des lettres majuscules et minuscules. Veuillez le modifier dans le profil ioBroker.pro -`,Yvt="Si vous avez effectué une restauration à partir d'une sauvegarde, ou déplacé votre instance d'un appareil vers un autre ou supprimé l'instance IoT et l'ajoutée à nouveau, vous devez charger les certificats de sécurité de connexion avec ce bouton",Kvt="Si la connexion à Alexa Skill/Google Action/Alisa avec les données de connexion ioBroker.pro échoue, veuillez appuyer sur le bouton ci-dessous.",Zvt=`Si vous avez des questions dans n'importe quelle langue, posez-les ici dans le forum: lien `,Qvt="Veuillez sélectionner un TYPE et un TRAIT après avoir ajouté un état. Pour ajouter plusieurs traits, ajoutez un identifiant et un trait différents, mais le même nom intelligent, le même type et la même pièce. Séparé par des virgules pour les multiples noms intelligents. Pour attribuer une chambre, veuillez utiliser les ioBroker Enums/Aufzählungen. Avec les attributs, vous pouvez par exemple définir une plage de température de couleur Infos sur Les attributs que vous pouvez trouver ici. L'attribut vide est {}",eyt="Chercher",tyt="Nom",nyt="Chambre",oyt="ID",ryt="Type IoB",ayt="Les attributs",syt="Automatiquement",iyt="Effacer",lyt="Variateur",cyt="Allumé/éteint",dyt="Couleur",uyt="Détection",pyt="Serrure",hyt="Mode",fyt="En sourdine",myt="Pourcentage",gyt="Température",_yt="Volume",vyt="prise",yyt="lumière",byt="variateur",wyt="thermostat",Syt="stores de fenêtre",xyt="portail",Cyt="serrure",$yt="teinte",kyt="mouvement",Eyt="glissière",Tyt="température",Oyt="fenêtre",Dyt="Thermostat",Ayt="Lumière",Myt="Air conditionné",Nyt="Stores de fenêtre",jyt="Contacter le capteur",zyt="Contrôle",Ryt="Porte",Iyt="Portail",Lyt="Teinte",Fyt="Mouvement",Pyt="Glissière",Byt="Prise",Hyt="aspirateur",Uyt="Groupe de volumes",Wyt="Fenêtre",Vyt="Capteur",Gyt="Stores de fenêtre",qyt="Basculer",Xyt={"(Set to 0 if behavior not desired)":"(Mettre à 0 si le comportement n'est pas désiré)","(you can separate names with comma)":"Vous pouvez entrer plusieurs noms divisés par une virgule",Active:avt,"Add device":"Ajouter un appareil","Add service":"Ajouter un service",Addresses:svt,"Alexa devices":"Appareils Alexa","Alisa devices":"Appareils Alisa","Allow admin access (only pro)":"Autoriser l'accès administrateur (uniquement pro)","Allow self-signed certificates":"Autoriser les certificats auto-signés","Amazon Alexa":"Amazon Alexa","Are you sure?":"Êtes-vous sûr?","Attributes has not correct JSON format.":"Les attributs ne sont pas au format JSON correct","Authentication must be disabled. You can create second instance extra for cloud.":"L'authentification doit être désactivée. Vous pouvez créer une seconde instance supplémentaire pour le cloud.",Cancel:ivt,"Cannot add this object":"Impossible d'ajouter cet objet, car non pris en charge.","Cannot read devices!":"Impossible de lire les appareils!","Certificates will be updated after initiated restart":"Les certificats seront mis à jour après le redémarrage initié","Certificates will be updated after start":"Les certificats seront mis à jour après le démarrage","Click now Get new connection certificates to request new temporary password":'Cliquez maintenant sur "Obtenir de nouveaux certificats de connexion" pour demander un nouveau mot de passe temporaire.',Close:lvt,"Cloud URL":"URL de cloud","Cloud adapter settings":"Paramètres de l'adaptateur cloud",Commands:cvt,"Concatenate words with":"Concaténer les mots avec","Connection timeout":"Délai de connexion (ms)","Debug outputs":"Déboguer les sorties","Decrement color temperature":"Décrémenter la température de couleur","Decrement percentage":"Pourcentage de décrémentation","Decrement target temperature":"Décrémenter la température cible",Default:dvt,"Device %s was not added":"Le périphérique %s n'a pas été ajouté","Device will be deactivated.":"L'appareil sera désactivé.","Device will be disabled.":"L'appareil %s sera désactivé.",Dimmer:uvt,"Duplicate name":"Nom en double","Edit smart name":"Modifier le nom intelligent",Error:"Erreur","Extended options":"Options étendues",Filter:pvt,"For help use this forum":"Pour obtenir de l'aide, visitez ce forum publier",Functions:hvt,"Get actual temperature":"Obtenir la température réelle","Get new connection certificates":"Obtenir de nouveaux certificats de connexion","Get new service URL key":"Obtenir une nouvelle clé d'URL de service","Get target temperature":"Obtenir la température cible","Google Home":"Google Home","IFTTT key":"Touche IFTTT","Increment color temperature":"Incrément de température de couleur","Increment percentage":"Pourcentage d'incrément","Increment target temperature":"Augmenter la température cible",Instance:fvt,"Instance does not exists":"L'instance n'existe pas","Instance is not active.":"L'instance n'est pas active.","Instance must be enabled":"L'instance doit être activée","Instance must run to deliver the data":"L'instance doit s'exécuter pour fournir les données","Invalid object":"Objet invalide",Language:mvt,"Load configuration from file":"Charger la configuration du fichier",Message:gvt,"OFF level for switches":"Niveau OFF pour les commutateurs","OFF level for switches in %":"Niveau OFF pour les commutateurs en %",Off:_vt,Ok:vvt,On:yvt,"On/Off":"Allumé éteint",Options:bvt,"Personal settings (only pro)":"Paramètres personnels (uniquement pro)","Ping timeout:":"Ping timeout (ms)","Place function in names first":"Placez la fonction dans les noms en premier","Please add action and trait to complete the Google Home state.":"Veuillez ajouter une action et un trait pour terminer l'état de Google Home.","Please add type and trait to complete the Google Home state.":"Veuillez ajouter un type et un trait pour terminer l'état de Google Home.","Please select object ID...":"Veuillez sélectionner l'ID d'objet ...","Please write your email only in lower case letters":"S'il vous plaît écrivez votre email uniquement en minuscules","Read lock state":"État verrouillé","Replace in names":"Remplacer dans les noms","Request email with password one more time":"Demander l'email avec le mot de passe une fois de plus","Restart on disconnect":"Redémarrer à la déconnexion",Review:wvt,Rooms:Svt,Save:xvt,"Save and close":"Sauver et fermer","Save configuration to file":"Enregistrer la configuration dans un fichier","Save settings and the names will be changed":"Enregistrer les paramètres et les noms seront modifiés",Select:Cvt,"Service names":"Noms de service","Services and IFTTT":"Services et IFTTT","Set color":"Définir la couleur","Set color temperature":"Régler la température de couleur","Set lock state":"Définir l'état de verrouillage","Set percentage":"Définir le pourcentage","Set target temperature":"Régler la température cible","Smart Devices":"Smart Devices","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Smart enums","Smart name":"Nom intelligent","Smart name for %s":"Nom intelligent pour %s","To apply this setting, the restart of adapter must be done. Agree?":"Pour appliquer ce paramètre, l'adaptateur doit être redémarré. Se mettre d'accord?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Pour la détection automatique, sous les objets, affectez un canal (appareil si aucun canal n'est disponible) à une pièce et une fonction. Il ne suffit pas d'affecter la pièce à un état ou à un appareil. Les salles/fonctions peuvent être ajoutées sous l'énumération (indiquée par la flèche blanche en haut à droite) et doivent être activées dans l'adaptateur IoT sous l'énumération intelligente. Afin de reconnaître automatiquement les états manuels, l'état doit être supprimé.","Turn off":"Éteindre","Turn on":"Allumer",Type:$vt,Types:kvt,"Use Nightscout instance":"Utilisez l'instance Nightscout","Use following link for IFTTT":"Utilisez le lien suivant pour IFTTT","Use following link for custom service":"Utilisez le lien suivant pour un service personnalisé","Use text2command instance":"Utilisez l'instance text2command",Value:Evt,"White list for services":"Liste blanche pour les services","Write response to":"Écrire une réponse à","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Vous pouvez entrer plusieurs noms divisés par une virgule","amazon link":"Si vous utilisez la compétence Alexa, veuillez écrire une critique pour nous ici.
Des exemples peuvent être trouvés ici .","by ON":"par le",clear:Tvt,default:"défaut",disabled:Ovt,help_link_tip1:Dvt,help_link_tip2:Avt,help_link_tip3:Mvt,help_tip:Nvt,info_allowedServices:jvt,info_iftttKey:zvt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"Mot de passe ioBroker.pro","omit value":"aucune valeur","last value":"dernière valeur",modified:Rvt,"no type":"pas de type",tooltip_allowSelfSignedCertificate:Ivt,tooltip_apikey:Lvt,tooltip_cloudUrl:Fvt,tooltip_concatWord:Pvt,tooltip_deviceOffLevel:Bvt,tooltip_functionFirst:Hvt,tooltip_instance:Uvt,tooltip_language:Wvt,tooltip_noCommon:Vvt,tooltip_responseOID:Gvt,tooltip_restartOnDisconnect:qvt,"Short answer for blood sugar":"Réponse courte pour la glycémie",cannot_use_password:Xvt,invalid_password_warning:Jvt,new_certs_tip:Yvt,new_credentials_tip:Kvt,"Create IoT credentials anew":"Créez à nouveau les informations d'identification IoT",forum_tip:Zvt,"Save settings before pressing this button":"Enregistrez les paramètres avant d'appuyer sur ce bouton","Auto Mode":"Mode automatique","Manual Mode":"Mode manuel",manualModeHint:Qvt,"not activated":"non activé","Google devices":"Appareils Google","Show/Hide help":"Afficher / masquer l'aide","Show all devices for print out":"Afficher tous les appareils à imprimer",Search:eyt,"List of devices to print out, e.g. to give all device names to your partner.":"Liste des périphériques à imprimer, par ex. pour donner tous les noms d'appareils à votre partenaire.",Name:tyt,Function:"Fonction",Room:nyt,"Copy to clipboard":"Copier dans le presse-papier","Toggle expert mode":"Basculer en mode expert",ID:oyt,"Smart names":"Noms intelligents",ioBType:ryt,"Function/Trait":"Fonction / trait",Attributes:ayt,Auto:syt,"Conversation to GH":"Convertir en GH","Conversation to ioB":"Convertir en ioB","Information: The skill linking process was changed!":"Information: le processus de liaison des compétences a été modifié!","The linking process has been changed for a few months.":"Le processus de mise en relation a été modifié depuis quelques mois.","Now there is no temporary password that will be sent by email.":"Désormais, aucun mot de passe temporaire ne sera envoyé par e-mail.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Le mot de passe est égal à ioBroker.pro et au mot de passe qui a été saisi ici dans les paramètres!","Not understood":"Pas compris","Roger that":"Bien reçu","Read blood sugar from":"Lire la glycémie à partir de","Get actual humidity":"Obtenez l'humidité réelle","Get motion":"Obtenez du mouvement","Get contact":"Obtenir le statut du contact","Too many devices (%s) configured. Max number is 300":"Trop de périphériques (%s) configurés. Le nombre maximum est 300 !","Allow remote access":"Autoriser l'accès à distance","Admin instance":"Instance d'administration","Web instance":"Instance Web","Device %s will be disabled.":"Le périphérique %s sera désactivé.",Delete:iyt,Brightness:lyt,Power:cyt,"Color temperature":"Température de couleur",Color:dyt,Detection:uyt,Lock:pyt,Mode:hyt,Muted:fyt,Percentage:myt,"Set point":"Point de consigne",Temperature:gyt,"Thermostat mode":"Mode thermostatique",Volume:_yt,socket:vyt,light:yyt,dimmer:byt,thermostat:wyt,blind:Syt,gate:xyt,lock:Cyt,hue:$yt,motion:kyt,slider:Eyt,temperature:Tyt,window:Oyt,Thermostat:Dyt,Light:Ayt,AirCondition:Myt,Blind:Nyt,ContactSensor:jyt,Control:zyt,Door:Ryt,Gate:Iyt,Hue:Lyt,Motion:Fyt,Slider:Pyt,Socket:Byt,VacuumCleaner:Hyt,VolumeGroup:Uyt,Window:Wyt,"Color HUE":"Teinte de couleur","Door sensor":"Capteur de porte",Sensor:Vyt,"Vacuum cleaner":"aspirateur","Volume group":"Groupe de volumes","Window sensor":"Capteur de fenêtre",Blinds:Gyt,"Grouped from %s and %s":"Groupé de %s et %s","Default toggle behaviour (Only alexa v3)":"Comportement de basculement par défaut (uniquement alexa v3)","Do not toggle":"Ne pas basculer",Toggle:qyt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Ce service est réservé à l'application ioBroker.visu. Veuillez utiliser un autre nom de service."},Jyt="Attivo",Yyt="indirizzi",Kyt="Annulla",Zyt="Vicino",Qyt="comandi",ebt="Predefinito",tbt="oscuratore",nbt="Filtro",obt="funzioni",rbt="Esempio",abt="Linguaggio",sbt="Messaggio",ibt="via",lbt="Ok",cbt="sopra",dbt="Opzioni",ubt="Revisione",pbt="Camere",hbt="Salvare",fbt="Selezionare",mbt="Genere",gbt="tipi",_bt="Valore",vbt="cancellare",ybt="Disabilitato",bbt='Prima di scrivere per il supporto, assicurarsi di aver letto e compreso le istruzioni della pagina Web: https://www.iobroker.net',wbt='Se hai ancora problemi con la connessione a Iot, puoi richiedere supporto a Forum',Sbt='e solo dopo dovrai scrivere una email a support@iobroker.com',xbt=`Nessun account iobroker.pro? Compralo su https://iobroker.pro per l'accesso convalidato o ottieni l'accesso gratuito, ma limitato.`,Cbt="diviso per virgola. Usa * per consentire tutti i servizi.",$bt="Puoi trovare la tua chiave qui in 'Documentazione'",kbt="Il nome è stato modificato dall'utente",Ebt="Se si utilizza il proprio cloud, è possibile consentire l'uso di certificati autofirmati per il cloud.",Tbt="Questa chiave è necessaria per comunicare con un cloud. Puoi ottenere l'API-KEY su https://iobroker.net e sembra nickname_f1f439a0-001a-11e7-bc64-92361f002671",Obt="Normalmente non è necessario cambiarlo. Richiesto solo se prevedi di utilizzare il tuo cloud.",Dbt="Definire come concatenare Room e Function. Per esempio. con 'in': luce nel soggiorno.",Abt="Alcuni gruppi sono costituiti da dispositivi misti: dimmer e interruttori. È consentito controllarli con comandi ON e OFF e con percentuali",Mbt="Normalmente i nomi assomigliano a room_function. Qui puoi passare a function_room.",Nbt="Istanza Web, che verrà mostrata per le connessioni dal cloud.",jbt="È possibile definire le lingue per passare velocemente da US Alexa Skill a DE Alexa Skill.",zbt="Se abilitato, le impostazioni verranno memorizzate solo per questa istanza. Quindi in un'altra istanza potrebbero essere impostati gli altri nomi.",Rbt="Per ogni comando verrà generata la risposta testuale. È possibile definire qui l'ID oggetto, dove questo testo deve essere scritto. Per esempio. sayit.0.tts.text.",Ibt="Soluzione alternativa per la mancata connessione ad Alexa dopo la perdita della connessione al cloud. Con questa opzione è possibile riavviare l'adattatore dopo ogni disconnessione e funzionerà.",Lbt="Non è possibile utilizzare% nella password. Stiamo lavorando alla correzione.",Fbt=`La password deve contenere almeno 8 caratteri e deve contenere numeri, lettere maiuscole e minuscole. Si prega di cambiarlo nel profilo ioBroker.pro -`,Pbt="Se hai effettuato un ripristino dal backup o hai spostato l'istanza da un dispositivo all'altro o hai eliminato l'istanza IoT e l'hai aggiunta di nuovo, devi caricare i certificati di sicurezza della connessione con questo pulsante",Bbt="Se l'accesso ad Alexa Skill/Google Action/Alisa con i dati di accesso ioBroker.pro non riesce, premere il pulsante in basso.",Hbt='Per qualsiasi domanda in qualsiasi lingua, si prega di porre qui nel forum: link ',Ubt="Seleziona un TYPE e un TRAIT dopo aver aggiunto uno stato. Per aggiungere più tratti, aggiungi un ID e un tratto diversi ma lo stesso nome, tipo e spazio intelligenti. Virgola separata per più nomi intelligenti. Per assegnare una stanza, utilizzare ioBroker Enums/Aufzählungen. Con gli attributi puoi ad esempio impostare un intervallo per la temperatura del colore Informazioni su Gli attributi che puoi trovare qui. L'attributo vuoto è {}",Wbt="Ricerca",Vbt="Nome",Gbt="Camera",qbt="ID",Xbt="Tipo di IoB",Jbt="attributi",Ybt="Automaticamente",Kbt="Elimina",Zbt="Dimmer",Qbt="Acceso/Spento",e0t="Colore",t0t="Rilevamento",n0t="Serratura",o0t="Modalità",r0t="Disattivato",a0t="Percentuale",s0t="Temperatura",i0t="Volume",l0t="PRESA",c0t="leggero",d0t="dimmer",u0t="termostato",p0t="tapparelle",h0t="cancello",f0t="serratura",m0t="tinta",g0t="movimento",_0t="cursore",v0t="temperatura",y0t="finestra",b0t="Termostato",w0t="Leggero",S0t="Aria condizionata",x0t="Tapparelle",C0t="Sensore di contatto",$0t="Controllo",k0t="Porta",E0t="Cancello",T0t="Tinta",O0t="Movimento",D0t="Cursore",A0t="PRESA",M0t="Aspirapolvere",N0t="Gruppo di volumi",j0t="Finestra",z0t="Sensore",R0t="Tapparelle",I0t="Alterna",L0t={"(Set to 0 if behavior not desired)":"(Impostare su 0 se il comportamento non è desiderato)","(you can separate names with comma)":"È possibile inserire diversi nomi divisi per virgola",Active:Jyt,"Add device":"Aggiungi dispositivo","Add service":"Aggiungi servizio",Addresses:Yyt,"Alexa devices":"Dispositivi Alexa","Alisa devices":"Dispositivi Alisa","Allow admin access (only pro)":"Permetti l'accesso amministratore (solo pro)","Allow self-signed certificates":"Consenti certificati autofirmati","Amazon Alexa":"Amazon Alexa","Are you sure?":"Sei sicuro?","Attributes has not correct JSON format.":"Gli attributi non sono nel formato JSON corretto","Authentication must be disabled. You can create second instance extra for cloud.":"L'autenticazione deve essere disabilitata. È possibile creare un extra di seconda istanza per il cloud.",Cancel:Kyt,"Cannot add this object":"Impossibile aggiungere questo oggetto, perché non supportato.","Cannot read devices!":"Impossibile leggere i dispositivi!","Certificates will be updated after initiated restart":"I certificati verranno aggiornati dopo il riavvio avviato","Certificates will be updated after start":"I certificati verranno aggiornati dopo l'avvio","Click now Get new connection certificates to request new temporary password":'Fare clic su "Ottieni nuovi certificati di connessione" per richiedere una nuova password temporanea',Close:Zyt,"Cloud URL":"URL del cloud","Cloud adapter settings":"Impostazioni dell'adattatore cloud",Commands:Qyt,"Concatenate words with":"Parole concatenate con","Connection timeout":"Timeout connessione (ms)","Debug outputs":"Uscite di debug","Decrement color temperature":"Ridurre la temperatura del colore","Decrement percentage":"Percentuale di decremento","Decrement target temperature":"Ridurre la temperatura target",Default:ebt,"Device %s was not added":"Il dispositivo %s non è stato aggiunto","Device will be deactivated.":"Il dispositivo sarà disattivato.","Device will be disabled.":"Il dispositivo sarà disabilitato.",Dimmer:tbt,"Duplicate name":"Nome duplicato","Edit smart name":"Modifica il nome intelligente",Error:"Errore","Extended options":"Opzioni estese",Filter:nbt,"For help use this forum":"Per assistenza, visita questo forum post",Functions:obt,"Get actual temperature":"Ottieni la temperatura effettiva","Get new connection certificates":"Ottieni nuovi certificati di connessione","Get new service URL key":"Ottieni una nuova chiave URL del servizio","Get target temperature":"Ottieni la temperatura target","Google Home":"Google Home","IFTTT key":"Tasto IFTTT","Increment color temperature":"Incrementa la temperatura del colore","Increment percentage":"Percentuale di incremento","Increment target temperature":"Incremento della temperatura target",Instance:rbt,"Instance does not exists":"L'istanza non esiste","Instance is not active.":"L'istanza non è attiva.","Instance must be enabled":"L'istanza deve essere abilitata","Instance must run to deliver the data":"L'istanza deve essere eseguita per consegnare i dati","Invalid object":"Oggetto non valido",Language:abt,"Load configuration from file":"Carica la configurazione dal file",Message:sbt,"OFF level for switches":"Livello OFF per interruttori","OFF level for switches in %":"Livello OFF per gli interruttori in %",Off:ibt,Ok:lbt,On:cbt,"On/Off":"Acceso spento",Options:dbt,"Personal settings (only pro)":"Impostazioni personali (solo pro)","Ping timeout:":"Timeout del ping (ms)","Place function in names first":"Inserisci la funzione nei nomi prima","Please add action and trait to complete the Google Home state.":"Aggiungi azione e tratto per completare lo stato di Google Home.","Please add type and trait to complete the Google Home state.":"Aggiungi tipo e tratto per completare lo stato di Google Home.","Please select object ID...":"Si prega di selezionare l'oggetto ID ...","Please write your email only in lower case letters":"Si prega di scrivere la tua email solo in lettere minuscole","Read lock state":"Leggi lo stato di blocco","Replace in names":"Sostituisci nei nomi","Request email with password one more time":"Richiedi l'email con la password ancora una volta","Restart on disconnect":"Riavvia alla disconnessione",Review:ubt,Rooms:pbt,Save:hbt,"Save and close":"Salva e chiudi","Save configuration to file":"Salva la configurazione nel file","Save settings and the names will be changed":"Salva le impostazioni e i nomi saranno cambiati",Select:fbt,"Service names":"Nomi di servizio","Services and IFTTT":"Servizi e IFTTT","Set color":"Imposta il colore","Set color temperature":"Imposta la temperatura del colore","Set lock state":"Imposta lo stato di blocco","Set percentage":"Imposta la percentuale","Set target temperature":"Imposta la temperatura target","Smart Devices":"Dispositivi intelligenti","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Enumerazioni intelligenti","Smart name":"Nome intelligente","Smart name for %s":"Nome intelligente per %s","To apply this setting, the restart of adapter must be done. Agree?":"Per applicare questa impostazione, è necessario riavviare l'adattatore. Essere d'accordo?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Per il rilevamento automatico, sotto gli oggetti assegnare un canale (dispositivo se non è disponibile alcun canale) a una stanza e funzione. Non è sufficiente assegnare la stanza a uno stato o dispositivo. Le sale/funzioni possono essere aggiunte all'enumerazione (indicata dalla freccia bianca in alto a destra) e devono essere attivate nell'adattatore IoT in Enumerazione intelligente. Per riconoscere automaticamente gli stati manuali, è necessario eliminare lo stato.","Turn off":"Spegni","Turn on":"Accendere",Type:mbt,Types:gbt,"Use Nightscout instance":"Utilizza l'istanza Nightscout","Use following link for IFTTT":"Usa il seguente link per IFTTT","Use following link for custom service":"Usa il seguente link per il servizio personalizzato","Use text2command instance":"Utilizza l'istanza text2command",Value:_bt,"White list for services":"Lista bianca per i servizi","Write response to":"Scrivi risposta a","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"È possibile inserire diversi nomi divisi per virgola","amazon link":"Se usi Alexa Skill, scrivi una recensione per noi here.
Gli esempi possono essere trovati qui .","by ON":"da ON",clear:vbt,default:"predefinito",disabled:ybt,help_link_tip1:bbt,help_link_tip2:wbt,help_link_tip3:Sbt,help_tip:xbt,info_allowedServices:Cbt,info_iftttKey:$bt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Password","omit value":"nessun valore","last value":"ultimo valore",modified:kbt,"no type":"nessun tipo",tooltip_allowSelfSignedCertificate:Ebt,tooltip_apikey:Tbt,tooltip_cloudUrl:Obt,tooltip_concatWord:Dbt,tooltip_deviceOffLevel:Abt,tooltip_functionFirst:Mbt,tooltip_instance:Nbt,tooltip_language:jbt,tooltip_noCommon:zbt,tooltip_responseOID:Rbt,tooltip_restartOnDisconnect:Ibt,"Short answer for blood sugar":"Risposta breve per zucchero nel sangue",cannot_use_password:Lbt,invalid_password_warning:Fbt,new_certs_tip:Pbt,new_credentials_tip:Bbt,"Create IoT credentials anew":"Crea nuovamente le credenziali IoT",forum_tip:Hbt,"Save settings before pressing this button":"Salvare le impostazioni prima di premere questo pulsante","Auto Mode":"Modalità automatica","Manual Mode":"Modalità manuale",manualModeHint:Ubt,"not activated":"non attivato","Google devices":"Dispositivi Google","Show/Hide help":"Mostra / Nascondi aiuto","Show all devices for print out":"Mostra tutti i dispositivi per la stampa",Search:Wbt,"List of devices to print out, e.g. to give all device names to your partner.":"Elenco dei dispositivi da stampare, ad es. per dare tutti i nomi dei dispositivi al tuo partner.",Name:Vbt,Function:"Funzione",Room:Gbt,"Copy to clipboard":"Copia negli appunti","Toggle expert mode":"Attiva / disattiva modalità esperto",ID:qbt,"Smart names":"Nomi intelligenti",ioBType:Xbt,"Function/Trait":"Funzione / Trait",Attributes:Jbt,Auto:Ybt,"Conversation to GH":"Converti in GH","Conversation to ioB":"Converti in ioB","Information: The skill linking process was changed!":"Informazioni: il processo di collegamento delle abilità è stato modificato!","The linking process has been changed for a few months.":"Il processo di collegamento è stato modificato per alcuni mesi.","Now there is no temporary password that will be sent by email.":"Ora non esiste una password temporanea che verrà inviata tramite e-mail.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"La password è uguale a ioBroker.pro e alla password che è stata inserita qui nelle impostazioni!","Not understood":"Non compreso","Roger that":"Ricevuto","Read blood sugar from":"Leggi lo zucchero nel sangue da","Get actual humidity":"Ottieni l'umidità effettiva","Get motion":"Ottieni movimento","Get contact":"Ottieni lo stato del contatto","Too many devices (%s) configured. Max number is 300":"Troppi dispositivi (%s) configurati. Il numero massimo è 300!","Allow remote access":"Consenti accesso remoto","Admin instance":"Istanza amministratore","Web instance":"Istanza web","Device %s will be disabled.":"Il dispositivo %s sarà disabilitato.",Delete:Kbt,Brightness:Zbt,Power:Qbt,"Color temperature":"Temperatura di colore",Color:e0t,Detection:t0t,Lock:n0t,Mode:o0t,Muted:r0t,Percentage:a0t,"Set point":"Punto stabilito",Temperature:s0t,"Thermostat mode":"Modalità termostato",Volume:i0t,socket:l0t,light:c0t,dimmer:d0t,thermostat:u0t,blind:p0t,gate:h0t,lock:f0t,hue:m0t,motion:g0t,slider:_0t,temperature:v0t,window:y0t,Thermostat:b0t,Light:w0t,AirCondition:S0t,Blind:x0t,ContactSensor:C0t,Control:$0t,Door:k0t,Gate:E0t,Hue:T0t,Motion:O0t,Slider:D0t,Socket:A0t,VacuumCleaner:M0t,VolumeGroup:N0t,Window:j0t,"Color HUE":"Colore TONALITÀ","Door sensor":"Sensore porta",Sensor:z0t,"Vacuum cleaner":"Aspirapolvere","Volume group":"Gruppo di volumi","Window sensor":"Sensore finestra",Blinds:R0t,"Grouped from %s and %s":"Raggruppato da %s e %s","Default toggle behaviour (Only alexa v3)":"Comportamento di commutazione predefinito (solo Alexa v3)","Do not toggle":"Non alternare",Toggle:I0t,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Questo servizio è riservato all'app ioBroker.visu. Utilizza un altro nome di servizio."},F0t="Activo",P0t="Direcciones",B0t="Cancelar",H0t="Cerrar",U0t="Comandos",W0t="Defecto",V0t="Regulador de intensidad",G0t="Filtrar",q0t="Funciones",X0t="Ejemplo",J0t="Idioma",Y0t="Mensaje",K0t="apagado",Z0t="De acuerdo",Q0t="en",e1t="Opciones",t1t="revisión",n1t="Habitaciones",o1t="Salvar",r1t="Seleccionar",a1t="Tipo",s1t="Tipos",i1t="Valor",l1t="limpiar",c1t="discapacitado",d1t='Antes de escribir a soporte, asegúrese de haber leído y entendido las instrucciones de la página web: https://www.iobroker.net',u1t='Si aún tiene problemas con la conexión a Iot, puede solicitar asistencia en el foro',p1t='y solo después de eso, debe escribir un correo electrónico a support@iobroker.com',h1t='¿No hay una cuenta iobroker.pro? Cómprelo en https://iobroker.pro para obtener acceso validado u obtenga de forma gratuita, pero con acceso limitado.',f1t="dividido por coma. Use * para permitir todos los servicios.",m1t="Puede encontrar su clave aquí en 'Documentación'",g1t="El nombre fue modificado por el usuario",_1t="Si usa su propia nube, puede permitir el uso de certificados autofirmados para la nube.",v1t="Esta clave es necesaria para comunicarse con una nube. Puede obtener la API-KEY en https://iobroker.net y se ve como nickname_f1f439a0-001a-11e7-bc64-92361f002671",y1t="Normalmente no es necesario cambiarlo. Solo es obligatorio si planea usar su propia nube.",b1t="Definir cómo concatenar Habitación y Función. P.ej. con 'en': luz en la sala de estar.",w1t="Algunos grupos consisten en dispositivos mixtos: atenuadores e interruptores. Se permite controlarlos con comandos ON y OFF y con porcentajes",S1t="Normalmente los nombres parecen room_function. Aquí puedes cambiarlo a function_room.",x1t="Instancia web, que se mostrará para sus conexiones desde la nube.",C1t="Puede definir los idiomas para cambiar rápidamente entre US Alexa Skill y DE Alexa Skill.",$1t="Si está habilitado, la configuración se almacenará solo para esta instancia. Entonces, en la otra instancia, se podrían establecer los otros nombres.",k1t="Para cada comando, se generará la respuesta de texto. Aquí puede definir la ID del objeto, donde debe escribirse este texto. P.ej. sayit.0.tts.text.",E1t="Solución alternativa para la conexión faltante a Alexa después de la conexión a la nube se perdió. Con esta opción, puede reiniciar el adaptador después de cada desconexión y funcionará.",T1t="No puede usar% en la contraseña. Estamos trabajando en la solución.",O1t=`La contraseña debe tener al menos 8 caracteres y debe tener números, letras mayúsculas y minúsculas. Por favor cámbielo en el perfil ioBroker.pro -`,D1t="Si realizó una restauración desde la copia de seguridad, o movió su instancia de un dispositivo a otro o eliminó la instancia de IoT y la agregó nuevamente, debe cargar los certificados de seguridad de conexión con este botón",A1t="Si falla el inicio de sesión en Alexa Skill/Google Action/Alisa con los datos de inicio de sesión de ioBroker.pro, presione el botón a continuación.",M1t='Cualquier pregunta en cualquier idioma, por favor pregunte aquí en el foro: enlace ',N1t="Seleccione un TYPE y un TRAIT después de agregar un estado. Para agregar múltiples rasgos, agregue una identificación y un rasgo diferentes pero el mismo nombre inteligente, tipo y sala. Coma separada para los múltiples nombres inteligentes. Para asignar una habitación, utilice las Enums/Aufzählungen de ioBroker. Con atributos, por ejemplo, puede establecer un rango para la temperatura de color Infos sobre Atributos que puede encontrar aquí. El atributo vacío es {}",j1t="Buscar",z1t="Nombre",R1t="Habitación",I1t="ID",L1t="Tipo de IoB",F1t="Atributos",P1t="Automáticamente",B1t="Borrar",H1t="Regulador de intensidad",U1t="Encendido/Apagado",W1t="Color",V1t="Detección",G1t="Cerrar",q1t="Modo",X1t="Apagado",J1t="Porcentaje",Y1t="Temperatura",K1t="Volumen",Z1t="enchufe",Q1t="luz",ewt="regulador de intensidad",twt="termostato",nwt="Persianas",owt="puerta",rwt="cerrar",awt="matiz",swt="movimiento",iwt="control deslizante",lwt="temperatura",cwt="ventana",dwt="Termostato",uwt="Luz",pwt="Aire acondicionado",hwt="Persianas",fwt="sensor de contacto",mwt="Control",gwt="Puerta",_wt="Puerta",vwt="Matiz",ywt="Movimiento",bwt="Deslizador",wwt="Enchufe",Swt="aspiradora",xwt="grupo de volumen",Cwt="Ventana",$wt="Sensor",kwt="Persianas",Ewt="Palanca",Twt={"(Set to 0 if behavior not desired)":"(Se establece en 0 si no se desea el comportamiento)","(you can separate names with comma)":"Puede ingresar varios nombres divididos por coma",Active:F0t,"Add device":"Añadir dispositivo","Add service":"Añadir servicio",Addresses:P0t,"Alexa devices":"Dispositivos de Alexa","Alisa devices":"Dispositivos alisa","Allow admin access (only pro)":"Permitir acceso de administrador (solo pro)","Allow self-signed certificates":"Permitir certificados autofirmados","Amazon Alexa":"Amazon Alexa","Are you sure?":"¿Estás seguro?","Attributes has not correct JSON format.":"Los atributos no están en el formato JSON correcto","Authentication must be disabled. You can create second instance extra for cloud.":"La autenticación debe estar deshabilitada. Puede crear una segunda instancia extra para la nube.",Cancel:B0t,"Cannot add this object":"No se puede agregar este objeto porque no es compatible.","Cannot read devices!":"No se pueden leer los dispositivos!","Certificates will be updated after initiated restart":"Los certificados se actualizarán después de reiniciarse","Certificates will be updated after start":"Los certificados se actualizarán después del inicio","Click now Get new connection certificates to request new temporary password":'Haga clic ahora en "Obtener nuevos certificados de conexión" para solicitar una nueva contraseña temporal',Close:H0t,"Cloud URL":"URL en la nube","Cloud adapter settings":"Configuración del adaptador de nube",Commands:U0t,"Concatenate words with":"Concatenar palabras con","Connection timeout":"Tiempo de espera de conexión (ms)","Debug outputs":"Salidas de depuración","Decrement color temperature":"Disminución de la temperatura de color.","Decrement percentage":"Porcentaje de decremento","Decrement target temperature":"Disminuir la temperatura objetivo",Default:W0t,"Device %s was not added":"El dispositivo %s no fue agregado","Device will be deactivated.":"El dispositivo se desactivará.","Device will be disabled.":"El dispositivo %s estará deshabilitado.",Dimmer:V0t,"Duplicate name":"Nombre duplicado","Edit smart name":"Editar nombre inteligente",Error:"Error","Extended options":"Opciones extendidas",Filter:G0t,"For help use this forum":"Para obtener ayuda, visite este foro publicar",Functions:q0t,"Get actual temperature":"Obtener la temperatura real","Get new connection certificates":"Obtenga nuevos certificados de conexión","Get new service URL key":"Obtener nueva clave de servicio URL","Get target temperature":"Obtener temperatura objetivo","Google Home":"Google Home","IFTTT key":"Tecla IFTTT","Increment color temperature":"Temperatura de color incrementada","Increment percentage":"Porcentaje de incremento","Increment target temperature":"Incrementar la temperatura objetivo",Instance:X0t,"Instance does not exists":"La instancia no existe","Instance is not active.":"La instancia no está activa.","Instance must be enabled":"La instancia debe estar habilitada","Instance must run to deliver the data":"La instancia debe ejecutarse para entregar los datos","Invalid object":"Objeto inválido",Language:J0t,"Load configuration from file":"Cargar configuración desde archivo",Message:Y0t,"OFF level for switches":"Nivel de apagado para interruptores","OFF level for switches in %":"Nivel OFF para interruptores en %",Off:K0t,Ok:Z0t,On:Q0t,"On/Off":"Encendido apagado",Options:e1t,"Personal settings (only pro)":"Configuración personal (solo pro)","Ping timeout:":"Tiempo de espera de ping (ms)","Place function in names first":"Coloque la función en los nombres primero","Please add action and trait to complete the Google Home state.":"Agregue acción y rasgo para completar el estado de Google Home.","Please add type and trait to complete the Google Home state.":"Agregue tipo y rasgo para completar el estado de Google Home.","Please select object ID...":"Por favor seleccione ID de objeto ...","Please write your email only in lower case letters":"Por favor escriba su correo electrónico sólo en minúsculas","Read lock state":"Estado de bloqueo de lectura","Replace in names":"Reemplazar en nombres","Request email with password one more time":"Solicitar correo electrónico con contraseña una vez más","Restart on disconnect":"Reiniciar al desconectar",Review:t1t,Rooms:n1t,Save:o1t,"Save and close":"Guardar y cerrar","Save configuration to file":"Guardar la configuración en el archivo","Save settings and the names will be changed":"Guarde la configuración y los nombres serán cambiados",Select:r1t,"Service names":"Nombres de servicio","Services and IFTTT":"Servicios e IFTTT","Set color":"Establecer color","Set color temperature":"Ajustar la temperatura de color","Set lock state":"Establecer el estado de bloqueo","Set percentage":"Establecer porcentaje","Set target temperature":"Ajustar la temperatura objetivo","Smart Devices":"Dispositivos inteligentes","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Enums inteligentes","Smart name":"Nombre inteligente","Smart name for %s":"Nombre inteligente para %s","To apply this setting, the restart of adapter must be done. Agree?":"Para aplicar esta configuración, el adaptador debe reiniciarse. ¿De acuerdo?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Para la detección automática, debajo de los objetos asigne un canal (dispositivo si no hay un canal disponible) a una sala y función. No es suficiente asignar la habitación a un estado o dispositivo. Las habitaciones/funciones se pueden agregar en la enumeración (indicada por la flecha blanca en la parte superior derecha) y se deben activar en el adaptador IoT en la enumeración inteligente. Para reconocer automáticamente los estados manuales, el estado debe ser eliminado.","Turn off":"Apagar","Turn on":"Encender",Type:a1t,Types:s1t,"Use Nightscout instance":"Use la instancia del Nightscout","Use following link for IFTTT":"Utilice el siguiente enlace para IFTTT","Use following link for custom service":"Use el siguiente enlace para servicio personalizado","Use text2command instance":"Use la instancia del comando text2",Value:i1t,"White list for services":"Lista blanca de servicios","Write response to":"Escribir respuesta a","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Puede introducir varios nombres divididos por comas","amazon link":"Si usa Alexa Skill, escriba una opinión para nosotros aquí .
Se pueden encontrar ejemplos aquí .","by ON":"por el",clear:l1t,default:"defecto",disabled:c1t,help_link_tip1:d1t,help_link_tip2:u1t,help_link_tip3:p1t,help_tip:h1t,info_allowedServices:f1t,info_iftttKey:m1t,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Contraseña","omit value":"sin valor","last value":"último valor",modified:g1t,"no type":"Sin tipo",tooltip_allowSelfSignedCertificate:_1t,tooltip_apikey:v1t,tooltip_cloudUrl:y1t,tooltip_concatWord:b1t,tooltip_deviceOffLevel:w1t,tooltip_functionFirst:S1t,tooltip_instance:x1t,tooltip_language:C1t,tooltip_noCommon:$1t,tooltip_responseOID:k1t,tooltip_restartOnDisconnect:E1t,"Short answer for blood sugar":"Respuesta corta para azúcar en la sangre",cannot_use_password:T1t,invalid_password_warning:O1t,new_certs_tip:D1t,new_credentials_tip:A1t,"Create IoT credentials anew":"Crear nuevas credenciales de IoT",forum_tip:M1t,"Save settings before pressing this button":"Guarde la configuración antes de presionar este botón","Auto Mode":"Modo automático","Manual Mode":"Modo manual",manualModeHint:N1t,"not activated":"no esta activado","Google devices":"Dispositivos de Google","Show/Hide help":"Mostrar / Ocultar ayuda","Show all devices for print out":"Mostrar todos los dispositivos para imprimir",Search:j1t,"List of devices to print out, e.g. to give all device names to your partner.":"Lista de dispositivos para imprimir, p. para dar todos los nombres de dispositivo a su pareja.",Name:z1t,Function:"Función",Room:R1t,"Copy to clipboard":"Copiar al portapapeles","Toggle expert mode":"Alternar modo experto",ID:I1t,"Smart names":"Nombres inteligentes",ioBType:L1t,"Function/Trait":"Función / rasgo",Attributes:F1t,Auto:P1t,"Conversation to GH":"Convertir a GH","Conversation to ioB":"Convertir a ioB","Information: The skill linking process was changed!":"Información: ¡Se cambió el proceso de vinculación de habilidades!","The linking process has been changed for a few months.":"El proceso de vinculación se ha modificado durante unos meses.","Now there is no temporary password that will be sent by email.":"Ahora no hay una contraseña temporal que se enviará por correo electrónico.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"¡La contraseña es igual a ioBroker.pro y con la contraseña que se ingresó aquí en la configuración!","Not understood":"No se entiende","Roger that":"Entendido","Read blood sugar from":"Leer azúcar en sangre de","Get actual humidity":"Obtenga la humedad real","Get motion":"Obtener movimiento","Get contact":"Obtener estado de contacto","Too many devices (%s) configured. Max number is 300":"Demasiados dispositivos (%s) configurados. ¡El número máximo es 300!","Allow remote access":"Permitir acceso remoto","Admin instance":"Instancia de administrador","Web instance":"Instancia web","Device %s will be disabled.":"El dispositivo %s se desactivará.",Delete:B1t,Brightness:H1t,Power:U1t,"Color temperature":"Temperatura del color",Color:W1t,Detection:V1t,Lock:G1t,Mode:q1t,Muted:X1t,Percentage:J1t,"Set point":"Punto fijo",Temperature:Y1t,"Thermostat mode":"Modo termostato",Volume:K1t,socket:Z1t,light:Q1t,dimmer:ewt,thermostat:twt,blind:nwt,gate:owt,lock:rwt,hue:awt,motion:swt,slider:iwt,temperature:lwt,window:cwt,Thermostat:dwt,Light:uwt,AirCondition:pwt,Blind:hwt,ContactSensor:fwt,Control:mwt,Door:gwt,Gate:_wt,Hue:vwt,Motion:ywt,Slider:bwt,Socket:wwt,VacuumCleaner:Swt,VolumeGroup:xwt,Window:Cwt,"Color HUE":"Color TONO","Door sensor":"sensor de puerta",Sensor:$wt,"Vacuum cleaner":"aspiradora","Volume group":"grupo de volumen","Window sensor":"sensor de ventana",Blinds:kwt,"Grouped from %s and %s":"Agrupados de %s y %s","Default toggle behaviour (Only alexa v3)":"Comportamiento de alternancia predeterminado (solo alexa v3)","Do not toggle":"no alternar",Toggle:Ewt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Este servicio está reservado para la aplicación ioBroker.visu. Utilice otro nombre de servicio."},Owt="Aktywny",Dwt="Adresy",Awt="Odwołaj",Mwt="Zamknij",Nwt="Polecenia",jwt="Domyślna",zwt="Opornik",Rwt="Filtr",Iwt="Funkcje",Lwt="Instancja",Fwt="Język",Pwt="Wiadomość",Bwt="poza",Hwt="Ok",Uwt="na",Wwt="Opcje",Vwt="Przejrzeć",Gwt="Pokoje",qwt="Zapisz",Xwt="Wybierz",Jwt="Typ",Ywt="Rodzaje",Kwt="Wartość",Zwt="Oczyścić",Qwt="niepełnosprawny",eSt='Przed napisaniem do wsparcia upewnij się, że przeczytałeś i zrozumiałeś instrukcje strony: https://www.iobroker.net',tSt='Jeśli nadal masz problem z połączeniem z Iot, możesz poprosić o wsparcie na Forum',nSt='i dopiero potem powinieneś napisać e-mail na adres support@iobroker.com',oSt='Brak konta iobroker.pro? Kup go na https://iobroker.pro w celu zweryfikowania dostępu lub uzyskaj bezpłatny, ale ograniczony dostęp.',rSt="podzielone przecinkiem. Użyj *, aby zezwolić na wszystkie usługi.",aSt=`Możesz znaleźć klucz tutaj w sekcji "Dokumentacja"`,sSt="Nazwa została zmodyfikowana przez użytkownika",iSt="Jeśli korzystasz z własnej chmury, możesz zezwolić na używanie samopodpisanych certyfikatów dla chmury.",lSt="Ten klucz jest wymagany do komunikacji z chmurą. Możesz pobrać API-KEY na https://iobroker.net i wygląda jak pseudonim_f1f439a0-001a-11e7-bc64-92361f002671",cSt="Zwykle nie musisz tego zmieniać. Wymagane tylko, jeśli masz zamiar korzystać z własnej chmury.",dSt='Określ, jak połączyć pokój i funkcję. Na przykład. z "in": Światło w salonie.',uSt="Niektóre grupy składają się z różnych urządzeń: ściemniaczy i przełączników. Dozwolone jest sterowanie nimi za pomocą poleceń ON i OFF oraz procentami",pSt="Normalnie nazwy wyglądają jak room_function. Tutaj możesz przełączyć go do function_room.",hSt="Instancja internetowa, która będzie wyświetlana dla twoich połączeń z chmury.",fSt="Możesz zdefiniować języki, aby szybko przełączać się pomiędzy US Alexa Skill i DE Alexa Skill.",mSt="Jeśli jest włączona, ustawienia będą przechowywane tylko dla tej instancji. Tak więc w innym przypadku można ustawić inne nazwy.",gSt="Dla każdego polecenia zostanie wygenerowana odpowiedź tekstowa. Możesz tu zdefiniować identyfikator obiektu, do którego należy zapisać ten tekst. Na przykład. sayit.0.tts.text.",_St="Rozwiązano problem braku połączenia z Alexa po utracie połączenia z chmurą. Dzięki tej opcji można ponownie uruchomić adapter po każdym rozłączeniu i będzie działać.",vSt="Nie możesz użyć% w haśle. Pracujemy nad poprawką.",ySt=`Hasło musi mieć co najmniej 8 znaków i musi zawierać cyfry, wielkie i małe litery. Zmień to w profilu ioBroker.pro -`,bSt="Jeśli wykonałeś przywracanie z kopii zapasowej, przeniosłeś instancję z jednego urządzenia na drugie lub usunąłeś instancję IoT i dodałeś ją ponownie, musisz załadować certyfikaty bezpieczeństwa połączenia za pomocą tego przycisku",wSt="Jeśli logowanie do Alexa Skill/Google Action/Alisa za pomocą danych logowania ioBroker.pro nie powiedzie się, naciśnij poniższy przycisk.",SSt='Wszelkie pytania w dowolnym języku prosimy zadawać tutaj na forum: link ',xSt="Wybierz TYPE i TRAIT po dodaniu stanu. Aby dodać wiele cech, dodaj inny identyfikator i cechę, ale tę samą inteligentną nazwę, typ i pokój. Oddzielony przecinkami dla wielu inteligentnych nazw. Aby przypisać pokój, użyj ioBroker Enums/Aufzählungen. Za pomocą atrybutów możesz na przykład ustawić zakres temperatury kolorów Informacje o Atrybuty można znaleźć tutaj. Pusty atrybut to {}",CSt="Szukaj",$St="Nazwa",kSt="Pokój",ESt="ID",TSt="Typ IoB",OSt="Atrybuty",DSt="Automatycznie",ASt="Usuwać",MSt="Opornik",NSt="Wł./Wył",jSt="Kolor",zSt="Wykrycie",RSt="Zamek",ISt="Tryb",LSt="Wyciszony",FSt="Odsetek",PSt="Temperatura",BSt="Tom",HSt="gniazdo elektryczne",USt="światło",WSt="opornik",VSt="termostat",GSt="rolety okienne",qSt="brama",XSt="zamek",JSt="odcień",YSt="ruch",KSt="suwak",ZSt="temperatura",QSt="okno",ext="Termostat",txt="Światło",nxt="Klimatyzacja",oxt="Rolety okienne",rxt="Czujnik kontaktowy",axt="Kontrola",sxt="Drzwi",ixt="Brama",lxt="Odcień",cxt="Ruch",dxt="Suwak",uxt="Gniazdo elektryczne",pxt="Odkurzacz",hxt="Grupa woluminów",fxt="Okno",mxt="Czujnik",gxt="Rolety okienne",_xt="Przełącznik",vxt={"(Set to 0 if behavior not desired)":"(Ustaw na 0, jeśli zachowanie nie jest pożądane)","(you can separate names with comma)":"Możesz wprowadzić kilka nazw podzielonych przecinkami",Active:Owt,"Add device":"Dodaj urządzenie","Add service":"Dodaj usługę",Addresses:Dwt,"Alexa devices":"Urządzenia Alexa","Alisa devices":"Urządzenia Alisa","Allow admin access (only pro)":"Zezwalaj na dostęp administratora (tylko pro)","Allow self-signed certificates":"Zezwalaj na certyfikaty z podpisem własnym","Amazon Alexa":"Amazon Alexa","Are you sure?":"Jesteś pewny?","Attributes has not correct JSON format.":"Atrybuty mają niepoprawny format JSON","Authentication must be disabled. You can create second instance extra for cloud.":"Uwierzytelnianie musi być wyłączone. Możesz utworzyć dodatkową instancję dodatkową dla chmury.",Cancel:Awt,"Cannot add this object":"Nie można dodać tego obiektu, ponieważ nie jest obsługiwany.","Cannot read devices!":"Nie można odczytać urządzeń!","Certificates will be updated after initiated restart":"Certyfikaty będą aktualizowane po ponownym uruchomieniu","Certificates will be updated after start":"Certyfikaty będą aktualizowane po starcie","Click now Get new connection certificates to request new temporary password":'Kliknij teraz "Pobierz nowe certyfikaty połączeń", aby poprosić o nowe tymczasowe hasło',Close:Mwt,"Cloud URL":"Chmura adresu URL","Cloud adapter settings":"Ustawienia adaptera chmury",Commands:Nwt,"Concatenate words with":"Połącz słowa z","Connection timeout":"Limit czasu połączenia (ms)","Debug outputs":"Wyjścia debugowania","Decrement color temperature":"Zmniejsz temperaturę barwową","Decrement percentage":"Procent zmniejszenia","Decrement target temperature":"Zmniejsz temperaturę docelową",Default:jwt,"Device %s was not added":"Urządzenie %s nie zostało dodane","Device will be deactivated.":"Urządzenie zostanie dezaktywowane.","Device will be disabled.":"Urządzenie zostanie wyłączone.",Dimmer:zwt,"Duplicate name":"Zduplikowana nazwa","Edit smart name":"Edytuj inteligentną nazwę",Error:"Błąd","Extended options":"Rozszerzone opcje",Filter:Rwt,"For help use this forum":"Aby uzyskać pomoc, odwiedź to forum post",Functions:Iwt,"Get actual temperature":"Uzyskaj rzeczywistą temperaturę","Get new connection certificates":"Uzyskaj nowe certyfikaty połączeń","Get new service URL key":"Uzyskaj nowy klucz URL usługi","Get target temperature":"Uzyskaj docelową temperaturę","Google Home":"Google Home","IFTTT key":"Klawisz IFTTT","Increment color temperature":"Przyrost temperatury barwowej","Increment percentage":"Przyrost procentowy","Increment target temperature":"Przyrost temperatury docelowej",Instance:Lwt,"Instance does not exists":"Instancja nie istnieje","Instance is not active.":"Instancja nie jest aktywna.","Instance must be enabled":"Instancja musi być włączona","Instance must run to deliver the data":"Instancja musi zostać uruchomiona w celu dostarczenia danych","Invalid object":"Nieprawidłowy obiekt",Language:Fwt,"Load configuration from file":"Załaduj konfigurację z pliku",Message:Pwt,"OFF level for switches":"Poziom OFF dla przełączników","OFF level for switches in %":"Poziom wyłączenia dla przełączników w %",Off:Bwt,Ok:Hwt,On:Uwt,"On/Off":"Włącz/Wyłącz",Options:Wwt,"Personal settings (only pro)":"Ustawienia osobiste (tylko pro)","Ping timeout:":"Limit czasu pingowania (ms)","Place function in names first":"Najpierw umieść funkcję w imionach","Please add action and trait to complete the Google Home state.":"Dodaj działanie i cechę, aby ukończyć stan Google Home.","Please add type and trait to complete the Google Home state.":"Dodaj typ i cechę, aby ukończyć stan Google Home.","Please select object ID...":"Wybierz identyfikator obiektu ...","Please write your email only in lower case letters":"Napisz swój e-mail tylko małymi literami","Read lock state":"Czytaj stan blokady","Replace in names":"Zastąp imiona","Request email with password one more time":"Poproś jeszcze raz o e-mail z hasłem","Restart on disconnect":"Uruchom ponownie po rozłączeniu",Review:Vwt,Rooms:Gwt,Save:qwt,"Save and close":"Zapisz i zamknij","Save configuration to file":"Zapisz konfigurację do pliku","Save settings and the names will be changed":"Zapisz ustawienia i nazwy zostaną zmienione",Select:Xwt,"Service names":"Nazwy usług","Services and IFTTT":"Usługi i IFTTT","Set color":"Ustaw kolor","Set color temperature":"Ustaw temperaturę barwową","Set lock state":"Ustaw stan blokady","Set percentage":"Ustaw procent","Set target temperature":"Ustaw temperaturę docelową","Smart Devices":"Inteligentne urządzenia","Smart Enums":"Inteligentne wyliczenia","Smart Media":"Smart Media","Smart enums":"Inteligentne enumy","Smart name":"Inteligentna nazwa","Smart name for %s":"Inteligentna nazwa dla %s","To apply this setting, the restart of adapter must be done. Agree?":"Aby zastosować to ustawienie, adapter musi zostać zrestartowany. Zgodzić się?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"W celu automatycznego wykrywania pod obiektami przypisz kanał (urządzenie, jeśli żaden kanał nie jest dostępny) do pokoju i funkcji. Nie wystarczy przypisać pokój do stanu lub urządzenia. Pomieszczenia/funkcje można dodawać w ramach wyliczenia (oznaczonego białą strzałką w prawym górnym rogu) i należy je aktywować w adapterze IoT w obszarze Inteligentne wyliczanie. Aby automatycznie rozpoznać stany ręczne, należy je usunąć.","Turn off":"Wyłączyć","Turn on":"Włączyć",Type:Jwt,Types:Ywt,"Use Nightscout instance":"Użyj instancji Nightscout","Use following link for IFTTT":"Użyj następującego linku dla IFTTT","Use following link for custom service":"Użyj poniższego linku do niestandardowej usługi","Use text2command instance":"Użyj instancji text2command",Value:Kwt,"White list for services":"Biała lista dla usług","Write response to":"Napisz odpowiedź na","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Możesz wprowadzić kilka nazw podzielonych przecinkiem","amazon link":`Jeśli używasz umiejętności Alexa, napisz recenzję dla nas here . Przykłady można znaleźć tutaj .`,"by ON":"przez ON",clear:Zwt,default:"domyślna",disabled:Qwt,help_link_tip1:eSt,help_link_tip2:tSt,help_link_tip3:nSt,help_tip:oSt,info_allowedServices:rSt,info_iftttKey:aSt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Hasło","omit value":"brak wartości","last value":"ostatnia wartość",modified:sSt,"no type":"bez typu",tooltip_allowSelfSignedCertificate:iSt,tooltip_apikey:lSt,tooltip_cloudUrl:cSt,tooltip_concatWord:dSt,tooltip_deviceOffLevel:uSt,tooltip_functionFirst:pSt,tooltip_instance:hSt,tooltip_language:fSt,tooltip_noCommon:mSt,tooltip_responseOID:gSt,tooltip_restartOnDisconnect:_St,"Short answer for blood sugar":"Krótka odpowiedź na cukier we krwi",cannot_use_password:vSt,invalid_password_warning:ySt,new_certs_tip:bSt,new_credentials_tip:wSt,"Create IoT credentials anew":"Utwórz ponownie poświadczenia IoT",forum_tip:SSt,"Save settings before pressing this button":"Zapisz ustawienia przed naciśnięciem tego przycisku","Auto Mode":"Tryb automatyczny","Manual Mode":"Tryb ręczny",manualModeHint:xSt,"not activated":"nie aktywowany","Google devices":"Urządzenia Google","Show/Hide help":"Pokaż / ukryj pomoc","Show all devices for print out":"Pokaż wszystkie urządzenia do wydrukowania",Search:CSt,"List of devices to print out, e.g. to give all device names to your partner.":"Lista urządzeń do wydrukowania, np. aby podać wszystkie nazwy urządzeń swojemu partnerowi.",Name:$St,Function:"Funkcja",Room:kSt,"Copy to clipboard":"Skopiuj do schowka","Toggle expert mode":"Przełącz tryb ekspercki",ID:ESt,"Smart names":"Inteligentne nazwy",ioBType:TSt,"Function/Trait":"Funkcja / cecha",Attributes:OSt,Auto:DSt,"Conversation to GH":"Konwertuj na GH","Conversation to ioB":"Konwertuj na ioB","Information: The skill linking process was changed!":"Informacja: Zmieniono proces łączenia umiejętności!","The linking process has been changed for a few months.":"Od kilku miesięcy zmienił się proces łączenia.","Now there is no temporary password that will be sent by email.":"Teraz nie ma tymczasowego hasła, które zostanie wysłane e-mailem.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Hasło jest równe z ioBroker.pro i hasłem, które zostało wprowadzone tutaj w ustawieniach!","Not understood":"Nie rozumiem","Roger that":"Przyjąłem","Read blood sugar from":"Odczytaj poziom cukru we krwi","Get actual humidity":"Uzyskaj aktualną wilgotność","Get motion":"Wpraw się w ruch","Get contact":"Uzyskaj status kontaktu","Too many devices (%s) configured. Max number is 300":"Za dużo skonfigurowanych urządzeń (%s). Maksymalna liczba to 300!","Allow remote access":"Zezwól na zdalny dostęp","Admin instance":"Instancja administracyjna","Web instance":"Instancja internetowa","Device %s will be disabled.":"Urządzenie %s zostanie wyłączone.",Delete:ASt,Brightness:MSt,Power:NSt,"Color temperature":"Temperatura koloru",Color:jSt,Detection:zSt,Lock:RSt,Mode:ISt,Muted:LSt,Percentage:FSt,"Set point":"Ustaw punkt",Temperature:PSt,"Thermostat mode":"Tryb termostatu",Volume:BSt,socket:HSt,light:USt,dimmer:WSt,thermostat:VSt,blind:GSt,gate:qSt,lock:XSt,hue:JSt,motion:YSt,slider:KSt,temperature:ZSt,window:QSt,Thermostat:ext,Light:txt,AirCondition:nxt,Blind:oxt,ContactSensor:rxt,Control:axt,Door:sxt,Gate:ixt,Hue:lxt,Motion:cxt,Slider:dxt,Socket:uxt,VacuumCleaner:pxt,VolumeGroup:hxt,Window:fxt,"Color HUE":"Barwa koloru","Door sensor":"Czujnik drzwi",Sensor:mxt,"Vacuum cleaner":"Odkurzacz","Volume group":"Grupa woluminów","Window sensor":"Czujnik okna",Blinds:gxt,"Grouped from %s and %s":"Pogrupowane z %s i %s","Default toggle behaviour (Only alexa v3)":"Domyślne zachowanie przełączania (tylko Alexa v3)","Do not toggle":"Nie przełączaj",Toggle:_xt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Usługa ta jest zarezerwowana dla aplikacji ioBroker.visu. Użyj innej nazwy usługi."},yxt="Активний",bxt="Адреси",wxt="Атрибути",Sxt="Автоматично",xxt="Скасувати",Cxt="Закрити",$xt="Команди",kxt="За замовчуванням",Ext="Диммер",Txt="фільтр",Oxt="Функції",Dxt="ID",Axt="Екземпляр",Mxt="Мову",Nxt="повідомлення",jxt="Ім'я",zxt="вимкнено",Rxt="В порядку",Ixt="на",Lxt="Опції",Fxt="огляд",Pxt="Кімната",Bxt="Кімнати",Hxt="зберегти",Uxt="Пошук",Wxt="Виберіть",Vxt="Тип",Gxt="Типи",qxt="Значення",Xxt="Ви не можете використовувати % у паролі. Ми працюємо над виправленням.",Jxt="ясно",Yxt="вимкнено",Kxt='Будь-які запитання будь-якою мовою задавайте тут, на форумі: посилання',Zxt='Перш ніж писати в службу підтримки, переконайтеся, що ви прочитали та зрозуміли інструкції на веб-сторінці: https://www.iobroker.net',Qxt='Якщо у вас усе ще виникають проблеми з підключенням до Iot, ви можете подати запит на підтримку на форумі',e2t='і тільки після цього вам слід написати листа на support@iobroker.com',t2t='Немає облікового запису iobroker.pro? Придбайте його на https://iobroker.pro для перевіреного доступу або отримайте безкоштовний, але обмежений доступ.',n2t="розділені комою. Використовуйте *, щоб дозволити всі служби.",o2t="Ви можете знайти свій ключ тут у розділі «Документація»",r2t=`Пароль має містити не менше 8 символів і містити цифри, великі та малі літери. Будь ласка, змініть його в профілі ioBroker.pro -`,a2t="Тип IoB",s2t="Виберіть TYPE і TRAIT після додавання стану. Щоб додати кілька характеристик, додайте інший ідентифікатор і ознаку, але однакові розумне ім’я, тип і кімнату. Розділені комами для кількох розумних імен. Щоб призначити кімнату, скористайтеся ioBroker Enums/Aufzählungen. За допомогою атрибутів ви можете, наприклад, встановити діапазон для колірної температури Інформація про Атрибути можна знайти тут. Порожній атрибут: {}",i2t="Ім'я було змінено користувачем",l2t="Якщо ви відновили з резервної копії або перемістили екземпляр з одного пристрою на інший, або видалили екземпляр IoT і додали його знову, ви повинні завантажити сертифікати безпеки підключення за допомогою цієї кнопки",c2t="Якщо вхід до Alexa Skill/Google Action/Alisa за допомогою даних для входу ioBroker.pro не вдається, натисніть кнопку нижче.",d2t="Якщо ви використовуєте власну хмару, ви можете дозволити використання самопідписаних сертифікатів для хмари.",u2t="Цей ключ потрібен для зв’язку з хмарою. Ви можете отримати API-KEY на https://iobroker.net і він виглядає як nickname_f1f439a0-001a-11e7-bc64-92361f002671",p2t="Зазвичай вам не потрібно його міняти. Потрібно, лише якщо ви плануєте використовувати власну хмару.",h2t="Визначте, як об’єднати кімнату та функцію. наприклад з 'in': світло у вітальні.",f2t="Деякі групи складаються зі змішаних пристроїв: диммерів і вимикачів. Дозволяється керувати ними за допомогою команд ON і OFF, а також за допомогою відсотків",m2t="Зазвичай назви виглядають як room_function. Тут ви можете переключити його на function_room.",g2t="Веб-екземпляр, який буде показано для ваших підключень із хмари.",_2t="Ви можете визначити мови для швидкого перемикання між US Alexa Skill і DE Alexa Skill.",v2t="Якщо ввімкнено, налаштування зберігатимуться лише для цього екземпляра. Отже, в іншому випадку можна встановити інші імена.",y2t="Для кожної команди буде згенеровано текстову відповідь. Тут можна визначити ідентифікатор об’єкта, куди має бути записано цей текст. наприклад sayit.0.tts.text.",b2t="Обхідний шлях для відсутності підключення до Alexa після втрати підключення до хмари. За допомогою цієї опції ви можете перезавантажувати адаптер після кожного відключення, і він працюватиме.",w2t="Видалити",S2t="Диммер",x2t="Увімкнено/Вимкнено",C2t="Колір",$2t="виявлення",k2t="Замок",E2t="Режим",T2t="Вимкнено",O2t="Відсоток",D2t="температура",A2t="Обсяг",M2t="гніздо",N2t="світло",j2t="диммер",z2t="термостат",R2t="віконні жалюзі",I2t="ворота",L2t="замок",F2t="відтінок",P2t="руху",B2t="повзунок",H2t="температура",U2t="вікно",W2t="Термостат",V2t="світло",G2t="Кондиціонер",q2t="Віконні жалюзі",X2t="Контактний датчик",J2t="КОНТРОЛЬ",Y2t="двері",K2t="Ворота",Z2t="Відтінок",Q2t="Рух",eCt="повзунок",tCt="Розетка",nCt="Пилосос",oCt="Група томів",rCt="Вікно",aCt="датчик",sCt="Віконні жалюзі",iCt="Перемикач",lCt={"(Set to 0 if behavior not desired)":"(Встановіть 0, якщо поведінка небажана)","(you can separate names with comma)":"Ви можете ввести кілька імен, розділених комою",Active:yxt,"Add device":"Додайте пристрій","Add service":"Додати послугу",Addresses:bxt,"Admin instance":"Примірник адміністратора","Alexa devices":"Пристрої Alexa","Alisa devices":"пристрої Аліса","Allow admin access (only pro)":"Дозволити доступ адміністратора (лише для професіоналів)","Allow remote access":"Дозволити віддалений доступ","Allow self-signed certificates":"Дозволити самопідписані сертифікати","Amazon Alexa":"Amazon Alexa","Are you sure?":"Ти впевнений?",Attributes:wxt,"Attributes has not correct JSON format.":"Атрибути мають неправильний формат JSON","Authentication must be disabled. You can create second instance extra for cloud.":"Автентифікація повинна бути вимкнена. Ви можете створити додатковий другий екземпляр для хмари.",Auto:Sxt,"Auto Mode":"Автоматичний режим",Cancel:xxt,"Cannot add this object":"Неможливо додати цей об’єкт, оскільки не підтримується.","Cannot read devices!":"Неможливо прочитати пристрої!","Certificates will be updated after initiated restart":"Сертифікати будуть оновлені після ініційованого перезапуску","Certificates will be updated after start":"Сертифікати будуть оновлені після запуску","Click now Get new connection certificates to request new temporary password":"Натисніть «Отримати нові сертифікати підключення», щоб запитати новий тимчасовий пароль",Close:Cxt,"Cloud URL":"URL-адреса хмари","Cloud adapter settings":"Налаштування хмарного адаптера",Commands:$xt,"Concatenate words with":"Сполучіть слова з","Connection timeout":"Час очікування підключення (мс)","Conversation to GH":"Перетворити в GH","Conversation to ioB":"Перетворити в ioB","Copy to clipboard":"Копіювати в буфер обміну","Create IoT credentials anew":"Створіть облікові дані IoT заново","Debug outputs":"Виходи налагодження","Decrement color temperature":"Зменшити колірну температуру","Decrement percentage":"Відсоток зменшення","Decrement target temperature":"Зменшити цільову температуру",Default:kxt,"Device %s was not added":"Пристрій %s не додано","Device will be deactivated.":"Пристрій буде деактивовано.","Device will be disabled.":"Пристрій %s буде вимкнено.",Dimmer:Ext,"Duplicate name":"Повторюване ім'я","Edit smart name":"Редагувати розумне ім'я",Error:"Помилка","Extended options":"Розширені параметри",Filter:Txt,"For help use this forum":"Щоб отримати допомогу, відвідайте цей форум публікація",Function:"функція","Function/Trait":"Функція/риса",Functions:Oxt,"Get actual humidity":"Отримайте фактичну вологість","Get actual temperature":"Отримайте фактичну температуру","Get contact":"Отримати статус контакту","Get motion":"Отримати рух","Get new connection certificates":"Отримати нові сертифікати підключення","Get new service URL key":"Отримайте новий ключ URL-адреси служби","Get target temperature":"Отримайте цільову температуру","Google Home":"Google Home","Google devices":"пристрої Google",ID:Dxt,"IFTTT key":"Ключ IFTTT","Increment color temperature":"Збільшити колірну температуру","Increment percentage":"Відсоток приросту","Increment target temperature":"Збільшити цільову температуру","Information: The skill linking process was changed!":"Інформація: процес підключення навичок змінено!",Instance:Axt,"Instance does not exists":"Екземпляр не існує","Instance is not active.":"Екземпляр не активний.","Instance must be enabled":"Примірник має бути ввімкнено","Instance must run to deliver the data":"Екземпляр повинен запуститися, щоб доставити дані","Invalid object":"Недійсний об'єкт",Language:Mxt,"List of devices to print out, e.g. to give all device names to your partner.":"Список пристроїв для друку, напр. щоб надати назви всіх пристроїв вашому партнеру.","Load configuration from file":"Завантажити конфігурацію з файлу","Manual Mode":"Ручний режим",Message:Nxt,Name:jxt,"Not understood":"Не зрозумів","Now there is no temporary password that will be sent by email.":"Тепер немає тимчасового пароля, який надсилатиметься електронною поштою.","OFF level for switches":"Рівень ВИМК для перемикачів","OFF level for switches in %":"Рівень вимкнення для перемикачів у %",Off:zxt,Ok:Rxt,On:Ixt,"On/Off":"Увімкнено вимкнено",Options:Lxt,"Personal settings (only pro)":"Персональні налаштування (тільки для професіоналів)","Ping timeout:":"Час очікування ping (мс)","Place function in names first":"Спочатку розмістіть функцію в іменах","Please add action and trait to complete the Google Home state.":"Додайте дію та рису, щоб завершити стан Google Home.","Please add type and trait to complete the Google Home state.":"Додайте тип і характеристику, щоб завершити стан Google Home.","Please select object ID...":"Виберіть ідентифікатор об'єкта...","Please write your email only in lower case letters":"Пишіть свою електронну адресу лише малими літерами","Read blood sugar from":"Зчитайте рівень цукру в крові","Read lock state":"Читати стан блокування","Replace in names":"Замінити в назвах","Request email with password one more time":"Надішліть запит електронної пошти з паролем ще раз","Restart on disconnect":"Перезапустити після відключення",Review:Fxt,"Roger that":"Розумно",Room:Pxt,Rooms:Bxt,Save:Hxt,"Save and close":"Зберегти та закрити","Save configuration to file":"Зберегти конфігурацію у файл","Save settings and the names will be changed":"Збережіть налаштування, і імена будуть змінені","Save settings before pressing this button":"Перед натисканням цієї кнопки збережіть налаштування",Search:Uxt,Select:Wxt,"Service names":"Назви послуг","Services and IFTTT":"Послуги та IFTTT","Set color":"Встановити колір","Set color temperature":"Встановити колірну температуру","Set lock state":"Встановити стан блокування","Set percentage":"Встановити відсоток","Set target temperature":"Встановити цільову температуру","Short answer for blood sugar":"Коротка відповідь щодо цукру в крові","Show all devices for print out":"Показати всі пристрої для друку","Show/Hide help":"Показати/Сховати довідку","Smart Devices":"Розумні пристрої","Smart Enums":"Smart Enum","Smart Media":"Smart Media","Smart enums":"Розумні перерахування","Smart name":"Розумне ім'я","Smart name for %s":"Розумна назва для %s","Smart names":"Розумні імена","The linking process has been changed for a few months.":"Процес зв’язування змінився протягом кількох місяців.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Пароль збігається з ioBroker.pro і паролем, який був введений тут в налаштуваннях!","To apply this setting, the restart of adapter must be done. Agree?":"Щоб застосувати цей параметр, необхідно перезапустити адаптер. згодні?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Для автоматичного виявлення під об’єктами призначте канал (пристрій, якщо канал недоступний) кімнаті та функції. Недостатньо призначити кімнаті стан або пристрій. Кімнати/функції можна додавати під перерахуванням (позначено білою стрілкою у верхньому правому куті), і їх потрібно активувати в адаптері IoT у розділі Інтелектуальне перерахування. Щоб автоматично розпізнавати ручні стани, стан потрібно видалити.","Toggle expert mode":"Перемкнути експертний режим","Too many devices (%s) configured. Max number is 300":"Налаштовано забагато пристроїв (%s). Максимальна кількість 300!","Turn off":"Вимкнути","Turn on":"Ввімкнути",Type:Vxt,Types:Gxt,"Use Nightscout instance":"Використовуйте екземпляр Nightscout","Use following link for IFTTT":"Використовуйте наступне посилання для IFTTT","Use following link for custom service":"Скористайтеся наступним посиланням для індивідуальних послуг","Use text2command instance":"Використовуйте екземпляр text2command",Value:qxt,"Web instance":"Веб-екземпляр","White list for services":"Білий список послуг","Write response to":"Написати відповідь на","Yandex Алиса":"Яндекс Аліса","You can enter several names divided by comma":"Ви можете ввести кілька імен, розділених комою","amazon link":"Якщо ви використовуєте Alexa Skill, напишіть нам відгук тут.
Приклади можна знайти тут.","by ON":"від ON",cannot_use_password:Xxt,clear:Jxt,default:"за замовчуванням",disabled:Yxt,forum_tip:Kxt,help_link_tip1:Zxt,help_link_tip2:Qxt,help_link_tip3:e2t,help_tip:t2t,info_allowedServices:n2t,info_iftttKey:o2t,invalid_password_warning:r2t,ioBType:a2t,"ioBroker.pro Login":"ioBroker.pro Логін","ioBroker.pro Password":"Пароль ioBroker.pro","omit value":"не має значення","last value":"останнє значення",manualModeHint:s2t,modified:i2t,new_certs_tip:l2t,new_credentials_tip:c2t,"no type":"немає типу","not activated":"не активовано",tooltip_allowSelfSignedCertificate:d2t,tooltip_apikey:u2t,tooltip_cloudUrl:p2t,tooltip_concatWord:h2t,tooltip_deviceOffLevel:f2t,tooltip_functionFirst:m2t,tooltip_instance:g2t,tooltip_language:_2t,tooltip_noCommon:v2t,tooltip_responseOID:y2t,tooltip_restartOnDisconnect:b2t,"Device %s will be disabled.":"Пристрій %s буде вимкнено.",Delete:w2t,Brightness:S2t,Power:x2t,"Color temperature":"Колірна температура",Color:C2t,Detection:$2t,Lock:k2t,Mode:E2t,Muted:T2t,Percentage:O2t,"Set point":"Задана точка",Temperature:D2t,"Thermostat mode":"Режим термостата",Volume:A2t,socket:M2t,light:N2t,dimmer:j2t,thermostat:z2t,blind:R2t,gate:I2t,lock:L2t,hue:F2t,motion:P2t,slider:B2t,temperature:H2t,window:U2t,Thermostat:W2t,Light:V2t,AirCondition:G2t,Blind:q2t,ContactSensor:X2t,Control:J2t,Door:Y2t,Gate:K2t,Hue:Z2t,Motion:Q2t,Slider:eCt,Socket:tCt,VacuumCleaner:nCt,VolumeGroup:oCt,Window:rCt,"Color HUE":"Колір HUE","Door sensor":"Датчик дверей",Sensor:aCt,"Vacuum cleaner":"Пилосос","Volume group":"Група томів","Window sensor":"Датчик вікна",Blinds:sCt,"Grouped from %s and %s":"Згруповано з %s і %s","Default toggle behaviour (Only alexa v3)":"Поведінка перемикання за замовчуванням (тільки Alexa v3)","Do not toggle":"Не перемикайте",Toggle:iCt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Ця послуга зарезервована для програми ioBroker.visu. Використовуйте іншу назву служби."},cCt="活性",dCt="地址",uCt="取消",pCt="关闭",hCt="命令",fCt="默认",mCt="调光器",gCt="过滤",_Ct="功能",vCt="实例",yCt="语言",bCt="信息",wCt="离",SCt="确定",xCt="上",CCt="选项",$Ct="评论",kCt="客房",ECt="保存",TCt="选择",OCt="类型",DCt="类型",ACt="值",MCt="明确",NCt="残",jCt='在写支持之前,请确保您已阅读并理解网页的说明: https : //www.iobroker.net',zCt='如果与Iot的连接仍然存在问题,则可以在论坛上请求支持',RCt='并且只有在那之后,您才应该写一封电子邮件到support@iobroker.com',ICt='没有iobroker.pro账号?在 https://iobroker.pro 上购买以获得有效访问权限,或免费获取,但访问受限。',LCt="除以逗号。使用*允许所有服务。",FCt="您可以在“文档”下找到您的密钥 ",PCt="名称已由用户修改",BCt="如果您使用自己的云,则可以允许为云使用自签名证书。",HCt="需要此密钥才能与云通信。您可以在https://iobroker.net上获取API-KEY,它看起来像nickname_f1f439a0-001a-11e7-bc64-92361f002671",UCt="通常您不需要更改它。仅在您计划使用自己的云时才需要。",WCt="定义如何连接Room和Function。例如。 'in':客厅里的灯光。",VCt="一些组由混合设备组成:调光器和开关。允许使用ON和OFF命令以及百分比来控制它们",GCt="通常名称看起来像room_function。在这里,您可以将其切换到function_room。",qCt="Web实例,将显示您的云连接。",XCt="您可以定义语言以在美国Alexa Skill和DE Alexa Skill之间快速切换。",JCt="如果启用,则仅为此实例存储设置。所以在另一个实例中,可以设置其他名称。",YCt="对于每个命令,将生成文本响应。您可以在此处定义必须写入此文本的对象ID。例如。 sayit.0.tts.text。",KCt="在与云连接丢失后缺少与Alexa的连接的解决方法。使用此选项,您可以在每次断开连接后重新启动适配器,它将起作用。",ZCt="您不能在密码中使用%。我们正在努力解决。",QCt=`密码长度必须至少为8个字符,并且必须包含数字,大小写字母。请在ioBroker.pro配置文件中进行更改 -`,e$t="如果您从备份还原,或将实例从一台设备移至另一台设备,或删除了IoT实例并再次添加,则必须使用此按钮加载连接安全证书",t$t="如果使用 ioBroker.pro 登录数据登录 Alexa Skill/Google Action/Alisa 失败,请按以下按钮。",n$t='任何语言的任何疑问,请在论坛上提问:链接',o$t="请选择TYPETRAIT。要添加多个特征,请添加不同的id和特征,但要使用相同的智能名称,类型和房间。逗号分隔为多个智能名称。要分配房间,请使用ioBroker Enums/Aufzählungen。例如,通过属性,您可以设置色温的范围有关的信息您可以在此处找到属性。空属性为{}",r$t="搜索",a$t="名称",s$t="房间",i$t="ID",l$t="IoB类型",c$t="属性",d$t="自动地",u$t="删除",p$t="调光器",h$t="开关",f$t="颜色",m$t="检测",g$t="锁",_$t="模式",v$t="静音",y$t="百分比",b$t="温度",w$t="体积",S$t="插座",x$t="光",C$t="调光器",$$t="恒温器",k$t="百叶窗",E$t="门",T$t="锁",O$t="色调",D$t="运动",A$t="滑块",M$t="温度",N$t="窗户",j$t="温控器",z$t="光",R$t="空调",I$t="百叶窗",L$t="接触式传感器",F$t="控制",P$t="门",B$t="门",H$t="色调",U$t="运动",W$t="滑块",V$t="插座",G$t="吸尘器",q$t="卷组",X$t="窗户",J$t="传感器",Y$t="百叶窗",K$t="切换",Z$t={"(Set to 0 if behavior not desired)":"(如果不需要行为,则设为0)","(you can separate names with comma)":"您可以输入多个名称除以逗号",Active:cCt,"Add device":"添加设备","Add service":"添加服务",Addresses:dCt,"Alexa devices":"Alexa设备","Alisa devices":"Alisa设备","Allow admin access (only pro)":"允许管理员访问(仅限专业版)","Allow self-signed certificates":"允许自签名证书","Amazon Alexa":"亚马逊Alexa","Are you sure?":"你确定吗?","Attributes has not correct JSON format.":"属性的格式不正确","Authentication must be disabled. You can create second instance extra for cloud.":"必须禁用身份验证。您可以为云创建额外的第二个实例。",Cancel:uCt,"Cannot add this object":"无法添加此对象,因为不支持。","Cannot read devices!":"无法读取设备!","Certificates will be updated after initiated restart":"启动重启后,证书将更新","Certificates will be updated after start":"证书将在开始后更新","Click now Get new connection certificates to request new temporary password":"单击“获取新连接证书”以请求新的临时密码",Close:pCt,"Cloud URL":"云URL","Cloud adapter settings":"云适配器设置",Commands:hCt,"Concatenate words with":"连接单词","Connection timeout":"连接超时(ms)","Debug outputs":"调试输出","Decrement color temperature":"降低色温","Decrement percentage":"减少百分比","Decrement target temperature":"降低目标温度",Default:fCt,"Device %s was not added":"未添加设备%s","Device will be deactivated.":"设备将被停用。","Device will be disabled.":"设备将被禁用。",Dimmer:mCt,"Duplicate name":"名称重复","Edit smart name":"编辑智能名称",Error:"错误","Extended options":"扩展选项",Filter:gCt,"For help use this forum":"如需帮助,请访问此论坛发布",Functions:_Ct,"Get actual temperature":"获得实际温度","Get new connection certificates":"获取新的连接证书","Get new service URL key":"获取新服务URL密钥","Get target temperature":"获得目标温度","Google Home":"Google Home","IFTTT key":"IFTTT关键","Increment color temperature":"增加色温","Increment percentage":"增量百分比","Increment target temperature":"增加目标温度",Instance:vCt,"Instance does not exists":"实例不存在","Instance is not active.":"实例未激活。","Instance must be enabled":"必须启用实例","Instance must run to deliver the data":"必须运行实例才能传递数据","Invalid object":"无效的对象",Language:yCt,"Load configuration from file":"从文件加载配置",Message:bCt,"OFF level for switches":"开关的OFF电平","OFF level for switches in %":"开关关闭电平%",Off:wCt,Ok:SCt,On:xCt,"On/Off":"开关",Options:CCt,"Personal settings (only pro)":"个人设置(仅限专业)","Ping timeout:":"Ping超时(ms)","Place function in names first":"首先将函数放在名称中","Please add action and trait to complete the Google Home state.":"请添加操作和特征以完成Google Home状态。","Please add type and trait to complete the Google Home state.":"请添加类型和特征以完成Google Home状态。","Please select object ID...":"请选择对象ID ...","Please write your email only in lower case letters":"请以小写字母书写您的电子邮件","Read lock state":"读锁定状态","Replace in names":"替换名称","Request email with password one more time":"再次请求带密码的电子邮件","Restart on disconnect":"断开连接重启",Review:$Ct,Rooms:kCt,Save:ECt,"Save and close":"保存并关闭","Save configuration to file":"将配置保存到文件","Save settings and the names will be changed":"保存设置,名称将被更改",Select:TCt,"Service names":"服务名称","Services and IFTTT":"服务和IFTTT","Set color":"设置颜色","Set color temperature":"设置色温","Set lock state":"设置锁定状态","Set percentage":"设定百分比","Set target temperature":"设定目标温度","Smart Devices":"智能设备","Smart Enums":"智能枚举","Smart Media":"智能媒体","Smart enums":"智能枚举","Smart name":"聪明的名字","Smart name for %s":"%s的智能名称","To apply this setting, the restart of adapter must be done. Agree?":"要应用此设置,必须重新启动适配器。同意?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"对于自动检测,在对象下方为房间和功能分配一个通道(如果没有可用的通道,则为设备)。仅将房间分配给状态或设备是不够的。可以在枚举下添加房间/功能(如右上角的白色箭头所示),并且必须在IoT适配器中的“智能枚举”下将其激活。为了自动识别手动状态,必须删除状态。","Turn off":"关掉","Turn on":"打开",Type:OCt,Types:DCt,"Use Nightscout instance":"使用Nightscout实例","Use following link for IFTTT":"使用以下链接进行IFTTT","Use following link for custom service":"使用以下链接进行自定义服务","Use text2command instance":"使用text2command实例",Value:ACt,"White list for services":"服务白名单","Write response to":"写回复","Yandex Алиса":"YandexАлиса","You can enter several names divided by comma":"您可以输入多个名称除以逗号","amazon link":"如果您使用Alexa技能,请为我们写一篇评论此处
示例可以找到此处。","by ON":"通过ON",clear:MCt,default:"默认",disabled:NCt,help_link_tip1:jCt,help_link_tip2:zCt,help_link_tip3:RCt,help_tip:ICt,info_allowedServices:LCt,info_iftttKey:FCt,"ioBroker.pro Login":"ioBroker.pro登录","ioBroker.pro Password":"ioBroker.pro密码","omit value":"无价值","last value":"最后的价值",modified:PCt,"no type":"没有类型",tooltip_allowSelfSignedCertificate:BCt,tooltip_apikey:HCt,tooltip_cloudUrl:UCt,tooltip_concatWord:WCt,tooltip_deviceOffLevel:VCt,tooltip_functionFirst:GCt,tooltip_instance:qCt,tooltip_language:XCt,tooltip_noCommon:JCt,tooltip_responseOID:YCt,tooltip_restartOnDisconnect:KCt,"Short answer for blood sugar":"血糖的简短答案",cannot_use_password:ZCt,invalid_password_warning:QCt,new_certs_tip:e$t,new_credentials_tip:t$t,"Create IoT credentials anew":"重新创建IoT凭据",forum_tip:n$t,"Save settings before pressing this button":"按此按钮之前保存设置","Auto Mode":"自动模式","Manual Mode":"手动模式",manualModeHint:o$t,"not activated":"未激活","Google devices":"Google设备","Show/Hide help":"显示/隐藏帮助","Show all devices for print out":"显示所有要打印的设备",Search:r$t,"List of devices to print out, e.g. to give all device names to your partner.":"要打印的设备列表,例如将所有设备名称提供给您的合作伙伴。",Name:a$t,Function:"功能",Room:s$t,"Copy to clipboard":"复制到剪贴板","Toggle expert mode":"切换专家模式",ID:i$t,"Smart names":"聪明的名字",ioBType:l$t,"Function/Trait":"功能/特质",Attributes:c$t,Auto:d$t,"Conversation to GH":"转换为GH","Conversation to ioB":"转换为ioB","Information: The skill linking process was changed!":"信息:技能链接过程已更改!","The linking process has been changed for a few months.":"链接过程已更改了几个月。","Now there is no temporary password that will be sent by email.":"现在没有将通过电子邮件发送的临时密码。","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"密码与ioBroker.pro以及在设置中输入的密码相同!","Not understood":"不明白","Roger that":"收到","Read blood sugar from":"从读取血糖","Get actual humidity":"获取实际湿度","Get motion":"动起来","Get contact":"获取联系状态","Too many devices (%s) configured. Max number is 300":"配置了太多设备 (%s)。最大数量是 300!","Allow remote access":"允许远程访问","Admin instance":"管理实例","Web instance":"网页实例","Device %s will be disabled.":"设备 %s 将被禁用。",Delete:u$t,Brightness:p$t,Power:h$t,"Color temperature":"色温",Color:f$t,Detection:m$t,Lock:g$t,Mode:_$t,Muted:v$t,Percentage:y$t,"Set point":"设定点",Temperature:b$t,"Thermostat mode":"恒温模式",Volume:w$t,socket:S$t,light:x$t,dimmer:C$t,thermostat:$$t,blind:k$t,gate:E$t,lock:T$t,hue:O$t,motion:D$t,slider:A$t,temperature:M$t,window:N$t,Thermostat:j$t,Light:z$t,AirCondition:R$t,Blind:I$t,ContactSensor:L$t,Control:F$t,Door:P$t,Gate:B$t,Hue:H$t,Motion:U$t,Slider:W$t,Socket:V$t,VacuumCleaner:G$t,VolumeGroup:q$t,Window:X$t,"Color HUE":"颜色色调","Door sensor":"门磁",Sensor:J$t,"Vacuum cleaner":"吸尘器","Volume group":"卷组","Window sensor":"窗口传感器",Blinds:Y$t,"Grouped from %s and %s":"从 %s 和 %s 分组","Default toggle behaviour (Only alexa v3)":"默认切换行为(仅限 alexa v3)","Do not toggle":"不要切换",Toggle:K$t,"This service is reserved for the ioBroker.visu app. Please use another service name.":"此服务为 ioBroker.visu 应用程序保留。请使用其他服务名称。"},yr={root:{},tabContent:{padding:10,height:"calc(100% - 64px - 48px - 20px)",overflow:"auto"},tabContentIFrame:{padding:10,height:"calc(100% - 64px - 48px - 20px - 38px)",overflow:"auto"},selected:e=>({color:e.palette.mode==="dark"?void 0:"#FFF !important"}),indicator:e=>({backgroundColor:e.palette.mode==="dark"?e.palette.secondary.main:"#FFF"})};class Q$t extends ds{constructor(t){const n={...t};n.encryptedFields=["pass"],n.Connection=zU,n.translations={en:Wdt,de:jpt,ru:Cft,pt:fgt,nl:rvt,fr:Xyt,it:L0t,es:Twt,pl:vxt,uk:lCt,"zh-cn":Z$t},n.sentryDSN=window.sentryDSN,super(t,n),Object.assign(this.state,{selectedTab:window.localStorage.getItem(`${this.adapterName}.${this.instance}.selectedTab`)||"options"})}onConnectionReady(){this.socket.getState(`${this.adapterName}.${this.instance}.info.ackTempPassword`).then(t=>{(!t||!t.val)&&this.setState({showAckTempPasswordDialog:!0})})}renderAckTempPasswordDialog(){return this.state.showAckTempPasswordDialog?m.jsxs(yt,{open:!0,onClose:()=>this.setState({showAckTempPasswordDialog:!1},()=>setTimeout(()=>this.setState({showAckTempPasswordDialog:!0}),1e3)),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsx(bt,{id:"alert-dialog-title",children:E.t("Information: The skill linking process was changed!")}),m.jsx(jt,{children:m.jsxs(Ra,{id:"alert-dialog-description",children:[E.t("The linking process has been changed for a few months."),E.t("Now there is no temporary password that will be sent by email."),m.jsx("br",{}),m.jsx("br",{}),m.jsx("b",{children:E.t("The password is equal with ioBroker.pro and with password that was entered here in the settings!")})]})}),m.jsxs(Nt,{children:[m.jsx(he,{color:"grey",variant:"contained",onClick:()=>this.setState({showAckTempPasswordDialog:!1},()=>setTimeout(()=>this.setState({showAckTempPasswordDialog:!0}),1e3)),autoFocus:!0,children:E.t("Not understood")}),m.jsx(he,{variant:"contained",className:"skill-linking-ok",onClick:()=>this.socket.setState(`${this.adapterName}.${this.instance}.info.ackTempPassword`,{val:!0,ack:!0}).then(()=>this.setState({showAckTempPasswordDialog:!1})),color:"primary",autoFocus:!0,children:E.t("Roger that")})]})]}):null}render(){return this.state.loaded?m.jsx(t2,{injectFirst:!0,children:m.jsx(C2,{theme:this.state.theme,children:m.jsxs("div",{className:"App",style:{background:this.state.theme.palette.background.default,color:this.state.theme.palette.text.primary},children:[m.jsx(Z4,{position:"static",children:m.jsxs(x5,{value:this.state.selectedTab||"options",onChange:(t,n)=>{this.setState({selectedTab:n}),window.localStorage.setItem(`${this.adapterName}.${this.instance}.selectedTab`,n)},variant:"scrollable",scrollButtons:"auto",sx:{"& .MuiTabs-indicator":yr.indicator},children:[m.jsx(po,{value:"options",sx:{"&.Mui-selected":yr.selected},label:E.t("Options"),"data-name":"options"}),m.jsx(po,{value:"enums",className:"enums-tab",sx:{"&.Mui-selected":yr.selected},label:E.t("Smart enums"),"data-name":"enums"}),this.state.native.amazonAlexa&&m.jsx(po,{value:"alexa",sx:{"&.Mui-selected":yr.selected},selected:this.state.selectedTab==="alexa",label:E.t("Alexa devices"),"data-name":"alexa"}),this.state.native.amazonAlexa&&this.state.native.amazonAlexaV3&&m.jsx(po,{value:"alexa3",sx:{"&.Mui-selected":yr.selected},selected:this.state.selectedTab==="alexa3",label:`${E.t("Alexa devices")} v3`,"data-name":"alexa3"}),this.state.native.googleHome&&m.jsx(po,{value:"google",sx:{"&.Mui-selected":yr.selected},selected:this.state.selectedTab==="google",label:E.t("Google devices"),"data-name":"google"}),this.state.native.yandexAlisa&&m.jsx(po,{value:"alisa",sx:{"&.Mui-selected":yr.selected},selected:this.state.selectedTab==="alisa",label:E.t("Alisa devices"),"data-name":"alisa"}),m.jsx(po,{value:"extended",sx:{"&.Mui-selected":yr.selected},label:E.t("Extended options"),"data-name":"extended"}),m.jsx(po,{value:"services",sx:{"&.Mui-selected":yr.selected},label:E.t("Services and IFTTT"),"data-name":"services"})]})}),m.jsxs("div",{style:this.isIFrame?yr.tabContentIFrame:yr.tabContent,children:[(this.state.selectedTab==="options"||!this.state.selectedTab)&&m.jsx(bM,{common:this.common,theme:this.state.theme,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),onLoad:t=>this.onLoadConfig(t),instance:this.instance,adapterName:this.adapterName,changed:this.state.changed,onChange:(t,n,o)=>this.updateNativeValue(t,n,o)},"options"),this.state.selectedTab==="enums"&&m.jsx(CM,{theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),instance:this.instance,adapterName:this.adapterName},"enums"),this.state.selectedTab==="alexa"&&m.jsx(vs,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"alexa"),this.state.selectedTab==="alexa3"&&m.jsx(Br,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"alexa3"),this.state.selectedTab==="google"&&m.jsx(ect,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"google"),this.state.selectedTab==="alisa"&&m.jsx(M_,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"alisa"),this.state.selectedTab==="extended"&&m.jsx(SM,{common:this.common,theme:this.state.theme,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),instance:this.instance,adapterName:this.adapterName,onChange:(t,n)=>this.updateNativeValue(t,n)},"extended"),this.state.selectedTab==="services"&&m.jsx(xM,{theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),instance:this.instance,adapterName:this.adapterName,onShowError:t=>this.showError(t),onChange:(t,n)=>this.updateNativeValue(t,n)},"services")]}),this.renderError(),this.renderSaveCloseButtons(),this.renderAckTempPasswordDialog()]})})}):m.jsx(t2,{injectFirst:!0,children:m.jsx(C2,{theme:this.state.theme,children:m.jsx(c3,{themeType:this.state.themeType})})})}}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 ekt(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(e=>{e.unregister()})}const tkt="iot-admin",nkt="3.4.3",okt={"@emotion/styled":"^11.13.5","@emotion/react":"^11.13.5","@iobroker/adapter-react-v5":"^7.4.3","@mui/icons-material":"^6.1.10","@mui/material":"^6.1.10","@sentry/browser":"^8.42.0","@vitejs/plugin-react":"^4.3.4",eslint:"^9.16.0","eslint-config-airbnb":"^19.0.4","eslint-plugin-eqeqeq-fix":"^1.0.3","eslint-plugin-import":"^2.31.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-only-warn":"^1.1.0","eslint-plugin-react":"^7.37.2","eslint-plugin-react-hooks":"^5.1.0",react:"^19.0.0","react-dom":"^19.0.0","react-icons":"^5.4.0","react-inlinesvg":"^4.1.5"},rkt={start:"vite",build:"vite build",lint:"eslint --fix --ext .js,.jsx src","i18n=>flat":"node tasks --i18n=>flat","flat=>i18n":"node tasks --flat=>i18n"},akt=".",skt=[">0.2%","not dead","not ie <= 11","not op_mini all"],ikt={name:tkt,version:nkt,private:!0,dependencies:okt,scripts:rkt,homepage:akt,browserslist:skt};window.adapterName="iot";window.sentryDSN="https://5ad729dbed504d15aa8bde423cae9a8e@sentry.iobroker.net/57";console.log(`iobroker.${window.adapterName}@${ikt.version}`);const lkt=document.getElementById("root"),ckt=Mj.createRoot(lkt);ckt.render(m.jsx(Q$t,{}));ekt()});export default dkt(); + */function kE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function tM(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n
',Fit=Number.isNaN||sa.isNaN;function nt(e){return typeof e=="number"&&!Fit(e)}var FE=function(t){return t>0&&t<1/0};function ry(e){return typeof e>"u"}function Fi(e){return g0(e)==="object"&&e!==null}var Pit=Object.prototype.hasOwnProperty;function ac(e){if(!Fi(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&Pit.call(n,"isPrototypeOf")}catch{return!1}}function co(e){return typeof e=="function"}var Bit=Array.prototype.slice;function uM(e){return Array.from?Array.from(e):Bit.call(e)}function gn(e,t){return e&&co(t)&&(Array.isArray(e)||nt(e.length)?uM(e).forEach(function(n,o){t.call(e,n,o,e)}):Fi(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)})),e}var Jt=Object.assign||function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r0&&o.forEach(function(a){Fi(a)&&Object.keys(a).forEach(function(s){t[s]=a[s]})}),t},Hit=/\.\d*(?:0|9){12}\d*$/;function bc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Hit.test(e)?Math.round(e*t)/t:e}var Uit=/^width|height|left|top|marginLeft|marginTop$/;function xs(e,t){var n=e.style;gn(t,function(o,r){Uit.test(r)&&nt(o)&&(o="".concat(o,"px")),n[r]=o})}function Wit(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function $n(e,t){if(t){if(nt(e.length)){gn(e,function(o){$n(o,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function oa(e,t){if(t){if(nt(e.length)){gn(e,function(n){oa(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function sc(e,t,n){if(t){if(nt(e.length)){gn(e,function(o){sc(o,t,n)});return}n?$n(e,t):oa(e,t)}}var Vit=/([a-z\d])([A-Z])/g;function bS(e){return e.replace(Vit,"$1-$2").toLowerCase()}function $0(e,t){return Fi(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(bS(t)))}function mp(e,t,n){Fi(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(bS(t)),n)}function Git(e,t){if(Fi(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch{e.dataset[t]=void 0}else e.removeAttribute("data-".concat(bS(t)))}var pM=/\s\s*/,hM=function(){var e=!1;if(T_){var t=!1,n=function(){},o=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(a){t=a}});sa.addEventListener("test",n,o),sa.removeEventListener("test",n,o)}return e}();function _r(e,t,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(pM).forEach(function(a){if(!hM){var s=e.listeners;s&&s[a]&&s[a][n]&&(r=s[a][n],delete s[a][n],Object.keys(s[a]).length===0&&delete s[a],Object.keys(s).length===0&&delete e.listeners)}e.removeEventListener(a,r,o)})}function Go(e,t,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(pM).forEach(function(a){if(o.once&&!hM){var s=e.listeners,i=s===void 0?{}:s;r=function(){delete i[a][n],e.removeEventListener(a,r,o);for(var d=arguments.length,u=new Array(d),c=0;cMath.abs(n)&&(n=h)})}),n}function Xh(e,t){var n=e.pageX,o=e.pageY,r={endX:n,endY:o};return t?r:tM({startX:n,startY:o},r)}function Jit(e){var t=0,n=0,o=0;return gn(e,function(r){var a=r.startX,s=r.startY;t+=a,n+=s,o+=1}),t/=o,n/=o,{pageX:t,pageY:n}}function Cs(e){var t=e.aspectRatio,n=e.height,o=e.width,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=FE(o),s=FE(n);if(a&&s){var i=n*t;r==="contain"&&i>o||r==="cover"&&i90?{width:l,height:i}:{width:i,height:l}}function Kit(e,t,n,o){var r=t.aspectRatio,a=t.naturalWidth,s=t.naturalHeight,i=t.rotate,l=i===void 0?0:i,d=t.scaleX,u=d===void 0?1:d,c=t.scaleY,h=c===void 0?1:c,f=n.aspectRatio,g=n.naturalWidth,v=n.naturalHeight,S=o.fillColor,_=S===void 0?"transparent":S,b=o.imageSmoothingEnabled,y=b===void 0?!0:b,w=o.imageSmoothingQuality,$=w===void 0?"low":w,k=o.maxWidth,T=k===void 0?1/0:k,O=o.maxHeight,D=O===void 0?1/0:O,x=o.minWidth,A=x===void 0?0:x,R=o.minHeight,I=R===void 0?0:R,j=document.createElement("canvas"),N=j.getContext("2d"),M=Cs({aspectRatio:f,width:T,height:D}),P=Cs({aspectRatio:f,width:A,height:I},"cover"),H=Math.min(M.width,Math.max(P.width,g)),B=Math.min(M.height,Math.max(P.height,v)),Z=Cs({aspectRatio:r,width:T,height:D}),oe=Cs({aspectRatio:r,width:A,height:I},"cover"),ve=Math.min(Z.width,Math.max(oe.width,a)),fe=Math.min(Z.height,Math.max(oe.height,s)),le=[-ve/2,-fe/2,ve,fe];return j.width=bc(H),j.height=bc(B),N.fillStyle=_,N.fillRect(0,0,H,B),N.save(),N.translate(H/2,B/2),N.rotate(l*Math.PI/180),N.scale(u,h),N.imageSmoothingEnabled=y,N.imageSmoothingQuality=$,N.drawImage.apply(N,[e].concat(oM(le.map(function(Se){return Math.floor(bc(Se))})))),N.restore(),j}var mM=String.fromCharCode;function Zit(e,t,n){var o="";n+=t;for(var r=t;r0;)n.push(mM.apply(null,uM(r.subarray(0,o)))),r=r.subarray(o);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}function nlt(e){var t=new DataView(e),n;try{var o,r,a;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var s=t.byteLength,i=2;i+1=8&&(a=d+c)}}}if(a){var h=t.getUint16(a,o),f,g;for(g=0;g=0?a:cM),height:Math.max(o.offsetHeight,s>=0?s:dM)};this.containerData=i,xs(r,{width:i.width,height:i.height}),$n(t,ho),oa(r,ho)},initCanvas:function(){var t=this.containerData,n=this.imageData,o=this.options.viewMode,r=Math.abs(n.rotate)%180===90,a=r?n.naturalHeight:n.naturalWidth,s=r?n.naturalWidth:n.naturalHeight,i=a/s,l=t.width,d=t.height;t.height*i>t.width?o===3?l=t.height*i:d=t.width/i:o===3?d=t.width/i:l=t.height*i;var u={aspectRatio:i,naturalWidth:a,naturalHeight:s,width:l,height:d};this.canvasData=u,this.limited=o===1||o===2,this.limitCanvas(!0,!0),u.width=Math.min(Math.max(u.width,u.minWidth),u.maxWidth),u.height=Math.min(Math.max(u.height,u.minHeight),u.maxHeight),u.left=(t.width-u.width)/2,u.top=(t.height-u.height)/2,u.oldLeft=u.left,u.oldTop=u.top,this.initialCanvasData=Jt({},u)},limitCanvas:function(t,n){var o=this.options,r=this.containerData,a=this.canvasData,s=this.cropBoxData,i=o.viewMode,l=a.aspectRatio,d=this.cropped&&s;if(t){var u=Number(o.minCanvasWidth)||0,c=Number(o.minCanvasHeight)||0;i>1?(u=Math.max(u,r.width),c=Math.max(c,r.height),i===3&&(c*l>u?u=c*l:c=u/l)):i>0&&(u?u=Math.max(u,d?s.width:0):c?c=Math.max(c,d?s.height:0):d&&(u=s.width,c=s.height,c*l>u?u=c*l:c=u/l));var h=Cs({aspectRatio:l,width:u,height:c});u=h.width,c=h.height,a.minWidth=u,a.minHeight=c,a.maxWidth=1/0,a.maxHeight=1/0}if(n)if(i>(d?0:1)){var f=r.width-a.width,g=r.height-a.height;a.minLeft=Math.min(0,f),a.minTop=Math.min(0,g),a.maxLeft=Math.max(0,f),a.maxTop=Math.max(0,g),d&&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,i===2&&(a.width>=r.width&&(a.minLeft=Math.min(0,f),a.maxLeft=Math.max(0,f)),a.height>=r.height&&(a.minTop=Math.min(0,g),a.maxTop=Math.max(0,g))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=r.width,a.maxTop=r.height},renderCanvas:function(t,n){var o=this.canvasData,r=this.imageData;if(n){var a=Yit({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),s=a.width,i=a.height,l=o.width*(s/o.naturalWidth),d=o.height*(i/o.naturalHeight);o.left-=(l-o.width)/2,o.top-=(d-o.height)/2,o.width=l,o.height=d,o.aspectRatio=s/i,o.naturalWidth=s,o.naturalHeight=i,this.limitCanvas(!0,!1)}(o.width>o.maxWidth||o.widtho.maxHeight||o.heightn.width?a.height=a.width/o:a.width=a.height*o),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*r),a.height=Math.max(a.minHeight,a.height*r),a.left=n.left+(n.width-a.width)/2,a.top=n.top+(n.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Jt({},a)},limitCropBox:function(t,n){var o=this.options,r=this.containerData,a=this.canvasData,s=this.cropBoxData,i=this.limited,l=o.aspectRatio;if(t){var d=Number(o.minCropBoxWidth)||0,u=Number(o.minCropBoxHeight)||0,c=i?Math.min(r.width,a.width,a.width+a.left,r.width-a.left):r.width,h=i?Math.min(r.height,a.height,a.height+a.top,r.height-a.top):r.height;d=Math.min(d,r.width),u=Math.min(u,r.height),l&&(d&&u?u*l>d?u=d/l:d=u*l:d?u=d/l:u&&(d=u*l),h*l>c?h=c/l:c=h*l),s.minWidth=Math.min(d,c),s.minHeight=Math.min(u,h),s.maxWidth=c,s.maxHeight=h}n&&(i?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(r.width,a.left+a.width)-s.width,s.maxTop=Math.min(r.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=r.width-s.width,s.maxTop=r.height-s.height))},renderCropBox:function(){var t=this.options,n=this.containerData,o=this.cropBoxData;(o.width>o.maxWidth||o.widtho.maxHeight||o.height=n.width&&o.height>=n.height?aM:vS),xs(this.cropBox,Jt({width:o.width,height:o.height},ju({translateX:o.left,translateY:o.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),wc(this.element,b0,this.getData())}},alt={initPreview:function(){var t=this.element,n=this.crossOrigin,o=this.options.preview,r=n?this.crossOriginUrl:this.url,a=t.alt||"The image to preview",s=document.createElement("img");if(n&&(s.crossOrigin=n),s.src=r,s.alt=a,this.viewBox.appendChild(s),this.viewBoxImage=s,!!o){var i=o;typeof o=="string"?i=t.ownerDocument.querySelectorAll(o):o.querySelector&&(i=[o]),this.previews=i,gn(i,function(l){var d=document.createElement("img");mp(l,qh,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),n&&(d.crossOrigin=n),d.src=r,d.alt=a,d.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;"',l.innerHTML="",l.appendChild(d)})}},resetPreview:function(){gn(this.previews,function(t){var n=$0(t,qh);xs(t,{width:n.width,height:n.height}),t.innerHTML=n.html,Git(t,qh)})},preview:function(){var t=this.imageData,n=this.canvasData,o=this.cropBoxData,r=o.width,a=o.height,s=t.width,i=t.height,l=o.left-n.left-t.left,d=o.top-n.top-t.top;!this.cropped||this.disabled||(xs(this.viewBoxImage,Jt({width:s,height:i},ju(Jt({translateX:-l,translateY:-d},t)))),gn(this.previews,function(u){var c=$0(u,qh),h=c.width,f=c.height,g=h,v=f,S=1;r&&(S=h/r,v=a*S),a&&v>f&&(S=f/a,g=r*S,v=f),xs(u,{width:g,height:v}),xs(u.getElementsByTagName("img")[0],Jt({width:s*S,height:i*S},ju(Jt({translateX:-l*S,translateY:-d*S},t))))}))}},slt={bind:function(){var t=this.element,n=this.options,o=this.cropper;co(n.cropstart)&&Go(t,x0,n.cropstart),co(n.cropmove)&&Go(t,S0,n.cropmove),co(n.cropend)&&Go(t,w0,n.cropend),co(n.crop)&&Go(t,b0,n.crop),co(n.zoom)&&Go(t,C0,n.zoom),Go(o,AE,this.onCropStart=this.cropStart.bind(this)),n.zoomable&&n.zoomOnWheel&&Go(o,RE,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&Go(o,DE,this.onDblclick=this.dblclick.bind(this)),Go(t.ownerDocument,ME,this.onCropMove=this.cropMove.bind(this)),Go(t.ownerDocument,NE,this.onCropEnd=this.cropEnd.bind(this)),n.responsive&&Go(window,zE,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,n=this.options,o=this.cropper;co(n.cropstart)&&_r(t,x0,n.cropstart),co(n.cropmove)&&_r(t,S0,n.cropmove),co(n.cropend)&&_r(t,w0,n.cropend),co(n.crop)&&_r(t,b0,n.crop),co(n.zoom)&&_r(t,C0,n.zoom),_r(o,AE,this.onCropStart),n.zoomable&&n.zoomOnWheel&&_r(o,RE,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&_r(o,DE,this.onDblclick),_r(t.ownerDocument,ME,this.onCropMove),_r(t.ownerDocument,NE,this.onCropEnd),n.responsive&&_r(window,zE,this.onResize)}},ilt={resize:function(){if(!this.disabled){var t=this.options,n=this.container,o=this.containerData,r=n.offsetWidth/o.width,a=n.offsetHeight/o.height,s=Math.abs(r-1)>Math.abs(a-1)?r:a;if(s!==1){var i,l;t.restore&&(i=this.getCanvasData(),l=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(gn(i,function(d,u){i[u]=d*s})),this.setCropBoxData(gn(l,function(d,u){l[u]=d*s})))}}},dblclick:function(){this.disabled||this.options.dragMode===lM||this.setDragMode(Wit(this.dragBox,v0)?iM:yS)},wheel:function(t){var n=this,o=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*o,t)))},cropStart:function(t){var n=t.buttons,o=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(nt(n)&&n!==1||nt(o)&&o!==0||t.ctrlKey))){var r=this.options,a=this.pointers,s;t.changedTouches?gn(t.changedTouches,function(i){a[i.identifier]=Xh(i)}):a[t.pointerId||0]=Xh(t),Object.keys(a).length>1&&r.zoomable&&r.zoomOnTouch?s=sM:s=$0(t.target,fp),jit.test(s)&&wc(this.element,x0,{originalEvent:t,action:s})!==!1&&(t.preventDefault(),this.action=s,this.cropping=!1,s===rM&&(this.cropping=!0,$n(this.dragBox,Hm)))}},cropMove:function(t){var n=this.action;if(!(this.disabled||!n)){var o=this.pointers;t.preventDefault(),wc(this.element,S0,{originalEvent:t,action:n})!==!1&&(t.changedTouches?gn(t.changedTouches,function(r){Jt(o[r.identifier]||{},Xh(r,!0))}):Jt(o[t.pointerId||0]||{},Xh(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var n=this.action,o=this.pointers;t.changedTouches?gn(t.changedTouches,function(r){delete o[r.identifier]}):delete o[t.pointerId||0],n&&(t.preventDefault(),Object.keys(o).length||(this.action=""),this.cropping&&(this.cropping=!1,sc(this.dragBox,Hm,this.cropped&&this.options.modal)),wc(this.element,w0,{originalEvent:t,action:n}))}}},llt={change:function(t){var n=this.options,o=this.canvasData,r=this.containerData,a=this.cropBoxData,s=this.pointers,i=this.action,l=n.aspectRatio,d=a.left,u=a.top,c=a.width,h=a.height,f=d+c,g=u+h,v=0,S=0,_=r.width,b=r.height,y=!0,w;!l&&t.shiftKey&&(l=c&&h?c/h:1),this.limited&&(v=a.minLeft,S=a.minTop,_=v+Math.min(r.width,o.width,o.left+o.width),b=S+Math.min(r.height,o.height,o.top+o.height));var $=s[Object.keys(s)[0]],k={x:$.endX-$.startX,y:$.endY-$.startY},T=function(D){switch(D){case ti:f+k.x>_&&(k.x=_-f);break;case ni:d+k.xb&&(k.y=b-g);break}};switch(i){case vS:d+=k.x,u+=k.y;break;case ti:if(k.x>=0&&(f>=_||l&&(u<=S||g>=b))){y=!1;break}T(ti),c+=k.x,c<0&&(i=ni,c=-c,d-=c),l&&(h=c/l,u+=(a.height-h)/2);break;case ns:if(k.y<=0&&(u<=S||l&&(d<=v||f>=_))){y=!1;break}T(ns),h-=k.y,u+=k.y,h<0&&(i=bl,h=-h,u-=h),l&&(c=h*l,d+=(a.width-c)/2);break;case ni:if(k.x<=0&&(d<=v||l&&(u<=S||g>=b))){y=!1;break}T(ni),c-=k.x,d+=k.x,c<0&&(i=ti,c=-c,d-=c),l&&(h=c/l,u+=(a.height-h)/2);break;case bl:if(k.y>=0&&(g>=b||l&&(d<=v||f>=_))){y=!1;break}T(bl),h+=k.y,h<0&&(i=ns,h=-h,u-=h),l&&(c=h*l,d+=(a.width-c)/2);break;case Bd:if(l){if(k.y<=0&&(u<=S||f>=_)){y=!1;break}T(ns),h-=k.y,u+=k.y,c=h*l}else T(ns),T(ti),k.x>=0?f<_?c+=k.x:k.y<=0&&u<=S&&(y=!1):c+=k.x,k.y<=0?u>S&&(h-=k.y,u+=k.y):(h-=k.y,u+=k.y);c<0&&h<0?(i=Wd,h=-h,c=-c,u-=h,d-=c):c<0?(i=Hd,c=-c,d-=c):h<0&&(i=Ud,h=-h,u-=h);break;case Hd:if(l){if(k.y<=0&&(u<=S||d<=v)){y=!1;break}T(ns),h-=k.y,u+=k.y,c=h*l,d+=a.width-c}else T(ns),T(ni),k.x<=0?d>v?(c-=k.x,d+=k.x):k.y<=0&&u<=S&&(y=!1):(c-=k.x,d+=k.x),k.y<=0?u>S&&(h-=k.y,u+=k.y):(h-=k.y,u+=k.y);c<0&&h<0?(i=Ud,h=-h,c=-c,u-=h,d-=c):c<0?(i=Bd,c=-c,d-=c):h<0&&(i=Wd,h=-h,u-=h);break;case Wd:if(l){if(k.x<=0&&(d<=v||g>=b)){y=!1;break}T(ni),c-=k.x,d+=k.x,h=c/l}else T(bl),T(ni),k.x<=0?d>v?(c-=k.x,d+=k.x):k.y>=0&&g>=b&&(y=!1):(c-=k.x,d+=k.x),k.y>=0?g=0&&(f>=_||g>=b)){y=!1;break}T(ti),c+=k.x,h=c/l}else T(bl),T(ti),k.x>=0?f<_?c+=k.x:k.y>=0&&g>=b&&(y=!1):c+=k.x,k.y>=0?g0?i=k.y>0?Ud:Bd:k.x<0&&(d-=c,i=k.y>0?Wd:Hd),k.y<0&&(u-=h),this.cropped||(oa(this.cropBox,ho),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}y&&(a.width=c,a.height=h,a.left=d,a.top=u,this.action=i,this.renderCropBox()),gn(s,function(O){O.startX=O.endX,O.startY=O.endY})}},clt={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&$n(this.dragBox,Hm),oa(this.cropBox,ho),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Jt({},this.initialImageData),this.canvasData=Jt({},this.initialCanvasData),this.cropBoxData=Jt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Jt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),oa(this.dragBox,Hm),$n(this.cropBox,ho)),this},replace:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),n?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,gn(this.previews,function(o){o.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,oa(this.cropper,TE)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,$n(this.cropper,TE)),this},destroy:function(){var t=this.element;return t[qt]?(t[qt]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.canvasData,r=o.left,a=o.top;return this.moveTo(ry(t)?t:r+Number(t),ry(n)?n:a+Number(n))},moveTo:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.canvasData,r=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.movable&&(nt(t)&&(o.left=t,r=!0),nt(n)&&(o.top=n,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,n){var o=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(o.width*t/o.naturalWidth,null,n)},zoomTo:function(t,n,o){var r=this.options,a=this.canvasData,s=a.width,i=a.height,l=a.naturalWidth,d=a.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&r.zoomable){var u=l*t,c=d*t;if(wc(this.element,C0,{ratio:t,oldRatio:s/l,originalEvent:o})===!1)return this;if(o){var h=this.pointers,f=fM(this.cropper),g=h&&Object.keys(h).length?Jit(h):{pageX:o.pageX,pageY:o.pageY};a.left-=(u-s)*((g.pageX-f.left-a.left)/s),a.top-=(c-i)*((g.pageY-f.top-a.top)/i)}else ac(n)&&nt(n.x)&&nt(n.y)?(a.left-=(u-s)*((n.x-a.left)/s),a.top-=(c-i)*((n.y-a.top)/i)):(a.left-=(u-s)/2,a.top-=(c-i)/2);a.width=u,a.height=c,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),nt(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var n=this.imageData.scaleY;return this.scale(t,nt(n)?n:1)},scaleY:function(t){var n=this.imageData.scaleX;return this.scale(nt(n)?n:1,t)},scale:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.imageData,r=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.scalable&&(nt(t)&&(o.scaleX=t,r=!0),nt(n)&&(o.scaleY=n,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.options,o=this.imageData,r=this.canvasData,a=this.cropBoxData,s;if(this.ready&&this.cropped){s={x:a.left-r.left,y:a.top-r.top,width:a.width,height:a.height};var i=o.width/o.naturalWidth;if(gn(s,function(u,c){s[c]=u/i}),t){var l=Math.round(s.y+s.height),d=Math.round(s.x+s.width);s.x=Math.round(s.x),s.y=Math.round(s.y),s.width=d-s.x,s.height=l-s.y}}else s={x:0,y:0,width:0,height:0};return n.rotatable&&(s.rotate=o.rotate||0),n.scalable&&(s.scaleX=o.scaleX||1,s.scaleY=o.scaleY||1),s},setData:function(t){var n=this.options,o=this.imageData,r=this.canvasData,a={};if(this.ready&&!this.disabled&&ac(t)){var s=!1;n.rotatable&&nt(t.rotate)&&t.rotate!==o.rotate&&(o.rotate=t.rotate,s=!0),n.scalable&&(nt(t.scaleX)&&t.scaleX!==o.scaleX&&(o.scaleX=t.scaleX,s=!0),nt(t.scaleY)&&t.scaleY!==o.scaleY&&(o.scaleY=t.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var i=o.width/o.naturalWidth;nt(t.x)&&(a.left=t.x*i+r.left),nt(t.y)&&(a.top=t.y*i+r.top),nt(t.width)&&(a.width=t.width*i),nt(t.height)&&(a.height=t.height*i),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Jt({},this.containerData):{}},getImageData:function(){return this.sized?Jt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&gn(["left","top","width","height","naturalWidth","naturalHeight"],function(o){n[o]=t[o]}),n},setCanvasData:function(t){var n=this.canvasData,o=n.aspectRatio;return this.ready&&!this.disabled&&ac(t)&&(nt(t.left)&&(n.left=t.left),nt(t.top)&&(n.top=t.top),nt(t.width)?(n.width=t.width,n.height=t.width/o):nt(t.height)&&(n.height=t.height,n.width=t.height*o),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,n;return this.ready&&this.cropped&&(n={left:t.left,top:t.top,width:t.width,height:t.height}),n||{}},setCropBoxData:function(t){var n=this.cropBoxData,o=this.options.aspectRatio,r,a;return this.ready&&this.cropped&&!this.disabled&&ac(t)&&(nt(t.left)&&(n.left=t.left),nt(t.top)&&(n.top=t.top),nt(t.width)&&t.width!==n.width&&(r=!0,n.width=t.width),nt(t.height)&&t.height!==n.height&&(a=!0,n.height=t.height),o&&(r?n.height=n.width/o:a&&(n.width=n.height*o)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var n=this.canvasData,o=Kit(this.image,this.imageData,n,t);if(!this.cropped)return o;var r=this.getData(t.rounded),a=r.x,s=r.y,i=r.width,l=r.height,d=o.width/Math.floor(n.naturalWidth);d!==1&&(a*=d,s*=d,i*=d,l*=d);var u=i/l,c=Cs({aspectRatio:u,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),h=Cs({aspectRatio:u,width:t.minWidth||0,height:t.minHeight||0},"cover"),f=Cs({aspectRatio:u,width:t.width||(d!==1?o.width:i),height:t.height||(d!==1?o.height:l)}),g=f.width,v=f.height;g=Math.min(c.width,Math.max(h.width,g)),v=Math.min(c.height,Math.max(h.height,v));var S=document.createElement("canvas"),_=S.getContext("2d");S.width=bc(g),S.height=bc(v),_.fillStyle=t.fillColor||"transparent",_.fillRect(0,0,g,v);var b=t.imageSmoothingEnabled,y=b===void 0?!0:b,w=t.imageSmoothingQuality;_.imageSmoothingEnabled=y,w&&(_.imageSmoothingQuality=w);var $=o.width,k=o.height,T=a,O=s,D,x,A,R,I,j;T<=-i||T>$?(T=0,D=0,A=0,I=0):T<=0?(A=-T,T=0,D=Math.min($,i+T),I=D):T<=$&&(A=0,D=Math.min(i,$-T),I=D),D<=0||O<=-l||O>k?(O=0,x=0,R=0,j=0):O<=0?(R=-O,O=0,x=Math.min(k,l+O),j=x):O<=k&&(R=0,x=Math.min(l,k-O),j=x);var N=[T,O,D,x];if(I>0&&j>0){var M=g/i;N.push(A*M,R*M,I*M,j*M)}return _.drawImage.apply(_,[o].concat(oM(N.map(function(P){return Math.floor(bc(P))})))),S},setAspectRatio:function(t){var n=this.options;return!this.disabled&&!ry(t)&&(n.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var n=this.options,o=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var a=t===yS,s=n.movable&&t===iM;t=a||s?t:lM,n.dragMode=t,mp(o,fp,t),sc(o,v0,a),sc(o,y0,s),n.cropBoxMovable||(mp(r,fp,t),sc(r,v0,a),sc(r,y0,s))}return this}},dlt=sa.Cropper,gM=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(xit(this,e),!t||!Iit.test(t.tagName))throw new Error("The first argument is required and must be an or element.");this.element=t,this.options=Jt({},LE,ac(n)&&n),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 Cit(e,[{key:"init",value:function(){var n=this.element,o=n.tagName.toLowerCase(),r;if(!n[qt]){if(n[qt]=this,o==="img"){if(this.isImg=!0,r=n.getAttribute("src")||"",this.originalUrl=r,!r)return;r=n.src}else o==="canvas"&&window.HTMLCanvasElement&&(r=n.toDataURL());this.load(r)}}},{key:"load",value:function(n){var o=this;if(n){this.url=n,this.imageData={};var r=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(zit.test(n)){Rit.test(n)?this.read(elt(n)):this.clone();return}var s=new XMLHttpRequest,i=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=i,s.onerror=i,s.ontimeout=i,s.onprogress=function(){s.getResponseHeader("content-type")!==IE&&s.abort()},s.onload=function(){o.read(s.response)},s.onloadend=function(){o.reloading=!1,o.xhr=null},a.checkCrossOrigin&&PE(n)&&r.crossOrigin&&(n=BE(n)),s.open("GET",n,!0),s.responseType="arraybuffer",s.withCredentials=r.crossOrigin==="use-credentials",s.send()}}},{key:"read",value:function(n){var o=this.options,r=this.imageData,a=nlt(n),s=0,i=1,l=1;if(a>1){this.url=tlt(n,IE);var d=olt(a);s=d.rotate,i=d.scaleX,l=d.scaleY}o.rotatable&&(r.rotate=s),o.scalable&&(r.scaleX=i,r.scaleY=l),this.clone()}},{key:"clone",value:function(){var n=this.element,o=this.url,r=n.crossOrigin,a=o;this.options.checkCrossOrigin&&PE(o)&&(r||(r="anonymous"),a=BE(o)),this.crossOrigin=r,this.crossOriginUrl=a;var s=document.createElement("img");r&&(s.crossOrigin=r),s.src=a||o,s.alt=n.alt||"The image to crop",this.image=s,s.onload=this.start.bind(this),s.onerror=this.stop.bind(this),$n(s,OE),n.parentNode.insertBefore(s,n.nextSibling)}},{key:"start",value:function(){var n=this,o=this.image;o.onload=null,o.onerror=null,this.sizing=!0;var r=sa.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(sa.navigator.userAgent),a=function(d,u){Jt(n.imageData,{naturalWidth:d,naturalHeight:u,aspectRatio:d/u}),n.initialImageData=Jt({},n.imageData),n.sizing=!1,n.sized=!0,n.build()};if(o.naturalWidth&&!r){a(o.naturalWidth,o.naturalHeight);return}var s=document.createElement("img"),i=document.body||document.documentElement;this.sizingImage=s,s.onload=function(){a(s.width,s.height),r||i.removeChild(s)},s.src=o.src,r||(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;",i.appendChild(s))}},{key:"stop",value:function(){var n=this.image;n.onload=null,n.onerror=null,n.parentNode.removeChild(n),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var n=this.element,o=this.options,r=this.image,a=n.parentNode,s=document.createElement("div");s.innerHTML=Lit;var i=s.querySelector(".".concat(qt,"-container")),l=i.querySelector(".".concat(qt,"-canvas")),d=i.querySelector(".".concat(qt,"-drag-box")),u=i.querySelector(".".concat(qt,"-crop-box")),c=u.querySelector(".".concat(qt,"-face"));this.container=a,this.cropper=i,this.canvas=l,this.dragBox=d,this.cropBox=u,this.viewBox=i.querySelector(".".concat(qt,"-view-box")),this.face=c,l.appendChild(r),$n(n,ho),a.insertBefore(i,n.nextSibling),oa(r,OE),this.initPreview(),this.bind(),o.initialAspectRatio=Math.max(0,o.initialAspectRatio)||NaN,o.aspectRatio=Math.max(0,o.aspectRatio)||NaN,o.viewMode=Math.max(0,Math.min(3,Math.round(o.viewMode)))||0,$n(u,ho),o.guides||$n(u.getElementsByClassName("".concat(qt,"-dashed")),ho),o.center||$n(u.getElementsByClassName("".concat(qt,"-center")),ho),o.background&&$n(i,"".concat(qt,"-bg")),o.highlight||$n(c,Dit),o.cropBoxMovable&&($n(c,y0),mp(c,fp,vS)),o.cropBoxResizable||($n(u.getElementsByClassName("".concat(qt,"-line")),ho),$n(u.getElementsByClassName("".concat(qt,"-point")),ho)),this.render(),this.ready=!0,this.setDragMode(o.dragMode),o.autoCrop&&this.crop(),this.setData(o.data),co(o.ready)&&Go(n,jE,o.ready,{once:!0}),wc(n,jE)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var n=this.cropper.parentNode;n&&n.removeChild(this.cropper),oa(this.element,ho)}}},{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=dlt,e}},{key:"setDefaults",value:function(n){Jt(LE,ac(n)&&n)}}])}();Jt(gM.prototype,rlt,alt,slt,ilt,llt,clt);var pi=function(){return pi=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&O.zoomTo(P)}(T.currentTarget.cropper,y),S&&S(T)}}));_&&_(k)}return function(){var T,O;(O=(T=w.current)===null||T===void 0?void 0:T.cropper)===null||O===void 0||O.destroy()}},[w]);var $=function(k){return ult.reduce(function(T,O){var D=T,x=O;return D[x],sy(D,[typeof x=="symbol"?x:x+""])},k)}(pi(pi({},b),{crossOrigin:l,src:a,alt:v}));return p.createElement("div",{style:s,className:i},p.createElement("img",pi({},$,{style:plt,ref:w})))});const os={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},hlt={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},Bn={seconds:"seconds",minutes:"minutes"},HE=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function Gr(e){return e<10?`0${e}`:`${e}`}const flt={mode:"interval",interval:{period:1,unit:Bn.minutes}};function Of(e){if(e==="*")return[0,1,2,3,4,5,6];const t=e.split(","),n=[];return t.forEach(o=>{const r=o.split("-");if(r.length===2){const a=parseInt(r[0],10),s=parseInt(r[1],10);for(let i=a;i<=s;i++)n.includes(i===7?0:i)||n.push(i===7?0:i)}else{o==="7"&&(o="0");const a=parseInt(o,10);n.includes(a)||n.push(a)}}),n.sort(),n}function _M(e,t){e=e.replace(/['"]/g,"").trim();const n=e.split(" ");let o,r=null;return n.length===6?o={seconds:n[0]||"*",minutes:n[1]||"*",hours:n[2]||"*",date:n[3]||"*",months:n[4]||"*",dow:n[5]||"*"}:o={seconds:null,minutes:n[0]||"*",hours:n[1]||"*",date:n[2]||"*",months:n[3]||"*",dow:n[4]||"*"},o.seconds===null&&o.minutes==="*"&&o.hours==="*"&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)&&(r={mode:"interval",interval:{period:1,unit:Bn.minutes}}),o.seconds==="*"&&o.minutes==="*"&&o.hours==="*"&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"interval",interval:{period:1,unit:Bn.seconds}}:o.seconds===null&&o.minutes.includes("/")&&o.hours==="*"&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"interval",interval:{period:parseInt(o.minutes.split("/")[1],10),unit:Bn.minutes}}:o.seconds!==null&&o.seconds.includes("/")&&o.minutes==="*"&&o.hours==="*"&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"interval",interval:{period:parseInt(o.seconds.split("/")[1],10),unit:Bn.seconds}}:o.seconds!==null&&o.seconds.includes("/")&&o.minutes==="*"&&o.hours.includes("-")&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"intervalBetween",intervalBetween:{period:parseInt(o.seconds.split("/")[1],10),unit:Bn.seconds,timeFrom:parseInt(o.hours.split("-")[0],10),timeTo:parseInt(o.hours.split("-")[1],10),weekdays:Of(o.dow)}}:o.seconds===null&&o.minutes.includes("/")&&o.hours.includes("-")&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"intervalBetween",intervalBetween:{period:parseInt(o.minutes.split("/")[1],10),unit:Bn.minutes,timeFrom:parseInt(o.hours.split("-")[0],10),timeTo:parseInt(o.hours.split("-")[1],10),weekdays:Of(o.dow)}}:o.seconds===null&&parseInt(o.minutes,10).toString()===o.minutes&&parseInt(o.hours,10).toString()===o.hours&&o.date==="*"&&o.months==="*"&&(o.dow==="*"||t)?r={mode:"specific",specific:{time:`${Gr(parseInt(o.hours,10))}:${Gr(parseInt(o.minutes,10))}`,weekdays:Of(o.dow)}}:o.seconds===null&&parseInt(o.minutes,10).toString()===o.minutes&&parseInt(o.hours,10).toString()===o.hours&&parseInt(o.date,10).toString()===o.date&&parseInt(o.months,10).toString()===o.months&&(o.dow==="*"||t)&&(r={mode:"once",once:{time:`${Gr(parseInt(o.hours,10))}:${Gr(parseInt(o.minutes,10))}`,date:`${Gr(parseInt(o.date,10))}.${Gr(parseInt(o.months,10))}`}}),r}class gp extends p.Component{constructor(t){super(t);let n=typeof t.cronExpression=="string"?t.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";n[0]==="{"&&(n="");const o=_M(n||"* * * * *",!0)||flt;this.state={extended:!1,cron:gp.state2cron(o),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Bn.minutes},intervalBetween:{period:1,unit:Bn.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,o),this.state.cron!==t.cronExpression&&setTimeout(()=>t.onChange&&t.onChange(this.state.cron),100)}static periodArray2text(t,n=7){if(n=n||7,t.length===n)return"*";const o=[];let r=null,a=null;if(!t.length)return"_";for(let s=0;s60&&(o.period=60),o.period!==void 0&&o.period<1&&(o.period=1),o.minutes!==void 0&&o.minutes!==null&&o.minutes>60&&(o.minutes=60),o.minutes!==void 0&&o.minutes!==null&&o.minutes<1&&(o.minutes=1),o.hours!==void 0&&o.hours!==null&&o.hours>24&&(o.hours=24),o.hours!==void 0&&o.hours!==null&&o.hours<1&&(o.hours=1),t.extended)n=`${o.minutes!==void 0&&o.minutes!==null&&o.minutes>1?`*/${o.minutes}`:"*"} ${o.hours!==void 0&&o.hours!==null&&o.hours>1?`*/${o.hours}`:"*"} * * *`;else switch(o.unit){case Bn.seconds:n=`${o.period>1?`*/${o.period}`:"*"} * * * * *`;break;case Bn.minutes:n=`${o.period>1?`*/${o.period}`:"*"} * * * *`;break}}else if(t.mode==="intervalBetween"){const o=t.intervalBetween||{period:1,unit:Bn.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let r;switch(o.timeFrom=o.timeFrom||0,o.timeTo=o.timeTo===void 0?24:o.timeTo,o.timeFrom!==0&&o.timeTo===24&&(o.timeTo=23),o.timeFrom===0&&o.timeTo===24?r="*":r=o.timeFrom!==o.timeTo?`${o.timeFrom}-${o.timeTo}`:"*",o.period>60&&(o.period=60),o.period<1&&(o.period=1),o.unit=o.unit||Bn.minutes,o.unit){case Bn.seconds:n=`${o.period>1?`*/${o.period}`:"*"} * ${r} * * ${this.periodArray2text(o.weekdays)}`;break;case Bn.minutes:n=`${o.period>1?`*/${o.period}`:"*"} ${r} * * ${this.periodArray2text(o.weekdays)}`;break}}else if(t.mode==="specific"){const o=t.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},r=(o.time||"00:00").split(":");let a=parseInt(r[1],10)||0;a>59&&(a=59),a<0&&(a=0);let s=parseInt(r[0],10)||0;s>23&&(s=59),s<0&&(s=0),n=`${a} ${s} * * ${this.periodArray2text(o.weekdays||[])}`}else if(t.mode==="once"){const o=t.once||{time:"00:00",date:""};o.date||(o.date=`${new Date().getDate()}.${Gr(new Date().getMonth()+1)}`);const r=(o.time||"00:00").split(":"),a=o.date.split(".");let s=parseInt(r[1],10)||0;s>59&&(s=59),s<0&&(s=0);let i=parseInt(r[0],10)||0;i>23&&(i=59),i<0&&(i=0);let l=parseInt(a[0],10)||1;l>31&&(l=31),l<1&&(i=1);let d=parseInt(a[1],10)||1;d>12&&(d=12),d<1&&(d=1),n=`${s} ${i} ${l} ${d} *`}return n}recalcCron(){this.onChange(gp.state2cron(this.state))}getControlsWeekdaysElements(t){const n=t==="intervalBetween"?this.state.intervalBetween:this.state.specific;return p.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},p.createElement("h5",null,E.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(o=>p.createElement(Oe,{key:HE[o],control:p.createElement(Tt,{checked:n.weekdays.includes(o),onChange:r=>{const a=JSON.parse(JSON.stringify(this.state[t])),s=a.weekdays.indexOf(o);r.target.checked?s===-1&&a.weekdays.push(o):s!==-1&&a.weekdays.splice(s,1),a.weekdays.sort(),t==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:o.toString()}),label:E.t(HE[o])})))}getControlsPeriodElements(t){const n=t==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?p.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},p.createElement("h5",{style:{marginBottom:5}},E.t("sc_period")),p.createElement(st,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:E.t("sc_minutes"),value:n.minutes,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.minutes=parseInt(o.target.value,10),r.minutes<1&&(r.minutes=1),t==="interval"?this.setState({interval:r},()=>this.recalcCron()):this.setState({intervalBetween:r},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),p.createElement(st,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:E.t("sc_hours"),value:n.hours,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.hours=parseInt(o.target.value,10),r.hours<1&&(r.hours=1),t==="interval"?this.setState({interval:r},()=>this.recalcCron()):this.setState({intervalBetween:r},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):p.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},p.createElement("h5",{style:{marginBottom:5}},E.t("sc_period")),p.createElement(st,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:E.t("sc_every"),value:n.period,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.period=parseInt(o.target.value,10),r.period<1&&(r.period=1),t==="interval"?this.setState({interval:r},()=>this.recalcCron()):this.setState({intervalBetween:r},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),p.createElement(_n,{variant:"standard",style:{verticalAlign:"bottom"},value:n.unit,onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.unit=o.target.value,t==="interval"?this.setState({interval:r},()=>this.recalcCron()):this.setState({intervalBetween:r},()=>this.recalcCron())}},p.createElement(je,{value:"seconds"},E.t("sc_seconds")),")",p.createElement(je,{value:"minutes"},E.t("sc_minutes")),")"))}getControlsTime(t){const n=t==="once"?this.state.once:this.state.specific;return p.createElement(to,{variant:"standard",sx:{...os.formControl,"&.MuiFormControl-root":os.formControlMarginRight}},p.createElement(st,{variant:"standard",key:"at",label:E.t("sc_time"),value:n.time,type:"time",sx:o=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:o.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:o=>{const r=JSON.parse(JSON.stringify(this.state[t]));r.time=o.target.value,t==="once"?this.setState({once:r},()=>this.recalcCron()):this.setState({specific:r},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const t=this.state.once;if(!t.date){const n=new Date;t.date=`${n.getDate()}.${Gr(n.getMonth()+1)}`}return p.createElement(to,{variant:"standard",style:os.formControl},p.createElement(st,{variant:"standard",key:"date",label:E.t("sc_date"),value:t.date,type:"text",slotProps:{htmlInput:{style:os.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.once));o.date=n.target.value,this.setState({once:o},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return p.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const t=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),p.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},p.createElement("h5",{style:{marginBottom:5}},E.t("sc_hours")),p.createElement(to,{variant:"standard",style:os.formControl},p.createElement(xf,{shrink:!0,htmlFor:"age-label-placeholder"},E.t("sc_from")),p.createElement(_n,{variant:"standard",style:{width:100},value:t.timeFrom,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.intervalBetween));o.timeFrom=parseInt(n.target.value,10),o.timeTo===24&&(o.timeTo=23),this.setState({intervalBetween:o},()=>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(n=>p.createElement(je,{key:`B_${n}`,value:n},`${Gr(n)}:00`)))),p.createElement(to,{variant:"standard",style:os.formControl},p.createElement(xf,{shrink:!0,htmlFor:"age-label-placeholder"},E.t("sc_to")),p.createElement(_n,{variant:"standard",style:{width:100},value:t.timeTo,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.intervalBetween));o.timeTo=parseInt(n.target.value,10),this.setState({intervalBetween:o},()=>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(n=>p.createElement(je,{key:`A_${n}`,value:n},`${Gr(n)}:00`)),!t.timeFrom&&p.createElement(je,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[p.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(t){t!==this.state.mode&&this.setState({mode:t},()=>this.recalcCron())}onChange(t){t!==this.state.cron&&(this.setState({cron:t}),this.props.onChange&&this.props.onChange(t))}render(){return p.createElement("div",{style:os.mainDiv},p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},p.createElement(st,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),p.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?E.t("sc_invalid_cron"):TA(this.state.cron,this.props.language||"en")),p.createElement("div",null,p.createElement(to,{variant:"standard",style:{...os.formControl,marginLeft:8,marginTop:8}},p.createElement(xf,null,E.t("ra_Repeat")),p.createElement(_n,{variant:"standard",value:this.state.mode,onChange:t=>this.onModeChange(t.target.value),inputProps:{name:"mode",id:"mode"}},p.createElement(je,{value:"once"},E.t("sc_once")),p.createElement(je,{value:"interval"},E.t("sc_interval")),p.createElement(je,{value:"intervalBetween"},E.t("sc_intervalBetween")),p.createElement(je,{value:"specific"},E.t("sc_specific"))))),this.state.mode===hlt.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const mlt={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class gkt extends p.Component{constructor(t){super(t);let n;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?n=this.props.cron.replace(/['"]/g,"").trim():(n=this.props.cron||"{}",typeof n=="string"&&(n=n.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:n}}handleCancel(){this.props.onClose()}handleOk(t){if(!t){const n=ws.cron2state(this.state.cron);if(n.seconds==="*"||n.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(n.minutes==="*"||n.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?p.createElement(p3,{title:E.t("ra_Please confirm"),text:E.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:t=>this.setState({showWarning:""},()=>{t&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return p.createElement(yt,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":mlt.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),p.createElement(bt,{id:"cron-dialog-title"},this.props.title||E.t("ra_Define schedule...")),p.createElement(jt,{style:{height:"100%",overflow:"hidden"}},p.createElement(ws,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()})),p.createElement(Nt,null,!!this.props.clearButton&&p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:p.createElement(Ns,null)},this.props.clear||E.t("ra_Clear")),p.createElement(he,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:p.createElement(qn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}const glt={dialogPaper:{height:"calc(100% - 96px)"}};class _kt extends p.Component{constructor(t){super(t);let n;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?n=this.props.cron.replace(/['"]/g,"").trim():(n=this.props.cron||"{}",typeof n=="string"&&(n=n.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:n,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof n=="object"||n[0]==="{")&&!this.props.noWizard?"wizard":_M(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(t){this.setState({mode:t})}render(){return p.createElement(yt,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":glt.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},p.createElement(bt,{id:"cron-dialog-title"},this.props.title||E.t("ra_Define schedule...")),p.createElement(jt,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?p.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&p.createElement(p.Fragment,null,p.createElement(It,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),p.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},E.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&p.createElement(p.Fragment,null,p.createElement(It,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),p.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},E.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&p.createElement(p.Fragment,null,p.createElement(It,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),p.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},E.t("sc_cron")))):null,this.state.mode==="simple"&&p.createElement(gp,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()}),this.state.mode==="wizard"&&p.createElement(An,{theme:this.props.theme,schedule:this.state.cron,onChange:t=>this.setState({cron:t})}),this.state.mode==="complex"&&p.createElement(ws,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()})),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:p.createElement(qn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(he,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}class Yp extends C.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return p.createElement(yt,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"ar_dialog_message_title","aria-describedby":"ar_dialog_message_description"},p.createElement(bt,{id:"ar_dialog_message_title"},this.props.title||E.t("ra_Message")),p.createElement(jt,null,p.createElement(Ra,{id:"ar_dialog_message_description"},p.createElement("span",{style:{marginRight:this.props.icon?8:0}},this.props.icon||null),this.props.text)),p.createElement(Nt,null,p.createElement(he,{id:"ar_dialog_message_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:p.createElement(Dt,null)},this.props.ok||E.t("ra_Close"))))}}const oi={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 vkt extends p.Component{constructor(n){super(n);F(this,"dialogName");F(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const o=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(o)}catch{this.filters={}}n.filters&&(this.filters={...this.filters,...n.filters});let r=this.props.selected||[];typeof r!="object"?r=[r]:r=[...r],r=r.filter(a=>a),this.state={selected:r}}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 n;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:oi.headerID},this.state.selected)]:n=[p.createElement("span",{key:"selected"},E.t("ra_Selected")," "),p.createElement("span",{key:"id",style:oi.headerID},E.t("%s items",this.state.selected.length))]:n=this.props.title||E.t("ra_Please select file..."),p.createElement(yt,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...oi.dialog,...oi.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},p.createElement(bt,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":oi.titleRoot}},n),p.createElement(jt,{style:{...oi.content,...oi.contentMobile}},p.createElement(nit,{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:(o,r,a)=>{this.setState({selected:Array.isArray(o)?o:[o]},()=>r&&(!this.props.selectOnlyFolders||a)&&this.handleOk())},t:this.props.t||E.t,lang:this.props.lang||E.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})),p.createElement(Nt,null,p.createElement(he,{variant:"contained",onClick:()=>this.handleOk(),startIcon:p.createElement(qn,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||E.t("ra_Ok")),p.createElement(he,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}const _lt={dialogPaper:{height:"calc(100% - 96px)"}};class ykt extends p.Component{constructor(t){super(t);let n;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?n=this.props.cron.replace(/['"]/g,"").trim():(n=this.props.cron||"{}",typeof n=="string"&&(n=n.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:n}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return p.createElement(yt,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":_lt.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},p.createElement(bt,{id:"cron-dialog-title"},this.props.title||E.t("ra_Define CRON...")),p.createElement(jt,{style:{height:"100%",overflow:"hidden"}},p.createElement(gp,{cronExpression:this.state.cron,onChange:t=>this.setState({cron:t}),language:E.getLanguage()})),p.createElement(Nt,null,p.createElement(he,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:p.createElement(qn,null)},this.props.ok||E.t("ra_Ok")),p.createElement(he,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:p.createElement(Pp,null)},this.props.cancel||E.t("ra_Cancel"))))}}var vM={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},UE=p.createContext&&p.createContext(vM),vlt=["attr","size","title"];function ylt(e,t){if(e==null)return{};var n=blt(e,t),o,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function blt(e,t){if(e==null)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(t.tag,Wm({key:n},t.attr),yM(t.child)))}function Ye(e){return t=>p.createElement(Clt,Um({attr:Wm({},e.attr)},t),yM(e.child))}function Clt(e){var t=n=>{var{attr:o,size:r,title:a}=e,s=ylt(e,vlt),i=r||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),p.createElement("svg",Um({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:l,style:Wm(Wm({color:e.color||n.color},n.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&p.createElement("title",null,a),e.children)};return UE!==void 0?p.createElement(UE.Consumer,null,n=>t(n)):t(vM)}function js(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(e)}function $lt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"},child:[]}]})(e)}function O_(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"},child:[]}]})(e)}function Pi(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function D_(e){return Ye({tag:"svg",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:[]}]})(e)}function Gc(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"},child:[]}]})(e)}function qc(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"},child:[]}]})(e)}function klt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 19V3H4v16H2v2h20v-2h-2zM16 9h2v2h-2V9zm-2 2H6V9h8v2zm4-4h-2V5h2v2zm-4-2v2H6V5h8zM6 19v-6h8v1.82A1.746 1.746 0 0 0 15 18a1.746 1.746 0 0 0 1-3.18V13h2v6H6z"},child:[]}]})(e)}function A_(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(e)}function bM(e){return Ye({tag:"svg",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:[]}]})(e)}function Bi(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 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.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function Elt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.76 16.24C6.67 15.16 6 13.66 6 12s.67-3.16 1.76-4.24l1.42 1.42C8.45 9.9 8 10.9 8 12c0 1.1.45 2.1 1.17 2.83l-1.41 1.41zm8.48 0C17.33 15.16 18 13.66 18 12s-.67-3.16-1.76-4.24l-1.42 1.42C15.55 9.9 16 10.9 16 12c0 1.1-.45 2.1-1.17 2.83l1.41 1.41zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 2c0 2.21-.9 4.21-2.35 5.65l1.42 1.42C20.88 17.26 22 14.76 22 12s-1.12-5.26-2.93-7.07l-1.42 1.42A7.94 7.94 0 0 1 20 12zM6.35 6.35 4.93 4.93C3.12 6.74 2 9.24 2 12s1.12 5.26 2.93 7.07l1.42-1.42C4.9 16.21 4 14.21 4 12s.9-4.21 2.35-5.65z"},child:[]}]})(e)}function Tlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4zm-4-8c0-.55.45-1 1-1s1 .45 1 1h-1v1h1v2h-1v1h1v2h-2V5z"},child:[]}]})(e)}const Jn={tab:{width:"100%",minHeight:"100%"},input:{minWidth:300},button:{marginRight:20,marginBottom:40},card:{maxWidth:345,textAlign:"center"},media:{height:180},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnLogo:{width:350,marginRight:0},columnSettings:{width:"calc(100% - 370px)"},cannotUse:{color:"red",fontWeight:"bold"},hintUnsaved:{fontSize:12,color:"red",fontStyle:"italic"}};let wM=class SM extends C.Component{constructor(n){super(n);F(this,"onAliveChanged",(n,o)=>{n===`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`&&this.setState({isInstanceAlive:o&&o.val})});this.state={inAction:!1,toast:"",isInstanceAlive:!1},this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>this.setState({isInstanceAlive:o&&o.val}))}componentDidMount(){this.props.socket.subscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged)}componentWillUnmount(){this.props.socket.unsubscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged)}static checkPassword(n){return n=(n||"").toString(),n.length<8||!n.match(/[a-z]/)||!n.match(/[A-Z]/)||!n.match(/\d/)?E.t("invalid_password_warning"):!1}renderInput(n,o,r,a){const s=o==="pass"&&SM.checkPassword(this.props.native[o]);return m.jsx(st,{variant:"standard",label:E.t(n),error:!!s,autoComplete:a||"",style:Jn.input,value:this.props.native[o],type:r||"text",helperText:s||"",onChange:i=>this.props.onChange(o,i.target.value),margin:"normal"})}renderCard(){return m.jsxs(AL,{style:Jn.card,children:[m.jsxs(RL,{children:[m.jsx(YL,{style:Jn.media,image:"alexalogo.png",title:"Alexa logo"}),m.jsx(WL,{children:V.renderTextWithA(E.t("amazon link"))})]}),m.jsxs(PL,{style:{textAlign:"center"},children:[m.jsx(he,{variant:"outlined",size:"small",color:"primary",style:{textAlign:"center"},onClick:()=>{window.open("https://alexa.amazon.de/spa/index.html#skills/dp/B07L66BFF9/reviews","_blank").focus()},children:E.t("Review")}),this.props.native.amazonAlexa?m.jsx(he,{color:"grey",title:"Debug",onClick:()=>this.onDebug(),style:{opacity:this.state.debugVisible?1:0},onMouseEnter:()=>this.setState({debugVisible:!0}),onMouseLeave:()=>this.setState({debugVisible:!1}),children:E.t("Debug")}):null]})]})}onDebug(){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"debug",null).then(n=>{const o=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(o,"debug.json");else{const r=document.createElement("a"),a=URL.createObjectURL(o);r.href=a,r.download="debug.json",document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),window.URL.revokeObjectURL(a)},0)}})}async resetCerts(n){this.setState({inAction:!0});const o={inAction:!1};try{const r=`iot.${this.props.instance}.certs.`;await this.props.socket.setState(`${r}private`,{val:"",ack:!0}),await this.props.socket.setState(`${r}id`,{val:"",ack:!0}),await this.props.socket.setState(`${r}public`,{val:"",ack:!0}),await this.props.socket.setState(`${r}certificate`,{val:"",ack:!0}),n&&await this.props.socket.setState(`${r}forceUserCreate`,{val:!0,ack:!0});const a=await this.props.socket.getObject(`system.adapter.iot.${this.props.instance}`);a&&a.common&&a.common.enabled&&await this.props.socket.setObject(a._id,a),o.toast=E.t("Certificates will be updated after start")}catch(r){this.props.onError(r)}this.setState(o)}renderToast(){return this.state.toast?m.jsx(lp,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:m.jsx("span",{id:"message-id",children:this.state.toast}),action:[m.jsx(ue,{"aria-label":"Close",color:"inherit",style:Jn.close,onClick:()=>this.setState({toast:""}),children:m.jsx(bM,{})},"close")]}):null}renderCheckbox(n,o,r){return m.jsx(Oe,{style:{...Jn.controlElement,paddingTop:5,...r},control:m.jsx(Tt,{checked:this.props.native[o],onChange:()=>this.props.onChange(o,!this.props.native[o]),color:"primary"}),label:E.t(n)},o)}render(){return m.jsxs("form",{style:Jn.tab,children:[m.jsx(mS,{instance:this.props.instance,common:this.props.common,native:this.props.native,onError:n=>window.alert(n),onLoad:this.props.onLoad}),m.jsxs("div",{style:{...Jn.column,...Jn.columnSettings},children:[this.renderInput("ioBroker.pro Login","login",null,"username"),m.jsx("br",{}),this.renderInput("ioBroker.pro Password","pass","password","current-password"),m.jsx("br",{}),this.renderCheckbox("Amazon Alexa","amazonAlexa"),this.renderCheckbox("Amazon AlexaV3 (Beta)","amazonAlexaV3"),m.jsx(Oe,{style:{...Jn.controlElement,marginTop:5},control:m.jsx(Tt,{checked:this.props.native.googleHome,onChange:()=>{const n=!this.props.native.googleHome;this.props.onChange("googleHome",n,()=>n&&this.props.onChange("amazonAlexa",!0))},color:"primary"}),label:E.t("Google Home")},"googleHome"),this.renderCheckbox("Yandex Алиса","yandexAlisa"),m.jsx("br",{}),m.jsx("p",{children:E.t("new_certs_tip")}),this.props.changed?m.jsx("div",{style:Jn.hintUnsaved,children:E.t("Save settings before pressing this button")}):null,m.jsx(he,{variant:"outlined",style:Jn.button,disabled:this.props.changed||this.state.inAction||!this.state.isInstanceAlive,title:this.state.isInstanceAlive?"":E.t("Instance must be enabled"),onClick:()=>this.resetCerts(),startIcon:m.jsx(Bi,{}),color:"grey",children:E.t("Get new connection certificates")}),m.jsx("p",{children:E.t("new_credentials_tip")}),this.props.changed?m.jsx("div",{style:Jn.hintUnsaved,children:E.t("Save settings before pressing this button")}):null,m.jsx(he,{variant:"outlined",color:"grey",style:Jn.button,disabled:this.props.changed||this.state.inAction||!this.state.isInstanceAlive,title:this.state.isInstanceAlive?"":E.t("Instance must be enabled"),onClick:()=>this.resetCerts(!0),startIcon:m.jsx(Bi,{}),children:E.t("Create IoT credentials anew")}),m.jsx("p",{children:V.renderTextWithA(E.t("forum_tip"))}),m.jsx("p",{style:{fontWeight:"bold"},children:V.renderTextWithA(E.t("help_tip"))}),m.jsx("p",{style:{fontWeight:"bold",paddingTop:20},children:V.renderTextWithA(E.t("help_link_tip1"))}),m.jsx("p",{style:{fontWeight:"bold"},children:V.renderTextWithA(E.t("help_link_tip2"))}),m.jsx("p",{style:{fontWeight:"bold",color:"red"},children:V.renderTextWithA(E.t("help_link_tip3"))})]}),m.jsx("div",{style:{...Jn.column,...Jn.columnLogo},children:this.renderCard()}),this.renderToast()]})}};wM.propTypes={common:L.object.isRequired,native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,onLoad:L.func,onChange:L.func,changed:L.bool,socket:L.object.isRequired};const vr={tab:{display:"flex",flexDirection:"column",gap:8},input:{marginTop:0,minWidth:300,maxWidth:500},button:{marginRight:20},card:{maxWidth:345,textAlign:"center"},media:{height:180},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnLogo:{width:350,marginRight:0},columnSettings:{width:"calc(100% - 370px)"},controlElement:{marginBottom:5}};class xM extends C.Component{constructor(t){super(t),this.state={showSelectId:!1,adminInstances:[],webInstances:[]}}componentDidMount(){this.props.socket.getAdapterInstances("admin").then(t=>(t=t.filter(n=>!n.common.auth).map(n=>({title:`${n.common.name}.${n._id.split(".").pop()}`,value:`${n.common.name}.${n._id.split(".").pop()}`,noTranslation:!0})),t.unshift({title:"disabled",value:""}),this.props.socket.getAdapterInstances("web").then(n=>{n=n.filter(o=>!o.common.auth).map(o=>({title:`${o.common.name}.${o._id.split(".").pop()}`,value:`${o.common.name}.${o._id.split(".").pop()}`,noTranslation:!0})),n.unshift({title:"disabled",value:""}),this.setState({adminInstances:t,webInstances:n})})))}renderInput(t,n,o,r,a){return m.jsx(st,{variant:"standard",label:E.t(t),disabled:r,style:{...vr.input,...vr.controlElement},value:this.props.native[n],type:o||"text",helperText:a?E.t(a):"",onChange:s=>this.props.onChange(n,s.target.value),margin:"normal"})}renderSelect(t,n,o,r){return m.jsxs(to,{style:{...vr.input,...vr.controlElement,paddingTop:5,paddingRight:8,...r},variant:"standard",children:[m.jsx(_n,{variant:"standard",value:this.props.native[n]||"_",onChange:a=>this.props.onChange(n,a.target.value==="_"?"":a.target.value),input:m.jsx(Qn,{name:n,id:`${n}-helper`}),children:o.map(a=>m.jsx(je,{value:a.value||"_",children:a.noTranslation?a.title:E.t(a.title)},`key-${a.value}`))}),m.jsx(Er,{children:E.t(t)})]})}renderCheckbox(t,n,o){return m.jsx(Oe,{style:{...vr.controlElement,paddingTop:5,...o},control:m.jsx(Tt,{checked:this.props.native[n],onChange:()=>this.props.onChange(n,!this.props.native[n]),color:"primary"}),label:E.t(t)},n)}getSelectIdDialog(t){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:this.props.native[t],types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:n=>{this.setState({showSelectId:!1}),this.props.onChange(t,n)}},"dialogSelectID2"):null}render(){return m.jsxs("form",{style:vr.tab,children:[this.renderSelect("Language","language",[{title:"default",value:""},{title:"english",value:"en",noTranslation:!0},{title:"Deutsch",value:"de",noTranslation:!0},{title:"русский",value:"ru",noTranslation:!0}]),this.renderCheckbox("Place function in names first","functionFirst"),this.renderInput("Concatenate words with","concatWord"),this.props.native.amazonAlexaV3?m.jsxs(to,{style:{...vr.input,...vr.controlElement,paddingTop:5,paddingRight:8},variant:"standard",children:[m.jsxs(_n,{variant:"standard",value:this.props.native.defaultToggle||!1,onChange:t=>this.props.onChange("defaultToggle",t.target.value),children:[m.jsx(je,{value:!1,children:E.t("Do not toggle")}),m.jsx(je,{value:!0,children:E.t("Toggle")})]}),m.jsx(Er,{children:E.t("Default toggle behaviour (Only alexa v3)")})]}):null,this.renderInput("OFF level for switches in %","deviceOffLevel",null,!1,"(Set to 0 if behavior not desired)"),m.jsxs("div",{style:vr.controlElement,children:[this.renderInput("Write response to","responseOID"),m.jsx(Mt,{size:"small",color:"secondary",onClick:()=>this.setState({showSelectId:!0}),"aria-label":"Add",style:{marginLeft:5,marginTop:10},children:m.jsx(Pi,{})})]}),m.jsxs("div",{style:vr.controlElement,children:[this.renderCheckbox("Personal settings (only pro)","noCommon"),m.jsx(Er,{children:V.renderTextWithA(E.t("help_tip"))})]}),this.renderCheckbox("Debug outputs","debug"),m.jsxs("div",{style:vr.controlElement,children:[this.renderCheckbox("Allow remote access","remote"),this.props.native.remote?this.renderSelect("Admin instance","remoteAdminInstance",this.state.adminInstances,{width:120,minWidth:120}):null,this.props.native.remote?this.renderSelect("Web instance","remoteWebInstance",this.state.webInstances,{width:120,minWidth:120}):null]}),this.getSelectIdDialog("responseOID")]})}}xM.propTypes={native:L.object.isRequired,onChange:L.func,socket:L.object.isRequired,theme:L.object};const $t={tab:{width:"100%",minHeight:"100%"},input:{marginTop:0,minWidth:400},fullSize:{width:"calc(100% - 64px)"},normalSize:{width:"calc(30% - 64px)",marginLeft:10},button:{marginRight:20},card:{maxWidth:345,textAlign:"center"},media:{height:180},column:{display:"inline-block",verticalAlign:"top",marginRight:20},columnLogo:{width:350,marginRight:0},columnSettings:{width:"calc(100% - 370px)"},controlElement:{marginBottom:5},chips:{border:"1px solid #DDD",borderRadius:1,width:"calc(100% - 250px)",display:"inline-block",padding:5,minHeight:32,marginLeft:10,marginTop:20},chip:{marginRight:5}};class CM extends C.Component{constructor(t){super(t),this.state={running:!1,toast:"",showSelectId:!1,text2commandList:[],nightscoutList:[],addValue:"",isInstanceAlive:!1},this.onKeyChangedBound=this.onKeyChanged.bind(this),this.props.socket.getAdapterInstances("text2command").then(n=>this.props.socket.getAdapterInstances("nightscout").then(o=>this.setState({nightscoutList:o.map(r=>r._id.replace("system.adapter.nightscout.","")),text2commandList:n.map(r=>r._id.replace("system.adapter.text2command.",""))})))}componentDidMount(){this.props.socket.subscribeState(`iot.${this.props.instance}.certs.urlKey`,this.onKeyChangedBound),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(t=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(n=>this.setState({isInstanceAlive:t&&t.common&&n&&n.val})))}componentWillUnmount(){this.props.socket.unsubscribeState(`iot.${this.props.instance}.certs.urlKey`,this.onKeyChangedBound)}onKeyChanged(t,n){n&&this.setState({key:n.val})}renderInput(t,n,o){return m.jsx(st,{variant:"standard",label:E.t(t),style:{...$t.input,...$t.controlElement},value:this.props.native[n],type:o||"text",onChange:r=>this.props.onChange(n,r.target.value),margin:"normal"})}reissueUrlKey(){return this.setState({running:!0}),this.props.socket.setState(`iot.${this.props.instance}.certs.urlKey`,{val:"",ack:!0}).then(()=>this.props.socket.getObject(`system.adapter.iot.${this.props.instance}`)).then(t=>{!t||!t.common||!t.common.enabled?this.setState({running:!1,toast:E.t("Key will be updated after start")}):this.props.socket.setObject(`system.adapter.iot.${this.props.instance}`,t)}).then(()=>this.setState({running:!1,toast:E.t("Certificates will be updated after initiated restart")})).catch(t=>{this.setState({running:!1}),this.props.showError(t)})}renderToast(){return this.state.toast?m.jsx(lp,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:m.jsx("span",{id:"message-id",children:this.state.toast}),action:[m.jsx(ue,{"aria-label":"Close",color:"inherit",style:$t.close,onClick:()=>this.setState({toast:""}),children:m.jsx(bM,{})},"close")]}):null}onChipsDelete(t,n){const o=(this.props.native[t]||"").split(/[,;\s]/).filter(a=>!!a),r=o.indexOf(n);r!==-1&&(o.splice(r,1),this.props.onChange(t,o.join(" ")))}onChipsAdd(t){const n=(this.props.native[t]||"").split(/[,;\s]/).filter(o=>!!o);this.state.addValue==="visu"?(this.props.onError(E.t("This service is reserved for the ioBroker.visu app. Please use another service name.")),this.setState({addValue:""})):!n.includes(this.state.addValue)&&this.state.addValue&&(n.push(this.state.addValue),this.setState({addValue:""},()=>this.props.onChange(t,n.join(" "))))}calcNightscoutSecret(){const t=this.props.native.login.replace(/[^\w\d-_]/g,"_"),n=this.props.native.nightscoutPass;return t+(n?`-${n}`:"")}getSelectIdDialog(t){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:this.props.native[t],types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:n=>{this.setState({showSelectId:!1}),this.props.onChange(t,n)}},"dialogSelectID3"):null}renderChips(t,n){return m.jsxs("div",{style:$t.chipsDiv,children:[m.jsx(Er,{children:V.renderTextWithA(E.t(t))}),m.jsx(st,{variant:"standard",label:E.t("Add service"),style:{width:150},type:"text",value:this.state.addValue,onKeyUp:o=>o.key==="Enter"&&this.onChipsAdd(n),onChange:o=>this.setState({addValue:o.target.value.trim()}),margin:"normal"}),m.jsx(Mt,{size:"small",color:"secondary",disabled:!this.state.addValue,onClick:()=>this.onChipsAdd(n),style:{marginLeft:5,marginTop:-15},children:m.jsx(Pi,{})}),m.jsx("div",{style:$t.chips,children:(this.props.native[n]||"").split(/[,;\s]/).filter(o=>!!o).map(o=>m.jsx(P7,{size:"small",label:o,onDelete:()=>this.onChipsDelete(n,o),style:$t.chip},o))})]})}render(){return m.jsxs("form",{style:$t.tab,children:[m.jsx(he,{variant:"outlined",disabled:!this.state.isInstanceAlive||this.state.running,color:"primary",title:this.state.isInstanceAlive?"":E.t("Instance must be enabled"),onClick:()=>this.reissueUrlKey(),startIcon:m.jsx(Bi,{}),children:E.t("Get new service URL key")}),m.jsx("br",{}),this.renderInput("IFTTT key","iftttKey"),m.jsx("br",{}),m.jsx(st,{variant:"standard",label:E.t("Use following link for IFTTT"),style:{...$t.input,...$t.controlElement,...$t.fullSize,marginTop:10},value:`https://service.iobroker.in/v1/iotService?service=ifttt&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}`,type:"text",slotProps:{htmlInput:{readOnly:!0}},margin:"normal"}),m.jsx(Mt,{size:"small",style:{marginTop:10,marginLeft:5},onClick:()=>V.copyToClipboard(`https://service.iobroker.in/v1/iotService?service=ifttt&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}`),children:m.jsx(ps,{})}),m.jsx("br",{}),m.jsx("br",{}),this.renderChips("White list for services","allowedServices"),m.jsx("br",{}),m.jsx(st,{variant:"standard",label:E.t("Use following link for custom service"),style:{...$t.input,...$t.controlElement,...$t.fullSize,marginTop:10},value:`https://service.iobroker.in/v1/iotService?service=custom_&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}&data=`,type:"text",slotProps:{htmlInput:{readOnly:!0}},margin:"normal"}),m.jsx(Mt,{size:"small",style:{marginTop:10,marginLeft:5},onClick:()=>V.copyToClipboard(`https://service.iobroker.in/v1/iotService?service=custom_&key=${this.state.key}&user=${encodeURIComponent(this.props.native.login)}&data=`),children:m.jsx(ps,{})}),m.jsx("br",{}),m.jsxs(to,{style:{...$t.input,...$t.controlElement,paddingTop:20},variant:"standard",children:[m.jsxs(_n,{variant:"standard",value:this.props.native.text2command||"_",onChange:t=>this.props.onChange("text2command",t.target.value==="_"?"":t.target.value),input:m.jsx(Qn,{name:"text2command",id:"text2command-helper"}),children:[m.jsx(je,{value:"_",children:E.t("disabled")},"key-default"),this.state.text2commandList.map(t=>m.jsxs(je,{value:t,children:["text2command.",t]},`key-${t}`))]}),m.jsx(Er,{children:E.t("Use text2command instance")})]}),m.jsx("br",{}),m.jsxs(to,{style:{...$t.input,...$t.controlElement,paddingTop:20},variant:"standard",children:[m.jsxs(_n,{variant:"standard",value:this.props.native.nightscout||"_",onChange:t=>this.props.onChange("nightscout",t.target.value==="_"?"":t.target.value),input:m.jsx(Qn,{name:"nightscout",id:"nightscout-helper"}),children:[m.jsx(je,{value:"_",children:E.t("disabled")},"key-default"),this.state.nightscoutList.map(t=>m.jsxs(je,{value:t,children:["nightscout.",t]},`key-${t}`))]}),m.jsx(Er,{children:E.t("Use Nightscout instance")})]}),this.props.native.nightscout?m.jsx(st,{variant:"standard",label:E.t("Nightscout password"),onChange:t=>this.props.onChange("nightscoutPass",t.target.value.replace(/[^\w\d-_]/g,"_")),style:{...$t.input,...$t.controlElement,...$t.normalSize,marginTop:3.5},value:this.props.native.nightscoutPass,type:"text",margin:"normal"}):null,this.props.native.nightscout?m.jsx(st,{variant:"standard",label:E.t("Nightscout api-secret"),style:{...$t.input,...$t.controlElement,...$t.normalSize,marginTop:3.5},value:this.calcNightscoutSecret(),type:"text",slotProps:{htmlInput:{readOnly:!0}},margin:"normal"}):null,m.jsx("br",{}),m.jsx("br",{}),m.jsxs("div",{style:$t.controlElement,children:[m.jsx(st,{variant:"standard",label:E.t("Read blood sugar from"),style:{...$t.input,...$t.controlElement},value:this.props.native.amazonAlexaBlood||"",type:"text",onChange:t=>this.props.onChange("amazonAlexaBlood",t.target.value),margin:"normal"}),m.jsx(Mt,{size:"small",color:"secondary",onClick:()=>this.setState({showSelectId:!0}),"aria-label":"Add",style:{marginLeft:5,marginTop:10},children:m.jsx(Pi,{})}),m.jsx(Oe,{style:$t.controlElement,control:m.jsx(Tt,{style:{paddingLeft:30},checked:this.props.native.amazonAlexaBloodShortAnswer||!1,onChange:t=>this.props.onChange("amazonAlexaBloodShortAnswer",t.target.checked),color:"primary"}),label:E.t("Short answer for blood sugar")})]}),m.jsx("br",{}),this.renderToast(),this.getSelectIdDialog("amazonAlexaBlood")]})}}CM.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,onChange:L.func,socket:L.object.isRequired,theme:L.object};const Olt="#e7000040",So={tab:{width:"100%",height:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:10,height:"100%",overflow:"hidden",width:"calc(50% - 20px)",minWidth:300,maxWidth:450},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},enumLineEnabled:{},enumLineEdit:{},enumLineName:{},enumLineSubName:{fontStyle:"italic"},enumLine:{height:48,width:"100%",position:"relative",display:"flex",alignItems:"center"},enumLineId:{display:"block",fontStyle:"italic",fontSize:12},columnHeader:e=>({background:e.palette.primary.light,padding:"10px",color:e.palette.primary.contrastText,marginTop:0,marginBottom:0})};class $M extends C.Component{constructor(t){super(t),this.state={inAction:!1,editId:"",editedSmartName:"",funcs:[],rooms:[],changed:[],message:"",loading:!0},this.onEnumUpdateBound=this.onEnumUpdate.bind(this),this.props.socket.getEnums().then(n=>{const o=[],r=[];return n&&Object.keys(n).forEach(a=>{a.match(/^enum\.rooms\./)?r.push(n[a]):a.match(/^enum\.functions\./)&&o.push(n[a])}),this.setState({funcs:o,rooms:r,loading:!1}),this.props.socket.subscribeObject("enum.*",this.onEnumUpdateBound)})}componentWillUnmount(){this.props.socket.unsubscribeObject("enum.*",this.onEnumUpdateBound).then(()=>{})}onEnumUpdate(t,n){this.removeChanged(t),this.updateObjInState(t,n)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t){const n=JSON.parse(JSON.stringify(this.state.changed));n.includes(t)||(n.push(t),this.setState({changed:n}))}removeChanged(t){const n=JSON.parse(JSON.stringify(this.state.changed)),o=n.indexOf(t);o!==-1&&(n.splice(o,1),this.setState({changed:n}))}updateObjInState(t,n){if(t.match(/^enum\.functions\./)){for(let o=this.state.funcs.length-1;o>=0;o--)if(this.state.funcs[o]._id===t){const r=JSON.parse(JSON.stringify(this.state.funcs));n?r[o]=n:r.splice(o,1),this.setState({funcs:r});break}}else if(t.match(/^enum\.rooms\./)){for(let o=this.state.rooms.length-1;o>=0;o--)if(this.state.rooms[o]._id===t){const r=JSON.parse(JSON.stringify(this.state.rooms));n?r[o]=n:r.splice(o,1),this.setState({rooms:r});break}}}onToggleEnum(t){let n=this.state.funcs.find(r=>r._id===t)||this.state.rooms.find(r=>r._id===t);const o=V.getSmartNameFromObj(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);n=JSON.parse(JSON.stringify(n)),o!==!1?V.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon):V.removeSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(t),this.props.socket.setObject(t,n).then(()=>{this.updateObjInState(t,n),this.informInstance(t),setTimeout(()=>this.removeChanged(t),500)})}onEdit(t){const n=this.state.funcs.find(r=>r._id===t)||this.state.rooms.find(r=>r._id===t);let o=V.getSmartNameFromObj(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);typeof o=="object"&&o&&(o=o[E.getLanguage()]||o.en),o=o||V.getObjectNameFromObj(n,null,{language:E.getLanguage()}),this.setState({editId:t,editedSmartName:o})}renderEnum(t){let n=V.getSmartNameFromObj(t,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);n&&typeof n=="object"&&(n=n[E.getLanguage()]||n.en||"");const o=V.getObjectNameFromObj(t,null,{language:E.getLanguage()});return m.jsxs("div",{style:{...So.enumLine,background:this.state.changed.indexOf(t._id)!==-1?Olt:"inherit"},children:[m.jsxs("div",{style:{marginLeft:8},children:[m.jsxs("span",{style:{...So.enumLineName,opacity:n===!1?.5:1},children:[n||null,n?m.jsxs("span",{style:So.enumLineSubName,children:[" (",o,")"]}):o]}),m.jsx("span",{style:{...So.enumLineId,opacity:n===!1?.5:1},children:t._id})]}),m.jsx("div",{style:{flex:1}}),m.jsx(ue,{"aria-label":"Edit",style:So.enumLineEdit,onClick:()=>this.onEdit(t._id),children:m.jsx(A_,{fontSize:"large"})}),m.jsx(tu,{style:So.enumLineEnabled,checked:n!==!1,onChange:()=>this.onToggleEnum(t._id)})]},t._id)}renderEnums(t){return this.state[t].map(n=>this.renderEnum(n))}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(){if((this.state.editId.startsWith("enum.functions.")?this.state.funcs:this.state.rooms).find(n=>this.state.editId!==n._id&&(this.state.editedSmartName===V.getObjectNameFromObj(n,null,{language:E.getLanguage()})||this.state.editedSmartName===V.getSmartNameFromObj(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon))))this.setState({message:E.t("Duplicate name")});else{this.addChanged(this.state.editId),setTimeout(()=>this.removeChanged(this.state.editId),500);const n=this.state.editId;this.setState({editId:""});let o;this.props.socket.getObject(n).then(r=>(V.updateSmartName(r,this.state.editedSmartName,void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),o=r,this.props.socket.setObject(n,r))).then(()=>{this.updateObjInState(n,o),this.informInstance(n)}).catch(r=>this.props.onError(r))}}renderEditDialog(){if(this.state.editId){const t=this.state.funcs.find(n=>n._id===this.state.editId)||this.state.rooms.find(n=>n._id===this.state.editId);return m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({editId:""}),"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(bt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",V.getObjectNameFromObj(t,null,{language:E.getLanguage()}))}),m.jsx(jt,{children:m.jsx(st,{variant:"standard",autoFocus:!0,style:{width:"100%"},label:E.t("Smart name"),onChange:n=>this.setState({editedSmartName:n.target.value}),value:this.state.editedSmartName,helperText:E.t("You can enter several names divided by comma"),margin:"normal"})}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(qn,{}),children:E.t("Ok")}),m.jsx(he,{color:"grey",variant:"contained",onClick:()=>this.setState({editId:""}),startIcon:m.jsx(Dt,{}),children:E.t("Cancel")})]})]})}return null}render(){return this.state.loading?m.jsx(ro,{}):m.jsxs("form",{style:So.tab,children:[m.jsxs("div",{style:So.column,children:[m.jsx(ke,{component:"h5",sx:So.columnHeader,children:E.t("Rooms")}),m.jsx("div",{style:So.columnDiv,children:this.renderEnums("rooms")})]}),m.jsxs("div",{style:So.column,children:[m.jsx(ke,{component:"h5",sx:So.columnHeader,children:E.t("Functions")}),m.jsx("div",{style:So.columnDiv,children:this.renderEnums("funcs")})]}),this.renderMessage(),this.renderEditDialog()]})}}$M.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired};function Vm(e){return Ye({tag:"svg",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:[]}]})(e)}function Dlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},child:[]}]})(e)}function Gm(e){return Ye({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-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-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"},child:[]}]})(e)}function Sc(e){return Ye({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"},child:[]}]})(e)}function xc(e){return Ye({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"},child:[]}]})(e)}function Alt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"},child:[]}]})(e)}function kM(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},child:[]}]})(e)}function EM(e){return Ye({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"},child:[]}]})(e)}function k0(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}function Mlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M440.3 345.2l-33.8-19.5 26-7c8.2-2.2 13.1-10.7 10.9-18.9l-4-14.9c-2.2-8.2-10.7-13.1-18.9-10.9l-70.8 19-63.9-37 63.8-36.9 70.8 19c8.2 2.2 16.7-2.7 18.9-10.9l4-14.9c2.2-8.2-2.7-16.7-10.9-18.9l-26-7 33.8-19.5c7.4-4.3 9.9-13.7 5.7-21.1L430.4 119c-4.3-7.4-13.7-9.9-21.1-5.7l-33.8 19.5 7-26c2.2-8.2-2.7-16.7-10.9-18.9l-14.9-4c-8.2-2.2-16.7 2.7-18.9 10.9l-19 70.8-62.8 36.2v-77.5l53.7-53.7c6.2-6.2 6.2-16.4 0-22.6l-11.3-11.3c-6.2-6.2-16.4-6.2-22.6 0L256 56.4V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v40.4l-19.7-19.7c-6.2-6.2-16.4-6.2-22.6 0L138.3 48c-6.3 6.2-6.3 16.4 0 22.6l53.7 53.7v77.5l-62.8-36.2-19-70.8c-2.2-8.2-10.7-13.1-18.9-10.9l-14.9 4c-8.2 2.2-13.1 10.7-10.9 18.9l7 26-33.8-19.5c-7.4-4.3-16.8-1.7-21.1 5.7L2.1 145.7c-4.3 7.4-1.7 16.8 5.7 21.1l33.8 19.5-26 7c-8.3 2.2-13.2 10.7-11 19l4 14.9c2.2 8.2 10.7 13.1 18.9 10.9l70.8-19 63.8 36.9-63.8 36.9-70.8-19c-8.2-2.2-16.7 2.7-18.9 10.9l-4 14.9c-2.2 8.2 2.7 16.7 10.9 18.9l26 7-33.8 19.6c-7.4 4.3-9.9 13.7-5.7 21.1l15.5 26.8c4.3 7.4 13.7 9.9 21.1 5.7l33.8-19.5-7 26c-2.2 8.2 2.7 16.7 10.9 18.9l14.9 4c8.2 2.2 16.7-2.7 18.9-10.9l19-70.8 62.8-36.2v77.5l-53.7 53.7c-6.3 6.2-6.3 16.4 0 22.6l11.3 11.3c6.2 6.2 16.4 6.2 22.6 0l19.7-19.7V496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-40.4l19.7 19.7c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6L256 387.7v-77.5l62.8 36.2 19 70.8c2.2 8.2 10.7 13.1 18.9 10.9l14.9-4c8.2-2.2 13.1-10.7 10.9-18.9l-7-26 33.8 19.5c7.4 4.3 16.8 1.7 21.1-5.7l15.5-26.8c4.3-7.3 1.8-16.8-5.6-21z"},child:[]}]})(e)}function Nlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V304c0-8.8-7.2-16-16-16s-16 7.2-16 16v18.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"},child:[]}]})(e)}function TM(e){return Ye({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},child:[]}]})(e)}function zu(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"},child:[]}]})(e)}function jlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(e)}const Jh="#aba613",Yh="#444",Vd="#00c6ff",iy="#00bc00",Kh="#e7000040",Zh="#4f4f4f",Qh="#e9e9e9",ef="#5c8f65",tf="#b4ffbe",Fr={turnOn:{color:Jh,icon:k0,desc:"Turn on",v2:!0},turnOff:{color:Yh,icon:k0,desc:"Turn off",v2:!0},setTargetTemperature:{color:Vd,icon:TM,desc:"Set target temperature",v2:!0},incrementTargetTemperature:{color:Jh,icon:xc,desc:"Increment target temperature",v2:!0},decrementTargetTemperature:{color:Yh,icon:Sc,desc:"Decrement target temperature",v2:!0},setPercentage:{color:Vd,icon:EM,desc:"Set percentage",v2:!0},incrementPercentage:{color:Jh,icon:xc,desc:"Increment percentage",v2:!0},decrementPercentage:{color:Yh,icon:Sc,desc:"Decrement percentage",v2:!0},setColor:{color:Vd,icon:kM,desc:"Set color",v2:!0},setColorTemperature:{color:Vd,icon:Vm,desc:"Set color temperature",v2:!0},incrementColorTemperature:{color:Jh,icon:xc,desc:"Increment color temperature",v2:!0},decrementColorTemperature:{color:Yh,icon:Sc,desc:"Decrement color temperature",v2:!0},getTargetTemperature:{color:iy,icon:zu,desc:"Get target temperature",v2:!0},getTemperatureReading:{color:iy,icon:zu,desc:"Get actual temperature",v2:!0},setLockState:{color:Vd,icon:Gm,desc:"Set lock state",v2:!0},getLockState:{color:iy,icon:Gm,desc:"Read lock state",v2:!0}},nf=["LIGHT","SWITCH","THERMOSTAT","ACTIVITY_TRIGGER","SCENE_TRIGGER","SMARTPLUG","SMARTLOCK","CAMERA"],tt={tab:{width:"100%",height:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20,height:"100%",overflow:"hidden"},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},filter:{margin:0},button:{marginRight:20},devLineExpand:{marginRight:10},devLineEnabled:{position:"absolute",right:0,top:0},devLineEdit:{position:"absolute",top:5,right:50},devLineDelete:{position:"absolute",top:5,right:0},devLineName:{},devLineNumber:{display:"inline-block",verticalAlign:"middle",width:15},editedId:{fontStyle:"italic"},enumLineSubName:{fontStyle:"italic"},devLine:{height:48,width:"100%",position:"relative"},devLineDescription:{display:"block",fontStyle:"italic",fontSize:12},devLineActions:{fontStyle:"italic",fontSize:12,paddingLeft:50,display:"inline-block"},devLineProgress:{position:"absolute",top:0,left:0},channelLineActions:{width:80},devLineNameBlock:{display:"inline-block",width:"calc(100% - 350px)"},devModified:{fontStyle:"italic"},actionIcon:{width:16},devSubLine:{position:"relative",height:48},devSubLineName:{marginLeft:5,marginTop:14,display:"inline-block",fontSize:13,width:"calc(100% - 400px)"},devSubSubLineName:{fontSize:8,fontStyle:"italic",display:"block"},devSubLineByOn:{marginLeft:5},devSubLineDelete:{position:"absolute",top:12,right:12,padding:0},devSubLineEdit:{position:"absolute",top:12,right:62,padding:0},devSubLineTypeTitle:{marginTop:0},headerRow:e=>({pl:1,background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"100%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"100%"}};class vs extends C.Component{constructor(t){super(t),Fr.translated||(Object.keys(Fr).forEach(n=>Fr[n].desc=E.t(Fr[n].desc)),Fr.translated=!0),this.state={edit:null,deleteId:"",showListOfDevices:!1,showSelectId:!1,showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:[],lastChanged:""},this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.waitForUpdateID=null,this.onReadyUpdateBound=this.onReadyUpdate.bind(this),this.onResultUpdateBound=this.onResultUpdate.bind(this),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>{!n||!n.common||!n.common.enabled&&(!o||!o.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[]}):this.browse()}))}browse(t){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),t?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),console.log("Send BROWSE!"),this.browseTimer=setTimeout(()=>{console.log("Browse timeout!"),this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(t):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browse",null).then(n=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,n&&n.error?this.setState({message:E.t(n.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,n)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),console.log("BROWSE received."),this.setState({devices:n,loading:!1,changed:[],browse:!1}),n.length>300&&this.props.onError(E.t("Too many devices (%s) configured. Max number is 300",n.length)))}).catch(n=>this.setState({message:E.t("Error %s",n),browse:!1})))}onReadyUpdate(t,n){console.log(`Update ${t} ${n?`${n.val}/${n.ack}`:"null"}`),n&&n.ack===!0&&n.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},300))}onResultUpdate(t,n){n&&n.ack===!0&&n.val&&this.setState({message:n.val})}componentDidMount(){this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t,n){const o=JSON.parse(JSON.stringify(this.state.changed));o.includes(t)?n&&n():(o.push(t),this.setState({changed:o},()=>n&&n()))}onEdit(t,n){n=n||this.state.devices;const o=n.find(r=>r.additionalApplianceDetails.id===t);return o?(this.props.socket.getObject(t).then(r=>{let a=o.additionalApplianceDetails.friendlyNames?o.additionalApplianceDetails.friendlyNames:o.friendlyName;typeof a=="object"&&a&&(a=a[E.getLanguage()]||a.en);let s=null;o.additionalApplianceDetails.group||(s=o.additionalApplianceDetails.smartType),this.setState({edit:{id:t,type:s,name:a,objectName:V.getObjectNameFromObj(r,null,{language:E.getLanguage()}),originalName:a,originalType:s}})}),!0):!1}onAskDelete(t){this.setState({deleteId:t,showConfirmation:!0})}onDelete(){const t=this.state.deleteId;this.addChanged(t,()=>{this.props.socket.getObject(t).then(n=>(V.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(t,n))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(t)}).catch(n=>this.props.onError(n))})}static renderActions(t){const n=[];if(!t.actions)return console.log("Something went wrong"),null;t.actions.sort((o,r)=>o===r?0:o==="turnOn"?-1:r==="turnOn"?1:o==="turnOff"?-1:r==="turnOff"?1:0),Object.keys(Fr).forEach(o=>{if(t.actions.includes(o)){const r=Fr[o].icon;n.push(m.jsx("span",{title:Fr[o].desc,children:m.jsx(r,{style:{...tt.actionIcon,color:Fr[o].color}})},o))}});for(let o=0;othis.onParamsChange(o,s.target.value),children:a}),m.jsx(Er,{style:tt.devSubLineTypeTitle,children:E.t("by ON")})]})}return null}onParamsChange(t,n,o){this.addChanged(t,()=>{this.props.socket.getObject(t).then(r=>(V.updateSmartName(r,void 0,n,o,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.state.lastChanged!==t&&(this.setState({lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(t,r))).then(()=>{this.informInstance(t)}).catch(r=>this.props.onError(r))})}static renderSelectTypeSelector(t,n){if(t!==!1){const o=[m.jsx(je,{value:"_",children:m.jsx("em",{children:E.t("no type")})},"_")];for(let r=0;rn(r.target.value==="_"?"":r.target.value),children:o}),m.jsx(Er,{style:tt.devSubLineTypeTitle,children:E.t("Types")})]})}return""}renderSelectType(t,n,o,r){return vs.renderSelectTypeSelector(r,a=>this.onParamsChange(o,void 0,a))}renderChannels(t,n){const o=[];if(t.additionalApplianceDetails.group){const r=t.additionalApplianceDetails.channels,a=t.additionalApplianceDetails.names,s=t.additionalApplianceDetails.byONs,i=t.additionalApplianceDetails.smartTypes;let l=0;r&&Object.keys(r).forEach(d=>{for(let u=0;uthis.onAskDelete(c,n),children:m.jsx(js,{fontSize:"middle"})})]},`sub${c}`)),l++}})}else{const r=t.additionalApplianceDetails.id,a=t.additionalApplianceDetails.name||r;let s=this.state.changed.includes(r)?Kh:this.props.themeType==="dark"?Zh:Qh;this.state.lastChanged===r&&(s===Zh||s===Qh)&&(s=this.props.themeType==="dark"?ef:tf),o.push(m.jsxs("div",{style:{...tt.devSubLine,background:s},children:[m.jsx("div",{style:{...tt.devLineActions,...tt.channelLineActions,width:80},children:vs.renderActions(t)}),m.jsx("div",{style:tt.devSubLineName,title:r||"",children:a}),this.renderSelectType(t,n,r,t.additionalApplianceDetails.smartType),this.renderSelectByOn(t,n,r,t.additionalApplianceDetails.byON)]},`sub${r}`))}return o}renderDevice(t,n){var u;const o=t.friendlyName;let r;!t.additionalApplianceDetails.group&&t.additionalApplianceDetails.nameModified?r=o:r=m.jsx("span",{style:tt.devModified,title:E.t("modified"),children:o});let a=0;t.additionalApplianceDetails.channels&&Object.keys(t.additionalApplianceDetails.channels).forEach(c=>a+=t.additionalApplianceDetails.channels[c].length),a=a||1;const s=this.state.expanded.includes(o),i=(u=t.additionalApplianceDetails)==null?void 0:u.id;let l=n%2?this.props.themeType==="dark"?"#272727":"#f1f1f1":"inherit";const d=this.state.changed.includes(i);if(d?l=Kh:i===this.state.lastChanged&&(l=this.props.themeType==="dark"?ef:tf),t.additionalApplianceDetails.group&&!d&&i!==this.state.lastChanged){const c=t.additionalApplianceDetails.channels;try{c&&Object.keys(c).forEach(h=>h&&c[h].forEach(f=>{this.state.changed.includes(f.id)?l=Kh:this.state.lastChanged===f.id&&(l=this.props.themeType==="dark"?ef:tf)}))}catch(h){console.log(h)}}return[m.jsxs("div",{style:{...tt.devLine,background:l},children:[m.jsxs("div",{style:tt.devLineNumber,children:[n+1,"."]}),m.jsx(ue,{style:tt.devLineExpand,onClick:()=>this.onExpand(n),children:a>1?m.jsx(sp,{badgeContent:a,color:"primary",children:s?m.jsx(Gc,{}):m.jsx(qc,{})}):s?m.jsx(Gc,{}):m.jsx(qc,{})}),m.jsxs("div",{style:{...tt.devLineNameBlock,display:"inline-block",position:"relative"},children:[m.jsx("span",{style:tt.devLineName,children:r}),m.jsx("span",{style:tt.devLineDescription,children:t.friendlyDescription}),d?m.jsx(ro,{style:tt.devLineProgress,size:20}):null]}),m.jsx("span",{style:tt.devLineActions,children:vs.renderActions(t)}),t.additionalApplianceDetails.group?null:m.jsx(ue,{"aria-label":"Edit",style:tt.devLineEdit,onClick:()=>this.onEdit(i),children:m.jsx(A_,{fontSize:"middle"})}),t.additionalApplianceDetails.group?null:m.jsx(ue,{"aria-label":"Delete",style:tt.devLineDelete,onClick:()=>this.onAskDelete(i),children:m.jsx(js,{fontSize:"middle"})})]},`line${n}`),s?this.renderChannels(t,n):null]}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(t){t==null||t.preventDefault(),this.addChanged(this.state.edit.id,()=>{const n=this.state.edit.id,o=this.state.edit.type,r=this.state.edit.name.trim();this.setState({edit:null,lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.props.socket.getObject(n).then(a=>(V.updateSmartName(a,r,void 0,o===null?void 0:o,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(n,a))).then(()=>this.informInstance(n)).catch(a=>this.props.onError(a))})}renderEditDialog(){return this.state.edit?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({edit:null}),"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(bt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",this.state.edit.objectName)}),m.jsxs(jt,{children:[m.jsxs("p",{children:[m.jsx("span",{children:"ID:"})," ",m.jsx("span",{style:tt.editedId,children:this.state.edit.id})]}),m.jsx(st,{variant:"standard",style:{width:"100%"},label:E.t("Smart name"),autoFocus:!0,onKeyDown:t=>t.key==="Enter"&&this.changeSmartName(t),value:this.state.edit.name,onChange:t=>{const n=JSON.parse(JSON.stringify(this.state.edit));n.name=t.target.value,this.setState({edit:n})},helperText:E.t("You can enter several names divided by comma"),margin:"normal"}),this.state.edit.type!==null?vs.renderSelectTypeSelector(this.state.edit.type,t=>{const n=JSON.parse(JSON.stringify(this.state.edit));n.type=t,this.setState({edit:n})}):null]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",disabled:!this.state.edit.name||this.state.edit.originalName===this.state.edit.name&&(this.state.edit.type||null)===(this.state.edit.originalType||null),onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(qn,{}),children:E.t("Ok")}),m.jsx(he,{variant:"contained",onClick:()=>{this.setState({edit:null})},startIcon:m.jsx(Dt,{}),color:"grey",children:E.t("Cancel")})]})]}):null}renderConfirmDialog(){return this.state.showConfirmation?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({showConfirmation:""}),"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[m.jsx(bt,{id:"confirmation-dialog-title",children:this.props.title||E.t("Device %s will be disabled.",this.state.deleteId)}),m.jsx(jt,{children:m.jsx("p",{children:E.t("Are you sure?")})}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.onDelete(),color:"primary",autoFocus:!0,startIcon:m.jsx(js,{}),children:E.t("Delete")}),m.jsx(he,{color:"grey",variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showConfirmation:""}),children:E.t("Cancel")})]})]}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:t=>{this.setState({showSelectId:!1}),this.props.socket.getObject(t).then(n=>{if(n){const o=V.getObjectNameFromObj(n,null,{language:E.getLanguage()});V.updateSmartName(n,(o||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(n._id),this.waitForUpdateID=n._id,this.state.lastChanged!==n._id&&(this.setState({lastChanged:n._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(n._id,n).then(()=>this.informInstance(n._id)).catch(r=>this.setState({message:r}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectID1"):null}renderDevices(){const t=this.state.filter.toLowerCase(),n=[];for(let o=0;othis.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(bt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(jt,{children:[m.jsx(ke,{sx:tt.headerRow,children:m.jsx("div",{style:tt.headerCell,children:E.t("Name")})}),m.jsx("div",{style:tt.tableDiv,children:this.state.devices.map((t,n)=>m.jsx("div",{children:m.jsx("div",{style:tt.tableCell,children:t.friendlyName})},n))})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const t=this.state.devices.map(n=>n.friendlyName);V.copyToClipboard(t.join(` +`))},color:"primary",startIcon:m.jsx(c_,{}),children:E.t("Copy to clipboard")}),m.jsx(he,{variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,color:"grey",children:E.t("Close")})]})]}):null}render(){return this.state.loading?m.jsx(ro,{},"alexaProgress"):m.jsxs("form",{style:tt.tab,children:[m.jsx(Mt,{size:"small",color:"secondary","aria-label":"Add",style:tt.button,onClick:()=>this.setState({showSelectId:!0}),children:m.jsx(Pi,{})}),m.jsx(Mt,{size:"small",color:"primary","aria-label":"Refresh",style:tt.button,onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(ro,{size:20}):m.jsx(Bi,{})}),m.jsx(Mt,{style:{...tt.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse,children:m.jsx(O_,{})}),m.jsx(st,{variant:"standard",placeholder:E.t("Filter"),className:this.state.filter,value:this.state.filter,onChange:t=>this.setState({filter:t.target.value}),slotProps:{input:{endAdornment:this.state.filter?m.jsx(ue,{onClick:()=>this.setState({filter:""}),children:m.jsx(D_,{})}):void 0}}}),this.renderDevices(),this.renderMessage(),this.renderEditDialog(),this.getSelectIdDialog(),this.renderConfirmDialog(),this.renderListOfDevices()]},"alexa")}}vs.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired,themeType:L.string,theme:L.object};function zlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0z"},child:[]}]})(e)}function Rlt(e){return Ye({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1.5 15a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1H13V2.5A1.5 1.5 0 0 0 11.5 1H11V.5a.5.5 0 0 0-.57-.495l-7 1A.5.5 0 0 0 3 1.5V15zM11 2h.5a.5.5 0 0 1 .5.5V15h-1zm-2.5 8c-.276 0-.5-.448-.5-1s.224-1 .5-1 .5.448.5 1-.224 1-.5 1"},child:[]}]})(e)}function VE(e){return Ye({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11.536 14.01A8.47 8.47 0 0 0 14.026 8a8.47 8.47 0 0 0-2.49-6.01l-.708.707A7.48 7.48 0 0 1 13.025 8c0 2.071-.84 3.946-2.197 5.303z"},child:[]},{tag:"path",attr:{d:"M10.121 12.596A6.48 6.48 0 0 0 12.025 8a6.48 6.48 0 0 0-1.904-4.596l-.707.707A5.48 5.48 0 0 1 11.025 8a5.48 5.48 0 0 1-1.61 3.89z"},child:[]},{tag:"path",attr:{d:"M8.707 11.182A4.5 4.5 0 0 0 10.025 8a4.5 4.5 0 0 0-1.318-3.182L8 5.525A3.5 3.5 0 0 1 9.025 8 3.5 3.5 0 0 1 8 10.475zM6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06"},child:[]}]})(e)}function Ilt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M23 23v466h466V23H23zm233 64c93.2 0 169 75.8 169 169s-75.8 169-169 169S87 349.2 87 256 162.8 87 256 87zm0 18c-83.5 0-151 67.5-151 151 0 71.3 49.2 130.9 115.5 146.8l13.9-27.8h43.2l13.9 27.8C357.8 386.9 407 327.3 407 256c0-83.5-67.5-151-151-151zm0 30c13.7 0 25 11.3 25 25s-11.3 25-25 25-25-11.3-25-25 11.3-25 25-25zm-80 89a32 32 0 0 1 32 32 32 32 0 0 1-32 32 32 32 0 0 1-32-32 32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32 32 32 0 0 1-32 32 32 32 0 0 1-32-32 32 32 0 0 1 32-32zm-90.4 169l-6.5 13.1c5.5.6 11.2.9 16.9.9 5.7 0 11.4-.3 16.9-.9l-6.5-13.1h-20.8z"},child:[]}]})(e)}function Llt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M248 88v32.652c-5.287.834-10.615 2.448-16 4.63V104h-16v29.16c-1.698.96-3.402 1.953-5.115 2.98-3.598 2.16-7.23 4.48-10.885 6.905V120h-16v34.19c-5.324 3.85-10.664 7.826-16 11.822V152h-16v25.965c-5.402 4.008-10.75 7.9-16 11.592V168h-16v32.213c-1.04.647-2.09 1.312-3.115 1.928-4.448 2.67-8.766 5.003-12.885 6.962V200H88V214.973c-2.89.67-5.575 1.027-8 1.027h-8v-32H24v304h48V232h8c2.658 0 5.324-.23 8-.652V488h16V226.717c5.272-2.138 10.6-4.82 16-7.877V488h16V208.955c5.294-3.512 10.637-7.264 16-11.144V488h16V344h16v144h16V162.443c5.462-3.838 10.81-7.427 16-10.656V296h16V142.898c5.793-2.754 11.188-4.755 16-5.87V296h16V137.027c4.812 1.116 10.207 3.117 16 5.87V296h16V151.787c5.19 3.23 10.538 6.818 16 10.656V488h16V344h16v144h16V197.81c5.363 3.88 10.706 7.633 16 11.145V488h16V218.84c5.4 3.056 10.728 5.74 16 7.877V488h16V231.348c2.676.422 5.342.652 8 .652h8v256h48V184h-48v32h-8c-2.425 0-5.11-.357-8-1.027V200h-16v9.102c-4.12-1.96-8.437-4.292-12.885-6.96-1.026-.617-2.075-1.282-3.115-1.93V168h-16V189.557c-5.252-3.69-10.598-7.584-16-11.592V152h-16v14.012c-5.336-3.996-10.676-7.97-16-11.823V120h-16v23.045c-3.654-2.424-7.287-4.746-10.885-6.904-1.713-1.027-3.417-2.02-5.115-2.98V104h-16v21.283c-5.385-2.183-10.713-3.797-16-4.63V88h-16zM48 120c-13.35 0-24 10.65-24 24s10.65 24 24 24 24-10.65 24-24-10.65-24-24-24zm416 0c-13.35 0-24 10.65-24 24s10.65 24 24 24 24-10.65 24-24-10.65-24-24-24zm-280 54.035V328h-16V185.988c1.6-1.198 3.203-2.39 4.8-3.588 3.75-2.81 7.484-5.608 11.2-8.365zm144 0c3.716 2.757 7.45 5.555 11.2 8.365 1.597 1.2 3.2 2.39 4.8 3.588V328h-16V174.035zM216 312v32h80v-32h-80zm0 48v128h16V360h-16zm32 0v128h16V360h-16zm32 0v128h16V360h-16z"},child:[]}]})(e)}function Flt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M25 66.75V425.8l78-26V92.74zm462 0l-78 25.99V399.8l78 26V267.5c-1 3.2-2.4 6.2-4.2 8.8-4.1 6.1-10.7 11-18.8 11-8.1 0-14.7-4.9-18.8-11-4.1-6.1-6.2-13.8-6.2-22s2.1-15.9 6.2-22 10.7-11 18.8-11c8.1 0 14.7 4.9 18.8 11 1.8 2.6 3.2 5.6 4.2 8.8zm-366 28.5V397.3h126V95.25zm144 0V397.3h126V95.25zM135 109.3h98v274h-98v-265zm144 0h98v274h-98v-265zm-126 18v110h62v-110zm144 0v110h62v-110zm167 112c-.8 0-2.1.4-3.8 3-1.7 2.6-3.2 7-3.2 12s1.5 9.4 3.2 12c1.7 2.6 3 3 3.8 3 .8 0 2.1-.4 3.8-3 1.7-2.6 3.2-7 3.2-12s-1.5-9.4-3.2-12c-1.7-2.6-3-3-3.8-3zm-311 16v110h62v-110zm144 0v110h62v-110zm-184 160v30h286v-30z"},child:[]}]})(e)}function Plt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"},child:[]}]})(e)}function GE(e){return Ye({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M442 248.9c-15.7-20.6-37.7-35.9-62.1-43.6 1-6.3 1.4-12.7 1.4-19.1 0-33.7-13-65.4-36.7-89.2C321 73.1 289.5 60 256 60s-65 13.1-88.6 37c-23.7 23.8-36.7 55.5-36.7 89.2 0 6.4.5 12.8 1.4 19.1-24.5 7.7-46.4 23.1-62.1 43.6-17 22.2-26 48.8-26 76.9 0 33.7 13 65.4 36.7 89.2 23.7 23.8 55.2 37 88.6 37 32.6 0 63.2-12.4 86.7-35 23.4 22.6 54.1 35 86.7 35 33.5 0 65-13.1 88.6-37 23.7-23.8 36.7-55.5 36.7-89.2 0-28.1-9-54.7-26-76.9zM256 85.5c55.1 0 100 45.2 100 100.7 0 4.7-.3 9.4-1 14.1-4.1-.4-8.2-.6-12.4-.6-32.6 0-63.2 12.4-86.7 35-23.4-22.6-54.1-35-86.7-35-4.1 0-8.3.2-12.4.6-.6-4.6-1-9.4-1-14.1.2-55.6 45.1-100.7 100.2-100.7zm0 201.4c-1.8 0-3.7-.1-5.5-.2 1.6-3.8 3.4-7.5 5.5-11.1 2.1 3.6 3.9 7.3 5.5 11.1-1.8.2-3.7.2-5.5.2zm-46.6 131.2c-12.7 5.6-26.1 8.4-40.1 8.4-55.1 0-100-45.2-100-100.7 0-22.3 7.1-43.5 20.6-61.2 12.3-16.1 29.4-28.3 48.5-34.6 6.6 17.9 17.3 34.3 31.2 47.6 13.9 13.4 30.9 23.4 49.2 29.1-1 6.3-1.4 12.7-1.4 19.1 0 25.8 7.7 50.6 22.2 71.7-8.8 8.7-19 15.6-30.2 20.6zM225.1 282c-27.6-9-50-29.8-61.3-56.7 1.8-.1 3.7-.2 5.5-.2 13.9 0 27.4 2.8 40.1 8.4 11.2 5 21.4 11.9 30.1 20.6-5.9 8.7-10.8 18-14.4 27.9zm30.9 94c-8.7-15.2-13.3-32.5-13.3-50.2 0-4.7.3-9.4 1-14.1a128.658 128.658 0 0 0 24.8 0c.6 4.6 1 9.4 1 14.1-.2 17.7-4.8 35-13.5 50.2zm46.6-142.5c12.7-5.6 26.1-8.4 40.1-8.4 1.8 0 3.7.1 5.5.2-11.3 26.9-33.7 47.7-61.3 56.7-3.6-9.8-8.5-19.2-14.4-27.9 8.7-8.7 18.9-15.6 30.1-20.6zm40.1 193c-13.9 0-27.4-2.8-40.1-8.4-11.2-5-21.4-11.9-30.1-20.6 14.5-21.1 22.2-45.8 22.2-71.7 0-6.4-.5-12.8-1.4-19.1 18.3-5.7 35.2-15.7 49.2-29.1 13.8-13.3 24.5-29.6 31.2-47.6 19.1 6.3 36.2 18.4 48.5 34.6 13.5 17.7 20.6 38.9 20.6 61.2-.1 55.6-45 100.7-100.1 100.7z"},child:[]}]})(e)}function Blt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M12 5C11.4477 5 11 5.44772 11 6C11 6.55228 11.4477 7 12 7H20C20.5523 7 21 6.55228 21 6C21 5.44772 20.5523 5 20 5H12Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M7 12C7 11.4477 7.44772 11 8 11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H8C7.44772 13 7 12.5523 7 12Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M3 18C3 17.4477 3.44772 17 4 17H12C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19H4C3.44772 19 3 18.5523 3 18Z",fill:"currentColor"},child:[]}]})(e)}function Hlt(e){return Ye({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3004 7.49991C10.3004 8.4943 9.49426 9.30041 8.49988 9.30041C7.50549 9.30041 6.69938 8.4943 6.69938 7.49991C6.69938 6.50553 7.50549 5.69942 8.49988 5.69942C9.49426 5.69942 10.3004 6.50553 10.3004 7.49991ZM11.205 8C10.9699 9.28029 9.84816 10.2504 8.49988 10.2504C7.1516 10.2504 6.0299 9.28029 5.79473 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H5.7947C6.0298 5.71962 7.15154 4.74942 8.49988 4.74942C9.84822 4.74942 10.97 5.71962 11.2051 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H11.205Z",fill:"currentColor"},child:[]}]})(e)}function Ult(e){return Ye({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 12a9 9 0 1 1 -18 0a9 9 0 0 1 18 0z"},child:[]},{tag:"path",attr:{d:"M14 9a2 2 0 1 1 -4 0a2 2 0 0 1 4 0z"},child:[]},{tag:"path",attr:{d:"M12 16h.01"},child:[]}]})(e)}const qE="#e7000040",XE="#4f4f4f",Wlt="#313131",JE="#e9e9e9",Vlt="#bbbbbb",YE="#5c8f65",KE="#b4ffbe",ZE="#6e6e6e",QE="#d0d0d0",wl=["socket","light","dimmer","thermostat","blinds","gate","lock","hue","ct","motion","levelSlider","temperature","window"],eT={LIGHT:"light",SWITCH:"socket",THERMOSTAT:"thermostat",SMARTPLUG:"socket",SMARTLOCK:"lock",CAMERA:"camera"},lo={brightness:{label:"Brightness",icon:nX,color:"#c9b803"},powerState:{label:"Power",icon:RX,color:"#70bd00"},colorTemperatureInKelvin:{label:"Color temperature",icon:_X,color:"#019bb6"},color:{label:"Color",icon:DX,color:"#a20030"},detectionState:{label:"Detection",icon:OX,color:"#913c01"},lockState:{label:"Lock",icon:CX,color:"#00519b"},mode:{label:"Mode",icon:kX,color:"#112233"},muted:{label:"Muted",icon:HX,color:"#9701af"},percentage:{label:"Percentage",icon:EM,color:"#009870"},targetSetpoint:{label:"Set point",icon:jX,color:"#813600"},temperature:{label:"Temperature",icon:cX,color:"#9f1300"},thermostatMode:{label:"Thermostat mode",icon:zX,color:"#800048"},volume:{label:"Volume",icon:UX,color:"#006702"}},Yn={Light:{label:"Light",icon:Vm,color:"#c9b803",control:"switch",controllable:!0},AirCondition:{label:"AirCondition",icon:Mlt,color:"#001fb9",control:"switch",controllable:!0},Blind:{label:"Blinds",icon:klt,color:"#00a28f",control:"blinds",controllable:!0},ContactSensor:{label:"Sensor",icon:Elt,color:"#c9b803",control:"sensor",controllable:!1},Dimmer:{label:"Dimmer",icon:Plt,color:"#cb8500",control:"slider",controllable:!0},Door:{label:"Door sensor",icon:Rlt,color:"#ad002a",control:"doorSensor",controllable:!1},Gate:{label:"Gate",icon:Llt,color:"#9d02af",control:"gate"},Hue:{label:"Color HUE",icon:GE,color:"#007a96",control:"color"},Ct:{label:"Color temperature",icon:GE,color:"#5a9600"},Lock:{label:"Lock",icon:zlt,color:"#c9030a"},Motion:{label:"Motion",icon:Blt,color:"#149100"},Slider:{label:"Slider",icon:Hlt,color:"#029a7f"},Socket:{label:"Socket",icon:Ilt,color:"#834303"},Temperature:{label:"Temperature",icon:Nlt,color:"#8ca102"},Thermostat:{label:"Thermostat",icon:Tlt,color:"#8c4800"},VacuumCleaner:{label:"Vacuum cleaner",icon:Ult,color:"#9e03c9"},Volume:{label:"Volume",icon:VE,color:"#c903c6"},VolumeGroup:{label:"Volume group",icon:VE,color:"#c903c6"},Window:{label:"Window sensor",icon:Flt,color:"#27c903"}},be={tab:{width:"100%",height:"100%"},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},filter:{margin:0},button:{marginRight:20},devLineExpand:{width:40},devLineEdit:{width:40,marginLeft:5},devLineDelete:{width:40},devLineName:{},devLineNumber:{width:15},editedId:{fontStyle:"italic"},devLine:{height:48,width:"100%",position:"relative",display:"flex",alignItems:"center"},devLineDescription:{display:"block",fontStyle:"italic",fontSize:12},devLineActions:{fontStyle:"italic",fontSize:12,paddingRight:5,display:"flex"},devLineProgress:{position:"absolute",top:0,left:0},devLineNameBlock:{flexGrow:1},devModified:{fontStyle:"italic"},actionSpan:{marginRight:5,display:"flex",alignItems:"center"},deviceOff:{filter:"grayscale(0.9)"},actionIcon:{width:16},deviceIcon:{width:24,height:24},deviceSmallIcon:{width:20,height:20},devSubLine:{position:"relative",display:"flex",width:"100%",alignItems:"center"},devSubLineExpand:{marginLeft:15},devSubLineExpanded:{transition:"transform 0.3s",transform:"rotate(90deg)"},devSubLineName:{flexGrow:1,fontSize:13,fontWeight:"bold",marginLeft:5},devSubLineName1:{minWidth:100,marginRight:5,display:"inline-block"},devSubLineName2:{fontWeight:"normal",display:"inline-block"},devSubLineName2Div:{display:"flex",alignItems:"center",gap:5},devSubSubLineName:{fontSize:11,fontStyle:"italic",paddingLeft:10},devSubSubLineStateName:{minWidth:121,display:"inline-block",fontWeight:"bold"},devSubSubLineStateId:{marginLeft:5},devSubLineDelete:{},devSubLineEdit:{},devSubLineTypeTitle:{marginTop:0},statesLine:{position:"relative",width:"calc(100% - 50px)",paddingLeft:50,paddingBottom:5},devSubSubLine:{position:"relative",display:"flex",alignItems:"center",paddingTop:2,paddingBottom:2},headerRow:e=>({pl:1,background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"100%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"100%"},selectType:{width:130,marginLeft:8}};function Glt(e,t,n){n=n||".";let o="";const r=e&&e.common;if(r){const a=r.icon;if(a)if(a.startsWith("data:image/"))o=a;else if(a.includes(".")){let s;e.type==="instance"||e.type==="adapter"?o=`${n}/adapter/${r.name}/${a}`:t&&t.startsWith("system.adapter.")?(s=t.split(".",3),a[0]==="/"?s[2]+=a:s[2]+=`/${a}`,o=`${n}/adapter/${s[2]}`):(s=t.split(".",2),a[0]==="/"?s[0]+=a:s[0]+=`/${a}`,o=`${n}/adapter/${s[0]}`)}else return null}return o||null}function ly(e,t){return e&&typeof e=="object"?e[t]||e.en:e}class Br extends C.Component{constructor(n){super(n);F(this,"onAliveChanged",(n,o)=>{!!(o!=null&&o.val)!==this.state.alive&&this.setState({alive:!!(o!=null&&o.val)},()=>this.state.alive&&setTimeout(()=>this.browse(),1e4))});F(this,"onReadyUpdate",(n,o)=>{console.log(`Update ${n} ${o?`${o.val}/${o.ack}`:"null"}`),o&&o.ack===!0&&o.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},300))});F(this,"onResultUpdate",(n,o)=>{o&&o.ack===!0&&o.val&&this.setState({message:o.val})});lo.translated||(Object.keys(lo).forEach(r=>lo[r].label=E.t(lo[r].label)),lo.translated=!0),Yn.translated||(Object.keys(Yn).forEach(r=>Yn[r].label=E.t(Yn[r].label)),Yn.translated=!0);let o=window.localStorage.getItem("v3.expanded")||"[]";try{o=JSON.parse(o)}catch{o=[]}this.state={edit:null,deleteId:"",showListOfDevices:!1,showSelectId:!1,showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:o,lastChanged:"",objects:{},alive:!1},this.requesting={},this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.waitForUpdateID=null,this.language=E.getLanguage()}browse(n){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),n?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),console.log("Send BROWSE!"),this.browseTimer=setTimeout(()=>{console.log("Browse timeout!"),this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(n):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browse3",null).then(o=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,o&&o.error?this.setState({message:E.t(o.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,o)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),console.log("BROWSE received."),o.sort((r,a)=>r.friendlyName>a.friendlyName?1:r.friendlyName300&&this.props.onError(E.t("Too many devices (%s) configured. Max number is 300",o.length)))}).catch(o=>this.setState({message:E.t("Error %s",o),browse:!1})))}componentDidMount(){this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>{!n||!n.common||!n.common.enabled&&(!o||!o.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[],alive:!1}):this.setState({alive:!0},()=>this.browse())})),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates3`,this.onReadyUpdate),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdate),this.props.socket.subscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates3`,this.onReadyUpdate),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdate),this.props.socket.unsubscribeState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`,this.onAliveChanged),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(n){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",n)}addChanged(n,o){const r=JSON.parse(JSON.stringify(this.state.changed));r.includes(n)?o&&o():(r.push(n),this.setState({changed:r},()=>o&&o()))}onEdit(n,o){return o=o||this.state.devices,o.find(a=>a.controls.find(s=>Object.values(s.states).find(i=>i.id===n)))?(this.props.socket.getObject(n).then(a=>{let s=V.getSmartNameFromObj(a,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon);typeof s=="object"&&s&&(s=s[E.getLanguage()]||s.en),this.editedSmartName=s;let i=null;this.setState({edit:{id:n,type:i,name:s,originalType:i,originalName:s,objectName:V.getObjectNameFromObj(a,null,{language:E.getLanguage()})}})}),!0):!1}onAskDelete(n){this.setState({deleteId:n,showConfirmation:!0})}onDelete(){const n=this.state.deleteId;this.addChanged(n,()=>{this.props.socket.getObject(n).then(o=>(V.disableSmartName(o,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(n,o))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(n)}).catch(o=>this.props.onError(o))})}static renderChannelActions(n){const o=[];return Object.keys(lo).forEach(r=>{if(r!=="translated"){if(n.supported.includes(r)){let a;const s=lo[r].icon;let i=be.actionIcon,l=null,d=null,u=null;n.state&&(a=n.state.find(c=>r===c.name),(a==null?void 0:a.name)==="powerState"?(a==null?void 0:a.value)==="OFF"&&(i={...i,...be.deviceOff}):(a==null?void 0:a.name)==="detectionState"?(a==null?void 0:a.value)==="NOT_DETECTED"&&(i={...i,...be.deviceOff}):(a==null?void 0:a.name)==="percentage"?l=`${a.value}%`:(a==null?void 0:a.name)==="brightness"?d=a.value:(a==null?void 0:a.name)==="color"&&(u=`hsl(${a.value}, 50%, 50%)`)),o.push(m.jsxs("span",{title:lo[r].label+(a?` - ${a.value}`:""),style:be.actionSpan,children:[m.jsx(s,{style:{...i,color:lo[r].color,backgroundColor:u}}),l!==null?m.jsx("span",{style:{color:Yn[n.type].color},children:l}):null,d!==null?m.jsx("span",{style:{color:Yn[n.type].color},children:d}):null]},r))}else if(n.enforced.includes(r)){const a=lo[r].icon;o.push(m.jsx("span",{title:lo[r].label,style:{...be.actionSpan,opacity:.7},children:m.jsx(a,{style:{...be.actionIcon,color:lo[r].color}})},r))}}}),n.supported.forEach(r=>{lo[r]||o.push(m.jsx("span",{title:r,style:be.actionSpan,children:r},r))}),n.enforced.forEach(r=>{lo[r]||o.push(m.jsx("span",{title:r,style:{...be.actionSpan,opacity:.7},children:r},r))}),o}static renderDevTypes(n){const o=[];if(!n.controls)return console.log("Something went wrong"),null;const r=[];return n.controls.forEach((a,s)=>{if(!r.includes(a.type)&&(r.push(a.type),Yn[a.type])){const i=Yn[a.type].icon;let l=be.actionSpan,d=null,u=null,c=null,h;n.state&&(h=n.state.find(g=>a.supported.includes(g.name)),(h==null?void 0:h.name)==="powerState"?(h==null?void 0:h.value)==="OFF"&&(l={...l,...be.deviceOff}):(h==null?void 0:h.name)==="detectionState"?(h==null?void 0:h.value)==="NOT_DETECTED"&&(l={...l,...be.deviceOff}):(h==null?void 0:h.name)==="percentage"?d=`${h.value}%`:(h==null?void 0:h.name)==="brightness"?u=h.value:(h==null?void 0:h.name)==="color"&&(c=`hsl(${h.value}, 100%, 50%)`));const f=m.jsxs("span",{title:Yn[a.type].label+(h?` - ${h.value}`:""),style:l,children:[m.jsx(i,{style:{...be.deviceIcon,color:Yn[a.type].color,backgroundColor:c}}),d!==null?m.jsx("span",{style:{color:Yn[a.type].color},children:d}):null,u!==null?m.jsx("span",{style:{color:Yn[a.type].color},children:u}):null]},`${a.type}_${s}`);a.type!=="Blind"&&a.type!=="Light"&&a.type!=="Socket"?o.unshift(f):o.push(f)}}),o}getControlId(n,o){return o===void 0?this.state.devices[n].friendlyName:`${this.state.devices[n].friendlyName}_${o}`}onExpand(n,o){const r=[...this.state.expanded],a=this.getControlId(n,o),s=r.indexOf(a);s===-1?r.push(a):r.splice(s,1),window.localStorage.setItem("v3.expanded",JSON.stringify(r)),this.setState({expanded:r})}renderSelectByOn(n){var r;const o=n.supported.concat(n.enforced);if(o.includes("brightness")&&o.includes("powerState")||o.includes("percentage")&&o.includes("powerState")){const a=Object.values(n.states)[0],s=((r=a.smartName)==null?void 0:r.byON)||void 0,i=[m.jsx(je,{value:"",children:m.jsx("em",{children:E.t("Default")})},"_"),m.jsx(je,{value:"stored",children:E.t("last value")},"last"),m.jsx(je,{value:"omit",children:E.t("omit value")},"omit")];for(let l=5;l<=100;l+=5)i.push(m.jsxs(je,{value:l.toString(),children:[l,"%"]},l.toString()));return m.jsxs(to,{style:be.selectType,variant:"standard",children:[m.jsx(_n,{variant:"standard",style:be.devSubLineByOnSelect,value:(s||"").toString(),onChange:l=>this.onParamsChange(a.id,l.target.value),children:i}),m.jsx(Er,{style:be.devSubLineTypeTitle,children:E.t("by ON")})]})}return m.jsx("div",{style:be.selectType})}onParamsChange(n,o,r){this.addChanged(n,()=>this.props.socket.getObject(n).then(a=>(V.updateSmartName(a,void 0,o,r,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.state.lastChanged!==n&&(this.setState({lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(n,a))).then(()=>this.informInstance(n)).catch(a=>this.props.onError(a)))}static renderSelectTypeSelector(n,o){if(n!==!1){const r=[m.jsx(je,{value:"_",children:m.jsx("em",{children:E.t("no type")})},"_")];for(let a=0;ao(a.target.value==="_"?"":a.target.value),children:r}),m.jsx(Er,{style:be.devSubLineTypeTitle,children:E.t("Types")})]})}return null}renderSelectType(n,o){var s;if(o.autoDetected)return m.jsx("div",{style:be.selectType});const r=Object.values(n.states)[0],a=(s=r.smartName)==null?void 0:s.smartType;return Br.renderSelectTypeSelector(a,i=>this.onParamsChange(r.id,void 0,i))}renderStates(n,o){return m.jsx("div",{style:{...be.statesLine,background:o},children:Object.keys(n.states).map((r,a)=>m.jsx("div",{style:{...be.devSubSubLine,...a%2?{background:this.props.themeType==="dark"?`${ZE}80`:`${QE}80`}:{background:this.props.themeType==="dark"?ZE:QE}},children:m.jsxs("div",{style:be.devSubSubLineName,children:[m.jsxs("div",{style:be.devSubSubLineStateName,children:[r,":"]}),m.jsx("span",{style:be.devSubSubLineStateId,children:n.states[r].id})]})},r))},"states")}static getParentId(n){const o=n.split(".");return o.pop(),o.join(".")}async findDeviceForState(n){const o=Br.getParentId(n),r=await this.props.socket.getObject(o);if((r==null?void 0:r.type)==="device")return r;if(r&&(r.type==="channel"||r.type==="folder")){let a=Br.getParentId(o),s=await this.props.socket.getObject(a);return(s==null?void 0:s.type)==="device"||(s==null?void 0:s.type)==="folder"&&(a=Br.getParentId(o),s=await this.props.socket.getObject(a),(s==null?void 0:s.type)==="device")?s:r}return this.props.socket.getObject(n)}getControlProps(n){const o=Object.values(n.states)[0].id;return this.state.objects[o]===void 0&&!this.requesting[o]&&(this.requesting[o]=!0,setTimeout(()=>{this.findDeviceForState(o).then(r=>{var s;delete this.requesting[o];const a=JSON.parse(JSON.stringify(this.state.objects));r&&r.common?(a[o]={name:((s=r.common)==null?void 0:s.name)||null,icon:Glt(r,o,"../..")},a[o].name=ly(a[o].name,this.language)):a[o]={name:o},this.setState({objects:a})})},50)),this.state.objects[o]?this.state.objects[o]:{name:o}}renderChannels(n,o){return n.controls.map((r,a)=>{var c;const s=Object.values(r.states)[0].id;let i=this.state.changed.includes(s)?qE:this.props.themeType==="dark"?a%2?XE:Wlt:a%2?JE:Vlt;this.state.lastChanged===s&&(i===XE||i===JE)&&(i=this.props.themeType==="dark"?YE:KE);const l=((c=Yn[r.type])==null?void 0:c.icon)||null,d=this.state.expanded.includes(this.getControlId(o,a)),u=this.getControlProps(r);return[m.jsxs("div",{style:{...be.devSubLine,background:i},children:[m.jsx(ue,{style:be.devSubLineExpand,onClick:()=>this.onExpand(o,a),children:m.jsx(aX,{style:d?be.devSubLineExpanded:void 0})}),l?m.jsx(l,{style:{...be.deviceSmallIcon,color:Yn[r.type].color}}):null,m.jsxs("div",{style:be.devSubLineName,children:[m.jsx("div",{style:be.devSubLineName1,children:E.t(r.type)}),m.jsx("div",{style:be.devSubLineName2,children:m.jsxs("div",{style:be.devSubLineName2Div,children:[u.icon?u.icon.startsWith("data:image/svg")?m.jsx(Pm,{style:be.devSubLineName2Icon,src:u.icon,width:20,height:20}):m.jsx(Ss,{src:u.icon,style:{...be.devSubLineName2Icon,width:20,height:20}}):null,u.name]})})]}),m.jsx("div",{style:be.devLineActions,children:Br.renderChannelActions(r)}),this.renderSelectByOn(r,n),this.renderSelectType(r,n),n.autoDetected?m.jsx("div",{style:be.devLineEdit}):m.jsx(ue,{"aria-label":"Edit",style:be.devLineEdit,onClick:()=>this.onEdit(s),children:m.jsx(A_,{fontSize:"middle"})}),n.autoDetected?n.controls.length>1?m.jsx(ue,{"aria-label":"Delete",style:be.devSubLineDelete,onClick:()=>this.onAskDelete(s),children:m.jsx(js,{fontSize:"middle"})}):m.jsx("div",{style:be.devLineDelete}):m.jsx(ue,{"aria-label":"Delete",style:be.devLineDelete,onClick:()=>this.onAskDelete(s),children:m.jsx(js,{fontSize:"middle"})})]},a),d?this.renderStates(r,i):null]})}renderDevice(n,o){const r=n.friendlyName,a=this.state.expanded.includes(r),s=Object.values(n.controls[0].states)[0].id;let i=o%2?this.props.themeType==="dark"?"#272727":"#f1f1f1":"inherit";const l=this.state.changed.includes(s);return l?i=qE:s===this.state.lastChanged&&(i=this.props.themeType==="dark"?YE:KE),[m.jsxs("div",{style:{...be.devLine,background:i},children:[m.jsxs("div",{style:be.devLineNumber,children:[o+1,"."]}),m.jsx(ue,{style:be.devLineExpand,onClick:()=>this.onExpand(o),children:n.controls.length>1?m.jsx(sp,{badgeContent:n.controls.length,color:"primary",children:a?m.jsx(Gc,{}):m.jsx(qc,{})}):a?m.jsx(Gc,{}):m.jsx(qc,{})}),m.jsxs("div",{style:be.devLineNameBlock,children:[n.autoDetected?m.jsxs(m.Fragment,{children:[m.jsx("span",{style:be.devLineName,children:r}),m.jsx("span",{style:be.devLineDescription,children:E.t("Grouped from %s and %s",ly(n.roomName,this.language),ly(n.funcName,this.language))})]}):r,l?m.jsx(ro,{style:be.devLineProgress,size:20}):null]}),m.jsx("span",{style:be.devLineActions,children:Br.renderDevTypes(n)})]},`line${o}`),a?this.renderChannels(n,o):null]}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(n){n==null||n.preventDefault(),this.addChanged(this.state.edit.id,()=>{const o=this.state.edit.id,r=this.state.edit.type,a=this.state.edit.name;this.setState({edit:null,lastChanged:o}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.props.socket.getObject(o).then(s=>(V.updateSmartName(s,a,void 0,r===null?void 0:r,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(o,s))).then(()=>this.informInstance(o)).catch(s=>this.props.onError(s))})}renderEditDialog(){return this.state.edit?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({edit:null}),"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(bt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",this.state.edit.objectName)}),m.jsxs(jt,{children:[m.jsxs("p",{children:[m.jsx("span",{children:"ID:"})," ",m.jsx("span",{style:be.editedId,children:this.state.edit.id})]}),m.jsx(st,{variant:"standard",style:{width:"100%"},label:E.t("Smart name"),autoFocus:!0,onKeyDown:n=>n.key==="Enter"&&this.changeSmartName(n),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.edit));o.name=n.target.value,this.setState({edit:o})},value:this.state.edit.name,helperText:E.t("You can enter several names divided by comma"),margin:"normal"}),this.state.edit.type!==null?Br.renderSelectTypeSelector(this.state.edit.type,n=>{const o=JSON.parse(JSON.stringify(this.state.edit));o.type=n,this.setState({edit:o})}):null]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",disabled:!this.state.edit.name||this.state.edit.originalName===this.state.edit.name&&(this.state.edit.type||null)===(this.state.edit.originalType||null),onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(qn,{}),children:E.t("Ok")}),m.jsx(he,{variant:"contained",onClick:()=>this.setState({edit:null}),startIcon:m.jsx(Dt,{}),color:"grey",children:E.t("Cancel")})]})]}):null}renderConfirmDialog(){return this.state.showConfirmation?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({showConfirmation:""}),"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[m.jsx(bt,{id:"confirmation-dialog-title",children:this.props.title||E.t("Device %s will be disabled.",this.state.deleteId)}),m.jsx(jt,{children:m.jsx("p",{children:E.t("Are you sure?")})}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.onDelete(),color:"primary",autoFocus:!0,startIcon:m.jsx(js,{}),children:E.t("Delete")}),m.jsx(he,{color:"grey",variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showConfirmation:""}),children:E.t("Cancel")})]})]}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(vd,{imagePrefix:"../..",theme:this.props.theme,socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:n=>{this.setState({showSelectId:!1}),this.props.socket.getObject(n).then(o=>{if(o){const r=V.getObjectNameFromObj(o,null,{language:this.language});V.updateSmartName(o,(r||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(o._id),this.waitForUpdateID=o._id,this.state.lastChanged!==o._id&&(this.setState({lastChanged:o._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(o._id,o).then(()=>this.informInstance(o._id)).catch(a=>this.setState({message:a}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectID1"):null}renderDevices(){const n=this.state.filter.toLowerCase(),o=[];for(let r=0;rthis.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(bt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(jt,{children:[m.jsx(ke,{sx:be.headerRow,children:m.jsx("div",{style:be.headerCell,children:E.t("Name")})}),m.jsx("div",{style:be.tableDiv,children:this.state.devices.map((n,o)=>m.jsx("div",{children:m.jsx("div",{style:be.tableCell,children:n.friendlyName})},o))})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const n=this.state.devices.map(o=>o.friendlyName);V.copyToClipboard(n.join(` +`))},color:"primary",startIcon:m.jsx(c_,{}),children:E.t("Copy to clipboard")}),m.jsx(he,{variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,color:"grey",children:E.t("Close")})]})]}):null}render(){return this.state.loading?m.jsx(ro,{},"alexaProgress"):m.jsxs("form",{style:be.tab,children:[m.jsx(Mt,{size:"small",color:"secondary","aria-label":"Add",disabled:!!this.state.lastChanged&&!!this.waitForUpdateID||!this.state.alive,style:be.button,onClick:()=>this.setState({showSelectId:!0}),children:this.state.lastChanged&&this.waitForUpdateID?m.jsx(ro,{}):m.jsx(Pi,{})}),m.jsx(Mt,{size:"small",color:"primary","aria-label":"Refresh",disable:!this.state.alive,style:be.button,onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(ro,{size:20}):m.jsx(Bi,{})}),m.jsx(Mt,{style:{...be.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse||!this.state.alive,children:m.jsx(O_,{})}),m.jsx(st,{variant:"standard",placeholder:E.t("Filter"),value:this.state.filter,onChange:n=>this.setState({filter:n.target.value}),slotProps:{input:{endAdornment:this.state.filter?m.jsx(ue,{onClick:()=>this.setState({filter:""}),children:m.jsx(D_,{})}):void 0}}}),this.renderDevices(),this.renderMessage(),this.renderEditDialog(),this.getSelectIdDialog(),this.renderConfirmDialog(),this.renderListOfDevices()]},"alexa")}}Br.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired,themeType:L.string,theme:L.object};const of="#aba613",cy="#444",rf="#00c6ff",qlt="#ff7ee3",ri="#00bc00",Xlt="#e7000040",Jlt="#4f4f4f",Ylt="#e9e9e9",Klt="#5c8f65",Zlt="#b4ffbe",Pr={OnOff:{color:of,icon:k0,desc:"On/Off"},Brightness:{color:rf,icon:Vm,desc:"Dimmer"},RGB:{color:qlt,icon:Vm,desc:"Set color"},setTargetTemperature:{color:rf,icon:TM,desc:"Set target temperature"},incrementTargetTemperature:{color:of,icon:xc,desc:"Increment target temperature"},decrementTargetTemperature:{color:cy,icon:Sc,desc:"Decrement target temperature"},incrementPercentage:{color:of,icon:xc,desc:"Increment percentage"},decrementPercentage:{color:cy,icon:Sc,desc:"Decrement percentage"},setColor:{color:rf,icon:kM,desc:"Set color"},incrementColorTemperature:{color:of,icon:xc,desc:"Increment color temperature"},decrementColorTemperature:{color:cy,icon:Sc,desc:"Decrement color temperature"},getTargetTemperature:{color:ri,icon:zu,desc:"Get target temperature"},getTemperatureReading:{color:ri,icon:zu,desc:"Get actual temperature"},setLockState:{color:rf,icon:Gm,desc:"Set lock state"},getLockState:{color:ri,icon:Gm,desc:"Read lock state"},getActualTemperature:{color:ri,icon:zu,desc:"Get actual temperature"},getActualHumidity:{color:ri,icon:jlt,desc:"Get actual humidity"},getMotion:{color:ri,icon:Alt,desc:"Get motion"},getContact:{color:ri,icon:Dlt,desc:"Get contact"}},ht={tab:{width:"100%",height:"100%"},column:{display:"inline-block",verticalAlign:"top",marginRight:20,height:"100%",overflow:"hidden"},columnDiv:{height:"calc(100% - 40px)",overflow:"auto",minWidth:300},filter:{margin:0},button:{marginRight:20},devLineExpand:{marginRight:10},devLineEnabled:{position:"absolute",right:0,top:0},devLineEdit:{position:"absolute",top:5,right:50},devLineDelete:{position:"absolute",top:5,right:0},devLineName:{},devLineNumber:{display:"inline-block",verticalAlign:"middle",width:15},editedId:{fontStyle:"italic"},enumLineSubName:{fontStyle:"italic"},devLine:{height:48,width:"100%",position:"relative"},devLineDescription:{display:"block",fontStyle:"italic",fontSize:12},devLineActions:{fontStyle:"italic",fontSize:12,paddingLeft:50,display:"inline-block"},devLineProgress:{position:"absolute",top:0,left:0},channelLineActions:{width:80},devLineNameBlock:{display:"inline-block",width:"calc(100% - 350px)"},devModified:{fontStyle:"italic"},actionIcon:{width:16},devSubLine:{position:"relative",height:48},devSubLineName:{marginLeft:5,marginTop:14,minWidth:100,display:"inline-block",fontSize:13,paddingLeft:70},devSubSubLine:{fontSize:10,fontStyle:"italic",display:"inline-block",marginLeft:15},devSubLineSetId:{fontStyle:"italic",display:"block",color:"#999"},devSubLineByOn:{marginLeft:5},devSubLineDelete:{position:"absolute",top:12,right:12,padding:0},devSubLineEdit:{position:"absolute",top:12,right:62,padding:0},devSubLineTypeTitle:{marginTop:0},headerRow:e=>({paddingLeft:e.spacing(1),background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"100%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"100%"}};class M_ extends C.Component{constructor(t){super(t),Pr.translated||(Object.keys(Pr).forEach(n=>Pr[n].desc=E.t(Pr[n].desc)),Pr.translated=!0),this.state={editedSmartName:"",editId:"",editObjectName:"",deleteId:"",showSelectId:!1,showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:[],lastChanged:""},this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.editedSmartName="",this.waitForUpdateID=null,this.onReadyUpdateBound=this.onReadyUpdate.bind(this),this.onResultUpdateBound=this.onResultUpdate.bind(this),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>{this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>{!n||!n.common||!n.common.enabled&&(!o||!o.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[]}):this.browse()})})}browse(t){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),t?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),this.browseTimer=setTimeout(()=>{this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(t):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browseAlisa",null).then(n=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,n&&n.error?this.setState({message:E.t(n.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,n)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),this.setState({devices:n,loading:!1,changed:[],browse:!1}))}))}onReadyUpdate(t,n){n&&n.ack===!0&&n.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},300))}onResultUpdate(t,n){n&&n.ack===!0&&n.val&&this.setState({message:n.val})}componentDidMount(){this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updates`,this.onReadyUpdateBound),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t,n){const o=JSON.parse(JSON.stringify(this.state.changed));o.includes(t)?n&&n():(o.push(t),this.setState({changed:o},()=>n&&n()))}onEdit(t,n){n=n||this.state.devices;const o=n.find(r=>r.iobID===t);if(o){let r=o.name;return typeof r=="object"&&r&&(r=r[E.getLanguage()]||r.en),this.editedSmartName=r,this.setState({editId:t,editedSmartName:r,editObjectName:r}),!0}return!1}onAskDelete(t){this.setState({deleteId:t,showConfirmation:!0})}onDelete(){const t=this.state.deleteId;this.addChanged(t,()=>{this.props.socket.getObject(t).then(n=>(V.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(t,n))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(t)}).catch(n=>this.props.onError(n))})}static renderActions(t){const n=[];if(!t.actions)return console.log("Something went wrong"),null;t.actions.sort((o,r)=>o===r?0:o==="OnOff"?-1:r==="OnOff"?1:0),Object.keys(Pr).forEach(o=>{if(t.actions.includes(o)){const r=Pr[o].icon;n.push(m.jsx("span",{title:Pr[o].desc,children:m.jsx(r,{style:{...ht.actionIcon,color:Pr[o].color}})},o))}});for(let o=0;o{o.push(m.jsxs("div",{style:{...ht.devSubLine,background:s},children:[m.jsx("div",{style:ht.devSubLineName,children:i.name.toUpperCase()}),m.jsxs("div",{style:ht.devSubSubLine,children:[m.jsx("div",{children:i.getId}),i.setId&&i.setId!==i.getId?m.jsx("div",{style:ht.devSubLineSetId,children:i.setId}):null]})]},`sub${i.getId}`))}),o}renderDevice(t,n){const o=this.state.expanded.includes(t.name);let r=n%2?this.props.themeType==="dark"?"#272727":"#f1f1f1":"inherit";const a=this.state.changed.includes(t.iobID);return a?r=Xlt:t.iobID===this.state.lastChanged&&(r=this.props.themeType==="dark"?Klt:Zlt),[m.jsxs("div",{style:{...ht.devLine,background:r},children:[m.jsxs("div",{style:ht.devLineNumber,children:[n+1,"."]}),m.jsx(ue,{style:ht.devLineExpand,onClick:()=>this.onExpand(n),children:t.attributes.length?m.jsx(sp,{badgeContent:t.attributes.length,color:"primary",children:o?m.jsx(Gc,{}):m.jsx(qc,{})}):o?m.jsx(Gc,{}):m.jsx(qc,{})}),m.jsxs("div",{style:{...ht.devLineNameBlock,display:"inline-block",position:"relative"},children:[m.jsx("span",{style:ht.devLineName,children:t.name}),m.jsx("span",{style:ht.devLineDescription,children:t.description}),a?m.jsx(ro,{style:ht.devLineProgress,size:20}):null]}),m.jsx("span",{style:ht.devLineActions,children:M_.renderActions(t)}),m.jsx(ue,{"aria-label":"Edit",style:ht.devLineEdit,onClick:()=>this.onEdit(t.iobID),children:m.jsx(A_,{fontSize:"middle"})}),m.jsx(ue,{"aria-label":"Delete",style:ht.devLineDelete,onClick:()=>this.onAskDelete(t.iobID),children:m.jsx(js,{fontSize:"middle"})})]},`line${n}`),o?this.renderChannels(t,n):null]}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}changeSmartName(t){t&&t.preventDefault(),this.addChanged(this.state.editId,()=>{const n=this.state.editId;this.setState({editId:"",editObjectName:"",lastChanged:n}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.props.socket.getObject(n).then(o=>(V.updateSmartName(o,this.editedSmartName,void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(n,o))).then(()=>this.informInstance(n)).catch(o=>this.props.onError(o))})}renderEditDialog(){return this.state.editId?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>{this.editedSmartName=null,this.setState({editId:"",editedSmartName:""})},"aria-labelledby":"message-dialog-title","aria-describedby":"message-dialog-description",children:[m.jsx(bt,{id:"message-dialog-title",children:this.props.title||E.t("Smart name for %s",this.state.editObjectName)}),m.jsxs(jt,{children:[m.jsxs("p",{children:[m.jsx("span",{children:"ID:"})," ",m.jsx("span",{style:ht.editedId,children:this.state.editId})]}),m.jsx(st,{variant:"standard",style:{width:"100%"},label:E.t("Smart name"),autoFocus:!0,onKeyDown:t=>t.key==="Enter"&&this.changeSmartName(t),onChange:t=>this.editedSmartName=t.target.value,defaultValue:this.state.editedSmartName,helperText:E.t("You can enter several names divided by comma"),margin:"normal"})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.changeSmartName(),color:"primary",startIcon:m.jsx(qn,{}),children:E.t("Ok")}),m.jsx(he,{variant:"contained",startIcon:m.jsx(Dt,{}),color:"grey",onClick:()=>{this.editedSmartName=null,this.setState({editId:"",editedSmartName:""})},children:E.t("Cancel")})]})]}):null}renderConfirmDialog(){return this.state.showConfirmation?m.jsxs(yt,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({showConfirmation:""}),"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[m.jsx(bt,{id:"confirmation-dialog-title",children:this.props.title||E.t("Device %s will be disabled.",this.state.deleteId)}),m.jsx(jt,{children:m.jsx("p",{children:E.t("Are you sure?")})}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"contained",onClick:()=>this.onDelete(),color:"primary",autoFocus:!0,startIcon:m.jsx(js,{}),children:E.t("Delete")}),m.jsx(he,{color:"grey",variant:"contained",onClick:()=>this.setState({showConfirmation:""}),startIcon:m.jsx(Dt,{}),children:E.t("Cancel")})]})]}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:t=>{this.setState({showSelectId:!1}),this.props.socket.getObject(t).then(n=>{if(n){const o=V.getObjectNameFromObj(n,null,{language:E.getLanguage()});V.updateSmartName(n,(o||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(n._id),this.waitForUpdateID=n._id,this.state.lastChanged!==n._id&&(this.setState({lastChanged:n._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),this.props.socket.setObject(n._id,n).then(()=>this.informInstance(n._id)).catch(r=>this.setState({message:r}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectAlisa"):null}renderDevices(){const t=this.state.filter.toLowerCase(),n=[];for(let o=0;othis.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(bt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(jt,{children:[m.jsx(ke,{sx:ht.headerRow,children:m.jsx("div",{style:ht.headerCell,children:E.t("Name")})}),m.jsx("div",{style:ht.tableDiv,children:this.state.devices.map((t,n)=>m.jsx("div",{children:m.jsx("div",{style:ht.tableCell,children:t.name})},n))})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const t=this.state.devices.map(n=>n.name);V.copyToClipboard(t.join(` +`))},color:"primary",startIcon:m.jsx(c_,{}),children:E.t("Copy to clipboard")}),m.jsx(he,{color:"grey",variant:"contained",startIcon:m.jsx(Dt,{}),onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,children:E.t("Close")})]})]}):null}render(){return this.state.loading?m.jsx(ro,{},"alexaProgress"):m.jsxs("form",{style:ht.tab,children:[m.jsx(Mt,{size:"small",color:"secondary","aria-label":"Add",style:ht.button,onClick:()=>this.setState({showSelectId:!0}),children:m.jsx(Pi,{})}),m.jsx(Mt,{size:"small",color:"primary","aria-label":"Refresh",style:ht.button,onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(ro,{size:20}):m.jsx(Bi,{})}),m.jsx(Mt,{style:{...ht.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse,children:m.jsx(O_,{})}),m.jsx(st,{variant:"standard",placeholder:E.t("Filter"),className:this.state.filter,value:this.state.filter,onChange:t=>this.setState({filter:t.target.value}),slotProps:{input:{endAdornment:this.state.filter?m.jsx(ue,{onClick:()=>this.setState({filter:""}),children:m.jsx(D_,{})}):void 0}}}),this.renderDevices(),this.renderMessage(),this.renderEditDialog(),this.getSelectIdDialog(),this.renderConfirmDialog(),this.renderListOfDevices()]},"alexa")}}M_.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired,themeType:L.string,theme:L.object};function Cc(e,t,n){if(typeof t=="string"&&(t=t.split(".")),!e)return null;if(t.length===1)return n&&n[e[t[0]]]?n[e[t[0]]]:e[t[0]];const o=t.shift();return Cc(e[o],t)}function OM(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)return e[t[0]]=n;const o=t.shift();return(e[o]===null||e[o]===void 0)&&(e[o]={}),OM(e[o],t,n)}const Je={tableContainer:{width:"100%",height:"100%",overflow:"auto"},table:{width:"100%",minWidth:800,maxWidth:1920},cell:{paddingTop:0,paddingBottom:0,paddingLeft:4,paddingRight:4},rowMainWithChildren:{},rowMainWithoutChildren:{},rowNoEdit:{opacity:.3},cellExpand:{width:30},cellButton:{width:30},cellHeader:e=>({fontWeight:"bold",background:(e.palette.mode==="dark","#888"),color:e.palette.mode==="dark"?"#EEE":"#111",height:48,wordBreak:"break-word",whiteSpace:"pre"}),width_name_nicknames:{maxWidth:150},width_ioType:{maxWidth:100},width_type:{maxWidth:100},width_displayTraits:{maxWidth:100},width_roomHint:{maxWidth:100},rowSecondary:{fontStyle:"italic"},cellSecondary:{fontSize:10},visuallyHidden:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}};function tT(e,t,n,o){const r=Cc(e,n,o)||"",a=Cc(t,n,o)||"";return ar?1:0}function Qlt(e,t,n){return e==="desc"?(o,r)=>tT(o,r,t,n):(o,r)=>-tT(o,r,t,n)}function ect(e,t){const n=e.map((o,r)=>[o,r]);return n.sort((o,r)=>{const a=t(o[0],r[0]);return a||o[1]-r[1]}),n.map(o=>o[0])}class DM extends p.Component{constructor(t){super(t);let n=window.localStorage.getItem("iot.ghome.opened")||"[]";try{n=JSON.parse(n)||[]}catch{n=[]}Array.isArray(n)||(n=[]),this.state={opened:n,editMode:!1,deleteMode:!1,editData:null,order:"asc",orderBy:this.props.columns[0].field}}renderCell(t,n,o,r){if(this.state.editMode===r&&n.editable!=="never"){let a=Cc(t,n.field);return Array.isArray(a)&&(a=a[0]),m.jsx(gr,{style:{...Je.cell,...o?Je.cellSecondary:void 0,...n.cellStyle},component:"th",children:n.lookup?m.jsx(_n,{variant:"standard",onChange:s=>{const i=this.state.editData?{...this.state.editData}:{};s.target.value===a?delete i[n.field]:i[n.field]=s.target.value,this.setState({editData:i})},value:this.state.editData&&this.state.editData[n.field]||a,children:Object.keys(n.lookup).map(s=>m.jsx(je,{value:s,children:n.lookup[s]}))}):m.jsx(st,{variant:"standard",value:this.state.editData&&this.state.editData[n.field]!==void 0?this.state.editData[n.field]:a,onChange:s=>{const i=this.state.editData?{...this.state.editData}:{};s.target.value===a?delete i[n.field]:i[n.field]=s.target.value,this.setState({editData:i})}})},n.field)}return m.jsx(gr,{style:{...Je.cell,...o?Je.cellSecondary:void 0,...n.cellStyle},component:"th",children:Cc(t,n.field,n.lookup)},n.field)}renderLine(t,n){n=n||0;const o=this.props.data.indexOf(t);if(!t||!n&&t.parentId||n&&!t.parentId)return null;const r=this.props.data.filter(s=>s.parentId===t.id),a=this.state.opened.includes(t.id);return[m.jsxs(_C,{style:{...Je.row,...n?Je.rowSecondary:void 0,...!n&&r.length?Je.rowMainWithChildren:void 0,...!n&&!r.length?Je.rowMainWithoutChildren:void 0,...this.state.editMode!==!1&&this.state.editMode!==o?Je.rowNoEdit:void 0,...this.state.deleteMode!==!1&&this.state.deleteMode!==o?Je.rowNoEdit:void 0},children:[m.jsx(gr,{style:{...Je.cell,...Je.cellExpand,...n?Je.cellSecondary:void 0},children:r.length?m.jsx(ue,{onClick:()=>{const s=[...this.state.opened],i=s.indexOf(t.id);i===-1?(s.push(t.id),s.sort()):s.splice(i,1),this.setState({opened:s})},children:a?m.jsx(uX,{}):m.jsx(TX,{})}):null}),m.jsx(gr,{scope:"row",style:{...Je.cell,...n?Je.cellSecondary:void 0,...this.props.columns[0].cellStyle},children:Cc(t,this.props.columns[0].field,this.props.columns[0].lookup)}),this.props.columns.map((s,i)=>i?this.renderCell(t,s,n,o):null),m.jsx(gr,{style:{...Je.cell,...Je.cellButton},children:this.state.editMode===o||this.state.deleteMode===o?m.jsx(ue,{disabled:this.state.editMode!==!1&&(!this.state.editData||!Object.keys(this.state.editData).length),onClick:()=>{if(this.state.editMode!==!1){const s=JSON.parse(JSON.stringify(t));this.state.editData&&Object.keys(this.state.editData).forEach(i=>OM(s,i,this.state.editData[i])),this.setState({editMode:!1},()=>this.props.onUpdate(s,t))}else this.setState({deleteMode:!1},()=>this.props.onDelete(t))},children:m.jsx(qn,{})}):m.jsx(ue,{disabled:this.state.editMode!==!1,onClick:()=>this.setState({editMode:o,editData:null}),children:m.jsx(Au,{})})}),m.jsx(gr,{style:{...Je.cell,...Je.cellButton},children:this.state.editMode===o||this.state.deleteMode===o?m.jsx(ue,{onClick:()=>this.setState({editMode:!1,deleteMode:!1}),children:m.jsx(Dt,{})}):m.jsx(ue,{disabled:this.state.deleteMode!==!1,onClick:()=>this.setState({deleteMode:o}),children:m.jsx(Ns,{})})})]},t.id),!n&&this.state.opened.includes(t.id)?r.map(s=>this.renderLine(s,n+1)):null]}handleRequestSort(t){const n=this.state.orderBy===t&&this.state.order==="asc";this.setState({order:n?"desc":"asc",orderBy:t})}renderHead(){return m.jsx(JH,{children:m.jsxs(_C,{children:[m.jsx(gr,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je.cellExpand}}),m.jsx(gr,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je[`width_${this.props.columns[0].field.replace(/\./g,"_")}`],...this.props.columns[0].cellStyle||void 0},sortDirection:this.state.orderBy===this.props.columns[0].field?this.state.order:!1,children:m.jsxs(vC,{active:this.state.orderBy===this.props.columns[0].field,direction:this.state.orderBy===this.props.columns[0].field?this.state.order:"asc",onClick:()=>this.handleRequestSort(this.props.columns[0].field),children:[this.props.columns[0].title,this.state.orderBy===this.props.columns[0].field?m.jsx("span",{style:Je.visuallyHidden,children:this.state.order==="desc"?"sorted descending":"sorted ascending"}):null]})}),this.props.columns.map((t,n)=>n?m.jsx(gr,{sx:Je.cellHeader,style:{...Je.cell,...Je[`width_${t.field.replace(/\./g,"_")}`],...t.cellStyle},component:"th",children:m.jsxs(vC,{active:this.state.orderBy===t.field,direction:this.state.orderBy===t.field?this.state.order:"asc",onClick:()=>this.handleRequestSort(t.field),children:[t.title,this.state.orderBy===t.field?m.jsx("span",{style:Je.visuallyHidden,children:this.state.order==="desc"?"sorted descending":"sorted ascending"}):null]})},t.field):null),m.jsx(gr,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je.cellButton}}),m.jsx(gr,{component:"th",sx:Je.cellHeader,style:{...Je.cell,...Je.cellButton}})]})})}render(){const t=this.props.columns?this.props.columns.find(o=>o.field===this.state.orderBy).lookup:"",n=ect(this.props.data,Qlt(this.state.order,this.state.orderBy,t));return m.jsx("div",{style:{...Je.tableContainer,...this.props.style||void 0},className:this.props.className,children:m.jsxs(zH,{style:Je.table,"aria-label":"simple table",size:"small",stickyHeader:!0,children:[this.renderHead(),m.jsx(PH,{children:n.map(o=>this.renderLine(o))})]})})}}DM.propTypes={data:L.array.isRequired,className:L.string,columns:L.array,onUpdate:L.func,onDelete:L.func};const Ln={tab:{height:"100%",overflow:"hidden"},tableDiv:{width:"100%",overflow:"hidden",height:"calc(100% - 48px)"},searchText:{width:150,marginLeft:8,verticalAlign:"middle"},headerRow:e=>({pl:1,background:e.palette.primary.main}),headerCell:{display:"inline-block",verticalAlign:"top",width:"30%"},tableCell:{display:"inline-block",verticalAlign:"top",width:"30%"}},nT=400,oT=400;class $c extends C.Component{constructor(t){super(t),this.state={editedSmartName:"",editId:"",editObjectName:"",deleteId:"",expertMode:window.localStorage.getItem("App.expertMode")!=="true",helpHidden:window.localStorage.getItem("App.helpHidden")==="true",showSelectId:!1,searchText:"",showConfirmation:"",changed:[],devices:[],message:"",filter:"",loading:!0,browse:!1,expanded:[],lastChanged:"",helpHeight:0},this.columns=[{title:E.t("ID"),field:"id",editable:"never",cellStyle:{maxWidth:"12rem",overflow:"hidden",wordBreak:"break-word"}},{title:E.t("Smart names"),field:"name.nicknames"},{title:E.t("ioBType"),field:"ioType",editable:"never",cellStyle:{maxWidth:"4rem",overflow:"hidden",wordBreak:"break-word"}},{title:E.t("Type"),field:"type",lookup:{"action.devices.types.AC_UNIT":"Air conditioning unit","action.devices.types.AIRFRESHENER":"Air Freshener","action.devices.types.AIRPURIFIER":"Air purifier","action.devices.types.AWNING":"Awning","action.devices.types.BLINDS":"Blinds","action.devices.types.BOILER":"Boiler","action.devices.types.CAMERA":"Camera","action.devices.types.COFFEE_MAKER":"Coffee maker","action.devices.types.CURTAIN":"Curtain","action.devices.types.DISHWASHER":"Dishwasher","action.devices.types.DOOR":"Door","action.devices.types.DRYER":"Dryer","action.devices.types.FAN":"Fan","action.devices.types.FIREPLACE":"Fireplace","action.devices.types.GARAGE":"Garage","action.devices.types.GATE":"Gate","action.devices.types.HEATER":"Heater","action.devices.types.HOOD":"Hood","action.devices.types.KETTLE":"Kettle","action.devices.types.LIGHT":"Light","action.devices.types.LOCK":"Lock","action.devices.types.MOP":"Mop","action.devices.types.MICROWAVE":"Microwave","action.devices.types.OUTLET":"Outlet","action.devices.types.OVEN":"Oven","action.devices.types.PERGOLA":"Pergola","action.devices.types.REFRIGERATOR":"Refrigerator","action.devices.types.SCENE":"Scene","action.devices.types.SECURITYSYSTEM":"Security System","action.devices.types.SENSOR":"Sensor","action.devices.types.SHUTTER":"Shutter","action.devices.types.SHOWER":"Shower","action.devices.types.SPEAKER":"Speaker","action.devices.types.SPRINKLER":"Sprinkler","action.devices.types.SWITCH":"Switch","action.devices.types.THERMOSTAT":"Thermostat","action.devices.types.VACUUM":"Vacuum","action.devices.types.VALVE":"Valve","action.devices.types.WASHER":"Washer","action.devices.types.WATERHEATER":"Water heater","action.devices.types.WINDOW":"Window"}},{title:E.t("Function/Trait"),field:"displayTraits",lookup:{"action.devices.traits.Brightness":"Brightness","action.devices.traits.ColorSetting_temperature":"ColorSetting_Temperature","action.devices.traits.ColorSetting_spectrumRGB":"ColorSetting_RGB","action.devices.traits.FanSpeed":"FanSpeed","action.devices.traits.LockUnlock":"LockUnlock","action.devices.traits.Modes":"Modes","action.devices.traits.OnOff":"OnOff","action.devices.traits.OpenClose":"OpenClose","action.devices.traits.Scene":"Scene","action.devices.traits.StartStop":"StartStop","action.devices.traits.TemperatureControl_temperatureSetpointCelsius":"Oven_SetTemp","action.devices.traits.TemperatureControl_temperatureAmbientCelsius":"Oven_StatusTemp","action.devices.traits.TemperatureSetting_thermostatMode":"Thermostat_Mode","action.devices.traits.TemperatureSetting_thermostatTemperatureSetpoint":"Thermostat_SetTemp","action.devices.traits.TemperatureSetting_thermostatTemperatureAmbient":"Thermostat_StatusTemp","action.devices.traits.TemperatureSetting_thermostatHumidityAmbient":"Thermostat_StatusHumidity","action.devices.traits.Toggles":"Toggles","action.devices.traits.Volume":"Volume"}},{title:E.t("Attributes"),field:"displayAttributes",cellStyle:{maxWidth:"12rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0,editComponent:$c.editDisplayAttributesComponent},{title:E.t("Room"),field:"roomHint",editable:"never"},{title:E.t("Auto"),field:"smartEnum",editable:"never",cellStyle:{maxWidth:"3rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0},{title:E.t("Conversation to GH"),field:"displayConv2GH",cellStyle:{maxWidth:"4rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0,editComponent:$c.editDisplayConv2GH},{title:E.t("Conversation to ioB"),field:"displayConv2iob",cellStyle:{maxWidth:"4rem",overflow:"hidden",wordBreak:"break-word"},expertMode:!0,editComponent:$c.editDisplayConv2iob}],this.timerChanged=null,this.browseTimer=null,this.browseTimerCount=0,this.editedSmartName="",this.waitForUpdateID=null,this.onReadyUpdateBound=this.onReadyUpdate.bind(this),this.onResultUpdateBound=this.onResultUpdate.bind(this),this.helpRef=p.createRef(),this.props.socket.getObject(`system.adapter.${this.props.adapterName}.${this.props.instance}`).then(n=>this.props.socket.getState(`system.adapter.${this.props.adapterName}.${this.props.instance}.alive`).then(o=>{!n||!n.common||!n.common.enabled&&(!o||!o.val)?this.setState({message:E.t("Instance must be enabled"),loading:!1,devices:[]}):this.browse()}))}static editDisplayConv2GH(t){return m.jsxs("div",{children:["Conversation to Google Home = function(value){",m.jsx("br",{}),m.jsx("textarea",{rows:4,style:{width:"100%",resize:"vertical"},value:t.value,onChange:n=>t.onChange(n.target.value)}),"}"]})}static editDisplayConv2iob(t){return m.jsxs("div",{children:["Conversation to ioBroker = function(value){",m.jsx("br",{}),m.jsx("textarea",{rows:4,style:{width:"100%",resize:"vertical"},value:t.value,onChange:n=>t.onChange(n.target.value)}),"}"]})}static editDisplayAttributesComponent(t){return m.jsx("textarea",{rows:4,style:{width:"100%",resize:"vertical"},value:t.value,onChange:n=>t.onChange(n.target.value)})}browse(t){Date.now()-this.lastBrowse<500||(this.lastBrowse=Date.now(),t?this.setState({loading:!0,browse:!0}):this.setState({browse:!0}),this.browseTimer=setTimeout(()=>{console.log("Browse timeout!"),this.browseTimer=null,this.browseTimerCount++,this.browseTimerCount<5?this.browse(t):this.setState({message:E.t("Cannot read devices!")})},1e4),this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"browseGH",null).then(n=>{this.browseTimer&&clearTimeout(this.browseTimer),this.browseTimerCount=0,this.browseTimer=null,n&&n.error?this.setState({message:E.t(n.error)}):(this.waitForUpdateID&&(this.onEdit(this.waitForUpdateID,n)||this.setState({message:E.t("Device %s was not added",this.waitForUpdateID)}),this.waitForUpdateID=null),this.setState({devices:n,loading:!1,changed:[],browse:!1}))}).catch(n=>this.setState({message:E.t(n),browse:!1})))}onReadyUpdate(t,n){console.log(`Update ${t} ${n?`${n.val}/${n.ack}`:"null"}`),n&&n.ack===!0&&n.val===!0&&(this.devTimer&&clearTimeout(this.devTimer),this.devTimer=setTimeout(()=>{this.devTimer=null,this.browse()},10))}onResultUpdate(t){t&&t.ack===!0&&t.val&&this.setState({message:t.val})}componentDidMount(){this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesGH`,this.onReadyUpdateBound),this.props.socket.subscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound)}componentWillUnmount(){this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesGH`,this.onReadyUpdateBound),this.props.socket.unsubscribeState(`${this.props.adapterName}.${this.props.instance}.smart.updatesResult`,this.onResultUpdateBound),this.timerChanged&&(clearTimeout(this.timerChanged),this.timerChanged=null)}informInstance(t){this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"update",t)}addChanged(t,n){const o=JSON.parse(JSON.stringify(this.state.changed));o.includes(t)?n&&n():(o.push(t),this.setState({changed:o},()=>n&&n()))}onEdit(t,n){n=n||this.state.devices;const o=n.find(r=>r.id===t);return o?(this.props.socket.getObject(t).then(r=>{let a=o.common&&o.common.smartName?o.common.smartName:o._id;typeof a=="object"&&a&&(a=a[E.getLanguage()]||a.en),this.editedSmartName=a,this.setState({editId:t,editedSmartName:a,editObjectName:V.getObjectNameFromObj(r,null,{language:E.getLanguage()})})}),!0):!1}onDelete(){const t=this.state.deleteId;this.addChanged(t,()=>{this.props.socket.getObject(t).then(n=>(V.disableSmartName(n,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.props.socket.setObject(t,n))).then(()=>{this.setState({deleteId:"",showConfirmation:!1,lastChanged:t}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4),this.informInstance(t)}).catch(n=>this.props.onError(n))})}onGHParamsChange(t,n){this.addChanged(t.id,()=>{this.props.socket.getObject(t.id).then(o=>{if(!o||!o.common)return this.setState({message:E.t("Object %s is invalid. No common found.",t.id)});if(V.updateSmartName(o,this.editedSmartName,void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),JSON.stringify(t.displayTraits)!==JSON.stringify(n.displayTraits)&&(Array.isArray(t.displayTraits)||(t.displayTraits=[t.displayTraits]),o.common.smartName.ghTraits=t.displayTraits),t.type!==n.type&&(o.common.smartName.ghType=t.type),t.displayAttributes!==n.displayAttributes){o.common.smartName.ghAttributes=t.displayAttributes;try{o.common.smartName.ghAttributes&&JSON.parse(o.common.smartName.ghAttributes)}catch{this.setState({message:E.t("Attributes has not correct JSON format.")})}}return t.conv2GH&&(o.common.smartName.ghConv2GH=t.displayConv2GH),t.conv2iob&&(o.common.smartName.ghConv2iob=t.displayConv2iob),this.props.socket.setObject(t.id,o)}).then(()=>this.informInstance(t.id)).catch(o=>this.props.onError(o))})}renderMessage(){return this.state.message?m.jsx(Yp,{text:this.state.message,onClose:()=>this.setState({message:""})}):null}getSelectIdDialog(){return this.state.showSelectId?m.jsx(vd,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,selected:"",types:["state"],onClose:()=>this.setState({showSelectId:!1}),onOk:t=>{this.setState({showSelectId:!1}),this.props.socket.getObject(t).then(n=>{if(n){if(!n.common){this.setState({message:E.t("Object %s is invalid. No common found.",t)});return}const o=V.getObjectNameFromObj(n,null,{language:E.getLanguage()});V.updateSmartName(n,(o||E.t("Device name")).replace(/[-_.]+/g," "),void 0,void 0,`${this.props.adapterName}.${this.props.instance}`,this.props.native.noCommon),this.addChanged(n._id),this.waitForUpdateID=n._id,this.state.lastChanged!==n._id&&(this.setState({lastChanged:n._id}),this.timerChanged&&clearTimeout(this.timerChanged),this.timerChanged=setTimeout(()=>{this.setState({lastChanged:""}),this.timerChanged=null},3e4)),n.common.smartName?(n.common.smartName.ghType="action.devices.types.LIGHT",n.common.smartName.ghTraits=["action.devices.traits.OnOff"]):(n.common.smartName={ghType:"action.devices.types.LIGHT"},n.common.smartName={ghTraits:["action.devices.traits.OnOff"]}),this.props.socket.setObject(n._id,n).then(()=>{this.informInstance(n._id),this.setState({message:E.t("Please add type and trait to complete the Google Home state.")})}).catch(r=>this.setState({message:r}))}else this.setState({message:E.t("Invalid ID")})})}},"dialogSelectGoogle"):null}renderListOfDevices(){return this.state.showListOfDevices?m.jsxs(yt,{open:!0,maxWidth:"xl",fullWidth:!0,onClose:()=>this.setState({showListOfDevices:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsxs(bt,{id:"alert-dialog-title",children:[E.t("List of devices to print out, e.g. to give all device names to your partner.")," ",m.jsx("span",{role:"img","aria-label":"smile",children:"😄"})]}),m.jsxs(jt,{children:[m.jsxs(ke,{sx:Ln.headerRow,children:[m.jsx("div",{style:Ln.headerCell,children:E.t("Name")}),m.jsx("div",{style:Ln.headerCell,children:E.t("Function")}),m.jsx("div",{style:Ln.headerCell,children:E.t("Room")})]}),m.jsx("div",{style:Ln.tableDiv,children:this.state.devices.map((t,n)=>m.jsxs("div",{children:[m.jsx("div",{style:Ln.tableCell,children:t.name.nicknames.join(", ")}),m.jsx("div",{style:Ln.tableCell,children:t.displayTraits.map(o=>o.replace("action.devices.traits.","")).join(", ")}),m.jsx("div",{style:Ln.tableCell,children:t.roomHint})]},n))})]}),m.jsxs(Nt,{children:[m.jsx(he,{variant:"outlined",onClick:()=>{this.setState({showListOfDevices:!1});const t=this.state.devices.map(n=>`${n.name.nicknames.join(", ")} ${n.displayTraits} ${n.roomHint}`);V.copyToClipboard(t.join(` +`))},color:"primary",startIcon:m.jsx(c_,{}),children:E.t("Copy to clipboard")}),m.jsx(he,{color:"grey",startIcon:m.jsx(Dt,{}),variant:"contained",onClick:()=>this.setState({showListOfDevices:!1}),autoFocus:!0,children:E.t("Close")})]})]}):null}renderInstructions(){const t=window.innerHeight>nT&&window.innerWidth>oT;if(this.state.helpHidden||this.props.smallDisplay||!t)return null;const n=E.t("manualModeHint");return m.jsxs("div",{style:{width:"100%"},ref:this.helpRef,children:[m.jsxs("div",{style:{marginTop:"4rem",display:"flex"},children:[m.jsxs("div",{style:{flex:"50%"},children:[m.jsx("div",{style:{fontWeight:"bold"},children:E.t("Auto Mode")}),m.jsx("div",{style:{marginTop:"0.8rem",marginRight:"0.8rem"},children:E.t("To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung")})]}),m.jsxs("div",{style:{flex:"50%"},children:[m.jsx("div",{style:{fontWeight:"bold"},children:E.t("Manual Mode")}),m.jsx("span",{children:V.renderTextWithA(n)})]})]}),m.jsx("br",{}),m.jsx("div",{style:{flex:"100%"},children:m.jsx("div",{style:{fontWeight:"bold"},children:V.renderTextWithA(E.t("For help use this forum"))})})]})}renderToolbar(){const t=window.innerHeight>nT&&window.innerWidth>oT;return m.jsxs(sw,{variant:"dense",children:[m.jsx(Mt,{size:"small",color:"secondary","aria-label":"Add",style:Ln.button,onClick:()=>this.setState({showSelectId:!0}),children:m.jsx(Pi,{})}),m.jsx(Mt,{style:{...Ln.button,marginLeft:"1rem"},size:"small",color:"primary","aria-label":"Refresh",onClick:()=>this.browse(!0),disabled:this.state.browse,children:this.state.browse?m.jsx(ro,{size:20}):m.jsx(Bi,{})}),t&&!this.state.hideHelp?m.jsx(Mt,{style:{...Ln.button,marginLeft:"1rem"},size:"small",color:this.state.helpHidden?"default":"primary","aria-label":"Help",title:E.t("Show/Hide help"),onClick:()=>{window.localStorage.setItem("App.helpHidden",this.state.helpHidden?"false":"true"),this.setState({helpHidden:!this.state.helpHidden})},disabled:this.state.browse,children:m.jsx($lt,{})}):null,m.jsx(Mt,{style:{...Ln.button,marginLeft:"1rem"},size:"small",color:this.state.expertMode?"primary":"default","aria-label":"Help",title:E.t("Toggle expert mode"),onClick:()=>{window.localStorage.setItem("App.expertMode",this.state.expertMode?"false":"true"),this.setState({expertMode:!this.state.expertMode})},disabled:this.state.browse,children:m.jsx(Lm,{})}),m.jsx(Mt,{style:{...Ln.button,marginLeft:"1rem"},title:E.t("Show all devices for print out"),size:"small","aria-label":"List of devices",onClick:()=>this.setState({showListOfDevices:!0}),disabled:this.state.browse,children:m.jsx(O_,{})}),this.props.smallDisplay?null:m.jsx(st,{variant:"standard",style:Ln.searchText,label:E.t("Filter"),value:this.state.searchText,onChange:n=>this.setState({searchText:n.target.value}),slotProps:{input:{endAdornment:this.state.searchText?m.jsx(ue,{onClick:()=>this.setState({searchText:""}),children:m.jsx(D_,{})}):void 0}}})]})}componentDidUpdate(){if(this.helpRef.current){const t=this.helpRef.current.clientHeight;this.state.helpHeight!==t&&(!this.state.helpHidden&&t+64+48+200>window.innerHeight?setTimeout(()=>this.setState({helpHeight:t,helpHidden:!0,hideHelp:!0}),50):setTimeout(()=>this.setState({helpHeight:t}),50))}else this.state.helpHeight&&setTimeout(()=>this.setState({helpHeight:0}),50)}render(){if(this.state.loading)return m.jsx(ro,{},"alexaProgress");const t=this.state.searchText.toLowerCase(),n=this.state.searchText?this.state.devices.filter(o=>{var r,a,s,i,l,d;return((a=(r=o.name)==null?void 0:r.name)==null?void 0:a.toLowerCase().includes(t))||((i=(s=o.name)==null?void 0:s.defaultNames)==null?void 0:i.find(u=>u.toLowerCase().includes(t)))||((d=(l=o.name)==null?void 0:l.nicknames)==null?void 0:d.find(u=>u.toLowerCase().includes(t)))}):this.state.devices;return m.jsxs("form",{style:Ln.tab,children:[this.renderToolbar(),this.renderInstructions(),m.jsx("div",{style:{...Ln.tableDiv,height:`calc(100% - ${48+(this.state.helpHeight?this.state.helpHeight+64:0)}px)`},children:m.jsx(DM,{columns:this.state.expertMode?this.columns:this.columns.filter(o=>!o.expertMode),data:n,onUpdate:(o,r)=>{o.name.nicknames&&Array.isArray(o.name.nicknames)&&(o.name.nicknames=o.name.nicknames.join(",")),this.editedSmartName=o.name.nicknames,this.setState({editId:o.id},()=>{!o.type||!o.displayTraits?this.setState({browse:!0,message:E.t("Please add action and trait to complete the Google Home state.")}):this.setState({browse:!0}),this.onGHParamsChange(o,r);const a=JSON.parse(JSON.stringify(this.state.devices));a[a.indexOf(r)]=o,this.setState({...this.state,devices:a})})},onDelete:o=>(o.smartEnum==="X"?this.setState({deleteId:o.id}):this.props.socket.getObject(o.id).then(r=>(r&&r.common&&r.common.smartName&&(delete r.common.smartName.ghTraits,delete r.common.smartName.ghType,delete r.common.smartName.ghAttributes),this.props.socket.setObject(o.id,r))),new Promise(r=>{setTimeout(()=>{this.state.deleteId?this.onDelete():this.informInstance(o.id),r();const a=JSON.parse(JSON.stringify(this.state.devices));a.splice(a.indexOf(o),1),this.setState({...this.state,devices:a})},600)}))})}),this.renderMessage(),this.getSelectIdDialog(),this.renderListOfDevices()]},"gh")}}$c.propTypes={native:L.object.isRequired,instance:L.number.isRequired,adapterName:L.string.isRequired,onError:L.func,socket:L.object.isRequired,theme:L.object};const tct=()=>e=>t=>m.jsx(e,{smallDisplay:_5("(max-width:600px)"),...t}),nct=tct()($c),oct="Active",rct="Addresses",act="Cancel",sct="Close",ict="Commands",lct="Default",cct="Dimmer",dct="Filter",uct="Functions",pct="Instance",hct="Language",fct="Message",mct="off",gct="Ok",_ct="on",vct="Options",yct="Review",bct="Rooms",wct="Save",Sct="Select",xct="Type",Cct="Types",$ct="Value",kct="clear",Ect="disabled",Tct='Before writing to support be sure you have read and understand the instructions of the web page: https://www.iobroker.net',Oct='If you still have issue with the connection to Iot, you can request support im Forum',Dct='and only after that you should write an email to support@iobroker.com',Act='No iobroker.pro account? Buy it on https://iobroker.pro for validated access or get for free, but limited access.',Mct="divided by comma. Use * to allow all services.",Nct="You can find your key here under 'Documentation'",jct="Name was modified by user",zct="If you use your own cloud, you can allow the use of self-signed certificates for the cloud.",Rct="This key is required to communicate with a cloud. You can get the API-KEY on https://iobroker.net and it looks like nickname_f1f439a0-001a-11e7-bc64-92361f002671",Ict="Normally you do not need to change it. Only required if you plan to use your own cloud.",Lct="Define how to concatenate Room and Function. E.g. with 'in': Light in living room.",Fct="Some groups consist of mixed devices: dimmers and switches. It is allowed to control them with ON and OFF commands and with percents",Pct="Normally the names looks like room_function. Here you can switch it to function_room.",Bct="Web instance, which will be shown for your connections from cloud.",Hct="You can define the languages to switch fast between US Alexa Skill and DE Alexa Skill.",Uct="If enabled, the settings will be stored only for this instance. So in the another instance the other names could be set.",Wct="For every command the text response will be generated. You can define here the Object ID , where this text must be written to. E.g. sayit.0.tts.text.",Vct="Workaround for missing connection to Alexa after the connection to cloud was lost. With this option you can restart adapter after each disconnection and it will work.",Gct="You cannot use % in password. We are working on the fix.",qct=`Password must be at least 8 characters long and must have numbers, upper and lower case letters. Please change it in the ioBroker.pro profile +`,Xct="If you made a restore from backup, or moved your instance from one device to other or deleted the IoT instance and added it again you must load the connection security certificates with this button",Jct="If the login to the Alexa Skill/Google Action/Alisa with the ioBroker.pro login data fails, then please press the below button.",Yct='Any questions in any language please ask here in forum: link',Kct="Please select a TYPE and a TRAIT after adding a state. To add multiple traits add a different id and trait but same smart name, type and room. Comma separated for the multiple smart names. To assign a room please use the ioBroker Enums/Aufzählungen. With attributes you can for example set a range for the color temperature Infos about Attributes you can find here. Empty attribute is {}",Zct="Search",Qct="Name",edt="Room",tdt="ID",ndt="IoB Type",odt="Attributes",rdt="Automatically",adt="Delete",sdt="Dimmer",idt="On/Off",ldt="Color",cdt="Detection",ddt="Lock",udt="Mode",pdt="Muted",hdt="Percentage",fdt="Temperature",mdt="Volume",gdt="socket",_dt="light",vdt="dimmer",ydt="thermostat",bdt="window blinds",wdt="gate",Sdt="lock",xdt="hue",Cdt="motion",$dt="slider",kdt="temperature",Edt="window",Tdt="Thermostat",Odt="Light",Ddt="Air condition",Adt="Window blinds",Mdt="Contact sensor",Ndt="Control",jdt="Door",zdt="Gate",Rdt="Hue",Idt="Motion",Ldt="Slider",Fdt="Socket",Pdt="Vacuum cleaner",Bdt="Volume group",Hdt="Window",Udt="Sensor",Wdt="Window blinds",Vdt="Toggle",Gdt={"(Set to 0 if behavior not desired)":"(Set to 0 if behavior not desired)","(you can separate names with comma)":"You can enter several names divided by comma",Active:oct,"Add device":"Add device","Add service":"Add service",Addresses:rct,"Alexa devices":"Alexa devices","Alisa devices":"Alisa devices","Allow admin access (only pro)":"Allow admin access (only pro)","Allow self-signed certificates":"Allow self-signed certificates","Amazon Alexa":"Amazon Alexa","Are you sure?":"Are you sure?","Attributes has not correct JSON format.":"Attributes is not in the correct JSON format","Authentication must be disabled. You can create second instance extra for cloud.":"Authentication must be disabled. You can create a second instance extra for the cloud.",Cancel:act,"Cannot add this object":"Cannot add this object, because not supported.","Cannot read devices!":"Cannot read devices!","Certificates will be updated after initiated restart":"Certificates will be updated after initiated restart","Certificates will be updated after start":"Certificates will be updated after start","Click now Get new connection certificates to request new temporary password":'Click now "Get new connection certificates" to request new temporary password',Close:sct,"Cloud URL":"Cloud URL","Cloud adapter settings":"Cloud adapter settings",Commands:ict,"Concatenate words with":"Concatenate words with","Connection timeout":"Connection timeout(ms)","Debug outputs":"Debug outputs","Decrement color temperature":"Decrement color temperature","Decrement percentage":"Decrement percentage","Decrement target temperature":"Decrement target temperature",Default:lct,"Device %s was not added":"Device %s was not added","Device will be deactivated.":"Device will be deactivated.","Device will be disabled.":"Device %s will be disabled.",Dimmer:cct,"Duplicate name":"Duplicate name","Edit smart name":"Edit smart name",Error:"Error","Extended options":"Extended options",Filter:dct,"For help use this forum":"For help, visit this forum post",Functions:uct,"Get actual temperature":"Get actual temperature","Get new connection certificates":"Get new connection certificates","Get new service URL key":"Get new service URL key","Get target temperature":"Get target temperature","Google Home":"Google Home","IFTTT key":"IFTTT key","Increment color temperature":"Increment color temperature","Increment percentage":"Increment percentage","Increment target temperature":"Increment target temperature",Instance:pct,"Instance does not exists":"Instance does not exists","Instance is not active.":"Instance is not active.","Instance must be enabled":"Instance must be enabled","Instance must run to deliver the data":"The instance must run to deliver the data","Invalid object":"Invalid object",Language:hct,"Load configuration from file":"Load configuration from file",Message:fct,"OFF level for switches":"OFF level for switches","OFF level for switches in %":"OFF level for switches in %",Off:mct,Ok:gct,On:_ct,"On/Off":"On/Off",Options:vct,"Personal settings (only pro)":"Personal settings (only pro)","Ping timeout:":"Ping timeout(ms)","Place function in names first":"Place function in names first","Please add action and trait to complete the Google Home state.":"Please add action and trait to complete the Google Home state.","Please add type and trait to complete the Google Home state.":"Please add type and trait to complete the Google Home state.","Please select object ID...":"Please select object ID...","Please write your email only in lower case letters":"Please write your email only in lower case letters","Read lock state":"Read lock state","Replace in names":"Replace in names","Request email with password one more time":"Request email with password one more time","Restart on disconnect":"Restart on disconnect",Review:yct,Rooms:bct,Save:wct,"Save and close":"Save and close","Save configuration to file":"Save configuration to file","Save settings and the names will be changed":"Save settings and the names will be changed",Select:Sct,"Service names":"Service names","Services and IFTTT":"Services and IFTTT","Set color":"Set color","Set color temperature":"Set color temperature","Set lock state":"Set lock state","Set percentage":"Set percentage","Set target temperature":"Set target temperature","Smart Devices":"Smart Devices","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Smart enums","Smart name":"Smart name","Smart name for %s":"Smart name for %s","To apply this setting, the restart of adapter must be done. Agree?":"To apply this setting, the adapter must be restarted. Agree?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"For automatic detection, under objects assign a channel (device if no channel is available) to a room and function. It is not sufficient to assign the room to a state or device. Rooms/functions can be added under enumeration (indicated by the white arrow at the top right) and must be activated in the IoT adapter under Intelligent enumeration. In order to automatically recognize manual states, the state must be deleted.","Turn off":"Turn off","Turn on":"Turn on",Type:xct,Types:Cct,"Use Nightscout instance":"Use Nightscout instance","Use following link for IFTTT":"Use following link for IFTTT","Use following link for custom service":"Use following link for custom service","Use text2command instance":"Use text2command instance",Value:$ct,"White list for services":"White list for services","Write response to":"Write response to","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"You can enter several names divided by comma","amazon link":"If you use the Alexa Skill, please write a review for us here.
Examples can be found here.","by ON":"by ON",clear:kct,default:"default",disabled:Ect,help_link_tip1:Tct,help_link_tip2:Oct,help_link_tip3:Dct,help_tip:Act,info_allowedServices:Mct,info_iftttKey:Nct,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Password","last value":"no value","omit value":"omit value",modified:jct,"no type":"no type",tooltip_allowSelfSignedCertificate:zct,tooltip_apikey:Rct,tooltip_cloudUrl:Ict,tooltip_concatWord:Lct,tooltip_deviceOffLevel:Fct,tooltip_functionFirst:Pct,tooltip_instance:Bct,tooltip_language:Hct,tooltip_noCommon:Uct,tooltip_responseOID:Wct,tooltip_restartOnDisconnect:Vct,"Short answer for blood sugar":"Short answer for blood sugar",cannot_use_password:Gct,invalid_password_warning:qct,new_certs_tip:Xct,new_credentials_tip:Jct,"Create IoT credentials anew":"Create IoT credentials anew",forum_tip:Yct,"Save settings before pressing this button":"Save settings before pressing this button","Auto Mode":"Auto Mode","Manual Mode":"Manual Mode",manualModeHint:Kct,"not activated":"not activated","Google devices":"Google devices","Show/Hide help":"Show/Hide help","Show all devices for print out":"Show all devices for print out",Search:Zct,"List of devices to print out, e.g. to give all device names to your partner.":"List of devices to print out, e.g. to give all device names to your partner.",Name:Qct,Function:"Function",Room:edt,"Copy to clipboard":"Copy to clipboard","Toggle expert mode":"Toggle expert mode",ID:tdt,"Smart names":"Smart names",ioBType:ndt,"Function/Trait":"Function/Trait",Attributes:odt,Auto:rdt,"Conversation to GH":"Convert to GH","Conversation to ioB":"Convert to ioB","Information: The skill linking process was changed!":"Information: The skill linking process was changed!","The linking process has been changed for a few months.":"The linking process has been changed for a few months.","Now there is no temporary password that will be sent by email.":"Now there is no temporary password that will be sent by email.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"The password is equal with ioBroker.pro and with password that was entered here in the settings!","Not understood":"Not understood","Roger that":"Roger that","Read blood sugar from":"Read blood sugar from","Get actual humidity":"Get actual humidity","Get motion":"Get motion","Get contact":"Get contact status","Too many devices (%s) configured. Max number is 300":"Too many devices (%s) configured. Max number is 300!","Allow remote access":"Allow remote access","Admin instance":"Admin instance","Web instance":"Web instance","Device %s will be disabled.":"Device %s will be disabled.",Delete:adt,Brightness:sdt,Power:idt,"Color temperature":"Color temperature",Color:ldt,Detection:cdt,Lock:ddt,Mode:udt,Muted:pdt,Percentage:hdt,"Set point":"Set point",Temperature:fdt,"Thermostat mode":"Thermostat mode",Volume:mdt,socket:gdt,light:_dt,dimmer:vdt,thermostat:ydt,blind:bdt,gate:wdt,lock:Sdt,hue:xdt,motion:Cdt,slider:$dt,temperature:kdt,window:Edt,Thermostat:Tdt,Light:Odt,AirCondition:Ddt,Blind:Adt,ContactSensor:Mdt,Control:Ndt,Door:jdt,Gate:zdt,Hue:Rdt,Motion:Idt,Slider:Ldt,Socket:Fdt,VacuumCleaner:Pdt,VolumeGroup:Bdt,Window:Hdt,"Window sensor":"Window sensor","Volume group":"Volume group","Vacuum cleaner":"Vacuum cleaner",Sensor:Udt,"Door sensor":"Door sensor","Color HUE":"Color HUE",Blinds:Wdt,"Grouped from %s and %s":"Grouped from %s and %s","Default toggle behaviour (Only alexa v3)":"Default toggle behaviour (Only alexa v3)","Do not toggle":"Do not toggle",Toggle:Vdt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"This service is reserved for the ioBroker.visu app. Please use another service name."},qdt="Aktiv",Xdt="Adressen",Jdt="Abbrechen",Ydt="Schließen",Kdt="Befehle",Zdt="Standard",Qdt="Dimmer",eut="Filter",tut="Funktionen",nut="Instanz",out="Sprache",rut="Nachricht",aut="aus",sut="Ok",iut="an",lut="Einstellungen",cut="Rezension",dut="Räume",uut="Speichern",put="Auswählen",hut="Typ",fut="Typen",mut="Wert",gut="löschen",_ut="deaktiviert",vut='Stellen Sie vor dem Schreiben an den Support sicher, dass Sie die Anweisungen auf der Webseite gelesen und verstanden haben: https://www.iobroker.net',yut='Wenn Sie immer noch Probleme mit der Verbindung zu Iot haben, können Sie im Forum Support anfordern',but='und erst danach sollten Sie eine E-Mail an support@iobroker.com schreiben',wut='Kein iobroker.pro-Konto? Kaufen Sie es auf https://iobroker.pro für den validierten Zugriff oder erhalten Sie kostenlosen, aber eingeschränkten Zugriff.',Sut="durch Komma getrennt. Benutze * um alle Services zu erlauben.",xut="Der Schlüssel kann hier unter 'Documentation' gefunden werden",Cut="Der Name wurde vom Benutzer geändert",$ut="Wenn man eine eigene Cloud verwendet, man kann die Benutzung von selbst-signierten Zertifikaten erlauben.",kut="Dieser Schlüssel wird benötigt um mit der Cloud zu kommunizieren. Man kann den Schlüssel unter https://iobroker.net bekommen. Es sieht wie folgt aus nickname_f1f439a0-001a-11e7-bc64-92361f002671",Eut="Normalerweise muss diese Option nicht geändert werden. Dies ist nur notwendig, wenn man eigenen Cloud verwendet.",Tut="Damit wird definiert wie Funktion und Raum miteinander verbunden werden; z.B. mit 'im': Licht im Schlafzimmer",Out="Gruppen können aus gemischten Geräten (Schaltern und Dimmern) bestehen. Sie können mit ON/OFF sowie Prozentwerten angesteuert werden, hier kann definiert werden welcher Prozentsatz OFF entspricht.",Dut="Die automatischen Namen werden im Schema Raum-Funktion generiert. Hiermit kann man es auf Funktion-Raum geändert werden.",Aut="Web Instanz, die für ihre Anfragen aus dem Cloud angezeigt wird.",Mut="Man kann hier die Sprache definieren um zwischen US Alexa Skill und DE Alexa Skill umschalten zu können",Nut="Wenn diese Option aktiviert wird, so werden die Einstellungen nur für diese Instanz gespeichert. So ist es möglich in einer anderen Instanz andere Namen zu setzen.",jut="Für jedes Kommando wird eine Textantwort generiert. Hier kannst du die Objekt ID angeben, an welche die Textantwort gesendet werden soll, z.B. sayit.0.tts.text.",zut="Workaround für fehlende Kommunikation mit Alexa nach Verbindungsabbruch. Damit kann man zwingen den Adapter neu zu starten und das Problem umgehen.",Rut="Sie können nicht % im Passwort verwenden. Wir arbeiten an der Lösung.",Iut=`Das Passwort muss mindestens 8 Zeichen lang sein und Zahlen sowie Groß- und Kleinbuchstaben enthalten. Bitte ändern Sie es im ioBroker.pro-Profil +`,Lut="Wenn Sie eine Wiederherstellung aus einer Sicherung durchgeführt oder Ihre Instanz von einem Gerät auf ein anderes verschoben oder die IoT-Instanz gelöscht und erneut hinzugefügt haben, müssen Sie die Verbindungssicherheitszertifikate mit diesem Knopf herunterladen.",Fut="Sollte die Anmeldung am Alexa Skill/Google Action/Alisa mit den ioBroker.pro-Anmeldedaten fehlschlagen, dann drücken Sie bitte den untenstehenden Button.",Put='Bei Fragen in einer beliebigen Sprache wenden Sie sich bitte hier im Forum an: Link ',But="Bitte wählen Sie einen TYPE und einen TRAIT nach dem Hinzufügen eines Status. Um mehrere Merkmale hinzuzufügen, fügen Sie eine andere ID und ein anderes Merkmal hinzu, jedoch denselben intelligenten Namen, Typ und Raum. Komma getrennt für die mehreren intelligenten Namen. Um einen Raum zuzuweisen, verwenden Sie bitte die ioBroker Enums/Aufzählungen. Mit Attributen können Sie beispielsweise einen Bereich für die Farbtemperatur festlegen. Infos zu Attribute finden Sie hier. Das leere Attribut ist {}",Hut="Suche",Uut="Name",Wut="Raum",Vut="ID",Gut="IoB-Typ",qut="Attribute",Xut="Automatisch",Jut="Löschen",Yut="Dimmer",Kut="An/Aus",Zut="Farbe",Qut="Erkennung",ept="Sperren",tpt="Modus",npt="Stummgeschaltet",opt="Prozentsatz",rpt="Temperatur",apt="Volumen",spt="Steckdose",ipt="Licht",lpt="Dimmer",cpt="Thermostat",dpt="Fensterrollos",upt="Tor",ppt="sperren",hpt="Farbton",fpt="Bewegung",mpt="Schieberegler",gpt="Temperatur",_pt="Fenster",vpt="Thermostat",ypt="Licht",bpt="Klimaanlage",wpt="Fensterrollos",Spt="Kontaktsensor",xpt="Kontrolle",Cpt="Tür",$pt="Tor",kpt="Farbton",Ept="Bewegung",Tpt="Schieberegler",Opt="Steckdose",Dpt="Staubsauger",Apt="Volumengruppe",Mpt="Fenster",Npt="Sensor",jpt="Fensterrollos",zpt="Umschalten",Rpt={"(Set to 0 if behavior not desired)":"(Auf 0 setzten, falls das Verhalten unerwünscht ist)","(you can separate names with comma)":"Mehrere Namen können separiert mit Kommas angegeben werden",Active:qdt,"Add device":"Gerät hinzufügen","Add service":"Dienst hinzufügen",Addresses:Xdt,"Alexa devices":"Alexa-Geräte","Alisa devices":"Alisa Geräte","Allow admin access (only pro)":"Erlaube Zugriff auf Admin (nur pro)","Allow self-signed certificates":"Erlaube selbst-signierte Zertifikate","Amazon Alexa":"Amazon Alexa","Are you sure?":"Wirklich sicher?","Attributes has not correct JSON format.":"Attributes ist nicht im korrekten JSON Format","Authentication must be disabled. You can create second instance extra for cloud.":"Die Authentifizierung muss deaktiviert sein. Sie können zweite Instanz extra für Cloud erstellen.",Cancel:Jdt,"Cannot add this object":"Dieses Objekt kann nicht hinzugefügt werden, da es nicht unterstützt wird.","Cannot read devices!":"Geräte können nicht gelesen werden!","Certificates will be updated after initiated restart":"Zertifikate werden nach dem Neustart aktualisiert","Certificates will be updated after start":"Zertifikate werden nach dem Start aktualisiert","Click now Get new connection certificates to request new temporary password":'Klicken Sie jetzt auf "Neue Verbindungszertifikate anfordern", um ein neues temporäres Passwort anzufordern',Close:Ydt,"Cloud URL":"Cloud-URL","Cloud adapter settings":"Einstellungen für Cloud-Adapter",Commands:Kdt,"Concatenate words with":"Verbinde Raum und Funktion mit","Connection timeout":"Verbindungs-Timeout(ms)","Debug outputs":"Ausgaben debuggen","Decrement color temperature":"Verringern der Farbtemperatur","Decrement percentage":"Prozentsatz der Verringerung","Decrement target temperature":"Solltemperatur verringern",Default:Zdt,"Device %s was not added":"Gerät %s wurde nicht hinzugefügt","Device will be deactivated.":"Gerät wird für die Sprachsteuerung deaktiviert.","Device will be disabled.":"Gerät %s wird aus der Liste entfernt.",Dimmer:Qdt,"Duplicate name":"Name wurde schon benutzt","Edit smart name":"Smartname editieren",Error:"Fehler","Extended options":"Erweiterte Einstellungen",Filter:eut,"For help use this forum":"Für Hilfe besuche diesen Forumbeitrag",Functions:tut,"Get actual temperature":"Aktuelle Temperatur abrufen","Get new connection certificates":"Neue Verbindungszertifikate anfordern","Get new service URL key":"Neuen Service-URL-Schlüssel abrufen","Get target temperature":"Solltemperatur abrufen","Google Home":"Google Home","IFTTT key":"IFTTT key","Increment color temperature":"Erhöhung der Farbtemperatur","Increment percentage":"Prozentsatz erhöhen","Increment target temperature":"Solltemperatur erhöhen",Instance:nut,"Instance does not exists":"Instanz existiert nicht","Instance is not active.":"Instanz ist nicht aktiv.","Instance must be enabled":"Instanz muss aktiviert sein","Instance must run to deliver the data":"Die Instanz muss laufen um die Daten zu liefern","Invalid object":"Ungültiges Objekt",Language:out,"Load configuration from file":"Konfiguration aus Datei laden",Message:rut,"OFF level for switches":"OFF level for switches","OFF level for switches in %":"AUS-Pegel für Schalter in %",Off:aut,Ok:sut,On:iut,"On/Off":"An aus",Options:lut,"Personal settings (only pro)":"Eigene Einstellungen (nur pro)","Ping timeout:":"Ping-Timeout(ms)","Place function in names first":"Platziere Funktionsnamen vorne","Please add action and trait to complete the Google Home state.":"Bitte fügen Sie eine Aktion und ein Merkmal hinzu, um den Google Home-Status zu vervollständigen.","Please add type and trait to complete the Google Home state.":"Bitte füge eine Type und Trait hinzu um den Google Home State zu vervollständigen.","Please select object ID...":"Bitte Objekt ID auswählen ...","Please write your email only in lower case letters":"Bitte E-Mail nur in Kleinbuchstaben schreiben","Read lock state":"Verschlusszustand lesen","Replace in names":"Ersetze in Namen","Request email with password one more time":"Noch einmal eine E-Mail mit Passwort anfordern","Restart on disconnect":"Neustart bei Verbindungsabbruch",Review:cut,Rooms:dut,Save:uut,"Save and close":"Speichern und schließen","Save configuration to file":"Konfiguration in Datei speichern","Save settings and the names will be changed":"Speichere die Einstellungen um die neuen Namen zu sehen",Select:put,"Service names":"Servicenamen","Services and IFTTT":"Services und IFTTT","Set color":"Farbe einstellen","Set color temperature":"Farbtemperatur einstellen","Set lock state":"Verschlussstatus einstellen","Set percentage":"Prozent einstellen","Set target temperature":"Solltemperatur einstellen","Smart Devices":"Smart Geräte","Smart Enums":"Smart Aufzählungen","Smart Media":"Smart Media","Smart enums":"Intelligente Aufzählungen","Smart name":"Smart-Name","Smart name for %s":"Smart Name für %s","To apply this setting, the restart of adapter must be done. Agree?":"Um diese Einstellung zu ändern ist es erforderlich, diese Instanz neu zu starten. Einverstanden?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Für automatische Erkennung, unter Objekte ordne einem Channel (Device wenn kein Channel vorhanden ist) ein Raum und Funktion zu. Es reicht nicht einem State oder Device den Raum zuzuordnen. Räume/Funktionen können unter Aufzählung (Anzeigen über den weißen Pfeil oben rechts) hinzugefügt werden und müssen im IoT Adapter unter Intelligente Aufzählung aktiviert werden. Um manuelle States wieder automatisch erkennen zu lassen muss der State gelöscht werden.","Turn off":"Ausschalten","Turn on":"Einschalten",Type:hut,Types:fut,"Use Nightscout instance":"Benutze Nightscout Instanz","Use following link for IFTTT":"Benutze folgenden Link für IFTTT","Use following link for custom service":"Benutze folgende Link für einen eigenen Service","Use text2command instance":"Benutze text2command Instanz",Value:mut,"White list for services":"White list für Services","Write response to":"Schreibe Antwort ins","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Man kann mehrere durch Komma getrennte Namen eingeben","amazon link":"Falls du den Alexa Skill benutzt, schreibe doch bitte hier eine Review.
Beispiele kann man hier anschauen.","by ON":"bei AN",clear:gut,default:"Systemsprache",disabled:_ut,help_link_tip1:vut,help_link_tip2:yut,help_link_tip3:but,help_tip:wut,info_allowedServices:Sut,info_iftttKey:xut,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Passwort","omit value":"kein Wert","last value":"letzter Wert",modified:Cut,"no type":"kein Typ",tooltip_allowSelfSignedCertificate:$ut,tooltip_apikey:kut,tooltip_cloudUrl:Eut,tooltip_concatWord:Tut,tooltip_deviceOffLevel:Out,tooltip_functionFirst:Dut,tooltip_instance:Aut,tooltip_language:Mut,tooltip_noCommon:Nut,tooltip_responseOID:jut,tooltip_restartOnDisconnect:zut,"Short answer for blood sugar":"Kurze Antwort für Blutzucker",cannot_use_password:Rut,invalid_password_warning:Iut,new_certs_tip:Lut,new_credentials_tip:Fut,"Create IoT credentials anew":"IoT-Anmeldeinformationen neu erstellen",forum_tip:Put,"Save settings before pressing this button":"Einstellungen müssen gespeichert werden, bevor Sie diese Taste drücken","Auto Mode":"Automatikmodus","Manual Mode":"Manueller Modus",manualModeHint:But,"not activated":"nicht aktiviert","Google devices":"Google-Geräte","Show/Hide help":"Hilfe ein- / ausblenden","Show all devices for print out":"Alle Geräte zum Ausdrucken anzeigen",Search:Hut,"List of devices to print out, e.g. to give all device names to your partner.":"Liste der auszudruckenden Geräte, z. um Ihrem Partner/in alle Gerätenamen zu zeigen.",Name:Uut,Function:"Funktion",Room:Wut,"Copy to clipboard":"In die Zwischenablage kopieren","Toggle expert mode":"Expertenmodus umschalten",ID:Vut,"Smart names":"Intelligente Namen",ioBType:Gut,"Function/Trait":"Funktion / Eigenschaft",Attributes:qut,Auto:Xut,"Conversation to GH":"In GH konvertieren","Conversation to ioB":"In ioB konvertieren","Information: The skill linking process was changed!":"Information: Der Skill Linking Prozess wurde geändert!","The linking process has been changed for a few months.":"Der Verknüpfungsprozess wurde vor einigen Monaten geändert.","Now there is no temporary password that will be sent by email.":"Jetzt gibt es kein temporäres Passwort, das per E-Mail gesendet wird.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Das Passwort ist gleich mit ioBroker.pro und mit dem Passwort, das hier in den Einstellungen eingegeben wurde!","Not understood":"Nicht verstanden","Roger that":"Verstanden","Read blood sugar from":"Blutzucker lesen aus","Get actual humidity":"Holen Sie sich die tatsächliche Luftfeuchtigkeit","Get motion":"Bewegung bekommen","Get contact":"Kontaktstatus abrufen","Too many devices (%s) configured. Max number is 300":"Zu viele Geräte (%s) konfiguriert. Maximale Anzahl ist 300!","Allow remote access":"Fernzugriff zulassen","Admin instance":"Admin-Instanz","Web instance":"Webinstanz","Device %s will be disabled.":"Gerät %s wird deaktiviert.",Delete:Jut,Brightness:Yut,Power:Kut,"Color temperature":"Farbtemperatur",Color:Zut,Detection:Qut,Lock:ept,Mode:tpt,Muted:npt,Percentage:opt,"Set point":"Sollwert",Temperature:rpt,"Thermostat mode":"Thermostatmodus",Volume:apt,socket:spt,light:ipt,dimmer:lpt,thermostat:cpt,blind:dpt,gate:upt,lock:ppt,hue:hpt,motion:fpt,slider:mpt,temperature:gpt,window:_pt,Thermostat:vpt,Light:ypt,AirCondition:bpt,Blind:wpt,ContactSensor:Spt,Control:xpt,Door:Cpt,Gate:$pt,Hue:kpt,Motion:Ept,Slider:Tpt,Socket:Opt,VacuumCleaner:Dpt,VolumeGroup:Apt,Window:Mpt,"Color HUE":"Farbe Farbton","Door sensor":"Türsensor",Sensor:Npt,"Vacuum cleaner":"Staubsauger","Volume group":"Volumengruppe","Window sensor":"Fenstersensor",Blinds:jpt,"Grouped from %s and %s":"Gruppiert aus %s und %s","Default toggle behaviour (Only alexa v3)":"Standardmäßiges Umschaltverhalten (nur Alexa v3)","Do not toggle":"Nicht umschalten",Toggle:zpt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Dieser Dienst ist für die ioBroker.visu-App reserviert. Bitte verwenden Sie einen anderen Dienstnamen."},Ipt="Активно",Lpt="Адреса",Fpt="Отмена",Ppt="Закрыть",Bpt="Команды",Hpt="По умолчанию",Upt="Диммер",Wpt="Фильтр",Vpt="Функции",Gpt="Экземпляр",qpt="Язык",Xpt="Сообщение",Jpt="выкл",Ypt="Ok",Kpt="вкл",Zpt="Настройки",Qpt="Обзор",eht="Комнаты",tht="Сохранить",nht="Выбрать",oht="Тип",rht="Типы",aht="Значение",sht="очистить",iht="неактивно",lht='Прежде чем писать в службу поддержки, убедитесь, что вы прочитали и поняли инструкции с веб-страницы: https://www.iobroker.net',cht='Если у вас все еще есть проблема с подключением к Iot, вы можете запросить поддержку на форуме',dht='и только после этого вы можете написать письмо на support@iobroker.com',uht='Нет учетной записи iobroker.pro? Купите его на https://iobroker.pro для гарантированного доступа или получения бесплатного, но ограниченного доступа.',pht="разделённые запятой. Используйте *, что бы разрешить все сервисы.",hht="Свой ключ можно найти здесь в 'Documentation'",fht="Имя изменено пользователем",mht="Если используется собственное облако, то можно разрешить использование самоподписанных сертификатов",ght="Ключ необходимый для коммуникации с облаком. Его можно получить на https://iobroker.net и он похож на nickname_f1f439a0-001a-11e7-bc64-92361f002671",_ht="Обычно не нужно менять этот параметр. Только если используется собственное облако.",vht="Можно указать каким словом соединять Функцию и Комнату. Например с 'в': Свет в зале.",yht="Некоторые группы состоят из смешанных устройств: диммеров и переключателей. Разрешено управлять ими с помощью команд ON и OFF и с процентами",bht="Обычно имена выглядят как Комната-Функция. Этой настройкой можно переключить на Функция-Комната.",wht="Экземпляр WEB, который будет показываться при доступе из облака",Sht="Можно выбрать язык, что бы быстро переключаться между US Alexa Skill и DE Alexa Skill",xht="Если выбрана эта опция, то настройки будут сохраняться только для этой инстанции. Что бы в другой инстанции можно было выбрать другие имена.",Cht="Для каждой команды будет генерироваться текстовый ответ. Вы можете определить здесь ID объекта , где этот текст должен быть записан. Например sayit.0.tts.text.",$ht="Временное решение для проблемы с пропажей соединения с Alexa, после воссоединения с облаком. Этим можно перестартовать драйвер после потери соединения.",kht="Вы не можете использовать% в пароле. Мы работаем над исправлением.",Eht=`Пароль должен содержать не менее 8 символов и должен состоять из цифр, прописных и строчных букв. Пожалуйста, измените его в профиле ioBroker.pro +`,Tht="Если вы сделали восстановление из резервной копии, перенесли свой экземпляр с одного устройства на другое или удалили экземпляр IoT и добавили его снова, вы должны загрузить сертификаты безопасности подключения с помощью этой кнопки",Oht="Если не удается войти в Alexa Skill/Google Action/Alisa с данными для входа в ioBroker.pro, нажмите кнопку ниже.",Dht='Любые вопросы на любом языке, пожалуйста, задавайте здесь на форуме: ссылка ',Aht="Пожалуйста, выберите TYPE и TRAIT после добавления состояния. Чтобы добавить несколько черт, добавьте другой идентификатор и черту, но то же имя, тип и номер. Запятая разделена для нескольких умных имен. Чтобы назначить комнату, пожалуйста, используйте ioBroker Enums/Aufzählungen. С помощью атрибутов вы можете, например, установить диапазон для цветовой температуры Информация о Атрибуты вы можете найти здесь. Пустой атрибут - {}",Mht="Поиск",Nht="название",jht="Комната",zht="ID",Rht="Тип IoB",Iht="Атрибуты",Lht="Автоматически",Fht="Удалить",Pht="Диммер",Bht="Вкл/Выкл",Hht="Цвет",Uht="Обнаружение",Wht="Замок",Vht="Режим",Ght="Приглушен",qht="Процент",Xht="Температура",Jht="Объем",Yht="разъем",Kht="свет",Zht="диммер",Qht="термостат",eft="жалюзи",tft="ворота",nft="замок",oft="оттенок",rft="движение",aft="ползунок",sft="температура",ift="окно",lft="Термостат",cft="Свет",dft="Кондиционер",uft="Жалюзи",pft="Контактный датчик",hft="Контроль",fft="Дверь",mft="Ворота",gft="оттенок",_ft="Движение",vft="Слайдер",yft="Разъем",bft="Пылесос",wft="Группа томов",Sft="Окно",xft="Датчик",Cft="Жалюзи",$ft="Переключать",kft={"(Set to 0 if behavior not desired)":"(для деактивации установить на 0)","(you can separate names with comma)":"Вы можете ввести несколько имен, разделенных запятой",Active:Ipt,"Add device":"Добавить устройство","Add service":"Добавить услугу",Addresses:Lpt,"Alexa devices":"Устройства Alexa","Alisa devices":"Устройства Алисы","Allow admin access (only pro)":"Разрешить доступ к admin (только pro)","Allow self-signed certificates":"Разрешить самоподписанные сертификаты","Amazon Alexa":"Amazon Alexa","Are you sure?":"Уверены?","Attributes has not correct JSON format.":"Атрибуты не в правильном формате JSON","Authentication must be disabled. You can create second instance extra for cloud.":"Аутентификация должна быть отключена. Вы можете создать дополнительный экземпляр для облака.",Cancel:Fpt,"Cannot add this object":"Невозможно добавить этот объект, потому что он не поддерживается.","Cannot read devices!":"Не могу прочитать устройства!","Certificates will be updated after initiated restart":"Сертификаты будут обновлены после инициированного перезапуска","Certificates will be updated after start":"Сертификаты будут обновлены после запуска","Click now Get new connection certificates to request new temporary password":"Нажмите «Получить новые сертификаты подключения», чтобы запросить новый временный пароль.",Close:Ppt,"Cloud URL":"URL облака","Cloud adapter settings":"Настройки драйвера Cloud",Commands:Bpt,"Concatenate words with":"Связывать комнаты и функции словом","Connection timeout":"Таймаут соединения(мс)","Debug outputs":"Вывод отладочной информации","Decrement color temperature":"Уменьшение цветовой температуры","Decrement percentage":"Уменьшение процентного значения","Decrement target temperature":"Уменьшение целевой температуры",Default:Hpt,"Device %s was not added":"Устройство %s не было добавлено","Device will be deactivated.":"Устройство будет недоступно для голосового управления.","Device will be disabled.":"Устройство %s исчезнет из списка.",Dimmer:Upt,"Duplicate name":"Имя уже используется","Edit smart name":"Редактировать имя",Error:"Ошибка","Extended options":"Расширенные настройки",Filter:Wpt,"For help use this forum":"Чтобы получить помощь, посетите этот форум пост",Functions:Vpt,"Get actual temperature":"Получить фактическую температуру","Get new connection certificates":"Получение новых сертификатов подключения","Get new service URL key":"Получить новый ключ службы URL","Get target temperature":"Получить целевую температуру","Google Home":"Google Home","IFTTT key":"IFTTT key","Increment color temperature":"Увеличение цветовой температуры","Increment percentage":"Процент прироста","Increment target temperature":"Увеличение целевой температуры",Instance:Gpt,"Instance does not exists":"Экземпляр не существует","Instance is not active.":"Экземпляр не активен.","Instance must be enabled":"Экземпляр должен быть включен","Instance must run to deliver the data":"Драйвер должен быть запущен, что бы отобразить данные","Invalid object":"Недействительный объект",Language:qpt,"Load configuration from file":"Загрузить конфигурацию из файла",Message:Xpt,"OFF level for switches":"Уровень выключения для выключателей","OFF level for switches in %":"Уровень выключения для переключателей в %",Off:Jpt,Ok:Ypt,On:Kpt,"On/Off":"Вкл/выкл",Options:Zpt,"Personal settings (only pro)":"Личные настройки (только pro)","Ping timeout:":"Пинг-Таймаут(мс)","Place function in names first":"Имена функций в начале","Please add action and trait to complete the Google Home state.":"Пожалуйста, добавьте действие и черту, чтобы завершить состояние Google Home.","Please add type and trait to complete the Google Home state.":"Пожалуйста, добавьте тип и черту, чтобы завершить состояние Google Home.","Please select object ID...":"Пожалуйста, выберите идентификатор объекта ...","Please write your email only in lower case letters":"Пожалуйста, пишите свою электронную почту только строчными буквами","Read lock state":"Чтение состояния блокировки","Replace in names":"Заменить в именах","Request email with password one more time":"Запросите письмо с паролем еще раз","Restart on disconnect":"Перезапуск при потере сединения",Review:Qpt,Rooms:eht,Save:tht,"Save and close":"Сохранить и закрыть","Save configuration to file":"Сохранить конфигурацию в файл","Save settings and the names will be changed":"Сохраните настройки, что бы увидеть изменения",Select:nht,"Service names":"Названия служб","Services and IFTTT":"Сервисы и IFTTT","Set color":"Установить цвет","Set color temperature":"Цветовая температура","Set lock state":"Установить состояние блокировки","Set percentage":"Установить процент","Set target temperature":"Установите целевую температуру","Smart Devices":"Smart устройства","Smart Enums":"Smart категории","Smart Media":"Smart Media","Smart enums":"Умные перечисления","Smart name":"Smart имя","Smart name for %s":"Умное имя для %s","To apply this setting, the restart of adapter must be done. Agree?":"Что бы поменять эту опцию, необходимо перезагрузить инстанцию. Согласны?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Для автоматического обнаружения под объектами назначают канал (устройство, если канал недоступен) комнате и функции. Недостаточно присвоить комнату состоянию или устройству. Комнаты/функции могут быть добавлены в нумерацию (обозначена белой стрелкой в правом верхнем углу) и должны быть активированы в адаптере IoT в разделе Интеллектуальное перечисление. Чтобы автоматически распознавать ручные состояния, это состояние должно быть удалено.","Turn off":"Выключи","Turn on":"Включи",Type:oht,Types:rht,"Use Nightscout instance":"Использовать Nightscout","Use following link for IFTTT":"Используйте этот URL для IFTTT","Use following link for custom service":"Используйте этот URL для своего сервиса","Use text2command instance":"Использовать text2command",Value:aht,"White list for services":"Белый список для сервисов","Write response to":"Писать ответ в","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Вы можете ввести несколько имен, разделенных запятой","amazon link":"Если вы используете Alexa, пожалуйста оставьте свой отзыв здесь.
Примеры отзывов можно посмотреть здесь.","by ON":"при ВКЛ",clear:sht,default:"системный",disabled:iht,help_link_tip1:lht,help_link_tip2:cht,help_link_tip3:dht,help_tip:uht,info_allowedServices:pht,info_iftttKey:hht,"ioBroker.pro Login":"Логин ioBroker.pro","ioBroker.pro Password":"Пароль ioBroker.pro","omit value":"нет значения","last value":"последнее значение",modified:fht,"no type":"нет типа",tooltip_allowSelfSignedCertificate:mht,tooltip_apikey:ght,tooltip_cloudUrl:_ht,tooltip_concatWord:vht,tooltip_deviceOffLevel:yht,tooltip_functionFirst:bht,tooltip_instance:wht,tooltip_language:Sht,tooltip_noCommon:xht,tooltip_responseOID:Cht,tooltip_restartOnDisconnect:$ht,"Short answer for blood sugar":"Краткий ответ на уровень сахара в крови",cannot_use_password:kht,invalid_password_warning:Eht,new_certs_tip:Tht,new_credentials_tip:Oht,"Create IoT credentials anew":"Создайте учетные данные IoT заново",forum_tip:Dht,"Save settings before pressing this button":"Сохраните настройки перед нажатием этой кнопки","Auto Mode":"Автоматический режим","Manual Mode":"Ручной режим",manualModeHint:Aht,"not activated":"не активирован","Google devices":"Устройства Google","Show/Hide help":"Показать / Скрыть помощь","Show all devices for print out":"Показать все устройства для распечатки",Search:Mht,"List of devices to print out, e.g. to give all device names to your partner.":"Список устройств для распечатки, например, что бы показать все названия устройств вашему партнеру/партнёрше.",Name:Nht,Function:"функция",Room:jht,"Copy to clipboard":"Скопировать в буфер обмена","Toggle expert mode":"Переключить режим эксперта",ID:zht,"Smart names":"Умные имена",ioBType:Rht,"Function/Trait":"Функция / Тр",Attributes:Iht,Auto:Lht,"Conversation to GH":"Конвертировать в GH","Conversation to ioB":"Конвертировать в ioB","Information: The skill linking process was changed!":"Информация: Изменен процесс привязки навыков!","The linking process has been changed for a few months.":"Несколько месяцев назад изменился процесс привязки.","Now there is no temporary password that will be sent by email.":"Теперь нет временного пароля, который отправлялся по электронной почте.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Пароль совпадает с ioBroker.pro и с паролем, который был введен здесь в настройках!","Not understood":"Не понятно","Roger that":"Понятно","Read blood sugar from":"Считывать уровень сахара в крови из","Get actual humidity":"Получите фактическую влажность","Get motion":"Получить движение","Get contact":"Получить статус контакта","Too many devices (%s) configured. Max number is 300":"Настроено слишком много устройств (%s). Максимальное количество - 300!","Allow remote access":"Разрешить удаленный доступ","Admin instance":"Экземпляр администратора","Web instance":"Веб-экземпляр","Device %s will be disabled.":"Устройство %s будет отключено.",Delete:Fht,Brightness:Pht,Power:Bht,"Color temperature":"Цветовая температура",Color:Hht,Detection:Uht,Lock:Wht,Mode:Vht,Muted:Ght,Percentage:qht,"Set point":"Установить точку",Temperature:Xht,"Thermostat mode":"Режим термостата",Volume:Jht,socket:Yht,light:Kht,dimmer:Zht,thermostat:Qht,blind:eft,gate:tft,lock:nft,hue:oft,motion:rft,slider:aft,temperature:sft,window:ift,Thermostat:lft,Light:cft,AirCondition:dft,Blind:uft,ContactSensor:pft,Control:hft,Door:fft,Gate:mft,Hue:gft,Motion:_ft,Slider:vft,Socket:yft,VacuumCleaner:bft,VolumeGroup:wft,Window:Sft,"Color HUE":"Цвет ОТТЕНОК","Door sensor":"Датчик двери",Sensor:xft,"Vacuum cleaner":"Пылесос","Volume group":"Группа томов","Window sensor":"Датчик окна",Blinds:Cft,"Grouped from %s and %s":"Сгруппировано из %s и %s","Default toggle behaviour (Only alexa v3)":"Поведение переключения по умолчанию (только Alexa v3)","Do not toggle":"Не переключать",Toggle:$ft,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Эта служба зарезервирована для приложения ioBroker.visu. Пожалуйста, используйте другое имя службы."},Eft="Ativo",Tft="Endereços",Oft="Cancelar",Dft="Feixar",Aft="Comandos",Mft="Padrão",Nft="regulador de luz",jft="Filtro",zft="Funções",Rft="Instância",Ift="Língua",Lft="mensagem",Fft="desligado",Pft="Ok",Bft="ligado",Hft="Opções",Uft="Reveja",Wft="quartos",Vft="Salve",Gft="Selecione",qft="Tipo",Xft="Tipos",Jft="Valor",Yft="limpar",Kft="desativado",Zft='Antes de escrever para o suporte, certifique-se de ler e entender as instruções da página da Web: https://www.iobroker.net',Qft='Se você ainda tiver problemas com a conexão com o Iot, poderá solicitar suporte no Fórum',emt='e somente depois disso, você deve escrever um email para support@iobroker.com',tmt='Nenhuma conta no iobroker.pro? Registe-se gratuamente no https://iobroker.pro , para obter um acesso limitado ou compre um acesso sem limitação.',nmt="dividido por vírgula. Use * para permitir todos os serviços.",omt="Você pode encontrar sua chave aqui, no botão 'Documentation'",rmt="O nome foi modificado pelo usuário",amt="Se você usa sua própria nuvem, você pode permitir o uso de certificados auto-assinados para a nuvem.",smt="Essa chave é necessária para se comunicar com uma nuvem. Você pode obter a API-KEY em https://iobroker.net. A chave parece tem esse formato: apelido_f1f439a0-001a-11e7-bc64-92361f002671",imt="Normalmente, você não precisa mudá-lo. Só é necessário se você planeja usar sua própria nuvem.",lmt="Defina como concatenar o Quarto e a Função. Por exemplo com 'na': luz na sala de estar.",cmt="Alguns grupos consistem em dispositivos mistos: regulador de luz e interruptores. É permitido controlá-los com comandos ligar/desligar e com porcentagens",dmt="Normalmente, os nomes são gerados no esquema quarto_função. Aqui pode mudar para função_quarto.",umt="Instância da Web, que será mostrada para suas conexões a da nuvem.",pmt="Você pode definir os idiomas para mudar rapidamente entre o skill da Alexa do EUA e o da Alemãnha.",hmt="Se ativado, as configurações serão armazenadas somente para esta instância. Então, na outra instância, outros nomes podem ser definidos.",fmt="Para cada comando, uma resposta de texto é gerada. Aqui você pode especificar o ID do objeto ao qual a resposta de texto deve ser enviada, por exemplo sayit.0.tts.text.",mmt="Solução alternativa para falta de comunicação com o Alexa após a desconexão. Isso pode forçar você a reiniciar o adaptador e solucionar o problema.",gmt="Você não pode usar% na senha. Estamos trabalhando na correção.",_mt=`A senha deve ter pelo menos 8 caracteres e deve ter números, letras maiúsculas e minúsculas. Altere-o no perfil ioBroker.pro +`,vmt="Se você fez uma restauração a partir do backup ou moveu sua instância de um dispositivo para outro ou excluiu a instância da IoT e a adicionou novamente, carregue os certificados de segurança da conexão com este botão",ymt="Se o login no Alexa Skill/Google Action/Alisa com os dados de login ioBroker.pro falhar, pressione o botão abaixo.",bmt='Qualquer dúvida em qualquer idioma, pergunte aqui no fórum: link ',wmt="Selecione um TYPE e um TRAIT depois de adicionar um estado. Para adicionar vários traços, adicione um ID e traço diferentes, mas o mesmo nome, tipo e sala inteligentes. Vírgula separada para os vários nomes inteligentes. Para atribuir uma sala, use o ioBroker Enums/Aufzählungen. Com os atributos, você pode, por exemplo, definir um intervalo para a temperatura da cor. Atributos que você pode encontrar aqui. O atributo vazio é {}",Smt="Procurar",xmt="Nome",Cmt="Quarto",$mt="ID",kmt="Tipo IoB",Emt="Atributos",Tmt="Automaticamente",Omt="Excluir",Dmt="Obscuro",Amt="Ligado/Desligado",Mmt="Cor",Nmt="Detecção",jmt="Trancar",zmt="Modo",Rmt="silenciado",Imt="Percentagem",Lmt="Temperatura",Fmt="Volume",Pmt="soquete",Bmt="luz",Hmt="obscuro",Umt="termostato",Wmt="persianas",Vmt="portão",Gmt="trancar",qmt="matiz",Xmt="movimento",Jmt="controle deslizante",Ymt="temperatura",Kmt="janela",Zmt="Termostato",Qmt="Luz",egt="Condição do ar",tgt="Persianas",ngt="Sensor de contato",ogt="Ao controle",rgt="Porta",agt="Portão",sgt="Matiz",igt="Movimento",lgt="Controle deslizante",cgt="soquete",dgt="Aspirador de pó",ugt="Grupo de volumes",pgt="Janela",hgt="Sensor",fgt="Persianas",mgt="Alternar",ggt={"(Set to 0 if behavior not desired)":"(Defina para 0 se o comportamento não for desejado)","(you can separate names with comma)":"Você pode inserir vários nomes divididos por vírgula",Active:Eft,"Add device":"Adicionar dispositivo","Add service":"Adicionar serviço",Addresses:Tft,"Alexa devices":"Dispositivos Alexa","Alisa devices":"Dispositivos Alisa","Allow admin access (only pro)":"Permitir acesso de administrador (apenas pro)","Allow self-signed certificates":"Permitir certificados auto-assinados","Amazon Alexa":"Amazon Alexa","Are you sure?":"Você tem certeza?","Attributes has not correct JSON format.":"Os atributos não estão no formato JSON correto.","Authentication must be disabled. You can create second instance extra for cloud.":"A autenticação deve ser desativada. Você pode criar uma segunda instância extra para a nuvem.",Cancel:Oft,"Cannot add this object":"Não é possível adicionar este objeto, porque não é suportado.","Cannot read devices!":"Não é possível ler dispositivos!","Certificates will be updated after initiated restart":"Os certificados serão atualizados após a primeira reinicialização","Certificates will be updated after start":"Certificados serão atualizados após o início","Click now Get new connection certificates to request new temporary password":'Clique agora "Obter novos certificados de conexão" para solicitar uma nova senha temporária',Close:Dft,"Cloud URL":"URL da nuvem","Cloud adapter settings":"Configurações do adaptador de nuvem",Commands:Aft,"Concatenate words with":"Concatenar palavras com","Connection timeout":"Tempo limite de conexão (ms)","Debug outputs":"Saídas de depuração","Decrement color temperature":"Temperatura de cor decrescente","Decrement percentage":"Percentual de decréscimo","Decrement target temperature":"Temperatura alvo de descida",Default:Mft,"Device %s was not added":"O dispositivo %s não foi adicionado","Device will be deactivated.":"O dispositivo será desativado.","Device will be disabled.":"O dispositivo será desabilitado.",Dimmer:Nft,"Duplicate name":"Duplicar nome","Edit smart name":"Edite o nome inteligente",Error:"Erro","Extended options":"Configuração avançada",Filter:jft,"For help use this forum":"Para obter ajuda, visite este fórum postar",Functions:zft,"Get actual temperature":"Obter temperatura atual","Get new connection certificates":"Obter novos certificados de conexão","Get new service URL key":"Obter nova chave do URL de serviço","Get target temperature":"Obter temperatura desejada","Google Home":"Google Home","IFTTT key":"Chave IFTTT","Increment color temperature":"Incremento da temperatura de cor","Increment percentage":"Percentual de incremento","Increment target temperature":"Incremento da temperatura desejada",Instance:Rft,"Instance does not exists":"Instância não existe","Instance is not active.":"A instância não está ativa.","Instance must be enabled":"A instância deve estar ativada","Instance must run to deliver the data":"A instância deve ser executada para obter os dados","Invalid object":"Objeto inválido",Language:Ift,"Load configuration from file":"Carregar configuração do arquivo",Message:Lft,"OFF level for switches":"Nível OFF para interruptores","OFF level for switches in %":"Nível OFF para interruptores em %",Off:Fft,Ok:Pft,On:Bft,"On/Off":"ligado/desligado",Options:Hft,"Personal settings (only pro)":"Configurações pessoais (somente pro)","Ping timeout:":"Tempo limite de ping (ms)","Place function in names first":"Coloque a função na frente dos nomes","Please add action and trait to complete the Google Home state.":"Adicione ação e característica para concluir o estado da Página inicial do Google.","Please add type and trait to complete the Google Home state.":"Adicione tipo e característica para concluir o estado da Página inicial do Google.","Please select object ID...":"Por favor selecione o ID do objeto ...","Please write your email only in lower case letters":"Por favor, escreva seu e-mail apenas em letras minúsculas","Read lock state":"Ler estado de bloqueio","Replace in names":"Substitua nos nomes","Request email with password one more time":"Solicite email com senha mais uma vez","Restart on disconnect":"Reiniciar na desconexão",Review:Uft,Rooms:Wft,Save:Vft,"Save and close":"Salvar e fechar","Save configuration to file":"Salvar configuração no arquivo","Save settings and the names will be changed":"Salve as configurações e os nomes serão alterados",Select:Gft,"Service names":"Nome do serviço","Services and IFTTT":"Serviços e IFTTT","Set color":"Definir cor","Set color temperature":"Definir temperatura de cor","Set lock state":"Definir estado de bloqueio","Set percentage":"Definir porcentagem","Set target temperature":"Definir temperatura desejada","Smart Devices":"Dispositivos inteligentes","Smart Enums":"Enumeração inteligentes","Smart Media":"Smart Media","Smart enums":"Enumeração inteligentes","Smart name":"Nome inteligente","Smart name for %s":"Nome inteligente para %s","To apply this setting, the restart of adapter must be done. Agree?":"Para aplicar esta configuração, o adaptador tem que ser reiniciado. Aceita?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Para detecção automática, coloque embaixo dos objetos em um canal (dispositivo se não houver canal) uma sala e função também. Não é suficiente atribuir um estado ou dispositivo. Salas/funções podem ser adicionadas enumeradas e devem ser ativadas no adaptador IoT em Enumeração inteligente. Para detectar automaticamente estados manuais novamente, o estado deve ser limpo.","Turn off":"Desligar","Turn on":"Ligar",Type:qft,Types:Xft,"Use Nightscout instance":"Use a instância Nightscout","Use following link for IFTTT":"Use o seguinte link para IFTTT","Use following link for custom service":"Use o seguinte link para o outros serviços","Use text2command instance":"Use a instância text2command",Value:Jft,"White list for services":"Lista branca para serviços","Write response to":"Escreva a resposta para","Yandex Алиса":"Yandex Alice","You can enter several names divided by comma":"Você pode inserir vários nomes divididos por vírgula","amazon link":"Se você usa o ioBroker skill para a Alexa, escreva um comentário para nós aqui.
Exemplos podem ser encontrados aqui.","by ON":"por ON",clear:Yft,default:"padrão",disabled:Kft,help_link_tip1:Zft,help_link_tip2:Qft,help_link_tip3:emt,help_tip:tmt,info_allowedServices:nmt,info_iftttKey:omt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"Senha do ioBroker.pro","omit value":"sem valor","last value":"último valor",modified:rmt,"no type":"nenhum tipo",tooltip_allowSelfSignedCertificate:amt,tooltip_apikey:smt,tooltip_cloudUrl:imt,tooltip_concatWord:lmt,tooltip_deviceOffLevel:cmt,tooltip_functionFirst:dmt,tooltip_instance:umt,tooltip_language:pmt,tooltip_noCommon:hmt,tooltip_responseOID:fmt,tooltip_restartOnDisconnect:mmt,"Short answer for blood sugar":"Resposta curta para açúcar no sangue",cannot_use_password:gmt,invalid_password_warning:_mt,new_certs_tip:vmt,new_credentials_tip:ymt,"Create IoT credentials anew":"Crie credenciais de IoT novamente",forum_tip:bmt,"Save settings before pressing this button":"Salve as configurações antes de pressionar este botão","Auto Mode":"Modo automático","Manual Mode":"Modo manual",manualModeHint:wmt,"not activated":"não ativado","Google devices":"Dispositivos do Google","Show/Hide help":"Mostrar / ocultar ajuda","Show all devices for print out":"Mostrar todos os dispositivos para impressão",Search:Smt,"List of devices to print out, e.g. to give all device names to your partner.":"Lista de dispositivos a serem impressos, p. para dar todos os nomes de dispositivos ao seu parceiro.",Name:xmt,Function:"Função",Room:Cmt,"Copy to clipboard":"Copiar para área de transferência","Toggle expert mode":"Alternar modo especialista",ID:$mt,"Smart names":"Nomes inteligentes",ioBType:kmt,"Function/Trait":"Função / Traço",Attributes:Emt,Auto:Tmt,"Conversation to GH":"Converta para GH","Conversation to ioB":"Converta para ioB","Information: The skill linking process was changed!":"Informações: O processo de vinculação de habilidades foi alterado!","The linking process has been changed for a few months.":"O processo de vinculação foi alterado por alguns meses.","Now there is no temporary password that will be sent by email.":"Agora não existe uma senha temporária que será enviada por e-mail.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"A senha é igual a ioBroker.pro e com a senha que foi digitada aqui nas configurações!","Not understood":"Não entendido","Roger that":"Entendido","Read blood sugar from":"Leia o açúcar no sangue de","Get actual humidity":"Obtenha a umidade real","Get motion":"Mexa-se","Get contact":"Obter status de contato","Too many devices (%s) configured. Max number is 300":"Muitos dispositivos (%s) configurados. O número máximo é 300!","Allow remote access":"Permitir acesso remoto","Admin instance":"Instância de administrador","Web instance":"Instância da web","Device %s will be disabled.":"O dispositivo %s será desabilitado.",Delete:Omt,Brightness:Dmt,Power:Amt,"Color temperature":"Temperatura de cor",Color:Mmt,Detection:Nmt,Lock:jmt,Mode:zmt,Muted:Rmt,Percentage:Imt,"Set point":"Ponto de ajuste",Temperature:Lmt,"Thermostat mode":"Modo termostato",Volume:Fmt,socket:Pmt,light:Bmt,dimmer:Hmt,thermostat:Umt,blind:Wmt,gate:Vmt,lock:Gmt,hue:qmt,motion:Xmt,slider:Jmt,temperature:Ymt,window:Kmt,Thermostat:Zmt,Light:Qmt,AirCondition:egt,Blind:tgt,ContactSensor:ngt,Control:ogt,Door:rgt,Gate:agt,Hue:sgt,Motion:igt,Slider:lgt,Socket:cgt,VacuumCleaner:dgt,VolumeGroup:ugt,Window:pgt,"Color HUE":"Cor MATIZ","Door sensor":"Sensor de porta",Sensor:hgt,"Vacuum cleaner":"Aspirador de pó","Volume group":"Grupo de volumes","Window sensor":"Sensor de janela",Blinds:fgt,"Grouped from %s and %s":"Agrupados de %s e %s","Default toggle behaviour (Only alexa v3)":"Comportamento de alternância padrão (somente alexa v3)","Do not toggle":"Não alterne",Toggle:mgt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Este serviço está reservado para o aplicativo ioBroker.visu. Use outro nome de serviço."},_gt="Actief",vgt="adressen",ygt="Annuleer",bgt="Dichtbij",wgt="commando's",Sgt="Standaard",xgt="dimmer",Cgt="Filter",$gt="functies",kgt="Aanleg",Egt="Taal",Tgt="Bericht",Ogt="uit",Dgt="OK",Agt="op",Mgt="opties",Ngt="Beoordeling",jgt="kamers",zgt="Opslaan",Rgt="kiezen",Igt="Type",Lgt="Soorten",Fgt="Waarde",Pgt="wissen",Bgt="invalide",Hgt='Voordat u ter ondersteuning schrijft, moet u ervoor zorgen dat u de instructies van de webpagina hebt gelezen en begrepen: https://www.iobroker.net',Ugt='Als je nog steeds problemen hebt met de verbinding met Iot, kun je support im Forum aanvragen',Wgt='en pas daarna moet u een e-mail schrijven naar support@iobroker.com',Vgt='Geen iobroker.pro-account? Koop het op https://iobroker.pro voor gevalideerde toegang of krijg gratis toegang, maar beperkte toegang.',Ggt="gedeeld door een komma. Gebruik * om alle services toe te staan.",qgt="Je kunt je belangrijkste hier vinden onder 'Documentatie'",Xgt="Naam is gewijzigd door gebruiker",Jgt="Als u uw eigen cloud gebruikt, kunt u het gebruik van zelfondertekende certificaten voor de cloud toestaan.",Ygt="Deze sleutel is vereist om te communiceren met een cloud. Je kunt de API-KEY op https://iobroker.net krijgen en het lijkt op nickname_f1f439a0-001a-11e7-bc64-92361f002671",Kgt="Normaal gesproken hoeft u dit niet te veranderen. Alleen vereist als u van plan bent uw eigen cloud te gebruiken.",Zgt="Bepaal hoe kamer en functie moeten worden samengevoegd. Bijv. met 'in': licht in de woonkamer.",Qgt="Sommige groepen bestaan ​​uit gemengde apparaten: dimmers en schakelaars. Het is toegestaan ​​om ze te besturen met AAN- en UIT-commando's en met percentages",e_t="Normaal gezien zien de namen eruit als room_function. Hier kun je het omschakelen naar function_room.",t_t="Web-instantie, die wordt weergegeven voor uw verbindingen vanuit de cloud.",n_t="Je kunt de talen definiëren om snel te schakelen tussen US Alexa Skill en DE Alexa Skill.",o_t="Indien ingeschakeld, worden de instellingen alleen voor deze instantie opgeslagen. Dus in het andere geval kunnen de andere namen worden ingesteld.",r_t="Voor elke opdracht wordt het tekstantwoord gegenereerd. U kunt hier de Object-ID definiëren, waar deze tekst naartoe moet worden geschreven. Bijv. sayit.0.tts.text.",a_t="Oplossing voor ontbrekende verbinding met Alexa nadat de verbinding met de cloud verloren was gegaan. Met deze optie kunt u de adapter opnieuw opstarten na elke verbreking en het zal werken.",s_t="U kunt% in wachtwoord niet gebruiken. We werken aan de oplossing.",i_t=`Wachtwoord moet minimaal 8 tekens lang zijn en moet cijfers, hoofdletters en kleine letters bevatten. Wijzig dit in het ioBroker.pro-profiel +`,l_t="Als u een herstelbewerking hebt uitgevoerd vanaf een back-up of uw instantie van het ene apparaat naar het andere hebt verplaatst of het IoT-exemplaar hebt verwijderd en opnieuw hebt toegevoegd, moet u de verbindingsbeveiligingscertificaten met deze knop laden",c_t="Als het inloggen op Alexa Skill/Google Action/Alisa met de ioBroker.pro-inloggegevens mislukt, druk dan op de onderstaande knop.",d_t='Voor vragen in welke taal dan ook, stel deze hier op het forum: link ',u_t="Selecteer een TYPE en een TRAIT na het toevoegen van een staat. Om meerdere eigenschappen toe te voegen, voegt u een andere id en eigenschap toe, maar dezelfde slimme naam, type en kamer. Door komma's gescheiden voor de meerdere slimme namen. Gebruik de ioBroker Enums/Aufzählungen om een kamer toe te wijzen. Met attributen kun je bijvoorbeeld een bereik instellen voor de kleurtemperatuur Info over Kenmerken die u hier kunt vinden. Leeg kenmerk is {}",p_t="Zoeken",h_t="Naam",f_t="Kamer",m_t="ID",g_t="IoB-type",__t="Attributen",v_t="Automatisch",y_t="Verwijderen",b_t="Dimmer",w_t="Aan/Uit",S_t="Kleur",x_t="Detectie",C_t="Slot",$_t="modus",k_t="Gedempt",E_t="Percentage",T_t="Temperatuur",O_t="Volume",D_t="stopcontact",A_t="licht",M_t="dimmer",N_t="thermostaat",j_t="jaloezieën",z_t="hek",R_t="slot",I_t="tint",L_t="beweging",F_t="schuifregelaar",P_t="temperatuur",B_t="raam",H_t="Thermostaat",U_t="Licht",W_t="Airco",V_t="Jaloezieën",G_t="Contactsensor",q_t="Controle",X_t="Deur",J_t="Hek",Y_t="Tint",K_t="Beweging",Z_t="Schuifregelaar",Q_t="Stopcontact",evt="Stofzuiger",tvt="Volumegroep",nvt="Raam",ovt="Sensor",rvt="Jaloezieën",avt="Schakelaar",svt={"(Set to 0 if behavior not desired)":"(Stel in op 0 als gedrag niet gewenst is)","(you can separate names with comma)":"U kunt verschillende namen invoeren, gescheiden door een komma",Active:_gt,"Add device":"Voeg toestel toe","Add service":"Service toevoegen",Addresses:vgt,"Alexa devices":"Alexa-apparaten","Alisa devices":"Alisa-apparaten","Allow admin access (only pro)":"Beheerrechten toestaan ​​(alleen pro)","Allow self-signed certificates":"Sta zelf-ondertekende certificaten toe","Amazon Alexa":"Amazon Alexa","Are you sure?":"Weet je het zeker?","Attributes has not correct JSON format.":"Attributen hebben niet de juiste JSON-indeling","Authentication must be disabled. You can create second instance extra for cloud.":"Verificatie moet zijn uitgeschakeld. U kunt een tweede exemplaar extra voor de cloud maken.",Cancel:ygt,"Cannot add this object":"Kan dit object niet toevoegen, omdat het niet wordt ondersteund.","Cannot read devices!":"Kan geen apparaten lezen!","Certificates will be updated after initiated restart":"Certificaten worden bijgewerkt na de herstart opnieuw gestart","Certificates will be updated after start":"Certificaten worden na het opstarten bijgewerkt","Click now Get new connection certificates to request new temporary password":'Klik nu op "Nieuwe verbindingscertificaten verkrijgen" om een ​​nieuw tijdelijk wachtwoord aan te vragen',Close:bgt,"Cloud URL":"Cloud URL","Cloud adapter settings":"Cloud adapter-instellingen",Commands:wgt,"Concatenate words with":"Woorden samenvoegen met","Connection timeout":"Verbinding time-out (ms)","Debug outputs":"Debug-uitgangen","Decrement color temperature":"Verlaag de kleurtemperatuur","Decrement percentage":"Verlagingspercentage","Decrement target temperature":"Verlaag de doeltemperatuur",Default:Sgt,"Device %s was not added":"Apparaat %s is niet toegevoegd","Device will be deactivated.":"Apparaat wordt gedeactiveerd.","Device will be disabled.":"Apparaat %s zal worden uitgeschakeld.",Dimmer:xgt,"Duplicate name":"Dubbele naam","Edit smart name":"Bewerk slimme naam",Error:"Fout","Extended options":"Uitgebreide opties",Filter:Cgt,"For help use this forum":"Ga voor hulp naar dit forum post",Functions:$gt,"Get actual temperature":"Krijg de werkelijke temperatuur","Get new connection certificates":"Ontvang nieuwe verbindingscertificaten","Get new service URL key":"Ontvang nieuwe service URL-sleutel","Get target temperature":"Krijg doeltemperatuur","Google Home":"Google Home","IFTTT key":"IFTTT-sleutel","Increment color temperature":"Verhoog de kleurtemperatuur","Increment percentage":"Verhoging percentage","Increment target temperature":"Verhoog de doeltemperatuur",Instance:kgt,"Instance does not exists":"Instantie bestaat niet","Instance is not active.":"Instantie is niet actief.","Instance must be enabled":"Exemplaar moet zijn ingeschakeld","Instance must run to deliver the data":"Het exemplaar moet worden uitgevoerd om de gegevens te bezorgen","Invalid object":"Ongeldig object",Language:Egt,"Load configuration from file":"Laad configuratie vanuit bestand",Message:Tgt,"OFF level for switches":"UIT-niveau voor schakelaars","OFF level for switches in %":"UIT-niveau voor schakelaars in %",Off:Ogt,Ok:Dgt,On:Agt,"On/Off":"Aan uit",Options:Mgt,"Personal settings (only pro)":"Persoonlijke instellingen (alleen pro)","Ping timeout:":"Ping-timeout (ms)","Place function in names first":"Plaats eerst de functie in namen","Please add action and trait to complete the Google Home state.":"Voeg actie en eigenschap toe om de Google Home-status te voltooien.","Please add type and trait to complete the Google Home state.":"Voeg type en kenmerk toe om de Google Home-status te voltooien.","Please select object ID...":"Selecteer een object-ID ...","Please write your email only in lower case letters":"Schrijf uw e-mail alleen in kleine letters","Read lock state":"Lees de vergrendelingsstatus","Replace in names":"Vervangen in namen","Request email with password one more time":"E-mail met wachtwoord nog een keer aanvragen","Restart on disconnect":"Opnieuw opstarten bij verbreken",Review:Ngt,Rooms:jgt,Save:zgt,"Save and close":"Opslaan en sluiten","Save configuration to file":"Sla configuratie op naar bestand","Save settings and the names will be changed":"Sla instellingen op en de namen worden gewijzigd",Select:Rgt,"Service names":"Servicenamen","Services and IFTTT":"Diensten en IFTTT","Set color":"Stel de kleur in","Set color temperature":"Stel de kleurtemperatuur in","Set lock state":"Stel de vergrendelingsstatus in","Set percentage":"Percentage instellen","Set target temperature":"Stel de doeltemperatuur in","Smart Devices":"Slimme apparaten","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Slim enums","Smart name":"Slimme naam","Smart name for %s":"Slimme naam voor %s","To apply this setting, the restart of adapter must be done. Agree?":"Om deze instelling toe te passen, moet de adapter opnieuw worden opgestart. Mee eens?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Voor automatische detectie wijst onder objecten een kanaal (apparaat als er geen kanaal beschikbaar is) toe aan een kamer en functie. Het is niet voldoende om de kamer toe te wijzen aan een staat of apparaat. Kamers/functies kunnen worden toegevoegd onder opsomming (aangegeven door de witte pijl in de rechterbovenhoek) en moeten worden geactiveerd in de IoT-adapter onder Intelligente opsomming. Om handmatige statussen automatisch te herkennen, moet de status worden verwijderd.","Turn off":"Uitschakelen","Turn on":"Aanzetten",Type:Igt,Types:Lgt,"Use Nightscout instance":"Gebruik de Nightscout-instantie","Use following link for IFTTT":"Gebruik de volgende link voor IFTTT","Use following link for custom service":"Gebruik de volgende link voor aangepaste service","Use text2command instance":"Gebruik de text2command-instantie",Value:Fgt,"White list for services":"Witte lijst voor services","Write response to":"Schrijf reactie op","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"U kunt verschillende namen invoeren, gescheiden door een komma","amazon link":"Als je de Alexa Skill gebruikt, schrijf dan een recensie voor ons hier.
Voorbeelden zijn hier te vinden.","by ON":"door ON",clear:Pgt,default:"standaard",disabled:Bgt,help_link_tip1:Hgt,help_link_tip2:Ugt,help_link_tip3:Wgt,help_tip:Vgt,info_allowedServices:Ggt,info_iftttKey:qgt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Wachtwoord","omit value":"geen waarde","last value":"laatste waarde",modified:Xgt,"no type":"geen type",tooltip_allowSelfSignedCertificate:Jgt,tooltip_apikey:Ygt,tooltip_cloudUrl:Kgt,tooltip_concatWord:Zgt,tooltip_deviceOffLevel:Qgt,tooltip_functionFirst:e_t,tooltip_instance:t_t,tooltip_language:n_t,tooltip_noCommon:o_t,tooltip_responseOID:r_t,tooltip_restartOnDisconnect:a_t,"Short answer for blood sugar":"Kort antwoord voor bloedsuiker",cannot_use_password:s_t,invalid_password_warning:i_t,new_certs_tip:l_t,new_credentials_tip:c_t,"Create IoT credentials anew":"Maak opnieuw IoT-inloggegevens",forum_tip:d_t,"Save settings before pressing this button":"Sla de instellingen op voordat u op deze knop drukt","Auto Mode":"Automatische modus","Manual Mode":"Handmatige modus",manualModeHint:u_t,"not activated":"niet geactiveerd","Google devices":"Google-apparaten","Show/Hide help":"Help weergeven / verbergen","Show all devices for print out":"Alle apparaten weergeven om af te drukken",Search:p_t,"List of devices to print out, e.g. to give all device names to your partner.":"Lijst met af te drukken apparaten, b.v. om alle apparaatnamen aan uw partner te geven.",Name:h_t,Function:"Functie",Room:f_t,"Copy to clipboard":"Kopieer naar klembord","Toggle expert mode":"Schakel de expertmodus in",ID:m_t,"Smart names":"Slimme namen",ioBType:g_t,"Function/Trait":"Functie / eigenschap",Attributes:__t,Auto:v_t,"Conversation to GH":"Converteer naar GH","Conversation to ioB":"Converteer naar ioB","Information: The skill linking process was changed!":"Informatie: het proces voor het koppelen van vaardigheden is gewijzigd!","The linking process has been changed for a few months.":"Het koppelingsproces is voor een paar maanden gewijzigd.","Now there is no temporary password that will be sent by email.":"Nu is er geen tijdelijk wachtwoord dat per e-mail wordt verzonden.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Het wachtwoord is gelijk aan ioBroker.pro en met het wachtwoord dat hier in de instellingen is ingevoerd!","Not understood":"Niet begrepen","Roger that":"Begrepen","Read blood sugar from":"Lees de bloedsuikerspiegel van","Get actual humidity":"Verkrijg de werkelijke luchtvochtigheid","Get motion":"Krijg beweging","Get contact":"Krijg contactstatus","Too many devices (%s) configured. Max number is 300":"Te veel apparaten (%s) geconfigureerd. Maximaal aantal is 300!","Allow remote access":"Externe toegang toestaan","Admin instance":"Beheerdersinstantie","Web instance":"Webinstantie","Device %s will be disabled.":"Apparaat %s wordt uitgeschakeld.",Delete:y_t,Brightness:b_t,Power:w_t,"Color temperature":"Kleurtemperatuur",Color:S_t,Detection:x_t,Lock:C_t,Mode:$_t,Muted:k_t,Percentage:E_t,"Set point":"Setpunt",Temperature:T_t,"Thermostat mode":"Thermostaat modus",Volume:O_t,socket:D_t,light:A_t,dimmer:M_t,thermostat:N_t,blind:j_t,gate:z_t,lock:R_t,hue:I_t,motion:L_t,slider:F_t,temperature:P_t,window:B_t,Thermostat:H_t,Light:U_t,AirCondition:W_t,Blind:V_t,ContactSensor:G_t,Control:q_t,Door:X_t,Gate:J_t,Hue:Y_t,Motion:K_t,Slider:Z_t,Socket:Q_t,VacuumCleaner:evt,VolumeGroup:tvt,Window:nvt,"Color HUE":"Kleur TINT","Door sensor":"Deur sensor",Sensor:ovt,"Vacuum cleaner":"Stofzuiger","Volume group":"Volumegroep","Window sensor":"Raam sensor",Blinds:rvt,"Grouped from %s and %s":"Gegroepeerd van %s en %s","Default toggle behaviour (Only alexa v3)":"Standaard schakelgedrag (alleen alexa v3)","Do not toggle":"Wissel niet",Toggle:avt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Deze service is gereserveerd voor de ioBroker.visu-app. Gebruik een andere servicenaam."},ivt="actif",lvt="Adresses",cvt="Annuler",dvt="Fermer",uvt="Commandes",pvt="Défaut",hvt="Variateur",fvt="Filtre",mvt="Les fonctions",gvt="Exemple",_vt="La langue",vvt="Message",yvt="de",bvt="D'accord",wvt="sur",Svt="Options",xvt="La revue",Cvt="Pièces",$vt="sauvegarder",kvt="Sélectionner",Evt="Type",Tvt="Les types",Ovt="Valeur",Dvt="nettoyer",Avt="désactivée",Mvt=`Avant d'écrire au support, assurez-vous d'avoir lu et compris les instructions de la page Web: https://www.iobroker.net`,Nvt='Si vous rencontrez toujours des problèmes avec la connexion à Iot, vous pouvez demander une assistance dans le forum',jvt='et seulement après cela, vous devez écrire un e-mail à support@iobroker.com',zvt='Pas de compte iobroker.pro? Achetez-le sur https://iobroker.pro pour un accès validé ou obtenez gratuitement un accès limité.',Rvt="divisé par virgule. Utilisez * pour autoriser tous les services.",Ivt="Vous pouvez trouver votre clé ici sous 'Documentation'",Lvt="Le nom a été modifié par l'utilisateur",Fvt="Si vous utilisez votre propre cloud, vous pouvez autoriser l'utilisation de certificats autosignés pour le cloud.",Pvt="Cette clé est requise pour communiquer avec un nuage. Vous pouvez obtenir l'API-KEY sur https://iobroker.net et il ressemble à pseudo_f1f439a0-001a-11e7-bc64-92361f002671",Bvt="Normalement, vous n'avez pas besoin de le changer. Uniquement nécessaire si vous prévoyez d'utiliser votre propre cloud.",Hvt="Définir la concaténation de la pièce et de la fonction. Par exemple. avec 'in': Lumière dans le salon.",Uvt="Certains groupes sont composés de dispositifs mixtes: gradateurs et commutateurs. Il est permis de les contrôler avec des commandes ON et OFF et avec des pourcentages",Wvt="Normalement, les noms ressemblent à room_function. Ici vous pouvez passer à function_room.",Vvt="Instance Web, qui sera affichée pour vos connexions depuis le cloud.",Gvt="Vous pouvez définir les langues pour passer rapidement entre les compétences américaines Alexa et DE Alexa.",qvt="Si activé, les paramètres seront stockés uniquement pour cette instance. Dans un autre cas, les autres noms pourraient être définis.",Xvt="Pour chaque commande, la réponse textuelle sera générée. Vous pouvez définir ici l'ID de l'objet, où ce texte doit être écrit. Par exemple. sayit.0.tts.text.",Jvt="Solution de contournement pour la connexion manquante à Alexa après la connexion au cloud a été perdue. Avec cette option, vous pouvez redémarrer l'adaptateur après chaque déconnexion et cela fonctionnera.",Yvt="Vous ne pouvez pas utiliser% dans le mot de passe. Nous travaillons sur le correctif.",Kvt=`Le mot de passe doit comporter au moins 8 caractères et doit comporter des chiffres, des lettres majuscules et minuscules. Veuillez le modifier dans le profil ioBroker.pro +`,Zvt="Si vous avez effectué une restauration à partir d'une sauvegarde, ou déplacé votre instance d'un appareil vers un autre ou supprimé l'instance IoT et l'ajoutée à nouveau, vous devez charger les certificats de sécurité de connexion avec ce bouton",Qvt="Si la connexion à Alexa Skill/Google Action/Alisa avec les données de connexion ioBroker.pro échoue, veuillez appuyer sur le bouton ci-dessous.",eyt=`Si vous avez des questions dans n'importe quelle langue, posez-les ici dans le forum: lien `,tyt="Veuillez sélectionner un TYPE et un TRAIT après avoir ajouté un état. Pour ajouter plusieurs traits, ajoutez un identifiant et un trait différents, mais le même nom intelligent, le même type et la même pièce. Séparé par des virgules pour les multiples noms intelligents. Pour attribuer une chambre, veuillez utiliser les ioBroker Enums/Aufzählungen. Avec les attributs, vous pouvez par exemple définir une plage de température de couleur Infos sur Les attributs que vous pouvez trouver ici. L'attribut vide est {}",nyt="Chercher",oyt="Nom",ryt="Chambre",ayt="ID",syt="Type IoB",iyt="Les attributs",lyt="Automatiquement",cyt="Effacer",dyt="Variateur",uyt="Allumé/éteint",pyt="Couleur",hyt="Détection",fyt="Serrure",myt="Mode",gyt="En sourdine",_yt="Pourcentage",vyt="Température",yyt="Volume",byt="prise",wyt="lumière",Syt="variateur",xyt="thermostat",Cyt="stores de fenêtre",$yt="portail",kyt="serrure",Eyt="teinte",Tyt="mouvement",Oyt="glissière",Dyt="température",Ayt="fenêtre",Myt="Thermostat",Nyt="Lumière",jyt="Air conditionné",zyt="Stores de fenêtre",Ryt="Contacter le capteur",Iyt="Contrôle",Lyt="Porte",Fyt="Portail",Pyt="Teinte",Byt="Mouvement",Hyt="Glissière",Uyt="Prise",Wyt="aspirateur",Vyt="Groupe de volumes",Gyt="Fenêtre",qyt="Capteur",Xyt="Stores de fenêtre",Jyt="Basculer",Yyt={"(Set to 0 if behavior not desired)":"(Mettre à 0 si le comportement n'est pas désiré)","(you can separate names with comma)":"Vous pouvez entrer plusieurs noms divisés par une virgule",Active:ivt,"Add device":"Ajouter un appareil","Add service":"Ajouter un service",Addresses:lvt,"Alexa devices":"Appareils Alexa","Alisa devices":"Appareils Alisa","Allow admin access (only pro)":"Autoriser l'accès administrateur (uniquement pro)","Allow self-signed certificates":"Autoriser les certificats auto-signés","Amazon Alexa":"Amazon Alexa","Are you sure?":"Êtes-vous sûr?","Attributes has not correct JSON format.":"Les attributs ne sont pas au format JSON correct","Authentication must be disabled. You can create second instance extra for cloud.":"L'authentification doit être désactivée. Vous pouvez créer une seconde instance supplémentaire pour le cloud.",Cancel:cvt,"Cannot add this object":"Impossible d'ajouter cet objet, car non pris en charge.","Cannot read devices!":"Impossible de lire les appareils!","Certificates will be updated after initiated restart":"Les certificats seront mis à jour après le redémarrage initié","Certificates will be updated after start":"Les certificats seront mis à jour après le démarrage","Click now Get new connection certificates to request new temporary password":'Cliquez maintenant sur "Obtenir de nouveaux certificats de connexion" pour demander un nouveau mot de passe temporaire.',Close:dvt,"Cloud URL":"URL de cloud","Cloud adapter settings":"Paramètres de l'adaptateur cloud",Commands:uvt,"Concatenate words with":"Concaténer les mots avec","Connection timeout":"Délai de connexion (ms)","Debug outputs":"Déboguer les sorties","Decrement color temperature":"Décrémenter la température de couleur","Decrement percentage":"Pourcentage de décrémentation","Decrement target temperature":"Décrémenter la température cible",Default:pvt,"Device %s was not added":"Le périphérique %s n'a pas été ajouté","Device will be deactivated.":"L'appareil sera désactivé.","Device will be disabled.":"L'appareil %s sera désactivé.",Dimmer:hvt,"Duplicate name":"Nom en double","Edit smart name":"Modifier le nom intelligent",Error:"Erreur","Extended options":"Options étendues",Filter:fvt,"For help use this forum":"Pour obtenir de l'aide, visitez ce forum publier",Functions:mvt,"Get actual temperature":"Obtenir la température réelle","Get new connection certificates":"Obtenir de nouveaux certificats de connexion","Get new service URL key":"Obtenir une nouvelle clé d'URL de service","Get target temperature":"Obtenir la température cible","Google Home":"Google Home","IFTTT key":"Touche IFTTT","Increment color temperature":"Incrément de température de couleur","Increment percentage":"Pourcentage d'incrément","Increment target temperature":"Augmenter la température cible",Instance:gvt,"Instance does not exists":"L'instance n'existe pas","Instance is not active.":"L'instance n'est pas active.","Instance must be enabled":"L'instance doit être activée","Instance must run to deliver the data":"L'instance doit s'exécuter pour fournir les données","Invalid object":"Objet invalide",Language:_vt,"Load configuration from file":"Charger la configuration du fichier",Message:vvt,"OFF level for switches":"Niveau OFF pour les commutateurs","OFF level for switches in %":"Niveau OFF pour les commutateurs en %",Off:yvt,Ok:bvt,On:wvt,"On/Off":"Allumé éteint",Options:Svt,"Personal settings (only pro)":"Paramètres personnels (uniquement pro)","Ping timeout:":"Ping timeout (ms)","Place function in names first":"Placez la fonction dans les noms en premier","Please add action and trait to complete the Google Home state.":"Veuillez ajouter une action et un trait pour terminer l'état de Google Home.","Please add type and trait to complete the Google Home state.":"Veuillez ajouter un type et un trait pour terminer l'état de Google Home.","Please select object ID...":"Veuillez sélectionner l'ID d'objet ...","Please write your email only in lower case letters":"S'il vous plaît écrivez votre email uniquement en minuscules","Read lock state":"État verrouillé","Replace in names":"Remplacer dans les noms","Request email with password one more time":"Demander l'email avec le mot de passe une fois de plus","Restart on disconnect":"Redémarrer à la déconnexion",Review:xvt,Rooms:Cvt,Save:$vt,"Save and close":"Sauver et fermer","Save configuration to file":"Enregistrer la configuration dans un fichier","Save settings and the names will be changed":"Enregistrer les paramètres et les noms seront modifiés",Select:kvt,"Service names":"Noms de service","Services and IFTTT":"Services et IFTTT","Set color":"Définir la couleur","Set color temperature":"Régler la température de couleur","Set lock state":"Définir l'état de verrouillage","Set percentage":"Définir le pourcentage","Set target temperature":"Régler la température cible","Smart Devices":"Smart Devices","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Smart enums","Smart name":"Nom intelligent","Smart name for %s":"Nom intelligent pour %s","To apply this setting, the restart of adapter must be done. Agree?":"Pour appliquer ce paramètre, l'adaptateur doit être redémarré. Se mettre d'accord?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Pour la détection automatique, sous les objets, affectez un canal (appareil si aucun canal n'est disponible) à une pièce et une fonction. Il ne suffit pas d'affecter la pièce à un état ou à un appareil. Les salles/fonctions peuvent être ajoutées sous l'énumération (indiquée par la flèche blanche en haut à droite) et doivent être activées dans l'adaptateur IoT sous l'énumération intelligente. Afin de reconnaître automatiquement les états manuels, l'état doit être supprimé.","Turn off":"Éteindre","Turn on":"Allumer",Type:Evt,Types:Tvt,"Use Nightscout instance":"Utilisez l'instance Nightscout","Use following link for IFTTT":"Utilisez le lien suivant pour IFTTT","Use following link for custom service":"Utilisez le lien suivant pour un service personnalisé","Use text2command instance":"Utilisez l'instance text2command",Value:Ovt,"White list for services":"Liste blanche pour les services","Write response to":"Écrire une réponse à","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Vous pouvez entrer plusieurs noms divisés par une virgule","amazon link":"Si vous utilisez la compétence Alexa, veuillez écrire une critique pour nous ici.
Des exemples peuvent être trouvés ici .","by ON":"par le",clear:Dvt,default:"défaut",disabled:Avt,help_link_tip1:Mvt,help_link_tip2:Nvt,help_link_tip3:jvt,help_tip:zvt,info_allowedServices:Rvt,info_iftttKey:Ivt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"Mot de passe ioBroker.pro","omit value":"aucune valeur","last value":"dernière valeur",modified:Lvt,"no type":"pas de type",tooltip_allowSelfSignedCertificate:Fvt,tooltip_apikey:Pvt,tooltip_cloudUrl:Bvt,tooltip_concatWord:Hvt,tooltip_deviceOffLevel:Uvt,tooltip_functionFirst:Wvt,tooltip_instance:Vvt,tooltip_language:Gvt,tooltip_noCommon:qvt,tooltip_responseOID:Xvt,tooltip_restartOnDisconnect:Jvt,"Short answer for blood sugar":"Réponse courte pour la glycémie",cannot_use_password:Yvt,invalid_password_warning:Kvt,new_certs_tip:Zvt,new_credentials_tip:Qvt,"Create IoT credentials anew":"Créez à nouveau les informations d'identification IoT",forum_tip:eyt,"Save settings before pressing this button":"Enregistrez les paramètres avant d'appuyer sur ce bouton","Auto Mode":"Mode automatique","Manual Mode":"Mode manuel",manualModeHint:tyt,"not activated":"non activé","Google devices":"Appareils Google","Show/Hide help":"Afficher / masquer l'aide","Show all devices for print out":"Afficher tous les appareils à imprimer",Search:nyt,"List of devices to print out, e.g. to give all device names to your partner.":"Liste des périphériques à imprimer, par ex. pour donner tous les noms d'appareils à votre partenaire.",Name:oyt,Function:"Fonction",Room:ryt,"Copy to clipboard":"Copier dans le presse-papier","Toggle expert mode":"Basculer en mode expert",ID:ayt,"Smart names":"Noms intelligents",ioBType:syt,"Function/Trait":"Fonction / trait",Attributes:iyt,Auto:lyt,"Conversation to GH":"Convertir en GH","Conversation to ioB":"Convertir en ioB","Information: The skill linking process was changed!":"Information: le processus de liaison des compétences a été modifié!","The linking process has been changed for a few months.":"Le processus de mise en relation a été modifié depuis quelques mois.","Now there is no temporary password that will be sent by email.":"Désormais, aucun mot de passe temporaire ne sera envoyé par e-mail.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Le mot de passe est égal à ioBroker.pro et au mot de passe qui a été saisi ici dans les paramètres!","Not understood":"Pas compris","Roger that":"Bien reçu","Read blood sugar from":"Lire la glycémie à partir de","Get actual humidity":"Obtenez l'humidité réelle","Get motion":"Obtenez du mouvement","Get contact":"Obtenir le statut du contact","Too many devices (%s) configured. Max number is 300":"Trop de périphériques (%s) configurés. Le nombre maximum est 300 !","Allow remote access":"Autoriser l'accès à distance","Admin instance":"Instance d'administration","Web instance":"Instance Web","Device %s will be disabled.":"Le périphérique %s sera désactivé.",Delete:cyt,Brightness:dyt,Power:uyt,"Color temperature":"Température de couleur",Color:pyt,Detection:hyt,Lock:fyt,Mode:myt,Muted:gyt,Percentage:_yt,"Set point":"Point de consigne",Temperature:vyt,"Thermostat mode":"Mode thermostatique",Volume:yyt,socket:byt,light:wyt,dimmer:Syt,thermostat:xyt,blind:Cyt,gate:$yt,lock:kyt,hue:Eyt,motion:Tyt,slider:Oyt,temperature:Dyt,window:Ayt,Thermostat:Myt,Light:Nyt,AirCondition:jyt,Blind:zyt,ContactSensor:Ryt,Control:Iyt,Door:Lyt,Gate:Fyt,Hue:Pyt,Motion:Byt,Slider:Hyt,Socket:Uyt,VacuumCleaner:Wyt,VolumeGroup:Vyt,Window:Gyt,"Color HUE":"Teinte de couleur","Door sensor":"Capteur de porte",Sensor:qyt,"Vacuum cleaner":"aspirateur","Volume group":"Groupe de volumes","Window sensor":"Capteur de fenêtre",Blinds:Xyt,"Grouped from %s and %s":"Groupé de %s et %s","Default toggle behaviour (Only alexa v3)":"Comportement de basculement par défaut (uniquement alexa v3)","Do not toggle":"Ne pas basculer",Toggle:Jyt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Ce service est réservé à l'application ioBroker.visu. Veuillez utiliser un autre nom de service."},Kyt="Attivo",Zyt="indirizzi",Qyt="Annulla",ebt="Vicino",tbt="comandi",nbt="Predefinito",obt="oscuratore",rbt="Filtro",abt="funzioni",sbt="Esempio",ibt="Linguaggio",lbt="Messaggio",cbt="via",dbt="Ok",ubt="sopra",pbt="Opzioni",hbt="Revisione",fbt="Camere",mbt="Salvare",gbt="Selezionare",_bt="Genere",vbt="tipi",ybt="Valore",bbt="cancellare",wbt="Disabilitato",Sbt='Prima di scrivere per il supporto, assicurarsi di aver letto e compreso le istruzioni della pagina Web: https://www.iobroker.net',xbt='Se hai ancora problemi con la connessione a Iot, puoi richiedere supporto a Forum',Cbt='e solo dopo dovrai scrivere una email a support@iobroker.com',$bt=`Nessun account iobroker.pro? Compralo su https://iobroker.pro per l'accesso convalidato o ottieni l'accesso gratuito, ma limitato.`,kbt="diviso per virgola. Usa * per consentire tutti i servizi.",Ebt="Puoi trovare la tua chiave qui in 'Documentazione'",Tbt="Il nome è stato modificato dall'utente",Obt="Se si utilizza il proprio cloud, è possibile consentire l'uso di certificati autofirmati per il cloud.",Dbt="Questa chiave è necessaria per comunicare con un cloud. Puoi ottenere l'API-KEY su https://iobroker.net e sembra nickname_f1f439a0-001a-11e7-bc64-92361f002671",Abt="Normalmente non è necessario cambiarlo. Richiesto solo se prevedi di utilizzare il tuo cloud.",Mbt="Definire come concatenare Room e Function. Per esempio. con 'in': luce nel soggiorno.",Nbt="Alcuni gruppi sono costituiti da dispositivi misti: dimmer e interruttori. È consentito controllarli con comandi ON e OFF e con percentuali",jbt="Normalmente i nomi assomigliano a room_function. Qui puoi passare a function_room.",zbt="Istanza Web, che verrà mostrata per le connessioni dal cloud.",Rbt="È possibile definire le lingue per passare velocemente da US Alexa Skill a DE Alexa Skill.",Ibt="Se abilitato, le impostazioni verranno memorizzate solo per questa istanza. Quindi in un'altra istanza potrebbero essere impostati gli altri nomi.",Lbt="Per ogni comando verrà generata la risposta testuale. È possibile definire qui l'ID oggetto, dove questo testo deve essere scritto. Per esempio. sayit.0.tts.text.",Fbt="Soluzione alternativa per la mancata connessione ad Alexa dopo la perdita della connessione al cloud. Con questa opzione è possibile riavviare l'adattatore dopo ogni disconnessione e funzionerà.",Pbt="Non è possibile utilizzare% nella password. Stiamo lavorando alla correzione.",Bbt=`La password deve contenere almeno 8 caratteri e deve contenere numeri, lettere maiuscole e minuscole. Si prega di cambiarlo nel profilo ioBroker.pro +`,Hbt="Se hai effettuato un ripristino dal backup o hai spostato l'istanza da un dispositivo all'altro o hai eliminato l'istanza IoT e l'hai aggiunta di nuovo, devi caricare i certificati di sicurezza della connessione con questo pulsante",Ubt="Se l'accesso ad Alexa Skill/Google Action/Alisa con i dati di accesso ioBroker.pro non riesce, premere il pulsante in basso.",Wbt='Per qualsiasi domanda in qualsiasi lingua, si prega di porre qui nel forum: link ',Vbt="Seleziona un TYPE e un TRAIT dopo aver aggiunto uno stato. Per aggiungere più tratti, aggiungi un ID e un tratto diversi ma lo stesso nome, tipo e spazio intelligenti. Virgola separata per più nomi intelligenti. Per assegnare una stanza, utilizzare ioBroker Enums/Aufzählungen. Con gli attributi puoi ad esempio impostare un intervallo per la temperatura del colore Informazioni su Gli attributi che puoi trovare qui. L'attributo vuoto è {}",Gbt="Ricerca",qbt="Nome",Xbt="Camera",Jbt="ID",Ybt="Tipo di IoB",Kbt="attributi",Zbt="Automaticamente",Qbt="Elimina",e0t="Dimmer",t0t="Acceso/Spento",n0t="Colore",o0t="Rilevamento",r0t="Serratura",a0t="Modalità",s0t="Disattivato",i0t="Percentuale",l0t="Temperatura",c0t="Volume",d0t="PRESA",u0t="leggero",p0t="dimmer",h0t="termostato",f0t="tapparelle",m0t="cancello",g0t="serratura",_0t="tinta",v0t="movimento",y0t="cursore",b0t="temperatura",w0t="finestra",S0t="Termostato",x0t="Leggero",C0t="Aria condizionata",$0t="Tapparelle",k0t="Sensore di contatto",E0t="Controllo",T0t="Porta",O0t="Cancello",D0t="Tinta",A0t="Movimento",M0t="Cursore",N0t="PRESA",j0t="Aspirapolvere",z0t="Gruppo di volumi",R0t="Finestra",I0t="Sensore",L0t="Tapparelle",F0t="Alterna",P0t={"(Set to 0 if behavior not desired)":"(Impostare su 0 se il comportamento non è desiderato)","(you can separate names with comma)":"È possibile inserire diversi nomi divisi per virgola",Active:Kyt,"Add device":"Aggiungi dispositivo","Add service":"Aggiungi servizio",Addresses:Zyt,"Alexa devices":"Dispositivi Alexa","Alisa devices":"Dispositivi Alisa","Allow admin access (only pro)":"Permetti l'accesso amministratore (solo pro)","Allow self-signed certificates":"Consenti certificati autofirmati","Amazon Alexa":"Amazon Alexa","Are you sure?":"Sei sicuro?","Attributes has not correct JSON format.":"Gli attributi non sono nel formato JSON corretto","Authentication must be disabled. You can create second instance extra for cloud.":"L'autenticazione deve essere disabilitata. È possibile creare un extra di seconda istanza per il cloud.",Cancel:Qyt,"Cannot add this object":"Impossibile aggiungere questo oggetto, perché non supportato.","Cannot read devices!":"Impossibile leggere i dispositivi!","Certificates will be updated after initiated restart":"I certificati verranno aggiornati dopo il riavvio avviato","Certificates will be updated after start":"I certificati verranno aggiornati dopo l'avvio","Click now Get new connection certificates to request new temporary password":'Fare clic su "Ottieni nuovi certificati di connessione" per richiedere una nuova password temporanea',Close:ebt,"Cloud URL":"URL del cloud","Cloud adapter settings":"Impostazioni dell'adattatore cloud",Commands:tbt,"Concatenate words with":"Parole concatenate con","Connection timeout":"Timeout connessione (ms)","Debug outputs":"Uscite di debug","Decrement color temperature":"Ridurre la temperatura del colore","Decrement percentage":"Percentuale di decremento","Decrement target temperature":"Ridurre la temperatura target",Default:nbt,"Device %s was not added":"Il dispositivo %s non è stato aggiunto","Device will be deactivated.":"Il dispositivo sarà disattivato.","Device will be disabled.":"Il dispositivo sarà disabilitato.",Dimmer:obt,"Duplicate name":"Nome duplicato","Edit smart name":"Modifica il nome intelligente",Error:"Errore","Extended options":"Opzioni estese",Filter:rbt,"For help use this forum":"Per assistenza, visita questo forum post",Functions:abt,"Get actual temperature":"Ottieni la temperatura effettiva","Get new connection certificates":"Ottieni nuovi certificati di connessione","Get new service URL key":"Ottieni una nuova chiave URL del servizio","Get target temperature":"Ottieni la temperatura target","Google Home":"Google Home","IFTTT key":"Tasto IFTTT","Increment color temperature":"Incrementa la temperatura del colore","Increment percentage":"Percentuale di incremento","Increment target temperature":"Incremento della temperatura target",Instance:sbt,"Instance does not exists":"L'istanza non esiste","Instance is not active.":"L'istanza non è attiva.","Instance must be enabled":"L'istanza deve essere abilitata","Instance must run to deliver the data":"L'istanza deve essere eseguita per consegnare i dati","Invalid object":"Oggetto non valido",Language:ibt,"Load configuration from file":"Carica la configurazione dal file",Message:lbt,"OFF level for switches":"Livello OFF per interruttori","OFF level for switches in %":"Livello OFF per gli interruttori in %",Off:cbt,Ok:dbt,On:ubt,"On/Off":"Acceso spento",Options:pbt,"Personal settings (only pro)":"Impostazioni personali (solo pro)","Ping timeout:":"Timeout del ping (ms)","Place function in names first":"Inserisci la funzione nei nomi prima","Please add action and trait to complete the Google Home state.":"Aggiungi azione e tratto per completare lo stato di Google Home.","Please add type and trait to complete the Google Home state.":"Aggiungi tipo e tratto per completare lo stato di Google Home.","Please select object ID...":"Si prega di selezionare l'oggetto ID ...","Please write your email only in lower case letters":"Si prega di scrivere la tua email solo in lettere minuscole","Read lock state":"Leggi lo stato di blocco","Replace in names":"Sostituisci nei nomi","Request email with password one more time":"Richiedi l'email con la password ancora una volta","Restart on disconnect":"Riavvia alla disconnessione",Review:hbt,Rooms:fbt,Save:mbt,"Save and close":"Salva e chiudi","Save configuration to file":"Salva la configurazione nel file","Save settings and the names will be changed":"Salva le impostazioni e i nomi saranno cambiati",Select:gbt,"Service names":"Nomi di servizio","Services and IFTTT":"Servizi e IFTTT","Set color":"Imposta il colore","Set color temperature":"Imposta la temperatura del colore","Set lock state":"Imposta lo stato di blocco","Set percentage":"Imposta la percentuale","Set target temperature":"Imposta la temperatura target","Smart Devices":"Dispositivi intelligenti","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Enumerazioni intelligenti","Smart name":"Nome intelligente","Smart name for %s":"Nome intelligente per %s","To apply this setting, the restart of adapter must be done. Agree?":"Per applicare questa impostazione, è necessario riavviare l'adattatore. Essere d'accordo?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Per il rilevamento automatico, sotto gli oggetti assegnare un canale (dispositivo se non è disponibile alcun canale) a una stanza e funzione. Non è sufficiente assegnare la stanza a uno stato o dispositivo. Le sale/funzioni possono essere aggiunte all'enumerazione (indicata dalla freccia bianca in alto a destra) e devono essere attivate nell'adattatore IoT in Enumerazione intelligente. Per riconoscere automaticamente gli stati manuali, è necessario eliminare lo stato.","Turn off":"Spegni","Turn on":"Accendere",Type:_bt,Types:vbt,"Use Nightscout instance":"Utilizza l'istanza Nightscout","Use following link for IFTTT":"Usa il seguente link per IFTTT","Use following link for custom service":"Usa il seguente link per il servizio personalizzato","Use text2command instance":"Utilizza l'istanza text2command",Value:ybt,"White list for services":"Lista bianca per i servizi","Write response to":"Scrivi risposta a","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"È possibile inserire diversi nomi divisi per virgola","amazon link":"Se usi Alexa Skill, scrivi una recensione per noi here.
Gli esempi possono essere trovati qui .","by ON":"da ON",clear:bbt,default:"predefinito",disabled:wbt,help_link_tip1:Sbt,help_link_tip2:xbt,help_link_tip3:Cbt,help_tip:$bt,info_allowedServices:kbt,info_iftttKey:Ebt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Password","omit value":"nessun valore","last value":"ultimo valore",modified:Tbt,"no type":"nessun tipo",tooltip_allowSelfSignedCertificate:Obt,tooltip_apikey:Dbt,tooltip_cloudUrl:Abt,tooltip_concatWord:Mbt,tooltip_deviceOffLevel:Nbt,tooltip_functionFirst:jbt,tooltip_instance:zbt,tooltip_language:Rbt,tooltip_noCommon:Ibt,tooltip_responseOID:Lbt,tooltip_restartOnDisconnect:Fbt,"Short answer for blood sugar":"Risposta breve per zucchero nel sangue",cannot_use_password:Pbt,invalid_password_warning:Bbt,new_certs_tip:Hbt,new_credentials_tip:Ubt,"Create IoT credentials anew":"Crea nuovamente le credenziali IoT",forum_tip:Wbt,"Save settings before pressing this button":"Salvare le impostazioni prima di premere questo pulsante","Auto Mode":"Modalità automatica","Manual Mode":"Modalità manuale",manualModeHint:Vbt,"not activated":"non attivato","Google devices":"Dispositivi Google","Show/Hide help":"Mostra / Nascondi aiuto","Show all devices for print out":"Mostra tutti i dispositivi per la stampa",Search:Gbt,"List of devices to print out, e.g. to give all device names to your partner.":"Elenco dei dispositivi da stampare, ad es. per dare tutti i nomi dei dispositivi al tuo partner.",Name:qbt,Function:"Funzione",Room:Xbt,"Copy to clipboard":"Copia negli appunti","Toggle expert mode":"Attiva / disattiva modalità esperto",ID:Jbt,"Smart names":"Nomi intelligenti",ioBType:Ybt,"Function/Trait":"Funzione / Trait",Attributes:Kbt,Auto:Zbt,"Conversation to GH":"Converti in GH","Conversation to ioB":"Converti in ioB","Information: The skill linking process was changed!":"Informazioni: il processo di collegamento delle abilità è stato modificato!","The linking process has been changed for a few months.":"Il processo di collegamento è stato modificato per alcuni mesi.","Now there is no temporary password that will be sent by email.":"Ora non esiste una password temporanea che verrà inviata tramite e-mail.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"La password è uguale a ioBroker.pro e alla password che è stata inserita qui nelle impostazioni!","Not understood":"Non compreso","Roger that":"Ricevuto","Read blood sugar from":"Leggi lo zucchero nel sangue da","Get actual humidity":"Ottieni l'umidità effettiva","Get motion":"Ottieni movimento","Get contact":"Ottieni lo stato del contatto","Too many devices (%s) configured. Max number is 300":"Troppi dispositivi (%s) configurati. Il numero massimo è 300!","Allow remote access":"Consenti accesso remoto","Admin instance":"Istanza amministratore","Web instance":"Istanza web","Device %s will be disabled.":"Il dispositivo %s sarà disabilitato.",Delete:Qbt,Brightness:e0t,Power:t0t,"Color temperature":"Temperatura di colore",Color:n0t,Detection:o0t,Lock:r0t,Mode:a0t,Muted:s0t,Percentage:i0t,"Set point":"Punto stabilito",Temperature:l0t,"Thermostat mode":"Modalità termostato",Volume:c0t,socket:d0t,light:u0t,dimmer:p0t,thermostat:h0t,blind:f0t,gate:m0t,lock:g0t,hue:_0t,motion:v0t,slider:y0t,temperature:b0t,window:w0t,Thermostat:S0t,Light:x0t,AirCondition:C0t,Blind:$0t,ContactSensor:k0t,Control:E0t,Door:T0t,Gate:O0t,Hue:D0t,Motion:A0t,Slider:M0t,Socket:N0t,VacuumCleaner:j0t,VolumeGroup:z0t,Window:R0t,"Color HUE":"Colore TONALITÀ","Door sensor":"Sensore porta",Sensor:I0t,"Vacuum cleaner":"Aspirapolvere","Volume group":"Gruppo di volumi","Window sensor":"Sensore finestra",Blinds:L0t,"Grouped from %s and %s":"Raggruppato da %s e %s","Default toggle behaviour (Only alexa v3)":"Comportamento di commutazione predefinito (solo Alexa v3)","Do not toggle":"Non alternare",Toggle:F0t,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Questo servizio è riservato all'app ioBroker.visu. Utilizza un altro nome di servizio."},B0t="Activo",H0t="Direcciones",U0t="Cancelar",W0t="Cerrar",V0t="Comandos",G0t="Defecto",q0t="Regulador de intensidad",X0t="Filtrar",J0t="Funciones",Y0t="Ejemplo",K0t="Idioma",Z0t="Mensaje",Q0t="apagado",e1t="De acuerdo",t1t="en",n1t="Opciones",o1t="revisión",r1t="Habitaciones",a1t="Salvar",s1t="Seleccionar",i1t="Tipo",l1t="Tipos",c1t="Valor",d1t="limpiar",u1t="discapacitado",p1t='Antes de escribir a soporte, asegúrese de haber leído y entendido las instrucciones de la página web: https://www.iobroker.net',h1t='Si aún tiene problemas con la conexión a Iot, puede solicitar asistencia en el foro',f1t='y solo después de eso, debe escribir un correo electrónico a support@iobroker.com',m1t='¿No hay una cuenta iobroker.pro? Cómprelo en https://iobroker.pro para obtener acceso validado u obtenga de forma gratuita, pero con acceso limitado.',g1t="dividido por coma. Use * para permitir todos los servicios.",_1t="Puede encontrar su clave aquí en 'Documentación'",v1t="El nombre fue modificado por el usuario",y1t="Si usa su propia nube, puede permitir el uso de certificados autofirmados para la nube.",b1t="Esta clave es necesaria para comunicarse con una nube. Puede obtener la API-KEY en https://iobroker.net y se ve como nickname_f1f439a0-001a-11e7-bc64-92361f002671",w1t="Normalmente no es necesario cambiarlo. Solo es obligatorio si planea usar su propia nube.",S1t="Definir cómo concatenar Habitación y Función. P.ej. con 'en': luz en la sala de estar.",x1t="Algunos grupos consisten en dispositivos mixtos: atenuadores e interruptores. Se permite controlarlos con comandos ON y OFF y con porcentajes",C1t="Normalmente los nombres parecen room_function. Aquí puedes cambiarlo a function_room.",$1t="Instancia web, que se mostrará para sus conexiones desde la nube.",k1t="Puede definir los idiomas para cambiar rápidamente entre US Alexa Skill y DE Alexa Skill.",E1t="Si está habilitado, la configuración se almacenará solo para esta instancia. Entonces, en la otra instancia, se podrían establecer los otros nombres.",T1t="Para cada comando, se generará la respuesta de texto. Aquí puede definir la ID del objeto, donde debe escribirse este texto. P.ej. sayit.0.tts.text.",O1t="Solución alternativa para la conexión faltante a Alexa después de la conexión a la nube se perdió. Con esta opción, puede reiniciar el adaptador después de cada desconexión y funcionará.",D1t="No puede usar% en la contraseña. Estamos trabajando en la solución.",A1t=`La contraseña debe tener al menos 8 caracteres y debe tener números, letras mayúsculas y minúsculas. Por favor cámbielo en el perfil ioBroker.pro +`,M1t="Si realizó una restauración desde la copia de seguridad, o movió su instancia de un dispositivo a otro o eliminó la instancia de IoT y la agregó nuevamente, debe cargar los certificados de seguridad de conexión con este botón",N1t="Si falla el inicio de sesión en Alexa Skill/Google Action/Alisa con los datos de inicio de sesión de ioBroker.pro, presione el botón a continuación.",j1t='Cualquier pregunta en cualquier idioma, por favor pregunte aquí en el foro: enlace ',z1t="Seleccione un TYPE y un TRAIT después de agregar un estado. Para agregar múltiples rasgos, agregue una identificación y un rasgo diferentes pero el mismo nombre inteligente, tipo y sala. Coma separada para los múltiples nombres inteligentes. Para asignar una habitación, utilice las Enums/Aufzählungen de ioBroker. Con atributos, por ejemplo, puede establecer un rango para la temperatura de color Infos sobre Atributos que puede encontrar aquí. El atributo vacío es {}",R1t="Buscar",I1t="Nombre",L1t="Habitación",F1t="ID",P1t="Tipo de IoB",B1t="Atributos",H1t="Automáticamente",U1t="Borrar",W1t="Regulador de intensidad",V1t="Encendido/Apagado",G1t="Color",q1t="Detección",X1t="Cerrar",J1t="Modo",Y1t="Apagado",K1t="Porcentaje",Z1t="Temperatura",Q1t="Volumen",ewt="enchufe",twt="luz",nwt="regulador de intensidad",owt="termostato",rwt="Persianas",awt="puerta",swt="cerrar",iwt="matiz",lwt="movimiento",cwt="control deslizante",dwt="temperatura",uwt="ventana",pwt="Termostato",hwt="Luz",fwt="Aire acondicionado",mwt="Persianas",gwt="sensor de contacto",_wt="Control",vwt="Puerta",ywt="Puerta",bwt="Matiz",wwt="Movimiento",Swt="Deslizador",xwt="Enchufe",Cwt="aspiradora",$wt="grupo de volumen",kwt="Ventana",Ewt="Sensor",Twt="Persianas",Owt="Palanca",Dwt={"(Set to 0 if behavior not desired)":"(Se establece en 0 si no se desea el comportamiento)","(you can separate names with comma)":"Puede ingresar varios nombres divididos por coma",Active:B0t,"Add device":"Añadir dispositivo","Add service":"Añadir servicio",Addresses:H0t,"Alexa devices":"Dispositivos de Alexa","Alisa devices":"Dispositivos alisa","Allow admin access (only pro)":"Permitir acceso de administrador (solo pro)","Allow self-signed certificates":"Permitir certificados autofirmados","Amazon Alexa":"Amazon Alexa","Are you sure?":"¿Estás seguro?","Attributes has not correct JSON format.":"Los atributos no están en el formato JSON correcto","Authentication must be disabled. You can create second instance extra for cloud.":"La autenticación debe estar deshabilitada. Puede crear una segunda instancia extra para la nube.",Cancel:U0t,"Cannot add this object":"No se puede agregar este objeto porque no es compatible.","Cannot read devices!":"No se pueden leer los dispositivos!","Certificates will be updated after initiated restart":"Los certificados se actualizarán después de reiniciarse","Certificates will be updated after start":"Los certificados se actualizarán después del inicio","Click now Get new connection certificates to request new temporary password":'Haga clic ahora en "Obtener nuevos certificados de conexión" para solicitar una nueva contraseña temporal',Close:W0t,"Cloud URL":"URL en la nube","Cloud adapter settings":"Configuración del adaptador de nube",Commands:V0t,"Concatenate words with":"Concatenar palabras con","Connection timeout":"Tiempo de espera de conexión (ms)","Debug outputs":"Salidas de depuración","Decrement color temperature":"Disminución de la temperatura de color.","Decrement percentage":"Porcentaje de decremento","Decrement target temperature":"Disminuir la temperatura objetivo",Default:G0t,"Device %s was not added":"El dispositivo %s no fue agregado","Device will be deactivated.":"El dispositivo se desactivará.","Device will be disabled.":"El dispositivo %s estará deshabilitado.",Dimmer:q0t,"Duplicate name":"Nombre duplicado","Edit smart name":"Editar nombre inteligente",Error:"Error","Extended options":"Opciones extendidas",Filter:X0t,"For help use this forum":"Para obtener ayuda, visite este foro publicar",Functions:J0t,"Get actual temperature":"Obtener la temperatura real","Get new connection certificates":"Obtenga nuevos certificados de conexión","Get new service URL key":"Obtener nueva clave de servicio URL","Get target temperature":"Obtener temperatura objetivo","Google Home":"Google Home","IFTTT key":"Tecla IFTTT","Increment color temperature":"Temperatura de color incrementada","Increment percentage":"Porcentaje de incremento","Increment target temperature":"Incrementar la temperatura objetivo",Instance:Y0t,"Instance does not exists":"La instancia no existe","Instance is not active.":"La instancia no está activa.","Instance must be enabled":"La instancia debe estar habilitada","Instance must run to deliver the data":"La instancia debe ejecutarse para entregar los datos","Invalid object":"Objeto inválido",Language:K0t,"Load configuration from file":"Cargar configuración desde archivo",Message:Z0t,"OFF level for switches":"Nivel de apagado para interruptores","OFF level for switches in %":"Nivel OFF para interruptores en %",Off:Q0t,Ok:e1t,On:t1t,"On/Off":"Encendido apagado",Options:n1t,"Personal settings (only pro)":"Configuración personal (solo pro)","Ping timeout:":"Tiempo de espera de ping (ms)","Place function in names first":"Coloque la función en los nombres primero","Please add action and trait to complete the Google Home state.":"Agregue acción y rasgo para completar el estado de Google Home.","Please add type and trait to complete the Google Home state.":"Agregue tipo y rasgo para completar el estado de Google Home.","Please select object ID...":"Por favor seleccione ID de objeto ...","Please write your email only in lower case letters":"Por favor escriba su correo electrónico sólo en minúsculas","Read lock state":"Estado de bloqueo de lectura","Replace in names":"Reemplazar en nombres","Request email with password one more time":"Solicitar correo electrónico con contraseña una vez más","Restart on disconnect":"Reiniciar al desconectar",Review:o1t,Rooms:r1t,Save:a1t,"Save and close":"Guardar y cerrar","Save configuration to file":"Guardar la configuración en el archivo","Save settings and the names will be changed":"Guarde la configuración y los nombres serán cambiados",Select:s1t,"Service names":"Nombres de servicio","Services and IFTTT":"Servicios e IFTTT","Set color":"Establecer color","Set color temperature":"Ajustar la temperatura de color","Set lock state":"Establecer el estado de bloqueo","Set percentage":"Establecer porcentaje","Set target temperature":"Ajustar la temperatura objetivo","Smart Devices":"Dispositivos inteligentes","Smart Enums":"Smart Enums","Smart Media":"Smart Media","Smart enums":"Enums inteligentes","Smart name":"Nombre inteligente","Smart name for %s":"Nombre inteligente para %s","To apply this setting, the restart of adapter must be done. Agree?":"Para aplicar esta configuración, el adaptador debe reiniciarse. ¿De acuerdo?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Para la detección automática, debajo de los objetos asigne un canal (dispositivo si no hay un canal disponible) a una sala y función. No es suficiente asignar la habitación a un estado o dispositivo. Las habitaciones/funciones se pueden agregar en la enumeración (indicada por la flecha blanca en la parte superior derecha) y se deben activar en el adaptador IoT en la enumeración inteligente. Para reconocer automáticamente los estados manuales, el estado debe ser eliminado.","Turn off":"Apagar","Turn on":"Encender",Type:i1t,Types:l1t,"Use Nightscout instance":"Use la instancia del Nightscout","Use following link for IFTTT":"Utilice el siguiente enlace para IFTTT","Use following link for custom service":"Use el siguiente enlace para servicio personalizado","Use text2command instance":"Use la instancia del comando text2",Value:c1t,"White list for services":"Lista blanca de servicios","Write response to":"Escribir respuesta a","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Puede introducir varios nombres divididos por comas","amazon link":"Si usa Alexa Skill, escriba una opinión para nosotros aquí .
Se pueden encontrar ejemplos aquí .","by ON":"por el",clear:d1t,default:"defecto",disabled:u1t,help_link_tip1:p1t,help_link_tip2:h1t,help_link_tip3:f1t,help_tip:m1t,info_allowedServices:g1t,info_iftttKey:_1t,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Contraseña","omit value":"sin valor","last value":"último valor",modified:v1t,"no type":"Sin tipo",tooltip_allowSelfSignedCertificate:y1t,tooltip_apikey:b1t,tooltip_cloudUrl:w1t,tooltip_concatWord:S1t,tooltip_deviceOffLevel:x1t,tooltip_functionFirst:C1t,tooltip_instance:$1t,tooltip_language:k1t,tooltip_noCommon:E1t,tooltip_responseOID:T1t,tooltip_restartOnDisconnect:O1t,"Short answer for blood sugar":"Respuesta corta para azúcar en la sangre",cannot_use_password:D1t,invalid_password_warning:A1t,new_certs_tip:M1t,new_credentials_tip:N1t,"Create IoT credentials anew":"Crear nuevas credenciales de IoT",forum_tip:j1t,"Save settings before pressing this button":"Guarde la configuración antes de presionar este botón","Auto Mode":"Modo automático","Manual Mode":"Modo manual",manualModeHint:z1t,"not activated":"no esta activado","Google devices":"Dispositivos de Google","Show/Hide help":"Mostrar / Ocultar ayuda","Show all devices for print out":"Mostrar todos los dispositivos para imprimir",Search:R1t,"List of devices to print out, e.g. to give all device names to your partner.":"Lista de dispositivos para imprimir, p. para dar todos los nombres de dispositivo a su pareja.",Name:I1t,Function:"Función",Room:L1t,"Copy to clipboard":"Copiar al portapapeles","Toggle expert mode":"Alternar modo experto",ID:F1t,"Smart names":"Nombres inteligentes",ioBType:P1t,"Function/Trait":"Función / rasgo",Attributes:B1t,Auto:H1t,"Conversation to GH":"Convertir a GH","Conversation to ioB":"Convertir a ioB","Information: The skill linking process was changed!":"Información: ¡Se cambió el proceso de vinculación de habilidades!","The linking process has been changed for a few months.":"El proceso de vinculación se ha modificado durante unos meses.","Now there is no temporary password that will be sent by email.":"Ahora no hay una contraseña temporal que se enviará por correo electrónico.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"¡La contraseña es igual a ioBroker.pro y con la contraseña que se ingresó aquí en la configuración!","Not understood":"No se entiende","Roger that":"Entendido","Read blood sugar from":"Leer azúcar en sangre de","Get actual humidity":"Obtenga la humedad real","Get motion":"Obtener movimiento","Get contact":"Obtener estado de contacto","Too many devices (%s) configured. Max number is 300":"Demasiados dispositivos (%s) configurados. ¡El número máximo es 300!","Allow remote access":"Permitir acceso remoto","Admin instance":"Instancia de administrador","Web instance":"Instancia web","Device %s will be disabled.":"El dispositivo %s se desactivará.",Delete:U1t,Brightness:W1t,Power:V1t,"Color temperature":"Temperatura del color",Color:G1t,Detection:q1t,Lock:X1t,Mode:J1t,Muted:Y1t,Percentage:K1t,"Set point":"Punto fijo",Temperature:Z1t,"Thermostat mode":"Modo termostato",Volume:Q1t,socket:ewt,light:twt,dimmer:nwt,thermostat:owt,blind:rwt,gate:awt,lock:swt,hue:iwt,motion:lwt,slider:cwt,temperature:dwt,window:uwt,Thermostat:pwt,Light:hwt,AirCondition:fwt,Blind:mwt,ContactSensor:gwt,Control:_wt,Door:vwt,Gate:ywt,Hue:bwt,Motion:wwt,Slider:Swt,Socket:xwt,VacuumCleaner:Cwt,VolumeGroup:$wt,Window:kwt,"Color HUE":"Color TONO","Door sensor":"sensor de puerta",Sensor:Ewt,"Vacuum cleaner":"aspiradora","Volume group":"grupo de volumen","Window sensor":"sensor de ventana",Blinds:Twt,"Grouped from %s and %s":"Agrupados de %s y %s","Default toggle behaviour (Only alexa v3)":"Comportamiento de alternancia predeterminado (solo alexa v3)","Do not toggle":"no alternar",Toggle:Owt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Este servicio está reservado para la aplicación ioBroker.visu. Utilice otro nombre de servicio."},Awt="Aktywny",Mwt="Adresy",Nwt="Odwołaj",jwt="Zamknij",zwt="Polecenia",Rwt="Domyślna",Iwt="Opornik",Lwt="Filtr",Fwt="Funkcje",Pwt="Instancja",Bwt="Język",Hwt="Wiadomość",Uwt="poza",Wwt="Ok",Vwt="na",Gwt="Opcje",qwt="Przejrzeć",Xwt="Pokoje",Jwt="Zapisz",Ywt="Wybierz",Kwt="Typ",Zwt="Rodzaje",Qwt="Wartość",eSt="Oczyścić",tSt="niepełnosprawny",nSt='Przed napisaniem do wsparcia upewnij się, że przeczytałeś i zrozumiałeś instrukcje strony: https://www.iobroker.net',oSt='Jeśli nadal masz problem z połączeniem z Iot, możesz poprosić o wsparcie na Forum',rSt='i dopiero potem powinieneś napisać e-mail na adres support@iobroker.com',aSt='Brak konta iobroker.pro? Kup go na https://iobroker.pro w celu zweryfikowania dostępu lub uzyskaj bezpłatny, ale ograniczony dostęp.',sSt="podzielone przecinkiem. Użyj *, aby zezwolić na wszystkie usługi.",iSt=`Możesz znaleźć klucz tutaj w sekcji "Dokumentacja"`,lSt="Nazwa została zmodyfikowana przez użytkownika",cSt="Jeśli korzystasz z własnej chmury, możesz zezwolić na używanie samopodpisanych certyfikatów dla chmury.",dSt="Ten klucz jest wymagany do komunikacji z chmurą. Możesz pobrać API-KEY na https://iobroker.net i wygląda jak pseudonim_f1f439a0-001a-11e7-bc64-92361f002671",uSt="Zwykle nie musisz tego zmieniać. Wymagane tylko, jeśli masz zamiar korzystać z własnej chmury.",pSt='Określ, jak połączyć pokój i funkcję. Na przykład. z "in": Światło w salonie.',hSt="Niektóre grupy składają się z różnych urządzeń: ściemniaczy i przełączników. Dozwolone jest sterowanie nimi za pomocą poleceń ON i OFF oraz procentami",fSt="Normalnie nazwy wyglądają jak room_function. Tutaj możesz przełączyć go do function_room.",mSt="Instancja internetowa, która będzie wyświetlana dla twoich połączeń z chmury.",gSt="Możesz zdefiniować języki, aby szybko przełączać się pomiędzy US Alexa Skill i DE Alexa Skill.",_St="Jeśli jest włączona, ustawienia będą przechowywane tylko dla tej instancji. Tak więc w innym przypadku można ustawić inne nazwy.",vSt="Dla każdego polecenia zostanie wygenerowana odpowiedź tekstowa. Możesz tu zdefiniować identyfikator obiektu, do którego należy zapisać ten tekst. Na przykład. sayit.0.tts.text.",ySt="Rozwiązano problem braku połączenia z Alexa po utracie połączenia z chmurą. Dzięki tej opcji można ponownie uruchomić adapter po każdym rozłączeniu i będzie działać.",bSt="Nie możesz użyć% w haśle. Pracujemy nad poprawką.",wSt=`Hasło musi mieć co najmniej 8 znaków i musi zawierać cyfry, wielkie i małe litery. Zmień to w profilu ioBroker.pro +`,SSt="Jeśli wykonałeś przywracanie z kopii zapasowej, przeniosłeś instancję z jednego urządzenia na drugie lub usunąłeś instancję IoT i dodałeś ją ponownie, musisz załadować certyfikaty bezpieczeństwa połączenia za pomocą tego przycisku",xSt="Jeśli logowanie do Alexa Skill/Google Action/Alisa za pomocą danych logowania ioBroker.pro nie powiedzie się, naciśnij poniższy przycisk.",CSt='Wszelkie pytania w dowolnym języku prosimy zadawać tutaj na forum: link ',$St="Wybierz TYPE i TRAIT po dodaniu stanu. Aby dodać wiele cech, dodaj inny identyfikator i cechę, ale tę samą inteligentną nazwę, typ i pokój. Oddzielony przecinkami dla wielu inteligentnych nazw. Aby przypisać pokój, użyj ioBroker Enums/Aufzählungen. Za pomocą atrybutów możesz na przykład ustawić zakres temperatury kolorów Informacje o Atrybuty można znaleźć tutaj. Pusty atrybut to {}",kSt="Szukaj",ESt="Nazwa",TSt="Pokój",OSt="ID",DSt="Typ IoB",ASt="Atrybuty",MSt="Automatycznie",NSt="Usuwać",jSt="Opornik",zSt="Wł./Wył",RSt="Kolor",ISt="Wykrycie",LSt="Zamek",FSt="Tryb",PSt="Wyciszony",BSt="Odsetek",HSt="Temperatura",USt="Tom",WSt="gniazdo elektryczne",VSt="światło",GSt="opornik",qSt="termostat",XSt="rolety okienne",JSt="brama",YSt="zamek",KSt="odcień",ZSt="ruch",QSt="suwak",ext="temperatura",txt="okno",nxt="Termostat",oxt="Światło",rxt="Klimatyzacja",axt="Rolety okienne",sxt="Czujnik kontaktowy",ixt="Kontrola",lxt="Drzwi",cxt="Brama",dxt="Odcień",uxt="Ruch",pxt="Suwak",hxt="Gniazdo elektryczne",fxt="Odkurzacz",mxt="Grupa woluminów",gxt="Okno",_xt="Czujnik",vxt="Rolety okienne",yxt="Przełącznik",bxt={"(Set to 0 if behavior not desired)":"(Ustaw na 0, jeśli zachowanie nie jest pożądane)","(you can separate names with comma)":"Możesz wprowadzić kilka nazw podzielonych przecinkami",Active:Awt,"Add device":"Dodaj urządzenie","Add service":"Dodaj usługę",Addresses:Mwt,"Alexa devices":"Urządzenia Alexa","Alisa devices":"Urządzenia Alisa","Allow admin access (only pro)":"Zezwalaj na dostęp administratora (tylko pro)","Allow self-signed certificates":"Zezwalaj na certyfikaty z podpisem własnym","Amazon Alexa":"Amazon Alexa","Are you sure?":"Jesteś pewny?","Attributes has not correct JSON format.":"Atrybuty mają niepoprawny format JSON","Authentication must be disabled. You can create second instance extra for cloud.":"Uwierzytelnianie musi być wyłączone. Możesz utworzyć dodatkową instancję dodatkową dla chmury.",Cancel:Nwt,"Cannot add this object":"Nie można dodać tego obiektu, ponieważ nie jest obsługiwany.","Cannot read devices!":"Nie można odczytać urządzeń!","Certificates will be updated after initiated restart":"Certyfikaty będą aktualizowane po ponownym uruchomieniu","Certificates will be updated after start":"Certyfikaty będą aktualizowane po starcie","Click now Get new connection certificates to request new temporary password":'Kliknij teraz "Pobierz nowe certyfikaty połączeń", aby poprosić o nowe tymczasowe hasło',Close:jwt,"Cloud URL":"Chmura adresu URL","Cloud adapter settings":"Ustawienia adaptera chmury",Commands:zwt,"Concatenate words with":"Połącz słowa z","Connection timeout":"Limit czasu połączenia (ms)","Debug outputs":"Wyjścia debugowania","Decrement color temperature":"Zmniejsz temperaturę barwową","Decrement percentage":"Procent zmniejszenia","Decrement target temperature":"Zmniejsz temperaturę docelową",Default:Rwt,"Device %s was not added":"Urządzenie %s nie zostało dodane","Device will be deactivated.":"Urządzenie zostanie dezaktywowane.","Device will be disabled.":"Urządzenie zostanie wyłączone.",Dimmer:Iwt,"Duplicate name":"Zduplikowana nazwa","Edit smart name":"Edytuj inteligentną nazwę",Error:"Błąd","Extended options":"Rozszerzone opcje",Filter:Lwt,"For help use this forum":"Aby uzyskać pomoc, odwiedź to forum post",Functions:Fwt,"Get actual temperature":"Uzyskaj rzeczywistą temperaturę","Get new connection certificates":"Uzyskaj nowe certyfikaty połączeń","Get new service URL key":"Uzyskaj nowy klucz URL usługi","Get target temperature":"Uzyskaj docelową temperaturę","Google Home":"Google Home","IFTTT key":"Klawisz IFTTT","Increment color temperature":"Przyrost temperatury barwowej","Increment percentage":"Przyrost procentowy","Increment target temperature":"Przyrost temperatury docelowej",Instance:Pwt,"Instance does not exists":"Instancja nie istnieje","Instance is not active.":"Instancja nie jest aktywna.","Instance must be enabled":"Instancja musi być włączona","Instance must run to deliver the data":"Instancja musi zostać uruchomiona w celu dostarczenia danych","Invalid object":"Nieprawidłowy obiekt",Language:Bwt,"Load configuration from file":"Załaduj konfigurację z pliku",Message:Hwt,"OFF level for switches":"Poziom OFF dla przełączników","OFF level for switches in %":"Poziom wyłączenia dla przełączników w %",Off:Uwt,Ok:Wwt,On:Vwt,"On/Off":"Włącz/Wyłącz",Options:Gwt,"Personal settings (only pro)":"Ustawienia osobiste (tylko pro)","Ping timeout:":"Limit czasu pingowania (ms)","Place function in names first":"Najpierw umieść funkcję w imionach","Please add action and trait to complete the Google Home state.":"Dodaj działanie i cechę, aby ukończyć stan Google Home.","Please add type and trait to complete the Google Home state.":"Dodaj typ i cechę, aby ukończyć stan Google Home.","Please select object ID...":"Wybierz identyfikator obiektu ...","Please write your email only in lower case letters":"Napisz swój e-mail tylko małymi literami","Read lock state":"Czytaj stan blokady","Replace in names":"Zastąp imiona","Request email with password one more time":"Poproś jeszcze raz o e-mail z hasłem","Restart on disconnect":"Uruchom ponownie po rozłączeniu",Review:qwt,Rooms:Xwt,Save:Jwt,"Save and close":"Zapisz i zamknij","Save configuration to file":"Zapisz konfigurację do pliku","Save settings and the names will be changed":"Zapisz ustawienia i nazwy zostaną zmienione",Select:Ywt,"Service names":"Nazwy usług","Services and IFTTT":"Usługi i IFTTT","Set color":"Ustaw kolor","Set color temperature":"Ustaw temperaturę barwową","Set lock state":"Ustaw stan blokady","Set percentage":"Ustaw procent","Set target temperature":"Ustaw temperaturę docelową","Smart Devices":"Inteligentne urządzenia","Smart Enums":"Inteligentne wyliczenia","Smart Media":"Smart Media","Smart enums":"Inteligentne enumy","Smart name":"Inteligentna nazwa","Smart name for %s":"Inteligentna nazwa dla %s","To apply this setting, the restart of adapter must be done. Agree?":"Aby zastosować to ustawienie, adapter musi zostać zrestartowany. Zgodzić się?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"W celu automatycznego wykrywania pod obiektami przypisz kanał (urządzenie, jeśli żaden kanał nie jest dostępny) do pokoju i funkcji. Nie wystarczy przypisać pokój do stanu lub urządzenia. Pomieszczenia/funkcje można dodawać w ramach wyliczenia (oznaczonego białą strzałką w prawym górnym rogu) i należy je aktywować w adapterze IoT w obszarze Inteligentne wyliczanie. Aby automatycznie rozpoznać stany ręczne, należy je usunąć.","Turn off":"Wyłączyć","Turn on":"Włączyć",Type:Kwt,Types:Zwt,"Use Nightscout instance":"Użyj instancji Nightscout","Use following link for IFTTT":"Użyj następującego linku dla IFTTT","Use following link for custom service":"Użyj poniższego linku do niestandardowej usługi","Use text2command instance":"Użyj instancji text2command",Value:Qwt,"White list for services":"Biała lista dla usług","Write response to":"Napisz odpowiedź na","Yandex Алиса":"Yandex Алиса","You can enter several names divided by comma":"Możesz wprowadzić kilka nazw podzielonych przecinkiem","amazon link":`Jeśli używasz umiejętności Alexa, napisz recenzję dla nas here . Przykłady można znaleźć tutaj .`,"by ON":"przez ON",clear:eSt,default:"domyślna",disabled:tSt,help_link_tip1:nSt,help_link_tip2:oSt,help_link_tip3:rSt,help_tip:aSt,info_allowedServices:sSt,info_iftttKey:iSt,"ioBroker.pro Login":"ioBroker.pro Login","ioBroker.pro Password":"ioBroker.pro Hasło","omit value":"brak wartości","last value":"ostatnia wartość",modified:lSt,"no type":"bez typu",tooltip_allowSelfSignedCertificate:cSt,tooltip_apikey:dSt,tooltip_cloudUrl:uSt,tooltip_concatWord:pSt,tooltip_deviceOffLevel:hSt,tooltip_functionFirst:fSt,tooltip_instance:mSt,tooltip_language:gSt,tooltip_noCommon:_St,tooltip_responseOID:vSt,tooltip_restartOnDisconnect:ySt,"Short answer for blood sugar":"Krótka odpowiedź na cukier we krwi",cannot_use_password:bSt,invalid_password_warning:wSt,new_certs_tip:SSt,new_credentials_tip:xSt,"Create IoT credentials anew":"Utwórz ponownie poświadczenia IoT",forum_tip:CSt,"Save settings before pressing this button":"Zapisz ustawienia przed naciśnięciem tego przycisku","Auto Mode":"Tryb automatyczny","Manual Mode":"Tryb ręczny",manualModeHint:$St,"not activated":"nie aktywowany","Google devices":"Urządzenia Google","Show/Hide help":"Pokaż / ukryj pomoc","Show all devices for print out":"Pokaż wszystkie urządzenia do wydrukowania",Search:kSt,"List of devices to print out, e.g. to give all device names to your partner.":"Lista urządzeń do wydrukowania, np. aby podać wszystkie nazwy urządzeń swojemu partnerowi.",Name:ESt,Function:"Funkcja",Room:TSt,"Copy to clipboard":"Skopiuj do schowka","Toggle expert mode":"Przełącz tryb ekspercki",ID:OSt,"Smart names":"Inteligentne nazwy",ioBType:DSt,"Function/Trait":"Funkcja / cecha",Attributes:ASt,Auto:MSt,"Conversation to GH":"Konwertuj na GH","Conversation to ioB":"Konwertuj na ioB","Information: The skill linking process was changed!":"Informacja: Zmieniono proces łączenia umiejętności!","The linking process has been changed for a few months.":"Od kilku miesięcy zmienił się proces łączenia.","Now there is no temporary password that will be sent by email.":"Teraz nie ma tymczasowego hasła, które zostanie wysłane e-mailem.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Hasło jest równe z ioBroker.pro i hasłem, które zostało wprowadzone tutaj w ustawieniach!","Not understood":"Nie rozumiem","Roger that":"Przyjąłem","Read blood sugar from":"Odczytaj poziom cukru we krwi","Get actual humidity":"Uzyskaj aktualną wilgotność","Get motion":"Wpraw się w ruch","Get contact":"Uzyskaj status kontaktu","Too many devices (%s) configured. Max number is 300":"Za dużo skonfigurowanych urządzeń (%s). Maksymalna liczba to 300!","Allow remote access":"Zezwól na zdalny dostęp","Admin instance":"Instancja administracyjna","Web instance":"Instancja internetowa","Device %s will be disabled.":"Urządzenie %s zostanie wyłączone.",Delete:NSt,Brightness:jSt,Power:zSt,"Color temperature":"Temperatura koloru",Color:RSt,Detection:ISt,Lock:LSt,Mode:FSt,Muted:PSt,Percentage:BSt,"Set point":"Ustaw punkt",Temperature:HSt,"Thermostat mode":"Tryb termostatu",Volume:USt,socket:WSt,light:VSt,dimmer:GSt,thermostat:qSt,blind:XSt,gate:JSt,lock:YSt,hue:KSt,motion:ZSt,slider:QSt,temperature:ext,window:txt,Thermostat:nxt,Light:oxt,AirCondition:rxt,Blind:axt,ContactSensor:sxt,Control:ixt,Door:lxt,Gate:cxt,Hue:dxt,Motion:uxt,Slider:pxt,Socket:hxt,VacuumCleaner:fxt,VolumeGroup:mxt,Window:gxt,"Color HUE":"Barwa koloru","Door sensor":"Czujnik drzwi",Sensor:_xt,"Vacuum cleaner":"Odkurzacz","Volume group":"Grupa woluminów","Window sensor":"Czujnik okna",Blinds:vxt,"Grouped from %s and %s":"Pogrupowane z %s i %s","Default toggle behaviour (Only alexa v3)":"Domyślne zachowanie przełączania (tylko Alexa v3)","Do not toggle":"Nie przełączaj",Toggle:yxt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Usługa ta jest zarezerwowana dla aplikacji ioBroker.visu. Użyj innej nazwy usługi."},wxt="Активний",Sxt="Адреси",xxt="Атрибути",Cxt="Автоматично",$xt="Скасувати",kxt="Закрити",Ext="Команди",Txt="За замовчуванням",Oxt="Диммер",Dxt="фільтр",Axt="Функції",Mxt="ID",Nxt="Екземпляр",jxt="Мову",zxt="повідомлення",Rxt="Ім'я",Ixt="вимкнено",Lxt="В порядку",Fxt="на",Pxt="Опції",Bxt="огляд",Hxt="Кімната",Uxt="Кімнати",Wxt="зберегти",Vxt="Пошук",Gxt="Виберіть",qxt="Тип",Xxt="Типи",Jxt="Значення",Yxt="Ви не можете використовувати % у паролі. Ми працюємо над виправленням.",Kxt="ясно",Zxt="вимкнено",Qxt='Будь-які запитання будь-якою мовою задавайте тут, на форумі: посилання',e2t='Перш ніж писати в службу підтримки, переконайтеся, що ви прочитали та зрозуміли інструкції на веб-сторінці: https://www.iobroker.net',t2t='Якщо у вас усе ще виникають проблеми з підключенням до Iot, ви можете подати запит на підтримку на форумі',n2t='і тільки після цього вам слід написати листа на support@iobroker.com',o2t='Немає облікового запису iobroker.pro? Придбайте його на https://iobroker.pro для перевіреного доступу або отримайте безкоштовний, але обмежений доступ.',r2t="розділені комою. Використовуйте *, щоб дозволити всі служби.",a2t="Ви можете знайти свій ключ тут у розділі «Документація»",s2t=`Пароль має містити не менше 8 символів і містити цифри, великі та малі літери. Будь ласка, змініть його в профілі ioBroker.pro +`,i2t="Тип IoB",l2t="Виберіть TYPE і TRAIT після додавання стану. Щоб додати кілька характеристик, додайте інший ідентифікатор і ознаку, але однакові розумне ім’я, тип і кімнату. Розділені комами для кількох розумних імен. Щоб призначити кімнату, скористайтеся ioBroker Enums/Aufzählungen. За допомогою атрибутів ви можете, наприклад, встановити діапазон для колірної температури Інформація про Атрибути можна знайти тут. Порожній атрибут: {}",c2t="Ім'я було змінено користувачем",d2t="Якщо ви відновили з резервної копії або перемістили екземпляр з одного пристрою на інший, або видалили екземпляр IoT і додали його знову, ви повинні завантажити сертифікати безпеки підключення за допомогою цієї кнопки",u2t="Якщо вхід до Alexa Skill/Google Action/Alisa за допомогою даних для входу ioBroker.pro не вдається, натисніть кнопку нижче.",p2t="Якщо ви використовуєте власну хмару, ви можете дозволити використання самопідписаних сертифікатів для хмари.",h2t="Цей ключ потрібен для зв’язку з хмарою. Ви можете отримати API-KEY на https://iobroker.net і він виглядає як nickname_f1f439a0-001a-11e7-bc64-92361f002671",f2t="Зазвичай вам не потрібно його міняти. Потрібно, лише якщо ви плануєте використовувати власну хмару.",m2t="Визначте, як об’єднати кімнату та функцію. наприклад з 'in': світло у вітальні.",g2t="Деякі групи складаються зі змішаних пристроїв: диммерів і вимикачів. Дозволяється керувати ними за допомогою команд ON і OFF, а також за допомогою відсотків",_2t="Зазвичай назви виглядають як room_function. Тут ви можете переключити його на function_room.",v2t="Веб-екземпляр, який буде показано для ваших підключень із хмари.",y2t="Ви можете визначити мови для швидкого перемикання між US Alexa Skill і DE Alexa Skill.",b2t="Якщо ввімкнено, налаштування зберігатимуться лише для цього екземпляра. Отже, в іншому випадку можна встановити інші імена.",w2t="Для кожної команди буде згенеровано текстову відповідь. Тут можна визначити ідентифікатор об’єкта, куди має бути записано цей текст. наприклад sayit.0.tts.text.",S2t="Обхідний шлях для відсутності підключення до Alexa після втрати підключення до хмари. За допомогою цієї опції ви можете перезавантажувати адаптер після кожного відключення, і він працюватиме.",x2t="Видалити",C2t="Диммер",$2t="Увімкнено/Вимкнено",k2t="Колір",E2t="виявлення",T2t="Замок",O2t="Режим",D2t="Вимкнено",A2t="Відсоток",M2t="температура",N2t="Обсяг",j2t="гніздо",z2t="світло",R2t="диммер",I2t="термостат",L2t="віконні жалюзі",F2t="ворота",P2t="замок",B2t="відтінок",H2t="руху",U2t="повзунок",W2t="температура",V2t="вікно",G2t="Термостат",q2t="світло",X2t="Кондиціонер",J2t="Віконні жалюзі",Y2t="Контактний датчик",K2t="КОНТРОЛЬ",Z2t="двері",Q2t="Ворота",eCt="Відтінок",tCt="Рух",nCt="повзунок",oCt="Розетка",rCt="Пилосос",aCt="Група томів",sCt="Вікно",iCt="датчик",lCt="Віконні жалюзі",cCt="Перемикач",dCt={"(Set to 0 if behavior not desired)":"(Встановіть 0, якщо поведінка небажана)","(you can separate names with comma)":"Ви можете ввести кілька імен, розділених комою",Active:wxt,"Add device":"Додайте пристрій","Add service":"Додати послугу",Addresses:Sxt,"Admin instance":"Примірник адміністратора","Alexa devices":"Пристрої Alexa","Alisa devices":"пристрої Аліса","Allow admin access (only pro)":"Дозволити доступ адміністратора (лише для професіоналів)","Allow remote access":"Дозволити віддалений доступ","Allow self-signed certificates":"Дозволити самопідписані сертифікати","Amazon Alexa":"Amazon Alexa","Are you sure?":"Ти впевнений?",Attributes:xxt,"Attributes has not correct JSON format.":"Атрибути мають неправильний формат JSON","Authentication must be disabled. You can create second instance extra for cloud.":"Автентифікація повинна бути вимкнена. Ви можете створити додатковий другий екземпляр для хмари.",Auto:Cxt,"Auto Mode":"Автоматичний режим",Cancel:$xt,"Cannot add this object":"Неможливо додати цей об’єкт, оскільки не підтримується.","Cannot read devices!":"Неможливо прочитати пристрої!","Certificates will be updated after initiated restart":"Сертифікати будуть оновлені після ініційованого перезапуску","Certificates will be updated after start":"Сертифікати будуть оновлені після запуску","Click now Get new connection certificates to request new temporary password":"Натисніть «Отримати нові сертифікати підключення», щоб запитати новий тимчасовий пароль",Close:kxt,"Cloud URL":"URL-адреса хмари","Cloud adapter settings":"Налаштування хмарного адаптера",Commands:Ext,"Concatenate words with":"Сполучіть слова з","Connection timeout":"Час очікування підключення (мс)","Conversation to GH":"Перетворити в GH","Conversation to ioB":"Перетворити в ioB","Copy to clipboard":"Копіювати в буфер обміну","Create IoT credentials anew":"Створіть облікові дані IoT заново","Debug outputs":"Виходи налагодження","Decrement color temperature":"Зменшити колірну температуру","Decrement percentage":"Відсоток зменшення","Decrement target temperature":"Зменшити цільову температуру",Default:Txt,"Device %s was not added":"Пристрій %s не додано","Device will be deactivated.":"Пристрій буде деактивовано.","Device will be disabled.":"Пристрій %s буде вимкнено.",Dimmer:Oxt,"Duplicate name":"Повторюване ім'я","Edit smart name":"Редагувати розумне ім'я",Error:"Помилка","Extended options":"Розширені параметри",Filter:Dxt,"For help use this forum":"Щоб отримати допомогу, відвідайте цей форум публікація",Function:"функція","Function/Trait":"Функція/риса",Functions:Axt,"Get actual humidity":"Отримайте фактичну вологість","Get actual temperature":"Отримайте фактичну температуру","Get contact":"Отримати статус контакту","Get motion":"Отримати рух","Get new connection certificates":"Отримати нові сертифікати підключення","Get new service URL key":"Отримайте новий ключ URL-адреси служби","Get target temperature":"Отримайте цільову температуру","Google Home":"Google Home","Google devices":"пристрої Google",ID:Mxt,"IFTTT key":"Ключ IFTTT","Increment color temperature":"Збільшити колірну температуру","Increment percentage":"Відсоток приросту","Increment target temperature":"Збільшити цільову температуру","Information: The skill linking process was changed!":"Інформація: процес підключення навичок змінено!",Instance:Nxt,"Instance does not exists":"Екземпляр не існує","Instance is not active.":"Екземпляр не активний.","Instance must be enabled":"Примірник має бути ввімкнено","Instance must run to deliver the data":"Екземпляр повинен запуститися, щоб доставити дані","Invalid object":"Недійсний об'єкт",Language:jxt,"List of devices to print out, e.g. to give all device names to your partner.":"Список пристроїв для друку, напр. щоб надати назви всіх пристроїв вашому партнеру.","Load configuration from file":"Завантажити конфігурацію з файлу","Manual Mode":"Ручний режим",Message:zxt,Name:Rxt,"Not understood":"Не зрозумів","Now there is no temporary password that will be sent by email.":"Тепер немає тимчасового пароля, який надсилатиметься електронною поштою.","OFF level for switches":"Рівень ВИМК для перемикачів","OFF level for switches in %":"Рівень вимкнення для перемикачів у %",Off:Ixt,Ok:Lxt,On:Fxt,"On/Off":"Увімкнено вимкнено",Options:Pxt,"Personal settings (only pro)":"Персональні налаштування (тільки для професіоналів)","Ping timeout:":"Час очікування ping (мс)","Place function in names first":"Спочатку розмістіть функцію в іменах","Please add action and trait to complete the Google Home state.":"Додайте дію та рису, щоб завершити стан Google Home.","Please add type and trait to complete the Google Home state.":"Додайте тип і характеристику, щоб завершити стан Google Home.","Please select object ID...":"Виберіть ідентифікатор об'єкта...","Please write your email only in lower case letters":"Пишіть свою електронну адресу лише малими літерами","Read blood sugar from":"Зчитайте рівень цукру в крові","Read lock state":"Читати стан блокування","Replace in names":"Замінити в назвах","Request email with password one more time":"Надішліть запит електронної пошти з паролем ще раз","Restart on disconnect":"Перезапустити після відключення",Review:Bxt,"Roger that":"Розумно",Room:Hxt,Rooms:Uxt,Save:Wxt,"Save and close":"Зберегти та закрити","Save configuration to file":"Зберегти конфігурацію у файл","Save settings and the names will be changed":"Збережіть налаштування, і імена будуть змінені","Save settings before pressing this button":"Перед натисканням цієї кнопки збережіть налаштування",Search:Vxt,Select:Gxt,"Service names":"Назви послуг","Services and IFTTT":"Послуги та IFTTT","Set color":"Встановити колір","Set color temperature":"Встановити колірну температуру","Set lock state":"Встановити стан блокування","Set percentage":"Встановити відсоток","Set target temperature":"Встановити цільову температуру","Short answer for blood sugar":"Коротка відповідь щодо цукру в крові","Show all devices for print out":"Показати всі пристрої для друку","Show/Hide help":"Показати/Сховати довідку","Smart Devices":"Розумні пристрої","Smart Enums":"Smart Enum","Smart Media":"Smart Media","Smart enums":"Розумні перерахування","Smart name":"Розумне ім'я","Smart name for %s":"Розумна назва для %s","Smart names":"Розумні імена","The linking process has been changed for a few months.":"Процес зв’язування змінився протягом кількох місяців.","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"Пароль збігається з ioBroker.pro і паролем, який був введений тут в налаштуваннях!","To apply this setting, the restart of adapter must be done. Agree?":"Щоб застосувати цей параметр, необхідно перезапустити адаптер. згодні?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"Для автоматичного виявлення під об’єктами призначте канал (пристрій, якщо канал недоступний) кімнаті та функції. Недостатньо призначити кімнаті стан або пристрій. Кімнати/функції можна додавати під перерахуванням (позначено білою стрілкою у верхньому правому куті), і їх потрібно активувати в адаптері IoT у розділі Інтелектуальне перерахування. Щоб автоматично розпізнавати ручні стани, стан потрібно видалити.","Toggle expert mode":"Перемкнути експертний режим","Too many devices (%s) configured. Max number is 300":"Налаштовано забагато пристроїв (%s). Максимальна кількість 300!","Turn off":"Вимкнути","Turn on":"Ввімкнути",Type:qxt,Types:Xxt,"Use Nightscout instance":"Використовуйте екземпляр Nightscout","Use following link for IFTTT":"Використовуйте наступне посилання для IFTTT","Use following link for custom service":"Скористайтеся наступним посиланням для індивідуальних послуг","Use text2command instance":"Використовуйте екземпляр text2command",Value:Jxt,"Web instance":"Веб-екземпляр","White list for services":"Білий список послуг","Write response to":"Написати відповідь на","Yandex Алиса":"Яндекс Аліса","You can enter several names divided by comma":"Ви можете ввести кілька імен, розділених комою","amazon link":"Якщо ви використовуєте Alexa Skill, напишіть нам відгук тут.
Приклади можна знайти тут.","by ON":"від ON",cannot_use_password:Yxt,clear:Kxt,default:"за замовчуванням",disabled:Zxt,forum_tip:Qxt,help_link_tip1:e2t,help_link_tip2:t2t,help_link_tip3:n2t,help_tip:o2t,info_allowedServices:r2t,info_iftttKey:a2t,invalid_password_warning:s2t,ioBType:i2t,"ioBroker.pro Login":"ioBroker.pro Логін","ioBroker.pro Password":"Пароль ioBroker.pro","omit value":"не має значення","last value":"останнє значення",manualModeHint:l2t,modified:c2t,new_certs_tip:d2t,new_credentials_tip:u2t,"no type":"немає типу","not activated":"не активовано",tooltip_allowSelfSignedCertificate:p2t,tooltip_apikey:h2t,tooltip_cloudUrl:f2t,tooltip_concatWord:m2t,tooltip_deviceOffLevel:g2t,tooltip_functionFirst:_2t,tooltip_instance:v2t,tooltip_language:y2t,tooltip_noCommon:b2t,tooltip_responseOID:w2t,tooltip_restartOnDisconnect:S2t,"Device %s will be disabled.":"Пристрій %s буде вимкнено.",Delete:x2t,Brightness:C2t,Power:$2t,"Color temperature":"Колірна температура",Color:k2t,Detection:E2t,Lock:T2t,Mode:O2t,Muted:D2t,Percentage:A2t,"Set point":"Задана точка",Temperature:M2t,"Thermostat mode":"Режим термостата",Volume:N2t,socket:j2t,light:z2t,dimmer:R2t,thermostat:I2t,blind:L2t,gate:F2t,lock:P2t,hue:B2t,motion:H2t,slider:U2t,temperature:W2t,window:V2t,Thermostat:G2t,Light:q2t,AirCondition:X2t,Blind:J2t,ContactSensor:Y2t,Control:K2t,Door:Z2t,Gate:Q2t,Hue:eCt,Motion:tCt,Slider:nCt,Socket:oCt,VacuumCleaner:rCt,VolumeGroup:aCt,Window:sCt,"Color HUE":"Колір HUE","Door sensor":"Датчик дверей",Sensor:iCt,"Vacuum cleaner":"Пилосос","Volume group":"Група томів","Window sensor":"Датчик вікна",Blinds:lCt,"Grouped from %s and %s":"Згруповано з %s і %s","Default toggle behaviour (Only alexa v3)":"Поведінка перемикання за замовчуванням (тільки Alexa v3)","Do not toggle":"Не перемикайте",Toggle:cCt,"This service is reserved for the ioBroker.visu app. Please use another service name.":"Ця послуга зарезервована для програми ioBroker.visu. Використовуйте іншу назву служби."},uCt="活性",pCt="地址",hCt="取消",fCt="关闭",mCt="命令",gCt="默认",_Ct="调光器",vCt="过滤",yCt="功能",bCt="实例",wCt="语言",SCt="信息",xCt="离",CCt="确定",$Ct="上",kCt="选项",ECt="评论",TCt="客房",OCt="保存",DCt="选择",ACt="类型",MCt="类型",NCt="值",jCt="明确",zCt="残",RCt='在写支持之前,请确保您已阅读并理解网页的说明: https : //www.iobroker.net',ICt='如果与Iot的连接仍然存在问题,则可以在论坛上请求支持',LCt='并且只有在那之后,您才应该写一封电子邮件到support@iobroker.com',FCt='没有iobroker.pro账号?在 https://iobroker.pro 上购买以获得有效访问权限,或免费获取,但访问受限。',PCt="除以逗号。使用*允许所有服务。",BCt="您可以在“文档”下找到您的密钥 ",HCt="名称已由用户修改",UCt="如果您使用自己的云,则可以允许为云使用自签名证书。",WCt="需要此密钥才能与云通信。您可以在https://iobroker.net上获取API-KEY,它看起来像nickname_f1f439a0-001a-11e7-bc64-92361f002671",VCt="通常您不需要更改它。仅在您计划使用自己的云时才需要。",GCt="定义如何连接Room和Function。例如。 'in':客厅里的灯光。",qCt="一些组由混合设备组成:调光器和开关。允许使用ON和OFF命令以及百分比来控制它们",XCt="通常名称看起来像room_function。在这里,您可以将其切换到function_room。",JCt="Web实例,将显示您的云连接。",YCt="您可以定义语言以在美国Alexa Skill和DE Alexa Skill之间快速切换。",KCt="如果启用,则仅为此实例存储设置。所以在另一个实例中,可以设置其他名称。",ZCt="对于每个命令,将生成文本响应。您可以在此处定义必须写入此文本的对象ID。例如。 sayit.0.tts.text。",QCt="在与云连接丢失后缺少与Alexa的连接的解决方法。使用此选项,您可以在每次断开连接后重新启动适配器,它将起作用。",e$t="您不能在密码中使用%。我们正在努力解决。",t$t=`密码长度必须至少为8个字符,并且必须包含数字,大小写字母。请在ioBroker.pro配置文件中进行更改 +`,n$t="如果您从备份还原,或将实例从一台设备移至另一台设备,或删除了IoT实例并再次添加,则必须使用此按钮加载连接安全证书",o$t="如果使用 ioBroker.pro 登录数据登录 Alexa Skill/Google Action/Alisa 失败,请按以下按钮。",r$t='任何语言的任何疑问,请在论坛上提问:链接',a$t="请选择TYPETRAIT。要添加多个特征,请添加不同的id和特征,但要使用相同的智能名称,类型和房间。逗号分隔为多个智能名称。要分配房间,请使用ioBroker Enums/Aufzählungen。例如,通过属性,您可以设置色温的范围有关的信息您可以在此处找到属性。空属性为{}",s$t="搜索",i$t="名称",l$t="房间",c$t="ID",d$t="IoB类型",u$t="属性",p$t="自动地",h$t="删除",f$t="调光器",m$t="开关",g$t="颜色",_$t="检测",v$t="锁",y$t="模式",b$t="静音",w$t="百分比",S$t="温度",x$t="体积",C$t="插座",$$t="光",k$t="调光器",E$t="恒温器",T$t="百叶窗",O$t="门",D$t="锁",A$t="色调",M$t="运动",N$t="滑块",j$t="温度",z$t="窗户",R$t="温控器",I$t="光",L$t="空调",F$t="百叶窗",P$t="接触式传感器",B$t="控制",H$t="门",U$t="门",W$t="色调",V$t="运动",G$t="滑块",q$t="插座",X$t="吸尘器",J$t="卷组",Y$t="窗户",K$t="传感器",Z$t="百叶窗",Q$t="切换",ekt={"(Set to 0 if behavior not desired)":"(如果不需要行为,则设为0)","(you can separate names with comma)":"您可以输入多个名称除以逗号",Active:uCt,"Add device":"添加设备","Add service":"添加服务",Addresses:pCt,"Alexa devices":"Alexa设备","Alisa devices":"Alisa设备","Allow admin access (only pro)":"允许管理员访问(仅限专业版)","Allow self-signed certificates":"允许自签名证书","Amazon Alexa":"亚马逊Alexa","Are you sure?":"你确定吗?","Attributes has not correct JSON format.":"属性的格式不正确","Authentication must be disabled. You can create second instance extra for cloud.":"必须禁用身份验证。您可以为云创建额外的第二个实例。",Cancel:hCt,"Cannot add this object":"无法添加此对象,因为不支持。","Cannot read devices!":"无法读取设备!","Certificates will be updated after initiated restart":"启动重启后,证书将更新","Certificates will be updated after start":"证书将在开始后更新","Click now Get new connection certificates to request new temporary password":"单击“获取新连接证书”以请求新的临时密码",Close:fCt,"Cloud URL":"云URL","Cloud adapter settings":"云适配器设置",Commands:mCt,"Concatenate words with":"连接单词","Connection timeout":"连接超时(ms)","Debug outputs":"调试输出","Decrement color temperature":"降低色温","Decrement percentage":"减少百分比","Decrement target temperature":"降低目标温度",Default:gCt,"Device %s was not added":"未添加设备%s","Device will be deactivated.":"设备将被停用。","Device will be disabled.":"设备将被禁用。",Dimmer:_Ct,"Duplicate name":"名称重复","Edit smart name":"编辑智能名称",Error:"错误","Extended options":"扩展选项",Filter:vCt,"For help use this forum":"如需帮助,请访问此论坛发布",Functions:yCt,"Get actual temperature":"获得实际温度","Get new connection certificates":"获取新的连接证书","Get new service URL key":"获取新服务URL密钥","Get target temperature":"获得目标温度","Google Home":"Google Home","IFTTT key":"IFTTT关键","Increment color temperature":"增加色温","Increment percentage":"增量百分比","Increment target temperature":"增加目标温度",Instance:bCt,"Instance does not exists":"实例不存在","Instance is not active.":"实例未激活。","Instance must be enabled":"必须启用实例","Instance must run to deliver the data":"必须运行实例才能传递数据","Invalid object":"无效的对象",Language:wCt,"Load configuration from file":"从文件加载配置",Message:SCt,"OFF level for switches":"开关的OFF电平","OFF level for switches in %":"开关关闭电平%",Off:xCt,Ok:CCt,On:$Ct,"On/Off":"开关",Options:kCt,"Personal settings (only pro)":"个人设置(仅限专业)","Ping timeout:":"Ping超时(ms)","Place function in names first":"首先将函数放在名称中","Please add action and trait to complete the Google Home state.":"请添加操作和特征以完成Google Home状态。","Please add type and trait to complete the Google Home state.":"请添加类型和特征以完成Google Home状态。","Please select object ID...":"请选择对象ID ...","Please write your email only in lower case letters":"请以小写字母书写您的电子邮件","Read lock state":"读锁定状态","Replace in names":"替换名称","Request email with password one more time":"再次请求带密码的电子邮件","Restart on disconnect":"断开连接重启",Review:ECt,Rooms:TCt,Save:OCt,"Save and close":"保存并关闭","Save configuration to file":"将配置保存到文件","Save settings and the names will be changed":"保存设置,名称将被更改",Select:DCt,"Service names":"服务名称","Services and IFTTT":"服务和IFTTT","Set color":"设置颜色","Set color temperature":"设置色温","Set lock state":"设置锁定状态","Set percentage":"设定百分比","Set target temperature":"设定目标温度","Smart Devices":"智能设备","Smart Enums":"智能枚举","Smart Media":"智能媒体","Smart enums":"智能枚举","Smart name":"聪明的名字","Smart name for %s":"%s的智能名称","To apply this setting, the restart of adapter must be done. Agree?":"要应用此设置,必须重新启动适配器。同意?","To auto detect devices please assign a room and function to the channel if no channel available than assign to a device. Not only to the state or device. And enable them under SmartEnum/Intelligente Aufzählung":"对于自动检测,在对象下方为房间和功能分配一个通道(如果没有可用的通道,则为设备)。仅将房间分配给状态或设备是不够的。可以在枚举下添加房间/功能(如右上角的白色箭头所示),并且必须在IoT适配器中的“智能枚举”下将其激活。为了自动识别手动状态,必须删除状态。","Turn off":"关掉","Turn on":"打开",Type:ACt,Types:MCt,"Use Nightscout instance":"使用Nightscout实例","Use following link for IFTTT":"使用以下链接进行IFTTT","Use following link for custom service":"使用以下链接进行自定义服务","Use text2command instance":"使用text2command实例",Value:NCt,"White list for services":"服务白名单","Write response to":"写回复","Yandex Алиса":"YandexАлиса","You can enter several names divided by comma":"您可以输入多个名称除以逗号","amazon link":"如果您使用Alexa技能,请为我们写一篇评论此处
示例可以找到此处。","by ON":"通过ON",clear:jCt,default:"默认",disabled:zCt,help_link_tip1:RCt,help_link_tip2:ICt,help_link_tip3:LCt,help_tip:FCt,info_allowedServices:PCt,info_iftttKey:BCt,"ioBroker.pro Login":"ioBroker.pro登录","ioBroker.pro Password":"ioBroker.pro密码","omit value":"无价值","last value":"最后的价值",modified:HCt,"no type":"没有类型",tooltip_allowSelfSignedCertificate:UCt,tooltip_apikey:WCt,tooltip_cloudUrl:VCt,tooltip_concatWord:GCt,tooltip_deviceOffLevel:qCt,tooltip_functionFirst:XCt,tooltip_instance:JCt,tooltip_language:YCt,tooltip_noCommon:KCt,tooltip_responseOID:ZCt,tooltip_restartOnDisconnect:QCt,"Short answer for blood sugar":"血糖的简短答案",cannot_use_password:e$t,invalid_password_warning:t$t,new_certs_tip:n$t,new_credentials_tip:o$t,"Create IoT credentials anew":"重新创建IoT凭据",forum_tip:r$t,"Save settings before pressing this button":"按此按钮之前保存设置","Auto Mode":"自动模式","Manual Mode":"手动模式",manualModeHint:a$t,"not activated":"未激活","Google devices":"Google设备","Show/Hide help":"显示/隐藏帮助","Show all devices for print out":"显示所有要打印的设备",Search:s$t,"List of devices to print out, e.g. to give all device names to your partner.":"要打印的设备列表,例如将所有设备名称提供给您的合作伙伴。",Name:i$t,Function:"功能",Room:l$t,"Copy to clipboard":"复制到剪贴板","Toggle expert mode":"切换专家模式",ID:c$t,"Smart names":"聪明的名字",ioBType:d$t,"Function/Trait":"功能/特质",Attributes:u$t,Auto:p$t,"Conversation to GH":"转换为GH","Conversation to ioB":"转换为ioB","Information: The skill linking process was changed!":"信息:技能链接过程已更改!","The linking process has been changed for a few months.":"链接过程已更改了几个月。","Now there is no temporary password that will be sent by email.":"现在没有将通过电子邮件发送的临时密码。","The password is equal with ioBroker.pro and with password that was entered here in the settings!":"密码与ioBroker.pro以及在设置中输入的密码相同!","Not understood":"不明白","Roger that":"收到","Read blood sugar from":"从读取血糖","Get actual humidity":"获取实际湿度","Get motion":"动起来","Get contact":"获取联系状态","Too many devices (%s) configured. Max number is 300":"配置了太多设备 (%s)。最大数量是 300!","Allow remote access":"允许远程访问","Admin instance":"管理实例","Web instance":"网页实例","Device %s will be disabled.":"设备 %s 将被禁用。",Delete:h$t,Brightness:f$t,Power:m$t,"Color temperature":"色温",Color:g$t,Detection:_$t,Lock:v$t,Mode:y$t,Muted:b$t,Percentage:w$t,"Set point":"设定点",Temperature:S$t,"Thermostat mode":"恒温模式",Volume:x$t,socket:C$t,light:$$t,dimmer:k$t,thermostat:E$t,blind:T$t,gate:O$t,lock:D$t,hue:A$t,motion:M$t,slider:N$t,temperature:j$t,window:z$t,Thermostat:R$t,Light:I$t,AirCondition:L$t,Blind:F$t,ContactSensor:P$t,Control:B$t,Door:H$t,Gate:U$t,Hue:W$t,Motion:V$t,Slider:G$t,Socket:q$t,VacuumCleaner:X$t,VolumeGroup:J$t,Window:Y$t,"Color HUE":"颜色色调","Door sensor":"门磁",Sensor:K$t,"Vacuum cleaner":"吸尘器","Volume group":"卷组","Window sensor":"窗口传感器",Blinds:Z$t,"Grouped from %s and %s":"从 %s 和 %s 分组","Default toggle behaviour (Only alexa v3)":"默认切换行为(仅限 alexa v3)","Do not toggle":"不要切换",Toggle:Q$t,"This service is reserved for the ioBroker.visu app. Please use another service name.":"此服务为 ioBroker.visu 应用程序保留。请使用其他服务名称。"},yr={root:{},tabContent:{padding:10,height:"calc(100% - 64px - 48px - 20px)",overflow:"auto"},tabContentIFrame:{padding:10,height:"calc(100% - 64px - 48px - 20px - 38px)",overflow:"auto"},selected:e=>({color:e.palette.mode==="dark"?void 0:"#FFF !important"}),indicator:e=>({backgroundColor:e.palette.mode==="dark"?e.palette.secondary.main:"#FFF"})};class tkt extends ds{constructor(t){const n={...t};n.encryptedFields=["pass"],n.Connection=RU,n.translations={en:Gdt,de:Rpt,ru:kft,pt:ggt,nl:svt,fr:Yyt,it:P0t,es:Dwt,pl:bxt,uk:dCt,"zh-cn":ekt},n.sentryDSN=window.sentryDSN,super(t,n),Object.assign(this.state,{selectedTab:window.localStorage.getItem(`${this.adapterName}.${this.instance}.selectedTab`)||"options"})}onConnectionReady(){this.socket.getState(`${this.adapterName}.${this.instance}.info.ackTempPassword`).then(t=>{(!t||!t.val)&&this.setState({showAckTempPasswordDialog:!0})})}renderAckTempPasswordDialog(){return this.state.showAckTempPasswordDialog?m.jsxs(yt,{open:!0,onClose:()=>this.setState({showAckTempPasswordDialog:!1},()=>setTimeout(()=>this.setState({showAckTempPasswordDialog:!0}),1e3)),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[m.jsx(bt,{id:"alert-dialog-title",children:E.t("Information: The skill linking process was changed!")}),m.jsx(jt,{children:m.jsxs(Ra,{id:"alert-dialog-description",children:[E.t("The linking process has been changed for a few months."),E.t("Now there is no temporary password that will be sent by email."),m.jsx("br",{}),m.jsx("br",{}),m.jsx("b",{children:E.t("The password is equal with ioBroker.pro and with password that was entered here in the settings!")})]})}),m.jsxs(Nt,{children:[m.jsx(he,{color:"grey",variant:"contained",onClick:()=>this.setState({showAckTempPasswordDialog:!1},()=>setTimeout(()=>this.setState({showAckTempPasswordDialog:!0}),1e3)),autoFocus:!0,children:E.t("Not understood")}),m.jsx(he,{variant:"contained",className:"skill-linking-ok",onClick:()=>this.socket.setState(`${this.adapterName}.${this.instance}.info.ackTempPassword`,{val:!0,ack:!0}).then(()=>this.setState({showAckTempPasswordDialog:!1})),color:"primary",autoFocus:!0,children:E.t("Roger that")})]})]}):null}render(){return this.state.loaded?m.jsx(n2,{injectFirst:!0,children:m.jsx($2,{theme:this.state.theme,children:m.jsxs("div",{className:"App",style:{background:this.state.theme.palette.background.default,color:this.state.theme.palette.text.primary},children:[m.jsx(e5,{position:"static",children:m.jsxs($5,{value:this.state.selectedTab||"options",onChange:(t,n)=>{this.setState({selectedTab:n}),window.localStorage.setItem(`${this.adapterName}.${this.instance}.selectedTab`,n)},variant:"scrollable",scrollButtons:"auto",sx:{"& .MuiTabs-indicator":yr.indicator},children:[m.jsx(po,{value:"options",sx:{"&.Mui-selected":yr.selected},label:E.t("Options"),"data-name":"options"}),m.jsx(po,{value:"enums",className:"enums-tab",sx:{"&.Mui-selected":yr.selected},label:E.t("Smart enums"),"data-name":"enums"}),this.state.native.amazonAlexa&&m.jsx(po,{value:"alexa",sx:{"&.Mui-selected":yr.selected},selected:this.state.selectedTab==="alexa",label:E.t("Alexa devices"),"data-name":"alexa"}),this.state.native.amazonAlexa&&this.state.native.amazonAlexaV3&&m.jsx(po,{value:"alexa3",sx:{"&.Mui-selected":yr.selected},selected:this.state.selectedTab==="alexa3",label:`${E.t("Alexa devices")} v3`,"data-name":"alexa3"}),this.state.native.googleHome&&m.jsx(po,{value:"google",sx:{"&.Mui-selected":yr.selected},selected:this.state.selectedTab==="google",label:E.t("Google devices"),"data-name":"google"}),this.state.native.yandexAlisa&&m.jsx(po,{value:"alisa",sx:{"&.Mui-selected":yr.selected},selected:this.state.selectedTab==="alisa",label:E.t("Alisa devices"),"data-name":"alisa"}),m.jsx(po,{value:"extended",sx:{"&.Mui-selected":yr.selected},label:E.t("Extended options"),"data-name":"extended"}),m.jsx(po,{value:"services",sx:{"&.Mui-selected":yr.selected},label:E.t("Services and IFTTT"),"data-name":"services"})]})}),m.jsxs("div",{style:this.isIFrame?yr.tabContentIFrame:yr.tabContent,children:[(this.state.selectedTab==="options"||!this.state.selectedTab)&&m.jsx(wM,{common:this.common,theme:this.state.theme,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),onLoad:t=>this.onLoadConfig(t),instance:this.instance,adapterName:this.adapterName,changed:this.state.changed,onChange:(t,n,o)=>this.updateNativeValue(t,n,o)},"options"),this.state.selectedTab==="enums"&&m.jsx($M,{theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),instance:this.instance,adapterName:this.adapterName},"enums"),this.state.selectedTab==="alexa"&&m.jsx(vs,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"alexa"),this.state.selectedTab==="alexa3"&&m.jsx(Br,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"alexa3"),this.state.selectedTab==="google"&&m.jsx(nct,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"google"),this.state.selectedTab==="alisa"&&m.jsx(M_,{themeType:this.state.themeType,theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),adapterName:this.adapterName,instance:this.instance},"alisa"),this.state.selectedTab==="extended"&&m.jsx(xM,{common:this.common,theme:this.state.theme,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),instance:this.instance,adapterName:this.adapterName,onChange:(t,n)=>this.updateNativeValue(t,n)},"extended"),this.state.selectedTab==="services"&&m.jsx(CM,{theme:this.state.theme,common:this.common,socket:this.socket,native:this.state.native,onError:t=>this.setState({errorText:(t||t===0)&&typeof t!="string"?t.toString():t}),instance:this.instance,adapterName:this.adapterName,onShowError:t=>this.showError(t),onChange:(t,n)=>this.updateNativeValue(t,n)},"services")]}),this.renderError(),this.renderSaveCloseButtons(),this.renderAckTempPasswordDialog()]})})}):m.jsx(n2,{injectFirst:!0,children:m.jsx($2,{theme:this.state.theme,children:m.jsx(u3,{themeType:this.state.themeType})})})}}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 nkt(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(e=>{e.unregister()})}const okt="iot-admin",rkt="3.4.4",akt={"@emotion/styled":"^11.13.5","@emotion/react":"^11.13.5","@iobroker/adapter-react-v5":"^7.4.3","@mui/icons-material":"^6.1.10","@mui/material":"^6.1.10","@sentry/browser":"^8.42.0","@vitejs/plugin-react":"^4.3.4",eslint:"^9.16.0","eslint-config-airbnb":"^19.0.4","eslint-plugin-eqeqeq-fix":"^1.0.3","eslint-plugin-import":"^2.31.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-only-warn":"^1.1.0","eslint-plugin-react":"^7.37.2","eslint-plugin-react-hooks":"^5.1.0",react:"^19.0.0","react-dom":"^19.0.0","react-icons":"^5.4.0","react-inlinesvg":"^4.1.5"},skt={start:"vite",build:"vite build",lint:"eslint --fix --ext .js,.jsx src","i18n=>flat":"node tasks --i18n=>flat","flat=>i18n":"node tasks --flat=>i18n"},ikt=".",lkt=[">0.2%","not dead","not ie <= 11","not op_mini all"],ckt={name:okt,version:rkt,private:!0,dependencies:akt,scripts:skt,homepage:ikt,browserslist:lkt};window.adapterName="iot";window.sentryDSN="https://5ad729dbed504d15aa8bde423cae9a8e@sentry.iobroker.net/57";console.log(`iobroker.${window.adapterName}@${ckt.version}`);const dkt=document.getElementById("root"),ukt=Nj.createRoot(dkt);ukt.render(m.jsx(tkt,{}));nkt()});export default pkt(); diff --git a/admin/index_m.html b/admin/index_m.html index 1bbfcbd8..3ac31c4b 100644 --- a/admin/index_m.html +++ b/admin/index_m.html @@ -21,7 +21,7 @@ /> IoT Settings - + diff --git a/io-package.json b/io-package.json index ca7aaf31..89c37cce 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,21 @@ { "common": { "name": "iot", - "version": "3.4.3", + "version": "3.4.4", "news": { + "3.4.4": { + "en": "Corrected the name editing of the devices for Alexa 3", + "de": "Korrektur der Namensbearbeitung der Geräte für Alexa 3", + "ru": "Исправлено редактирование названия устройств для Alexa 3", + "pt": "Corrigido o nome de edição dos dispositivos para Alexa 3", + "nl": "De naambewerking van de apparaten voor Alexa 3 gecorrigeerd", + "fr": "Correction de l'édition du nom des appareils pour Alexa 3", + "it": "Corretto il nome di modifica dei dispositivi per Alexa 3", + "es": "Corregido el nombre de edición de los dispositivos para Alexa 3", + "pl": "Poprawił edycję nazwy urządzeń dla Alexa 3", + "uk": "Виправлено редагування назв пристроїв для Alexa 3", + "zh-cn": "校正了Alexa 3设备的名称编辑" + }, "3.4.3": { "en": "corrected the addition of the devices for Alexa\nchanged compilation of GUI to remove deprecated packages", "de": "korrigierte die Ergänzung der Geräte für Alexa\ngeänderte Zusammenstellung von GUI, um deprecierte Pakete zu entfernen", @@ -80,19 +93,6 @@ "pl": "stałe wydanie, że tylko poprawny JSON może być wysłany do aplikacji przez stan wiadomości", "uk": "виправлено проблему, що тільки дійсний JSON може бути відправлений на додаток через стан повідомлень", "zh-cn": "只能通过消息状态发送到应用程序的 JSON 的固定问题" - }, - "3.2.0": { - "en": "implemented geofence with ioBroker Visu app", - "de": "geofence with ioBroker Visu app", - "ru": "реализована геозона с приложением ioBroker Visu", - "pt": "geofence implementado com aplicativo ioBroker Visu", - "nl": "geïmplementeerd geofence met ioBroker Visu app", - "fr": "géofence mise en œuvre avec l'application ioBroker Visu", - "it": "geofence implementato con ioBroker Visu app", - "es": "geofence implementado con aplicación ioBroker Visu", - "pl": "zaimplementowany geofence z aplikacją ioBroker Visu", - "uk": "впроваджено геоfence з додатком ioBroker Visu", - "zh-cn": "使用 ioBroker Visu app 执行的地理栅栏" } }, "titleLang": { diff --git a/package.json b/package.json index 09226c88..04a6ded9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.iot", - "version": "3.4.3", + "version": "3.4.4", "description": "This adapter allows to communicate Amazon Alexa and Google Home with ioBroker.", "author": { "name": "bluefox", diff --git a/src-rules/package.json b/src-rules/package.json index 554c58f4..2ec1ff62 100644 --- a/src-rules/package.json +++ b/src-rules/package.json @@ -1,7 +1,7 @@ { "name": "iobroker.telegram.rules", "private": true, - "version": "3.4.3", + "version": "3.4.4", "scripts": { "start": "set PORT=4173 && craco start", "old-start": "set PORT=4173 && react-scripts start", diff --git a/src/package.json b/src/package.json index 75aec077..86c562ff 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "iot-admin", - "version": "3.4.3", + "version": "3.4.4", "private": true, "dependencies": { "@emotion/styled": "^11.13.5",