iobroker.eos-admin 9.0.25 → 9.0.26
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 +3 -3
- package/README.md +6 -4
- package/START_HIER_9.0.26.md +80 -0
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +107 -107
- package/adminWww/assets/{AdapterUpdateDialog-CLDpmxDx.js → AdapterUpdateDialog-DIjnNZ5k.js} +1 -1
- package/adminWww/assets/{Adapters-BCGeX2v7.js → Adapters-D8UOQg1q.js} +1 -1
- package/adminWww/assets/{ConfigManager-B_sJf5_w.js → ConfigManager-CAvT_4-g.js} +1 -1
- package/adminWww/assets/{Enums-D3n1pOtc.js → Enums-CrNUOX0d.js} +1 -1
- package/adminWww/assets/{Fields-Bdx5gPoT.js → Fields-D-0qFiqr.js} +1 -1
- package/adminWww/assets/{Files-BPK84lYU.js → Files-BL8kvaeC.js} +1 -1
- package/adminWww/assets/{Hosts--Jr6oLf2.js → Hosts-BToJLy61.js} +1 -1
- package/adminWww/assets/{Instances-DxTOzFus.js → Instances-Dlrp1KGP.js} +1 -1
- package/adminWww/assets/{Intro-CYBGeZtu.js → Intro-5EbxvP4X.js} +1 -1
- package/adminWww/assets/{Logs-CVNC-4S8.js → Logs-xdFVJ6fZ.js} +1 -1
- package/adminWww/assets/{Objects-Cqm9Rvym.js → Objects-DhyJ5eAY.js} +1 -1
- package/adminWww/assets/{Overview-JgjcHwlz.js → Overview-BspgcFB7.js} +1 -1
- package/adminWww/assets/{State-BV14HSwZ.js → State-CJ1mKH_U.js} +1 -1
- package/adminWww/assets/{UsedResources-Dz48WzEF.js → UsedResources-BMiCxqWH.js} +1 -1
- package/adminWww/assets/{Users-D19YlRCD.js → Users-DrlJHRa5.js} +1 -1
- package/adminWww/assets/{bootstrap-a7POLSDr.js → bootstrap-BU7j1Fe_.js} +3 -3
- package/adminWww/assets/{hostInit-keGjwsZR.js → hostInit-Cgee6juw.js} +1 -1
- package/adminWww/assets/{icons-material-Omb_HCfb.js → icons-material-C0U9EKON.js} +1 -1
- package/adminWww/assets/{index-DqPrQK7T.js → index-BUZf1ftI.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-iWfLFoQU.js → installSVGRenderer-CcjgaxiA.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-2a856bb6.js → mf-entry-bootstrap-0-96d40e57.js} +2 -2
- package/adminWww/index.html +23 -23
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/remoteEntry-eos-9.0.26.js +12 -0
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosKiosk.js +11 -1
- package/build/lib/eosKiosk.js.map +1 -1
- package/build/lib/eosModuleHost.js +134 -38
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +9 -3
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosModuleLoad.js +83 -0
- package/build/lib/eosModuleLoad.js.map +1 -0
- package/build/lib/eosModuleProcess.js +16 -1
- package/build/lib/eosModuleProcess.js.map +1 -1
- package/build/lib/eosModuleProcessProtocol.js +13 -1
- package/build/lib/eosModuleProcessProtocol.js.map +1 -1
- package/build/lib/eosModuleProcessWorker.js +50 -23
- package/build/lib/eosModuleProcessWorker.js.map +1 -1
- package/build/lib/eosRuntimeControl.js +17 -6
- package/build/lib/eosRuntimeControl.js.map +1 -1
- package/build/lib/eosTlsHttp.js +84 -0
- package/build/lib/eosTlsHttp.js.map +1 -1
- package/build/lib/eosUiProcessWorker.js +1 -0
- package/build/lib/eosUiProcessWorker.js.map +1 -1
- package/build/lib/web.js +18 -1
- package/build/lib/web.js.map +1 -1
- package/docs/reports/unified-9.0.26/ACTIVATION.md +50 -0
- package/docs/reports/unified-9.0.26/BACKUP_READINESS_REVIEW.md +30 -0
- package/docs/reports/unified-9.0.26/BACKUP_UI.md +69 -0
- package/docs/reports/unified-9.0.26/CHARGING_CLIENT_REVIEW.md +24 -0
- package/docs/reports/unified-9.0.26/EVCS_DELETE_UI_REVIEW.md +120 -0
- package/docs/reports/unified-9.0.26/EVCS_IDENTITY_REVIEW.md +47 -0
- package/docs/reports/unified-9.0.26/INDEPENDENT_REVIEW.md +114 -0
- package/docs/reports/unified-9.0.26/LIFECYCLE_REVIEW.md +47 -0
- package/docs/reports/unified-9.0.26/OCPP_DELETION_REVIEW.md +49 -0
- package/docs/reports/unified-9.0.26/PIPELINE_OFFLINE_ASSERTION_REVIEW.md +71 -0
- package/docs/reports/unified-9.0.26/PRUEFBERICHT.md +71 -0
- package/docs/reports/unified-9.0.26/PWA_TLS.md +43 -0
- package/docs/reports/unified-9.0.26/TARIFF_STARTUP.md +42 -0
- package/docs/reports/unified-9.0.26/installed-package/README.md +105 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-git-export.json +31 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node22-install.log +15 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node22-lifecycle.log +17 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node22.log +26 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node24-lifecycle.log +17 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node24.log +10 -0
- package/docs/reports/unified-9.0.26/installed-package/diagnostic-node22.log +26 -0
- package/docs/reports/unified-9.0.26/installed-package/diagnostic-node24.log +10 -0
- package/docs/reports/unified-9.0.26/installed-package/registry925-comparison.json +18 -0
- package/docs/reports/unified-9.0.26/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.26/raw/activation/INTERNAL_VISUAL_CHECKS.md +1 -0
- package/docs/reports/unified-9.0.26/raw/activation/eslint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/activation/node22-browser.json +74 -0
- package/docs/reports/unified-9.0.26/raw/activation/node22-browser.stderr.log +2 -0
- package/docs/reports/unified-9.0.26/raw/activation/node22-real-processes.log +40 -0
- package/docs/reports/unified-9.0.26/raw/activation/node22-unit-http.log +196 -0
- package/docs/reports/unified-9.0.26/raw/activation/node24-browser.json +74 -0
- package/docs/reports/unified-9.0.26/raw/activation/node24-browser.stderr.log +0 -0
- package/docs/reports/unified-9.0.26/raw/activation/node24-module-http.log +18 -0
- package/docs/reports/unified-9.0.26/raw/activation/node24-tests.log +43 -0
- package/docs/reports/unified-9.0.26/raw/activation/typecheck.log +0 -0
- package/docs/reports/unified-9.0.26/raw/activation/verification.json +38 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/field-map.json +497 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/node22-browser.json +67 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/node22-browser.stderr.log +2 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/node24-browser.json +67 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/node24-browser.stderr.log +0 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/verification.json +32 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/FINAL_CHECKS.json +45 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-backend-before-ems-tariff.log +5 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-backend-delivery.log +5 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-frontend.log +152 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-installer.log +26 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-modules.log +5 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-ui-runtime-delivery.log +7 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-ui-runtime.log +7 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-lint-complete.log +45 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-lint-delivery.log +45 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-production-audit.json +77 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-production-audit.stderr +1 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-registry-check.json +7 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-registry-check.stderr +9 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-sbom-vendored.log +1 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-typecheck-complete.log +5 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-typecheck-delivery.log +5 -0
- package/docs/reports/unified-9.0.26/raw/charging-control-client-review-hashes.json +10 -0
- package/docs/reports/unified-9.0.26/raw/charging-control-client-review-node22.log +86 -0
- package/docs/reports/unified-9.0.26/raw/charging-control-client-review-node24.log +20 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity/node22.log +130 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity/node24.log +27 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/PRODUCT_REVIEW.md +45 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/independent-probes.json +18 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/independent-probes.stderr +0 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/node24-tests.log +38 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/registry-ipc.json +24 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/review-probes.cjs +81 -0
- package/docs/reports/unified-9.0.26/raw/deletion-station-kiosk-node22.log +188 -0
- package/docs/reports/unified-9.0.26/raw/deletion-station-kiosk-node24.log +36 -0
- package/docs/reports/unified-9.0.26/raw/evcs-control-fence-node22.log +148 -0
- package/docs/reports/unified-9.0.26/raw/evcs-control-fence-node24.log +30 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/browser-lint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-browser.json +28 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-browser.log +3 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-client-handshake.log +112 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-corrected.log +94 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-diagnostic.log +27 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-repro.log +94 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-tick-probe.log +36 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-browser.json +28 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-browser.log +1 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-client-handshake.log +24 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-corrected.log +23 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-repro.log +23 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-tick-probe.log +28 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/pipeline-corrected-snapshot.json +23 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/pipeline-lint.log +6 -0
- package/docs/reports/unified-9.0.26/raw/final-source-snapshot.json +16 -0
- package/docs/reports/unified-9.0.26/raw/git-vendor-source/node22.log +28 -0
- package/docs/reports/unified-9.0.26/raw/git-vendor-source/node24.log +10 -0
- package/docs/reports/unified-9.0.26/raw/git-vendor-source/verification.json +29 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/GIT_ADDENDUM.json +20 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/INDEX.json +76 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/baseline925-artifacts-independent.json +16 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-complete-node22.log +22 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-complete-node24.log +9 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-node24.log +9 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/git-transport-independent.json +33 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/npm-dry-run-file-inventory.json +16271 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/npm-git-complete-inventory.json +40 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/public-trust-node24.log +9 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/runtime-lifecycle-import-node24.log +35 -0
- package/docs/reports/unified-9.0.26/raw/lifecycle/node22-baseline925.json +30 -0
- package/docs/reports/unified-9.0.26/raw/lifecycle/node22-candidate926.json +30 -0
- package/docs/reports/unified-9.0.26/raw/lifecycle/node24-baseline925.json +30 -0
- package/docs/reports/unified-9.0.26/raw/lifecycle/node24-candidate926.json +30 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-backup-git-regression.log +16035 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-backup-ui.log +16037 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-ems-tariff.log +16064 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-git-regression.log +16027 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-pipeline-fixture.log +11584 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-remap-noop.log +11581 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-final.log +16520 -0
- package/docs/reports/unified-9.0.26/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-backup-git-regression.log +2678 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-backup-ui.log +2678 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-ems-tariff.log +1860 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-git-regression.log +2677 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-pipeline-fixture.log +1925 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-remap-noop.log +1924 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-final.log +2757 -0
- package/docs/reports/unified-9.0.26/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.26/raw/ocpp-deletion-node22.log +148 -0
- package/docs/reports/unified-9.0.26/raw/ocpp-deletion-node24.log +30 -0
- package/docs/reports/unified-9.0.26/raw/publish-overlay-provenance.json +10 -0
- package/docs/reports/unified-9.0.26/raw/pwa/INTERNAL_VISUAL_CHECKS.md +1 -0
- package/docs/reports/unified-9.0.26/raw/pwa/index.json +18 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-baseline.log +48 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser-node22.json +33 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser-node22.stderr +5 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser.json +33 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser.stderr +2 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-focused-node22.log +137 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-focused-node24.log +32 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-lint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-recovery-node22.log +28 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-recovery-node24.log +10 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-tls-final.log +9 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-typecheck.log +0 -0
- package/docs/reports/unified-9.0.26/raw/tariff-deletion-station-kiosk-node22.log +250 -0
- package/docs/reports/unified-9.0.26/raw/tariff-deletion-station-kiosk-node24.log +46 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/PRODUCT_REVIEW.md +30 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/browser-eslint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/eslint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/independent-review-node24.log +35 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-browser.json +43 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-browser.stderr +2 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-process-final.log +26 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-tests.log +378 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-browser.json +43 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-browser.stderr +0 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-process-final.log +10 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-tests.log +66 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/process-verification.json +41 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/typecheck.log +0 -0
- package/docs/unified/NEXOWATT_TLS_DE.md +12 -2
- package/io-package.json +8 -9
- package/modules/backup/admin/index.html +24 -95
- package/modules/backup/admin/index.js +350 -98
- package/modules/backup/admin/style.css +40 -0
- package/package.json +12 -8
- package/public/eos-runtime/index.js +12 -2
- package/public/eos-tls/index.html +1 -1
- package/public/eos-tls/trust.css +19 -0
- package/public/eos-tls/trust.html +52 -0
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +316 -126
- package/release-manifests/unified/frontend.cdx.json +6 -6
- package/release-manifests/unified/installer.cdx.json +2 -2
- package/release-manifests/unified/obsolete-admin-assets.json +539 -457
- package/release-manifests/unified/runtime.cdx.json +26 -26
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-lifecycle-benchmark.cjs +50 -0
- package/tools/eos-release-manifest.cjs +1 -1
- package/ui/ems/engine.js +5 -1
- package/ui/io-package.json +1 -1
- package/ui/lib/charging-point-identity.js +465 -0
- package/ui/lib/charging-station-identity.js +111 -0
- package/ui/lib/ocpp-auto-discovery.js +34 -3
- package/ui/main.js +165 -29
- package/ui/package.json +1 -1
- package/ui/www/app.js +63 -18
- package/ui/www/customer-tariff.js +67 -11
- package/ui/www/dc-station-display.js +15 -11
- package/ui/www/ems-apps.js +40 -6
- package/ui/www/evcs.js +55 -12
- package/ui/www/login.html +1 -0
- package/ui/www/manifest.webmanifest +2 -2
- package/adminWww/remoteEntry-eos-9.0.25.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,t}from"./rolldown-runtime-sJBDdmOt.js";import{Aa as n,An as r,Ao as i,Ar as a,Bo as o,Ci as s,Co as c,Es as l,Fi as u,Ha as d,Ho as f,Hs as p,Io as ee,Is as te,Jo as m,Ka as h,Ko as g,Lr as ne,Ls as re,Mo as ie,Oo as _,Pi as ae,Po as oe,Ps as se,Qa as ce,Qs as le,Ro as ue,Rr as de,Rs as fe,Si as pe,To as v,Tr as y,Ts as b,Uo as x,Ur as me,Us as S,Vo as C,Vs as w,Wa as he,Wo as T,Wr as E,Xo as ge,Za as _e,Zn as ve,ba as ye,co as be,ea as xe,er as D,fo as Se,gi as Ce,go as O,ha as we,hs as Te,is as Ee,jo as De,kr as Oe,lo as k,ls as A,mo as j,ms as ke,oi as Ae,os as M,pc as je,po as N,ps as P,qa as F,qo as Me,qs as I,r as Ne,sa as Pe,sc as Fe,so as Ie,sr as Le,tc as L,tn as Re,ua as ze,wo as Be,xa as Ve,xo as He,yo as R,zr as Ue,zs as We}from"./loadShare-eager-dmdYQhAl.js";import{i as Ge}from"./Usb-C8HitPqx.js";import{t as Ke}from"./Cached-DXXpEqUN.js";import{t as qe}from"./Computer-BBU3Cm9-.js";import{t as Je}from"./ViewList-DVj9ENkU.js";import{i as Ye,t as z}from"./AdminUtils-Dc1eHsx5.js";import{M as Xe,a as Ze,j as Qe,n as $e}from"./bootstrap-a7POLSDr.js";import{t as et}from"./AdapterUpdateDialog-CLDpmxDx.js";import{t as tt}from"./CustomModal-Do2qVZr7.js";import{t as nt}from"./UsedResources-Dz48WzEF.js";var rt=e(t(((e,t,n)=>{(function(e){let n=`(0?\\d+|0x[a-f0-9]+)`,r={fourOctet:RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,`i`),threeOctet:RegExp(`^${n}\\.${n}\\.${n}$`,`i`),twoOctet:RegExp(`^${n}\\.${n}$`,`i`),longValue:RegExp(`^${n}$`,`i`)},i=RegExp(`^0[0-7]+$`,`i`),a=RegExp(`^0x[a-f0-9]+$`,`i`),o=`%[0-9a-z]{1,}`,s=`(?:[0-9a-f]+::?)+`,c={zoneIndex:RegExp(o,`i`),native:RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,`i`),deprecatedTransitional:RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${o})?)$`,`i`),transitional:RegExp(`^((?:${s})|(?:::)(?:${s})?)${n}\\.${n}\\.${n}\\.${n}(${o})?$`,`i`)};function l(e,t){if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;let n=0,r=-1,i=(e.match(c.zoneIndex)||[])[0],a,o;for(i&&(i=i.substring(1),e=e.replace(/%.+$/,``));(r=e.indexOf(`:`,r+1))>=0;)n++;if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>=t)return null;for(o=t-n,a=`:`;o--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){let t=e.split(`:`),n=[];for(let e=0;e<t.length;e++)n.push(t[e].length>4?NaN:parseInt(t[e],16));return n})(),{parts:t,zoneId:i}}function u(e,t,n,r){if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);let i=0,a;for(;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0}function d(e){if(a.test(e))return parseInt(e,16);if(e[0]===`0`&&!isNaN(parseInt(e[1],10))){if(i.test(e))return parseInt(e,8);throw Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function f(e,t){for(;e.length<t;)e=`0${e}`;return e}let p={};p.IPv4=(function(){function e(e){if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return`ipv4`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},r,i,a;for(r=3;r>=0;--r)if(i=this.octets[r],i in n){if(a=n[i],t&&a!==0)return null;a!==8&&(t=!0),e+=a}else return null;return 32-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return p.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(`.`)},e})(),p.IPv4.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<4;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.isIPv4=function(e){return this.parser(e)!==null},p.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},p.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv4.isValidFourPartDecimal=function(e){return!!(p.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},p.IPv4.isValidCIDRFourPartDecimal=function(e){let t=e.match(/^(.+)\/(\d+)$/);return!p.IPv4.isValidCIDR(e)||!t?!1:p.IPv4.isValidFourPartDecimal(t[1])},p.IPv4.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv4 Address`);return new this(t)},p.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){let e=parseInt(t[2]);if(e>=0&&e<=32){let n=[this.parse(t[1]),e];return Object.defineProperty(n,"toString",{value:function(){return this.join(`/`)}}),n}}throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},p.IPv4.parser=function(e){let t,n,i;if(t=e.match(r.fourOctet))return(function(){let e=t.slice(1,6),r=[];for(let t=0;t<e.length;t++)n=e[t],r.push(d(n));return r})();if(t=e.match(r.longValue)){if(i=d(t[1]),i>4294967295||i<0)throw Error(`ipaddr: address outside defined range`);return(function(){let e=[],t=0;for(;t<=24;t+=8)e.push(i>>t&255);return e})().reverse()}return(t=e.match(r.twoOctet))?(function(){let e=t.slice(1,4),n=[];if(i=d(e[1]),i>16777215||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(i>>16&255),n.push(i>>8&255),n.push(i&255),n})():(t=e.match(r.threeOctet))?(function(){let e=t.slice(1,5),n=[];if(i=d(e[2]),i>65535||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(d(e[1])),n.push(i>>8&255),n.push(i&255),n})():null},p.IPv4.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);let t=[0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<4&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.IPv6=(function(){function e(e,t){let n,r;if(e.length===16)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(n=0;n<this.parts.length;n++)if(r=this.parts[n],!(0<=r&&r<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new e([65216,0,0,0,0,0,0,0]),10],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new e([100,65435,0,0,0,0,0,0]),96],[new e([100,65435,1,0,0,0,0,0]),48]],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new e([24320,0,0,0,0,0,0,0]),16],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32],[new e([16383,0,0,0,0,0,0,0]),20]]},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.kind=function(){return`ipv6`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r,i;for(let a=7;a>=0;--a)if(r=this.parts[a],r in n){if(i=n[r],t&&i!==0)return null;i!==16&&(t=!0),e+=i}else return null;return 128-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e,t=[],n=this.parts;for(let r=0;r<n.length;r++)e=n[r],t.push(e>>8),t.push(e&255);return t},e.prototype.toFixedLengthString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(f(this.parts[t].toString(16),4));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);let e=this.parts.slice(-2),t=e[0],n=e[1];return new p.IPv4([t>>8,t&255,n>>8,n&255])},e.prototype.toNormalizedString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){let e=/((^|:)(0(:|$)){2,})/g,t=``;this.zoneId&&(t=`%${this.zoneId}`);let n=this.toNormalizedString(),r=n.slice(0,n.length-t.length),i=0,a=-1,o=-1,s;for(;s=e.exec(r);){let e=(s[0].match(/0/g)||[]).length;e>o&&(o=e,i=s.index,a=s[0].length)}return a<0?r+t:`${r.substring(0,i)}::${r.substring(i+a)}${t}`},e.prototype.toString=function(){return this.toRFC5952String()},e})(),p.IPv6.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<16;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.isIPv6=function(e){return this.parser(e)!==null},p.IPv6.isValid=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{let t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch{return!1}},p.IPv6.isValidCIDR=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv6.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv6 Address`);return new this(t.parts,t.zoneId)},p.IPv6.parseCIDR=function(e){let t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,"toString",{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},p.IPv6.parser=function(e){let t,n,r,i,a,o;if(r=e.match(c.deprecatedTransitional))return this.parser(`::ffff:${r[1]}`);if(c.native.test(e))return l(e,8);if((r=e.match(c.transitional))&&(o=r[6]||``,t=r[1],r[1].endsWith(`::`)||(t=t.slice(0,-1)),t=l(t+o,6),t&&t.parts)){for(a=[parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseInt(r[5])],n=0;n<a.length;n++)if(i=a[n],!(0<=i&&i<=255))return null;return t.parts.push(a[0]<<8|a[1]),t.parts.push(a[2]<<8|a[3]),{parts:t.parts,zoneId:t.zoneId}}return null},p.IPv6.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>128)throw Error(`ipaddr: invalid IPv6 prefix length`);let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<16&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.fromByteArray=function(e){let t=e.length;if(t===4)return new p.IPv4(e);if(t===16)return new p.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},p.isValid=function(e){return p.IPv6.isValid(e)||p.IPv4.isValid(e)},p.isValidCIDR=function(e){return p.IPv6.isValidCIDR(e)||p.IPv4.isValidCIDR(e)},p.parse=function(e){if(p.IPv6.isValid(e))return p.IPv6.parse(e);if(p.IPv4.isValid(e))return p.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},p.parseCIDR=function(e){try{return p.IPv6.parseCIDR(e)}catch{try{return p.IPv4.parseCIDR(e)}catch(e){throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`,{cause:e})}}},p.process=function(e){let t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t},p.subnetMatch=function(e,t,n){let r,i,a,o;for(i in n??=`unicast`,t)if(Object.prototype.hasOwnProperty.call(t,i)){for(a=t[i],a[0]&&!(a[0]instanceof Array)&&(a=[a]),r=0;r<a.length;r++)if(o=a[r],e.kind()===o[0].kind()&&e.match.apply(e,o))return i}return n},t!==void 0&&t.exports?t.exports=p:e.ipaddr=p})(n)}))(),1);l();var it=class extends L{constructor(e){super(e),b(this,`updating`,!1),b(this,`textareaRef`,I.createRef()),b(this,`link`,`${window.location.protocol}//${window.location.host}/`),b(this,`interval`,null),b(this,`startTimeout`,null),this.state={response:null,error:null,starting:!0}}setUpdating(e){this.updating!==e&&(this.updating=e,this.props.onUpdating(e))}async findIpAddress(){var e,t;if((await this.props.socket.getObject(`system.adapter.${this.props.adminInstance}`)).common.host===this.props.hostId)return;let n=await this.props.socket.getObject(this.props.hostId),r=await this.props.socket.readBaseSettings(this.props.hostId),i=(r==null||(e=r.config)==null||(e=e.objects)==null?void 0:e.host)||``;if(i&&i!==`localhost`&&(i=rt.default.parse(Array.isArray(i)?i[0]:i).toString(),n!=null&&(t=n.native)!=null&&(t=t.hardware)!=null&&t.networkInterfaces))for(let e of Object.values(n.native.hardware.networkInterfaces))e.find(e=>{try{let t=rt.default.parseCIDR(e.cidr).toString();e.internal===!1&&i.match(t)&&(this.link=`${window.location.protocol}//${e.family===`IPv6`?`[${e.address}]`:e.address}:${window.location.port}`)}catch{}return!1})}async componentDidMount(){try{await this.findIpAddress()}catch(e){console.error(`Cannot find ip address: ${e.message}`)}try{await this.props.socket.upgradeController(this.props.hostId,this.props.version,parseInt(this.props.adminInstance.split(`.`).pop()||``,10))}catch(e){console.error(`Cannot update controller: ${e.message}`),this.setState({error:y.t(`Not updatable`),starting:!1}),this.setUpdating(!1);return}this.setUpdating(!0),this.interval=setInterval(()=>this.checkStatus(),1e3),this.startTimeout=setTimeout(()=>{this.startTimeout=null,this.setState({starting:!1})},1e4)}componentWillUnmount(){this.interval&&=(clearInterval(this.interval),null),this.startTimeout&&=(clearTimeout(this.startTimeout),null)}async checkStatus(){console.log(`Request update status from: ${this.link}`);try{let e=await(await fetch(this.link)).text();console.log(`Received status: ${e}`);let t=JSON.parse(e);t!=null&&t.stderr&&(t.stderr=t.stderr.filter(e=>e.trim())),t&&!t.running&&t.success&&t.stdout?(t.stdout.push(``),t.stdout.push(`---------------------------------------------------`),t.stdout.push(y.t(`%s was successfully updated to %s`,`js-controller`,this.props.version))):t!=null&&t.stdout&&(t.stdout.unshift(``),t.stdout.unshift(`---------------------------------------------------`),t.stdout.unshift(y.t(`updating %s to %s...`,`js-controller`,this.props.version))),this.setState({response:t,error:null},()=>{t&&!t.running?(this.setUpdating(!1),this.interval&&=(clearInterval(this.interval),null)):t!=null&&t.running&&this.setUpdating(!0),this.textareaRef.current&&setTimeout(()=>this.textareaRef.current&&(this.textareaRef.current.scrollTop=this.textareaRef.current.scrollHeight),100)})}catch(e){this.state.starting||this.setState({error:e.toString()},()=>this.setUpdating(!1))}}render(){var e,t,n,r,a;return S(i,{onClose:(e,t)=>{t!==`escapeKeyDown`&&t!==`backdropClick`&&this.props.onClose()},open:!0,maxWidth:`lg`,fullWidth:!0,children:[p(oe,{children:y.t(`Updating %s...`,`js-controller`)}),S(ie,{style:{height:400,padding:`0 20px`,overflow:`hidden`},children:[(!this.state.response||this.state.response.running)&&!this.state.error?p(ge,{}):null,this.state.response||this.state.error?p(`textarea`,{ref:this.textareaRef,style:{width:`100%`,height:`100%`,resize:`none`,background:this.props.themeType===`dark`?`#000`:`#fff`,color:this.props.themeType===`dark`?`#EEE`:`#111`,boxSizing:`border-box`,fontFamily:`Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace`,border:(e=this.state.response)!=null&&e.success?`2px solid green`:this.state.error||this.state.response&&!this.state.response.running&&!this.state.response.success?`2px solid red`:void 0},value:this.state.error?this.state.error:this.state.response.stderr&&this.state.response.stderr.length?this.state.response.stderr.join(`
|
|
1
|
+
import{a as e,t}from"./rolldown-runtime-sJBDdmOt.js";import{Aa as n,An as r,Ao as i,Ar as a,Bo as o,Ci as s,Co as c,Es as l,Fi as u,Ha as d,Ho as f,Hs as p,Io as ee,Is as te,Jo as m,Ka as h,Ko as g,Lr as ne,Ls as re,Mo as ie,Oo as _,Pi as ae,Po as oe,Ps as se,Qa as ce,Qs as le,Ro as ue,Rr as de,Rs as fe,Si as pe,To as v,Tr as y,Ts as b,Uo as x,Ur as me,Us as S,Vo as C,Vs as w,Wa as he,Wo as T,Wr as E,Xo as ge,Za as _e,Zn as ve,ba as ye,co as be,ea as xe,er as D,fo as Se,gi as Ce,go as O,ha as we,hs as Te,is as Ee,jo as De,kr as Oe,lo as k,ls as A,mo as j,ms as ke,oi as Ae,os as M,pc as je,po as N,ps as P,qa as F,qo as Me,qs as I,r as Ne,sa as Pe,sc as Fe,so as Ie,sr as Le,tc as L,tn as Re,ua as ze,wo as Be,xa as Ve,xo as He,yo as R,zr as Ue,zs as We}from"./loadShare-eager-dmdYQhAl.js";import{i as Ge}from"./Usb-C8HitPqx.js";import{t as Ke}from"./Cached-DXXpEqUN.js";import{t as qe}from"./Computer-BBU3Cm9-.js";import{t as Je}from"./ViewList-DVj9ENkU.js";import{i as Ye,t as z}from"./AdminUtils-Dc1eHsx5.js";import{M as Xe,a as Ze,j as Qe,n as $e}from"./bootstrap-BU7j1Fe_.js";import{t as et}from"./AdapterUpdateDialog-DIjnNZ5k.js";import{t as tt}from"./CustomModal-Do2qVZr7.js";import{t as nt}from"./UsedResources-BMiCxqWH.js";var rt=e(t(((e,t,n)=>{(function(e){let n=`(0?\\d+|0x[a-f0-9]+)`,r={fourOctet:RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,`i`),threeOctet:RegExp(`^${n}\\.${n}\\.${n}$`,`i`),twoOctet:RegExp(`^${n}\\.${n}$`,`i`),longValue:RegExp(`^${n}$`,`i`)},i=RegExp(`^0[0-7]+$`,`i`),a=RegExp(`^0x[a-f0-9]+$`,`i`),o=`%[0-9a-z]{1,}`,s=`(?:[0-9a-f]+::?)+`,c={zoneIndex:RegExp(o,`i`),native:RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,`i`),deprecatedTransitional:RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${o})?)$`,`i`),transitional:RegExp(`^((?:${s})|(?:::)(?:${s})?)${n}\\.${n}\\.${n}\\.${n}(${o})?$`,`i`)};function l(e,t){if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;let n=0,r=-1,i=(e.match(c.zoneIndex)||[])[0],a,o;for(i&&(i=i.substring(1),e=e.replace(/%.+$/,``));(r=e.indexOf(`:`,r+1))>=0;)n++;if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>=t)return null;for(o=t-n,a=`:`;o--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){let t=e.split(`:`),n=[];for(let e=0;e<t.length;e++)n.push(t[e].length>4?NaN:parseInt(t[e],16));return n})(),{parts:t,zoneId:i}}function u(e,t,n,r){if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);let i=0,a;for(;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0}function d(e){if(a.test(e))return parseInt(e,16);if(e[0]===`0`&&!isNaN(parseInt(e[1],10))){if(i.test(e))return parseInt(e,8);throw Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function f(e,t){for(;e.length<t;)e=`0${e}`;return e}let p={};p.IPv4=(function(){function e(e){if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return`ipv4`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},r,i,a;for(r=3;r>=0;--r)if(i=this.octets[r],i in n){if(a=n[i],t&&a!==0)return null;a!==8&&(t=!0),e+=a}else return null;return 32-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return p.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(`.`)},e})(),p.IPv4.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<4;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.isIPv4=function(e){return this.parser(e)!==null},p.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},p.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv4.isValidFourPartDecimal=function(e){return!!(p.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},p.IPv4.isValidCIDRFourPartDecimal=function(e){let t=e.match(/^(.+)\/(\d+)$/);return!p.IPv4.isValidCIDR(e)||!t?!1:p.IPv4.isValidFourPartDecimal(t[1])},p.IPv4.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv4 Address`);return new this(t)},p.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){let e=parseInt(t[2]);if(e>=0&&e<=32){let n=[this.parse(t[1]),e];return Object.defineProperty(n,"toString",{value:function(){return this.join(`/`)}}),n}}throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},p.IPv4.parser=function(e){let t,n,i;if(t=e.match(r.fourOctet))return(function(){let e=t.slice(1,6),r=[];for(let t=0;t<e.length;t++)n=e[t],r.push(d(n));return r})();if(t=e.match(r.longValue)){if(i=d(t[1]),i>4294967295||i<0)throw Error(`ipaddr: address outside defined range`);return(function(){let e=[],t=0;for(;t<=24;t+=8)e.push(i>>t&255);return e})().reverse()}return(t=e.match(r.twoOctet))?(function(){let e=t.slice(1,4),n=[];if(i=d(e[1]),i>16777215||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(i>>16&255),n.push(i>>8&255),n.push(i&255),n})():(t=e.match(r.threeOctet))?(function(){let e=t.slice(1,5),n=[];if(i=d(e[2]),i>65535||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(d(e[1])),n.push(i>>8&255),n.push(i&255),n})():null},p.IPv4.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);let t=[0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<4&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.IPv6=(function(){function e(e,t){let n,r;if(e.length===16)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(n=0;n<this.parts.length;n++)if(r=this.parts[n],!(0<=r&&r<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new e([65216,0,0,0,0,0,0,0]),10],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new e([100,65435,0,0,0,0,0,0]),96],[new e([100,65435,1,0,0,0,0,0]),48]],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new e([24320,0,0,0,0,0,0,0]),16],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32],[new e([16383,0,0,0,0,0,0,0]),20]]},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.kind=function(){return`ipv6`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r,i;for(let a=7;a>=0;--a)if(r=this.parts[a],r in n){if(i=n[r],t&&i!==0)return null;i!==16&&(t=!0),e+=i}else return null;return 128-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e,t=[],n=this.parts;for(let r=0;r<n.length;r++)e=n[r],t.push(e>>8),t.push(e&255);return t},e.prototype.toFixedLengthString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(f(this.parts[t].toString(16),4));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);let e=this.parts.slice(-2),t=e[0],n=e[1];return new p.IPv4([t>>8,t&255,n>>8,n&255])},e.prototype.toNormalizedString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){let e=/((^|:)(0(:|$)){2,})/g,t=``;this.zoneId&&(t=`%${this.zoneId}`);let n=this.toNormalizedString(),r=n.slice(0,n.length-t.length),i=0,a=-1,o=-1,s;for(;s=e.exec(r);){let e=(s[0].match(/0/g)||[]).length;e>o&&(o=e,i=s.index,a=s[0].length)}return a<0?r+t:`${r.substring(0,i)}::${r.substring(i+a)}${t}`},e.prototype.toString=function(){return this.toRFC5952String()},e})(),p.IPv6.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<16;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.isIPv6=function(e){return this.parser(e)!==null},p.IPv6.isValid=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{let t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch{return!1}},p.IPv6.isValidCIDR=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv6.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv6 Address`);return new this(t.parts,t.zoneId)},p.IPv6.parseCIDR=function(e){let t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,"toString",{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},p.IPv6.parser=function(e){let t,n,r,i,a,o;if(r=e.match(c.deprecatedTransitional))return this.parser(`::ffff:${r[1]}`);if(c.native.test(e))return l(e,8);if((r=e.match(c.transitional))&&(o=r[6]||``,t=r[1],r[1].endsWith(`::`)||(t=t.slice(0,-1)),t=l(t+o,6),t&&t.parts)){for(a=[parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseInt(r[5])],n=0;n<a.length;n++)if(i=a[n],!(0<=i&&i<=255))return null;return t.parts.push(a[0]<<8|a[1]),t.parts.push(a[2]<<8|a[3]),{parts:t.parts,zoneId:t.zoneId}}return null},p.IPv6.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>128)throw Error(`ipaddr: invalid IPv6 prefix length`);let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<16&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.fromByteArray=function(e){let t=e.length;if(t===4)return new p.IPv4(e);if(t===16)return new p.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},p.isValid=function(e){return p.IPv6.isValid(e)||p.IPv4.isValid(e)},p.isValidCIDR=function(e){return p.IPv6.isValidCIDR(e)||p.IPv4.isValidCIDR(e)},p.parse=function(e){if(p.IPv6.isValid(e))return p.IPv6.parse(e);if(p.IPv4.isValid(e))return p.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},p.parseCIDR=function(e){try{return p.IPv6.parseCIDR(e)}catch{try{return p.IPv4.parseCIDR(e)}catch(e){throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`,{cause:e})}}},p.process=function(e){let t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t},p.subnetMatch=function(e,t,n){let r,i,a,o;for(i in n??=`unicast`,t)if(Object.prototype.hasOwnProperty.call(t,i)){for(a=t[i],a[0]&&!(a[0]instanceof Array)&&(a=[a]),r=0;r<a.length;r++)if(o=a[r],e.kind()===o[0].kind()&&e.match.apply(e,o))return i}return n},t!==void 0&&t.exports?t.exports=p:e.ipaddr=p})(n)}))(),1);l();var it=class extends L{constructor(e){super(e),b(this,`updating`,!1),b(this,`textareaRef`,I.createRef()),b(this,`link`,`${window.location.protocol}//${window.location.host}/`),b(this,`interval`,null),b(this,`startTimeout`,null),this.state={response:null,error:null,starting:!0}}setUpdating(e){this.updating!==e&&(this.updating=e,this.props.onUpdating(e))}async findIpAddress(){var e,t;if((await this.props.socket.getObject(`system.adapter.${this.props.adminInstance}`)).common.host===this.props.hostId)return;let n=await this.props.socket.getObject(this.props.hostId),r=await this.props.socket.readBaseSettings(this.props.hostId),i=(r==null||(e=r.config)==null||(e=e.objects)==null?void 0:e.host)||``;if(i&&i!==`localhost`&&(i=rt.default.parse(Array.isArray(i)?i[0]:i).toString(),n!=null&&(t=n.native)!=null&&(t=t.hardware)!=null&&t.networkInterfaces))for(let e of Object.values(n.native.hardware.networkInterfaces))e.find(e=>{try{let t=rt.default.parseCIDR(e.cidr).toString();e.internal===!1&&i.match(t)&&(this.link=`${window.location.protocol}//${e.family===`IPv6`?`[${e.address}]`:e.address}:${window.location.port}`)}catch{}return!1})}async componentDidMount(){try{await this.findIpAddress()}catch(e){console.error(`Cannot find ip address: ${e.message}`)}try{await this.props.socket.upgradeController(this.props.hostId,this.props.version,parseInt(this.props.adminInstance.split(`.`).pop()||``,10))}catch(e){console.error(`Cannot update controller: ${e.message}`),this.setState({error:y.t(`Not updatable`),starting:!1}),this.setUpdating(!1);return}this.setUpdating(!0),this.interval=setInterval(()=>this.checkStatus(),1e3),this.startTimeout=setTimeout(()=>{this.startTimeout=null,this.setState({starting:!1})},1e4)}componentWillUnmount(){this.interval&&=(clearInterval(this.interval),null),this.startTimeout&&=(clearTimeout(this.startTimeout),null)}async checkStatus(){console.log(`Request update status from: ${this.link}`);try{let e=await(await fetch(this.link)).text();console.log(`Received status: ${e}`);let t=JSON.parse(e);t!=null&&t.stderr&&(t.stderr=t.stderr.filter(e=>e.trim())),t&&!t.running&&t.success&&t.stdout?(t.stdout.push(``),t.stdout.push(`---------------------------------------------------`),t.stdout.push(y.t(`%s was successfully updated to %s`,`js-controller`,this.props.version))):t!=null&&t.stdout&&(t.stdout.unshift(``),t.stdout.unshift(`---------------------------------------------------`),t.stdout.unshift(y.t(`updating %s to %s...`,`js-controller`,this.props.version))),this.setState({response:t,error:null},()=>{t&&!t.running?(this.setUpdating(!1),this.interval&&=(clearInterval(this.interval),null)):t!=null&&t.running&&this.setUpdating(!0),this.textareaRef.current&&setTimeout(()=>this.textareaRef.current&&(this.textareaRef.current.scrollTop=this.textareaRef.current.scrollHeight),100)})}catch(e){this.state.starting||this.setState({error:e.toString()},()=>this.setUpdating(!1))}}render(){var e,t,n,r,a;return S(i,{onClose:(e,t)=>{t!==`escapeKeyDown`&&t!==`backdropClick`&&this.props.onClose()},open:!0,maxWidth:`lg`,fullWidth:!0,children:[p(oe,{children:y.t(`Updating %s...`,`js-controller`)}),S(ie,{style:{height:400,padding:`0 20px`,overflow:`hidden`},children:[(!this.state.response||this.state.response.running)&&!this.state.error?p(ge,{}):null,this.state.response||this.state.error?p(`textarea`,{ref:this.textareaRef,style:{width:`100%`,height:`100%`,resize:`none`,background:this.props.themeType===`dark`?`#000`:`#fff`,color:this.props.themeType===`dark`?`#EEE`:`#111`,boxSizing:`border-box`,fontFamily:`Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace`,border:(e=this.state.response)!=null&&e.success?`2px solid green`:this.state.error||this.state.response&&!this.state.response.running&&!this.state.response.success?`2px solid red`:void 0},value:this.state.error?this.state.error:this.state.response.stderr&&this.state.response.stderr.length?this.state.response.stderr.join(`
|
|
2
2
|
`):this.state.response.stdout.join(`
|
|
3
3
|
`),readOnly:!0}):null]}),p(De,{children:p(R,{id:`js-controller-updater-close`,variant:`contained`,disabled:this.state.starting||!this.state.error&&((t=this.state.response)==null?void 0:t.running),onClick:()=>{var e;(e=this.state.response)!=null&&e.success&&window.location.reload(),this.props.onClose()},color:(n=this.state.response)!=null&&n.success?`primary`:`grey`,startIcon:(r=this.state.response)!=null&&r.success?p(ze,{}):p(h,{}),children:(a=this.state.response)!=null&&a.success?y.t(`Reload`):y.t(`Close`)})})]})}},B={root:{width:`100%`,height:`auto`,display:`flex`,flexDirection:`column`,overflow:`auto`,padding:10},paper:{maxWidth:1e3},overflowHidden:{display:`flex`,overflow:`hidden`},h1:{fontWeight:500,fontSize:35,margin:`10px 0`},h2:e=>({p:`10px 7px`,fontSize:25,fontWeight:300,borderRadius:`3px`,background:`#4dabf5`,color:e.palette.mode===`dark`?`black`:`white`}),h22:e=>({p:0,m:0,fontSize:25,fontWeight:300,borderRadius:`3px`,background:`#4dabf5`,color:e.palette.mode===`dark`?`black`:`white`}),standardText:{fontSize:15,margin:`10px 0`,"& > a":{textDecoration:`none`,color:`#1e88e5`}},standardTextSmall:{fontSize:12,color:`black`},standardTextSmall2:{fontSize:12},pre:{whiteSpace:`pre-wrap`,background:`#e4e3e3`,padding:10,borderRadius:3,position:`relative`},copyButton:{color:`black`,position:`absolute`,right:10,top:4},comment:{color:`#00000078`},accordionSummary:{background:`#4dabf5`,borderRadius:`3px`,"& .MuiAccordionSummary-content":{m:0}},accordionDetails:{display:`flex`,flexDirection:`column`},code:e=>({backgroundColor:e.palette.mode===`dark`?`#123456`:`#93bbe7`,p:`0 3px 0 3px`}),copyButtonSmall:{width:31,height:16}};function at(e,t,n){let r=e.split(`
|
|
4
4
|
`),i=[],a=!1;for(let e=0;e<r.length;e++){let o=r[e].toLowerCase();o.startsWith(`##`)&&(a=o.includes(t.toLowerCase())&&(!n||!o.includes(n.toLowerCase()))),a||i.push(r[e])}return i.join(`
|