iobroker.eos-admin 8.0.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NEXOWATT_EOS_BUILD_INFO.json +7 -6
- package/NEXOWATT_EOS_PREBUILT_MANIFEST.json +133 -51
- package/START_HERE_8.0.1.md +36 -0
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +107 -107
- package/adminWww/assets/{AdapterUpdateDialog-B3y8RL_5.js → AdapterUpdateDialog-D3y2bGHM.js} +1 -1
- package/adminWww/assets/{Adapters-BDxfhfGe.js → Adapters-WMGNQt7g.js} +1 -1
- package/adminWww/assets/{ConfigManager-CFuOc_kb.js → ConfigManager-BMdQoiCg.js} +1 -1
- package/adminWww/assets/{Enums-CSzSzWm7.js → Enums-CHm2sGa-.js} +1 -1
- package/adminWww/assets/{Fields-DnckPMA8.js → Fields-Df7Llf6U.js} +1 -1
- package/adminWww/assets/{Files-CwUHx0pF.js → Files-Bwbw17Fb.js} +1 -1
- package/adminWww/assets/{Hosts-QkyuASJy.js → Hosts-BR0g-Wxo.js} +1 -1
- package/adminWww/assets/{Instances-BaWBemTT.js → Instances-BKydFSdw.js} +1 -1
- package/adminWww/assets/{Intro-DsfrPrWv.js → Intro-Dt2GzmtW.js} +1 -1
- package/adminWww/assets/{Logs-Cngy2Opt.js → Logs-hbcdBDN3.js} +1 -1
- package/adminWww/assets/{Objects-DY8KS7zK.js → Objects-HPx0yuOk.js} +1 -1
- package/adminWww/assets/{Overview-WwP6FjK-.js → Overview-CDvnM655.js} +1 -1
- package/adminWww/assets/{State-vP1o2BCL.js → State-Cc-tyuqB.js} +1 -1
- package/adminWww/assets/{UsedResources-CMTzFOX3.js → UsedResources-BIdU7UPm.js} +1 -1
- package/adminWww/assets/{Users-BjTGOjzL.js → Users-BruHA-yU.js} +1 -1
- package/adminWww/assets/{bootstrap-Bs4TZ7iA.js → bootstrap-D-7xcwTc.js} +3 -3
- package/adminWww/assets/{hostInit-2xIZYDSq.js → hostInit-huY-0clu.js} +1 -1
- package/adminWww/assets/{icons-material-BLgrEUSv.js → icons-material-Bu1f45BT.js} +1 -1
- package/adminWww/assets/{index-BZifaJHi.js → index-D8vmzGp8.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-Pe6-VnD2.js → installSVGRenderer-BkdptYag.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-a6a54377.js → mf-entry-bootstrap-0-f6098d8b.js} +2 -2
- package/adminWww/index.html +21 -21
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/{remoteEntry-eos-8.0.0.js → remoteEntry-eos-8.0.1.js} +1 -1
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosSessionSecurity.js +12 -4
- package/build/lib/eosSessionSecurity.js.map +1 -1
- package/build/lib/vendor/webserver/LICENSE +21 -0
- package/build/lib/vendor/webserver/README.md +506 -0
- package/build/lib/vendor/webserver/build/index.d.ts +9 -0
- package/build/lib/vendor/webserver/build/index.js +42 -0
- package/build/lib/vendor/webserver/build/index.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/acmeChallenge.d.ts +65 -0
- package/build/lib/vendor/webserver/build/lib/acmeChallenge.js +149 -0
- package/build/lib/vendor/webserver/build/lib/acmeChallenge.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/certificateManager.d.ts +60 -0
- package/build/lib/vendor/webserver/build/lib/certificateManager.js +128 -0
- package/build/lib/vendor/webserver/build/lib/certificateManager.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/http2Compat.d.ts +21 -0
- package/build/lib/vendor/webserver/build/lib/http2Compat.js +109 -0
- package/build/lib/vendor/webserver/build/lib/http2Compat.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/oauth2-authcode.d.ts +167 -0
- package/build/lib/vendor/webserver/build/lib/oauth2-authcode.js +619 -0
- package/build/lib/vendor/webserver/build/lib/oauth2-authcode.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/oauth2-clients.d.ts +92 -0
- package/build/lib/vendor/webserver/build/lib/oauth2-clients.js +230 -0
- package/build/lib/vendor/webserver/build/lib/oauth2-clients.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/oauth2-model.d.ts +84 -0
- package/build/lib/vendor/webserver/build/lib/oauth2-model.js +388 -0
- package/build/lib/vendor/webserver/build/lib/oauth2-model.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/oauth2.d.ts +75 -0
- package/build/lib/vendor/webserver/build/lib/oauth2.js +625 -0
- package/build/lib/vendor/webserver/build/lib/oauth2.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/securityChecker.d.ts +6 -0
- package/build/lib/vendor/webserver/build/lib/securityChecker.js +96 -0
- package/build/lib/vendor/webserver/build/lib/securityChecker.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/usedResources.d.ts +62 -0
- package/build/lib/vendor/webserver/build/lib/usedResources.js +231 -0
- package/build/lib/vendor/webserver/build/lib/usedResources.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/utils.d.ts +35 -0
- package/build/lib/vendor/webserver/build/lib/utils.js +110 -0
- package/build/lib/vendor/webserver/build/lib/utils.js.map +1 -0
- package/build/lib/vendor/webserver/build/lib/webServer.d.ts +164 -0
- package/build/lib/vendor/webserver/build/lib/webServer.js +454 -0
- package/build/lib/vendor/webserver/build/lib/webServer.js.map +1 -0
- package/build/lib/vendor/webserver/package.json +63 -0
- package/build/lib/web.js +1 -1
- package/build/lib/web.js.map +1 -1
- package/docs/ADMIN8_MIGRATION_8.0.0_DE.md +2 -0
- package/docs/cra/CRA_IEC_GAP_ANALYSIS_2026-09-30.md +5 -0
- package/docs/security/admin8-2026-11-04/development-1.log +3 -3
- package/docs/security/admin8-2026-11-04/development-2.log +248 -233
- package/docs/security/admin8-2026-11-05/copy-update/evidence-sha256.json +0 -5
- package/docs/security/admin8-2026-11-05/login-fix/BACKEND_DIAGNOSE_DE.md +48 -0
- package/docs/security/admin8-2026-11-05/login-fix/REPORT_DE.md +47 -0
- package/docs/security/admin8-2026-11-05/login-fix/REVIEW_DE.md +7 -0
- package/docs/security/admin8-2026-11-05/login-fix/controller-adapter-api.ts.txt +122 -0
- package/docs/security/admin8-2026-11-05/login-fix/controller-file-view.ts.txt +75 -0
- package/docs/security/admin8-2026-11-05/login-fix/controller-redis-view.ts.txt +471 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/LICENSE-webserver-3.4.0 +21 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/REPORT_DE.md +41 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/evidence-sha256.json +116 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/http-consumer-check.cjs +58 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/README_DE.md +9 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/REJECTED-webserver-3.4.0-eos-oauth.provenance.json +263 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/REJECTED-webserver-3.4.0-eos-oauth.tgz +0 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/admission.log +16 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/consumer-audit-stderr.log +1 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/consumer-audit.json +22 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/consumer-fixture-1.0.0.tgz +0 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/consumer-fixture-package.json +11 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/consumer-npm10-package-lock.json +387 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/consumer-npm11-package-lock.json +387 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/evidence-sha256.json +85 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/http-consumer-npm10-node22.json +11 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/http-consumer-npm11-node24.json +11 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/local-tests.json +38 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/tests-node22.log +168 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/rejected-file-dependency/tests-node24.log +36 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/source-vendor-tests-node22.log +224 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/source-vendor-tests-node24.log +42 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/source-vendor-tests.json +31 -0
- package/docs/security/admin8-2026-11-05/login-fix/dependency/webserver-3.4.0-upstream.tgz +0 -0
- package/docs/security/admin8-2026-11-05/login-fix/eos-session-8.0.0.js.txt +385 -0
- package/docs/security/admin8-2026-11-05/login-fix/evidence-sha256.json +59 -0
- package/docs/security/admin8-2026-11-05/login-fix/path-budget.json +6 -0
- package/docs/security/admin8-2026-11-05/login-fix/provenance.json +51 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/admission.log +21 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/archive-scan.json +13 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/artifacts.log +6 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/backend-build.log +5 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/consumer-package-lock.json +3258 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/copy-update-journal.json +165 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/development.log +365 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/frontend-build.log +149 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/full-consumer-audit.json +22 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/full-consumer-audit.stderr +2 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/full-consumer-final-install-node22.log +9 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/full-consumer-http-node22.json +15 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/full-consumer-http-node22.stderr +2 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/full-consumer-http-node24.json +15 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/full-consumer-http-node24.stderr +0 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/inventory.log +8 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/npm-pack-final.json +7809 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/npm-pack-final.stderr +6 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/overlay-final-publish-node22.json +10213 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/overlay-final-publish-node22.stderr +282 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/pipeline.json +72 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/seal.log +6 -0
- package/docs/security/admin8-2026-11-05/login-fix/release/vendor-final-review-node24.log +18 -0
- package/docs/security/admin8-2026-11-05/login-fix/reproduce.cjs +79 -0
- package/docs/security/admin8-2026-11-05/login-fix/reproduction.json +80 -0
- package/docs/security/admin8-2026-11-05/login-fix/upstream-LICENSE.txt +22 -0
- package/docs/security/admin8-2026-11-05/login-fix/validation.json +85 -0
- package/docs/third-party/admin8/NOTICE-PROVENANCE.json +3 -3
- package/io-package.json +9 -10
- package/package.json +9 -4
- package/release-manifests/admin8-development-validation.json +114 -31
- package/reports/security/artifact-inventory.json +462 -227
- package/reports/security/inventory-summary.json +39 -17
- package/reports/security/sbom-backend-lock.cdx.json +108 -111
- package/reports/security/sbom-frontend-lock.cdx.json +5 -5
- package/reports/security/source-runtime-manifest.json +455 -65
- package/tools/nexowatt-artifact-inventory.cjs +8 -1
- package/tools/nexowatt-installer-ems-selftest.cjs +1 -1
- package/tools/nexowatt-lock-provenance-check.cjs +8 -3
- package/tools/nexowatt-repair-lock-metadata.cjs +3 -3
- package/tools/nexowatt-security-inventory.cjs +22 -1
- package/tools/nexowatt-user-area-selftest.cjs +1 -1
- package/tools/nexowatt-v7109-clean-core-selftest.cjs +1 -1
- package/tools/nexowatt-vendored-webserver.cjs +69 -0
- package/tools/vendor/eos-retired-release-files.json +73 -1
- package/tools/vendor/webserver-3.4.0-source.provenance.json +244 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./icons-material-
|
|
2
|
-
import{a as e,r as t,t as n}from"./rolldown-runtime-sJBDdmOt.js";import{t as r}from"./vite-preload-helper-BbbETgeG.js";import{$a as i,$n as a,$o as o,$s as s,Aa as c,An as l,Ao as u,Ar as d,Bn as f,Bo as p,Bt as m,Ci as h,Cs as g,Ds as _,Ei as v,Eo as y,Er as b,Es as x,F as ee,Fo as S,Ga as C,Go as w,Gr as T,Ho as E,Hs as D,I as te,In as ne,Io as re,Ja as ie,Jo as O,Ko as ae,Kr as oe,Ks as se,Lo as ce,Lt as le,Mo as ue,Mr as de,Ms as fe,No as pe,Nr as me,On as he,Oo as ge,Os as _e,Po as ve,Pr as ye,Qa as be,Qn as xe,Qo as k,Ro as Se,Rt as Ce,Sc as we,So as Te,Sr as Ee,Ss as De,To as Oe,Tr as A,Ts as j,Ua as ke,Ur as Ae,Us as M,Vo as je,Vs as Me,Wo as Ne,Xa as Pe,Xn as Fe,Xo as Ie,Xs as Le,Y as Re,Ya as ze,Yn as Be,Yo as Ve,Ys as He,Za as Ue,Zo as We,_o as N,a as Ge,ac as Ke,as as qe,bn as Je,bo as P,br as Ye,bs as Xe,c as Ze,cc as Qe,co as $e,da as et,dr as tt,ec as nt,ei as rt,eo as it,fc as at,fr as ot,fs as st,gc as ct,gn as lt,gs as ut,ho as F,ia as dt,ic as ft,io as pt,ir as mt,is as ht,ja as gt,jn as _t,jo as vt,jr as yt,ka as bt,ko as xt,lc as St,lo as Ct,ls as wt,mo as Tt,ms as Et,n as Dt,nc as Ot,ni as kt,no as I,nr as At,ns as jt,oc as Mt,oi as Nt,oo as Pt,os as Ft,pc as L,po as It,pr as Lt,qa as Rt,qn as zt,qo as R,qs as Bt,r as Vt,rc as Ht,rn as Ut,ro as Wt,rs as Gt,sc as Kt,si as qt,so as Jt,sr as Yt,ss as Xt,ta as Zt,tc as z,to as Qt,uc as $t,uo as B,us as en,vo as tn,vs as nn,wi as rn,wn as an,xa as on,xc as sn,xo as cn,xs as ln,yr as un,ys as dn,zo as fn}from"./loadShare-eager-CRNcc8D7.js";import{t as pn}from"./AccessTime-Dpa6PKHY.js";import{dedupeIntegration as mn,init as hn}from"./prod-ChPGnyiA.js";import{d as gn,t as _n}from"./en-US-BjjaEI6N.js";import{$ as vn,C as yn,D as bn,E as xn,G as Sn,J as Cn,K as wn,M as Tn,N as En,P as Dn,Q as On,R as kn,S as An,T as jn,U as Mn,W as Nn,Y as Pn,Z as Fn,a as In,b as Ln,c as Rn,ct as zn,d as Bn,dt as Vn,et as Hn,i as Un,it as Wn,j as Gn,k as Kn,l as qn,n as Jn,o as Yn,p as Xn,q as Zn,r as Qn,s as $n,t as er,tt as tr,u as nr,ut as rr,w as ir,x as ar}from"./setYear-DurmWw03.js";import{a as or,n as sr,o as cr,r as lr,t as V}from"./AdminUtils-DDT_kD8H.js";import{t as ur}from"./AceEditor-DTzNaeVy.js";import{t as dr}from"./ctrlEnter-CruFIPb_.js";x(),Ze();var fr=_(D(`path`,{d:`m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`}),`ArrowForward`),pr=_(D(`path`,{d:`M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 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-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m-2 14-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z`}),`AssignmentTurnedIn`),mr=_(D(`path`,{d:`m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z`}),`AutoAwesome`),hr=_(D(`path`,{d:`M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z`}),`BarChart`),gr=_([D(`path`,{d:`M21 19.1H3V5h18zM21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`},`0`),D(`path`,{d:`M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41z`},`1`)],`CancelPresentation`),H=_(D(`path`,{d:`M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2m0 13H4v-2h16zm0-5H4V4h16z`}),`CardMembership`),_r=_(D(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckCircle`),vr=_(D(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`ChevronLeft`),yr=_(D(`path`,{d:`M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96`}),`Cloud`),U=_(D(`path`,{d:`M21.5 14.98c-.02 0-.03 0-.05.01C21.2 13.3 19.76 12 18 12c-1.4 0-2.6.83-3.16 2.02C13.26 14.1 12 15.4 12 17c0 1.66 1.34 3 3 3l6.5-.02c1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5M10 4.26v2.09C7.67 7.18 6 9.39 6 12c0 1.77.78 3.34 2 4.44V14h2v6H4v-2h2.73C5.06 16.54 4 14.4 4 12c0-3.73 2.55-6.85 6-7.74M20 6h-2.73c1.43 1.26 2.41 3.01 2.66 5h-2.02c-.23-1.36-.93-2.55-1.91-3.44V10h-2V4h6z`}),`CloudSync`),br=_(D(`path`,{d:`M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z`}),`Devices`),xr=_(D(`path`,{d:`M20 9H4v2h16zM4 15h16v-2H4z`}),`DragHandle`),Sr=_(D(`path`,{d:`M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z`}),`Email`),Cr=_(D(`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`}),`Https`),wr=_(D(`path`,{d:`M9 3 5 6.99h3V14h2V6.99h3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99z`}),`ImportExport`),Tr=_(D(`path`,{d:`M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4h16z`}),`Inventory2`),Er=_(D(`path`,{d:`M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z`}),`LibraryAdd`),Dr=_([D(`path`,{d:`M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z`},`0`),D(`path`,{d:`M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32`},`1`)],`LockPerson`),Or=_(D(`path`,{d:`m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z`}),`Logout`),kr=_(D(`path`,{d:`M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z`}),`Memory`),Ar=_(D(`path`,{d:`M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7`}),`MyLocation`),jr=_(D(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`NavigateBefore`),Mr=_(D(`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`),Nr=_(D(`path`,{d:`M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m-7 6-4 4h3v6h2v-6h3z`}),`OpenInBrowser`),Pr=_(D(`path`,{d:`M13 7h-2v2h2zm0 4h-2v6h2zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99M17 19H7V5h10z`}),`PermDeviceInformation`),Fr=_(D(`path`,{d:`M19 11h-8v6h8zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2m-2 .02H3V4.97h18z`}),`PictureInPictureAlt`),Ir=_(D(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`ReportProblem`),Lr=_(D(`path`,{d:`M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9`}),`SettingsBackupRestore`),Rr=_(D(`path`,{d:`M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1m-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05M12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0`}),`SettingsRemote`),zr=_(D(`path`,{d:`M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13`}),`SmartToy`),Br=_(D(`path`,{d:`M11 21H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h6zm2 0h6c1.1 0 2-.9 2-2v-7h-8zm8-11V5c0-1.1-.9-2-2-2h-6v7z`}),`SpaceDashboard`),Vr=_(D(`path`,{d:`M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33m-7.14-.94 2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20h6v-6l-2.24 2.24C6.68 15.15 6 13.66 6 12c0-1 .25-1.94.68-2.77l8.08 8.08c-.25.13-.5.25-.77.34v2.09c.8-.21 1.55-.54 2.23-.96l2.36 2.36 1.27-1.27L4.14 4.14zM20 4h-6v6l2.24-2.24C17.32 8.85 18 10.34 18 12c0 1-.25 1.94-.68 2.77l1.46 1.46C19.55 15.01 20 13.56 20 12c0-2.21-.91-4.2-2.36-5.64z`}),`SyncDisabled`),Hr=_(D(`path`,{d:`M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z`}),`Update`),Ur=_(D(`path`,{d:`M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z`}),`VerifiedUser`),Wr={y:{sectionType:`year`,contentType:`digit`,maxLength:4},yy:`year`,yyy:{sectionType:`year`,contentType:`digit`,maxLength:4},yyyy:`year`,M:{sectionType:`month`,contentType:`digit`,maxLength:2},MM:`month`,MMMM:{sectionType:`month`,contentType:`letter`},MMM:{sectionType:`month`,contentType:`letter`},L:{sectionType:`month`,contentType:`digit`,maxLength:2},LL:`month`,LLL:{sectionType:`month`,contentType:`letter`},LLLL:{sectionType:`month`,contentType:`letter`},d:{sectionType:`day`,contentType:`digit`,maxLength:2},dd:`day`,do:{sectionType:`day`,contentType:`digit-with-letter`},E:{sectionType:`weekDay`,contentType:`letter`},EE:{sectionType:`weekDay`,contentType:`letter`},EEE:{sectionType:`weekDay`,contentType:`letter`},EEEE:{sectionType:`weekDay`,contentType:`letter`},EEEEE:{sectionType:`weekDay`,contentType:`letter`},i:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},ii:`weekDay`,iii:{sectionType:`weekDay`,contentType:`letter`},iiii:{sectionType:`weekDay`,contentType:`letter`},e:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},ee:`weekDay`,eee:{sectionType:`weekDay`,contentType:`letter`},eeee:{sectionType:`weekDay`,contentType:`letter`},eeeee:{sectionType:`weekDay`,contentType:`letter`},eeeeee:{sectionType:`weekDay`,contentType:`letter`},c:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},cc:`weekDay`,ccc:{sectionType:`weekDay`,contentType:`letter`},cccc:{sectionType:`weekDay`,contentType:`letter`},ccccc:{sectionType:`weekDay`,contentType:`letter`},cccccc:{sectionType:`weekDay`,contentType:`letter`},a:`meridiem`,aa:`meridiem`,aaa:`meridiem`,H:{sectionType:`hours`,contentType:`digit`,maxLength:2},HH:`hours`,h:{sectionType:`hours`,contentType:`digit`,maxLength:2},hh:`hours`,K:{sectionType:`hours`,contentType:`digit`,maxLength:2},KK:`hours`,k:{sectionType:`hours`,contentType:`digit`,maxLength:2},kk:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},Gr={year:`yyyy`,month:`LLLL`,monthShort:`MMM`,dayOfMonth:`d`,dayOfMonthFull:`do`,weekday:`EEEE`,weekdayShort:`EEEEEE`,hours24h:`HH`,hours12h:`hh`,meridiem:`aa`,minutes:`mm`,seconds:`ss`,fullDate:`PP`,keyboardDate:`P`,shortDate:`MMM d`,normalDate:`d MMMM`,normalDateWithWeekday:`EEE, MMM d`,fullTime12h:`hh:mm aa`,fullTime24h:`HH:mm`,keyboardDateTime12h:`P hh:mm aa`,keyboardDateTime24h:`P HH:mm`},Kr=class{constructor(e){j(this,`isMUIAdapter`,!0),j(this,`isTimezoneCompatible`,!1),j(this,`formatTokenMap`,Wr),j(this,`escapedCharacters`,{start:`'`,end:`'`}),j(this,`date`,e=>e===void 0?new Date:e===null?null:new Date(e)),j(this,`getInvalidDate`,()=>new Date(`Invalid Date`)),j(this,`getTimezone`,()=>`default`),j(this,`setTimezone`,e=>e),j(this,`toJsDate`,e=>e),j(this,`getCurrentLocaleCode`,()=>this.locale.code),j(this,`is12HourCycleInCurrentLocale`,()=>/a/.test(this.locale.formatLong.time({width:`short`}))),j(this,`expandFormat`,e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=this.longFormatters[t];return n(e,this.locale.formatLong)}return e}).join(``)),j(this,`formatNumber`,e=>e),j(this,`getDayOfWeek`,e=>e.getDay()+1);let{locale:t,formats:n,longFormatters:r,lib:i}=e;this.locale=t,this.formats=se({},Gr,n),this.longFormatters=r,this.lib=i||`date-fns`}};x();var qr=class extends Kr{constructor({locale:e,formats:t}={}){super({locale:e??_n,formats:t,longFormatters:Dn}),j(this,`parse`,(e,t)=>e===``?null:Xn(e,t,new Date,{locale:this.locale})),j(this,`isValid`,e=>e!=null&&Pn(e)),j(this,`format`,(e,t)=>this.formatByString(e,this.formats[t])),j(this,`formatByString`,(e,t)=>En(e,t,{locale:this.locale})),j(this,`isEqual`,(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:Ln(e,t)),j(this,`isSameYear`,(e,t)=>qn(e,t)),j(this,`isSameMonth`,(e,t)=>nr(e,t)),j(this,`isSameDay`,(e,t)=>Fn(e,t)),j(this,`isSameHour`,(e,t)=>Bn(e,t)),j(this,`isAfter`,(e,t)=>An(e,t)),j(this,`isAfterYear`,(e,t)=>An(e,Sn(t))),j(this,`isAfterDay`,(e,t)=>An(e,Cn(t))),j(this,`isBefore`,(e,t)=>ar(e,t)),j(this,`isBeforeYear`,(e,t)=>ar(e,this.startOfYear(t))),j(this,`isBeforeDay`,(e,t)=>ar(e,this.startOfDay(t))),j(this,`isWithinRange`,(e,[t,n])=>Rn(e,{start:t,end:n})),j(this,`startOfYear`,e=>Nn(e)),j(this,`startOfMonth`,e=>wn(e)),j(this,`startOfWeek`,e=>gn(e,{locale:this.locale})),j(this,`startOfDay`,e=>Wn(e)),j(this,`endOfYear`,e=>Sn(e)),j(this,`endOfMonth`,e=>Zn(e)),j(this,`endOfWeek`,e=>Mn(e,{locale:this.locale})),j(this,`endOfDay`,e=>Cn(e)),j(this,`addYears`,(e,t)=>On(e,t)),j(this,`addMonths`,(e,t)=>rr(e,t)),j(this,`addWeeks`,(e,t)=>vn(e,t)),j(this,`addDays`,(e,t)=>Vn(e,t)),j(this,`addHours`,(e,t)=>zn(e,t)),j(this,`addMinutes`,(e,t)=>tr(e,t)),j(this,`addSeconds`,(e,t)=>Hn(e,t)),j(this,`getYear`,e=>yn(e)),j(this,`getMonth`,e=>jn(e)),j(this,`getDate`,e=>Tn(e)),j(this,`getHours`,e=>Kn(e)),j(this,`getMinutes`,e=>xn(e)),j(this,`getSeconds`,e=>ir(e)),j(this,`getMilliseconds`,e=>bn(e)),j(this,`setYear`,(e,t)=>er(e,t)),j(this,`setMonth`,(e,t)=>$n(e,t)),j(this,`setDate`,(e,t)=>Yn(e,t)),j(this,`setHours`,(e,t)=>In(e,t)),j(this,`setMinutes`,(e,t)=>Qn(e,t)),j(this,`setSeconds`,(e,t)=>Jn(e,t)),j(this,`setMilliseconds`,(e,t)=>Un(e,t)),j(this,`getDaysInMonth`,e=>Gn(e)),j(this,`getWeekArray`,e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;this.isBefore(i,n);){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a}),j(this,`getWeekNumber`,e=>kn(e,{locale:this.locale})),j(this,`getYearRange`,([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i})}},Jr={"@mui/icons-material":()=>r(()=>import(`./icons-material-BLgrEUSv.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url),"date-fns":()=>r(()=>import(`./date-fns-Bpgjk9P-.js`),__vite__mapDeps([31,32,33,1,2,3,34]),import.meta.url),"date-fns/locale":()=>r(()=>import(`./locale-DN6Bdkdt.js`).then(e=>e.t),__vite__mapDeps([35,2,32,34]),import.meta.url)};function Yr(){sn({name:`iobroker_admin`,shared:{},remotes:[]}),we(Object.fromEntries(Object.entries(Jr).map(([e,t])=>[e,{version:{"@mui/icons-material":`9.5.0`,"date-fns":`4.4.0`,"date-fns/locale":`4.4.0`}[e],scope:`default`,get:async()=>{let e=await t();return()=>e},shareConfig:{singleton:!0,requiredVersion:`*`,eager:!1}}])))}var Xr={version:`8.0.0`},Zr=Le({hostsUpdate:0,adaptersUpdate:0,hosts:null,repository:null,installed:null});function Qr({children:e}){let[t]=L({hostsUpdate:0,adaptersUpdate:0,hosts:null,repository:null,installed:null}),{hosts:n,installed:r,repository:i}=t,a=$t(()=>{var e;if(!n||!i)return 0;let t=(e=i[`js-controller`])==null?void 0:e.version,r=0;return n.forEach(e=>{V.updateAvailable(e.common.installedVersion,t,`js-controller on ${e._id}`)&&r++}),r},[n,i]),o=$t(()=>{if(!r||!i)return 0;let e=0;return Object.keys(r).forEach(t=>{let n=r[t],a=i[t];t!==`js-controller`&&t!==`hosts`&&n!=null&&n.version&&a!=null&&a.version&&n.ignoreVersion!==a.version&&V.updateAvailable(n.version,a.version,`adapter "${t}"`)&&e++}),e},[r,i]),s=$t(()=>({...t,hostsUpdate:a,adaptersUpdate:o}),[t,a,o]);return D(Zr.Provider,{value:s,children:e})}var $r=Le({dragDropManager:void 0});function ei(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var ti=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),ni=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},ri={INIT:`@@redux/INIT`+ni(),REPLACE:`@@redux/REPLACE`+ni(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+ni()}};function ii(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ai(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ei(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ei(1));return n(ai)(e,t)}if(typeof e!=`function`)throw Error(ei(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(ei(3));return a}function d(e){if(typeof e!=`function`)throw Error(ei(4));if(c)throw Error(ei(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(ei(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!ii(e))throw Error(ei(7));if(e.type===void 0)throw Error(ei(8));if(c)throw Error(ei(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(ei(10));i=e,f({type:ri.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(ei(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[ti]=function(){return this},e}return f({type:ri.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[ti]=m,r}function W(e,t,...n){if(oi()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function oi(){return typeof process<`u`&&!0}function si(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function ci(e,t){return e.filter(e=>e!==t)}function li(e){return typeof e==`object`}function ui(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function di(e,t){return e.filter(e=>t.indexOf(e)>-1)}var fi=`dnd-core/INIT_COORDS`,pi=`dnd-core/BEGIN_DRAG`,mi=`dnd-core/PUBLISH_DRAG_SOURCE`,hi=`dnd-core/HOVER`,gi=`dnd-core/DROP`,_i=`dnd-core/END_DRAG`;function vi(e,t){return{type:fi,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var yi={type:fi,payload:{clientOffset:null,sourceClientOffset:null}};function bi(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(vi(i)),xi(t,o,s);let c=wi(t,o);if(c==null){e.dispatch(yi);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Si(a),l=a(c)}e.dispatch(vi(i,l));let u=s.getSource(c).beginDrag(o,c);return u==null?void 0:(Ci(u),s.pinSource(c),{type:pi,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}})}}function xi(e,t,n){W(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){W(n.getSource(e),`Expected sourceIds to be registered.`)})}function Si(e){W(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Ci(e){W(li(e),`Item must be an object.`)}function wi(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ti(e,t,n[t])})}return e}function Di(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();Oi(n),ji(n).forEach((i,a)=>{let o={type:gi,payload:{dropResult:Ei({},t,ki(i,a,r,n))}};e.dispatch(o)})}}function Oi(e){W(e.isDragging(),`Cannot call drop while not dragging.`),W(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function ki(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Ai(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Ai(e){W(e===void 0||li(e),`Drop result must either be an object or undefined.`)}function ji(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Mi(e){return function(){let t=e.getMonitor(),n=e.getRegistry();Ni(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:_i}}}function Ni(e){W(e.isDragging(),`Cannot call endDrag while not dragging.`)}function Pi(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function Fi(e){return function(t,{clientOffset:n}={}){Ii(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return Ri(r,a,i.getItemType()),Li(r,i,a),zi(r,i,a),{type:hi,payload:{targetIds:r,clientOffset:n||null}}}}function Ii(e){W(Array.isArray(e),`Expected targetIds to be an array.`)}function Li(e,t,n){W(t.isDragging(),`Cannot call hover while not dragging.`),W(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];W(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),W(n.getTarget(r),`Expected targetIds to be registered.`)}}function Ri(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];Pi(t.getTargetType(i),n)||e.splice(r,1)}}function zi(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function Bi(e){return function(){if(e.getMonitor().isDragging())return{type:mi}}}function Vi(e){return{beginDrag:bi(e),publishDragSource:Bi(e),hover:Fi(e),drop:Di(e),endDrag:Mi(e)}}var Hi=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=Vi(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function Ui(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Wi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gi(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Wi(Ui(t,r),n)}function Ki(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Wi(t,n)}var qi=[],Ji=[];qi.__IS_NONE__=!0,Ji.__IS_ALL__=!0;function Yi(e,t){return e===qi?!1:e===Ji||t===void 0||di(t,e).length>0}var Xi=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;W(typeof e==`function`,`listener must be a function.`),W(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId;return this.store.subscribe(()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!Yi(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){W(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return W(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return W(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:Pi(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return W(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Pi(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Gi(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return Ki(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},Zi=typeof global<`u`?global:self,Qi=Zi.MutationObserver||Zi.WebKitMutationObserver;function $i(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function ea(e){let t=1,n=new Qi(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}var ta=typeof Qi==`function`?ea:$i,na=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ta(this.flush),this.requestErrorThrow=$i(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},ra=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},ia=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new ra(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},aa=new na,oa=new ia(aa.registerPendingError);function sa(e){aa.enqueueTask(oa.create(e))}var ca=`dnd-core/ADD_SOURCE`,la=`dnd-core/ADD_TARGET`,ua=`dnd-core/REMOVE_SOURCE`,G=`dnd-core/REMOVE_TARGET`;function da(e){return{type:ca,payload:{sourceId:e}}}function fa(e){return{type:la,payload:{targetId:e}}}function pa(e){return{type:ua,payload:{sourceId:e}}}function ma(e){return{type:G,payload:{targetId:e}}}function ha(e){W(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),W(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),W(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function ga(e){W(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),W(typeof e.hover==`function`,`Expected hover to be a function.`),W(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function _a(e,t){t&&Array.isArray(e)?e.forEach(e=>_a(e,!1)):W(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var va;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(va||={});var ya=0;function ba(){return ya++}function xa(e){let t=ba().toString();switch(e){case va.SOURCE:return`S${t}`;case va.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function Sa(e){switch(e[0]){case`S`:return va.SOURCE;case`T`:return va.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function Ca(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var wa=class{addSource(e,t){_a(e),ha(t);let n=this.addHandler(va.SOURCE,e,t);return this.store.dispatch(da(n)),n}addTarget(e,t){_a(e,!0),ga(t);let n=this.addHandler(va.TARGET,e,t);return this.store.dispatch(fa(n)),n}containsHandler(e){return Ca(this.dragSources,e)||Ca(this.dropTargets,e)}getSource(e,t=!1){return W(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return W(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return W(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return W(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return Sa(e)===va.SOURCE}isTargetId(e){return Sa(e)===va.TARGET}removeSource(e){W(this.getSource(e),`Expected an existing source.`),this.store.dispatch(pa(e)),sa(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){W(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(ma(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);W(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){W(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=xa(e);return this.types.set(r,t),e===va.SOURCE?this.dragSources.set(r,n):e===va.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},Ta=(e,t)=>e===t;function Ea(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Da(e,t,n=Ta){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Oa(e=qi,t){switch(t.type){case hi:break;case ca:case la:case G:case ua:return qi;case pi:case mi:case _i:case gi:default:return Ji}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=ui(n,r);if(!(i.length>0||!Da(n,r)))return qi;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function ka(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ka(e,t,n[t])})}return e}var ja={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ma(e=ja,t){let{payload:n}=t;switch(t.type){case fi:case pi:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case hi:return Ea(e.clientOffset,n.clientOffset)?e:Aa({},e,{clientOffset:n.clientOffset});case _i:case gi:return ja;default:return e}}function Na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Na(e,t,n[t])})}return e}var Fa={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ia(e=Fa,t){let{payload:n}=t;switch(t.type){case pi:return Pa({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case mi:return Pa({},e,{isSourcePublic:!0});case hi:return Pa({},e,{targetIds:n.targetIds});case G:return e.targetIds.indexOf(n.targetId)===-1?e:Pa({},e,{targetIds:ci(e.targetIds,n.targetId)});case gi:return Pa({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case _i:return Pa({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function La(e=0,t){switch(t.type){case ca:case la:return e+1;case ua:case G:return e-1;default:return e}}function Ra(e=0){return e+1}function za(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){za(e,t,n[t])})}return e}function Va(e={},t){return{dirtyHandlerIds:Oa(e.dirtyHandlerIds,{type:t.type,payload:Ba({},t.payload,{prevTargetIds:si(e,`dragOperation.targetIds`,[])})}),dragOffset:Ma(e.dragOffset,t),refCount:La(e.refCount,t),dragOperation:Ia(e.dragOperation,t),stateId:Ra(e.stateId)}}function Ha(e,t=void 0,n={},r=!1){let i=Ua(r),a=new Hi(i,new Xi(i,new wa(i))),o=e(a,t,n);return a.receiveBackend(o),a}function Ua(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return ai(Va,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}function Wa(e,t){if(e==null)return{};var n=Ga(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ga(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ka=0,qa=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`),Ja=Ot(function(e){var{children:t}=e;let[n,r]=Ya(Wa(e,[`children`]));return Kt(()=>{if(r){let e=Za();return++Ka,()=>{--Ka===0&&(e[qa]=null)}}},[]),D($r.Provider,{value:n,children:t})});function Ya(e){return`manager`in e?[{dragDropManager:e.manager},!1]:[Xa(e.backend,e.context,e.options,e.debugMode),!e.context]}function Xa(e,t=Za(),n,r){let i=t;return i[qa]||(i[qa]={dragDropManager:Ha(e,t,n,r)}),i[qa]}function Za(){return typeof global<`u`?global:window}var Qa=n(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),$a=typeof window<`u`?St:Kt,eo=e(Qa(),1);function to(e,t,n){let[r,i]=L(()=>t(e)),a=ft(()=>{let a=t(e);(0,eo.default)(r,a)||(i(a),n&&n())},[r,e,n]);return $a(a),[r,a]}function no(e,t,n){let[r,i]=to(e,t,n);return $a(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function ro(e,t,n){return no(t,e||(()=>({})),()=>n.reconnect())}function io(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),$t(()=>typeof e==`function`?e():e,n)}function ao(e){return $t(()=>e.hooks.dragSource(),[e])}function oo(e){return $t(()=>e.hooks.dragPreview(),[e])}var so=!1,co=!1,lo=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){W(!so,`You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return so=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{so=!1}}isDragging(){if(!this.sourceId)return!1;W(!co,`You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return co=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{co=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}},uo=!1,fo=class{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;W(!uo,`You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor`);try{return uo=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{uo=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}};function po(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function mo(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function ho(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function go(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function _o(e){if(typeof e.type==`string`)return;let t=e.type.displayName||e.type.name||`the component`;throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function vo(e){return(t=null,n=null)=>{if(!nt(t)){let r=t;return e(r,n),r}let r=t;return _o(r),xo(r,n?t=>e(t,n):e)}}function yo(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=vo(r);t[n]=()=>e}}),t}function bo(e,t){typeof e==`function`?e(t):e.current=t}function xo(e,t){let n=e.ref;return W(typeof n!=`string`,`Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs`),n?He(e,{ref:e=>{bo(n,e),bo(t,e)}}):He(e,{ref:t})}var So=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){let t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ho(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ho(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&=(this.dragSourceUnsubscribe(),void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=yo({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,go(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,go(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}},Co=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ho(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&=(this.unsubscribeDropTarget(),void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=yo({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,go(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}};function wo(){let{dragDropManager:e}=Ke($r);return W(e!=null,`Expected drag drop context`),e}function To(e,t){let n=wo(),r=$t(()=>new So(n.getBackend()),[n]);return $a(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),$a(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Eo(){let e=wo();return $t(()=>new lo(e),[e])}var Do=class{beginDrag(){let e=this.spec,t=this.monitor,n=null;return n=typeof e.item==`object`?e.item:typeof e.item==`function`?e.item(t):{},n??null}canDrag(){let e=this.spec,t=this.monitor;return typeof e.canDrag==`boolean`?e.canDrag:typeof e.canDrag!=`function`||e.canDrag(t)}isDragging(e,t){let n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}};function Oo(e,t,n){let r=$t(()=>new Do(e,t,n),[t,n]);return Kt(()=>{r.spec=e},[e]),r}function ko(e){return $t(()=>{let t=e.type;return W(t!=null,`spec.type must be defined`),t},[e])}function Ao(e,t,n){let r=wo(),i=Oo(e,t,n),a=ko(e);$a(function(){if(a!=null){let[e,o]=mo(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function jo(e,t){let n=io(e,t);W(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);let r=Eo(),i=To(n.options,n.previewOptions);return Ao(n,r,i),[ro(n.collect,r,i),ao(i),oo(i)]}function Mo(e){let t=wo().getMonitor(),[n,r]=to(t,e);return Kt(()=>t.subscribeToOffsetChange(r)),Kt(()=>t.subscribeToStateChange(r)),n}function No(e){return $t(()=>e.hooks.dropTarget(),[e])}function K(e){let t=wo(),n=$t(()=>new Co(t.getBackend()),[t]);return $a(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Po(){let e=wo();return $t(()=>new fo(e),[e])}function Fo(e){let{accept:t}=e;return $t(()=>(W(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Io=class{canDrop(){let e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}};function Lo(e,t){let n=$t(()=>new Io(e,t),[t]);return Kt(()=>{n.spec=e},[e]),n}function Ro(e,t,n){let r=wo(),i=Lo(e,t),a=Fo(e);$a(function(){let[e,o]=po(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function zo(e,t){let n=io(e,t),r=Po(),i=K(n.options);return Ro(n,r,i),[ro(n.collect,r,i),No(i)]}function Bo(e){let t=null;return()=>(t??=e(),t)}function Vo(e,t){return e.filter(e=>e!==t)}function Ho(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var Uo=class{enter(e){let t=this.entered.length,n=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=Ho(this.entered.filter(n),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Vo(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Wo=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},Go=t({FILE:()=>Ko,HTML:()=>Yo,TEXT:()=>Jo,URL:()=>qo}),Ko=`__NATIVE_FILE__`,qo=`__NATIVE_URL__`,Jo=`__NATIVE_TEXT__`,Yo=`__NATIVE_HTML__`;function Xo(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}var Zo={[Ko]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Yo]:{exposeProperties:{html:(e,t)=>Xo(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[qo]:{exposeProperties:{urls:(e,t)=>Xo(e,t,``).split(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./icons-material-Bu1f45BT.js","./loadShare-eager-CRNcc8D7.js","./rolldown-runtime-sJBDdmOt.js","./vite-preload-helper-BbbETgeG.js","./AccessTime-Dpa6PKHY.js","./MoreHoriz-CR2kD-dc.js","./Star-DNdm064z.js","./WifiTethering-Da8nW7Do.js","./Apps-C8LE9l6Z.js","./ViewSidebar-kHvah-XS.js","./Book-QmHxDaHb.js","./Usb-Ca47vqRv.js","./Cached-f77QQBQD.js","./Pageview-DBITLOzI.js","./Computer-DFIUq-fL.js","./Timer-Be9yF62g.js","./DeleteForever-BnEM-6_v.js","./Extension-DU1jqvic.js","./KeyboardArrowRight-zZUJhG9e.js","./PersonOff-ANdO5Nu4.js","./InfoOutlined-l86Si1qa.js","./ViewCompact-C3SC0jFF.js","./PushPinOutlined-DvxsqPHo.js","./Remove-DplJatnC.js","./Schedule-BMMrgd7j.js","./Timeline-IQCnSLiw.js","./Storage-COo2RkS1.js","./TextSnippet-Bywi1YuG.js","./UnfoldMore-Du7-8wYn.js","./ViewList-DuKCnBnc.js","./VpnKey-iMA7KrB-.js","./date-fns-Bpgjk9P-.js","./en-US-BjjaEI6N.js","./setYear-DurmWw03.js","./isSameWeek-WMSJR5Qs.js","./locale-DN6Bdkdt.js","./Overview-CDvnM655.js","./AdminUtils-DDT_kD8H.js","./installSVGRenderer-BkdptYag.js","./Adapters-WMGNQt7g.js","./sentry-B4uGc7ut.js","./AdapterUpdateDialog-D3y2bGHM.js","./zh-cn-B6dBxOyw.js","./State-Cc-tyuqB.js","./CustomModal-B8vdCRn1.js","./ctrlEnter-CruFIPb_.js","./Instances-BKydFSdw.js","./Config-BZDUILCW.js","./AceEditor-DTzNaeVy.js","./UsedResources-BIdU7UPm.js","./classPrivateFieldGet2-CBZxMSQ4.js","./Intro-Dt2GzmtW.js","./Logs-hbcdBDN3.js","./Files-Bwbw17Fb.js","./Objects-HPx0yuOk.js","./Users-BruHA-yU.js","./Fields-Df7Llf6U.js","./Enums-CHm2sGa-.js","./CustomTab-DSPqif6P.js","./ConfigManager-BMdQoiCg.js","./Hosts-BR0g-Wxo.js","./EasyMode-TwIN5yxu.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,r as t,t as n}from"./rolldown-runtime-sJBDdmOt.js";import{t as r}from"./vite-preload-helper-BbbETgeG.js";import{$a as i,$n as a,$o as o,$s as s,Aa as c,An as l,Ao as u,Ar as d,Bn as f,Bo as p,Bt as m,Ci as h,Cs as g,Ds as _,Ei as v,Eo as y,Er as b,Es as x,F as ee,Fo as S,Ga as C,Go as w,Gr as T,Ho as E,Hs as D,I as te,In as ne,Io as re,Ja as ie,Jo as O,Ko as ae,Kr as oe,Ks as se,Lo as ce,Lt as le,Mo as ue,Mr as de,Ms as fe,No as pe,Nr as me,On as he,Oo as ge,Os as _e,Po as ve,Pr as ye,Qa as be,Qn as xe,Qo as k,Ro as Se,Rt as Ce,Sc as we,So as Te,Sr as Ee,Ss as De,To as Oe,Tr as A,Ts as j,Ua as ke,Ur as Ae,Us as M,Vo as je,Vs as Me,Wo as Ne,Xa as Pe,Xn as Fe,Xo as Ie,Xs as Le,Y as Re,Ya as ze,Yn as Be,Yo as Ve,Ys as He,Za as Ue,Zo as We,_o as N,a as Ge,ac as Ke,as as qe,bn as Je,bo as P,br as Ye,bs as Xe,c as Ze,cc as Qe,co as $e,da as et,dr as tt,ec as nt,ei as rt,eo as it,fc as at,fr as ot,fs as st,gc as ct,gn as lt,gs as ut,ho as F,ia as dt,ic as ft,io as pt,ir as mt,is as ht,ja as gt,jn as _t,jo as vt,jr as yt,ka as bt,ko as xt,lc as St,lo as Ct,ls as wt,mo as Tt,ms as Et,n as Dt,nc as Ot,ni as kt,no as I,nr as At,ns as jt,oc as Mt,oi as Nt,oo as Pt,os as Ft,pc as L,po as It,pr as Lt,qa as Rt,qn as zt,qo as R,qs as Bt,r as Vt,rc as Ht,rn as Ut,ro as Wt,rs as Gt,sc as Kt,si as qt,so as Jt,sr as Yt,ss as Xt,ta as Zt,tc as z,to as Qt,uc as $t,uo as B,us as en,vo as tn,vs as nn,wi as rn,wn as an,xa as on,xc as sn,xo as cn,xs as ln,yr as un,ys as dn,zo as fn}from"./loadShare-eager-CRNcc8D7.js";import{t as pn}from"./AccessTime-Dpa6PKHY.js";import{dedupeIntegration as mn,init as hn}from"./prod-ChPGnyiA.js";import{d as gn,t as _n}from"./en-US-BjjaEI6N.js";import{$ as vn,C as yn,D as bn,E as xn,G as Sn,J as Cn,K as wn,M as Tn,N as En,P as Dn,Q as On,R as kn,S as An,T as jn,U as Mn,W as Nn,Y as Pn,Z as Fn,a as In,b as Ln,c as Rn,ct as zn,d as Bn,dt as Vn,et as Hn,i as Un,it as Wn,j as Gn,k as Kn,l as qn,n as Jn,o as Yn,p as Xn,q as Zn,r as Qn,s as $n,t as er,tt as tr,u as nr,ut as rr,w as ir,x as ar}from"./setYear-DurmWw03.js";import{a as or,n as sr,o as cr,r as lr,t as V}from"./AdminUtils-DDT_kD8H.js";import{t as ur}from"./AceEditor-DTzNaeVy.js";import{t as dr}from"./ctrlEnter-CruFIPb_.js";x(),Ze();var fr=_(D(`path`,{d:`m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`}),`ArrowForward`),pr=_(D(`path`,{d:`M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 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-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m-2 14-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z`}),`AssignmentTurnedIn`),mr=_(D(`path`,{d:`m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z`}),`AutoAwesome`),hr=_(D(`path`,{d:`M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z`}),`BarChart`),gr=_([D(`path`,{d:`M21 19.1H3V5h18zM21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`},`0`),D(`path`,{d:`M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41z`},`1`)],`CancelPresentation`),H=_(D(`path`,{d:`M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2m0 13H4v-2h16zm0-5H4V4h16z`}),`CardMembership`),_r=_(D(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckCircle`),vr=_(D(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`ChevronLeft`),yr=_(D(`path`,{d:`M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96`}),`Cloud`),U=_(D(`path`,{d:`M21.5 14.98c-.02 0-.03 0-.05.01C21.2 13.3 19.76 12 18 12c-1.4 0-2.6.83-3.16 2.02C13.26 14.1 12 15.4 12 17c0 1.66 1.34 3 3 3l6.5-.02c1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5M10 4.26v2.09C7.67 7.18 6 9.39 6 12c0 1.77.78 3.34 2 4.44V14h2v6H4v-2h2.73C5.06 16.54 4 14.4 4 12c0-3.73 2.55-6.85 6-7.74M20 6h-2.73c1.43 1.26 2.41 3.01 2.66 5h-2.02c-.23-1.36-.93-2.55-1.91-3.44V10h-2V4h6z`}),`CloudSync`),br=_(D(`path`,{d:`M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z`}),`Devices`),xr=_(D(`path`,{d:`M20 9H4v2h16zM4 15h16v-2H4z`}),`DragHandle`),Sr=_(D(`path`,{d:`M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z`}),`Email`),Cr=_(D(`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`}),`Https`),wr=_(D(`path`,{d:`M9 3 5 6.99h3V14h2V6.99h3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99z`}),`ImportExport`),Tr=_(D(`path`,{d:`M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4h16z`}),`Inventory2`),Er=_(D(`path`,{d:`M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z`}),`LibraryAdd`),Dr=_([D(`path`,{d:`M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z`},`0`),D(`path`,{d:`M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32`},`1`)],`LockPerson`),Or=_(D(`path`,{d:`m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z`}),`Logout`),kr=_(D(`path`,{d:`M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z`}),`Memory`),Ar=_(D(`path`,{d:`M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7`}),`MyLocation`),jr=_(D(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`NavigateBefore`),Mr=_(D(`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`),Nr=_(D(`path`,{d:`M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m-7 6-4 4h3v6h2v-6h3z`}),`OpenInBrowser`),Pr=_(D(`path`,{d:`M13 7h-2v2h2zm0 4h-2v6h2zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99M17 19H7V5h10z`}),`PermDeviceInformation`),Fr=_(D(`path`,{d:`M19 11h-8v6h8zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2m-2 .02H3V4.97h18z`}),`PictureInPictureAlt`),Ir=_(D(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`ReportProblem`),Lr=_(D(`path`,{d:`M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9`}),`SettingsBackupRestore`),Rr=_(D(`path`,{d:`M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1m-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05M12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0`}),`SettingsRemote`),zr=_(D(`path`,{d:`M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13`}),`SmartToy`),Br=_(D(`path`,{d:`M11 21H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h6zm2 0h6c1.1 0 2-.9 2-2v-7h-8zm8-11V5c0-1.1-.9-2-2-2h-6v7z`}),`SpaceDashboard`),Vr=_(D(`path`,{d:`M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33m-7.14-.94 2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20h6v-6l-2.24 2.24C6.68 15.15 6 13.66 6 12c0-1 .25-1.94.68-2.77l8.08 8.08c-.25.13-.5.25-.77.34v2.09c.8-.21 1.55-.54 2.23-.96l2.36 2.36 1.27-1.27L4.14 4.14zM20 4h-6v6l2.24-2.24C17.32 8.85 18 10.34 18 12c0 1-.25 1.94-.68 2.77l1.46 1.46C19.55 15.01 20 13.56 20 12c0-2.21-.91-4.2-2.36-5.64z`}),`SyncDisabled`),Hr=_(D(`path`,{d:`M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z`}),`Update`),Ur=_(D(`path`,{d:`M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z`}),`VerifiedUser`),Wr={y:{sectionType:`year`,contentType:`digit`,maxLength:4},yy:`year`,yyy:{sectionType:`year`,contentType:`digit`,maxLength:4},yyyy:`year`,M:{sectionType:`month`,contentType:`digit`,maxLength:2},MM:`month`,MMMM:{sectionType:`month`,contentType:`letter`},MMM:{sectionType:`month`,contentType:`letter`},L:{sectionType:`month`,contentType:`digit`,maxLength:2},LL:`month`,LLL:{sectionType:`month`,contentType:`letter`},LLLL:{sectionType:`month`,contentType:`letter`},d:{sectionType:`day`,contentType:`digit`,maxLength:2},dd:`day`,do:{sectionType:`day`,contentType:`digit-with-letter`},E:{sectionType:`weekDay`,contentType:`letter`},EE:{sectionType:`weekDay`,contentType:`letter`},EEE:{sectionType:`weekDay`,contentType:`letter`},EEEE:{sectionType:`weekDay`,contentType:`letter`},EEEEE:{sectionType:`weekDay`,contentType:`letter`},i:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},ii:`weekDay`,iii:{sectionType:`weekDay`,contentType:`letter`},iiii:{sectionType:`weekDay`,contentType:`letter`},e:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},ee:`weekDay`,eee:{sectionType:`weekDay`,contentType:`letter`},eeee:{sectionType:`weekDay`,contentType:`letter`},eeeee:{sectionType:`weekDay`,contentType:`letter`},eeeeee:{sectionType:`weekDay`,contentType:`letter`},c:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},cc:`weekDay`,ccc:{sectionType:`weekDay`,contentType:`letter`},cccc:{sectionType:`weekDay`,contentType:`letter`},ccccc:{sectionType:`weekDay`,contentType:`letter`},cccccc:{sectionType:`weekDay`,contentType:`letter`},a:`meridiem`,aa:`meridiem`,aaa:`meridiem`,H:{sectionType:`hours`,contentType:`digit`,maxLength:2},HH:`hours`,h:{sectionType:`hours`,contentType:`digit`,maxLength:2},hh:`hours`,K:{sectionType:`hours`,contentType:`digit`,maxLength:2},KK:`hours`,k:{sectionType:`hours`,contentType:`digit`,maxLength:2},kk:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},Gr={year:`yyyy`,month:`LLLL`,monthShort:`MMM`,dayOfMonth:`d`,dayOfMonthFull:`do`,weekday:`EEEE`,weekdayShort:`EEEEEE`,hours24h:`HH`,hours12h:`hh`,meridiem:`aa`,minutes:`mm`,seconds:`ss`,fullDate:`PP`,keyboardDate:`P`,shortDate:`MMM d`,normalDate:`d MMMM`,normalDateWithWeekday:`EEE, MMM d`,fullTime12h:`hh:mm aa`,fullTime24h:`HH:mm`,keyboardDateTime12h:`P hh:mm aa`,keyboardDateTime24h:`P HH:mm`},Kr=class{constructor(e){j(this,`isMUIAdapter`,!0),j(this,`isTimezoneCompatible`,!1),j(this,`formatTokenMap`,Wr),j(this,`escapedCharacters`,{start:`'`,end:`'`}),j(this,`date`,e=>e===void 0?new Date:e===null?null:new Date(e)),j(this,`getInvalidDate`,()=>new Date(`Invalid Date`)),j(this,`getTimezone`,()=>`default`),j(this,`setTimezone`,e=>e),j(this,`toJsDate`,e=>e),j(this,`getCurrentLocaleCode`,()=>this.locale.code),j(this,`is12HourCycleInCurrentLocale`,()=>/a/.test(this.locale.formatLong.time({width:`short`}))),j(this,`expandFormat`,e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=this.longFormatters[t];return n(e,this.locale.formatLong)}return e}).join(``)),j(this,`formatNumber`,e=>e),j(this,`getDayOfWeek`,e=>e.getDay()+1);let{locale:t,formats:n,longFormatters:r,lib:i}=e;this.locale=t,this.formats=se({},Gr,n),this.longFormatters=r,this.lib=i||`date-fns`}};x();var qr=class extends Kr{constructor({locale:e,formats:t}={}){super({locale:e??_n,formats:t,longFormatters:Dn}),j(this,`parse`,(e,t)=>e===``?null:Xn(e,t,new Date,{locale:this.locale})),j(this,`isValid`,e=>e!=null&&Pn(e)),j(this,`format`,(e,t)=>this.formatByString(e,this.formats[t])),j(this,`formatByString`,(e,t)=>En(e,t,{locale:this.locale})),j(this,`isEqual`,(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:Ln(e,t)),j(this,`isSameYear`,(e,t)=>qn(e,t)),j(this,`isSameMonth`,(e,t)=>nr(e,t)),j(this,`isSameDay`,(e,t)=>Fn(e,t)),j(this,`isSameHour`,(e,t)=>Bn(e,t)),j(this,`isAfter`,(e,t)=>An(e,t)),j(this,`isAfterYear`,(e,t)=>An(e,Sn(t))),j(this,`isAfterDay`,(e,t)=>An(e,Cn(t))),j(this,`isBefore`,(e,t)=>ar(e,t)),j(this,`isBeforeYear`,(e,t)=>ar(e,this.startOfYear(t))),j(this,`isBeforeDay`,(e,t)=>ar(e,this.startOfDay(t))),j(this,`isWithinRange`,(e,[t,n])=>Rn(e,{start:t,end:n})),j(this,`startOfYear`,e=>Nn(e)),j(this,`startOfMonth`,e=>wn(e)),j(this,`startOfWeek`,e=>gn(e,{locale:this.locale})),j(this,`startOfDay`,e=>Wn(e)),j(this,`endOfYear`,e=>Sn(e)),j(this,`endOfMonth`,e=>Zn(e)),j(this,`endOfWeek`,e=>Mn(e,{locale:this.locale})),j(this,`endOfDay`,e=>Cn(e)),j(this,`addYears`,(e,t)=>On(e,t)),j(this,`addMonths`,(e,t)=>rr(e,t)),j(this,`addWeeks`,(e,t)=>vn(e,t)),j(this,`addDays`,(e,t)=>Vn(e,t)),j(this,`addHours`,(e,t)=>zn(e,t)),j(this,`addMinutes`,(e,t)=>tr(e,t)),j(this,`addSeconds`,(e,t)=>Hn(e,t)),j(this,`getYear`,e=>yn(e)),j(this,`getMonth`,e=>jn(e)),j(this,`getDate`,e=>Tn(e)),j(this,`getHours`,e=>Kn(e)),j(this,`getMinutes`,e=>xn(e)),j(this,`getSeconds`,e=>ir(e)),j(this,`getMilliseconds`,e=>bn(e)),j(this,`setYear`,(e,t)=>er(e,t)),j(this,`setMonth`,(e,t)=>$n(e,t)),j(this,`setDate`,(e,t)=>Yn(e,t)),j(this,`setHours`,(e,t)=>In(e,t)),j(this,`setMinutes`,(e,t)=>Qn(e,t)),j(this,`setSeconds`,(e,t)=>Jn(e,t)),j(this,`setMilliseconds`,(e,t)=>Un(e,t)),j(this,`getDaysInMonth`,e=>Gn(e)),j(this,`getWeekArray`,e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;this.isBefore(i,n);){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a}),j(this,`getWeekNumber`,e=>kn(e,{locale:this.locale})),j(this,`getYearRange`,([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i})}},Jr={"@mui/icons-material":()=>r(()=>import(`./icons-material-Bu1f45BT.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url),"date-fns":()=>r(()=>import(`./date-fns-Bpgjk9P-.js`),__vite__mapDeps([31,32,33,1,2,3,34]),import.meta.url),"date-fns/locale":()=>r(()=>import(`./locale-DN6Bdkdt.js`).then(e=>e.t),__vite__mapDeps([35,2,32,34]),import.meta.url)};function Yr(){sn({name:`iobroker_admin`,shared:{},remotes:[]}),we(Object.fromEntries(Object.entries(Jr).map(([e,t])=>[e,{version:{"@mui/icons-material":`9.5.0`,"date-fns":`4.4.0`,"date-fns/locale":`4.4.0`}[e],scope:`default`,get:async()=>{let e=await t();return()=>e},shareConfig:{singleton:!0,requiredVersion:`*`,eager:!1}}])))}var Xr={version:`8.0.1`},Zr=Le({hostsUpdate:0,adaptersUpdate:0,hosts:null,repository:null,installed:null});function Qr({children:e}){let[t]=L({hostsUpdate:0,adaptersUpdate:0,hosts:null,repository:null,installed:null}),{hosts:n,installed:r,repository:i}=t,a=$t(()=>{var e;if(!n||!i)return 0;let t=(e=i[`js-controller`])==null?void 0:e.version,r=0;return n.forEach(e=>{V.updateAvailable(e.common.installedVersion,t,`js-controller on ${e._id}`)&&r++}),r},[n,i]),o=$t(()=>{if(!r||!i)return 0;let e=0;return Object.keys(r).forEach(t=>{let n=r[t],a=i[t];t!==`js-controller`&&t!==`hosts`&&n!=null&&n.version&&a!=null&&a.version&&n.ignoreVersion!==a.version&&V.updateAvailable(n.version,a.version,`adapter "${t}"`)&&e++}),e},[r,i]),s=$t(()=>({...t,hostsUpdate:a,adaptersUpdate:o}),[t,a,o]);return D(Zr.Provider,{value:s,children:e})}var $r=Le({dragDropManager:void 0});function ei(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var ti=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),ni=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},ri={INIT:`@@redux/INIT`+ni(),REPLACE:`@@redux/REPLACE`+ni(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+ni()}};function ii(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ai(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ei(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ei(1));return n(ai)(e,t)}if(typeof e!=`function`)throw Error(ei(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(ei(3));return a}function d(e){if(typeof e!=`function`)throw Error(ei(4));if(c)throw Error(ei(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(ei(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!ii(e))throw Error(ei(7));if(e.type===void 0)throw Error(ei(8));if(c)throw Error(ei(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(ei(10));i=e,f({type:ri.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(ei(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[ti]=function(){return this},e}return f({type:ri.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[ti]=m,r}function W(e,t,...n){if(oi()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function oi(){return typeof process<`u`&&!0}function si(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function ci(e,t){return e.filter(e=>e!==t)}function li(e){return typeof e==`object`}function ui(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function di(e,t){return e.filter(e=>t.indexOf(e)>-1)}var fi=`dnd-core/INIT_COORDS`,pi=`dnd-core/BEGIN_DRAG`,mi=`dnd-core/PUBLISH_DRAG_SOURCE`,hi=`dnd-core/HOVER`,gi=`dnd-core/DROP`,_i=`dnd-core/END_DRAG`;function vi(e,t){return{type:fi,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var yi={type:fi,payload:{clientOffset:null,sourceClientOffset:null}};function bi(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(vi(i)),xi(t,o,s);let c=wi(t,o);if(c==null){e.dispatch(yi);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Si(a),l=a(c)}e.dispatch(vi(i,l));let u=s.getSource(c).beginDrag(o,c);return u==null?void 0:(Ci(u),s.pinSource(c),{type:pi,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}})}}function xi(e,t,n){W(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){W(n.getSource(e),`Expected sourceIds to be registered.`)})}function Si(e){W(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Ci(e){W(li(e),`Item must be an object.`)}function wi(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ti(e,t,n[t])})}return e}function Di(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();Oi(n),ji(n).forEach((i,a)=>{let o={type:gi,payload:{dropResult:Ei({},t,ki(i,a,r,n))}};e.dispatch(o)})}}function Oi(e){W(e.isDragging(),`Cannot call drop while not dragging.`),W(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function ki(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Ai(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Ai(e){W(e===void 0||li(e),`Drop result must either be an object or undefined.`)}function ji(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Mi(e){return function(){let t=e.getMonitor(),n=e.getRegistry();Ni(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:_i}}}function Ni(e){W(e.isDragging(),`Cannot call endDrag while not dragging.`)}function Pi(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function Fi(e){return function(t,{clientOffset:n}={}){Ii(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return Ri(r,a,i.getItemType()),Li(r,i,a),zi(r,i,a),{type:hi,payload:{targetIds:r,clientOffset:n||null}}}}function Ii(e){W(Array.isArray(e),`Expected targetIds to be an array.`)}function Li(e,t,n){W(t.isDragging(),`Cannot call hover while not dragging.`),W(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];W(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),W(n.getTarget(r),`Expected targetIds to be registered.`)}}function Ri(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];Pi(t.getTargetType(i),n)||e.splice(r,1)}}function zi(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function Bi(e){return function(){if(e.getMonitor().isDragging())return{type:mi}}}function Vi(e){return{beginDrag:bi(e),publishDragSource:Bi(e),hover:Fi(e),drop:Di(e),endDrag:Mi(e)}}var Hi=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=Vi(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function Ui(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Wi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gi(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Wi(Ui(t,r),n)}function Ki(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Wi(t,n)}var qi=[],Ji=[];qi.__IS_NONE__=!0,Ji.__IS_ALL__=!0;function Yi(e,t){return e===qi?!1:e===Ji||t===void 0||di(t,e).length>0}var Xi=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;W(typeof e==`function`,`listener must be a function.`),W(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId;return this.store.subscribe(()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!Yi(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){W(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return W(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return W(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:Pi(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return W(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Pi(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Gi(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return Ki(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},Zi=typeof global<`u`?global:self,Qi=Zi.MutationObserver||Zi.WebKitMutationObserver;function $i(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function ea(e){let t=1,n=new Qi(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}var ta=typeof Qi==`function`?ea:$i,na=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ta(this.flush),this.requestErrorThrow=$i(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},ra=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},ia=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new ra(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},aa=new na,oa=new ia(aa.registerPendingError);function sa(e){aa.enqueueTask(oa.create(e))}var ca=`dnd-core/ADD_SOURCE`,la=`dnd-core/ADD_TARGET`,ua=`dnd-core/REMOVE_SOURCE`,G=`dnd-core/REMOVE_TARGET`;function da(e){return{type:ca,payload:{sourceId:e}}}function fa(e){return{type:la,payload:{targetId:e}}}function pa(e){return{type:ua,payload:{sourceId:e}}}function ma(e){return{type:G,payload:{targetId:e}}}function ha(e){W(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),W(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),W(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function ga(e){W(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),W(typeof e.hover==`function`,`Expected hover to be a function.`),W(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function _a(e,t){t&&Array.isArray(e)?e.forEach(e=>_a(e,!1)):W(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var va;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(va||={});var ya=0;function ba(){return ya++}function xa(e){let t=ba().toString();switch(e){case va.SOURCE:return`S${t}`;case va.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function Sa(e){switch(e[0]){case`S`:return va.SOURCE;case`T`:return va.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function Ca(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var wa=class{addSource(e,t){_a(e),ha(t);let n=this.addHandler(va.SOURCE,e,t);return this.store.dispatch(da(n)),n}addTarget(e,t){_a(e,!0),ga(t);let n=this.addHandler(va.TARGET,e,t);return this.store.dispatch(fa(n)),n}containsHandler(e){return Ca(this.dragSources,e)||Ca(this.dropTargets,e)}getSource(e,t=!1){return W(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return W(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return W(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return W(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return Sa(e)===va.SOURCE}isTargetId(e){return Sa(e)===va.TARGET}removeSource(e){W(this.getSource(e),`Expected an existing source.`),this.store.dispatch(pa(e)),sa(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){W(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(ma(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);W(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){W(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=xa(e);return this.types.set(r,t),e===va.SOURCE?this.dragSources.set(r,n):e===va.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},Ta=(e,t)=>e===t;function Ea(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Da(e,t,n=Ta){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Oa(e=qi,t){switch(t.type){case hi:break;case ca:case la:case G:case ua:return qi;case pi:case mi:case _i:case gi:default:return Ji}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=ui(n,r);if(!(i.length>0||!Da(n,r)))return qi;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function ka(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ka(e,t,n[t])})}return e}var ja={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ma(e=ja,t){let{payload:n}=t;switch(t.type){case fi:case pi:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case hi:return Ea(e.clientOffset,n.clientOffset)?e:Aa({},e,{clientOffset:n.clientOffset});case _i:case gi:return ja;default:return e}}function Na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Na(e,t,n[t])})}return e}var Fa={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ia(e=Fa,t){let{payload:n}=t;switch(t.type){case pi:return Pa({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case mi:return Pa({},e,{isSourcePublic:!0});case hi:return Pa({},e,{targetIds:n.targetIds});case G:return e.targetIds.indexOf(n.targetId)===-1?e:Pa({},e,{targetIds:ci(e.targetIds,n.targetId)});case gi:return Pa({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case _i:return Pa({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function La(e=0,t){switch(t.type){case ca:case la:return e+1;case ua:case G:return e-1;default:return e}}function Ra(e=0){return e+1}function za(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){za(e,t,n[t])})}return e}function Va(e={},t){return{dirtyHandlerIds:Oa(e.dirtyHandlerIds,{type:t.type,payload:Ba({},t.payload,{prevTargetIds:si(e,`dragOperation.targetIds`,[])})}),dragOffset:Ma(e.dragOffset,t),refCount:La(e.refCount,t),dragOperation:Ia(e.dragOperation,t),stateId:Ra(e.stateId)}}function Ha(e,t=void 0,n={},r=!1){let i=Ua(r),a=new Hi(i,new Xi(i,new wa(i))),o=e(a,t,n);return a.receiveBackend(o),a}function Ua(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return ai(Va,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}function Wa(e,t){if(e==null)return{};var n=Ga(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ga(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ka=0,qa=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`),Ja=Ot(function(e){var{children:t}=e;let[n,r]=Ya(Wa(e,[`children`]));return Kt(()=>{if(r){let e=Za();return++Ka,()=>{--Ka===0&&(e[qa]=null)}}},[]),D($r.Provider,{value:n,children:t})});function Ya(e){return`manager`in e?[{dragDropManager:e.manager},!1]:[Xa(e.backend,e.context,e.options,e.debugMode),!e.context]}function Xa(e,t=Za(),n,r){let i=t;return i[qa]||(i[qa]={dragDropManager:Ha(e,t,n,r)}),i[qa]}function Za(){return typeof global<`u`?global:window}var Qa=n(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),$a=typeof window<`u`?St:Kt,eo=e(Qa(),1);function to(e,t,n){let[r,i]=L(()=>t(e)),a=ft(()=>{let a=t(e);(0,eo.default)(r,a)||(i(a),n&&n())},[r,e,n]);return $a(a),[r,a]}function no(e,t,n){let[r,i]=to(e,t,n);return $a(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function ro(e,t,n){return no(t,e||(()=>({})),()=>n.reconnect())}function io(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),$t(()=>typeof e==`function`?e():e,n)}function ao(e){return $t(()=>e.hooks.dragSource(),[e])}function oo(e){return $t(()=>e.hooks.dragPreview(),[e])}var so=!1,co=!1,lo=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){W(!so,`You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return so=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{so=!1}}isDragging(){if(!this.sourceId)return!1;W(!co,`You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return co=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{co=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}},uo=!1,fo=class{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;W(!uo,`You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor`);try{return uo=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{uo=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}};function po(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function mo(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function ho(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function go(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function _o(e){if(typeof e.type==`string`)return;let t=e.type.displayName||e.type.name||`the component`;throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function vo(e){return(t=null,n=null)=>{if(!nt(t)){let r=t;return e(r,n),r}let r=t;return _o(r),xo(r,n?t=>e(t,n):e)}}function yo(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=vo(r);t[n]=()=>e}}),t}function bo(e,t){typeof e==`function`?e(t):e.current=t}function xo(e,t){let n=e.ref;return W(typeof n!=`string`,`Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs`),n?He(e,{ref:e=>{bo(n,e),bo(t,e)}}):He(e,{ref:t})}var So=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){let t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ho(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ho(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&=(this.dragSourceUnsubscribe(),void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=yo({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,go(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,go(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}},Co=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ho(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&=(this.unsubscribeDropTarget(),void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=yo({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,go(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}};function wo(){let{dragDropManager:e}=Ke($r);return W(e!=null,`Expected drag drop context`),e}function To(e,t){let n=wo(),r=$t(()=>new So(n.getBackend()),[n]);return $a(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),$a(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Eo(){let e=wo();return $t(()=>new lo(e),[e])}var Do=class{beginDrag(){let e=this.spec,t=this.monitor,n=null;return n=typeof e.item==`object`?e.item:typeof e.item==`function`?e.item(t):{},n??null}canDrag(){let e=this.spec,t=this.monitor;return typeof e.canDrag==`boolean`?e.canDrag:typeof e.canDrag!=`function`||e.canDrag(t)}isDragging(e,t){let n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}};function Oo(e,t,n){let r=$t(()=>new Do(e,t,n),[t,n]);return Kt(()=>{r.spec=e},[e]),r}function ko(e){return $t(()=>{let t=e.type;return W(t!=null,`spec.type must be defined`),t},[e])}function Ao(e,t,n){let r=wo(),i=Oo(e,t,n),a=ko(e);$a(function(){if(a!=null){let[e,o]=mo(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function jo(e,t){let n=io(e,t);W(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);let r=Eo(),i=To(n.options,n.previewOptions);return Ao(n,r,i),[ro(n.collect,r,i),ao(i),oo(i)]}function Mo(e){let t=wo().getMonitor(),[n,r]=to(t,e);return Kt(()=>t.subscribeToOffsetChange(r)),Kt(()=>t.subscribeToStateChange(r)),n}function No(e){return $t(()=>e.hooks.dropTarget(),[e])}function K(e){let t=wo(),n=$t(()=>new Co(t.getBackend()),[t]);return $a(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Po(){let e=wo();return $t(()=>new fo(e),[e])}function Fo(e){let{accept:t}=e;return $t(()=>(W(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Io=class{canDrop(){let e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}};function Lo(e,t){let n=$t(()=>new Io(e,t),[t]);return Kt(()=>{n.spec=e},[e]),n}function Ro(e,t,n){let r=wo(),i=Lo(e,t),a=Fo(e);$a(function(){let[e,o]=po(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function zo(e,t){let n=io(e,t),r=Po(),i=K(n.options);return Ro(n,r,i),[ro(n.collect,r,i),No(i)]}function Bo(e){let t=null;return()=>(t??=e(),t)}function Vo(e,t){return e.filter(e=>e!==t)}function Ho(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var Uo=class{enter(e){let t=this.entered.length,n=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=Ho(this.entered.filter(n),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Vo(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Wo=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},Go=t({FILE:()=>Ko,HTML:()=>Yo,TEXT:()=>Jo,URL:()=>qo}),Ko=`__NATIVE_FILE__`,qo=`__NATIVE_URL__`,Jo=`__NATIVE_TEXT__`,Yo=`__NATIVE_HTML__`;function Xo(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}var Zo={[Ko]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Yo]:{exposeProperties:{html:(e,t)=>Xo(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[qo]:{exposeProperties:{urls:(e,t)=>Xo(e,t,``).split(`
|
|
3
3
|
`),dataTransfer:e=>e},matchesTypes:[`Url`,`text/uri-list`]},[Jo]:{exposeProperties:{text:(e,t)=>Xo(e,t,``),dataTransfer:e=>e},matchesTypes:[`Text`,`text/plain`]}};function Qo(e,t){let n=Zo[e];if(!n)throw Error(`native type ${e} has no configuration`);let r=new Wo(n);return r.loadDataTransfer(t),r}function $o(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys(Zo).filter(e=>{let n=Zo[e];return n!=null&&n.matchesTypes?n.matchesTypes.some(e=>t.indexOf(e)>-1):!1})[0]||null}var es=Bo(()=>/firefox/i.test(navigator.userAgent)),ts=Bo(()=>!!window.safari),ns=class{interpolate(e){let{xs:t,ys:n,c1s:r,c2s:i,c3s:a}=this,o=t.length-1;if(e===t[o])return n[o];let s=0,c=a.length-1,l;for(;s<=c;){l=Math.floor(.5*(s+c));let r=t[l];if(r<e)s=l+1;else if(r>e)c=l-1;else return n[l]}o=Math.max(0,c);let u=e-t[o],d=u*u;return n[o]+r[o]*u+i[o]*d+a[o]*u*d}constructor(e,t){let{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);let i=[],a=[],o=[],s,c;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],c=t[r+1]-t[r],a.push(s),i.push(c),o.push(c/s);let l=[o[0]];for(let e=0;e<a.length-1;e++){let t=o[e],n=o[e+1];if(t*n<=0)l.push(0);else{s=a[e];let r=a[e+1],i=s+r;l.push(3*i/((i+r)/t+(i+s)/n))}}l.push(o[o.length-1]);let u=[],d=[],f;for(let e=0;e<l.length-1;e++){f=o[e];let t=l[e],n=1/a[e],r=t+l[e+1]-f-f;u.push((f-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=d}},rs=1;function is(e){let t=e.nodeType===rs?e:e.parentElement;if(!t)return null;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function as(e){return{x:e.clientX,y:e.clientY}}function os(e){var t;return e.nodeName===`IMG`&&(es()||!((t=document.documentElement)!=null&&t.contains(e)))}function ss(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return ts()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function cs(e,t,n,r,i){let a=os(t),o=is(a?e:t),s={x:n.x-o.x,y:n.y-o.y},{offsetWidth:c,offsetHeight:l}=e,{anchorX:u,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=ss(a,t,c,l),m=()=>{let e=new ns([0,.5,1],[s.y,s.y/l*p,s.y+p-l]).interpolate(d);return ts()&&a&&(e+=(window.devicePixelRatio-1)*p),e},h=()=>new ns([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(u),{offsetX:g,offsetY:_}=i,v=g===0||g,y=_===0||_;return{x:v?g:h(),y:y?_:m()}}var ls=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<`u`)return window}get document(){var e;if((e=this.globalContext)!=null&&e.document)return this.globalContext.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.optionsArgs)==null?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function us(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ds(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){us(e,t,n[t])})}return e}var fs=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)==null?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)==null?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){let e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw Error(`Cannot have two HTML5 backends at the same time.`);e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){let e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)==null||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);let r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute(`draggable`,`true`),t.addEventListener(`dragstart`,r),t.addEventListener(`selectstart`,i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener(`dragstart`,r),t.removeEventListener(`selectstart`,i),t.setAttribute(`draggable`,`false`)}}connectDropTarget(e,t){let n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener(`dragenter`,n),t.addEventListener(`dragover`,r),t.addEventListener(`drop`,i),()=>{t.removeEventListener(`dragenter`,n),t.removeEventListener(`dragover`,r),t.removeEventListener(`drop`,i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener(`dragstart`,this.handleTopDragStart),e.addEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.addEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.addEventListener(`dragenter`,this.handleTopDragEnter),e.addEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.addEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.addEventListener(`dragover`,this.handleTopDragOver),e.addEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.addEventListener(`drop`,this.handleTopDrop),e.addEventListener(`drop`,this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener(`dragstart`,this.handleTopDragStart),e.removeEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.removeEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.removeEventListener(`dragenter`,this.handleTopDragEnter),e.removeEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.removeEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.removeEventListener(`dragover`,this.handleTopDragOver),e.removeEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.removeEventListener(`drop`,this.handleTopDrop),e.removeEventListener(`drop`,this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){let e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return ds({dropEffect:this.altKeyPressed?`copy`:`move`},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?`copy`:this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();return ds({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(Go).some(t=>Go[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Qo(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return(e=this.rootElement)==null?void 0:e.addEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)==null||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||=[],this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&is(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>!!(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{let e=this.currentDragSourceNode;e==null||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{this.hoverRafId===null&&typeof requestAnimationFrame<`u`&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<`u`&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;let{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;let n=as(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});let{dataTransfer:r}=e,i=$o(r);if(this.monitor.isDragging()){if(r&&typeof r.setDragImage==`function`){let e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){let{anchorX:e,anchorY:a,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=cs(t,i,n,{anchorX:e,anchorY:a},{offsetX:o,offsetY:s});r.setDragImage(i,c.x,c.y)}}try{r==null||r.setData(`application/json`,{})}catch{}this.setCurrentDragSourceNode(e.target);let{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute(`draggable`)))return;else e.preventDefault()},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;let{dataTransfer:n}=e,r=$o(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{let{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:as(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}},this.handleTopDragOver=e=>{let{dragOverTargetIds:t}=this;this.dragOverTargetIds=[],this.monitor.isDragging()?(this.altKeyPressed=e.altKey,this.lastClientOffset=as(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`))):(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var t;e.preventDefault(),(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}else $o(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:as(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{let t=e.target;typeof t.dragDrop==`function`&&(t.tagName===`INPUT`||t.tagName===`SELECT`||t.tagName===`TEXTAREA`||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new ls(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Uo(this.isNodeInDocument)}},ps;function ms(){return ps||(ps=new Image,ps.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`),ps}var hs=function(e,t,n){return new fs(e,t,n)},gs;(function(e){e.mouse=`mouse`,e.touch=`touch`,e.keyboard=`keyboard`})(gs||={});var _s=class{get delay(){return this.args.delay??0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){return this.args.ignoreContextMenu??!1}get enableHoverOutsideTarget(){return this.args.enableHoverOutsideTarget??!1}get enableKeyboardEvents(){return this.args.enableKeyboardEvents??!1}get enableMouseEvents(){return this.args.enableMouseEvents??!1}get enableTouchEvents(){return this.args.enableTouchEvents??!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,t;return((e=this.args)==null?void 0:e.delayTouchStart)??((t=this.args)==null?void 0:t.delay)??0}get delayMouseStart(){var e,t;return((e=this.args)==null?void 0:e.delayMouseStart)??((t=this.args)==null?void 0:t.delay)??0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<`u`)return window}get document(){var e;if((e=this.context)!=null&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)==null?void 0:e.rootElement)||this.document}constructor(e,t){this.args=e,this.context=t}};function vs(e,t,n,r){return Math.sqrt(Math.abs(n-e)**2+Math.abs(r-t)**2)}function ys(e,t,n,r,i){if(!i)return!1;let a=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let e=0;e<i.length;++e){let t=i[e];if(t&&(t.start==null||a>=t.start)&&(t.end==null||a<=t.end))return!0}return!1}var bs={Left:1,Right:2,Center:4},xs={Left:0,Center:1,Right:2};function Ss(e){return e.button===void 0||e.button===xs.Left}function Cs(e){return e.buttons===void 0||(e.buttons&bs.Left)===0}function ws(e){return!!e.targetTouches}var Ts=1;function Es(e){let t=e.nodeType===Ts?e:e.parentElement;if(!t)return;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Ds(e,t){if(e.targetTouches.length===1)return Os(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Os(e.touches[0])}function Os(e,t){return ws(e)?Ds(e,t):{x:e.clientX,y:e.clientY}}var ks=(()=>{let e=!1;try{addEventListener(`test`,()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),As={[gs.mouse]:{start:`mousedown`,move:`mousemove`,end:`mouseup`,contextmenu:`contextmenu`},[gs.touch]:{start:`touchstart`,move:`touchmove`,end:`touchend`},[gs.keyboard]:{keydown:`keydown`}},js=class e{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)==null?void 0:e.length)||0}}get document(){return this.options.document}setup(){let t=this.options.rootElement;t&&(W(!e.isSetUp,`Cannot have two Touch backends at the same time.`),e.isSetUp=!0,this.addEventListener(t,`start`,this.getTopMoveStartHandler()),this.addEventListener(t,`start`,this.handleTopMoveStartCapture,!0),this.addEventListener(t,`move`,this.handleTopMove),this.addEventListener(t,`move`,this.handleTopMoveCapture,!0),this.addEventListener(t,`end`,this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,`contextmenu`,this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,`keydown`,this.handleCancelOnEscape,!0))}teardown(){let t=this.options.rootElement;t&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,`start`,this.handleTopMoveStartCapture,!0),this.removeEventListener(t,`start`,this.handleTopMoveStart),this.removeEventListener(t,`move`,this.handleTopMoveCapture,!0),this.removeEventListener(t,`move`,this.handleTopMove),this.removeEventListener(t,`end`,this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,`contextmenu`,this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,`keydown`,this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,t,n,r=!1){let i=ks?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){let a=As[r][t];a&&e.addEventListener(a,n,i)})}removeEventListener(e,t,n,r=!1){let i=ks?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){let a=As[r][t];a&&e.removeEventListener(a,n,i)})}connectDragSource(e,t){let n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,`start`,n),()=>{this.sourceNodes.delete(e),this.removeEventListener(t,`start`,n)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,t){let n=this.options.rootElement;if(!this.document||!n)return()=>{};let r=r=>{if(!this.document||!n||!this.monitor.isDragging())return;let i;switch(r.type){case As.mouse.move:i={x:r.clientX,y:r.clientY};break;case As.touch.move:var a,o;i={x:((a=r.touches[0])==null?void 0:a.clientX)||0,y:((o=r.touches[0])==null?void 0:o.clientY)||0}}let s=i==null?void 0:this.document.elementFromPoint(i.x,i.y),c=s&&t.contains(s);if(s===t||c)return this.handleMove(r,e)};return this.addEventListener(this.document.body,`move`,r),this.targetNodes.set(e,t),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,`move`,r))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display=`none`,this.draggedSourceNode.removeAttribute(`data-reactid`),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,t,n){this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&Es(t)},this.handleTopMoveStartCapture=e=>{Ss(e)&&(this.moveStartSourceIds=[])},this.handleMoveStart=e=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=e=>{if(!Ss(e))return;let t=Os(e);t&&(ws(e)&&(this.lastTargetTouchFallback=e.targetTouches[0]),this._mouseClientOffset=t),this.waitingForDelay=!1},this.handleTopMoveStartDelay=e=>{if(!Ss(e))return;let t=e.type===As.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,e),t),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(e,t)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(t)},this.handleTopMove=e=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;let{moveStartSourceIds:t,dragOverTargetIds:n}=this,r=this.options.enableHoverOutsideTarget,i=Os(e,this.lastTargetTouchFallback);if(!i)return;if(this._isScrolling||!this.monitor.isDragging()&&ys(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,i.x,i.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty(`x`)&&t&&vs(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,i.x,i.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(t,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;let a=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(a),this.actions.publishDragSource(),e.cancelable&&e.preventDefault();let o=(n||[]).map(e=>this.targetNodes.get(e)).filter(e=>!!e),s=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(i.x,i.y,o):this.document.elementsFromPoint(i.x,i.y),c=[];for(let e in s){if(!s.hasOwnProperty(e))continue;let t=s[e];for(t!=null&&c.push(t);t;)t=t.parentElement,t&&c.indexOf(t)===-1&&c.push(t)}let l=c.filter(e=>o.indexOf(e)>-1).map(e=>this._getDropTargetId(e)).filter(e=>!!e).filter((e,t,n)=>n.indexOf(e)===t);if(r)for(let e in this.targetNodes){let t=this.targetNodes.get(e);if(a&&t&&t.contains(a)&&l.indexOf(e)===-1){l.unshift(e);break}}l.reverse(),this.actions.hover(l,{clientOffset:i})},this._getDropTargetId=e=>{let t=this.targetNodes.keys(),n=t.next();for(;n.done===!1;){let r=n.value;if(e===this.targetNodes.get(r))return r;n=t.next()}},this.handleTopMoveEndCapture=e=>{this._isScrolling=!1,this.lastTargetTouchFallback=void 0,Cs(e)&&(!this.monitor.isDragging()||this.monitor.didDrop()?this.moveStartSourceIds=void 0:(e.cancelable&&e.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()))},this.handleCancelOnEscape=e=>{e.key===`Escape`&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new _s(n,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(gs.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(gs.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(gs.keyboard)}},Ms=function(e,t={},n={}){return new js(e,t,n)};x();var Ns={message:{position:`relative`,display:`block`,width:`100%`},offline:{position:`relative`,justifyContent:`space-between`,display:`flex`,width:`100%`,alignItems:`center`,opacity:.7,"@media screen and (max-width: 550px)":{flexWrap:`wrap`}},timestamp:{color:`text.secondary`,position:`absolute`,top:5,right:25,"@media screen and (max-width: 550px)":{fontSize:`2.9vw`}},simpleMessage:{fontFamily:`monospace`,fontSize:14,ml:`20px`,mb:`10px`,width:`100%`,display:`block`,whiteSpace:`pre-wrap`,"@media screen and (max-width: 550px)":{fontSize:`2.9vw`,ml:0}}},Ps={alert:0,notify:1,info:2};function Fs(e){return e===`notify`||e===`info`?e:`alert`}function Is(e,t){return Ps[Fs(e)]-Ps[Fs(t)]}var Ls=class extends z{constructor(e){super(e),j(this,`lastAlive`,0),j(this,`onAliveChanged`,(e,t)=>{if(e===`${this.props.instanceId}.alive`&&t&&this.state.alive!==!!t.val){if(t.val){if(this.lastAlive&&Date.now()-this.lastAlive<500)return;this.lastAlive=Date.now()}this.setState({alive:!!t.val},()=>this.getGui())}}),this.state={alive:!1,data:{},schema:null,updateData:0}}async componentDidMount(){var e;if((e=this.props.message.contextData)!=null&&(e=e.admin)!=null&&e.notification){let e=await this.props.socket.getState(`${this.props.instanceId}.alive`);this.lastAlive=e!=null&&e.val?Date.now():0,this.setState({alive:!!(e!=null&&e.val)},()=>this.getGui()),await this.props.socket.subscribeState(`${this.props.instanceId}.alive`,this.onAliveChanged)}}getGui(){var e;if(this.state.alive&&(e=this.props.message.contextData)!=null&&(e=e.admin)!=null&&e.notification){var t;let e=JSON.parse(JSON.stringify((t=this.props.message.contextData)==null||(t=t.admin)==null?void 0:t.notification));e.offlineMessage&&delete e.offlineMessage,this.props.socket.sendTo(this.props.instanceId.replace(`system.adapter.`,``),`admin:getNotificationSchema`,e).then(e=>{e&&this.setState({schema:e.schema,data:e.data||this.state.data,updateData:this.state.updateData+1})})}}renderCustomGui(){if(!this.state.schema||!this.state.data||!this.state.alive){var e;let t=(e=this.props.message.contextData)==null||(e=e.admin)==null?void 0:e.notification;if(t){if(!this.state.alive){let e=t.offlineMessage;if(e){let t=typeof e==`string`?e:e[this.props.socket.systemLang]||e.en;return D(N,{sx:Ns.offline,children:T.renderTextWithA(t)})}return D(F,{children:A.t(`Instance is not alive`)})}return D(We,{})}return null}let[,,t,n]=this.props.instanceId.split(`.`);return M(Me,{children:[this.state.error&&D(`div`,{style:{color:`red`},children:this.state.error}),D(le,{style:{width:`100%`},updateData:this.state.updateData,socket:this.props.socket,adapterName:t,instance:parseInt(n,10),schema:this.state.schema,data:this.state.data,onError:e=>this.setState({error:e}),onChange:e=>this.setState({data:e||{}}),onBackEndCommand:e=>{e&&(e.schema&&this.setState({schema:e.schema,data:e.data||this.state.data}),(e.command===`refresh`||e.refresh)&&this.getGui(),e.command===`link`&&this.props.onLink(e))},embedded:!0,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,isFloatComma:this.props.isFloatComma,dateFormat:this.props.dateFormat,AceEditor:ur})]})}renderSimpleMessage(){return this.props.message.message?D(N,{sx:Ns.simpleMessage,children:T.renderTextWithA(this.props.message.message)}):null}render(){return M(F,{component:`div`,sx:Ns.message,children:[D(N,{sx:Ns.timestamp,children:new Date(this.props.message.ts).toLocaleString()}),this.renderSimpleMessage(),this.renderCustomGui()]})}},Rs={root:e=>({backgroundColor:e.palette.background.paper,width:`100%`,height:`auto`,display:`flex`,borderRadius:`4px`,flexDirection:`column`}),paper:{maxWidth:1e3,width:`100%`},flex:{display:`flex`},overflowHidden:{overflow:`hidden`},overflowAuto:{overflowY:`auto`},column:{flexDirection:`column`},headerText:e=>({fontWeight:`bold`,fontSize:20,color:e.palette.mode===`dark`?`#DDD`:`#111`}),descriptionHeaderText:e=>({margin:`18px 0`,color:e.palette.mode===`dark`?`#CCC`:`#222`}),button:{paddingTop:5,paddingBottom:5,position:`sticky`,bottom:0,zIndex:3},img2:{width:25,height:25,margin:`auto 0`,mr:`10px`,position:`relative`,"&:after":{content:`""`,position:`absolute`,zIndex:2,top:0,left:0,width:`100%`,height:`100%`,background:`url("img/no-image.svg") 100% 100% no-repeat`,backgroundSize:`cover`,backgroundColor:`#fff`}},heading:{display:`flex`,alignItems:`center`,overflow:`hidden`,width:`100%`},headingTop:{display:`flex`,alignItems:`center`},classNameBox:{p:`8px`,"@media screen and (max-width: 550px)":{p:`4px`}},textStyle:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"@media screen and (max-width: 550px)":{fontSize:`2.9vw`}},content:{overflow:`hidden`},buttonStyle:{m:`3px`,"@media screen and (max-width: 550px)":{fontSize:`2.9vw`}}};function zs({severity:e,isDark:t,...n}){return e=Fs(e),e===`notify`?D(Mr,{color:t?`primary`:`secondary`,...n}):e===`info`?D(Zt,{color:`info`,...n}):D(qt,{style:{color:`#ffca00`},...n})}function Bs(e){return{id:`scrollable-force-tab-${e}`,"aria-controls":`scrollable-force-tabpanel-${e}`}}var Vs=({children:e,index:t,sxBox:n,style:r})=>D(`div`,{role:`tabpanel`,id:`scrollable-force-tabpanel-${t}`,"aria-labelledby":`scrollable-force-tab-${t}`,style:r,children:D(N,{sx:n,children:D(F,{component:`div`,children:e})})});function Hs(e,t=``){return e?typeof e==`string`?e:e[A.getLanguage()]||e.en||t:t}function Us(e,t,n){let r,i=``;e.url?e.url.toString().startsWith(`#`)||e.url.toString().startsWith(`/`)?(r=e.target||`_self`,i=e.url):e.url.startsWith(`http://`)||e.url.startsWith(`https://`)?(r=e.target||`_blank`,i=e.url):(i=`#tab-instances/config/${t}/${e.url}`,r=e.target||`_self`):(i=`#tab-instances/config/${t}`,r=e.target||`_self`),r===`_self`?(setTimeout(e=>{e.startsWith(`#`)?window.location.hash=e:e.startsWith(`/`)?i=`${window.location.protocol}:${window.location.host}${i}`:(e.startsWith(`http://`)||e.startsWith(`https://`))&&(window.location.href=e)},100,i),e.close&&typeof n==`function`&&n()):(i.startsWith(`#`)?i=`${window.location.protocol}:${window.location.host}${window.location.pathname}${i}`:i.startsWith(`/`)&&(i=`${window.location.protocol}:${window.location.host}${i}`),window.open(i,r))}var Ws=({notifications:e,onClose:t,ackCallback:n,dateFormat:r,themeType:a,instances:o,themeName:s,theme:c,isFloatComma:u,socket:d})=>{let[f,p]=L(``),[m,h]=L([]),[g,_]=L(``),[v,y]=L(!0),b=(e,t)=>{y(!0),p(t),_(``)},x=e=>(t,n)=>_(n?e:``),ee=a===`dark`,S=!!Object.values(o).find(e=>e.common.name===`notification-manager`),w=$t(()=>{let t={};for(let[n,r]of Object.entries(e))for(let[e,i]of Object.entries(r.result))if(e!==`system`)for(let[r,a]of Object.entries(i.categories))t[e]=t[e]||{},t[e][r]={...a,host:n};return t},[e]),T=$t(()=>Object.keys(w).flatMap(e=>Object.keys(w[e]).map(t=>({scope:e,name:t,entry:w[e][t]}))).sort((e,t)=>Is(e.entry.severity,t.entry.severity)),[w]),E=T.length?`${T[0].scope}--${T[0].name}`:``,te=f;if(!te)te=E;else{let[e,t]=te.split(`--`);if(!w[e])te=E;else if(!w[e][t]){let t=Object.keys(w[e])[0];te=t?`${e}--${t}`:E}}let[ne,re]=te.split(`--`),O=ne&&re?`${ne}--${re}`:``,ae=ne&&re?w[ne][re]:null;return M(vt,{onClose:()=>t(),open:!0,sx:{"& .MuiDialog-paper":Rs.paper},children:[M(`h2`,{style:Rs.headingTop,children:[D(Mr,{sx:{color:`primary.main`},style:{fontSize:36,marginLeft:25,marginRight:10}}),A.t(`Notifications`),S?null:D(Tt,{sx:{position:`absolute`,right:24,color:`text.primary`},title:A.t(`Tip: Use the "notification-manager" adapter to receive notifications automatically via messaging adapters.`),slotProps:{popper:{sx:{pointerEvents:`none`}}},children:D(Zt,{})})]}),D(pe,{style:{...Rs.flex,...Rs.overflowHidden},dividers:!0,children:M(N,{component:`div`,sx:Rs.root,children:[D(qe,{position:`static`,color:`default`,children:D($e,{value:te,onChange:b,variant:`scrollable`,scrollButtons:!0,indicatorColor:ee?`primary`:`secondary`,textColor:ee?`primary`:`secondary`,children:T.map(({scope:e,name:t,entry:n},r)=>{let a=`${e}--${t}`;return D(i,{disabled:m.includes(a),value:a,label:Hs(n.name,t),icon:D(zs,{severity:n.severity,isDark:ee}),...Bs(r)},a)})})}),ae?M(Vs,{sxBox:Rs.classNameBox,style:{...Rs.overflowAuto,color:ee?`black`:void 0},index:te,children:[D(N,{component:`div`,sx:Rs.headerText,style:{fontWeight:`bold`},children:Hs(ae.name,re)}),D(N,{component:`div`,sx:Rs.descriptionHeaderText,children:Hs(ae.description)}),D(`div`,{children:ae.instances?Object.keys(ae.instances).map(e=>{let n=`${te}--${e}`;v&&(x(n)(``,!0),y(!1));let i=o&&o[e],f=i&&un(i)||`img/no-image.svg`;return M(ie,{style:ee?void 0:{backgroundColor:`#c0c0c052`},expanded:g===n,onChange:x(n),children:[D(ce,{expandIcon:D(l,{}),sx:{"& .MuiAccordionSummary-content":Rs.content},"aria-controls":`panel1bh-content`,id:`panel1bh-header`,children:M(F,{style:Rs.heading,children:[D(Oe,{sx:Rs.img2,component:`img`,image:f}),D(N,{component:`div`,sx:Rs.textStyle,style:{marginLeft:8},children:e.replace(/^system\.adapter\./,``)})]})}),D(xt,{style:Rs.column,children:ae.instances[e].messages.map((n,i)=>D(Ls,{message:n,dateFormat:r,instanceId:e,socket:d,themeType:a,themeName:s,theme:c,isFloatComma:u,onLink:n=>Us(n,e,t)},i))})]},n)}):null})]},`tabPanel-${re}`):null]})}),M(ue,{children:[ne&&re?D(P,{variant:`contained`,autoFocus:Object.keys(w[ne]).length!==1,disabled:m.includes(O),style:m.includes(O)?{backgroundColor:`silver`}:void 0,sx:Rs.buttonStyle,onClick:e=>{e.stopPropagation(),n(w[ne][re].host,re),h([...m,O])},color:Object.keys(w[ne]).length===1?`grey`:`primary`,startIcon:D(C,{}),children:A.t(`Acknowledge`)}):null,ne&&re&&Object.keys(w[ne]).length===1&&D(P,{variant:`contained`,disabled:m.includes(O),sx:Rs.buttonStyle,style:m.includes(O)?{backgroundColor:`silver`}:void 0,onClick:e=>{e.stopPropagation(),h([...m,O]),n(w[ne][re].host,re),t()},startIcon:M(Me,{children:[D(C,{}),D(Rt,{})]}),color:`primary`,children:A.t(`Acknowledge & close`)}),D(`div`,{style:{flexGrow:1}}),D(P,{id:`notifications-dialog-close`,variant:`contained`,onClick:e=>{e.stopPropagation(),t()},startIcon:D(Rt,{}),color:`grey`,children:A.t(`Close`)})]})]})};x();var Gs={log:{height:400,width:860,padding:8,overflowY:`auto`},logNoSpacing:{height:`100%`,width:`calc(100% - 8px)`,marginLeft:8,padding:8,overflowY:`auto`},error:{color:`#f44336`},info:{color:`#2196f3`},warn:{color:`#ffc107`}},Ks=class e extends z{constructor(t){super(t),j(this,`logRef`,void 0),j(this,`regExp`,void 0),this.state={log:[`$ iobroker ${t.cmd||``}`],init:!1,max:null,value:null,moreChecked:!0,stopped:!1},this.logRef=Bt.createRef(),this.regExp=new RegExp(e.pattern.join(`|`),`i`)}componentDidMount(){this.props.ready&&this.props.cmd&&(console.log(`STARTED: ${this.props.cmd}`),this.executeCommand())}componentDidUpdate(){var e;!this.state.init&&this.props.ready&&this.props.cmd&&this.executeCommand(),this.props.logsRead&&JSON.stringify(this.props.logsRead)!==JSON.stringify(this.state.log)&&this.setState({log:this.props.logsRead}),(e=this.logRef.current)==null||e.scrollIntoView()}executeCommand(){var e;this.setState({init:!0},()=>this.props.onSetCommandRunning&&this.props.onSetCommandRunning(!0)),this.props.socket.registerCmdStdoutHandler((e,t)=>this.cmdStdoutHandler(e,t)),this.props.socket.registerCmdStderrHandler((e,t)=>this.cmdStderrHandler(e,t)),this.props.socket.registerCmdExitHandler((e,t)=>this.cmdExitHandler(e,t));let t=Math.floor(Math.random()*268435454)+1;this.setState({activeCmdId:t});let n=this.props.host.startsWith(`system.host.`)?this.props.host:`system.host.${this.props.host}`;this.props.socket.cmdExec.bind(this.props.socket)(n,this.props.cmd,t,void 0,(e=this.props.files)!=null&&e.length?this.props.files:void 0).catch(e=>console.log(e))}cmdStdoutHandler(e,t){if(this.state.activeCmdId&&this.state.activeCmdId===e){let e=this.state.log.slice();e.push(t);let n=t.match(/^upload \[(\d+)]/),r=n?null:t.match(/^got [-_:/\\.\w\d]+\/admin$/),i=r?null:t.match(/^got [-_:/\\.\w\d]+\/www$/),a=this.state.max,o=null;n?(a||=parseInt(n[1],10),o=parseInt(n[1],10)):(r||i)&&(a=null),this.setState({log:e,max:a,value:o}),console.log(`cmdStdout`)}}cmdStderrHandler(e,t){if(this.state.activeCmdId&&this.state.activeCmdId===e){let n=this.state.log.slice();n.push(t),this.setState({log:n}),console.log(`cmdStderr`),console.log(e),console.log(t)}}cmdExitHandler(e,t){if(this.state.activeCmdId&&this.state.activeCmdId===e){let n=this.state.log.slice();if(!window.document.hidden&&t===0&&n.length&&n[n.length-1].endsWith(`created`)&&this.props.callback){let e=n[n.length-1].split(` `).find(e=>e.startsWith(`system`));e&&setTimeout(e=>{this.props.socket.getObject(e).then(t=>{var n;V.fixAdminUI(t),t&&((n=t.common)==null||(n=n.adminUI)==null?void 0:n.config)!==`none`&&yt.doNavigate(`tab-instances`,`config`,e)})},1e3,e)}n.push(`${t===0?``:`ERROR: `}Process exited with code ${t}`),this.setState({log:n,stopped:!0},()=>{this.props.onSetCommandRunning&&this.props.onSetCommandRunning(!1),t!==0||this.state.log[this.state.log.length-1].toLowerCase().includes(`error`)?this.props.errorFunc&&this.props.errorFunc(t,this.state.log):(this.props.performed&&this.props.performed(),this.props.onFinished(t,this.state.log)),console.log(`cmdExit`),console.log(e),console.log(t),typeof this.props.callback==`function`&&this.props.callback(t)})}}colorize(e,t){t&&(e=e.substring(0,t));let n=V.parseColorMessage(e);if(typeof n==`object`)return n.parts.map((e,t)=>D(`span`,{style:e.style,children:e.text},t));if(e.search(this.regExp)!==-1){let t=[];for(;e.search(this.regExp)>=0;){let[n]=e.match(this.regExp)||[``],r=e.search(this.regExp);if(r>0){let n=e.substring(0,r),i=V.parseColorMessage(n);t.push(D(`span`,{children:typeof i==`object`?i.parts.map((e,t)=>D(`span`,{style:e.style,children:e.text},t)):i},t.length)),e=e.replace(n,``)}let i=e.substring(0,n.length);if(i){let r=V.parseColorMessage(i);t.push(D(`span`,{style:Gs[n.toLowerCase()],children:typeof r==`object`?r.parts.map((e,t)=>D(`span`,{style:e.style,children:e.text},t)):r},t.length)),e=e.replace(i,``)}}if(e){let n=V.parseColorMessage(e);t.push(D(`span`,{children:typeof n==`object`?n.parts.map((e,t)=>D(`span`,{style:e.style,children:e.text},t)):n},t.length))}return t}return e}getLog(){return this.state.log.map((e,t)=>{let n=e.startsWith(`$ `);return D(F,{ref:t===this.state.log.length-1?this.logRef:void 0,component:`p`,variant:`body2`,sx:n?e=>({fontWeight:`bold`,backgroundColor:e.palette.mode===`dark`?`rgba(255, 255, 255, 0.08)`:`rgba(0, 0, 0, 0.06)`,borderRadius:`4px`,py:`2px`,px:`6px`,mx:`-6px`,mb:`6px`}):void 0,children:this.colorize(e)},t)})}render(){return M(w,{style:this.props.noSpacing?{height:`100%`,width:`100%`}:{},container:!0,spacing:this.props.noSpacing?0:2,sx:{flexDirection:`column`},children:[this.props.showElement===void 0||this.props.showElement===!0?D(w,{children:!this.state.stopped&&D(We,{style:this.props.commandError?{backgroundColor:`#f44336`}:void 0,variant:this.props.inBackground?`determinate`:`indeterminate`,value:this.state.max&&this.state.value?100-Math.round(this.state.value/this.state.max*100):this.props.commandError?0:100})}):null,M(`div`,{style:{width:`100%`,display:`flex`,alignItems:`center`,justifyContent:this.props.inBackground?`space-between`:`flex-end`},children:[D(F,{style:this.props.inBackground?{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}:{display:`none`},component:`div`,children:this.colorize(this.state.log[this.state.log.length-1])}),this.props.showElement===void 0||this.props.showElement===!0?M(`div`,{style:{display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`end`,gap:8,flexWrap:`nowrap`},children:[D(N,{style:{whiteSpace:`nowrap`},sx:{"@media (max-width: 600px)":{display:`none`}},children:this.props.t(`less output`)}),D(be,{checked:this.state.moreChecked,onChange:e=>this.setState({moreChecked:e.target.checked}),color:`primary`}),D(N,{style:{whiteSpace:`nowrap`},sx:{"@media (max-width: 600px)":{display:`none`}},children:this.props.t(`more output`)})]}):null]}),D(w,{style:this.props.noSpacing?{height:`calc(100% - 45px)`,width:`100%`}:{},children:this.state.moreChecked&&D(en,{style:this.props.noSpacing?Gs.logNoSpacing:Gs.log,children:this.getLog()})})]})}};j(Ks,`pattern`,[`error`,`warn`,`info`]),x();var qs={closeButton:e=>({position:`absolute`,right:8,top:8,color:e.palette.grey[500]}),hiddenDialog:{display:`none`},dialogRoot:{height:`calc(100% - 64px)`}},Js=class extends z{constructor(e){super(e),j(this,`paperRef`,Bt.createRef()),j(this,`handleResize`,()=>{this.paperRef.current&&(this.paperRef.current.offsetWidth||0)!==this.state.dialogWidth&&this.setState({dialogWidth:this.paperRef.current.offsetWidth||0})}),this.state={progressText:``,isError:!1,closeOnReady:(window._localStorage||window.localStorage).getItem(`CommandDialog.closeOnReady`)===`true`,dialogWidth:0}}componentDidMount(){window.addEventListener(`resize`,this.handleResize)}componentWillUnmount(){window.removeEventListener(`resize`,this.handleResize)}componentDidUpdate(){var e;if(this.state.dialogWidth!==(((e=this.paperRef.current)==null?void 0:e.offsetWidth)||0)){var t;this.setState({dialogWidth:((t=this.paperRef.current)==null?void 0:t.offsetWidth)||0})}}render(){return M(vt,{scroll:`paper`,fullWidth:!0,sx:{"&.MuiDialog-root":this.props.visible?void 0:qs.hiddenDialog,"& .MuiDialog-paper":qs.dialogRoot},onClose:this.props.inBackground?this.props.onClose:this.props.onInBackground,open:!0,maxWidth:`md`,ref:this.paperRef,children:[M(S,{children:[this.state.progressText||this.props.t(`Running command`),D(R,{size:`large`,sx:qs.closeButton,onClick:this.props.onClose,disabled:this.props.inBackground,children:D(Rt,{})})]}),D(pe,{dividers:!0,style:{height:`100%`},children:D(Ks,{noSpacing:!0,ready:this.props.ready,host:this.props.host,socket:this.props.socket,t:this.props.t,inBackground:this.props.inBackground,commandError:this.props.commandError,errorFunc:()=>{this.setState({isError:!0}),this.props.errorFunc()},performed:this.props.performed,callback:this.props.callback,cmd:this.props.cmd,files:this.props.files,onFinished:()=>this.state.closeOnReady&&this.props.onClose(),onSetCommandRunning:e=>this.props.onSetCommandRunning(e)},`command`)}),M(ue,{style:{justifyContent:`space-between`,gap:8},children:[D(E,{style:{marginLeft:16},control:D(y,{disabled:this.props.inBackground,checked:this.state.closeOnReady,onChange:e=>{this.setState({closeOnReady:e.target.checked}),(window._localStorage||window.localStorage).setItem(`CommandDialog.closeOnReady`,e.target.checked?`true`:`false`)}}),label:this.props.t(`close on ready`)}),D(`div`,{style:{flexGrow:1}}),D(P,{variant:`contained`,autoFocus:!0,title:this.props.confirmText||this.props.t(`In background`),disabled:this.props.inBackground,onClick:this.props.onInBackground,startIcon:this.state.dialogWidth>600?D(Nr,{}):null,color:`primary`,children:this.state.dialogWidth<=600?D(Nr,{}):this.props.confirmText||this.props.t(`In background`)}),D(P,{variant:`contained`,disabled:!this.props.inBackground,onClick:this.props.onClose,color:`grey`,style:{backgroundColor:this.state.isError?`#834141`:void 0,color:this.state.isError?`#fff`:void 0},startIcon:this.state.dialogWidth>600?D(Rt,{}):null,children:this.state.dialogWidth<=600?D(Rt,{}):this.props.t(`Close`)})]})]})}};function Ys(e,t){if(!e||t===void 0)return null;typeof t!=`object`&&(t=t.split(`.`));let n=t.shift(),r=n===void 0?void 0:e[n];return t.length?typeof r==`object`?Ys(r,t):null:r}function Xs(e){let{config:t,children:n,name:r,value:i}=e;return i===void 0?!t||Ys(t,r)!==!1?n:null:i===!1?null:n}var Zs=e(n(((e,t,n)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,ee=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,D=`[object DOMException]`,te=`[object Error]`,ne=`[object Function]`,re=`[object GeneratorFunction]`,ie=`[object Map]`,O=`[object Number]`,ae=`[object Null]`,oe=`[object Object]`,se=`[object Promise]`,ce=`[object Proxy]`,le=`[object RegExp]`,ue=`[object Set]`,de=`[object String]`,fe=`[object Symbol]`,pe=`[object Undefined]`,me=`[object WeakMap]`,he=`[object WeakSet]`,ge=`[object ArrayBuffer]`,_e=`[object DataView]`,ve=`[object Float32Array]`,ye=`[object Float64Array]`,be=`[object Int8Array]`,xe=`[object Int16Array]`,k=`[object Int32Array]`,Se=`[object Uint8Array]`,Ce=`[object Uint8ClampedArray]`,we=`[object Uint16Array]`,Te=`[object Uint32Array]`,Ee=/\b__p \+= '';/g,De=/\b(__p \+=) '' \+/g,Oe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,A=/&(?:amp|lt|gt|quot|#39);/g,j=/[&<>"']/g,ke=RegExp(A.source),Ae=RegExp(j.source),M=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ie.source),Re=/^\s+/,ze=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ve=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/[()=,{}\[\]\/\s]/,N=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,P=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,$e=/['\n\r\u2028\u2029\\]/g,et=`\\ud800-\\udfff`,tt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,nt=`\\u2700-\\u27bf`,rt=`a-z\\xdf-\\xf6\\xf8-\\xff`,it=`\\xac\\xb1\\xd7\\xf7`,at=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,ot=`\\u2000-\\u206f`,st=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,ct=`A-Z\\xc0-\\xd6\\xd8-\\xde`,lt=`\\ufe0e\\ufe0f`,ut=it+at+ot+st,F=`['’]`,dt=`[`+et+`]`,ft=`[`+ut+`]`,pt=`[`+tt+`]`,mt=`\\d+`,ht=`[`+nt+`]`,gt=`[`+rt+`]`,_t=`[^`+et+ut+mt+nt+rt+ct+`]`,vt=`\\ud83c[\\udffb-\\udfff]`,yt=`(?:`+pt+`|`+vt+`)`,bt=`[^`+et+`]`,xt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,St=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Ct=`[`+ct+`]`,wt=`\\u200d`,Tt=`(?:`+gt+`|`+_t+`)`,Et=`(?:`+Ct+`|`+_t+`)`,Dt=`(?:`+F+`(?:d|ll|m|re|s|t|ve))?`,Ot=`(?:`+F+`(?:D|LL|M|RE|S|T|VE))?`,kt=yt+`?`,I=`[`+lt+`]?`,At=`(?:`+wt+`(?:`+[bt,xt,St].join(`|`)+`)`+I+kt+`)*`,jt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Mt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Nt=I+kt+At,Pt=`(?:`+[ht,xt,St].join(`|`)+`)`+Nt,Ft=`(?:`+[bt+pt+`?`,pt,xt,St,dt].join(`|`)+`)`,L=RegExp(F,`g`),It=RegExp(pt,`g`),Lt=RegExp(vt+`(?=`+vt+`)|`+Ft+Nt,`g`),Rt=RegExp([Ct+`?`+gt+`+`+Dt+`(?=`+[ft,Ct,`$`].join(`|`)+`)`,Et+`+`+Ot+`(?=`+[ft,Ct+Tt,`$`].join(`|`)+`)`,Ct+`?`+Tt+`+`+Dt,Ct+`+`+Ot,Mt,jt,mt,Pt].join(`|`),`g`),zt=RegExp(`[`+wt+et+tt+lt+`]`),R=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Vt=-1,Ht={};Ht[ve]=Ht[ye]=Ht[be]=Ht[xe]=Ht[k]=Ht[Se]=Ht[Ce]=Ht[we]=Ht[Te]=!0,Ht[S]=Ht[C]=Ht[ge]=Ht[T]=Ht[_e]=Ht[E]=Ht[te]=Ht[ne]=Ht[ie]=Ht[O]=Ht[oe]=Ht[le]=Ht[ue]=Ht[de]=Ht[me]=!1;var Ut={};Ut[S]=Ut[C]=Ut[ge]=Ut[_e]=Ut[T]=Ut[E]=Ut[ve]=Ut[ye]=Ut[be]=Ut[xe]=Ut[k]=Ut[ie]=Ut[O]=Ut[oe]=Ut[le]=Ut[ue]=Ut[de]=Ut[fe]=Ut[Se]=Ut[Ce]=Ut[we]=Ut[Te]=!0,Ut[te]=Ut[ne]=Ut[me]=!1;var Wt={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Gt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Kt={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},qt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Jt=parseFloat,Yt=parseInt,Xt=typeof global==`object`&&global&&global.Object===Object&&global,Zt=typeof self==`object`&&self&&self.Object===Object&&self,z=Xt||Zt||Function(`return this`)(),Qt=typeof e==`object`&&e&&!e.nodeType&&e,$t=Qt&&typeof t==`object`&&t&&!t.nodeType&&t,B=$t&&$t.exports===Qt,en=B&&Xt.process,tn=function(){try{return $t&&$t.require&&$t.require(`util`).types||en&&en.binding&&en.binding(`util`)}catch{}}(),nn=tn&&tn.isArrayBuffer,rn=tn&&tn.isDate,an=tn&&tn.isMap,on=tn&&tn.isRegExp,sn=tn&&tn.isSet,cn=tn&&tn.isTypedArray;function ln(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function un(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function dn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function fn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function pn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function mn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function hn(e,t){return!!(e!=null&&e.length)&&Dn(e,t,0)>-1}function gn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function _n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function vn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function yn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function bn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function xn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Sn=jn(`length`);function Cn(e){return e.split(``)}function wn(e){return e.match(Ue)||[]}function Tn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function En(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Dn(e,t,n){return t===t?rr(e,t,n):En(e,kn,n)}function On(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function kn(e){return e!==e}function An(e,t){var n=e==null?0:e.length;return n?Fn(e,t)/n:v}function jn(e){return function(t){return t==null?n:t[e]}}function Mn(e){return function(t){return e==null?n:e[t]}}function Nn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Pn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Fn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function In(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ln(e,t){return _n(t,function(t){return[t,e[t]]})}function Rn(e){return e&&e.slice(0,sr(e)+1).replace(Re,``)}function zn(e){return function(t){return e(t)}}function Bn(e,t){return _n(t,function(t){return e[t]})}function Vn(e,t){return e.has(t)}function Hn(e,t){for(var n=-1,r=e.length;++n<r&&Dn(t,e[n],0)>-1;);return n}function Un(e,t){for(var n=e.length;n--&&Dn(t,e[n],0)>-1;);return n}function Wn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gn=Mn(Wt),Kn=Mn(Gt);function qn(e){return`\\`+qt[e]}function Jn(e,t){return e==null?n:e[t]}function Yn(e){return zt.test(e)}function Xn(e){return R.test(e)}function Zn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function $n(e,t){return function(n){return e(t(n))}}function er(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function nr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function rr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function ir(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function ar(e){return Yn(e)?lr(e):Sn(e)}function or(e){return Yn(e)?V(e):Cn(e)}function sr(e){for(var t=e.length;t--&&ze.test(e.charAt(t)););return t}var cr=Mn(Kt);function lr(e){for(var t=Lt.lastIndex=0;Lt.test(e);)++t;return t}function V(e){return e.match(Lt)||[]}function ur(e){return e.match(Rt)||[]}var dr=(function e(t){t=t==null?z:dr.defaults(z.Object(),t,dr.pick(z,Bt));var ze=t.Array,Ue=t.Date,et=t.Error,tt=t.Function,nt=t.Math,rt=t.Object,it=t.RegExp,at=t.String,ot=t.TypeError,st=ze.prototype,ct=tt.prototype,lt=rt.prototype,ut=t[`__core-js_shared__`],F=ct.toString,dt=lt.hasOwnProperty,ft=0,pt=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),mt=lt.toString,ht=F.call(rt),gt=z._,_t=it(`^`+F.call(dt).replace(Ie,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),vt=B?t.Buffer:n,yt=t.Symbol,bt=t.Uint8Array,xt=vt?vt.allocUnsafe:n,St=$n(rt.getPrototypeOf,rt),Ct=rt.create,wt=lt.propertyIsEnumerable,Tt=st.splice,Et=yt?yt.isConcatSpreadable:n,Dt=yt?yt.iterator:n,Ot=yt?yt.toStringTag:n,kt=function(){try{var e=Io(rt,`defineProperty`);return e({},``,{}),e}catch{}}(),I=t.clearTimeout!==z.clearTimeout&&t.clearTimeout,At=Ue&&Ue.now!==z.Date.now&&Ue.now,jt=t.setTimeout!==z.setTimeout&&t.setTimeout,Mt=nt.ceil,Nt=nt.floor,Pt=rt.getOwnPropertySymbols,Ft=vt?vt.isBuffer:n,Lt=t.isFinite,Rt=st.join,zt=$n(rt.keys,rt),R=nt.max,Wt=nt.min,Gt=Ue.now,Kt=t.parseInt,qt=nt.random,Xt=st.reverse,Zt=Io(t,`DataView`),Qt=Io(t,`Map`),$t=Io(t,`Promise`),en=Io(t,`Set`),tn=Io(t,`WeakMap`),Sn=Io(rt,`create`),Cn=tn&&new tn,Mn={},rr=xs(Zt),lr=xs(Qt),V=xs($t),fr=xs(en),pr=xs(tn),mr=yt?yt.prototype:n,hr=mr?mr.valueOf:n,gr=mr?mr.toString:n;function H(e){if(fu(e)&&!J(e)&&!(e instanceof U)){if(e instanceof yr)return e;if(dt.call(e,`__wrapped__`))return Cs(e)}return new yr(e)}var _r=function(){function e(){}return function(t){if(!du(t))return{};if(Ct)return Ct(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function vr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}H.templateSettings={escape:M,evaluate:je,interpolate:Me,variable:``,imports:{_:H}},H.prototype=vr.prototype,H.prototype.constructor=H,yr.prototype=_r(vr.prototype),yr.prototype.constructor=yr;function U(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function br(){var e=new U(this.__wrapped__);return e.__actions__=qa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qa(this.__views__),e}function xr(){if(this.__filtered__){var e=new U(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Sr(){var e=this.__wrapped__.value(),t=this.__dir__,n=J(e),r=t<0,i=n?e.length:0,a=Vo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Wt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Oa(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}U.prototype=_r(vr.prototype),U.prototype.constructor=U;function Cr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function wr(){this.__data__=Sn?Sn(null):{},this.size=0}function Tr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Er(e){var t=this.__data__;if(Sn){var r=t[e];return r===i?n:r}return dt.call(t,e)?t[e]:n}function Dr(e){var t=this.__data__;return Sn?t[e]!==n:dt.call(t,e)}function Or(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Sn&&t===n?i:t,this}Cr.prototype.clear=wr,Cr.prototype.delete=Tr,Cr.prototype.get=Er,Cr.prototype.has=Dr,Cr.prototype.set=Or;function kr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ar(){this.__data__=[],this.size=0}function jr(e){var t=this.__data__,n=ni(t,e);return n<0?!1:(n==t.length-1?t.pop():Tt.call(t,n,1),--this.size,!0)}function Mr(e){var t=this.__data__,r=ni(t,e);return r<0?n:t[r][1]}function Nr(e){return ni(this.__data__,e)>-1}function Pr(e,t){var n=this.__data__,r=ni(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}kr.prototype.clear=Ar,kr.prototype.delete=jr,kr.prototype.get=Mr,kr.prototype.has=Nr,kr.prototype.set=Pr;function Fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ir(){this.size=0,this.__data__={hash:new Cr,map:new(Qt||kr),string:new Cr}}function Lr(e){var t=Po(this,e).delete(e);return this.size-=+!!t,t}function Rr(e){return Po(this,e).get(e)}function zr(e){return Po(this,e).has(e)}function Br(e,t){var n=Po(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Fr.prototype.clear=Ir,Fr.prototype.delete=Lr,Fr.prototype.get=Rr,Fr.prototype.has=zr,Fr.prototype.set=Br;function Vr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Fr;++t<n;)this.add(e[t])}function Hr(e){return this.__data__.set(e,i),this}function Ur(e){return this.__data__.has(e)}Vr.prototype.add=Vr.prototype.push=Hr,Vr.prototype.has=Ur;function Wr(e){var t=this.__data__=new kr(e);this.size=t.size}function Gr(){this.__data__=new kr,this.size=0}function Kr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function qr(e){return this.__data__.get(e)}function Jr(e){return this.__data__.has(e)}function Yr(e,t){var n=this.__data__;if(n instanceof kr){var r=n.__data__;if(!Qt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fr(r)}return n.set(e,t),this.size=n.size,this}Wr.prototype.clear=Gr,Wr.prototype.delete=Kr,Wr.prototype.get=qr,Wr.prototype.has=Jr,Wr.prototype.set=Yr;function Xr(e,t){var n=J(e),r=!n&&Yl(e),i=!n&&!r&&eu(e),a=!n&&!r&&!i&&Du(e),o=n||r||i||a,s=o?In(e.length,at):[],c=s.length;for(var l in e)(t||dt.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Yo(l,c)))&&s.push(l);return s}function Zr(e){var t=e.length;return t?e[ca(0,t-1)]:n}function Qr(e,t){return vs(qa(e),si(t,0,e.length))}function $r(e){return vs(qa(e))}function ei(e,t,r){(r!==n&&!Kl(e[t],r)||r===n&&!(t in e))&&W(e,t,r)}function ti(e,t,r){var i=e[t];(!(dt.call(e,t)&&Kl(i,r))||r===n&&!(t in e))&&W(e,t,r)}function ni(e,t){for(var n=e.length;n--;)if(Kl(e[n][0],t))return n;return-1}function ri(e,t,n,r){return pi(e,function(e,i,a){t(r,e,n(e),a)}),r}function ii(e,t){return e&&Ja(t,cd(t),e)}function ai(e,t){return e&&Ja(t,ld(t),e)}function W(e,t,n){t==`__proto__`&&kt?kt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function oi(e,t){for(var r=-1,i=t.length,a=ze(i),o=e==null;++r<i;)a[r]=o?n:nd(e,t[r]);return a}function si(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ci(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!du(e))return e;var d=J(e);if(d){if(s=Wo(e),!c)return qa(e,s)}else{var f=Bo(e),p=f==ne||f==re;if(eu(e))return La(e,c);if(f==oe||f==S||p&&!a){if(s=l||p?{}:Go(e),!c)return l?Xa(e,ai(s,e)):Ya(e,ii(s,e))}else{if(!Ut[f])return a?e:{};s=Ko(e,f,c)}}o||=new Wr;var m=o.get(e);if(m)return m;o.set(e,s),wu(e)?e.forEach(function(n){s.add(ci(n,t,r,n,e,o))}):pu(e)&&e.forEach(function(n,i){s.set(i,ci(n,t,r,i,e,o))});var h=d?n:(u?l?Ao:ko:l?ld:cd)(e);return dn(h||e,function(n,i){h&&(i=n,n=e[i]),ti(s,i,ci(n,t,r,i,e,o))}),s}function li(e){var t=cd(e);return function(n){return ui(n,e,t)}}function ui(e,t,r){var i=r.length;if(e==null)return!i;for(e=rt(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function di(e,t,i){if(typeof e!=`function`)throw new ot(r);return ms(function(){e.apply(n,i)},t)}function fi(e,t,n,r){var i=-1,a=hn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=_n(t,zn(n))),r?(a=gn,o=!1):t.length>=200&&(a=Vn,o=!1,t=new Vr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var pi=$a(Si),mi=$a(Ci,!0);function hi(e,t){var n=!0;return pi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function gi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Eu(s):r(s,c)))var c=s,l=o}return l}function _i(e,t,r,i){var a=e.length;for(r=Y(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Y(i),i<0&&(i+=a),i=r>i?0:Fu(i);r<i;)e[r++]=t;return e}function vi(e,t){var n=[];return pi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function yi(e,t,n,r,i){var a=-1,o=e.length;for(n||=Jo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?yi(s,t-1,n,r,i):vn(i,s):r||(i[i.length]=s)}return i}var bi=eo(),xi=eo(!0);function Si(e,t){return e&&bi(e,t,cd)}function Ci(e,t){return e&&xi(e,t,cd)}function wi(e,t){return mn(t,function(t){return cu(e[t])})}function Ti(e,t){t=Na(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function Ei(e,t,n){var r=t(e);return J(e)?r:vn(r,n(e))}function Di(e){return e==null?e===n?pe:ae:Ot&&Ot in rt(e)?Lo(e):cs(e)}function Oi(e,t){return e>t}function ki(e,t){return e!=null&&dt.call(e,t)}function Ai(e,t){return e!=null&&t in rt(e)}function ji(e,t,n){return e>=Wt(t,n)&&e<R(t,n)}function Mi(e,t,r){for(var i=r?gn:hn,a=e[0].length,o=e.length,s=o,c=ze(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=_n(d,zn(t))),l=Wt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Vr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Vn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Vn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Ni(e,t,n,r){return Si(e,function(e,i,a){t(r,n(e),i,a)}),r}function Pi(e,t,r){t=Na(t,e),e=us(e,t);var i=e==null?e:e[bs(Js(t))];return i==null?n:ln(i,e,r)}function Fi(e){return fu(e)&&Di(e)==S}function Ii(e){return fu(e)&&Di(e)==ge}function Li(e){return fu(e)&&Di(e)==E}function Ri(e,t,n,r,i){return e===t?!0:e==null||t==null||!fu(e)&&!fu(t)?e!==e&&t!==t:zi(e,t,n,r,Ri,i)}function zi(e,t,n,r,i,a){var o=J(e),s=J(t),c=o?C:Bo(e),l=s?C:Bo(t);c=c==S?oe:c,l=l==S?oe:l;var u=c==oe,d=l==oe,f=c==l;if(f&&eu(e)){if(!eu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Wr,o||Du(e)?To(e,t,n,r,i,a):Eo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&dt.call(e,`__wrapped__`),m=d&&dt.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Wr,i(h,g,n,r,a)}}return f?(a||=new Wr,Do(e,t,n,r,i,a)):!1}function Bi(e){return fu(e)&&Bo(e)==ie}function Vi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=rt(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Wr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Ri(d,u,3,i,f):p))return!1}}return!0}function Hi(e){return!du(e)||es(e)?!1:(cu(e)?_t:P).test(xs(e))}function Ui(e){return fu(e)&&Di(e)==le}function Wi(e){return fu(e)&&Bo(e)==ue}function Gi(e){return fu(e)&&uu(e.length)&&!!Ht[Di(e)]}function Ki(e){return typeof e==`function`?e:e==null?hf:typeof e==`object`?J(e)?Qi(e[0],e[1]):Zi(e):Of(e)}function qi(e){if(!ns(e))return zt(e);var t=[];for(var n in rt(e))dt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Ji(e){if(!du(e))return ss(e);var t=ns(e),n=[];for(var r in e)(r!=`constructor`||!t&&dt.call(e,r))&&n.push(r);return n}function Yi(e,t){return e<t}function Xi(e,t){var n=-1,r=Zl(e)?ze(e.length):[];return pi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Zi(e){var t=Fo(e);return t.length==1&&t[0][2]?is(t[0][0],t[0][1]):function(n){return n===e||Vi(n,e,t)}}function Qi(e,t){return Zo(e)&&rs(t)?is(bs(e),t):function(r){var i=nd(r,e);return i===n&&i===t?id(r,e):Ri(t,i,3)}}function $i(e,t,r,i,a){e!==t&&bi(t,function(o,s){if(a||=new Wr,du(o))ea(e,t,s,r,$i,i,a);else{var c=i?i(fs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),ei(e,s,c)}},ld)}function ea(e,t,r,i,a,o,s){var c=fs(e,r),l=fs(t,r),u=s.get(l);if(u)ei(e,r,u);else{var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=J(l),m=!p&&eu(l),h=!p&&!m&&Du(l);d=l,p||m||h?J(c)?d=c:Ql(c)?d=qa(c):m?(f=!1,d=La(l,!0)):h?(f=!1,d=Ha(l,!0)):d=[]:xu(l)||Yl(l)?(d=c,Yl(c)?d=Lu(c):(!du(c)||cu(c))&&(d=Go(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),ei(e,r,d)}}function ta(e,t){var r=e.length;if(r)return t+=t<0?r:0,Yo(t,r)?e[t]:n}function na(e,t,n){t=t.length?_n(t,function(e){return J(e)?function(t){return Ti(t,e.length===1?e[0]:e)}:e}):[hf];var r=-1;return t=_n(t,zn(K())),Pn(Xi(e,function(e,n,i){return{criteria:_n(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Wa(e,t,n)})}function ra(e,t){return ia(e,t,function(t,n){return id(e,n)})}function ia(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ti(e,o);n(s,o)&&pa(a,Na(o,e),s)}return a}function aa(e){return function(t){return Ti(t,e)}}function oa(e,t,n,r){var i=r?On:Dn,a=-1,o=t.length,s=e;for(e===t&&(t=qa(t)),n&&(s=_n(e,zn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Tt.call(s,c,1),Tt.call(e,c,1);return e}function sa(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Yo(i)?Tt.call(e,i,1):Ta(e,i)}}return e}function ca(e,t){return e+Nt(qt()*(t-e+1))}function la(e,t,n,r){for(var i=-1,a=R(Mt((t-e)/(n||1)),0),o=ze(a);a--;)o[r?a:++i]=e,e+=n;return o}function ua(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=Nt(t/2),t&&(e+=e);while(t);return n}function G(e,t){return hs(ls(e,t,hf),e+``)}function da(e){return Zr(Dd(e))}function fa(e,t){var n=Dd(e);return vs(n,si(t,0,n.length))}function pa(e,t,r,i){if(!du(e))return e;t=Na(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=bs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=du(d)?d:Yo(t[a+1])?[]:{})}ti(c,l,u),c=c[l]}return e}var ma=Cn?function(e,t){return Cn.set(e,t),e}:hf,ha=kt?function(e,t){return kt(e,`toString`,{configurable:!0,enumerable:!1,value:df(t),writable:!0})}:hf;function ga(e){return vs(Dd(e))}function _a(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=ze(i);++r<i;)a[r]=e[r+t];return a}function va(e,t){var n;return pi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ya(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Eu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ba(e,t,hf,n)}function ba(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Eu(t),u=t===n;a<o;){var d=Nt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Eu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Wt(o,b)}function xa(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Kl(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Sa(e){return typeof e==`number`?e:Eu(e)?v:+e}function Ca(e){if(typeof e==`string`)return e;if(J(e))return _n(e,Ca)+``;if(Eu(e))return gr?gr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function wa(e,t,n){var r=-1,i=hn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=gn;else if(a>=200){var l=t?null:yo(e);if(l)return tr(l);o=!1,i=Vn,c=new Vr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Ta(e,t){t=Na(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=bs(t[n]);if(i===`__proto__`&&!dt.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=us(e,t);return a==null||delete a[bs(Js(t))]}function Ea(e,t,n,r){return pa(e,t,n(Ti(e,t)),r)}function Da(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?_a(e,r?0:a,r?a+1:i):_a(e,r?a+1:0,r?i:a)}function Oa(e,t){var n=e;return n instanceof U&&(n=n.value()),yn(t,function(e,t){return t.func.apply(t.thisArg,vn([e],t.args))},n)}function ka(e,t,n){var r=e.length;if(r<2)return r?wa(e[0]):[];for(var i=-1,a=ze(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=fi(a[i]||o,e[s],t,n));return wa(yi(a,1),t,n)}function Aa(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function ja(e){return Ql(e)?e:[]}function Ma(e){return typeof e==`function`?e:hf}function Na(e,t){return J(e)?e:Zo(e,t)?[e]:ys(zu(e))}var Pa=G;function Fa(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:_a(e,t,r)}var Ia=I||function(e){return z.clearTimeout(e)};function La(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function Ra(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t}function za(e,t){var n=t?Ra(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ba(e){var t=new e.constructor(e.source,Ke.exec(e));return t.lastIndex=e.lastIndex,t}function Va(e){return hr?rt(hr.call(e)):{}}function Ha(e,t){var n=t?Ra(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ua(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Eu(e),s=t!==n,c=t===null,l=t===t,u=Eu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Wa(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ua(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ga(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=R(a-o,0),u=ze(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Ka(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=R(a-s,0),d=ze(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function qa(e,t){var n=-1,r=e.length;for(t||=ze(r);++n<r;)t[n]=e[n];return t}function Ja(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?W(r,c,l):ti(r,c,l)}return r}function Ya(e,t){return Ja(e,Ro(e),t)}function Xa(e,t){return Ja(e,zo(e),t)}function Za(e,t){return function(n,r){var i=J(n)?un:ri,a=t?t():{};return i(n,e,K(r,2),a)}}function Qa(e){return G(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Xo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=rt(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function $a(e,t){return function(n,r){if(n==null)return n;if(!Zl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=rt(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function eo(e){return function(t,n,r){for(var i=-1,a=rt(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function to(e,t,n){var r=t&o,i=io(e);function a(){return(this&&this!==z&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function no(e){return function(t){t=zu(t);var r=Yn(t)?or(t):n,i=r?r[0]:t.charAt(0),a=r?Fa(r,1).join(``):t.slice(1);return i[e]()+a}}function ro(e){return function(t){return yn(of(Pd(t).replace(L,``)),e,``)}}function io(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=_r(e.prototype),r=e.apply(n,t);return du(r)?r:n}}function ao(e,t,r){var i=io(e);function a(){for(var o=arguments.length,s=ze(o),c=o,l=No(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:er(s,l);return o-=u.length,o<r?_o(e,t,co,a.placeholder,n,s,u,n,n,r-o):ln(this&&this!==z&&this instanceof a?i:e,this,s)}return a}function oo(e){return function(t,r,i){var a=rt(t);if(!Zl(t)){var o=K(r,3);t=cd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function so(e){return Oo(function(t){var i=t.length,a=i,o=yr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new ot(r);if(o&&!l&&Mo(s)==`wrapper`)var l=new yr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=Mo(s),m=d==`wrapper`?jo(s):n;l=m&&$o(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[Mo(m[0])].apply(l,m[3]):s.length==1&&$o(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&J(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function co(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,ee=y?n:io(e);function S(){for(var n=arguments.length,o=ze(n),s=n;s--;)o[s]=arguments[s];if(b)var c=No(S),l=Wn(o,c);if(i&&(o=Ga(o,i,a,b)),u&&(o=Ka(o,u,d,b)),n-=l,b&&n<g){var f=er(o,c);return _o(e,t,co,S.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,C=y?m[e]:e;return n=o.length,p?o=ds(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==z&&this instanceof S&&(C=ee||io(C)),C.apply(m,o)}return S}function lo(e,t){return function(n,r){return Ni(n,e,t(r),{})}}function uo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=Ca(r),i=Ca(i)):(r=Sa(r),i=Sa(i)),a=e(r,i)}return a}}function fo(e){return Oo(function(t){return t=_n(t,zn(K())),G(function(n){var r=this;return e(t,function(e){return ln(e,r,n)})})})}function po(e,t){t=t===n?` `:Ca(t);var r=t.length;if(r<2)return r?ua(t,e):t;var i=ua(t,Mt(e/ar(t)));return Yn(t)?Fa(or(i),0,e).join(``):i.slice(0,e)}function mo(e,t,n,r){var i=t&o,a=io(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=ze(l+o),d=this&&this!==z&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return ln(d,i?n:this,u)}return s}function ho(e){return function(t,r,i){return i&&typeof i!=`number`&&Xo(t,r,i)&&(r=i=n),t=Pu(t),r===n?(r=t,t=0):r=Pu(r),i=i===n?t<r?1:-1:Pu(i),la(t,r,i,e)}}function go(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Iu(t),n=Iu(n)),e(t,n)}}function _o(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],ee=r.apply(n,x);return $o(e)&&ps(ee,x),ee.placeholder=i,gs(ee,e,t)}function vo(e){var t=nt[e];return function(e,n){if(e=Iu(e),n=n==null?0:Wt(Y(n),292),n&&Lt(e)){var r=(zu(e)+`e`).split(`e`);return r=(zu(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var yo=en&&1/tr(new en([,-0]))[1]==h?function(e){return new en(e)}:Cf;function bo(e){return function(t){var n=Bo(t);return n==ie?Qn(t):n==ue?nr(t):Ln(t,e(t))}}function xo(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new ot(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:R(Y(m),0),h=h===n?h:Y(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:jo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&os(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:R(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var ee=to(e,t,i);else ee=t==c||t==l?ao(e,t,h):(t==u||t==(o|u))&&!f.length?mo(e,t,i,a):co.apply(n,x);return gs((b?ma:ps)(ee,x),e,t)}function So(e,t,r,i){return e===n||Kl(e,lt[r])&&!dt.call(i,r)?t:e}function Co(e,t,r,i,a,o){return du(e)&&du(t)&&(o.set(t,e),$i(e,t,n,Co,o),o.delete(t)),e}function wo(e){return xu(e)?n:e}function To(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Vr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!xn(t,function(e,t){if(!Vn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Eo(e,t,n,r,i,a,o){switch(n){case _e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ge:return!(e.byteLength!=t.byteLength||!a(new bt(e),new bt(t)));case T:case E:case O:return Kl(+e,+t);case te:return e.name==t.name&&e.message==t.message;case le:case de:return e==t+``;case ie:var s=Qn;case ue:var c=r&1;if(s||=tr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=To(s(e),s(t),r,i,a,o);return o.delete(e),u;case fe:if(hr)return hr.call(e)==hr.call(t)}return!1}function Do(e,t,r,i,a,o){var s=r&1,c=ko(e),l=c.length;if(l!=ko(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:dt.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function Oo(e){return hs(ls(e,n,Ls),e+``)}function ko(e){return Ei(e,cd,Ro)}function Ao(e){return Ei(e,ld,zo)}var jo=Cn?function(e){return Cn.get(e)}:Cf;function Mo(e){for(var t=e.name+``,n=Mn[t],r=dt.call(Mn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function No(e){return(dt.call(H,`placeholder`)?H:e).placeholder}function K(){var e=H.iteratee||gf;return e=e===gf?Ki:e,arguments.length?e(arguments[0],arguments[1]):e}function Po(e,t){var n=e.__data__;return Qo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Fo(e){for(var t=cd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,rs(i)]}return t}function Io(e,t){var r=Jn(e,t);return Hi(r)?r:n}function Lo(e){var t=dt.call(e,Ot),r=e[Ot];try{e[Ot]=n;var i=!0}catch{}var a=mt.call(e);return i&&(t?e[Ot]=r:delete e[Ot]),a}var Ro=Pt?function(e){return e==null?[]:(e=rt(e),mn(Pt(e),function(t){return wt.call(e,t)}))}:Mf,zo=Pt?function(e){for(var t=[];e;)vn(t,Ro(e)),e=St(e);return t}:Mf,Bo=Di;(Zt&&Bo(new Zt(new ArrayBuffer(1)))!=_e||Qt&&Bo(new Qt)!=ie||$t&&Bo($t.resolve())!=se||en&&Bo(new en)!=ue||tn&&Bo(new tn)!=me)&&(Bo=function(e){var t=Di(e),r=t==oe?e.constructor:n,i=r?xs(r):``;if(i)switch(i){case rr:return _e;case lr:return ie;case V:return se;case fr:return ue;case pr:return me}return t});function Vo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Wt(t,e+o);break;case`takeRight`:e=R(e,t-o)}}return{start:e,end:t}}function Ho(e){var t=e.match(Ve);return t?t[1].split(He):[]}function Uo(e,t,n){t=Na(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=bs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&uu(i)&&Yo(o,i)&&(J(e)||Yl(e)))}function Wo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&dt.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Go(e){return typeof e.constructor==`function`&&!ns(e)?_r(St(e)):{}}function Ko(e,t,n){var r=e.constructor;switch(t){case ge:return Ra(e);case T:case E:return new r(+e);case _e:return za(e,n);case ve:case ye:case be:case xe:case k:case Se:case Ce:case we:case Te:return Ha(e,n);case ie:return new r;case O:case de:return new r(e);case le:return Ba(e);case ue:return new r;case fe:return Va(e)}}function qo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(Be,`{
|
|
4
4
|
/* [wrapped with `+t+`] */
|
|
5
5
|
`)}function Jo(e){return J(e)||Yl(e)||!!(Et&&e&&e[Et])}function Yo(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&Xe.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!du(n))return!1;var r=typeof t;return(r==`number`?Zl(n)&&Yo(t,n.length):r==`string`&&t in n)?Kl(n[t],e):!1}function Zo(e,t){if(J(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Eu(e)?!0:Pe.test(e)||!Ne.test(e)||t!=null&&e in rt(t)}function Qo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function $o(e){var t=Mo(e),n=H[t];if(typeof n!=`function`||!(t in U.prototype))return!1;if(e===n)return!0;var r=jo(n);return!!r&&e===r[0]}function es(e){return!!pt&&pt in e}var ts=ut?cu:Nf;function ns(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||lt)}function rs(e){return e===e&&!du(e)}function is(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in rt(r))}}function as(e){var t=Ol(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function os(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ga(m,d,t[4]):d,e[4]=m?er(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?Ka(m,d,t[6]):d,e[6]=m?er(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:Wt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function ss(e){var t=[];if(e!=null)for(var n in rt(e))t.push(n);return t}function cs(e){return mt.call(e)}function ls(e,t,r){return t=R(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=R(n.length-t,0),o=ze(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=ze(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),ln(e,this,s)}}function us(e,t){return t.length<2?e:Ti(e,_a(t,0,-1))}function ds(e,t){for(var r=e.length,i=Wt(t.length,r),a=qa(e);i--;){var o=t[i];e[i]=Yo(o,r)?a[o]:n}return e}function fs(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var ps=_s(ma),ms=jt||function(e,t){return z.setTimeout(e,t)},hs=_s(ha);function gs(e,t,n){var r=t+``;return hs(e,qo(r,Ss(Ho(r),n)))}function _s(e){var t=0,r=0;return function(){var i=Gt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function vs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ca(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var ys=as(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Fe,function(e,n,r,i){t.push(r?i.replace(N,`$1`):n||e)}),t});function bs(e){if(typeof e==`string`||Eu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function xs(e){if(e!=null){try{return F.call(e)}catch{}try{return e+``}catch{}}return``}function Ss(e,t){return dn(ee,function(n){var r=`_.`+n[0];t&n[1]&&!hn(e,r)&&e.push(r)}),e.sort()}function Cs(e){if(e instanceof U)return e.clone();var t=new yr(e.__wrapped__,e.__chain__);return t.__actions__=qa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ws(e,t,r){t=(r?Xo(e,t,r):t===n)?1:R(Y(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=ze(Mt(i/t));a<i;)s[o++]=_a(e,a,a+=t);return s}function Ts(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Es(){var e=arguments.length;if(!e)return[];for(var t=ze(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return vn(J(n)?qa(n):[n],yi(t,1))}var Ds=G(function(e,t){return Ql(e)?fi(e,yi(t,1,Ql,!0)):[]}),Os=G(function(e,t){var r=Js(t);return Ql(r)&&(r=n),Ql(e)?fi(e,yi(t,1,Ql,!0),K(r,2)):[]}),ks=G(function(e,t){var r=Js(t);return Ql(r)&&(r=n),Ql(e)?fi(e,yi(t,1,Ql,!0),n,r):[]});function As(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Y(t),_a(e,t<0?0:t,i)):[]}function js(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Y(t),t=i-t,_a(e,0,t<0?0:t)):[]}function Ms(e,t){return e&&e.length?Da(e,K(t,3),!0,!0):[]}function Ns(e,t){return e&&e.length?Da(e,K(t,3),!0):[]}function Ps(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Xo(e,t,n)&&(n=0,r=i),_i(e,t,n,r)):[]}function Fs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Y(n);return i<0&&(i=R(r+i,0)),En(e,K(t,3),i)}function Is(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Y(r),a=r<0?R(i+a,0):Wt(a,i-1)),En(e,K(t,3),a,!0)}function Ls(e){return e!=null&&e.length?yi(e,1):[]}function Rs(e){return e!=null&&e.length?yi(e,h):[]}function zs(e,t){return e!=null&&e.length?(t=t===n?1:Y(t),yi(e,t)):[]}function Bs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];W(r,i[0],i[1])}return r}function Vs(e){return e&&e.length?e[0]:n}function Hs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Y(n);return i<0&&(i=R(r+i,0)),Dn(e,t,i)}function Us(e){return e!=null&&e.length?_a(e,0,-1):[]}var Ws=G(function(e){var t=_n(e,ja);return t.length&&t[0]===e[0]?Mi(t):[]}),Gs=G(function(e){var t=Js(e),r=_n(e,ja);return t===Js(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Mi(r,K(t,2)):[]}),Ks=G(function(e){var t=Js(e),r=_n(e,ja);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Mi(r,n,t):[]});function qs(e,t){return e==null?``:Rt.call(e,t)}function Js(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Ys(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Y(r),a=a<0?R(i+a,0):Wt(a,i-1)),t===t?ir(e,t,a):En(e,kn,a,!0)}function Xs(e,t){return e&&e.length?ta(e,Y(t)):n}var Zs=G(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?oa(e,t):e}function $s(e,t,n){return e&&e.length&&t&&t.length?oa(e,t,K(n,2)):e}function ec(e,t,r){return e&&e.length&&t&&t.length?oa(e,t,n,r):e}var tc=Oo(function(e,t){var n=e==null?0:e.length,r=oi(e,t);return sa(e,_n(t,function(e){return Yo(e,n)?+e:e}).sort(Ua)),r});function nc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=K(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return sa(e,i),n}function rc(e){return e==null?e:Xt.call(e)}function ic(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Xo(e,t,r)?(t=0,r=i):(t=t==null?0:Y(t),r=r===n?i:Y(r)),_a(e,t,r)):[]}function ac(e,t){return ya(e,t)}function oc(e,t,n){return ba(e,t,K(n,2))}function sc(e,t){var n=e==null?0:e.length;if(n){var r=ya(e,t);if(r<n&&Kl(e[r],t))return r}return-1}function cc(e,t){return ya(e,t,!0)}function lc(e,t,n){return ba(e,t,K(n,2),!0)}function uc(e,t){if(e!=null&&e.length){var n=ya(e,t,!0)-1;if(Kl(e[n],t))return n}return-1}function dc(e){return e&&e.length?xa(e):[]}function fc(e,t){return e&&e.length?xa(e,K(t,2)):[]}function pc(e){var t=e==null?0:e.length;return t?_a(e,1,t):[]}function mc(e,t,r){return e&&e.length?(t=r||t===n?1:Y(t),_a(e,0,t<0?0:t)):[]}function hc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Y(t),t=i-t,_a(e,t<0?0:t,i)):[]}function gc(e,t){return e&&e.length?Da(e,K(t,3),!1,!0):[]}function _c(e,t){return e&&e.length?Da(e,K(t,3)):[]}var vc=G(function(e){return wa(yi(e,1,Ql,!0))}),yc=G(function(e){var t=Js(e);return Ql(t)&&(t=n),wa(yi(e,1,Ql,!0),K(t,2))}),bc=G(function(e){var t=Js(e);return t=typeof t==`function`?t:n,wa(yi(e,1,Ql,!0),n,t)});function xc(e){return e&&e.length?wa(e):[]}function Sc(e,t){return e&&e.length?wa(e,K(t,2)):[]}function Cc(e,t){return t=typeof t==`function`?t:n,e&&e.length?wa(e,n,t):[]}function wc(e){if(!(e&&e.length))return[];var t=0;return e=mn(e,function(e){if(Ql(e))return t=R(e.length,t),!0}),In(t,function(t){return _n(e,jn(t))})}function Tc(e,t){if(!(e&&e.length))return[];var r=wc(e);return t==null?r:_n(r,function(e){return ln(t,n,e)})}var Ec=G(function(e,t){return Ql(e)?fi(e,t):[]}),Dc=G(function(e){return ka(mn(e,Ql))}),Oc=G(function(e){var t=Js(e);return Ql(t)&&(t=n),ka(mn(e,Ql),K(t,2))}),kc=G(function(e){var t=Js(e);return t=typeof t==`function`?t:n,ka(mn(e,Ql),n,t)}),q=G(wc);function Ac(e,t){return Aa(e||[],t||[],ti)}function jc(e,t){return Aa(e||[],t||[],pa)}var Mc=G(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Tc(e,r)});function Nc(e){var t=H(e);return t.__chain__=!0,t}function Pc(e,t){return t(e),e}function Fc(e,t){return t(e)}var Ic=Oo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return oi(t,e)};return t>1||this.__actions__.length||!(i instanceof U)||!Yo(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Fc,args:[a],thisArg:n}),new yr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Lc(){return Nc(this)}function Rc(){return new yr(this.value(),this.__chain__)}function zc(){this.__values__===n&&(this.__values__=Nu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Bc(){return this}function Vc(e){for(var t,r=this;r instanceof vr;){var i=Cs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Hc(){var e=this.__wrapped__;if(e instanceof U){var t=e;return this.__actions__.length&&(t=new U(this)),t=t.reverse(),t.__actions__.push({func:Fc,args:[rc],thisArg:n}),new yr(t,this.__chain__)}return this.thru(rc)}function Uc(){return Oa(this.__wrapped__,this.__actions__)}var Wc=Za(function(e,t,n){dt.call(e,n)?++e[n]:W(e,n,1)});function Gc(e,t,r){var i=J(e)?pn:hi;return r&&Xo(e,t,r)&&(t=n),i(e,K(t,3))}function Kc(e,t){return(J(e)?mn:vi)(e,K(t,3))}var qc=oo(Fs),Jc=oo(Is);function Yc(e,t){return yi(il(e,t),1)}function Xc(e,t){return yi(il(e,t),h)}function Zc(e,t,r){return r=r===n?1:Y(r),yi(il(e,t),r)}function Qc(e,t){return(J(e)?dn:pi)(e,K(t,3))}function $c(e,t){return(J(e)?fn:mi)(e,K(t,3))}var el=Za(function(e,t,n){dt.call(e,n)?e[n].push(t):W(e,n,[t])});function tl(e,t,n,r){e=Zl(e)?e:Dd(e),n=n&&!r?Y(n):0;var i=e.length;return n<0&&(n=R(i+n,0)),Tu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Dn(e,t,n)>-1}var nl=G(function(e,t,n){var r=-1,i=typeof t==`function`,a=Zl(e)?ze(e.length):[];return pi(e,function(e){a[++r]=i?ln(t,e,n):Pi(e,t,n)}),a}),rl=Za(function(e,t,n){W(e,n,t)});function il(e,t){return(J(e)?_n:Xi)(e,K(t,3))}function al(e,t,r,i){return e==null?[]:(J(t)||(t=t==null?[]:[t]),r=i?n:r,J(r)||(r=r==null?[]:[r]),na(e,t,r))}var ol=Za(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function sl(e,t,n){var r=J(e)?yn:Nn,i=arguments.length<3;return r(e,K(t,4),n,i,pi)}function cl(e,t,n){var r=J(e)?bn:Nn,i=arguments.length<3;return r(e,K(t,4),n,i,mi)}function ll(e,t){return(J(e)?mn:vi)(e,kl(K(t,3)))}function ul(e){return(J(e)?Zr:da)(e)}function dl(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Y(t),(J(e)?Qr:fa)(e,t)}function fl(e){return(J(e)?$r:ga)(e)}function pl(e){if(e==null)return 0;if(Zl(e))return Tu(e)?ar(e):e.length;var t=Bo(e);return t==ie||t==ue?e.size:qi(e).length}function ml(e,t,r){var i=J(e)?xn:va;return r&&Xo(e,t,r)&&(t=n),i(e,K(t,3))}var hl=G(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),na(e,yi(t,1),[])}),gl=At||function(){return z.Date.now()};function _l(e,t){if(typeof t!=`function`)throw new ot(r);return e=Y(e),function(){if(--e<1)return t.apply(this,arguments)}}function vl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,xo(e,f,n,n,n,n,t)}function yl(e,t){var i;if(typeof t!=`function`)throw new ot(r);return e=Y(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var bl=G(function(e,t,n){var r=o;if(n.length){var i=er(n,No(bl));r|=u}return xo(e,r,t,n,i)}),xl=G(function(e,t,n){var r=o|s;if(n.length){var i=er(n,No(xl));r|=u}return xo(t,r,e,n,i)});function Sl(e,t,r){t=r?n:t;var i=xo(e,c,n,n,n,n,n,t);return i.placeholder=Sl.placeholder,i}function Cl(e,t,r){t=r?n:t;var i=xo(e,l,n,n,n,n,n,t);return i.placeholder=Cl.placeholder,i}function wl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new ot(r);t=Iu(t)||0,du(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?R(Iu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ms(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Wt(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=gl();if(v(e))return b(e);l=ms(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&Ia(l),d=0,a=u=o=l=n}function ee(){return l===n?c:b(gl())}function S(){var e=gl(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return Ia(l),l=ms(y,t),h(u)}return l===n&&(l=ms(y,t)),c}return S.cancel=x,S.flush=ee,S}var Tl=G(function(e,t){return di(e,1,t)}),El=G(function(e,t,n){return di(e,Iu(t)||0,n)});function Dl(e){return xo(e,m)}function Ol(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new ot(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ol.Cache||Fr),n}Ol.Cache=Fr;function kl(e){if(typeof e!=`function`)throw new ot(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Al(e){return yl(2,e)}var jl=Pa(function(e,t){t=t.length==1&&J(t[0])?_n(t[0],zn(K())):_n(yi(t,1),zn(K()));var n=t.length;return G(function(r){for(var i=-1,a=Wt(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return ln(e,this,r)})}),Ml=G(function(e,t){return xo(e,u,n,t,er(t,No(Ml)))}),Nl=G(function(e,t){return xo(e,d,n,t,er(t,No(Nl)))}),Pl=Oo(function(e,t){return xo(e,p,n,n,n,t)});function Fl(e,t){if(typeof e!=`function`)throw new ot(r);return t=t===n?t:Y(t),G(e,t)}function Il(e,t){if(typeof e!=`function`)throw new ot(r);return t=t==null?0:R(Y(t),0),G(function(n){var r=n[t],i=Fa(n,0,t);return r&&vn(i,r),ln(e,this,i)})}function Ll(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new ot(r);return du(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),wl(e,t,{leading:i,maxWait:t,trailing:a})}function Rl(e){return vl(e,1)}function zl(e,t){return Ml(Ma(t),e)}function Bl(){if(!arguments.length)return[];var e=arguments[0];return J(e)?e:[e]}function Vl(e){return ci(e,4)}function Hl(e,t){return t=typeof t==`function`?t:n,ci(e,4,t)}function Ul(e){return ci(e,5)}function Wl(e,t){return t=typeof t==`function`?t:n,ci(e,5,t)}function Gl(e,t){return t==null||ui(e,t,cd(t))}function Kl(e,t){return e===t||e!==e&&t!==t}var ql=go(Oi),Jl=go(function(e,t){return e>=t}),Yl=Fi(function(){return arguments}())?Fi:function(e){return fu(e)&&dt.call(e,`callee`)&&!wt.call(e,`callee`)},J=ze.isArray,Xl=nn?zn(nn):Ii;function Zl(e){return e!=null&&uu(e.length)&&!cu(e)}function Ql(e){return fu(e)&&Zl(e)}function $l(e){return e===!0||e===!1||fu(e)&&Di(e)==T}var eu=Ft||Nf,tu=rn?zn(rn):Li;function nu(e){return fu(e)&&e.nodeType===1&&!xu(e)}function ru(e){if(e==null)return!0;if(Zl(e)&&(J(e)||typeof e==`string`||typeof e.splice==`function`||eu(e)||Du(e)||Yl(e)))return!e.length;var t=Bo(e);if(t==ie||t==ue)return!e.size;if(ns(e))return!qi(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function iu(e,t){return Ri(e,t)}function au(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Ri(e,t,n,r):!!i}function ou(e){if(!fu(e))return!1;var t=Di(e);return t==te||t==D||typeof e.message==`string`&&typeof e.name==`string`&&!xu(e)}function su(e){return typeof e==`number`&&Lt(e)}function cu(e){if(!du(e))return!1;var t=Di(e);return t==ne||t==re||t==w||t==ce}function lu(e){return typeof e==`number`&&e==Y(e)}function uu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function du(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function fu(e){return typeof e==`object`&&!!e}var pu=an?zn(an):Bi;function mu(e,t){return e===t||Vi(e,t,Fo(t))}function hu(e,t,r){return r=typeof r==`function`?r:n,Vi(e,t,Fo(t),r)}function gu(e){return bu(e)&&e!=+e}function _u(e){if(ts(e))throw new et(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Hi(e)}function vu(e){return e===null}function yu(e){return e==null}function bu(e){return typeof e==`number`||fu(e)&&Di(e)==O}function xu(e){if(!fu(e)||Di(e)!=oe)return!1;var t=St(e);if(t===null)return!0;var n=dt.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&F.call(n)==ht}var Su=on?zn(on):Ui;function Cu(e){return lu(e)&&e>=-g&&e<=g}var wu=sn?zn(sn):Wi;function Tu(e){return typeof e==`string`||!J(e)&&fu(e)&&Di(e)==de}function Eu(e){return typeof e==`symbol`||fu(e)&&Di(e)==fe}var Du=cn?zn(cn):Gi;function Ou(e){return e===n}function ku(e){return fu(e)&&Bo(e)==me}function Au(e){return fu(e)&&Di(e)==he}var ju=go(Yi),Mu=go(function(e,t){return e<=t});function Nu(e){if(!e)return[];if(Zl(e))return Tu(e)?or(e):qa(e);if(Dt&&e[Dt])return Zn(e[Dt]());var t=Bo(e);return(t==ie?Qn:t==ue?tr:Dd)(e)}function Pu(e){return e?(e=Iu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Y(e){var t=Pu(e),n=t%1;return t===t?n?t-n:t:0}function Fu(e){return e?si(Y(e),0,y):0}function Iu(e){if(typeof e==`number`)return e;if(Eu(e))return v;if(du(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=du(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Rn(e);var n=Je.test(e);return n||Ye.test(e)?Yt(e.slice(2),n?2:8):qe.test(e)?v:+e}function Lu(e){return Ja(e,ld(e))}function Ru(e){return e?si(Y(e),-g,g):e===0?e:0}function zu(e){return e==null?``:Ca(e)}var Bu=Qa(function(e,t){if(ns(t)||Zl(t))Ja(t,cd(t),e);else for(var n in t)dt.call(t,n)&&ti(e,n,t[n])}),Vu=Qa(function(e,t){Ja(t,ld(t),e)}),Hu=Qa(function(e,t,n,r){Ja(t,ld(t),e,r)}),Uu=Qa(function(e,t,n,r){Ja(t,cd(t),e,r)}),Wu=Oo(oi);function Gu(e,t){var n=_r(e);return t==null?n:ii(n,t)}var Ku=G(function(e,t){e=rt(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Xo(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ld(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||Kl(d,lt[u])&&!dt.call(e,u))&&(e[u]=o[u])}return e}),qu=G(function(e){return e.push(n,Co),ln(pd,n,e)});function Ju(e,t){return Tn(e,K(t,3),Si)}function Yu(e,t){return Tn(e,K(t,3),Ci)}function Xu(e,t){return e==null?e:bi(e,K(t,3),ld)}function Zu(e,t){return e==null?e:xi(e,K(t,3),ld)}function Qu(e,t){return e&&Si(e,K(t,3))}function $u(e,t){return e&&Ci(e,K(t,3))}function ed(e){return e==null?[]:wi(e,cd(e))}function td(e){return e==null?[]:wi(e,ld(e))}function nd(e,t,r){var i=e==null?n:Ti(e,t);return i===n?r:i}function rd(e,t){return e!=null&&Uo(e,t,ki)}function id(e,t){return e!=null&&Uo(e,t,Ai)}var ad=lo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=mt.call(t)),e[t]=n},df(hf)),od=lo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=mt.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]},K),sd=G(Pi);function cd(e){return Zl(e)?Xr(e):qi(e)}function ld(e){return Zl(e)?Xr(e,!0):Ji(e)}function ud(e,t){var n={};return t=K(t,3),Si(e,function(e,r,i){W(n,t(e,r,i),e)}),n}function dd(e,t){var n={};return t=K(t,3),Si(e,function(e,r,i){W(n,r,t(e,r,i))}),n}var fd=Qa(function(e,t,n){$i(e,t,n)}),pd=Qa(function(e,t,n,r){$i(e,t,n,r)}),md=Oo(function(e,t){var n={};if(e==null)return n;var r=!1;t=_n(t,function(t){return t=Na(t,e),r||=t.length>1,t}),Ja(e,Ao(e),n),r&&(n=ci(n,7,wo));for(var i=t.length;i--;)Ta(n,t[i]);return n});function hd(e,t){return _d(e,kl(K(t)))}var gd=Oo(function(e,t){return e==null?{}:ra(e,t)});function _d(e,t){if(e==null)return{};var n=_n(Ao(e),function(e){return[e]});return t=K(t),ia(e,n,function(e,n){return t(e,n[0])})}function vd(e,t,r){t=Na(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[bs(t[i])];o===n&&(i=a,o=r),e=cu(o)?o.call(e):o}return e}function yd(e,t,n){return e==null?e:pa(e,t,n)}function bd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:pa(e,t,r,i)}var xd=bo(cd),Sd=bo(ld);function Cd(e,t,n){var r=J(e),i=r||eu(e)||Du(e);if(t=K(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:du(e)&&cu(a)?_r(St(e)):{}}return(i?dn:Si)(e,function(e,r,i){return t(n,e,r,i)}),n}function wd(e,t){return e==null||Ta(e,t)}function Td(e,t,n){return e==null?e:Ea(e,t,Ma(n))}function Ed(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Ea(e,t,Ma(r),i)}function Dd(e){return e==null?[]:Bn(e,cd(e))}function Od(e){return e==null?[]:Bn(e,ld(e))}function kd(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Iu(r),r=r===r?r:0),t!==n&&(t=Iu(t),t=t===t?t:0),si(Iu(e),t,r)}function Ad(e,t,r){return t=Pu(t),r===n?(r=t,t=0):r=Pu(r),e=Iu(e),ji(e,t,r)}function jd(e,t,r){if(r&&typeof r!=`boolean`&&Xo(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Pu(e),t===n?(t=e,e=0):t=Pu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=qt();return Wt(e+a*(t-e+Jt(`1e-`+((a+``).length-1))),t)}return ca(e,t)}var Md=ro(function(e,t,n){return t=t.toLowerCase(),e+(n?Nd(t):t)});function Nd(e){return af(zu(e).toLowerCase())}function Pd(e){return e=zu(e),e&&e.replace(Ze,Gn).replace(It,``)}function Fd(e,t,r){e=zu(e),t=Ca(t);var i=e.length;r=r===n?i:si(Y(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function X(e){return e=zu(e),e&&Ae.test(e)?e.replace(j,Kn):e}function Id(e){return e=zu(e),e&&Le.test(e)?e.replace(Ie,`\\$&`):e}var Ld=ro(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Z=ro(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Rd=no(`toLowerCase`);function zd(e,t,n){e=zu(e),t=Y(t);var r=t?ar(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return po(Nt(i),n)+e+po(Mt(i),n)}function Bd(e,t,n){e=zu(e),t=Y(t);var r=t?ar(e):0;return t&&r<t?e+po(t-r,n):e}function Vd(e,t,n){e=zu(e),t=Y(t);var r=t?ar(e):0;return t&&r<t?po(t-r,n)+e:e}function Hd(e,t,n){return n||t==null?t=0:t&&=+t,Kt(zu(e).replace(Re,``),t||0)}function Ud(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Y(t),ua(zu(e),t)}function Wd(){var e=arguments,t=zu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Gd=ro(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Kd(e,t,r){return r&&typeof r!=`number`&&Xo(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=zu(e),e&&(typeof t==`string`||t!=null&&!Su(t))&&(t=Ca(t),!t&&Yn(e))?Fa(or(e),0,r):e.split(t,r)):[]}var qd=ro(function(e,t,n){return e+(n?` `:``)+af(t)});function Jd(e,t,n){return e=zu(e),n=n==null?0:si(Y(n),0,e.length),t=Ca(t),e.slice(n,n+t.length)==t}function Yd(e,t,r){var i=H.templateSettings;r&&Xo(e,t,r)&&(t=n),e=zu(e),t=Uu({},t,i,So);var a=Uu({},t.imports,i.imports,So),o=cd(a),s=Bn(a,o);dn(o,function(e){if(We.test(e))throw new et("Invalid `imports` option passed into `_.template`")});var c,l,u=0,d=t.interpolate||Qe,f=`__p += '`,p=it((t.escape||Qe).source+`|`+d.source+`|`+(d===Me?Ge:Qe).source+`|`+(t.evaluate||Qe).source+`|$`,`g`),m=`//# sourceURL=`+(dt.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Vt+`]`)+`
|
|
@@ -201,7 +201,7 @@ lub „Dalej”, aby użyć urządzeń z poprzedniego procesu wykrywania`,proces
|
|
|
201
201
|
举个简单的例子: 如果可用存储空间出现问题,您就会立即收到通知,而不用再纠结自动化系统的某些部分为何不再正常工作。
|
|
202
202
|
|
|
203
203
|
您可以根据消息类别自由配置用于通知的适配器(如 Telegram)。如果您最喜欢的消息适配器崩溃了,您也可以配置一个替代消息适配器来接管。`,"notifications wizard category":`此类别中的适配器允许您收到系统中的事件通知并向您发送个性化消息。`,"npm error":`npm错误`,npm_warning:`使用此对话框,您可以直接从 %s 安装 Beta/最新适配器版本。这些版本可能尚未经过全面测试,因此仅当您需要这些版本的修复或新功能时才安装它们。当开发人员认为版本稳定时,它将在稳定存储库中进行更新。`,number:`数`,object:`设备`,"object permissions":`设备权限`,"object(s)":`对象`,of:`/`,offline:`offline`,ok:`好的`,once:`运行一次`,online:`online`,"only in this browser session":`仅在此浏览器会话中`,"open web page":`打开插件的网页`,"or reboot server, then ioBroker should restart and you can be sure that all old processes were finished.":`或重新启动服务器,然后NexoWatt EOS应该重新启动,并且您可以确保所有旧进程都已完成。`,os:`操作系统`,"other permissions":`其他权限`,"output events":`输出事件`,"parent name":`父节点名字`,password:`密码`,permissionError:`权限错误`,"place here":`将文件放在这里`,planned:`计划`,platform:`平台`,point:`点`,popular:`流行`,press_discover:`按“发现”查找网络中的设备(之前关闭网络防火墙/流量分析系统!)
|
|
204
|
-
或“下一步”使用先前发现过程中的设备`,process:`处理`,processes:`流程`,protocols_group:`协议`,"pushover wizard description":`有了 NexoWatt EOS Pushover 适配器,您就可以自己向安卓和 iOS 设备发送信息,并使用 Pushover API 的各种功能。通过这些功能,您不仅可以发送简单的文本信息,还可以附加图片和其他文件。您还可以通过设置不同的优先级或为不同事件设置特定的声音,根据个人需要定制通知。`,raw:`原始(仅限专家)`,read:`读`,"read only":`只读`,"read operation":`读`,readme:`自述`,reload:`重新加载`,"reload instance":`重新加载程序`,repeat:`重复`,repo_update_hint:`您已配置为运行“beta”存储库的自动升级,请注意,如果 beta 存储库处于活动状态,则此适配器将根据此配置自动提取 beta 更新!`,repository:`repository`,rest:`休息(只读)`,restart:`自动重启`,"restart script":`重启自动化`,restartLoop:`重新启动循环`,role:`角色`,runtime:`运行`,save:`保存`,"saved:":`已保存:`,"scenes wizard description":`使用 NexoWatt EOS 场景适配器,您可以将多个数据点组合到场景中,只需点击一下即可触发复杂的操作。试想一下,创建一个名为 "影院 "的场景,在这个场景中,Harmony Hub 会打开所有必要的设备,调暗灯光,并在屏幕降低时打开阅读灯。您还可以设置群组,根据场景的活动或非活动状态,为每个场景定义两种不同的连接数据点状态。`,schedule:`日程`,schedule_group:`时间表`,script_group:`自动化`,"select member by double click":`双击选择成员`,"sendto operation":`发送操作`,"serial number (UUID) in license is for other device":`许可证中的序列号 (UUID) 用于其他设备`,service_group:`保养`,severity:`严重`,"show (default)":`显示(默认)`,"show ignored":`显示被忽略`,"show suggested":`显示建议`,"show/hide item":`显示/隐藏项目`,"signal-cmb wizard description":`有了 NexoWatt EOS Signal-CMB 适配器,您就可以使用 Signal 信使通过 CallMeBot 服务发送消息。支持文本内容和表情符号,让您的信息栩栩如生。用户可以方便地了解智能家居中发生的事件,即使在旅行中也能始终掌握最新信息。`,silly:`愚蠢`,"sql wizard description":`使用 NexoWatt EOS SQL 适配器,您可以记录数据,以便对其进行长期可视化或历史分析。SQL 适配器将数据写入外部 SQL 数据库,该数据库可在同一主机或不同主机上运行。也支持 SQLite 数据库。与历史适配器相比,SQL 更适合记录大量数据,但需要手动设置。`,stable:`稳定`,"standalone MCP adapter":`独立式 MCP 适配器`,state:`州`,"state permissions":`状态权限`,stepEnd:`步骤 (至当前值)`,stepMiddle:`步骤 (中间)`,stepStart:`步骤 (值至下一个)`,stop_admin:`您正在尝试停止当前的管理实例。您将无法通过浏览器配置NexoWatt EOS。您可以稍后通过CLI命令“ iob start %s”启动admin。你确定吗?`,storage_group:`存储`,string:`串`,subscribe:`订阅`,sunday:`星期日`,switch:`开关`,switch_db_note:`建议不要在此设置中更改数据库的类型,因为不会进行任何数据迁移。最好使用CLI命令“ iob setup custom”,以便将所有数据迁移到新数据库。确定要在此处切换数据库类型吗?`,"telegram wizard description":`有了 NexoWatt EOS Telegram 适配器,您就可以通过 Telegram Messenger 向自己发送信息,这样当系统发生变化时,您就可以随时了解最新情况。除文本信息外,您还可以发送图片和其他文件。您甚至可以发送问题,并直接在 NexoWatt EOS 中处理答案。`,"temporary log level":`临时日志级别`,terminal:`终端`,"third-party_group":`第三方`,"this 2 weeks":`这2个星期`,"this adapter does not allow multiple instances":`此插件不允许多个程序同时运行`,"this day":`这天`,"this month":`这个月`,"this week":`本星期`,"this year":`今年`,time:`时间`,"time-and-date_group":`时间和日期`,timeOffset:`时间偏移`,title:`标题`,"to apply one item":`申请一件`,"to apply with children":`申请项目和儿童`,"to fix these issues and upgrade command run again.":`解决这些问题并再次运行upgrade命令。`,today:`今天`,tooltip_ack:`已确认`,tooltip_copyState:`将状态值复制到剪贴板`,tooltip_customConfig:`设定值`,tooltip_deleteObject:`删除物件`,tooltip_editObject:`编辑物件`,tooltip_editState:`修改状态值`,tooltip_from:`资源`,tooltip_lc:`最后更改时间`,tooltip_quality:`质量`,tooltip_ts:`时间戳记`,tooltip_user:`用户`,tooltip_value:`值`,true:`正常`,ts:`时间戳`,type:`类型`,unit:`单元`,unknown:`未知`,update:`刷新`,"update adapter information":`更新插件信息`,update_info_no_net:`有关更新控制器的信息,请访问以下页面: <a href="https://github.com/NexoWatt EOS/NexoWatt EOS.docs/blob/master/admin/zh-cn/controller-upgrade.md" target="_blank">Update JS-Contoller</a>`,updated:`刷新`,updates:`刷新`,"updating %s to %s...":`更新 %s 到 %s...`,upload:`上传`,"use GitHub for issues":`我们重视您对我们软件的评分和想法。对于错误报告,请使用我们的 GitHub 问题跟踪器,当您留下评论时,请考虑未解决的问题可能会影响您的体验。您的反馈有助于我们改善。感谢您成为我们社区的一部分!`,"user permissions":`用户权限`,users:`用户`,"users permissions":`用户权限`,utility_group:`实用工具`,val:`值`,value:`值`,"value.from":`来自于`,"value.lc":`上次更新`,"value.q":`质量`,"value.ts":`时间戳`,"value.val":`值`,vehicle_group:`车辆`,version:`版本`,"vis-2 wizard description":`NexoWatt EOS Vis 2 适配器是为您的智能家居提供的现代化、功能强大的可视化解决方案。有了这个适配器,您就可以根据自己的意愿,用现代小部件创建自己的可视化系统。无论您是想将仪表盘设计成简约风格还是具有多种功能,都有无限可能。按自己喜欢的方式设计智能家居界面吧!`,vis_group:`NexoWatt EOS.vis`,visualisation_group:`可视化`,"visualization wizard category":`借助此类适配器,您可以构建仪表板以通过 NexoWatt EOS Visu 应用程序或 Web 界面控制您的家庭。`,"visualization-icons_group":`可视化图标`,"visualization-widgets_group":`可视化小部件`,visualization_group:`可视化`,vote:`投票`,vote21:`选票`,votes:`票数`,votes2:`选票`,warn:`警告`,weather:`天气`,"weather wizard category":`通过天气适配器,您可以获得当地天气信息并将其用于可视化和自动化。`,weather_group:`天气`,"weatherunderground wizard description":`有了 NexoWatt EOS Weather Underground 适配器,您就可以在 NexoWatt EOS 中使用天气数据。例如,这意味着下雨时可以提醒您关闭打开的窗户,或者在暴风雨来临时自动收回遮阳篷。这样,您的智能家居就能更好地适应当前的天气条件,确保更加舒适和安全。`,wetty:`Wetty`,"with js-controller":`带有 js 控制器`,"wizard adapter general description":`从您希望直接安装的适配器中进行选择。您可以稍后在 "适配器 "选项卡中安装其他适配器。`,"wizard welcome description":`此向导将引导您完成新 ioBroker 安装的最重要设置。只需几分钟,所有设置以后都可以更改。`,write:`写`,"write operation":`写`,wrongPassword:`用户名或密码无效`,yesterday:`昨天`,"Åland Islands":`奥兰群岛`,"Serial port":`串口`,"TCP port":`TCP 端口`,"UDP port":`UDP 端口`,"USB device":`USB 设备`,Bluetooth:`蓝牙`,GPIO:`GPIO`,"Also registered by: %s":`也被以下实例注册:%s`,Resource:`资源`,Registered:`注册时间`,"The instance runs and holds the resource":`实例正在运行并占用该资源`,"The instance does not run and would take the resource when started":`实例未运行,启动时将占用该资源`,"In use":`使用中`,Reserved:`已预留`,"Used resources":`已占用的资源`,"No instance has registered a resource":`没有实例注册资源`,'Adapter "%s" allows only one instance, and %s exists already':`适配器 "%s" 只允许一个实例,而 %s 已存在`,'Adapter "%s" allows only one instance per host, and %s exists already on host "%s"':`适配器 "%s" 每个主机只允许一个实例,而 %s 已存在于主机 "%s" 上`,"The admin was updated. Please load the page anew.":`管理界面已更新,请重新加载页面。`,"The connection is not ready yet. Please wait a moment and try again.":`连接尚未就绪。请稍等片刻后重试。`},Gv=`admin.chunkReloadTs`,Kv=2e4;function qv(e){let{message:t,name:n}=typeof e==`object`&&e?e:{message:e};return typeof t==`string`?t.includes(`Failed to fetch dynamically imported module`)||t.includes(`error loading dynamically imported module`)||t.includes(`Importing a module script failed`)||t.includes(`Unable to preload CSS`)||n===`ChunkLoadError`:!1}function Jv(){let e=0;try{e=parseInt(window.sessionStorage.getItem(Gv)||`0`,10)||0}catch{}if(Date.now()-e<Kv)return!1;try{window.sessionStorage.setItem(Gv,Date.now().toString())}catch{}return window.location.reload(),!0}function Yv(e){Jv()&&e.preventDefault()}function Xv(e){return Bt.lazy(()=>e().catch(e=>{if(qv(e)&&Jv())return new Promise(()=>{});throw e}))}x();var Zv=[`tab-overview`,`tab-adapters`,`tab-instances`,`tab-logs`],Qv=[`tab-overview`,`tab-intro`,`tab-adapters`,`tab-instances`,`tab-objects`,`tab-enums`,`tab-logs`,`tab-users`,`tab-hosts`,`tab-files`,`tab-devicemanager`],$v=Xv(()=>r(()=>import(`./Overview-WwP6FjK-.js`),__vite__mapDeps([36,1,2,3,17,25,26,28,37,38]),import.meta.url)),ey=Xv(()=>r(()=>import(`./Adapters-BDxfhfGe.js`),__vite__mapDeps([39,1,2,3,6,7,16,23,29,37,40,8,26,30,41,10,42,43,44,45]),import.meta.url)),ty=Xv(()=>r(()=>import(`./Instances-BaWBemTT.js`),__vite__mapDeps([46,2,1,3,7,11,21,24,26,29,37,40,8,30,43,44,45,47,48,49,50]),import.meta.url)),ny=Xv(()=>r(()=>import(`./Intro-DsfrPrWv.js`),__vite__mapDeps([51,1,2,3,8,14,15,17,20,24,26,37,50]),import.meta.url)),ry=Xv(()=>r(()=>import(`./Logs-Cngy2Opt.js`),__vite__mapDeps([52,1,2,3,16,27,37]),import.meta.url)),iy=Xv(()=>r(()=>import(`./Files-CwUHx0pF.js`),__vite__mapDeps([53,2,1,3,37,44,45]),import.meta.url)),ay=Xv(()=>r(()=>import(`./Objects-DY8KS7zK.js`),__vite__mapDeps([54,2,1,3,5,18,23,32,35,34,37,48,45,42,44,38]),import.meta.url)),oy=Xv(()=>r(()=>import(`./Users-BjTGOjzL.js`),__vite__mapDeps([55,1,2,3,13,19,30,37,56]),import.meta.url)),sy=Xv(()=>r(()=>import(`./Enums-CSzSzWm7.js`),__vite__mapDeps([57,2,1,3,9,13,18,20,28,37,56]),import.meta.url)),cy=Xv(()=>r(()=>import(`./CustomTab-DSPqif6P.js`),__vite__mapDeps([58,2,1,3,37,48]),import.meta.url)),ly=Xv(()=>r(()=>import(`./ConfigManager-CFuOc_kb.js`),__vite__mapDeps([59,1,2,3,22]),import.meta.url)),uy=Xv(()=>r(()=>import(`./Hosts-QkyuASJy.js`),__vite__mapDeps([60,2,1,3,11,12,14,29,37,41,10,42,43,44,45,49]),import.meta.url)),dy=Xv(()=>r(()=>import(`./EasyMode-TwIN5yxu.js`),__vite__mapDeps([61,1,2,3,47,37,48]),import.meta.url)),fy={},py=()=>String(window.NEXOWATT_EOS_ACCESS_ROLE||`unknown`).toLowerCase(),my=()=>[`admin`,`service`].includes(py());(window.location.search||``).replace(/^\?/,``).split(`&`).forEach(e=>{let t=e.split(`=`);t[0]&&(fy[t[0]]=t[1]===void 0||decodeURIComponent(t[1]))});var $={root:{display:`flex`,height:`100%`},appBar:e=>({transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})}),logoWhite:{backgroundColor:`#FFFFFF`},appBarShift:e=>({width:`calc(100% - 180px)`,ml:180/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),appBarShiftEdit:e=>({width:`calc(100% - 250px)`,ml:250/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),appBarShiftCompact:e=>({width:`calc(100% - 50px)`,ml:50/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),menuButton:{marginRight:16},hide:{display:`none`},content:e=>{var t,n,r;return{flexGrow:1,padding:1,paddingTop:0,transition:e.transitions.create(`margin`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowY:`auto`,mt:`${(t=e.mixins.toolbar)==null?void 0:t.minHeight}px`,"@media (min-width:0px) and (orientation: landscape)":{mt:(n=e.mixins.toolbar[`@media (min-width:0px) and (orientation: landscape)`])!=null&&n.minHeight?`${e.mixins.toolbar[`@media (min-width:0px) and (orientation: landscape)`].minHeight}px`:void 0},"@media (min-width:600px)":{mt:(r=e.mixins.toolbar[`@media (min-width:600px)`])!=null&&r.minHeight?`${e.mixins.toolbar[`@media (min-width:600px)`].minHeight}px`:void 0}}},contentMargin:{ml:-180/8},contentMarginEdit:{ml:-250/8},contentMarginCompact:{ml:-50/8},contentShift:e=>({transition:e.transitions.create(`margin`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),ml:0}),expertIcon:{width:22,height:22},expertIconActive:{},baseSettingsButton:{color:`red`},avatarNotVisible:{opacity:0,marginLeft:5,transition:`opacity 0.3s`,width:`initial`},avatarVisible:{opacity:1},cmd:{animation:`1s linear infinite alternate $myEffect`,opacity:.2},errorCmd:{color:`#a90000`,animation:`0.2s linear infinite alternate myEffect2`},performed:e=>({color:e.palette.mode===`light`?`#3bfd44`:`#388e3c`,animation:`0.2s linear infinite alternate myEffect2`}),wrapperButtons:{display:`flex`,marginRight:`auto`,overflowY:`auto`,alignItems:`center`},flexGrow:{flexGrow:2},floatingButtons:{position:`fixed`,top:4,left:4,zIndex:1200,display:`flex`,gap:.5},contentNoAppBar:{mt:0,"@media (min-width:0px) and (orientation: landscape)":{mt:0},"@media (min-width:600px)":{mt:0}},contentMenuButtonSpace:{pt:`44px`},styleVersion:{fontSize:10},wrapperName:{display:`flex`,flexDirection:`column`,marginRight:10},expertBadge:{mt:`11px`,mr:`11px`},siteName:{lineHeight:`48px`,fontSize:24,marginLeft:10,marginRight:10,display:`inline-block`,verticalAlign:`middle`},tooltip:{pointerEvents:`none`}};function hy(e){return e.native||={localStorage:{},sessionStorage:{}},e.native.localStorage||(e.native={localStorage:e.native,sessionStorage:{}}),e.native.sessionStorage||={},e}var gy=1e4,_y=5e3,vy=5e3,yy=1e3;function by(e,t){let n;return Promise.race([e,new Promise((e,r)=>{n=setTimeout(()=>r(Error(`${t} got no answer`)),gy)})]).finally(()=>clearTimeout(n))}function xy(e,t){for(let n of[`localStorage`,`sessionStorage`])for(let[r,i]of Object.entries(t[n]))i===null?delete e[n][r]:e[n][r]=i}var Sy={_id:``,type:`state`,common:{name:`Admin settings`,type:`boolean`,read:!0,write:!1,role:`state`},native:{localStorage:{},sessionStorage:{}}},Cy=class e extends yt{constructor(t){super(t),j(this,`translations`,void 0),j(this,`_tempAllStored`,!0),j(this,`refConfigIframe`,null),j(this,`expireInSecInterval`,null),j(this,`toggleThemePossible`,void 0),j(this,`adminGuiConfig`,void 0),j(this,`logsWorker`,null),j(this,`instancesWorker`,null),j(this,`hostsWorker`,null),j(this,`adaptersWorker`,null),j(this,`objectsWorker`,null),j(this,`repoInfoPromise`,null),j(this,`repoInfoRun`,0),j(this,`guiSettings`,null),j(this,`guiSettingsChanges`,{localStorage:{},sessionStorage:{}}),j(this,`guiSettingsWrite`,Promise.resolve()),j(this,`localStorageTimer`,null),j(this,`guiSettingsRetryTimer`,null),j(this,`languageSet`,!1),j(this,`socket`,null),j(this,`adminInstance`,``),j(this,`newsInstance`,0),j(this,`doNotAskSessionExpiration`,0),j(this,`tabsInfo`,null),j(this,`pendingCommandTimer`,null),j(this,`pendingCommand`,null),j(this,`chatBusy`,!1),j(this,`lastHash`,window.location.hash),j(this,`chatLeaveConfirmed`,!1),j(this,`connectionLostAt`,0),j(this,`localStorageGetItem`,e=>{var t;return(t=this.guiSettings)==null?void 0:t.native.localStorage[e]}),j(this,`localStorageSetItem`,(e,t)=>{if(t===null)t=`null`;else if(t===void 0){this.localStorageRemoveItem(e);return}this.guiSettings&&(this.guiSettings.native.localStorage[e]=t.toString(),this.guiSettingsChanges.localStorage[e]=t.toString()),this.localStorageSave()}),j(this,`localStorageRemoveItem`,e=>{this.guiSettings&&Object.prototype.hasOwnProperty.call(this.guiSettings.native.localStorage,e)&&(delete this.guiSettings.native.localStorage[e],this.guiSettingsChanges.localStorage[e]=null,this.localStorageSave())}),j(this,`sessionStorageGetItem`,e=>{var t;return(t=this.guiSettings)==null?void 0:t.native.sessionStorage[e]}),j(this,`sessionStorageSetItem`,(e,t)=>{if(t===null)t=`null`;else if(t===void 0){this.sessionStorageRemoveItem(e);return}this.guiSettings&&(this.guiSettings.native.sessionStorage[e]=t.toString(),this.guiSettingsChanges.sessionStorage[e]=t.toString()),this.localStorageSave()}),j(this,`sessionStorageRemoveItem`,e=>{this.guiSettings&&Object.prototype.hasOwnProperty.call(this.guiSettings.native.sessionStorage,e)&&(delete this.guiSettings.native.sessionStorage[e],this.guiSettingsChanges.sessionStorage[e]=null,this.localStorageSave())}),j(this,`toggleTranslation`,()=>{(window._localStorage||window.localStorage).setItem(`App.noTranslation`,this.state.noTranslation?`false`:`true`),this.setState({noTranslation:!this.state.noTranslation})}),j(this,`updateHosts`,e=>{let t=JSON.parse(JSON.stringify(this.state.hosts));e.forEach(e=>{let n=t.find(t=>t._id===e.id);if(n){let r=t.indexOf(n);e.obj?t[r]=e.obj:t.splice(r,1)}else t.push(e.obj)}),this.setState({hosts:t})}),j(this,`repoChangeHandler`,()=>{this.readRepoAndInstalledInfo(this.state.currentHost,{update:!0}).then(()=>console.log(`Repo updated!`))}),j(this,`adaptersChangeHandler`,e=>{let t=JSON.parse(JSON.stringify(this.state.installed)),n=!1;e.forEach(e=>{let r=e.id.split(`.`)[2];e.type===`deleted`||!e.obj?t[r]&&(n=!0,delete t[r]):t[r]?Object.keys(t[r]).forEach(i=>{e.obj&&t[r][i]!==e.obj.common[i]&&(t[r][i]=e.obj.common[i],n=!0)}):(t[r]={version:e.obj.common.version},n=!0)}),n&&this.setState({installed:t})}),j(this,`onSessionExpiration`,e=>new Promise(t=>{let n=Math.max(0,e-Date.now()+500);this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.expireInSecInterval=setTimeout(()=>{ln.deleteTokensStatic(),window.location.href=`./index.html?login&eosLogout=timeout`},n),t(!1)})),j(this,`onDiscoveryAlive`,(e,t)=>{!!(t!=null&&t.val)!==this.state.discoveryAlive&&this.setState({discoveryAlive:!!(t!=null&&t.val)})}),j(this,`onDiscoveryObject`,(e,t)=>{let n=gv(t);n!==this.state.discoveryProposals&&this.setState({discoveryProposals:n})}),j(this,`getDiscoveryModal`,()=>this.state.systemConfig&&this.socket?D(Sv,{themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,socket:this.socket,systemConfig:this.state.systemConfig.common,dateFormat:this.state.systemConfig.common.dateFormat,currentHost:this.state.currentHost,defaultLogLevel:this.state.systemConfig.common.defaultLogLevel||`info`,repository:this.state.repository,hosts:this.state.hosts,onClose:()=>yt.doNavigate(null)}):null),j(this,`handleNewNotifications`,async e=>{let t={warning:0,other:0};if(!e)this.setState({noNotifications:t,notifications:{}});else{for(let n of Object.values(e))if(n!=null&&n.result){for(let[e,r]of Object.entries(n.result))if(e!==`system`)for(let e of Object.values(r.categories))for(let n of Object.values(e.instances)){let r=e.severity===`alert`;t[r?`warning`:`other`]+=n.messages.length}}if(this.instancesWorker){let n=await this.instancesWorker.getObjects();this.setState({noNotifications:t,notifications:{notifications:e,instances:n}})}}}),j(this,`showAdaptersWarning`,async(e,t)=>{if(!e||!e[t]||!e[t].result)return;let n=e[t].result;if(n!=null&&n.system&&Object.keys(n.system.categories).length){var r;await((r=this.instancesWorker)==null?void 0:r.getObjects().then(e=>e&&this.setState({showHostWarning:{host:t,instances:e,result:n}})))}}),j(this,`onNews`,async(e,t)=>{if(!this.socket)throw Error(`Socket not initialized`);try{var n;if(!((n=this.state.systemConfig)!=null&&n.common.licenseConfirmed))return;let e=await this.socket.getState(`admin.${this.newsInstance}.info.newsLastId`);if(t!=null&&t.val){let n=null;try{n=JSON.parse(t.val)}catch{console.error(`Cannot parse news: ${t.val}`)}if(n!=null&&n.length&&n[0].id!==(e==null?void 0:e.val)){var r,i,a;let t=await this.socket.getUuid(),o=await this.socket.getHostInfo(this.state.currentHost).catch(()=>null),s=await this.socket.getCompactInstances().catch(()=>null),c;if(this.state.currentHost){let e=await this.socket.getDiagData(this.state.currentHost,`normal`);c=e==null?void 0:e.objectsType}let l=await((r=this.objectsWorker)==null?void 0:r.getObjects()),u=Object.keys(l||{}).length;await((i=this.repoInfoPromise)==null?void 0:i.catch(()=>{}));let d=ad(n,e==null?void 0:e.val,{lang:A.getLanguage(),adapters:this.state.adapters,instances:s||{},nodeVersion:o&&o[`Node.js`]||`?`,npmVersion:o&&o.NPM||`?`,jsControllerVersion:((a=this.state.installed)==null||(a=a[`js-controller`])==null?void 0:a.version)||``,os:o&&o.os||`?`,activeRepo:this.state.systemConfig.common.activeRepo,uuid:t,objectsDbType:c||`jsonl`,noObjects:u});d!=null&&d.length&&this.setState({showNews:{checkNews:d,lastNewsId:e==null?void 0:e.val}})}}}catch(e){console.error(`Could not process news: ${e.stack}`),this.showAlert(`Could not process news: ${e.stack}`,`error`)}}),j(this,`logsWorkerChanged`,e=>{var t;(t=this.logsWorker)==null||t.setCurrentHost(e)}),j(this,`onHashChanged`,()=>{let t=window.location.hash;this.chatBlocksLeaving(e.tabOfHash(t))?(window.history.replaceState(null,``,this.lastHash||`${window.location.pathname}${window.location.search}`),this.setState({chatLeaveDialog:{target:{hash:t},reason:`busy`}})):(this.lastHash=t,this.setState({currentTab:yt.getLocation()},()=>this.setCurrentTabTitle()))}),j(this,`toggleTheme`,t=>{let n=this.state.themeName,r=t||T.toggleTheme(n),i=e.createTheme(r);this.setState({theme:i,themeName:r,themeType:e.getThemeType(i)},()=>{var e,t;(e=this.refConfigIframe)==null||(e=e.contentWindow)==null||e.postMessage(`updateTheme`,`*`),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage({type:`updateTheme`,themeName:r},`*`)})}),j(this,`handleNavigation`,(e,t,n)=>{var r;if(e){if(this.chatBlocksLeaving(e)){this.setState({chatLeaveDialog:{target:{tab:e,subTab:t,param:n},reason:`busy`}});return}this._tempAllStored?(yt.doNavigate(e,t,n),this.lastHash=window.location.hash,this.setState({currentTab:yt.getLocation()})):this.setState({dataNotStoredDialog:!0,dataNotStoredTab:{tab:e,subTab:t,param:n}})}(this.props.width===`xs`||this.props.width===`sm`)&&this.handleDrawerState(q.closed),e||=((r=this.state.currentTab)==null?void 0:r.tab)||``,this.setTitle(e.replace(`tab-`,``))});try{window.alert=e=>{let t=(e==null?void 0:e.toString())??``,n=Date.now();this.isCausedByConnectionLoss(t,n)?console.warn(`Not shown, as the connection to admin is lost: ${t}`):t.toLowerCase().includes(`error`)?(console.error(t),setTimeout(()=>{this.isCausedByConnectionLoss(t,n)?console.warn(`Not shown, as the connection to admin is lost: ${t}`):this.showAlert(t,`error`)},yy)):(console.log(t),this.showAlert(t,`info`))}}catch{}this.translations=Lt;let n={en:Pv,de:Fv,ru:Iv,pt:Lv,nl:Rv,fr:zv,it:Bv,es:Vv,pl:Hv,uk:Uv,"zh-cn":Wv};Object.keys(n).forEach(e=>Object.assign(this.translations[e],n[e])),A.extendTranslations(this.translations),A.setLanguage((window.navigator.language||window.navigator.userLanguage||`en`).substring(0,2).toLowerCase()),this.adminGuiConfig={admin:{menu:{},settings:{},adapters:{},login:{}}};let r=window.vendorPrefix;if(this.toggleThemePossible=!r||r===`@@vendorPrefix@@`||r===`MV`,fy.login){let t=e.createTheme();this.state={login:!0,theme:t,themeName:e.getThemeName(t),themeType:e.getThemeType(t)}}else{let t=(window._localStorage||window.localStorage).getItem(`App.drawerState`),n;n=t?parseInt(t,10):this.props.width===`xs`?q.closed:q.opened;let r=e.createTheme();Object.defineProperty(window,"configNotSaved",{get:()=>this.state.configNotSaved,set:e=>{let t=!e;t!==this._tempAllStored&&(this._tempAllStored=t,this.forceUpdate())},configurable:!0}),this.state={connected:!1,progress:0,ready:!1,lang:`en`,hostname:window.location.hostname,expertMode:!1,chatDockWidth:0,hosts:[],currentHost:``,currentHostName:``,ownHost:``,currentTab:yt.getLocation(),systemConfig:null,user:null,repository:{},installed:{},waitForRestart:!1,tabs:null,config:{},stateChanged:!1,theme:r,themeName:e.getThemeName(r),themeType:e.getThemeType(r),alert:!1,alertType:`info`,alertMessage:``,drawerState:n,editMenuList:!1,tab:null,dataNotStoredDialog:!1,dataNotStoredTab:null,chatLeaveDialog:null,baseSettingsOpened:!1,unsavedDataInDialog:!1,systemSettingsOpened:!1,cmd:null,cmdDialog:!1,commandHost:null,commandError:!1,commandRunning:!1,wizard:!0,performed:!1,showTips:!1,discoveryAlive:!1,discoveryProposals:0,readTimeoutMs:Tv.getReadTimeoutMs(),showSlowConnectionWarning:!1,versionAdmin:``,forceUpdateAdapters:0,noTranslation:(window._localStorage||window.localStorage).getItem(`App.noTranslation`)!==`false`,cloudNotConnected:!1,cloudReconnect:0,showRedirect:``,redirectCountDown:0,triggerAdapterUpdate:0,updating:!1,notificationsDialog:!1,notifications:{},noNotifications:{warning:0,other:0},configNotSaved:!1,login:!1,showHostWarning:null,adapters:{},askForTokenRefresh:null},this.logsWorker=null,this.instancesWorker=null,this.hostsWorker=null}}static getDerivedStateFromError(e){return{hasGlobalError:e}}componentDidCatch(e){this.setState({hasGlobalError:e})}static async checkSsoResponse(){let e=new URLSearchParams(window.location.search);if(e.has(`ssoCode`)){try{let t=await fetch(cr(`sso-token`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e.get(`ssoCode`)})}),n=await t.json();t.ok&&n.access_token&&ln.saveTokensStatic(n,!0)}catch(e){console.error(`Cannot finish the single sign-on: ${e}`)}window.localStorage.removeItem(`oidc_id_token`),window.location.search=``}else if(e.has(`id_token`)&&(window.localStorage.setItem(`oidc_id_token`,e.get(`id_token`)),window.location.search=``),e.has(`ssoLoginResponse`)){let t=JSON.parse(e.get(`ssoLoginResponse`));ln.saveTokensStatic(t,!0),window.location.search=``}}setUnsavedData(e){e!==this.state.unsavedDataInDialog&&this.setState({unsavedDataInDialog:e})}mustInvertBackground(e){if(!e)return!1;let t=T.invertColor(e,!0);return t===`#FFFFFF`&&this.state.themeType===`dark`||t===`#000000`&&this.state.themeType===`light`}localStorageSave(){this.localStorageTimer&&clearTimeout(this.localStorageTimer),this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null),this.localStorageTimer=setTimeout(()=>{this.localStorageTimer=null,this.guiSettingsWrite=this.guiSettingsWrite.then(()=>this.writeGuiSettings())},200)}async writeGuiSettings(){let e=this.guiSettingsChanges;if(!this.guiSettings||!this.socket||!Object.keys(e.localStorage).length&&!Object.keys(e.sessionStorage).length)return;this.guiSettingsChanges={localStorage:{},sessionStorage:{}};let t=`system.adapter.${this.adminInstance}.guiSettings`;try{let n=hy(await by(this.socket.getObject(t),`Reading`)||JSON.parse(JSON.stringify(this.guiSettings)));xy(n.native,e),await by(this.socket.setObject(t,n),`Writing`),this.guiSettings&&(this.guiSettings=n,xy(this.guiSettings.native,this.guiSettingsChanges))}catch(r){var n;for(let t of[`localStorage`,`sessionStorage`])this.guiSettingsChanges[t]={...e[t],...this.guiSettingsChanges[t]};console.warn(`Could not save "${t}": ${r.message}`),(n=this.socket)!=null&&n.isConnected()&&!this.localStorageTimer&&!this.guiSettingsRetryTimer&&(this.guiSettingsRetryTimer=setTimeout(()=>{this.guiSettingsRetryTimer=null,this.localStorageSave()},_y))}}async getGUISettings(){let e=null;if(!this.adminInstance||!this.socket)return;let t=!1;try{e=await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`)}catch(e){t=!0,console.warn(`Could not get "system.adapter.${this.adminInstance}.guiSettings": ${e.message}`)}if(!e&&!t){e=JSON.parse(JSON.stringify(Sy));try{await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,e)}catch(e){console.warn(`Could not update "system.adapter.${this.adminInstance}.guiSettings": ${e.message}`)}}let n;try{n=await this.socket.getState(`system.adapter.${this.adminInstance}.guiSettings`)}catch{n={val:!1}}if(n!=null&&n.val){this.guiSettings=hy(e||JSON.parse(JSON.stringify(Sy))),(Object.keys(this.guiSettingsChanges.localStorage).length||Object.keys(this.guiSettingsChanges.sessionStorage).length)&&(xy(this.guiSettings.native,this.guiSettingsChanges),this.localStorageSave()),window._localStorage={getItem:this.localStorageGetItem,setItem:this.localStorageSetItem,removeItem:this.localStorageRemoveItem},window._sessionStorage={getItem:this.sessionStorageGetItem,setItem:this.sessionStorageSetItem,removeItem:this.sessionStorageRemoveItem};let t=(window._localStorage||window.localStorage).getItem(`App.drawerState`),n;n=t?parseInt(t,10):this.props.width===`xs`?q.closed:q.opened;let r=(window._localStorage||window.localStorage).getItem(`App.noTranslation`)!==`false`;this.setState({guiSettings:!0,drawerState:n,noTranslation:r},()=>{T.getThemeName()!==this.state.theme.name&&this.toggleTheme(T.getThemeName())})}else this.state.guiSettings&&(window._localStorage=void 0,window._sessionStorage=void 0,this.setState({guiSettings:!1}))}async enableGuiSettings(e,t){if(e&&!this.guiSettings&&this.socket){let e=await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`);this.guiSettings=e||JSON.parse(JSON.stringify(Sy)),t||!this.guiSettings.native||!Object.keys(this.guiSettings.native).length?(this.guiSettings.native={localStorage:{},sessionStorage:{}},Object.keys(window.localStorage).forEach(e=>{e!==`getItem`&&e!==`setItem`&&e!==`removeItem`&&e!==`clear`&&e!==`key`&&e!==`length`&&(this.guiSettings.native.localStorage[e]=window.localStorage.getItem(e))}),Object.keys(window.sessionStorage).forEach(e=>{e!==`getItem`&&e!==`setItem`&&e!==`removeItem`&&e!==`clear`&&e!==`key`&&e!==`length`&&(this.guiSettings.native.sessionStorage[e]=window.sessionStorage.getItem(e))}),await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,this.guiSettings),await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!0,ack:!0})):(await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!0,ack:!0}),window.location.reload()),await this.getGUISettings()}else if(!e&&this.guiSettings&&this.socket){if(!await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`))try{await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,Sy)}catch(e){console.error(`Cannot create system.adapter.${this.adminInstance}.guiSettings": ${e}`)}window._localStorage=void 0,window._sessionStorage=void 0,Object.keys(window.localStorage).forEach(e=>window.localStorage.removeItem(e)),Object.keys(window.sessionStorage).forEach(e=>window.sessionStorage.removeItem(e)),Object.keys(this.guiSettings.native.localStorage).forEach(e=>window.localStorage.setItem(e,this.guiSettings.native.localStorage[e])),Object.keys(this.guiSettings.native.sessionStorage).forEach(e=>window.sessionStorage.setItem(e,this.guiSettings.native.sessionStorage[e])),this.guiSettings=null,this.guiSettingsChanges={localStorage:{},sessionStorage:{}},this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null);try{await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!1,ack:!0})}catch(e){window.alert(`Cannot disable settings: ${e}`)}this.setState({guiSettings:!1})}}componentDidMount(){e.checkSsoResponse(),window.addEventListener(`vite:preloadError`,Yv),this.state.login||(window.addEventListener(`hashchange`,this.onHashChanged,!1),this.state.currentTab.tab?this.setTitle(this.state.currentTab.tab.replace(`tab-`,``)):this.handleNavigation(`tab-intro`),this.socket=new ln({protocol:window.location.protocol,host:window.location.hostname,name:`eos-admin`,admin5only:!0,port:e.getPort(),cmdTimeout:this.state.readTimeoutMs,autoSubscribes:[`system.adapter.*`],autoSubscribeLog:!0,tokenTimeoutHandler:this.onSessionExpiration,onProgress:async e=>{if(this.socket){if(e===g.CONNECTING)this.state.connected&&(this.connectionLostAt=Date.now()),this.setState({connected:!1});else if(e===g.READY)try{let e=await this.socket.getVersion();console.log(`Stored version: ${this.state.versionAdmin}, new version: ${e.version}`),this.state.versionAdmin&&this.state.versionAdmin!==e.version&&(window.alert(`New adapter version detected. Reloading...`),setTimeout(()=>window.location.reload(),500)),this.adminInstance||=await this.socket.getCurrentInstance(),await this.getGUISettings();let n={connected:!0,progress:100,versionAdmin:e.version,disableMcp:!0};if(this.state.cmd&&/\b(?:admin|eos-admin)(?:@[-.\w]+)?(?:\s+--debug)?$/.test(this.state.cmd))n.commandRunning=!1,n.forceUpdateAdapters=this.state.forceUpdateAdapters+1,this.closeCmdDialog(()=>{this.setState(n),window.location.reload()});else{try{var t;let e=await this.socket.getObject(`system.adapter.${this.adminInstance}`);n.disableMcp=!0,e!=null&&(t=e.native)!=null&&t.language?e.native.language!==A.getLanguage()&&(console.log(`Language changed to ${e.native.language}`),A.setLanguage(e.native.language),this.languageSet?window.location.reload():this.languageSet=!0):this.socket.systemLang!==A.getLanguage()&&(console.log(`Language changed to ${this.socket.systemLang}`),A.setLanguage(this.socket.systemLang),this.languageSet?window.location.reload():this.languageSet=!0)}catch(e){console.error(`Cannot read admin settings: ${e}`)}this.setState(n)}}catch(e){console.error(`Cannot read version: ${e}`),e===`ioBroker is not connected`&&(setInterval(()=>{this.state.cloudReconnect>0?this.setState({cloudReconnect:this.state.cloudReconnect-1}):window.location.reload()},1e3),this.setState({cloudNotConnected:!0,cloudReconnect:10}))}else this.setState({connected:!0,progress:Math.round(g.READY/e*100)})}},onReady:async()=>{var e;if(!this.socket)throw Error(`Socket not initialized`);this.adminGuiConfig={admin:{menu:{},settings:{},adapters:{},login:{}},...(e=this.socket)==null||(e=e.systemConfig)==null||(e=e.native)==null?void 0:e.vendor},this.adminGuiConfig.admin.menu||={},this.adminGuiConfig.admin.settings||={},this.adminGuiConfig.admin.adapters||={},this.adminGuiConfig.admin.login||={};try{var t,n;try{var r;this.adminInstance||=await this.socket.getCurrentInstance(),this.adminInstance||console.error(`Cannot read admin instance!`);let e=await this.socket.getObject(`system.adapter.${this.adminInstance}`);e!=null&&(r=e.native)!=null&&r.language?A.setLanguage(e.native.language):A.setLanguage(this.socket.systemLang)}catch(e){console.warn(`Cannot read the settings of this admin: ${e.message}`),A.setLanguage(this.socket.systemLang)}this.languageSet=!0;let e=!1;try{e=await this.socket.getIsEasyModeStrict()}catch(e){console.warn(`Cannot read the easy mode: ${e.message}`)}if(await this.getGUISettings(),e){let e=await this.socket.getEasyMode();this.setState({lang:this.socket.systemLang,ready:!0,strictEasyMode:!0,easyModeConfigs:e.configs});return}this.logsWorker||=new hd(this.socket,1e3),this.instancesWorker||=new _d(this.socket),this.hostsWorker||=new vd(this.socket),this.adaptersWorker||=new yd(this.socket),this.objectsWorker||=new bd(this.socket);let a={lang:this.socket.systemLang,ready:!0};try{a.systemConfig=await this.socket.getCompactSystemConfig(),a.wizard=!a.systemConfig.common.licenseConfirmed,a.showTips=!a.wizard&&!a.systemConfig.common.tipsDisabled,await this.findCurrentHost(a),a.currentHost&&this.readRepoAndInstalledInfo(a.currentHost)}catch(e){console.log(`Error reading repo in onReady: ${e.stack}`)}this.adaptersWorker.registerRepositoryHandler(this.repoChangeHandler),this.adaptersWorker.registerHandler(this.adaptersChangeHandler),this.hostsWorker.registerHandler(this.updateHosts),this.hostsWorker.registerNotificationHandler(this.handleNewNotifications);let o=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`);if(a.expertMode=my()&&(o?o===`true`:!!((t=a.systemConfig)!=null&&t.common.expertMode)),this.socket.isSecure||(n=this.socket.systemConfig)!=null&&(n=n.native)!=null&&n.vendor)try{var i;let e=await this.socket.getCurrentUser(),t=await this.socket.getObject(`system.user.${e}`);t!=null&&(i=t.native)!=null&&i.vendor&&Object.assign(this.adminGuiConfig,t.native.vendor),this.socket.isSecure&&t&&this.setState({user:{id:t._id,name:T.getObjectNameFromObj(t,this.socket.systemLang),color:t.common.color,icon:t.common.icon,invertBackground:t.common.color?this.mustInvertBackground(t.common.color):!1,group:await this.getLeadingGroupName(t._id)}})}catch(e){console.error(`Could not determine user to show: ${e.toString()}, ${e.stack}`),this.showAlert(e.toString(),`error`)}this.setState(a,()=>this.setCurrentTabTitle()),this.socket.subscribeState(`system.adapter.discovery.0.alive`,this.onDiscoveryAlive),this.socket.getObject(`system.discovery`).then(e=>this.onDiscoveryObject(`system.discovery`,e)).catch(e=>console.warn(`Cannot read system.discovery: ${e}`)),this.socket.subscribeObject(`system.discovery`,this.onDiscoveryObject),setTimeout(()=>this.logsWorkerChanged(this.state.currentHost),1e3),setTimeout(()=>this.findNewsInstance().then(e=>{var t;this.newsInstance=e,(t=this.socket)==null||t.subscribeState(`admin.${e}.info.newsFeed`,this.onNews)}),5e3),setTimeout(async()=>{var e;let t=await((e=this.hostsWorker)==null?void 0:e.getNotifications(a.currentHost));await this.handleNewNotifications(t)},3e3)}catch(e){console.error(`Error in onReady: ${e.stack}`),this.showAlert(`Error in onReady: ${e.stack}`,`error`),this.setState({ready:!0})}},onError:e=>{console.error(e);let t;t=e instanceof Error&&e.message||e.toString(),t===`ioBroker is not connected`?this.state.cloudNotConnected||(this.showAlert(A.t(t),`error`),setInterval(()=>{this.state.cloudReconnect>0?this.setState({cloudReconnect:this.state.cloudReconnect-1}):window.location.reload()},1e3),this.setState({cloudNotConnected:!0,cloudReconnect:10})):this.showAlert(t,`error`)}}),window.NEXOWATT_EOS_ADMIN_SOCKET=this.socket,window.NEXOWATT_EOS_SOCKET=this.socket,window.dispatchEvent(new CustomEvent(`nexowatt-eos-admin-socket-ready`)))}componentWillUnmount(){var e,t,n,r,i;window.removeEventListener(`hashchange`,this.onHashChanged,!1),window.removeEventListener(`vite:preloadError`,Yv),(e=this.socket)==null||e.unsubscribeState(`system.adapter.discovery.0.alive`,this.onDiscoveryAlive),(t=this.socket)==null||t.unsubscribeObject(`system.discovery`,this.onDiscoveryObject),(n=this.adaptersWorker)==null||n.unregisterRepositoryHandler(this.repoChangeHandler),(r=this.adaptersWorker)==null||r.unregisterHandler(this.adaptersChangeHandler),(i=this.hostsWorker)==null||i.unregisterHandler(this.updateHosts),this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null),this.pendingCommandTimer&&=(clearTimeout(this.pendingCommandTimer),null),this.pendingCommand=null,window._localStorage&&(window._localStorage=void 0,window._sessionStorage=void 0)}async findCurrentHost(e){if(!this.socket)return;if(e.hosts=await this.socket.getCompactHosts(),!this.state.currentHost){let r=(window._localStorage||window.localStorage).getItem(`App.currentHost`),i=e.hosts.find(e=>e._id===r);if(r&&i){var t;e.currentHost=i._id,e.currentHostName=((t=i.common)==null?void 0:t.name)||i._id.replace(`system.host.`,``)}else{var n;e.currentHost=e.hosts[0]._id,e.currentHostName=((n=e.hosts[0].common)==null?void 0:n.name)||e.hosts[0]._id.replace(`system.host.`,``)}}e.ownHost=e.currentHost;let r;try{r=await this.socket.getState(`${e.currentHost}.alive`)}catch(t){r=null,console.warn(`Cannot get state ${e.currentHost}.alive: ${t}`)}if(!(r!=null&&r.val))for(let t=0;t<e.hosts.length;t++)r=await this.socket.getState(`${e.hosts[t]._id}.alive`),r!=null&&r.val&&(e.currentHost=e.hosts[t]._id,e.currentHostName=e.hosts[t].common.name)}renderTokenTimeoutDialog(){return this.state.askForTokenRefresh?M(vt,{open:!0,onClose:()=>e.logout(),children:[M(pe,{children:[D(ve,{children:A.t(`ra_Session will expire in %s seconds. Continue?`,Math.round((this.state.askForTokenRefresh.expireAt-Date.now())/1e3))}),D(`div`,{children:D(E,{label:A.t(`ra_Do not ask for next 2 hours in this session`),control:D(y,{checked:this.state.askForTokenRefresh.doNotAsk,onChange:()=>{var e;let t={...this.state.askForTokenRefresh};t.doNotAsk=!((e=this.state.askForTokenRefresh)!=null&&e.doNotAsk),this.setState({askForTokenRefresh:t})}})})})]}),M(ue,{children:[D(P,{onClick:()=>{var e,t;let n=(e=this.state.askForTokenRefresh)==null?void 0:e.resolve;(t=this.state.askForTokenRefresh)!=null&&t.doNotAsk&&(this.doNotAskSessionExpiration=Date.now()+72e5),this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.setState({askForTokenRefresh:null},()=>n==null?void 0:n(!0))},variant:`contained`,startIcon:D(Hr,{}),children:A.t(`ra_Continue`)}),D(P,{onClick:()=>e.logout(),variant:`outlined`,color:`grey`,startIcon:D(Or,{}),children:A.t(`ra_Logout`)})]})]}):null}async findNewsInstance(){if(this.socket)for(let e=0;e<200;e++)try{let t=await this.socket.getState(`system.adapter.eos-admin.${e}.alive`);if(t!=null&&t.val)return e}catch(e){console.error(`Cannot find news instance: ${e.stack}`),this.showAlert(`Cannot find news instance: ${e.stack}`,`error`)}return 0}renderNotificationsDialog(){var e,t;return!this.state.notificationsDialog||!this.state.systemConfig||!this.socket?null:D(Ws,{notifications:((e=this.state.notifications)==null?void 0:e.notifications)||{},instances:((t=this.state.notifications)==null?void 0:t.instances)||{},onClose:()=>this.setState({notificationsDialog:!1}),ackCallback:(e,t)=>this.socket.clearNotifications(e,t),dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,socket:this.socket})}renderHostWarningDialog(){return!this.state.showHostWarning||!this.state.systemConfig||!this.socket?null:D(dd,{instances:this.state.showHostWarning.instances,messages:this.state.showHostWarning.result.system.categories,dateFormat:this.state.systemConfig.common.dateFormat,themeType:this.state.themeType,ackCallback:e=>this.socket.clearNotifications(this.state.showHostWarning.host,e),onClose:()=>this.setState({showHostWarning:null})})}renderNewsDialog(){return!this.state.showNews||!this.socket?null:D(od,{newsArr:this.state.showNews.checkNews,current:this.state.showNews.lastNewsId,onSetLastNewsId:async e=>{e&&await this.socket.setState(`admin.${this.newsInstance}.info.newsLastId`,{val:e,ack:!0}),this.setState({showNews:null})}})}renderTipsDialog(){return!this.state.showTips||this.state.wizard||this.state.showNews||this.state.showHostWarning?null:D(Nv,{t:A.t,lang:this.state.lang,lastTipId:(window._localStorage||window.localStorage).getItem(e.LAST_TIP_ID),onClose:(t,n)=>{(window._localStorage||window.localStorage).setItem(e.LAST_TIP_ID,n),this.setState({showTips:!1}),t&&this.disableTips()}})}async disableTips(){if(this.socket)try{var e;let t=await this.socket.getSystemConfig(!0);t!=null&&t.common&&!t.common.tipsDisabled&&(t.common.tipsDisabled=!0,await this.socket.setSystemConfig(t)),(e=this.state.systemConfig)!=null&&e.common&&this.setState({systemConfig:{...this.state.systemConfig,common:{...this.state.systemConfig.common,tipsDisabled:!0}}})}catch(e){this.showAlert(`Cannot save system configuration: ${e.toString()}`,`error`)}}renderSlowConnectionWarning(){return this.state.showSlowConnectionWarning?D(Tv,{readTimeoutMs:this.state.readTimeoutMs,t:A.t,onClose:e=>{e?this.setState({showSlowConnectionWarning:!1,readTimeoutMs:e},()=>this.readRepoAndInstalledInfo(this.state.currentHost,{offerLongerTimeout:!0})):this.setState({showSlowConnectionWarning:!1})}}):null}readRepoAndInstalledInfo(e,t){let n=this.readRepoAndInstalledInfoRun(e,++this.repoInfoRun,t);return this.repoInfoPromise=n,n}async readRepoAndInstalledInfoRun(e,t,n){if(!this.socket)throw Error(`Socket not initialized`);let r=n==null?void 0:n.update,i=()=>{n!=null&&n.offerLongerTimeout&&this.setState({showSlowConnectionWarning:!0})},[a,o,s]=await Promise.all([this.socket.getCompactRepository(e,r,this.state.readTimeoutMs).catch(e=>(window.alert(`Cannot getRepositoryCompact: ${e}`),e.toString().includes(`timeout`)&&i(),{})),this.socket.getCompactInstalled(e,r,this.state.readTimeoutMs).catch(e=>(window.alert(`Cannot getInstalled: ${e}`),e.toString().includes(`timeout`)&&i(),{})),this.socket.getCompactAdapters(r).then(e=>(t===this.repoInfoRun&&this.setState({adapters:e}),e)).catch(e=>(window.alert(`Cannot read adapters: ${e}`),{}))]);t===this.repoInfoRun&&(o&&s&&Object.keys(s).forEach(e=>{o[e]&&s[e].iv&&(o[e].ignoreVersion=s[e].iv)}),this.setState({repository:a,installed:o,adapters:s}))}static tabOfHash(e){return e.replace(/^#/,``).split(`/`)[0]}static isAdminTab(e){return!e||Qv.includes(e)}chatBlocksLeaving(t){return this.chatLeaveConfirmed?(this.chatLeaveConfirmed=!1,!1):this.chatBusy&&e.isAdminTab(e.tabOfHash(this.lastHash))&&!e.isAdminTab(t)}assistantNavigate(t){let n=t.startsWith(`#`)?t:`#${t}`;return e.isAdminTab(e.tabOfHash(n))?(window.location.hash=n,Promise.resolve(!0)):new Promise(e=>this.setState({chatLeaveDialog:{target:{hash:n},reason:`assistant`,resolve:e}}))}onChatLeaveDialog(e){let t=this.state.chatLeaveDialog;this.setState({chatLeaveDialog:null},()=>{var n;t==null||(n=t.resolve)==null||n.call(t,e);let r=t==null?void 0:t.target;e&&r&&(this.chatLeaveConfirmed=!0,`hash`in r?window.location.hash=r.hash:this.handleNavigation(r.tab,r.subTab,r.param))})}static getPort(){let t=parseInt(window.location.port,10);if(Number.isNaN(t))switch(e.getProtocol()){case`https:`:t=443;break;case`http:`:t=80}return t&&t!==3e3||(t=8081),t}static getProtocol(){return window.location.protocol}static createTheme(e){return a(T.getThemeName(e))}static getThemeName(e){return e.name}static getThemeType(e){return e.palette.mode}renderHostSelector(){return!this.socket||!this.hostsWorker?null:D(Xs,{name:`admin.appBar.hostSelector`,config:this.adminGuiConfig,children:D(Zu,{themeType:this.state.themeType,expertMode:this.state.expertMode,socket:this.socket,hostsWorker:this.hostsWorker,currentHost:this.state.currentHost,setCurrentHost:(e,t)=>{this.setState({currentHostName:e,currentHost:t},async()=>{var e;this.logsWorkerChanged(t),(window._localStorage||window.localStorage).setItem(`App.currentHost`,t),await this.readRepoAndInstalledInfo(t,{offerLongerTimeout:!0});let n=await((e=this.hostsWorker)==null?void 0:e.getNotifications(t));await this.handleNewNotifications(n)})}})})}setCurrentTabTitle(){this.setTitle(this.state.currentTab.tab.replace(`tab-`,``))}setTitle(e){document.title=`${e} - ${this.state.currentHostName||`NexoWatt EOS`}`}getCurrentTab(){var e;if(!this.socket||!this.hostsWorker||!this.adaptersWorker||!this.instancesWorker||!this.objectsWorker||!this.state.systemConfig||!this.logsWorker)return null;if((e=this.state)!=null&&(e=e.currentTab)!=null&&e.tab){if(this.state.currentTab.tab===`tab-adapters`){let e=this.props.width===`xs`||this.props.width===`sm`,t=!e&&this.state.drawerState===q.opened,n=e||this.state.drawerState===q.closed;return D(ct,{fallback:D(Bc,{}),children:D(ey,{theme:this.state.theme,triggerUpdate:this.state.triggerAdapterUpdate,forceUpdateAdapters:this.state.forceUpdateAdapters,adaptersWorker:this.adaptersWorker,instancesWorker:this.instancesWorker,themeType:this.state.themeType,systemConfig:this.state.systemConfig,socket:this.socket,adminHost:this.state.ownHost,hostsWorker:this.hostsWorker,currentHost:this.state.currentHost,ready:this.state.ready&&this.state.connected,t:A.t,lang:A.getLanguage(),expertMode:this.state.expertMode,executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),commandRunning:this.state.commandRunning,onSetCommandRunning:e=>this.setState({commandRunning:e}),menuOpened:t,menuClosed:n,adminGuiConfig:this.adminGuiConfig,toggleTranslation:this.toggleTranslation,noTranslation:this.state.noTranslation,adminInstance:this.adminInstance,currentAdminVersion:this.state.versionAdmin,onUpdating:e=>this.setState({updating:e}),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`adapters`)})}if(this.state.currentTab.tab===`tab-instances`)return D(ct,{fallback:D(Bc,{}),children:D(ty,{menuPadding:this.state.drawerState===q.closed?0:this.state.drawerState===q.opened?this.state.editMenuList?250:180:50,socket:this.socket,instancesWorker:this.instancesWorker,lang:A.getLanguage(),hostname:this.state.hostname,adminInstance:this.adminInstance,repository:this.state.repository,hosts:this.state.hosts,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,expertMode:this.state.expertMode,currentHost:this.state.currentHost,currentHostName:this.state.currentHostName,t:A.t,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,width:this.props.width,configStored:e=>this.allStored(e),executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),inBackgroundCommand:this.state.commandError||this.state.performed,onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},handleNavigation:this.handleNavigation,hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`instances`)});if(this.state.currentTab.tab===`tab-overview`)return D(ct,{fallback:D(Bc,{}),children:D($v,{t:A.t,lang:this.state.lang,socket:this.socket,theme:this.state.theme,themeType:this.state.themeType,currentHost:this.state.currentHost,currentHostName:this.state.currentHostName,hostsWorker:this.hostsWorker,instancesWorker:this.instancesWorker,objectsWorker:this.objectsWorker,logsWorker:this.logsWorker,expertMode:this.state.expertMode,installed:this.state.installed,repository:this.state.repository,handleNavigation:e=>this.handleNavigation(e),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`overview`)});if(this.state.currentTab.tab===`tab-intro`)return D(ct,{fallback:D(Bc,{}),children:D(ny,{hostname:this.state.hostname,adminInstance:this.adminInstance,instancesWorker:this.instancesWorker,hostsWorker:this.hostsWorker,showAlert:(e,t)=>this.showAlert(e,t),socket:this.socket,t:A.t,lang:A.getLanguage(),theme:this.state.theme},`intro`)});if(this.state.currentTab.tab===`tab-logs`)return D(ct,{fallback:D(Bc,{}),children:D(ry,{t:A.t,width:this.props.width,lang:this.state.lang,socket:this.socket,themeType:this.state.themeType,theme:this.state.theme,ready:this.state.ready,logsWorker:this.logsWorker,expertMode:this.state.expertMode,currentHost:this.state.currentHost,hostsWorker:this.hostsWorker,clearErrors:()=>this.clearLogErrors(),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`logs`)});if(this.state.currentTab.tab===`tab-files`)return D(ct,{fallback:D(Bc,{}),children:D(iy,{ready:this.state.ready,t:A.t,expertMode:this.state.expertMode,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`files`)});if(this.state.currentTab.tab===`tab-users`)return D(ct,{fallback:D(Bc,{}),children:D(oy,{ready:this.state.ready,t:A.t,expertMode:this.state.expertMode,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`users`)});if(this.state.currentTab.tab===`tab-enums`)return D(ct,{fallback:D(Bc,{}),children:D(sy,{t:A.t,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`enums`)});if(this.state.currentTab.tab===`tab-objects`)return D(ct,{fallback:D(Bc,{}),children:D(ay,{t:A.t,theme:this.state.theme,themeName:this.state.themeName,themeType:this.state.themeType,expertMode:this.state.expertMode,objectsWorker:this.objectsWorker,lang:A.getLanguage(),socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma})},`objects`);if(this.state.currentTab.tab===`tab-hosts`)return D(ct,{fallback:D(Bc,{}),children:D(uy,{socket:this.socket,lang:A.getLanguage(),hostsWorker:this.hostsWorker,toggleTranslation:this.toggleTranslation,noTranslation:this.state.noTranslation,themeType:this.state.themeType,theme:this.state.theme,expertMode:this.state.expertMode,t:A.t,currentHost:this.state.currentHost,executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),systemConfig:this.state.systemConfig,showAdaptersWarning:this.showAdaptersWarning,adminInstance:this.adminInstance,onUpdating:e=>this.setState({updating:e})})});if(this.state.currentTab.tab===`tab-devicemanager`)return D(ct,{fallback:D(Bc,{}),children:D(ly,{themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma},this.state.currentTab.tab)});let e=this.state.currentTab.tab.match(/^tab-([-\w]+?)(?:-(\d+))?$/);if(e){var t;let n=(t=this.tabsInfo)==null?void 0:t.find(t=>t.name===e[0]||t.name===`tab-${e[1]}`);return D(ct,{fallback:D(Bc,{}),children:D(cy,{hostname:this.state.hostname,adminInstance:this.adminInstance,hosts:this.state.hosts,instancesWorker:this.instancesWorker,tab:this.state.currentTab.tab,themeName:this.state.themeName,theme:this.state.theme,expertMode:this.state.expertMode,socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},icon:n==null?void 0:n.icon,supportsLoadingMessage:n==null?void 0:n.supportsLoadingMessage},this.state.currentTab.tab)})}}return null}clearLogErrors(){var e,t;(e=this.logsWorker)==null||e.resetErrors(),(t=this.logsWorker)==null||t.resetWarnings()}getCurrentDialog(){if(this.state&&this.state.currentTab&&this.state.currentTab.dialog){if(this.state.currentTab.dialog===`system`)return this.getSystemSettingsDialog();if(this.state.currentTab.dialog===`discovery`)return this.getDiscoveryModal()}return null}getSystemSettingsDialog(){return D(Ku,{adminGuiConfig:this.adminGuiConfig,width:this.props.width,currentHost:this.state.currentHost,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,onClose:async e=>{var t;yt.doNavigate(null);let n=await((t=this.socket)==null?void 0:t.getObject(`system.config`));n&&(e?this.setState({triggerAdapterUpdate:this.state.triggerAdapterUpdate+1,systemConfig:n}):this.setState({systemConfig:n}))},lang:this.state.lang,socket:this.socket,currentTab:this.state.currentTab,expertModeFunc:e=>{(window._sessionStorage||window.sessionStorage).removeItem(`App.expertMode`);let t=JSON.parse(JSON.stringify(this.state.systemConfig));t.common.expertMode=e,this.setState({expertMode:e,systemConfig:t})},t:A.t},`systemSettings`)}handleAlertClose(e,t){t!==`clickaway`&&this.setState({alert:!1})}isCausedByConnectionLoss(e,t){var n;return e.includes(`notConnectedError`)?!0:this.connectionLostAt?!((n=this.socket)!=null&&n.isConnected())||this.connectionLostAt>t-vy:!1}getConnectionLostText(){return this.connectionLostAt?A.t(`Connection to admin lost. Waiting for reconnection...`):void 0}showAlert(e,t){t!==`error`&&t!==`warning`&&t!==`info`&&t!==`success`&&(t=`info`);let n;n=typeof e==`string`?e:e instanceof Error?e.message||e.toString():e==null?`null`:e.toString(),this.setState({alert:!0,alertType:t,alertMessage:n})}handleDrawerState(e){(window._localStorage||window.localStorage).setItem(`App.drawerState`,e.toString()),this.setState({drawerState:e})}static logout(){ln.deleteTokensStatic(),window.location.port===`3000`?window.location.href=`${window.location.protocol}//${window.location.hostname}:8081/logout?dev`:window.location.href=`./logout?origin=${window.location.pathname}`}allStored(e){this._tempAllStored!==e&&(this._tempAllStored=e,this.forceUpdate())}closeDataNotStoredDialog(){this.setState({dataNotStoredDialog:!1})}confirmDataNotStored(){this._tempAllStored=!0,this.setState({dataNotStoredDialog:!1},()=>{var e,t,n;return this.handleNavigation((e=this.state.dataNotStoredTab)==null?void 0:e.tab,(t=this.state.dataNotStoredTab)==null?void 0:t.subTab,(n=this.state.dataNotStoredTab)==null?void 0:n.param)})}executeCommand(e,t,n,r){if(typeof t==`boolean`&&(n=t,t=void 0),!(this.state.connected&&this.state.ready&&this.socket&&(typeof this.socket.isConnected!=`function`||this.socket.isConnected()))){if(this.pendingCommand){this.showAlert(`EOS stellt die Verbindung noch her. Ein Installations- oder Updatebefehl wartet bereits.`,`warning`);return}let i={cmd:e,host:t,callback:n||void 0,files:r,started:Date.now()};this.pendingCommand=i,this.showAlert(`EOS stellt die Verbindung noch her. Der Befehl wird automatisch gestartet, sobald das System bereit ist.`,`info`);let a=()=>{this.pendingCommand===i&&(this.state.connected&&this.state.ready&&this.socket&&(typeof this.socket.isConnected!=`function`||this.socket.isConnected())?(this.pendingCommand=null,this.pendingCommandTimer=null,this.executeCommand(i.cmd,i.host||void 0,i.callback,i.files)):Date.now()-i.started>=6e4?(this.pendingCommand=null,this.pendingCommandTimer=null,this.showAlert(`Der Befehl wurde nicht gestartet, weil die EOS-Verbindung innerhalb von 60 Sekunden nicht bereit war.`,`error`)):this.pendingCommandTimer=setTimeout(a,500))};this.pendingCommandTimer=setTimeout(a,250)}else this.state.commandRunning?this.showAlert(`Es läuft bereits ein Installations- oder Updatebefehl.`,`warning`):this.state.performed||this.state.commandError?this.setState({cmd:null,cmdDialog:!1,commandError:!1,performed:!1,callback:null,commandHost:null,cmdFiles:null},()=>this.setState({cmd:e,cmdDialog:!0,callback:n,commandHost:t||this.state.currentHost,cmdFiles:r||null})):(console.log(`Execute: ${e}`),this.setState({cmd:e,cmdDialog:!0,callback:n,commandHost:t||this.state.currentHost,cmdFiles:r||null}))}closeCmdDialog(e){this.setState({cmd:null,cmdDialog:!1,commandError:!1,performed:!1,callback:null,commandHost:null,cmdFiles:null},()=>e&&e())}renderWizardDialog(){return this.state.wizard?D(Ll,{executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),host:this.state.currentHost,socket:this.socket,themeName:this.state.themeName,themeType:this.state.themeType,toggleTheme:this.toggleTheme,lang:A.getLanguage(),onClose:e=>{this.setState({wizard:!1,showRedirect:e,redirectCountDown:10,lang:A.getLanguage()},()=>{this.state.showRedirect&&setInterval(()=>{this.state.redirectCountDown>0?this.setState({redirectCountDown:this.state.redirectCountDown-1}):window.location.href=this.state.showRedirect},1e3)})},onNavigate:(e,t,n)=>{yt.doNavigate(e,t,n),window.location.reload()}}):null}showRedirectDialog(){if(this.state.showRedirect){var e;return M(vt,{open:!0,onClose:()=>{},children:[D(S,{children:A.t(`Waiting for admin restart...`)}),D(pe,{children:D(ve,{children:A.t(`Redirect in %s second(s)`,this.state.redirectCountDown)})}),M(ue,{children:[window.sidebar||window.opera&&window.print||window.document.all&&(e=window.external)!=null&&e.AddFavorite?D(P,{onClick:()=>{if(window.sidebar&&this.state.showRedirect)window.sidebar.addPanel(`NexoWatt EOS Admin`,this.state.showRedirect,``);else if(window.opera&&this.state.showRedirect&&window.print){let e=document.createElement(`a`);e.setAttribute(`href`,this.state.showRedirect),e.setAttribute(`title`,`NexoWatt EOS Admin`),e.setAttribute(`rel`,`sidebar`),e.click()}else document.all&&window.external.AddFavorite(this.state.showRedirect,`NexoWatt EOS Admin`)},children:A.t(`Bookmark admin`)}):null,this.state.redirectCountDown?D(P,{variant:`contained`,onClick:()=>this.state.showRedirect&&(window.location.href=this.state.showRedirect),children:A.t(`Go to admin now`)}):null]})]})}return null}renderCommandDialog(){return this.state.cmd&&this.socket?D(Js,{onSetCommandRunning:e=>this.setState({commandRunning:e}),onClose:()=>this.closeCmdDialog(()=>this.setState({commandRunning:!1})),visible:this.state.cmdDialog,callback:this.state.callback,onInBackground:()=>this.setState({cmdDialog:!1}),cmd:this.state.cmd,files:this.state.cmdFiles||void 0,errorFunc:()=>this.setState({commandError:!0}),performed:()=>this.setState({performed:!0}),inBackground:this.state.commandError||this.state.performed,commandError:this.state.commandError,socket:this.socket,host:this.state.commandHost||this.state.currentHost,ready:this.state.ready&&this.state.connected,t:A.t}):null}async getLeadingGroupName(e){if(!this.socket)throw Error(`Socket not ready`);try{let t=await this.socket.getForeignObjects(`system.group.*`,`group`),n=Object.values(t||{}).filter(t=>{var n;return t==null||(n=t.common)==null||(n=n.members)==null?void 0:n.includes(e)}),r=n.find(e=>e._id===`system.group.administrator`)||n[0];return r?T.getObjectNameFromObj(r,this.socket.systemLang):``}catch(t){return console.warn(`Cannot read groups of ${e}: ${t}`),``}}renderSiteName(){var e;let t=(e=this.state.systemConfig)==null||(e=e.common)==null?void 0:e.siteName;return t?D(`div`,{style:$.siteName,children:t}):null}needsMenuButtonSpace(){var e;return!((e=this.state.systemConfig)!=null&&(e=e.common)!=null&&e.siteName)&&this.state.drawerState===q.closed}renderFloatingButtons(){let e=this.state.drawerState===q.closed,t=this.state.cmd&&!this.state.cmdDialog;return!e&&!t?null:M(N,{sx:$.floatingButtons,children:[e?D(R,{onClick:()=>this.handleDrawerState(q.opened),children:D(_t,{})}):null,t?D(R,{onClick:()=>this.setState({cmdDialog:!0}),children:D(Fr,{style:this.state.commandError?$.errorCmd:this.state.performed?T.getStyle(this.state.theme,$.performed):$.cmd})}):null]})}renderAlertSnackbar(){return D(nn,{open:this.state.alert,autoHideDuration:6e3,onClose:()=>this.handleAlertClose(),children:D(ae,{severity:this.state.alertType,variant:`filled`,onClose:()=>this.handleAlertClose(),children:this.state.alertMessage})})}renderDialogConfirm(){return this.state.dataNotStoredDialog?D(Yt,{title:A.t(`ra_Please confirm`),text:A.t(`ra_Some data are not stored. Discard?`),ok:A.t(`ra_Discard`),cancel:A.t(`ra_Cancel`),onClose:e=>e?this.confirmDataNotStored():this.closeDataNotStoredDialog()}):null}renderChatLeaveDialog(){if(!this.state.chatLeaveDialog)return null;let e=this.state.chatLeaveDialog.reason===`busy`;return D(Yt,{title:A.t(`ra_Please confirm`),text:A.t(e?`The assistant is still working on an answer, which is lost on this tab. Leave anyway?`:`The assistant is not available on this tab and will be closed. Continue?`),ok:A.t(e?`Leave anyway`:`Continue`),cancel:A.t(`ra_Cancel`),onClose:e=>this.onChatLeaveDialog(e)})}renderExpertDialog(){return this.state.expertModeDialog?D($u,{onClose:e=>{if(e===`openSettings`)yt.doNavigate(null,`system`);else if(e){var t;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage(`updateExpertMode`,`*`),this.setState({expertModeDialog:!1,expertMode:!this.state.expertMode})}else this.state.expertModeDialog&&this.setState({expertModeDialog:!1})},expertMode:this.state.expertMode}):null}renderShowGuiSettings(){return this.state.showGuiSettings?M(Ft,{anchorEl:this.state.showGuiSettings,open:!0,onClose:()=>this.setState({showGuiSettings:null}),children:[D(Xt,{onClick:()=>{this.setState({showGuiSettings:null}),this.enableGuiSettings(!0).catch(e=>console.error(`Cannot enable GUI settings: ${e}`))},children:A.t(`Use settings of other browsers`)}),D(Xt,{onClick:()=>{this.setState({showGuiSettings:null}),this.enableGuiSettings(!0,!0).catch(e=>console.error(`Cannot enable GUI settings: ${e}`))},children:A.t(`Use settings of this browser`)}),M(Xt,{onClick:()=>this.setState({showGuiSettings:null}),children:[D(Gt,{children:D(Rt,{fontSize:`small`})}),D(ht,{children:A.t(`Cancel`)})]})]}):null}renderMenuButtons(){var e;let t=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`),n=!t||t===`true`==!!((e=this.state.systemConfig)!=null&&e.common.expertMode),r=this.state.noNotifications.warning+this.state.noNotifications.other;return M(Me,{children:[D(Tt,{title:A.t(`Notifications`),slotProps:{popper:{sx:$.tooltip}},children:D(R,{disableRipple:!r,style:{opacity:r?1:.3},onClick:r?()=>this.setState({notificationsDialog:!0}):void 0,children:D(Ct,{badgeContent:this.state.noNotifications.other+this.state.noNotifications.warning,color:this.state.noNotifications.warning>0?`error`:`secondary`,max:99,children:D(Mr,{})})})}),D(Xs,{name:`admin.appBar.discovery`,config:this.adminGuiConfig,children:this.state.discoveryAlive?D(Tt,{title:this.state.discoveryProposals?`${A.t(`Discovery devices`)} - ${A.t(`New adapter proposals`)}: ${this.state.discoveryProposals}`:A.t(`Discovery devices`),slotProps:{popper:{sx:$.tooltip}},children:D(R,{onClick:()=>yt.doNavigate(null,`discovery`),children:D(Ct,{badgeContent:this.state.discoveryProposals,color:`secondary`,max:99,children:D(Nt,{})})})}):D(`div`,{style:{display:`none`}})}),this.toggleThemePossible?D(Xs,{name:`admin.appBar.toggleTheme`,config:this.adminGuiConfig,children:D(Ae,{toggleTheme:this.toggleTheme,themeName:this.state.themeName,t:A.t})}):null,my()?D(Xs,{name:`admin.appBar.expertMode`,config:this.adminGuiConfig,children:D(Tt,{title:`${A.t(`Toggle expert mode`)} ${n?``:` (${A.t(`only in this browser session`)})`}`,slotProps:{popper:{sx:$.tooltip}},children:D(Ct,{color:`secondary`,variant:`dot`,sx:{"& .MuiBadge-badge":$.expertBadge},invisible:n,children:D(R,{"data-eos-expert-control":`1`,onClick:()=>{var e;if(!!((e=this.state.systemConfig)!=null&&e.common.expertMode)==!this.state.expertMode){var t;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),this.setState({expertMode:!this.state.expertMode}),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage(`updateExpertMode`,`*`)}else if((window._sessionStorage||window.sessionStorage).getItem(`App.doNotShowExpertDialog`)===`true`){var n;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),this.setState({expertMode:!this.state.expertMode}),(n=this.refConfigIframe)==null||(n=n.contentWindow)==null||n.postMessage(`updateExpertMode`,`*`)}else this.setState({expertModeDialog:!0})},style:{color:this.state.expertMode?this.state.theme.palette.expert:void 0},color:`default`,children:D(At,{style:{...$.expertIcon,...this.state.expertMode?$.expertIconActive:void 0}})})})})}):null,my()&&this.state.expertMode?D(Tt,{title:A.t(`Synchronize admin settings between all opened browser windows`),slotProps:{popper:{sx:$.tooltip}},children:D(R,{onClick:e=>this.state.guiSettings?this.enableGuiSettings(!1):this.setState({showGuiSettings:e.target}),style:{color:this.state.guiSettings?this.state.theme.palette.expert:void 0},children:this.state.guiSettings?D(U,{}):D(Vr,{})})}):null]})}renderToolbar(e){let t=T.getStyle(this.state.theme,$.performed);return M(It,{children:[D(R,{size:`large`,edge:`start`,style:{...$.menuButton,...!e&&this.state.drawerState!==q.closed?$.hide:void 0},onClick:()=>this.handleDrawerState(q.opened),children:D(_t,{})}),M(`div`,{style:$.wrapperButtons,children:[D(`div`,{style:$.flexGrow}),this.state.cmd&&!this.state.cmdDialog&&D(R,{size:`large`,onClick:()=>this.setState({cmdDialog:!0}),children:D(Fr,{style:this.state.commandError?$.errorCmd:this.state.performed?t:$.cmd})})]}),this.renderSiteName(),this.state.drawerState!==q.opened&&!this.state.expertMode&&window.innerWidth>450&&M(w,{container:!0,style:{...$.avatarNotVisible,...this.state.drawerState===q.opened?void 0:$.avatarVisible},spacing:1,sx:{alignItems:`center`},children:[this.state.user?null:M(N,{component:`div`,style:$.wrapperName,children:[D(F,{children:`admin`}),!this.adminGuiConfig.icon&&this.state.versionAdmin&&M(F,{style:{...$.styleVersion,color:this.state.themeType===`dark`?`#ffffff80`:`#00000080`},children:[`v`,this.state.versionAdmin]})]}),D(w,{children:D(`a`,{href:`#easy`,onClick:e=>e.preventDefault(),style:{color:`inherit`,textDecoration:`none`},children:this.adminGuiConfig.icon?D(`div`,{style:{height:50,width:102,lineHeight:`50px`,background:`white`,borderRadius:5,padding:5},children:D(`img`,{src:this.adminGuiConfig.icon,alt:`logo`,style:{maxWidth:`100%`,maxHeight:`100%`}})}):D(ut,{onClick:()=>this.handleNavigation(`easy`),style:this.state.themeName===`colored`||this.state.themeName===`blue`?$.logoWhite:void 0,alt:`NexoWatt EOS`,src:`img/no-image.svg`})})})]})]})}renderSampleError(){var e,t;let n=(e=this.state.hasGlobalError)==null?void 0:e.message,r=(t=this.state.hasGlobalError)==null?void 0:t.stack;return qv(this.state.hasGlobalError)?M(`div`,{style:{textAlign:`center`,fontSize:22,marginTop:50},children:[D(`h2`,{children:A.t(`The admin was updated. Please load the page anew.`)}),D(P,{variant:`contained`,onClick:()=>window.location.reload(),children:A.t(`Reload`)}),D(`div`,{style:{color:`#888`,fontSize:14,marginTop:20},children:n})]}):M(`div`,{style:{textAlign:`center`,fontSize:22,marginTop:50,height:`calc(100% - 50px)`,overflow:`auto`},children:[D(`h1`,{style:{color:`#F00`},children:`Error in GUI!`}),`Please open the browser console (F12), copy error text from there and create the issue on`,` `,D(`a`,{href:`https://github.com/ioBroker/NexoWatt EOS Admin/issues`,target:`_blank`,rel:`noreferrer`,children:`github`}),D(`br`,{}),`Without this information it is not possible to analyse the error.`,D(`br`,{}),`It should looks like `,D(`br`,{}),D(`img`,{src:`img/browserError.png`,alt:`error`}),D(`br`,{}),`If in the second line you will see`,` `,D(`code`,{style:{color:`#888`,fontFamily:`monospace`,fontSize:16},children:`at :3000/static/js/main.chunk.js:36903`}),` `,`and not the normal file name,`,D(`br`,{}),`please try to reproduce an error with opened browser console. In this case the special "map" files will be loaded and the developers can see the real name of functions and files.`,D(`div`,{style:{color:`#F88`,fontSize:14,marginTop:20},children:n}),D(`pre`,{style:{color:`#F88`,fontSize:12,fontFamily:`monospace`,textAlign:`left`,marginTop:20,padding:20},children:(r||``).toString().split(`
|
|
204
|
+
或“下一步”使用先前发现过程中的设备`,process:`处理`,processes:`流程`,protocols_group:`协议`,"pushover wizard description":`有了 NexoWatt EOS Pushover 适配器,您就可以自己向安卓和 iOS 设备发送信息,并使用 Pushover API 的各种功能。通过这些功能,您不仅可以发送简单的文本信息,还可以附加图片和其他文件。您还可以通过设置不同的优先级或为不同事件设置特定的声音,根据个人需要定制通知。`,raw:`原始(仅限专家)`,read:`读`,"read only":`只读`,"read operation":`读`,readme:`自述`,reload:`重新加载`,"reload instance":`重新加载程序`,repeat:`重复`,repo_update_hint:`您已配置为运行“beta”存储库的自动升级,请注意,如果 beta 存储库处于活动状态,则此适配器将根据此配置自动提取 beta 更新!`,repository:`repository`,rest:`休息(只读)`,restart:`自动重启`,"restart script":`重启自动化`,restartLoop:`重新启动循环`,role:`角色`,runtime:`运行`,save:`保存`,"saved:":`已保存:`,"scenes wizard description":`使用 NexoWatt EOS 场景适配器,您可以将多个数据点组合到场景中,只需点击一下即可触发复杂的操作。试想一下,创建一个名为 "影院 "的场景,在这个场景中,Harmony Hub 会打开所有必要的设备,调暗灯光,并在屏幕降低时打开阅读灯。您还可以设置群组,根据场景的活动或非活动状态,为每个场景定义两种不同的连接数据点状态。`,schedule:`日程`,schedule_group:`时间表`,script_group:`自动化`,"select member by double click":`双击选择成员`,"sendto operation":`发送操作`,"serial number (UUID) in license is for other device":`许可证中的序列号 (UUID) 用于其他设备`,service_group:`保养`,severity:`严重`,"show (default)":`显示(默认)`,"show ignored":`显示被忽略`,"show suggested":`显示建议`,"show/hide item":`显示/隐藏项目`,"signal-cmb wizard description":`有了 NexoWatt EOS Signal-CMB 适配器,您就可以使用 Signal 信使通过 CallMeBot 服务发送消息。支持文本内容和表情符号,让您的信息栩栩如生。用户可以方便地了解智能家居中发生的事件,即使在旅行中也能始终掌握最新信息。`,silly:`愚蠢`,"sql wizard description":`使用 NexoWatt EOS SQL 适配器,您可以记录数据,以便对其进行长期可视化或历史分析。SQL 适配器将数据写入外部 SQL 数据库,该数据库可在同一主机或不同主机上运行。也支持 SQLite 数据库。与历史适配器相比,SQL 更适合记录大量数据,但需要手动设置。`,stable:`稳定`,"standalone MCP adapter":`独立式 MCP 适配器`,state:`州`,"state permissions":`状态权限`,stepEnd:`步骤 (至当前值)`,stepMiddle:`步骤 (中间)`,stepStart:`步骤 (值至下一个)`,stop_admin:`您正在尝试停止当前的管理实例。您将无法通过浏览器配置NexoWatt EOS。您可以稍后通过CLI命令“ iob start %s”启动admin。你确定吗?`,storage_group:`存储`,string:`串`,subscribe:`订阅`,sunday:`星期日`,switch:`开关`,switch_db_note:`建议不要在此设置中更改数据库的类型,因为不会进行任何数据迁移。最好使用CLI命令“ iob setup custom”,以便将所有数据迁移到新数据库。确定要在此处切换数据库类型吗?`,"telegram wizard description":`有了 NexoWatt EOS Telegram 适配器,您就可以通过 Telegram Messenger 向自己发送信息,这样当系统发生变化时,您就可以随时了解最新情况。除文本信息外,您还可以发送图片和其他文件。您甚至可以发送问题,并直接在 NexoWatt EOS 中处理答案。`,"temporary log level":`临时日志级别`,terminal:`终端`,"third-party_group":`第三方`,"this 2 weeks":`这2个星期`,"this adapter does not allow multiple instances":`此插件不允许多个程序同时运行`,"this day":`这天`,"this month":`这个月`,"this week":`本星期`,"this year":`今年`,time:`时间`,"time-and-date_group":`时间和日期`,timeOffset:`时间偏移`,title:`标题`,"to apply one item":`申请一件`,"to apply with children":`申请项目和儿童`,"to fix these issues and upgrade command run again.":`解决这些问题并再次运行upgrade命令。`,today:`今天`,tooltip_ack:`已确认`,tooltip_copyState:`将状态值复制到剪贴板`,tooltip_customConfig:`设定值`,tooltip_deleteObject:`删除物件`,tooltip_editObject:`编辑物件`,tooltip_editState:`修改状态值`,tooltip_from:`资源`,tooltip_lc:`最后更改时间`,tooltip_quality:`质量`,tooltip_ts:`时间戳记`,tooltip_user:`用户`,tooltip_value:`值`,true:`正常`,ts:`时间戳`,type:`类型`,unit:`单元`,unknown:`未知`,update:`刷新`,"update adapter information":`更新插件信息`,update_info_no_net:`有关更新控制器的信息,请访问以下页面: <a href="https://github.com/NexoWatt EOS/NexoWatt EOS.docs/blob/master/admin/zh-cn/controller-upgrade.md" target="_blank">Update JS-Contoller</a>`,updated:`刷新`,updates:`刷新`,"updating %s to %s...":`更新 %s 到 %s...`,upload:`上传`,"use GitHub for issues":`我们重视您对我们软件的评分和想法。对于错误报告,请使用我们的 GitHub 问题跟踪器,当您留下评论时,请考虑未解决的问题可能会影响您的体验。您的反馈有助于我们改善。感谢您成为我们社区的一部分!`,"user permissions":`用户权限`,users:`用户`,"users permissions":`用户权限`,utility_group:`实用工具`,val:`值`,value:`值`,"value.from":`来自于`,"value.lc":`上次更新`,"value.q":`质量`,"value.ts":`时间戳`,"value.val":`值`,vehicle_group:`车辆`,version:`版本`,"vis-2 wizard description":`NexoWatt EOS Vis 2 适配器是为您的智能家居提供的现代化、功能强大的可视化解决方案。有了这个适配器,您就可以根据自己的意愿,用现代小部件创建自己的可视化系统。无论您是想将仪表盘设计成简约风格还是具有多种功能,都有无限可能。按自己喜欢的方式设计智能家居界面吧!`,vis_group:`NexoWatt EOS.vis`,visualisation_group:`可视化`,"visualization wizard category":`借助此类适配器,您可以构建仪表板以通过 NexoWatt EOS Visu 应用程序或 Web 界面控制您的家庭。`,"visualization-icons_group":`可视化图标`,"visualization-widgets_group":`可视化小部件`,visualization_group:`可视化`,vote:`投票`,vote21:`选票`,votes:`票数`,votes2:`选票`,warn:`警告`,weather:`天气`,"weather wizard category":`通过天气适配器,您可以获得当地天气信息并将其用于可视化和自动化。`,weather_group:`天气`,"weatherunderground wizard description":`有了 NexoWatt EOS Weather Underground 适配器,您就可以在 NexoWatt EOS 中使用天气数据。例如,这意味着下雨时可以提醒您关闭打开的窗户,或者在暴风雨来临时自动收回遮阳篷。这样,您的智能家居就能更好地适应当前的天气条件,确保更加舒适和安全。`,wetty:`Wetty`,"with js-controller":`带有 js 控制器`,"wizard adapter general description":`从您希望直接安装的适配器中进行选择。您可以稍后在 "适配器 "选项卡中安装其他适配器。`,"wizard welcome description":`此向导将引导您完成新 ioBroker 安装的最重要设置。只需几分钟,所有设置以后都可以更改。`,write:`写`,"write operation":`写`,wrongPassword:`用户名或密码无效`,yesterday:`昨天`,"Åland Islands":`奥兰群岛`,"Serial port":`串口`,"TCP port":`TCP 端口`,"UDP port":`UDP 端口`,"USB device":`USB 设备`,Bluetooth:`蓝牙`,GPIO:`GPIO`,"Also registered by: %s":`也被以下实例注册:%s`,Resource:`资源`,Registered:`注册时间`,"The instance runs and holds the resource":`实例正在运行并占用该资源`,"The instance does not run and would take the resource when started":`实例未运行,启动时将占用该资源`,"In use":`使用中`,Reserved:`已预留`,"Used resources":`已占用的资源`,"No instance has registered a resource":`没有实例注册资源`,'Adapter "%s" allows only one instance, and %s exists already':`适配器 "%s" 只允许一个实例,而 %s 已存在`,'Adapter "%s" allows only one instance per host, and %s exists already on host "%s"':`适配器 "%s" 每个主机只允许一个实例,而 %s 已存在于主机 "%s" 上`,"The admin was updated. Please load the page anew.":`管理界面已更新,请重新加载页面。`,"The connection is not ready yet. Please wait a moment and try again.":`连接尚未就绪。请稍等片刻后重试。`},Gv=`admin.chunkReloadTs`,Kv=2e4;function qv(e){let{message:t,name:n}=typeof e==`object`&&e?e:{message:e};return typeof t==`string`?t.includes(`Failed to fetch dynamically imported module`)||t.includes(`error loading dynamically imported module`)||t.includes(`Importing a module script failed`)||t.includes(`Unable to preload CSS`)||n===`ChunkLoadError`:!1}function Jv(){let e=0;try{e=parseInt(window.sessionStorage.getItem(Gv)||`0`,10)||0}catch{}if(Date.now()-e<Kv)return!1;try{window.sessionStorage.setItem(Gv,Date.now().toString())}catch{}return window.location.reload(),!0}function Yv(e){Jv()&&e.preventDefault()}function Xv(e){return Bt.lazy(()=>e().catch(e=>{if(qv(e)&&Jv())return new Promise(()=>{});throw e}))}x();var Zv=[`tab-overview`,`tab-adapters`,`tab-instances`,`tab-logs`],Qv=[`tab-overview`,`tab-intro`,`tab-adapters`,`tab-instances`,`tab-objects`,`tab-enums`,`tab-logs`,`tab-users`,`tab-hosts`,`tab-files`,`tab-devicemanager`],$v=Xv(()=>r(()=>import(`./Overview-CDvnM655.js`),__vite__mapDeps([36,1,2,3,17,25,26,28,37,38]),import.meta.url)),ey=Xv(()=>r(()=>import(`./Adapters-WMGNQt7g.js`),__vite__mapDeps([39,1,2,3,6,7,16,23,29,37,40,8,26,30,41,10,42,43,44,45]),import.meta.url)),ty=Xv(()=>r(()=>import(`./Instances-BKydFSdw.js`),__vite__mapDeps([46,2,1,3,7,11,21,24,26,29,37,40,8,30,43,44,45,47,48,49,50]),import.meta.url)),ny=Xv(()=>r(()=>import(`./Intro-Dt2GzmtW.js`),__vite__mapDeps([51,1,2,3,8,14,15,17,20,24,26,37,50]),import.meta.url)),ry=Xv(()=>r(()=>import(`./Logs-hbcdBDN3.js`),__vite__mapDeps([52,1,2,3,16,27,37]),import.meta.url)),iy=Xv(()=>r(()=>import(`./Files-Bwbw17Fb.js`),__vite__mapDeps([53,2,1,3,37,44,45]),import.meta.url)),ay=Xv(()=>r(()=>import(`./Objects-HPx0yuOk.js`),__vite__mapDeps([54,2,1,3,5,18,23,32,35,34,37,48,45,42,44,38]),import.meta.url)),oy=Xv(()=>r(()=>import(`./Users-BruHA-yU.js`),__vite__mapDeps([55,1,2,3,13,19,30,37,56]),import.meta.url)),sy=Xv(()=>r(()=>import(`./Enums-CHm2sGa-.js`),__vite__mapDeps([57,2,1,3,9,13,18,20,28,37,56]),import.meta.url)),cy=Xv(()=>r(()=>import(`./CustomTab-DSPqif6P.js`),__vite__mapDeps([58,2,1,3,37,48]),import.meta.url)),ly=Xv(()=>r(()=>import(`./ConfigManager-BMdQoiCg.js`),__vite__mapDeps([59,1,2,3,22]),import.meta.url)),uy=Xv(()=>r(()=>import(`./Hosts-BR0g-Wxo.js`),__vite__mapDeps([60,2,1,3,11,12,14,29,37,41,10,42,43,44,45,49]),import.meta.url)),dy=Xv(()=>r(()=>import(`./EasyMode-TwIN5yxu.js`),__vite__mapDeps([61,1,2,3,47,37,48]),import.meta.url)),fy={},py=()=>String(window.NEXOWATT_EOS_ACCESS_ROLE||`unknown`).toLowerCase(),my=()=>[`admin`,`service`].includes(py());(window.location.search||``).replace(/^\?/,``).split(`&`).forEach(e=>{let t=e.split(`=`);t[0]&&(fy[t[0]]=t[1]===void 0||decodeURIComponent(t[1]))});var $={root:{display:`flex`,height:`100%`},appBar:e=>({transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})}),logoWhite:{backgroundColor:`#FFFFFF`},appBarShift:e=>({width:`calc(100% - 180px)`,ml:180/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),appBarShiftEdit:e=>({width:`calc(100% - 250px)`,ml:250/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),appBarShiftCompact:e=>({width:`calc(100% - 50px)`,ml:50/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),menuButton:{marginRight:16},hide:{display:`none`},content:e=>{var t,n,r;return{flexGrow:1,padding:1,paddingTop:0,transition:e.transitions.create(`margin`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowY:`auto`,mt:`${(t=e.mixins.toolbar)==null?void 0:t.minHeight}px`,"@media (min-width:0px) and (orientation: landscape)":{mt:(n=e.mixins.toolbar[`@media (min-width:0px) and (orientation: landscape)`])!=null&&n.minHeight?`${e.mixins.toolbar[`@media (min-width:0px) and (orientation: landscape)`].minHeight}px`:void 0},"@media (min-width:600px)":{mt:(r=e.mixins.toolbar[`@media (min-width:600px)`])!=null&&r.minHeight?`${e.mixins.toolbar[`@media (min-width:600px)`].minHeight}px`:void 0}}},contentMargin:{ml:-180/8},contentMarginEdit:{ml:-250/8},contentMarginCompact:{ml:-50/8},contentShift:e=>({transition:e.transitions.create(`margin`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),ml:0}),expertIcon:{width:22,height:22},expertIconActive:{},baseSettingsButton:{color:`red`},avatarNotVisible:{opacity:0,marginLeft:5,transition:`opacity 0.3s`,width:`initial`},avatarVisible:{opacity:1},cmd:{animation:`1s linear infinite alternate $myEffect`,opacity:.2},errorCmd:{color:`#a90000`,animation:`0.2s linear infinite alternate myEffect2`},performed:e=>({color:e.palette.mode===`light`?`#3bfd44`:`#388e3c`,animation:`0.2s linear infinite alternate myEffect2`}),wrapperButtons:{display:`flex`,marginRight:`auto`,overflowY:`auto`,alignItems:`center`},flexGrow:{flexGrow:2},floatingButtons:{position:`fixed`,top:4,left:4,zIndex:1200,display:`flex`,gap:.5},contentNoAppBar:{mt:0,"@media (min-width:0px) and (orientation: landscape)":{mt:0},"@media (min-width:600px)":{mt:0}},contentMenuButtonSpace:{pt:`44px`},styleVersion:{fontSize:10},wrapperName:{display:`flex`,flexDirection:`column`,marginRight:10},expertBadge:{mt:`11px`,mr:`11px`},siteName:{lineHeight:`48px`,fontSize:24,marginLeft:10,marginRight:10,display:`inline-block`,verticalAlign:`middle`},tooltip:{pointerEvents:`none`}};function hy(e){return e.native||={localStorage:{},sessionStorage:{}},e.native.localStorage||(e.native={localStorage:e.native,sessionStorage:{}}),e.native.sessionStorage||={},e}var gy=1e4,_y=5e3,vy=5e3,yy=1e3;function by(e,t){let n;return Promise.race([e,new Promise((e,r)=>{n=setTimeout(()=>r(Error(`${t} got no answer`)),gy)})]).finally(()=>clearTimeout(n))}function xy(e,t){for(let n of[`localStorage`,`sessionStorage`])for(let[r,i]of Object.entries(t[n]))i===null?delete e[n][r]:e[n][r]=i}var Sy={_id:``,type:`state`,common:{name:`Admin settings`,type:`boolean`,read:!0,write:!1,role:`state`},native:{localStorage:{},sessionStorage:{}}},Cy=class e extends yt{constructor(t){super(t),j(this,`translations`,void 0),j(this,`_tempAllStored`,!0),j(this,`refConfigIframe`,null),j(this,`expireInSecInterval`,null),j(this,`toggleThemePossible`,void 0),j(this,`adminGuiConfig`,void 0),j(this,`logsWorker`,null),j(this,`instancesWorker`,null),j(this,`hostsWorker`,null),j(this,`adaptersWorker`,null),j(this,`objectsWorker`,null),j(this,`repoInfoPromise`,null),j(this,`repoInfoRun`,0),j(this,`guiSettings`,null),j(this,`guiSettingsChanges`,{localStorage:{},sessionStorage:{}}),j(this,`guiSettingsWrite`,Promise.resolve()),j(this,`localStorageTimer`,null),j(this,`guiSettingsRetryTimer`,null),j(this,`languageSet`,!1),j(this,`socket`,null),j(this,`adminInstance`,``),j(this,`newsInstance`,0),j(this,`doNotAskSessionExpiration`,0),j(this,`tabsInfo`,null),j(this,`pendingCommandTimer`,null),j(this,`pendingCommand`,null),j(this,`chatBusy`,!1),j(this,`lastHash`,window.location.hash),j(this,`chatLeaveConfirmed`,!1),j(this,`connectionLostAt`,0),j(this,`localStorageGetItem`,e=>{var t;return(t=this.guiSettings)==null?void 0:t.native.localStorage[e]}),j(this,`localStorageSetItem`,(e,t)=>{if(t===null)t=`null`;else if(t===void 0){this.localStorageRemoveItem(e);return}this.guiSettings&&(this.guiSettings.native.localStorage[e]=t.toString(),this.guiSettingsChanges.localStorage[e]=t.toString()),this.localStorageSave()}),j(this,`localStorageRemoveItem`,e=>{this.guiSettings&&Object.prototype.hasOwnProperty.call(this.guiSettings.native.localStorage,e)&&(delete this.guiSettings.native.localStorage[e],this.guiSettingsChanges.localStorage[e]=null,this.localStorageSave())}),j(this,`sessionStorageGetItem`,e=>{var t;return(t=this.guiSettings)==null?void 0:t.native.sessionStorage[e]}),j(this,`sessionStorageSetItem`,(e,t)=>{if(t===null)t=`null`;else if(t===void 0){this.sessionStorageRemoveItem(e);return}this.guiSettings&&(this.guiSettings.native.sessionStorage[e]=t.toString(),this.guiSettingsChanges.sessionStorage[e]=t.toString()),this.localStorageSave()}),j(this,`sessionStorageRemoveItem`,e=>{this.guiSettings&&Object.prototype.hasOwnProperty.call(this.guiSettings.native.sessionStorage,e)&&(delete this.guiSettings.native.sessionStorage[e],this.guiSettingsChanges.sessionStorage[e]=null,this.localStorageSave())}),j(this,`toggleTranslation`,()=>{(window._localStorage||window.localStorage).setItem(`App.noTranslation`,this.state.noTranslation?`false`:`true`),this.setState({noTranslation:!this.state.noTranslation})}),j(this,`updateHosts`,e=>{let t=JSON.parse(JSON.stringify(this.state.hosts));e.forEach(e=>{let n=t.find(t=>t._id===e.id);if(n){let r=t.indexOf(n);e.obj?t[r]=e.obj:t.splice(r,1)}else t.push(e.obj)}),this.setState({hosts:t})}),j(this,`repoChangeHandler`,()=>{this.readRepoAndInstalledInfo(this.state.currentHost,{update:!0}).then(()=>console.log(`Repo updated!`))}),j(this,`adaptersChangeHandler`,e=>{let t=JSON.parse(JSON.stringify(this.state.installed)),n=!1;e.forEach(e=>{let r=e.id.split(`.`)[2];e.type===`deleted`||!e.obj?t[r]&&(n=!0,delete t[r]):t[r]?Object.keys(t[r]).forEach(i=>{e.obj&&t[r][i]!==e.obj.common[i]&&(t[r][i]=e.obj.common[i],n=!0)}):(t[r]={version:e.obj.common.version},n=!0)}),n&&this.setState({installed:t})}),j(this,`onSessionExpiration`,e=>new Promise(t=>{let n=Math.max(0,e-Date.now()+500);this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.expireInSecInterval=setTimeout(()=>{ln.deleteTokensStatic(),window.location.href=`./index.html?login&eosLogout=timeout`},n),t(!1)})),j(this,`onDiscoveryAlive`,(e,t)=>{!!(t!=null&&t.val)!==this.state.discoveryAlive&&this.setState({discoveryAlive:!!(t!=null&&t.val)})}),j(this,`onDiscoveryObject`,(e,t)=>{let n=gv(t);n!==this.state.discoveryProposals&&this.setState({discoveryProposals:n})}),j(this,`getDiscoveryModal`,()=>this.state.systemConfig&&this.socket?D(Sv,{themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,socket:this.socket,systemConfig:this.state.systemConfig.common,dateFormat:this.state.systemConfig.common.dateFormat,currentHost:this.state.currentHost,defaultLogLevel:this.state.systemConfig.common.defaultLogLevel||`info`,repository:this.state.repository,hosts:this.state.hosts,onClose:()=>yt.doNavigate(null)}):null),j(this,`handleNewNotifications`,async e=>{let t={warning:0,other:0};if(!e)this.setState({noNotifications:t,notifications:{}});else{for(let n of Object.values(e))if(n!=null&&n.result){for(let[e,r]of Object.entries(n.result))if(e!==`system`)for(let e of Object.values(r.categories))for(let n of Object.values(e.instances)){let r=e.severity===`alert`;t[r?`warning`:`other`]+=n.messages.length}}if(this.instancesWorker){let n=await this.instancesWorker.getObjects();this.setState({noNotifications:t,notifications:{notifications:e,instances:n}})}}}),j(this,`showAdaptersWarning`,async(e,t)=>{if(!e||!e[t]||!e[t].result)return;let n=e[t].result;if(n!=null&&n.system&&Object.keys(n.system.categories).length){var r;await((r=this.instancesWorker)==null?void 0:r.getObjects().then(e=>e&&this.setState({showHostWarning:{host:t,instances:e,result:n}})))}}),j(this,`onNews`,async(e,t)=>{if(!this.socket)throw Error(`Socket not initialized`);try{var n;if(!((n=this.state.systemConfig)!=null&&n.common.licenseConfirmed))return;let e=await this.socket.getState(`admin.${this.newsInstance}.info.newsLastId`);if(t!=null&&t.val){let n=null;try{n=JSON.parse(t.val)}catch{console.error(`Cannot parse news: ${t.val}`)}if(n!=null&&n.length&&n[0].id!==(e==null?void 0:e.val)){var r,i,a;let t=await this.socket.getUuid(),o=await this.socket.getHostInfo(this.state.currentHost).catch(()=>null),s=await this.socket.getCompactInstances().catch(()=>null),c;if(this.state.currentHost){let e=await this.socket.getDiagData(this.state.currentHost,`normal`);c=e==null?void 0:e.objectsType}let l=await((r=this.objectsWorker)==null?void 0:r.getObjects()),u=Object.keys(l||{}).length;await((i=this.repoInfoPromise)==null?void 0:i.catch(()=>{}));let d=ad(n,e==null?void 0:e.val,{lang:A.getLanguage(),adapters:this.state.adapters,instances:s||{},nodeVersion:o&&o[`Node.js`]||`?`,npmVersion:o&&o.NPM||`?`,jsControllerVersion:((a=this.state.installed)==null||(a=a[`js-controller`])==null?void 0:a.version)||``,os:o&&o.os||`?`,activeRepo:this.state.systemConfig.common.activeRepo,uuid:t,objectsDbType:c||`jsonl`,noObjects:u});d!=null&&d.length&&this.setState({showNews:{checkNews:d,lastNewsId:e==null?void 0:e.val}})}}}catch(e){console.error(`Could not process news: ${e.stack}`),this.showAlert(`Could not process news: ${e.stack}`,`error`)}}),j(this,`logsWorkerChanged`,e=>{var t;(t=this.logsWorker)==null||t.setCurrentHost(e)}),j(this,`onHashChanged`,()=>{let t=window.location.hash;this.chatBlocksLeaving(e.tabOfHash(t))?(window.history.replaceState(null,``,this.lastHash||`${window.location.pathname}${window.location.search}`),this.setState({chatLeaveDialog:{target:{hash:t},reason:`busy`}})):(this.lastHash=t,this.setState({currentTab:yt.getLocation()},()=>this.setCurrentTabTitle()))}),j(this,`toggleTheme`,t=>{let n=this.state.themeName,r=t||T.toggleTheme(n),i=e.createTheme(r);this.setState({theme:i,themeName:r,themeType:e.getThemeType(i)},()=>{var e,t;(e=this.refConfigIframe)==null||(e=e.contentWindow)==null||e.postMessage(`updateTheme`,`*`),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage({type:`updateTheme`,themeName:r},`*`)})}),j(this,`handleNavigation`,(e,t,n)=>{var r;if(e){if(this.chatBlocksLeaving(e)){this.setState({chatLeaveDialog:{target:{tab:e,subTab:t,param:n},reason:`busy`}});return}this._tempAllStored?(yt.doNavigate(e,t,n),this.lastHash=window.location.hash,this.setState({currentTab:yt.getLocation()})):this.setState({dataNotStoredDialog:!0,dataNotStoredTab:{tab:e,subTab:t,param:n}})}(this.props.width===`xs`||this.props.width===`sm`)&&this.handleDrawerState(q.closed),e||=((r=this.state.currentTab)==null?void 0:r.tab)||``,this.setTitle(e.replace(`tab-`,``))});try{window.alert=e=>{let t=(e==null?void 0:e.toString())??``,n=Date.now();this.isCausedByConnectionLoss(t,n)?console.warn(`Not shown, as the connection to admin is lost: ${t}`):t.toLowerCase().includes(`error`)?(console.error(t),setTimeout(()=>{this.isCausedByConnectionLoss(t,n)?console.warn(`Not shown, as the connection to admin is lost: ${t}`):this.showAlert(t,`error`)},yy)):(console.log(t),this.showAlert(t,`info`))}}catch{}this.translations=Lt;let n={en:Pv,de:Fv,ru:Iv,pt:Lv,nl:Rv,fr:zv,it:Bv,es:Vv,pl:Hv,uk:Uv,"zh-cn":Wv};Object.keys(n).forEach(e=>Object.assign(this.translations[e],n[e])),A.extendTranslations(this.translations),A.setLanguage((window.navigator.language||window.navigator.userLanguage||`en`).substring(0,2).toLowerCase()),this.adminGuiConfig={admin:{menu:{},settings:{},adapters:{},login:{}}};let r=window.vendorPrefix;if(this.toggleThemePossible=!r||r===`@@vendorPrefix@@`||r===`MV`,fy.login){let t=e.createTheme();this.state={login:!0,theme:t,themeName:e.getThemeName(t),themeType:e.getThemeType(t)}}else{let t=(window._localStorage||window.localStorage).getItem(`App.drawerState`),n;n=t?parseInt(t,10):this.props.width===`xs`?q.closed:q.opened;let r=e.createTheme();Object.defineProperty(window,"configNotSaved",{get:()=>this.state.configNotSaved,set:e=>{let t=!e;t!==this._tempAllStored&&(this._tempAllStored=t,this.forceUpdate())},configurable:!0}),this.state={connected:!1,progress:0,ready:!1,lang:`en`,hostname:window.location.hostname,expertMode:!1,chatDockWidth:0,hosts:[],currentHost:``,currentHostName:``,ownHost:``,currentTab:yt.getLocation(),systemConfig:null,user:null,repository:{},installed:{},waitForRestart:!1,tabs:null,config:{},stateChanged:!1,theme:r,themeName:e.getThemeName(r),themeType:e.getThemeType(r),alert:!1,alertType:`info`,alertMessage:``,drawerState:n,editMenuList:!1,tab:null,dataNotStoredDialog:!1,dataNotStoredTab:null,chatLeaveDialog:null,baseSettingsOpened:!1,unsavedDataInDialog:!1,systemSettingsOpened:!1,cmd:null,cmdDialog:!1,commandHost:null,commandError:!1,commandRunning:!1,wizard:!0,performed:!1,showTips:!1,discoveryAlive:!1,discoveryProposals:0,readTimeoutMs:Tv.getReadTimeoutMs(),showSlowConnectionWarning:!1,versionAdmin:``,forceUpdateAdapters:0,noTranslation:(window._localStorage||window.localStorage).getItem(`App.noTranslation`)!==`false`,cloudNotConnected:!1,cloudReconnect:0,showRedirect:``,redirectCountDown:0,triggerAdapterUpdate:0,updating:!1,notificationsDialog:!1,notifications:{},noNotifications:{warning:0,other:0},configNotSaved:!1,login:!1,showHostWarning:null,adapters:{},askForTokenRefresh:null},this.logsWorker=null,this.instancesWorker=null,this.hostsWorker=null}}static getDerivedStateFromError(e){return{hasGlobalError:e}}componentDidCatch(e){this.setState({hasGlobalError:e})}static async checkSsoResponse(){let e=new URLSearchParams(window.location.search);if(e.has(`ssoCode`)){try{let t=await fetch(cr(`sso-token`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e.get(`ssoCode`)})}),n=await t.json();t.ok&&n.access_token&&ln.saveTokensStatic(n,!0)}catch(e){console.error(`Cannot finish the single sign-on: ${e}`)}window.localStorage.removeItem(`oidc_id_token`),window.location.search=``}else if(e.has(`id_token`)&&(window.localStorage.setItem(`oidc_id_token`,e.get(`id_token`)),window.location.search=``),e.has(`ssoLoginResponse`)){let t=JSON.parse(e.get(`ssoLoginResponse`));ln.saveTokensStatic(t,!0),window.location.search=``}}setUnsavedData(e){e!==this.state.unsavedDataInDialog&&this.setState({unsavedDataInDialog:e})}mustInvertBackground(e){if(!e)return!1;let t=T.invertColor(e,!0);return t===`#FFFFFF`&&this.state.themeType===`dark`||t===`#000000`&&this.state.themeType===`light`}localStorageSave(){this.localStorageTimer&&clearTimeout(this.localStorageTimer),this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null),this.localStorageTimer=setTimeout(()=>{this.localStorageTimer=null,this.guiSettingsWrite=this.guiSettingsWrite.then(()=>this.writeGuiSettings())},200)}async writeGuiSettings(){let e=this.guiSettingsChanges;if(!this.guiSettings||!this.socket||!Object.keys(e.localStorage).length&&!Object.keys(e.sessionStorage).length)return;this.guiSettingsChanges={localStorage:{},sessionStorage:{}};let t=`system.adapter.${this.adminInstance}.guiSettings`;try{let n=hy(await by(this.socket.getObject(t),`Reading`)||JSON.parse(JSON.stringify(this.guiSettings)));xy(n.native,e),await by(this.socket.setObject(t,n),`Writing`),this.guiSettings&&(this.guiSettings=n,xy(this.guiSettings.native,this.guiSettingsChanges))}catch(r){var n;for(let t of[`localStorage`,`sessionStorage`])this.guiSettingsChanges[t]={...e[t],...this.guiSettingsChanges[t]};console.warn(`Could not save "${t}": ${r.message}`),(n=this.socket)!=null&&n.isConnected()&&!this.localStorageTimer&&!this.guiSettingsRetryTimer&&(this.guiSettingsRetryTimer=setTimeout(()=>{this.guiSettingsRetryTimer=null,this.localStorageSave()},_y))}}async getGUISettings(){let e=null;if(!this.adminInstance||!this.socket)return;let t=!1;try{e=await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`)}catch(e){t=!0,console.warn(`Could not get "system.adapter.${this.adminInstance}.guiSettings": ${e.message}`)}if(!e&&!t){e=JSON.parse(JSON.stringify(Sy));try{await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,e)}catch(e){console.warn(`Could not update "system.adapter.${this.adminInstance}.guiSettings": ${e.message}`)}}let n;try{n=await this.socket.getState(`system.adapter.${this.adminInstance}.guiSettings`)}catch{n={val:!1}}if(n!=null&&n.val){this.guiSettings=hy(e||JSON.parse(JSON.stringify(Sy))),(Object.keys(this.guiSettingsChanges.localStorage).length||Object.keys(this.guiSettingsChanges.sessionStorage).length)&&(xy(this.guiSettings.native,this.guiSettingsChanges),this.localStorageSave()),window._localStorage={getItem:this.localStorageGetItem,setItem:this.localStorageSetItem,removeItem:this.localStorageRemoveItem},window._sessionStorage={getItem:this.sessionStorageGetItem,setItem:this.sessionStorageSetItem,removeItem:this.sessionStorageRemoveItem};let t=(window._localStorage||window.localStorage).getItem(`App.drawerState`),n;n=t?parseInt(t,10):this.props.width===`xs`?q.closed:q.opened;let r=(window._localStorage||window.localStorage).getItem(`App.noTranslation`)!==`false`;this.setState({guiSettings:!0,drawerState:n,noTranslation:r},()=>{T.getThemeName()!==this.state.theme.name&&this.toggleTheme(T.getThemeName())})}else this.state.guiSettings&&(window._localStorage=void 0,window._sessionStorage=void 0,this.setState({guiSettings:!1}))}async enableGuiSettings(e,t){if(e&&!this.guiSettings&&this.socket){let e=await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`);this.guiSettings=e||JSON.parse(JSON.stringify(Sy)),t||!this.guiSettings.native||!Object.keys(this.guiSettings.native).length?(this.guiSettings.native={localStorage:{},sessionStorage:{}},Object.keys(window.localStorage).forEach(e=>{e!==`getItem`&&e!==`setItem`&&e!==`removeItem`&&e!==`clear`&&e!==`key`&&e!==`length`&&(this.guiSettings.native.localStorage[e]=window.localStorage.getItem(e))}),Object.keys(window.sessionStorage).forEach(e=>{e!==`getItem`&&e!==`setItem`&&e!==`removeItem`&&e!==`clear`&&e!==`key`&&e!==`length`&&(this.guiSettings.native.sessionStorage[e]=window.sessionStorage.getItem(e))}),await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,this.guiSettings),await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!0,ack:!0})):(await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!0,ack:!0}),window.location.reload()),await this.getGUISettings()}else if(!e&&this.guiSettings&&this.socket){if(!await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`))try{await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,Sy)}catch(e){console.error(`Cannot create system.adapter.${this.adminInstance}.guiSettings": ${e}`)}window._localStorage=void 0,window._sessionStorage=void 0,Object.keys(window.localStorage).forEach(e=>window.localStorage.removeItem(e)),Object.keys(window.sessionStorage).forEach(e=>window.sessionStorage.removeItem(e)),Object.keys(this.guiSettings.native.localStorage).forEach(e=>window.localStorage.setItem(e,this.guiSettings.native.localStorage[e])),Object.keys(this.guiSettings.native.sessionStorage).forEach(e=>window.sessionStorage.setItem(e,this.guiSettings.native.sessionStorage[e])),this.guiSettings=null,this.guiSettingsChanges={localStorage:{},sessionStorage:{}},this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null);try{await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!1,ack:!0})}catch(e){window.alert(`Cannot disable settings: ${e}`)}this.setState({guiSettings:!1})}}componentDidMount(){e.checkSsoResponse(),window.addEventListener(`vite:preloadError`,Yv),this.state.login||(window.addEventListener(`hashchange`,this.onHashChanged,!1),this.state.currentTab.tab?this.setTitle(this.state.currentTab.tab.replace(`tab-`,``)):this.handleNavigation(`tab-intro`),this.socket=new ln({protocol:window.location.protocol,host:window.location.hostname,name:`eos-admin`,admin5only:!0,port:e.getPort(),cmdTimeout:this.state.readTimeoutMs,autoSubscribes:[`system.adapter.*`],autoSubscribeLog:!0,tokenTimeoutHandler:this.onSessionExpiration,onProgress:async e=>{if(this.socket){if(e===g.CONNECTING)this.state.connected&&(this.connectionLostAt=Date.now()),this.setState({connected:!1});else if(e===g.READY)try{let e=await this.socket.getVersion();console.log(`Stored version: ${this.state.versionAdmin}, new version: ${e.version}`),this.state.versionAdmin&&this.state.versionAdmin!==e.version&&(window.alert(`New adapter version detected. Reloading...`),setTimeout(()=>window.location.reload(),500)),this.adminInstance||=await this.socket.getCurrentInstance(),await this.getGUISettings();let n={connected:!0,progress:100,versionAdmin:e.version,disableMcp:!0};if(this.state.cmd&&/\b(?:admin|eos-admin)(?:@[-.\w]+)?(?:\s+--debug)?$/.test(this.state.cmd))n.commandRunning=!1,n.forceUpdateAdapters=this.state.forceUpdateAdapters+1,this.closeCmdDialog(()=>{this.setState(n),window.location.reload()});else{try{var t;let e=await this.socket.getObject(`system.adapter.${this.adminInstance}`);n.disableMcp=!0,e!=null&&(t=e.native)!=null&&t.language?e.native.language!==A.getLanguage()&&(console.log(`Language changed to ${e.native.language}`),A.setLanguage(e.native.language),this.languageSet?window.location.reload():this.languageSet=!0):this.socket.systemLang!==A.getLanguage()&&(console.log(`Language changed to ${this.socket.systemLang}`),A.setLanguage(this.socket.systemLang),this.languageSet?window.location.reload():this.languageSet=!0)}catch(e){console.error(`Cannot read admin settings: ${e}`)}this.setState(n)}}catch(e){console.error(`Cannot read version: ${e}`),e===`ioBroker is not connected`&&(setInterval(()=>{this.state.cloudReconnect>0?this.setState({cloudReconnect:this.state.cloudReconnect-1}):window.location.reload()},1e3),this.setState({cloudNotConnected:!0,cloudReconnect:10}))}else this.setState({connected:!0,progress:Math.round(g.READY/e*100)})}},onReady:async()=>{var e;if(!this.socket)throw Error(`Socket not initialized`);this.adminGuiConfig={admin:{menu:{},settings:{},adapters:{},login:{}},...(e=this.socket)==null||(e=e.systemConfig)==null||(e=e.native)==null?void 0:e.vendor},this.adminGuiConfig.admin.menu||={},this.adminGuiConfig.admin.settings||={},this.adminGuiConfig.admin.adapters||={},this.adminGuiConfig.admin.login||={};try{var t,n;try{var r;this.adminInstance||=await this.socket.getCurrentInstance(),this.adminInstance||console.error(`Cannot read admin instance!`);let e=await this.socket.getObject(`system.adapter.${this.adminInstance}`);e!=null&&(r=e.native)!=null&&r.language?A.setLanguage(e.native.language):A.setLanguage(this.socket.systemLang)}catch(e){console.warn(`Cannot read the settings of this admin: ${e.message}`),A.setLanguage(this.socket.systemLang)}this.languageSet=!0;let e=!1;try{e=await this.socket.getIsEasyModeStrict()}catch(e){console.warn(`Cannot read the easy mode: ${e.message}`)}if(await this.getGUISettings(),e){let e=await this.socket.getEasyMode();this.setState({lang:this.socket.systemLang,ready:!0,strictEasyMode:!0,easyModeConfigs:e.configs});return}this.logsWorker||=new hd(this.socket,1e3),this.instancesWorker||=new _d(this.socket),this.hostsWorker||=new vd(this.socket),this.adaptersWorker||=new yd(this.socket),this.objectsWorker||=new bd(this.socket);let a={lang:this.socket.systemLang,ready:!0};try{a.systemConfig=await this.socket.getCompactSystemConfig(),a.wizard=!a.systemConfig.common.licenseConfirmed,a.showTips=!a.wizard&&!a.systemConfig.common.tipsDisabled,await this.findCurrentHost(a),a.currentHost&&this.readRepoAndInstalledInfo(a.currentHost)}catch(e){console.log(`Error reading repo in onReady: ${e.stack}`)}this.adaptersWorker.registerRepositoryHandler(this.repoChangeHandler),this.adaptersWorker.registerHandler(this.adaptersChangeHandler),this.hostsWorker.registerHandler(this.updateHosts),this.hostsWorker.registerNotificationHandler(this.handleNewNotifications);let o=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`);if(a.expertMode=my()&&(o?o===`true`:!!((t=a.systemConfig)!=null&&t.common.expertMode)),this.socket.isSecure||(n=this.socket.systemConfig)!=null&&(n=n.native)!=null&&n.vendor)try{var i;let e=await this.socket.getCurrentUser(),t=await this.socket.getObject(`system.user.${e}`);t!=null&&(i=t.native)!=null&&i.vendor&&Object.assign(this.adminGuiConfig,t.native.vendor),this.socket.isSecure&&t&&this.setState({user:{id:t._id,name:T.getObjectNameFromObj(t,this.socket.systemLang),color:t.common.color,icon:t.common.icon,invertBackground:t.common.color?this.mustInvertBackground(t.common.color):!1,group:await this.getLeadingGroupName(t._id)}})}catch(e){console.error(`Could not determine user to show: ${e.toString()}, ${e.stack}`),this.showAlert(e.toString(),`error`)}this.setState(a,()=>this.setCurrentTabTitle()),this.socket.subscribeState(`system.adapter.discovery.0.alive`,this.onDiscoveryAlive),this.socket.getObject(`system.discovery`).then(e=>this.onDiscoveryObject(`system.discovery`,e)).catch(e=>console.warn(`Cannot read system.discovery: ${e}`)),this.socket.subscribeObject(`system.discovery`,this.onDiscoveryObject),setTimeout(()=>this.logsWorkerChanged(this.state.currentHost),1e3),setTimeout(()=>this.findNewsInstance().then(e=>{var t;this.newsInstance=e,(t=this.socket)==null||t.subscribeState(`admin.${e}.info.newsFeed`,this.onNews)}),5e3),setTimeout(async()=>{var e;let t=await((e=this.hostsWorker)==null?void 0:e.getNotifications(a.currentHost));await this.handleNewNotifications(t)},3e3)}catch(e){console.error(`Error in onReady: ${e.stack}`),this.showAlert(`Error in onReady: ${e.stack}`,`error`),this.setState({ready:!0})}},onError:e=>{console.error(e);let t;t=e instanceof Error&&e.message||e.toString(),t===`ioBroker is not connected`?this.state.cloudNotConnected||(this.showAlert(A.t(t),`error`),setInterval(()=>{this.state.cloudReconnect>0?this.setState({cloudReconnect:this.state.cloudReconnect-1}):window.location.reload()},1e3),this.setState({cloudNotConnected:!0,cloudReconnect:10})):this.showAlert(t,`error`)}}),window.NEXOWATT_EOS_ADMIN_SOCKET=this.socket,window.NEXOWATT_EOS_SOCKET=this.socket,window.dispatchEvent(new CustomEvent(`nexowatt-eos-admin-socket-ready`)))}componentWillUnmount(){var e,t,n,r,i;window.removeEventListener(`hashchange`,this.onHashChanged,!1),window.removeEventListener(`vite:preloadError`,Yv),(e=this.socket)==null||e.unsubscribeState(`system.adapter.discovery.0.alive`,this.onDiscoveryAlive),(t=this.socket)==null||t.unsubscribeObject(`system.discovery`,this.onDiscoveryObject),(n=this.adaptersWorker)==null||n.unregisterRepositoryHandler(this.repoChangeHandler),(r=this.adaptersWorker)==null||r.unregisterHandler(this.adaptersChangeHandler),(i=this.hostsWorker)==null||i.unregisterHandler(this.updateHosts),this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null),this.pendingCommandTimer&&=(clearTimeout(this.pendingCommandTimer),null),this.pendingCommand=null,window._localStorage&&(window._localStorage=void 0,window._sessionStorage=void 0)}async findCurrentHost(e){if(!this.socket)return;if(e.hosts=await this.socket.getCompactHosts(),!this.state.currentHost){let r=(window._localStorage||window.localStorage).getItem(`App.currentHost`),i=e.hosts.find(e=>e._id===r);if(r&&i){var t;e.currentHost=i._id,e.currentHostName=((t=i.common)==null?void 0:t.name)||i._id.replace(`system.host.`,``)}else{var n;e.currentHost=e.hosts[0]._id,e.currentHostName=((n=e.hosts[0].common)==null?void 0:n.name)||e.hosts[0]._id.replace(`system.host.`,``)}}e.ownHost=e.currentHost;let r;try{r=await this.socket.getState(`${e.currentHost}.alive`)}catch(t){r=null,console.warn(`Cannot get state ${e.currentHost}.alive: ${t}`)}if(!(r!=null&&r.val))for(let t=0;t<e.hosts.length;t++)r=await this.socket.getState(`${e.hosts[t]._id}.alive`),r!=null&&r.val&&(e.currentHost=e.hosts[t]._id,e.currentHostName=e.hosts[t].common.name)}renderTokenTimeoutDialog(){return this.state.askForTokenRefresh?M(vt,{open:!0,onClose:()=>e.logout(),children:[M(pe,{children:[D(ve,{children:A.t(`ra_Session will expire in %s seconds. Continue?`,Math.round((this.state.askForTokenRefresh.expireAt-Date.now())/1e3))}),D(`div`,{children:D(E,{label:A.t(`ra_Do not ask for next 2 hours in this session`),control:D(y,{checked:this.state.askForTokenRefresh.doNotAsk,onChange:()=>{var e;let t={...this.state.askForTokenRefresh};t.doNotAsk=!((e=this.state.askForTokenRefresh)!=null&&e.doNotAsk),this.setState({askForTokenRefresh:t})}})})})]}),M(ue,{children:[D(P,{onClick:()=>{var e,t;let n=(e=this.state.askForTokenRefresh)==null?void 0:e.resolve;(t=this.state.askForTokenRefresh)!=null&&t.doNotAsk&&(this.doNotAskSessionExpiration=Date.now()+72e5),this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.setState({askForTokenRefresh:null},()=>n==null?void 0:n(!0))},variant:`contained`,startIcon:D(Hr,{}),children:A.t(`ra_Continue`)}),D(P,{onClick:()=>e.logout(),variant:`outlined`,color:`grey`,startIcon:D(Or,{}),children:A.t(`ra_Logout`)})]})]}):null}async findNewsInstance(){if(this.socket)for(let e=0;e<200;e++)try{let t=await this.socket.getState(`system.adapter.eos-admin.${e}.alive`);if(t!=null&&t.val)return e}catch(e){console.error(`Cannot find news instance: ${e.stack}`),this.showAlert(`Cannot find news instance: ${e.stack}`,`error`)}return 0}renderNotificationsDialog(){var e,t;return!this.state.notificationsDialog||!this.state.systemConfig||!this.socket?null:D(Ws,{notifications:((e=this.state.notifications)==null?void 0:e.notifications)||{},instances:((t=this.state.notifications)==null?void 0:t.instances)||{},onClose:()=>this.setState({notificationsDialog:!1}),ackCallback:(e,t)=>this.socket.clearNotifications(e,t),dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,socket:this.socket})}renderHostWarningDialog(){return!this.state.showHostWarning||!this.state.systemConfig||!this.socket?null:D(dd,{instances:this.state.showHostWarning.instances,messages:this.state.showHostWarning.result.system.categories,dateFormat:this.state.systemConfig.common.dateFormat,themeType:this.state.themeType,ackCallback:e=>this.socket.clearNotifications(this.state.showHostWarning.host,e),onClose:()=>this.setState({showHostWarning:null})})}renderNewsDialog(){return!this.state.showNews||!this.socket?null:D(od,{newsArr:this.state.showNews.checkNews,current:this.state.showNews.lastNewsId,onSetLastNewsId:async e=>{e&&await this.socket.setState(`admin.${this.newsInstance}.info.newsLastId`,{val:e,ack:!0}),this.setState({showNews:null})}})}renderTipsDialog(){return!this.state.showTips||this.state.wizard||this.state.showNews||this.state.showHostWarning?null:D(Nv,{t:A.t,lang:this.state.lang,lastTipId:(window._localStorage||window.localStorage).getItem(e.LAST_TIP_ID),onClose:(t,n)=>{(window._localStorage||window.localStorage).setItem(e.LAST_TIP_ID,n),this.setState({showTips:!1}),t&&this.disableTips()}})}async disableTips(){if(this.socket)try{var e;let t=await this.socket.getSystemConfig(!0);t!=null&&t.common&&!t.common.tipsDisabled&&(t.common.tipsDisabled=!0,await this.socket.setSystemConfig(t)),(e=this.state.systemConfig)!=null&&e.common&&this.setState({systemConfig:{...this.state.systemConfig,common:{...this.state.systemConfig.common,tipsDisabled:!0}}})}catch(e){this.showAlert(`Cannot save system configuration: ${e.toString()}`,`error`)}}renderSlowConnectionWarning(){return this.state.showSlowConnectionWarning?D(Tv,{readTimeoutMs:this.state.readTimeoutMs,t:A.t,onClose:e=>{e?this.setState({showSlowConnectionWarning:!1,readTimeoutMs:e},()=>this.readRepoAndInstalledInfo(this.state.currentHost,{offerLongerTimeout:!0})):this.setState({showSlowConnectionWarning:!1})}}):null}readRepoAndInstalledInfo(e,t){let n=this.readRepoAndInstalledInfoRun(e,++this.repoInfoRun,t);return this.repoInfoPromise=n,n}async readRepoAndInstalledInfoRun(e,t,n){if(!this.socket)throw Error(`Socket not initialized`);let r=n==null?void 0:n.update,i=()=>{n!=null&&n.offerLongerTimeout&&this.setState({showSlowConnectionWarning:!0})},[a,o,s]=await Promise.all([this.socket.getCompactRepository(e,r,this.state.readTimeoutMs).catch(e=>(window.alert(`Cannot getRepositoryCompact: ${e}`),e.toString().includes(`timeout`)&&i(),{})),this.socket.getCompactInstalled(e,r,this.state.readTimeoutMs).catch(e=>(window.alert(`Cannot getInstalled: ${e}`),e.toString().includes(`timeout`)&&i(),{})),this.socket.getCompactAdapters(r).then(e=>(t===this.repoInfoRun&&this.setState({adapters:e}),e)).catch(e=>(window.alert(`Cannot read adapters: ${e}`),{}))]);t===this.repoInfoRun&&(o&&s&&Object.keys(s).forEach(e=>{o[e]&&s[e].iv&&(o[e].ignoreVersion=s[e].iv)}),this.setState({repository:a,installed:o,adapters:s}))}static tabOfHash(e){return e.replace(/^#/,``).split(`/`)[0]}static isAdminTab(e){return!e||Qv.includes(e)}chatBlocksLeaving(t){return this.chatLeaveConfirmed?(this.chatLeaveConfirmed=!1,!1):this.chatBusy&&e.isAdminTab(e.tabOfHash(this.lastHash))&&!e.isAdminTab(t)}assistantNavigate(t){let n=t.startsWith(`#`)?t:`#${t}`;return e.isAdminTab(e.tabOfHash(n))?(window.location.hash=n,Promise.resolve(!0)):new Promise(e=>this.setState({chatLeaveDialog:{target:{hash:n},reason:`assistant`,resolve:e}}))}onChatLeaveDialog(e){let t=this.state.chatLeaveDialog;this.setState({chatLeaveDialog:null},()=>{var n;t==null||(n=t.resolve)==null||n.call(t,e);let r=t==null?void 0:t.target;e&&r&&(this.chatLeaveConfirmed=!0,`hash`in r?window.location.hash=r.hash:this.handleNavigation(r.tab,r.subTab,r.param))})}static getPort(){let t=parseInt(window.location.port,10);if(Number.isNaN(t))switch(e.getProtocol()){case`https:`:t=443;break;case`http:`:t=80}return t&&t!==3e3||(t=8081),t}static getProtocol(){return window.location.protocol}static createTheme(e){return a(T.getThemeName(e))}static getThemeName(e){return e.name}static getThemeType(e){return e.palette.mode}renderHostSelector(){return!this.socket||!this.hostsWorker?null:D(Xs,{name:`admin.appBar.hostSelector`,config:this.adminGuiConfig,children:D(Zu,{themeType:this.state.themeType,expertMode:this.state.expertMode,socket:this.socket,hostsWorker:this.hostsWorker,currentHost:this.state.currentHost,setCurrentHost:(e,t)=>{this.setState({currentHostName:e,currentHost:t},async()=>{var e;this.logsWorkerChanged(t),(window._localStorage||window.localStorage).setItem(`App.currentHost`,t),await this.readRepoAndInstalledInfo(t,{offerLongerTimeout:!0});let n=await((e=this.hostsWorker)==null?void 0:e.getNotifications(t));await this.handleNewNotifications(n)})}})})}setCurrentTabTitle(){this.setTitle(this.state.currentTab.tab.replace(`tab-`,``))}setTitle(e){document.title=`${e} - ${this.state.currentHostName||`NexoWatt EOS`}`}getCurrentTab(){var e;if(!this.socket||!this.hostsWorker||!this.adaptersWorker||!this.instancesWorker||!this.objectsWorker||!this.state.systemConfig||!this.logsWorker)return null;if((e=this.state)!=null&&(e=e.currentTab)!=null&&e.tab){if(this.state.currentTab.tab===`tab-adapters`){let e=this.props.width===`xs`||this.props.width===`sm`,t=!e&&this.state.drawerState===q.opened,n=e||this.state.drawerState===q.closed;return D(ct,{fallback:D(Bc,{}),children:D(ey,{theme:this.state.theme,triggerUpdate:this.state.triggerAdapterUpdate,forceUpdateAdapters:this.state.forceUpdateAdapters,adaptersWorker:this.adaptersWorker,instancesWorker:this.instancesWorker,themeType:this.state.themeType,systemConfig:this.state.systemConfig,socket:this.socket,adminHost:this.state.ownHost,hostsWorker:this.hostsWorker,currentHost:this.state.currentHost,ready:this.state.ready&&this.state.connected,t:A.t,lang:A.getLanguage(),expertMode:this.state.expertMode,executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),commandRunning:this.state.commandRunning,onSetCommandRunning:e=>this.setState({commandRunning:e}),menuOpened:t,menuClosed:n,adminGuiConfig:this.adminGuiConfig,toggleTranslation:this.toggleTranslation,noTranslation:this.state.noTranslation,adminInstance:this.adminInstance,currentAdminVersion:this.state.versionAdmin,onUpdating:e=>this.setState({updating:e}),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`adapters`)})}if(this.state.currentTab.tab===`tab-instances`)return D(ct,{fallback:D(Bc,{}),children:D(ty,{menuPadding:this.state.drawerState===q.closed?0:this.state.drawerState===q.opened?this.state.editMenuList?250:180:50,socket:this.socket,instancesWorker:this.instancesWorker,lang:A.getLanguage(),hostname:this.state.hostname,adminInstance:this.adminInstance,repository:this.state.repository,hosts:this.state.hosts,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,expertMode:this.state.expertMode,currentHost:this.state.currentHost,currentHostName:this.state.currentHostName,t:A.t,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,width:this.props.width,configStored:e=>this.allStored(e),executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),inBackgroundCommand:this.state.commandError||this.state.performed,onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},handleNavigation:this.handleNavigation,hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`instances`)});if(this.state.currentTab.tab===`tab-overview`)return D(ct,{fallback:D(Bc,{}),children:D($v,{t:A.t,lang:this.state.lang,socket:this.socket,theme:this.state.theme,themeType:this.state.themeType,currentHost:this.state.currentHost,currentHostName:this.state.currentHostName,hostsWorker:this.hostsWorker,instancesWorker:this.instancesWorker,objectsWorker:this.objectsWorker,logsWorker:this.logsWorker,expertMode:this.state.expertMode,installed:this.state.installed,repository:this.state.repository,handleNavigation:e=>this.handleNavigation(e),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`overview`)});if(this.state.currentTab.tab===`tab-intro`)return D(ct,{fallback:D(Bc,{}),children:D(ny,{hostname:this.state.hostname,adminInstance:this.adminInstance,instancesWorker:this.instancesWorker,hostsWorker:this.hostsWorker,showAlert:(e,t)=>this.showAlert(e,t),socket:this.socket,t:A.t,lang:A.getLanguage(),theme:this.state.theme},`intro`)});if(this.state.currentTab.tab===`tab-logs`)return D(ct,{fallback:D(Bc,{}),children:D(ry,{t:A.t,width:this.props.width,lang:this.state.lang,socket:this.socket,themeType:this.state.themeType,theme:this.state.theme,ready:this.state.ready,logsWorker:this.logsWorker,expertMode:this.state.expertMode,currentHost:this.state.currentHost,hostsWorker:this.hostsWorker,clearErrors:()=>this.clearLogErrors(),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`logs`)});if(this.state.currentTab.tab===`tab-files`)return D(ct,{fallback:D(Bc,{}),children:D(iy,{ready:this.state.ready,t:A.t,expertMode:this.state.expertMode,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`files`)});if(this.state.currentTab.tab===`tab-users`)return D(ct,{fallback:D(Bc,{}),children:D(oy,{ready:this.state.ready,t:A.t,expertMode:this.state.expertMode,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`users`)});if(this.state.currentTab.tab===`tab-enums`)return D(ct,{fallback:D(Bc,{}),children:D(sy,{t:A.t,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`enums`)});if(this.state.currentTab.tab===`tab-objects`)return D(ct,{fallback:D(Bc,{}),children:D(ay,{t:A.t,theme:this.state.theme,themeName:this.state.themeName,themeType:this.state.themeType,expertMode:this.state.expertMode,objectsWorker:this.objectsWorker,lang:A.getLanguage(),socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma})},`objects`);if(this.state.currentTab.tab===`tab-hosts`)return D(ct,{fallback:D(Bc,{}),children:D(uy,{socket:this.socket,lang:A.getLanguage(),hostsWorker:this.hostsWorker,toggleTranslation:this.toggleTranslation,noTranslation:this.state.noTranslation,themeType:this.state.themeType,theme:this.state.theme,expertMode:this.state.expertMode,t:A.t,currentHost:this.state.currentHost,executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),systemConfig:this.state.systemConfig,showAdaptersWarning:this.showAdaptersWarning,adminInstance:this.adminInstance,onUpdating:e=>this.setState({updating:e})})});if(this.state.currentTab.tab===`tab-devicemanager`)return D(ct,{fallback:D(Bc,{}),children:D(ly,{themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma},this.state.currentTab.tab)});let e=this.state.currentTab.tab.match(/^tab-([-\w]+?)(?:-(\d+))?$/);if(e){var t;let n=(t=this.tabsInfo)==null?void 0:t.find(t=>t.name===e[0]||t.name===`tab-${e[1]}`);return D(ct,{fallback:D(Bc,{}),children:D(cy,{hostname:this.state.hostname,adminInstance:this.adminInstance,hosts:this.state.hosts,instancesWorker:this.instancesWorker,tab:this.state.currentTab.tab,themeName:this.state.themeName,theme:this.state.theme,expertMode:this.state.expertMode,socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},icon:n==null?void 0:n.icon,supportsLoadingMessage:n==null?void 0:n.supportsLoadingMessage},this.state.currentTab.tab)})}}return null}clearLogErrors(){var e,t;(e=this.logsWorker)==null||e.resetErrors(),(t=this.logsWorker)==null||t.resetWarnings()}getCurrentDialog(){if(this.state&&this.state.currentTab&&this.state.currentTab.dialog){if(this.state.currentTab.dialog===`system`)return this.getSystemSettingsDialog();if(this.state.currentTab.dialog===`discovery`)return this.getDiscoveryModal()}return null}getSystemSettingsDialog(){return D(Ku,{adminGuiConfig:this.adminGuiConfig,width:this.props.width,currentHost:this.state.currentHost,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,onClose:async e=>{var t;yt.doNavigate(null);let n=await((t=this.socket)==null?void 0:t.getObject(`system.config`));n&&(e?this.setState({triggerAdapterUpdate:this.state.triggerAdapterUpdate+1,systemConfig:n}):this.setState({systemConfig:n}))},lang:this.state.lang,socket:this.socket,currentTab:this.state.currentTab,expertModeFunc:e=>{(window._sessionStorage||window.sessionStorage).removeItem(`App.expertMode`);let t=JSON.parse(JSON.stringify(this.state.systemConfig));t.common.expertMode=e,this.setState({expertMode:e,systemConfig:t})},t:A.t},`systemSettings`)}handleAlertClose(e,t){t!==`clickaway`&&this.setState({alert:!1})}isCausedByConnectionLoss(e,t){var n;return e.includes(`notConnectedError`)?!0:this.connectionLostAt?!((n=this.socket)!=null&&n.isConnected())||this.connectionLostAt>t-vy:!1}getConnectionLostText(){return this.connectionLostAt?A.t(`Connection to admin lost. Waiting for reconnection...`):void 0}showAlert(e,t){t!==`error`&&t!==`warning`&&t!==`info`&&t!==`success`&&(t=`info`);let n;n=typeof e==`string`?e:e instanceof Error?e.message||e.toString():e==null?`null`:e.toString(),this.setState({alert:!0,alertType:t,alertMessage:n})}handleDrawerState(e){(window._localStorage||window.localStorage).setItem(`App.drawerState`,e.toString()),this.setState({drawerState:e})}static logout(){ln.deleteTokensStatic(),window.location.port===`3000`?window.location.href=`${window.location.protocol}//${window.location.hostname}:8081/logout?dev`:window.location.href=`./logout?origin=${window.location.pathname}`}allStored(e){this._tempAllStored!==e&&(this._tempAllStored=e,this.forceUpdate())}closeDataNotStoredDialog(){this.setState({dataNotStoredDialog:!1})}confirmDataNotStored(){this._tempAllStored=!0,this.setState({dataNotStoredDialog:!1},()=>{var e,t,n;return this.handleNavigation((e=this.state.dataNotStoredTab)==null?void 0:e.tab,(t=this.state.dataNotStoredTab)==null?void 0:t.subTab,(n=this.state.dataNotStoredTab)==null?void 0:n.param)})}executeCommand(e,t,n,r){if(typeof t==`boolean`&&(n=t,t=void 0),!(this.state.connected&&this.state.ready&&this.socket&&(typeof this.socket.isConnected!=`function`||this.socket.isConnected()))){if(this.pendingCommand){this.showAlert(`EOS stellt die Verbindung noch her. Ein Installations- oder Updatebefehl wartet bereits.`,`warning`);return}let i={cmd:e,host:t,callback:n||void 0,files:r,started:Date.now()};this.pendingCommand=i,this.showAlert(`EOS stellt die Verbindung noch her. Der Befehl wird automatisch gestartet, sobald das System bereit ist.`,`info`);let a=()=>{this.pendingCommand===i&&(this.state.connected&&this.state.ready&&this.socket&&(typeof this.socket.isConnected!=`function`||this.socket.isConnected())?(this.pendingCommand=null,this.pendingCommandTimer=null,this.executeCommand(i.cmd,i.host||void 0,i.callback,i.files)):Date.now()-i.started>=6e4?(this.pendingCommand=null,this.pendingCommandTimer=null,this.showAlert(`Der Befehl wurde nicht gestartet, weil die EOS-Verbindung innerhalb von 60 Sekunden nicht bereit war.`,`error`)):this.pendingCommandTimer=setTimeout(a,500))};this.pendingCommandTimer=setTimeout(a,250)}else this.state.commandRunning?this.showAlert(`Es läuft bereits ein Installations- oder Updatebefehl.`,`warning`):this.state.performed||this.state.commandError?this.setState({cmd:null,cmdDialog:!1,commandError:!1,performed:!1,callback:null,commandHost:null,cmdFiles:null},()=>this.setState({cmd:e,cmdDialog:!0,callback:n,commandHost:t||this.state.currentHost,cmdFiles:r||null})):(console.log(`Execute: ${e}`),this.setState({cmd:e,cmdDialog:!0,callback:n,commandHost:t||this.state.currentHost,cmdFiles:r||null}))}closeCmdDialog(e){this.setState({cmd:null,cmdDialog:!1,commandError:!1,performed:!1,callback:null,commandHost:null,cmdFiles:null},()=>e&&e())}renderWizardDialog(){return this.state.wizard?D(Ll,{executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),host:this.state.currentHost,socket:this.socket,themeName:this.state.themeName,themeType:this.state.themeType,toggleTheme:this.toggleTheme,lang:A.getLanguage(),onClose:e=>{this.setState({wizard:!1,showRedirect:e,redirectCountDown:10,lang:A.getLanguage()},()=>{this.state.showRedirect&&setInterval(()=>{this.state.redirectCountDown>0?this.setState({redirectCountDown:this.state.redirectCountDown-1}):window.location.href=this.state.showRedirect},1e3)})},onNavigate:(e,t,n)=>{yt.doNavigate(e,t,n),window.location.reload()}}):null}showRedirectDialog(){if(this.state.showRedirect){var e;return M(vt,{open:!0,onClose:()=>{},children:[D(S,{children:A.t(`Waiting for admin restart...`)}),D(pe,{children:D(ve,{children:A.t(`Redirect in %s second(s)`,this.state.redirectCountDown)})}),M(ue,{children:[window.sidebar||window.opera&&window.print||window.document.all&&(e=window.external)!=null&&e.AddFavorite?D(P,{onClick:()=>{if(window.sidebar&&this.state.showRedirect)window.sidebar.addPanel(`NexoWatt EOS Admin`,this.state.showRedirect,``);else if(window.opera&&this.state.showRedirect&&window.print){let e=document.createElement(`a`);e.setAttribute(`href`,this.state.showRedirect),e.setAttribute(`title`,`NexoWatt EOS Admin`),e.setAttribute(`rel`,`sidebar`),e.click()}else document.all&&window.external.AddFavorite(this.state.showRedirect,`NexoWatt EOS Admin`)},children:A.t(`Bookmark admin`)}):null,this.state.redirectCountDown?D(P,{variant:`contained`,onClick:()=>this.state.showRedirect&&(window.location.href=this.state.showRedirect),children:A.t(`Go to admin now`)}):null]})]})}return null}renderCommandDialog(){return this.state.cmd&&this.socket?D(Js,{onSetCommandRunning:e=>this.setState({commandRunning:e}),onClose:()=>this.closeCmdDialog(()=>this.setState({commandRunning:!1})),visible:this.state.cmdDialog,callback:this.state.callback,onInBackground:()=>this.setState({cmdDialog:!1}),cmd:this.state.cmd,files:this.state.cmdFiles||void 0,errorFunc:()=>this.setState({commandError:!0}),performed:()=>this.setState({performed:!0}),inBackground:this.state.commandError||this.state.performed,commandError:this.state.commandError,socket:this.socket,host:this.state.commandHost||this.state.currentHost,ready:this.state.ready&&this.state.connected,t:A.t}):null}async getLeadingGroupName(e){if(!this.socket)throw Error(`Socket not ready`);try{let t=await this.socket.getForeignObjects(`system.group.*`,`group`),n=Object.values(t||{}).filter(t=>{var n;return t==null||(n=t.common)==null||(n=n.members)==null?void 0:n.includes(e)}),r=n.find(e=>e._id===`system.group.administrator`)||n[0];return r?T.getObjectNameFromObj(r,this.socket.systemLang):``}catch(t){return console.warn(`Cannot read groups of ${e}: ${t}`),``}}renderSiteName(){var e;let t=(e=this.state.systemConfig)==null||(e=e.common)==null?void 0:e.siteName;return t?D(`div`,{style:$.siteName,children:t}):null}needsMenuButtonSpace(){var e;return!((e=this.state.systemConfig)!=null&&(e=e.common)!=null&&e.siteName)&&this.state.drawerState===q.closed}renderFloatingButtons(){let e=this.state.drawerState===q.closed,t=this.state.cmd&&!this.state.cmdDialog;return!e&&!t?null:M(N,{sx:$.floatingButtons,children:[e?D(R,{onClick:()=>this.handleDrawerState(q.opened),children:D(_t,{})}):null,t?D(R,{onClick:()=>this.setState({cmdDialog:!0}),children:D(Fr,{style:this.state.commandError?$.errorCmd:this.state.performed?T.getStyle(this.state.theme,$.performed):$.cmd})}):null]})}renderAlertSnackbar(){return D(nn,{open:this.state.alert,autoHideDuration:6e3,onClose:()=>this.handleAlertClose(),children:D(ae,{severity:this.state.alertType,variant:`filled`,onClose:()=>this.handleAlertClose(),children:this.state.alertMessage})})}renderDialogConfirm(){return this.state.dataNotStoredDialog?D(Yt,{title:A.t(`ra_Please confirm`),text:A.t(`ra_Some data are not stored. Discard?`),ok:A.t(`ra_Discard`),cancel:A.t(`ra_Cancel`),onClose:e=>e?this.confirmDataNotStored():this.closeDataNotStoredDialog()}):null}renderChatLeaveDialog(){if(!this.state.chatLeaveDialog)return null;let e=this.state.chatLeaveDialog.reason===`busy`;return D(Yt,{title:A.t(`ra_Please confirm`),text:A.t(e?`The assistant is still working on an answer, which is lost on this tab. Leave anyway?`:`The assistant is not available on this tab and will be closed. Continue?`),ok:A.t(e?`Leave anyway`:`Continue`),cancel:A.t(`ra_Cancel`),onClose:e=>this.onChatLeaveDialog(e)})}renderExpertDialog(){return this.state.expertModeDialog?D($u,{onClose:e=>{if(e===`openSettings`)yt.doNavigate(null,`system`);else if(e){var t;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage(`updateExpertMode`,`*`),this.setState({expertModeDialog:!1,expertMode:!this.state.expertMode})}else this.state.expertModeDialog&&this.setState({expertModeDialog:!1})},expertMode:this.state.expertMode}):null}renderShowGuiSettings(){return this.state.showGuiSettings?M(Ft,{anchorEl:this.state.showGuiSettings,open:!0,onClose:()=>this.setState({showGuiSettings:null}),children:[D(Xt,{onClick:()=>{this.setState({showGuiSettings:null}),this.enableGuiSettings(!0).catch(e=>console.error(`Cannot enable GUI settings: ${e}`))},children:A.t(`Use settings of other browsers`)}),D(Xt,{onClick:()=>{this.setState({showGuiSettings:null}),this.enableGuiSettings(!0,!0).catch(e=>console.error(`Cannot enable GUI settings: ${e}`))},children:A.t(`Use settings of this browser`)}),M(Xt,{onClick:()=>this.setState({showGuiSettings:null}),children:[D(Gt,{children:D(Rt,{fontSize:`small`})}),D(ht,{children:A.t(`Cancel`)})]})]}):null}renderMenuButtons(){var e;let t=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`),n=!t||t===`true`==!!((e=this.state.systemConfig)!=null&&e.common.expertMode),r=this.state.noNotifications.warning+this.state.noNotifications.other;return M(Me,{children:[D(Tt,{title:A.t(`Notifications`),slotProps:{popper:{sx:$.tooltip}},children:D(R,{disableRipple:!r,style:{opacity:r?1:.3},onClick:r?()=>this.setState({notificationsDialog:!0}):void 0,children:D(Ct,{badgeContent:this.state.noNotifications.other+this.state.noNotifications.warning,color:this.state.noNotifications.warning>0?`error`:`secondary`,max:99,children:D(Mr,{})})})}),D(Xs,{name:`admin.appBar.discovery`,config:this.adminGuiConfig,children:this.state.discoveryAlive?D(Tt,{title:this.state.discoveryProposals?`${A.t(`Discovery devices`)} - ${A.t(`New adapter proposals`)}: ${this.state.discoveryProposals}`:A.t(`Discovery devices`),slotProps:{popper:{sx:$.tooltip}},children:D(R,{onClick:()=>yt.doNavigate(null,`discovery`),children:D(Ct,{badgeContent:this.state.discoveryProposals,color:`secondary`,max:99,children:D(Nt,{})})})}):D(`div`,{style:{display:`none`}})}),this.toggleThemePossible?D(Xs,{name:`admin.appBar.toggleTheme`,config:this.adminGuiConfig,children:D(Ae,{toggleTheme:this.toggleTheme,themeName:this.state.themeName,t:A.t})}):null,my()?D(Xs,{name:`admin.appBar.expertMode`,config:this.adminGuiConfig,children:D(Tt,{title:`${A.t(`Toggle expert mode`)} ${n?``:` (${A.t(`only in this browser session`)})`}`,slotProps:{popper:{sx:$.tooltip}},children:D(Ct,{color:`secondary`,variant:`dot`,sx:{"& .MuiBadge-badge":$.expertBadge},invisible:n,children:D(R,{"data-eos-expert-control":`1`,onClick:()=>{var e;if(!!((e=this.state.systemConfig)!=null&&e.common.expertMode)==!this.state.expertMode){var t;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),this.setState({expertMode:!this.state.expertMode}),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage(`updateExpertMode`,`*`)}else if((window._sessionStorage||window.sessionStorage).getItem(`App.doNotShowExpertDialog`)===`true`){var n;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),this.setState({expertMode:!this.state.expertMode}),(n=this.refConfigIframe)==null||(n=n.contentWindow)==null||n.postMessage(`updateExpertMode`,`*`)}else this.setState({expertModeDialog:!0})},style:{color:this.state.expertMode?this.state.theme.palette.expert:void 0},color:`default`,children:D(At,{style:{...$.expertIcon,...this.state.expertMode?$.expertIconActive:void 0}})})})})}):null,my()&&this.state.expertMode?D(Tt,{title:A.t(`Synchronize admin settings between all opened browser windows`),slotProps:{popper:{sx:$.tooltip}},children:D(R,{onClick:e=>this.state.guiSettings?this.enableGuiSettings(!1):this.setState({showGuiSettings:e.target}),style:{color:this.state.guiSettings?this.state.theme.palette.expert:void 0},children:this.state.guiSettings?D(U,{}):D(Vr,{})})}):null]})}renderToolbar(e){let t=T.getStyle(this.state.theme,$.performed);return M(It,{children:[D(R,{size:`large`,edge:`start`,style:{...$.menuButton,...!e&&this.state.drawerState!==q.closed?$.hide:void 0},onClick:()=>this.handleDrawerState(q.opened),children:D(_t,{})}),M(`div`,{style:$.wrapperButtons,children:[D(`div`,{style:$.flexGrow}),this.state.cmd&&!this.state.cmdDialog&&D(R,{size:`large`,onClick:()=>this.setState({cmdDialog:!0}),children:D(Fr,{style:this.state.commandError?$.errorCmd:this.state.performed?t:$.cmd})})]}),this.renderSiteName(),this.state.drawerState!==q.opened&&!this.state.expertMode&&window.innerWidth>450&&M(w,{container:!0,style:{...$.avatarNotVisible,...this.state.drawerState===q.opened?void 0:$.avatarVisible},spacing:1,sx:{alignItems:`center`},children:[this.state.user?null:M(N,{component:`div`,style:$.wrapperName,children:[D(F,{children:`admin`}),!this.adminGuiConfig.icon&&this.state.versionAdmin&&M(F,{style:{...$.styleVersion,color:this.state.themeType===`dark`?`#ffffff80`:`#00000080`},children:[`v`,this.state.versionAdmin]})]}),D(w,{children:D(`a`,{href:`#easy`,onClick:e=>e.preventDefault(),style:{color:`inherit`,textDecoration:`none`},children:this.adminGuiConfig.icon?D(`div`,{style:{height:50,width:102,lineHeight:`50px`,background:`white`,borderRadius:5,padding:5},children:D(`img`,{src:this.adminGuiConfig.icon,alt:`logo`,style:{maxWidth:`100%`,maxHeight:`100%`}})}):D(ut,{onClick:()=>this.handleNavigation(`easy`),style:this.state.themeName===`colored`||this.state.themeName===`blue`?$.logoWhite:void 0,alt:`NexoWatt EOS`,src:`img/no-image.svg`})})})]})]})}renderSampleError(){var e,t;let n=(e=this.state.hasGlobalError)==null?void 0:e.message,r=(t=this.state.hasGlobalError)==null?void 0:t.stack;return qv(this.state.hasGlobalError)?M(`div`,{style:{textAlign:`center`,fontSize:22,marginTop:50},children:[D(`h2`,{children:A.t(`The admin was updated. Please load the page anew.`)}),D(P,{variant:`contained`,onClick:()=>window.location.reload(),children:A.t(`Reload`)}),D(`div`,{style:{color:`#888`,fontSize:14,marginTop:20},children:n})]}):M(`div`,{style:{textAlign:`center`,fontSize:22,marginTop:50,height:`calc(100% - 50px)`,overflow:`auto`},children:[D(`h1`,{style:{color:`#F00`},children:`Error in GUI!`}),`Please open the browser console (F12), copy error text from there and create the issue on`,` `,D(`a`,{href:`https://github.com/ioBroker/NexoWatt EOS Admin/issues`,target:`_blank`,rel:`noreferrer`,children:`github`}),D(`br`,{}),`Without this information it is not possible to analyse the error.`,D(`br`,{}),`It should looks like `,D(`br`,{}),D(`img`,{src:`img/browserError.png`,alt:`error`}),D(`br`,{}),`If in the second line you will see`,` `,D(`code`,{style:{color:`#888`,fontFamily:`monospace`,fontSize:16},children:`at :3000/static/js/main.chunk.js:36903`}),` `,`and not the normal file name,`,D(`br`,{}),`please try to reproduce an error with opened browser console. In this case the special "map" files will be loaded and the developers can see the real name of functions and files.`,D(`div`,{style:{color:`#F88`,fontSize:14,marginTop:20},children:n}),D(`pre`,{style:{color:`#F88`,fontSize:12,fontFamily:`monospace`,textAlign:`left`,marginTop:20,padding:20},children:(r||``).toString().split(`
|
|
205
205
|
`).map((e,t)=>M(`div`,{children:[e,D(`br`,{})]},t))})]})}renderEasyMode(){var e,t;return this.socket?D(fe,{injectFirst:!0,children:D(_e,{theme:this.state.theme,children:M(`div`,{style:{height:`100%`},children:[!this.state.connected&&D(Bc,{text:this.getConnectionLostText()}),D(ct,{fallback:D(Bc,{}),children:D(dy,{navigate:yt.doNavigate,getLocation:yt.getLocation,location:this.state.currentTab,toggleTheme:this.toggleTheme,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,width:this.props.width,adminInstance:this.adminInstance,configs:this.state.easyModeConfigs,socket:this.socket,configStored:e=>this.allStored(e),isFloatComma:!!((e=this.state.systemConfig)!=null&&e.common.isFloatComma),dateFormat:((t=this.state.systemConfig)==null?void 0:t.common.dateFormat)||`DD.MM.YYYY`,t:A.t,lang:A.getLanguage(),onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},handleNavigation:this.handleNavigation})})]})})}):null}render(){var t,n,r;let i=this.props.width===`xs`||this.props.width===`sm`,a=!!((t=this.state.systemConfig)!=null&&(t=t.common)!=null&&t.siteName),o=this.needsMenuButtonSpace();return this.state.cloudNotConnected?D(fe,{injectFirst:!0,children:M(_e,{theme:this.state.theme,children:[D(`div`,{style:{width:`100%`,height:`100%`,textAlign:`center`,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:this.state.themeType===`dark`?`#1a1a1a`:`#fafafa`,color:this.state.themeType===`dark`?`#fafafa`:`#1a1a1a`},children:M(`div`,{style:{width:300,height:100},children:[D(ge,{}),M(`div`,{style:{fontSize:16},children:[A.t(`Waiting for connection of ioBroker...`),` `,D(`span`,{style:{fontSize:18},children:this.state.cloudReconnect})]})]})}),this.renderAlertSnackbar()]})}):this.state.hasGlobalError?this.renderSampleError():this.state.login?D(fe,{injectFirst:!0,children:M(_e,{theme:this.state.theme,children:[D(Yu,{}),this.renderAlertSnackbar()]})}):!this.state.ready&&!this.state.updating?D(fe,{injectFirst:!0,children:M(_e,{theme:this.state.theme,children:[D(u,{}),D(b,{themeType:this.state.themeType}),this.renderAlertSnackbar()]})}):this.state.strictEasyMode||this.state.currentTab.tab===`easy`?this.renderEasyMode():D(fe,{injectFirst:!0,children:M(_e,{theme:this.state.theme,children:[D(me,{theme:this.state.theme}),D(u,{}),D(`style`,{children:`@keyframes myEffect2 {
|
|
206
206
|
0% {
|
|
207
207
|
opacity: 1;
|